/* ═══════════════════════════════════════════════════════════
   TrueScan.xyz — Luxury Asset Intelligence
   Complete Style Sheet — Readable · Elegant · 6 Themes
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Mono:wght@300;400;500&family=Unbounded:wght@200;400;700;900&family=Noto+Sans+Arabic:wght@300;400;600&family=Noto+Sans+SC:wght@300;400;700&family=Noto+Sans+JP:wght@300;400&display=swap');

/* ══════════════════════════════════════════════════════
   THEME 1 — DARK GOLD (Default)
   ══════════════════════════════════════════════════════ */
:root,
[data-theme="dark-gold"] {
  --accent:       #C9A84C;
  --accent-light: #E8C97A;
  --accent-dim:   #7A6130;
  --black:        #080808;
  --surface:      #0F0F0F;
  --surface2:     #161616;
  --surface3:     #1E1E1E;
  --surface4:     #242424;
  --border:       rgba(201,168,76,0.18);
  --border2:      rgba(201,168,76,0.35);
  --text:         #E8E2D4;
  --text-dim:     #6A6458;
  --text-mid:     #A09880;
  --nav-bg:       rgba(8,8,8,0.97);
  --overlay-bg:   rgba(8,8,8,0.98);
  --sidebar-bg:   #0C0C0C;
  --right-bg:     #0C0C0C;
  --red:          #E74C3C;
  --green:        #2ECC71;
  --noise-op:     0.035;
}

/* ══════════════════════════════════════════════════════
   THEME 2 — EMERALD GREEN
   ══════════════════════════════════════════════════════ */
[data-theme="emerald"] {
  --accent:       #2ECC71;
  --accent-light: #58D68D;
  --accent-dim:   #1A7A44;
  --black:        #050E08;
  --surface:      #091410;
  --surface2:     #0F1E18;
  --surface3:     #162820;
  --surface4:     #1C3028;
  --border:       rgba(46,204,113,0.18);
  --border2:      rgba(46,204,113,0.35);
  --text:         #D0EAD8;
  --text-dim:     #3E6E50;
  --text-mid:     #78AA8A;
  --nav-bg:       rgba(5,14,8,0.97);
  --overlay-bg:   rgba(5,14,8,0.98);
  --sidebar-bg:   #07100C;
  --right-bg:     #07100C;
  --red:          #E74C3C;
  --green:        #2ECC71;
  --noise-op:     0.025;
}

/* ══════════════════════════════════════════════════════
   THEME 3 — ROYAL BLUE
   ══════════════════════════════════════════════════════ */
[data-theme="royal-blue"] {
  --accent:       #4A90E2;
  --accent-light: #74AEF0;
  --accent-dim:   #1E5BA8;
  --black:        #030712;
  --surface:      #060D1F;
  --surface2:     #0C1530;
  --surface3:     #111D3E;
  --surface4:     #17264C;
  --border:       rgba(74,144,226,0.18);
  --border2:      rgba(74,144,226,0.35);
  --text:         #D0DCFA;
  --text-dim:     #3A5480;
  --text-mid:     #6A88C0;
  --nav-bg:       rgba(3,7,18,0.97);
  --overlay-bg:   rgba(3,7,18,0.98);
  --sidebar-bg:   #050B18;
  --right-bg:     #050B18;
  --red:          #EF4444;
  --green:        #22C55E;
  --noise-op:     0.025;
}

/* ══════════════════════════════════════════════════════
   THEME 4 — ROSE PINK
   ══════════════════════════════════════════════════════ */
[data-theme="rose-pink"] {
  --accent:       #E879A0;
  --accent-light: #F4A8C4;
  --accent-dim:   #9B2255;
  --black:        #0E050A;
  --surface:      #180910;
  --surface2:     #220F18;
  --surface3:     #2E1422;
  --surface4:     #38192A;
  --border:       rgba(232,121,160,0.18);
  --border2:      rgba(232,121,160,0.35);
  --text:         #F5D8E8;
  --text-dim:     #7A3858;
  --text-mid:     #C07090;
  --nav-bg:       rgba(14,5,10,0.97);
  --overlay-bg:   rgba(14,5,10,0.98);
  --sidebar-bg:   #100608;
  --right-bg:     #100608;
  --red:          #FB7185;
  --green:        #34D399;
  --noise-op:     0.025;
}

/* ══════════════════════════════════════════════════════
   THEME 5 — SLATE GREY (Sober)
   ══════════════════════════════════════════════════════ */
[data-theme="slate"] {
  --accent:       #94A3B8;
  --accent-light: #CBD5E1;
  --accent-dim:   #475569;
  --black:        #07090C;
  --surface:      #0D1117;
  --surface2:     #141A24;
  --surface3:     #1C2330;
  --surface4:     #232D3C;
  --border:       rgba(148,163,184,0.15);
  --border2:      rgba(148,163,184,0.30);
  --text:         #E2E8F0;
  --text-dim:     #3E4A5A;
  --text-mid:     #708090;
  --nav-bg:       rgba(7,9,12,0.97);
  --overlay-bg:   rgba(7,9,12,0.98);
  --sidebar-bg:   #090C10;
  --right-bg:     #090C10;
  --red:          #EF4444;
  --green:        #22C55E;
  --noise-op:     0.04;
}

/* ══════════════════════════════════════════════════════
   THEME 6 — CHAMPAGNE (Light Mode)
   ══════════════════════════════════════════════════════ */
[data-theme="champagne"] {
  --accent:       #8B6914;
  --accent-light: #C49A2A;
  --accent-dim:   #5A4510;
  --black:        #FAF6EF;
  --surface:      #F2EDE4;
  --surface2:     #E8E0D2;
  --surface3:     #DDD4C0;
  --surface4:     #D0C4AE;
  --border:       rgba(139,105,20,0.20);
  --border2:      rgba(139,105,20,0.40);
  --text:         #1A1510;
  --text-dim:     #8A7A60;
  --text-mid:     #5A4C38;
  --nav-bg:       rgba(250,246,239,0.97);
  --overlay-bg:   rgba(242,237,228,0.98);
  --sidebar-bg:   #F2EDE4;
  --right-bg:     #F2EDE4;
  --red:          #C0392B;
  --green:        #1A7A44;
  --noise-op:     0.015;
}

/* ══════════════════════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════════════════════ */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html { font-size: 16px; }
body {
  min-height: 100vh;
  background: var(--black);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}
::selection { background: rgba(201,168,76,0.20); }
::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }
::-webkit-scrollbar-track { background: transparent; }

/* Subtle noise texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9997;
  opacity: var(--noise-op, 0.035);
}

/* ══════════════════════════════════════════════════════
   THEME SWITCHER — Right Edge
   ══════════════════════════════════════════════════════ */
