@charset "utf-8";

/* ============================================================
   BitON Design System for Gnuboard5
   ============================================================ */

/* --- CSS Custom Properties (Light Mode Default) --- */
:root {
  --bt-bg: #fff;
  --bt-text: #000;
  --bt-menu-bg: #f1f1f1;
  --bt-footer-bg: #e1e1e138;
  --bt-card-bg: #fff;
  --bt-input-bg: #e3e3e3;
  --bt-modal-bg: #fff;
  --bt-notice-bg: #fafafa;
  --bt-notice-text: #00d34c;
  --bt-dropdown-bg: #fff;
  --bt-dropdown-hover: #dbdbdb3b;
  --bt-dropdown-shadow: 0px 1px 2px rgb(128 138 157 / 12%), 0px 8px 32px rgb(128 138 157 / 24%);
  --bt-dropdown-arrow: #fff;
  --bt-accent: #4ba98c;
  --bt-accent-dark: #006e45;
  --bt-accent-hover: #3d9179;
  --bt-link: #000;
  --bt-link-hover: #000;
  --bt-border: #f0f0f0;
  --bt-card-shadow: 0 1px 2px 0 rgba(128, 138, 157, .12), 0 4px 24px 0 rgba(128, 138, 157, .08);
  --bt-search-bg: #e3e3e3;
  --bt-search-text: #9d9d9d;
  --bt-toggler-border: rgba(0, 0, 0, .1);
  --bt-fab-bg: #e2e3e5;
  --bt-autofill-text: #000;
  --bt-autofill-bg: #fff;
  --bt-input-border: #dee2e6;
  --bt-biz-collapse-bg: transparent;
}

/* --- Dark Mode Overrides --- */
body.dark {
  --bt-bg: #21242f;
  --bt-text: #fff;
  --bt-menu-bg: #17171a;
  --bt-footer-bg: #17171a;
  --bt-card-bg: #1c1d21;
  --bt-input-bg: #222531;
  --bt-modal-bg: #222531;
  --bt-notice-bg: #17171a9c;
  --bt-notice-text: #00c789;
  --bt-dropdown-bg: #17171a;
  --bt-dropdown-hover: #21242f85;
  --bt-dropdown-shadow: 0px 1px 2px rgb(19 19 20), 0px 8px 20px rgb(26 26 28);
  --bt-dropdown-arrow: #17171a;
  --bt-accent: #4ba98c;
  --bt-accent-dark: #00d787;
  --bt-accent-hover: #00d787;
  --bt-link: #fff;
  --bt-link-hover: #00d787;
  --bt-border: #2a2d3a;
  --bt-card-shadow: 0 1px 2px 0 #1c1d2173, 0 4px 24px 0 rgba(128, 138, 157, .08);
  --bt-search-bg: #222531;
  --bt-search-text: #a8b2c4;
  --bt-toggler-border: #6d7181;
  --bt-fab-bg: #21242f;
  --bt-autofill-text: #fff;
  --bt-autofill-bg: #171924;
  --bt-input-border: #40424e;
  --bt-biz-collapse-bg: transparent;
}

/* ============================================================
   Base
   ============================================================ */
html,
body {
  font-family: 'Noto Sans KR', 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 500;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bt-bg);
  color: var(--bt-text);
  transition: background-color .2s, color .2s;
}

/* --- Global Custom Scrollbar --- */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(155,155,155,.35) transparent;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: rgba(155,155,155,.35);
  border-radius: 3px;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(155,155,155,.55);
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

body.dark * {
  scrollbar-color: rgba(255,255,255,.15) transparent;
}

body.dark *::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.15);
}

body.dark *::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,.3);
}

.container {
  max-width: 1400px;
}

#wrapper {
  flex: 1;
}


a,
.btn-link {
  color: var(--bt-link);
  text-decoration: none;
  cursor: pointer;
}

a:hover {
  color: var(--bt-link-hover);
  text-decoration: none;
}

hr {
  display: none;
}

/* ============================================================
   Autofill Overrides
   ============================================================ */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:-webkit-autofill:active {
  -webkit-text-fill-color: var(--bt-autofill-text);
  -webkit-box-shadow: 0 0 0 1000px var(--bt-autofill-bg) inset !important;
  color: var(--bt-autofill-text);
}

/* ============================================================
   Header
   ============================================================ */
.biton-header {
  position: relative;
  z-index: 100;
}

/* -- Market Ticker (in Notice Bar) -- */
.biton-ticker-slide {
  font-size: 12px;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  letter-spacing: -.01em;
}

.ticker-label {
  font-weight: 500;
  color: var(--bt-text-muted);
  margin-right: 4px;
}

.ticker-value {
  font-weight: 600;
  color: var(--bt-text);
}

.ticker-change {
  font-weight: 600;
  margin-left: 2px;
}

.ticker-change.up {
  color: #16c784;
}

.ticker-change.down {
  color: #ea3943;
}

.ticker-change.flat {
  color: var(--bt-text-muted);
}

.ticker-btc-icon {
  color: #f7931a;
  vertical-align: middle;
  position: relative;
  margin-right: 3px;
}

.ticker-connect-count {
  font-weight: 700;
  color: #f0b90b;
  font-family: 'Roboto', sans-serif;
}

body.dark .ticker-connect-count {
  color: #f0b90b;
}

body.dark .biton-mobile-notice {
  background-color: #2a2d3a;
  color: rgba(255, 255, 255, .85);
}

/* -- Top Bar -- */
.biton-topbar {
  padding: 0;
  border-bottom: 1px solid var(--bt-border);
  transition: border-color .2s;
}

.biton-brand {
  display: inline-flex;
  align-items: center;
}

.biton-logo {
  width: 140px;
  padding: 18px 0;
  transition: opacity .15s;
}

.biton-logo:hover {
  opacity: .8;
}

.biton-topbar-divider {
  width: 1px;
  height: 18px;
  background-color: var(--bt-border);
}

.biton-darkmode-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid var(--bt-border);
  background: transparent;
  color: var(--bt-text);
  font-size: 16px;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}

.biton-darkmode-btn:hover {
  background-color: var(--bt-accent);
  border-color: var(--bt-accent);
  color: #fff;
  transform: scale(1.05);
}

.biton-topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--bt-text) !important;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background-color .12s, color .12s;
  white-space: nowrap;
}

.biton-topbar-link:hover {
  background-color: var(--bt-search-bg);
  color: var(--bt-accent) !important;
}

.biton-topbar-link--muted {
  opacity: .65;
}

.biton-topbar-link--muted:hover {
  opacity: 1;
}

.biton-btn-signup {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: #fff !important;
  background: var(--bt-accent);
  padding: 7px 14px;
  border-radius: 8px;
  transition: background-color .15s, transform .1s;
  white-space: nowrap;
}

.biton-btn-signup:hover {
  background: var(--bt-accent-hover);
  color: #fff !important;
  transform: translateY(-1px);
}

.biton-header .navbar-toggler {
  border: 1.5px solid var(--bt-toggler-border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 20px;
  color: var(--bt-text);
  background: none;
  line-height: 1;
}

/* -- Navigation Bar -- */
.biton-nav {
  background-color: var(--bt-menu-bg);
  transition: background-color .2s;
}

.biton-nav-list {
  list-style: none;
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
  flex: 1;
}

.biton-nav-item {
  position: relative;
  padding: 0 1.1rem;
}

.biton-nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: var(--bt-accent);
  border-radius: 3px 3px 0 0;
  transition: width .2s, left .2s;
}

.biton-nav-item:hover::after {
  width: 100%;
  left: 0;
}

.biton-nav-link {
  display: block;
  color: var(--bt-text);
  font-weight: 600;
  font-size: 14px;
  line-height: 50px;
  padding: 0;
  transition: color .15s;
  white-space: nowrap;
}

.biton-nav-link:hover {
  color: var(--bt-accent-dark);
}

/* Dropdown */
.biton-dropdown {
  border: none;
  padding: 6px 0;
  box-shadow: var(--bt-dropdown-shadow);
  border-radius: 10px;
  background-color: var(--bt-dropdown-bg);
  margin-top: 0;
  min-width: 180px;
  overflow: hidden;
}

.biton-dropdown::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent var(--bt-dropdown-arrow) transparent;
  position: absolute;
  top: -16px;
  left: calc(50% - 8px);
  z-index: 10;
}

.biton-dropdown .dropdown-item {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--bt-text);
  transition: background-color .1s, color .1s;
}

.biton-dropdown .dropdown-item:hover {
  background-color: var(--bt-dropdown-hover);
  color: var(--bt-accent);
}

.biton-nav-item.dropdown:hover>.biton-dropdown {
  display: block;
  animation: bitonFadeIn .25s ease forwards;
}

@keyframes bitonFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Nav right area */
.biton-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* Search */
.biton-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.biton-search-form>i {
  position: absolute;
  left: 12px;
  color: #a8b2c4;
  font-size: 13px;
  pointer-events: none;
  z-index: 2;
}

