/**
 * ==============================================================================
 * ForkCast — Swiss Editorial Daylight & Luxury Obsidian Design System (studio.css)
 * Production Domain: https://forkcast.byoaiapps.com
 * Version 3.0 — High-Trust, Razor-Sharp Typography, Spatial Glass & Living Nodes
 * ==============================================================================
 */

/* ------------------------------------------------------------------------------
 * 1. ROOT VARIABLES: SWISS EDITORIAL DAYLIGHT (DEFAULT)
 * ------------------------------------------------------------------------------ */
:root {
    /* Base Surfaces */
    --bg-canvas: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-subtle: #F1F5F9;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F8FAFC;
    --bg-glass-nav: rgba(255, 255, 255, 0.90);
    
    /* Borders & Dividers */
    --border-color: #E2E8F0;
    --border-glass: #E2E8F0;
    --border-glass-hover: #CBD5E1;
    --border-glass-glow: rgba(79, 70, 229, 0.25);
    
    /* Razor-Sharp Typography */
    --text-primary: #0F172A;     /* Deep Ink Slate */
    --text-secondary: #475569;   /* Balanced Slate */
    --text-muted: #94A3B8;       /* Subtle Slate */
    --text-inverse: #FFFFFF;

    /* Editorial Brand Accents */
    --accent-primary: #4F46E5;   /* Royal Indigo */
    --accent-gradient: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    --accent-glow: rgba(79, 70, 229, 0.15);

    /* Semantic Path & Outcome Accents */
    --color-emerald: #059669;
    --badge-emerald-bg: #ECFDF5;
    --badge-emerald-border: #A7F3D0;
    --path-a-color: #059669;
    --path-a-bg: #ECFDF5;

    --color-rose: #E11D48;
    --badge-rose-bg: #FFF1F2;
    --badge-rose-border: #FECDD3;
    --path-b-color: #E11D48;
    --path-b-bg: #FFF1F2;

    --color-amber: #D97706;
    --badge-amber-bg: #FFFBEB;
    --badge-amber-border: #FDE68A;

    --color-sky: #0284C7;
    --badge-sky-bg: #F0F9FF;
    --badge-sky-border: #BAE6FD;

    --color-purple: #7C3AED;
    --badge-purple-bg: #F5F3FF;
    --badge-purple-border: #DDD6FE;

    --color-indigo: #4F46E5;
    --badge-indigo-bg: #EEF2FF;
    --badge-indigo-border: #C7D2FE;

    /* Typography Families */
    --font-display: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* Radii & Shadows */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    --shadow-card-hover: 0 12px 28px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
    --shadow-elevation: 0 20px 40px -10px rgba(15, 23, 42, 0.10);

    /* AdSense Spatial Buffer */
    --adsense-buffer-separation: 150px;
}

/* ------------------------------------------------------------------------------
 * 2. LUXURY OBSIDIAN THEME OVERRIDES ([data-theme="dark"])
 * ------------------------------------------------------------------------------ */
[data-theme="dark"], .theme-midnight {
    --bg-canvas: #0B0F19;
    --bg-surface: #131B2E;
    --bg-subtle: #1E293B;
    --bg-card: #131B2E;
    --bg-card-hover: #1A253D;
    --bg-glass-nav: rgba(11, 15, 25, 0.90);
    
    --border-color: #26334D;
    --border-glass: #26334D;
    --border-glass-hover: #374667;
    --border-glass-glow: rgba(99, 102, 241, 0.35);
    
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --text-inverse: #0B0F19;

    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-card-hover: 0 18px 40px -8px rgba(0, 0, 0, 0.7);

    --badge-emerald-bg: rgba(5, 150, 105, 0.15);
    --badge-emerald-border: rgba(5, 150, 105, 0.35);

    --badge-rose-bg: rgba(225, 29, 72, 0.15);
    --badge-rose-border: rgba(225, 29, 72, 0.35);

    --badge-amber-bg: rgba(217, 119, 6, 0.15);
    --badge-amber-border: rgba(217, 119, 6, 0.35);

    --badge-sky-bg: rgba(2, 132, 199, 0.15);
    --badge-sky-border: rgba(2, 132, 199, 0.35);

    --badge-purple-bg: rgba(124, 58, 237, 0.15);
    --badge-purple-border: rgba(124, 58, 237, 0.35);

    --color-indigo: #818CF8;
    --badge-indigo-bg: rgba(79, 70, 229, 0.18);
    --badge-indigo-border: rgba(99, 102, 241, 0.35);
}

