/* ==========================================================================
   XMR PREDICTIONS - GLOBAL STYLESHEET
   Aesthetic: Deep Ocean Nexus / Bioluminescent Data through Glass
   Tech: Vanilla CSS, Glassmorphism, Responsive, Houdini, WebGL
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & RESET
   -------------------------------------------------------------------------- */
:root {
    /* Colors - Deep Ocean Nexus Theme (from OST-final) */
    --color-primary: #5227FF; /* Electric Purple */
    --color-primary-glow: rgba(82, 39, 255, 0.5);
    --color-secondary: #FF9FFC; /* Neon Magenta */
    --color-secondary-glow: rgba(255, 159, 252, 0.5);
    --color-tertiary: #B19EEF; /* Lavender Mist */
    --color-accent: #00D9FF; /* Cyan Spark */
    
    --color-bg-dark: #050505;
    --color-text-main: #FFFFFF;
    --color-text-muted: rgba(255, 255, 255, 0.7);
    --color-border: rgba(255, 255, 255, 0.1);

    /* Glassmorphism (from OST-final) */
    --glass-bg: rgba(20, 20, 30, 0.6);
    --glass-bg-hover: rgba(30, 30, 45, 0.8);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --backdrop-blur: blur(12px);

    /* Spacing (from OST-final) */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-section: 96px;

    /* Typography (Updated for XMR Predictions) */
    --font-primary: 'Geist', system-ui, -apple-system, sans-serif;
    --font-mono: 'Geist Mono', 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Radius (from OST-final) */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 9999px;

    /* Transitions (from OST-final) */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);


    /* === XMR TOKENS === */
    --xmr-orange: #FF6600;
    --xmr-orange-glow: rgba(255, 102, 0, 0.45);
    --xmr-orange-subtle: rgba(255, 102, 0, 0.12);
    --xmr-deep: #020817;        /* XMRHub's deepest bg — use for card inners */

    /* RESOLUTION STATE COLORS */
    --state-open: var(--color-accent);       /* Cyan — active market */
    --state-resolving: var(--xmr-orange);    /* Orange — closing soon */
    --state-resolved-yes: #00D97E;          /* Green — resolved true */
    --state-resolved-no: #FF4D6A;          /* Red — resolved false */
    --state-void: rgba(255,255,255,0.22);   /* Muted — voided market */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-dark);
    /* Deep gradient fallback if WebGL fails */
    background-image: radial-gradient(circle at 50% 50%, #1a1a2e 0%, #050505 100%);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* --------------------------------------------------------------------------
   2. BACKGROUND EFFECT MOUNTS
   -------------------------------------------------------------------------- */
#webgl-mount { /* Unified mount target for all WebGL backgrounds */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Behind all content */
    pointer-events: none; /* Let clicks pass through */
}

#webgl-mount canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* --------------------------------------------------------------------------
   3. LAYOUT & CONTAINERS
   -------------------------------------------------------------------------- */
.page-wrapper {
    position: relative;
    z-index: 10; /* Above canvas */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

section {
    padding: var(--space-section) 0;
    position: relative;
}

/* --------------------------------------------------------------------------
   4. NAVIGATION — LIQUID GLASS PILL NAV (from OST-final)
   -------------------------------------------------------------------------- */

/* Houdini: register animatable angle for flowing gradient borders */
@property --pill-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

/* Animated conic-gradient border rotation — used by prediction cards, stat cards, filter tabs, etc. */
@keyframes pill-border-flow {
    0%   { --pill-angle: 0deg; }
    100% { --pill-angle: 360deg; }
}

/* Houdini: animatable probability for conic-gradient ring transitions */
@property --prob {
    syntax: '<number>';
    inherits: false;
    initial-value: 0;
}

@property --ring-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

@keyframes ring-border-spin {
    to { --ring-angle: 360deg; }
}

/* ── Prototype Banner ── */
.prototype-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 9px 16px;
    background: linear-gradient(90deg, rgba(255,102,0,0.85) 0%, rgba(255,140,50,0.85) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.prototype-banner p {
    font-size: 0.72rem;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
    text-align: center;
    line-height: 1.4;
}
.prototype-banner p a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}
.prototype-banner-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s;
}
.prototype-banner-close:hover { color: #ffffff; }

/* ── Flat Nav Bar ── */
/* ── Floating Glass Pill Nav ── */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height, 64px);
    /* Transparent shell — the visible pill is .nav-inner */
    background: none;
    border: none;
    pointer-events: none; /* pass clicks through the empty shell */
}

.has-banner .site-nav { top: 38px; }

@keyframes nav-border-flow {
    0% { background-position: 0% 0%, 0% 0%, 0% 50%; }
    100% { background-position: 0% 0%, 0% 0%, 200% 50%; }
}

.nav-inner {
    pointer-events: auto; /* restore clicks on the actual pill */
    max-width: 1320px;
    margin: 0 auto;
    height: 48px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px 0 14px;

    /* Deep liquid glass with smooth elegant flowing border gradient */
    background: 
        radial-gradient(150% 100% at 50% 0%, rgba(255,255,255,0.12) 0%, transparent 50%) padding-box,
        linear-gradient(rgba(10, 10, 25, 0.7), rgba(5, 5, 20, 0.85)) padding-box,
        linear-gradient(90deg, 
            rgba(255,255,255,0.08) 0%,
            rgba(255,255,255,0.3) 25%,
            rgba(255,102,0,0.4) 50%,
            rgba(255,255,255,0.3) 75%,
            rgba(255,255,255,0.08) 100%
        ) border-box;
    background-size: 100% 100%, 100% 100%, 200% 100%;
    animation: nav-border-flow 8s linear infinite;
    backdrop-filter: blur(40px) saturate(220%);
    -webkit-backdrop-filter: blur(40px) saturate(220%);
    border-radius: 100px;
    border: 1px solid transparent;
    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.3),
        inset 0 -1px 2px rgba(0,0,0,0.60),
        inset 0 0 12px rgba(255,255,255,0.05),
        0 12px 40px rgba(0,0,0,0.55),
        0 4px 12px rgba(0,0,0,0.4);
    width: fit-content;
}

.nav-wordmark {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
    color: #ffffff;
    font-family: 'Geist', sans-serif;
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: -0.02em;
    padding-right: 6px;
    margin-right: 2px;
    border-right: 1px solid rgba(255,255,255,0.08);
    height: 32px;
}
.nav-bull {
    height: 24px;
    width: auto;
    filter: drop-shadow(0 0 6px rgba(255,102,0,0.6));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 3px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 0 1 auto;
}

.nav-link {
    display: block;
    padding: 6px 13px;
    font-family: 'Geist', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255,255,255,0.50);
    text-decoration: none;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.07);
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    white-space: nowrap;
    letter-spacing: -0.01em;
    position: relative;
    background: transparent;
    isolation: isolate;
}
.nav-link::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 100px;
    background: conic-gradient(
        from var(--price-angle, 0deg),
        #FF6600 0deg,
        #FF9FFC 72deg,
        #00D9FF 144deg,
        #5227FF 216deg,
        #FF9FFC 288deg,
        #FF6600 360deg
    );
    z-index: -2;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: price-border-spin 6s linear infinite;
}
.nav-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 100px;
    background: rgba(9, 7, 16, 0.92);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.nav-link:hover {
    color: rgba(255,255,255,0.92);
    border-color: transparent;
}
.nav-link:hover::before,
.nav-link:hover::after {
    opacity: 1;
}
.nav-link.active {
    color: #ffffff;
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08),
                inset 0 -1px 0 rgba(0,0,0,0.12);
}
.nav-link.active::before,
.nav-link.active::after {
    display: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 4px;
    border-left: 1px solid rgba(255,255,255,0.08);
    height: 32px;
}

/* ── Search Trigger ── */
.search-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    padding: 6px 12px;
    cursor: pointer;
    color: rgba(255,255,255,0.35);
    font-family: 'Geist', sans-serif;
    font-size: 0.75rem;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}
.search-trigger:hover {
    border-color: rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.6);
}
.search-trigger kbd {
    font-family: 'Geist Mono', monospace;
    font-size: 0.62rem;
    background: rgba(255,255,255,0.06);
    padding: 1px 5px;
    border-radius: 3px;
    color: rgba(255,255,255,0.22);
}

/* ── Search Overlay ── */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(5,5,20,0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.search-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.search-overlay-inner {
    width: 100%;
    max-width: 560px;
    padding: 0 20px;
}
.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(20,20,35,0.9);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.search-input-wrap .search-icon {
    flex-shrink: 0;
    color: rgba(255,255,255,0.3);
}
.search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: 'Geist', sans-serif;
    font-size: 1rem;
    font-weight: 400;
}
.search-input::placeholder {
    color: rgba(255,255,255,0.25);
}
.search-esc {
    font-family: 'Geist Mono', monospace;
    font-size: 0.6rem;
    background: rgba(255,255,255,0.06);
    padding: 2px 6px;
    border-radius: 3px;
    color: rgba(255,255,255,0.2);
    flex-shrink: 0;
}
.search-results {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: rgba(20,20,35,0.85);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
.search-result-item:hover {
    background: rgba(30,30,50,0.9);
    border-color: rgba(255,255,255,0.1);
}
.search-result-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
}
.search-result-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}
.search-result-category {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.25);
    font-weight: 500;
}
.search-result-prob {
    font-family: 'Geist Mono', monospace;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-accent, #00D9FF);
}
.search-no-results {
    padding: 16px 18px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.3);
    text-align: center;
}

/* ── Hamburger — hidden on desktop ── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    padding: 8px 10px;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
    pointer-events: auto;
}
.hamburger-line {
    display: block;
    width: 18px;
    height: 1.5px;
    background: rgba(255,255,255,0.55);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
/* Animated X state when open */
.nav-hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}
.nav-hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   5. HERO SECTION (Landing)
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    padding-top: 80px;
}

/* Split two-column hero layout */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
    min-height: 80vh;
    padding-top: 120px;
    padding-bottom: 80px;
    position: relative;
    z-index: 10;
    pointer-events: none;
    opacity: 1;
    transform: none;
}

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 100px;
    }
    .hero-right { order: -1; min-height: unset; }
    .hero-bull-svg {
        max-width: 320px;
        animation: bull-breathe 5s ease-in-out infinite;
    }
    .hero-actions { justify-content: center; }
    .hero-stats-row { justify-content: center; }
}
@keyframes bull-breathe {
    0%, 100% { transform: scale(1); opacity: 0.95; }
    50% { transform: scale(1.02); opacity: 1; }
}

.hero-left {
    pointer-events: auto;
}

.hero-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 20px;
    opacity: 0.7;
}

.hero-title, .hero-headline {
    font-family: 'Geist', sans-serif;
    font-size: clamp(2.8rem, 5.5vw, 4.4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #ffffff 35%,
        #00D9FF 55%,
        #FF6600 75%,
        #ffffff 100%
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: headline-sweep 8s ease infinite;
}

@keyframes headline-sweep {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-subtitle, .hero-tagline {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.72;
    color: rgba(255,255,255,0.52);
    max-width: 520px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
}

.hero-secondary-link {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.42);
    text-decoration: none;
    transition: color 0.2s;
    pointer-events: auto;
}
.hero-secondary-link:hover { color: rgba(255,255,255,0.8); }

.hero-stats-row {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.07);
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hero-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    font-family: 'Geist Mono', monospace;
}

.hero-stat-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: rgba(255,255,255,0.3);
    font-weight: 400;
}

.hero-stat-sep {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0;
    min-height: 480px;
    position: relative;
    pointer-events: auto;
}

.hero-bull-svg {
    width: 88%;
    max-width: 560px;
    height: auto;
    filter:
        drop-shadow(0 0 14px rgba(255,102,0,0.85))
        drop-shadow(0 0 40px rgba(255,102,0,0.45))
        drop-shadow(0 0 90px rgba(255,102,0,0.18))
        drop-shadow(0 0 10px rgba(0,191,255,0.55));
    animation: bull-float 5.5s ease-in-out infinite;
    transform-origin: center;
}

@keyframes bull-float {
    0%, 100% { transform: translateY(0px) rotate(-0.4deg); }
    50%       { transform: translateY(-20px) rotate(0.4deg); }
}

/* Legacy containers no longer used */
.logo-container, .content-container {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.logo-container.visible, .content-container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   6. BUTTONS (CRITICAL FIXES) (from OST-final)
   -------------------------------------------------------------------------- */
.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer !important; /* Force cursor */
    transition: var(--transition-bounce);
    border: none;
    outline: none;
    
    /* CRITICAL: Ensure interactivity override */
    pointer-events: auto !important;
    position: relative;
    z-index: 20;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 2px 8px rgba(0,0,0,0.15);
}

.btn-pill:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 4px 16px rgba(0,0,0,0.25);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: 9999px;
    font-family: 'Geist', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: #ffffff;
    background: rgba(0, 217, 255, 0.10);
    border: 1.5px solid var(--color-accent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.15),
        0 0 24px rgba(0,217,255,0.15);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    isolation: isolate;
    pointer-events: auto !important;
    z-index: 20;
}

.btn-primary:hover {
    background: rgba(0,217,255,0.20);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.20),
        0 0 40px rgba(0,217,255,0.28),
        0 0 80px rgba(0,217,255,0.12);
    transform: translateY(-2px);
    border-color: var(--color-accent);
    color: #ffffff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #FFF;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.2);
    border-color: #FFF;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: var(--glass-border);
    color: var(--color-text-main);
    transition: var(--transition-fast);
}

.btn-icon:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   7. PROJECT GRID & CARDS (Modified for XMR Predictions)
   -------------------------------------------------------------------------- */
.projects-page-header {
    padding: 120px 0 40px;
    text-align: center;
}

.filter-bar {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    background: var(--glass-bg);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border: var(--glass-border);
    align-items: center;
}

.search-container {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px 12px 48px;
    border-radius: var(--radius-md);
    color: #FFF;
    font-family: var(--font-primary);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
}

.projects-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--space-xl);
}

.sidebar {
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    border: var(--glass-border);
    padding: var(--space-lg);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-group {
    margin-bottom: var(--space-lg);
}

.filter-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    font-weight: 700;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    cursor: pointer;
    font-size: 0.9rem;
}

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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

/* === PREDICTION CARDS === */
.prediction-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: var(--space-lg);
    border-radius: 20px;
    isolation: isolate;
    background: transparent;
    border: none;
    overflow: visible;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    will-change: transform;
}

/* Animated conic-gradient border ring */
.prediction-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: conic-gradient(
        from var(--pill-angle),
        #5227FF  0deg,  #B19EEF  60deg,
        #FF9FFC  120deg, #00D9FF  180deg,
        #FF9FFC  240deg, #B19EEF  300deg,
        #5227FF  360deg
    );
    z-index: -2;
    opacity: 0.20;
    animation: pill-border-flow 22s linear infinite;
    transition: opacity 0.4s ease;
}

.prediction-card:nth-child(2)::before { animation-delay: -7s; }
.prediction-card:nth-child(3)::before { animation-delay: -14s; }

/* Liquid glass fill — specular catch-light tracks mouse via --tilt-x/y */
.prediction-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background:
        radial-gradient(
            ellipse at calc(var(--tilt-x, 0.15) * 100%) calc(var(--tilt-y, 0.10) * 100%),
            rgba(255, 255, 255, 0.10) 0%, transparent 55%
        ),
        rgba(12, 10, 22, 0.78);
    backdrop-filter: blur(28px) saturate(180%) brightness(1.05); /* Inherit from .project-card glass pattern */
    -webkit-backdrop-filter: blur(28px) saturate(180%) brightness(1.05);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18), /* top bright rim */
        inset 1px 0 0 rgba(255, 255, 255, 0.08),
        inset -1px 0 0 rgba(0, 0, 0, 0.12),
        inset 0 -2px 10px rgba(0, 0, 0, 0.22), /* bottom weight shadow */
        0 24px 64px rgba(0, 0, 0, 0.5),
        0 4px 16px rgba(82, 39, 255, 0.06);
    z-index: -1;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.prediction-card:hover {
    transform: translateY(-8px);
}

.prediction-card:hover::before {
    opacity: 0.75;
}

.prediction-card:hover::after {
    background:
        radial-gradient(
            ellipse at calc(var(--tilt-x, 0.15) * 100%) calc(var(--tilt-y, 0.10) * 100%),
            rgba(255, 255, 255, 0.15) 0%, transparent 55%
        ),
        rgba(18, 14, 30, 0.84);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        inset 1px 0 0 rgba(255, 255, 255, 0.12),
        inset -1px 0 0 rgba(0, 0, 0, 0.08),
        inset 0 -2px 10px rgba(0, 0, 0, 0.18),
        0 32px 80px rgba(0, 0, 0, 0.6),
        0 8px 32px rgba(82, 39, 255, 0.22),
        0 0 60px rgba(255, 159, 252, 0.06);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: var(--space-md);
    gap: var(--space-sm);
}

.prediction-title { /* Renamed from project-title */
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFF;
    margin-bottom: var(--space-xs);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    max-height: calc(1.3em * 2);
}

.prediction-desc { /* Renamed from project-desc */
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
    flex: 1 0 auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.6em * 3);
    line-height: 1.6;
}

.prediction-category { /* Renamed from tech-stack/tag */
    display: inline-flex;
    align-items: center;
    font-size: 0.70rem;
    font-family: var(--font-mono);
    background: rgba(177, 158, 239, 0.08);
    padding: 3px 10px;
    border-radius: 9999px;
    color: var(--color-tertiary);
    border: 1px solid rgba(177, 158, 239, 0.20);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
    white-space: nowrap;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: var(--space-md);
    margin-top: auto;
    flex-shrink: 0;
    gap: var(--space-sm);
    flex-wrap: nowrap;
}

.stats {
    display: flex;
    gap: var(--space-md);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --------------------------------------------------------------------------
   8. DETAIL PAGE (from OST-final)
   -------------------------------------------------------------------------- */
.detail-header {
    padding: 120px 0 60px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-2xl);
    padding: var(--space-2xl) 0;
}

.code-block {
    background: #0d0d0d;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.1);
    font-family: var(--font-mono);
    color: #a9b7c6;
    overflow-x: auto;
    margin: var(--space-md) 0;
}

/* --------------------------------------------------------------------------
   9. FORMS (Submit & Contact) (from OST-final)
   -------------------------------------------------------------------------- */
.form-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--color-text-main);
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px;
    border-radius: var(--radius-md);
    color: #FFF;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(82, 39, 255, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

/* --------------------------------------------------------------------------
   10. FAQ & LEARN (from OST-final)
   -------------------------------------------------------------------------- */
.faq-item {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.faq-question {
    padding: var(--space-lg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.faq-answer {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--color-text-muted);
    display: none;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    display: block;
    animation: fadeIn 0.3s ease;
}

.resource-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: var(--transition-normal);
}

.resource-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   11. FOOTER (from OST-final)
   -------------------------------------------------------------------------- */
.footer {
    background: rgba(5, 4, 10, 0.94);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 -8px 40px rgba(82, 39, 255, 0.07);
    padding: var(--space-2xl) 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
}

.footer-col h4 {
    color: #FFF;
    margin-bottom: var(--space-lg);
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: var(--space-sm);
}

.footer-col a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-col a:hover {
    color: var(--color-secondary);
}

/* ==========================================================================
   13. HOME PAGE — ENHANCED SECTIONS (from OST-final, with modifications)
   ========================================================================== */

/* Removed .noise-overlay and .shimmer-title as per PROHIBITED rules */

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: var(--space-2xl);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-top: 10px;
    margin-bottom: var(--space-2xl);
    text-align: center;
}

.view-all-link {
    font-size: 0.82rem;
    color: var(--color-tertiary);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.view-all-link:hover { color: var(--color-tertiary); }

/* ── Section orb dividers ── */
@keyframes orb-breathe {
    0%, 100% { opacity: 0.5;  transform: translateX(-50%) scale(1);    }
    50%       { opacity: 0.85; transform: translateX(-50%) scale(1.22); }
}

.section-orb {
    position: relative;
    height: 1px;
    overflow: visible;
    pointer-events: none;
    z-index: 0;
}

.section-orb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 260px;
    border-radius: 50%;
    filter: blur(65px);
    animation: orb-breathe 5s ease-in-out infinite;
}

.section-orb--purple::before  {
    background: radial-gradient(ellipse, rgba(82, 39, 255, 0.26)  0%, transparent 70%);
}
.section-orb--cyan::before {
    background: radial-gradient(ellipse, rgba(0, 217, 255, 0.22)   0%, transparent 70%);
    animation-delay: -2s;
}
.section-orb--magenta::before {
    background: radial-gradient(ellipse, rgba(255, 159, 252, 0.22) 0%, transparent 70%);
    animation-delay: -4s;
}

/* ════════════════════════════════════════
   PATHWAY — "How It Works" (from OST-final)
   ════════════════════════════════════════ */
.pathway-section {
    padding: var(--space-section) 0;
    text-align: center;
}

.pathway-grid {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-top: var(--space-2xl);
}

.pathway-step {
    position: relative;
    flex: 1;
    padding: var(--space-xl) var(--space-lg);
    border-radius: 20px;
    isolation: isolate;
    text-align: left;
    overflow: visible;
    transition: transform 0.3s ease;
}

.pathway-step:hover { transform: translateY(-5px); }

.pathway-step::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: conic-gradient(
        from var(--pill-angle),
        #5227FF 0deg, #B19EEF 60deg, #FF9FFC 120deg,
        #00D9FF 180deg, #FF9FFC 240deg, #B19EEF 300deg, #5227FF 360deg
    );
    z-index: -2;
    opacity: 0.18;
    animation: pill-border-flow 20s linear infinite;
    transition: opacity 0.35s ease;
}

.pathway-step:nth-child(3)::before { animation-delay: -6s; }
.pathway-step:nth-child(5)::before { animation-delay: -12s; }
.pathway-step:hover::before { opacity: 0.65; }

.pathway-step::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background:
        radial-gradient(ellipse at 15% 10%, rgba(255, 255, 255, 0.09) 0%, transparent 55%),
        rgba(11, 9, 20, 0.78);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 -2px 8px rgba(0, 0, 0, 0.20),
        0 16px 48px rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.pathway-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    flex-shrink: 0;
    width: 52px;
    gap: 4px;
}

.connector-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(82, 39, 255, 0.4), rgba(255, 159, 252, 0.4));
}

.connector-arrow {
    font-size: 1.3rem;
    line-height: 1;
    color: rgba(177, 158, 239, 0.55);
    margin-top: 2px;
}

.pathway-bg-number {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.035);
    letter-spacing: -0.05em;
    user-select: none;
    pointer-events: none;
}

.pathway-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    margin-bottom: var(--space-md);
    background: rgba(82, 39, 255, 0.16);
    border: 1px solid rgba(82, 39, 255, 0.32);
    color: var(--color-primary);
    box-shadow: 0 0 14px rgba(82, 39, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.pathway-icon-wrap.pathway-icon--learn {
    background: rgba(0, 217, 255, 0.12);
    border-color: rgba(0, 217, 255, 0.28);
    color: var(--color-accent);
    box-shadow: 0 0 14px rgba(0, 217, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.pathway-icon-wrap.pathway-icon--contribute {
    background: rgba(255, 159, 252, 0.12);
    border-color: rgba(255, 159, 252, 0.28);
    color: var(--color-secondary);
    box-shadow: 0 0 14px rgba(255, 159, 252, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.pathway-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.pathway-body {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.48);
    line-height: 1.68;
    margin-bottom: var(--space-md);
}

.pathway-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(177, 158, 239, 0.72);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.pathway-link:hover { color: var(--color-tertiary); }

/* ════════════════════════════════════════
   ACTIVITY TICKER (from OST-final)
   ════════════════════════════════════════ */
.ticker-section {
    overflow: hidden;
    padding: 13px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    position: relative;
}

.ticker-section::before,
.ticker-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.ticker-section::before {
    left: 0;
    background: linear-gradient(to right, var(--color-bg-dark) 40%, transparent);
}

.ticker-section::after {
    right: 0;
    background: linear-gradient(to left, var(--color-bg-dark) 40%, transparent);
}

.ticker-label {
    flex-shrink: 0;
    font-size: 0.63rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 159, 252, 0.65);
    padding: 0 20px;
    position: relative;
    z-index: 3;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

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

.ticker-track {
    display: flex;
    gap: 10px;
    width: max-content;
    animation: ticker-scroll 50s linear infinite;
    padding-left: 10px;
}

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

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.48);
    padding: 5px 13px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    cursor: default;
    transition: background 0.2s ease, color 0.2s ease;
}

.ticker-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.72);
}

.ticker-item i { font-size: 0.62rem; opacity: 0.55; }

.ticker-user {
    color: var(--color-tertiary);
    font-weight: 600;
}

.ticker-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* ════════════════════════════════════════
   FEATURED PROJECTS SECTION (from OST-final)
   ════════════════════════════════════════ */
.projects-section {
    padding: var(--space-section) 0;
}

/* Category browser */
.category-browser {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
    margin-bottom: var(--space-2xl);
}

.category-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 500;
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    user-select: none;
}

.category-pill:hover {
    color: rgba(255, 255, 255, 0.82);
    border-color: rgba(177, 158, 239, 0.30);
    background: rgba(177, 158, 239, 0.08);
}

.category-pill--active {
    color: #fff;
    background: rgba(82, 39, 255, 0.22);
    border-color: rgba(82, 39, 255, 0.50);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 12px rgba(82, 39, 255, 0.24);
}

/* ════════════════════════════════════════
   ARTICLES STRIP (from OST-final)
   ════════════════════════════════════════ */
.articles-strip-section {
    padding: var(--space-section) 0;
}

.articles-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.article-preview {
    position: relative;
    padding: var(--space-xl);
    border-radius: 20px;
    isolation: isolate;
    overflow: visible;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-preview:hover { transform: translateY(-4px); }

.article-preview::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: conic-gradient(
        from var(--pill-angle),
        #5227FF 0deg, #B19EEF 60deg, #FF9FFC 120deg,
        #00D9FF 180deg, #FF9FFC 240deg, #B19EEF 300deg, #5227FF 360deg
    );
    z-index: -2;
    opacity: 0.15;
    animation: pill-border-flow 18s linear infinite;
    transition: opacity 0.3s ease;
}

.article-preview:nth-child(2)::before { animation-delay: -9s; }
.article-preview:hover::before { opacity: 0.60; }

.article-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background:
        radial-gradient(ellipse at 10% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        rgba(11, 9, 20, 0.78);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -2px 8px rgba(0, 0, 0, 0.20),
        0 16px 48px rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.article-accent-bar {
    width: 32px;
    height: 3px;
    border-radius: 9999px;
    background: var(--accent, var(--color-primary));
    margin-bottom: var(--space-md);
    box-shadow: 0 0 10px var(--accent, var(--color-primary));
}

.article-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.article-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-tertiary);
    background: rgba(177, 158, 239, 0.10);
    border: 1px solid rgba(177, 158, 239, 0.20);
    padding: 2px 9px;
    border-radius: 9999px;
}

.article-read-time {
    font-size: 0.70rem;
    color: rgba(255, 255, 255, 0.30);
}

.article-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.42;
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

.article-excerpt {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.46);
    line-height: 1.72;
    flex-grow: 1;
    margin-bottom: var(--space-lg);
}

.article-read-link {
    font-size: 0.77rem;
    font-weight: 600;
    color: var(--color-tertiary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease, gap 0.2s ease;
}

.article-read-link:hover {
    color: var(--color-tertiary);
    gap: 10px;
}

/* ════════════════════════════════════════
   STATS REBUILD (from OST-final)
   ════════════════════════════════════════ */
.stats-section {
    padding: var(--space-section) 0;
    background: none;
    border: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    position: relative;
    padding: 44px 24px 36px;
    border-radius: 20px;
    text-align: center;
    isolation: isolate;
    overflow: visible;
    transition: transform 0.3s ease;
}

.stat-card:hover { transform: translateY(-4px); }

/* Animated gradient border */
.stat-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: conic-gradient(
        from var(--pill-angle),
        #5227FF 0deg, #B19EEF 60deg, #FF9FFC 120deg,
        #00D9FF 180deg, #FF9FFC 240deg, #B19EEF 300deg, #5227FF 360deg
    );
    z-index: -2;
    opacity: 0.18;
    animation: pill-border-flow 18s linear infinite;
    transition: opacity 0.3s ease;
}

.stat-card:nth-child(1)::before { animation-delay: 0s; }
.stat-card:nth-child(2)::before { animation-delay: -4.5s; }
.stat-card:nth-child(3)::before { animation-delay: -9s; }
.stat-card:nth-child(4)::before { animation-delay: -13.5s; }
.stat-card:hover::before { opacity: 0.65; }

