  :root {
    --bg: #0a0a14;
    --bg-2: #11111f;
    --bg-3: #161629;
    --text: #f5f5fa;
    --muted: #8a8aa8;
    --line: rgba(255,255,255,0.08);

    /* finance semantic — kept conceptually separate from brand */
    --green: #22c55e;
    --red:   #ef4444;
    --gold:  #fbbf24;

    /* === BRAND ACCENT (Layer 3 spark — neon, trim only) === */
    --accent:      #2ee06a;
    --accent-deep: #1f8a4c;
    --accent-glow: rgba(46,224,106,0.25);

    /* === BRAND GRADIENT (Layer 2/3 — deep → neon) === */
    --grad:      linear-gradient(135deg, #1f8a4c 0%, #2ee06a 100%);
    --grad-soft: linear-gradient(135deg, rgba(46,224,106,0.12), rgba(31,138,76,0.06));

    /* === PULSECHAIN IDENTITY (magenta — chain-identity trim only) === */
    --pulse-magenta:      #ec4899;
    --pulse-magenta-soft: rgba(236,72,153,0.15);
    --pulse-grad:         linear-gradient(135deg, #db2777 0%, #ec4899 100%);

    /* === RETIRED — kept defined for backward safety, do not use === */
    --purple: #8b5cf6;
    --pink:   #ec4899;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
  body {
    background:
      radial-gradient(1000px 600px at 80% -10%, rgba(46,224,106,0.06), transparent 60%),
      radial-gradient(900px 500px at -10% 10%, rgba(31,138,76,0.08), transparent 60%),
      var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
  }
  a { color: inherit; text-decoration: none; }
  .container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
  .hero { padding: 48px 0 28px; text-align: center; position: relative; }
  .logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(48px, 9vw, 110px);
    line-height: 1;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.04em;
    filter: drop-shadow(0 0 24px rgba(46,224,106,0.18));
  }
  .hero-descriptor {
    margin: 18px auto 0;
    max-width: 680px;
    padding: 0 8px;
    font-size: clamp(21px, 3vw, 33px);
    font-weight: 800; letter-spacing: -0.01em; line-height: 1.25;
    text-wrap: balance;
  }
  .subhead { margin: 16px auto 0; color: var(--muted); max-width: 680px; font-size: clamp(14px, 1.7vw, 17px); line-height: 1.6; }
  .pulse-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 12px var(--accent);
    margin-right: 8px; vertical-align: middle;
    animation: pulse 1.6s ease-in-out infinite;
  }
  @keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.8)} }
  .live-pill {
    display: inline-flex; align-items: center; gap: 6px;
    margin-bottom: 18px; padding: 6px 14px;
    border: 1px solid var(--line); border-radius: 999px;
    background: rgba(255,255,255,0.03);
    font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  }
  .updated {
    margin-top: 14px; color: var(--muted); font-size: 12px; letter-spacing: 0.06em;
    min-height: 18px;
  }
  .updated b { color: var(--text); font-weight: 700; }
  .ticker-wrap {
    margin: 26px 0;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,0.02);
    overflow: hidden;
    min-height: 44px;
  }
  .ticker { display: flex; gap: 0; align-items: stretch; animation: scroll 80s linear infinite; width: max-content; }
  @keyframes scroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }
  .tick { display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-right: 1px solid var(--line); white-space: nowrap; }
  .tick-sym { font-weight: 800; font-size: 13px; letter-spacing: 0.02em; }
  .tick-price { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
  .tick-chg { font-size: 11px; font-weight: 700; color: var(--green); }
  .tick-chg.neg { color: var(--red); }
  .tick-badge {
    width: 22px; height: 22px; border-radius: 50%;
    overflow: hidden; background: var(--grad);
    box-shadow: 0 0 14px rgba(46,224,106,0.35); flex-shrink: 0;
  }
  .logo-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
  .main-grid { max-width: 860px; margin: 26px auto 0; }
  .section-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(32px, 5vw, 52px); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
  .section-title .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .tier-band {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px; margin: 14px 0 0;
    border-radius: 14px;
    font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; font-size: 12px;
    border: 1px solid var(--line);
  }
  .tier-heavy   { background: linear-gradient(90deg, rgba(251,191,36,0.18), rgba(251,191,36,0.02)); color: #fde68a; border-color: rgba(251,191,36,0.3); }
  .tier-snack   { background: linear-gradient(90deg, rgba(34,197,94,0.18), rgba(34,197,94,0.02)); color: #bbf7d0; border-color: rgba(34,197,94,0.3); }
  .tier-absurd  { background: linear-gradient(90deg, rgba(148,163,184,0.16), rgba(148,163,184,0.02)); color: #cbd5e1; border-color: rgba(148,163,184,0.30); }
  .tier-dust    { background: linear-gradient(90deg, rgba(100,116,139,0.14), rgba(100,116,139,0.02)); color: #94a3b8; border-color: rgba(100,116,139,0.25); }
  .cta {
    margin-top: 36px; text-align: center;
    padding: 40px 20px; border-radius: 24px;
    background: radial-gradient(600px 300px at 50% 0%, rgba(236,72,153,0.14), transparent 70%), var(--bg-2);
    border: 1px solid var(--line);
  }
  .cta h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(28px, 4.5vw, 44px); font-weight: 700; letter-spacing: -0.02em; }
  .cta-buttons { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
  .btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 12px; font-weight: 800; font-size: 15px; border: 1px solid var(--line); transition: transform .15s ease, box-shadow .2s ease; }
  .btn:hover { transform: translateY(-2px); }
  .ladder-head { margin-top: 8px; }
  .ladder-head-cta { display: flex; flex-direction: column; align-items: center; margin-top: 14px; gap: 10px; }
  .view-full-btn, .calc-open-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; max-width: 420px;
    padding: 16px 24px; border-radius: 999px;
    color: var(--text); font-weight: 800; font-size: 16px; cursor: pointer;
    letter-spacing: 0.01em;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  }
  .view-full-btn {
    background: rgba(46,224,106,0.08);
    border: 1px solid rgba(46,224,106,0.45);
  }
  .view-full-btn:hover {
    background: var(--grad); border-color: transparent;
    box-shadow: 0 10px 40px rgba(46,224,106,0.40), 0 0 60px rgba(46,224,106,0.18);
    transform: translateY(-2px);
  }
  .chain-filter {
    display: flex; justify-content: center; gap: 8px;
    margin: 14px 0 6px; flex-wrap: wrap;
  }
  .chain-filter-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 18px; border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--line);
    color: var(--muted); font-weight: 700; font-size: 14px; cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .15s ease;
  }
  .chain-filter-btn:hover {
    background: rgba(46,224,106,0.10); border-color: rgba(46,224,106,0.40); color: var(--text);
  }
  .chain-filter-btn[data-chain="pulsechain"]:hover {
    background: rgba(236,72,153,0.10); border-color: rgba(236,72,153,0.40);
  }
  .chain-filter-btn.active {
    background: var(--grad); border-color: transparent; color: white;
    box-shadow: 0 4px 18px rgba(46,224,106,0.32);
  }
  .chain-filter-btn[data-chain="pulsechain"].active {
    background: var(--pulse-grad);
    box-shadow: 0 4px 18px rgba(236,72,153,0.35);
  }
  .clusters {
    margin-top: 16px;
    display: flex; flex-direction: column; gap: 10px;
    min-height: 440px;
  }
  @media (max-width: 760px) { .clusters { min-height: 520px; } }
  .clusters-loading {
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 14px; padding: 80px 20px;
    color: var(--muted); font-size: 14px; letter-spacing: 0.04em;
  }
  .clusters-loading .skel-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--grad); animation: pulse 1.6s ease-in-out infinite;
  }

  /* ===== CHAIN PILLS ===== */
  .chain-pill {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 7px; border-radius: 999px;
    font-size: 9px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; user-select: none; flex-shrink: 0;
  }
  .chain-pill.pulsechain { background: rgba(236,72,153,0.14); border: 1px solid rgba(236,72,153,0.38); color: #f9a8d4; }
  .chain-pill.major { background: rgba(148,163,184,0.08); border: 1px solid rgba(148,163,184,0.22); color: #7a8a9a; }
  .chain-pill-dot { width: 4px; height: 4px; border-radius: 50%; flex-shrink: 0; }
  .chain-pill.pulsechain .chain-pill-dot { background: #f472b6; }
  .chain-pill.major .chain-pill-dot { background: #64748b; }

  .star { display: inline-block; margin-left: 4px; font-size: 0.85em; filter: drop-shadow(0 0 5px rgba(251,191,36,0.55)); cursor: help; }

  /* ===== COMPACT COIN CARD ===== */
  .cluster {
    border-radius: 12px; overflow: hidden;
    background: var(--bg-2);
    border: 1px solid var(--line);
    position: relative; display: flex; flex-direction: column;
  }
  .cluster.chain-pulsechain { border-left: 3px solid rgba(236,72,153,0.65); }
  .cluster.chain-major      { border-left: 3px solid rgba(100,116,139,0.55); }
  .cluster-divider { height: 1px; margin: 0; background: var(--line); }
  .card-top {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px 8px; cursor: pointer; min-width: 0;
  }
  /* cursor:pointer already set on .card-top above */
  .card-top:hover { background: rgba(255,255,255,0.025); transform: translateY(-1px); transition: background .15s, transform .15s; }
  /* Chevron affordance — muted right-edge tap indicator */
  .card-chevron {
    flex-shrink: 0;
    color: rgba(255,255,255,0.18);
    font-size: 16px;
    line-height: 1;
    padding-left: 4px;
    user-select: none;
    pointer-events: none;
  }
  .card-logo { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: rgba(255,255,255,0.06); }
  .card-logo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
  .card-id { display: flex; align-items: center; gap: 6px; min-width: 0; flex-shrink: 1; overflow: hidden; }
  .card-sym { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
  .card-spacer { flex: 1; min-width: 4px; }
  .card-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
  .card-price { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1; }
  .card-chg { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .card-chg.pos { color: #86efac; }
  .card-chg.neg { color: #fca5a5; }
  .card-share {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
    background: rgba(255,255,255,0.05); border: 1px solid var(--line);
    color: rgba(245,245,250,0.7); text-decoration: none;
    transition: background .15s, border-color .15s, transform .1s;
  }
  .card-share:hover { background: rgba(46,224,106,0.12); border-color: rgba(46,224,106,0.40); color: var(--text); transform: translateY(-1px); }
  .card-share svg { width: 14px; height: 14px; fill: currentColor; display: block; }
  .card-bar-wrap { padding: 0 14px 0; }
  .card-bar-track { height: 3px; border-radius: 999px; background: rgba(255,255,255,0.10); overflow: hidden; }
  .card-bar-fill { height: 100%; border-radius: 999px; transition: width 600ms ease-out; min-width: 2px; }
  .chain-pulsechain .card-bar-fill { background: #9d174d; }
  .chain-major      .card-bar-fill { background: #3A8DDE; }
  .card-caption {
    padding: 5px 14px 11px; font-size: 11px; color: var(--muted); line-height: 1.45;
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px;
  }
  .card-caption .cap-pct  { color: var(--text); font-weight: 700; }
  .card-caption .cap-sep  { opacity: 0.35; }
  .card-caption .cap-next { color: rgba(245,245,250,0.65); }
  .card-caption .cap-prev { color: rgba(245,245,250,0.32); font-size: 10px; }
  /* Quiet hint line above coin list */
  .cards-hint {
    font-size: 11px;
    color: var(--muted);
    opacity: 0.55;
    text-align: center;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
  }
  /* Identity descriptor — PulseChain coins only.
     Fixed slot on every card;
     empty string for majors keeps height consistent across the mixed list. */
  .card-identity {
    padding: 2px 14px 0;
    min-height: 1.3em;
    font-size: 11px;
    color: rgba(245,245,250,0.55);
    line-height: 1.4;
    font-style: normal;
  }
  @media (max-width: 600px) {
    .card-top { padding: 10px 12px 7px; gap: 8px; }
    .card-sym { font-size: 15px; }
    .card-price { font-size: 15px; }
    .card-chg { font-size: 10px; }
    .card-bar-wrap { padding: 0 12px 0; }
    .card-caption { padding: 4px 12px 10px; font-size: 10.5px; }
    .view-full-btn { padding: 12px 18px; font-size: 14px; }
  }
  @media (max-width: 360px) {
    .card-price { font-size: 13px; }
    .card-sym { font-size: 13px; }
    .card-share { width: 28px; height: 28px; }
  }

  /* ===== MODALS ===== */
  .modal-backdrop {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(10,10,20,0.78); backdrop-filter: blur(6px);
    display: none; align-items: center; justify-content: center; padding: 20px;
  }
  .modal-backdrop.open { display: flex; animation: fadeIn .2s ease; }
  @keyframes fadeIn { from {opacity:0} to {opacity:1} }
  .modal {
    width: min(820px, 100%); max-height: 90vh; display: flex; flex-direction: column;
    background: var(--bg-2); border: 1px solid rgba(46,224,106,0.25);
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 20px 80px rgba(46,224,106,0.18), 0 0 0 1px rgba(46,224,106,0.12) inset;
    position: relative;
  }
  .modal::before {
    content:""; position:absolute; inset:0; pointer-events:none; border-radius: 20px;
    background: radial-gradient(600px 200px at 50% 0%, rgba(46,224,106,0.10), transparent 70%);
  }
  /* Calculator modal: neutral charcoal, no green halo (ladder/token modals keep theirs) */
  #calcModal .modal { border-color: var(--line); box-shadow: 0 20px 80px rgba(0,0,0,0.55); }
  #calcModal .modal::before { background: none; }
  #calcModal .modal-head { background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)); }
  .modal-head {
    display: block;
    padding: 20px 60px 20px 60px; border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(46,224,106,0.08), rgba(46,224,106,0.02));
    position: relative; z-index: 1;
    text-align: center;
  }
  .modal-head h3 { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; }
  .modal-head .sub { color: var(--muted); font-size: 12px; letter-spacing: 0.03em; margin-top: 4px; }
  .modal-close {
    position: absolute; top: 50%; right: 20px; transform: translateY(-50%);
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--line); background: rgba(255,255,255,0.04); color: var(--text);
    cursor: pointer; font-size: 18px; line-height: 1;
  }
  .modal-close:hover { background: rgba(46,224,106,0.14); border-color: rgba(46,224,106,0.45); }
  .modal-body { overflow-y: auto; padding: 8px 0 80px; position: relative; z-index: 1; scroll-behavior: smooth; }
  .modal-body .tier-band { margin: 14px 18px 6px; }
  .modal-body .frung {
    display: grid; grid-template-columns: 36px 1fr 130px auto;
    align-items: center; gap: 12px; padding: 10px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 14px; transition: background .3s ease;
  }
  .modal-body .frung:hover { background: rgba(255,255,255,0.03); }
  .modal-body .frung.has { background: linear-gradient(90deg, rgba(46,224,106,0.10), rgba(46,224,106,0.03)); }
  .modal-body .frung.featured { background: linear-gradient(90deg, rgba(251,191,36,0.10), rgba(251,191,36,0.02)); }
  .modal-body .frung.featured.has { background: linear-gradient(90deg, rgba(46,224,106,0.12), rgba(46,224,106,0.04)); border-left: 3px solid rgba(251,191,36,0.6); }
  .modal-body .frung.zoom-target { animation: zoomPulse 1.6s ease-in-out 2; }
  @keyframes zoomPulse {
    0%   { box-shadow: inset 0 0 0 0 rgba(46,224,106,0), 0 0 0 0 rgba(46,224,106,0); }
    30%  { box-shadow: inset 0 0 60px 0 rgba(46,224,106,0.32), 0 0 30px 4px rgba(46,224,106,0.42); }
    60%  { box-shadow: inset 0 0 40px 0 rgba(31,138,76,0.24), 0 0 25px 3px rgba(31,138,76,0.32); }
    100% { box-shadow: inset 0 0 0 0 rgba(46,224,106,0), 0 0 0 0 rgba(46,224,106,0); }
  }
  .modal-body .frung .fe { text-align: center; opacity: .7; }
  .modal-body .frung .fp { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; font-size: 13px; }
  .modal-body .ftokens { display: flex; gap: 4px; justify-content: flex-end; }
  .ftok {
    width: 26px; height: 26px; border-radius: 50%;
    overflow: hidden; background: var(--grad);
    box-shadow: 0 0 10px rgba(46,224,106,0.35); flex-shrink: 0;
  }
  .ftok img, .ftok .logo-img {
    width: 100%; height: 100%; max-width: 100%; max-height: 100%;
    object-fit: cover; display: block; flex-shrink: 0;
  }
  .back-top {
    position: absolute; bottom: 18px; right: 18px; z-index: 2;
    padding: 10px 16px; border-radius: 999px;
    background: var(--grad); color: white; font-weight: 800; font-size: 12px;
    border: none; cursor: pointer; box-shadow: 0 8px 30px rgba(46,224,106,0.35);
  }
  .extra-clusters { display: flex; flex-direction: column; gap: 10px; }
  .show-all-wrap { display: flex; justify-content: center; margin-top: 6px; }
  .show-all-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; max-width: 460px; padding: 14px 24px; border-radius: 12px;
    background: rgba(46,224,106,0.08); border: 1px solid rgba(46,224,106,0.45);
    color: var(--text); font-weight: 700; font-size: 15px; cursor: pointer;
    font-family: 'Inter', sans-serif; letter-spacing: 0.01em;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  }
  .show-all-btn:hover { background: var(--grad); border-color: transparent; box-shadow: 0 8px 30px rgba(46,224,106,0.32); transform: translateY(-2px); }
  .btn-pulsex { background: var(--pulse-grad); border-color: transparent; color: #0a0a14; }
  .btn-pulsex:hover { background: var(--pulse-grad); border-color: transparent; box-shadow: 0 8px 30px rgba(236,72,153,0.45); }
  .btn-pulsex-large { padding: 18px 40px; font-size: 18px; font-weight: 800; box-shadow: 0 8px 40px rgba(236,72,153,0.35); }
  .btn-pulsex-large:hover { box-shadow: 0 12px 50px rgba(236,72,153,0.55); transform: translateY(-2px); }
  .bridge-line { margin: 22px auto 0; max-width: 520px; font-size: clamp(14px, 1.55vw, 17px); font-weight: 700; color: rgba(255,255,255,0.75); text-align: center; line-height: 1.5; }
  .bridge-arrow { color: var(--accent); margin-right: 4px; }
  .bridge-pulse { background: var(--pulse-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .cta-sub { margin: 10px auto 0; max-width: 420px; color: var(--muted); font-size: clamp(13px, 1.4vw, 15px); line-height: 1.5; }
  footer { margin-top: 48px; padding: 28px 0 40px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 13px; }
  footer .ftag { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 14px; }
  footer .flinks { display: flex; gap: 18px; justify-content: center; margin: 12px 0; }
  footer .flinks a:hover { color: var(--text); }
  footer .disc { margin-top: 16px; font-size: 12px; opacity: 0.7; }

  /* ===== FLIP CALCULATOR ===== */
  .calc-open-btn { background: rgba(46,224,106,0.08); border: 1px solid rgba(46,224,106,0.45); }
  .calc-open-btn:hover { background: var(--grad); border-color: transparent; box-shadow: 0 10px 40px rgba(46,224,106,0.40), 0 0 60px rgba(46,224,106,0.18); transform: translateY(-2px); }
  @media (max-width: 600px) { .calc-open-btn { padding: 12px 18px; font-size: 14px; } }
  .calc-section { padding: 16px 24px; }
  .calc-section + .calc-section { border-top: 1px solid var(--line); }
  .calc-lbl { font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
  .coin-badges { display: flex; flex-wrap: wrap; gap: 8px; }
  .coin-badge {
    display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px;
    border: 1px solid var(--line); background: rgba(255,255,255,0.04);
    font-weight: 800; font-size: 13px; cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s; user-select: none;
  }
  .coin-badge img { width: 20px; height: 20px; border-radius: 50%; }
  .coin-badge:hover { border-color: rgba(46,224,106,0.45); background: rgba(46,224,106,0.10); }
  .coin-badge.selected { border-color: var(--accent); background: rgba(46,224,106,0.14); box-shadow: 0 0 14px rgba(46,224,106,0.35); }
  .coin-badge.loading { opacity: 0.45; pointer-events: none; }
  .calc-search-wrap { position: relative; margin-bottom: 10px; }
  .calc-search {
    width: 100%; padding: 11px 16px 11px 38px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--line);
    border-radius: 12px; color: var(--text); font-size: 14px; font-family: 'Inter', sans-serif;
    outline: none; transition: border-color .15s;
  }
  .calc-search:focus { border-color: rgba(46,224,106,0.45); }
  .calc-search::placeholder { color: var(--muted); }
  .calc-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; pointer-events: none; }
  .target-list { max-height: 190px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.02); scrollbar-width: thin; scrollbar-color: rgba(46,224,106,0.40) transparent; }
  @media (max-width: 600px) { .target-list { max-height: 130px; } }
  .target-item { padding: 9px 16px; font-size: 14px; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.04); display: flex; justify-content: space-between; align-items: center; gap: 8px; transition: background .1s; }
  .target-item:last-child { border-bottom: none; }
  .target-item:hover { background: rgba(255,255,255,0.05); }
  .target-item.selected { background: rgba(46,224,106,0.14); }
  .ti-name { flex: 1; }
  .ti-price { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .target-empty { padding: 20px; text-align: center; color: var(--muted); font-size: 14px; }
  .calc-result-section { padding: 20px 24px; border-top: 1px solid var(--line); }
  .calc-result-placeholder { color: var(--muted); font-size: 14px; text-align: center; padding: 10px 0; }
  .calc-result-card {
    width: min(440px, 100%); aspect-ratio: 1 / 1; margin: 0 auto; padding: 30px 28px 46px;
    border-radius: 18px; background: var(--bg-3);
    border: 1px solid var(--line); position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between; text-align: center;
  }
  .calc-zone-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
  .calc-sb-side { flex: 1; min-width: 0; text-align: left; }
  .calc-sb-right { text-align: right; }
  .calc-sb-coin { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; }
  .calc-sb-right .calc-sb-item { font-weight: 800; font-size: 16px; line-height: 1.25; }
  .calc-sb-logo { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
  .calc-sb-price { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; margin-top: 6px; }
  .calc-sb-vs { color: rgba(245,245,250,0.4); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; flex-shrink: 0; align-self: center; }
  .calc-zone-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .calc-verdict { font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
  .calc-line-mult { font-family: 'Space Grotesk', sans-serif; font-size: 64px; font-weight: 700; line-height: 1; }
  .calc-line-3 { font-size: 15px; color: var(--text); font-weight: 600; line-height: 1.4; }
  .calc-wm { position: absolute; bottom: 16px; right: 18px; font-size: 11px; color: rgba(46,224,106,0.55); font-weight: 700; letter-spacing: 0.08em; }
  .calc-date { position: absolute; bottom: 16px; left: 18px; font-size: 11px; color: rgba(46,224,106,0.55); font-weight: 700; letter-spacing: 0.06em; }
  .calc-share-row { margin-top: 14px; display: flex; justify-content: center; }
  .calc-share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 999px; background: var(--grad); border: none; color: white; font-weight: 800; font-size: 14px; cursor: pointer; font-family: 'Inter', sans-serif; box-shadow: 0 8px 30px rgba(46,224,106,0.32); transition: transform .15s, box-shadow .2s; }
  .calc-share-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(46,224,106,0.45); }
  .calc-share-btn:disabled { opacity: 0.5; pointer-events: none; }
  .calc-toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px); background: rgba(34,197,94,0.92); color: #fff; padding: 12px 26px; border-radius: 999px; font-weight: 800; font-size: 14px; box-shadow: 0 8px 30px rgba(34,197,94,0.4); opacity: 0; pointer-events: none; z-index: 9999; transition: opacity .3s ease, transform .3s ease; white-space: nowrap; }
  .calc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