.theme-switcher {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-right: none;
  overflow: hidden;
  border-radius: 6px 0 0 6px;
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
}
.theme-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  position: relative;
}
.theme-btn:last-child { border-bottom: none; }
.theme-btn:hover { transform: translateX(-4px); opacity: 0.85; }
.theme-btn.active { box-shadow: inset -3px 0 0 white; }
.theme-btn[data-theme-target="dark-gold"]  { background: linear-gradient(135deg,#1A1A1A 40%,#C9A84C); }
.theme-btn[data-theme-target="emerald"]    { background: linear-gradient(135deg,#091408 40%,#2ECC71); }
.theme-btn[data-theme-target="royal-blue"] { background: linear-gradient(135deg,#040A1E 40%,#4A90E2); }
.theme-btn[data-theme-target="rose-pink"]  { background: linear-gradient(135deg,#150810 40%,#E879A0); }
.theme-btn[data-theme-target="slate"]      { background: linear-gradient(135deg,#0D1117 40%,#94A3B8); }
.theme-btn[data-theme-target="champagne"]  { background: linear-gradient(135deg,#E8E0D0 40%,#8B6914); }

/* ── MOBILE: theme switcher becomes a collapsed pull-tab ── */
@media (max-width: 960px) {
  .theme-switcher {
    /* slide off screen — only the tab handle peeks out */
    transform: translateY(-50%) translateX(calc(100% - 22px));
    border-radius: 6px 0 0 6px;
  }
  .theme-switcher::before {
    content: '🎨';
    position: absolute;
    left: -22px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 48px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 6px 0 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    line-height: 48px;
    text-align: center;
  }
  .theme-switcher.open {
    transform: translateY(-50%) translateX(0);
  }
}

/* ══════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 64px;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* LOGO */
.logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}
.logo-wordmark {
  display: flex;
  align-items: baseline;
  gap: 0;
  line-height: 1;
}
.logo-true {
  font-family: 'Unbounded', sans-serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.logo-scan {
  font-family: 'Unbounded', sans-serif;
  font-weight: 200;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--text);
  opacity: 0.7;
}
.logo-tagline {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  text-transform: uppercase;
  padding-left: 1px;
}

/* NAV LINKS */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid transparent;
  transition: all 0.18s;
  white-space: nowrap;
  user-select: none;
}
.nav-link:hover  { color: var(--accent); border-color: var(--border); }
.nav-link.active { color: var(--accent); border-color: var(--border2); background: rgba(201,168,76,0.05); }

/* NAV RIGHT */
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-badge {
  font-family: 'Unbounded', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border-radius: 2px;
}
.nav-badge.free    { background: var(--surface3); color: var(--text-dim); border: 1px solid var(--border); }
.nav-badge.trial   { background: rgba(46,204,113,0.12); color: var(--green); border: 1px solid rgba(46,204,113,0.3); }
.nav-badge.premium { background: linear-gradient(135deg, var(--accent-dim), var(--accent)); color: #000; border: none; }

.nav-free-count {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--green);
  padding: 4px 10px;
  border: 1px solid rgba(46,204,113,0.25);
  background: rgba(46,204,113,0.06);
  letter-spacing: 0.04em;
}

.nav-wallet {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: rgba(46,204,113,0.07);
  border: 1px solid rgba(46,204,113,0.25);
  font-size: 11px;
  color: var(--green);
  cursor: pointer;
  letter-spacing: 0.04em;
}
.nav-wallet-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 0 rgba(46,204,113,0.4); }
  70%      { box-shadow: 0 0 0 6px rgba(46,204,113,0); }
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 5px 10px;
  cursor: pointer;
  font-size: 15px;
  transition: border-color 0.18s;
  line-height: 1;
}
.lang-btn:hover { border-color: var(--border2); }

.hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.18s;
}
.hamburger:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 900px) {
  nav { padding: 0 16px; }
  .nav-links { display: none; }
  .hamburger { display: block; }
}

/* ── Logo always LTR — prevents Arabic RTL from flipping TRUE SCAN → SCAN TRUE ── */
.logo,
.logo-wordmark { direction: ltr !important; unicode-bidi: embed; }

/* ── Mobile header — compact & uncluttered ──────────────────────────────── */
@media (max-width: 600px) {
  nav {
    padding: 0 12px;
    height: 56px;
  }

  /* Shrink logo, hide tagline */
  .logo-true,
  .logo-scan   { font-size: 17px; }
  .logo-tagline { display: none; }

  /* Tighter right cluster */
  .nav-right { gap: 5px; }

  /* Hide FREE / TRIAL badge on mobile — free count already shows the status */
  .nav-badge.free,
  .nav-badge.trial { display: none; }

  /* LIFETIME badge: keep but compact */
  .nav-badge.premium {
    font-size: 7px;
    padding: 3px 6px;
    letter-spacing: 0.06em;
  }

  /* Free count — smaller */
  .nav-free-count {
    font-size: 9px;
    padding: 3px 7px;
    letter-spacing: 0;
    white-space: nowrap;
  }

  /* Wallet chip — shorter */
  .nav-wallet {
    padding: 4px 7px;
    font-size: 9px;
    gap: 4px;
    letter-spacing: 0;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav-wallet-dot { width: 5px; height: 5px; }

  /* Globe button */
  .lang-btn {
    padding: 4px 7px;
    font-size: 13px;
  }

  /* Hamburger */
  .hamburger {
    padding: 5px 8px;
    font-size: 14px;
  }

  /* Ticker drops to sit flush under 56px nav */
  .ticker-strip { top: 56px; }

  /* App shell padding-top = 56px nav + 32px ticker */
  .app-shell { padding-top: 88px; }
}

/* Sidebar top offset matches mobile nav on small screens */
@media (max-width: 600px) {
  .sidebar { top: 88px !important; }
}

/* ══════════════════════════════════════════════════════
   TICKER STRIP
   ══════════════════════════════════════════════════════ */
.ticker-strip {
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  z-index: 190;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  padding: 7px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-flex;
  align-items: center;
  animation: ticker-scroll 60s linear infinite;
}
.ticker-inner:hover { animation-play-state: paused; }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 28px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  white-space: nowrap;
}
.ticker-name { color: var(--text); font-size: 12px; }
.ticker-up   { color: var(--green); }
.ticker-dn   { color: var(--red); }

/* ══════════════════════════════════════════════════════
   MAIN LAYOUT
   ══════════════════════════════════════════════════════ */
.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr 300px;
  grid-template-rows: 1fr;
  height: 100vh;
  padding-top: 96px; /* nav 64 + ticker 32 */
  overflow: hidden;
}
@media (max-width: 1200px) { .app-shell { grid-template-columns: 240px 1fr 280px; } }
@media (max-width: 960px)  { .app-shell { grid-template-columns: 220px 1fr; } }
@media (max-width: 960px)  { .app-shell { grid-template-columns: 1fr; padding-bottom: 72px; } }

/* ══════════════════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════════════════ */
.sidebar {
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.sidebar::-webkit-scrollbar { width: 3px; }

@media (max-width: 720px) {
  .sidebar {
    position: fixed;
    top: 96px; bottom: 64px;
    left: 0;
    width: 280px;
    z-index: 300;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  }
  .sidebar.open { transform: translateX(0); }
}

.sb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 250;
  backdrop-filter: blur(2px);
}
.sb-overlay.show { display: block; }

.sb-header {
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sb-wallet-text {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}
.sb-tier-text {
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 3px;
}

.sb-search {
  display: flex;
  gap: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sb-search-inp {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-right: none;
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.18s;
}
.sb-search-inp:focus { border-color: var(--accent); }
.sb-search-inp::placeholder { color: var(--text-dim); }
.sb-search-btn {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #000;
  font-size: 14px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 700;
  transition: opacity 0.15s;
}
.sb-search-btn:hover { opacity: 0.85; }

/* Sidebar category */
.sidebar-section { border-bottom: 1px solid var(--border); }
.sidebar-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  cursor: pointer;
  transition: background 0.14s;
  user-select: none;
}
.sidebar-cat-header:hover { background: var(--surface2); }
.sidebar-cat-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-cat-count {
  font-size: 10px;
  color: var(--text-dim);
  opacity: 0.6;
}
.sidebar-cat-arrow {
  font-size: 12px;
  color: var(--text-dim);
  transition: transform 0.2s;
  margin-left: 4px;
}
.sidebar-cat-arrow.open { transform: rotate(90deg); }

.sidebar-items { display: none; }
.sidebar-items.open { display: block; animation: fadeUp 0.18s ease; }

/* Asset row */
.asset-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 22px;
  cursor: pointer;
  transition: background 0.14s;
  border-left: 2px solid transparent;
}
.asset-item:hover  { background: var(--surface2); }
.asset-item.active { background: var(--surface3); border-left-color: var(--accent); }
.asset-img {
  width: 36px; height: 36px;
  object-fit: cover;
  border-radius: 3px;
  background: var(--surface3);
  flex-shrink: 0;
}
.asset-name {
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.asset-sub {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Signal pills */
.spill {
  font-family: 'Unbounded', sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  text-transform: uppercase;
  border: 1px solid;
  flex-shrink: 0;
  border-radius: 2px;
}
.spill-buy     { background: rgba(46,204,113,0.12); color: var(--green);   border-color: rgba(46,204,113,0.30); }
.spill-hold    { background: rgba(201,168,76,0.10); color: var(--accent);  border-color: var(--border); }
.spill-sell    { background: rgba(231,76,60,0.12);  color: var(--red);     border-color: rgba(231,76,60,0.30); }
.spill-watch   { background: rgba(74,144,226,0.10); color: #74AEF0;        border-color: rgba(74,144,226,0.25); }
.spill-acquire { background: rgba(155,89,182,0.12); color: #C39BD3;        border-color: rgba(155,89,182,0.25); }

.load-more-btn {
  width: 100%;
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.10em;
  padding: 11px 18px;
  cursor: pointer;
  text-align: left;
  transition: color 0.14s;
}
.load-more-btn:hover { color: var(--accent); }

/* ══════════════════════════════════════════════════════
   CENTER PANEL
   ══════════════════════════════════════════════════════ */
.center-panel {
  overflow-y: auto;
  height: 100%;
  padding-bottom: 80px;
}
.center-panel::-webkit-scrollbar { width: 3px; }

.center-page {
  display: none;
  padding: clamp(14px,3vw,36px) clamp(14px,3.5vw,44px);
  min-height: 100%;
  animation: fadeUp 0.22s ease;
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: hidden;
}
.center-page.active { display: block; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.14em;
  cursor: pointer;
  padding-bottom: 18px;
  text-transform: uppercase;
  transition: color 0.15s;
  user-select: none;
}
.back-btn:hover { color: var(--accent); }

/* ══════════════════════════════════════════════════════
   ASSET DISPLAY — Intelligence Page
   ══════════════════════════════════════════════════════ */
.asset-hero-img {
  width: 100%;
  height: clamp(160px, 24vw, 280px);
  object-fit: cover;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  display: block;
}
.asset-hero-img[style*="display: none"],
.asset-hero-img[style*="display:none"] {
  margin-bottom: 0 !important;
  height: 0 !important;
  border: none !important;
  padding: 0 !important;
}

.asset-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: nowrap;  /* NEVER wrap — signal always on same row as title */
}
.asset-header > div:first-child {
  flex: 1;
  min-width: 0;  /* critical — allows text to shrink */
}
.asset-category {
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  font-weight: 200;
  letter-spacing: 0.30em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.asset-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(16px, 2.8vw, 38px);
  font-weight: 300;
  line-height: 1.2;
  color: var(--text);
  min-width: 0;
  word-break: break-word;
}

.big-signal { text-align: right; flex-shrink: 0; min-width: 90px; max-width: 200px; }
.big-signal-text {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(13px, 2.2vw, 30px);
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.big-signal-text.buy,     .big-signal-text.BUY     { color: var(--green); }
.big-signal-text.hold,    .big-signal-text.HOLD    { color: var(--accent); }
.big-signal-text.sell,    .big-signal-text.SELL    { color: var(--red); }
.big-signal-text.watch,   .big-signal-text.WATCH   { color: #74AEF0; }
.big-signal-text.acquire, .big-signal-text.ACQUIRE { color: #C39BD3; }

.conf-label {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  margin-top: 6px;
  text-align: right;
}
.conf-bar {
  width: clamp(100px, 14vw, 140px);
  height: 3px;
  background: var(--surface3);
  margin-left: auto;
  margin-top: 6px;
  border-radius: 2px;
}
.conf-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent-light));
  border-radius: 2px;
  transition: width 1s ease;
}
.deep-dive-link {
  font-size: 11px;
  color: var(--text-dim);
  cursor: pointer;
  text-align: right;
  margin-top: 10px;
  letter-spacing: 0.08em;
  transition: color 0.15s;
  user-select: none;
}
.deep-dive-link:hover { color: var(--accent); }

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
@media (max-width: 640px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }

.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 14px 16px;
}
.stat-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}
.stat-change { font-size: 11px; margin-top: 5px; }
.stat-change.up      { color: var(--green); }
.stat-change.down    { color: var(--red); }
.stat-change.neutral { color: var(--text-dim); }

/* Chart section */
.chart-section {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px 22px;
  margin-bottom: 20px;
}
.chart-title {
  font-size: 11px;
  letter-spacing: 0.20em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 16px;
}
canvas#priceChart  { width: 100%!important; height: clamp(140px, 18vw, 200px)!important; }
.pressure-chart-wrap { position: relative; height: 140px; }
.pressure-chart-wrap canvas { position: absolute; inset: 0; width: 100%!important; height: 100%!important; }

/* AI Analysis section */
.ai-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 20px 22px;
  margin-bottom: 20px;
}
.ai-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.ai-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}
.ai-label {
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  font-weight: 200;
  letter-spacing: 0.24em;
  color: var(--accent);
  text-transform: uppercase;
}
.ai-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 300;
  line-height: 1.85;
  font-style: italic;
  color: var(--text);
}
.ai-text.ar, .ai-text.hi { font-family: 'Noto Sans Arabic', sans-serif; font-style: normal; direction: rtl; text-align: right; }
.ai-text.zh { font-family: 'Noto Sans SC', sans-serif; font-style: normal; }
.ai-text.ja { font-family: 'Noto Sans JP', sans-serif; font-style: normal; }
.ai-typing {
  display: inline-block;
  width: 2px; height: 16px;
  background: var(--accent);
  margin-left: 3px;
  animation: blink 1s infinite;
  vertical-align: text-bottom;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* Signals grid */
.signals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 540px) { .signals-grid { grid-template-columns: 1fr; } }

.signal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px 18px;
}
.signal-card-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.signal-meter { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.signal-meter:last-child { margin-bottom: 0; }
.signal-meter-label { font-size: 12px; color: var(--text); width: 90px; flex-shrink: 0; }
.meter-bar  { flex: 1; height: 3px; background: var(--surface3); border-radius: 2px; }
.meter-fill { height: 100%; border-radius: 2px; transition: width 1.1s ease; }
.meter-fill.bull    { background: var(--green); }
.meter-fill.bear    { background: var(--red); }
.meter-fill.neutral { background: var(--accent); }
.meter-val { font-size: 11px; color: var(--text-dim); width: 32px; text-align: right; }

/* ══════════════════════════════════════════════════════
   PAGE TABS
   ══════════════════════════════════════════════════════ */
.page-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
  overflow-x: auto;
  gap: 0;
}
.page-tab {
  padding: 12px 20px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  text-transform: uppercase;
  transition: all 0.15s;
  user-select: none;
}
.page-tab:hover  { color: var(--text); }
.page-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.20s ease; }

/* ══════════════════════════════════════════════════════
   WIKI / DEEP DIVE
   ══════════════════════════════════════════════════════ */
.wiki-article { font-family: 'Cormorant Garamond', serif; }
.wiki-hero {
  width: 100%; height: 280px;
  object-fit: cover;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  display: block;
}
.wiki-h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 12px;
  color: var(--text);
}
.wiki-lead {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.8;
  color: var(--text-mid);
  font-style: italic;
  margin-bottom: 24px;
}
.wiki-section { margin-bottom: 28px; }
.wiki-h2 {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.wiki-p {
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.85;
  color: var(--text-mid);
  margin-bottom: 14px;
}
.wiki-fact-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 16px 18px;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}
.wiki-fact-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid rgba(201,168,76,0.07);
  font-size: 12px;
  gap: 12px;
}
.wiki-fact-row:last-child { border-bottom: none; }
.wiki-fact-key { color: var(--text-dim); flex-shrink: 0; }
.wiki-fact-val { color: var(--text); text-align: right; }