/* Shared glass fill properties */
.stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 -2px 10px rgba(0, 0, 0, 0.22),
        0 16px 48px rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* Per-card background with unique glow colour */
.stat-card:nth-child(1)::after {
    background:
        radial-gradient(ellipse at 50% 115%, rgba(255, 159, 252, 0.16) 0%, transparent 58%),
        radial-gradient(ellipse at 15% 5%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        rgba(11, 9, 20, 0.80);
}
.stat-card:nth-child(2)::after {
    background:
        radial-gradient(ellipse at 50% 115%, rgba(82, 39, 255, 0.18) 0%, transparent 58%),
        radial-gradient(ellipse at 15% 5%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        rgba(11, 9, 20, 0.80);
}
.stat-card:nth-child(3)::after {
    background:
        radial-gradient(ellipse at 50% 115%, rgba(177, 158, 239, 0.16) 0%, transparent 58%),
        radial-gradient(ellipse at 15% 5%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        rgba(11, 9, 20, 0.80);
}
.stat-card:nth-child(4)::after {
    background:
        radial-gradient(ellipse at 50% 115%, rgba(0, 217, 255, 0.16) 0%, transparent 58%),
        radial-gradient(ellipse at 15% 5%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        rgba(11, 9, 20, 0.80);
}

.stat-number {
    font-family: var(--font-mono);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.stat-card:nth-child(1) .stat-number { color: var(--color-secondary); }
.stat-card:nth-child(2) .stat-number { color: var(--color-primary); filter: brightness(1.6); }
.stat-card:nth-child(3) .stat-number { color: var(--color-tertiary); }
.stat-card:nth-child(4) .stat-number { color: var(--color-accent); }

.stat-label {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.36);
}

/* ════════════════════════════════════════
   CTA — "Join the Movement" (from OST-final)
   ════════════════════════════════════════ */
.cta-section {
    padding: var(--space-section) 0 var(--space-3xl);
}

.cta-glass {
    position: relative;
    padding: var(--space-3xl) var(--space-2xl);
    border-radius: 28px;
    isolation: isolate;
    overflow: visible;
    text-align: center;
}

/* Thick flowing gradient border */
.cta-glass::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 31px;
    background: conic-gradient(
        from var(--pill-angle),
        #5227FF 0deg, #B19EEF 60deg, #FF9FFC 120deg,
        #00D9FF 180deg, #FF9FFC 240deg, #B19EEF 300deg, #5227FF 360deg
    );
    z-index: -2;
    opacity: 0.52;
    animation: pill-border-flow 12s linear infinite;
}

/* Glass fill */
.cta-glass::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    background:
        radial-gradient(ellipse at 20% 0%,   rgba(82, 39, 255, 0.12)  0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(255, 159, 252, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse at 15% 10%,  rgba(255, 255, 255, 0.07) 0%, transparent 45%),
        rgba(9, 7, 18, 0.88);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 -2px 12px rgba(0, 0, 0, 0.30),
        0 40px 100px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(82, 39, 255, 0.12);
    z-index: -1;
}

.cta-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, #fff 30%, var(--color-tertiary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    max-width: 520px;
    margin: 0 auto var(--space-xl);
    line-height: 1.72;
}

.cta-form {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.cta-input-wrap {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 5px 5px 5px 22px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
    max-width: 440px;
    width: 100%;
}

.cta-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.88rem;
    font-family: var(--font-primary);
    min-width: 0;
}

.cta-input::placeholder { color: rgba(255, 255, 255, 0.28); }

.cta-btn {
    padding: 10px 22px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.cta-disclaimer {
    font-size: 0.70rem;
    color: rgba(255, 255, 255, 0.22);
    letter-spacing: 0.01em;
}

/* ════════════════════════════════════════
   RESPONSIVE — new sections (from OST-final)
   ════════════════════════════════════════ */
@media (max-width: 1024px) {
    .pathway-grid {
        flex-direction: column;
        gap: var(--space-md);
    }
    .pathway-connector { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .articles-strip { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .cta-title { font-size: 2rem; }
    .cta-input-wrap {
        flex-direction: column;
        border-radius: 16px;
        padding: 14px 16px;
    }
    .cta-btn { width: 100%; border-radius: 10px; }

    /* Shrink the section orbs — 500px wide orbs on a 375px screen bleed sideways */
    .section-orb::before {
        width: 280px;
        height: 180px;
    }

    /* Shrink ticker fade masks — 100px each side eats 53% of a 375px screen */
    .ticker-section::before,
    .ticker-section::after {
        width: 40px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .stat-card {
        padding: 24px 12px 20px;
    }
    .stat-number {
        font-size: 2rem;
        letter-spacing: -0.02em;
    }
    .stat-label {
        font-size: 0.58rem;
        letter-spacing: 0.1em;
    }
    .category-browser { gap: 6px; }
}

@media (max-width: 360px) {
    /* Single column on truly tiny screens */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .stat-number { font-size: 2.4rem; }
    .stat-card { padding: 28px 20px 24px; }
}

/* --------------------------------------------------------------------------
   12. RESPONSIVE (from OST-final)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .projects-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: relative !important;
        top: 0 !important;
        margin-bottom: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .hero-title, .hero-headline {
        font-size: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   🚨 EMERGENCY LANDING PAGE OVERRIDES 🚨 (from OST-final)
   Targeting: body.landing-page and its children exclusively
   ========================================================================== */

body.landing-page {
    background-color: #000;
    color: #fff;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

body.landing-page .hero-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

/* webgl-mount uses the generic position:fixed rule for all pages */

body.landing-page .hero-content {
    position: relative;
    z-index: 20;
    max-width: 1280px;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: none;
}

/* LOGO + CONTENT: CSS-driven fade-in, no JS required for visibility */
body.landing-page .logo-container {
    margin-bottom: 40px;
    pointer-events: auto;
    animation: landingFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

body.landing-page .content-container {
    pointer-events: auto;
    animation: landingFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

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

/* Override the generic opacity:0 initial state */
body.landing-page .logo-container,
body.landing-page .content-container {
    opacity: 1; /* animation fill-mode:both handles the fade, so default is visible */
}

body.landing-page .ost-logo {
    display: block;
    width: 160px;
    height: auto;
    /* aspect-ratio hints iOS Safari for correct auto-height on SVG <img> */
    aspect-ratio: 268 / 311;
    /* ostref-white.svg is already white — no filter needed */
    filter: drop-shadow(0 0 24px rgba(82, 39, 255, 0.7));
    -webkit-filter: drop-shadow(0 0 24px rgba(82, 39, 255, 0.7));
}

/* TEXT FIX */
body.landing-page .hero-headline {
    font-family: 'Geist', sans-serif !important; /* Updated font */
    font-weight: 800;
    font-size: 4rem; /* Desktop */
    line-height: 1.1;
    color: #FFFFFF !important; /* Force White */
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
    margin-bottom: 24px;
    pointer-events: auto;
}

body.landing-page .hero-tagline {
    font-family: 'Geist', sans-serif !important; /* Updated font */
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 48px;
    pointer-events: auto;
}

/* BUTTONS FIX */
body.landing-page .hero-actions {
    pointer-events: auto;
}

body.landing-page .btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    border-radius: 9999px;
    text-decoration: none;
    font-family: 'Geist', sans-serif !important; /* Updated font */
    font-weight: 600;
    font-size: 16px;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Primary Button — glass pill (inherits from .btn-primary base) */

/* Secondary Button */
body.landing-page .btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white !important;
    border: 1px solid rgba(255,255,255,0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

body.landing-page .btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.2);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    body.landing-page .hero-headline {
        font-size: 2.5rem;
    }
    body.landing-page .ost-logo {
        width: 120px;
        filter: drop-shadow(0 0 16px rgba(82, 39, 255, 0.6));
        -webkit-filter: drop-shadow(0 0 16px rgba(82, 39, 255, 0.6));
    }
    body.landing-page .hero-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   14. ARTICLES PAGE — AUDIENCE SECTIONS (from OST-final)
   ========================================================================== */

/* ── Tab Bar ─────────────────────────────────────────────────────────────── */
.articles-tabs {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px 20px;
    flex-wrap: wrap;
}

.articles-tab {
    padding: 8px 20px;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.22s ease;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    background: rgba(20, 15, 32, 0.6);
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    white-space: nowrap;
}

.articles-tab:hover {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(30, 24, 48, 0.7);
}

.articles-tab[data-for="beginner"].active {
    color: #00D9FF;
    border-color: rgba(0, 217, 255, 0.5);
    background: rgba(0, 217, 255, 0.1);
    box-shadow: 0 0 14px rgba(0, 217, 255, 0.22), inset 0 1px 0 rgba(0, 217, 255, 0.15);
}

.articles-tab[data-for="new-dev"].active {
    color: #B19EEF;
    border-color: rgba(177, 158, 239, 0.5);
    background: rgba(177, 158, 239, 0.1);
    box-shadow: 0 0 14px rgba(177, 158, 239, 0.22), inset 0 1px 0 rgba(177, 158, 239, 0.15);
}

.articles-tab[data-for="developer"].active {
    color: #7B5FFF;
    border-color: rgba(123, 95, 255, 0.5);
    background: rgba(123, 95, 255, 0.1);
    box-shadow: 0 0 14px rgba(123, 95, 255, 0.28), inset 0 1px 0 rgba(123, 95, 255, 0.15);
}

.articles-tab[data-for="maintainer"].active {
    color: #FF9FFC;
    border-color: rgba(255, 159, 252, 0.5);
    background: rgba(255, 159, 252, 0.1);
    box-shadow: 0 0 14px rgba(255, 159, 252, 0.22), inset 0 1px 0 rgba(255, 159, 252, 0.15);
}

/* ── Audience Sections ───────────────────────────────────────────────────── */
.audience-section {
    padding: 72px 0;
    position: relative;
    overflow: hidden;
}

.audience-section[data-audience="beginner"] {
    --section-color: #00D9FF;
    --section-color-rgb: 0, 217, 255;
}

.audience-section[data-audience="new-dev"] {
    --section-color: #B19EEF;
    --section-color-rgb: 177, 158, 239;
}

.audience-section[data-audience="developer"] {
    --section-color: #7B5FFF;
    --section-color-rgb: 123, 95, 255;
}

.audience-section[data-audience="maintainer"] {
    --section-color: #FF9FFC;
    --section-color-rgb: 255, 159, 252;
}

/* Left edge accent line */
.audience-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--section-color, #5227FF) 25%,
        var(--section-color, #5227FF) 75%,
        transparent 100%
    );
    opacity: 0.35;
}

/* Subtle separator between sections */
.audience-section + .audience-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Section Header ──────────────────────────────────────────────────────── */
.audience-header {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
    position: relative;
}

.audience-header-row {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    position: relative;
}

.audience-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px 5px 10px;
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(var(--section-color-rgb, 82, 39, 255), 0.12);
    border: 1px solid rgba(var(--section-color-rgb, 82, 39, 255), 0.32);
    color: var(--section-color, #5227FF);
    box-shadow:
        0 0 16px rgba(var(--section-color-rgb, 82, 39, 255), 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    flex-shrink: 0;
}

.audience-badge i {
    font-size: 0.78rem;
}

.audience-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-text-main);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.audience-subtitle {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    max-width: 600px;
    margin-top: 2px;
}

.audience-bg-text {
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(4rem, 9vw, 8rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    color: var(--section-color, #5227FF);
    opacity: 0.04;
    pointer-events: none;
    white-space: nowrap;
    user-select: none;
    line-height: 1;
    z-index: 0;
}

.audience-divider {
    height: 1px;
    background: linear-gradient(
        to right,
        rgba(var(--section-color-rgb, 82, 39, 255), 0.45) 0%,
        rgba(var(--section-color-rgb, 82, 39, 255), 0.1) 40%,
        transparent 70%
    );
    margin-bottom: 36px;
}

/* ── Article Cards ───────────────────────────────────────────────────────── */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}

.article-card {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    isolation: isolate;
    overflow: visible;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    color: inherit;
}

.article-card:hover {
    transform: translateY(-6px);
}

/* Animated gradient border */
.article-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius-lg) + 2px);
    background: conic-gradient(
        from var(--pill-angle),
        rgba(var(--section-color-rgb, 82, 39, 255), 0.95) 0deg,
        rgba(177, 158, 239, 0.5) 90deg,
        rgba(0, 217, 255, 0.35) 180deg,
        rgba(177, 158, 239, 0.5) 270deg,
        rgba(var(--section-color-rgb, 82, 39, 255), 0.95) 360deg
    );
    z-index: -2;
    animation: pill-border-flow 22s linear infinite;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.article-card:hover::before {
    opacity: 0.9;
}

/* Glass fill */
.article-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: rgba(10, 7, 22, 0.88);
    backdrop-filter: blur(24px) saturate(160%) brightness(1.04);
    box-shadow:
        inset 0 1.5px 0 rgba(255, 255, 255, 0.13),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4),
        inset 0 2px 8px rgba(255, 255, 255, 0.03),
        0 10px 35px rgba(0, 0, 0, 0.5),
        0 3px 10px rgba(var(--section-color-rgb, 82, 39, 255), 0.06);
    z-index: -1;
    transition: box-shadow 0.25s ease;
}

.article-card:hover::after {
    box-shadow:
        inset 0 1.5px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5),
        inset 0 2px 10px rgba(255, 255, 255, 0.05),
        0 18px 55px rgba(0, 0, 0, 0.65),
        0 5px 18px rgba(var(--section-color-rgb, 82, 39, 255), 0.13);
}

/* Phase offsets so cards don't all pulse in sync */
.article-card:nth-child(2)::before { animation-delay: -7s; }
.article-card:nth-child(3)::before { animation-delay: -14s; }
.article-card:nth-child(4)::before { animation-delay: -3s; }
.article-card:nth-child(5)::before { animation-delay: -11s; }

.article-card-icon {
    font-size: 1.35rem;
    color: var(--section-color, #5227FF);
    filter: drop-shadow(0 0 7px rgba(var(--section-color-rgb, 82, 39, 255), 0.5));
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--section-color-rgb, 82, 39, 255), 0.1);
    border-radius: 11px;
    border: 1px solid rgba(var(--section-color-rgb, 82, 39, 255), 0.22);
    flex-shrink: 0;
}

.article-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-main);
    letter-spacing: -0.02em;
    line-height: 1.35;
    position: relative;
    z-index: 1;
}

.article-card-excerpt {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    flex: 1;
    position: relative;
    z-index: 1;
}

.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
    position: relative;
    z-index: 1;
}

.article-duration {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.38);
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    border-radius: 9999px;
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    background: rgba(var(--section-color-rgb, 82, 39, 255), 0.13);
    border: 1px solid rgba(var(--section-color-rgb, 82, 39, 255), 0.35);
    color: var(--section-color, #5227FF);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.article-read-btn:hover {
    background: rgba(var(--section-color-rgb, 82, 39, 255), 0.25);
    box-shadow: 0 0 12px rgba(var(--section-color-rgb, 82, 39, 255), 0.22);
    transform: translateX(2px);
}

.article-read-btn i {
    font-size: 0.6rem;
    transition: transform 0.2s ease;
}

.article-read-btn:hover i {
    transform: translateX(3px);
}

.article-difficulty-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 9999px;
    background: rgba(var(--section-color-rgb, 82, 39, 255), 0.1);
    color: var(--section-color, #5227FF);
    border: 1px solid rgba(var(--section-color-rgb, 82, 39, 255), 0.22);
    position: relative;
    z-index: 1;
    align-self: flex-start;
}

/* ── Articles Hero ───────────────────────────────────────────────────────── */
.articles-hero {
    padding-top: 140px;
    padding-bottom: 48px;
    text-align: center;
}

.articles-hero .hero-title {
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    margin-bottom: 16px;
}

.articles-hero .hero-subtitle {
    max-width: 580px;
    margin: 0 auto 32px;
}

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

    .articles-tabs {
        gap: 6px;
        padding: 10px 16px 16px;
    }

    .articles-tab {
        padding: 7px 14px;
        font-size: 0.72rem;
    }

    .audience-title {
        font-size: 1.7rem;
    }

    .audience-bg-text {
        display: none;
    }

    .audience-section {
        padding: 48px 0;
    }
}

@media (max-width: 480px) {
    .articles-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

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

    .articles-tab {
        flex-shrink: 0;
    }
}

/* ==========================================================================
   15. REDUCED MOTION — accessibility + battery (from OST-final)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    /* Kill all rotating gradient border animations */
    .nav-link::before,
    .prediction-card::before, /* Updated */
    .pathway-step::before,
    .article-preview::before,
    .stat-card::before,
    .cta-glass::before,
    .article-card::before { animation: none; }

    /* Kill ticker auto-scroll */
    .ticker-track { animation: none; }

    /* Kill orb pulse */
    .section-orb::before { animation: none; }

    /* Kill shimmer sweep */
    /* .shimmer-title { animation: none; } Removed entirely */

    /* Kill landing page fade-in animations — show content immediately */
    body.landing-page .logo-container,
    body.landing-page .content-container {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   MOBILE RESPONSIVENESS PATCHES (from OST-final)
   Audit Date: 2026-02-16
   ========================================================================== */

/* 1. GLOBAL NAVIGATION — pill nav responsive styles live in section 4 */

/* 2. LAYOUT & GRID OVERRIDES (Critical) */
@media (max-width: 768px) {
    .projects-grid {
        /* Override inline minmax(350px) to prevent scroll on 320px screens */
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
        gap: 24px !important;
    }

    /* Force 2-column layouts to stack */
    .projects-layout, 
    .detail-grid,
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    .sidebar {
        position: relative !important;
        top: 0 !important;
        margin-bottom: var(--space-lg);
    }
    
    /* Adjust hero section padding for mobile to clear fixed navbar (~70px tall + 18px top offset) */
    .hero-section {
        padding-top: 90px !important;
    }
}

/* 3. TYPOGRAPHY SCALING */
@media (max-width: 768px) {
    h1.hero-title, .hero-headline {
        font-size: 2.25rem !important; /* Scale down from 3.5rem */
        line-height: 1.2 !important;
        word-wrap: break-word;
        margin-top: 0 !important; /* Ensure no default margin pushes it too high */
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        padding: 0 16px;
    }
}

/* 4. UI ELEMENT ADJUSTMENTS */
@media (max-width: 480px) {
    .search-container {
        min-width: 100% !important;
    }
    .container {
        padding: 0 16px;
    }
    input, select, textarea {
        font-size: 16px !important; /* Prevent iOS zoom */
    }
}

/* 6. UTILITY CLASSES */
.text-center {
    text-align: center;
}

/* 5. LANDING PAGE - CONSTRAINED MOBILE VERSION (Amplification) */
@media (max-width: 480px) {
    body.landing-page .hero-headline {
        font-size: 1.75rem !important; /* Much smaller for 320px screens */
        margin-bottom: 16px;
    }
    
    body.landing-page .ost-logo {
        width: 90px !important;
    }
    
    body.landing-page .hero-tagline {
        font-size: 0.95rem !important;
        line-height: 1.5;
        margin-bottom: 32px;
    }
    
    body.landing-page .hero-actions {
        gap: 12px;
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
    }
    
    body.landing-page .btn-pill {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%; /* Full width buttons */
    }
}

/* === 17. PREDICTION MARKET UI === */
/* Styles for probability display, filter bars, stat bars, etc. */
.xmr-price-section, .featured-predictions {
    position: relative;
    z-index: 10;
}

.xmr-price-display {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 800;
    color: var(--xmr-orange);
    text-shadow: 0 0 15px var(--xmr-orange-glow);
    margin-top: var(--space-md);
}

.prediction-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.live-stats-bar-section {
    padding: var(--space-xl) 0;
}

.live-stats-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-xl);
    font-family: var(--font-mono);
    color: var(--color-text-muted);
}

.live-stats-bar div {
    text-align: center;
    padding: var(--space-sm);
}

.live-stats-bar .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-top: var(--space-xs);
}

.probability-display {
    position: relative;
    width: 150px;
    height: 150px;
    margin: var(--space-xl) auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    box-shadow: var(--glass-shadow);
    border: var(--glass-border);
    overflow: hidden;
}

.probability-arc {
    position: absolute;
    inset: 5px; /* Creates a ring effect */
    border-radius: 50%;
    background: conic-gradient(
        var(--color-primary) 0%,
        var(--color-primary) 35%,
        var(--color-accent) 35%,
        var(--color-accent) 65%,
        var(--xmr-orange) 65%,
        var(--xmr-orange) calc(var(--prob, 0) * 1%),
        rgba(255,255,255,0.08) calc(var(--prob, 0) * 1%)
    );
    transition: all 800ms cubic-bezier(0.23, 1, 0.32, 1);
}

.probability-arc::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--xmr-deep); /* Inner dark fill */
    z-index: 1;
}

.probability-percentage {
    position: relative;
    z-index: 2;
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text-main);
}

/* === 18. MONERO ACCENT LAYER === */
/* Specific styling for Monero orange elements, ensuring strict usage */
.xmr-logo-lockup {
    /* Placeholder for Monero logo styling */
    color: var(--xmr-orange);
    text-shadow: 0 0 10px var(--xmr-orange-glow);
}

/* Specific button styling for XMR-related CTAs that trigger orange */
.btn-primary.xmr-cta {
    background: var(--xmr-orange);
    box-shadow: 0 4px 20px var(--xmr-orange-glow);
}
.btn-primary.xmr-cta:hover {
    background: color-mix(in srgb, var(--xmr-orange) 85%, white); /* Slightly lighter orange */
    box-shadow: 0 8px 30px var(--xmr-orange-glow);
}

/* Resolution state indicators, if text-based */
.prediction-state {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 9999px;
    border: 1px solid;
    text-transform: uppercase;
}

.prediction-state.state-open { 
    color: var(--state-open);
    border-color: var(--state-open);
    background: rgba(0, 217, 255, 0.10);
}
.prediction-state.state-resolving { 
    color: var(--state-resolving);
    border-color: var(--state-resolving);
    background: rgba(255, 102, 0, 0.10);
}
.prediction-state.state-resolved-yes { 
    color: var(--state-resolved-yes);
    border-color: var(--state-resolved-yes);
    background: rgba(0, 217, 126, 0.10);
}
.prediction-state.state-resolved-no { 
    color: var(--state-resolved-no);
    border-color: var(--state-resolved-no);
    background: rgba(255, 77, 106, 0.10);
}
.prediction-state.state-void { 
    color: var(--state-void);
    border-color: var(--state-void);
    background: rgba(255, 255, 255, 0.04);
}

/* Mobile adjustments specific to XMR Predictions UI */
@media (max-width: 768px) {
    .xmr-price-display {
        font-size: 2rem;
    }
    .live-stats-bar {
        flex-direction: column;
        gap: var(--space-sm);
    }
    .live-stats-bar .stat-value {
        font-size: 1.2rem;
    }
}

/* === PHASE 1 ADDITIONS === */

/* 1. YES / NO BUTTONS ON EVERY PREDICTION CARD */
.card-action-row {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.btn-outcome {
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.23, 1, 0.32, 1);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  background: rgba(20, 20, 30, 0.5);
  border: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.btn-outcome:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-outcome:active {
  transform: translateY(0) scale(0.98);
}

.btn-yes {
  border: 1px solid rgba(0, 217, 255, 0.35);
  color: var(--color-accent);
  background: rgba(0, 217, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 0 0 rgba(0, 217, 255, 0);
}

.btn-yes:hover {
  background: rgba(0, 217, 255, 0.14);
  border-color: rgba(0, 217, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 0 20px rgba(0, 217, 255, 0.18), 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-no {
  border: 1px solid rgba(255, 100, 100, 0.2);
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 100, 100, 0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 0 0 rgba(255, 100, 100, 0);
}

.btn-no:hover {
  background: rgba(255, 100, 100, 0.12);
  border-color: rgba(255, 100, 100, 0.4);
  color: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 0 20px rgba(255, 100, 100, 0.15), 0 4px 12px rgba(0, 0, 0, 0.25);
}

.outcome-price {
  margin-left: 4px;
  opacity: 0.8;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* 2. PROBABILITY SPLIT BAR ON EVERY CARD */
.prob-split-bar {
  height: 4px;
  border-radius: 9999px;
  overflow: hidden;
  display: flex;
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.prob-yes-fill {
  background: var(--color-accent);
  transition: width 800ms cubic-bezier(0.23, 1, 0.32, 1);
}

.prob-no-fill {
  background: rgba(255, 255, 255, 0.12);
  transition: width 800ms cubic-bezier(0.23, 1, 0.32, 1);
}

.prob-split-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
}

.prob-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  opacity: 0.6;
}

.yes-label {
  color: var(--color-accent);
}

.no-label {
  color: rgba(255, 255, 255, 0.4);
}

/* 2b. DUAL YES/NO PROBABILITY BARS (replaces single bar on card grid) */
.prob-dual-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
  margin-bottom: 6px;
}
.prob-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.prob-bar-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  width: 24px;
  flex-shrink: 0;
}
.prob-bar-label.yes { color: var(--color-accent); }
.prob-bar-label.no { color: #FF6B6B; }
.prob-bar-track {
  flex: 1;
  height: 7px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}
.prob-bar-fill-yes {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, rgba(0,217,255,0.8), rgba(0,217,255,0.45));
  box-shadow: 0 0 10px rgba(0,217,255,0.25), 0 0 3px rgba(0,217,255,0.4);
  transition: width 800ms cubic-bezier(0.23, 1, 0.32, 1);
}
.prob-bar-fill-no {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, rgba(255,107,107,0.8), rgba(255,107,107,0.45));
  box-shadow: 0 0 10px rgba(255,107,107,0.2), 0 0 3px rgba(255,107,107,0.35);
  transition: width 800ms cubic-bezier(0.23, 1, 0.32, 1);
}
.prob-bar-pct {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  width: 34px;
  text-align: right;
  flex-shrink: 0;
  opacity: 0.7;
}

/* Hide descriptions on card grid (kept on detail page) */
.predictions-page .prediction-desc,
.landing-page .prediction-desc {
  display: none;
}

/* 3. RESOLUTION STATUS BADGE ON EVERY CARD */
.resolution-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 9999px;
  border: 1px solid currentColor;
  text-transform: uppercase;
  z-index: 2; /* Ensure it's above card content */
}

/* State-specific styles */
.resolution-badge.state-open {
  color: var(--state-open);
  background: rgba(0, 217, 255, 0.10);
}
.resolution-badge.state-resolving {
  color: var(--state-resolving);
  background: rgba(255, 102, 0, 0.10);
}
.resolution-badge.state-resolved-yes {
  color: var(--state-resolved-yes);
  background: rgba(0, 217, 126, 0.10);
}
.resolution-badge.state-resolved-no {
  color: var(--state-resolved-no);
  background: rgba(255, 77, 106, 0.10);
}
.resolution-badge.state-void {
  color: var(--state-void);
  background: rgba(255, 255, 255, 0.04);
}

/* 4. VOLUME DISPLAY ON EVERY CARD */
.market-volume {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
  flex-shrink: 1;
}

.volume-amount {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}

.volume-label {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* 5. RESOLUTION COUNTDOWN TIMER */
.countdown-display {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: var(--space-sm);
}

.countdown-display.urgent {
  color: var(--state-resolving);
}

.countdown-display.urgent .countdown-value {
  animation: urgentPulse 2s ease-in-out infinite;
}

@keyframes urgentPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Glass card for modal content */
.glass-card {
    background: rgba(255,255,255,0.032);
    backdrop-filter: blur(28px) saturate(180%) brightness(1.04);
    -webkit-backdrop-filter: blur(28px) saturate(180%) brightness(1.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    box-shadow:
      inset 0 1.5px 0 rgba(255,255,255,0.10),
      inset 0 -1px 0 rgba(0,0,0,0.20),
      0 4px 6px rgba(0,0,0,0.12),
      0 12px 40px rgba(0,0,0,0.28);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
@media (hover: hover) {
  .glass-card:hover {
    background: rgba(255,255,255,0.042);
    border-color: rgba(255,255,255,0.10);
    transform: translateY(-2px);
    box-shadow:
      inset 0 1.5px 0 rgba(255,255,255,0.13),
      inset 0 -1px 0 rgba(0,0,0,0.20),
      0 4px 6px rgba(0,0,0,0.12),
      0 20px 60px rgba(0,0,0,0.38);
  }
}

/* 6. POSITION ENTRY MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9000;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.position-modal {
  max-width: 440px;
  width: calc(100% - 40px);
  padding: 32px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.modal-overlay.open .position-modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.modal-close:hover {
  color: rgba(255, 255, 255, 0.8);
}

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

.modal-side-toggle {
  display: flex;
  gap: 0;
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 8px;
  width: fit-content;
}

.modal-side-toggle .side-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 22px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.modal-side-toggle .side-btn.side-yes.active {
  background: rgba(0, 217, 255, 0.15);
  color: var(--color-accent);
  box-shadow: inset 0 0 12px rgba(0, 217, 255, 0.1);
}

.modal-side-toggle .side-btn.side-no.active {
  background: rgba(255, 77, 106, 0.15);
  color: #FF4D6A;
  box-shadow: inset 0 0 12px rgba(255, 77, 106, 0.1);
}

.modal-side-toggle .side-btn:hover:not(.active) {
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
}

.modal-market-title {
  font-family: var(--font-primary); /* Geist */
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-top: 10px;
  line-height: 1.35;
}

.modal-prob-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 18px;
}

.modal-prob-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.42);
}

