/* ============================================================================
   Ansemsearch AI — premium dark UI
   Black canvas · glassmorphism · purple/blue gradient accents · motion
   ========================================================================== */

:root {
    --bg: #05050a;
    --bg-2: #0a0a14;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-2: rgba(255, 255, 255, 0.05);
    --glass: rgba(18, 18, 30, 0.55);
    --glass-brd: rgba(255, 255, 255, 0.08);
    --brd: rgba(255, 255, 255, 0.07);

    --txt: #ecedf3;
    --txt-dim: #a2a5b8;
    --txt-mute: #6b6e82;

    --violet: #8b5cf6;
    --indigo: #6366f1;
    --blue: #3b82f6;
    --cyan: #22d3ee;
    --pink: #d946ef;

    --grad: linear-gradient(120deg, #8b5cf6 0%, #6366f1 45%, #3b82f6 100%);
    --grad-soft: linear-gradient(120deg, rgba(139, 92, 246, 0.18), rgba(59, 130, 246, 0.14));

    --up: #34d399;
    --down: #fb7185;

    --radius: 16px;
    --radius-sm: 11px;
    --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 0 1px rgba(139, 92, 246, 0.25), 0 20px 60px -20px rgba(99, 102, 241, 0.5);

    --sidebar-w: 248px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--txt);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Ambient gradient glow behind everything */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(60% 50% at 15% -5%, rgba(139, 92, 246, 0.16), transparent 60%),
        radial-gradient(50% 45% at 95% 5%, rgba(59, 130, 246, 0.14), transparent 55%),
        radial-gradient(50% 60% at 50% 110%, rgba(217, 70, 239, 0.08), transparent 60%);
    pointer-events: none;
}

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

img { max-width: 100%; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.09); border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.16); }

/* ── Reusable atoms ───────────────────────────────────────────────────────── */

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass {
    background: var(--glass);
    border: 1px solid var(--glass-brd);
    border-radius: var(--radius);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.card {
    background: var(--surface);
    border: 1px solid var(--brd);
    border-radius: var(--radius);
    padding: 22px;
    transition: border-color .25s, transform .25s, background .25s;
}
.card:hover { border-color: rgba(139, 92, 246, 0.28); }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 500;
    border: 1px solid var(--glass-brd);
    background: var(--surface);
    color: var(--txt-dim);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 10px var(--up); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .18s, box-shadow .25s, background .25s, border-color .25s;
    white-space: nowrap;
    font-family: inherit;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 30px -8px rgba(99, 102, 241, 0.7); }
.btn-primary:hover { box-shadow: 0 12px 40px -8px rgba(139, 92, 246, 0.85); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); border-color: var(--brd); color: var(--txt); }
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(139, 92, 246, 0.35); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

.up { color: var(--up); }
.down { color: var(--down); }
.neutral { color: var(--txt-mute); }
.mono { font-family: var(--mono); }

.section-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--txt-mute);
    font-weight: 600;
}

.coin-icon {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--surface-2);
    object-fit: cover;
    flex-shrink: 0;
}

.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 9px;
    background: var(--surface); border: 1px solid var(--brd);
    font-size: 13px; color: var(--txt-dim); cursor: pointer;
    transition: all .2s;
}
.chip:hover { border-color: rgba(139, 92, 246, 0.4); color: var(--txt); background: var(--surface-2); }

/* ── Motion ───────────────────────────────────────────────────────────────── */

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, .5); } 70% { box-shadow: 0 0 0 14px rgba(139, 92, 246, 0); } 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); } }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

.reveal { animation: fadeUp .6s cubic-bezier(.2, .7, .2, 1) both; }
.reveal-2 { animation: fadeUp .6s .08s cubic-bezier(.2, .7, .2, 1) both; }
.reveal-3 { animation: fadeUp .6s .16s cubic-bezier(.2, .7, .2, 1) both; }

.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.09) 37%, rgba(255,255,255,.04) 63%);
    background-size: 800px 100%;
    animation: shimmer 1.4s infinite linear;
    border-radius: 8px;
}