.timeline { position: relative; margin-bottom: 24px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 10px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-dim), transparent);
}
.tl-item {
  display: flex;
  gap: 18px;
  margin-bottom: 20px;
  padding-left: 28px;
  position: relative;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: 5px; top: 7px;
  width: 11px; height: 11px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--black);
}
.tl-year {
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  color: var(--accent);
  width: 40px;
  flex-shrink: 0;
  margin-top: 2px;
}
.tl-text { font-size: 13px; color: var(--text-mid); line-height: 1.6; }

/* ══════════════════════════════════════════════════════
   SCANNER PAGE
   ══════════════════════════════════════════════════════ */
.scan-instructions {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 22px 24px;
  margin-bottom: 20px;
}
.scan-inst-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 200;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.scan-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 560px) { .scan-steps { grid-template-columns: repeat(2, 1fr); } }

.scan-step {
  text-align: center;
  padding: 16px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
}
.scan-step-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 8px;
}
.scan-step-icon { font-size: 26px; display: block; margin-bottom: 8px; }
.scan-step-txt  { font-size: 12px; color: var(--text-dim); line-height: 1.55; }

/* Camera viewport */
.cam-viewport { position: relative; background: var(--surface2); }
#camVid {
  width: 100%;
  height: clamp(220px,36vw,360px);
  object-fit: cover;
  display: none;
  background: #000;
}
#snapCvs {
  width: 100%;
  height: clamp(220px,36vw,360px);
  object-fit: cover;
  display: none;
}
.cam-idle {
  height: clamp(220px,36vw,360px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--surface), var(--surface3));
}
.cam-idle-icon { font-size: 64px; opacity: 0.14; }
.cam-idle-txt  { font-size: 13px; letter-spacing: 0.16em; color: var(--text-dim); text-transform: uppercase; }
.cam-idle-sub  { font-size: 11px; color: var(--accent); letter-spacing: 0.12em; }

/* Scanning corners */
.sc { position: absolute; width: 28px; height: 28px; border-color: var(--accent); border-style: solid; border-width: 0; }
.sc.tl { top: 14px; left: 14px; border-top-width: 2px; border-left-width: 2px; }
.sc.tr { top: 14px; right: 14px; border-top-width: 2px; border-right-width: 2px; }
.sc.bl { bottom: 14px; left: 14px; border-bottom-width: 2px; border-left-width: 2px; }
.sc.br { bottom: 14px; right: 14px; border-bottom-width: 2px; border-right-width: 2px; }
.scan-line {
  position: absolute; left: 14px; right: 14px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  display: none;
  animation: scan-move 2.5s ease-in-out infinite;
}
@keyframes scan-move { 0% { top: 14px; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: calc(100% - 14px); opacity: 0; } }