.modal-prob-value {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.modal-input-group {
  margin-bottom: 16px;
}

.modal-input-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
  display: block;
  margin-bottom: 8px;
}

.modal-input-wrap {
  position: relative;
}

.modal-amount-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 52px 12px 16px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: #fff;
  outline: none;
}

.modal-amount-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.12);
}

.modal-input-currency {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

.modal-quick-amounts {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.quick-amt {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 5px 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.quick-amt:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-1px);
}

.quick-amt-max {
  background: rgba(0, 217, 255, 0.08);
  border-color: rgba(0, 217, 255, 0.2);
  color: var(--color-accent);
}

.quick-amt-max:hover {
  background: rgba(0, 217, 255, 0.15);
  color: var(--color-accent);
}

.modal-impact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md, 8px);
  margin-bottom: 12px;
}

.modal-impact-label {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.4);
  flex: 1;
}

.modal-impact-value {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
}

.modal-impact-delta {
  font-size: 0.72rem;
  font-weight: 600;
}

.modal-impact-delta.positive { color: #00D97E; }
.modal-impact-delta.negative { color: #FF4D6A; }

.modal-balance-warn {
  color: #FF4D6A;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  margin-top: 6px;
  margin-bottom: 0;
}

.modal-calc-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}
@media (max-width: 480px) {
  .modal-calc-row { grid-template-columns: repeat(2, 1fr); }
}
.modal-calc-value.profit { color: #00D97E; }

.modal-calc-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-calc-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.28);
}

.modal-calc-value {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.modal-calc-value.accent {
  color: var(--color-accent);
}

.modal-calc-value.muted {
  color: rgba(255, 255, 255, 0.35);
}

.modal-slippage-warn {
  font-size: 0.74rem;
  color: var(--xmr-orange);
  background: rgba(255, 102, 0, 0.08);
  border: 1px solid rgba(255, 102, 0, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 14px;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.modal-cancel {
    height: 36px;
    padding: 0 18px;
    border-radius: 9999px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.55);
}
.modal-cancel:hover {
    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.75);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-confirm {
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  transition: all 0.2s ease;
}

.modal-confirm:hover {
  background: rgba(0, 217, 255, 0.2);
  box-shadow: 0 0 16px rgba(0, 217, 255, 0.22);
}
.modal-confirm:disabled,
.modal-confirm.loading {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 217, 255, 0.3);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

.modal-balance-display {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 14px;
  padding: 9px 14px;
  background: rgba(255, 102, 0, 0.06);
  border: 1px solid rgba(255, 102, 0, 0.15);
  border-radius: 8px;
  font-family: var(--font-mono);
}
.modal-error-banner {
  font-size: 0.82rem;
  color: #FF4D6A;
  background: rgba(255, 77, 106, 0.08);
  border: 1px solid rgba(255, 77, 106, 0.2);
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 14px;
  text-align: center;
}
.modal-success-banner {
  font-size: 0.88rem;
  color: #00D97E;
  background: rgba(0, 217, 126, 0.08);
  border: 1px solid rgba(0, 217, 126, 0.2);
  border-radius: 8px;
  padding: 14px;
  margin-top: 14px;
  text-align: center;
  animation: modal-success-in 0.3s ease-out;
}
.modal-success-icon { font-size: 1.2rem; margin-right: 6px; }
@keyframes modal-success-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    pointer-events: none; /* Allow clicks to pass through */
}

.toast {
    background: rgba(20, 20, 30, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 18px;
    font-family: var(--font-primary);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
    transform: translateY(60px); /* Start off-screen */
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    pointer-events: all;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 250px;
    max-width: 350px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-left: 3px solid var(--color-accent);
}

.toast.error {
    border-left: 3px solid var(--state-resolved-no);
}

.toast.info {
    border-left: 3px solid rgba(255, 255, 255, 0.22); /* Muted */
}

.toast-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.toast.success .toast-icon { color: var(--color-accent); }
.toast.error .toast-icon { color: var(--state-resolved-no); }
.toast.info .toast-icon { color: rgba(255, 255, 255, 0.55); }

.toast-message {
    flex-grow: 1;
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
    .position-modal {
        max-height: 90vh;
        max-height: 90dvh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Auth dropdown: right-align on mobile */
    .auth-dropdown {
        right: 0;
        left: auto;
        min-width: 220px;
    }

    /* Filter tabs: horizontal scroll */
    .filter-tabs-row {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }
    .filter-tabs-row::-webkit-scrollbar { display: none; }

    /* Minimum touch targets */
    .btn-outcome,
    .btn-pill,
    .filter-tab,
    .quick-amt,
    .chat-send-btn,
    .admin-action-btn {
        min-height: 44px;
        min-width: 44px;
    }
}

@media (max-width: 480px) {
    .position-modal {
        width: 100%;
        margin: 0 10px;
        padding: 24px;
    }

    .modal-quick-amounts {
        flex-wrap: wrap;
        justify-content: center;
    }

    .quick-amt {
        flex-grow: 1;
    }

    /* Stats row: 2 columns on small phones */
    .pos-stats-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }

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

    .modal-calc-row {
        grid-template-columns: 1fr;
    }

    .modal-footer {
        flex-direction: column-reverse;
    }
    
    .modal-cancel, .modal-confirm {
        width: 100%;
    }
}

/* === DETAIL PAGE STYLES === */

/* ── Detail hero grid ── */
.detail-hero { padding-top: 32px; }
.detail-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 768px) {
  .detail-hero-grid { grid-template-columns: 1fr; }
}

/* ── Probability panel ── */
.detail-prob-panel { padding: 28px; }
.dpp-top { display: flex; align-items: center; gap: 24px; }
.dpp-arc-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}
.probability-arc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
      var(--color-primary) 0%,
      var(--color-primary) 35%,
      var(--color-accent) 35%,
      var(--color-accent) 65%,
      var(--xmr-orange) 65%,
      var(--xmr-orange) calc(var(--prob, 0) * 1%),
      rgba(255,255,255,0.08) calc(var(--prob, 0) * 1%)
  );
  transition: all 800ms cubic-bezier(0.23, 1, 0.32, 1);
  /* Inner dark fill */
  -webkit-mask: radial-gradient(circle at center, transparent 65%, black 65%);
  mask: radial-gradient(circle at center, transparent 65%, black 65%);
}

.dpp-arc-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--xmr-deep); /* Inner dark fill */
  border-radius: 50%; /* Ensure it's a circle */
}
.dpp-pct {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.dpp-yes-tag {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-top: 3px;
}
.dpp-stats { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.dpp-stat { display: flex; justify-content: space-between; align-items: center; }
.dpp-stat-l {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dpp-stat-v { font-size: 0.82rem; color: rgba(255,255,255,0.78); }
.dpp-stat-v.accent { color: var(--color-accent); }
.dpp-stat-v.dim    { color: rgba(255,255,255,0.35); }

/* ── Action panel ── */
.detail-action-panel { padding: 28px; display: flex; flex-direction: column; gap: 0; }
.dap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.dap-header-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
}
.dap-meta { display: flex; flex-direction: column; gap: 0; margin-bottom: 20px; }
.dap-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dap-meta-l { font-size: 0.7rem; color: rgba(255,255,255,0.35); }
.dap-meta-v { font-size: 0.82rem; color: rgba(255,255,255,0.7); }
.dap-meta-v.urgent { color: var(--state-resolving, #FF6600); }

.dap-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.dap-btn-yes, .dap-btn-no {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 18px 10px;
  border-radius: 14px;
  border: 1px solid;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.23, 1, 0.32, 1);
  min-height: 96px;
  background: none;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative;
}
.dap-btn-yes {
  border-color: rgba(0, 217, 255, 0.35);
  background: rgba(0,217,255,0.06);
}
.dap-btn-yes:hover {
  background: rgba(0,217,255,0.14);
  border-color: rgba(0, 217, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 0 28px rgba(0,217,255,0.22), 0 8px 24px rgba(0,0,0,0.3);
  transform: translateY(-3px) scale(1.01);
}
.dap-btn-no {
  border-color: rgba(255, 100, 100, 0.2);
  background: rgba(255, 100, 100, 0.06);
}
.dap-btn-no:hover {
  background: rgba(255, 100, 100, 0.12);
  border-color: rgba(255, 100, 100, 0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 0 28px rgba(255, 100, 100, 0.18), 0 8px 24px rgba(0,0,0,0.3);
  transform: translateY(-3px) scale(1.01);
}
.dap-btn-yes:active, .dap-btn-no:active {
  transform: translateY(0) scale(0.98);
}
.dap-btn-dir {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
}
.dap-btn-price {
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.dap-btn-yes .dap-btn-price { color: var(--color-accent); }
.dap-btn-no .dap-btn-price { color: rgba(255, 180, 180, 0.9); }
.dap-btn-sub {
  font-size: 0.58rem;
  color: rgba(255,255,255,0.22);
  text-align: center;
}
.dap-share-btn {
  width: 100%;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.dap-share-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: #fff;
}

.dap-disclaimer {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.18);
  line-height: 1.6;
  text-align: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: auto;
}

/* ── Gauge + Chart row: side by side on desktop, stacked on mobile ── */
.detail-gauge-chart-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 32px;
}
.detail-gauge-chart-row .prob-ring-scene {
  margin: 0; /* override the auto margin centering */
}
.detail-chart-inline {
  padding: 20px 24px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.detail-chart-inline-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 12px;
}
.detail-chart-inline-wrap {
  flex: 1;
  position: relative;
  min-height: 220px;
}
.detail-chart-inline-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}
@media (max-width: 768px) {
  .detail-gauge-chart-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .detail-gauge-chart-row .prob-ring-scene {
    margin: 0 auto 0; /* re-center on mobile */
  }
  .detail-chart-inline {
    min-height: 200px;
  }
  .detail-chart-inline-wrap {
    min-height: 180px;
  }
}

/* Legacy (kept for backwards compat if referenced) */
.detail-chart-section { margin-top: 48px; }

/* ── Resolution card ── */
.detail-resolution-section { margin-top: 48px; }
.resolution-info-card { padding: 28px; }
.ric-row { display: flex; gap: 18px; align-items: flex-start; }
.ric-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
  flex-shrink: 0;
  margin-top: 5px;
}
.ric-body { flex: 1; }
.ric-criteria {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 20px;
}
.ric-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.ric-meta-item { display: flex; flex-direction: column; gap: 4px; }
.ric-meta-l {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.28);
}
.ric-meta-v { font-size: 0.78rem; color: rgba(255,255,255,0.65); }
a.ric-source-link {
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.72rem;
  opacity: 0.8;
  transition: opacity 0.2s;
  word-break: break-all;
}
a.ric-source-link:hover { opacity: 1; text-decoration: underline; }

/* ── Activity feed ── */
.detail-activity-section { margin-top: 48px; }
.activity-feed { padding: 8px 0; }
.activity-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s;
}
.activity-row:last-child { border-bottom: none; }
.activity-row:hover { background: rgba(255,255,255,0.03); }
.activity-addr {
  font-family: 'Geist Mono', monospace;
  font-size: 0.74rem;
  color: rgba(255,255,255,0.42);
}
.activity-side-yes {
  font-family: 'Geist Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--color-accent);
  background: rgba(0,217,255,0.08);
  border: 1px solid rgba(0,217,255,0.2);
  padding: 2px 9px;
  border-radius: 9999px;
}
.activity-side-no {
  font-family: 'Geist Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 2px 9px;
  border-radius: 9999px;
}
.activity-amount {
  font-family: 'Geist Mono', monospace;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}
.activity-time {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.25);
}

/* ── Positions table ── */
.detail-positions-section { margin-top: 48px; margin-bottom: 80px; }
.positions-table-wrap { padding: 0; overflow: hidden; }
.positions-table {
  width: 100%;
  border-collapse: collapse;
}
.positions-table th {
  padding: 14px 20px;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.28);
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-weight: 500;
}
.positions-table td {
  padding: 16px 20px;
  font-family: 'Geist Mono', monospace;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.positions-table tr:last-child td { border-bottom: none; }
.positions-table tr:hover td { background: rgba(255,255,255,0.025); }
.pos-side-yes { color: var(--color-accent); font-weight: 700; }
.pos-side-no  { color: rgba(255,255,255,0.42); font-weight: 700; }

/* ==========================================================================
   EMERGENCY AESTHETIC RESCUE — PHASE 2
   ========================================================================== */

/* ── Utility: Geist Mono ── */
.geist-mono {
    font-family: var(--font-mono);
}

/* ── Main content z-index above WebGL ── */
main {
    position: relative;
    z-index: 10;
}

/* ── Header Section (predictions + detail pages) ── */
.header-section {
    position: relative;
    z-index: 10;
    padding: 130px 0 48px;
    text-align: center;
}
.prediction-detail-page .header-section {
    padding-bottom: 20px;
}

/* ── Detail Page: Title / Description / Category ── */
.prediction-detail-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #FFF 0%, var(--color-tertiary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #FFF;
    margin-bottom: var(--space-md);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.prediction-detail-description {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto var(--space-lg);
    line-height: 1.72;
}
.prediction-category-display {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    background: rgba(177, 158, 239, 0.08);
    padding: 4px 14px;
    border-radius: 9999px;
    color: var(--color-tertiary);
    border: 1px solid rgba(177, 158, 239, 0.20);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ── Card Content Link (kill default styling) ── */
.card-content-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex-grow: 1;
    position: relative;
}

/* ── Card Asset Box (optional per-topic image, right side) ── */
.card-asset-box {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
    z-index: 1;
    flex-shrink: 0;
}
.card-asset-box img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}
.prediction-card:hover .card-asset-box img {
    opacity: 1;
}
/* Text padding when asset present — prevents overlap */
.prediction-card[data-has-asset] .prediction-title,
.prediction-card[data-has-asset] .prediction-desc {
    padding-right: 64px;
}
@media (max-width: 768px) {
    .card-asset-box {
        width: 48px;
        height: 48px;
        border-radius: 10px;
    }
    .card-asset-box img {
        width: 34px;
        height: 34px;
    }
    .prediction-card[data-has-asset] .prediction-title,
    .prediction-card[data-has-asset] .prediction-desc {
        padding-right: 56px;
    }
}
@media (max-width: 375px) {
    .card-asset-box {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }
    .card-asset-box img {
        width: 28px;
        height: 28px;
    }
    .prediction-card[data-has-asset] .prediction-title,
    .prediction-card[data-has-asset] .prediction-desc {
        padding-right: 48px;
    }
}

/* ── Filter Bar Selects / Inputs ── */
.filter-bar select,
.filter-bar input[type="date"] {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-primary);
    font-size: 0.82rem;
    cursor: pointer;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.filter-bar select {
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
.filter-bar select:focus,
.filter-bar input[type="date"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(82, 39, 255, 0.15);
}
.filter-bar select option {
    background: #0e0b1c;
    color: #fff;
}
.filter-bar input[type="date"] {
    color-scheme: dark;
}

/* ==========================================================================
   HERO PROBABILITY RING — THE VISUAL ANCHOR
   ========================================================================== */

/* ==========================================================================
   PROBABILITY RING
   ========================================================================== */

.prob-ring-scene {
    position: relative;
    width: 300px;
    height: 300px;
    flex-shrink: 0;
    margin: 0 auto 44px;
}

/* ── Layer 1: Houdini animated gradient border (outer ring, always spinning) ── */
.prob-ring-houdini-border {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(
        from var(--ring-angle),
        #5227FF 0deg,
        #B19EEF 60deg,
        #FF9FFC 120deg,
        #00D9FF 180deg,
        #FF9FFC 240deg,
        #B19EEF 300deg,
        #5227FF 360deg
    );
    animation: ring-border-spin 10s linear infinite;
    z-index: 0;
}
/* Mask the center out — also serves as the structural bezel between border and gauge */
.prob-ring-houdini-border::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--color-bg-dark);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

/* ── Layer 2: SVG arc gauge ── */
.prob-ring-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: visible;
}

/* Track groove — always visible, shows the full ring path as a recessed channel */
.prob-ring-track {
    fill: none;
    stroke: rgba(255,255,255,0.04);
    stroke-width: 22;
}

/* Filled arc — round endcaps, glowing stroke */
.prob-ring-arc {
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 20;
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px rgba(0,217,255,0.45)) drop-shadow(0 0 2px rgba(0,217,255,0.7));
    transition: stroke-dashoffset 1.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Tick marks — precision graduation at 0/25/50/75% */
.prob-ring-tick {
    stroke: rgba(255,255,255,0.08);
    stroke-width: 1.5;
    stroke-linecap: round;
    transition: stroke 0.6s ease;
}
.prob-ring-tick.lit {
    stroke: rgba(255,255,255,0.3);
}

/* Hotspot — luminous dot at the leading edge of the filled arc */
.prob-ring-hotspot-wrap {
    transform-origin: 150px 150px;
    transition: transform 1.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.prob-ring-hotspot {
    fill: #ffffff;
    opacity: 0;
    transition: opacity 0.5s ease 0.3s;
}
.prob-ring-hotspot.visible {
    opacity: 1;
}

/* ── Layer 3: Frosted glass disc — creates the donut hole ── */
.prob-ring-disc {
    position: absolute;
    inset: 32px;
    border-radius: 50%;
    background: rgba(14, 11, 26, 0.72);
    backdrop-filter: blur(32px) saturate(180%) brightness(1.08);
    -webkit-backdrop-filter: blur(32px) saturate(180%) brightness(1.08);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.22),
        inset 0 -1px 0 rgba(0,0,0,0.5),
        inset 0 0 40px rgba(0,217,255,0.04),
        0 24px 64px rgba(0,0,0,0.6),
        0 0 80px rgba(82,39,255,0.12);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Caustic — curved glass concentrates light into a subtle bright arc across upper surface */
.prob-ring-disc::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(
        ellipse 70% 40% at 38% 20%,
        rgba(255,255,255,0.07) 0%,
        rgba(255,255,255,0.02) 45%,
        transparent 70%
    );
    pointer-events: none;
}

/* ── Layer 4: Inner text content ── */
.prob-ring-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    user-select: none;
}

.prob-ring-number {
    font-family: var(--font-mono);
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    letter-spacing: -0.04em;
    /* Ambient illumination — numeral appears internally lit */
    text-shadow: 0 0 30px rgba(0,217,255,0.06), 0 0 60px rgba(0,217,255,0.03);
}

.prob-ring-percent-sign {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--color-accent);
    margin-top: -6px;
    font-weight: 600;
}

.prob-ring-divider {
    width: 32px;
    height: 1px;
    background: rgba(255,255,255,0.15);
    margin: 10px 0 8px;
}

.prob-ring-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.35);
    white-space: nowrap;
}

.prob-ring-category {
    font-size: 0.65rem;
    color: var(--color-accent);
    margin-top: 5px;
    letter-spacing: 0.06em;
    opacity: 0.7;
}

/* ── Layer 5: Probability color flanks ── */
.prob-ring-flank-yes,
.prob-ring-flank-no {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 1s ease;
}

.prob-ring-flank-yes {
    right: -50px;
    background: radial-gradient(circle, rgba(0,217,255,0.55) 0%, transparent 70%);
}
/* Chromatic aberration — red channel ghost offset */
.prob-ring-flank-yes::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,80,60,0.14) 0%, transparent 65%);
    transform: translate(6px, -4px);
}

.prob-ring-flank-no {
    left: -50px;
    background: radial-gradient(circle, rgba(178,100,255,0.45) 0%, transparent 70%);
}
/* Chromatic aberration — blue channel ghost offset */
.prob-ring-flank-no::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(60,80,255,0.12) 0%, transparent 65%);
    transform: translate(-5px, 4px);
}

/* ── On-load entrance animation ── */
@keyframes ring-scale-in {
    from { opacity: 0; transform: scale(0.82); }
    to   { opacity: 1; transform: scale(1); }
}

.prob-ring-scene {
    animation: ring-scale-in 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ── Hover: ring pulses slightly ── */
.prob-ring-scene:hover .prob-ring-disc {
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.28),
        inset 0 -1px 0 rgba(0,0,0,0.5),
        inset 0 0 60px rgba(0,217,255,0.08),
        0 28px 80px rgba(0,0,0,0.65),
        0 0 120px rgba(0,217,255,0.18);
    transition: box-shadow 0.4s ease;
}

/* Mobile ring sizing */
@media (max-width: 480px) {
    .prob-ring-scene {
        width: 220px;
        height: 220px;
        margin-bottom: 32px;
    }
    .prob-ring-disc {
        inset: 24px;
    }
    .prob-ring-number {
        font-size: 2.6rem;
    }
}

/* ==========================================================================
   DETAIL HERO LAYOUT — ring dominant above, grid below
   ========================================================================== */

.prediction-detail-page .detail-hero {
    padding-top: 32px;
    position: relative;
    z-index: 10;
}

.prediction-detail-page .detail-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 768px) {
    .prediction-detail-page .detail-hero-grid { grid-template-columns: 1fr; }
    .prediction-detail-title { font-size: 2rem; }
}

/* Stats panel (now without the ring) */
.prediction-detail-page .detail-prob-panel {
    padding: 28px;
}
.prediction-detail-page .detail-prob-panel .dpp-stats {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

/* ==========================================================================
   ACTIVITY FEED — staggered entrance animations
   ========================================================================== */

@keyframes activity-slide-in {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}

.activity-feed .activity-row {
    animation: activity-slide-in 0.35s ease both;
}
.activity-feed .activity-row:nth-child(1) { animation-delay: 0.04s; }
.activity-feed .activity-row:nth-child(2) { animation-delay: 0.08s; }
.activity-feed .activity-row:nth-child(3) { animation-delay: 0.12s; }
.activity-feed .activity-row:nth-child(4) { animation-delay: 0.16s; }
.activity-feed .activity-row:nth-child(5) { animation-delay: 0.20s; }
.activity-feed .activity-row:nth-child(6) { animation-delay: 0.24s; }
.activity-feed .activity-row:nth-child(7) { animation-delay: 0.28s; }
.activity-feed .activity-row:nth-child(8) { animation-delay: 0.32s; }

/* ==========================================================================
   RESOLUTION CRITERIA — pulsing indicator dot
   ========================================================================== */

@keyframes ric-dot-pulse {
    0%, 100% { box-shadow: 0 0 8px var(--color-accent); opacity: 1; }
    50%      { box-shadow: 0 0 18px var(--color-accent), 0 0 36px rgba(0, 217, 255, 0.25); opacity: 0.65; }
}

.resolution-info-card .ric-icon {
    animation: ric-dot-pulse 2.5s ease-in-out infinite;
}

/* ==========================================================================
   DETAIL PAGE SECTIONS — z-index above WebGL
   ========================================================================== */

.detail-chart-section,
.detail-resolution-section,
.detail-activity-section,
.detail-positions-section {
    position: relative;
    z-index: 10;
    margin-top: var(--space-2xl);
}
.detail-positions-section {
    margin-bottom: var(--space-3xl);
}

/* Section titles on detail page need margin below */
.prediction-detail-page .section-title {
    margin-bottom: var(--space-lg);
}

/* ==========================================================================
   LANDING PAGE — featured sections below the fold
   ========================================================================== */

.landing-page .featured-predictions {
    padding-bottom: var(--space-3xl);
}

/* Detail page: tighten section spacing (override generic 96px section padding) */
.prediction-detail-page main section {
    padding: 0;
}
.prediction-detail-page .detail-hero {
    padding-top: 32px;
    padding-bottom: var(--space-xl);
}

/* Hide cards during filter transition */
.prediction-card.filter-hidden {
    display: none;
}

/* ==========================================================================
   NAV PRICE CARD — Thick animated gradient border, top-right
   ========================================================================== */

@property --price-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

@keyframes price-border-spin {
    to { --price-angle: 360deg; }
}

.xmr-price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 14px;
    margin-left: 6px;
    border-radius: 14px;
    isolation: isolate;
    flex-shrink: 0;
    min-width: 90px;
}

/* Thick animated conic border — heavier than any other element */
.xmr-price-card::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 17px;
    background: conic-gradient(
        from var(--price-angle),
        #FF6600 0deg,
        #FF9FFC 72deg,
        #00D9FF 144deg,
        #5227FF 216deg,
        #FF9FFC 288deg,
        #FF6600 360deg
    );
    z-index: -2;
    opacity: 0.85;
    animation: price-border-spin 6s linear infinite;
}

/* Glass fill inside */
.xmr-price-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: rgba(9, 7, 16, 0.92);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.nav-price-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--xmr-orange);
    line-height: 1;
}

.nav-price-value {
    font-family: var(--font-mono);
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.nav-price-change {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    line-height: 1;
}

.nav-price-change.positive {
    color: var(--state-resolved-yes);
}

.nav-price-change.negative {
    color: var(--state-resolved-no);
}

/* ==========================================================================
   SITE FOOTER — Four columns, resources navigation
   ========================================================================== */

.site-footer {
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255,255,255,0.055);
    background: rgba(5,5,14,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 48px;
    padding: 60px 0 44px;
}

.footer-col-brand .footer-wordmark {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    font-family: 'Geist', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}
.footer-bull {
    height: 26px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(255,102,0,0.5));
}
.footer-tagline {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.32);
    line-height: 1.65;
    margin-bottom: 14px;
    font-weight: 400;
}
.footer-built-by {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.22);
    margin-bottom: 16px;
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}
.footer-built-by a {
    color: rgba(255,102,0,0.6);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-built-by a:hover { color: rgba(255,102,0,0.85); }

.footer-community-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.footer-community-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.28);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-community-link:hover { color: rgba(255,255,255,0.55); }

.footer-col-heading {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255,255,255,0.28);
    margin-bottom: 18px;
    font-weight: 600;
    font-family: 'Geist', sans-serif;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.38);
    text-decoration: none;
    transition: color 0.18s;
    display: inline-block;
}
.footer-links a:hover { color: rgba(255,255,255,0.72); }

.footer-legal-blurb {
    font-size: 0.74rem;
    color: rgba(255,255,255,0.40);
    line-height: 1.72;
    font-weight: 400;
    margin: 0;
}
.footer-legal-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.75rem;
    color: rgba(0,217,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-legal-link:hover { color: rgba(0,217,255,0.8); }

.footer-bottom-bar {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-bottom-bar span {
    font-size: 0.63rem;
    color: rgba(255,255,255,0.16);
    white-space: nowrap;
}

/* ==========================================================================
   PREDICTIONS PAGE — STATS BAR GLASS CARDS
   ========================================================================== */

.stats-cards-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: var(--space-xl);
}

.stats-card-item {
    position: relative;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    isolation: isolate;
}

.stats-card-item::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: conic-gradient(
        from var(--pill-angle),
        #5227FF 0deg, #B19EEF 90deg,
        #00D9FF 180deg, #B19EEF 270deg,
        #5227FF 360deg
    );
    z-index: -2;
    opacity: 0.15;
    animation: pill-border-flow 20s linear infinite;
}

.stats-card-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: rgba(12, 10, 22, 0.82);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 12px 40px rgba(0, 0, 0, 0.35);
    z-index: -1;
}

.stats-card-item:nth-child(2)::before { animation-delay: -5s; }
.stats-card-item:nth-child(3)::before { animation-delay: -10s; }
.stats-card-item:nth-child(4)::before { animation-delay: -15s; }

.stats-card-label {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 6px;
    display: block;
}

