/* ============================================================
   style.css — FOMO RADAR Design System
   Sleek Dark Theme, Radiant Flame Accents & Clean Modern Typography
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;600;700;800&display=swap');

:root {
    /* Theme Palette */
    --bg-main: #080c16;
    --bg-panel: #0d1322;
    --bg-card: #131b2e;
    --bg-card-hover: #1a253e;
    --bg-input: #0a0f1d;
    --bg-muted: #1e293b;

    /* Borders */
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);
    --border-flame: rgba(255, 107, 0, 0.4);

    /* Text */
    --text-main: #f8fafc;
    --text-sub: #94a3b8;
    --text-muted: #64748b;

    /* Accents */
    --flame-orange: #ff6b00;
    --flame-red: #ff3b00;
    --flame-yellow: #ffb800;
    --green: #10b981;
    --cyan: #06b6d4;
    --red: #ef4444;

    /* Gradients */
    --grad-flame: linear-gradient(135deg, #ff3b00 0%, #ff6b00 50%, #ffb800 100%);
    --grad-green: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --grad-cyan: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);

    /* Fonts */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Layout */
    --header-h: 64px;
    --sidebar-w: 360px;
    --right-w: 300px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

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

html {
    font-size: 14px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Subtle Ambient Flame Glow */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 15% 10%, rgba(255, 107, 0, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 15%, rgba(6, 182, 212, 0.05) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 90%, rgba(16, 185, 129, 0.04) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

#app {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--flame-orange);
}

/* ─── Header ─────────────────────────────────────────────── */
.header {
    height: var(--header-h);
    background: rgba(13, 19, 34, 0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    padding: 0 18px;
    flex-shrink: 0;
    z-index: 100;
}

.header-inner {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
    flex-shrink: 0;
}

.flame-icon-wrap {
    width: 36px;
    height: 36px;
    background: rgba(255, 107, 0, 0.15);
    border: 1px solid rgba(255, 107, 0, 0.35);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 0 12px rgba(255, 107, 0, 0.2);
}

.brand-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-title {
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    background: var(--grad-flame);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.domain-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(255, 107, 0, 0.12);
    border: 1px solid rgba(255, 107, 0, 0.3);
    color: var(--flame-orange);
    padding: 1px 6px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.02em;
}

.logo-sub {
    font-size: 0.68rem;
    color: var(--text-sub);
    font-weight: 500;
}

/* Header Search */
.header-search {
    position: relative;
    flex: 1;
    max-width: 440px;
    display: flex;
    align-items: center;
}

.header-search input {
    width: 100%;
    height: 38px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    padding: 0 70px 0 36px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    outline: none;
    transition: all 0.15s;
}

.header-search input:focus {
    border-color: var(--flame-orange);
    background: #0f172a;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.2);
}

.header-search .search-icon {
    position: absolute;
    left: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    pointer-events: none;
}

.btn-paste {
    position: absolute;
    right: 6px;
    height: 26px;
    padding: 0 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-sub);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-paste:hover {
    background: rgba(255, 107, 0, 0.2);
    border-color: var(--flame-orange);
    color: var(--text-main);
}

.btn-clear-search {
    position: absolute;
    right: 65px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
}

/* Stats Pill Bar */
.header-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 5px 10px;
    border-radius: var(--radius-md);
    font-size: 0.78rem;
}

.stat-dot {
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--green);
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.72rem;
}

.stat-value {
    font-weight: 700;
    font-family: var(--font-mono);
}

.text-cyan { color: var(--cyan); }
.text-green { color: var(--green); }
.text-orange { color: var(--flame-orange); }
.text-red { color: var(--red); }

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Clean Buttons */
.btn {
    height: 34px;
    padding: 0 14px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--grad-flame);
    color: #1a0800;
    font-weight: 800;
    box-shadow: 0 2px 10px rgba(255, 107, 0, 0.3);
}
.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-outline {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
}
.btn-outline:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.btn-icon {
    width: 34px;
    padding: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
}
.btn-icon:hover {
    background: var(--bg-card-hover);
}

.btn-clean-sm {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-sub);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.btn-clean-sm:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-main);
}

/* ─── Beginner Guide Banner ───────────────────────────────── */
.guide-banner {
    background: #0f1628;
    border-bottom: 1px solid var(--border-flame);
    padding: 12px 20px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.guide-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 16px;
    align-items: center;
}