/* ------------------------------------------------------------------------------
 * 3. RESET & SYSTEM CORE
 * ------------------------------------------------------------------------------ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: radial-gradient(1200px circle at 50% 0%, rgba(99, 102, 241, 0.08), transparent 70%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    transition: background-color 0.25s ease, color 0.25s ease;
}

[data-theme="dark"] body {
    background-image: radial-gradient(1200px circle at 50% 0%, rgba(99, 102, 241, 0.14), transparent 70%);
}

main {
    flex: 1;
    padding-top: 24px;
    padding-bottom: 64px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

button, input, select, textarea {
    font-family: inherit;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ------------------------------------------------------------------------------
 * 4. SPATIAL GLASS UTILITIES & CARDS
 * ------------------------------------------------------------------------------ */
.spatial-glass {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    border-radius: var(--radius-lg);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.spatial-glass:hover {
    border-color: var(--border-glass-hover);
    box-shadow: var(--shadow-card-hover);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent-gradient);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.38);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ------------------------------------------------------------------------------
 * 5. STICKY FULL-WIDTH GLASS HEADER & MODERN NAVIGATION
 * ------------------------------------------------------------------------------ */
.studio-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 72px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: var(--bg-glass-nav);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Sleek 36x36px Rounded Gradient Icon Badge (No giant blue rectangle) */
.brand-badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    flex-shrink: 0;
}

.brand-text-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-text {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.brand-highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-pill {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: var(--badge-purple-bg);
    color: var(--accent-primary);
    border: 1px solid var(--badge-purple-border);
}

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

.nav-item {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
    background: var(--bg-subtle);
}

.nav-dropdown {
    position: relative;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px;
    min-width: 210px;
    box-shadow: var(--shadow-elevation);
    display: none;
    flex-direction: column;
    z-index: 105;
}

.nav-dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu a {
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
}

.dropdown-menu a:hover {
    color: var(--accent-primary);
    background: var(--bg-subtle);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.search-form input {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 8px 38px 8px 16px;
    font-size: 0.85rem;
    width: 220px;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.search-form input:focus {
    width: 280px;
    outline: none;
    background: var(--bg-surface);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.search-form button {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
}

.search-form button:hover {
    color: var(--accent-primary);
}

/* Oracle Passport Streak & XP Widget */
.passport-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--badge-purple-bg);
    border: 1px solid var(--badge-purple-border);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.passport-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.2);
}

.passport-streak {
    color: #D97706;
}

.passport-xp {
    color: #7C3AED;
}

/* 1-Click Sun / Moon Theme Toggle Button */
.theme-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-subtle);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-glass-hover);
    transform: rotate(15deg);
}

/* Icon visibility depending on data-theme */
[data-theme="light"] .theme-toggle-btn .icon-sun,
html:not([data-theme="dark"]) .theme-toggle-btn .icon-sun {
    display: none;
}
[data-theme="light"] .theme-toggle-btn .icon-moon,
html:not([data-theme="dark"]) .theme-toggle-btn .icon-moon {
    display: inline;
}
[data-theme="dark"] .theme-toggle-btn .icon-moon {
    display: none;
}
[data-theme="dark"] .theme-toggle-btn .icon-sun {
    display: inline;
}

/* ------------------------------------------------------------------------------
 * 6. HERO COMMAND CENTER & BENTO STUDIO DESIGN SYSTEM
 * ------------------------------------------------------------------------------ */
.hero-command-section {
    position: relative;
    padding: 44px 0 28px;
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 860px;
    height: 420px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(124, 58, 237, 0.05) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .hero-glow {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(124, 58, 237, 0.10) 50%, transparent 70%);
}

.hero-command-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: var(--badge-indigo-bg);
    color: var(--color-indigo);
    border: 1px solid var(--badge-indigo-border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseGlow 2s infinite;
    flex-shrink: 0;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.15rem, 4.6vw, 3.35rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.12;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subhead {
    font-size: clamp(0.98rem, 1.8vw, 1.12rem);
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

/* Omni-Search Bar & Trending Row */
.hero-search-wrapper {
    max-width: 680px;
    margin: 0 auto 8px;
}

.hero-search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 6px 8px 6px 20px;
    box-shadow: 0 10px 30px -5px rgba(79, 70, 229, 0.12), var(--shadow-card);
    transition: all 0.25s ease;
}

.hero-search-bar:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px var(--accent-glow), 0 14px 34px -5px rgba(79, 70, 229, 0.20);
}

