/* ================================================================
   PokeTop10 — DARK TERMINAL THEME (Black + Gold)
   Next-gen fintech trading terminal × premium gaming aesthetic
   ================================================================ */

/* ==================== DESIGN TOKEN OVERRIDES ==================== */
:root {
    /* Core Dark Palette */
    --bg-primary: #06080c;
    --bg-secondary: #0a0d14;
    --bg-card: #0d1117;
    --bg-card-hover: #131920;
    --bg-sidebar: #0f1219;
    --bg-surface: #111820;
    --bg-elevated: #161d28;

    /* Borders — subtle gold tint */
    --border: rgba(217, 168, 50, 0.08);
    --border-strong: rgba(217, 168, 50, 0.18);
    --border-glow: rgba(217, 168, 50, 0.35);

    /* Text */
    --text-primary: #e8ecf4;
    --text-secondary: #8b95a8;
    --text-muted: #505a6e;
    --text-placeholder: #3a4356;

    /* Gold System — the star of the show */
    --gold: #d4a017;
    --gold-light: #f0c040;
    --gold-bright: #ffd54f;
    --gold-dim: #9a7510;
    --gold-bg: rgba(212, 160, 23, 0.08);
    --gold-border: rgba(212, 160, 23, 0.25);
    --gold-glow: rgba(212, 160, 23, 0.4);
    --gold-text-glow: 0 0 20px rgba(212, 160, 23, 0.3);

    /* Semantic Colors (tuned for dark bg) */
    --green: #00e396;
    --green-light: #34edaa;
    --green-bg: rgba(0, 227, 150, 0.08);
    --green-border: rgba(0, 227, 150, 0.25);
    --red: #ff4560;
    --red-light: #ff6b81;
    --red-bg: rgba(255, 69, 96, 0.08);
    --red-border: rgba(255, 69, 96, 0.2);
    --blue: #3b82f6;
    --blue-bg: rgba(59, 130, 246, 0.08);
    --purple: #a78bfa;
    --purple-bg: rgba(167, 139, 250, 0.08);

    /* Elevation (dark mode shadows + glow) */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.4), 0 0 1px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.5), 0 0 1px rgba(212,160,23,0.05);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.6), 0 0 1px rgba(212,160,23,0.08);
    --shadow-gold: 0 0 20px rgba(212, 160, 23, 0.15), 0 0 60px rgba(212, 160, 23, 0.05);
    --shadow-card-hover: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(212,160,23,0.12);

    /* Radius — slightly larger for premium feel */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* ==================== GLOBAL ==================== */