.biton-search-form .form-control {
  background-color: var(--bt-search-bg);
  border: none;
  height: 38px;
  width: 200px;
  color: var(--bt-text);
  padding-left: 34px;
  font-size: 13px;
  border-radius: 10px;
  transition: background-color .15s, box-shadow .15s, width .25s;
}

.biton-search-form .form-control::placeholder {
  color: var(--bt-search-text);
}

.biton-search-form .form-control:focus {
  background-color: var(--bt-search-bg);
  box-shadow: 0 0 0 2px rgba(75, 169, 140, .25);
  color: var(--bt-text);
  width: 260px;
}

/* Mobile actions */
.biton-mobile-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px 16px;
  font-size: 13px;
}

.biton-mobile-actions a {
  color: var(--bt-text);
}

.biton-mobile-actions a:hover {
  color: var(--bt-accent);
}

/* ============================================================
   Mobile-only Notice Bar
   ============================================================ */
.biton-mobile-notice {
  display: none;
}

@media (max-width: 991.98px) {
  .biton-mobile-notice {
    display: block;
    height: 32px;
    line-height: 32px;
    background-color: #5cc9a7;
    color: #fff;
    font-size: 12px;
    overflow: hidden;
    text-align: left;
    transition: background-color .2s, color .2s;
  }

  .biton-mobile-notice .container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
  }

  .biton-mobile-notice i {
    font-size: 10px;
    opacity: .85;
  }
}

/* ============================================================
   Notice Bar
   ============================================================ */
.biton-notice {
  height: 36px;
  background-color: var(--bt-notice-bg);
  line-height: 36px;
  color: var(--bt-notice-text);
  text-align: left;
  font-size: 13px;
  overflow: hidden;
  transition: background-color .2s, color .2s;
}

.biton-notice .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.biton-notice-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.biton-notice-left i {
  font-size: 11px;
  opacity: .7;
}

.biton-notice-right {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 0;
}

/* 수직 슬라이드 티커 */
.biton-ticker-slider {
  position: relative;
  width: 280px;
  height: 36px;
  overflow: hidden;
}

.biton-ticker-slide {
  position: absolute;
  right: 0;
  top: 0;
  width: auto;
  height: 36px;
  line-height: 36px;
  text-align: right;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(100%);
  transition: transform .45s cubic-bezier(.4, 0, .2, 1), opacity .45s ease;
  pointer-events: none;
}

.biton-ticker-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.biton-ticker-slide.out {
  opacity: 0;
  transform: translateY(-100%);
}

/* 고정 동시접속자 */
.biton-ticker-fixed {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding-left: 14px;
  margin-left: 14px;
  border-left: 1px solid var(--bt-border);
  font-size: 11.5px;
  line-height: 1;
}

@media (max-width: 991.98px) {
  .biton-notice-left span {
    display: none;
  }

  .biton-ticker-slider {
    width: 240px;
  }
}

@media (max-width: 767.98px) {
  .biton-notice .container {
    justify-content: flex-start;
  }

  .biton-notice-left {
    display: none;
  }

  .biton-notice-right {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .biton-ticker-slider {
    flex: 1;
    width: auto;
  }

  .biton-ticker-slide {
    font-size: 10.5px;
    right: auto;
    left: 0;
    text-align: left;
  }

  .biton-ticker-fixed {
    font-size: 10.5px;
  }
}

/* ============================================================
   Main Content Cards
   ============================================================ */
.biton-card {
  border-radius: 12px;
  box-shadow: var(--bt-card-shadow);
  padding: 17px 16px;
  background-color: var(--bt-card-bg);
  transition: background-color .2s, box-shadow .2s;
  margin-bottom: 20px;
}

.biton-card-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--bt-border);
}

.biton-card-title a {
  color: var(--bt-text);
}

.biton-card-title a:hover {
  color: var(--bt-accent);
}

/* ============================================================
   Latest Widget (in cards)
   ============================================================ */
.biton-latest-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.biton-latest-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--bt-border);
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.biton-latest-list li:last-child {
  border-bottom: none;
}

.biton-latest-list li a {
  color: var(--bt-text);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.biton-latest-list li a:hover {
  color: var(--bt-accent);
}

.biton-latest-list .lt-date {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
}

.biton-latest-list .lt-cmt {
  font-size: 11px;
  color: var(--bt-accent);
  font-weight: 700;
  margin-left: 4px;
}

.biton-latest-list .lt-new {
  display: inline-block;
  background: var(--bt-accent);
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 4px;
  font-weight: 700;
  line-height: 1.4;
}

.biton-latest-more {
  display: block;
  text-align: right;
  padding-top: 10px;
  font-size: 13px;
  color: var(--bt-accent);
  font-weight: 600;
}

.biton-latest-more:hover {
  color: var(--bt-accent-hover);
}

.biton-latest-empty {
  text-align: center;
  padding: 20px 0;
  color: #999;
  font-size: 14px;
}

/* ============================================================
   Footer
   ============================================================ */
.biton-footer {
  margin-top: auto;
}

.biton-footer-inner {
  padding: 32px 0 0;
  background-color: var(--bt-footer-bg);
  transition: background-color .2s;
  font-size: 13px;
  color: var(--bt-text);
}

.biton-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bt-border);
}

.biton-footer-logo {
  width: 110px;
}

.biton-footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.biton-footer-links a {
  color: var(--bt-text) !important;
  transition: color .12s;
}

.biton-footer-links a:hover {
  color: var(--bt-accent) !important;
}

.biton-footer-links .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: var(--bt-text);
  opacity: .3;
}

.biton-footer-body {
  padding: 20px 0;
}

.biton-footer-disclaimer {
  font-size: 12.5px;
  line-height: 1.9;
  opacity: .7;
  margin-bottom: 0;
}

.biton-biz-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--bt-text);
  background: none;
  border: none;
  cursor: pointer;
  transition: color .12s;
}

.biton-biz-toggle:hover {
  color: var(--bt-accent);
}

.biton-biz-toggle i {
  font-size: 10px;
  transition: transform .25s;
}

.biton-biz-toggle:not(.collapsed) i {
  transform: rotate(180deg);
}

.biton-biz-info {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding-top: 10px;
  font-size: 12px;
  opacity: .6;
  line-height: 1.8;
}

.biton-footer-bottom {
  padding: 16px 0;
  border-top: 1px solid var(--bt-border);
  text-align: center;
  font-size: 11.5px;
  opacity: .45;
}

/* ============================================================
   FAB (Floating Action Button) - Mobile Dark Mode Toggle
   ============================================================ */
.biton-fab {
  position: fixed;
  right: 20px;
  bottom: 30px;
  z-index: 100;
  opacity: .6;
  background-color: var(--bt-fab-bg);
  border-radius: 7px;
}

.biton-fab:hover {
  opacity: 1;
}

.biton-fab button {
  background: none;
  border: none;
  padding: 10px 14px;
  font-size: 22px;
  color: var(--bt-text);
  cursor: pointer;
}

/* ============================================================
   Login Page (Redesigned)
   ============================================================ */
.biton-login-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 16px 64px;
  min-height: 50vh;
}

.biton-login-card {
  width: 100%;
  max-width: 440px;
  background-color: var(--bt-card-bg);
  border-radius: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .07), 0 12px 40px -4px rgba(0, 0, 0, .1);
  padding: 44px 40px 36px;
  transition: background-color .2s, box-shadow .2s;
}

body.dark .biton-login-card {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .25), 0 12px 40px -4px rgba(0, 0, 0, .4);
}

.login-card-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-card-logo {
  width: 140px;
  margin-bottom: 16px;
}

.login-card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--bt-text);
}

.login-card-desc {
  font-size: 14px;
  color: #8a92a6;
  margin: 0;
  line-height: 1.5;
}

body.dark .login-card-desc {
  color: #6b7280;
}

.login-field {
  margin-bottom: 20px;
}

.login-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--bt-text);
  letter-spacing: -.02em;
}

.login-field-input {
  position: relative;
}

.login-field-input>i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 15px;
  pointer-events: none;
  z-index: 5;
  transition: color .2s;
}

.login-field-input input.form-control {
  height: 48px;
  padding: 0 16px 0 42px;
  font-size: 14px;
  border: 1.5px solid var(--bt-input-border);
  border-radius: 10px;
  background-color: var(--bt-bg);
  color: var(--bt-text);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.login-field-input input.form-control::placeholder {
  color: #b0b7c3;
}

body.dark .login-field-input input.form-control::placeholder {
  color: #555c6e;
}

.login-field-input input.form-control:focus {
  border-color: var(--bt-accent);
  box-shadow: 0 0 0 3px rgba(75, 169, 140, .15);
  background-color: var(--bt-bg);
  color: var(--bt-text);
}

.login-field-input input.form-control:focus+i,
.login-field-input:focus-within>i {
  color: var(--bt-accent);
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 13px;
}

.login-options .form-check-label {
  cursor: pointer;
  user-select: none;
  color: var(--bt-text);
}

.login-options .form-check-input:checked {
  background-color: var(--bt-accent);
  border-color: var(--bt-accent);
}

.login-find-link {
  font-weight: 600;
  color: var(--bt-accent) !important;
  transition: opacity .15s;
}

.login-find-link:hover {
  opacity: .8;
  color: var(--bt-accent) !important;
}

.btn-login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--bt-accent) 0%, #3d9179 100%);
  cursor: pointer;
  transition: transform .12s, box-shadow .2s, opacity .15s;
  letter-spacing: .02em;
}