.guide-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.guide-num {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.guide-body strong {
    font-size: 0.82rem;
    color: var(--text-main);
    display: block;
    margin-bottom: 2px;
}

.guide-body p {
    font-size: 0.72rem;
    color: var(--text-sub);
    line-height: 1.35;
}

.badge-safe {
    background: rgba(16, 185, 129, 0.15);
    color: var(--green);
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.btn-close-guide {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
}
.btn-close-guide:hover { color: var(--text-main); }

/* ─── Main Grid Layout ────────────────────────────────────── */
.main-grid {
    flex: 1;
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--right-w);
    height: calc(100vh - var(--header-h));
    overflow: hidden;
}

.panel {
    display: flex;
    flex-direction: column;
    background: var(--bg-panel);
    border-right: 1px solid var(--border);
    height: 100%;
    overflow: hidden;
}

.panel:last-child {
    border-right: none;
    border-left: 1px solid var(--border);
}

.panel-header {
    height: 48px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: var(--bg-main);
    flex-shrink: 0;
}

.panel-header h3 {
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sort-select {
    height: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.75rem;
    padding: 0 6px;
    outline: none;
    cursor: pointer;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-panel);
    overflow-x: auto;
    flex-shrink: 0;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-chip {
    height: 26px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-sub);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.filter-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.filter-chip.active {
    background: rgba(255, 107, 0, 0.15);
    border-color: var(--flame-orange);
    color: var(--flame-orange);
    font-weight: 700;
    box-shadow: 0 0 8px rgba(255, 107, 0, 0.2);
}

/* ─── Token List & Cards ──────────────────────────────────── */
.token-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.token-card {
    display: grid;
    grid-template-columns: 36px 1fr 65px auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.token-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.token-card.active {
    background: #1e2a44;
    border-color: var(--flame-orange);
    box-shadow: inset 3px 0 0 var(--flame-orange), 0 4px 14px rgba(255, 107, 0, 0.15);
}

.token-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1c263c;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--cyan);
    overflow: hidden;
    flex-shrink: 0;
}

.token-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.token-titles {
    overflow: hidden;
}

.token-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
}

.token-main-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
}

.token-main-symbol {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.token-meta-row {
    display: flex;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-top: 2px;
}

.token-sparkline-canvas {
    width: 65px;
    height: 22px;
    display: block;
}

.token-card-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.token-card-price {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
}

.token-card-change {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
}

.positive { color: var(--green); }
.negative { color: var(--red); }
.neutral { color: var(--text-muted); }

/* FOMO Badges */
.fomo-pill {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.fomo-hot {
    background: rgba(255, 107, 0, 0.18);
    border: 1px solid rgba(255, 107, 0, 0.4);
    color: var(--flame-orange);
}
.fomo-growing {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.35);
    color: var(--cyan);
}
.fomo-quiet {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-muted);
}

/* ─── Detail Panel ───────────────────────────────────────── */
.detail-panel {
    flex: 1;
    overflow-y: auto;
    background: var(--bg-main);
}

.detail-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 40px 20px;
    text-align: center;
}

.empty-emoji {
    font-size: 3rem;
    margin-bottom: 16px;
    animation: flamePulse 2s infinite alternate;
}

@keyframes flamePulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.detail-empty h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.detail-empty p {
    max-width: 500px;
    color: var(--text-sub);
    font-size: 0.88rem;
    margin-bottom: 24px;
}

.empty-checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    padding: 14px 20px;
    border-radius: var(--radius-md);
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* Detail Content View */
.detail-wrap {
    padding: 16px 20px 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1100px;
}

/* Verdict Banner */
.verdict-banner {
    background: var(--bg-panel);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.verdict-safe { border-left: 5px solid var(--green); }
.verdict-caution { border-left: 5px solid var(--flame-yellow); }
.verdict-danger { border-left: 5px solid var(--red); }

.verdict-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.verdict-icon {
    font-size: 2rem;
}

.verdict-title {
    font-size: 1.15rem;
    font-weight: 800;
}

.verdict-desc {
    font-size: 0.82rem;
    color: var(--text-sub);
    margin-top: 2px;
}

.verdict-right-price {
    text-align: right;
}

.verdict-price {
    font-family: var(--font-mono);
    font-size: 1.45rem;
    font-weight: 800;
}

/* Clean Buying Action Hub */
.action-hub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: var(--radius-md);
}

.hub-btn {
    height: 32px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    transition: all 0.15s;
}

.hub-btn:hover {
    background: var(--bg-card-hover);
    transform: translateY(-1px);
}

.hub-btn.photon {
    background: rgba(255, 107, 0, 0.18);
    border-color: rgba(255, 107, 0, 0.4);
    color: var(--flame-orange);
}
.hub-btn.photon:hover {
    background: rgba(255, 107, 0, 0.3);
}

.hub-btn.bullx {
    background: rgba(255, 184, 0, 0.15);
    border-color: rgba(255, 184, 0, 0.35);
    color: var(--flame-yellow);
}

.hub-btn.jup {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.4);
    color: var(--cyan);
}

/* Clean Chart Box */
.clean-chart-box {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chart-top-bar {
    height: 42px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border);
}

.chart-provider-tabs {
    display: flex;
    gap: 4px;
}