.hero-search-icon {
    font-size: 1.15rem;
    margin-right: 12px;
    user-select: none;
    opacity: 0.75;
    flex-shrink: 0;
}

.hero-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--text-primary);
    min-width: 0;
    padding: 6px 0;
}

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

.hero-search-submit {
    background: var(--accent-gradient);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-full);
    padding: 12px 24px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    flex-shrink: 0;
}

.hero-search-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.42);
}

.hero-search-submit:active {
    transform: translateY(0);
}

.trending-pills-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
    font-size: 0.85rem;
}

.trending-label {
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    margin-right: 2px;
}

.trending-pill-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.trending-pill-chip:hover {
    background: var(--badge-indigo-bg);
    border-color: var(--accent-primary);
    color: var(--color-indigo);
    transform: translateY(-1px);
    box-shadow: var(--shadow-card);
}

/* ------------------------------------------------------------------------------
 * 6B. 2-COLUMN BENTO STUDIO GRID
 * ------------------------------------------------------------------------------ */
.bento-grid-section {
    padding-top: 12px;
    padding-bottom: 48px;
}

.bento-main-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 1080px) {
    .bento-main-grid {
        grid-template-columns: 1fr 350px;
        gap: 24px;
    }
}

@media (max-width: 900px) {
    .bento-main-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

/* Left Column: Forks & Tabs */
.bento-col-forks {
    min-width: 0;
}

.bento-forks-header {
    margin-bottom: 22px;
}

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

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: var(--badge-indigo-bg);
    color: var(--color-indigo);
    border: 1px solid var(--badge-indigo-border);
}

.model-count-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-subtle);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.section-title-wrap h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 4px 0 4px;
    color: var(--text-primary);
}

.section-title-wrap p {
    color: var(--text-secondary);
    font-size: 0.94rem;
}

.category-tabs-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-bottom: 4px;
}

.cat-tab {
    padding: 7px 15px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.cat-tab:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.cat-tab.active {
    background: var(--accent-primary);
    color: #FFFFFF;
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.bento-forks-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fork-bento-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.fork-bento-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-glass-hover);
}

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

.category-pill-indigo,
.category-pill {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: var(--badge-indigo-bg);
    color: var(--color-indigo);
    border: 1px solid var(--badge-indigo-border);
}

.info-score-emerald,
.info-score-badge {
    font-size: 0.74rem;
    font-weight: 800;
    padding: 4px 11px;
    border-radius: var(--radius-full);
    background: var(--badge-emerald-bg);
    color: var(--color-emerald);
    border: 1px solid var(--badge-emerald-border);
}

.fork-bento-title {
    font-family: var(--font-display);
    font-size: 1.22rem;
    font-weight: 800;
    line-height: 1.32;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.fork-bento-title a:hover {
    color: var(--accent-primary);
}

.fork-bento-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 16px;
}

/* Visual "Path A vs Path B" Battle Box */
.fork-battle-box {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 18px;
}

.battle-side {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.battle-side-b {
    justify-content: flex-end;
    text-align: right;
}

.battle-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-emerald {
    background: var(--color-emerald);
    box-shadow: 0 0 0 3px var(--badge-emerald-bg);
}

.dot-rose {
    background: var(--color-rose);
    box-shadow: 0 0 0 3px var(--badge-rose-bg);
}

.battle-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.battle-label-mini {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.battle-side-a .battle-label-mini {
    color: var(--color-emerald);
}

.battle-side-b .battle-label-mini {
    color: var(--color-rose);
}

.battle-path-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.28;
}

.battle-vs-circle,
.battle-vs-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 900;
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
    user-select: none;
    flex-shrink: 0;
}

.fork-bento-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.fork-votes-telemetry {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.btn-explore-full,
.btn-fork-explore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    color: #FFFFFF;
    font-size: 0.84rem;
    font-weight: 700;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.22);
}

.btn-explore-full:hover,
.btn-fork-explore:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
    color: #FFFFFF;
}

/* ------------------------------------------------------------------------------
 * 6C. STICKY DAILY GLOBAL RIPPLES FORECASTING DECK CAROUSEL
 * ------------------------------------------------------------------------------ */