.btn-login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(75, 169, 140, .35);
}

.btn-login-submit:active {
  transform: translateY(0);
  opacity: .9;
}

.btn-login-submit i {
  font-size: 13px;
  transition: transform .15s;
}

.btn-login-submit:hover i {
  transform: translateX(3px);
}

.login-divider {
  display: flex;
  align-items: center;
  margin: 28px 0;
  gap: 16px;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--bt-border);
}

.login-divider span {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
  white-space: nowrap;
}

.btn-register-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 48px;
  border: 2px solid var(--bt-accent);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--bt-accent) !important;
  background: transparent;
  transition: background-color .15s, color .15s, transform .12s;
}

.btn-register-link:hover {
  background-color: var(--bt-accent);
  color: #fff !important;
  transform: translateY(-1px);
}

.btn-register-link:active {
  transform: translateY(0);
}

/* SNS Login Buttons */
.login-sns-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 4px;
}

.sns-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: transform .18s, box-shadow .18s;
}

.sns-circle:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .14);
}

.sns-circle:active {
  transform: translateY(0) scale(.97);
}

body.dark .sns-circle {
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

body.dark .sns-circle:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, .5);
}

.sns-naver {
  background-color: #1ec800;
}

.sns-kakao {
  background-color: #ffeb00;
}

.sns-google {
  background-color: #fff;
  border: 1px solid #e0e0e0;
}

body.dark .sns-google {
  border-color: #40424e;
}

.sns-circle img {
  width: 24px;
  height: 24px;
}

.login-divider--thin {
  margin: 20px 0;
}

#sns_login {
  display: none !important;
}

/* ============================================================
   Map Card - 3D Globe + Trade Panel
   ============================================================ */
.biton-map-card {
  background-color: var(--bt-card-bg);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
  overflow: hidden;
  transition: background-color .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}

body.dark .biton-map-card {
  box-shadow: 0 2px 16px rgba(0, 0, 0, .3);
}

.biton-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  flex-shrink: 0;
}

.biton-map-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--bt-text);
}

.biton-map-badge {
  font-size: 11px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 4px;
}

.biton-map-badge i {
  font-size: 7px;
  color: #999;
  transition: color .3s;
}

.biton-map-badge.connected i {
  color: #4ba98c;
}

.biton-map-badge.connected {
  color: #4ba98c;
}

.biton-map-badge.error i {
  color: #e74c3c;
}

/* Coin Picker */
.biton-map-selectors {
  padding: 6px 14px;
  flex-shrink: 0;
}

.biton-coin-picker {
  position: relative;
}

.biton-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 38px;
  padding: 5px 10px;
  border: 1.5px solid var(--bt-input-border);
  border-radius: 8px;
  background-color: var(--bt-bg);
  color: var(--bt-text);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  gap: 6px;
}

.biton-picker-trigger:hover {
  border-color: var(--bt-accent);
}

.biton-coin-picker.open .biton-picker-trigger {
  border-color: var(--bt-accent);
  box-shadow: 0 0 0 2px rgba(75, 169, 140, .15);
}

.picker-arrow {
  font-size: 11px;
  color: #9ca3af;
  transition: transform .2s;
  flex-shrink: 0;
}

.biton-coin-picker.open .picker-arrow {
  transform: rotate(180deg);
}

.picker-selected {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.picker-placeholder {
  font-size: 12px;
  color: #9ca3af;
}

body.dark .picker-placeholder {
  color: #555c6e;
}

.picker-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px 2px 3px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 12px;
  background-color: var(--bt-search-bg);
  color: var(--bt-text);
  white-space: nowrap;
  line-height: 1;
}

.picker-badge img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.picker-badge-more {
  padding: 2px 8px;
  background-color: var(--bt-accent);
  color: #fff;
}

/* Picker Dropdown */
.biton-picker-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 200;
  background-color: var(--bt-card-bg);
  border: 1.5px solid var(--bt-input-border);
  border-radius: 10px;
  box-shadow: var(--bt-dropdown-shadow);
  overflow: hidden;
}

.biton-picker-dropdown.open {
  display: block;
  animation: bitonFadeIn .2s ease;
}

.picker-search {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid var(--bt-border);
  gap: 8px;
}

.picker-search>i {
  color: #9ca3af;
  font-size: 12px;
  flex-shrink: 0;
}

.picker-search input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--bt-text);
  font-size: 12px;
  outline: none;
  padding: 0;
}

.picker-search input::placeholder {
  color: #9ca3af;
}

body.dark .picker-search input::placeholder {
  color: #555c6e;
}

.picker-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
}

.picker-list::-webkit-scrollbar {
  width: 4px;
}

.picker-list::-webkit-scrollbar-thumb {
  background: rgba(128, 128, 128, .25);
  border-radius: 4px;
}

.picker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  cursor: pointer;
  transition: background-color .1s;
  font-size: 12px;
  color: var(--bt-text);
}

.picker-item:hover {
  background-color: var(--bt-dropdown-hover);
}

.picker-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  background-color: var(--bt-input-bg);
}

.picker-name {
  flex: 1;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.picker-ticker {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
  flex-shrink: 0;
}

body.dark .picker-ticker {
  color: #6b7280;
}

.picker-check {
  font-size: 11px;
  color: var(--bt-accent);
  opacity: 0;
  transition: opacity .15s;
  flex-shrink: 0;
}

.picker-item.selected .picker-check {
  opacity: 1;
}

.picker-item.selected {
  background-color: rgba(75, 169, 140, .08);
}

body.dark .picker-item.selected {
  background-color: rgba(75, 169, 140, .12);
}

/* Body: Globe full + Trade panel overlay */
.biton-map-body {
  position: relative;
  height: 420px;
  min-height: 0;
}

.biton-globe-area {
  position: relative;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, #0a1628 0%, #060b14 100%);
  overflow: hidden;
}

body:not(.dark) .biton-globe-area {
  background: radial-gradient(ellipse at center, #0a1628 0%, #060b14 100%);
}

/* ── Fixed Korea Map Background ── */
.biton-korea-map {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 82%;
  width: auto;
  object-fit: contain;
  opacity: 0.75;
  pointer-events: none;
  z-index: 3;
  user-select: none;
  filter: brightness(2.2) drop-shadow(0 0 18px rgba(0, 180, 255, .35));
}

.biton-korea-map.dark-only {
  display: block;
}

.biton-korea-map.light-only {
  display: none;
}

.biton-globe-area canvas,
#globeContainer {
  position: relative;
  z-index: 2;
  width: 100% !important;
  height: 100% !important;
}

#globeContainer canvas {
  display: block;
}

/* ── Trade Flight Overlay ── */
.trade-flight-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 10;
}

.coin-flight {
  --fly-dx: 0px;
  --fly-dy: 0px;
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform, opacity;
  animation: coinFlyIn 4s cubic-bezier(.2, .05, .3, 1) forwards;
  transform: translate(-50%, -50%);
}

.coin-flight img {
  border-radius: 50%;
  border: 2px solid rgba(120, 220, 255, .7);
  box-shadow: 0 0 14px rgba(80, 180, 255, .6), 0 0 5px rgba(255, 255, 255, .3);
  background-color: rgba(220, 230, 240, .92);
  object-fit: cover;
}

.coin-flight.flight-xs img {
  width: 28px;
  height: 28px;
}

.coin-flight.flight-sm img {
  width: 36px;
  height: 36px;
}

.coin-flight.flight-md img {
  width: 46px;
  height: 46px;
}

.coin-flight.flight-lg img {
  width: 58px;
  height: 58px;
  border-width: 3px;
  box-shadow: 0 0 16px rgba(0, 200, 255, .6), 0 0 5px rgba(0, 255, 200, .3);
}

.coin-flight.flight-xl img {
  width: 72px;
  height: 72px;
  border-width: 3px;
  box-shadow: 0 0 22px rgba(0, 200, 255, .8), 0 0 8px rgba(0, 255, 200, .5);
}

@keyframes coinFlyIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(0, 0) scale(.3);
  }

  8% {
    opacity: 1;
    transform: translate(-50%, -50%) translate(0, 0) scale(.85);
  }

  60% {
    opacity: 1;
    transform: translate(-50%, -50%) translate(var(--fly-dx), var(--fly-dy)) scale(1);
  }

  75% {
    opacity: .9;
    transform: translate(-50%, -50%) translate(var(--fly-dx), var(--fly-dy)) scale(1.1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--fly-dx), var(--fly-dy)) scale(.5);
  }
}