.stats-card-number {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

@media (max-width: 768px) {
    .stats-cards-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .stats-card-number {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .stats-cards-bar {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .stats-card-item {
        padding: 14px;
    }
    .stats-card-number {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   CATEGORY FILTER TABS — horizontal tab row
   ========================================================================== */

.filter-tabs-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.filter-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.74rem;
    font-weight: 600;
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: color 0.22s ease, background 0.22s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    user-select: none;
    isolation: isolate;
    white-space: nowrap;
}

.filter-tab:hover {
    color: rgba(255, 255, 255, 0.82);
    border-color: rgba(177, 158, 239, 0.30);
    background: rgba(177, 158, 239, 0.08);
}

.filter-tab.active {
    color: #fff;
    background: rgba(82, 39, 255, 0.22);
    border-color: rgba(82, 39, 255, 0.50);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 12px rgba(82, 39, 255, 0.24);
}

/* Animated conic border on active filter tab */
.filter-tab.active::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 9999px;
    background: conic-gradient(
        from var(--pill-angle),
        #5227FF 0deg, #B19EEF 90deg,
        #00D9FF 180deg, #FF9FFC 270deg,
        #5227FF 360deg
    );
    z-index: -2;
    opacity: 0.65;
    animation: pill-border-flow 10s linear infinite;
}

.filter-tab.active::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: rgba(20, 15, 36, 0.92);
    z-index: -1;
}

/* Sort control toggle */
.sort-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.sort-btn {
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 600;
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
}

.sort-btn:hover {
    color: rgba(255, 255, 255, 0.72);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.sort-btn.active {
    color: var(--color-accent);
    border-color: rgba(0, 217, 255, 0.35);
    background: rgba(0, 217, 255, 0.08);
}

/* Filter transition for cards */
.prediction-card.filter-fading {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Empty state */
.filter-empty-state {
    grid-column: 1 / -1;
    padding: var(--space-2xl);
    text-align: center;
}

.filter-empty-state .glass-card {
    display: inline-block;
    padding: var(--space-xl) var(--space-2xl);
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* === RESOLVED CARD TREATMENT === */
.prediction-card[data-resolved] .btn-outcome,
.prediction-card.is-resolved .btn-outcome {
    opacity: 0.35;
    pointer-events: none;
    cursor: default;
}
.prediction-card[data-resolved] .btn-outcome:hover,
.prediction-card.is-resolved .btn-outcome:hover {
    transform: none;
    box-shadow: none;
}
.prediction-card[data-resolved]::before,
.prediction-card.is-resolved::before {
    opacity: 0.08;
    animation: none;
}

/* === CARD RESPONSIVE FIXES === */
@media (max-width: 768px) {
    .prediction-cards-grid {
        grid-template-columns: 1fr;
    }
    .card-footer {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
    .card-action-row {
        width: 100%;
        justify-content: stretch;
    }
    .card-action-row .btn-outcome {
        flex: 1;
    }
    .market-volume {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: var(--space-xs);
        align-items: baseline;
    }
}

@media (max-width: 375px) {
    .prediction-card {
        padding: var(--space-md);
    }
    .prediction-title {
        font-size: 1.1rem;
    }
    .prediction-desc {
        font-size: 0.82rem;
        -webkit-line-clamp: 2;
        min-height: calc(1.6em * 2);
    }
    .btn-outcome {
        padding: 0 12px;
        font-size: 0.75rem;
        /* min-height: 44px inherited from 768px breakpoint — never shrink below tap target */
    }
}

/* ==========================================================================
   LEADERBOARD PAGE
   ========================================================================== */

.leaderboard-page .header-section {
    padding-bottom: 24px;
}

.leaderboard-table-wrap {
    padding: 0;
    overflow: hidden;
    overflow-x: auto;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.leaderboard-table th {
    padding: 14px 20px;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.28);
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-weight: 500;
    white-space: nowrap;
}

.leaderboard-table td {
    padding: 16px 20px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.leaderboard-table tr:last-child td { border-bottom: none; }
.leaderboard-table tr:hover td { background: rgba(255, 255, 255, 0.025); }

/* Rank column */
.leaderboard-rank {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    min-width: 36px;
    display: inline-block;
}

/* Address column */
.leaderboard-addr {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.42);
}

.leaderboard-addr-link {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s;
}

.leaderboard-addr-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Top 3 distinction */
.leaderboard-table tr.rank-1 {
    position: relative;
}

.leaderboard-table tr.rank-1 td {
    background: rgba(82, 39, 255, 0.04);
}

.leaderboard-table tr.rank-1 td:first-child {
    border-left: 3px solid var(--color-primary);
    box-shadow: inset 6px 0 20px rgba(82, 39, 255, 0.15);
}

.leaderboard-table tr.rank-1 .leaderboard-rank {
    color: var(--color-primary);
    filter: brightness(1.5);
}

.leaderboard-table tr.rank-2 td:first-child {
    border-left: 3px solid var(--color-secondary);
    box-shadow: inset 4px 0 16px rgba(255, 159, 252, 0.10);
}

.leaderboard-table tr.rank-2 .leaderboard-rank {
    color: var(--color-secondary);
}

.leaderboard-table tr.rank-3 td:first-child {
    border-left: 3px solid var(--color-accent);
    box-shadow: inset 3px 0 12px rgba(0, 217, 255, 0.08);
}

.leaderboard-table tr.rank-3 .leaderboard-rank {
    color: var(--color-accent);
    opacity: 0.7;
}

/* Delta column */
.leaderboard-delta-up {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--state-resolved-yes);
}

.leaderboard-delta-down {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--state-resolved-no);
}

.leaderboard-delta-new {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--color-accent);
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid rgba(0, 217, 255, 0.2);
    padding: 2px 8px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.leaderboard-table tbody tr.my-rank {
    background: rgba(0, 217, 255, 0.04);
    border-left: 3px solid var(--color-accent);
}

.leaderboard-table tbody tr.my-rank td {
    background: rgba(0, 217, 255, 0.04);
}

.leaderboard-search {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 0 0 var(--space-md) 0;
    padding: 10px 16px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease;
}

.leaderboard-search:focus {
    border-color: var(--color-accent);
}

.leaderboard-search::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.leaderboard-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-lg) 0 var(--space-sm) 0;
}

.pagination-indicator {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
}

.btn-pagination {
    padding: 8px 20px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-pagination:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.btn-pagination:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.leaderboard-note {
    text-align: center;
    padding: var(--space-xl) 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
    font-style: italic;
}

/* ==========================================================================
   HOW IT WORKS PAGE
   ========================================================================== */

.how-it-works-page .content-section {
    position: relative;
    z-index: 10;
    padding-top: 0;
    padding-bottom: var(--space-3xl);
}

.how-section-card {
    padding: var(--space-xl) var(--space-2xl);
    margin-bottom: var(--space-xl);
}

.how-section-card h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}

.how-section-card p {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.how-section-card p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .how-section-card {
        padding: var(--space-lg) var(--space-lg);
    }
    .how-section-card h2 {
        font-size: 1.2rem;
    }
}

/* ==========================================================================
   FAQ PAGE — ACCORDION
   ========================================================================== */

.faq-page .content-section {
    position: relative;
    z-index: 10;
    padding-top: 0;
    padding-bottom: var(--space-3xl);
}

.faq-disclaimer-line {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    text-align: center;
}

.faq-accordion-item {
    position: relative;
    margin-bottom: var(--space-md);
    border-radius: var(--radius-lg);
    overflow: hidden;
    isolation: isolate;
}

/* Glass card base for FAQ items */
.faq-accordion-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.75) 0%, rgba(15, 15, 25, 0.82) 100%);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.25);
    z-index: -1;
    transition: border-color 0.25s ease;
}

.faq-accordion-item.open::before {
    border-left: 2px solid rgba(255,102,0,0.4);
}

.faq-accordion-question {
    padding: var(--space-lg) var(--space-xl);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
    transition: color 0.2s ease;
    user-select: none;
}

.faq-accordion-question:hover {
    color: #fff;
}

.faq-accordion-icon {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.35);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: var(--space-md);
}

.faq-accordion-item.open .faq-accordion-icon {
    transform: rotate(45deg);
    color: var(--color-accent);
}

.faq-accordion-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-accordion-answer-inner {
    padding: 0 var(--space-xl) var(--space-lg);
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.75;
}

/* ==========================================================================
   GENERIC INNER PAGE LAYOUT
   ========================================================================== */

.inner-page .header-section {
    position: relative;
    z-index: 10;
    padding: 130px 0 32px;
    text-align: center;
}

.inner-page .header-section .section-subtitle {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.inner-page main {
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .inner-page .header-section {
        padding: 100px 0 24px;
    }
    .inner-page .header-section .section-title {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   MARKET TICKER
   ========================================================================== */
.market-ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: rgba(255,255,255,0.022);
    border-top: 1px solid rgba(255,255,255,0.055);
    border-bottom: 1px solid rgba(255,255,255,0.055);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 11px 0;
    position: relative;
    z-index: 20;
}
.market-ticker-wrap::before,
.market-ticker-wrap::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 140px;
    z-index: 2;
    pointer-events: none;
}
.market-ticker-wrap::before {
    left: 0;
    background: linear-gradient(to right, #050514, transparent);
}
.market-ticker-wrap::after {
    right: 0;
    background: linear-gradient(to left, #050514, transparent);
}
.market-ticker-inner {
    overflow: hidden;
    width: 100%;
}
.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker-scroll 40s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0 32px;
    border-right: 1px solid rgba(255,255,255,0.055);
    white-space: nowrap;
    cursor: default;
}
.ticker-pulse {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--color-accent, #00D9FF);
    box-shadow: 0 0 7px var(--color-accent, #00D9FF);
    flex-shrink: 0;
    animation: ticker-pulse 2s ease-in-out infinite;
}
@keyframes ticker-pulse {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.4; }
}
.ticker-title {
    font-size: 0.73rem;
    color: rgba(255,255,255,0.52);
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ticker-yes {
    font-family: 'Geist Mono', monospace;
    font-size: 0.71rem;
    font-weight: 700;
    color: var(--color-accent, #00D9FF);
}
.ticker-sep {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.15);
}
.ticker-no {
    font-family: 'Geist Mono', monospace;
    font-size: 0.71rem;
    color: rgba(255,255,255,0.25);
}
.ticker-vol {
    font-family: 'Geist Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255,102,0,0.65);
}

/* ==========================================================================
   CREATORS SECTION
   ========================================================================== */
.creators-section { padding: 88px 0 72px; }
.creators-header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 52px;
}
.creators-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--xmr-orange, #FF6600);
    opacity: 0.75;
    display: block;
    margin-bottom: 14px;
}
.creators-sub {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.50);
    line-height: 1.7;
    margin-top: 16px;
    font-weight: 400;
}
.creators-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
.creator-card {
    text-decoration: none;
    display: block;
    padding: 36px 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.creator-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255,102,0,0.04) 0%,
        transparent 60%
    );
    pointer-events: none;
}
.creator-card:hover {
    transform: translateY(-5px);
    box-shadow:
        inset 0 1.5px 0 rgba(255,255,255,0.16),
        0 32px 64px rgba(0,0,0,0.55),
        0 0 80px rgba(255,102,0,0.07);
}
.creator-card-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.creator-logo-wrap {
    display: flex;
    align-items: center;
    height: 48px;
}
.creator-logo {
    height: 40px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}
.creator-name {
    font-family: 'Geist', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin-bottom: 2px;
}
.creator-tagline {
    font-size: 0.76rem;
    color: var(--xmr-orange, #FF6600);
    font-weight: 500;
    margin-bottom: 14px;
    opacity: 0.8;
}
.creator-desc {
    font-size: 0.83rem;
    color: rgba(255,255,255,0.50);
    line-height: 1.75;
    font-weight: 400;
}
.creator-visit {
    display: inline-block;
    margin-top: 20px;
    font-size: 0.78rem;
    color: var(--color-accent, #00D9FF);
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: opacity 0.2s;
}
.creator-card:hover .creator-visit { opacity: 0.7; }

/* ── Creator Liquid Glass Pill Buttons ── */
.creator-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    padding: 9px 18px;
    border-radius: 100px;
    text-decoration: none;
    font-family: 'Geist', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    width: fit-content;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.22s cubic-bezier(0.16,1,0.3,1),
                box-shadow 0.22s ease;
    background: rgba(255,102,0,0.08);
    box-shadow:
      inset 0 1.5px 0 rgba(255,255,255,0.18),
      inset 0 -1px 0 rgba(0,0,0,0.25),
      inset 1px 0 0 rgba(255,255,255,0.06),
      inset -1px 0 0 rgba(255,255,255,0.06),
      0 4px 16px rgba(255,102,0,0.12),
      0 1px 4px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,102,0,0.28);
    color: rgba(255,102,0,0.9);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
}
.creator-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
      105deg,
      transparent 0%,
      rgba(255,255,255,0.07) 40%,
      rgba(255,255,255,0.12) 50%,
      rgba(255,255,255,0.07) 60%,
      transparent 100%
    );
    transform: translateX(-100%);
    transition: transform 0.5s ease;
    pointer-events: none;
}
.creator-btn:hover::before {
    transform: translateX(100%);
}
.creator-btn:hover {
    transform: translateY(-2px);
    background: rgba(255,102,0,0.13);
    box-shadow:
      inset 0 1.5px 0 rgba(255,255,255,0.22),
      inset 0 -1px 0 rgba(0,0,0,0.25),
      inset 1px 0 0 rgba(255,255,255,0.08),
      inset -1px 0 0 rgba(255,255,255,0.08),
      0 8px 28px rgba(255,102,0,0.22),
      0 2px 6px rgba(0,0,0,0.3);
    border-color: rgba(255,102,0,0.45);
    color: rgba(255,102,0,1);
}
.creator-btn:active {
    transform: translateY(0px);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.1),
      inset 0 2px 6px rgba(0,0,0,0.2),
      0 2px 8px rgba(255,102,0,0.1);
}
.creator-btn-cyan {
    background: rgba(0,217,255,0.06);
    border-color: rgba(0,217,255,0.22);
    color: rgba(0,217,255,0.85);
    box-shadow:
      inset 0 1.5px 0 rgba(255,255,255,0.18),
      inset 0 -1px 0 rgba(0,0,0,0.25),
      inset 1px 0 0 rgba(255,255,255,0.06),
      inset -1px 0 0 rgba(255,255,255,0.06),
      0 4px 16px rgba(0,217,255,0.08),
      0 1px 4px rgba(0,0,0,0.3);
}
.creator-btn-cyan:hover {
    background: rgba(0,217,255,0.10);
    border-color: rgba(0,217,255,0.38);
    color: rgba(0,217,255,1);
    box-shadow:
      inset 0 1.5px 0 rgba(255,255,255,0.22),
      inset 0 -1px 0 rgba(0,0,0,0.25),
      inset 1px 0 0 rgba(255,255,255,0.08),
      inset -1px 0 0 rgba(255,255,255,0.08),
      0 8px 28px rgba(0,217,255,0.16),
      0 2px 6px rgba(0,0,0,0.3);
}
.creator-btn-cyan::before {
    background: linear-gradient(
      105deg,
      transparent 0%,
      rgba(0,217,255,0.05) 40%,
      rgba(0,217,255,0.10) 50%,
      rgba(0,217,255,0.05) 60%,
      transparent 100%
    );
}
.creator-btn-arrow {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.creator-btn:hover .creator-btn-arrow {
    transform: translateX(3px);
}
.creator-btn:focus-visible {
    outline: 2px solid rgba(0,217,255,0.6);
    outline-offset: 3px;
}
@media (max-width: 640px) {
    .creator-btn {
        width: 100%;
        justify-content: center;
    }
}

.market-share-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.market-share-actions .creator-btn {
    margin-top: 0;
}

@media (max-width: 640px) {
    .market-share-actions {
        flex-direction: column;
    }
    .market-share-actions .creator-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   WHY SECTION
   ========================================================================== */
.why-section { padding: 80px 0; }
.why-section .section-title { text-align: center; width: 100%; justify-content: center; }
.featured-predictions .section-title { text-align: center; width: 100%; justify-content: center; }

/* Global fix: blur-text.js sets display:flex on [data-blur-text] elements,
   so text-align:center doesn't work. Use justify-content:center instead. */
.section-title[data-blur-text],
.section-title.blur-text {
    justify-content: center;
}

/* Hide category badges and LIVE badges on market cards */
.prediction-category,
.resolution-badge,
.card-category-icon {
    display: none !important;
}
/* Reclaim the padding-right that was reserved for the icon */
.card-meta-row {
    padding-right: 0 !important;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 44px;
}
.why-card {
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.3s ease;
}
.why-card:hover { transform: translateY(-4px); }
.why-icon-wrap {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.why-orange { background: rgba(255,102,0,0.10); }
.why-cyan   { background: rgba(0,217,255,0.08); }
.why-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.35;
}
.why-body {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.50);
    line-height: 1.76;
    font-weight: 400;
}

/* ==========================================================================
   HOW IT WORKS TEASER
   ========================================================================== */
.how-teaser-section { padding: 80px 0; }
.how-teaser-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    gap: 20px;
    flex-wrap: wrap;
}
.how-teaser-link {
    font-size: 0.82rem;
    color: var(--color-accent, #00D9FF);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
    padding-bottom: 2px;
    flex-shrink: 0;
}
.how-teaser-link:hover { opacity: 0.65; }
.how-steps-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0;
    align-items: start;
}
.how-step {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.how-step-number {
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255,255,255,0.1);
    line-height: 1;
    letter-spacing: -0.04em;
}
.how-step-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.3;
}
.how-step-body {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.50);
    line-height: 1.74;
    font-weight: 400;
}
.how-step-arrow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 42px 12px 0;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

/* ==========================================================================
   LEADERBOARD PREVIEW
   ========================================================================== */
.leaderboard-preview-section { padding: 60px 0 80px; }
.leaderboard-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    gap: 20px;
    flex-wrap: wrap;
}
.leaderboard-preview-sub {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.50);
    margin-top: 6px;
    font-weight: 400;
}
.leaderboard-preview-strip { padding: 0; overflow: hidden; }
.lb-preview-row {
    display: grid;
    grid-template-columns: 40px 1fr auto auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.15s;
}
.lb-preview-row:last-child { border-bottom: none; }
.lb-preview-row:hover { background: rgba(255,255,255,0.025); }
.lb-rank {
    font-family: 'Geist Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.25);
    text-align: center;
}
.lb-rank-1 {
    color: var(--xmr-orange, #FF6600);
    text-shadow: 0 0 12px rgba(255,102,0,0.6);
}
.lb-rank-2 {
    color: rgba(255,255,255,0.7);
    text-shadow: 0 0 10px rgba(255,255,255,0.25);
}
.lb-rank-3 {
    color: var(--color-accent, #00D9FF);
    text-shadow: 0 0 10px rgba(0,217,255,0.4);
}
.lb-addr {
    font-family: 'Geist Mono', monospace;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
}
.lb-accuracy {
    font-family: 'Geist Mono', monospace;
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    text-align: right;
}
.lb-markets {
    font-family: 'Geist Mono', monospace;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.28);
    text-align: right;
}
.lb-profit {
    font-family: 'Geist Mono', monospace;
    font-size: 0.78rem;
    text-align: right;
}
.lb-profit-pos { color: #00D97E; }
.lb-profit-neg { color: #FF4D6A; }

/* ==========================================================================
   BOTTOM CTA
   ========================================================================== */
.bottom-cta-section { padding: 60px 0 80px; }
.bottom-cta-card {
    padding: 56px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    overflow: hidden;
    position: relative;
    animation: cta-breathe 5s ease-in-out infinite;
}
.bottom-cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255,102,0,0.05) 0%,
        transparent 50%,
        rgba(0,217,255,0.03) 100%
    );
    pointer-events: none;
}
.bottom-cta-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 1;
}
.bottom-cta-headline {
    font-family: 'Geist', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: #ffffff;
    background: linear-gradient(135deg, #fff 0%, #fff 50%, #00D9FF 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.bottom-cta-body {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.7;
    max-width: 420px;
    font-weight: 400;
}
.bottom-cta-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 8px;
}
.bottom-cta-visual {
    flex-shrink: 0;
    width: 200px;
    opacity: 0.65;
    filter: drop-shadow(0 0 20px rgba(255,102,0,0.4));
    position: relative;
    z-index: 1;
}
.bottom-cta-bull {
    width: 100%;
    height: auto;
    animation: bull-float 5.5s ease-in-out infinite;
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

/* ── Security Warning Banner ── */
.contact-security-banner {
    background: rgba(255, 60, 0, 0.05);
    border: 1px solid rgba(255, 60, 0, 0.3);
    border-radius: 12px;
    padding: 24px 30px;
    margin-bottom: 60px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.contact-security-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #FF3C00;
    box-shadow: 0 0 15px #FF3C00;
}

.contact-security-icon {
    color: #FF3C00;
    font-size: 1.8rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(255, 60, 0, 0.4));
}

.contact-security-content h3 {
    font-family: 'Geist Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: #FF3C00;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.contact-security-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
}

.contact-security-content strong {
    color: #fff;
    font-weight: 600;
}

/* ── Systems Status Widget ── */
.contact-status-widget {
    background: linear-gradient(165deg, rgba(15, 15, 25, 0.9) 0%, rgba(5, 5, 15, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 60px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.status-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.status-widget-title {
    font-family: 'Geist', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #00D9FF;
    box-shadow: 0 0 10px #00D9FF;
    animation: status-pulse-anim 2s infinite;
}

@keyframes status-pulse-anim {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 217, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 217, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 217, 255, 0); }
}

.status-overall {
    font-family: 'Geist Mono', monospace;
    font-size: 0.8rem;
    color: #00D9FF;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .status-grid { grid-template-columns: 1fr; }
}

.status-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-item-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-item-value {
    font-family: 'Geist Mono', monospace;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 600;
}

.status-item-uptime {
    font-family: 'Geist Mono', monospace;
    font-size: 0.75rem;
    color: #00FF66; /* Green for uptime */
}

/* ── Geographic Independence Block ── */
.contact-geo-block {
    display: flex;
    align-items: center;
    gap: 40px;
    background: linear-gradient(90deg, rgba(20, 20, 30, 0.6), rgba(10, 10, 15, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px;
    margin: 60px 0;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

@media (max-width: 768px) {
    .contact-geo-block {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 24px;
    }
}

.geo-globe-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.1);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.geo-globe-icon::before {
    content: '\f0ac'; /* Base transparent globe for dimension */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.geo-globe-icon::after {
    content: '\f0ac'; /* Animated gradient globe overlay */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    background: linear-gradient(135deg, #00D9FF, #FF6600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
    filter: drop-shadow(0 0 15px rgba(0, 217, 255, 0.4));
    animation: slow-spin 20s linear infinite;
}

@keyframes slow-spin {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

.geo-content h3 {
    font-family: 'Geist', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.geo-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin: 0;
}

.geo-content strong {
    color: #FF6600;
    font-weight: 600;
}

.geo-addendum-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    text-align: center;
    max-width: 700px;
    margin: 20px auto 0 auto;
}

/* ── Communication Flow Diagram ── */
.contact-flow-diagram {
    margin-bottom: 60px;
    padding: 40px;
    background: rgba(10, 10, 20, 0.4);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.flow-title {
    text-align: center;
    font-family: 'Geist Mono', monospace;
    font-size: 1rem;
    color: #00D9FF;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 40px;
}

.flow-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* Animated connecting line */
.flow-line {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(0, 217, 255, 0.1) 0%, 
        rgba(255, 102, 0, 0.5) 50%, 
        rgba(0, 217, 255, 0.1) 100%
    );
    background-size: 200% 100%;
    animation: flow-line-anim 3s linear infinite;
    z-index: 1;
    transform: translateY(-50%);
}

@keyframes flow-line-anim {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.flow-node {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 25%;
    text-align: center;
}

.flow-icon-wrap {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.9), rgba(5, 5, 10, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.flow-node:hover .flow-icon-wrap {
    transform: scale(1.1);
    border-color: #FF6600;
    box-shadow: 
        0 8px 24px rgba(255, 102, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.flow-node-title {
    font-family: 'Geist', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
}

.flow-node-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .flow-container {
        flex-direction: column;
        gap: 40px;
    }
    .flow-line {
        top: 10%;
        bottom: 10%;
        left: 50%;
        width: 2px;
        height: auto;
        transform: translateX(-50%);
        background: linear-gradient(180deg, 
            rgba(0, 217, 255, 0.1) 0%, 
            rgba(255, 102, 0, 0.5) 50%, 
            rgba(0, 217, 255, 0.1) 100%
        );
        background-size: 100% 200%;
        animation: flow-line-anim-vertical 3s linear infinite;
    }
    @keyframes flow-line-anim-vertical {
        0% { background-position: 0 100%; }
        100% { background-position: 0 -100%; }
    }
    .flow-node { width: 100%; }
}

/* ── Brand Assets / Press Kit ── */
.contact-brand-kit {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 30px;
    margin-top: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 768px) {
    .contact-brand-kit {
        flex-direction: column;
        text-align: center;
    }
}

.brand-kit-info h3 {
    font-family: 'Geist Mono', monospace;
    font-size: 1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 768px) {
    .brand-kit-info h3 { justify-content: center; }
}

.brand-kit-info p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    max-width: 400px;
}

.brand-kit-downloads {
    display: flex;
    gap: 12px;
}

.brand-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.brand-dl-btn:hover {
    background: rgba(255, 102, 0, 0.1);
    border-color: rgba(255, 102, 0, 0.4);
    color: #FF6600;
}

/* ── Contact Section Headers ── */
.contact-section-header {
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-section-header h2 {
    font-family: 'Geist', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.contact-section-header p {
    font-family: 'Geist Mono', monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0;
}

.contact-divider {
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 102, 0, 0.15) 20%,
        rgba(255, 102, 0, 0.38) 50%,
        rgba(255, 102, 0, 0.15) 80%,
        transparent 100%);
    margin: 80px 0;
    width: 100%;
    box-shadow: 0 0 12px rgba(255, 102, 0, 0.1);
}

.aesthetic-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 48px;
    margin-top: 32px;
    font-family: 'Geist Mono', monospace;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    text-decoration: none;
    border-radius: 100px;
    position: relative;
    isolation: isolate;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 40px rgba(0,0,0,0.5),
        0 4px 12px rgba(255,102,0,0.15);
}

.aesthetic-contact-btn::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 100px;
    background: conic-gradient(
        from var(--social-angle, 0deg),
        rgba(255, 102, 0, 0.8) 0%,
        rgba(0, 217, 255, 0.6) 33%,
        rgba(255, 159, 252, 0.6) 66%,
        rgba(255, 102, 0, 0.8) 100%
    );
    z-index: -2;
    opacity: 0.9;
    animation: socialRotateBorder 4s linear infinite;
    transition: opacity 0.3s ease;
}

.aesthetic-contact-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 100px;
    background: radial-gradient(150% 100% at 50% 0%, rgba(255,255,255,0.15) 0%, transparent 50%),
                linear-gradient(rgba(10, 10, 25, 0.85), rgba(5, 5, 20, 0.95));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.4),
        inset 0 -1px 2px rgba(0,0,0,0.60),
        inset 0 0 12px rgba(255,255,255,0.1);
    z-index: -1;
    transition: all 0.3s ease;
}

.aesthetic-contact-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 15px 50px rgba(0,0,0,0.6),
        0 8px 24px rgba(255,102,0,0.25);
    color: #fff;
}

.aesthetic-contact-btn:hover::before {
    opacity: 1;
    inset: -4px;
}

.aesthetic-contact-btn:hover::after {
    background: radial-gradient(150% 100% at 50% 0%, rgba(255,255,255,0.25) 0%, transparent 50%),
                linear-gradient(rgba(15, 15, 30, 0.85), rgba(10, 10, 25, 0.95));
}

.contact-section { padding: 80px 0; }

/* ── Contact Accordion (Before You Reach Out) ── */
.contact-pre-reachout {
    margin-bottom: 60px;
}

.contact-accordion-item {
    position: relative;
    margin-bottom: 16px;
    border-radius: 16px;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-accordion-item:hover {
    transform: translateX(4px);
}

.contact-accordion-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(20, 20, 35, 0.65) 0%, rgba(10, 10, 20, 0.85) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: -1;
    transition: all 0.3s ease;
}

.contact-accordion-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, rgba(255,102,0,0), rgba(255,102,0,0.8), rgba(255,102,0,0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-accordion-item.open::after,
.contact-accordion-item:hover::after {
    opacity: 1;
}

.contact-accordion-item.open::before {
    border-color: rgba(255, 102, 0, 0.3);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        0 8px 32px rgba(255, 102, 0, 0.08);
}

.contact-accordion-header {
    padding: 24px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Geist', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s ease;
    user-select: none;
}

.contact-accordion-header:hover {
    color: #fff;
}

.contact-accordion-icon-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-accordion-icon-wrap i {
    color: rgba(255, 102, 0, 0.8);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.contact-accordion-chevron {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

.contact-accordion-item.open .contact-accordion-chevron {
    transform: rotate(180deg);
    color: #FF6600;
}

.contact-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-accordion-body-inner {
    padding: 0 30px 30px 70px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

.contact-accordion-body-inner a {
    color: #00D9FF;
    text-decoration: none;
    transition: opacity 0.2s;
}

.contact-accordion-body-inner a:hover {
    opacity: 0.7;
}

@media (max-width: 640px) {
    .contact-accordion-body-inner {
        padding: 0 20px 24px 20px;
    }
    .contact-accordion-header {
        padding: 20px;
    }
}

.social-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 44px;
}
@media (max-width: 768px) {
    .social-columns { grid-template-columns: 1fr; }
}

.social-column {
    position: relative;
    background: linear-gradient(165deg,
        rgba(255, 255, 255, 0.10) 0%,
        rgba(255, 255, 255, 0.04) 30%,
        rgba(200, 220, 255, 0.03) 60%,
        rgba(255, 255, 255, 0.06) 100%);
    border-radius: 20px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    min-height: 320px;
    backdrop-filter: blur(32px) saturate(1.6) brightness(1.05);
    -webkit-backdrop-filter: blur(32px) saturate(1.6) brightness(1.05);
    border: 2px solid rgba(255, 255, 255, 0.12);
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    transform-style: preserve-3d;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(255, 102, 0, 0.06),
        0 2px 0 rgba(255, 255, 255, 0.06) inset,
        0 -1px 0 rgba(0, 0, 0, 0.3) inset,
        inset 2px 2px 4px rgba(255, 255, 255, 0.04),
        inset -1px -1px 3px rgba(0, 0, 0, 0.15);
    isolation: isolate;
}

@property --social-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes socialRotateBorder {
    to { --social-angle: 360deg; }
}

.social-column::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    padding: 2.5px;
    background: conic-gradient(
        from var(--social-angle, 0deg),
        rgba(255, 102, 0, 0.08) 0%,
        rgba(255, 102, 0, 0.55) 10%,
        rgba(255, 180, 100, 0.4) 16%,
        rgba(255, 255, 255, 0.18) 22%,
        rgba(255, 255, 255, 0.04) 35%,
        transparent 50%,
        rgba(255, 255, 255, 0.04) 65%,
        rgba(255, 102, 0, 0.2) 80%,
        rgba(255, 102, 0, 0.08) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: socialRotateBorder 7s linear infinite;
    pointer-events: none;
    z-index: 3;
    opacity: 0.65;
    transition: opacity 0.4s ease;
}

.social-column:hover::before {
    opacity: 1;
}

.social-column::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 180%;
    height: 180%;
    background: radial-gradient(circle at center, rgba(255, 102, 0, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0.5;
}

.social-column:hover::after {
    opacity: 1;
}

.social-column:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.55),
        0 0 120px rgba(255, 102, 0, 0.12),
        0 0 50px rgba(255, 102, 0, 0.06),
        inset 0 2px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        inset 2px 2px 6px rgba(255, 255, 255, 0.06),
        inset -1px -1px 4px rgba(0, 0, 0, 0.12);
}

.social-icon-wrapper {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
}

.social-column:hover .social-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--color-accent, #FF6600);
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.4);
}

.social-column[data-platform="telegram"]:hover .social-icon-wrapper { border-color: #229ED9; box-shadow: 0 0 20px rgba(34, 158, 217, 0.4); }

.social-icon {
    font-size: 48px;
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}

.social-image-icon {
    width: 60px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
}

.social-column:hover .social-icon {
    color: #fff;
}

.social-column:hover .social-image-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 15px rgba(255,102,0,0.5));
}

.social-column[data-platform="xmrmap"]:hover .social-image-icon {
    filter: drop-shadow(0 0 15px rgba(0,217,255,0.5));
}

.social-column[data-platform="xmrhub"] .social-button {
    border-color: rgba(255, 102, 0, 0.5);
    background: rgba(255, 102, 0, 0.1);
}

.social-column[data-platform="xmrmap"] .social-button {
    border-color: rgba(0, 217, 255, 0.5);
    background: rgba(0, 217, 255, 0.1);
}

.social-column[data-platform="xmrmap"] .social-button::before {
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.3), transparent);
}