/* ============================================================================
   MARKETING / LANDING
   ========================================================================== */

.marketing { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.topbar {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 0;
    backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.brand .logo {
    width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
    display: grid; place-items: center; box-shadow: 0 6px 20px -6px rgba(139, 92, 246, .8);
}
.brand .logo svg { width: 19px; height: 19px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--txt-dim); font-size: 14.5px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--txt); }

.hero { text-align: center; padding: 96px 0 60px; position: relative; }
.hero h1 {
    font-size: clamp(40px, 7vw, 78px);
    line-height: 1.02;
    letter-spacing: -.035em;
    margin: 22px auto 0;
    max-width: 900px;
    font-weight: 800;
}
.hero .sub {
    max-width: 640px; margin: 24px auto 0;
    color: var(--txt-dim); font-size: clamp(16px, 2vw, 19px); line-height: 1.55;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

.badge-live {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 7px 15px; border-radius: 100px;
    background: var(--surface); border: 1px solid var(--glass-brd);
    font-size: 13px; color: var(--txt-dim); font-weight: 500;
}
.badge-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); animation: pulse-ring 2s infinite; }

/* demo search box */
.demo-search {
    max-width: 720px; margin: 44px auto 0;
    padding: 8px 8px 8px 22px;
    display: flex; align-items: center; gap: 14px;
    border-radius: 18px;
    background: var(--glass); border: 1px solid var(--glass-brd);
    box-shadow: var(--shadow-glow);
}
.demo-search input {
    flex: 1; background: none; border: none; outline: none;
    color: var(--txt); font-size: 16px; font-family: inherit;
}
.demo-search input::placeholder { color: var(--txt-mute); }

.ticker { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ticker .t {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--brd); font-size: 13.5px;
}

.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -.03em; margin: 14px 0 0; font-weight: 800; }
.section-head p { color: var(--txt-dim); font-size: 17px; margin-top: 14px; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.feature {
    padding: 26px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--brd);
    transition: transform .3s, border-color .3s, background .3s;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, 0.3); background: var(--surface-2); }
.feature .ficon {
    width: 46px; height: 46px; border-radius: 12px;
    display: grid; place-items: center; margin-bottom: 16px;
    background: var(--grad-soft); border: 1px solid var(--glass-brd);
    color: var(--violet);
}
.feature h3 { font-size: 17px; margin: 0 0 7px; font-weight: 650; letter-spacing: -.01em; }
.feature p { color: var(--txt-dim); font-size: 14px; margin: 0; line-height: 1.55; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px; max-width: 1000px; margin: 0 auto;
}
.price-card { padding: 30px; position: relative; }
.price-card.featured { border-color: rgba(139, 92, 246, 0.5); box-shadow: var(--shadow-glow); }
.price-card .plan { font-size: 15px; color: var(--txt-dim); font-weight: 600; }
.price-card .amount { font-size: 46px; font-weight: 800; letter-spacing: -.03em; margin: 12px 0 4px; }
.price-card .amount span { font-size: 16px; color: var(--txt-mute); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--txt-dim); }
.price-card li svg { color: var(--violet); flex-shrink: 0; margin-top: 2px; }
.featured-tag {
    position: absolute; top: -12px; right: 24px;
    background: var(--grad); color: #fff; font-size: 12px; font-weight: 600;
    padding: 5px 12px; border-radius: 100px;
}

.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.testi { padding: 26px; }
.testi p { font-size: 15px; line-height: 1.6; color: var(--txt); margin: 0 0 18px; }
.testi .who { display: flex; align-items: center; gap: 12px; }
.testi .av { width: 40px; height: 40px; border-radius: 50%; background: var(--grad-soft); display: grid; place-items: center; font-weight: 700; color: var(--violet); }
.testi .who b { display: block; font-size: 14px; }
.testi .who span { font-size: 12.5px; color: var(--txt-mute); }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
    background: var(--surface); border: 1px solid var(--brd); border-radius: var(--radius-sm);
    padding: 4px 20px; transition: border-color .2s;
}
.faq details[open] { border-color: rgba(139, 92, 246, 0.3); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--txt-mute); font-weight: 300; }
.faq details[open] summary::after { content: '−'; }
.faq p { color: var(--txt-dim); font-size: 14.5px; padding: 0 0 18px; margin: 0; line-height: 1.6; }