/* ── Trade Panel Toggle Button ── */
.trade-panel-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .15s, transform .1s;
}

.trade-panel-toggle:hover {
  background: rgba(75, 169, 140, .7);
  transform: scale(1.08);
}

.trade-panel-toggle.active {
  opacity: 0;
  pointer-events: none;
}

/* ── Trade Panel Overlay ── */
.biton-trade-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 260px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  background-color: rgba(28, 29, 33, .92);
  backdrop-filter: blur(10px);
  border-left: 1px solid rgba(255, 255, 255, .08);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), opacity .3s;
  opacity: 0;
  pointer-events: none;
}

body:not(.dark) .biton-trade-panel {
  background-color: rgba(255, 255, 255, .92);
  border-left: 1px solid rgba(0, 0, 0, .08);
}

.biton-trade-panel.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.trade-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  flex-shrink: 0;
}

body:not(.dark) .trade-panel-header {
  border-bottom-color: rgba(0, 0, 0, .08);
}

.trade-panel-header span {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

body:not(.dark) .trade-panel-header span {
  color: var(--bt-text);
}

.trade-panel-close {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .12s;
}

body:not(.dark) .trade-panel-close {
  background: rgba(0, 0, 0, .06);
  color: var(--bt-text);
}

.trade-panel-close:hover {
  background: rgba(255, 255, 255, .2);
}

body:not(.dark) .trade-panel-close:hover {
  background: rgba(0, 0, 0, .12);
}

.biton-trade-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.biton-trade-list:empty {
  display: none;
}

.biton-trade-list::-webkit-scrollbar {
  width: 3px;
  height: 0;
}

.biton-trade-list::-webkit-scrollbar-track {
  background: transparent;
}

.biton-trade-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .15);
  border-radius: 3px;
}

body:not(.dark) .biton-trade-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .12);
}

.biton-trade-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: 12px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  animation: tradeSlideIn .3s ease-out;
}

body:not(.dark) .biton-trade-item {
  color: var(--bt-text);
  border-bottom-color: rgba(0, 0, 0, .06);
}

.biton-trade-item:last-child {
  border-bottom: none;
}

.biton-trade-item .trade-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background-color: rgba(220, 230, 240, .9);
}

body:not(.dark) .biton-trade-item .trade-icon {
  background-color: #eef1f5;
}

.biton-trade-item .trade-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.biton-trade-item .trade-name {
  font-weight: 600;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.biton-trade-item .trade-ticker {
  font-size: 10px;
  color: rgba(255, 255, 255, .45);
  font-weight: 500;
}

body:not(.dark) .biton-trade-item .trade-ticker {
  color: #9ca3af;
}

.biton-trade-item .trade-price {
  font-family: 'Roboto', monospace;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
}

.biton-trade-item .trade-price.up {
  color: #22c55e;
}

.biton-trade-item .trade-price.down {
  color: #ef4444;
}

@keyframes tradeSlideIn {
  from {
    opacity: 0;
    transform: translateX(8px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Map section responsive */
@media (max-width: 767px) {
  .biton-map-body {
    height: 320px;
  }

  .biton-trade-panel {
    width: 220px;
  }

  .picker-selected {
    flex-wrap: nowrap;
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .biton-login-card {
    padding: 32px 24px 28px;
    border-radius: 16px;
  }

  .biton-login-page {
    padding: 28px 12px 48px;
  }

  .login-card-logo {
    width: 120px;
  }
}

/* ============================================================
   Outlogin (Sidebar login widget)
   ============================================================ */
.biton-outlogin h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* ============================================================
   Gnuboard Overrides
   ============================================================ */

/* Remove fixed widths */
#hd,
#wrapper,
#ft {
  min-width: 0 !important;
}

#hd_wrapper,
#tnb .inner,
#gnb .gnb_wrap,
#container_wr,
#ft_wr {
  width: 100% !important;
  max-width: 1400px;
}

/* Content container */
#container_wr {
  margin: 0 auto;
  padding: 0 15px;
}

#container {
  float: none;
  width: 100%;
  min-height: 400px;
  margin: 4px 0 20px;
}

#container_title {
  display: none;
}

/* Hide old sidebar */
#aside {
  display: none;
}

/* Remove old login msg bar */
#hd_login_msg {
  display: none;
}

/* Board table overrides for dark mode */
body.dark .tbl_wrap table {
  background: var(--bt-card-bg);
  border-color: var(--bt-border);
}

body.dark .tbl_head01 thead th {
  border-color: var(--bt-border);
  color: var(--bt-text);
}

body.dark .tbl_head01 td {
  color: var(--bt-text);
  border-color: var(--bt-border);
}

body.dark .tbl_head01 tbody tr:hover td {
  background: var(--bt-dropdown-hover);
}

body.dark .tbl_head01 a {
  color: var(--bt-link);
}

body.dark .tbl_frm01 th {
  background: var(--bt-menu-bg);
  border-color: var(--bt-border);
  color: var(--bt-text);
}

body.dark .tbl_frm01 td {
  border-color: var(--bt-border);
}

body.dark .frm_input,
body.dark textarea,
body.dark select {
  background-color: var(--bt-input-bg);
  border-color: var(--bt-input-border);
  color: var(--bt-text);
}

/* Buttons */
body.dark .btn_submit {
  background: var(--bt-accent);
}

body.dark .btn_close {
  background: var(--bt-card-bg);
  color: var(--bt-text);
  border-color: var(--bt-border);
}

body.dark a.btn_b02,
body.dark .btn_b02 {
  background: var(--bt-accent);
}

body.dark a.btn_b03,
body.dark .btn_b03 {
  background: var(--bt-card-bg);
  color: var(--bt-text);
  border-color: var(--bt-border);
}

/* Pagination dark mode */
body.dark .pg_page {
  background: var(--bt-card-bg);
  border-color: var(--bt-border);
  color: var(--bt-text);
}

body.dark .pg_current {
  background: var(--bt-accent);
  border-color: var(--bt-accent);
}

/* Validation */
.validation-danger {
  width: 100%;
  margin-top: .25rem;
  font-size: 12px;
  color: #dc3545;
  margin-left: 10px;
  font-weight: 800;
}

/* Sound only / screen reader */
.sound_only {
  display: inline-block !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0;
  line-height: 0;
  border: 0 !important;
  overflow: hidden !important;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1104px) {
  .biton-nav-link {
    font-size: 12px;
  }
}

@media (max-width: 991px) {
  .biton-nav-list {
    flex-direction: column;
  }

  .biton-nav-item {
    padding: 0 !important;
  }

  .biton-nav-item::after {
    display: none;
  }

  .biton-nav-link {
    font-size: 15px;
    text-align: left;
    line-height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid var(--bt-border);
  }

  .biton-dropdown {
    box-shadow: none;
    background-color: transparent;
    border-radius: 0;
    padding: 0;
  }

  .biton-dropdown::before {
    content: none;
  }

  .biton-dropdown .dropdown-item {
    padding: 10px 16px 10px 32px;
    background-color: var(--bt-dropdown-hover);
  }

  .biton-nav-right {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 4px;
  }

  .biton-search-form {
    margin: 10px 0 6px;
  }

  .biton-search-form .form-control {
    width: 100%;
  }

  .biton-search-form .form-control:focus {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .biton-card {
    margin-bottom: 15px;
  }

  .biton-footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   Spotlight Card - Real-time Top Movers
   ============================================================ */
.spotlight-col {
  position: relative;
}

.biton-spotlight-card {
  position: absolute;
  top: 0;
  left: calc(var(--bs-gutter-x) * .5);
  right: calc(var(--bs-gutter-x) * .5);
  bottom: 0;
  background-color: var(--bt-card-bg);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
  overflow: hidden;
  transition: background-color .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}

body.dark .biton-spotlight-card {
  box-shadow: 0 2px 16px rgba(0, 0, 0, .3);
}

.spotlight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  flex-shrink: 0;
}

.spotlight-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--bt-text);
}

.spotlight-more {
  font-size: 12px;
  color: #999;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.spotlight-more:hover {
  color: var(--bt-accent);
}

.spotlight-subtitle {
  padding: 10px 16px 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bt-text);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.spotlight-subtitle .fa-fire {
  color: #f59e0b;
}

.spotlight-table-header {
  display: flex;
  align-items: center;
  padding: 6px 16px;
  font-size: 11px;
  color: #9ca3af;
  border-bottom: 1px solid var(--bt-border);
  flex-shrink: 0;
}

.st-col-rank {
  width: 28px;
  flex-shrink: 0;
}

.st-col-name {
  flex: 1;
  min-width: 0;
}

.st-col-price {
  width: 120px;
  text-align: right;
  flex-shrink: 0;
}

.st-col-change {
  width: 80px;
  text-align: right;
  flex-shrink: 0;
}

.spotlight-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(155, 155, 155, .3) transparent;
}

.spotlight-list::-webkit-scrollbar {
  width: 5px;
}

.spotlight-list::-webkit-scrollbar-track {
  background: transparent;
  margin: 4px 0;
}