.social-column[data-platform="xmrmap"] .social-button:hover {
    border-color: #00D9FF;
    background: rgba(0, 217, 255, 0.3);
    box-shadow: 0 0 35px rgba(0, 217, 255, 0.5), 0 0 15px rgba(0, 217, 255, 0.6) inset;
}

.social-column[data-platform="xmrmap"]:hover .social-icon-wrapper { border-color: #00D9FF; box-shadow: 0 0 20px rgba(0, 217, 255, 0.4); }
.social-column[data-platform="xmrhub"]:hover .social-icon-wrapper { border-color: #FF6600; box-shadow: 0 0 20px rgba(255, 102, 0, 0.4); }

.social-name {
    font-family: 'Geist', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #eee;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

.social-desc {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.social-button {
    display: inline-block;
    padding: 14px 40px;
    background: rgba(255, 102, 0, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 102, 0, 0.5);
    font-family: 'Geist Mono', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 2;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.1);
    border-radius: 999px;
}

.social-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 102, 0, 0.3), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.social-button:hover {
    color: #fff;
    background: rgba(255, 102, 0, 0.4);
    border-color: #FF6600;
    box-shadow: 0 0 35px rgba(255, 102, 0, 0.6), 0 0 15px rgba(255, 165, 0, 0.8) inset;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.social-button:hover::before {
    left: 100%;
}

.contact-privacy-note {
    margin-top: 28px;
    padding: 28px 30px;
    background: rgba(255,102,0,0.04);
}
.contact-privacy-note p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.44);
    line-height: 1.76;
    font-weight: 400;
}

/* ==========================================================================
   MOBILE RESPONSIVE
   ========================================================================== */
@media (max-width: 640px) {
    .hero-content {
        grid-template-columns: 1fr !important;
        padding-top: 90px;
        padding-bottom: 40px;
        gap: 36px;
    }
    .hero-right { min-height: unset; order: -1; }
    .hero-bull-svg { max-width: 280px; }
    .hero-title { font-size: clamp(2rem, 9vw, 3rem) !important; }
    .creators-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .how-steps-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .how-step-arrow { display: none; }
    .bottom-cta-card {
        flex-direction: column;
        padding: 36px 24px;
    }
    .bottom-cta-visual { display: none; }
    .lb-preview-row {
        grid-template-columns: 36px 1fr auto auto;
    }
    .lb-markets { display: none; }
    .section-title { font-size: clamp(1.5rem, 6vw, 2.2rem) !important; }
    .container { padding: 0 16px; }
    .btn-primary { padding: 13px 28px; width: auto; }
    .hero-actions { flex-wrap: wrap; gap: 16px; }
    .how-teaser-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .leaderboard-preview-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .bottom-cta-actions { flex-wrap: wrap; gap: 14px; }
    .market-ticker-wrap::before,
    .market-ticker-wrap::after { width: 60px; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .creators-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr 1fr; }
    .how-steps-row { grid-template-columns: 1fr; gap: 16px; }
    .how-step-arrow { display: none; }
    .bottom-cta-visual { width: 140px; opacity: 0.5; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-content { grid-template-columns: 1fr; padding-top: 100px; }
    .hero-right { order: -1; }
    .hero-bull-svg { max-width: 300px; }
    .why-grid { grid-template-columns: 1fr; }
    .creators-grid { grid-template-columns: 1fr; }
    .prediction-cards-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   NAV + FOOTER RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* ── 375px — iPhone SE / minimum supported ── */
@media (max-width: 480px) {

    /* NAV: handled by unified mobile nav block elsewhere */

    /* BANNER */
    .prototype-banner { padding: 8px 12px; }
    .prototype-banner p { font-size: 0.65rem; }
    .prototype-banner-close { font-size: 1rem; }

    /* FOOTER */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 0 32px;
    }
    .footer-col:nth-child(4) { order: -1; }
    .footer-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .footer-bottom-bar span { white-space: normal; }
    .footer-community-links { gap: 16px; }
}

/* ── 481px – 767px — Large phones, small tablets portrait ── */
@media (min-width: 481px) and (max-width: 767px) {

    /* NAV: handled by unified mobile nav block elsewhere */
    .xmr-price-card {
        display: flex;
    }

    /* FOOTER */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        padding: 48px 0 36px;
    }
    .footer-col-brand {
        grid-column: 1 / -1;
    }
    .footer-col:nth-child(4) {
        grid-column: 1 / -1;
    }
    .footer-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* ── 768px – 1023px — Tablets landscape, small laptops ── */
@media (min-width: 768px) and (max-width: 1023px) {

    /* NAV: handled by unified mobile nav block elsewhere */

    /* FOOTER */
    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr;
        gap: 32px;
        padding: 52px 0 40px;
    }
    .footer-col:nth-child(4) {
        grid-column: 1 / -1;
        max-width: 600px;
    }
}

/* ── 1024px – 1279px — Standard laptops ── */
@media (min-width: 1024px) and (max-width: 1279px) {

    /* NAV — all pill tabs visible, no hamburger */
    .nav-hamburger { display: none; }
    .nav-links { display: flex !important; }
    .nav-inner { padding: 0 8px 0 14px; gap: 4px; }
    .nav-link { font-size: 0.74rem; padding: 5px 10px; }
    .search-trigger span { display: none; }

    /* FOOTER */
    .footer-grid {
        grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
        gap: 36px;
    }
}

/* ── 1280px+ — Full desktop (default layout) ── */
@media (min-width: 1280px) {

    /* NAV */
    .nav-hamburger { display: none; }
    .nav-links { display: flex !important; }
    .nav-inner { padding: 0 8px 0 16px; gap: 6px; }
    .nav-link { font-size: 0.78rem; padding: 6px 13px; }
    .search-trigger span { display: inline; }
    .search-trigger kbd { display: inline; }

    /* FOOTER */
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
        gap: 48px;
        padding: 60px 0 44px;
    }
}


/* ==========================================================================
   LEGAL PAGE
   ========================================================================== */

.legal-updated {
    color: var(--color-text-muted);
    font-size: 0.82rem;
    margin-top: 8px;
}

.legal-card {
    display: flex;
    flex-direction: column;
    padding: 32px 36px;
    margin-bottom: 16px;
    border-left: 3px solid rgba(255,255,255,0.08);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.legal-card[data-accent="orange"] { border-left-color: var(--xmr-orange); }
.legal-card[data-accent="cyan"]   { border-left-color: var(--color-accent); }
.legal-card[data-accent="muted"]  { border-left-color: var(--color-tertiary); }

.legal-card:hover {
    background: var(--glass-bg-hover);
}

.legal-card-number {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.3);
    margin-bottom: 10px;
}

.legal-card-heading {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--color-text-main);
}

.legal-card-body p {
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--color-text-muted);
}

.legal-card-body a {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(0,217,255,0.3);
    transition: border-color 0.2s;
}
.legal-card-body a:hover { border-bottom-color: var(--color-accent); }

@media (max-width: 640px) {
    .legal-card { padding: 24px 20px; }
    .legal-card-heading { font-size: 1.05rem; }
}


/* ==========================================================================
   TERMS PAGE
   ========================================================================== */

.terms-effective {
    color: var(--color-text-muted);
    font-size: 0.82rem;
    margin-top: 8px;
}

.terms-clause {
    border: var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border-radius: var(--radius-lg);
    margin-bottom: 8px;
    overflow: hidden;
    transition: background 0.3s ease;
}

.terms-clause:hover {
    background: var(--glass-bg-hover);
}

.terms-clause-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
}

.terms-clause-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(82,39,255,0.12);
    color: var(--color-primary);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.terms-clause.open .terms-clause-number {
    background: var(--color-primary);
    color: #fff;
}

.terms-clause-title {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.terms-clause-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.3);
    transition: transform 0.3s ease;
}

.terms-clause.open .terms-clause-icon {
    transform: rotate(180deg);
    color: var(--color-accent);
}

.terms-clause-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.terms-clause-inner {
    padding: 0 24px 24px;
    padding-left: 72px;
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--color-text-muted);
}

.terms-clause-inner p { margin-bottom: 12px; }
.terms-clause-inner p:last-child { margin-bottom: 0; }

.terms-clause-inner ul {
    padding-left: 20px;
    margin-bottom: 12px;
}
.terms-clause-inner li {
    margin-bottom: 6px;
    line-height: 1.7;
}

.terms-clause-inner a {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(0,217,255,0.3);
}
.terms-clause-inner a:hover { border-bottom-color: var(--color-accent); }

.terms-clause-inner strong { color: var(--color-text-main); font-weight: 600; }

@media (max-width: 640px) {
    .terms-clause-header { padding: 16px 18px; gap: 12px; }
    .terms-clause-inner { padding: 0 18px 20px; padding-left: 18px; }
    .terms-clause-title { font-size: 0.88rem; }
}


/* ==========================================================================
   RESOLUTION PAGE
   ========================================================================== */

.res-section-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text-main);
}

.res-section-intro {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    max-width: 700px;
    margin-bottom: 40px;
}

/* Timeline */
.res-timeline {
    position: relative;
    padding-left: 40px;
}

.res-timeline-line {
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, var(--color-accent), var(--color-primary), var(--state-resolved-yes, #00D97E));
    opacity: 0.3;
}

.res-step {
    position: relative;
    margin-bottom: 32px;
}

.res-step:last-child { margin-bottom: 0; }

.res-step-marker {
    position: absolute;
    left: -40px;
    top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.res-step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--dot-color, rgba(255,255,255,0.3));
    box-shadow: 0 0 12px var(--dot-color, transparent);
}

.res-step-num {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.05em;
}

.res-step-card {
    padding: 28px 32px;
}

.res-step-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--badge-color, #fff);
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--badge-color, rgba(255,255,255,0.15));
    margin-bottom: 12px;
}

.res-step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text-main);
}

.res-step-card p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.res-step-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.res-step-detail-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.res-step-detail-value {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

/* Oracle grid */
.oracle-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.oracle-card {
    padding: 28px;
}

.oracle-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    color: var(--icon-color, var(--color-accent));
    margin-bottom: 16px;
}

.oracle-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text-main);
}

.oracle-card p {
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.oracle-example {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
}

/* Void grid */
.void-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.void-card {
    padding: 24px;
}

.void-card-icon {
    font-size: 1.6rem;
    line-height: 1;
    margin-bottom: 12px;
    opacity: 0.4;
}

.void-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text-main);
}

.void-card p {
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--color-text-muted);
}

/* Dispute section */
.dispute-info {
    padding: 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.dispute-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-text-main);
}

.dispute-req-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dispute-req {
    display: flex;
    gap: 14px;
}

.dispute-req-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,217,255,0.1);
    color: var(--color-accent);
    font-size: 0.72rem;
    font-weight: 600;
}

.dispute-req strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 4px;
}

.dispute-req p {
    font-size: 0.84rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.dispute-process ul {
    padding-left: 18px;
}

.dispute-process li {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.dispute-submit-row {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.dispute-window-note {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
}

@media (max-width: 768px) {
    .res-timeline { padding-left: 32px; }
    .res-step-marker { left: -32px; }
    .res-step-card { padding: 20px; }
    .oracle-grid, .void-grid { grid-template-columns: 1fr; }
    .dispute-info { grid-template-columns: 1fr; padding: 24px; gap: 28px; }
}


/* ==========================================================================
   POSITIONS PAGE
   ========================================================================== */

/* Stats row */
.pos-stats-section {
    position: relative;
    z-index: 10;
    padding: 0 0 32px;
}

.pos-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (min-width: 1024px) {
    .pos-stats-row { grid-template-columns: repeat(6, 1fr); }
}

.pos-stat-card {
    padding: 20px 24px;
    text-align: center;
}

.pos-stat-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 8px;
}

.pos-stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.pos-stat-value.pnl-positive { color: #00D97E; }
.pos-stat-value.pnl-negative { color: #FF4D6A; }

/* Position cards */
.pos-card {
    display: block;
    padding: 24px 28px;
    margin-bottom: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.pos-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    background: var(--glass-bg-hover);
}

/* Side-tinted card borders */
.pos-card[data-side="yes"] {
    border-color: rgba(0, 217, 255, 0.15);
    box-shadow: inset 3px 0 16px rgba(0,217,255,0.06), 0 4px 20px rgba(0,0,0,0.15);
}
.pos-card[data-side="no"] {
    border-color: rgba(255, 77, 106, 0.15);
    box-shadow: inset 3px 0 16px rgba(255,77,106,0.06), 0 4px 20px rgba(0,0,0,0.15);
}

/* Status-reactive card appearance */
.pos-card[data-status="settled_win"] {
    border-color: rgba(0, 200, 83, 0.2);
}
.pos-card[data-status="settled_loss"] {
    opacity: 0.6;
    filter: saturate(0.5);
}
.pos-card[data-status="settled_loss"]:hover {
    opacity: 0.85;
    filter: saturate(0.7);
}
.pos-card[data-status="void"],
.pos-card[data-status="closed"] {
    opacity: 0.5;
    filter: saturate(0.4);
}

.pos-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.pos-close-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 14px;
    width: auto;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: #FF4D6A;
    background: rgba(255, 77, 106, 0.06);
    border: 1px solid rgba(255, 77, 106, 0.18);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 2px 8px rgba(0,0,0,0.15);
}

.pos-close-btn:hover {
    background: rgba(255, 77, 106, 0.12);
    border-color: rgba(255, 77, 106, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,77,106,0.15);
}

.pos-close-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pos-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 14px;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--color-accent);
    background: rgba(0, 217, 255, 0.06);
    border: 1px solid rgba(0, 217, 255, 0.18);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 2px 8px rgba(0,0,0,0.15);
}

.pos-share-btn:hover {
    background: rgba(0, 217, 255, 0.12);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.1);
}

.pos-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.pos-side-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pos-side-yes {
    background: rgba(0, 217, 255, 0.15);
    color: #00D9FF;
    border: 1px solid rgba(0, 217, 255, 0.35);
    font-weight: 800;
}

.pos-side-no {
    background: rgba(255, 77, 106, 0.15);
    color: #FF4D6A;
    border: 1px solid rgba(255, 77, 106, 0.35);
    font-weight: 800;
}

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

.pos-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.pos-card-stat-l {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.35);
    margin-bottom: 4px;
}

.pos-card-stat-v {
    display: block;
    font-size: 0.88rem;
    color: var(--color-text-main);
}

.pos-pnl-win { color: #00D97E !important; }
.pos-pnl-loss { color: #FF4D6A !important; }

/* P&L stat cell with background tint */
.pos-pnl-cell {
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
}
.pos-pnl-cell.win {
    background: rgba(0, 217, 126, 0.08);
    border: 1px solid rgba(0, 217, 126, 0.15);
    color: #00D97E;
}
.pos-pnl-cell.loss {
    background: rgba(255, 77, 106, 0.08);
    border: 1px solid rgba(255, 77, 106, 0.15);
    color: #FF4D6A;
}

/* Probability track with entry marker */
.pos-prob-track {
    margin-top: 4px;
}
.pos-prob-bar {
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    position: relative;
    overflow: visible;
}
.pos-prob-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
.pos-card[data-side="yes"] .pos-prob-fill {
    background: linear-gradient(90deg, #00D9FF, rgba(0,217,255,0.4));
}
.pos-card[data-side="no"] .pos-prob-fill {
    background: linear-gradient(90deg, #FF4D6A, rgba(255,77,106,0.4));
}
.pos-entry-tick {
    position: absolute;
    top: -4px;
    width: 2px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 1px;
    transform: translateX(-1px);
}
.pos-prob-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: rgba(255,255,255,0.3);
    margin-top: 4px;
}
.pos-entry-label {
    color: rgba(255,255,255,0.2);
}

/* Card entrance animation */
@keyframes pos-card-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Empty state */
.pos-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px 32px;
    gap: 16px;
}

.pos-empty-icon { opacity: 0.4; }

.pos-empty-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.pos-empty-body {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    max-width: 480px;
}

/* Storage info */
.pos-storage-info {
    padding: 24px 28px;
}

.pos-storage-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.pos-storage-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.pos-storage-info strong {
    display: block;
    font-size: 0.92rem;
    color: var(--color-text-main);
    margin-bottom: 6px;
}

.pos-storage-info p {
    font-size: 0.82rem;
    line-height: 1.65;
    color: var(--color-text-muted);
}

.pos-storage-info code {
    font-size: 0.78rem;
    padding: 1px 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    color: var(--color-accent);
}

.pos-storage-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pos-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.04);
    color: var(--color-text-muted);
    font-size: 0.8rem;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.pos-action-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
    color: var(--color-text-main);
}

@media (max-width: 768px) {
    .pos-stats-row { grid-template-columns: repeat(2, 1fr); }
    .pos-card-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 480px) {
    .pos-stats-row { grid-template-columns: 1fr; }
    .pos-card { padding: 18px; }
}


/* ==========================================================================
   PROPOSE PAGE — Glassmorphic Form
   ========================================================================== */

.propose-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.propose-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Fields */
.propose-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.propose-field-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.propose-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.propose-char-count {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    transition: color 0.2s;
}

.propose-char-count.over {
    color: #FF4D6A;
}

.propose-hint {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
    line-height: 1.5;
}

/* Input wrap — frost glass effect */
.propose-input-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.propose-input-glow {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.08);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.propose-input-wrap:focus-within .propose-input-glow {
    border-color: rgba(0,217,255,0.4);
    box-shadow: 0 0 20px rgba(0,217,255,0.08), inset 0 0 20px rgba(0,217,255,0.03);
}

.propose-input-wrap.filled .propose-input-glow {
    border-color: rgba(0,200,83,0.25);
}

.propose-input-wrap.error .propose-input-glow {
    border-color: rgba(255,82,82,0.5);
    box-shadow: 0 0 16px rgba(255,82,82,0.1);
}

.propose-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    border-radius: var(--radius-lg);
    color: var(--color-text-main);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    outline: none;
    transition: background 0.2s;
}

.propose-input::placeholder {
    color: rgba(255,255,255,0.2);
}

.propose-input:focus {
    background: rgba(255,255,255,0.05);
}

.propose-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.propose-date-input {
    cursor: pointer;
    color-scheme: dark;
}

/* Category pills */
.propose-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.propose-pills.error .propose-pill {
    border-color: rgba(255,82,82,0.4);
}

.propose-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    color: var(--color-text-muted);
    font-family: var(--font-primary);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.propose-pill:hover {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
    color: var(--color-text-main);
}

.propose-pill.active {
    border-color: var(--color-accent);
    background: rgba(0,217,255,0.08);
    color: var(--color-accent);
    box-shadow: 0 0 12px rgba(0,217,255,0.1);
}

/* Submit area */
.propose-submit-area {
    padding-top: 8px;
}

.propose-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 36px;
    border: none;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    font-family: var(--font-primary);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    min-width: 180px;
}

.propose-submit-btn:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}

.propose-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.propose-submit-loading {
    display: inline-flex;
    align-items: center;
}

.propose-spinner {
    animation: propose-spin 1s linear infinite;
}

@keyframes propose-spin {
    100% { transform: rotate(360deg); }
}

.propose-submit-note {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
    line-height: 1.6;
    margin-top: 12px;
    max-width: 440px;
}

/* Live Preview */
.propose-preview-wrap {
    position: sticky;
    top: 120px;
}

.propose-preview-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.3);
    margin-bottom: 12px;
}

.propose-preview-card {
    padding: 28px;
    margin-bottom: 20px;
}

.propose-preview-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin: 14px 0 8px;
    line-height: 1.4;
    min-height: 1.4em;
}

.propose-preview-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    min-height: 1.6em;
}

.propose-preview-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 4px;
}

.propose-preview-cat,
.propose-preview-date {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    text-transform: capitalize;
}

.propose-preview-criteria {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.propose-preview-criteria-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.3);
    display: block;
    margin-bottom: 8px;
}

.propose-preview-criteria p {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Guidelines */
.propose-guidelines {
    padding: 24px;
}

.propose-guidelines h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 14px;
}

.propose-guidelines ul {
    padding-left: 16px;
}

.propose-guidelines li {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: 10px;
}

/* Success overlay */
.propose-success-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5,5,5,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.propose-success-card {
    max-width: 480px;
    padding: 48px 40px;
    text-align: center;
}

.propose-success-icon {
    margin-bottom: 20px;
}

.propose-success-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 14px;
}

.propose-success-card p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 28px;
}

.propose-success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.propose-another-btn {
    padding: 10px 24px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--color-text-muted);
    font-family: var(--font-primary);
    font-size: 0.88rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.propose-another-btn:hover {
    border-color: rgba(255,255,255,0.3);
    color: var(--color-text-main);
}

@media (max-width: 900px) {
    .propose-layout {
        grid-template-columns: 1fr;
    }
    .propose-preview-wrap {
        position: static;
        order: -1;
    }
}

@media (max-width: 480px) {
    .propose-input { padding: 12px 14px; font-size: 0.85rem; }
    .propose-pills { gap: 6px; }
    .propose-pill { padding: 6px 12px; font-size: 0.78rem; }
    .propose-submit-btn { width: 100%; }
}


/* ==========================================================================
   PRIVACY PAGE — The Showpiece
   ========================================================================== */

/* Hero */
.prv-hero {
    position: relative;
    z-index: 10;
    padding: 140px 0 80px;
    overflow: hidden;
}

.prv-hero-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.prv-shield-wrap {
    flex-shrink: 0;
    width: 240px;
    height: 280px;
    position: relative;
}

.prv-shield-svg {
    width: 100%;
    height: 100%;
}

.prv-shield-path {
    animation: prv-shield-pulse 4s ease-in-out infinite;
}

@keyframes prv-shield-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.prv-shield-check {
    transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.prv-orbit { opacity: 0.6; }

.prv-orbit-dot {
    filter: drop-shadow(0 0 4px currentColor);
}

.prv-hero-text {
    flex: 1;
}

.prv-hero-eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.prv-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-text-main);
    margin-bottom: 20px;
}

.prv-title-accent {
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.prv-hero-subtitle {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    max-width: 560px;
}

/* Section titles — shared across privacy sections */
.prv-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 12px;
}

.prv-section-intro {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    max-width: 680px;
    margin-bottom: 40px;
}

/* All privacy sections */
.prv-nothing-section,
.prv-badges-section,
.prv-storage-section,
.prv-monero-section,
.prv-comparison-section,
.prv-track-section,
.prv-guarantees-section,
.prv-contact-section {
    position: relative;
    z-index: 10;
    padding: 64px 0;
}

/* Scroll animation */
.prv-animate {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.prv-animate.prv-visible {
    opacity: 1;
    transform: translateY(0);
}

/* "Nothing" reveal */
.prv-nothing-header {
    margin-bottom: 24px;
}

.prv-nothing-reveal {
    text-align: center;
    padding: 48px 0;
}

.prv-nothing-answer {
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-text-main);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.prv-nothing-reveal.prv-revealed .prv-nothing-answer {
    opacity: 1;
    transform: scale(1);
}

.prv-nothing-elaboration {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 20px auto 0;
    opacity: 0;
    transition: opacity 0.6s ease 0.4s;
}

.prv-nothing-reveal.prv-revealed .prv-nothing-elaboration {
    opacity: 1;
}

/* Badge grid */
.prv-badge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.prv-badge {
    padding: 28px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.prv-badge:hover {
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.prv-badge-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 16px;
}

.prv-badge-icon.prv-badge-no {
    background: rgba(255,77,106,0.08);
    color: #FF4D6A;
}

.prv-badge h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 8px;
}

.prv-badge p {
    font-size: 0.84rem;
    line-height: 1.65;
    color: var(--color-text-muted);
}

/* Storage section */
.prv-storage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.prv-storage-item {
    padding: 24px;
}

.prv-storage-key {
    display: inline-block;
    font-size: 0.82rem;
    padding: 3px 10px;
    background: rgba(0,217,255,0.08);
    border: 1px solid rgba(0,217,255,0.15);
    border-radius: var(--radius-md);
    color: var(--color-accent);
    margin-bottom: 10px;
}

.prv-storage-item p {
    font-size: 0.84rem;
    line-height: 1.65;
    color: var(--color-text-muted);
}

.prv-storage-proof {
    padding: 24px 28px;
}

.prv-storage-proof h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 8px;
}

.prv-storage-proof p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

/* Monero features */
.prv-monero-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.prv-monero-feature {
    padding: 32px;
    border-left: 3px solid rgba(255,255,255,0.06);
    transition: border-color 0.3s ease;
}

.prv-monero-feature:hover {
    border-left-color: var(--feat-color, var(--color-accent));
}

.prv-feature-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.prv-feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    color: var(--feat-color, var(--color-accent));
}

.prv-feature-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.prv-feature-tag {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.4);
    margin-left: auto;
}

.prv-monero-feature > p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.prv-feature-detail {
    display: flex;
    align-items: center;
    gap: 12px;
}

.prv-feature-detail-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.35);
}

.prv-feature-detail-value {
    font-size: 0.84rem;
    color: var(--color-text-muted);
}