.cam-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--border);
}
.cam-btn {
  padding: 14px 10px;
  border: none;
  border-right: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text-mid);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-align: center;
  transition: all 0.14s;
}
.cam-btn:last-child { border-right: none; }
.cam-btn:hover { background: var(--surface3); color: var(--text); }
.cam-btn.primary {
  background: var(--accent);
  color: #000;
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.cam-btn.primary:hover { opacity: 0.88; }
.cam-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.mic-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.mic-txt { font-size: 12px; color: var(--text-dim); flex: 1; }
.mic-btn {
  font-size: 11px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.14s;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.mic-btn:hover  { border-color: var(--accent); color: var(--accent); }
.mic-btn.active { border-color: var(--red); color: var(--red); }

/* Scan results */
.result-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
}
.result-tab {
  padding: 12px 18px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.10em;
  color: var(--text-dim);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  text-transform: uppercase;
  transition: all 0.14s;
}
.result-tab:hover  { color: var(--text); }
.result-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.result-panel { display: none; }
.result-panel.active { display: block; animation: fadeUp 0.2s ease; }

.pawn-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  padding: 22px;
  margin-bottom: 18px;
}
.pawn-grade {
  font-family: 'Unbounded', sans-serif;
  font-size: 36px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.pawn-verdict {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(14px, 2vw, 17px);
  line-height: 1.75;
  color: var(--text-mid);
  margin-top: 10px;
}
.pawn-details { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.pawn-detail-box { background: var(--surface2); padding: 12px 14px; }
.pawn-detail-lbl { font-size: 10px; letter-spacing: 0.16em; color: var(--text-dim); text-transform: uppercase; margin-bottom: 6px; }
.pawn-detail-val { font-size: 13px; color: var(--text); line-height: 1.5; }

.buyers-section { background: var(--surface); border: 1px solid var(--border); padding: 22px; margin-bottom: 18px; }
.buyer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(201,168,76,0.06);
}
.buyer-row:last-child { border-bottom: none; }
.buyer-name   { font-size: 14px; color: var(--text); }
.buyer-loc    { font-size: 11px; color: var(--text-dim); margin-top: 3px; }
.buyer-offer  { font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--green); }
.buyer-label  { font-size: 10px; color: var(--text-dim); text-align: right; }

/* ══════════════════════════════════════════════════════
   CHAT
   ══════════════════════════════════════════════════════ */
.chat-wrap {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 96px - 80px - 60px - 80px - 90px);
  min-height: 400px;
}
@media (max-width: 720px) { .chat-wrap { height: calc(100vh - 96px - 64px - 60px - 80px - 110px); min-height: 320px; } }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chat-messages::-webkit-scrollbar { width: 3px; }

.msg { display: flex; gap: 10px; animation: fadeUp 0.2s ease; }
.msg.user { flex-direction: row-reverse; }
.m-av {
  width: 36px; height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  font-weight: 700;
}
.m-av-ai  { background: linear-gradient(135deg, var(--accent-dim), var(--accent)); color: #000; }
.m-av-usr { background: var(--surface3); color: var(--text-dim); }
.m-bbl {
  max-width: 76%;
  padding: 13px 16px;
  font-size: 14px;
  line-height: 1.75;
}
.m-bbl.ai   { background: var(--surface2); border: 1px solid var(--border); color: var(--text); font-family: 'Cormorant Garamond', serif; font-size: 16px; }
.m-bbl.user { background: rgba(201,168,76,0.08); border: 1px solid var(--border); }
.m-bbl.ar, .m-bbl.hi { font-family: 'Noto Sans Arabic', sans-serif; direction: rtl; text-align: right; }
.m-bbl.zh { font-family: 'Noto Sans SC', sans-serif; }
.m-bbl.ja { font-family: 'Noto Sans JP', sans-serif; }

.ty-dots { display: flex; gap: 5px; align-items: center; padding: 13px 16px; }
.ty-d {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: ty-anim 1.2s infinite;
}
.ty-d:nth-child(2) { animation-delay: 0.2s; }
.ty-d:nth-child(3) { animation-delay: 0.4s; }
@keyframes ty-anim { 0%,100% { opacity: 0.25; transform: scale(0.7); } 50% { opacity: 1; transform: scale(1); } }

.chat-inp-row {
  display: flex;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-inp {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  padding: 11px 14px;
  outline: none;
  resize: none;
  min-height: 46px;
  max-height: 120px;
  transition: border-color 0.18s;
}
.chat-inp:focus { border-color: var(--accent); }
.chat-inp::placeholder { color: var(--text-dim); }
.chat-send-btn {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 11px 20px;
  cursor: pointer;
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  transition: opacity 0.15s;
}
.chat-send-btn:hover    { opacity: 0.88; }
.chat-send-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.chat-mic {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 11px 14px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.14s;
}
.chat-mic:hover  { border-color: var(--border2); }
.chat-mic.active { border-color: var(--red); color: var(--red); }

.qp-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.qp {
  font-size: 12px;
  padding: 6px 13px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.14s;
  user-select: none;
}
.qp:hover { border-color: var(--accent); color: var(--accent); }

/* ══════════════════════════════════════════════════════
   ASK BAR (bottom bar)
   ══════════════════════════════════════════════════════ */
.ask-bar {
  position: fixed;
  bottom: 0;
  left: 260px;
  right: 300px;
  background: var(--overlay-bg);
  border-top: 1px solid var(--border);
  padding: 12px clamp(20px,3vw,44px);
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(20px);
  z-index: 100;
}
@media (max-width: 1200px) { .ask-bar { left: 240px; right: 280px; } }
@media (max-width: 960px)  { .ask-bar { left: 220px; right: 0; } }
@media (max-width: 720px)  { .ask-bar { left: 0; right: 0; } }

.ask-label {
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  font-weight: 200;
  letter-spacing: 0.20em;
  color: var(--accent);
  text-transform: uppercase;
  white-space: nowrap;
}
.ask-input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.18s;
}
.ask-input:focus { border-color: var(--accent); }
.ask-input::placeholder { color: var(--text-dim); }
.ask-btn {
  background: var(--accent);
  color: #000;
  border: none;
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 10px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.14s;
}
.ask-btn:hover    { opacity: 0.88; }
.ask-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ══════════════════════════════════════════════════════
   MOBILE BOTTOM NAV
   ══════════════════════════════════════════════════════ */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--overlay-bg);
  border-top: 1px solid var(--border);
  z-index: 200;
  backdrop-filter: blur(20px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mobile-nav::-webkit-scrollbar { display: none; }
@media (max-width: 960px) { .mobile-nav { display: flex; } }
.mn-item {
  flex: 0 0 auto;
  min-width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 10px;
  cursor: pointer;
  border-top: 2px solid transparent;
  transition: all 0.14s;
  user-select: none;
  white-space: nowrap;
}
.mn-item.active { border-top-color: var(--accent); }
.mn-icon { font-size: 18px; }
.mn-lbl { font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.mn-item.active .mn-lbl { color: var(--accent); }

/* ══════════════════════════════════════════════════════
   RIGHT PANEL
   ══════════════════════════════════════════════════════ */
.right-panel {
  background: var(--right-bg);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  padding: 20px 18px;
  height: 100%;
}
.right-panel::-webkit-scrollbar { width: 3px; }
@media (max-width: 960px) { .right-panel { display: none; } }

.panel-section { margin-bottom: 28px; }
.panel-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  font-weight: 200;
  letter-spacing: 0.24em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.feed-item { padding: 10px 0; border-bottom: 1px solid rgba(201,168,76,0.06); }
.feed-item:last-child { border-bottom: none; }
.feed-time { font-size: 10px; color: var(--accent-dim); letter-spacing: 0.12em; margin-bottom: 4px; }
.feed-text { font-size: 12px; color: var(--text); line-height: 1.55; }
.feed-tag  { display: inline-block; font-size: 9px; letter-spacing: 0.12em; padding: 2px 7px; margin-top: 5px; text-transform: uppercase; }
.tag-luxury  { background: rgba(201,168,76,0.10); color: var(--accent); }
.tag-re      { background: rgba(74,144,226,0.10); color: #74AEF0; }
.tag-agri    { background: rgba(46,204,113,0.10); color: var(--green); }
.tag-antique { background: rgba(155,89,182,0.10); color: #C39BD3; }
.tag-car     { background: rgba(231,76,60,0.10);  color: var(--red); }

/* ══════════════════════════════════════════════════════
   OVERLAYS (Payment Gate, Language)
   ══════════════════════════════════════════════════════ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: var(--overlay-bg);
  overflow-y: auto;
  padding: 30px 16px 50px;
}
.overlay.show { display: flex; }

.ov-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  width: 100%;
  max-width: 500px;
  padding: clamp(24px,4vw,40px);
  position: relative;
}
.ov-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.ov-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px,4vw,32px);
  font-weight: 300;
  text-align: center;
  margin-bottom: 6px;
  color: var(--text);
}
.ov-sub {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.feat-list { margin-bottom: 22px; }
.feat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.feat:last-child { border-bottom: none; }
.feat-icon { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; }
.feat-txt  { font-size: 13px; color: var(--text-mid); line-height: 1.55; }
.feat-txt strong { color: var(--text); display: block; margin-bottom: 2px; font-size: 13px; }

.price-box {
  background: var(--surface2);
  border: 1px solid var(--border2);
  padding: 22px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}
.price-badge {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  font-family: 'Unbounded', sans-serif;
  font-size: 8px;
  font-weight: 700;
  padding: 4px 16px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.price-amount {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(32px,6vw,52px);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.price-sub { font-size: 11px; color: var(--text-dim); letter-spacing: 0.14em; margin-top: 8px; }

/* Crypto tabs */
.crypto-tabs { display: flex; gap: 6px; margin-bottom: 16px; overflow-x: auto; padding-bottom: 2px; }
.ctab {
  flex: 1;
  min-width: 60px;
  padding: 9px 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}
.ctab:hover, .ctab.active { border-color: var(--accent); color: var(--accent); background: rgba(201,168,76,0.06); }
.ctab-icon { font-size: 16px; display: block; margin-bottom: 3px; }

.qr-box    { display: inline-block; background: #fff; padding: 10px; margin-bottom: 10px; }
.qr-addr   { font-size: 11px; color: var(--text-mid); word-break: break-all; padding: 10px 12px; background: var(--surface2); border: 1px solid var(--border); cursor: pointer; transition: border-color 0.15s; }
.qr-addr:hover { border-color: var(--border2); }
.qr-hint   { font-size: 10px; color: var(--text-dim); margin-top: 6px; letter-spacing: 0.10em; }
.qr-equiv  { font-size: 12px; color: var(--accent); margin-top: 6px; letter-spacing: 0.08em; }
.qr-session{ font-size: 10px; color: var(--text-dim); margin-top: 4px; letter-spacing: 0.10em; }

.wallet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.wbtn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.18s;
}
.wbtn:hover { border-color: var(--border2); }
.wbtn-icon { font-size: 22px; width: 28px; text-align: center; flex-shrink: 0; }
.wbtn-name { font-size: 13px; color: var(--text); }
.wbtn-sub  { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

.ov-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-dim), var(--accent), var(--accent-light));
  color: #000;
  border: none;
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 16px;
  cursor: pointer;
  text-transform: uppercase;
  transition: opacity 0.18s;
  margin-bottom: 10px;
}
.ov-btn:hover    { opacity: 0.88; }
.ov-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.ov-btn-ghost {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 13px;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 10px;
}
.ov-btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.ov-err  { font-size: 12px; color: var(--red); letter-spacing: 0.06em; text-align: center; min-height: 20px; margin-bottom: 8px; }
.ov-note { font-size: 11px; color: var(--text-dim); letter-spacing: 0.06em; text-align: center; line-height: 1.7; margin-top: 10px; }
.ov-close {
  position: absolute; top: 14px; right: 14px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  width: 30px; height: 30px;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.ov-close:hover { border-color: var(--accent); color: var(--accent); }

/* Trial expired */
.trial-expired-box {
  background: rgba(231,76,60,0.08);
  border: 1px solid rgba(231,76,60,0.25);
  padding: 18px;
  text-align: center;
  margin-bottom: 18px;
}
.teb-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 300; color: var(--red); margin-bottom: 8px; }
.teb-sub   { font-size: 12px; color: var(--text-dim); letter-spacing: 0.08em; line-height: 1.7; }

/* Language selector */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 400px;
  width: 100%;
}
.lbtn {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 18px 10px;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s;
}
.lbtn:hover { border-color: var(--accent); background: var(--surface3); }
.lbtn-flag { font-size: 28px; margin-bottom: 8px; }
.lbtn-name { font-size: 12px; color: var(--text-mid); }

/* ══════════════════════════════════════════════════════
   AUCTIONS & CARS
   ══════════════════════════════════════════════════════ */
.auc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px 20px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  cursor: pointer;
  transition: border-color 0.14s;
}
.auc-card:hover { border-color: var(--border2); }