.spotlight-list::-webkit-scrollbar-thumb {
  background: rgba(155, 155, 155, .3);
  border-radius: 10px;
  transition: background .2s;
}

.spotlight-list::-webkit-scrollbar-thumb:hover {
  background: rgba(155, 155, 155, .55);
}

body.dark .spotlight-list {
  scrollbar-color: rgba(255, 255, 255, .15) transparent;
}

body.dark .spotlight-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .15);
}

body.dark .spotlight-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, .3);
}

.spotlight-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--bt-border);
  transition: background-color .15s;
}

.spotlight-item:last-child {
  border-bottom: none;
}

.spotlight-item:hover {
  background-color: var(--bt-dropdown-hover, rgba(219, 219, 219, .23));
}

.spotlight-rank {
  width: 28px;
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
  flex-shrink: 0;
}

.spotlight-coin {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.spotlight-coin-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.spotlight-coin-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--bt-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-price {
  width: 120px;
  text-align: right;
  font-size: 13px;
  font-weight: 500;
  color: var(--bt-text);
  flex-shrink: 0;
  white-space: nowrap;
}

.spotlight-change {
  width: 80px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}

.spotlight-change.up {
  color: #16c784;
}

.spotlight-change.down {
  color: #ea3943;
}

.spotlight-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  color: #9ca3af;
  font-size: 13px;
  gap: 8px;
}

/* Spotlight: Tablet & Mobile (< 992px) - single column stack */
@media (max-width: 991.98px) {
  .spotlight-col {
    position: static;
  }

  .biton-spotlight-card {
    position: static;
    max-height: 480px;
  }

  .spotlight-list {
    max-height: 360px;
  }
}

/* Spotlight: Mobile (< 768px) */
@media (max-width: 767.98px) {
  .biton-spotlight-card {
    max-height: 420px;
  }

  .spotlight-list {
    max-height: 300px;
  }

  .spotlight-item {
    padding: 8px 12px;
  }

  .spotlight-header {
    padding: 12px 14px;
  }

  .spotlight-table-header {
    padding: 6px 12px;
  }

  .st-col-price {
    width: 100px;
  }

  .st-col-change {
    width: 70px;
  }

  .spotlight-price {
    width: 100px;
    font-size: 12px;
  }

  .spotlight-change {
    width: 70px;
    font-size: 12px;
  }

  .spotlight-coin-icon {
    width: 20px;
    height: 20px;
  }

  .spotlight-coin-name {
    font-size: 12px;
  }

  .spotlight-rank {
    font-size: 12px;
    width: 24px;
  }
}

/* Spotlight: Small mobile (< 576px) */
@media (max-width: 575.98px) {
  .biton-spotlight-card {
    max-height: 380px;
    border-radius: 12px;
  }

  .spotlight-list {
    max-height: 260px;
  }

  .st-col-price {
    width: 90px;
  }

  .st-col-change {
    width: 65px;
  }

  .spotlight-price {
    width: 90px;
    font-size: 11px;
  }

  .spotlight-change {
    width: 65px;
    font-size: 11px;
  }

  .spotlight-coin {
    gap: 6px;
  }
}

/* ============================================================
   Info Tab Card (Liquidation Chart + Breaking News)
   ============================================================ */
.infotab-col {
  position: relative;
}

.biton-infotab-card {
  position: absolute;
  top: 0;
  left: calc(var(--bs-gutter-x) * .5);
  right: calc(var(--bs-gutter-x) * .5);
  bottom: 0;
  background: var(--bt-card-bg);
  border-radius: 12px;
  box-shadow: var(--bt-card-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background-color .2s, box-shadow .2s;
}

.infotab-header {
  display: flex;
  align-items: center;
  padding: 6px 12px 0;
  flex-shrink: 0;
}

.infotab-more {
  margin-left: auto;
  color: var(--bt-text-muted);
  font-size: 13px;
  padding: 6px 8px;
  transition: color .15s;
}

.infotab-more:hover {
  color: var(--bt-accent);
}

.infotab-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--bt-border);
}

.infotab-tab {
  background: none;
  border: none;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bt-text-muted);
  cursor: pointer;
  position: relative;
  transition: color .2s;
}

.infotab-tab:hover {
  color: var(--bt-text);
}

.infotab-tab.active {
  color: var(--bt-accent);
}

.infotab-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--bt-accent);
  border-radius: 2px 2px 0 0;
}

.infotab-body {
  flex: 1;
  min-height: 0;
  position: relative;
}

.infotab-pane {
  display: none;
  height: 100%;
  overflow-y: auto;
}

.infotab-pane.active {
  display: block;
}

.infotab-pane::-webkit-scrollbar {
  width: 5px;
}

.infotab-pane::-webkit-scrollbar-track {
  background: transparent;
}

.infotab-pane::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .12);
  border-radius: 4px;
}

.infotab-pane::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, .2);
}

[data-theme="light"] .infotab-pane::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .12);
}

[data-theme="light"] .infotab-pane::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, .2);
}

/* Liquidation Tab */
#pane-liquidation {
  display: none;
  flex-direction: column;
  height: 100%;
}

#pane-liquidation.active {
  display: flex;
}

.liq-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--bt-border);
  flex-shrink: 0;
}

.liq-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.liq-stat-label {
  font-size: 10px;
  color: var(--bt-text-muted);
  text-transform: uppercase;
  letter-spacing: .3px;
}

.liq-stat-value {
  font-size: 13px;
  font-weight: 700;
}

.liq-stat.long .liq-stat-value {
  color: #ef4444;
}

.liq-stat.short .liq-stat-value {
  color: #22c55e;
}

.liq-stat.count .liq-stat-value {
  color: var(--bt-text);
}

.liq-ws-badge {
  margin-left: auto;
  font-size: 11px;
  color: var(--bt-text-muted);
}

.liq-ws-badge i {
  font-size: 7px;
  vertical-align: middle;
  margin-right: 3px;
}

.liq-ws-badge.connected {
  color: #22c55e;
}

.liq-ws-badge.connected i {
  animation: wsPulse 2s infinite;
}

/* 메인 미니 롱숏 비율 차트 */
.liq-mini-ratio-wrap {
  padding: 8px 12px;
  flex-shrink: 0;
  max-height: 220px;
  overflow-y: auto;
}

.liq-mini-ratio-wrap::-webkit-scrollbar {
  width: 4px;
}

.liq-mini-ratio-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.liq-mini-ratio-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .12);
  border-radius: 4px;
}

[data-theme="light"] .liq-mini-ratio-wrap::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .1);
}

.liq-mini-ratio-legend {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 11px;
  color: var(--bt-text-muted);
}

.liq-mini-ratio-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.liq-mini-ratio {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.liq-mini-ratio-empty {
  text-align: center;
  padding: 20px 0;
  font-size: 12px;
  color: var(--bt-text-muted);
}

.liq-mr-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 4px;
  padding: 3px 0;
}

.liq-mr-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.liq-mr-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
}

.liq-mr-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.liq-mr-symbol {
  font-size: 11px;
  font-weight: 700;
  color: var(--bt-text);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.liq-mr-total {
  font-size: 10px;
  color: var(--bt-text-muted);
  line-height: 1.2;
}

.liq-mr-bar-wrap {
  display: flex;
  width: 100%;
  height: 20px;
  border-radius: 3px;
  overflow: hidden;
}

.liq-mr-bar-wrap .liq-rc-bar-pct {
  font-size: 10px;
}

.liq-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 2;
  min-height: 0;
  overflow-y: auto;
  border-top: 1px solid var(--bt-border);
}

.liq-feed::-webkit-scrollbar {
  width: 4px;
}

.liq-feed::-webkit-scrollbar-track {
  background: transparent;
}

.liq-feed::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .1);
  border-radius: 4px;
}

[data-theme="light"] .liq-feed::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .1);
}

.liq-feed-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .03);
  transition: background .15s;
}

[data-theme="light"] .liq-feed-item {
  border-bottom-color: rgba(0, 0, 0, .04);
}

.liq-feed-item:hover {
  background: rgba(255, 255, 255, .03);
}

[data-theme="light"] .liq-feed-item:hover {
  background: rgba(0, 0, 0, .02);
}

.liq-feed-side {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  min-width: 28px;
  text-align: center;
}

.liq-long .liq-feed-side {
  background: rgba(239, 68, 68, .15);
  color: #ef4444;
}

.liq-short .liq-feed-side {
  background: rgba(34, 197, 94, .15);
  color: #22c55e;
}

.liq-feed-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.liq-feed-symbol {
  font-weight: 600;
  color: var(--bt-text);
  min-width: 50px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.liq-feed-usd {
  font-weight: 600;
  color: var(--bt-text);
  min-width: 60px;
  text-align: right;
}

.liq-feed-price {
  color: var(--bt-text-muted);
  font-size: 11px;
  flex: 1;
  text-align: right;
}

.liq-feed-time {
  color: var(--bt-text-muted);
  font-size: 10px;
  min-width: 50px;
  text-align: right;
}

/* News Tab */
.infotab-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.biton-standalone-card .standalone-body {
  overflow-y: auto;
}
.biton-standalone-card .standalone-body::-webkit-scrollbar {
  width: 6px;
}
.biton-standalone-card .standalone-body::-webkit-scrollbar-track {
  background: transparent;
}
.biton-standalone-card .standalone-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .15);
  border-radius: 3px;
}
body:not(.dark) .biton-standalone-card .standalone-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .12);
}