body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Subtle grid pattern overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(rgba(212,160,23,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212,160,23,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Ambient glow at top */
body::after {
    content: '';
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(212,160,23,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(212,160,23,0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(212,160,23,0.35);
}

/* Selection */
::selection {
    background: rgba(212,160,23,0.3);
    color: #fff;
}

/* ==================== HEADER ==================== */
header {
    background: rgba(6, 8, 12, 0.85) !important;
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border) !important;
    box-shadow: 0 1px 0 rgba(212,160,23,0.05);
}

.header-inner {
    height: 56px;
}

.logo-wordmark {
    color: var(--text-primary) !important;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.logo-wordmark span {
    color: var(--gold) !important;
    text-shadow: var(--gold-text-glow);
}

.logo .logo-sub {
    color: var(--gold-dim) !important;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.logo-icon {
    filter: drop-shadow(0 0 8px rgba(212,160,23,0.4)) !important;
}

.logo:hover .logo-icon {
    filter: drop-shadow(0 0 16px rgba(212,160,23,0.6)) !important;
}

/* Nav Links */
.nav-link {
    color: var(--text-secondary) !important;
    border-radius: var(--radius) !important;
    transition: all 0.2s ease !important;
    position: relative;
}

.nav-link:hover {
    color: var(--gold-light) !important;
    background: rgba(212,160,23,0.06) !important;
}

.nav-link.active {
    color: var(--gold) !important;
    background: rgba(212,160,23,0.1) !important;
    font-weight: 600;
}

/* Active indicator line */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    border-radius: 1px;
}

/* CTA Button */
.nav-cta {
    background: linear-gradient(135deg, var(--gold), var(--gold-dim)) !important;
    color: #000 !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    border: 1px solid rgba(212,160,23,0.3);
    box-shadow: 0 0 15px rgba(212,160,23,0.2), inset 0 1px 0 rgba(255,255,255,0.15);
    transition: all 0.25s ease !important;
}

.nav-cta:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold)) !important;
    box-shadow: 0 0 30px rgba(212,160,23,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

/* Hamburger */
.hamburger-btn {
    border-color: var(--border) !important;
    color: var(--text-secondary) !important;
}
.hamburger-btn:hover {
    background: rgba(212,160,23,0.1) !important;
    border-color: var(--gold-border) !important;
    color: var(--gold-light) !important;
}

/* Mobile Nav */
.mobile-nav {
    background: rgba(10, 13, 20, 0.95) !important;
    border-bottom: 1px solid var(--border) !important;
    backdrop-filter: blur(20px) !important;
}
.mobile-nav a {
    color: var(--text-secondary) !important;
}
.mobile-nav a:hover, .mobile-nav a.active {
    color: var(--gold) !important;
    background: var(--gold-bg) !important;
}

/* Dropdown */
.nav-dropdown-menu {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-strong) !important;
    box-shadow: var(--shadow-lg) !important;
}
.nav-dropdown-item {
    color: var(--text-secondary) !important;
}
.nav-dropdown-item:hover {
    color: var(--gold-light) !important;
    background: var(--gold-bg) !important;
}

/* ==================== TICKER STRIP ==================== */
.ticker-strip {
    background: var(--bg-secondary) !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: inset 0 -1px 0 rgba(212,160,23,0.05);
}

.ticker-item {
    color: var(--text-secondary) !important;
}

/* ==================== HERO BANNER ==================== */
.hero-banner {
    background: var(--bg-primary) !important;
}

.hero-banner-overlay {
    background:
        radial-gradient(ellipse 80% 60% at 50% 50%, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.75) 100%),
        linear-gradient(180deg, rgba(6,8,12,0.2) 0%, rgba(6,8,12,0.7) 60%, rgba(6,8,12,0.98) 100%) !important;
}

.hero-banner h1 {
    color: #fff !important;
    text-shadow: 0 0 40px rgba(212,160,23,0.2) !important;
}

.hero-banner h1 .highlight {
    color: var(--gold-light) !important;
    text-shadow: 0 0 40px rgba(212,160,23,0.4), 0 0 80px rgba(212,160,23,0.15) !important;
}

.hero-banner .hero-badge {
    background: rgba(212,160,23,0.1) !important;
    border: 1px solid rgba(212,160,23,0.3) !important;
    color: var(--gold-light) !important;
    box-shadow: 0 0 15px rgba(212,160,23,0.1);
}

.hero-banner .hero-sub {
    color: rgba(255,255,255,0.55) !important;
}

.hero-banner .hero-actions .btn-primary {
    background: var(--gold) !important;
    color: #000 !important;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(212,160,23,0.3);
}
.hero-banner .hero-actions .btn-primary:hover {
    background: var(--gold-light) !important;
    box-shadow: 0 0 35px rgba(212,160,23,0.45);
}

/* Hero Glass Cards */
.hero-glass-card {
    background: rgba(13, 17, 23, 0.7) !important;
    border: 1px solid rgba(212,160,23,0.12) !important;
    backdrop-filter: blur(16px) !important;
    transition: all 0.3s ease !important;
}

.hero-glass-card:hover {
    border-color: rgba(212,160,23,0.3) !important;
    box-shadow: 0 0 20px rgba(212,160,23,0.12) !important;
    transform: translateY(-2px);
}

.hero-glass-card .hero-glass-value {
    color: #fff !important;
    font-weight: 800;
}

.hero-glass-card .hero-glass-label {
    color: var(--text-secondary) !important;
}

/* ==================== STATS STRIP ==================== */
.stat-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    border-color: var(--border-strong) !important;
    box-shadow: var(--shadow-gold) !important;
    transform: translateY(-2px);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-label {
    color: var(--text-muted) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem !important;
}

.stat-value {
    font-weight: 800 !important;
    letter-spacing: -0.02em;
}

.stat-value.gold, .stat-value[style*="gold"] {
    color: var(--gold) !important;
    text-shadow: var(--gold-text-glow);
}

.stat-value.green {
    color: var(--green) !important;
    text-shadow: 0 0 20px rgba(0,227,150,0.3);
}

.stat-value.red {
    color: var(--red) !important;
    text-shadow: 0 0 20px rgba(255,69,96,0.3);
}

.stat-value.blue {
    color: var(--blue) !important;
}

.stat-value.purple {
    color: var(--purple) !important;
}

.stat-delta {
    font-size: 0.72rem !important;
}

/* Accent stripes on stat cards */
.stat-card.accent-gold { border-left: 2px solid var(--gold) !important; }
.stat-card.accent-green { border-left: 2px solid var(--green) !important; }
.stat-card.accent-red { border-left: 2px solid var(--red) !important; }
.stat-card.accent-blue { border-left: 2px solid var(--blue) !important; }
.stat-card.accent-purple { border-left: 2px solid var(--purple) !important; }

/* ==================== SENTIMENT SECTION ==================== */
.sentiment-banner {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
}

.sl-title {
    color: var(--text-secondary) !important;
}

.sentiment-track {
    background: linear-gradient(90deg,
        var(--red), #ff8c42, var(--gold), var(--green-light), var(--green)
    ) !important;
    border-radius: 6px !important;
    height: 8px !important;
}

.sentiment-needle {
    box-shadow: 0 0 10px rgba(255,255,255,0.5) !important;
}

.sentiment-labels span {
    color: var(--text-muted) !important;
}

.signal-item {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
}

.signal-lbl {
    color: var(--text-muted) !important;
}

/* ==================== SECTIONS ==================== */
.section {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
}

.section-title, .section h2, .section h3 {
    color: var(--text-primary) !important;
}

.section-sub {
    color: var(--text-muted) !important;
}

/* ==================== TABLE / DATA ROWS ==================== */
.top10-table, .card-row-table, .winners-table, .losers-table {
    background: var(--bg-card) !important;
}

.top10-row, .card-mover-row, [class*="-row"] {
    border-bottom: 1px solid var(--border) !important;
    transition: all 0.2s ease !important;
}

.top10-row:hover, .card-mover-row:hover, [class*="-row"]:hover {
    background: rgba(212,160,23,0.04) !important;
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    background: var(--gold) !important;
    color: #000 !important;
    font-weight: 700 !important;
    border: 1px solid rgba(212,160,23,0.3) !important;
    box-shadow: 0 0 15px rgba(212,160,23,0.15);
    transition: all 0.25s ease !important;
}

.btn-primary:hover {
    background: var(--gold-light) !important;
    box-shadow: 0 0 25px rgba(212,160,23,0.3) !important;
    transform: translateY(-1px);
}

.btn-ghost {
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-strong) !important;
    background: transparent !important;
}