.car-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0 0 18px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.14s;
  overflow: hidden;
}
.car-card:hover { border-color: var(--border2); }
.car-card-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.car-card-body { padding: 14px 18px 0; }

.rpill {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s;
}
.rpill:hover, .rpill.active { border-color: var(--accent); color: var(--accent); background: rgba(201,168,76,0.05); }
.region-pills { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; padding-bottom: 4px; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════
   KNOWLEDGE CENTER
   ══════════════════════════════════════════════════════ */
.signal-explainer {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px 20px;
  margin-bottom: 12px;
}
.se-sig    { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.se-title  { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 300; }
.se-desc   { font-size: 13px; color: var(--text-mid); line-height: 1.65; }
.se-example{ font-size: 12px; color: var(--text-dim); margin-top: 8px; font-style: italic; }

.quiz-card { background: var(--surface); border: 1px solid var(--border); padding: 20px 22px; margin-bottom: 14px; }
.quiz-q    { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 300; margin-bottom: 16px; line-height: 1.4; }
.quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quiz-opt {
  padding: 11px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 13px;
  color: var(--text-dim);
  transition: all 0.14s;
}
.quiz-opt:hover   { border-color: var(--accent); color: var(--accent); }
.quiz-opt.correct { border-color: var(--green); color: var(--green); background: rgba(46,204,113,0.08); }
.quiz-opt.wrong   { border-color: var(--red);   color: var(--red);   background: rgba(231,76,60,0.08); }

/* ══════════════════════════════════════════════════════
   DISCOVER
   ══════════════════════════════════════════════════════ */
.daily-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  padding: 22px;
  margin-bottom: 16px;
}
.daily-label {
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  font-weight: 200;
  letter-spacing: 0.26em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.daily-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px,3vw,26px);
  font-weight: 300;
  margin-bottom: 12px;
  line-height: 1.25;
}
.daily-img {
  width: 100%; height: 200px;
  object-fit: cover;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  display: block;
}

/* ══════════════════════════════════════════════════════
   SETTINGS
   ══════════════════════════════════════════════════════ */
.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.set-row:last-child { border-bottom: none; }
.set-lbl { font-size: 14px; color: var(--text); }
.set-sub { font-size: 12px; color: var(--text-dim); margin-top: 3px; }

.toggle {
  width: 38px; height: 21px;
  background: var(--surface3);
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.toggle.on { background: var(--accent); }
.t-dot {
  width: 14px; height: 14px;
  background: var(--text);
  border-radius: 50%;
  position: absolute;
  top: 3.5px; left: 3.5px;
  transition: left 0.2s;
}
.toggle.on .t-dot { left: 20.5px; background: #000; }

/* ══════════════════════════════════════════════════════
   VALUATION HISTORY
   ══════════════════════════════════════════════════════ */
.val-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(201,168,76,0.06);
  gap: 16px;
}
.val-item:last-child { border-bottom: none; }
.val-name  { font-size: 14px; color: var(--text); }
.val-meta  { font-size: 11px; color: var(--text-dim); margin-top: 3px; }
.val-price { font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--text); text-align: right; }

/* ══════════════════════════════════════════════════════
   LOADING & MISC
   ══════════════════════════════════════════════════════ */