.cta-band {
    text-align: center; padding: 70px 30px; border-radius: 26px;
    background: var(--grad-soft); border: 1px solid var(--glass-brd);
    position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.03em; margin: 0 0 14px; font-weight: 800; }
.cta-band p { color: var(--txt-dim); max-width: 480px; margin: 0 auto 28px; font-size: 16px; }

.footer { padding: 60px 0 40px; border-top: 1px solid var(--brd); margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; }
.footer-grid h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--txt-mute); margin: 0 0 16px; }
.footer-grid a { display: block; color: var(--txt-dim); font-size: 14px; margin-bottom: 11px; transition: color .2s; }
.footer-grid a:hover { color: var(--txt); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--brd); color: var(--txt-mute); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ============================================================================
   AUTH
   ========================================================================== */

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; padding: 38px 34px; animation: fadeUp .6s both; }
.auth-card .brand { justify-content: center; margin-bottom: 8px; }
.auth-card h1 { font-size: 25px; text-align: center; margin: 18px 0 6px; letter-spacing: -.02em; }
.auth-card .lead { text-align: center; color: var(--txt-dim); font-size: 14.5px; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--txt-dim); margin-bottom: 7px; font-weight: 500; }
.field input {
    width: 100%; padding: 12px 15px; border-radius: var(--radius-sm);
    background: var(--surface); border: 1px solid var(--brd); color: var(--txt);
    font-size: 15px; font-family: inherit; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15); }
.auth-alt { text-align: center; margin-top: 22px; font-size: 14px; color: var(--txt-dim); }
.auth-alt a { color: var(--violet); font-weight: 600; }

.alert { padding: 12px 15px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 18px; }
.alert-error { background: rgba(251, 113, 133, 0.12); border: 1px solid rgba(251, 113, 133, 0.3); color: #fda4af; }
.alert-success { background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.3); color: #6ee7b7; }
.alert-info { background: rgba(99, 102, 241, 0.12); border: 1px solid rgba(99, 102, 241, 0.3); color: #a5b4fc; }

/* ============================================================================
   APP SHELL
   ========================================================================== */

.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }

.sidebar {
    position: sticky; top: 0; height: 100vh;
    padding: 22px 16px;
    border-right: 1px solid var(--brd);
    background: rgba(8, 8, 14, 0.6);
    backdrop-filter: blur(20px);
    display: flex; flex-direction: column;
    overflow-y: auto;
}
.sidebar .brand { padding: 4px 8px 24px; font-size: 16px; }
.side-group { margin-bottom: 6px; }
.side-group .glabel { padding: 14px 12px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--txt-mute); font-weight: 600; }
.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 10px;
    color: var(--txt-dim); font-size: 14.5px; font-weight: 500;
    transition: background .18s, color .18s;
    margin-bottom: 2px;
}
.nav-item:hover { background: var(--surface); color: var(--txt); }
.nav-item.active { background: var(--grad-soft); color: #fff; border: 1px solid rgba(139, 92, 246, 0.25); }
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; }
.nav-item .badge { margin-left: auto; font-size: 10px; padding: 2px 7px; border-radius: 100px; background: var(--grad); color: #fff; font-weight: 600; }
.sidebar-foot { margin-top: auto; padding-top: 16px; }

.main { min-width: 0; display: flex; flex-direction: column; }

.appbar {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; gap: 16px;
    padding: 14px 28px;
    border-bottom: 1px solid var(--brd);
    background: rgba(8, 8, 14, 0.7);
    backdrop-filter: blur(20px);
}
.appbar .menu-btn { display: none; background: none; border: none; color: var(--txt); cursor: pointer; }
.appbar-search {
    flex: 1; max-width: 520px;
    display: flex; align-items: center; gap: 10px;
    padding: 9px 15px; border-radius: 11px;
    background: var(--surface); border: 1px solid var(--brd);
}
.appbar-search input { flex: 1; background: none; border: none; outline: none; color: var(--txt); font-size: 14px; font-family: inherit; }
.appbar-search input::placeholder { color: var(--txt-mute); }
.appbar-search kbd { font-size: 11px; padding: 2px 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--brd); color: var(--txt-mute); font-family: var(--mono); }
.appbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--brd); color: var(--txt-dim); cursor: pointer; transition: all .2s; }
.icon-btn:hover { color: var(--txt); border-color: rgba(139, 92, 246, 0.3); }
.avatar { width: 38px; height: 38px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; cursor: pointer; }