.bento-col-ripples {
    position: relative;
}

.ripple-deck-sticky {
    position: sticky;
    top: 92px;
}

.ripple-deck-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.deck-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.deck-brand-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.globe-emoji {
    font-size: 1.2rem;
}

.deck-brand-title h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.xp-reward-pill,
.ripple-badge {
    background: var(--badge-purple-bg);
    color: var(--color-purple);
    border: 1px solid var(--badge-purple-border);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.deck-subtitle {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 14px;
}

.deck-stepper-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 5px 6px;
    margin-bottom: 16px;
}

.deck-step-pills {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.deck-step-pill {
    padding: 4px 7px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    transition: all 0.2s ease;
    cursor: pointer;
}

.deck-step-pill:hover {
    color: var(--text-primary);
    background: var(--bg-surface);
}

.deck-step-pill.active {
    background: var(--accent-primary);
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}

.deck-arrow-btn {
    padding: 5px 10px;
    border-radius: 7px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.deck-arrow-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.deck-slides-wrapper {
    position: relative;
}

.deck-slide {
    display: none;
    animation: fadeSlideIn 0.22s ease;
}

.deck-slide.active {
    display: block;
}

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

.deck-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.deck-drop-tag {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-indigo);
    background: var(--badge-indigo-bg);
    border: 1px solid var(--badge-indigo-border);
    padding: 2px 9px;
    border-radius: var(--radius-full);
}

.deck-vote-counter {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

.deck-headline {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.deck-summary {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 14px;
}

.deck-options-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.deck-option-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 11px 13px;
    border-radius: 10px;
    background: var(--bg-subtle);
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    overflow: hidden;
    text-align: left;
    font-size: 0.83rem;
    font-weight: 600;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
    min-height: 48px;
}

.deck-option-btn:hover:not(:disabled) {
    border-color: var(--accent-primary);
    background: var(--bg-surface);
}

.deck-fill-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: rgba(79, 70, 229, 0.10);
    pointer-events: none;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
}

[data-theme="dark"] .deck-fill-bar {
    background: rgba(99, 102, 241, 0.20);
}

.deck-opt-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    flex: 1;
    min-width: 0;
}

.deck-opt-letter {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.73rem;
    font-weight: 800;
    color: var(--accent-primary);
    flex-shrink: 0;
    margin-top: 1px;
}

.deck-opt-text {
    position: relative;
    z-index: 1;
    flex: 1;
    line-height: 1.35;
    color: var(--text-primary);
}

