/* ═══════════════════════════════════════════════════
   Navigation — Sidebar + Topbar + shared shell styles
   Extracted from nav.html <style> blocks.
   ═══════════════════════════════════════════════════ */

/* ═══ App Shell ═══ */
  /* App shell is locked to the viewport; the MAIN AREA scrolls, not the page.
     This keeps the sidebar a plain fixed-height column — never a sticky element
     that also scrolls, which Chrome fails to repaint ("peels" to grey) during
     heavy scrolling. (Earlier the peel was blamed on backdrop-filter; the real
     trigger is position:sticky + overflow-y:auto on the same full-height box.) */
  .app-shell { display: grid; grid-template-columns: 240px 1fr; height: 100vh; overflow: hidden; position: relative; z-index: 1; }

  /* ─── Sidebar ─── */
  .sidebar {
    position: relative; height: 100vh; overflow-y: auto;
    padding: 16px 16px; display: flex; flex-direction: column;
    background: #ffffff; border-right: 1px solid rgba(14,14,14,0.06);
    z-index: 60;
  }
  .sidebar::-webkit-scrollbar { width: 5px; }
  .sidebar::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 999px; }
  .sidebar:hover::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.16); }

  .sb-brand {
    display: flex; align-items: center; gap: 10px;
    padding: 4px 8px; margin-bottom: 16px; text-decoration: none;
  }
  .sb-brand .mark {
    width: 28px; height: 28px; border-radius: 8px; background: #FFB400;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(255,180,0,0.35);
  }
  .sb-brand .mark::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #FAFAF7; }
  .sb-brand .wordmark { font-weight: 800; font-size: 18px; letter-spacing: -0.04em; color: var(--text); }
  .sb-brand .wordmark span { color: #FFB400; }

  /* Logo: swap light/dark variant. No !important — the body.dark selector already
     out-specifies the base rule, and dropping !important lets the collapsed-nav rule
     (which hides the wordmark img for the compact mark) win in dark too. */
  .sb-brand .sb-logo-dark { display: none; }
  body.dark .sb-brand .sb-logo-light { display: none; }
  body.dark .sb-brand .sb-logo-dark { display: inline; }

  .sb-group { display: flex; flex-direction: column; gap: 3px; margin-bottom: 12px; }
  .sb-group-label {
    font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.18em;
    text-transform: uppercase; font-weight: 600; color: var(--text-muted); padding: 0 10px 6px;
  }
  .sb-item {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 10px; border-radius: 8px;
    font-size: 12.5px; font-weight: 500; color: var(--muted, #8896ab);
    text-decoration: none; transition: background 0.12s, color 0.12s;
  }
  .sb-item:hover { background: var(--hover-bg); color: var(--text); font-weight: 600; }
  .sb-item:hover .ic { opacity: 1; }
  .sb-item:hover .ic svg { stroke-width: 2.4; }
  .sb-item.active { background: rgba(0,0,0,0.04); color: #0E0E0E; font-weight: 600; }
  .sb-item .ic { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; opacity: 0.7; flex-shrink: 0; }
  .sb-item .ic svg { width: 16px; height: 16px; }
  .sb-item.active .ic { opacity: 1; }
  .sb-item .pip {
    margin-left: auto; font-family: var(--font-mono); font-size: 9px;
    text-transform: uppercase; letter-spacing: 0.06em;
    padding: 1px 7px; border-radius: 999px;
    background: rgba(255,180,0,0.12); color: #B07C00;
  }
  .sb-item.active .pip { background: rgba(255,180,0,0.12); color: #B07C00; }
  .sb-item.disabled { pointer-events: none; color: rgba(136,150,171,0.4); }
  .sb-item.disabled .ic { opacity: 0.35; }
  .sb-item.disabled .pip { color: #B07C00; opacity: 1; }

  .sb-spacer { flex: 1; }

  .sb-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 3px; padding-top: 2px; }
  /* Icon-only social links — one centered horizontal row, with a hairline
     separator above it to set the socials apart from the Docs link. */
  .sb-social { display: flex; flex-direction: row; justify-content: center; gap: 10px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border-card); }
  .sb-item.sb-icon { justify-content: center; padding: 7px; flex: 0 0 auto; }

  /* ─── Topbar ─── */
  .main-area { display: flex; flex-direction: column; min-width: 0; height: 100vh; overflow-y: auto; overflow-x: hidden; }
  .topbar {
    position: sticky; top: 0; z-index: 50;
    padding: 10px 24px;
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center; gap: 24px;
    background: #ffffff;
    border-bottom: 1px solid rgba(14,14,14,0.06);
  }
  .topbar .tb-lead { display: flex; align-items: center; gap: 12px; min-width: 0; }
  .topbar .crumbs {
    display: flex; align-items: center; gap: 6px;
    font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted);
  }
  .topbar .crumbs a { transition: color 0.12s; }
  .topbar .crumbs a:hover { color: var(--text); }
  .topbar .crumbs .sep { color: var(--text-muted); opacity: 0.3; }
  .topbar .crumbs .now { color: var(--text); font-weight: 600; }
  .topbar .tb-spacer { display: none; } /* grid handles spacing */

  .tb-search {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px 10px 18px; border: 1px solid var(--border-card); border-radius: 999px;
    background: var(--surface); width: 480px; max-width: 100%;
    box-shadow: var(--shadow-xs);
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  .tb-search:focus-within { border-color: #FFB400; box-shadow: 0 0 0 3px rgba(255,180,0,0.10); }
  .tb-search svg { color: var(--text-muted); opacity: 0.5; flex-shrink: 0; }
  .tb-search input {
    flex: 1; background: 0; border: 0; outline: 0; font-size: 13px;
    font-family: var(--font-body); color: var(--text);
  }
  .tb-search input::placeholder { color: var(--text-muted); }
  .tb-search kbd {
    font-family: var(--font-mono); font-size: 10px; padding: 2px 6px;
    border: 1px solid var(--border-card); border-radius: 4px; color: var(--text-muted);
  }

  .tb-right { display: flex; align-items: center; gap: 10px; justify-self: end; }

  /* Balance pill */
  .tb-balance {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 14px 8px 18px;
    background: rgba(255,255,255,0.8); border: 1px solid rgba(14,14,14,0.08); border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 1px 3px rgba(14,14,14,0.04);
  }
  .tb-bal-amt { font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--text); }
  .tb-bal-label { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
  .tb-bal-info { display: flex; align-items: center; color: var(--text-muted); opacity: 0.4; }

  /* Icon buttons */
  .tb-icon {
    width: 40px; height: 40px; border-radius: 999px;
    background: rgba(255,255,255,0.8); border: 1px solid rgba(14,14,14,0.08);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 1px 3px rgba(14,14,14,0.04);
    transition: color 0.12s, border-color 0.12s;
  }
  .tb-icon:hover { color: var(--text); border-color: rgba(14,14,14,0.15); }

  /* Notification dot */
  .tb-notif { position: relative; }
  /* Single source of truth for the notification dot — tracks the active accent.
     All duplicate copies in components.css/dark-colors.css were removed so this
     can't be silently overridden by load order. Both themes inherit it. */
  .tb-notif-dot {
    position: absolute; top: 7px; right: 8px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--brand-amber);
  }

  /* Wallet connect button */
  .tb-wallet-connect {
    padding: 7px 13px; border-radius: 8px;
    background: var(--brand-amber); color: #0E0E0E;
    font-size: 12px; font-weight: 600; border: none; cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.18s, transform 0.1s;
  }
  .tb-wallet-connect:hover { background: rgba(255,196,51,0.95); }
  .tb-wallet-connect:active { transform: translateY(0.5px); }
  .tb-wallet-connect:disabled { cursor: wait; opacity: 0.9; min-width: var(--tb-connect-w, auto); }
  .tb-wallet-connect:disabled::after { display: none !important; }
  .tb-connect-spinner {
    display: inline-block; width: 14px; height: 14px;
    border: 2px solid rgba(14,14,14,0.2); border-top-color: #0E0E0E;
    border-radius: 50%; animation: tb-spin 0.6s linear infinite;
    vertical-align: middle;
  }
  @keyframes tb-spin { to { transform: rotate(360deg); } }

  /* Wallet pill (logged in) */
  .tb-wallet-pill {
    display: flex; align-items: center; gap: 10px;
    padding: 5px 12px 5px 5px; border-radius: 999px;
    background: rgba(255,255,255,0.8); border: 1px solid rgba(14,14,14,0.08);
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 1px 3px rgba(14,14,14,0.04);
    font-family: var(--font-mono);
    transition: border-color 0.12s;
  }
  .tb-wallet-pill:hover { border-color: rgba(14,14,14,0.15); }
  .tb-wallet-av {
    width: 32px; height: 32px; border-radius: 50%;
    background: conic-gradient(from 120deg, #FFB400, #FF7B3D, #B89BFF, #6FB7FF, #FFB400);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; color: white; flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
  }
  .tb-wallet-addr {
    font-size: 12px; color: var(--text); font-weight: 600;
    max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .tb-wallet-pill svg { color: var(--text-muted); }
  /* Account menu — styled via class (not inline) so it doesn't match the
     [style*="background:var(--surface)"] glass attribute-selector. Solid panel. */
  .um-drop {
    display: none; position: absolute; right: 0; top: 100%; margin-top: 6px;
    min-width: 180px; padding: 4px 0; z-index: 100;
    background: var(--surface); border: 1px solid var(--border-card);
    border-radius: 12px; box-shadow: var(--shadow-lg);
  }
  .um-drop.open { display: block !important; }

  .page-content { padding: 0 24px 80px; flex: 1; }

  /* ── Toast notifications ── */
  .toast-container { position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:9999;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none;max-width:calc(100vw - 32px); }
  .toast {
    pointer-events:auto;display:flex;align-items:center;gap:10px;padding:14px 20px;
    background:var(--surface);border:1px solid var(--border-card);border-radius:var(--radius);
    box-shadow:0 8px 30px rgba(0,0,0,0.12);font-size:13px;color:var(--text);
    transform:translateY(140%);opacity:0;transition:transform 0.3s cubic-bezier(.16,1,.3,1),opacity 0.3s;
    width:min(600px, calc(100vw - 32px));
  }
  .toast.is-visible { transform:translateY(0);opacity:1; }
  .toast.is-exit { transform:translateY(140%);opacity:0; }
  .toast-icon { width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0; }
  .toast-icon.success { background:rgba(22,163,74,0.1);color:#16a34a; }
  .toast-icon.error { background:rgba(239,68,68,0.1);color:#ef4444; }
  .toast-icon.warn { background:rgba(255,180,0,0.12);color:#B07C00; }
  .toast-icon.info { background:rgba(59,130,246,0.1);color:#3b82f6; }
  .toast-msg { flex:1;line-height:1.4; }
  .toast-msg b { font-weight:700; }
  .toast-close { cursor:pointer;opacity:0.4;font-size:16px;line-height:1; }
  .toast-close:hover { opacity:1; }

  /* ─── Mobile ─── */
  /* Topbar hamburger — hidden on desktop, revealed as the drawer trigger ≤900px. */
  .nav-hamburger {
    display: none; flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px;
    align-items: center; justify-content: center;
    background: transparent; border: 1px solid var(--border-card);
    color: var(--text-secondary); cursor: pointer;
    transition: background 0.14s, color 0.14s, border-color 0.14s;
  }
  .nav-hamburger:hover { color: var(--text); background: var(--hover-subtle); }
  .nav-hamburger svg { width: 20px; height: 20px; }

  /* Scrim behind the drawer. display:none on desktop so it can never intercept
     clicks; revealed (block) only inside the ≤900px block, faded via opacity. */
  .nav-scrim {
    display: none; position: fixed; inset: 0; z-index: 195;
    background: rgba(14,14,14,0.45);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
  }
  .nav-scrim.open { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }

  /* Drawer mode for EVERYTHING ≤1024px (phones + tablets + narrow desktop
     windows). The full in-grid sidebar only returns above 1024px. This removes
     the old 901–1024px "sidebar rail" band where the hamburger was hidden but
     the rail sometimes didn't render — leaving no navigation at all. */
  @media (max-width: 1024px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar {
      position: fixed; top: 0; left: -280px; width: 260px;
      transition: left 0.25s cubic-bezier(.16,1,.3,1); z-index: 200;
      box-shadow: var(--shadow-lg);
    }
    /* html body … raises specificity so the open drawer beats the later base
       `.app-shell/.sidebar` rules in components.css that would otherwise keep it
       off-canvas (the cascade trap that a ≤768-only override used to patch). */
    html body .sidebar.open { left: 0; }
    .nav-hamburger { display: inline-flex; }
    .nav-collapse-btn { display: none; }   /* desktop-only collapse affordance */
    .nav-scrim { display: block; }
    .topbar { padding: 10px 16px; }
    .page-content { padding: 0 16px 80px; }
  }

  @media (max-width: 640px) {
    .topbar { grid-template-columns: 1fr auto; gap: 8px; }
    .tb-search { display: none; } /* search via CMD+K or separate page on mobile */
    .tb-balance { display: none; } /* too wide for mobile topbar */
    .crumbs { font-size: 10px; }
    .crumbs .sep { margin: 0 3px; }
    .tb-wallet-addr { max-width: 50px; font-size: 10px; }
    .tb-icon { width: 36px; height: 36px; }
    .tb-icon svg { width: 14px; height: 14px; }
    .page-content { padding: 0 12px 80px; }
    .toast-container { left: 50%; right: auto; bottom: 12px; top: auto; transform: translateX(-50%); }
    .toast { width: calc(100vw - 24px); }
  }

.sb-promote { position:relative;display:block;margin:6px 0 10px;padding:11px;border-radius:11px;background:radial-gradient(ellipse 80px 60px at 100% 0%,rgba(255,180,0,0.32),transparent 60%),radial-gradient(ellipse 100px 80px at 0% 100%,rgba(255,180,0,0.18),transparent 60%),rgba(255,180,0,0.08);border:1px solid rgba(255,180,0,0.22);overflow:hidden;text-decoration:none;transition:transform 0.18s cubic-bezier(.16,1,.3,1),border-color 0.18s,box-shadow 0.18s; }
      .sb-promote:hover { transform:translateY(-1px);border-color:rgba(255,180,0,0.4);box-shadow:0 6px 20px rgba(255,180,0,0.18);opacity:1; }
      .sb-promote-glow { position:absolute;top:-20px;right:-20px;width:80px;height:80px;border-radius:50%;background:radial-gradient(circle,rgba(255,180,0,0.45),transparent 65%);filter:blur(6px);animation:sbGlow 4s ease-in-out infinite;pointer-events:none; }
      @keyframes sbGlow { 0%,100%{opacity:0.6;} 50%{opacity:1;} }
      .sb-promote-icon { width:24px;height:24px;border-radius:7px;background:#FFB400;display:flex;align-items:center;justify-content:center;color:#0E0E0E;margin-bottom:6px;box-shadow:0 4px 12px rgba(255,180,0,0.4),0 1px 0 rgba(255,255,255,0.5) inset;position:relative;z-index:1; }
      .sb-promote-icon svg { width:14px;height:14px; }
      .sb-promote-eyebrow { font-family:var(--font-mono);font-size:9px;letter-spacing:0.14em;text-transform:uppercase;color:#B07A00;font-weight:700;margin-bottom:4px;position:relative;z-index:1; }
      .sb-promote-title { font-size:12.5px;font-weight:700;color:var(--text);margin-bottom:2px;position:relative;z-index:1; }
      .sb-promote-sub { font-size:10.5px;color:var(--text-muted);line-height:1.35;margin-bottom:8px;position:relative;z-index:1; }

.ask-fab-btn {
    position: fixed; bottom: 20px; right: 20px; z-index: 190;
    width: 42px; height: 42px; border-radius: 12px;
    background: #FFB400; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(255,180,0,0.4), 0 8px 32px rgba(0,0,0,0.08);
    transition: transform 0.15s, box-shadow 0.15s;
    color: #0E0E0E;
  }
  .ask-fab-btn:hover { transform: scale(1.06); box-shadow: 0 6px 20px rgba(255,180,0,0.5), 0 12px 40px rgba(0,0,0,0.1); }
  .ask-fab-btn.open { background: #0E0E0E; box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
  .ask-fab-btn.open img { display: none; }
  .ask-fab-btn .open-icon { display: none; }
  .ask-fab-btn.open .open-icon { display: block; }
  .ask-fab-btn svg { width: 18px; height: 18px; }

  .ask-popup {
    position: fixed; bottom: 72px; right: 20px; z-index: 189;
    width: 380px;
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(255,255,255,0.7);
    border-top: 1px solid rgba(255,255,255,0.9);
    border-radius: 18px;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 8px 40px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.9);
    overflow: hidden;
    display: none;
    flex-direction: column;
    opacity: 0; transform: translateY(12px) scale(0.96);
    transition: opacity 0.2s, transform 0.2s;
  }
  .ask-popup.visible { display: flex; opacity: 1; transform: translateY(0) scale(1); }

  .ask-popup-head {
    padding: 14px 16px; display: flex; align-items: center; gap: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  .ask-popup-head .ic {
    width: 28px; height: 28px; border-radius: 8px; background: #FFB400;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255,180,0,0.3);
  }
  .ask-popup-head .ic::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: white; }
  .ask-popup-head h4 { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
  .ask-popup-head .status { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: #FFB400; display: flex; align-items: center; gap: 5px; }
  .ask-popup-head .status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #FFB400; animation: fabPulse 1.5s infinite; }
  @keyframes fabPulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

  .ask-popup-body { padding: 14px 16px; max-height: 280px; overflow-y: auto; }
  .ask-popup-msg { font-size: 12px; line-height: 1.55; color: var(--text-secondary); margin-bottom: 12px; }
  .ask-popup-msg .role { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
  .ask-popup-msg.you { color: var(--text); }
  .ask-popup-msg .hl { display: inline; padding: 1px 5px; border-radius: 3px; background: rgba(255,180,0,0.15); color: #B07C00; font-weight: 600; font-size: 11px; font-family: var(--font-mono); }
  .ask-popup-cite { font-family: var(--font-mono); font-size: 9px; color: var(--text-muted); margin-top: 4px; }

  .ask-popup-input {
    border-top: 1px solid rgba(0,0,0,0.06); padding: 10px 14px;
    display: flex; align-items: center; gap: 8px;
  }
  .ask-popup-input span { color: #FFB400; font-weight: 700; font-size: 14px; }
  .ask-popup-input input {
    flex: 1; background: none; border: none; outline: none;
    font-size: 13px; color: var(--text); font-family: inherit;
  }
  .ask-popup-input input::placeholder { color: var(--text-muted); }
  .ask-popup-input .send {
    width: 30px; height: 30px; border-radius: 8px; background: var(--text); color: white;
    border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.12s;
  }
  .ask-popup-input .send:hover { background: #333; }

  .ask-popup-foot {
    padding: 6px 14px; border-top: 1px solid rgba(0,0,0,0.04);
    display: flex; justify-content: space-between;
    font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted);
  }
  .ask-popup-foot a { color: #FFB400; text-decoration: none; font-weight: 600; }

/* extracted free inline styles (css-verify) */
.navf-1 { height:28px;width:auto; }
.navf-2 { position:relative;z-index:1; }
.navf-3 { position:relative; }

/* ── Topbar Lab economy pills (level / credits / points) ── */
/* `[hidden]` must win over the `display` rules on .tb-eco / .tb-icon, otherwise the
   stats pill + notification bell stay visible when logged out. */
.tb-eco[hidden], .tb-notif[hidden] { display: none !important; }
.tb-eco {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  /* Match the sibling topbar controls (.tb-icon / .tb-wallet-pill): TRANSPARENT
     background with a faint border + soft shadow (their effective look comes from the
     `html body .topbar .tb-icon` override, not a filled background). Theme-agnostic:
     --hover-medium and the inset highlight render the same ghost-button look in both
     themes, so no dark override is needed. */
  padding: 8px 12px; border-radius: 12px;
  background: transparent; border: 1px solid var(--hover-medium);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 1px 3px rgba(14,14,14,0.04);
  text-decoration: none; transition: border-color 0.15s ease;
}
.tb-eco:hover { border-color: rgba(14,14,14,0.15); }
.tb-eco-chip {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.04em; padding: 1px 6px; border-radius: var(--radius-full);
  background: rgba(255, 180, 0, 0.14); color: #B07A00;
}
/* Front row: Trust chip + credits + points (basic counters), clickable through to profile. */
.tb-eco-front { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.tb-eco-item { display: inline-flex; align-items: baseline; gap: 3px; }
.tb-eco-amt { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--text); }
.tb-eco-lbl { font-family: var(--font-mono); font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.tb-eco-caret { color: var(--text-muted); transition: transform 0.15s ease; }
.tb-eco:hover .tb-eco-caret { transform: rotate(180deg); }
/* Hover dropdown: just the two live countdowns (credit reset + current-epoch end). */
.tb-eco-pop {
  position: absolute; top: 100%; right: 0; z-index: 60;
  min-width: 216px; margin-top: 8px; padding: 6px;
  background: var(--surface); border: 1px solid var(--gray-200);
  border-radius: 12px; box-shadow: 0 10px 30px rgba(14,14,14,0.13);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s;
}
/* Transparent bridge across the 8px gap so the cursor can travel chip → panel. */
.tb-eco-pop::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.tb-eco:hover .tb-eco-pop, .tb-eco:focus-within .tb-eco-pop {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.tb-eco-cd {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 10px; border-radius: 8px;
}
.tb-eco-cd + .tb-eco-cd { margin-top: 2px; }
.tb-eco-cd:hover { background: var(--hover-medium); }
.tb-eco-cd-k {
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted);
}
.tb-eco-cd-k b { color: var(--text); }
.tb-eco-cd-v { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .tb-eco { display: none; } }

/* ── "No wallet" popup (reuses the shared .rfpp overlay; shown from connectWallet) ── */
.rfpp.nw-pop { width: min(400px, 100%); }
.nw-body { padding: 34px 28px 28px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.nw-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(255, 180, 0, 0.12); color: var(--brand-amber-strong, #B07A00); margin-bottom: 16px; }
.nw-title { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; color: var(--text); }
.nw-sub { font-size: 13px; line-height: 1.55; color: var(--text-secondary); max-width: 44ch; margin: 0 0 22px; }
.nw-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; padding: 11px 20px; border-radius: 11px; background: #FFB400; color: #0e0e0e; text-decoration: none; transition: filter 0.15s, transform 0.1s; }
.nw-btn:hover { filter: brightness(1.05); }
.nw-btn:active { transform: translateY(1px); }
