  @import url("/css2.css");

  :root {
    /* ═══ DARK LUXURY palette — disciplined contrast ═══
       Canonical design tokens. The legacy bg / text / border names further
       down are kept as aliases so every existing rule inherits the new
       palette without a sheet-wide rewrite. */
    --bg-void: #06070B;
    --bg-surface: #0E1220;
    --bg-surface-raised: #141A2C;
    --accent-blue: #3861FB;
    /* The one signature accent. Reserved for rank/progress only:
       the vote-panel hairline cap, the rank badge, the progress leading edge. */
    --accent-gold: #C9A227;
    --text-primary: #F2F4F9;
    --text-secondary: rgba(242,244,249,.62);
    --text-tertiary: rgba(242,244,249,.38);
    --border-hairline: rgba(242,244,249,.08);
    --border-hairline-strong: rgba(242,244,249,.14);

    /* Layered depth: secondary card vs elevated/hero surface */
    --elev-card:
      0 1px 0 rgba(255,255,255,.03) inset,
      0 12px 24px rgba(0,0,0,.35);
    --elev-raised:
      0 1px 0 rgba(255,255,255,.05) inset,
      0 24px 60px rgba(56,97,251,.12),
      0 12px 32px rgba(0,0,0,.5);
    --surface-card: linear-gradient(180deg, var(--bg-surface) 0%, rgba(14,18,32,.6) 100%);
    --surface-raised: linear-gradient(160deg, #141A2C 0%, #0E1220 100%);

    /* Legacy aliases → new palette.
       The text ramp keeps four steps so hierarchy survives; --text-2/--text-3
       stay above 4.5:1 on --bg-surface, and the .38 tertiary is reserved for
       non-text decoration (separators, dots) where WCAG text contrast does not
       apply. */
    --bg-page: var(--bg-void);
    --bg-soft: var(--bg-surface);
    --bg-card: var(--bg-surface-raised);
    --bg-hover: var(--bg-surface-raised);
    --bg-chip: var(--bg-surface-raised);
    --border: var(--border-hairline);
    --border-strong: var(--border-hairline-strong);
    --text-1: var(--text-primary);
    --text-2: rgba(242,244,249,.78);
    --text-3: var(--text-secondary);
    --text-4: var(--text-tertiary);
    /* CoinMarketCap brand blue (primary CTA accent) — value unchanged,
       now formalized as --accent-blue above. */
    --green: var(--accent-blue);
    --green-h: #4C72FF;
    --green-d: #1B40E5;
    --green-dd: #122EAB;
    --green-bg: rgba(56,97,251,0.15);
    --green-border: rgba(56,97,251,0.35);
    --up: #16C784;
    --down: #EA3943;
    --red: #EA3943;
    --red-bg: rgba(234,57,67,0.15);
    --blue: var(--accent-blue);
    --yellow: #F0B90B;
    --dark: #04050A;
    --r: 6px;
    --r-lg: 10px;
    --r-xl: 14px;
    --shadow-sm: 0 1px 2px rgba(13,20,33,0.04);
    --shadow-md: 0 4px 12px rgba(13,20,33,0.06);
    /* Skeuomorphic 3D bottom-edge — primary green */
    --skeu-green:        0 3px 0 0 var(--green-d);
    --skeu-green-hover:  0 3px 0 0 var(--green-d);
    --skeu-green-active: 0 0 0 0 var(--green-d);
    /* Skeuomorphic 3D bottom-edge — secondary (dark buttons) */
    --skeu-light:        0 2px 0 0 #0A0C12;
    --skeu-light-hover:  0 2px 0 0 #060810;
    --skeu-light-active: 0 0 0 0 #0A0C12;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-page);
    color: var(--text-1);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'cv11', 'ss01';
  }

  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: var(--bg-page); }
  ::-webkit-scrollbar-thumb { background: #2F3340; border-radius: 4px; }
  ::-webkit-scrollbar-thumb:hover { background: #444958; }

  a { color: inherit; text-decoration: none; }

  /* ═══ DARK PROMO STRIP (top of page) ═══ */
  .promo-strip {
    background: var(--dark);
    color: #fff;
    position: relative;
    font-weight: 500;
    letter-spacing: 0.1px;
  }
  .promo-inner {
    width: 100%; margin: 0 auto;
    padding: 8px 56px 8px 24px;
    font-size: 13px;
    display: flex; align-items: center; gap: 6px;
    text-align: left;
  }
  .promo-strip .megaphone {
    display: inline-block;
    transform: rotate(-12deg);
  }
  .promo-strip b { color: var(--green); font-weight: 700; }
  .promo-strip a { color: #fff; display: inline-flex; align-items: center; gap: 6px; }
  .promo-strip a:hover b { text-decoration: underline; }
  .promo-close {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: rgba(255,255,255,0.55); cursor: pointer;
    padding: 4px; display: flex; align-items: center;
    transition: color 0.15s;
  }
  .promo-close:hover { color: #fff; }

  /* ═══ TOP TICKER STRIP ═══ */
  .ticker-strip {
    background: var(--bg-page);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    font-size: 12px;
    color: var(--text-2);
  }
  .ticker-inner {
    width: 100%; margin: 0 auto; padding: 6px 24px;
    display: flex; align-items: center; gap: 16px; white-space: nowrap;
  }
  .ticker-metrics {
    display: flex; align-items: center; gap: 22px;
    overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0;
  }
  .ticker-metrics::-webkit-scrollbar { display: none; }
  .ticker-item { display: inline-flex; align-items: center; gap: 6px; }
  .ticker-item strong { color: var(--text-1); font-weight: 600; }
  .ticker-up { color: var(--up); font-weight: 600; font-size: 11px; }
  .ticker-down { color: var(--down); font-weight: 600; font-size: 11px; }
  .ticker-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-4); flex-shrink: 0; }
  .ticker-actions {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  }

  /* ═══ HEADER ═══ */
  .header {
    position: sticky; top: 0; z-index: 100;
    background: var(--bg-page);
    border-bottom: 1px solid var(--border);
  }
  .header-inner {
    width: 100%; margin: 0 auto; padding: 0 24px;
    height: 64px; display: flex; align-items: center; gap: 0;
  }
  .logo {
    display: flex; align-items: center; gap: 8px;
    margin-right: 28px; flex-shrink: 0;
  }
  .logo-img { width: 26px; height: 26px; display: block; flex-shrink: 0; }
  .logo-text {
    font-weight: 700; font-size: 17px; color: var(--text-1);
    letter-spacing: -0.3px;
  }

  .nav-main {
    display: flex; align-items: center; gap: 0; flex: 1;
  }
  .nav-main a {
    color: var(--text-1); font-size: 14px; font-weight: 500;
    padding: 0 14px; height: 64px; display: flex; align-items: center; gap: 4px;
    transition: color 0.15s; white-space: nowrap; position: relative;
  }
  .nav-main a:hover { color: var(--blue); }
  .nav-main a.active { color: var(--blue); font-weight: 600; }
  .nav-chev { width: 12px; height: 12px; opacity: 0.5; }

  .header-right {
    display: flex; align-items: center; gap: 16px; margin-left: auto; flex-shrink: 0;
  }
  .header-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 500; color: var(--text-2);
    transition: color 0.15s;
  }
  .header-link:hover { color: var(--text-1); }
  .header-link .candy-dot {
    width: 18px; height: 18px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #B95DEA 0%, #6A1FA8 60%);
    display: inline-block;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.3);
  }
  .header-link .star { color: var(--yellow); font-size: 13px; line-height: 1; }
  .header-link .dot {
    width: 7px; height: 7px; border-radius: 50%; display: inline-block;
  }
  .header-link .dot-up { background: var(--up); }
  .search-pill {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg-soft); border: 1px solid var(--border);
    padding: 8px 12px; border-radius: var(--r-lg);
    color: var(--text-3); font-size: 13px;
    width: 260px; cursor: pointer; transition: all 0.15s;
  }
  .search-pill:hover { border-color: var(--border-strong); }
  .search-pill kbd {
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 1px 7px; border-radius: 4px;
    font-family: inherit; font-size: 12px; color: var(--text-3);
    margin-left: auto; line-height: 1.3;
  }
  .btn-currency {
    background: transparent; border: none; color: var(--text-2);
    padding: 8px 10px; font-size: 13px; font-weight: 500;
    cursor: pointer; display: flex; align-items: center; gap: 4px;
    border-radius: var(--r); transition: background 0.15s;
  }
  .btn-currency:hover { background: var(--bg-soft); }
  .btn-icon {
    background: var(--bg-card); border: 1px solid var(--border); color: var(--text-2);
    padding: 7px; cursor: pointer; display: flex; align-items: center;
    border-radius: var(--r); transition: box-shadow 0.08s ease, transform 0.08s ease, background 0.12s;
    box-shadow: var(--skeu-light);
    margin-bottom: 2px;
  }
  .btn-icon:hover { color: var(--text-1); background: var(--bg-soft); }
  .btn-icon:active {
    transform: translateY(2px); box-shadow: var(--skeu-light-active);
  }
  .btn-login {
    background: var(--bg-card); border: 1px solid var(--border); color: var(--text-1);
    padding: 7px 16px; border-radius: var(--r); font-weight: 600; font-size: 13px;
    cursor: pointer; font-family: inherit;
    transition: box-shadow 0.08s ease, transform 0.08s ease, background 0.12s;
    box-shadow: var(--skeu-light);
    margin-bottom: 2px;
  }
  .btn-login:hover { background: var(--bg-soft); }
  .btn-login:active {
    transform: translateY(2px); box-shadow: var(--skeu-light-active);
  }
  .btn-connect, .btn-signup {
    background: var(--blue); color: #fff; border: none;
    padding: 8px 16px; border-radius: var(--r); font-weight: 600; font-size: 13px;
    cursor: pointer; font-family: inherit;
    transition: background 0.15s, opacity 0.15s;
    display: inline-flex; align-items: center; gap: 6px;
  }
  .btn-connect:hover, .btn-signup:hover { opacity: 0.9; }
  .btn-connect:active, .btn-signup:active { opacity: 0.8; }

  /* ═══ SUB-NAV (under main header, DexScan-style) ═══ */
  .sub-nav {
    background: var(--bg-page);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 0;
    padding: 0 24px;
    overflow-x: auto; scrollbar-width: none;
  }
  .sub-nav::-webkit-scrollbar { display: none; }
  .sub-nav-item {
    color: var(--text-2); font-size: 13px; font-weight: 500;
    padding: 12px 14px; cursor: pointer; transition: color 0.15s;
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    position: relative;
  }
  .sub-nav-item:hover { color: var(--text-1); }
  .sub-nav-item.active { color: var(--text-1); font-weight: 600; }
  .sub-nav-item.active::after {
    content: ''; position: absolute; bottom: -1px; left: 14px; right: 14px;
    height: 2px; background: var(--green); border-radius: 1px 1px 0 0;
  }

  /* ═══ WARNING BANNER ═══ */
  .warning-banner {
    background: #433936;
    
    padding: 3px 56px 3px 24px;
    text-align: center; font-size: 12px; color: var(--text-2);
    position: relative;
    display: flex; align-items: center; justify-content: center; gap: 8px;
  }
  .warning-banner strong { color: var(--text-1); font-weight: 600; }
  .warning-link { color: var(--green); font-weight: 500; }
  .warning-link:hover { text-decoration: underline; }
  .warning-close {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--text-3); cursor: pointer;
    padding: 4px; display: flex; align-items: center;
    transition: color 0.15s;
  }
  .warning-close:hover { color: var(--text-1); }

  /* ═══ BREADCRUMB ═══ */
  .breadcrumb {
    width: 100%; margin: 0 auto; padding: 12px 24px 6px;
    font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px;
  }
  .breadcrumb a { color: var(--text-2); transition: color 0.15s; }
  .breadcrumb a:hover { color: var(--green); }
  .breadcrumb svg { opacity: 0.6; flex-shrink: 0; }
  .breadcrumb span.curr { color: var(--text-1); font-weight: 500; }

  /* ═══ LAYOUT ═══ */
  .page { width: 100%; margin: 0 auto; padding: 0 24px 60px; }

  /* ═══ COIN HEADER (compact, single-row identity + inline stats) ═══ */
  .coin-header {
    background: transparent; border: none; border-radius: 0;
    padding: 10px 0 14px; margin-bottom: 0;
    border-bottom: 1px solid var(--border);
  }
  .coin-header-row {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    row-gap: 8px;
  }
  .coin-logo {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, #3861FB, #6E8FFF);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0;
    overflow: hidden; border: 1px solid var(--border);
  }
  .coin-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .coin-logo.has-img { background: none; }
  .coin-rank-badge {
    background: var(--bg-chip); color: var(--text-2); border: 1px solid var(--border);
    padding: 3px 8px; border-radius: 5px; font-size: 11px; font-weight: 600;
    white-space: nowrap;
  }
  .coin-name {
    font-size: 22px; font-weight: 700; color: var(--text-1);
    line-height: 1.1; margin: 0 4px 0 2px;
  }
  .coin-ticker {
    font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase;
    background: var(--bg-chip); padding: 3px 7px; border-radius: 4px;
  }
  .coin-chain-pill {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--bg-chip); padding: 3px 8px; border-radius: 100px;
    font-size: 11px; font-weight: 500; color: var(--text-2);
    white-space: nowrap;
  }
  .coin-chain-pill .chain-icon {
    width: 14px; height: 14px; border-radius: 50%;
    overflow: hidden; display: inline-flex;
    align-items: center; justify-content: center;
    background: transparent;
  }
  .coin-chain-pill .chain-icon img {
    width: 100%; height: 100%; object-fit: cover; display: block;
  }
  .coin-tag {
    font-size: 11px; color: var(--text-2); background: var(--bg-chip);
    padding: 3px 8px; border-radius: 4px; font-weight: 500;
    white-space: nowrap;
  }
  .coin-contract {
    background: var(--bg-soft); border: 1px solid var(--border);
    padding: 3px 8px; border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; color: var(--text-2);
    display: inline-flex; align-items: center; gap: 6px;
  }
  .coin-contract button {
    background: none; border: none; color: var(--text-3); cursor: pointer;
    padding: 0; display: flex; align-items: center; transition: color 0.15s;
  }
  .coin-contract button:hover { color: var(--green); }

  .coin-header-actions {
    display: inline-flex; gap: 6px; align-items: center;
    margin-left: auto; flex-shrink: 0;
  }
  .header-action-btn {
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 8px 12px; border-radius: var(--r); cursor: pointer;
    font-size: 12px; font-weight: 600; color: var(--text-2);
    display: flex; align-items: center; gap: 5px;
    font-family: inherit;
    transition: box-shadow 0.08s ease, transform 0.08s ease, color 0.12s, border-color 0.12s;
    box-shadow: var(--skeu-light);
    margin-bottom: 2px;
  }
  .header-action-btn:hover { border-color: var(--green); color: var(--green); }
  .header-action-btn:active {
    transform: translateY(2px); box-shadow: var(--skeu-light-active);
  }
  .header-action-btn svg { width: 13px; height: 13px; }

  .coin-header-stats {
    display: flex; gap: 0;
    margin-top: 12px; flex-wrap: wrap; align-items: center;
  }
  .coin-stat {
    background: transparent;
    padding: 2px 18px 2px 0;
    margin-right: 18px;
    border-right: 1px solid var(--border);
    display: inline-flex; align-items: baseline; gap: 6px;
    min-width: 0;
  }
  .coin-stat:last-of-type { border-right: none; }
  .coin-stat-label {
    font-size: 11px; color: var(--text-3); text-transform: uppercase;
    letter-spacing: 0.4px; font-weight: 600;
    white-space: nowrap;
  }
  .coin-stat-val {
    font-size: 14px; font-weight: 700; color: var(--text-1);
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
  }
  .coin-stat-sub {
    font-size: 11px; color: var(--text-3); white-space: nowrap;
  }
  .coin-stat-sub #statFdv { color: var(--text-2); }
  .coin-stat-meta {
    margin-left: auto; font-size: 11px; color: var(--text-3);
    white-space: nowrap; padding-left: 12px;
  }

  /* ═══ GRID LAYOUT — 3 cols: left-info | center | sidebar ═══ */
  .grid-main {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr) 380px;
    grid-template-areas: "left-info center sidebar";
    column-gap: 24px;
    row-gap: 0;
    align-items: start;
    margin-top: 8px;
  }
  .grid-main > .left-info-col { grid-area: left-info; min-width: 0; }
  .grid-main > .left-col      { grid-area: center; min-width: 0; }
  .grid-main > .sidebar       { grid-area: sidebar; }

  /* ═══ LEFT INFO COLUMN — identity, contract, description, links ═══ */
  .left-info-col {
    display: flex; flex-direction: column; gap: 20px;
    padding: 24px 0;
  }
  .lic-identity {
    display: flex; align-items: center; gap: 12px; flex-wrap: nowrap;
  }
  .lic-identity .coin-logo {
    width: 44px; height: 44px; flex-shrink: 0;
  }
  .lic-name-block { flex: 1; min-width: 0; }
  .lic-name-row {
    display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  }
  .lic-name {
    font-size: 19px; font-weight: 700; color: var(--text-1); line-height: 1.2;
  }
  .lic-ticker {
    font-size: 12px; color: var(--text-3); font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.4px;
  }
  /* CMC-style compact meta row under name: contract + age + chain icon */
  .lic-meta-row {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-top: 4px; font-size: 12px; color: var(--text-3);
  }
  .lic-contract-inline {
    display: inline-flex; align-items: center; gap: 4px;
    font-family: 'JetBrains Mono', monospace; color: var(--text-2);
    font-weight: 500;
  }
  .lic-contract-inline button {
    background: transparent; border: none; padding: 0;
    color: var(--text-3); cursor: pointer; display: inline-flex; align-items: center;
  }
  .lic-contract-inline button:hover { color: var(--blue); }
  .lic-age {
    display: inline-flex; align-items: center;
    background: var(--bg-soft); border: 1px solid var(--border);
    padding: 1px 6px; border-radius: 4px;
    font-size: 11px; font-weight: 600; color: var(--text-2);
  }
  .lic-chain-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 50%; overflow: hidden;
    flex-shrink: 0;
  }
  .lic-chain-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .lic-pills-row {
    display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  }
  /* Rank medallion — the gold accent signifies rank/achievement, which is what
     the page is about. Text stays near-white; only the border and glow are gold. */
  .lic-rank-badge {
    background: linear-gradient(160deg, rgba(201,162,39,.16) 0%, rgba(201,162,39,.05) 100%);
    color: var(--text-primary);
    border: 1px solid rgba(201,162,39,.55);
    box-shadow: 0 0 12px rgba(201,162,39,.25);
    font-size: 11px; font-weight: 700;
    padding: 4px 11px; border-radius: 100px;
    letter-spacing: 0.04em;
    display: inline-flex; align-items: center;
  }
  .lic-contract {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; padding: 10px 12px;
    display: flex; align-items: center; gap: 10px; flex-wrap: nowrap;
  }
  .lic-contract-label {
    font-size: 11px; color: var(--text-3); font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.4px;
    flex-shrink: 0;
  }
  .lic-contract-val {
    display: flex; align-items: center; gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px; color: var(--blue);
    font-weight: 600; min-width: 0; flex: 1;
  }
  .lic-contract-val span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lic-contract-val button {
    background: transparent; border: none; cursor: pointer;
    color: var(--text-3); padding: 0; display: flex; align-items: center;
    flex-shrink: 0;
  }
  .lic-contract-val button:hover { color: var(--green); }
  .lic-actions {
    display: flex; flex-direction: row; gap: 6px;
  }
  .lic-actions .header-action-btn {
    flex: 1 1 0; min-width: 0;
    justify-content: center;
    padding: 9px 8px; font-size: 12px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .lic-actions .header-action-btn svg { flex-shrink: 0; }
  /* Icon-only variant — stretches to fill 50/50 with icon centered */
  .lic-actions .header-action-btn--icon {
    flex: 1 1 0; padding: 10px 0;
  }
  .lic-actions .header-action-btn--icon svg { width: 16px; height: 16px; }

  /* ═══ Watchlist star button — sits at far right of identity row, CMC-style ═══ */
  .lic-watch-btn {
    margin-left: auto;
    flex-shrink: 0;
    width: 36px; height: 36px;
    background: var(--bg-soft); border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-2); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    padding: 0;
  }
  .lic-watch-btn:hover {
    color: var(--yellow);
    border-color: var(--yellow);
    background: rgba(240,185,11,0.08);
  }
  .lic-watch-btn svg { width: 16px; height: 16px; }
  /* When actively watching, the SVG already gets fill="#F59E0B" via toggleStar JS */

  /* ═══ BIG PRICE BLOCK — prominent CMC-style price + change ═══ */
  .lic-price-block {
    display: flex; flex-direction: column; gap: 4px;
    padding: 4px 0;
  }
  .lic-price-currency {
    font-size: 11px; color: var(--text-3);
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
  }
  .lic-price-main {
    font-size: 34px; font-weight: 700; color: var(--text-1);
    line-height: 1.1; letter-spacing: -0.02em;
    font-family: 'Inter', sans-serif;
    font-variant-numeric: tabular-nums;
    word-break: break-all;
  }
  .lic-price-change {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 700; margin-top: 4px;
  }
  .lic-price-change .lic-change-arrow,
  .lic-price-change .lic-change-val { color: var(--up); }
  .lic-price-change.down .lic-change-arrow,
  .lic-price-change.down .lic-change-val { color: var(--down); }
  .lic-price-change .lic-change-period { color: var(--text-3); font-weight: 500; }

  /* ═══ STAT GRID — 2-col stacked stat cards ═══ */
  .lic-stat-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  }
  .lic-stat-card {
    background: var(--surface-card);
    border: 1px solid var(--border-hairline);
    box-shadow: var(--elev-card);
    border-radius: 10px; padding: 13px 15px;
    min-width: 0;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  }
  .lic-stat-card:hover {
    border-color: var(--border-hairline-strong);
    background: var(--surface-raised);
  }
  .lic-stat-card.lic-stat-full { grid-column: 1 / -1; }
  .lic-stat-label {
    font-size: 10.5px; color: var(--text-secondary);
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 7px;
    display: flex; align-items: center; gap: 4px;
  }
  .lic-stat-val {
    font-size: 15px; font-weight: 700; color: var(--text-1);
    font-family: 'JetBrains Mono', monospace; letter-spacing: -0.2px;
    font-variant-numeric: tabular-nums;
    word-break: break-all;
  }
  .lic-stat-full .lic-stat-val { font-size: 18px; }

  /* ═══ 24h RANGE BAR ═══ */
  .lic-range-block {
    background: var(--surface-card);
    border: 1px solid var(--border-hairline);
    box-shadow: var(--elev-card);
    border-radius: 10px; padding: 13px 15px;
    display: flex; flex-direction: column; gap: 9px;
  }
  .lic-range-header { display: flex; align-items: center; justify-content: space-between; }
  .lic-range-title {
    font-size: 10.5px; color: var(--text-secondary);
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  }
  .lic-range-track {
    position: relative; height: 4px;
    background: rgba(6,7,11,.85);
    box-shadow: 0 1px 0 rgba(255,255,255,.04);
    border-radius: 2px; overflow: visible;
  }
  .lic-range-fill {
    position: absolute; left: 0; top: 0; bottom: 0;
    background: linear-gradient(90deg, var(--down) 0%, var(--up) 100%);
    border-radius: 2px;
    width: 50%;
  }
  .lic-range-marker {
    position: absolute; top: 50%;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--text-1); border: 2px solid var(--bg-page);
    transform: translate(-50%, -50%);
    left: 50%;
    box-shadow: 0 0 0 1px var(--border);
  }
  .lic-range-labels {
    display: flex; justify-content: space-between; align-items: baseline;
    font-size: 11px; color: var(--text-3);
    font-family: 'JetBrains Mono', monospace;
  }
  .lic-range-labels span { display: flex; flex-direction: column; gap: 2px; }
  .lic-range-labels span.r { align-items: flex-end; }
  .lic-range-labels em {
    font-style: normal; font-size: 10px; color: var(--text-3);
    text-transform: uppercase; letter-spacing: 0.4px; font-family: 'Inter', sans-serif;
  }
  .lic-range-labels b { color: var(--text-1); font-weight: 600; font-size: 12px; }
  /* Screen-reader-only label kept in DOM for JS hooks (scanLinkName) + a11y */
  .ha-label-sr {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
  }
  .lic-section { display: flex; flex-direction: column; gap: 10px; }
  .lic-section-title {
    font-size: 13px; font-weight: 700; color: var(--text-1);
    text-transform: uppercase; letter-spacing: 0.4px;
    padding-bottom: 8px; border-bottom: 1px solid var(--border);
  }
  .lic-section .about-text { font-size: 13px; line-height: 1.65; max-width: none; }
  .lic-section .links-row {
    display: flex; flex-direction: column; gap: 6px;
  }

  /* ═══ CENTER STATS STRIP — 4 stats above chart ═══ */
  .center-stats-strip {
    display: flex; align-items: stretch;
    background: var(--surface-card);
    border: 1px solid var(--border-hairline);
    box-shadow: var(--elev-card);
    border-radius: 10px; padding: 14px 0; margin: 24px 0 16px;
  }
  .center-stats-strip .coin-stat {
    flex: 1; padding: 0 24px; margin: 0;
    border-right: 1px solid var(--border-hairline);
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    background: transparent;
  }
  .center-stats-strip .coin-stat:last-child { border-right: none; }
  .center-stats-strip .coin-stat-val { font-size: 18px; }
  .center-stats-strip .coin-stat-label {
    font-size: 11px; color: var(--text-3);
  }
  .center-stats-strip .coin-stat-sub { font-size: 11px; }

  /* ═══ CARDS (flat sections, no card box) ═══ */
  .card {
    background: transparent; border: none; border-radius: 0; box-shadow: none;
    padding: 28px 0; margin-bottom: 0;
    border-bottom: 1px solid var(--border);
  }

  /* ═══ COMBINED Token Details block: Key Info on top, Tokenomics below ═══ */
  .token-details-card { padding-bottom: 32px; }
  .token-details-grid {
    display: flex; flex-direction: column; gap: 28px;
    margin-top: 6px;
  }
  .td-subtitle {
    font-size: 11px; font-weight: 700; color: var(--text-3);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 14px;
  }

  /* Override base .info-grid quirks (border-top + border-bottom on items) */
  .token-details-card .info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 0;
    border-top: none;
    background: var(--surface-card);
    border: 1px solid var(--border-hairline); border-radius: 10px;
    box-shadow: var(--elev-card);
    overflow: hidden;
  }
  .token-details-card .info-grid .info-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-hairline);
    border-right: 1px solid var(--border-hairline);
  }
  /* No right border for last column of each row */
  .token-details-card .info-grid .info-item:nth-child(3n) { border-right: none; }
  /* No bottom border for last row */
  .token-details-card .info-grid .info-item:nth-last-child(-n+3) { border-bottom: none; }
  .token-details-card .info-item-val { font-size: 15px; }

  /* Tokenomics: secondary focal point — same raised treatment as the vote hero */
  .token-details-tokenomics {
    background: var(--surface-raised);
    border: 1px solid var(--border-hairline-strong);
    border-radius: 14px;
    padding: 20px 22px 22px;
    box-shadow: var(--elev-card);
  }
  .token-details-tokenomics .td-subtitle { margin-bottom: 4px; }

  /* Tokenomics row: donut + legend horizontal, fills full width */
  .token-details-tokenomics .tokenomics-chart {
    margin-top: 0; gap: 36px; align-items: center; flex-wrap: nowrap;
  }
  .token-details-tokenomics .donut-wrap svg { width: 150px; height: 150px; }
  .token-details-tokenomics .donut-legend {
    flex: 1 1 auto; min-width: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px;
  }

  @media (max-width: 900px) {
    .token-details-card .info-grid { grid-template-columns: 1fr 1fr; }
    .token-details-card .info-grid .info-item:nth-child(3n) { border-right: 1px solid var(--border); }
    .token-details-card .info-grid .info-item:nth-child(2n) { border-right: none; }
    .token-details-card .info-grid .info-item:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
    .token-details-card .info-grid .info-item:nth-last-child(-n+2) { border-bottom: none; }
    .token-details-tokenomics .tokenomics-chart { flex-wrap: wrap; gap: 20px; }
    .token-details-tokenomics .donut-legend { grid-template-columns: 1fr; }
  }

  /* ═══ Recent Votes inside vote-card (moved from main content area) ═══ */
  .vote-activity { margin-top: 14px; }
  .vote-activity-title {
    font-size: 12px; font-weight: 700; color: var(--text-3);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 10px;
  }
  .vote-activity .activity-list {
    max-height: 260px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 0;
    padding-right: 4px;
  }
  .vote-activity .activity-list::-webkit-scrollbar { width: 4px; }
  .vote-activity .activity-list::-webkit-scrollbar-thumb {
    background: var(--border); border-radius: 2px;
  }
  .vote-activity .activity-item {
    padding: 8px 0; gap: 8px;
    border-bottom: 1px solid var(--border);
  }
  .vote-activity .activity-item:first-child { padding-top: 0; }
  .vote-activity .activity-item:last-child { border-bottom: none; padding-bottom: 0; }
  .vote-activity .activity-icon {
    width: 26px; height: 26px;
  }
  .vote-activity .activity-icon svg { width: 12px; height: 12px; }
  .vote-activity .activity-addr { font-size: 11px; gap: 4px; }
  .vote-activity .activity-detail { font-size: 10px; }
  .vote-activity .holder-pill { font-size: 9px; padding: 1px 4px; }
  .vote-activity .activity-amount { font-size: 11px; }
  .left-col > .card:last-of-type { border-bottom: none; }
  .card-title {
    font-size: 17px; font-weight: 700; color: var(--text-1);
    margin-bottom: 18px; display: flex; align-items: center; gap: 8px;
  }
  .card-title svg { color: var(--green); }

  /* ═══ CHART CARD ═══ */
  /* The .chart-container below is the card now — keep the wrapper transparent
     so the raised surface isn't double-drawn. */
  .chart-card {
    padding: 0; overflow: visible;
    border-bottom: none;
    background: transparent;
  }
  .chart-tabs {
    display: flex; align-items: center; gap: 0;
    border-bottom: 1px solid var(--border);
    padding: 0 20px; overflow-x: auto; scrollbar-width: none;
    background: var(--bg-page);
  }
  .chart-tabs::-webkit-scrollbar { display: none; }
  .chart-tab {
    background: transparent; border: none; font-family: inherit;
    color: var(--text-2); font-size: 14px; font-weight: 600;
    padding: 16px 14px; cursor: pointer; transition: color 0.15s;
    position: relative; white-space: nowrap; display: flex; align-items: center; gap: 5px;
  }
  .chart-tab:hover { color: var(--text-1); }
  .chart-tab.active { color: var(--green); }
  .chart-tab.active::after {
    content: ''; position: absolute; bottom: -1px; left: 14px; right: 14px;
    height: 2px; background: var(--green); border-radius: 1px 1px 0 0;
  }
  .chart-tab .ext-icon { width: 11px; height: 11px; opacity: 0.6; }

  .chart-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px 12px; gap: 12px; flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
  }
  .chart-toolbar-left { display: flex; gap: 8px; align-items: center; }
  .chart-dropdown {
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 7px 12px; border-radius: var(--r); cursor: pointer;
    font-size: 13px; font-weight: 600; color: var(--text-1);
    font-family: inherit; display: flex; align-items: center; gap: 6px;
    transition: box-shadow 0.08s ease, transform 0.08s ease, background 0.12s;
    box-shadow: var(--skeu-light);
    margin-bottom: 2px;
  }
  .chart-dropdown:hover { background: var(--bg-soft); }
  .chart-dropdown:active { transform: translateY(2px); box-shadow: var(--skeu-light-active); }
  .chart-dropdown svg { color: var(--text-3); }

  .chart-ranges {
    display: flex; gap: 0; align-items: center;
    background: var(--bg-soft); border: 1px solid var(--border);
    border-radius: var(--r); padding: 2px;
  }
  .chart-range {
    background: transparent; border: none; font-family: inherit;
    color: var(--text-2); font-size: 12px; font-weight: 600;
    padding: 6px 12px; cursor: pointer; transition: all 0.15s;
    border-radius: 4px; min-width: 36px;
  }
  .chart-range:hover { color: var(--text-1); }
  .chart-range.active {
    background: var(--bg-card); color: var(--text-1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  }

  .chart-container {
    position: relative; height: 680px; padding: 0;
    background: var(--surface-card);
    border: 1px solid var(--border-hairline);
    border-radius: 12px;
    box-shadow: var(--elev-card);
    overflow: hidden;
  }
  /* Iframe extends 72px BELOW container; container clips overflow → DexScreener bottom toolbar/brand cropped, chart canvas claims more visible area */
  .chart-iframe-container {
    position: absolute; top: 0; left: 0; right: 0; bottom: -72px;
  }
  /* Belt-and-braces: mask any residual bottom seam */
  /* Matches the iframe background the chart script sets inline (#0D1421), not
     the page void — otherwise this seam mask reads as a dark stripe. */
  .chart-brand-cover {
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 4px; background: #0D1421; z-index: 2;
    pointer-events: none;
  }
  .chart-brand-cover-tl { display: none; }
  .chart-iframe-container iframe {
    width: 100%; height: 100%; border: 0; display: block;
    background: #0D1421;
  }
  /* "No DEX pool found" is a real, expected state for illiquid tokens — not a
     rendering failure. Give it enough presence to read as intentional. */
  .chart-placeholder {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 16px;
    color: var(--text-secondary); font-size: 13.5px; font-weight: 500;
    text-align: center; padding: 0 24px;
    background: var(--surface-card);
    pointer-events: none; z-index: 3;
    transition: opacity 0.35s ease;
  }
  .chart-placeholder #chartPlaceholderMsg {
    max-width: 34ch; line-height: 1.6;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
  }
  .chart-placeholder.hide { opacity: 0; pointer-events: none; }
  .chart-placeholder.hide .chart-skeleton { display: none; }

  /* Minimal candle skeleton: monochrome subtle bars, no color pulse */
  .chart-skeleton {
    position: absolute; inset: 0; display: flex; align-items: flex-end;
    justify-content: space-between; padding: 100px 48px 80px; gap: 3px;
    z-index: -1; opacity: 0.12;
  }
  .chart-skeleton .skel-bar {
    flex: 1; background: var(--text-2);
    border-radius: 1px;
    animation: skel-pulse 2.4s ease-in-out infinite;
  }
  @keyframes skel-pulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 0.85; }
  }

  /* Minimal loader spinner.
     When a pool exists the whole placeholder is hidden by 8s at the latest
     (the chart script's safety net). So a spinner still turning at 9s means
     we are in the terminal "no DEX pool" state — retire it there so the empty
     state reads as settled rather than perpetually loading. */
  .chart-loader {
    width: 28px; height: 28px; border-radius: 50%;
    border: 2px solid var(--border-hairline-strong); border-top-color: var(--text-2);
    animation:
      spin 0.85s linear infinite,
      chart-loader-retire 0.45s ease 9s forwards;
  }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes chart-loader-retire { to { opacity: 0; } }
  @media (prefers-reduced-motion: reduce) {
    .chart-loader { animation: spin 1.6s linear infinite, chart-loader-retire 1ms linear 9s forwards; }
  }
  .chart-placeholder svg {
    color: var(--text-4); animation: chart-pulse 1.6s ease-in-out infinite;
  }
  @keyframes chart-pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
  }

  /* Voting Progress (now embedded inside vote-card) */
  .vote-hero { text-align: center; padding: 4px 0 10px; }
  /* Inter (the only loaded family) at its heaviest weight with tabular figures —
     scale + weight carry the hierarchy, not a second typeface. */
  .vote-big-num {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(2.75rem, 2.1rem + 2.6vw, 3.5rem);
    font-weight: 800; color: var(--text-1);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em; line-height: 1.02;
  }
  .vote-big-label {
    font-size: 10.5px; color: var(--text-secondary); margin-top: 8px;
    text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600;
  }
  .vote-card-divider {
    height: 1px; background: var(--border-hairline); margin: 18px -4px 18px;
  }
  .vote-bar-wrap { margin: 20px 0 6px; }
  .vote-bar {
    height: 7px; background: rgba(6,7,11,.85); border: none;
    box-shadow: 0 1px 0 rgba(255,255,255,.04);
    border-radius: 100px; overflow: visible; position: relative;
    margin-bottom: 10px;
  }
  /* Leading edge: a 4px gold tip painted as the last background stop (so a
     zero-width bar paints nothing at all) plus a right-offset gold bloom. */
  .vote-bar-fill {
    height: 100%; border-radius: 100px; width: 0;
    background:
      linear-gradient(90deg, transparent calc(100% - 4px), var(--accent-gold) calc(100% - 4px)),
      linear-gradient(90deg, var(--green-dd) 0%, var(--accent-blue) 55%, #6E8FFF 100%);
    box-shadow: 8px 0 14px -6px rgba(201,162,39,.75), 0 0 12px rgba(56,97,251,.28);
    transition: width 1.5s cubic-bezier(0.22,1,0.36,1);
  }
  .vote-bar-labels {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; gap: 8px;
  }
  .vote-bar-labels .side {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700; color: var(--text-1);
    font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
  }
  .vote-bar-labels .title {
    color: var(--text-secondary); font-weight: 500;
    font-size: 12px;
  }

  .vote-stats-row {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0; margin-top: 18px;
    padding: 15px 0;
    border-top: 1px solid var(--border-hairline);
    border-bottom: 1px solid var(--border-hairline);
  }
  .vote-stat {
    background: transparent; border-radius: 0;
    padding: 0 8px; text-align: center;
    border-right: 1px solid var(--border-hairline);
  }
  .vote-stat:last-child { border-right: none; }
  .vote-stat-val {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px; font-weight: 700; color: var(--text-1);
    font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
  }
  .vote-stat-val.green { color: var(--accent-blue); }
  /* Rank cell — gold, matching the rank badge and the progress leading edge */
  .vote-stat:last-child .vote-stat-val { color: var(--accent-gold); }
  .vote-stat-label {
    font-size: 9.5px; color: var(--text-secondary); margin-top: 4px;
    text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
  }

  /* About */
  .about-text {
    font-size: 14px; color: var(--text-2); line-height: 1.75;
    max-width: 920px;
  }
  .about-text p { margin-bottom: 14px; }
  .about-text strong { color: var(--text-1); font-weight: 600; }
  .about-text:last-child p:last-child { margin-bottom: 0; }
  .about-text code {
    background: var(--bg-soft); padding: 2px 6px; border-radius: 4px;
    font-family: 'JetBrains Mono', monospace; font-size: 12px;
  }

  .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0;
    margin-top: 20px;
    border-top: 1px solid var(--border);
  }
  .info-item {
    background: transparent; padding: 16px 24px 16px 0;
    border-bottom: 1px solid var(--border);
  }
  .info-item-label {
    font-size: 10.5px; color: var(--text-secondary); text-transform: uppercase;
    letter-spacing: 0.08em; margin-bottom: 7px; font-weight: 600;
  }
  .info-item-val {
    font-size: 16px; font-weight: 700; color: var(--text-1); word-break: break-word;
    font-family: 'JetBrains Mono', monospace; letter-spacing: -0.3px;
    font-variant-numeric: tabular-nums;
  }
  .info-item-val a { color: var(--green); }
  .info-item-val a:hover { text-decoration: underline; }
  .info-item-val .badge-verified {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--green); font-size: 12px;
  }

  /* Links */
  .links-row { display: flex; gap: 8px; flex-wrap: wrap; }
  .link-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--bg-soft); border: 1px solid var(--border);
    padding: 7px 12px; border-radius: 100px;
    font-size: 12px; font-weight: 500; color: var(--text-1);
    transition: all 0.15s;
  }
  .link-chip:hover { border-color: var(--green); color: var(--green); background: var(--green-bg); }
  .link-chip svg { color: var(--text-3); flex-shrink: 0; }
  .link-chip:hover svg { color: var(--green); }

  /* Markets table */
  .table-wrap { overflow-x: auto; margin: -8px -20px -8px; padding: 8px 20px; }
  .markets-table { width: 100%; border-collapse: collapse; font-size: 13px; }
  .markets-table th {
    text-align: left; padding: 10px 12px; font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-3);
    font-weight: 600; border-bottom: 1px solid var(--border); white-space: nowrap;
  }
  .markets-table th.r { text-align: right; }
  .markets-table td {
    padding: 12px; border-bottom: 1px solid var(--border);
    vertical-align: middle; color: var(--text-1);
  }
  .markets-table td.r { text-align: right; font-family: 'JetBrains Mono', monospace; }
  .markets-table tr:last-child td { border-bottom: none; }
  .market-rank { color: var(--text-3); font-weight: 600; width: 28px; }
  .market-exchange {
    display: flex; align-items: center; gap: 8px; font-weight: 600;
  }
  .market-exchange-logo {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--bg-soft); border: 1px solid var(--border);
    display: flex; align-items: center;
    justify-content: center; font-size: 10px; font-weight: 700; color: var(--text-1);
  }
  .pair-cell {
    display: flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 500;
  }
  .pair-cell .arrow { color: var(--text-4); }

  /* Tokenomics */
  .tokenomics-chart { display: flex; align-items: center; gap: 28px; margin-top: 12px; flex-wrap: wrap; }
  .donut-wrap { position: relative; flex-shrink: 0; }
  .donut-center {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
  }
  .donut-center-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px; font-weight: 700; color: var(--text-1);
  }
  .donut-center-label { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
  .donut-legend {
    display: flex; flex-direction: column; gap: 10px;
    flex: 1 1 220px; min-width: 0;
  }
  .legend-item {
    display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-1);
    padding: 6px 0; border-bottom: 1px solid var(--border);
  }
  .legend-item:last-child { border-bottom: none; }
  .legend-dot { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
  .legend-pct {
    margin-left: auto; font-family: 'JetBrains Mono', monospace;
    font-weight: 700; font-size: 13px; color: var(--text-1);
  }

  /* Activity */
  .activity-list { display: flex; flex-direction: column; }
  .activity-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid var(--border);
  }
  .activity-item:last-child { border-bottom: none; padding-bottom: 0; }
  .activity-item:first-child { padding-top: 0; }
  .activity-icon {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    background: var(--green-bg); color: var(--green);
  }
  .activity-info { flex: 1; min-width: 0; }
  .activity-addr {
    font-size: 13px; font-weight: 600; color: var(--text-1);
    font-family: 'JetBrains Mono', monospace;
    display: flex; align-items: center; gap: 6px;
  }
  .activity-detail { font-size: 12px; color: var(--text-3); margin-top: 2px; }
  .holder-pill {
    background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border);
    padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 700;
    font-family: 'Inter', sans-serif;
  }
  .activity-amount {
    font-size: 14px; font-weight: 700; color: var(--green);
    flex-shrink: 0; font-family: 'JetBrains Mono', monospace;
  }

  /* ═══ RIGHT SIDEBAR ═══ */
  .sidebar { position: sticky; top: 16px; align-self: start; }
  /* ═══ VOTE HERO PANEL — the page's signature surface ═══
     Elevated above every secondary card: brand-tinted border, blue ambient
     bloom, and a 2px gold→blue hairline cap that ties the panel to the rank
     accent used on the badge and the progress leading edge. */
  .vote-card {
    position: relative;
    background: var(--surface-raised);
    border: 1px solid rgba(56,97,251,.25);
    border-radius: 14px;
    padding: 26px 22px 24px;
    margin-bottom: 16px;
    box-shadow: var(--elev-raised);
    overflow: hidden;
  }
  .vote-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-blue));
  }
  .vote-card-title {
    font-size: 12px; font-weight: 600; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 14px; text-align: center;
  }

  .countdown-row {
    display: flex; justify-content: center; gap: 6px; margin-bottom: 20px;
  }
  .cd-unit {
    background: transparent; border: none;
    border-radius: 0; padding: 4px 0; text-align: center; min-width: 56px;
  }
  .cd-num {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 24px; font-weight: 700; color: var(--accent-blue);
    font-variant-numeric: tabular-nums; line-height: 1;
    letter-spacing: -0.02em;
  }
  .cd-label {
    font-size: 9.5px; color: var(--text-secondary); text-transform: uppercase;
    letter-spacing: 0.1em; margin-top: 6px; font-weight: 600;
  }
  .cd-sep {
    font-size: 22px; font-weight: 700; color: var(--text-4);
    align-self: flex-start; padding-top: 10px;
  }

  .eligibility { margin-bottom: 18px; }
  .eligibility-title {
    font-size: 12px; font-weight: 600; color: var(--text-2);
    margin-bottom: 10px; text-align: center;
    text-transform: uppercase; letter-spacing: 0.5px;
  }
  .eligibility-cards { display: flex; gap: 10px; }
  .elig-card {
    flex: 1; background: transparent; border: none;
    border-radius: 0; padding: 8px 6px; text-align: center;
    position: relative;
  }
  .elig-icon {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--green-bg); border: 1px solid var(--green-border);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 8px;
  }
  .elig-icon svg { color: var(--green); }
  .elig-label { font-size: 11px; color: var(--text-3); line-height: 1.4; margin-bottom: 4px; }
  .elig-value { font-size: 13px; font-weight: 700; color: var(--text-1); }
  .elig-or {
    position: absolute; right: -14px; top: 50%; transform: translateY(-50%);
    background: var(--bg-card); color: var(--text-3); font-size: 10px; font-weight: 700;
    padding: 3px 6px; border-radius: 4px; z-index: 2;
    border: 1px solid var(--border);
  }

  .btn-vote-main {
    width: 100%; padding: 14px; border: none; border-radius: var(--r-lg);
    background: var(--blue); color: #fff;
    font-size: 15px; font-weight: 600; font-family: inherit;
    cursor: pointer; position: relative;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: background 0.15s, opacity 0.15s;
  }
  .btn-vote-main:hover { opacity: 0.9; }
  .btn-vote-main:active { opacity: 0.85; }
  .btn-vote-main.voted {
    background: rgba(56,97,251,0.12); border: 1px solid var(--blue); color: var(--blue);
    cursor: default;
  }
  .btn-vote-main.voted:hover { opacity: 1; }

  .vote-note {
    text-align: center; font-size: 11px; color: var(--text-3);
    margin-top: 12px; line-height: 1.5;
  }
  .vote-note svg { vertical-align: middle; margin-right: 4px; color: var(--green); }

  .rules-mini {
    margin-top: 18px; border-top: 1px solid var(--border); padding-top: 16px;
  }
  .rule-mini-item {
    display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px;
  }
  .rule-mini-item:last-child { margin-bottom: 0; }
  .rule-mini-icon {
    width: 26px; height: 26px; border-radius: 6px; background: var(--green-bg);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .rule-mini-icon svg { width: 14px; height: 14px; color: var(--green); }
  .rule-mini-text { font-size: 12px; color: var(--text-2); line-height: 1.5; }
  .rule-mini-text strong { color: var(--text-1); font-weight: 600; }

  /* Share */
  .share-card {
    background: transparent; border: none; border-radius: 0;
    padding: 20px 0 0; box-shadow: none;
  }
  .share-label {
    font-size: 13px; color: var(--text-2); margin-bottom: 12px;
    font-weight: 600; display: flex; align-items: center; gap: 6px;
  }
  .share-btns { display: flex; gap: 8px; }
  .share-btn {
    flex: 1; padding: 10px; border-radius: var(--r);
    background: var(--bg-card); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 12px; font-weight: 600; color: var(--text-2);
    cursor: pointer;
    transition: box-shadow 0.08s ease, transform 0.08s ease, color 0.12s, background 0.12s, border-color 0.12s;
    box-shadow: var(--skeu-light);
    margin-bottom: 2px;
  }
  .share-btn:hover {
    border-color: var(--green); color: var(--green); background: var(--green-bg);
  }
  .share-btn:active { transform: translateY(2px); box-shadow: var(--skeu-light-active); }

  /* ═══ MODAL ═══ */
  .modal-overlay {
    position: fixed; inset: 0; background: rgba(13,20,33,0.5);
    backdrop-filter: blur(6px); display: flex; align-items: center;
    justify-content: center; z-index: 1000;
    opacity: 0; pointer-events: none; transition: opacity 0.25s;
  }
  .modal-overlay.show { opacity: 1; pointer-events: all; }
  .modal {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--r-xl); padding: 32px; width: 440px; max-width: 92vw;
    transform: scale(0.95); transition: transform 0.25s; text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  }
  .modal-overlay.show .modal { transform: scale(1); }
  .modal-check {
    width: 72px; height: 72px; border-radius: 50%; background: var(--green-bg);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
  }
  .modal h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; color: var(--text-1); }
  .modal p { font-size: 14px; color: var(--text-2); line-height: 1.6; }
  .modal-detail {
    background: var(--bg-soft); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 16px;
    margin: 20px 0; display: flex; justify-content: space-between; align-items: center;
  }
  .modal-detail-left { text-align: left; }
  .modal-detail-label {
    font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px;
  }
  .modal-detail-val { font-size: 16px; font-weight: 700; margin-top: 2px; color: var(--text-1); }
  .modal-detail-val.green { color: var(--green); }
  .modal-btns { display: flex; gap: 10px; margin-top: 24px; }
  .btn-modal {
    flex: 1; padding: 13px; border-radius: var(--r-lg);
    font-size: 14px; font-weight: 700; cursor: pointer;
    font-family: inherit;
    transition: box-shadow 0.08s ease, transform 0.08s ease, background 0.12s;
  }
  .btn-cancel {
    background: var(--bg-card); color: var(--text-1); border: 1px solid var(--border);
    box-shadow: var(--skeu-light);
    margin-bottom: 2px;
  }
  .btn-cancel:hover { background: var(--bg-hover); }
  .btn-cancel:active { transform: translateY(2px); box-shadow: var(--skeu-light-active); }
  .btn-confirm {
    background: var(--green); color: #fff; border: none;
    box-shadow: 0 3px 0 0 var(--green-d);
    margin-bottom: 3px;
  }
  .btn-confirm:hover { background: var(--green-h); }
  .btn-confirm:active { transform: translateY(3px); box-shadow: 0 0 0 0 var(--green-d); }

  /* ═══ TOAST ═══
     Previously the idle toast was fully opaque and only translated 100px down.
     Anything that resolves `position: fixed` against the full document (a
     full-page screenshot, a print, some in-app browsers) therefore painted it
     mid-page, on top of the Key Information grid. It is now genuinely hidden
     when idle — opacity + visibility — and anchored to the bottom-right corner
     so it can never collide with flow content. */
  .toast {
    position: fixed; bottom: 24px; right: 24px; left: auto;
    transform: translateY(16px) scale(.97);
    opacity: 0; visibility: hidden; pointer-events: none;
    background: var(--surface-raised);
    border: 1px solid var(--border-hairline-strong);
    border-radius: 12px; padding: 13px 18px;
    display: flex; align-items: center; gap: 10px;
    max-width: min(360px, calc(100vw - 32px));
    z-index: 1100;
    transition:
      transform .4s cubic-bezier(0.22,1,0.36,1),
      opacity .28s ease,
      visibility .28s;
    box-shadow:
      0 1px 0 rgba(255,255,255,.05) inset,
      0 18px 44px rgba(0,0,0,.55),
      0 0 0 1px rgba(56,97,251,.14);
  }
  .toast.show {
    transform: translateY(0) scale(1);
    opacity: 1; visibility: visible;
  }
  .toast svg { color: var(--up); flex-shrink: 0; }
  .toast span { font-size: 13.5px; font-weight: 500; color: var(--text-1); }
  @media (max-width: 500px) {
    .toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  }

  /* ═══ RESPONSIVE ═══ */
  @media (max-width: 960px) {
    .nav-main { display: none; }
    .search-pill { width: 180px; }
    .coin-header-actions { margin-left: 0; }
    .coin-stat-meta { margin-left: 0; padding-left: 0; width: 100%; }
  }
  @media (max-width: 1180px) {
    .grid-main {
      grid-template-columns: 340px minmax(0, 1fr) 340px;
      column-gap: 18px;
    }
  }
  @media (max-width: 1000px) {
    .grid-main {
      grid-template-columns: minmax(0, 1fr) 320px;
      grid-template-areas:
        "left-info sidebar"
        "center    sidebar";
    }
    .left-info-col { padding-top: 8px; }
  }
  @media (max-width: 860px) {
    .grid-main { display: flex; flex-direction: column; gap: 18px; align-items: stretch; }
    .left-info-col, .left-col, .sidebar { display: contents; }
    /* Mobile order: Identity → BigPrice → Pills → Chart → Vote → StatGrid → Range → TokenDetails → Markets → About → Links → Share */
    .left-info-col > .lic-identity   { order: 0; }
    .left-info-col > .lic-price-block { order: 1; }
    .left-info-col > .lic-pills-row  { order: 2; }
    .left-col > .chart-card          { order: 3; display: none !important; }
    .vote-card { order: 4; position: static; margin-top: 0; }
    .left-info-col > .lic-stat-grid  { order: 5; }
    .left-info-col > .lic-range-block { order: 6; }
    .left-col > .token-details-card  { order: 7; }
    .left-col > #section-markets     { order: 8; }
    .left-info-col > .lic-section-about { order: 9; }
    .left-info-col > .lic-section-links { order: 10; }
    .share-card { order: 11; }
    /* Strip the border-bottom dividers that look weird floating between gap-separated cards */
    .left-col > .card { border-bottom: none; padding: 0; }
    .chart-card { padding: 0; }
    /* Inside lic-section give the title more breathing room from content below */
    .lic-section { gap: 14px; }

    /* Action buttons in a single row instead of vertical stack */
    .lic-actions { flex-direction: row; gap: 6px; }
    .lic-actions .header-action-btn {
      flex: 1 1 0; min-width: 0; padding: 9px 8px;
      font-size: 12px; white-space: nowrap;
      overflow: hidden; text-overflow: ellipsis;
    }
    .lic-actions .header-action-btn svg { flex-shrink: 0; }
    .chart-container { height: 460px; }
    .center-stats-strip { flex-direction: column; padding: 0; }
    .center-stats-strip .coin-stat {
      border-right: none; border-bottom: 1px solid var(--border);
      padding: 14px 18px;
    }
    .center-stats-strip .coin-stat:last-child { border-bottom: none; }
    /* Stack stats vertically without dangling vertical separators */
    .coin-header-stats { flex-direction: column; align-items: stretch; gap: 0; }
    .coin-stat {
      width: 100%; border-right: none; border-bottom: 1px solid var(--border);
      padding: 8px 0; margin-right: 0;
      justify-content: flex-start;
    }
    .coin-stat:last-of-type { border-bottom: none; }
    .coin-stat-meta {
      margin-left: 0; padding-left: 0; padding-top: 8px;
      width: 100%; border-top: 1px solid var(--border);
    }
    /* Coin header actions wrap below identity on mobile */
    .coin-header-actions { margin-left: 0; width: 100%; }
    .coin-header-actions .header-action-btn { flex: 1; justify-content: center; }
    .info-grid { grid-template-columns: 1fr 1fr; }
    .vote-big-num { font-size: 36px; }
    .tokenomics-chart { flex-direction: column; gap: 18px; }
    .coin-name { font-size: 20px; }
    .search-pill { display: none; }
    .header-link { display: none; }
    .header-right { gap: 4px; }
    .ticker-actions .btn-login,
    .ticker-actions .btn-icon { display: none; }
    .ticker-metrics { gap: 14px; }
  }
  @media (max-width: 500px) {
    .info-grid { grid-template-columns: 1fr; }
    .coin-header-stats { grid-template-columns: 1fr; }
    .coin-header { padding: 18px; }
    .card { padding: 16px; }
  }

  /* ═══ ANIMATIONS ═══ */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .anim { opacity: 0; animation: fadeUp 0.5s forwards; }
  .anim-d1 { animation-delay: 0.04s; }
  .anim-d2 { animation-delay: 0.08s; }
  .anim-d3 { animation-delay: 0.12s; }
  .anim-d4 { animation-delay: 0.16s; }
  .anim-d5 { animation-delay: 0.20s; }
  .anim-d6 { animation-delay: 0.24s; }

  /* ═══ FOOTER ═══ */
  .footer {
    background: var(--bg-page);
    border-top: 1px solid var(--border);
    padding: 48px 24px 24px;
    margin-top: 60px;
  }
  .footer-inner { width: 100%; margin: 0 auto; }
  .footer-top {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--border);
    margin-bottom: 32px; flex-wrap: wrap;
  }
  .footer-brand { flex: 0 0 280px; }
  .footer-brand-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
  .footer-brand-row .logo-img { width: 24px; height: 24px; }
  .footer-brand-row .logo-text { font-size: 16px; }
  .footer-brand-desc { font-size: 13px; color: var(--text-3); line-height: 1.6; margin-bottom: 16px; }
  .footer-socials { display: flex; gap: 8px; flex-wrap: wrap; }
  .footer-social {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--bg-soft); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-2); transition: all 0.15s;
  }
  .footer-social:hover { color: var(--green); border-color: var(--green); background: var(--green-bg); }

  .footer-columns {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 24px; flex: 1;
  }
  .footer-col-title {
    font-size: 13px; font-weight: 700; color: var(--text-1);
    margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px;
  }
  .footer-col-links { display: flex; flex-direction: column; gap: 10px; }
  .footer-col-links a {
    font-size: 13px; color: var(--text-2); transition: color 0.15s; line-height: 1.4;
  }
  .footer-col-links a:hover { color: var(--green); }

  .footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 24px; gap: 16px; flex-wrap: wrap;
  }
  .footer-copy { font-size: 12px; color: var(--text-3); }
  .footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
  .footer-legal a {
    font-size: 12px; color: var(--text-3); transition: color 0.15s;
  }
  .footer-legal a:hover { color: var(--text-1); }

  @media (max-width: 960px) {
    .footer-top { flex-direction: column; }
    .footer-brand { flex: 1; max-width: 100%; }
    .footer-columns { grid-template-columns: repeat(3, 1fr); width: 100%; }
  }
  @media (max-width: 600px) {
    .footer { padding: 32px 16px 16px; }
    .footer-columns { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  }

  /* ═══════════════════════════════════════════════════════════════════
     ═══ MOBILE POLISH — consolidated audit fixes (order: large → small)
     ═══════════════════════════════════════════════════════════════════ */

  /* Footer logo: new wide SVG needs constraint so it doesn't push container */
  .footer-brand-row .cmc-logo-img { max-width: 100%; height: auto; }

  /* === 768px: header tightening before mobile stack === */
  @media (max-width: 768px) {
    .header-link { display: none; }
    .search-pill { width: 160px; }
  }

  /* === 600px: vote-card internals reflow for full-width container === */
  @media (max-width: 600px) {
    /* Recent Votes — expand the cramped sidebar typography for full-width display */
    .vote-activity .activity-item { padding: 12px 0; gap: 10px; }
    .vote-activity .activity-icon { width: 32px; height: 32px; }
    .vote-activity .activity-icon svg { width: 14px; height: 14px; }
    .vote-activity .activity-addr { font-size: 12px; }
    .vote-activity .activity-detail { font-size: 11px; }
    .vote-activity .holder-pill { font-size: 10px; padding: 1px 5px; }
    .vote-activity .activity-amount { font-size: 12px; }

    /* Vote-stats row: keep 3-col, just tighten internal padding for mobile */
    .vote-stats-row { grid-template-columns: repeat(3, 1fr); gap: 0; }
    .vote-stat { padding: 8px 4px; }
    .vote-stat-val { font-size: 14px; }
    .vote-stat-label { font-size: 10px; }

    /* Eligibility row: keep 2 cards side-by-side, just tighten padding */
    .eligibility-cards { flex-direction: row; gap: 8px; }
    .elig-card { padding: 12px 8px; }
    .elig-label { font-size: 11px; }
    .elig-value { font-size: 12px; }

    /* Footer logo shrinks to fit */
    .footer-brand-row .cmc-logo-img { width: 140px; height: auto; }
  }

  /* === 500px: deep mobile — page chrome, contract, info-grid, table === */
  @media (max-width: 500px) {
    .page { padding: 0 16px 40px; }

    /* Long contract addresses overflow the inline lic-contract: allow wrap */
    .lic-contract { flex-wrap: wrap; }

    /* Token Details info-grid: 2-col → 1-col with proper border reset */
    .token-details-card .info-grid { grid-template-columns: 1fr; }
    .token-details-card .info-grid .info-item { border-right: none; }
    .token-details-card .info-grid .info-item:nth-child(3n),
    .token-details-card .info-grid .info-item:nth-child(2n) { border-right: none; }
    .token-details-card .info-grid .info-item:nth-last-child(-n+3),
    .token-details-card .info-grid .info-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
    .token-details-card .info-grid .info-item:last-child { border-bottom: none; }

    /* Pills row: tighter gap so 4+ pills wrap cleanly */
    .lic-pills-row { gap: 4px; }
    .coin-tag { font-size: 11px; padding: 2px 6px; }

    /* Markets table: align negative-margin trick with new 16px page padding */
    .table-wrap { margin: -8px -16px -8px; padding: 8px 16px; }

    /* Center stats: tighten internal padding to match reduced page padding */
    .center-stats-strip .coin-stat { padding: 12px 14px; }

    /* Countdown: 4 units need less gap to fit */
    .countdown-row { gap: 4px; }
    .cd-unit { min-width: 48px; }

    /* Warning banner — asymmetric padding was crushing text on narrow */
    .warning-banner { padding: 8px 36px 8px 14px; font-size: 11px; gap: 8px; }
    .warning-banner svg { flex-shrink: 0; }
    .warning-close { right: 8px; }
  }

  /* === 414px: narrow phones — header logo shrinks === */
  @media (max-width: 414px) {
    .header-inner { padding: 0 12px; }
    .cmc-logo-img { width: 110px; height: auto; }
    .logo { margin-right: 8px; }
  }

  /* === 360px: ultra-narrow — let footer-brand row wrap if needed === */
  @media (max-width: 360px) {
    .footer-brand { flex: 1 1 100%; }
    .footer-brand-row { flex-wrap: wrap; }
    .cmc-logo-img { width: 100px; }
  }

  /* ═══════════════════════════════════════════════════════════════════
     ═══ DARK LUXURY RESKIN — interaction states, mobile consolidation
     ═══════════════════════════════════════════════════════════════════ */

  /* ─── Typography: one uppercase eyebrow treatment across the page ─── */
  .lic-price-currency,
  .td-subtitle,
  .eligibility-title,
  .vote-activity-title,
  .coin-stat-label,
  .markets-table th {
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
  }
  .lic-section-title {
    font-weight: 700; letter-spacing: 0.08em;
    color: var(--text-primary);
    border-bottom-color: var(--border-hairline);
  }

  /* Tabular figures on every number that sits in a column or ticks live. */
  .coin-stat-val,
  .donut-center-val,
  .legend-pct,
  .activity-amount,
  .lic-range-labels,
  .markets-table td.r,
  .modal-detail-val {
    font-variant-numeric: tabular-nums;
  }

  /* ─── Primary CTA: the one button that should feel like a button ─── */
  .btn-vote-main {
    background: linear-gradient(180deg, #4C72FF 0%, var(--accent-blue) 100%);
    box-shadow:
      0 1px 0 rgba(255,255,255,.18) inset,
      0 8px 20px rgba(56,97,251,.32);
    letter-spacing: 0.01em;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
  }
  .btn-vote-main:hover {
    opacity: 1;
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow:
      0 1px 0 rgba(255,255,255,.22) inset,
      0 12px 28px rgba(56,97,251,.42);
  }
  .btn-vote-main:active {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 4px 12px rgba(56,97,251,.28);
  }
  .btn-vote-main.voted {
    background: rgba(56,97,251,.12);
    box-shadow: none;
  }

  /* ─── Deliberate hover lift on the secondary interactive surfaces ─── */
  .share-btn:hover,
  .header-action-btn:hover {
    background: var(--bg-surface-raised);
    border-color: var(--border-hairline-strong);
  }
  .link-chip:hover {
    border-color: rgba(56,97,251,.45);
    background: rgba(56,97,251,.10);
  }

  /* ─── Visible keyboard focus everywhere (never rely on hover alone) ─── */
  a:focus-visible,
  button:focus-visible,
  [tabindex]:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
    border-radius: 4px;
  }
  .btn-vote-main:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 3px;
  }
  .lic-rank-badge:focus-visible,
  .link-chip:focus-visible { outline-offset: 3px; }

  /* ─── MOBILE: six stat boxes → one card with a dense 2-col grid ───
     At ≤860px the three columns collapse into a single stack, where six
     separately-bordered boxes read as a monotonous list. Below, the grid
     itself becomes the card and the children keep only internal hairlines.
     Market Cap / FDV drop their full-width span and hold their emphasis
     through type scale instead, giving an even 3×2 block. */
  @media (max-width: 860px) {
    .lic-stat-grid {
      gap: 0;
      background: var(--surface-card);
      border: 1px solid var(--border-hairline);
      border-radius: 12px;
      box-shadow: var(--elev-card);
      overflow: hidden;
    }
    .lic-stat-grid .lic-stat-card {
      background: transparent;
      border: none; border-radius: 0; box-shadow: none;
      padding: 14px 16px;
      border-right: 1px solid var(--border-hairline);
      border-bottom: 1px solid var(--border-hairline);
    }
    .lic-stat-grid .lic-stat-card:hover { background: rgba(242,244,249,.025); }
    .lic-stat-grid .lic-stat-card.lic-stat-full { grid-column: auto; }
    .lic-stat-grid .lic-stat-card:nth-child(2n) { border-right: none; }
    .lic-stat-grid .lic-stat-card:nth-last-child(-n+2) { border-bottom: none; }
    .lic-stat-grid .lic-stat-full .lic-stat-val { font-size: 16px; }

    /* The hero panel earns a little more room once it is full-width */
    .vote-card { padding: 24px 18px 22px; }
  }

  /* ─── Spacing rhythm: sections breathe by role, not uniformly ─── */
  .left-info-col { gap: 22px; }
  .token-details-grid { gap: 32px; }
  .card { padding: 32px 0; }

  /* ─── Reduced motion ─── */
  @media (prefers-reduced-motion: reduce) {
    .vote-bar-fill,
    .toast,
    .btn-vote-main,
    .lic-stat-card,
    .chart-placeholder {
      transition-duration: 0.01ms !important;
    }
    .btn-vote-main:hover { transform: none; }
    /* Purely decorative loops — the .chart-loader spinner is deliberately
       left running because it communicates loading state. */
    .anim { opacity: 1; animation: none !important; }
    .chart-skeleton .skel-bar,
    .chart-placeholder svg { animation: none !important; }

    /* Vote confirmation modal — snap open/closed, no entrance travel.
       The delay is zeroed too: the overlay's close-side visibility delay
       would otherwise outlive the (now instant) fade. */
    .vote-modal-overlay,
    .vote-modal,
    .vm-cancel,
    .vote-modal-close {
      transition-duration: 0.01ms !important;
      transition-delay: 0s !important;
    }
  }

  /* ═══════════════════════════════════════════════════════════════════
     ═══ VOTE CONFIRMATION MODAL
     ═══ Same dark-luxury recipe as .vote-card: --surface-raised body,
     ═══ brand-tinted border, --elev-raised bloom and the gold→blue
     ═══ hairline cap. No new colors — every value below resolves to a
     ═══ token already declared in :root.
     ═══════════════════════════════════════════════════════════════════ */

  .vote-modal-overlay {
    position: fixed; inset: 0; z-index: 1200;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    background: rgba(6,7,11,.78);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    opacity: 0; visibility: hidden; pointer-events: none;
    /* visibility flips instantly on open (so openVoteModal() can focus into a
       rendered subtree) and only after the fade on close. Transitioning
       visibility itself would leave it hidden at the moment focus() runs. */
    transition: opacity .22s ease, visibility 0s linear .22s;
  }
  .vote-modal-overlay.show {
    opacity: 1; visibility: visible; pointer-events: auto;
    transition: opacity .22s ease, visibility 0s linear 0s;
  }

  .vote-modal {
    position: relative;
    display: flex; flex-direction: column;
    width: 440px; max-width: 100%;
    /* Resolves against the overlay's content box, so it tracks the overlay
       padding at every breakpoint without repeating the number. */
    max-height: 100%;
    background: var(--surface-raised);
    border: 1px solid rgba(56,97,251,.25);
    border-radius: 14px;
    box-shadow: var(--elev-raised);
    overflow: hidden;
    transform: translateY(12px) scale(0.975);
    transition: transform .22s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .vote-modal-overlay.show .vote-modal { transform: none; }
  /* The cap sits on the card, not the scroller, so it never scrolls away. */
  .vote-modal::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-blue));
    z-index: 2;
  }
  .vote-modal-body {
    overflow-y: auto;
    padding: 24px 22px 22px;
  }

  .vote-modal-close {
    position: absolute; top: 12px; right: 12px; z-index: 3;
    width: 30px; height: 30px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: 1px solid transparent;
    color: var(--text-3); cursor: pointer; font-family: inherit;
    transition: color .15s, background .15s, border-color .15s;
  }
  .vote-modal-close:hover {
    color: var(--text-primary);
    background: rgba(242,244,249,.06);
    border-color: var(--border-hairline);
  }

  /* ─── Header: mirrored logo + eyebrow + name/ticker ─── */
  .vm-head {
    display: flex; align-items: flex-start; gap: 12px;
    padding-right: 34px; /* clears the close button */
  }
  .vm-head-text { min-width: 0; }
  .vm-logo { width: 44px; height: 44px; font-size: 15px; margin-top: 1px; }
  .vm-eyebrow {
    font-size: 10px; font-weight: 600; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 0.12em;
  }
  .vm-token {
    font-size: 16px; font-weight: 700; color: var(--text-primary);
    line-height: 1.25; margin-top: 3px;
    overflow-wrap: anywhere;
  }
  .vm-token .vm-ticker { color: var(--text-secondary); font-weight: 600; }

  .vm-contract {
    margin-top: 4px;
    font-size: 12px; color: var(--text-secondary);
    font-variant-numeric: tabular-nums; letter-spacing: 0.01em;
  }

  /* ─── Headline: the reskin's heavy display treatment (Inter 800) ─── */
  .vm-title {
    margin-top: 18px;
    font-size: clamp(1.35rem, 1.05rem + 1.2vw, 1.7rem);
    font-weight: 800; color: var(--text-primary);
    letter-spacing: -0.02em; line-height: 1.15;
    overflow-wrap: anywhere;
  }
  .vm-title .vm-accent { color: var(--accent-blue); }

  /* ─── Highlighted info box ─── */
  .vm-info {
    display: flex; align-items: flex-start; gap: 12px;
    margin-top: 18px; padding: 14px;
    background: var(--green-bg);
    border: 1px solid var(--green-border);
    border-radius: var(--r-lg);
    box-shadow: 0 1px 0 rgba(255,255,255,.04) inset;
  }
  .vm-info-icon {
    width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, var(--green-h) 0%, var(--accent-blue) 100%);
    box-shadow: 0 1px 0 rgba(255,255,255,.18) inset;
    color: #fff;
  }
  .vm-info-text {
    font-size: 12.5px; color: var(--text-2); line-height: 1.55;
  }
  .vm-info-text strong { color: var(--text-primary); font-weight: 700; }

  /* ─── Disclaimer ─── */
  .vm-disclaimer {
    margin-top: 16px;
    font-size: 12.5px; color: var(--text-secondary); line-height: 1.6;
  }
  .vm-disclaimer strong { color: var(--text-1); font-weight: 600; }

  /* ─── Actions ─── */
  .vm-confirm { margin-top: 20px; }
  .vm-confirm:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(0.15);
  }
  .vm-confirm:disabled:hover,
  .vm-confirm:disabled:active {
    opacity: 0.55;
    transform: none;
    filter: grayscale(0.15);
    box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 20px rgba(56,97,251,.32);
  }
  .vm-cancel {
    width: 100%; margin-top: 10px; padding: 12px;
    border-radius: var(--r-lg);
    background: transparent;
    border: 1px solid var(--border-hairline-strong);
    color: var(--text-secondary);
    font-size: 13.5px; font-weight: 600; font-family: inherit;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
  }
  .vm-cancel:hover {
    background: rgba(242,244,249,.05);
    border-color: var(--text-tertiary);
    color: var(--text-primary);
  }
  .vm-cancel:active { background: rgba(242,244,249,.08); }

  /* ─── Narrow screens: tighter gutters, same hierarchy ─── */
  @media (max-width: 420px) {
    .vote-modal-overlay { padding: 12px; }
    .vote-modal-body { padding: 22px 16px 18px; }
    .vm-logo { width: 38px; height: 38px; font-size: 13px; }
    .vm-head { gap: 10px; }
  }