.deck-opt-right {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.deck-opt-pct {
    position: relative;
    z-index: 1;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.your-pick-badge {
    display: none;
    position: relative;
    z-index: 1;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 5px;
    background: var(--color-emerald);
    color: #FFFFFF;
    white-space: nowrap;
}

/* Custom Pick styling: ONLY the clicked option gets this! */
.deck-option-btn.selected-pick,
.ripple-poll-btn.selected-pick {
    border-color: var(--color-emerald) !important;
    background: var(--badge-emerald-bg) !important;
}

.deck-option-btn.selected-pick .deck-opt-letter,
.ripple-poll-btn.selected-pick .deck-opt-letter {
    background: var(--color-emerald);
    color: #FFFFFF;
    border-color: var(--color-emerald);
}

.deck-option-btn.selected-pick .your-pick-badge,
.ripple-poll-btn.selected-pick .your-pick-badge {
    display: inline-block;
}

.deck-controls-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.deck-step-fraction {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
}

.deck-full-arena-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.deck-full-arena-link:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------------------------
 * 6D. DECISION DOMAINS / CATEGORY EXPLORER TILES
 * ------------------------------------------------------------------------------ */
.categories-section {
    padding-top: 8px;
    padding-bottom: 24px;
}

.categories-section .section-header {
    margin-bottom: 24px;
}

.categories-section .section-header h2 {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 6px 0 4px;
    color: var(--text-primary);
}

.categories-section .section-header p {
    font-size: 0.94rem;
    color: var(--text-secondary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.cat-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 22px;
    border-radius: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

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

.cat-icon {
    font-size: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
}

.cat-title {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.cat-desc {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 14px;
    flex: 1;
}

.cat-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-primary);
}

/* ------------------------------------------------------------------------------
 * 7. STUDIO INTERACTIVE CONSEQUENCE TREE (/decide/{slug})
 * ------------------------------------------------------------------------------ */
.studio-container {
    padding-top: 12px;
}

.studio-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.studio-breadcrumbs a:hover {
    color: var(--accent-primary);
}

.current-crumb {
    color: var(--text-secondary);
    font-weight: 600;
}

.studio-header-card {
    padding: 36px;
    margin-bottom: 32px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.header-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.category-pill {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: var(--badge-sky-bg);
    color: var(--color-sky);
    border: 1px solid var(--badge-sky-border);
}

.score-pill {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: var(--badge-emerald-bg);
    color: var(--color-emerald);
    border: 1px solid var(--badge-emerald-border);
}

.evolved-pill {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: var(--bg-subtle);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.studio-headline {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.25;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* Empirical Break-Even Capsule (GEO Grounding) */
.geo-capsule-box {
    background: var(--badge-sky-bg);
    border: 1px solid var(--badge-sky-border);
    border-left: 4px solid var(--color-sky);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    margin-bottom: 28px;
}

.capsule-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--color-sky);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.capsule-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 500;
}

.versus-lead {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-subtle);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.lead-path {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 14px 20px;
    border-radius: var(--radius-md);
}

.lead-path.path-a {
    background: var(--badge-emerald-bg);
    border: 1.5px solid var(--badge-emerald-border);
    text-align: right;
}

.lead-path.path-b {
    background: var(--badge-rose-bg);
    border: 1.5px solid var(--badge-rose-border);
    text-align: left;
}

.path-letter {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}

.path-a .path-letter { color: var(--color-emerald); }
.path-b .path-letter { color: var(--color-rose); }

.lead-path strong {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.versus-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-muted);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

/* ------------------------------------------------------------------------------
 * 8. PERSONALIZER SLIDERS & TACTILE CONTROLS
 * ------------------------------------------------------------------------------ */
.sliders-panel {
    padding: 32px;
    margin-bottom: 32px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.sliders-header {
    margin-bottom: 24px;
}

.sliders-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.sliders-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.sliders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.slider-control-group {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    padding: 18px 20px;
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease;
}

.slider-control-group:hover {
    border-color: var(--border-glass-hover);
}

.slider-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.slider-label-row label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.slider-display-val {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent-primary);
    background: var(--bg-surface);
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.val-num {
    font-weight: 700;
}

.val-unit {
    font-size: 0.8rem;
    margin-left: 2px;
    color: var(--text-muted);
}

.personalizer-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: var(--radius-full);
    background: #CBD5E1;
    outline: none;
    cursor: grab;
    transition: background 0.2s;
}

[data-theme="dark"] .personalizer-slider {
    background: #334155;
}

.personalizer-slider:active {
    cursor: grabbing;
}

.personalizer-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-primary);
    cursor: grab;
    border: 3px solid #FFFFFF;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
    transition: transform 0.15s ease;
}

.personalizer-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.personalizer-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.25);
}

.personalizer-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-primary);
    cursor: grab;
    border: 3px solid #FFFFFF;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}

.slider-limits {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-family: var(--font-mono);
}

/* ------------------------------------------------------------------------------
 * 9. LIVING SVG CONSEQUENCE MAP CANVAS
 * ------------------------------------------------------------------------------ */
.canvas-section {
    padding: 32px;
    margin-bottom: 36px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.canvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.canvas-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.canvas-title-group h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
}

.canvas-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-primary);
    background: var(--badge-purple-bg);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    border: 1px solid var(--badge-purple-border);
}

.tree-verdict-banner {
    font-size: 0.95rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    background: var(--badge-emerald-bg);
    color: var(--color-emerald);
    border: 1.5px solid var(--badge-emerald-border);
}