.infotab-news-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--bt-border);
  transition: background .15s;
}

.infotab-news-item:last-child {
  border-bottom: none;
}

.infotab-news-item:hover {
  background: rgba(255, 255, 255, .03);
}

[data-theme="light"] .infotab-news-item:hover {
  background: rgba(0, 0, 0, .02);
}

.news-item-source {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.news-source-icon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}

.news-type-icon {
  font-size: 13px;
  flex-shrink: 0;
}

.news-type-icon.tweet {
  color: #1d9bf0;
}

.news-type-icon.article {
  color: var(--bt-text-muted);
  font-size: 11px;
}

.news-source-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--bt-text);
}

.infotab-news-item.is-tweet {
  border-left: 2px solid #1d9bf0;
}

.news-item-time {
  font-size: 11px;
  color: var(--bt-text-muted);
  margin-left: auto;
}

.news-original-link {
  font-size: 10px;
  color: var(--bt-text-muted);
  margin-left: 6px;
  opacity: 0.5;
  transition: opacity 0.15s;
}
.news-original-link:hover {
  opacity: 1;
  color: var(--bt-accent);
}

.news-item-title {
  font-size: 13px;
  line-height: 1.5;
  color: var(--bt-text);
  margin: 0;
}

.news-item-title a {
  color: inherit;
  text-decoration: none;
}

.news-item-title a:hover {
  color: var(--bt-accent);
}

.news-item-summary {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--bt-text-muted, #888);
  margin: 2px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-urgency {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: middle;
}

.news-urgency.hot {
  background: rgba(239, 68, 68, .15);
  color: #ef4444;
}

.news-urgency.important {
  background: rgba(245, 158, 11, .15);
  color: #f59e0b;
}

.news-loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--bt-text-muted);
  font-size: 13px;
}

.news-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--bt-text-muted);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 991.98px) {
  .infotab-col {
    position: static;
  }

  .biton-infotab-card {
    position: static;
    max-height: 500px;
  }
}

/* ============================================================
   Liquidation Detail Page
   ============================================================ */
.liq-page {
  padding: 0;
}

.liq-page-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.liq-page-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--bt-text);
}

.liq-time-btns {
  display: flex;
  gap: 4px;
  background: var(--bt-card-bg);
  border-radius: 8px;
  padding: 3px;
  border: 1px solid var(--bt-border);
}

.liq-time-btn {
  background: none;
  border: none;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--bt-text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
}

.liq-time-btn:hover {
  color: var(--bt-text);
}

.liq-time-btn.active {
  background: var(--bt-accent);
  color: #fff;
}

.liq-toggle-group {
  display: flex;
  gap: 4px;
  margin-left: auto;
  background: var(--bt-card-bg);
  border-radius: 8px;
  padding: 3px;
  border: 1px solid var(--bt-border);
}

.liq-toggle-btn {
  background: none;
  border: none;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bt-text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
}

.liq-toggle-btn:hover {
  color: var(--bt-text);
}

.liq-toggle-btn.active {
  background: var(--bt-accent);
  color: #fff;
}

/* Stat Cards */
.liq-stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.liq-stat-card {
  background: var(--bt-card-bg);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: var(--bt-card-shadow);
}

.liq-stat-card-label {
  font-size: 12px;
  color: var(--bt-text-muted);
  margin-bottom: 4px;
}

.liq-stat-card-total {
  font-size: 20px;
  font-weight: 700;
  color: var(--bt-text);
  margin-bottom: 6px;
}

.liq-stat-card-row {
  font-size: 12px;
  color: var(--bt-text);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
}

.liq-stat-card-row span:last-child {
  margin-left: auto;
  font-weight: 600;
}

.long-dot,
.short-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.long-dot {
  background: #ef4444;
}

.short-dot {
  background: #22c55e;
}

/* Panels */
.liq-panel {
  background: var(--bt-card-bg);
  border-radius: 12px;
  box-shadow: var(--bt-card-shadow);
  overflow: hidden;
}

.liq-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;
  color: var(--bt-text);
  border-bottom: 1px solid var(--bt-border);
}

.liq-panel-sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--bt-text-muted);
}

/* Heatmap (Treemap) */
.liq-heatmap-wrap {
  position: relative;
  min-height: 350px;
  overflow: hidden;
}

.hm-cell {
  position: absolute;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, .3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: default;
  transition: filter .15s, z-index 0s;
}

.hm-cell:hover {
  filter: brightness(1.2);
  z-index: 2;
  border-color: rgba(255, 255, 255, .4);
}

.hm-sym {
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  padding: 0 2px;
}

.hm-name {
  font-weight: 500;
  color: rgba(255, 255, 255, .7);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  padding: 0 2px;
}

.hm-tip-name {
  font-weight: 400;
  font-size: 11px;
  color: rgba(255, 255, 255, .6);
  margin-left: 4px;
}

.hm-val {
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  padding: 0 2px;
}

.liq-heatmap-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--bt-text-muted);
  font-size: 14px;
}

.hm-tooltip {
  position: absolute;
  z-index: 10;
  background: rgba(15, 15, 20, .94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  padding: 12px 16px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .12s, transform .12s;
  min-width: 155px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}

.hm-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.hm-tip-sym {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.hm-tip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #9ca3af;
  padding: 2px 0;
}

.hm-tip-val {
  font-weight: 600;
  color: #fff;
}

.hm-tip-long {
  color: #ef4444;
}

.hm-tip-short {
  color: #22c55e;
}

[data-theme="light"] .hm-tooltip {
  background: rgba(255, 255, 255, .96);
  border-color: rgba(0, 0, 0, .1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}

[data-theme="light"] .hm-tip-sym {
  color: #111;
}

[data-theme="light"] .hm-tip-row {
  color: #6b7280;
}

[data-theme="light"] .hm-tip-val {
  color: #111;
}

/* Detail Chart */
.liq-detail-chart-wrap {
  padding: 12px;
  height: 280px;
}

/* Detail Feed */
.liq-feed-panel {
  display: flex;
  flex-direction: column;
}

.liq-detail-feed-head {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 11px;
  color: var(--bt-text-muted);
  border-bottom: 1px solid var(--bt-border);
}

.liq-dh-sym {
  width: 70px;
}

.liq-dh-price {
  flex: 1;
  text-align: right;
}

.liq-dh-val {
  width: 70px;
  text-align: right;
}

.liq-dh-time {
  width: 65px;
  text-align: right;
}

.liq-detail-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  overflow-y: auto;
}

.liq-detail-feed::-webkit-scrollbar {
  width: 4px;
}

.liq-detail-feed::-webkit-scrollbar-track {
  background: transparent;
}

.liq-detail-feed::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .1);
  border-radius: 4px;
}

[data-theme="light"] .liq-detail-feed::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .1);
}

.liq-dfeed-item {
  display: flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .03);
  transition: background .1s;
}

[data-theme="light"] .liq-dfeed-item {
  border-bottom-color: rgba(0, 0, 0, .04);
}

.liq-dfeed-item:hover {
  background: rgba(255, 255, 255, .03);
}

[data-theme="light"] .liq-dfeed-item:hover {
  background: rgba(0, 0, 0, .02);
}

.liq-df-side {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  min-width: 28px;
  text-align: center;
  margin-right: 6px;
}

.liq-long .liq-df-side {
  background: rgba(239, 68, 68, .15);
  color: #ef4444;
}

.liq-short .liq-df-side {
  background: rgba(34, 197, 94, .15);
  color: #22c55e;
}

.liq-df-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 6px;
}

.liq-df-sym {
  min-width: 60px;
  font-weight: 600;
  color: var(--bt-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.liq-df-price {
  flex: 1;
  text-align: right;
  color: var(--bt-text-muted);
  font-size: 11px;
}

.liq-df-val {
  width: 70px;
  text-align: right;
  font-weight: 600;
  color: var(--bt-text);
}

.liq-df-time {
  width: 65px;
  text-align: right;
  color: var(--bt-text-muted);
  font-size: 10px;
}

.liq-dfeed-empty {
  text-align: center;
  padding: 40px;
  color: var(--bt-text-muted);
}

.liq-live-dot {
  font-size: 7px;
  color: #22c55e;
  animation: wsPulse 2s infinite;
  vertical-align: middle;
  margin-left: 4px;
}

/* Symbol Table */
/* 롱 vs 숏 포지션 비율 차트 */
.liq-ratio-chart-wrap {
  padding: 16px;
}

.liq-ratio-legend {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding: 0 4px;
}

.liq-ratio-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--bt-text-muted);
}

