/* ============================================
   InformationX.ai - Clean Light Design
   ============================================ */

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-body: #dfe1ea;
    --bg-card: #ffffff;
    --bg-surface: #eef0f6;
    --accent: #0055dd;
    --accent-hover: #0044bb;
    --bearish: #e5243b;
    --purple: #6d28d9;
    --purple-dim: rgba(109, 40, 217, 0.10);
    --text-primary: #0a0f1e;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border: rgba(15, 23, 42, 0.15);
    --success: #047857;
    --warning: #b45309;
    --danger: #b91c1c;
    --header-height: 64px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --transition-premium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --holographic: linear-gradient(135deg, #6d28d9, #0055dd, #8b5cf6);
    --glow-cyan: 0 4px 20px rgba(0, 85, 221, 0.10);
    --border-hover: rgba(0, 85, 221, 0.4);
    --pink: #c026d3;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.10), 0 8px 24px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.10);
}

/* ===== DARK THEME ===== */
[data-theme="dark"] {
    --bg-body: #0d1117;
    --bg-card: #161b22;
    --bg-surface: #1c2128;
    --accent: #58a6ff;
    --accent-hover: #79b8ff;
    --bearish: #f85149;
    --purple: #a371f7;
    --purple-dim: rgba(163, 113, 247, 0.12);
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --border: rgba(240, 246, 252, 0.1);
    --success: #3fb950;
    --warning: #d29922;
    --danger: #f85149;
    --holographic: linear-gradient(135deg, #a371f7, #58a6ff, #bc8cff);
    --glow-cyan: 0 4px 20px rgba(88, 166, 255, 0.15);
    --border-hover: rgba(88, 166, 255, 0.4);
    --pink: #f778ba;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --card-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] body::before {
    opacity: 0.03;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #1c2128;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(88, 166, 255, 0.3);
}
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(88, 166, 255, 0.5);
}

[data-theme="dark"] .site-header {
    background: rgba(13, 17, 23, 0.92);
    border-bottom-color: rgba(240, 246, 252, 0.08);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .site-header::after {
    background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.2), rgba(163, 113, 247, 0.15), transparent);
}

[data-theme="dark"] .btn-secondary {
    background: #1c2128;
    color: var(--accent);
    border-color: var(--accent);
}

[data-theme="dark"] .btn-secondary:hover {
    background: var(--accent);
    color: #0d1117;
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(180deg, #0d1117 0%, #161b22 100%);
}

[data-theme="dark"] .hero-bg-grid {
    opacity: 0.04;
}

[data-theme="dark"] .market-card {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .market-card:hover {
    border-color: var(--border-hover);
}

[data-theme="dark"] .category-tab {
    background: var(--bg-surface);
    color: var(--text-secondary);
}

[data-theme="dark"] .category-tab.active,
[data-theme="dark"] .category-tab:hover {
    background: var(--accent);
    color: #0d1117;
}

[data-theme="dark"] .search-input {
    background: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--border);
}

[data-theme="dark"] .jurisdiction-dropdown {
    background: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--border);
}

[data-theme="dark"] .modal-overlay {
    background: rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .modal-content {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .wm-panel {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .dp-card {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .pl-card {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .stat-card {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .footer {
    background: #010409;
    border-top-color: rgba(240, 246, 252, 0.06);
}

[data-theme="dark"] .ew-item {
    background: var(--bg-surface);
}

[data-theme="dark"] .consensus-visual,
[data-theme="dark"] .consensus-meter {
    background: var(--bg-surface);
}

[data-theme="dark"] .hero-badge {
    background: rgba(88, 166, 255, 0.08);
    border-color: rgba(88, 166, 255, 0.2);
}

[data-theme="dark"] .jurisdiction-badge {
    background: var(--bg-surface);
    border-color: var(--border);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    color: var(--accent);
}

[data-theme="dark"] .hamburger-line {
    background: var(--text-primary);
}

/* Theme toggle button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition-premium);
    color: var(--text-secondary);
    font-size: 1rem;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
}

[data-theme="dark"] .theme-toggle:hover {
    color: #0d1117;
}

.theme-toggle .fa-moon { display: inline-block; }
.theme-toggle .fa-sun { display: none; }
[data-theme="dark"] .theme-toggle .fa-moon { display: none; }
[data-theme="dark"] .theme-toggle .fa-sun { display: inline-block; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Subtle noise/grain overlay — disabled for light theme */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    background-image:
        repeating-radial-gradient(circle at 17% 32%, rgba(0,0,0,0.02) 0px, transparent 1px),
        repeating-radial-gradient(circle at 83% 67%, rgba(0,0,0,0.015) 0px, transparent 1px),
        repeating-radial-gradient(circle at 50% 50%, rgba(0,0,0,0.01) 0px, transparent 2px);
    background-size: 3px 3px, 5px 5px, 7px 7px;
}

/* Light scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #eaecf3;
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 102, 255, 0.25);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 102, 255, 0.4);
}

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

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== GLOBAL UTILITY CLASSES ===== */
.glow-text {
    text-shadow: none;
}

.holographic {
    background: linear-gradient(135deg, #7c3aed, #0066ff, #a855f7, #d946ef, #7c3aed);
    background-size: 300% 300%;
    animation: shimmer 6s ease-in-out infinite;
}

/* ===== TYPOGRAPHY UTILITY ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--accent), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== SECTION UTILITIES ===== */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--accent);
    font-size: 1.25rem;
    text-shadow: none;
}

.section-description {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 680px;
    line-height: 1.7;
}

.section-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-premium);
    white-space: nowrap;
    position: relative;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 102, 255, 0.15);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.25), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-secondary {
    background: #ffffff;
    color: var(--accent);
    border: 2px solid var(--accent);
    font-weight: 700;
}

.btn-secondary:hover {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: background var(--transition-premium);
}

/* Subtle header border accent */
.site-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.15), rgba(124, 58, 237, 0.1), transparent);
    background-size: 200% 100%;
    animation: aurora-border 8s linear infinite;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header-left {
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--holographic);
    border-radius: var(--radius-xs);
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.logo-dot {
    color: var(--accent);
    text-shadow: none;
}

.logo-tagline {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

/* Header Nav */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-xs);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-premium);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(0, 102, 255, 0.04);
}

.nav-link.active {
    color: var(--accent);
    background: rgba(0, 102, 255, 0.06);
    text-shadow: none;
}

.nav-link i {
    font-size: 0.8rem;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Jurisdiction Selector */
.jurisdiction-selector {
    position: relative;
}

.jurisdiction-dropdown {
    appearance: none;
    -webkit-appearance: none;
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 6px 28px 6px 10px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-premium);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='%23475569'%3E%3Cpath d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    backdrop-filter: blur(10px);
}

.jurisdiction-dropdown:hover,
.jurisdiction-dropdown:focus {
    border-color: var(--border-hover);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Search */
.search-container {
    position: relative;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

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

.search-input {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 7px 40px 7px 30px;
    font-size: 0.8rem;
    color: var(--text-primary);
    width: 220px;
    transition: all var(--transition-premium);
    backdrop-filter: blur(10px);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    border-color: var(--accent);
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 102, 255, 0.15);
    animation: focus-pulse 0.6s ease;
}

.search-shortcut {
    position: absolute;
    right: 8px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-muted);
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    pointer-events: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-xs);
    transition: background var(--transition-premium);
}