.btn-ghost:hover {
    color: var(--gold-light) !important;
    border-color: var(--gold-border) !important;
    background: var(--gold-bg) !important;
}

/* ==================== TIMEFRAME BAR ==================== */
.timeframe-bottom-bar {
    background: rgba(6, 8, 12, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    border-top: 1px solid var(--border) !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.tf-label {
    color: var(--text-muted) !important;
}

.timeframe-btn {
    color: var(--text-secondary) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: var(--radius) !important;
    transition: all 0.2s ease !important;
}

.timeframe-btn:hover {
    color: var(--gold-light) !important;
    background: rgba(212,160,23,0.06) !important;
    border-color: rgba(212,160,23,0.15) !important;
}

.timeframe-btn.active {
    background: var(--gold) !important;
    color: #000 !important;
    font-weight: 700 !important;
    border-color: var(--gold) !important;
    box-shadow: 0 0 15px rgba(212,160,23,0.3);
}

/* ==================== ROI CALCULATOR ==================== */
.roi-input, input[type="number"], input[type="text"], select {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.roi-input:focus, input:focus, select:focus {
    border-color: var(--gold-border) !important;
    box-shadow: 0 0 0 3px rgba(212,160,23,0.1) !important;
    outline: none;
}

/* ==================== SET HEATMAP ==================== */
.heatmap-cell {
    border-radius: var(--radius) !important;
    transition: all 0.2s ease !important;
}

.heatmap-cell:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md) !important;
}

/* ==================== SPARKLINES ==================== */
.sparkline-area {
    opacity: 0.8;
}

/* ==================== LINKS ==================== */
a {
    color: var(--gold);
    transition: color 0.15s;
}
a:hover {
    color: var(--gold-light);
}

/* ==================== FOOTER ==================== */
footer, .footer {
    background: var(--bg-secondary) !important;
    border-top: 1px solid var(--border) !important;
    color: var(--text-muted) !important;
}

/* ==================== CARD EXPLORER OVERRIDES ==================== */
.card-tile {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    transition: all 0.3s ease !important;
    overflow: hidden;
}

.card-tile:hover {
    border-color: var(--border-strong) !important;
    box-shadow: var(--shadow-card-hover) !important;
    transform: translateY(-4px);
}

/* Kill the light `#f0f2f8` letterbox background behind card art in dark mode.
   Pokemon cards are ~2.5:3.5 and the tile container is wider, so object-fit:
   contain leaves empty sidebars — those sidebars blended with #f0f2f8 on
   cards-explorer.css. Match the tile background instead so it reads as one
   surface. Also add a subtle inner shadow to give the card some depth. */
.card-tile-img {
    background: var(--bg-card) !important;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.03);
}