.svg-canvas-wrapper {
    width: 100%;
    background: var(--bg-subtle);
    background-image: radial-gradient(var(--border-glass-hover) 1px, transparent 1px);
    background-size: 20px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: inset 0 1px 4px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

[data-theme="dark"] .svg-canvas-wrapper {
    background-color: #0B0F19;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

#consequence-tree-svg {
    width: 100%;
    height: auto;
    display: block;
    min-height: 380px;
}

.svg-curve-path {
    fill: none;
    stroke-width: 3.5;
    stroke-linecap: round;
}

.path-a-curve {
    stroke: #059669;
}

.path-b-curve {
    stroke: #E11D48;
}

[data-theme="dark"] .path-a-curve {
    stroke: #10B981;
}

[data-theme="dark"] .path-b-curve {
    stroke: #F43F5E;
}

.svg-grid-line {
    stroke: var(--border-color);
    stroke-width: 1;
    stroke-dasharray: 4 4;
}

.svg-node-point {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.svg-node-point:hover {
    transform: scale(1.15);
}

/* ------------------------------------------------------------------------------
 * 10. CHRONOLOGICAL HORIZONS SPLIT COLUMNS
 * ------------------------------------------------------------------------------ */
.horizons-comparison-section {
    margin-bottom: 40px;
}

.horizon-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.horizon-header-row h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.paths-split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.path-column-header {
    padding: 22px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    border: 1.5px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.header-emerald {
    background: var(--badge-emerald-bg);
    border-color: var(--badge-emerald-border);
}

.header-rose {
    background: var(--badge-rose-bg);
    border-color: var(--badge-rose-border);
}

.col-pill {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.path-col-a .col-pill { color: var(--color-emerald); }
.path-col-b .col-pill { color: var(--color-rose); }

.path-column-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
}

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

.regret-pct-val {
    color: var(--color-rose);
    font-family: var(--font-mono);
    font-weight: 700;
}

.horizons-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.node-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    position: relative;
    border-left: 4px solid transparent;
}

.path-col-a .node-card {
    border-left-color: var(--color-emerald);
}

.path-col-b .node-card {
    border-left-color: var(--color-rose);
}

.node-time-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

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

.node-cost-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    background: var(--bg-subtle);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.cost-prefix {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.cost-number {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.metric-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-left: auto;
    background: var(--bg-surface);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.node-summary {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 16px;
}

.hidden-trap-callout {
    display: flex;
    gap: 12px;
    background: var(--badge-amber-bg);
    border: 1px solid var(--badge-amber-border);
    padding: 14px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--color-amber);
    margin-bottom: 16px;
}

.trap-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.trap-content strong {
    display: block;
    font-weight: 700;
    margin-bottom: 2px;
}

.trap-content span {
    color: var(--text-primary);
}

.btn-ask-node {
    width: 100%;
    padding: 10px 16px;
    background: var(--badge-purple-bg);
    border: 1px solid var(--badge-purple-border);
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-ask-node:hover {
    background: var(--accent-primary);
    color: #FFFFFF;
}

/* ------------------------------------------------------------------------------
 * 11. PLOT TWISTS & MACRO SHOCKS
 * ------------------------------------------------------------------------------ */
.twists-section {
    padding: 32px;
    margin-bottom: 36px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.twists-header {
    margin-bottom: 20px;
}

.twists-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.twists-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.twists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.twist-card {
    background: var(--bg-subtle);
    border: 1.5px solid var(--border-color);
    padding: 20px;
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
}

.twist-card.active {
    border-color: var(--color-amber);
    background: var(--badge-amber-bg);
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.15);
}

.twist-toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider.round {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #CBD5E1;
    transition: .25s;
    border-radius: 24px;
}

[data-theme="dark"] .slider.round {
    background-color: #334155;
}

.slider.round:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #FFFFFF;
    transition: .25s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

input:checked + .slider.round {
    background-color: var(--color-amber);
}

input:checked + .slider.round:before {
    transform: translateX(20px);
}

.twist-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

/* ------------------------------------------------------------------------------
 * 12. DETAILED COMPARISON MATRIX
 * ------------------------------------------------------------------------------ */
.matrix-section {
    padding: 32px;
    margin-bottom: 36px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.matrix-section .section-header {
    margin-bottom: 20px;
}

.matrix-section h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.comparison-table th {
    background: var(--bg-subtle);
    color: var(--text-primary);
    padding: 14px 16px;
    font-weight: 700;
    border-bottom: 2px solid var(--border-color);
}

.comparison-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.comparison-table tr:hover td {
    background: var(--bg-subtle);
    color: var(--text-primary);
}

.dim-label {
    color: var(--text-primary);
}

.edge-cell {
    text-align: right;
}

.edge-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--badge-sky-bg);
    color: var(--color-sky);
    border: 1px solid var(--badge-sky-border);
}

/* ------------------------------------------------------------------------------
 * 13. COMMUNITY RETROSPECTIVE TELEMETRY VOTING
 * ------------------------------------------------------------------------------ */
.telemetry-vote-section {
    padding: 32px;
    margin-bottom: 36px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.telemetry-callout {
    margin-bottom: 24px;
}

.telemetry-callout h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.telemetry-callout p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.vote-action-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.path-vote-box {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    padding: 22px;
    border-radius: var(--radius-lg);
}

.path-vote-box h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.vote-btn-pair {
    display: flex;
    gap: 12px;
}

.btn-vote {
    flex: 1;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-primary);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.btn-worth-it:hover {
    background: var(--badge-emerald-bg);
    border-color: var(--color-emerald);
    color: var(--color-emerald);
}

.btn-regret-it:hover {
    background: var(--badge-rose-bg);
    border-color: var(--color-rose);
    color: var(--color-rose);
}

.btn-vote.voted {
    pointer-events: none;
    opacity: 0.8;
}

/* ------------------------------------------------------------------------------
 * 14. DAILY GLOBAL RIPPLES PREDICTION ARENA (/predict) & INNER PAGES (/category, /search)
 * High-Contrast, Perfectly Readable Option Voting Buttons
 * ------------------------------------------------------------------------------ */
.predict-container,
.category-page-container,
.search-page-container {
    padding-top: 12px;
}

.predict-header,
.category-header,
.search-page-header {
    padding: 36px;
    margin-bottom: 32px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.predict-header {
    text-align: center;
}

.predict-title,
.cat-page-title,
.search-h1 {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.8vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin: 10px 0 10px;
    line-height: 1.2;
}

.query-highlight {
    color: var(--accent-primary);
}

.predict-lead,
.cat-page-lead,
.search-lead {
    font-size: 1.02rem;
    color: var(--text-secondary);
    max-width: 740px;
    line-height: 1.6;
}

.predict-header .predict-lead {
    margin: 0 auto 24px;
}

/* Oracle Foresight Status Banner inside /predict */
.passport-hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 680px;
    margin: 0 auto;
    padding: 16px 22px;
    border-radius: var(--radius-lg);
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    text-align: left;
    flex-wrap: wrap;
}

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

.p-icon {
    font-size: 1.75rem;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--badge-purple-bg);
    border: 1px solid var(--badge-purple-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-card-left strong {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-primary);
}

.p-sub {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.p-card-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    min-width: 92px;
}

.stat-box .val {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.stat-box .lbl {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.ripples-arena-stack,
.ripples-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ripple-arena-card,
.ripple-card {
    padding: 28px;
    border-radius: var(--radius-xl);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

.arena-card-top,
.ripple-top-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.drop-tag,
.ripple-number {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--color-indigo);
    background: var(--badge-indigo-bg);
    border: 1px solid var(--badge-indigo-border);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.crowd-size {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-muted);
}

.arena-headline,
.ripple-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.arena-summary,
.ripple-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.ripple-poll-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* High-Contrast, Crystal Clear Daily Ripple Voting Option Button */
.ripple-poll-btn,
.ripple-opt-btn {
    position: relative;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    width: 100%;
    text-align: left;
}

.ripple-poll-btn:hover:not(:disabled),
.ripple-opt-btn:hover:not(:disabled) {
    border-color: var(--accent-primary);
    background: var(--bg-surface);
}

.poll-fill-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: rgba(79, 70, 229, 0.10);
    z-index: 0;
    pointer-events: none;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .poll-fill-bar {
    background: rgba(99, 102, 241, 0.22);
}

.poll-opt-text,
.opt-text {
    position: relative;
    z-index: 2;
    font-weight: 600;
    font-size: 0.94rem;
    color: var(--text-primary);
    line-height: 1.35;
}

.poll-pct-label,
.opt-pct {
    position: relative;
    z-index: 2;
    font-family: var(--font-mono);
    font-weight: 800;
    color: var(--accent-primary);
    font-size: 0.92rem;
    margin-left: 6px;
}

.ripple-poll-btn.voted:not(.selected-pick),
.ripple-opt-btn.voted:not(.selected-pick) {
    opacity: 0.85;
    cursor: default;
}

/* Search Miss / Autonomous On-Demand Synthesis Box */
.search-miss-box {
    padding: 48px 32px;
    text-align: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    max-width: 680px;
    margin: 24px auto;
}

.miss-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.search-miss-box h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.miss-desc {
    font-size: 0.96rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.on-demand-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.ondemand-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-primary);
    background: var(--badge-indigo-bg);
    border: 1px solid var(--badge-indigo-border);
    padding: 10px 18px;
    border-radius: var(--radius-md);
}

.ondemand-status.hidden {
    display: none;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2.5px solid var(--badge-indigo-border);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spinLoader 0.8s linear infinite;
}

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

/* ------------------------------------------------------------------------------
 * 15. ADSENSE SAFE-ZONE SPATIAL BUFFER & POINTER GUARD
 * ------------------------------------------------------------------------------ */
.adsense-safe-zone {
    width: 100%;
    margin-top: 48px;
    margin-bottom: 48px;
    padding: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.adsense-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

body.is-dragging-slider .adsense-safe-zone,
body.is-dragging-slider .adsbygoogle {
    pointer-events: none !important;
}

/* ------------------------------------------------------------------------------
 * 16. EDGE-CASE ORACLE MODAL DIALOG
 * ------------------------------------------------------------------------------ */
.oracle-dialog {
    max-width: 560px;
    width: 90%;
    margin: auto;
    padding: 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-primary);
    box-shadow: var(--shadow-elevation);
}

.oracle-dialog::backdrop {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
}

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

.dialog-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.btn-close-dialog {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
}

.btn-close-dialog:hover {
    color: var(--text-primary);
}

.dialog-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

#oracle-question {
    width: 100%;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 0.95rem;
    resize: vertical;
    margin-bottom: 16px;
}

#oracle-question:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.oracle-result {
    margin-top: 20px;
    padding: 18px;
    border-radius: var(--radius-md);
    background: var(--badge-purple-bg);
    border: 1px solid var(--badge-purple-border);
}

.oracle-result.hidden {
    display: none;
}

.oracle-answer-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent-primary);
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

#oracle-answer-text {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.oracle-delta-row {
    display: flex;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-sky);
}