.mobile-menu-toggle:hover {
    background: rgba(0, 102, 255, 0.04);
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    padding: 140px 24px 80px;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Light background gradient with visible color splashes */
.hero-section::before {
    content: '';
    position: absolute;
    inset: -50%;
    background:
        radial-gradient(ellipse 600px 400px at 20% 50%, rgba(0, 85, 221, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 500px 350px at 80% 30%, rgba(109, 40, 217, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 450px 300px at 50% 80%, rgba(192, 38, 211, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 550px 380px at 70% 60%, rgba(4, 120, 87, 0.04) 0%, transparent 70%);
    animation: aurora 20s ease-in-out infinite;
    z-index: 0;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 85, 221, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 85, 221, 0.07) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* Subtle floating grid dots */
.hero-bg-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle 1.5px at center, rgba(0, 102, 255, 0.08) 0%, transparent 100%);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 60%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 60%);
    animation: float 6s ease-in-out infinite;
}

.hero-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    margin-bottom: 48px;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 102, 255, 0.06);
    border: 1px solid rgba(0, 102, 255, 0.12);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-neon 2s ease-in-out infinite;
    box-shadow: 0 0 4px rgba(5, 150, 105, 0.3);
}

.badge-text {
    letter-spacing: 0.02em;
}

.hero-headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #0a0f1e 0%, #0055dd 35%, #6d28d9 65%, #0a0f1e 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 8s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-primary);
    max-width: 680px;
    margin: 0 auto 32px;
    opacity: 0.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Stats Bar */
.hero-stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: var(--radius);
    padding: 24px 32px;
    backdrop-filter: blur(20px);
    box-shadow: var(--card-shadow);
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 0 24px;
}

.stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
    text-shadow: none;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.1), transparent);
    flex-shrink: 0;
}

/* ===== MARKETS SECTION ===== */
.markets-section {
    padding: 80px 0;
}

/* Live Indicator */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--success);
    text-shadow: none;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-neon 2s ease-in-out infinite;
    box-shadow: 0 0 4px rgba(5, 150, 105, 0.3);
}

.update-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Category Filter Tabs */
.category-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    overflow-x: auto;
    padding-bottom: 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-filters::-webkit-scrollbar {
    display: none;
}

.category-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border);
    white-space: nowrap;
    transition: all var(--transition-premium);
    cursor: pointer;
}

.category-tab:hover {
    color: var(--text-primary);
    border-color: rgba(0, 102, 255, 0.2);
}

.category-tab.active {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.2);
}

.category-tab i {
    font-size: 0.75rem;
}

/* Markets Grid */
.markets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

/* Market Card */
.market-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: var(--radius);
    padding: 20px;
    transition: all var(--transition-premium);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    cursor: pointer;
}

/* Faint gradient overlay on cards */
.market-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.015) 0%, transparent 50%, rgba(124, 58, 237, 0.015) 100%);
    pointer-events: none;
    border-radius: var(--radius);
}

.market-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(0, 85, 221, 0.35);
    box-shadow: var(--card-shadow-hover);
}

.market-card::after {
    content: 'Click for details \2192';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 0;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    background: linear-gradient(to top, rgba(255,255,255,0.95) 60%, transparent);
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.25s ease;
    pointer-events: none;
    z-index: 2;
}

.market-card:hover::after {
    opacity: 1;
    transform: translateY(0);
}

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

.card-tags {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tag-category {
    background: rgba(0, 102, 255, 0.08);
    color: var(--accent);
}

.tag-jurisdiction {
    background: rgba(168, 85, 247, 0.1);
    color: var(--purple);
}

.card-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 16px;
}

/* Consensus Display (within card) */
.consensus-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 12px;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.consensus-prob {
    display: flex;
    flex-direction: column;
}

.prob-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
    text-shadow: none;
}

.prob-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Divergence Indicator */
.divergence-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 100px;
}

.divergence-indicator.low {
    color: var(--success);
    background: rgba(5, 150, 105, 0.08);
}

.divergence-indicator.medium {
    color: var(--warning);
    background: rgba(217, 119, 6, 0.08);
}

.divergence-indicator.high {
    color: var(--danger);
    background: rgba(220, 38, 38, 0.08);
    animation: pulse-neon-pink 2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(220, 38, 38, 0.1);
}

/* Venue Comparison Bars */
.venue-comparison {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.venue-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.venue-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
    min-width: 80px;
    flex-shrink: 0;
}

.venue-bar-track {
    flex: 1;
    height: 6px;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.venue-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent), rgba(0, 102, 255, 0.7));
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
}