.content { padding: 28px; max-width: 1360px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 27px; letter-spacing: -.025em; margin: 0; font-weight: 750; }
.page-head p { color: var(--txt-dim); font-size: 14.5px; margin: 6px 0 0; }

/* grids */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.col-span-2 { grid-column: span 2; }

/* stat tiles */
.stat { padding: 20px; }
.stat .label { font-size: 13px; color: var(--txt-dim); display: flex; align-items: center; gap: 8px; }
.stat .value { font-size: 27px; font-weight: 750; letter-spacing: -.02em; margin: 10px 0 4px; }
.stat .delta { font-size: 13px; font-weight: 600; }
.stat .icn { width: 34px; height: 34px; border-radius: 9px; background: var(--grad-soft); display: grid; place-items: center; color: var(--violet); margin-left: auto; }

/* tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--brd); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
table.data th { text-align: left; padding: 14px 18px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--txt-mute); font-weight: 600; border-bottom: 1px solid var(--brd); position: sticky; top: 0; background: var(--bg-2); }
table.data td { padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
table.data tbody tr { transition: background .15s; cursor: pointer; }
table.data tbody tr:hover { background: var(--surface); }
table.data tbody tr:last-child td { border-bottom: none; }
.td-coin { display: flex; align-items: center; gap: 11px; }
.td-coin b { font-weight: 600; }
.td-coin .sym { color: var(--txt-mute); font-size: 12px; text-transform: uppercase; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* mini sparkline bar */
.spark { display: inline-flex; align-items: flex-end; gap: 2px; height: 26px; }
.spark i { width: 3px; background: var(--violet); border-radius: 2px; opacity: .55; display: block; }

/* ── AI Search page ───────────────────────────────────────────────────────── */

.search-hero { text-align: center; padding: 30px 0 10px; }
.search-hero h1 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -.03em; margin: 0; }
.search-hero p { color: var(--txt-dim); margin: 10px 0 0; }

.search-box {
    max-width: 780px; margin: 26px auto 0;
    display: flex; align-items: center; gap: 12px;
    padding: 8px 8px 8px 20px; border-radius: 16px;
    background: var(--glass); border: 1px solid var(--glass-brd);
    box-shadow: var(--shadow-glow);
    transition: box-shadow .3s;
}
.search-box:focus-within { box-shadow: 0 0 0 1px rgba(139, 92, 246, .45), 0 24px 70px -18px rgba(99, 102, 241, .6); }
.search-box svg { color: var(--txt-mute); flex-shrink: 0; }
.search-box input { flex: 1; background: none; border: none; outline: none; color: var(--txt); font-size: 16px; font-family: inherit; }
.search-box input::placeholder { color: var(--txt-mute); }

.examples { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: 760px; margin: 20px auto 0; }

.answer-wrap { max-width: 820px; margin: 30px auto 0; }
.answer-card { padding: 28px; animation: fadeUp .5s both; }
.answer-engine { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--brd); }
.answer-engine .spark-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--grad); display: grid; place-items: center; color: #fff; }
.answer-engine .meta { font-size: 12.5px; color: var(--txt-mute); }
.answer-engine .meta b { color: var(--txt-dim); font-weight: 600; }