.liq-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.liq-legend-dot.liq-legend-long {
  background: #26a69a;
}

.liq-legend-dot.liq-legend-short {
  background: #ef5350;
}

.liq-ratio-chart {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.liq-rc-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 0;
  padding: 8px 4px;
  border-radius: 4px;
  transition: background .15s;
}

.liq-rc-row:hover {
  background: rgba(255, 255, 255, .03);
}

[data-theme="light"] .liq-rc-row:hover {
  background: rgba(0, 0, 0, .02);
}

.liq-rc-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.liq-rc-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}

.liq-rc-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.liq-rc-symbol {
  font-size: 13px;
  font-weight: 700;
  color: var(--bt-text);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.liq-rc-total {
  font-size: 11px;
  color: var(--bt-text-muted);
  line-height: 1.2;
}

.liq-rc-bar-wrap {
  display: flex;
  width: 100%;
  height: 38px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.liq-rc-bar-long,
.liq-rc-bar-short {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100%;
  position: relative;
  min-width: 0;
  transition: width .4s ease;
}

.liq-rc-bar-long {
  background: #26a69a;
}

.liq-rc-bar-short {
  background: #ef5350;
}

.liq-rc-bar-pct {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}

.liq-rc-bar-amt {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, .8);
  line-height: 1.1;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}

.liq-rc-bar-long.liq-rc-narrow .liq-rc-bar-pct,
.liq-rc-bar-long.liq-rc-narrow .liq-rc-bar-amt,
.liq-rc-bar-short.liq-rc-narrow .liq-rc-bar-pct,
.liq-rc-bar-short.liq-rc-narrow .liq-rc-bar-amt {
  font-size: 9px;
}

.liq-rc-bar-long.liq-rc-hidden .liq-rc-bar-pct,
.liq-rc-bar-long.liq-rc-hidden .liq-rc-bar-amt,
.liq-rc-bar-short.liq-rc-hidden .liq-rc-bar-pct,
.liq-rc-bar-short.liq-rc-hidden .liq-rc-bar-amt {
  display: none;
}

@media (max-width: 767.98px) {
  .liq-rc-row {
    grid-template-columns: 80px 1fr;
  }

  .liq-rc-symbol {
    font-size: 12px;
  }

  .liq-rc-total {
    font-size: 10px;
  }

  .liq-rc-bar-wrap {
    height: 32px;
  }

  .liq-rc-bar-pct {
    font-size: 11px;
  }

  .liq-rc-bar-amt {
    font-size: 9px;
  }
}

/* Responsive */
@media (max-width: 767.98px) {
  .liq-stat-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .liq-page-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .liq-toggle-group {
    margin-left: 0;
  }

  .liq-heatmap-cell {
    min-width: 60px;
    min-height: 55px;
    padding: 8px;
  }

  .hm-symbol {
    font-size: 13px;
  }

  .hm-usd {
    font-size: 11px;
  }
}

/* ============================================================
   Spotlight Detail Page
   ============================================================ */
.sp-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 0 40px;
}

.sp-page-header {
  margin-bottom: 20px;
}

.sp-page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--bt-text);
  margin: 0 0 6px;
}

.sp-page-desc {
  font-size: 13px;
  color: #9ca3af;
  margin: 0;
}

.sp-filter-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

.sp-filter-tabs::-webkit-scrollbar { display: none; }

.sp-filter-tab {
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--bt-border);
  border-radius: 20px;
  background: transparent;
  color: var(--bt-text);
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
}

.sp-filter-tab:hover {
  border-color: var(--bt-accent);
  color: var(--bt-accent);
}

.sp-filter-tab.active {
  background: var(--bt-accent);
  border-color: var(--bt-accent);
  color: #fff;
}

.sp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.sp-grid.sp-detail-mode {
  display: block;
}

.sp-card {
  background: var(--bt-card-bg);
  border-radius: 12px;
  border: 1px solid var(--bt-border);
  overflow: hidden;
  transition: box-shadow .2s;
}

.sp-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

body.dark .sp-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}

.sp-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
}

.sp-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--bt-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-card-title i {
  font-size: 15px;
}

.sp-table-header {
  display: flex;
  align-items: center;
  padding: 0 16px 8px;
  font-size: 11px;
  color: #9ca3af;
  border-bottom: 1px solid var(--bt-border);
}

.sp-th-rank { width: 28px; flex-shrink: 0; }
.sp-th-name { flex: 1; min-width: 0; }
.sp-th-col2 { width: 130px; text-align: right; flex-shrink: 0; }
.sp-th-col3 { width: 120px; text-align: right; flex-shrink: 0; }

.sp-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sp-row {
  display: flex;
  align-items: center;
  padding: 9px 16px;
  border-bottom: 1px solid var(--bt-border);
  transition: background-color .15s;
}

.sp-row:last-child { border-bottom: none; }

.sp-row:hover {
  background-color: var(--bt-dropdown-hover, rgba(219,219,219,.23));
}

.sp-rank {
  width: 28px;
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
  flex-shrink: 0;
}

.sp-coin {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sp-coin-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.sp-coin-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--bt-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-col2 {
  width: 130px;
  text-align: right;
  font-size: 12px;
  font-weight: 500;
  color: var(--bt-text);
  flex-shrink: 0;
  white-space: nowrap;
}

.sp-col3 {
  width: 120px;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--bt-text);
}