.loading-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 52px;
  gap: 14px;
}
.loading-txt {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.spin {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

#toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--surface3);
  border: 1px solid var(--border2);
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 11px 22px;
  z-index: 9999;
  opacity: 0;
  transition: all 0.26s;
  pointer-events: none;
  white-space: nowrap;
  max-width: 92vw;
  border-radius: 2px;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Price history mini bars */
.ph-chart-wrap { display: flex; align-items: flex-end; gap: 4px; height: 64px; margin-bottom: 6px; }
.ph-bar { flex: 1; border-radius: 2px 2px 0 0; min-height: 4px; cursor: pointer; transition: opacity 0.14s; }
.ph-bar:hover { opacity: 0.72; }
.ph-labels { display: flex; gap: 4px; }
.ph-label  { flex: 1; font-size: 10px; color: var(--text-dim); text-align: center; }

/* ══════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

/* ══ MOBILE FIXES — no dead image space, full width text ══ */
@media (max-width: 720px) {
  .asset-hero-img { height: clamp(120px, 40vw, 200px); margin-bottom: 16px; }
  /* Keep row layout — name + signal always on same line */
  .asset-header { flex-direction: row; gap: 8px; align-items: flex-start; flex-wrap: nowrap; }
  .asset-header > div:first-child { flex: 1; min-width: 0; }
  .asset-title { font-size: clamp(15px, 4.2vw, 26px); }
  .big-signal { min-width: 70px; max-width: 130px; flex-shrink: 0; }
  .big-signal-text { font-size: clamp(13px, 3.8vw, 22px); white-space: nowrap; }
  .conf-bar { width: 70px; }
  .conf-label { font-size: 9px; }
  .center-page { padding: 14px 14px 80px 14px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-box { padding: 12px; }
  .stat-value { font-size: clamp(16px, 4vw, 24px); }
  .wiki-h1 { font-size: clamp(22px, 5vw, 36px); }
  .wiki-lead { font-size: 15px; }
  .wiki-p { font-size: 14px; }
  .wiki-section { margin-bottom: 20px; }
  .tl-item { flex-direction: column; gap: 4px; }
  .tl-year { font-size: 11px; }
  .timeline { gap: 12px; }
  .chart-section { padding: 14px; }
  .signals-grid { grid-template-columns: 1fr; }
  .signal-card { padding: 14px; }
  .result-tabs { overflow-x: auto; white-space: nowrap; }
  .result-tab { padding: 8px 12px; font-size: 10px; }
  .scan-instructions { padding: 14px; }
  .auc-card { flex-direction: column; gap: 10px; padding: 14px; }
  .car-card-img { height: 160px; }
  .buyer-row { flex-direction: column; gap: 6px; }
  .daily-card { padding: 16px; }
  .daily-img { height: 160px; }
  .pawn-section { padding: 14px; }
}
@media (max-width: 480px) {
  .center-page { padding: 12px 12px 80px 12px; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 6px; }
  .stat-box { padding: 10px; }
  .stat-label { font-size: 9px; }
  .stat-value { font-size: 15px; }
  .stat-change { font-size: 10px; }
  .asset-title { font-size: clamp(13px, 4vw, 20px); }
  .big-signal-text { font-size: clamp(12px, 3.5vw, 18px); }
  .wiki-h1 { font-size: 20px; }
  .chart-section canvas { height: 160px !important; }
  .result-tabs { gap: 0; }
  .srStats { grid-template-columns: 1fr 1fr; }
}


/* ══ MOBILE VIDEO AD — floating pull tab ══════════════ */
#mobileVideoAd { display: none; }

/* Floating video tab — bottom-left corner, mobile only */
/* ══ MOBILE VIDEO PULL-TAB ════════════════════════════ */
.mv-tab-wrap {
  display: none;
  position: fixed;
  bottom: 84px;
  left: 0;
  z-index: 600;
  transition: transform 0.32s cubic-bezier(.4,0,.2,1);
  transform: translateX(0);
  will-change: transform;
  filter: drop-shadow(4px 4px 20px rgba(0,0,0,.8));
}
@media (max-width: 960px) {
  .mv-tab-wrap { display: block; }
}

/* Pull-tab handle — vertical gold strip */
.mv-tab-handle {
  position: absolute;
  right: -26px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  background: var(--accent);
  color: #000;
  font-family: 'Unbounded', sans-serif;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 14px 5px;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
  user-select: none;
  white-space: nowrap;
  line-height: 1.2;
}

/* Video panel — pure black, no chrome */
.mv-panel {
  width: min(300px, 86vw);
  background: #000;
  border: 1px solid rgba(201,168,76,.2);
  border-left: none;
  border-radius: 0 6px 6px 0;
  overflow: hidden;
}

/* Top bar — minimal: brand name left, × right */
.mv-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 5px;
  background: #000;
  border-bottom: 1px solid rgba(201,168,76,.12);
}
.mv-panel-brand {
  font-family: 'Unbounded', sans-serif;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: .18em;
  color: var(--accent);
  text-decoration: none;
  text-transform: uppercase;
  opacity: .8;
}
.mv-close-btn {
  background: transparent;
  border: none;
  color: rgba(201,168,76,.5);
  font-size: 15px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color .15s;
}
.mv-close-btn:hover { color: var(--accent); }

/* Video — full bleed, no letterbox, no YouTube UI */
.mv-video-wrap {
  width: 100%;
  padding-top: 56.25%;
  position: relative;
  background: #000;
  overflow: hidden;
}
.mv-video-wrap iframe {
  position: absolute;
  /* Expand 20% to crop out any residual YouTube UI edges */
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  border: none;
  display: block;
  pointer-events: none; /* prevent accidental YouTube overlay taps */
}

/* Collapsed — only handle peeks out */
.mv-tab-wrap.collapsed {
  transform: translateX(calc(-100% + 0px));
}
/* ══════════════════════════════════════════════════════
   AD PLACEMENTS
   ══════════════════════════════════════════════════════ */
.ticker-ad-slot {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 20px; border-left: 1px solid rgba(201,168,76,0.3);
  border-right: 1px solid rgba(201,168,76,0.3); cursor: pointer;
}
.ticker-ad-label {
  font-size: 8px; letter-spacing: .20em; color: var(--accent);
  background: rgba(201,168,76,.12); padding: 2px 6px; border-radius: 2px;
}
.ticker-ad-text { font-size: 12px; color: var(--text-mid); white-space: nowrap; }

.rp-ad-card {
  background: linear-gradient(135deg, rgba(201,168,76,.06), rgba(201,168,76,.02));
  border: 1px solid rgba(201,168,76,.35);
  border-left: 3px solid var(--accent);
  padding: 16px 18px; margin-bottom: 20px; cursor: pointer;
  transition: border-color .2s;
}
.rp-ad-card:hover { border-color: var(--accent-light); }
.rp-ad-tag {
  font-family: 'Unbounded', sans-serif; font-size: 8px;
  font-weight: 200; letter-spacing: .22em; color: var(--accent);
  text-transform: uppercase; margin-bottom: 8px;
}
.rp-ad-headline {
  font-family: 'Cormorant Garamond', serif; font-size: 17px;
  font-weight: 300; margin-bottom: 5px; color: var(--text);
}
.rp-ad-sub { font-size: 12px; color: var(--text-dim); margin-bottom: 10px; }
.rp-ad-cta { font-size: 11px; color: var(--accent); letter-spacing: .10em; }

.ts-ad-banner {
  margin: 0 0 16px 0;
  border: 1px solid rgba(201,168,76,.3);
  border-left: 3px solid var(--accent);
  background: rgba(201,168,76,.04);
  transition: background .2s;
}
.ts-ad-banner:hover { background: rgba(201,168,76,.08); }
.ts-ad-inner {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; flex-wrap: wrap;
}
.ts-ad-partner {
  font-family: 'Unbounded', sans-serif; font-size: 8px; font-weight: 200;
  letter-spacing: .22em; color: var(--accent); text-transform: uppercase;
  background: rgba(201,168,76,.12); padding: 3px 8px; white-space: nowrap;
}
.ts-ad-text { font-size: 13px; color: var(--text-mid); flex: 1; }
.ts-ad-cta { font-size: 11px; color: var(--accent); letter-spacing: .08em; white-space: nowrap; }

.ad-card { position: relative; }
.ad-card::after {
  content: 'AD'; position: absolute; top: 8px; right: 8px;
  font-size: 8px; letter-spacing: .14em; color: var(--text-dim);
  opacity: .5;
}

/* ══════════════════════════════════════════════════════
   HERO VIDEO PLACEMENT
   ══════════════════════════════════════════════════════ */
.hero-video-wrap {
  position: relative;
  margin-bottom: 20px;
  background: var(--surface);
  border: 1px solid rgba(201,168,76,.3);
}
.hero-video-tag {
  position: absolute; top: 0; left: 0; z-index: 2;
  font-family: 'Unbounded', sans-serif; font-size: 8px; font-weight: 200;
  letter-spacing: .22em; color: var(--dark); text-transform: uppercase;
  background: var(--gold); padding: 4px 12px;
}
.hero-video-container {
  /* 16:9 responsive */
  position: relative; width: 100%; padding-top: 56.25%;
  overflow: hidden;
}
.hero-video-container iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: 0;
}
.hero-video-caption {
  padding: 10px 14px;
  font-family: 'Unbounded', sans-serif; font-size: 9px; font-weight: 200;
  letter-spacing: .16em; color: var(--text-dim); text-transform: uppercase;
  border-top: 1px solid rgba(201,168,76,.1);
  display: flex; align-items: center; justify-content: space-between;
}
.hero-video-caption:empty { display: none; }

/* ══════════════════════════════════════════════════════
   AD BANNER DIMENSIONS — SPEC GUIDE
   Desktop: 900×120px · Mobile: 375×100px
   Right panel: 280×160px desktop · 375×120px mobile
   All hidden by default — shown only when ad loaded
   ══════════════════════════════════════════════════════ */
.ts-ad-banner {
  display: none; /* hidden until ad loaded */
  margin: 0 0 16px 0;
  border: 1px solid rgba(201,168,76,.3);
  border-left: 3px solid var(--gold);
  background: rgba(201,168,76,.04);
  transition: background .2s;
  overflow: hidden;
}
.ts-ad-banner.loaded { display: block; }
.ts-ad-banner:hover { background: rgba(201,168,76,.08); }
.ts-ad-banner img {
  width: 100%; height: 120px; object-fit: cover; display: block; cursor: pointer;
}
.ts-ad-banner .ts-ad-inner {
  /* text fallback when no image */
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; flex-wrap: wrap;
}
.ts-ad-banner.has-image .ts-ad-inner { display: none; }

/* right panel ad */
.rp-ad-card { display: none; }
.rp-ad-card.loaded { display: block; }
.rp-ad-card img.rp-ad-img {
  width: 100%; height: 160px; object-fit: cover; display: block;
  cursor: pointer; border-bottom: 1px solid var(--border);
}

/* auction ad card */
.auc-ad-img {
  width: 100%; height: 120px; object-fit: cover; display: block;
  cursor: pointer; border-bottom: 1px solid var(--border);
}

@media (max-width: 720px) {
  .ts-ad-banner img { height: 100px; }
  .rp-ad-card img.rp-ad-img { height: 120px; }
  .auc-ad-img { height: 100px; }
  .hero-video-container { padding-top: 56.25%; } /* 16:9 stays */
}

/* ══════════════════════════════════════════════════════
   SIGNUP / CONNECT GATE
   ══════════════════════════════════════════════════════ */
#signupGateOverlay {
  position: fixed; top:0;left:0;right:0;bottom:0;
  z-index: 9000; background: rgba(0,0,0,.85);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity:0; pointer-events:none; transition: opacity .2s;
}
#signupGateOverlay.show { opacity:1; pointer-events:all; }