/* Comparison table */
.prv-comparison-wrap {
    padding: 0;
    overflow: hidden;
}

.prv-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.prv-comparison-table th,
.prv-comparison-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.prv-comparison-table thead th {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.02);
    padding: 16px 20px;
}

.prv-comparison-table tbody td:first-child {
    color: var(--color-text-muted);
    font-weight: 500;
}

.prv-col-us {
    background: rgba(0,217,255,0.03);
}

.prv-check-good {
    color: #00D97E;
    font-weight: 600;
}

.prv-check-good::before {
    content: '✓ ';
    opacity: 0.7;
}

.prv-check-bad {
    color: rgba(255,255,255,0.4);
}

.prv-check-bad::before {
    content: '✕ ';
    color: #FF4D6A;
    opacity: 0.7;
}

.prv-comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* Track record */
.prv-track-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.prv-track-card {
    padding: 32px;
}

.prv-track-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.prv-track-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.prv-track-link {
    font-size: 0.78rem;
    color: var(--color-accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

.prv-track-link:hover { opacity: 0.8; }

.prv-track-card > p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.prv-track-stats {
    display: flex;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.prv-track-stat-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.3);
    margin-bottom: 4px;
}

.prv-track-stat-value {
    font-size: 0.95rem;
    color: #00D97E;
    font-weight: 600;
}

/* Guarantees */
.prv-guarantees-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.prv-guarantee {
    display: flex;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.prv-guarantee:last-child { border-bottom: none; }

.prv-guarantee-num {
    flex-shrink: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0.6;
    width: 48px;
    text-align: center;
    line-height: 1.2;
}

.prv-guarantee h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 6px;
}

.prv-guarantee p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

/* Privacy contact */
.prv-contact-card {
    padding: 36px;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.prv-contact-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 14px;
}

.prv-contact-card p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.prv-contact-card a {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(0,217,255,0.3);
}
.prv-contact-card a:hover { border-bottom-color: var(--color-accent); }

.prv-contact-note {
    margin-top: 16px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

.prv-contact-note em {
    color: var(--color-accent);
    font-style: italic;
}

/* Privacy page responsive */
@media (max-width: 900px) {
    .prv-hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }
    .prv-shield-wrap { width: 180px; height: 210px; }
    .prv-hero-title { font-size: 2rem; }
    .prv-hero-subtitle { margin: 0 auto; }
    .prv-badge-grid { grid-template-columns: repeat(2, 1fr); }
    .prv-track-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .prv-hero { padding: 120px 0 48px; }
    .prv-hero-title { font-size: 1.6rem; }
    .prv-shield-wrap { width: 140px; height: 168px; }
    .prv-badge-grid { grid-template-columns: 1fr; }
    .prv-storage-grid { grid-template-columns: 1fr; }
    .prv-nothing-answer { font-size: 2.5rem; }
    .prv-monero-feature { padding: 24px; }
    .prv-feature-tag { margin-left: 0; }
    .prv-comparison-table th,
    .prv-comparison-table td { padding: 10px 12px; font-size: 0.78rem; }
    .prv-guarantee { gap: 16px; }
    .prv-guarantee-num { width: 36px; font-size: 1.1rem; }
    .prv-track-stats { flex-direction: column; gap: 12px; }
    .prv-section-title { font-size: 1.3rem; }
}

/* ═══════════════════════════════════════════════════════════════
   ACCESSIBILITY — Skip Link
   ═══════════════════════════════════════════════════════════════ */

.skip-to-main {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 9999;
    background: var(--xmr-orange, #FF6600);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 0 0 8px 8px;
    font-family: 'Geist', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.15s ease;
    white-space: nowrap;
}
.skip-to-main:focus {
    top: 0;
    outline: 2px solid rgba(255,255,255,0.6);
    outline-offset: 2px;
}

/* === FOCUS STYLES === */

/* Strip default from everything */
*:focus { outline: none; }

/* Apply custom ring to all keyboard-navigable elements */
*:focus-visible {
    outline: 2px solid rgba(0,217,255,0.65);
    outline-offset: 3px;
    border-radius: 4px;
}

button:focus-visible,
.btn-primary:focus-visible,
.btn-pill:focus-visible {
    outline-width: 2px;
    outline-offset: 4px;
    border-radius: 8px;
}

.nav-link:focus-visible {
    outline: 2px solid rgba(0,217,255,0.55);
    outline-offset: 2px;
    border-radius: 6px;
}

a.prediction-card:focus-visible,
a.creator-card:focus-visible,
.search-result-item:focus-visible {
    outline: 2px solid rgba(0,217,255,0.5);
    outline-offset: 4px;
    border-radius: inherit;
}

.search-input:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid rgba(0,217,255,0.5);
    outline-offset: 0;
    border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    /* Disable purely decorative animations */
    .bull-float          { animation: none !important; }
    .ticker-track        { animation-play-state: paused !important; }
    .prob-ring           { animation: none !important; }
    .page-in             { animation: none !important; opacity: 1 !important; }

    /* Disable WebGL backgrounds — they can cause motion sickness */
    #webgl-mount canvas  { display: none !important; }

    /* Ensure pages still have a background without WebGL */
    body {
        background:
            radial-gradient(ellipse at 20% 80%, rgba(255,102,0,0.06) 0%, transparent 60%),
            radial-gradient(ellipse at 80% 20%, rgba(82,39,255,0.08) 0%, transparent 60%),
            #050514 !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   RESOLVED MARKETS
   ═══════════════════════════════════════════════════════════════ */

.market-card-resolved {
    opacity: 0.75;
    pointer-events: auto;
}
.market-card-resolved:hover { opacity: 0.90; }

.resolved-outcome-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 6px;
    margin: 10px 0 8px;
    width: fit-content;
}
.resolved-yes {
    background: rgba(0,217,126,0.12);
    border: 1px solid rgba(0,217,126,0.25);
}
.resolved-no {
    background: rgba(255,77,106,0.10);
    border: 1px solid rgba(255,77,106,0.20);
}
.resolved-outcome-label {
    font-family: 'Geist Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
}
.resolved-yes .resolved-outcome-label { color: #00D97E; }
.resolved-no  .resolved-outcome-label { color: #FF4D6A; }

.resolved-footer {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.resolved-date {
    font-family: 'Geist Mono', monospace;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
}
.resolved-note {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.30);
    line-height: 1.5;
    font-weight: 400;
}

/* Resolved tab styling */
.filter-tab[data-filter="resolved"],
.filter-tab[data-category="resolved"] {
    border-color: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.35);
}
.filter-tab[data-filter="resolved"].active,
.filter-tab[data-category="resolved"].active {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.65);
    border-color: rgba(255,255,255,0.15);
}

/* ═══════════════════════════════════════════════════════════════
   CHANGELOG
   ═══════════════════════════════════════════════════════════════ */

.changelog-timeline {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.changelog-entry {
    padding: 28px 32px;
    position: relative;
    border-left: 2px solid rgba(255,102,0,0.2) !important;
}
.changelog-entry:first-child {
    border-left-color: rgba(255,102,0,0.5) !important;
}

.changelog-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.changelog-version {
    font-family: 'Geist Mono', monospace;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(255,102,0,0.1);
    color: var(--xmr-orange, #FF6600);
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,102,0,0.18);
    white-space: nowrap;
}

.changelog-date {
    font-family: 'Geist Mono', monospace;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.30);
    white-space: nowrap;
}

.changelog-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.changelog-type-badge {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 2px 8px;
    border-radius: 4px;
}
.badge-ui      { background: rgba(0,217,255,0.1);  color: #00D9FF; }
.badge-markets { background: rgba(255,102,0,0.1);  color: #FF6600; }
.badge-fix     { background: rgba(252,129,129,0.1);color: #FC8181; }
.badge-data    { background: rgba(72,187,120,0.1); color: #48BB78; }
.badge-policy  { background: rgba(159,122,234,0.1);color: #9F7AEA; }

.changelog-title {
    font-family: 'Geist', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    line-height: 1.3;
}

.changelog-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.changelog-items li {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.50);
    line-height: 1.6;
    padding-left: 18px;
    position: relative;
    font-weight: 400;
}

.changelog-items li::before {
    content: '\00B7';
    position: absolute;
    left: 5px;
    color: rgba(255,102,0,0.45);
    font-size: 1rem;
    line-height: 1.4;
}

/* Mobile */
@media (max-width: 640px) {
    .changelog-entry { padding: 20px 20px 20px 22px; }
    .changelog-title { font-size: 0.92rem; }
    .changelog-items li { font-size: 0.78rem; }
}

/* ==========================================================================
   PASS 6 — AMPLIFICATION
   ========================================================================== */

/* ── 4A: Section Dividers ── */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(255,102,0,0.15) 20%,
      rgba(82,39,255,0.20) 50%,
      rgba(0,217,255,0.15) 80%,
      transparent 100%
    );
    margin: 0;
    border: none;
}

/* ── 4C: Prediction Card Category Left Edge (via inset box-shadow on hover) ── */
.prediction-card[data-category="price"]:hover::after {
    box-shadow:
        inset 3px 0 12px rgba(255,102,0,0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 1px 0 0 rgba(255, 255, 255, 0.08),
        inset -1px 0 0 rgba(0, 0, 0, 0.12),
        inset 0 -2px 10px rgba(0, 0, 0, 0.22),
        0 24px 64px rgba(0, 0, 0, 0.5),
        0 4px 16px rgba(255,102,0,0.08);
}
.prediction-card[data-category="protocol"]:hover::after {
    box-shadow:
        inset 3px 0 12px rgba(0,217,255,0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 1px 0 0 rgba(255, 255, 255, 0.08),
        inset -1px 0 0 rgba(0, 0, 0, 0.12),
        inset 0 -2px 10px rgba(0, 0, 0, 0.22),
        0 24px 64px rgba(0, 0, 0, 0.5),
        0 4px 16px rgba(0,217,255,0.06);
}
.prediction-card[data-category="network"]:hover::after {
    box-shadow:
        inset 3px 0 12px rgba(159,122,234,0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 1px 0 0 rgba(255, 255, 255, 0.08),
        inset -1px 0 0 rgba(0, 0, 0, 0.12),
        inset 0 -2px 10px rgba(0, 0, 0, 0.22),
        0 24px 64px rgba(0, 0, 0, 0.5),
        0 4px 16px rgba(159,122,234,0.06);
}
.prediction-card[data-category="ecosystem"]:hover::after,
.prediction-card[data-category="adoption"]:hover::after {
    box-shadow:
        inset 3px 0 12px rgba(72,187,120,0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 1px 0 0 rgba(255, 255, 255, 0.08),
        inset -1px 0 0 rgba(0, 0, 0, 0.12),
        inset 0 -2px 10px rgba(0, 0, 0, 0.22),
        0 24px 64px rgba(0, 0, 0, 0.5),
        0 4px 16px rgba(72,187,120,0.06);
}
.prediction-card[data-category="regulatory"]:hover::after {
    box-shadow:
        inset 3px 0 12px rgba(252,129,129,0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 1px 0 0 rgba(255, 255, 255, 0.08),
        inset -1px 0 0 rgba(0, 0, 0, 0.12),
        inset 0 -2px 10px rgba(0, 0, 0, 0.22),
        0 24px 64px rgba(0, 0, 0, 0.5),
        0 4px 16px rgba(252,129,129,0.06);
}
.prediction-card[data-category="community"]:hover::after {
    box-shadow:
        inset 3px 0 12px rgba(159,122,234,0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 1px 0 0 rgba(255, 255, 255, 0.08),
        inset -1px 0 0 rgba(0, 0, 0, 0.12),
        inset 0 -2px 10px rgba(0, 0, 0, 0.22),
        0 24px 64px rgba(0, 0, 0, 0.5),
        0 4px 16px rgba(159,122,234,0.06);
}

/* ── 4F: Bottom CTA Orange Glow Pulse ── */
@keyframes cta-breathe {
    0%, 100% {
      box-shadow:
        inset 0 1.5px 0 rgba(255,255,255,0.10),
        0 0 60px rgba(255,102,0,0.05),
        0 20px 60px rgba(0,0,0,0.4);
    }
    50% {
      box-shadow:
        inset 0 1.5px 0 rgba(255,255,255,0.12),
        0 0 100px rgba(255,102,0,0.12),
        0 20px 60px rgba(0,0,0,0.4);
    }
}

/* ── 4G: Leaderboard Rank Medal Glows ── */
.leaderboard-table tr.rank-1 .leaderboard-rank {
    text-shadow: 0 0 12px rgba(255,102,0,0.6);
}
.leaderboard-table tr.rank-2 .leaderboard-rank {
    text-shadow: 0 0 10px rgba(255,255,255,0.25);
}
.leaderboard-table tr.rank-3 .leaderboard-rank {
    text-shadow: 0 0 10px rgba(0,217,255,0.4);
}

/* ── 4H: FAQ Accordion Open State Polish ── */
.faq-accordion-item.open .faq-accordion-question {
    color: #ffffff;
}

/* ==========================================================================
   PREDICTIONS PAGE — CARD META ROW & BOTTOM ENRICHMENT
   ========================================================================== */

/* Card meta row: category left, state badge right */
.card-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-right: 42px; /* space for card-category-icon */
    flex-wrap: wrap;
}

/* Override resolution badge positioning when inside card-meta-row */
.card-meta-row .resolution-badge {
    position: static;
    flex-shrink: 0;
}

/* Category badge — color coded by type */
.card-meta-row .prediction-category,
.spotlight-top-row .prediction-category,
.sentiment-cat-badge,
.data-source-cat {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 5px;
    flex-shrink: 0;
}
.cat-price      { background:rgba(255,102,0,0.12);  color:#FF6600; border:1px solid rgba(255,102,0,0.2); }
.cat-protocol   { background:rgba(0,217,255,0.10);  color:#00D9FF; border:1px solid rgba(0,217,255,0.18); }
.cat-network    { background:rgba(159,122,234,0.10);color:#9F7AEA; border:1px solid rgba(159,122,234,0.18); }
.cat-ecosystem  { background:rgba(72,187,120,0.10); color:#48BB78; border:1px solid rgba(72,187,120,0.18); }
.cat-adoption   { background:rgba(72,187,120,0.10); color:#48BB78; border:1px solid rgba(72,187,120,0.18); }
.cat-regulatory { background:rgba(252,129,129,0.10);color:#FC8181; border:1px solid rgba(252,129,129,0.18); }
.cat-community  { background:rgba(255,189,46,0.10); color:#FFBD2E; border:1px solid rgba(255,189,46,0.18); }

/* Countdown under title (overrides old .countdown-display) */
.card-content-link .countdown-display {
    margin: 4px 0 10px;
    position: static;
}
.card-content-link .countdown-value {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.28);
    letter-spacing: 0.04em;
}

/* ── Propose CTA Band ── */
.propose-cta-band {
    margin-top: 40px;
    padding: 22px 28px;
    border-radius: 14px;
    background: rgba(255,102,0,0.04);
    border: 1px solid rgba(255,102,0,0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.propose-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.propose-cta-eyebrow {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,102,0,0.55);
    margin-bottom: 5px;
}
.propose-cta-copy {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
    max-width: 520px;
}
.propose-cta-band .creator-btn {
    margin-top: 0;
}
@media (max-width: 640px) {
    .propose-cta-inner { flex-direction: column; align-items: flex-start; }
    .propose-cta-band .creator-btn { width: 100%; justify-content: center; }
}

/* ── Section Eyebrow (shared) ── */
.section-eyebrow {
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
}

/* ── Spotlight Section ── */
.spotlight-section { margin-top: 64px; }
.spotlight-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.spotlight-badge {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    background: rgba(255,102,0,0.10);
    color: rgba(255,102,0,0.7);
    border: 1px solid rgba(255,102,0,0.18);
    padding: 2px 8px;
    border-radius: 4px;
}
.spotlight-card { padding: 0; overflow: hidden; }
.spotlight-card-link {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 0;
    text-decoration: none;
    transition: background 0.2s;
}
.spotlight-card-link:hover { background: rgba(255,255,255,0.01); }
.spotlight-left {
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-right: 1px solid rgba(255,255,255,0.06);
}
.spotlight-top-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.spotlight-days {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.28);
}
.spotlight-title {
    font-family: 'Geist', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    line-height: 1.25;
    margin: 0;
}
.spotlight-desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
}
.spotlight-criteria {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 12px 16px;
}
.spotlight-criteria-label {
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.22);
    display: block;
    margin-bottom: 6px;
}
.spotlight-criteria-text {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.42);
    line-height: 1.65;
    margin: 0;
    font-weight: 400;
}
.spotlight-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.spotlight-meta-item {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.28);
}
.spotlight-meta-sep {
    color: rgba(255,255,255,0.12);
    font-size: 0.72rem;
}
.spotlight-right {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    align-items: center;
    text-align: center;
}
.spotlight-prob-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.spotlight-prob-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #00D9FF, #5227FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.spotlight-prob-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.28);
    letter-spacing: 0.06em;
}
.spotlight-bar { margin: 4px 0; width: 100%; }
.spotlight-actions { margin-top: 6px; }
.spotlight-view-link {
    font-size: 0.78rem;
    color: rgba(0,217,255,0.65);
    font-weight: 500;
    transition: color 0.2s;
}
.spotlight-card-link:hover .spotlight-view-link { color: rgba(0,217,255,0.9); }
@media (max-width: 768px) {
    .spotlight-card-link { grid-template-columns: 1fr; }
    .spotlight-left {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        padding: 24px 20px;
    }
    .spotlight-right { padding: 20px; }
}

/* ── Community Sentiment ── */
.sentiment-section { margin-top: 64px; }
.sentiment-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.sentiment-subtitle {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.28);
    font-weight: 400;
}
.sentiment-card { padding: 28px 32px; }
.sentiment-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}
.sentiment-overall-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.sentiment-yes-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #00D9FF;
}
.sentiment-no-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.32);
}
.sentiment-bar-track {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
}
.sentiment-bar-yes {
    background: linear-gradient(90deg, #00D9FF, rgba(0,217,255,0.6));
    box-shadow: 0 0 10px rgba(0,217,255,0.3);
    transition: width 0.8s cubic-bezier(0.16,1,0.3,1);
}
.sentiment-bar-no {
    background: rgba(255,255,255,0.07);
    flex: 1;
}
.sentiment-note {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.22);
    margin: 10px 0 0;
    font-weight: 400;
}
.sentiment-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sentiment-cat-row {
    display: grid;
    grid-template-columns: 90px 1fr 36px 64px;
    align-items: center;
    gap: 10px;
}
.sentiment-cat-badge { font-size: 0.58rem !important; }
.sentiment-cat-bar-track {
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
}
.sentiment-cat-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.8s cubic-bezier(0.16,1,0.3,1);
}
.cat-fill-price      { background: rgba(255,102,0,0.6); }
.cat-fill-protocol   { background: rgba(0,217,255,0.6); }
.cat-fill-network    { background: rgba(159,122,234,0.6); }
.cat-fill-ecosystem,
.cat-fill-adoption   { background: rgba(72,187,120,0.6); }
.cat-fill-regulatory { background: rgba(252,129,129,0.6); }
.cat-fill-community  { background: rgba(255,189,46,0.6); }
.sentiment-cat-pct {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.45);
    text-align: right;
}
.sentiment-cat-count {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.22);
    text-align: right;
}
@media (max-width: 768px) {
    .sentiment-inner { grid-template-columns: 1fr; gap: 24px; }
    .sentiment-cat-row { grid-template-columns: 80px 1fr 32px; }
    .sentiment-cat-count { display: none; }
}

/* ── Recently Resolved Strip ── */
.resolved-strip-section { margin-top: 64px; }
.resolved-strip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.resolved-strip-viewall {
    font-size: 0.75rem;
    color: rgba(0,217,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
}
.resolved-strip-viewall:hover { color: rgba(0,217,255,0.8); }
.resolved-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.resolved-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
    border-radius: 10px;
    overflow: hidden;
}
.resolved-pill:hover { transform: translateY(-2px); }
.pill-yes { border-left: 2px solid rgba(0,217,126,0.4) !important; }
.pill-no  { border-left: 2px solid rgba(255,77,106,0.3) !important; }
.resolved-pill-outcome {
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
    white-space: nowrap;
}
.pill-yes .resolved-pill-outcome { color: #00D97E; }
.pill-no  .resolved-pill-outcome { color: #FF4D6A; }
.resolved-pill-title {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.50);
    line-height: 1.4;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.resolved-pill-date {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.22);
    flex-shrink: 0;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .resolved-strip { grid-template-columns: 1fr; }
}

/* ── Resolution Feed ── */
.resolution-feed-section { margin-top: 64px; }
.resolution-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.resolution-feed { padding: 0; overflow: hidden; }
.resolution-feed-row {
    display: grid;
    grid-template-columns: 10px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.15s;
}
.resolution-feed-row:last-child { border-bottom: none; }
.resolution-feed-row:hover { background: rgba(255,255,255,0.02); }
.feed-outcome-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot-yes {
    background: #00D97E;
    box-shadow: 0 0 6px rgba(0,217,126,0.5);
}
.dot-no {
    background: #FF4D6A;
    box-shadow: 0 0 6px rgba(255,77,106,0.4);
}
.feed-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.feed-market-title {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.60);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.feed-detail {
    font-size: 0.70rem;
    color: rgba(255,255,255,0.28);
    line-height: 1.5;
}
.feed-yes { color: #00D97E; font-weight: 700; font-style: normal; }
.feed-no  { color: #FF4D6A; font-weight: 700; font-style: normal; }
.feed-source-link {
    font-size: 0.65rem;
    color: rgba(0,217,255,0.40);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s;
}
.feed-source-link:hover { color: rgba(0,217,255,0.75); }
@media (max-width: 640px) {
    .resolution-feed-row { grid-template-columns: 10px 1fr; }
    .feed-source-link { display: none; }
}

/* ── Leaderboard Teaser ── */
.lb-teaser-section { margin-top: 64px; }
.lb-teaser-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.lb-teaser-card { padding: 0; overflow: hidden; }
.lb-teaser-row {
    display: grid;
    grid-template-columns: 32px 1fr auto auto auto;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.15s;
}
.lb-teaser-row:last-child { border-bottom: none; }
.lb-teaser-row:hover { background: rgba(255,255,255,0.02); }
.lb-rank-row-1 { border-left: 2px solid rgba(255,102,0,0.45); }
.lb-rank-row-2 { border-left: 2px solid rgba(255,255,255,0.12); }
.lb-rank-row-3 { border-left: 2px solid rgba(0,217,255,0.22); }
.lb-teaser-rank {
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
}
.lb-rank-1 { color: #FF6600; text-shadow: 0 0 10px rgba(255,102,0,0.5); }
.lb-rank-2 { color: rgba(255,255,255,0.65); }
.lb-rank-3 { color: rgba(0,217,255,0.7); }
.lb-teaser-addr {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
}
.lb-teaser-accuracy {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    text-align: right;
}
.lb-teaser-markets {
    font-size: 0.70rem;
    color: rgba(255,255,255,0.25);
    text-align: right;
}
.lb-profit-pos {
    font-size: 0.75rem;
    color: #00D97E;
    text-align: right;
}
@media (max-width: 768px) {
    .lb-teaser-row { grid-template-columns: 28px 1fr auto; }
    .lb-teaser-markets,
    .lb-teaser-profit { display: none; }
}

/* ── Data Sources ── */
.data-sources-section { margin-top: 64px; }
.data-sources-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.data-sources-card { padding: 28px 32px; }
.data-sources-intro {
    font-size: 0.80rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.65;
    margin: 0 0 22px;
    font-weight: 400;
    max-width: 600px;
}
.data-sources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.data-source-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.data-source-cat { width: fit-content; }
.data-source-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.data-source-link {
    font-size: 0.70rem;
    color: rgba(0,217,255,0.42);
    text-decoration: none;
    transition: color 0.18s;
    line-height: 1.4;
}
.data-source-link:hover { color: rgba(0,217,255,0.75); }
@media (max-width: 900px) {
    .data-sources-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
    .data-sources-grid { grid-template-columns: 1fr; }
    .data-sources-card { padding: 20px 18px; }
}

/* ── Help Section ── */
.help-section { margin-top: 64px; padding-bottom: 80px; }
.help-header { margin-bottom: 20px; }
.help-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.help-card {
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.help-card .creator-btn {
    margin-top: auto;
}
.help-card-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.help-card-title {
    font-family: 'Geist', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.3;
}
.help-card-body {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.48);
    line-height: 1.72;
    font-weight: 400;
    margin: 0;
    flex: 1;
}
@media (max-width: 640px) {
    .help-grid { grid-template-columns: 1fr; }
}

/* ── Empty State Upgrade ── */
.filter-empty-state {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: 40px 0;
}
.empty-state-card {
    max-width: 420px;
    width: 100%;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}
.empty-state-bull {
    width: 80px;
    height: auto;
    opacity: 0.5;
    filter: drop-shadow(0 0 12px rgba(255,102,0,0.3));
}
.empty-state-headline {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.02em;
}
.empty-state-body {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.42);
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
}
.empty-state-card .creator-btn {
    margin-top: 8px;
}

/* ==========================================================================
   SECTION DIVIDERS — Animated Houdini Gradient Lines
   ========================================================================== */

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

.section-divider {
    position: relative;
    height: 1px;
    margin: 48px 0;
    border: none;
    overflow: visible;
}

/* Base gradient line — animated shimmer */
.section-divider::before {
    content: '';
    position: absolute;
    inset: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,102,0,0.05) 10%,
        rgba(255,102,0,0.35) 30%,
        rgba(255,159,252,0.25) 45%,
        rgba(0,217,255,0.30) 55%,
        rgba(82,39,255,0.25) 70%,
        rgba(255,102,0,0.35) 85%,
        rgba(255,102,0,0.05) 95%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: divider-shimmer 8s ease-in-out infinite;
}

/* Glow layer — soft orange bloom behind the line */
.section-divider::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 10%;
    right: 10%;
    height: 7px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,102,0,0.08) 20%,
        rgba(255,102,0,0.14) 50%,
        rgba(255,102,0,0.08) 80%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: divider-shimmer 8s ease-in-out infinite;
    filter: blur(4px);
    border-radius: 50%;
}

/* Reduce the large 64px top margins on sections since dividers handle spacing */
.spotlight-section,
.sentiment-section,
.resolved-strip-section,
.resolution-feed-section,
.lb-teaser-section,
.data-sources-section,
.help-section {
    margin-top: 0;
}

/* Propose CTA also tightened */
.propose-cta-band {
    margin-top: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   AUTH UI — Login Modal + Nav Auth Button
   ═══════════════════════════════════════════════════════════════════════════ */

/* Nav auth */
.nav-auth {
    display: flex;
    align-items: center;
    margin-left: 12px;
}
.auth-signin-btn {
    padding: 6px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 102, 0, 0.4);
    background: rgba(255, 102, 0, 0.1);
    color: #ff6600;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 2px 8px rgba(0,0,0,0.15);
}
.auth-signin-btn:hover {
    background: rgba(255, 102, 0, 0.2);
    border-color: rgba(255, 102, 0, 0.6);
    transform: translateY(-1px);
}
.auth-user {
    position: relative;
}
.auth-handle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.2s;
}
.auth-handle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}
.auth-handle-icon {
    color: #ff6600;
    font-size: 0.6rem;
}
.auth-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 160px;
    background: rgba(10, 10, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(16px);
    padding: 6px 0;
    z-index: 1000;
}
@media (hover: hover) {
    .auth-user:hover .auth-dropdown { display: block; }
}
.auth-dropdown.open {
    display: block;
}
.auth-dropdown-item {
    display: block;
    width: 100%;
    padding: 8px 16px;
    text-align: left;
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}
.auth-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
}
.auth-dropdown-balance {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.auth-balance-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.auth-balance-value {
    font-size: 0.82rem;
    color: #fff;
}

/* Login modal */
#login-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}
#login-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.login-modal {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 20px;
    padding: 32px 28px 28px;
    background: rgba(10, 8, 24, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    backdrop-filter: blur(28px) saturate(180%) brightness(1.04);
    -webkit-backdrop-filter: blur(28px) saturate(180%) brightness(1.04);
    box-shadow:
        inset 0 1.5px 0 rgba(255,255,255,0.10),
        inset 0 -1px 0 rgba(0,0,0,0.20),
        0 4px 6px rgba(0,0,0,0.12),
        0 20px 60px rgba(0,0,0,0.40);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.25s ease;
}
#login-modal-overlay.open .login-modal {
    transform: translateY(0);
    opacity: 1;
}
.login-modal .modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.login-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.login-tab {
    flex: 1;
    padding: 10px 0;
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.login-tab.active {
    color: #ff6600;
    border-bottom-color: #ff6600;
}
.login-tab:hover {
    color: rgba(255, 255, 255, 0.7);
}
.login-error {
    padding: 10px 14px;
    margin-bottom: 16px;
    border-radius: 8px;
    background: rgba(255, 50, 50, 0.12);
    border: 1px solid rgba(255, 50, 50, 0.25);
    color: #ff6666;
    font-size: 0.82rem;
}
.login-field {
    margin-bottom: 16px;
}
.login-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.login-field input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 0.9rem;
    font-family: var(--font-mono);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.login-field input:focus {
    border-color: rgba(255, 102, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}
.login-field input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}
.login-submit {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff6600, #ff8533);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 2px 8px rgba(0,0,0,0.15);
}
.login-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.25);
    filter: brightness(1.1);
}
.login-submit:active {
    transform: scale(0.98);
}
.login-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.login-submit .spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.login-note {
    margin-top: 16px;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}