.provider-btn {
    height: 26px;
    padding: 0 8px;
    background: none;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-sub);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
}
.provider-btn.active {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-main);
}

.clean-chart-viewport {
    width: 100%;
    height: 420px;
    background: #070a12;
}

.clean-chart-viewport iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Card Sections */
.info-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
}

.info-card-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.info-card-hdr h4 {
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.reasons-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reason-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
}

.reason-item.safe-item { border-left: 3px solid var(--green); }
.reason-item.warn-item { border-left: 3px solid var(--red); }

/* Pressure Meter */
.pressure-wrap {
    margin-top: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.pressure-hdr {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 6px;
    font-family: var(--font-mono);
}

.pressure-bar {
    height: 8px;
    background: rgba(239, 68, 68, 0.35);
    border-radius: 999px;
    overflow: hidden;
    display: flex;
}

.pressure-buy-fill {
    height: 100%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    transition: width 0.4s ease;
}

/* Simple Calculator */
.calc-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--bg-card);
    padding: 12px 14px;
    border-radius: var(--radius-md);
    margin-top: 8px;
}

.calc-input-wrap {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 8px;
}

.calc-input {
    width: 80px;
    height: 32px;
    background: none;
    border: none;
    color: var(--flame-orange);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    outline: none;
}

.calc-res {
    display: flex;
    gap: 14px;
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

/* Social Cards */
.social-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.social-btn-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 600;
}
.social-btn-card:hover {
    background: var(--bg-card-hover);
}

/* ─── Right Panel & Saved Coins ───────────────────────────── */
.badge-count {
    background: rgba(255, 107, 0, 0.15);
    color: var(--flame-orange);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 999px;
}

.watchlist-empty {
    padding: 24px 16px;
    text-align: center;
    color: var(--text-muted);
}
.empty-star { font-size: 1.5rem; margin-bottom: 4px; }
.watchlist-empty .subtext { font-size: 0.72rem; margin-top: 2px; }

.watchlist-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}
.watchlist-row:hover { background: rgba(255, 255, 255, 0.03); }

.wl-title { font-size: 0.82rem; font-weight: 700; }
.wl-sub { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }
.wl-price-val { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; }

.webhook-section {
    border-top: 1px solid var(--border);
    max-height: 220px;
    display: flex;
    flex-direction: column;
}

.webhook-hdr { height: 38px; background: var(--bg-card); }
.webhook-log { flex: 1; overflow-y: auto; padding: 6px; display: flex; flex-direction: column; gap: 4px; }

.tips-box {
    margin-top: auto;
    padding: 12px 14px;
    border-top: 1px solid var(--border);
    background: rgba(13, 19, 34, 0.9);
}

.tips-title { font-size: 0.78rem; font-weight: 700; color: var(--text-main); margin-bottom: 6px; }
.tips-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.tips-list li { font-size: 0.72rem; color: var(--text-sub); line-height: 1.35; }

/* ─── Modal ──────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}

.modal {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    overflow: hidden;
}

.modal-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 { font-size: 1rem; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.4rem; cursor: pointer; }
.modal-desc { font-size: 0.78rem; color: var(--text-sub); margin-bottom: 12px; }

.modal-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-label { font-size: 0.75rem; font-weight: 600; color: var(--text-sub); }
.form-input, .form-select {
    height: 36px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    padding: 0 10px;
    font-size: 0.82rem;
    outline: none;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle-input { display: none; }
.toggle-slider {
    width: 36px; height: 18px; background: rgba(255, 255, 255, 0.15); border-radius: 999px; position: relative; transition: all 0.2s;
}
.toggle-slider::before {
    content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; background: #fff; border-radius: 50%; transition: all 0.2s;
}
.toggle-input:checked + .toggle-slider { background: var(--flame-orange); }
.toggle-input:checked + .toggle-slider::before { transform: translateX(18px); }

.modal-footer {
    padding: 12px 20px;
    background: var(--bg-main);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Clean Spinner */
.clean-spinner {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--flame-orange);
    animation: spin 0.8s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.scanner-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    text-align: center;
    color: var(--text-muted);
}

/* Toast */
#toast-container { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 6px; z-index: 300; }
.toast {
    background: var(--bg-panel); border: 1px solid var(--border); padding: 8px 14px; border-radius: var(--radius-sm); font-size: 0.8rem; display: flex; align-items: center; gap: 8px;
}
.toast-success { border-color: var(--flame-orange); box-shadow: 0 0 10px rgba(255, 107, 0, 0.2); }
.toast-error { border-color: var(--red); }

@media (max-width: 1100px) {
    .main-grid { grid-template-columns: 1fr; height: auto; }
    #app { height: auto; max-height: none; overflow: visible; }
    .panel { border-right: none; border-bottom: 1px solid var(--border); }
    .header-stats { display: none; }
    .social-links-grid { grid-template-columns: 1fr; }
}