/* Platform-specific bar colors */
.venue-bar:nth-child(1) .venue-bar-fill {
    background: linear-gradient(90deg, #3b82f6, var(--accent));
    box-shadow: none;
}

.venue-bar:nth-child(2) .venue-bar-fill {
    background: linear-gradient(90deg, #8b5cf6, var(--purple));
    box-shadow: none;
}

.venue-bar:nth-child(3) .venue-bar-fill {
    background: linear-gradient(90deg, #e879f9, var(--pink));
    box-shadow: none;
}

.venue-bar:nth-child(4) .venue-bar-fill {
    background: linear-gradient(90deg, #10b981, var(--success));
    box-shadow: none;
}

.venue-prob {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 32px;
    text-align: right;
}

/* Card Footer */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.volume,
.platforms-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== MARKET CARD INTERNALS (JS-rendered) ===== */

.market-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.market-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(0, 102, 255, 0.08);
    color: var(--accent);
    white-space: nowrap;
}

.cat-politics { background: rgba(124, 58, 237, 0.08); color: var(--purple); }
.cat-crypto { background: rgba(0, 102, 255, 0.08); color: var(--accent); }
.cat-sports { background: rgba(5, 150, 105, 0.08); color: var(--success); }
.cat-finance { background: rgba(217, 119, 6, 0.08); color: var(--warning); }
.cat-culture { background: rgba(217, 70, 239, 0.08); color: var(--pink); }
.cat-ai-tech { background: rgba(0, 102, 255, 0.08); color: var(--accent); }

.market-card-badges {
    display: flex;
    gap: 6px;
    flex: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-trending {
    background: rgba(5, 150, 105, 0.08);
    color: var(--success);
    border: 1px solid rgba(5, 150, 105, 0.15);
}

.badge-divergence {
    background: rgba(220, 38, 38, 0.08);
    color: var(--danger);
    border: 1px solid rgba(220, 38, 38, 0.15);
    animation: pulse-neon-pink 2s ease-in-out infinite;
}

.pulse-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse-neon 1.5s ease-in-out infinite;
}

.market-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 12px;
}

/* Card consensus display */
.market-consensus {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding: 10px 14px;
    background: rgba(241, 243, 249, 0.8);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.consensus-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    text-shadow: none;
    flex-shrink: 0;
}

.consensus-pct {
    font-size: 0.9rem;
    opacity: 0.7;
}

.consensus-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.consensus-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.confidence-bar {
    width: 100%;
    height: 4px;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 2px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    transition: width 0.6s ease;
    box-shadow: none;
}

.confidence-text {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* Platform comparison bars */
.platform-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.platform-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.platform-bar-row.unavailable {
    opacity: 0.35;
}

.platform-name {
    font-size: 0.7rem;
    color: var(--text-secondary);
    min-width: 76px;
    flex-shrink: 0;
}

.platform-bar-track {
    flex: 1;
    height: 5px;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.platform-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.platform-bar-fill.polymarket {
    background: linear-gradient(90deg, #3b82f6, var(--accent));
    box-shadow: none;
}

.platform-bar-fill.kalshi {
    background: linear-gradient(90deg, #8b5cf6, var(--purple));
    box-shadow: none;
}

.platform-bar-fill.opinionLabs {
    background: linear-gradient(90deg, #e879f9, var(--pink));
    box-shadow: none;
}

.platform-bar-fill.metaculus {
    background: linear-gradient(90deg, #10b981, var(--success));
    box-shadow: none;
}

.platform-prob {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 36px;
    text-align: right;
}

/* Card footer */
.market-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.market-meta {
    display: flex;
    gap: 12px;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.meta-volume { color: var(--accent); }

/* Jurisdiction micro-tags */
.market-jurisdictions {
    display: flex;
    gap: 3px;
}

.j-tag {
    display: inline-block;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-family: 'JetBrains Mono', monospace;
}

.jurisdiction-available {
    background: rgba(5, 150, 105, 0.08);
    color: var(--success);
    border: 1px solid rgba(5, 150, 105, 0.12);
}

.jurisdiction-restricted {
    background: rgba(217, 119, 6, 0.08);
    color: var(--warning);
    border: 1px solid rgba(217, 119, 6, 0.12);
}

.jurisdiction-blocked {
    background: rgba(220, 38, 38, 0.06);
    color: var(--danger);
    border: 1px solid rgba(220, 38, 38, 0.10);
}

/* Flash animation for live updates */
.flash-green { animation: flash-g 0.6s ease; }
.flash-red { animation: flash-r 0.6s ease; }

@keyframes flash-g {
    0%, 100% { background: inherit; }
    50% { background: rgba(5, 150, 105, 0.1); }
}

@keyframes flash-r {
    0%, 100% { background: inherit; }
    50% { background: rgba(220, 38, 38, 0.1); }
}

/* Markets Footer */
.markets-footer {
    text-align: center;
}

.btn-load-more {
    margin: 24px auto 0;
    display: block;
    font-size: 0.95rem;
    padding: 14px 32px;
}

/* ===== AI CONSENSUS SECTION ===== */
.consensus-section {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.02), transparent);
}

.consensus-feature {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: var(--radius);
    padding: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

/* Animated holographic gradient border for AI Consensus */
.consensus-feature::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(135deg, #7c3aed, #0066ff, #a855f7, #d946ef, #7c3aed);
    background-size: 300% 300%;
    animation: glow-border 6s ease-in-out infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.consensus-feature-header {
    margin-bottom: 28px;
}

.consensus-event-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.consensus-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.consensus-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Consensus Breakdown Layout */
.consensus-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.breakdown-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

/* Platform Probabilities */
.platform-prob-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.platform-prob-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.platform-prob-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.platform-prob-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.platform-prob-name i {
    font-size: 0.5rem;
}

.platform-prob-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.platform-prob-bar {
    height: 6px;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.platform-prob-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Platform-specific prob bar colors */
.platform-prob-item:nth-child(1) .platform-prob-fill {
    background: linear-gradient(90deg, #3b82f6, var(--accent));
    box-shadow: none;
}

.platform-prob-item:nth-child(2) .platform-prob-fill {
    background: linear-gradient(90deg, #8b5cf6, var(--purple));
    box-shadow: none;
}

.platform-prob-item:nth-child(3) .platform-prob-fill {
    background: linear-gradient(90deg, #e879f9, var(--pink));
    box-shadow: none;
}

.platform-prob-item:nth-child(4) .platform-prob-fill {
    background: linear-gradient(90deg, #10b981, var(--success));
    box-shadow: none;
}

.platform-prob-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* AI Consensus Result Card */
.consensus-result-card {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.04), rgba(0, 102, 255, 0.03), rgba(168, 85, 247, 0.02));
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

/* Subtle overlay */
.consensus-result-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.02), transparent 30%, transparent 70%, rgba(0, 102, 255, 0.01));
    pointer-events: none;
}

.consensus-big-prob {
    text-align: center;
}

.big-prob-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem;
    font-weight: 800;
    color: var(--purple);
    line-height: 1;
    display: block;
    text-shadow: none;
}

.big-prob-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
    display: block;
}

/* Confidence Bar */
.confidence-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.confidence-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.confidence-track {
    flex: 1;
    height: 6px;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple), var(--accent));
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
}

.confidence-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--purple);
    flex-shrink: 0;
    text-shadow: none;
}

/* Divergence Alert */
.divergence-alert {
    display: none;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: rgba(217, 119, 6, 0.06);
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--warning);
}

.divergence-alert.active {
    display: flex;
}

.divergence-alert i {
    margin-top: 2px;
    flex-shrink: 0;
    text-shadow: none;
}

.divergence-alert-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.divergence-alert-content strong {
    font-size: 0.8rem;
}

.divergence-alert-content span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Consensus Factors */
.consensus-factors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.factor {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 4px 10px;
    background: var(--bg-surface);
    border-radius: 100px;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.factor i {
    font-size: 0.65rem;
    color: var(--accent);
    text-shadow: none;
}

/* ===== PLATFORMS SECTION ===== */
.platforms-section {
    padding: 80px 0;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.platform-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition-premium);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.platform-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 102, 255, 0.01), transparent);
    pointer-events: none;
    border-radius: var(--radius);
}

.platform-card:hover {
    border-color: rgba(0, 102, 255, 0.15);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.platform-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.platform-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.platform-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.platform-status.live {
    color: var(--success);
    text-shadow: none;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse-neon 2s ease-in-out infinite;
    box-shadow: 0 0 3px currentColor;
}

.platform-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.platform-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.platform-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.platform-detail i {
    font-size: 0.75rem;
    color: var(--text-muted);
    width: 16px;
    text-align: center;
}

/* ===== PLATFORM STAT CARDS (JS-rendered) ===== */

.platform-stat-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: var(--radius);
    padding: 20px;
    transition: all var(--transition-premium);
    box-shadow: var(--card-shadow);
}

.platform-stat-card:hover {
    border-color: rgba(0, 102, 255, 0.15);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.ps-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ps-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: capitalize;
}

.ps-badge {
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    background: rgba(0, 102, 255, 0.06);
    padding: 2px 8px;
    border-radius: 100px;
}

.ps-bar-track {
    width: 100%;
    height: 6px;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.ps-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.ps-bar-fill.polymarket { background: linear-gradient(90deg, #3b82f6, var(--accent)); box-shadow: none; }
.ps-bar-fill.kalshi { background: linear-gradient(90deg, #8b5cf6, var(--purple)); box-shadow: none; }
.ps-bar-fill.opinionLabs { background: linear-gradient(90deg, #e879f9, var(--pink)); box-shadow: none; }
.ps-bar-fill.metaculus { background: linear-gradient(90deg, #10b981, var(--success)); box-shadow: none; }

.ps-volume {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* ===== COMPLIANCE SECTION ===== */
.compliance-section {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent, rgba(0, 102, 255, 0.01), transparent);
}

.compliance-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Compliance Table (JS-rendered) */
.compliance-table {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.ct-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(0, 102, 255, 0.03);
    border-bottom: 1px solid var(--border);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.ct-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 8px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
    align-items: center;
    transition: background 0.2s;
}

.ct-row:last-child { border-bottom: none; }
.ct-row:hover { background: rgba(0, 102, 255, 0.02); }

.ct-jurisdiction {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.ct-jurisdiction strong {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    margin-right: 6px;
}

.ct-available {
    color: var(--success);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 0.85rem;
}

.ct-restricted {
    color: var(--warning);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 0.85rem;
}

.ct-blocked {
    color: var(--danger);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 0.85rem;
}

.ct-rate {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.ct-rate-bar {
    flex: 1;
    height: 5px;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.ct-rate-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent), var(--success));
    box-shadow: none;
    transition: width 0.6s ease;
}

.jurisdiction-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition-premium);
    backdrop-filter: blur(20px);
    box-shadow: var(--card-shadow);
}

.jurisdiction-card:hover {
    border-color: rgba(0, 102, 255, 0.15);
    box-shadow: var(--card-shadow-hover);
}

.jurisdiction-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.jurisdiction-flag {
    font-size: 1.5rem;
    line-height: 1;
}

.jurisdiction-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.jurisdiction-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-surface);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.jurisdiction-platforms {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jurisdiction-platform {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.platform-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.access-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
}

.access-badge.available {
    color: var(--success);
    background: rgba(5, 150, 105, 0.06);
    border: 1px solid rgba(5, 150, 105, 0.12);
    box-shadow: none;
}

.access-badge.restricted {
    color: var(--warning);
    background: rgba(217, 119, 6, 0.06);
    border: 1px solid rgba(217, 119, 6, 0.12);
}

.access-badge.blocked {
    color: var(--danger);
    background: rgba(220, 38, 38, 0.06);
    border: 1px solid rgba(220, 38, 38, 0.10);
}

/* ===== API SECTION ===== */
.api-section {
    padding: 80px 0;
}

.api-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.api-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.api-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.api-feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 102, 255, 0.06);
    border: 1px solid rgba(0, 102, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-size: 0.9rem;
    flex-shrink: 0;
    text-shadow: none;
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feature-content strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.feature-content span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* API Demo / Code Block */
.api-code-block {
    background: #eaecf3;
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

/* Subtle gradient border on code block */
.api-code-block::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(124, 58, 237, 0.08), rgba(217, 70, 239, 0.06), rgba(0, 102, 255, 0.1));
    background-size: 300% 300%;
    animation: glow-border 8s ease-in-out infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(241, 243, 249, 0.8);
}

.code-tab {
    padding: 10px 18px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-premium);
}

.code-tab:hover {
    color: var(--text-secondary);
}

.code-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    text-shadow: none;
}

.code-content {
    padding: 20px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.code-comment {
    color: var(--text-muted);
}

.code-keyword {
    color: var(--accent);
    text-shadow: none;
}

.code-string {
    color: var(--success);
    text-shadow: none;
}

.code-key {
    color: var(--purple);
    text-shadow: none;
}

.code-number {
    color: var(--warning);
    text-shadow: none;
}

.api-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.site-footer {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(241, 243, 249, 0.95);
    padding: 60px 0 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo .logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--holographic);
    border-radius: var(--radius-xs);
    color: #fff;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.15);
}

.footer-logo .logo-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xs);
    background: var(--bg-surface);
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all var(--transition-premium);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.footer-social a:hover {
    color: var(--accent);
    background: rgba(0, 102, 255, 0.06);
    border-color: rgba(0, 102, 255, 0.15);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.footer-links-group {
    /* column */
}

.footer-heading {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all var(--transition-premium);
}

.footer-links a:hover {
    color: var(--accent);
    text-shadow: none;
}

/* Footer Bottom */
.footer-bottom {
    padding: 24px 0;
}

.footer-disclaimer {
    padding: 16px;
    background: rgba(220, 38, 38, 0.04);
    border: 1px solid rgba(220, 38, 38, 0.08);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.footer-disclaimer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-disclaimer i {
    color: var(--warning);
    margin-right: 4px;
    text-shadow: none;
}

.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

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

/* Aurora — slow color-shifting background for hero */
@keyframes aurora {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(5%, -3%) rotate(1deg) scale(1.05);
    }
    50% {
        transform: translate(-3%, 5%) rotate(-1deg) scale(0.98);
    }
    75% {
        transform: translate(-5%, -2%) rotate(0.5deg) scale(1.03);
    }
}

/* Shimmer — holographic text shimmer */
@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Pulse — for live indicators */
@keyframes pulse-neon {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 3px rgba(5, 150, 105, 0.3);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.85);
        box-shadow: 0 0 1px rgba(5, 150, 105, 0.15);
    }
}

/* Pulse for high divergence */
@keyframes pulse-neon-pink {
    0%, 100% {
        box-shadow: 0 0 4px rgba(220, 38, 38, 0.1);
    }
    50% {
        box-shadow: 0 0 8px rgba(220, 38, 38, 0.2);
    }
}

/* Glow border — for AI consensus card border */
@keyframes glow-border {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Float — subtle up/down float for decorative elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* Aurora border — for header shimmer */
@keyframes aurora-border {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

/* Focus pulse — for search input */
@keyframes focus-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.15);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
    }
    100% {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 102, 255, 0.15);
    }
}

/* Legacy pulse (kept for compatibility) */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Red glow for high divergence (kept for compatibility) */
@keyframes glow-red {
    0%, 100% {
        box-shadow: 0 0 2px rgba(220, 38, 38, 0.1);
    }
    50% {
        box-shadow: 0 0 6px rgba(220, 38, 38, 0.2);
    }
}

/* Shimmer / skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-surface) 25%, rgba(15, 23, 42, 0.06) 50%, var(--bg-surface) 75%);
    background-size: 200% 100%;
    animation: shimmer-skeleton 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer-skeleton {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===== COLOR-CODED PROBABILITIES ===== */
.prob-high {
    color: var(--success) !important;
    text-shadow: none;
}

.prob-mid {
    color: var(--warning) !important;
    text-shadow: none;
}

.prob-low {
    color: var(--danger) !important;
    text-shadow: none;
}

/* ===== RESPONSIVE - 1200px ===== */
@media (max-width: 1200px) {
    .api-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .consensus-breakdown {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* ===== RESPONSIVE - 768px ===== */
@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }

    /* Header mobile */
    .header-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border-bottom: 1px solid var(--border);
        padding: 16px 24px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .header-nav.active,
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links {
        flex-direction: column;
        gap: 4px;
    }

    .nav-link {
        padding: 12px 16px;
        width: 100%;
        border-radius: var(--radius-sm);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .search-container {
        display: none;
    }

    .jurisdiction-selector {
        display: none;
    }

    .logo-tagline {
        display: none;
    }

    /* Hero mobile */
    .hero-section {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .hero-headline {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-stats-bar {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .stat-divider {
        width: 100%;
        height: 1px;
    }

    .stat-item {
        padding: 0;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    /* Markets mobile */
    .markets-grid {
        grid-template-columns: 1fr;
    }

    /* Compliance mobile */
    .compliance-grid {
        grid-template-columns: 1fr;
    }

    /* Platforms mobile */
    .platforms-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* Sections */
    .section-container {
        padding: 0 16px;
    }

    .markets-section,
    .consensus-section,
    .platforms-section,
    .compliance-section,
    .api-section {
        padding: 60px 0;
    }

    .consensus-feature {
        padding: 20px;
    }
}

/* ===== RESPONSIVE - 480px ===== */
@media (max-width: 480px) {
    .hero-headline {
        font-size: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .category-tab {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .platforms-grid {
        grid-template-columns: 1fr;
    }

    .market-card {
        padding: 16px;
    }

    .prob-value {
        font-size: 1.25rem;
    }

    .big-prob-value {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .api-cta {
        flex-direction: column;
    }

    .api-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   NEW FEATURES — Sections 12-17
   ============================================ */

/* === SECTION 12: EVENT DETAIL MODAL === */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.modal-overlay.modal-visible {
    opacity: 1;
}

.modal-content {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
}

.modal-visible .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.modal-close:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.modal-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.modal-title {
    font-size: 1.4rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    padding-right: 2rem;
}

.modal-consensus-big {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-consensus-glow {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    padding: 1rem 2rem;
    border-radius: 16px;
    background: radial-gradient(ellipse at center, rgba(0, 102, 255, 0.06), transparent 70%);
    box-shadow: 0 2px 12px rgba(0, 102, 255, 0.08);
}

.modal-consensus-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.modal-consensus-pct {
    font-size: 1.5rem;
    color: var(--accent);
    opacity: 0.8;
}

.modal-consensus-label {
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-platform-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-platform-row {
    display: grid;
    grid-template-columns: 100px 1fr 60px 70px;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.modal-platform-row.unavailable {
    opacity: 0.4;
}

.modal-platform-name {
    color: var(--text-secondary);
    font-weight: 500;
}

.modal-platform-bar-track {
    height: 8px;
    background: var(--bg-surface);
    border-radius: 4px;
    overflow: hidden;
}

.modal-platform-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.modal-platform-bar-fill.polymarket { background: var(--accent); }
.modal-platform-bar-fill.kalshi { background: var(--purple); }
.modal-platform-bar-fill.opinionLabs { background: var(--warning); }
.modal-platform-bar-fill.metaculus { background: var(--bearish); }

.modal-platform-prob {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
}

.modal-platform-vol {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-align: right;
}

.modal-divergence {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-divergence.divergence-ok {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: var(--success);
}

.modal-divergence.divergence-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: var(--warning);
}

.divergence-icon {
    font-size: 1.1rem;
}

/* Modal mini chart */
.modal-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 120px;
    padding: 0.5rem 0;
}

.modal-chart-bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

.modal-chart-bar {
    width: 100%;
    background: linear-gradient(180deg, var(--accent), rgba(0, 102, 255, 0.3));
    border-radius: 4px 4px 0 0;
    position: relative;
    min-height: 10px;
    transition: height 0.5s ease;
}

.modal-chart-bar-label {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.modal-chart-day {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Modal jurisdictions */
.modal-jurisdictions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Modal actions */
.modal-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
}

.modal-watchlist-btn {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.modal-watchlist-btn:hover {
    border-color: var(--accent);
}

.modal-watchlist-btn.active {
    background: rgba(0, 102, 255, 0.06);
    border-color: var(--accent);
    color: var(--accent);
}

.modal-watchlist-btn .star-icon {
    font-size: 1.2rem;
}

/* === SECTION 13: WATCHLIST === */

.watchlist-star {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 2px 4px;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.watchlist-star:hover {
    color: var(--warning);
    transform: scale(1.2);
}

.watchlist-star.active {
    color: var(--warning);
}

/* === SECTION 14: ENHANCED SEARCH DROPDOWN === */

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 0 0 12px 12px;
    max-height: 360px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-dropdown-header {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.search-dropdown-empty {
    padding: 1rem;
    color: var(--text-muted);
    text-align: center;
    font-size: 0.85rem;
}

.search-result-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    transition: background 0.15s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-surface);
}

.search-result-title {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.search-result-consensus {
    color: var(--accent);
    font-weight: 600;
}

.search-result-platforms {
    color: var(--text-muted);
}

/* === SECTION 15: TOAST NOTIFICATIONS === */

.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 10000;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.5rem;
    pointer-events: none;
    max-width: 400px;
}

.toast {
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    backdrop-filter: blur(12px);
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.35s ease;
    border: 1px solid var(--border);
    line-height: 1.4;
}

.toast.toast-visible {
    transform: translateX(0);
    opacity: 1;
}

.toast.toast-exit {
    transform: translateX(120%);
    opacity: 0;
}

.toast-info {
    background: rgba(0, 102, 255, 0.08);
    border-color: rgba(0, 102, 255, 0.2);
}

.toast-success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.3);
}

.toast-warning {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
}

.toast-alert {
    background: rgba(236, 72, 153, 0.12);
    border-color: rgba(236, 72, 153, 0.3);
}

/* === SECTION 16: AI CONSENSUS EXPLAINER === */

.consensus-explainer {
    margin-top: 2.5rem;
    padding: 1.5rem;
    border-radius: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
}

.explainer-title {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    text-align: center;
}

.explainer-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.explainer-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--border);
    min-width: 120px;
    opacity: 0;
    animation: explainerFadeIn 0.5s ease forwards;
}

@keyframes explainerFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.explainer-step-num {
    font-size: 1.3rem;
}

.explainer-step-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.3;
}

.explainer-arrow {
    font-size: 1.2rem;
    color: var(--accent);
    opacity: 0;
    animation: explainerFadeIn 0.3s ease forwards;
}

.explainer-math {
    background: #ffffff;
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid var(--border);
}

.explainer-math-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.explainer-math-rows {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.explainer-math-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-primary);
    padding: 0.25rem 0;
}

.em-name {
    width: 100px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.em-prob {
    color: var(--accent);
    font-weight: 600;
    width: 50px;
    text-align: right;
}

.em-times {
    color: var(--text-muted);
}

.em-weight {
    color: var(--text-muted);
    width: 65px;
}

.em-equals {
    color: var(--text-muted);
}

.em-result {
    color: var(--text-primary);
    font-weight: 600;
    width: 55px;
    text-align: right;
}

.explainer-math-total {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: right;
}

.explainer-math-total strong {
    color: var(--accent);
    font-size: 1rem;
}

/* === SECTION 17: KEYBOARD SHORTCUT OVERLAY === */

.shortcut-overlay .shortcut-content {
    max-width: 440px;
}

.shortcut-content h2 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.shortcut-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.shortcut-item kbd {
    display: inline-block;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.2rem 0.55rem;
    font-size: 0.78rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: var(--text-primary);
    min-width: 28px;
    text-align: center;
}

/* === HIGHLIGHTED CARD === */

.market-card.highlighted {
    border-color: var(--accent);
    box-shadow: 0 2px 12px rgba(0, 102, 255, 0.1);
}

/* === RESPONSIVE ADJUSTMENTS FOR NEW FEATURES === */

@media (max-width: 640px) {
    .modal-content {
        padding: 1.25rem;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    .modal-consensus-value {
        font-size: 2.5rem;
    }

    .modal-platform-row {
        grid-template-columns: 80px 1fr 50px;
    }

    .modal-platform-vol {
        display: none;
    }

    .toast-container {
        right: 0.75rem;
        bottom: 0.75rem;
        left: 0.75rem;
        max-width: none;
    }

    .explainer-steps {
        flex-direction: column;
    }

    .explainer-arrow {
        transform: rotate(90deg);
    }

    .explainer-math-row {
        flex-wrap: wrap;
        font-size: 0.72rem;
    }
}

/* =============================================================================
   WORLD MONITOR — GLOBE, EARLY WARNINGS, NEWS, RISK
   ============================================================================= */

.world-monitor-section {
    padding: 2rem 0 0;
}

.wm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.wm-globe-col { min-width: 0; }
.wm-warnings-col { min-width: 0; }

.wm-panel {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.wm-panel-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wm-panel-title i {
    color: var(--accent);
    font-size: 1rem;
}

.wm-panel-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0 0 1rem;
    line-height: 1.4;
}

/* Globe */
#globe-container {
    width: 100%;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.globe-svg {
    width: 100%;
    height: auto;
    max-height: 480px;
}

.globe-pin {
    transition: transform 0.2s;
}

.globe-pin:hover {
    filter: brightness(1.15);
}

/* Early Warnings */
#early-warnings-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 480px;
    overflow-y: auto;
}

.ew-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card-bg, #fff);
    transition: box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
}

.ew-item:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent);
}

.ew-item.ew-critical {
    border-left: 3px solid #dc2626;
}

.ew-item.ew-warning {
    border-left: 3px solid #d97706;
}

.ew-item.ew-info {
    border-left: 3px solid var(--accent);
}

.ew-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.ew-content {
    flex: 1;
    min-width: 0;
}

.ew-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ew-message {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0.35rem;
}

.ew-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
}

.ew-type-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.6rem;
    letter-spacing: 0.04em;
    color: #fff;
}

.ew-type-badge.ew-critical { background: #dc2626; }
.ew-type-badge.ew-warning { background: #d97706; }
.ew-type-badge.ew-info { background: var(--accent); }

.ew-category {
    color: var(--text-muted);
    text-transform: capitalize;
}

.ew-spread {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent);
    flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
}

.ew-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Modal News Section */
.modal-news-section,
.modal-risk-section {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.modal-news-section h3,
.modal-risk-section h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
}

.modal-news-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mn-item {
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(0, 85, 221, 0.02);
    transition: background 0.15s;
}

.mn-item:hover {
    background: rgba(0, 85, 221, 0.05);
}

.mn-source {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.mn-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
}

.mn-link {
    color: var(--accent, #2563eb);
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
    display: inline;
}

.mn-link:hover {
    color: var(--accent-hover, #1d4ed8);
    text-decoration: underline;
}

.mn-link-icon {
    font-size: 0.6rem;
    margin-left: 4px;
    opacity: 0.5;
    vertical-align: middle;
}

.mn-link:hover .mn-link-icon {
    opacity: 1;
}

.mn-loading,
.mn-empty {
    text-align: center;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Modal Risk Section */
.modal-risk-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-risk-card {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card-bg, #fff);
}

.mrc-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.mrc-code {
    font-weight: 800;
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
}

.mrc-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.mrc-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 22px;
    border-radius: 6px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
}

.mrc-trend {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: capitalize;
    margin-bottom: 0.5rem;
}

.mrc-bars {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.mrc-bar-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.68rem;
}

.mrc-bar-label {
    width: 65px;
    color: var(--text-muted);
    text-transform: capitalize;
    flex-shrink: 0;
}

.mrc-bar-track {
    flex: 1;
    height: 6px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.mrc-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.mrc-bar-val {
    width: 24px;
    text-align: right;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
}

.mrc-alert {
    margin-top: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    background: rgba(217, 119, 6, 0.08);
    color: #92400e;
    font-size: 0.7rem;
    line-height: 1.35;
}

/* Responsive */
@media (max-width: 900px) {
    .wm-grid {
        grid-template-columns: 1fr;
    }

    #globe-container {
        min-height: 280px;
    }

    #early-warnings-list {
        max-height: 360px;
    }
}

@media (max-width: 640px) {
    .world-monitor-section {
        padding: 1rem 0 0;
    }

    .wm-panel {
        padding: 1rem;
        border-radius: 12px;
    }

    .ew-spread {
        font-size: 0.9rem;
    }

    .mrc-bar-label {
        width: 50px;
        font-size: 0.6rem;
    }
}

/* =============================================================================
   AI DAILY PICKS
   ============================================================================= */

.daily-picks-section {
    padding: 3rem 0;
}

.dp-refresh-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    background: rgba(0, 85, 221, 0.08);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
}

.daily-picks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.25rem;
}

.dp-card {
    display: flex;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card-bg, #fff);
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}

.dp-card:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.dp-rank {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
}

.dp-body {
    flex: 1;
    min-width: 0;
}

.dp-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.dp-cat {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.dp-cat svg {
    width: 12px;
    height: 12px;
}

.dp-country {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
    background: rgba(0, 85, 221, 0.04);
}

.dp-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 0.6rem;
}

.dp-metrics {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.4rem;
}

.dp-metric {
    text-align: center;
}

.dp-metric-value {
    font-size: 1rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    line-height: 1.2;
}

.dp-metric-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

.dp-alert {
    margin-top: 0.35rem;
    padding: 0.3rem 0.5rem;
    border-radius: 5px;
    background: rgba(217, 119, 6, 0.07);
    color: #92400e;
    font-size: 0.65rem;
    line-height: 1.3;
}

/* =============================================================================
   PLATFORM LEADERBOARD — CARD LAYOUT
   ============================================================================= */

.leaderboard-section {
    padding: 3rem 0;
}

.pl-cards {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pl-card {
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--card-bg, #fff);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.pl-card:hover {
    box-shadow: var(--card-shadow-hover);
}

/* Card Header */
.pl-card-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 85, 221, 0.02);
}

.pl-card-rank {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    flex-shrink: 0;
}

.pl-card-identity {
    flex: 1;
    min-width: 0;
}

.pl-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pl-card-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.pl-card-url {
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    opacity: 0.7;
    flex-shrink: 0;
}

.pl-logo {
    font-size: 1.1rem;
}

/* Stats Grid */
.pl-card-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-bottom: 1px solid var(--border);
}

.pl-card-stat {
    padding: 0.85rem 1rem;
    border-right: 1px solid var(--border);
    cursor: help;
    transition: background 0.15s;
}

.pl-card-stat:hover {
    background: rgba(0, 85, 221, 0.03);
}

.pl-card-stat:last-child {
    border-right: none;
}

.pl-stat-label {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.pl-stat-value {
    font-size: 0.95rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.pl-stat-big {
    color: var(--accent);
    font-size: 1.05rem;
}

/* Volume Bars */
.pl-vol-bar {
    height: 5px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.pl-vol-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--accent);
    transition: width 0.6s ease;
}

/* Asia Jurisdictions */
.pl-card-asia {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.pl-asia-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.pl-asia-dots {
    display: flex;
    gap: 5px;
}

.pl-j-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    cursor: help;
}

.pl-asia-summary {
    display: flex;
    gap: 0.4rem;
    margin-left: auto;
}

.pl-asia-tag {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
}

.pl-asia-ok {
    background: rgba(5, 150, 105, 0.08);
    color: #059669;
}

.pl-asia-warn {
    background: rgba(217, 119, 6, 0.08);
    color: #b45309;
}

/* Top Pools */
.pl-card-pools {
    padding: 0;
}

.pl-pools-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.15s;
}

.pl-pools-title:hover {
    background: rgba(0, 85, 221, 0.03);
}

.pl-pool-toggle {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.pl-pool-list {
    padding: 0 1.25rem 0.75rem;
}

.pl-pool-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.78rem;
    transition: background 0.12s;
    border-radius: 4px;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    margin: 0 -0.25rem;
}

.pl-pool-item:hover {
    background: rgba(0, 85, 221, 0.04);
}

.pl-pool-vol,
.pl-pool-prob {
    cursor: help;
}

.pl-pool-rank {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(0, 85, 221, 0.08);
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    flex-shrink: 0;
}

.pl-pool-name {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pl-pool-vol {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.pl-pool-prob {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent);
    min-width: 36px;
    text-align: right;
}

.pl-pool-note {
    padding: 0.5rem 0;
    font-size: 0.68rem;
    color: var(--text-muted);
    font-style: italic;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Responsive — Daily Picks + Leaderboard */
@media (max-width: 900px) {
    .daily-picks-grid {
        grid-template-columns: 1fr;
    }

    .pl-card-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .pl-card-stat:nth-child(2) {
        border-right: none;
    }

    .pl-card-stat:nth-child(3),
    .pl-card-stat:nth-child(4) {
        border-top: 1px solid var(--border);
    }

    .pl-card-stat:nth-child(3) {
        border-right: 1px solid var(--border);
    }
}

@media (max-width: 640px) {
    .daily-picks-section,
    .leaderboard-section {
        padding: 2rem 0;
    }

    .dp-metrics {
        gap: 0.6rem;
    }

    .dp-metric-value {
        font-size: 0.85rem;
    }

    .pl-card-head {
        flex-wrap: wrap;
    }

    .pl-card-url {
        display: none;
    }

    .pl-card-stats {
        grid-template-columns: 1fr 1fr;
    }

    .pl-card-asia {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .pl-asia-summary {
        margin-left: 0;
    }

    .pl-stat-value {
        font-size: 0.82rem;
    }

    .pl-stat-big {
        font-size: 0.9rem;
    }
}

/* ===== MICRO-INTERACTIONS POLISH ===== */

/* Skeleton shimmer loader */
@keyframes skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-surface) 25%, rgba(0,85,221,0.06) 50%, var(--bg-surface) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

.skeleton-card {
    height: 320px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.skeleton-line {
    height: 14px;
    margin-bottom: 10px;
    width: 80%;
}

.skeleton-line.short { width: 50%; }
.skeleton-line.tiny { width: 30%; }

[data-theme="dark"] .skeleton {
    background: linear-gradient(90deg, var(--bg-surface) 25%, rgba(88,166,255,0.06) 50%, var(--bg-surface) 75%);
    background-size: 200% 100%;
}

/* Staggered card entrance animation */
@keyframes card-enter {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.market-card {
    opacity: 0;
    animation: card-enter 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: calc(var(--i, 0) * 60ms);
}

/* Section fade-up on scroll */
@keyframes section-reveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Button ripple effect */
.btn {
    overflow: hidden;
    position: relative;
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: ripple-expand 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes ripple-expand {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Stat number counter pulse */
@keyframes stat-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.stat-number.counting {
    animation: stat-pulse 0.3s ease-in-out;
}

/* Smooth hover lift for interactive cards */
.market-card,
.dp-card,
.pl-card,
.wm-panel,
.ew-item {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.market-card:hover,
.dp-card:hover {
    transform: translateY(-3px);
}

/* Live indicator pulse */
@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.badge-pulse {
    animation: live-pulse 2s ease-in-out infinite;
}

/* ===== MARKET INSIGHT ONE-LINERS ===== */
.market-insight {
    font-size: 0.78rem;
    padding: 8px 12px;
    border-radius: var(--radius-xs);
    margin: 10px 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
    font-weight: 500;
}

.market-insight i {
    font-size: 0.72rem;
    flex-shrink: 0;
}

.insight-warning {
    background: rgba(217, 119, 6, 0.08);
    color: var(--warning);
    border-left: 3px solid var(--warning);
}

.insight-urgent {
    background: rgba(185, 28, 28, 0.08);
    color: var(--danger);
    border-left: 3px solid var(--danger);
}

.insight-bullish {
    background: rgba(4, 120, 87, 0.08);
    color: var(--success);
    border-left: 3px solid var(--success);
}

.insight-bearish {
    background: rgba(185, 28, 28, 0.08);
    color: var(--danger);
    border-left: 3px solid var(--danger);
}

.insight-neutral {
    background: rgba(0, 85, 221, 0.06);
    color: var(--text-secondary);
    border-left: 3px solid var(--accent);
}

[data-theme="dark"] .insight-warning {
    background: rgba(217, 119, 6, 0.12);
}
[data-theme="dark"] .insight-urgent {
    background: rgba(248, 81, 73, 0.1);
}
[data-theme="dark"] .insight-bullish {
    background: rgba(63, 185, 80, 0.1);
}
[data-theme="dark"] .insight-bearish {
    background: rgba(248, 81, 73, 0.1);
}
[data-theme="dark"] .insight-neutral {
    background: rgba(88, 166, 255, 0.08);
}

/* ===== LIVE TICKER RIBBON ===== */
.ticker-ribbon {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    z-index: 1001;
    background: linear-gradient(90deg, #0a0f1e, #111827, #0a0f1e);
    border-bottom: 1px solid rgba(88, 166, 255, 0.15);
    overflow: hidden;
    display: flex;
    align-items: center;
}

[data-theme="dark"] .ticker-ribbon {
    background: linear-gradient(90deg, #010409, #0d1117, #010409);
}

.ticker-ribbon:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-track {
    display: flex;
    gap: 0;
    white-space: nowrap;
    animation: ticker-scroll 45s linear infinite;
    will-change: transform;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 20px;
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace;
    color: #8b949e;
    cursor: pointer;
    transition: color 0.2s;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    height: 32px;
    flex-shrink: 0;
}

.ticker-item:hover {
    color: #e6edf3;
}

.ticker-title {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #c9d1d9;
}

.ticker-prob {
    font-weight: 600;
    color: var(--accent);
}

.ticker-change {
    font-size: 0.68rem;
    font-weight: 600;
}

.ticker-change.up { color: #3fb950; }
.ticker-change.down { color: #f85149; }
.ticker-change.flat { color: #6e7681; }

/* Adjust header and hero for ticker */
.site-header {
    top: 32px;
}

.hero-section {
    padding-top: calc(var(--header-height) + 32px + 60px);
}

/* Responsive: hide ticker on small screens */
@media (max-width: 640px) {
    .ticker-ribbon { display: none; }
    .site-header { top: 0; }
    .hero-section { padding-top: calc(var(--header-height) + 60px); }
}

/* ===== TOP MOVERS STRIP ===== */
.top-movers-section {
    padding: 24px 0 16px;
}

.top-movers-header {
    margin-bottom: 14px;
}

.top-movers-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-movers-title i {
    color: #f97316;
    font-size: 0.9rem;
}

.top-movers-strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.top-movers-strip::-webkit-scrollbar {
    display: none;
}

.mover-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: all var(--transition-premium);
    position: relative;
    overflow: hidden;
}

.mover-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--border-hover);
}

.mover-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.mover-category {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.mover-change {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

.mover-change.up {
    background: rgba(4, 120, 87, 0.1);
    color: var(--success);
}

.mover-change.down {
    background: rgba(185, 28, 28, 0.1);
    color: var(--danger);
}

.mover-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mover-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mover-prob {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
}

.mover-mini-gauge {
    width: 36px;
    height: 36px;
}

/* ===== COMMAND PALETTE ===== */
.cmd-palette-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    animation: cmd-fade-in 0.15s ease;
}

@keyframes cmd-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cmd-palette {
    width: 560px;
    max-width: 92vw;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: cmd-scale-in 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cmd-scale-in {
    from { transform: scale(0.95) translateY(-10px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.cmd-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.cmd-search-icon {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cmd-input {
    flex: 1;
    font-size: 1rem;
    color: var(--text-primary);
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
}

.cmd-input::placeholder {
    color: var(--text-muted);
}

.cmd-esc {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--bg-surface);
    color: var(--text-muted);
    border: 1px solid var(--border);
    font-family: inherit;
}

.cmd-results {
    max-height: 340px;
    overflow-y: auto;
    padding: 6px;
}

.cmd-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.1s;
}

.cmd-result-item:hover,
.cmd-result-item.active {
    background: var(--bg-surface);
}

.cmd-result-item.active {
    border-left: 3px solid var(--accent);
}

.cmd-result-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xs);
    background: var(--bg-surface);
    color: var(--accent);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.cmd-result-text {
    flex: 1;
    min-width: 0;
}

.cmd-result-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cmd-result-title mark {
    background: rgba(88, 166, 255, 0.2);
    color: inherit;
    border-radius: 2px;
    padding: 0 1px;
}

.cmd-result-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cmd-result-badge {
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 12px;
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-weight: 600;
    flex-shrink: 0;
}

.cmd-footer {
    display: flex;
    gap: 16px;
    padding: 8px 18px;
    border-top: 1px solid var(--border);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.cmd-footer kbd {
    font-size: 0.65rem;
    padding: 1px 5px;
    border-radius: 3px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    margin-right: 2px;
}

[data-theme="dark"] .cmd-palette-overlay {
    background: rgba(0, 0, 0, 0.65);
}

/* ===== SPARKLINE CHARTS ===== */
.sparkline-wrap {
    margin: 8px 0 2px;
    height: 40px;
    width: 100%;
}

.sparkline-canvas {
    width: 100%;
    height: 40px;
    display: block;
    border-radius: var(--radius-xs);
}

/* ===== SVG PROBABILITY GAUGES ===== */
.gauge-layout {
    display: flex;
    align-items: center;
    gap: 16px;
}

.svg-gauge {
    flex-shrink: 0;
    position: relative;
}

.gauge-svg {
    display: block;
}

.gauge-ring-outer,
.gauge-ring-inner {
    transition: stroke-dashoffset 1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Animate gauges on scroll into view */
.market-card .gauge-ring-outer,
.market-card .gauge-ring-inner {
    animation: gauge-fill 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--i, 0) * 60ms + 200ms);
}

@keyframes gauge-fill {
    from { stroke-dashoffset: var(--gauge-full, 200); }
}

/* Divergence glow pulse */
.market-card.trending .svg-gauge {
    filter: drop-shadow(0 0 6px rgba(88, 166, 255, 0.2));
}

/* ===== ANIMATED BAR RACE IN MODAL ===== */
@keyframes bar-race-grow {
    from { width: 0; }
    to { width: var(--bar-width); }
}

.bar-race {
    width: 0;
    animation: bar-race-grow 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--pi, 0) * 120ms + 200ms);
}

.modal-platform-row {
    transition: background 0.2s;
    border-radius: var(--radius-xs);
    padding: 4px 8px;
    margin: 0 -8px;
}

.modal-platform-row:hover {
    background: rgba(0, 85, 221, 0.05);
}

[data-theme="dark"] .modal-platform-row:hover {
    background: rgba(88, 166, 255, 0.06);
}

/* Platform brand colors for modal bars */
.modal-platform-bar-fill.polymarket { background: linear-gradient(90deg, #6d28d9, #8b5cf6); }
.modal-platform-bar-fill.kalshi { background: linear-gradient(90deg, #0891b2, #22d3ee); }
.modal-platform-bar-fill.opinionLabs { background: linear-gradient(90deg, #059669, #34d399); }
.modal-platform-bar-fill.metaculus { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.modal-platform-bar-fill.manifold { background: linear-gradient(90deg, #dc2626, #f87171); }

/* Divergence spread overlay between bars */
.modal-platform-list {
    position: relative;
}

/* ===== MOBILE BOTTOM SHEET + RESPONSIVE POLISH ===== */

/* Mobile bottom sheet modal */
@media (max-width: 768px) {
    .modal-overlay {
        align-items: flex-end;
    }

    .modal-content {
        max-height: 85vh;
        border-radius: 20px 20px 0 0;
        padding-top: 12px;
        animation: bottom-sheet-up 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    }

    @keyframes bottom-sheet-up {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    /* Drag handle */
    .modal-content::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        border-radius: 2px;
        background: var(--text-muted);
        opacity: 0.4;
        margin: 0 auto 12px;
    }

    /* Command palette fullscreen on mobile */
    .cmd-palette {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        height: 100vh;
        max-height: 100vh;
    }

    .cmd-palette-overlay {
        padding-top: 0;
        align-items: stretch;
    }

    .cmd-results {
        max-height: calc(100vh - 120px);
    }

    /* Top movers compact */
    .mover-card {
        flex: 0 0 180px;
        padding: 12px;
    }

    .mover-title {
        font-size: 0.78rem;
    }

    /* Market cards single column */
    .markets-grid {
        grid-template-columns: 1fr;
    }

    /* Category tabs scroll */
    .category-tabs {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .category-tabs::-webkit-scrollbar {
        display: none;
    }

    .category-tab {
        scroll-snap-align: start;
        flex-shrink: 0;
    }

    /* Header compact */
    .header-container {
        padding: 0 12px;
    }

    .search-container {
        display: none;
    }

    .theme-toggle {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    /* SVG gauge smaller on mobile */
    .svg-gauge {
        transform: scale(0.85);
        transform-origin: left center;
    }

    /* Sparkline shorter on mobile */
    .sparkline-wrap {
        height: 32px;
    }

    .sparkline-canvas {
        height: 32px;
    }

    /* Section padding compact */
    .section-container {
        padding: 0 16px;
    }

    .section-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    /* Even more compact */
    .hero-headline {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 8px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .mover-card {
        flex: 0 0 160px;
    }

    .gauge-layout {
        gap: 10px;
    }

    .market-card-footer {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    /* Platform Leaderboard compact */
    .pl-card-stats {
        grid-template-columns: 1fr 1fr;
    }
}