/* .controls bar + .era-row both inherited the same light rgba(248,249,252)
   from style.css / cards-explorer.css. Force dark mode bg to match the
   page primary so the header area reads as one continuous dark surface
   instead of a light strip between the nav and the card grid. */
.controls {
    background: rgba(6, 8, 12, 0.92) !important;
    border-bottom: 1px solid var(--border) !important;
}
.era-row {
    background: rgba(6, 8, 12, 0.92) !important;
    border-bottom: 1px solid var(--border) !important;
}
.results-count {
    color: var(--text-secondary) !important;
}
/* The unified body background is var(--bg-primary) in dark (#060810).
   The previous light page background was leaking between .controls and
   the card grid (no explicit bg on <body> override for promos). */
.era-tab-count {
    background: rgba(255,255,255,0.08) !important;
    color: var(--text-primary) !important;
}
.era-tab-btn.active .era-tab-count {
    background: rgba(0,0,0,0.25) !important;
    color: #000 !important;
}

.card-tile .card-name {
    color: var(--text-primary) !important;
}

.card-tile .card-set {
    color: var(--text-muted) !important;
}

.card-tile .card-price {
    color: var(--gold) !important;
    font-weight: 700;
}

/* Controls bar */
.controls-bar {
    background: rgba(6, 8, 12, 0.9) !important;
    border-bottom: 1px solid var(--border) !important;
    backdrop-filter: blur(16px) !important;
}

.search-input {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
}

.search-input:focus {
    border-color: var(--gold-border) !important;
    box-shadow: 0 0 0 3px rgba(212,160,23,0.1) !important;
}

.filter-select {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
}

/* Pagination */
.pagination button, .pagination a {
    background: var(--bg-card) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border) !important;
}

.pagination button:hover, .pagination a:hover {
    color: var(--gold) !important;
    border-color: var(--gold-border) !important;
}

.pagination .active {
    background: var(--gold) !important;
    color: #000 !important;
}

/* ==================== MODAL OVERRIDES ==================== */
.modal-backdrop, .modal-overlay {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(8px) !important;
}

.modal-content, .modal-panel {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-strong) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(212,160,23,0.08) !important;
}

/* ==================== ANIMATIONS ==================== */

/* Fade in from below */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glow pulse for gold elements */
@keyframes goldPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(212,160,23,0.15);
    }
    50% {
        box-shadow: 0 0 30px rgba(212,160,23,0.3);
    }
}