.su-interest {
  padding: 6px 14px; border: 1px solid var(--border);
  font-size: 12px; color: var(--text-dim); cursor: pointer;
  transition: all .15s; user-select: none;
}
.su-interest.active {
  border-color: var(--accent); color: var(--accent);
  background: rgba(201,168,76,.08);
}
.su-interest:hover { border-color: var(--accent); color: var(--text); }

/* NAV Connect button */
.nav-connect-btn {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: 'Unbounded', sans-serif;
  font-size: 9px; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 14px; cursor: pointer;
  transition: all .15s;
}
.nav-connect-btn:hover {
  background: var(--accent); color: var(--dark);
}

/* ══ FEED SOURCE (replaces feed-time) ══ */
.feed-source {
  font-family: 'Unbounded', sans-serif;
  font-size: 8px; font-weight: 200;
  letter-spacing: .18em; color: var(--accent);
  text-transform: uppercase; margin-bottom: 4px;
}
/* Hide old feed-time if any remain */
.feed-time { display: none; }

/* Input focus styles */
#signupGateOverlay input:focus,
#signupGateOverlay select:focus {
  border-color: var(--accent) !important;
  outline: none;
}


/* Wallet dropdown */
#walletDropdown { display: none; }
#walletDropdown.show { display: block; }
#navWalletEl { position: relative; cursor: pointer; }
/* ─── Payment Gate (new design) ──────────────────────── */
.pay-gate {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
.pay-gate.show { display: flex; }
.pay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4,4,8,0.96);
  backdrop-filter: blur(16px);
  z-index: -1;
}
.pay-modal {
  width: 100%;
  max-width: 480px;
  background: #0F0F0F;
  border: 1px solid rgba(201,168,76,0.25);
  position: relative;
  overflow: hidden;
  padding: clamp(22px,4vw,38px);
  animation: payIn 0.35s ease;
}
.pay-modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,transparent,#C9A84C,transparent);
}
@keyframes payIn {
  from { opacity:0; transform:translateY(18px); }
  to   { opacity:1; transform:translateY(0); }
}
.pay-logo {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(18px,4vw,24px);
  font-weight: 900;
  letter-spacing: 0.3em;
  color: #C9A84C;
  text-align: center;
  margin-bottom: 3px;
}
.pay-tagline {
  font-size: 8px;
  letter-spacing: 0.25em;
  color: #7A7468;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.pay-price-hero {
  background: #161616;
  border: 1px solid rgba(201,168,76,0.2);
  padding: 20px;
  text-align: center;
  margin-bottom: 18px;
  position: relative;
}
.pay-price-badge {
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  background: #C9A84C;
  color: #080808;
  font-family: 'Unbounded', sans-serif;
  font-size: 7px;
  font-weight: 700;
  padding: 2px 14px;
  letter-spacing: 0.18em;
  white-space: nowrap;
}
.pay-amount {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(32px,6vw,46px);
  font-weight: 700;
  color: #C9A84C;
  line-height: 1;
}
.pay-amount-sub {
  font-size: 9px;
  color: #7A7468;
  letter-spacing: 0.14em;
  margin-top: 5px;
}
.pay-equiv {
  font-size: 10px;
  color: #E8C97A;
  margin-top: 8px;
  letter-spacing: 0.08em;
}
.pay-features {
  list-style: none;
  margin-bottom: 18px;
  padding: 0;
}
.pay-features li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(201,168,76,0.06);
  font-size: 10px;
  color: #A09880;
  letter-spacing: 0.04em;
}
.pay-features li:last-child { border-bottom: none; }
.pay-feat-icon { font-size: 13px; width: 18px; text-align: center; flex-shrink: 0; }
.pay-crypto-row {
  display: flex;
  gap: 5px;
  margin-bottom: 14px;
}
.pay-crypto {
  flex: 1;
  padding: 9px 4px;
  background: transparent;
  border: 1px solid rgba(201,168,76,0.15);
  color: #7A7468;
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}
.pay-crypto:hover, .pay-crypto.active {
  border-color: #C9A84C;
  color: #C9A84C;
  background: rgba(201,168,76,0.06);
}
.pay-crypto-icon { display: block; font-size: 15px; margin-bottom: 3px; }
.pay-qr-section {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.pay-qr-box { background: #fff; padding: 8px; flex-shrink: 0; }
.pay-address-wrap { flex: 1; min-width: 0; }
.pay-address-label {
  font-size: 7px;
  letter-spacing: 0.22em;
  color: #C9A84C;
  text-transform: uppercase;
  font-family: 'Unbounded', sans-serif;
  font-weight: 200;
  margin-bottom: 6px;
}
.pay-address {
  font-size: 9px;
  color: #E8E2D4;
  word-break: break-all;
  padding: 9px 10px;
  background: #161616;
  border: 1px solid rgba(201,168,76,0.15);
  cursor: pointer;
  letter-spacing: 0.03em;
  line-height: 1.5;
  transition: border-color 0.15s;
}
.pay-address:hover { border-color: rgba(201,168,76,0.35); }
.pay-copy-hint { font-size: 8px; color: #7A7468; margin-top: 4px; letter-spacing: 0.1em; }
.pay-network-note { font-size: 8px; color: #7A7468; margin-top: 5px; letter-spacing: 0.08em; }
.pay-wallet-btn {
  width: 100%;
  background: linear-gradient(135deg,#7A6130,#C9A84C,#E8C97A);
  color: #080808;
  border: none;
  font-family: 'Unbounded', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 14px;
  cursor: pointer;
  text-transform: uppercase;
  margin-bottom: 10px;
  transition: opacity 0.18s;
}
.pay-wallet-btn:hover { opacity: 0.88; }
.pay-wallet-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pay-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #7A7468;
  font-size: 8px;
  letter-spacing: 0.14em;
}
.pay-divider::before, .pay-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(201,168,76,0.12);
}
.pay-verify-btn {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(201,168,76,0.25);
  color: #A09880;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  padding: 12px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: all 0.15s;
}
.pay-verify-btn:hover { border-color: #C9A84C; color: #C9A84C; }
.pay-error { font-size: 9px; color: #C0392B; text-align: center; min-height: 16px; letter-spacing: 0.08em; margin-bottom: 6px; }
.pay-note {
  font-size: 8px;
  color: #7A7468;
  text-align: center;
  letter-spacing: 0.08em;
  line-height: 1.7;
  margin-bottom: 12px;
}
.pay-close {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  color: #4A4850;
  font-size: 8px;
  letter-spacing: 0.14em;
  cursor: pointer;
  padding: 6px;
  transition: color 0.15s;
  text-align: center;
}
.pay-close:hover { color: #7A7468; }
.pay-spin {
  display: none;
  width: 11px;
  height: 11px;
  border: 2px solid rgba(201,168,76,0.2);
  border-top-color: #C9A84C;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  vertical-align: middle;
  margin-right: 5px;
}
@media (max-width: 480px) {
  .pay-qr-section { flex-direction: column; align-items: center; }
  .pay-qr-box { width: 120px; }
  .pay-address-wrap { width: 100%; }
  .pay-crypto { padding: 8px 2px; }
}

/* ── Ad banner responsive heights ── */
@media (max-width: 640px) {
  a[href] > picture > img { height: 100px !important; }
}

@media (max-width: 640px) {
  #pricingContent div[style*="grid-template-columns:1fr 1fr"] {
    display: flex !important;
    flex-direction: column !important;
  }
  #pricingContent div[style*="font-size:40px"] {
    font-size: 28px !important;
  }
  #pricingContent div[style*="padding:32px"] {
    padding: 20px !important;
  }
}

/* ══ SIGNUP PAGE FIX ══════════════════════════════════ */
@media (max-width: 960px) {

  #signupGateOverlay {
    padding: 8px !important;
    align-items: flex-start !important;
    padding-top: 20px !important;
  }

  #signupGateOverlay > div {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    max-height: 92vh !important;
    padding: 16px !important;
    margin: 0 !important;
  }

  #signupGateOverlay > div * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  #suCountry {
    width: 110px !important;
    min-width: 110px !important;
    max-width: 110px !important;
    flex-shrink: 0 !important;
    font-size: 10px !important;
  }

  #suPhone {
    flex: 1 !important;
    min-width: 0 !important;
    width: 0 !important;
  }

}