.answer-body { font-size: 15.5px; line-height: 1.72; color: var(--txt); }
.answer-body h1, .answer-body h2, .answer-body h3 { font-size: 17px; margin: 20px 0 8px; }
.answer-body p { margin: 0 0 14px; }
.answer-body ul { margin: 0 0 14px; padding-left: 20px; }
.answer-body li { margin-bottom: 7px; }
.answer-body strong { color: #fff; font-weight: 650; }
.answer-body code { font-family: var(--mono); font-size: 13px; background: var(--surface-2); padding: 2px 6px; border-radius: 5px; }
.answer-body em { color: var(--txt-mute); font-style: normal; font-size: 13px; }

.metrics-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 22px 0; }
.metric-tile { padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--brd); }
.metric-tile .m-label { font-size: 12px; color: var(--txt-mute); }
.metric-tile .m-value { font-size: 18px; font-weight: 700; margin: 5px 0 2px; letter-spacing: -.01em; }
.metric-tile .m-delta { font-size: 12px; font-weight: 600; }

.sources-block { margin-top: 22px; }
.sources-block h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--txt-mute); margin: 0 0 12px; }
.source-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 11px; background: var(--surface); border: 1px solid var(--brd); margin-bottom: 8px; transition: border-color .2s; }
.source-item:hover { border-color: rgba(139, 92, 246, 0.3); }
.source-item .snum { width: 22px; height: 22px; border-radius: 6px; background: var(--grad-soft); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--violet); flex-shrink: 0; }
.source-item .stitle { font-size: 13.5px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-item .ssrc { font-size: 11.5px; color: var(--txt-mute); }

.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 14px; }
.related-item { padding: 13px 15px; border-radius: 11px; background: var(--surface); border: 1px solid var(--brd); transition: all .2s; }
.related-item:hover { border-color: rgba(139, 92, 246, 0.35); transform: translateY(-2px); }
.related-item b { display: block; font-size: 14px; }
.related-item span { font-size: 12px; color: var(--txt-mute); }

.suggestions { margin-top: 22px; }
.suggestions .section-label { margin-bottom: 12px; display: block; }

/* thinking indicator */
.thinking { display: flex; align-items: center; gap: 14px; padding: 24px 28px; }
.thinking .orb { width: 26px; height: 26px; border-radius: 50%; background: var(--grad); position: relative; animation: floaty 2s ease-in-out infinite; }
.thinking .orb::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--violet); animation: spin 1s linear infinite; }
.thinking .steps { color: var(--txt-dim); font-size: 14px; }
.thinking .steps b { color: var(--txt); }

/* chart */
.chart-box { width: 100%; height: 240px; margin: 20px 0; }
.chart-box svg { width: 100%; height: 100%; overflow: visible; }

/* token detail */
.token-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.token-hero img { width: 60px; height: 60px; border-radius: 50%; }
.token-hero h1 { margin: 0; font-size: 30px; letter-spacing: -.02em; }
.token-hero .sym { color: var(--txt-mute); font-size: 15px; text-transform: uppercase; }
.token-price { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.range-btns { display: flex; gap: 6px; }
.range-btns button { padding: 6px 14px; border-radius: 8px; background: var(--surface); border: 1px solid var(--brd); color: var(--txt-dim); font-size: 13px; cursor: pointer; font-family: inherit; transition: all .2s; }
.range-btns button.active { background: var(--grad); color: #fff; border-color: transparent; }

.kv-list { display: grid; gap: 1px; }
.kv { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 14px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--txt-dim); }
.kv .v { font-weight: 600; font-variant-numeric: tabular-nums; }

.prose { color: var(--txt-dim); font-size: 14.5px; line-height: 1.7; }
.prose a { color: var(--violet); }

/* news */
.news-item { padding: 18px 20px; display: flex; gap: 16px; align-items: flex-start; transition: border-color .2s; }
.news-item .nsrc { font-size: 11px; padding: 4px 10px; border-radius: 100px; background: var(--grad-soft); color: var(--violet); font-weight: 600; white-space: nowrap; }
.news-item h3 { font-size: 15.5px; margin: 0 0 6px; font-weight: 600; line-height: 1.35; }
.news-item p { font-size: 13.5px; color: var(--txt-dim); margin: 0; line-height: 1.55; }
.news-item time { font-size: 12px; color: var(--txt-mute); white-space: nowrap; }

/* wallet */
.wallet-input { display: flex; gap: 10px; margin-bottom: 24px; }
.wallet-input input { flex: 1; padding: 13px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--brd); color: var(--txt); font-family: var(--mono); font-size: 14px; outline: none; }
.wallet-input input:focus { border-color: var(--violet); }