/* Shimmer effect for loading states */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Scanning line animation */
@keyframes scanLine {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* High-tech skeleton loader */
.skeleton-dark {
    background: linear-gradient(
        90deg,
        var(--bg-secondary) 25%,
        var(--bg-elevated) 50%,
        var(--bg-secondary) 75%
    ) !important;
    background-size: 400% 100% !important;
    animation: shimmer 2s ease infinite !important;
    border-radius: var(--radius) !important;
}

/* Data decode text effect */
@keyframes dataIn {
    0% {
        opacity: 0;
        filter: blur(8px);
        transform: scale(0.95);
    }
    60% {
        opacity: 1;
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Card hover glow ring */
.card-tile::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(212,160,23,0.3), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.card-tile:hover::after {
    opacity: 1;
}

/* Pulse gold stat card */
.pulse-gold {
    animation: goldPulse 3s ease infinite;
}

/* ==================== UTILITY CLASSES ==================== */
.text-gold { color: var(--gold) !important; }
.text-gold-glow { color: var(--gold-light) !important; text-shadow: var(--gold-text-glow); }
.bg-dark-card { background: var(--bg-card) !important; }
.border-gold { border-color: var(--gold-border) !important; }
.glow-gold-soft { box-shadow: var(--shadow-gold) !important; }

/* ==================== PORTFOLIO OVERRIDES ==================== */
.auth-gate, .portfolio-dashboard {
    background: transparent !important;
}

.pf-auth-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-strong) !important;
    box-shadow: 0 0 30px rgba(212,160,23,0.06), var(--shadow-lg) !important;
}

.pf-auth-title {
    color: var(--text-primary) !important;
}

.pf-auth-desc {
    color: var(--text-muted) !important;
}

.pf-auth-form input[type="email"],
.pf-auth-form input[type="text"],
.pf-otp-input {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
}

.pf-auth-form input:focus,
.pf-otp-input:focus {
    border-color: var(--gold-border) !important;
    box-shadow: 0 0 0 3px rgba(212,160,23,0.1) !important;
}

.pf-stat-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    transition: all 0.25s ease !important;
}

.pf-stat-card:hover {
    border-color: var(--border-strong) !important;
    box-shadow: var(--shadow-gold) !important;
}

.pf-analytics-item {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border) !important;
}

/* Pro banner */
.pro-banner, .upgrade-banner, .pf-pro-banner {
    background: linear-gradient(135deg, rgba(212,160,23,0.1), rgba(212,160,23,0.02)) !important;
    border: 1px solid var(--gold-border) !important;
    box-shadow: 0 0 20px rgba(212,160,23,0.08) !important;
}

/* Portfolio card items */
.pf-card-item {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    transition: all 0.25s ease !important;
}

.pf-card-item:hover {
    border-color: var(--border-strong) !important;
    box-shadow: var(--shadow-md) !important;
}

/* Portfolio action buttons */
.pf-action-btn {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-secondary) !important;
    transition: all 0.2s ease !important;
}

.pf-action-btn:hover {
    border-color: var(--gold-border) !important;
    color: var(--gold-light) !important;
    background: var(--gold-bg) !important;
}

.pf-action-btn.primary {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
    color: #000 !important;
}

/* Portfolio sort buttons */
.pf-sort-btn {
    color: var(--text-muted) !important;
}

.pf-sort-btn.active {
    color: var(--gold) !important;
}

/* Affiliate disclosure */
.pf-affiliate-disclosure {
    color: var(--text-muted) !important;
}

/* ==================== CARDS EXPLORER SPECIFIC ==================== */
/* Card tile hover glow for explorer */
.card-tile {
    position: relative;
}

.card-tile .card-info {
    background: var(--bg-card) !important;
}

.card-tile .trend-bar {
    background: var(--bg-secondary) !important;
}

/* Watchlist button */
.watchlist-toggle {
    color: var(--text-muted) !important;
}

.watchlist-toggle.active {
    color: var(--gold) !important;
}