.login-forgot {
    text-align: right;
    margin-top: -8px;
    margin-bottom: 8px;
}
.login-forgot a {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.2s;
}
.login-forgot a:hover {
    color: #ff6600;
}
#login-forgot-form {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease, margin 0.3s ease;
    margin-top: 0;
}
#login-forgot-form.visible {
    max-height: 300px;
    opacity: 1;
    margin-top: 12px;
}
.login-forgot-success {
    padding: 10px 14px;
    margin-top: 12px;
    border-radius: 8px;
    background: rgba(0, 217, 126, 0.1);
    border: 1px solid rgba(0, 217, 126, 0.25);
    color: #00D97E;
    font-size: 0.82rem;
    text-align: center;
}
.login-field-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    font-style: italic;
}

@media (max-width: 768px) {
    .login-modal {
        max-height: 90vh;
        max-height: 90dvh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        margin: 12px;
    }
    .login-tab {
        min-height: 44px;
        padding: 12px 16px;
    }
    .auth-signin-btn {
        min-height: 44px;
        padding: 10px 20px;
    }
}

/* Account page field styles */
.acct-field-group {
    margin-bottom: 22px;
}
.acct-field-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 7px;
}
.acct-field-readonly {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.acct-field-row {
    display: flex;
    gap: 10px;
}
.acct-field-input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.acct-field-input:focus {
    border-color: rgba(255, 102, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.08);
}
.acct-field-input::placeholder {
    color: rgba(255, 255, 255, 0.18);
}
.acct-field-status {
    font-size: 0.75rem;
    margin-top: 5px;
    min-height: 1em;
}
.acct-status-ok { color: #00D97E; }
.acct-status-err { color: #FF4D6A; }

/* Withdraw/deposit amount input */
.acct-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.88rem;
    font-family: var(--font-mono);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.acct-input:focus {
    border-color: rgba(0, 217, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.08);
}
.acct-input::placeholder {
    color: rgba(255, 255, 255, 0.18);
}

/* Loading skeletons */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: 6px;
}

.skeleton-card {
    padding: 24px 28px;
    min-height: 200px;
}

.skeleton-line {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: 4px;
    height: 14px;
}

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

.detail-loading .skeleton-line {
    vertical-align: middle;
}

/* ==========================================================================
   CHAT PANEL
   ========================================================================== */

.chat-panel {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 520px;
}

.chat-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0 16px;
    flex-shrink: 0;
}

.chat-tab {
    padding: 12px 18px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    font-family: var(--font-primary);
}

.chat-tab.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.chat-tab:hover:not(.active) {
    color: rgba(255,255,255,0.6);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 200px;
    scroll-behavior: smooth;
}

.chat-msg {
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.15s;
}

.chat-msg:hover {
    background: rgba(255,255,255,0.02);
}

.chat-msg-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.chat-msg-handle {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-accent);
}

.chat-msg-time {
    font-size: 0.66rem;
    color: rgba(255,255,255,0.2);
}

.chat-msg-content {
    font-size: 0.84rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
    word-break: break-word;
    margin-top: 2px;
}

.chat-msg-deleted .chat-msg-content {
    font-style: italic;
    color: rgba(255,255,255,0.2);
}

.chat-msg-delete {
    opacity: 0;
    background: none;
    border: none;
    color: rgba(255,77,106,0.6);
    cursor: pointer;
    font-size: 1rem;
    padding: 0 4px;
    margin-left: auto;
    transition: opacity 0.15s, color 0.15s;
    line-height: 1;
}

.chat-msg:hover .chat-msg-delete {
    opacity: 1;
}

.chat-msg-delete:hover {
    color: #FF4D6A;
}

.chat-input-area {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 12px 16px;
    flex-shrink: 0;
}

.chat-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-input {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 9999px;
    padding: 10px 16px;
    color: var(--color-text-main, #fff);
    font-size: 0.84rem;
    font-family: var(--font-primary);
    outline: none;
    transition: border-color 0.2s;
}

.chat-input:focus {
    border-color: rgba(0,217,255,0.3);
}

.chat-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0,217,255,0.1);
    border: 1px solid rgba(0,217,255,0.3);
    color: var(--color-accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.chat-send-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.chat-send-btn:not(:disabled):hover {
    background: rgba(0,217,255,0.2);
    transform: translateY(-1px);
}

.chat-login-prompt {
    text-align: center;
}

.chat-login-btn {
    font-size: 0.82rem;
    padding: 8px 20px;
    border-radius: 9999px;
    background: rgba(0,217,255,0.08);
    border: 1px solid rgba(0,217,255,0.2);
    color: var(--color-accent);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-primary);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.chat-login-btn:hover {
    background: rgba(0,217,255,0.15);
    transform: translateY(-1px);
}

.chat-rate-limit {
    text-align: center;
    font-size: 0.76rem;
    color: rgba(255,255,255,0.3);
    font-family: var(--font-mono);
}

.chat-load-more {
    text-align: center;
    padding: 8px;
}

.chat-load-btn {
    font-size: 0.76rem;
    color: rgba(255,255,255,0.3);
    background: none;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 9999px;
    padding: 5px 14px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    font-family: var(--font-primary);
}

.chat-load-btn:hover {
    color: rgba(255,255,255,0.6);
    border-color: rgba(255,255,255,0.15);
}

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

@media (max-width: 768px) {
    .chat-panel {
        max-height: none;
        min-height: 280px;
        height: auto;
    }
}

/* ==========================================================================
   ADMIN DASHBOARD
   ========================================================================== */

/* ── Tab Bar ──────────────────────────────────────────────────────────────── */
.admin-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 32px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0;
}
.admin-tabs::-webkit-scrollbar { display: none; }

.admin-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-family: var(--font-primary);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.admin-tab:hover {
    color: rgba(255, 255, 255, 0.7);
}
.admin-tab.active {
    color: #fff;
    border-bottom: 2px solid var(--color-accent);
    background: rgba(0, 217, 255, 0.06);
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.08);
}

/* ── Panels ───────────────────────────────────────────────────────────────── */
.admin-panel {
    padding-top: 8px;
    animation: adminFadeIn 0.25s ease;
}
@keyframes adminFadeIn {
    from { opacity: 0; transform: translateY(12px); filter: blur(4px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-section-heading {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 16px;
}
.admin-panel-header .admin-section-heading {
    margin-bottom: 0;
}

/* ── Stat Cards (Overview) ────────────────────────────────────────────────── */
.admin-stats-row,
.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.admin-stat-card {
    position: relative;
    text-align: center;
    padding: 28px 20px;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

/* Color-coded stat card accents based on nth-child */
.admin-stat-card:nth-child(1) .admin-stat-value { color: var(--color-accent); }  /* Active Markets = cyan */
.admin-stat-card:nth-child(2) .admin-stat-value { color: #FF6600; }  /* Pending = orange (attention) */
.admin-stat-card:nth-child(3) .admin-stat-value { color: #FF9FFC; }  /* Resolving = magenta */
.admin-stat-card:nth-child(4) .admin-stat-value { color: #00D97E; }  /* Wallet = green */

/* Subtle glow behind stat value */
.admin-stat-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 60px;
    border-radius: 50%;
    opacity: 0.12;
    pointer-events: none;
}
.admin-stat-card:nth-child(1)::after { background: radial-gradient(circle, #00D9FF, transparent); }
.admin-stat-card:nth-child(2)::after { background: radial-gradient(circle, #FF6600, transparent); }
.admin-stat-card:nth-child(3)::after { background: radial-gradient(circle, #FF9FFC, transparent); }
.admin-stat-card:nth-child(4)::after { background: radial-gradient(circle, #00D97E, transparent); }
.admin-stat-label {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.admin-stat-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-accent);
}

/* ── Table ─────────────────────────────────────────────────────────────────── */
.admin-table-wrap {
    border-radius: var(--radius-lg);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}
.admin-table th,
.admin-table thead th {
    padding: 12px 14px;
    text-align: left;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}
.admin-table td,
.admin-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.8);
    vertical-align: middle;
}
.admin-table tbody tr {
    transition: background 0.2s, transform 0.2s;
}
.admin-table tr:hover td,
.admin-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}
.admin-table tbody tr:hover {
    transform: translateX(2px);
}

/* Stagger entrance for table rows */
@keyframes admin-row-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.admin-table tbody tr:last-child td {
    border-bottom: none;
}
.admin-table .geist-mono {
    font-family: var(--font-mono);
}
.admin-actions-cell {
    white-space: nowrap;
    display: flex;
    gap: 6px;
    align-items: center;
}

/* ── State Badges ──────────────────────────────────────────────────────────── */
.admin-state-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-family: var(--font-mono);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.admin-state-badge.state-open {
    background: rgba(0, 217, 255, 0.12);
    color: var(--state-open);
    border: 1px solid rgba(0, 217, 255, 0.2);
}
.admin-state-badge.state-resolving {
    background: rgba(255, 102, 0, 0.12);
    color: var(--state-resolving);
    border: 1px solid rgba(255, 102, 0, 0.2);
}
.admin-state-badge.state-resolved {
    background: rgba(0, 217, 126, 0.12);
    color: var(--state-resolved-yes);
    border: 1px solid rgba(0, 217, 126, 0.2);
}
.admin-state-badge.state-void {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Action Buttons ────────────────────────────────────────────────────────── */
.admin-action-btn {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px; /* pill shape like user-facing buttons */
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-primary);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}
.admin-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.admin-action-btn.success {
    border-color: rgba(0, 217, 126, 0.3);
    color: var(--state-resolved-yes);
}
.admin-action-btn.success:hover {
    background: rgba(0, 217, 126, 0.12);
    border-color: rgba(0, 217, 126, 0.5);
    box-shadow: 0 4px 16px rgba(0,217,126,0.15);
}
.admin-action-btn.danger {
    border-color: rgba(255, 77, 106, 0.3);
    color: var(--state-resolved-no);
}
.admin-action-btn.danger:hover {
    background: rgba(255, 77, 106, 0.12);
    border-color: rgba(255, 77, 106, 0.5);
    box-shadow: 0 4px 16px rgba(255,77,106,0.15);
}
.admin-action-btn.primary {
    border-color: rgba(0, 217, 255, 0.3);
    color: var(--color-accent);
}
.admin-action-btn.primary:hover {
    background: rgba(0, 217, 255, 0.1);
}
.admin-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.admin-action-sm {
    padding: 5px 10px;
    font-size: 0.75rem;
}

/* ── Forms ──────────────────────────────────────────────────────────────────── */
.admin-form {
    max-width: 680px;
}
.admin-form-card {
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}
.admin-form-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-text-main);
}
.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.admin-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 0;
}
.admin-form-field-full {
    grid-column: 1 / -1;
}
.admin-form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}
.admin-form-input,
.admin-form-textarea,
.admin-form-select {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: #fff;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.admin-form-input:focus,
.admin-form-textarea:focus,
.admin-form-select:focus {
    border-color: rgba(0, 217, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.08);
}
.admin-form-input::placeholder {
    color: rgba(255, 255, 255, 0.18);
}
.admin-form-textarea {
    resize: vertical;
    min-height: 70px;
    line-height: 1.6;
}
.admin-form-input[type="date"] {
    color-scheme: dark;
}
select.admin-form-input,
.admin-form-select {
    cursor: pointer;
    color-scheme: dark;
    appearance: none;
}
select.admin-form-input option,
.admin-form-select option {
    background: #1a1a2e;
    color: #fff;
}
.admin-form-hint {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.3);
}
.admin-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.admin-form-row {
    display: flex;
    gap: 16px;
}
.admin-form-row > * {
    flex: 1;
}
.admin-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.admin-checkbox-label input[type="checkbox"] {
    accent-color: var(--color-accent);
    width: 16px;
    height: 16px;
}

/* Probability range + number inline */
.admin-prob-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-form-range {
    flex: 1;
    accent-color: var(--color-accent);
    height: 4px;
}
.admin-form-prob-num {
    width: 60px;
    text-align: center;
}

/* ── Quick Actions ─────────────────────────────────────────────────────────── */
.admin-quick-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

/* ── Section Headers ───────────────────────────────────────────────────────── */
.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.admin-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

/* ── Filter Tabs (Proposals) ──────────────────────────────────────────────── */
.admin-filter-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}
.admin-filter-tab {
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.2s;
}
.admin-filter-tab:hover {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
}
.admin-filter-tab.active {
    background: rgba(0, 217, 255, 0.1);
    border-color: rgba(0, 217, 255, 0.3);
    color: var(--color-accent);
}

/* ── Proposal Cards ───────────────────────────────────────────────────────── */
.admin-cards-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.admin-proposal-card {
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 0;
    border-left: 3px solid var(--color-accent);
    transition: transform 0.2s, border-color 0.2s;
}
.admin-proposal-card:hover {
    transform: translateY(-2px);
}
.admin-proposal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}
.admin-proposal-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-main);
    line-height: 1.4;
}
.admin-proposal-question {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.admin-proposal-meta {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
}
.admin-proposal-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
    margin-bottom: 8px;
}
.admin-proposal-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 14px;
    flex-wrap: wrap;
}
.admin-reviewer-note {
    flex: 1;
    min-width: 200px;
}

/* ── Resolution Cards ─────────────────────────────────────────────────────── */
.admin-resolution-card {
    padding: 24px;
    padding-left: 28px;
    border-radius: var(--radius-lg);
    border-left: 3px solid #FF6600;
    position: relative;
}
/* Pulsing dot for "awaiting resolution" */
.admin-resolution-card::before {
    content: '';
    position: absolute;
    top: 24px;
    left: -8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FF6600;
    box-shadow: 0 0 12px rgba(255,102,0,0.4);
    animation: admin-pulse 2s ease-in-out infinite;
}
@keyframes admin-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}
.admin-resolution-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}
.admin-resolution-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-main);
}
.admin-resolution-meta {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}
.admin-resolution-form {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 16px;
}
.admin-resolution-outcomes {
    display: flex;
    gap: 8px;
}

/* ── Outcome Buttons ──────────────────────────────────────────────────────── */
.admin-outcome-toggle {
    display: flex;
    gap: 0;
    border-radius: 9999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: fit-content;
    margin-bottom: 16px;
}
.admin-outcome-btn {
    padding: 10px 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-primary);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.admin-outcome-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}
.admin-outcome-yes.selected,
.admin-outcome-btn.active-yes {
    background: rgba(0, 217, 126, 0.15);
    border-color: rgba(0, 217, 126, 0.5);
    color: #00D97E;
    box-shadow: 0 0 12px rgba(0, 217, 126, 0.1);
}
.admin-outcome-no.selected,
.admin-outcome-btn.active-no {
    background: rgba(255, 77, 106, 0.15);
    border-color: rgba(255, 77, 106, 0.5);
    color: #FF4D6A;
    box-shadow: 0 0 12px rgba(255, 77, 106, 0.1);
}
.admin-outcome-void.selected,
.admin-outcome-btn.active-void {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.7);
}

/* ── Credit Row (Forecasters) ─────────────────────────────────────────────── */
.admin-credit-row {
    display: flex;
    gap: 6px;
    align-items: center;
}
.admin-credit-input {
    width: 90px;
    padding: 6px 10px;
    font-size: 0.82rem;
    text-align: right;
    -moz-appearance: textfield;
}
.admin-credit-input::-webkit-inner-spin-button,
.admin-credit-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.admin-credit-presets {
    display: flex;
    gap: 3px;
}
.admin-preset-btn {
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.7rem;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.15s;
}
.admin-preset-btn:hover {
    background: rgba(255, 102, 0, 0.1);
    border-color: rgba(255, 102, 0, 0.3);
    color: #ff6600;
}

/* ── Wallet Card ──────────────────────────────────────────────────────────── */
.admin-wallet-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    max-width: 500px;
}
.admin-wallet-balance {
    text-align: center;
    margin-bottom: 24px;
}
.admin-wallet-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.admin-wallet-value {
    font-size: 2rem;
    font-weight: 800;
    color: #FF6600;
    text-shadow: 0 0 24px rgba(255,102,0,0.3);
}
.admin-wallet-usd {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}
.admin-wallet-details {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 16px;
    margin-bottom: 20px;
}
.admin-wallet-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ── Category Badges ──────────────────────────────────────────────────────── */
.cat-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 10px;
    border-radius: 9999px;
}
.cat-badge.cat-price { background: rgba(255,102,0,0.12); color: #FF6600; }
.cat-badge.cat-protocol { background: rgba(0,217,255,0.12); color: #00D9FF; }
.cat-badge.cat-network { background: rgba(159,122,234,0.12); color: #9F7AEA; }
.cat-badge.cat-ecosystem { background: rgba(72,187,120,0.12); color: #48BB78; }
.cat-badge.cat-regulatory { background: rgba(252,129,129,0.12); color: #FC8181; }
.cat-badge.cat-adoption { background: rgba(255,159,252,0.12); color: #FF9FFC; }
.cat-badge.cat-community { background: rgba(255,183,77,0.12); color: #FFB74D; }

/* ── Probability Mini-Bar ────────────────────────────────────────────────── */
.admin-prob-mini { display: flex; align-items: center; gap: 8px; }
.admin-prob-mini-bar { flex: 1; height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; min-width: 40px; }
.admin-prob-mini-fill { height: 100%; background: linear-gradient(90deg, #00D9FF, rgba(0,217,255,0.4)); border-radius: 2px; transition: width 0.5s ease; }

/* ── PnL classes ─────────────────────────────────────────────────────────── */
.pnl-positive { color: var(--state-resolved-yes); }
.pnl-negative { color: var(--state-resolved-no); }

/* ── Responsive Admin ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .admin-stat-grid,
    .admin-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .admin-form-grid {
        grid-template-columns: 1fr;
    }
    .admin-form-field-full {
        grid-column: 1;
    }
}

@media (max-width: 600px) {
    .admin-stat-grid,
    .admin-stats-row {
        grid-template-columns: 1fr;
    }
    .admin-tabs {
        gap: 2px;
    }
    .admin-tab {
        padding: 10px 14px;
        font-size: 0.8rem;
    }
    .admin-table {
        font-size: 0.75rem;
    }
    .admin-table th,
    .admin-table thead th,
    .admin-table td,
    .admin-table tbody td {
        padding: 8px 8px;
    }
    .admin-form-row {
        flex-direction: column;
        gap: 0;
    }
    .admin-proposal-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .admin-reviewer-note {
        min-width: 0;
    }
    .admin-resolution-outcomes {
        flex-wrap: wrap;
    }
    .admin-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .admin-actions-cell {
        flex-direction: column;
        gap: 4px;
    }
    .admin-credit-row {
        flex-direction: column;
    }
    .admin-credit-input {
        width: 100%;
    }
}

/* ==========================================================================
   FEATURE 1: MARKET HEATMAP — treemap visualization on predictions.html
   ========================================================================== */

.heatmap-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
}

.heatmap-toggle {
    padding: 5px 14px;
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 600;
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.heatmap-toggle:hover {
    color: rgba(255, 255, 255, 0.72);
    border-color: rgba(255, 255, 255, 0.15);
}

.heatmap-toggle.active {
    color: var(--color-accent);
    border-color: rgba(0, 217, 255, 0.35);
    background: rgba(0, 217, 255, 0.08);
}

.heatmap-toggle svg {
    width: 12px;
    height: 12px;
    opacity: 0.7;
}

#market-heatmap {
    display: none;
    width: 100%;
    min-height: 320px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

#market-heatmap.heatmap-visible {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    align-content: flex-start;
}

.heatmap-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px 10px;
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 2px 8px rgba(0,0,0,0.2);
}

.heatmap-cell:hover {
    transform: scale(1.03);
    border-color: rgba(255,255,255,0.18);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.12),
        0 4px 20px rgba(0,0,0,0.35);
    z-index: 2;
}

.heatmap-cell.hm-bullish { background: rgba(0, 217, 255, 0.10); }
.heatmap-cell.hm-bearish { background: rgba(255, 77, 106, 0.12); }
.heatmap-cell.hm-neutral { background: rgba(255, 255, 255, 0.04); }

.heatmap-cell-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.3;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.heatmap-cell-prob {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hm-bullish .heatmap-cell-prob { color: #00D9FF; }
.hm-bearish .heatmap-cell-prob { color: #FF4D6A; }
.hm-neutral .heatmap-cell-prob { color: rgba(255,255,255,0.65); }

.heatmap-cell-vol {
    font-size: 0.58rem;
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.3);
    margin-top: 3px;
}

.heatmap-cell-cat {
    position: absolute;
    top: 6px;
    left: 8px;
    font-size: 0.52rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.25);
}

@keyframes heatmap-pulse {
    0% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 2px 8px rgba(0,0,0,0.2), 0 0 0 0 rgba(0,217,255,0.3); }
    50% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 2px 8px rgba(0,0,0,0.2), 0 0 16px 4px rgba(0,217,255,0.15); }
    100% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 2px 8px rgba(0,0,0,0.2), 0 0 0 0 rgba(0,217,255,0.3); }
}

@keyframes heatmap-pulse-red {
    0% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 2px 8px rgba(0,0,0,0.2), 0 0 0 0 rgba(255,77,106,0.3); }
    50% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 2px 8px rgba(0,0,0,0.2), 0 0 16px 4px rgba(255,77,106,0.15); }
    100% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 2px 8px rgba(0,0,0,0.2), 0 0 0 0 rgba(255,77,106,0.3); }
}

.heatmap-cell.hm-pulsing { animation: heatmap-pulse 2s ease-in-out 3; }
.heatmap-cell.hm-pulsing.hm-bearish { animation: heatmap-pulse-red 2s ease-in-out 3; }

.heatmap-empty {
    width: 100%;
    text-align: center;
    padding: 48px 24px;
    color: rgba(255,255,255,0.3);
    font-size: 0.84rem;
}

@media (max-width: 640px) {
    .heatmap-cell-title { font-size: 0.62rem; }
    .heatmap-cell-prob { font-size: 0.9rem; }
    .heatmap-cell { padding: 8px 6px; }
    .heatmap-toggle-wrap { margin-left: 0; margin-top: 6px; }
}

/* ==========================================================================
   FEATURE 2: ACHIEVEMENT BADGES — forecaster.html & account.html
   ========================================================================== */

.badges-section { margin-bottom: 24px; }
.badges-section-title { font-size: 1rem; margin-bottom: 16px; color: rgba(255,255,255,0.9); }

.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.badge-card {
    padding: 16px 14px;
    text-align: center;
    transition: transform 0.2s ease, opacity 0.3s ease;
    position: relative;
    overflow: hidden;
}

.badge-card:hover { transform: translateY(-2px); }
.badge-card.badge-locked { opacity: 0.18; filter: grayscale(1); pointer-events: none; }
.badge-card.badge-locked:hover { transform: none; }
.badge-card.badge-earned { opacity: 1; }

.badge-card.badge-earned::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    opacity: 0.5;
    border-radius: 2px 2px 0 0;
}

.badge-icon { font-size: 1.6rem; display: block; margin-bottom: 8px; line-height: 1; }
.badge-title { font-size: 0.72rem; font-weight: 700; color: rgba(255,255,255,0.9); display: block; margin-bottom: 4px; letter-spacing: 0.02em; }
.badge-desc { font-size: 0.62rem; color: rgba(255,255,255,0.38); line-height: 1.4; display: block; }

.badge-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; justify-content: center; }

.badge-strip-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.68rem;
    font-family: var(--font-mono);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    transition: all 0.2s ease;
}

.badge-strip-item.badge-locked { opacity: 0.15; filter: grayscale(1); }
.badge-strip-item .badge-strip-icon { font-size: 0.85rem; }
.badge-strip-item .badge-strip-name { font-weight: 600; white-space: nowrap; }

@media (max-width: 640px) {
    .badge-grid { grid-template-columns: repeat(2, 1fr); }
    .badge-card { padding: 12px 10px; }
    .badge-icon { font-size: 1.3rem; }
}

/* ==========================================================================
   FEATURE 3: PORTFOLIO INSIGHTS PANEL — positions.html
   ========================================================================== */

.insights-panel { margin-bottom: 24px; }

.insights-panel-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.insights-panel-title svg { opacity: 0.5; }

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 768px) { .insights-grid { grid-template-columns: 1fr; } }

.insights-card { padding: 20px 22px; }

.insights-card-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 12px;
    font-weight: 600;
}

.insights-alloc-bar {
    display: flex;
    width: 100%;
    height: 22px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
    gap: 2px;
}

.insights-alloc-segment {
    height: 100%;
    min-width: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-family: var(--font-mono);
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    transition: flex-basis 0.4s ease;
    border-radius: 3px;
}

.insights-alloc-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.insights-alloc-legend-item { display: flex; align-items: center; gap: 4px; font-size: 0.62rem; color: rgba(255,255,255,0.5); }
.insights-alloc-legend-dot { width: 7px; height: 7px; border-radius: 2px; flex-shrink: 0; }

.alloc-price     { background: rgba(255, 102, 0, 0.7); }
.alloc-protocol  { background: rgba(82, 39, 255, 0.7); }
.alloc-adoption  { background: rgba(0, 217, 255, 0.6); }
.alloc-network   { background: rgba(0, 217, 126, 0.6); }
.alloc-regulatory{ background: rgba(255, 77, 106, 0.6); }
.alloc-community { background: rgba(255, 159, 252, 0.6); }
.alloc-ecosystem { background: rgba(177, 158, 239, 0.6); }

.insights-bias-bar {
    display: flex;
    width: 100%;
    height: 28px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    gap: 2px;
}

.insights-bias-yes {
    background: rgba(0, 217, 126, 0.35);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
    color: #00D97E; border-radius: 6px 0 0 6px; transition: width 0.4s ease;
}

.insights-bias-no {
    background: rgba(255, 77, 106, 0.25);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
    color: #FF4D6A; border-radius: 0 6px 6px 0; transition: width 0.4s ease;
}

.insights-bias-note { font-size: 0.68rem; color: rgba(255,255,255,0.35); margin-top: 6px; line-height: 1.4; }

.insights-cat-stat { margin-bottom: 12px; }
.insights-cat-stat:last-child { margin-bottom: 0; }
.insights-cat-stat-label { display: block; font-size: 0.62rem; color: rgba(255,255,255,0.35); margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.06em; }

.insights-cat-stat-value {
    font-family: var(--font-mono); font-size: 0.88rem; font-weight: 700; color: rgba(255,255,255,0.85);
}

.insights-cat-stat-value.best { color: #00D97E; }
.insights-cat-stat-value.worst { color: #FF4D6A; }
.insights-no-data { color: rgba(255,255,255,0.25); font-size: 0.78rem; text-align: center; padding: 16px; }

/* Disable hover-transform on touch devices to prevent tap-jump */
@media (hover: none) {
    .pos-card:hover,
    .pos-close-btn:hover,
    .pos-share-btn:hover,
    .admin-action-btn:hover,
    .admin-proposal-card:hover,
    .badge-card.badge-earned:hover {
        transform: none !important;
    }
}

/* ==========================================================
   UX OVERHAUL — Card Icons, Badges, Search, Closing Soon
   Added 2026-03-28
   ========================================================== */

/* ── Card Category Icon (top-right corner) ── */
.card-category-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    z-index: 2;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ── Time-based Badges ── */
.time-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 9999px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-closing-soon {
    background: rgba(255,50,50,0.15);
    color: #ff5252;
    animation: badge-pulse 2s ease-in-out infinite;
}

.badge-urgent {
    background: rgba(255,152,0,0.15);
    color: #ff9800;
}

.badge-resolving {
    background: rgba(255,102,0,0.2);
    color: #ff6600;
}

@keyframes badge-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Card glow for closing-soon */
.card-closing-soon {
    box-shadow: 0 0 0 1px rgba(255,50,50,0.2), 0 0 20px rgba(255,50,50,0.05);
}

/* ── Search + Market Count Row ── */
.search-count-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 16px 0 12px;
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 360px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.4;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 10px 36px 10px 38px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: var(--text-primary, #fff);
    font-size: 0.875rem;
    font-family: 'Geist Mono', monospace;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.3);
}

.search-input:focus {
    border-color: rgba(0,217,255,0.4);
    background: rgba(255,255,255,0.06);
}

.search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
    border-radius: 4px;
    min-width: 28px;
    min-height: 28px;
}