.gauge { position: relative; width: 120px; height: 120px; }

/* empty states */
.empty { text-align: center; padding: 60px 20px; color: var(--txt-mute); }
.empty .ei { width: 56px; height: 56px; border-radius: 14px; background: var(--grad-soft); display: grid; place-items: center; margin: 0 auto 16px; color: var(--violet); }
.empty h3 { color: var(--txt); font-size: 17px; margin: 0 0 8px; }
.empty p { font-size: 14px; max-width: 380px; margin: 0 auto; }

/* $ANSEM tier pills */
.pill.tier-free { color: var(--txt-dim); }
.pill.tier-holder { color: #7dd3fc; border-color: rgba(125,211,252,.3); background: rgba(125,211,252,.08); }
.pill.tier-pro { color: #c4b5fd; border-color: rgba(196,181,253,.35); background: rgba(139,92,246,.12); }
.pill.tier-whale { color: #fcd34d; border-color: rgba(252,211,77,.35); background: rgba(252,211,77,.1); }

.tier-card { padding: 22px; position: relative; }
.tier-card .t-name { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--txt-mute); font-weight: 600; }
.tier-card .t-req { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 10px 0 2px; }
.tier-card .t-req span { font-size: 14px; color: var(--txt-mute); font-weight: 500; }
.tier-card ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 9px; }
.tier-card li { display: flex; gap: 9px; font-size: 13.5px; color: var(--txt-dim); align-items: flex-start; }
.tier-card li svg { color: var(--violet); flex-shrink: 0; margin-top: 2px; }
.tier-card.current { border-color: rgba(139,92,246,.5); box-shadow: var(--shadow-glow); }

/* vote bars */
.vote-bar { height: 8px; border-radius: 100px; background: var(--surface-2); overflow: hidden; display: flex; }
.vote-bar i { display: block; height: 100%; }
.vote-bar .vf { background: var(--up); }
.vote-bar .va { background: var(--down); }
.vote-bar .vb { background: var(--txt-mute); }
.vote-btns { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* code block */
.codeblock { background: #0a0a12; border: 1px solid var(--brd); border-radius: 12px; padding: 16px 18px; overflow-x: auto; font-family: var(--mono); font-size: 13px; color: #c7d2fe; line-height: 1.6; }
.codeblock .k { color: var(--cyan); }
.api-key-reveal { font-family: var(--mono); font-size: 13px; word-break: break-all; background: var(--surface-2); border: 1px solid rgba(139,92,246,.3); border-radius: 10px; padding: 12px 14px; }

/* toast */
.toast-host { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { padding: 13px 18px; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-brd); backdrop-filter: blur(20px); font-size: 14px; animation: fadeUp .3s both; box-shadow: var(--shadow); }

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 1000px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
    .app { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed; left: 0; top: 0; z-index: 100;
        width: 280px; transform: translateX(-100%);
        transition: transform .3s cubic-bezier(.2,.7,.2,1);
    }
    .sidebar.open { transform: none; }
    .appbar .menu-btn { display: grid; place-items: center; }
    .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 99; opacity: 0; pointer-events: none; transition: opacity .3s; }
    .scrim.show { opacity: 1; pointer-events: auto; }
    .nav-links { display: none; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .col-span-2 { grid-column: auto; }
    .content { padding: 20px 16px; }
}

@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
    .appbar-search kbd { display: none; }
    .hero { padding: 60px 0 40px; }
}