/* Results meta */
.results-meta {
    color: var(--text-muted) !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    body::before {
        background-size: 40px 40px;
    }

    .stat-card:hover {
        transform: none;
    }

    .card-tile:hover {
        transform: none;
    }

    .hero-stats-col {
        grid-template-columns: 1fr 1fr !important;
        width: 280px !important;
        min-width: 280px !important;
        align-self: center !important;
    }

    .hero-glass-card {
        padding: 10px 12px !important;
    }

    .hero-glass-icon {
        font-size: 0.9rem !important;
        margin-bottom: 2px !important;
    }

    .hero-glass-value {
        font-size: 1rem !important;
    }

    .hero-glass-label {
        font-size: 0.58rem !important;
    }
}

/* ==================== ADBLOCK-SAFE AD SLOTS ==================== */
ins.adsbygoogle {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
}

/* ==================== CHART STYLES ==================== */
.tv-lightweight-charts {
    border-radius: var(--radius-lg) !important;
}

/* ==================== SECTION HEADERS ==================== */
.section-eyebrow {
    color: var(--gold-dim) !important;
    letter-spacing: 0.12em !important;
}

.section-title {
    color: var(--text-primary) !important;
}

.section-subtitle {
    color: var(--text-muted) !important;
}

.section-icon.icon-gold {
    background: rgba(212,160,23,0.15) !important;
    box-shadow: 0 0 10px rgba(212,160,23,0.1);
}

.section-icon.icon-green {
    background: rgba(0,227,150,0.12) !important;
}

.section-icon.icon-red {
    background: rgba(255,69,96,0.12) !important;
}

/* ==================== TRENDING CARDS ==================== */
.trending-section {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    padding: 28px !important;
}

.trending-era-header {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
}

.trending-era-title {
    color: var(--gold-light) !important;
}

.trending-era-subtitle {
    color: var(--text-muted) !important;
}

.trending-grid {
    gap: 12px !important;
}

.trending-card {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    transition: all 0.3s ease !important;
    overflow: hidden;
    position: relative;
}

.trending-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-dim), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.trending-card:hover {
    border-color: var(--border-strong) !important;
    box-shadow: var(--shadow-card-hover) !important;
    transform: translateY(-3px);
}

.trending-card:hover::before {
    opacity: 1;
}

.trending-card-name {
    color: var(--text-primary) !important;
}

.trending-card-set {
    color: var(--text-muted) !important;
}

.trending-card-price {
    color: var(--gold) !important;
    font-weight: 700 !important;
}

/* ==================== CARD MOVERS ==================== */
.card-movers-section {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    padding: 28px !important;
}

.card-movers-column {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
}

.card-movers-column-header {
    border-bottom: 1px solid var(--border) !important;
}

.card-movers-column-title {
    color: var(--text-primary) !important;
}

.card-mover-item {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    transition: all 0.25s ease !important;
}

.card-mover-item:hover {
    background: var(--bg-card-hover) !important;
    border-color: var(--border-strong) !important;
    box-shadow: var(--shadow-md) !important;
}

.card-mover-name {
    color: var(--text-primary) !important;
}

.card-mover-set {
    color: var(--text-muted) !important;
}

.card-mover-price {
    color: var(--text-primary) !important;
}

.card-mover-rank.top3 {
    color: var(--gold) !important;
    text-shadow: var(--gold-text-glow);
}

.card-mover-thumb {
    border: 1px solid var(--border-strong) !important;
    transition: all 0.3s ease !important;
}

.card-mover-thumb:hover {
    box-shadow: 0 0 15px rgba(212,160,23,0.2) !important;
    border-color: var(--gold-border) !important;
}

/* Era Tabs */
.era-tab-btn {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-muted) !important;
    transition: all 0.2s ease !important;
}

.era-tab-btn:hover {
    background: var(--bg-card-hover) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-strong) !important;
}

.era-tab-btn.active {
    background: var(--gold) !important;
    color: #000 !important;
    border-color: var(--gold) !important;
    box-shadow: 0 0 12px rgba(212,160,23,0.25);
}