/* ------------------------------------------------------------------------------
 * 17. FAQS, SOURCES & FORKS GRID
 * ------------------------------------------------------------------------------ */
.faq-section, .sources-section {
    padding: 32px;
    margin-bottom: 36px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    transition: border-color 0.2s ease;
}

.faq-item[open] {
    border-color: var(--accent-primary);
    background: var(--bg-surface);
}

.faq-question {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: "+";
    font-size: 1.3rem;
    color: var(--text-muted);
}

.faq-item[open] .faq-question::after {
    content: "−";
    color: var(--accent-primary);
}

.faq-answer {
    margin-top: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.sources-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sources-list li a {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 0.95rem;
}

.sources-list li a:hover {
    text-decoration: underline;
}

.source-snippet {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.forks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.fork-card {
    padding: 26px;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-xl);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    transition: all 0.2s ease;
}

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

.fork-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 14px 0 16px;
    line-height: 1.35;
    color: var(--text-primary);
}

.fork-title a:hover {
    color: var(--accent-primary);
}

.fork-paths-versus {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.chip-name {
    font-weight: 700;
    color: var(--text-secondary);
}

.vs-nexus {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
}

.btn-explore {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-explore:hover {
    gap: 10px;
}

/* ------------------------------------------------------------------------------
 * 18. FOOTER STYLING
 * ------------------------------------------------------------------------------ */
.studio-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-mission {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 14px 0 18px;
    max-width: 380px;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-indicator.online {
    background: var(--color-emerald);
    box-shadow: 0 0 8px rgba(5, 150, 105, 0.4);
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul a {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-col ul a:hover {
    color: var(--accent-primary);
}

.passport-card-mini {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 0.8rem;
    margin-top: 12px;
}

.passport-card-mini .p-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.legal-links {
    display: flex;
    gap: 16px;
}

.legal-links a:hover {
    color: var(--accent-primary);
}

/* ------------------------------------------------------------------------------
 * 19. RESPONSIVE DESIGN
 * ------------------------------------------------------------------------------ */
@media (max-width: 992px) {
    .paths-split-container {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    .nav-links {
        display: none;
    }
}

@media (max-width: 640px) {
    .studio-headline {
        font-size: 1.6rem;
    }
    .versus-lead {
        flex-direction: column;
    }
    .lead-path {
        text-align: center !important;
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .vote-action-panels {
        grid-template-columns: 1fr;
    }
}