.sp-up { color: #16c784; }
.sp-down { color: #ea3943; }

.sp-loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 16px;
  color: #9ca3af;
  font-size: 14px;
  gap: 8px;
}

@media (max-width: 991.98px) {
  .sp-grid:not(.sp-detail-mode) { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767.98px) {
  .sp-grid:not(.sp-detail-mode) { grid-template-columns: 1fr; }

  .sp-page { padding: 12px 0 30px; }
  .sp-page-title { font-size: 18px; }

  .sp-card-header { padding: 12px 14px 8px; }
  .sp-row { padding: 8px 14px; }
  .sp-table-header { padding: 0 14px 6px; }

  .sp-th-col2, .sp-col2 { width: 110px; }
  .sp-th-col3, .sp-col3 { width: 100px; }
  .sp-col2 { font-size: 11px; }
  .sp-col3 { font-size: 11px; }
  .sp-coin-icon { width: 20px; height: 20px; }
  .sp-coin-name { font-size: 12px; }
}

@media (max-width: 575.98px) {
  .sp-th-col2, .sp-col2 { width: 95px; font-size: 11px; }
  .sp-th-col3, .sp-col3 { width: 85px; font-size: 10px; }
  .sp-coin { gap: 6px; }
  .sp-rank { width: 22px; font-size: 11px; }
}

/* ─── Spotlight Detail Table (개별 탭 상세 뷰) ───────── */
.spd-wrap {
  background: var(--bt-card-bg, #fff);
  border-radius: 14px;
  border: 1px solid var(--bt-border, rgba(0,0,0,.08));
  overflow: hidden;
}
.spd-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--bt-text, #1a1a2e);
}
.spd-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.spd-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}
.spd-table thead th {
  position: sticky;
  top: 0;
  background: var(--bt-card-bg, #fff);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--bt-text-muted, #6b7280);
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--bt-border, rgba(0,0,0,.08));
}
.spd-th-rank { text-align: center !important; width: 48px; }
.spd-th-coin { text-align: left !important; min-width: 180px; }
.spd-th-price { width: 140px; }
.spd-th-pct { width: 90px; }
.spd-th-vol { width: 130px; }
.spd-th-mcap { width: 140px; }

.spd-row {
  transition: background-color .15s;
}
.spd-row:hover {
  background-color: var(--bt-dropdown-hover, rgba(219,219,219,.15));
}
.spd-row td {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--bt-text, #1a1a2e);
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--bt-border, rgba(0,0,0,.04));
}
.spd-rank {
  text-align: center;
  font-weight: 500;
  color: var(--bt-text-muted, #6b7280);
  font-size: 12px;
}
.spd-coin {
  text-align: left !important;
  display: flex;
  align-items: center;
  gap: 10px;
}
.spd-coin-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
}
.spd-coin-name {
  font-weight: 600;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spd-coin-ticker {
  font-size: 11px;
  font-weight: 500;
  color: var(--bt-text-muted, #6b7280);
  text-transform: uppercase;
}
.spd-price {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.spd-pct {
  font-variant-numeric: tabular-nums;
}
.spd-vol, .spd-mcap {
  font-variant-numeric: tabular-nums;
  color: var(--bt-text-muted, #6b7280);
  font-size: 12px;
}
.sp-flat { color: var(--bt-text-muted, #6b7280); }

/* Sparkline */
.spd-spark-cell {
  text-align: center !important;
  padding: 8px 10px !important;
}
.spd-spark {
  display: inline-block;
  vertical-align: middle;
}
.spd-no-spark {
  color: var(--bt-text-muted, #6b7280);
  font-size: 11px;
}
.spd-th-spark { width: 140px; text-align: center !important; }

/* Sortable headers */
.spd-sortable {
  cursor: pointer;
  user-select: none;
  transition: color .15s;
}
.spd-sortable:hover {
  color: var(--bt-text, #1a1a2e);
}
.spd-sort-icon {
  font-size: 10px;
  margin-left: 3px;
  color: var(--bt-text-muted, #9ca3af);
  vertical-align: middle;
}
.spd-sort-icon.active {
  color: var(--bt-accent, #3b82f6);
}

@media (max-width: 767.98px) {
  .spd-title-row { padding: 14px 16px 10px; font-size: 15px; }
  .spd-table thead th { padding: 8px 10px; font-size: 11px; }
  .spd-row td { padding: 10px; font-size: 12px; }
  .spd-coin-icon { width: 22px; height: 22px; }
  .spd-coin-name { font-size: 12px; }
  .spd-th-pct { width: 75px; }
  .spd-th-spark { width: 100px; }
  .spd-spark { width: 80px; height: 28px; }
}

/* ============================================================
   AI Trading Signal Widget (Compact - col-4)
   ============================================================ */
.signal-widget {
  background-color: var(--bt-card-bg);
  border-radius: 16px;
  box-shadow: var(--bt-card-shadow);
  overflow: hidden;
  padding: 0;
  transition: background-color .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 510px;
}
body.dark .signal-widget {
  box-shadow: 0 2px 16px rgba(0, 0, 0, .3);
}
.signal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  flex-shrink: 0;
}
.signal-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--bt-text);
}
.signal-title i {
  color: var(--bt-accent);
  margin-right: 4px;
}
.signal-badge {
  background: var(--bt-accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
  animation: signalPulse 2s ease-in-out infinite;
}
@keyframes signalPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.signal-time {
  font-size: 11px;
  color: #999;
}
.signal-header-spacer {
  flex: 1;
}
.signal-more {
  font-size: 12px;
  color: #999;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.signal-more:hover {
  color: var(--bt-accent);
}
.signal-table-wrap {
  overflow-x: auto;
  flex: 1;
  min-height: 0;
}
.signal-compact {
  overflow-y: auto;
}
.signal-compact::-webkit-scrollbar {
  width: 5px;
}
.signal-compact::-webkit-scrollbar-track {
  background: transparent;
}
.signal-compact::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .12);
  border-radius: 3px;
}
body:not(.dark) .signal-compact::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .1);
}
.signal-compact .signal-table {
  table-layout: fixed;
}
.signal-compact .signal-table th:nth-child(1),
.signal-compact .signal-table td:nth-child(1) { width: 30%; }
.signal-compact .signal-table th:nth-child(2),
.signal-compact .signal-table td:nth-child(2) { width: 30%; }
.signal-compact .signal-table th:nth-child(3),
.signal-compact .signal-table td:nth-child(3) { width: 15%; }
.signal-compact .signal-table th:nth-child(4),
.signal-compact .signal-table td:nth-child(4) { width: 25%; }
.signal-table {
  width: 100%;
  border-collapse: collapse;
}
.signal-table th {
  text-align: left;
  padding: 6px 12px;
  color: #999;
  font-size: 11px;
  font-weight: 600;
  border-bottom: 1px solid var(--bt-border);
  white-space: nowrap;
  position: sticky;
  top: 0;
  background-color: var(--bt-card-bg);
  z-index: 1;
}
.signal-table td {
  padding: 7px 12px;
  border-bottom: 1px solid var(--bt-border);
  vertical-align: middle;
  color: var(--bt-text);
  font-size: 13px;
}
.signal-table tbody tr:hover {
  background: var(--bt-dropdown-hover);
}
.signal-coin-cell {
  display: flex !important;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.signal-coin-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
}
.signal-table .price {
  white-space: nowrap;
  font-size: 12px;
}
.signal-table .coin-name {
  font-size: 11px;
  color: #999;
}
.signal-table .price {
  font-weight: bold;
  white-space: nowrap;
}
.signal-table .price-usd {
  font-size: 11px;
  color: #999;
}
.signal-reason {
  font-size: 12px;
  color: #999;
  max-width: 250px;
}
.signal-source {
  font-size: 10px;
  color: #777;
}
.signal-loading {
  text-align: center;
  color: #999;
  padding: 30px 12px !important;
}
.strength-bar {
  width: 50px;
  height: 5px;
  background: var(--bt-border);
  border-radius: 3px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}
.strength-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}
.strength-text {
  font-size: 11px;
  color: #999;
}
.signal-footer {
  display: flex;
  justify-content: space-between;
  padding: 8px 16px;
  font-size: 10px;
  color: #999;
  border-top: 1px solid var(--bt-border);
  flex-shrink: 0;
}

/* ============================================================
   Standalone Cards (청산차트, 코인뉴스 분리)
   ============================================================ */
.biton-standalone-card {
  background-color: var(--bt-card-bg);
  border-radius: 16px;
  box-shadow: var(--bt-card-shadow);
  overflow: hidden;
  transition: background-color .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  max-height: 650px;
}
.biton-standalone-card .liq-feed {
  max-height: none;
  overflow-y: visible;
  flex: none;
}
.biton-standalone-card .liq-mini-ratio-wrap {
  max-height: none;
  overflow-y: visible;
}
body.dark .biton-standalone-card {
  box-shadow: 0 2px 16px rgba(0, 0, 0, .3);
}
.standalone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  flex-shrink: 0;
}
.standalone-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--bt-text);
}
.standalone-title i {
  margin-right: 6px;
  color: var(--bt-accent);
}
.standalone-more {
  font-size: 12px;
  color: #999;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.standalone-more:hover {
  color: var(--bt-accent);
}
.standalone-body {
  padding: 0 16px 16px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ── Sector Trend Widget (섹터 동향) ── */
.sector-trend-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sector-trend-item {
  padding: 0;
  border-bottom: 1px solid var(--bt-border);
  transition: background .15s;
}
.sector-trend-item:last-child {
  border-bottom: none;
}
.sector-trend-item:hover {
  background: rgba(255,255,255,.03);
}
body:not(.dark) .sector-trend-item:hover {
  background: rgba(0,0,0,.02);
}
.sector-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}
.sector-rank {
  font-size: 11px;
  color: #888;
  min-width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.sector-info {
  flex: 1;
  min-width: 0;
}
.sector-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--bt-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sector-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .3s ease, opacity .25s ease, padding .3s ease;
  padding: 0 0 0 28px;
}
.sector-trend-item:hover .sector-detail {
  max-height: 80px;
  opacity: 1;
  padding: 0 0 10px 28px;
}
.sector-desc {
  font-size: 11px;
  color: #999;
  line-height: 1.5;
  margin-bottom: 4px;
}
.sector-mcap {
  font-size: 11px;
  color: #888;
  margin-top: 1px;
}
.sector-coins {
  display: flex;
  flex-shrink: 0;
}
.sector-coins img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bt-card-bg);
  margin-left: -8px;
}
.sector-coins img:first-child {
  margin-left: 0;
}
.sector-top-coins {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sector-top-label {
  font-size: 10px;
  color: var(--bt-accent);
  font-weight: 700;
  flex-shrink: 0;
}
.sector-top-coin {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: #aaa;
}
.sector-top-coin img {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  margin-left: 0;
}
.sector-change {
  font-size: 13px;
  font-weight: 700;
  min-width: 58px;
  text-align: right;
  flex-shrink: 0;
}
.sector-change.up { color: #16c784; }
.sector-change.down { color: #ea3943; }
.sector-change.flat { color: #888; }
.sector-bar {
  width: 36px;
  height: 4px;
  background: rgba(255,255,255,.08);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
body:not(.dark) .sector-bar {
  background: rgba(0,0,0,.06);
}
.sector-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width .3s;
}
.sector-bar-fill.up { background: #16c784; }
.sector-bar-fill.down { background: #ea3943; }
.sector-loading,
.sector-empty {
  text-align: center;
  padding: 40px 20px;
  color: #888;
  font-size: 13px;
}
.sector-help-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 15px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  transition: color .2s;
}
.sector-help-btn:hover,
.sector-help-btn.active {
  color: var(--bt-accent);
}
.sector-help-box {
  display: none;
  margin: 0 16px 8px;
  padding: 10px 14px;
  background: rgba(75,169,140,.08);
  border-left: 3px solid var(--bt-accent);
  border-radius: 0 8px 8px 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--bt-text);
  animation: sectorHelpIn .2s ease;
}
.sector-help-box.show { display: block; }
.sector-help-box p { margin: 0; }
.sector-help-box strong { color: var(--bt-accent); }
@keyframes sectorHelpIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767.98px) {
  .signal-header { gap: 6px; }
  .signal-title { font-size: 14px; }
  .signal-table th { font-size: 10px; padding: 5px 8px; }
  .signal-table td { padding: 6px 8px; font-size: 12px; }
  .signal-footer { padding: 6px 14px; }
  .sector-bar { display: none; }
  .sector-coins img { width: 22px; height: 22px; }
  .sector-name { font-size: 12px; }
  .sector-change { font-size: 12px; min-width: 50px; }
}