/* ══ ASK BAR — FIXED BOTTOM ALL PAGES EXCEPT AI ══════ */
@media (max-width: 960px) {

  .ask-bar {
    display: flex !important;
    position: fixed !important;
    bottom: 64px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    z-index: 199 !important;
    padding: 8px 10px !important;
  }

  .ask-label {
    display: none !important;
  }

  .center-panel {
    padding-bottom: 130px !important;
  }

  body:has(#page-chat.active) .ask-bar {
    display: none !important;
  }

}

/* ═══════════════════════════════════════════════════════════
   TrueScan — Mobile Chat Fix  (v5 — CSS only, no-flash)
   Drop this AFTER your main stylesheet. No JS needed.
   ═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────
   1. Kill the fadeUp animation ONLY on AI/chat page.
      fadeUp is what drags the input bar during the jump —
      removing it means the page appears instantly with no
      position shift to inherit.
   ───────────────────────────────────────────────────────── */
#page-chat.active,
#page-ai.active {
  animation: none !important;
}

/* Also kill any animation on direct children so nothing
   inside the page slides/fades and pulls the bar with it */
#page-chat.active > *,
#page-ai.active   > * {
  animation: none !important;
}

/* ─────────────────────────────────────────────────────────
   2. Hide ask-bar on AI / chat page
   ───────────────────────────────────────────────────────── */
body:has(#page-chat.active) .ask-bar,
body:has(#page-ai.active)   .ask-bar {
  display: none !important;
}

/* ─────────────────────────────────────────────────────────
   3. MOBILE LAYOUT
   ───────────────────────────────────────────────────────── */
@media (max-width: 960px) {

  /* center-panel: column flex, no overflow at this level */
  .center-panel {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding-bottom: 0 !important;
  }

  /* Non-AI pages restore normal scrolling */
  .center-panel:not(:has(#page-chat.active)):not(:has(#page-ai.active)) {
    overflow-y: auto !important;
    padding-bottom: 130px !important;
  }

  /* AI page: full height column */
  #page-chat.active,
  #page-ai.active {
    display: flex !important;
    flex-direction: column !important;
    height: calc(100vh - 96px - 64px - 64px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    animation: none !important;
    transform: none !important;   /* cancel any translateY from fadeUp */
    opacity: 1 !important;        /* cancel fadeUp opacity start */
  }

  /* Dissolve chat-wrap so children join the flex column */
  #page-chat.active .chat-wrap,
  #page-ai.active   .chat-wrap {
    display: contents !important;
  }

  /* Pills row */
  #page-chat.active .qp-row,
  #page-ai.active   .qp-row {
    flex-shrink: 0 !important;
    padding: 6px 12px !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    scrollbar-width: none !important;
    animation: none !important;
  }
  #page-chat.active .qp-row::-webkit-scrollbar,
  #page-ai.active   .qp-row::-webkit-scrollbar { display: none; }

  /* Message list */
  #page-chat.active .chat-messages,
  #page-ai.active   .chat-messages {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 14px 14px 80px !important;
    min-height: 0 !important;
    animation: none !important;
  }

  /* ── THE KEY FIX ────────────────────────────────────────────
     Input bar: fixed position declared here AND in the
     :not(.active) state so the browser never has to move it.
     It's always at bottom:64px — only visibility changes.
     No reflow = no jump.
   ─────────────────────────────────────────────────────────── */

  /* Always fixed — even when page is hidden */
  .chat-inp-row {
    position: fixed !important;
    bottom: 64px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 10px 12px !important;
    background: var(--overlay-bg) !important;
    border-top: 1px solid var(--border) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    z-index: 180 !important;
    height: 64px !important;
    /* No transition/animation — ever */
    transition: none !important;
    animation: none !important;
    transform: none !important;
    will-change: unset !important;
    /* Hidden by default — use visibility not display
       so position is established but bar is invisible.
       visibility:hidden keeps it in fixed position;
       display:none would remove it and cause reflow on show. */
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* Show only when AI/chat page is active */
  #page-chat.active .chat-inp-row,
  #page-ai.active   .chat-inp-row {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: all !important;
  }

  /* ── Input elements ─────────────────────────────────────── */
  .chat-inp {
    flex: 1 !important;
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    resize: none !important;
    overflow: hidden !important;
    font-size: 11px !important;
    padding: 10px 12px !important;
    line-height: 1.3 !important;
    box-sizing: border-box !important;
    transition: border-color 0.18s !important;
    animation: none !important;
  }

  .chat-inp::placeholder {
    font-size: 11px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .chat-send-btn {
    flex-shrink: 0 !important;
    height: 40px !important;
    padding: 0 14px !important;
    font-size: 9px !important;
    white-space: nowrap !important;
    transition: opacity 0.15s !important;
    animation: none !important;
  }

  .chat-mic {
    flex-shrink: 0 !important;
    height: 40px !important;
    width: 40px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    transition: border-color 0.14s !important;
    animation: none !important;
  }
}

/* ─────────────────────────────────────────────────────────
   4. Small phones (≤600px) — 56px nav + 32px ticker = 88px
   ───────────────────────────────────────────────────────── */
@media (max-width: 600px) {

  .chat-inp-row {
    bottom: 64px !important;
  }

  #page-chat.active,
  #page-ai.active {
    height: calc(100vh - 88px - 64px - 64px) !important;
  }
}


/* ═══════════════════════════════════════════════════════════
   TrueScan — Empty Black Space Fix (standalone)
   Drop this AFTER your main stylesheet.
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 960px) {

  /* app-shell: don't lock to 100vh on mobile */
  .app-shell {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  /* center-panel: auto height, just enough bottom padding
     for the fixed bars (mobile-nav 64px + ask-bar ~56px) */
  .center-panel {
    height: auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-bottom: 136px !important;
  }

  /* Every center-page: shrink to content, no forced height */
  .center-page {
    height: auto !important;
    min-height: 0 !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   TrueScan — AI Page Black Space Fix (standalone)
   Drop this AFTER your main stylesheet.
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 960px) {

  /* AI/chat page: shrink to content, no forced height */
  #page-chat.active,
  #page-ai.active {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
  }

  /* chat-wrap: shrink to content */
  #page-chat.active .chat-wrap,
  #page-ai.active   .chat-wrap {
    height: auto !important;
    min-height: 0 !important;
  }

  /* Message list: shrink to content, no forced height */
  #page-chat.active .chat-messages,
  #page-ai.active   .chat-messages {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    /* bottom padding so last message clears fixed input bar */
    padding-bottom: 16px !important;
  }

  /* quick prompt pills */
  #page-chat.active .qp-row,
  #page-ai.active   .qp-row {
    height: auto !important;
    min-height: 0 !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   TrueScan — App Download Page Mobile Fix (standalone)
   Drop this AFTER your main stylesheet.
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 960px) {

  /* ── Target the app page container ─────────────────────── */
  #page-app.active,
  #page-app {
    padding: 16px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }

  /* ── Any grid/flex row inside app page → single column ─── */
  #page-app .app-grid,
  #page-app [style*="grid-template-columns"],
  #page-app [style*="display: grid"],
  #page-app [style*="display:grid"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    width: 100% !important;
  }

  /* ── Force ALL direct div children to stack vertically ─── */
  #page-app > div,
  #page-app .center-page > div,
  #page-app [style*="display:flex"],
  #page-app [style*="display: flex"] {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* ── Each platform card (iOS / Android) ─────────────────── */
  #page-app .app-card,
  #page-app > div > div,
  #page-app .center-page > div > div {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 20px !important;
    margin: 0 0 16px 0 !important;
    text-align: center !important;
  }

  /* ── App Store / Google Play / Direct Download buttons ─── */
  #page-app a,
  #page-app button,
  #page-app [style*="border-radius"] {
    width: 100% !important;
    max-width: 280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Store badge images — scale to fit ───────────────────── */
  #page-app img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
  }

  /* ── Email input ────────────────────────────────────────── */
  #page-app input[type="email"],
  #page-app input[type="text"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
  }

  /* ── "COMING 31 MARCH" text ─────────────────────────────── */
  #page-app [style*="font-size"] {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* ── Feature bullet lists ───────────────────────────────── */
  #page-app ul,
  #page-app p {
    text-align: left !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    word-break: break-word !important;
  }

  /* ── Dividers ───────────────────────────────────────────── */
  #page-app hr {
    width: 100% !important;
  }

  /* ── Prevent ANY child from overflowing ─────────────────── */
  #page-app * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {

  #page-app,
  #page-app.active {
    padding: 12px !important;
  }

  /* Stack tighter on very small phones */
  #page-app > div > div {
    padding: 16px !important;
    margin-bottom: 12px !important;
  }

  /* Larger touch targets for store buttons */
  #page-app a,
  #page-app button {
    min-height: 52px !important;
    align-items: center !important;
    justify-content: center !important;
  }
}