/* ==================== SEALED PRODUCTS ==================== */
.sealed-section {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    padding: 28px !important;
}

.sealed-column {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border) !important;
}

.sealed-column-header {
    border-bottom: 1px solid var(--border) !important;
}

.sealed-column-title {
    color: var(--text-primary) !important;
}

.sealed-item {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    transition: all 0.25s ease !important;
}

.sealed-item:hover {
    background: var(--bg-card-hover) !important;
    border-color: var(--border-strong) !important;
    box-shadow: var(--shadow-md) !important;
}

.sealed-name {
    color: var(--text-primary) !important;
}

.sealed-set {
    color: var(--text-muted) !important;
}

.sealed-rank.top3 {
    color: var(--gold) !important;
    text-shadow: var(--gold-text-glow);
}

.sealed-thumb {
    border: 1px solid var(--border-strong) !important;
    background: var(--bg-secondary) !important;
}

.sealed-filter-btn {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-muted) !important;
}

.sealed-filter-btn:hover {
    color: var(--text-secondary) !important;
    background: var(--bg-card-hover) !important;
}

.sealed-filter-btn.active {
    background: var(--gold-bg) !important;
    color: var(--gold) !important;
    border-color: var(--gold-border) !important;
}

/* ==================== BREAKOUT RADAR ==================== */
.breakout-radar-grid {
    gap: 12px !important;
}

/* ==================== TABLE OVERRIDES ==================== */
.table-wrapper {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border) !important;
}

.product-table thead th {
    background: var(--bg-elevated) !important;
    color: var(--text-muted) !important;
    border-bottom: 1px solid var(--border) !important;
}

.product-table thead th:hover {
    color: var(--gold-light) !important;
}

.product-table thead th.sorted {
    color: var(--gold) !important;
}

.product-table tbody tr {
    border-bottom: 1px solid var(--border) !important;
}

.product-table tbody tr:hover {
    background: rgba(212,160,23,0.04) !important;
}

.product-name {
    color: var(--text-primary) !important;
}

.product-set {
    color: var(--text-muted) !important;
}

.price-cell {
    color: var(--text-primary) !important;
}

.rank-num.top3 {
    color: var(--gold) !important;
    text-shadow: var(--gold-text-glow);
}

.product-thumb {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border) !important;
}

/* Badge overrides for dark mode */
.badge-booster-box { background: rgba(124,58,237,0.15) !important; }
.badge-etb { background: rgba(59,130,246,0.15) !important; }
.badge-collection { background: rgba(212,160,23,0.15) !important; color: var(--gold-light) !important; }
.badge-booster-bundle { background: rgba(0,227,150,0.15) !important; }

/* Affiliate buttons dark mode */
.aff-tcg {
    background: rgba(59,130,246,0.1) !important;
    border-color: rgba(59,130,246,0.3) !important;
    color: #60a5fa !important;
}

.aff-ebay {
    background: rgba(212,160,23,0.1) !important;
    border-color: rgba(212,160,23,0.3) !important;
    color: var(--gold-light) !important;
}

.aff-buy {
    background: rgba(0,227,150,0.12) !important;
    border-color: rgba(0,227,150,0.3) !important;
    color: var(--green) !important;
}

.aff-buy:hover {
    background: var(--green) !important;
    color: #000 !important;
}

/* ==================== ROI CALCULATOR ==================== */
.roi-section, .roi-calculator {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
}

/* ==================== SET HEATMAP ==================== */
.heatmap-section {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
}

.heatmap-grid {
    gap: 8px !important;
}

.heatmap-cell {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border) !important;
    transition: all 0.25s ease !important;
}

.heatmap-cell:hover {
    border-color: var(--border-strong) !important;
    box-shadow: var(--shadow-md) !important;
}

.heatmap-set-name {
    color: var(--text-primary) !important;
}

/* ==================== LOADING STATES ==================== */
.loading-row {
    color: var(--text-muted) !important;
}

.spinner {
    border-color: var(--border) !important;
    border-top-color: var(--gold) !important;
}