.search-clear:hover {
    color: rgba(255,255,255,0.8);
}

.market-count {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    white-space: nowrap;
}

/* ── Closing Soon Featured Section ── */
.closing-soon-section {
    margin-bottom: 24px;
}

.closing-soon-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.closing-soon-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5252;
    animation: badge-pulse 2s ease-in-out infinite;
}

.closing-soon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-md, 16px);
}

/* ── Category Badge Distinct Colors ── */
.cat-price { background: rgba(255,170,0,0.15); color: #ffaa00; }
.cat-protocol { background: rgba(0,217,255,0.15); color: #00d9ff; }
.cat-network { background: rgba(127,90,240,0.15); color: #7f5af0; }
.cat-ecosystem { background: rgba(0,200,83,0.15); color: #00c853; }
.cat-regulatory { background: rgba(255,102,0,0.15); color: #ff6600; }
.cat-adoption { background: rgba(0,230,118,0.15); color: #00e676; }
.cat-community { background: rgba(107,142,201,0.15); color: #6b8ec9; }
.cat-sports { background: rgba(255,72,72,0.15); color: #ff4848; }
.cat-politics { background: rgba(197,134,86,0.15); color: #c58656; }
.cat-crypto { background: rgba(247,147,26,0.15); color: #f7931a; }
.cat-economics { background: rgba(86,166,216,0.15); color: #56a6d8; }
.cat-technology { background: rgba(157,78,221,0.15); color: #9d4edd; }
.cat-entertainment { background: rgba(255,105,180,0.15); color: #ff69b4; }
.cat-science { background: rgba(0,191,255,0.15); color: #00bfff; }
.cat-energy { background: rgba(255,215,0,0.15); color: #ffd700; }
.cat-health { background: rgba(72,209,204,0.15); color: #48d1cc; }
.cat-ai { background: rgba(138,43,226,0.15); color: #8a2be2; }

/* ── Mobile Responsive for new features ── */
@media (max-width: 768px) {
    .search-count-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .search-container {
        max-width: 100%;
    }
    .market-count {
        text-align: center;
    }
    .closing-soon-grid {
        grid-template-columns: 1fr;
    }
    .card-category-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
        top: 10px;
        right: 10px;
    }
    .time-badge {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
    /* Horizontally scrollable filter tabs on mobile */
    .filter-tabs-row {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap !important;
        padding-bottom: 4px;
    }
    .filter-tabs-row::-webkit-scrollbar {
        display: none;
    }
    .filter-tab {
        white-space: nowrap;
        flex-shrink: 0;
        min-height: 44px;
    }
    .sort-btn {
        min-height: 44px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .search-input {
        min-height: 44px;
        font-size: 16px; /* prevents iOS zoom */
    }
    .search-clear {
        min-width: 44px;
        min-height: 44px;
    }
    .btn-outcome {
        min-height: 44px;
    }
}

/* ==========================================================
   MOBILE POLISH — Detail Page Buttons + Liquid Glass
   ========================================================== */

/* Liquid glass treatment on detail page YES/NO buttons */
.dap-btn-yes {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(0,217,255,0.12) 0%, transparent 60%),
        rgba(0,217,255,0.06);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.12),
        inset 0 -1px 4px rgba(0,0,0,0.2),
        0 0 20px rgba(0,217,255,0.08);
}
.dap-btn-no {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255,107,107,0.10) 0%, transparent 60%),
        rgba(255,100,100,0.06);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.10),
        inset 0 -1px 4px rgba(0,0,0,0.2),
        0 0 20px rgba(255,107,107,0.06);
}

/* Liquid glass on share/copy buttons */
.market-share-actions .creator-btn {
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.06) 0%, transparent 60%),
        rgba(20,20,30,0.5);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.10),
        inset 0 -1px 4px rgba(0,0,0,0.2),
        0 8px 24px rgba(0,0,0,0.2);
}

/* Mobile: simplify detail page button text */
@media (max-width: 768px) {
    .dap-btn-sub {
        display: none; /* hide "+194% return if YES/NO" */
    }
    .dap-btn-dir {
        font-size: 0.7rem;
    }
    .dap-btn-price {
        font-size: 1.3rem;
    }
    .dap-buttons {
        gap: 8px;
    }
    .dap-btn-yes, .dap-btn-no {
        min-height: 72px;
        padding: 12px 8px;
    }
}

/* ==========================================================
   MOBILE NAV v7 — CLEAN REBUILD
   Single authoritative block. All previous nav overrides deleted.
   Pills inherit ALL desktop styling. ::before/::after INTACT.
   ========================================================== */
@media (max-width: 768px) {
    /* Shell: let glass pill grow */
    .site-nav { height: auto; min-height: var(--nav-height, 64px); }

    /* Glass pill: height auto for expansion, full-width on mobile */
    .nav-inner {
        height: auto; min-height: 42px;
        flex-wrap: wrap;
        width: calc(100% - 16px);
        transition: border-radius 0.25s ease-out;
    }
    .nav-inner.nav-expanded { border-radius: 20px; padding: 12px 14px 12px 10px; }

    /* Fix A: Flex ordering — all top bar items on same baseline */
    .nav-wordmark { order: 1; border-right: none; padding-right: 0; margin-right: 0; }
    .nav-wordmark span { display: none; }
    .nav-hamburger {
        order: 2; display: flex; pointer-events: auto;
        z-index: 1001; position: relative; margin-left: 0;
        align-self: center; /* Fix A: vertically center with other top bar items */
    }
    .nav-right {
        order: 3; margin-left: auto; border-left: none; padding-left: 0; gap: 6px;
        align-items: center; /* Fix A: all right-side items on same baseline */
    }

    /* Search: compact icon only */
    .search-trigger { padding: 7px 10px; }
    .search-trigger span, .search-trigger kbd { display: none; }

    /* XMR price: ALWAYS VISIBLE. Compact in collapsed, Houdini border in expanded. */
    .xmr-price-card { min-width: auto; padding: 2px 6px; margin-left: 0; }
    .xmr-price-card::before, .xmr-price-card::after { display: none; } /* hide conic border in collapsed */
    .nav-price-label { display: none; }
    .nav-price-change { display: none; }
    .nav-price-value { font-size: 0.65rem; }

    /* Fix B: Expanded — restore Houdini border on price card + show full detail */
    .nav-inner.nav-expanded .nav-price-label { display: inline; }
    .nav-inner.nav-expanded .nav-price-change { display: inline; }
    .nav-inner.nav-expanded .nav-price-value { font-size: 0.82rem; }
    .nav-inner.nav-expanded .xmr-price-card {
        padding: 6px 14px;
        margin-top: 8px; /* Fix B: breathing room below pills */
    }
    .nav-inner.nav-expanded .xmr-price-card::before,
    .nav-inner.nav-expanded .xmr-price-card::after {
        display: block; /* Fix B: restore Houdini multicolored border in expanded */
    }

    /* Fix C: Auth — compact, contained inside glass pill, no bleed */
    .nav-auth { margin-left: 4px; max-width: 80px; overflow: hidden; }
    .auth-signin-btn {
        font-size: 0.62rem; padding: 3px 8px;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        max-width: 70px;
    }
    .auth-handle-btn {
        font-size: 0.62rem; padding: 3px 6px;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        max-width: 80px;
    }

    /* Fix D: Nav links — proper spacing inside glass pill */
    .nav-links {
        order: 4; display: none;
        flex-direction: column; gap: 6px; width: 100%;
        padding: 12px 12px; /* Fix D: 12px padding all sides — nothing touches edges */
        border-top: 1px solid rgba(255,255,255,0.08);
        margin-top: 8px; /* Fix D: 8px above first pill */
    }
    .nav-links.mobile-open { display: flex; }

    /* Nav link pills: ONLY layout overrides. ALL visuals inherited from desktop. */
    .nav-links li { width: 100%; list-style: none; }
    .nav-links .nav-link {
        width: 100%; text-align: center; justify-content: center;
        min-height: 44px; display: flex; align-items: center;
    }

    /* Fix D: Glass container padding for breathing room */
    .nav-inner.nav-expanded { padding-bottom: 12px; }
}
/* Desktop ≥769px: ensure hamburger hidden and links shown */
@media (min-width: 769px) {
    .nav-hamburger { display: none; }
    .nav-links { display: flex !important; }
}

/* ==========================================================
   PROVABLY SECTION — Landing page feature cards
   ========================================================== */
.provably-section {
    padding: 64px 0 48px;
    position: relative;
    z-index: 10;
}
.provably-header {
    text-align: center;
    margin-bottom: 40px;
}
.provably-header .section-title {
    text-align: center;
    width: 100%;
    justify-content: center;
}
.provably-eyebrow {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.35);
    margin-bottom: 12px;
}
.provably-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ── Provably Card — glass + Houdini animated border ── */
.provably-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    isolation: isolate;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
/* Houdini animated conic-gradient border — same as prediction cards */
.provably-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: conic-gradient(
        from var(--pill-angle),
        #5227FF 0deg, #B19EEF 60deg,
        #FF9FFC 120deg, #00D9FF 180deg,
        #FF9FFC 240deg, #B19EEF 300deg,
        #5227FF 360deg
    );
    z-index: -2;
    opacity: 0.25;
    animation: pill-border-flow 22s linear infinite;
    transition: opacity 0.4s ease;
}
/* Glass fill layer */
.provably-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
        rgba(12, 10, 22, 0.82);
    backdrop-filter: blur(28px) saturate(180%) brightness(1.05);
    -webkit-backdrop-filter: blur(28px) saturate(180%) brightness(1.05);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.15),
        inset 1px 0 0 rgba(255,255,255,0.06),
        inset -1px 0 0 rgba(0,0,0,0.10),
        inset 0 -2px 10px rgba(0,0,0,0.20),
        0 20px 50px rgba(0,0,0,0.45),
        0 4px 14px rgba(82,39,255,0.05);
    z-index: -1;
}
.provably-card:hover {
    transform: translateY(-6px);
}
.provably-card:hover::before {
    opacity: 0.65;
}
/* Stagger border animation */
.provably-card:nth-child(2)::before { animation-delay: -7s; }
.provably-card:nth-child(3)::before { animation-delay: -14s; }

/* ── Card image — full width, NO cropping ── */
.provably-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
    z-index: 1;
    background: #020817; /* match image background for seamless blend */
    display: flex;
    align-items: center;
    justify-content: center;
}
.provably-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ── Card text content ── */
.provably-card-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}
.provably-card-title {
    font-family: 'Geist', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.provably-card-text {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.55);
}

/* ── Mobile: stack cards vertically ── */
@media (max-width: 768px) {
    .provably-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .provably-card-content {
        padding: 20px;
    }
    .provably-card-title {
        font-size: 1.15rem;
    }
    .provably-section {
        padding: 40px 0 32px;
    }
}

/* ==========================================================
   TICKER SECTION — header, clickable items, sizing
   ========================================================== */
.ticker-section-wrap {
    position: relative;
    z-index: 20;
    padding: 32px 0 0;
}
.ticker-section-header {
    text-align: center;
    margin-bottom: 28px;
}
.ticker-section-header .section-title {
    text-align: center;
    justify-content: center;
    width: 100%;
}
.ticker-eyebrow {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.35);
    margin-bottom: 12px;
}

/* Clickable ticker items */
a.ticker-item {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background 0.2s;
}
a.ticker-item:hover {
    background: rgba(255,255,255,0.04);
}

/* Desktop: large ticker — prominent carousel */
@media (min-width: 769px) {
    .market-ticker-wrap {
        padding: 28px 0;
    }
    .ticker-item {
        padding: 0 48px;
        gap: 16px;
    }
    .ticker-title {
        font-size: 1.1rem;
        max-width: 420px;
    }
    .ticker-yes, .ticker-no {
        font-size: 1.05rem;
    }
    .ticker-sep {
        font-size: 0.95rem;
    }
    .ticker-vol {
        font-size: 0.95rem;
    }
    .ticker-pulse {
        width: 8px;
        height: 8px;
    }
}

/* ==========================================================
   TICKER SPEED FIX — slow down to be readable
   ========================================================== */
.ticker-track {
    animation-duration: 600s !important;
}
@media (max-width: 768px) {
    .market-ticker-wrap {
        padding: 8px 0;
    }
    .ticker-item {
        padding: 0 16px;
        gap: 8px;
    }
    .ticker-title {
        max-width: 160px;
        font-size: 0.65rem;
    }
    .ticker-yes, .ticker-no, .ticker-vol {
        font-size: 0.6rem;
    }
    .ticker-track {
        animation-duration: 400s !important;
    }
}

/* ==========================================================================
   STURMBRECHER — HOMEPAGE OVERHAUL
   Hero restructure, Nordlicht carousel, category grids
   ========================================================================== */

/* ── Hero adjustments ── */
body.landing-page .hero-content {
    grid-template-columns: 30% 1fr !important;
    min-height: 60vh;
    padding-top: 100px;
    padding-bottom: 48px;
    gap: 20px;
    pointer-events: auto !important;
    overflow: hidden;
}
body.landing-page .hero-bull-svg {
    width: auto !important;
    max-width: 120px !important;
    height: auto;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 6px rgba(255,102,0,0.4)) !important;
    animation: none !important;
}
body.landing-page .hero-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
    margin-bottom: 14px;
}
body.landing-page .hero-subtitle {
    font-size: 0.88rem;
    margin-bottom: 24px;
    max-width: 400px;
}
body.landing-page .hero-right {
    min-height: unset !important;
    padding-left: 0;
    align-items: stretch;
    overflow-x: clip;
    overflow-y: visible;
    min-width: 0;
}
body.landing-page .hero-stats-row {
    display: none;
}

@media (max-width: 900px) {
    body.landing-page .hero-content {
        grid-template-columns: 1fr !important;
        padding-top: 90px;
        padding-bottom: 24px;
        min-height: auto;
        text-align: center;
    }
    body.landing-page .hero-bull-svg {
        display: none !important;
    }
    body.landing-page .hero-title {
        font-size: clamp(1.4rem, 6vw, 1.8rem) !important;
    }
    body.landing-page .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    body.landing-page .hero-right {
        order: -1;
        min-height: unset !important;
    }
}

/* ── Carousel container ── */
.hero-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-x: clip;
    overflow-y: visible;
}
.carousel-viewport {
    overflow: visible;
    position: relative;
    width: 100%;
    max-width: 100%;
}
.carousel-track {
    display: flex;
    transition: transform 0.4s ease-out;
    will-change: transform;
}
.carousel-slide {
    min-width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
}
.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.carousel-arrow {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.carousel-arrow:hover {
    border-color: rgba(255,102,0,0.3);
    color: #ff6600;
    background: rgba(255,102,0,0.06);
    box-shadow: 0 2px 12px rgba(255,102,0,0.1);
    transform: scale(1.08);
}
.carousel-arrow:active {
    transform: scale(0.95);
}
.carousel-pag {
    font-size: 0.62rem;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.06em;
    min-width: 50px;
    text-align: center;
}

/* ── Nordlicht 3D Glass card ── */
@property --nl-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}
@keyframes nl-spin {
    to { --nl-angle: 360deg; }
}
@keyframes nl-drift-1 { 0%{transform:translate(0,0)} 50%{transform:translate(20px,-12px)} 100%{transform:translate(0,0)} }
@keyframes nl-drift-2 { 0%{transform:translate(0,0)} 50%{transform:translate(-15px,10px)} 100%{transform:translate(0,0)} }
@keyframes nl-drift-3 { 0%{transform:translate(0,0)} 50%{transform:translate(12px,8px)} 100%{transform:translate(0,0)} }

@keyframes nl-flow { to { --nl-angle: 360deg; } }
.nordlicht-glass {
    position: relative;
    border-radius: 16px;
    padding: 28px 30px 22px;
    min-height: 440px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        inset 0 0 30px rgba(159,122,234,0.025),
        0 12px 40px rgba(0,0,0,0.45),
        0 0 0 1px rgba(159,122,234,0.04);
    transition: box-shadow 0.35s, border-color 0.35s;
}
.nordlicht-glass:hover {
    border-color: rgba(255,255,255,0.1);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.12),
        inset 0 0 40px rgba(159,122,234,0.04),
        0 20px 60px rgba(0,0,0,0.5),
        0 0 0 1px rgba(159,122,234,0.08);
}
/* Continuous flowing border — one bright section wrapping the entire perimeter */
.nordlicht-glass::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 17px;
    z-index: -1;
    pointer-events: none;
    background: conic-gradient(
        from var(--nl-angle),
        /* ── Dim base: the 85% of the border that's subtle ── */
        rgba(255,255,255,0.04) 0deg,
        rgba(255,255,255,0.03) 40deg,
        rgba(255,255,255,0.04) 80deg,
        rgba(255,255,255,0.03) 120deg,
        rgba(255,255,255,0.04) 160deg,
        rgba(255,255,255,0.03) 200deg,
        rgba(255,255,255,0.04) 240deg,
        rgba(255,255,255,0.03) 280deg,
        /* ── Emphasized section: the 15% bright arc ── */
        rgba(255,102,0,0.12) 300deg,
        rgba(255,102,0,0.55) 316deg,
        rgba(255,159,252,0.40) 325deg,
        rgba(159,122,234,0.55) 332deg,
        rgba(0,217,255,0.50) 340deg,
        rgba(159,122,234,0.30) 349deg,
        rgba(255,102,0,0.12) 355deg,
        rgba(255,255,255,0.04) 360deg
    );
    animation: nl-flow 25s linear infinite;
}
/* Glow bloom layer — follows the same rotation, thicker, softer */
.nordlicht-glass .nl-glow {
    position: absolute;
    inset: -4px;
    border-radius: 20px;
    z-index: -2;
    pointer-events: none;
    background: conic-gradient(
        from var(--nl-angle),
        transparent 0deg,
        transparent 295deg,
        rgba(255,102,0,0.10) 310deg,
        rgba(159,122,234,0.16) 328deg,
        rgba(0,217,255,0.14) 342deg,
        rgba(159,122,234,0.06) 353deg,
        transparent 360deg
    );
    filter: blur(4px);
    animation: nl-flow 25s linear infinite;
}
/* Inner mask — solid bg creates the thin border effect */
.nordlicht-glass::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    z-index: 0;
    background: rgba(9,14,30,0.94);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        inset 0 0 20px rgba(159,122,234,0.015);
}
/* Specular highlight */
.nl-specular {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 38%);
    pointer-events: none;
    z-index: 2;
}
/* Aurora blobs behind glass */
.nl-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}
.nl-b1 {
    width: 260px; height: 130px;
    top: 5%; left: 0%;
    background: radial-gradient(ellipse, rgba(255,102,0,0.08) 0%, transparent 70%);
    animation: nl-drift-1 9s ease-in-out infinite;
}
.nl-b2 {
    width: 220px; height: 110px;
    top: 35%; left: 30%;
    background: radial-gradient(ellipse, rgba(159,122,234,0.09) 0%, transparent 70%);
    animation: nl-drift-2 12s ease-in-out infinite;
}
.nl-b3 {
    width: 240px; height: 120px;
    top: 10%; left: 55%;
    background: radial-gradient(ellipse, rgba(0,217,255,0.06) 0%, transparent 70%);
    animation: nl-drift-3 15s ease-in-out infinite;
}
/* Card inner content */
.carousel-card-inner {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.carousel-badge {
    font-size: 0.56rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(0,217,255,0.55);
    border: 1px solid rgba(0,217,255,0.18);
    background: rgba(0,217,255,0.03);
    padding: 4px 12px;
    border-radius: 100px;
    align-self: flex-start;
    margin-bottom: 12px;
}
.carousel-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.carousel-meta-top {
    display: flex;
    gap: 14px;
    align-items: center;
}
.carousel-title {
    font-family: 'Geist', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.25;
    color: rgba(255,255,255,0.92);
    margin-bottom: 12px;
}
/* Probability history chart */
.carousel-chart {
    width: 100%;
    height: 180px;
    margin-bottom: 14px;
    border-radius: 10px;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(0,217,255,0.015) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 40%, rgba(255,102,0,0.01) 0%, transparent 50%),
        rgba(255,255,255,0.012);
    border: 1px solid rgba(255,255,255,0.035);
    overflow: hidden;
    position: relative;
    /* Clip all SVG glow bleed */
    contain: paint;
}
.prob-chart-svg {
    width: 100%;
    height: 100%;
    display: block;
}
.carousel-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}
.carousel-outcomes {
    display: flex;
    gap: 8px;
    flex: 1;
}
.carousel-outcome {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 16px;
    border-radius: 100px;
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    transition: all 0.25s ease;
    cursor: pointer;
}
.co-yes {
    background: rgba(255,102,0,0.06);
    border: 1px solid rgba(255,102,0,0.18);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        inset 0 -1px 0 rgba(0,0,0,0.15),
        0 2px 8px rgba(255,102,0,0.06);
}
.co-yes:hover {
    background: rgba(255,102,0,0.1);
    border-color: rgba(255,102,0,0.3);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        inset 0 -1px 0 rgba(0,0,0,0.12),
        0 4px 16px rgba(255,102,0,0.12);
}
.co-no {
    background: rgba(0,217,255,0.05);
    border: 1px solid rgba(0,217,255,0.15);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        inset 0 -1px 0 rgba(0,0,0,0.15),
        0 2px 8px rgba(0,217,255,0.05);
}
.co-no:hover {
    background: rgba(0,217,255,0.08);
    border-color: rgba(0,217,255,0.28);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        inset 0 -1px 0 rgba(0,0,0,0.12),
        0 4px 16px rgba(0,217,255,0.1);
}
.co-label {
    font-family: 'Geist Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.co-yes .co-label { color: #ff6600; }
.co-no .co-label { color: #00D9FF; }
.co-pct {
    font-size: 1.1rem;
    font-weight: 700;
}
.co-yes .co-pct { color: #ff6600; }
.co-no .co-pct { color: #00D9FF; }
/* Meta values */
.carousel-vol {
    font-size: 0.65rem;
    color: rgba(255,102,0,0.5);
}
.carousel-cd {
    font-size: 0.65rem;
    color: rgba(0,217,255,0.5);
}
.carousel-cd.urgent {
    color: rgba(255,102,0,0.8);
}
/* Trade link — liquid glass pill */
.carousel-trade {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Geist', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    color: #ff6600;
    text-decoration: none;
    padding: 11px 28px;
    border-radius: 100px;
    border: 1px solid rgba(255,102,0,0.25);
    background: rgba(255,102,0,0.07);
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        inset 0 -1px 0 rgba(0,0,0,0.2),
        0 2px 10px rgba(255,102,0,0.08);
    transition: all 0.25s ease;
}
.carousel-trade:hover {
    background: rgba(255,102,0,0.12);
    border-color: rgba(255,102,0,0.4);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.1),
        inset 0 -1px 0 rgba(0,0,0,0.15),
        0 4px 20px rgba(255,102,0,0.15);
    transform: translateY(-1px);
}

/* ── Category grid sections ── */
.category-section {
    padding: 40px 0 20px;
    position: relative;
    z-index: 10;
}
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
}
.category-title {
    font-family: 'Geist', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    color: #fff;
}
.category-link {
    font-family: 'Geist Mono', monospace;
    font-size: 0.72rem;
    color: rgba(255,102,0,0.6);
    text-decoration: none;
    transition: color 0.2s;
}
.category-link:hover { color: #ff6600; }
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 900px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-section {
        padding: 28px 0 12px;
    }
}
@media (max-width: 600px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Mobile carousel adjustments ── */
@media (max-width: 900px) {
    .nordlicht-glass {
        min-height: 280px;
        padding: 22px 20px 18px;
        backdrop-filter: blur(12px) saturate(1.2);
        -webkit-backdrop-filter: blur(12px) saturate(1.2);
    }
    .carousel-title { font-size: 1.1rem; }
    .carousel-outcomes { gap: 8px; }
    .carousel-outcome { padding: 10px 12px; }
    .co-pct { font-size: 1rem; }
    /* Disable non-compositor animations on mobile */
    .nl-blob { animation: none; }
    .nordlicht-glass .nl-glow { filter: none; animation: none; opacity: 0; }
    /* Touch targets: 44px minimum */
    .carousel-arrow { width: 44px; height: 44px; font-size: 1rem; }
}
@media (max-width: 600px) {
    .carousel-chart { height: 120px; }
    .nordlicht-glass { min-height: 220px; }
}

/* ── Provably cards: flowing animated border + dog-ear fix ── */
.provably-card {
    overflow: visible !important;
    isolation: auto !important;
}
.provably-card::before {
    content: '' !important;
    position: absolute !important;
    inset: -1.5px !important;
    border-radius: 21.5px !important;
    z-index: -2 !important;
    opacity: 1 !important;
    background: conic-gradient(
        from var(--pill-angle),
        rgba(255,255,255,0.035) 0deg,
        rgba(255,255,255,0.025) 50deg,
        rgba(255,255,255,0.035) 100deg,
        rgba(255,255,255,0.025) 150deg,
        rgba(255,255,255,0.035) 200deg,
        rgba(255,255,255,0.025) 250deg,
        rgba(255,102,0,0.12) 290deg,
        rgba(255,102,0,0.5) 312deg,
        rgba(255,159,252,0.35) 322deg,
        rgba(159,122,234,0.5) 330deg,
        rgba(0,217,255,0.45) 338deg,
        rgba(159,122,234,0.25) 347deg,
        rgba(255,102,0,0.12) 354deg,
        rgba(255,255,255,0.035) 360deg
    ) !important;
    animation: pill-border-flow 22s linear infinite !important;
}
.provably-card::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: 20px !important;
    z-index: -1 !important;
    background: rgba(12, 10, 22, 0.95) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        inset 0 0 20px rgba(159,122,234,0.015),
        0 16px 40px rgba(0,0,0,0.4) !important;
}
.provably-card-content, .provably-card-image { position: relative; z-index: 1; }
.provably-card:nth-child(1)::before { animation-delay: 0s !important; }
.provably-card:nth-child(2)::before { animation-delay: -7s !important; }
.provably-card:nth-child(3)::before { animation-delay: -15s !important; }
.provably-card:hover::before { animation-duration: 12s !important; }
@media (max-width: 900px) {
    .provably-card::before { animation: none !important; opacity: 0.6 !important; }
}

/* ── Why cards: colored left-accent borders ── */
.why-card.why-accent-orange { border-left: 3px solid #ff6600; }
.why-card.why-accent-purple { border-left: 3px solid #9F7AEA; }
.why-card.why-accent-cyan { border-left: 3px solid #00D9FF; }

/* ── Category grid cards: taller + SVG watermark repositioning ── */
.category-grid .prediction-card {
    min-height: 260px;
}
/* Reposition asset SVGs from floating overlay to subtle bottom-right watermark */
.card-asset-box {
    right: 16px !important;
    bottom: 50px !important;
    top: auto !important;
    transform: none !important;
    width: 64px !important;
    height: 64px !important;
    border-radius: 0 !important;
    background: none !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 0.05;
    z-index: 0 !important;
}
.card-asset-box img {
    width: 64px !important;
    height: 64px !important;
    opacity: 1 !important;
}
.prediction-card:hover .card-asset-box {
    opacity: 0.1;
    transition: opacity 0.3s;
}
.prediction-card[data-has-asset] .prediction-title,
.prediction-card[data-has-asset] .prediction-desc {
    padding-right: 0 !important;
}
@media (max-width: 600px) {
    .category-grid .prediction-card {
        min-height: 220px;
    }
}

/* ── Footer v2: 4-column — markets left, nav columns right ── */
.footer-grid-v2 {
    grid-template-columns: 1.4fr 1fr 1fr 1fr !important;
    gap: 24px 36px !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Legal + Brand row */
.footer-legal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 32px 0 8px;
}
.footer-legal-left .footer-wordmark { margin-bottom: 12px; }
.footer-legal-left .footer-tagline { margin-bottom: 10px; }
.footer-legal-left .footer-built-by { margin-bottom: 0; }

@media (max-width: 900px) {
    .footer-grid-v2 {
        grid-template-columns: 1fr 1fr !important;
        gap: 28px !important;
    }
    .footer-col-markets { grid-column: 1 / -1; }
    .footer-legal-row {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}
@media (max-width: 600px) {
    .footer-grid-v2 {
        grid-template-columns: 1fr !important;
    }
}