/* ── Intro splash (user addition) ── */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-void);
  background-image: radial-gradient(ellipse at 50% 30%, rgba(56,97,251,.18) 0%, transparent 55%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity .45s ease, visibility .45s ease;
}

.intro-overlay.intro-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-card {
  background: rgba(14,18,32,.85);
  border: 1px solid var(--border-hairline-strong);
  border-radius: var(--r-xl);
  padding: 48px 40px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}

.intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-3);
  margin-bottom: 24px;
}

.intro-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 8px var(--up);
}

.intro-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-1);
}

.intro-title .open {
  color: var(--accent-blue);
  position: relative;
}

.intro-title .open::after {
  content: '.';
  color: var(--accent-blue);
}

.intro-card p {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.65;
  margin-bottom: 28px;
}

.intro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  padding: 16px 32px;
  background: var(--accent-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: filter .2s ease, transform .15s ease;
  animation: pulse-glow 2.5s ease-in-out infinite;
}

.intro-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.intro-footer {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-4);
  letter-spacing: .3px;
  line-height: 1.5;
}

.intro-footer #introFooter2 {
  color: var(--accent-blue);
  font-weight: 700;
  letter-spacing: 1px;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(56,97,251,.25); }
  50% { box-shadow: 0 0 40px rgba(56,97,251,.45), 0 0 60px rgba(56,97,251,.15); }
}

.intro-badge-dot {
  display: none;
}

/* ── Remaining HTML classes ──────────────────────────────── */
.intro-desc {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.65;
  margin-bottom: 28px;