/* ==================== TREND SCORE BADGES ==================== */
.trend-badge, .ts-badge {
    font-weight: 700 !important;
}

.grade-badge {
    font-weight: 800 !important;
}

/* ==================== MISC ==================== */
.nav-divider, .nav-divider-v {
    background: var(--border) !important;
}

/* Links inside cards */
.card-mover-links a {
    transition: all 0.2s ease !important;
}

/* Ad slots blend */
.ad-slot {
    opacity: 0.9;
}

/* ==================== MONOSPACE FONT ADDITIONS ==================== */
/* Add JetBrains Mono for data values */
.stat-value,
.price-cell,
.change-cell,
.card-mover-price,
.sealed-price,
.hero-glass-value {
    font-family: 'JetBrains Mono', 'SF Mono', monospace !important;
}

/* ==================== PARTICLE / GRID HERO EFFECT ==================== */
#hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

#hero-particles canvas {
    width: 100%;
    height: 100%;
}

/* ==================== TOOL CARDS (Platform Features) ==================== */
.tool-card {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.tool-card:hover {
    border-color: var(--border-strong) !important;
    box-shadow: var(--shadow-gold) !important;
    transform: translateY(-4px) !important;
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card-icon {
    background: rgba(212,160,23,0.1) !important;
}

.tool-card-title {
    color: var(--text-primary) !important;
}

.tool-card-desc {
    color: var(--text-secondary) !important;
}

.tool-card-btn {
    background: rgba(212,160,23,0.1) !important;
    color: var(--gold-light) !important;
    border: 1px solid var(--gold-border) !important;
}

.tool-card-btn:hover {
    background: var(--gold) !important;
    color: #000 !important;
    box-shadow: 0 0 20px rgba(212,160,23,0.3) !important;
}

/* ==================== FOOTER DEEP OVERRIDES ==================== */
footer {
    background: var(--bg-secondary) !important;
    border-top: 1px solid var(--border) !important;
}

.footer-tagline {
    color: var(--text-muted) !important;
}

.footer-disclaimer {
    color: var(--text-placeholder) !important;
}

.footer-links a {
    color: var(--text-secondary) !important;
}

.footer-links a:hover {
    color: var(--gold) !important;
}

.footer-bottom {
    border-top: 1px solid var(--border) !important;
}

.footer-bottom p {
    color: var(--text-placeholder) !important;
}

.footer-col-title {
    color: var(--text-muted) !important;
}

.footer-links-grid a {
    color: var(--text-secondary) !important;
}

.footer-links-grid a:hover {
    color: var(--gold) !important;
}

/* ==================== ROI CALCULATOR DEEP OVERRIDES ==================== */
.roi-result {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border) !important;
}

.roi-bar-segment {
    border-radius: 4px;
}

.roi-disclaimer {
    color: var(--text-muted) !important;
}

/* ==================== SEO / FAQ SECTION ==================== */
.seo-section, .faq-section {
    color: var(--text-secondary) !important;
}

.seo-section h2, .faq-section h2 {
    color: var(--text-primary) !important;
}

/* ==================== SCROLL REVEAL TRANSITIONS ==================== */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.section.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Fallback: if JS hasn't loaded, still show sections after 1s */
@media (prefers-reduced-motion: reduce) {
    .section {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Staggered children */
.section.revealed .stat-card,
.section.revealed .trending-card,
.section.revealed .card-mover-item,
.section.revealed .sealed-item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.section.revealed .stat-card:nth-child(1) { animation-delay: 0.05s; }
.section.revealed .stat-card:nth-child(2) { animation-delay: 0.1s; }
.section.revealed .stat-card:nth-child(3) { animation-delay: 0.15s; }
.section.revealed .stat-card:nth-child(4) { animation-delay: 0.2s; }
.section.revealed .stat-card:nth-child(5) { animation-delay: 0.25s; }
.section.revealed .stat-card:nth-child(6) { animation-delay: 0.3s; }

/* ==================== CURSOR GLOW EFFECT ==================== */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,160,23,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

/* Sealed explorer uses :root CSS variables directly — no .dark-theme overrides needed */
