:root {
    --bg-color: #0d1117;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-gold: #ffd700;
    --accent-green: #00ff88;
    --text-main: #e0e0e0;
    --text-dim: #a0a0a0;
}

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

/* Device Visibility */
@media (min-width: 1025px) {

    .mobile-only,
    .top-bar-nav-actions,
    .mobile-toggle-group {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block;
        /* Default for mobile, can be overridden */
    }
}

.hidden {
    display: none !important;
}

/* Main Glass Panel wrapping Nav & App */
.main-glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
}

.panel-header-actions {
    position: absolute;
    top: 15px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 100;
}

.live-clock {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5px 12px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--text-dim);
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.clock-date {
    color: var(--accent-gold);
    font-weight: 700;
    text-transform: uppercase;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 10px;
}

.clock-time {
    color: #fff;
    font-weight: 800;
}

@media (max-width: 768px) {
    .main-glass-panel {
        padding: 15px;
        border-radius: 12px;
    }
}

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

.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.blob {
    position: absolute;
    filter: blur(100px);
    opacity: 0.3;
    border-radius: 50%;
}

.blob-1 {
    width: 45vw;
    height: 45vw;
    max-width: 600px;
    max-height: 600px;
    background: radial-gradient(circle, var(--accent-gold), transparent);
    top: -10vw;
    left: -10vw;
}

.blob-2 {
    width: 40vw;
    height: 40vw;
    max-width: 500px;
    max-height: 500px;
    background: radial-gradient(circle, var(--accent-green), transparent);
    bottom: -5vw;
    right: -5vw;
}

@media (max-width: 768px) {
    .blob {
        filter: blur(60px);
        opacity: 0.15;
        /* Half opacity on mobile so dark theme stays dark */
    }

    .blob-1 {
        width: 70vw;
        height: 70vw;
        top: -15vw;
        left: -15vw;
    }

    .blob-2 {
        width: 60vw;
        height: 60vw;
        bottom: -10vw;
        right: -10vw;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
}

header.top-bar-menu {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    margin-bottom: 18px;
    position: relative;
    z-index: 9999;
}

/* Logo Area */
.logo-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.logo-area .live-clock {
    margin-top: 2px;
}

.logo-link-wrapper {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

h1.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, var(--accent-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    white-space: nowrap;
}

.subtitle {
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Context Navigation (Level 1) */
.context-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.segmented-control {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 6px;
    backdrop-filter: blur(10px);
}

.context-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 8px 20px;
    border-radius: 20px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.context-btn:hover {
    color: #fff;
}

.context-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
    .context-btn {
        font-size: 0.7rem;
        padding: 5px 8px;
    }

    .festival-badge {
        font-size: 0.35rem !important;
        padding: 1px 4px !important;
        margin-left: 3px !important;
    }

    .segmented-control {
        width: 100%;
        justify-content: space-between;
    }
}

/* Day Navigation (Level 2) - Clean Underline Tabs */
/* --- ULTRA-COMPACT ARCHITECTURAL INTELLIGENCE GRID --- */
.mega-menu-container {
    margin: 15px 0 !important;
    overflow: hidden !important;
    background:
        repeating-linear-gradient(rgba(255, 255, 255, 0.01) 0px, transparent 1px, transparent 2px),
        linear-gradient(180deg, rgba(10, 10, 10, 0.8) 0%, rgba(5, 5, 5, 0.95) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 4px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(15px);
}

.mega-menu-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.mega-menu-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.mega-menu-row:last-child {
    border-bottom: none !important;
}

.day-cell {
    padding: 0 15px 0 20px !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 900 !important;
    font-size: 0.58rem !important;
    color: var(--accent-gold) !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    width: 95px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: #0a0a0a !important;
    text-align: left !important;
    height: 38px !important;
    position: sticky !important;
    left: 0 !important;
    z-index: 20 !important;
    vertical-align: middle !important;
}

/* Structural Meeting Indicator */
.day-cell::before {
    content: '' !important;
    position: absolute !important;
    left: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 2px !important;
    height: 12px !important;
    background: var(--accent-gold) !important;
    border-radius: 4px !important;
    opacity: 0.6 !important;
}

.races-cell {
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    min-height: 38px !important;
    vertical-align: middle !important;
}

/* === CHELTENHAM FESTIVAL BADGE === */
.cheltenham-festival-btn {
    position: relative !important;
}

.festival-badge {
    display: inline-block !important;
    background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
    color: #000 !important;
    font-size: 0.45rem !important;
    font-weight: 900 !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
    letter-spacing: 1px !important;
    margin-left: 6px !important;
    vertical-align: middle !important;
    text-transform: uppercase !important;
    animation: festivalPulse 2s ease-in-out infinite !important;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4) !important;
}

@keyframes festivalPulse {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
    }

    50% {
        box-shadow: 0 0 16px rgba(245, 158, 11, 0.7), 0 0 24px rgba(239, 68, 68, 0.3);
    }
}

.mega-menu-table .race-btn.menu-race-btn {
    background: transparent !important;
    border: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.03) !important;
    color: var(--text-dim) !important;
    padding: 0 15px !important;
    min-width: 75px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0 !important;
    margin: 0 !important;
    height: 100% !important;
    position: relative !important;
}

.mega-menu-table .race-btn.menu-race-btn:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #fff !important;
}

.mega-menu-table .race-btn.menu-race-btn.active {
    background: rgba(255, 215, 0, 0.06) !important;
    color: #fff !important;
    box-shadow: inset 0 -2px 0 var(--accent-gold) !important;
}

.mega-menu-table .race-btn.menu-race-btn.active::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.05), transparent 80%);
    pointer-events: none;
}

.mega-menu-table .race-btn.menu-race-btn.locked {
    opacity: 1 !important;
}

.mega-menu-table .race-btn.menu-race-btn .race-time {
    display: block !important;
    font-size: 0.8rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    line-height: 1 !important;
    margin-bottom: 0 !important;
}

.mega-menu-table .race-btn.menu-race-btn .race-name {
    display: block !important;
    font-size: 0.46rem !important;
    text-transform: uppercase !important;
    color: rgba(255, 255, 255, 0.4) !important;
    letter-spacing: 0.5px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    transition: all 0.2s ease;
}

.mega-menu-table .race-btn.menu-race-btn.active .race-name {
    color: var(--accent-gold) !important;
}

.mega-menu-table .race-btn.menu-race-btn .lock-icon {
    position: absolute !important;
    top: 3px !important;
    right: 3px !important;
    width: 8px !important;
    height: 8px !important;
    color: var(--accent-gold) !important;
    opacity: 0.9 !important;
}

/* Branded Intelligence Filler */
.intelligence-filler {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding-right: 25px !important;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) !important;
    background-size: 15px 15px !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Faint Glow effect in the empty space */
.intelligence-filler::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 200px !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.03)) !important;
    pointer-events: none !important;
}

.filler-tag {
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;
    font-size: 0.48rem !important;
    color: var(--accent-gold) !important;
    opacity: 0.2 !important;
    /* Back to a subtle, professional level */
    text-transform: uppercase !important;
    letter-spacing: 4px !important;
    white-space: nowrap !important;
    user-select: none !important;
}

/* --- Daily Racing Status Styles --- */
.mega-menu-table .race-btn.menu-race-btn.race-complete {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.mega-menu-table .race-btn.menu-race-btn.race-complete .race-time {
    color: rgba(255, 255, 255, 0.4) !important;
}

.mega-menu-table .race-btn.menu-race-btn.race-complete .race-name {
    color: rgba(255, 255, 255, 0.25) !important;
}

.mega-menu-table .race-btn.menu-race-btn.race-live {
    background: rgba(52, 211, 153, 0.06) !important;
}

.mega-menu-table .race-btn.menu-race-btn.race-live .race-time {
    color: rgb(52, 211, 153) !important;
}

.race-status-badge {
    position: absolute !important;
    top: 2px !important;
    right: 2px !important;
    font-size: 0.4rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1.2 !important;
    padding: 1px 4px !important;
    border-radius: 2px !important;
}

.race-status-badge.complete {
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 0.5rem !important;
}

.race-status-badge.live {
    background: rgba(52, 211, 153, 0.15) !important;
    color: rgb(52, 211, 153) !important;
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
}

.race-status-badge .live-dot {
    width: 4px !important;
    height: 4px !important;
    border-radius: 50% !important;
    background: rgb(52, 211, 153) !important;
    animation: livePulse 1.5s ease-in-out infinite !important;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}


/* Special Race Section */
.special-race-section {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.special-race-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 400px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.3), transparent);
}

.divider-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #00c8ff;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.special-race-btn {
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.15), rgba(138, 43, 226, 0.15)) !important;
    border: 1px solid rgba(0, 200, 255, 0.3) !important;
    position: relative;
    min-width: 140px;
}

.special-race-btn:hover {
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.25), rgba(138, 43, 226, 0.25)) !important;
    border-color: rgba(0, 200, 255, 0.5) !important;
    box-shadow: 0 0 25px rgba(0, 200, 255, 0.2), 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

.special-race-btn.active {
    background: linear-gradient(135deg, #00c8ff, #8a2be2) !important;
    border-color: #00c8ff !important;
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.4) !important;
}

.special-race-btn.active .race-time {
    color: rgba(255, 255, 255, 0.8) !important;
}

.special-race-btn.active .race-name {
    color: #fff !important;
}

.special-race-btn .race-name {
    color: #00c8ff !important;
}

.special-race-tag {
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #fff;
    background: linear-gradient(135deg, #00c8ff, #8a2be2);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
    animation: tagPulse 2s infinite ease-in-out;
}

@keyframes tagPulse {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

.race-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 6px 12px;
    /* Reduced padding */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    backdrop-filter: blur(10px);
}

.race-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.race-btn.active {
    background: linear-gradient(135deg, var(--accent-gold), #e6c200);
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.race-btn .race-time {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-bottom: 2px;
    font-family: 'Inter', sans-serif;
}

.race-btn.active .race-time {
    color: #333;
    font-weight: 600;
}

.race-btn .race-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #fff;
    font-size: 0.8rem;
    /* Reduced from 1rem */
    white-space: nowrap;
    /* Prevent wrapping */
}

.race-btn.active .race-name {
    color: #000;
}

/* Loader */
.hidden {
    display: none !important;
}

#loader {
    text-align: center;
    margin: 50px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--accent-gold);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

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

/* --- News Grid Layout --- */
.news-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 1024px) {
    .news-grid-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .news-primary-content h5 {
        font-size: 1.25rem !important;
    }
}

/* Market Analysis Card View */
.market-analysis-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.market-horse-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.market-horse-card:hover {
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.market-horse-card.is-top-pick {
    border-left: 4px solid var(--accent-gold);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.horse-main-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
}

.horse-identity-group {
    flex: 1;
}

.horse-market-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.horse-number-circle {
    background: #333;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.market-name-large {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
    transition: all 0.2s ease;
}

.market-name-large.clickable-horse-large {
    cursor: pointer;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

.market-name-large.clickable-horse-large:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.horse-premium-meta {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.8;
}

.horse-premium-meta strong {
    color: #fff;
    font-weight: 600;
}

.market-badges-inline {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.horse-bio-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    width: fit-content;
    margin-bottom: 20px;
}

.bio-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bio-label {
    font-size: 0.6rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bio-value {
    font-size: 0.85rem;
    color: #fff;
    font-weight: 600;
}

.analysis-narrative {
    position: relative;
    padding-left: 20px;
    margin-top: 15px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-dim);
    font-style: italic;
    font-family: 'Inter', sans-serif;
    max-width: 850px;
    opacity: 0.9;
}

.analysis-narrative::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.1);
    font-family: serif;
}

.market-data-visuals {
    text-align: right;
    min-width: 150px;
}

.market-odds-giant {
    font-size: 2.2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--accent-green);
    line-height: 1;
}

.market-prob-label {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-top: 5px;
}

.market-ts-score {
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 12px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.ts-score-val {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}

.ts-score-label {
    font-size: 0.6rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

/* Response Design for Cards */
@media (max-width: 900px) {
    .horse-main-row {
        flex-direction: column;
        gap: 20px;
    }

    .market-data-visuals {
        text-align: right;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .market-name-large {
        font-size: 1.3rem;
    }

    .horse-bio-bar {
        flex-wrap: wrap;
        gap: 15px;
    }
}

/* Odds Table Styles */
.race-container {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 30px;
    overflow: hidden;
}

.race-header-large h2 {
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    position: relative;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

/* Hide native scrollbar */
.table-wrapper::-webkit-scrollbar {
    display: none;
}

/* Custom Synced Scrollbars */
.sync-scroll-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    height: 14px;
    position: relative;
    /* Will be offset by JS */
}

.sync-scroll-container::-webkit-scrollbar {
    height: 10px;
}

.sync-scroll-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    margin: 0 5px;
}

.sync-scroll-container::-webkit-scrollbar-thumb {
    background-color: var(--accent-gold);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' fill-opacity='0.35' d='M8,12l4-4v8l-4-4zm8,0l-4-4v8l4-4z'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 24px 100%;
    /* Stretch vertically if needed, or keep centered */
    border-radius: 5px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    background-clip: padding-box;
}

.sync-scroll-container::-webkit-scrollbar-thumb:hover {
    background-color: #ffe44d;
    border-color: rgba(0, 0, 0, 0.5);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' fill-opacity='0.6' d='M8,12l4-4v8l-4-4zm8,0l-4-4v8l4-4z'/%3E%3C/svg%3E");
    /* Darker/More visible arrows on hover */
}

.scroll-spacer {
    height: 1px;
    /* Width set by JS */
}

.odds-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    white-space: nowrap;
}

.odds-table th,
.odds-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.odds-table th {
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Sticky First Column */
.sticky-col {
    position: sticky;
    left: 0;
    background: var(--sticky-bg, #161b22);
    /* Must filter out transparency for sticky to hide scrolling content */
    z-index: 10;
    text-align: left !important;
    border-right: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
}

.horse-name-cell {
    color: #fff;
    font-weight: 500;
}

.odds-cell {
    color: var(--accent-green);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    cursor: default;
    transition: background 0.2s;
}

.odds-cell:hover {
    background: rgba(0, 255, 136, 0.1);
}

/* Value Bet Highlighting */
.value-bet {
    border: 2px solid var(--accent-gold) !important;
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
    position: relative;
    font-weight: 800;
    color: var(--accent-gold);
}

.value-bet::after {
    content: '★';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 10px;
    color: var(--accent-gold);
}

.avg-odds {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 4px;
    font-weight: 400;
}

/* Price Journey Sparkline */
.price-journey {
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
}

.price-journey svg {
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.price-trail {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.price-old {
    font-size: 0.6rem;
    color: var(--text-dim);
    opacity: 0.5;
    font-weight: 500;
}

.price-mid {
    font-size: 0.62rem;
    color: var(--text-dim);
    opacity: 0.7;
    font-weight: 500;
}

.price-now {
    font-size: 0.75rem;
    color: #fff;
    font-weight: 700;
}

.price-arrow {
    font-size: 0.5rem;
    color: var(--text-dim);
    opacity: 0.4;
    margin: 0 1px;
}

/* Strategy Badges & Buttons */
/* Strategy Tabs & Panes */
.strategy-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    padding-bottom: 5px;
}

.strategy-badge {
    --theme-color: var(--accent-green);
    background: rgba(0, 255, 136, 0.1);
    color: var(--theme-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    border: 1px solid rgba(0, 255, 136, 0.3);
    vertical-align: middle;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    outline: none;
    cursor: default;
}

button.strategy-badge {
    cursor: pointer;
    font-family: inherit;
    background: rgba(0, 255, 136, 0.05);
}

button.strategy-badge:hover {
    background: rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.1);
}

button.strategy-badge:focus {
    box-shadow: 0 0 0 2px var(--bg-color), 0 0 0 4px var(--accent-green);
    background: rgba(0, 255, 136, 0.25);
}

.strategy-badge.consensus {
    --theme-color: #ff00ff;
    background: rgba(255, 0, 255, 0.1);
    border-color: rgba(255, 0, 255, 0.3);
}

button.strategy-badge.consensus:hover {
    background: rgba(255, 0, 255, 0.2);
    box-shadow: 0 4px 12px rgba(255, 0, 255, 0.1);
}

.strategy-badge.expert {
    --theme-color: #6495ed;
    background: rgba(100, 149, 237, 0.1);
    border-color: rgba(100, 149, 237, 0.3);
}

button.strategy-badge.expert:hover {
    background: rgba(100, 149, 237, 0.2);
    box-shadow: 0 4px 12px rgba(100, 149, 237, 0.1);
}

.strategy-badge.jockey {
    --theme-color: #ffa500;
    background: rgba(255, 165, 0, 0.1);
    border-color: rgba(255, 165, 0, 0.3);
}

button.strategy-badge.jockey:hover {
    background: rgba(255, 165, 0, 0.2);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.1);
}

.strategy-badge.racedesk {
    --theme-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
}

button.strategy-badge.racedesk:hover {
    background: rgba(0, 255, 136, 0.2);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.1);
}

button.strategy-badge:focus {
    box-shadow: 0 0 0 2px var(--bg-color), 0 0 0 4px var(--theme-color);
    background: rgba(255, 255, 255, 0.15);
    color: var(--theme-color);
}

button.strategy-badge.active {
    background: var(--theme-color);
    color: var(--bg-color);
    border-color: var(--theme-color);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

/* ================================= */
/* --- COMPACT RACE BRIEFING ---    */
/* ================================= */
.race-briefing-compact {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.briefing-row-main {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 6px;
}

.briefing-row-main h1 {
    font-size: 1.4rem;
    color: #fff;
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.briefing-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    row-gap: 12px;
}

.meta-pill {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    font-size: 0.65rem;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.meta-pill strong {
    color: #fff;
    font-weight: 600;
}

.last-updated-slim {
    margin-left: auto;
    font-size: 0.6rem;
    color: var(--text-dim);
    opacity: 0.6;
}

.briefing-grid-deep {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.verdict-label-small {
    font-size: 0.55rem;
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 5px;
    opacity: 0.8;
}

.verdict-text-deep {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
    font-style: italic;
    margin: 0;
    opacity: 0.95;
}

.briefing-col-insights {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0, 0, 0, 0.15);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.insight-mini-item {
    display: flex;
    gap: 10px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.3;
}

.insight-mini-item strong {
    color: #fff;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
}

.insight-icon {
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Hide old Title in Tab Header */
.race-header-large h2 {
    display: none;
}

@media (max-width: 900px) {
    .briefing-grid-deep {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .briefing-row-main {
        flex-wrap: wrap;
        gap: 8px;
    }

    .last-updated-slim {
        display: none;
    }
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.coming-soon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin: 20px 0;
}

.coming-soon-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: grayscale(1) opacity(0.5);
}

.coming-soon-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    color: var(--text-dim);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.coming-soon-sub {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 10px;
    opacity: 0.7;
}

/* Consensus / Implied Prob */
.consensus-bar-container {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
    width: 100%;
}

.consensus-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff00ff, #00ff88);
}

.horse-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fav-badge {
    background: var(--accent-gold);
    color: #000;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    /* margin-left: 8px; Removed for flex gap */
}

/* Ranks */
.rank-1 {
    border-left: 3px solid var(--accent-gold) !important;
}

.rank-2 {
    border-left: 3px solid silver !important;
}

.rank-3 {
    border-left: 3px solid #cd7f32 !important;
}

/* Speed Edge Diagnostic Badge */
.speed-edge-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    font-size: 0.7rem;
    font-weight: 850;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 8px;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    animation: speedEdgePulse 2s infinite;
    cursor: help;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-family: 'Outfit', sans-serif;
}

@keyframes speedEdgePulse {
    0% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
        transform: scale(1.03);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.4);
        transform: scale(1);
    }
}

.races-grid {
    display: block;
    /* Override grid for full width tables */
}

/* Horse List */
.horse-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.horse-list::-webkit-scrollbar {
    width: 5px;
}

.horse-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.horse-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 15px;
    border-radius: 10px;
    transition: background 0.2s;
}

.horse-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.horse-name {
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.horse-name.clickable-horse {
    color: var(--accent-gold);
    cursor: pointer;
    text-decoration: underline dotted rgba(255, 215, 0, 0.3);
    text-underline-offset: 4px;
}

.horse-name.clickable-horse:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.horse-odds {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
}

/* --- Race Desk Live AI Styling --- */
.racedesk-container {
    display: flex;
    flex-direction: column;
    height: 450px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.racedesk-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.racedesk-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.2), rgba(138, 43, 226, 0.2));
    border: 1px solid rgba(0, 200, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00c8ff;
}

.racedesk-avatar svg {
    width: 20px;
    height: 20px;
}

.racedesk-title h3 {
    margin: 0;
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
    color: #fff;
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    margin-right: 4px;
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(0, 255, 136, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
    }
}

.racedesk-title span {
    font-size: 0.75rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
}

.racedesk-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.racedesk-message {
    max-width: 80%;
    display: flex;
    flex-direction: column;
}

.racedesk-message.ai-message {
    align-self: flex-start;
}

.racedesk-message .message-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    border-bottom-left-radius: 2px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.racedesk-message.ai-message .message-content {
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.05), transparent);
    border-color: rgba(0, 200, 255, 0.1);
}

.racedesk-message .message-time {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 5px;
    margin-left: 2px;
}

.racedesk-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.suggestion-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 20px;
    color: var(--accent-gold);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.suggestion-chip:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-1px);
}

.racedesk-input-area {
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
}


/* --- ULTRA-PREMIUM SHOP VIEW --- */
#shop-view {
    padding: 0;
    max-width: 100%;
}

/* --- ULTRA-PREMIUM SHOP DRAWER SYSTEM --- */
.shop-container-layout {
    display: flex;
    gap: 0;
    min-height: 80vh;
    margin: 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.shop-main-content {
    flex: 1;
    padding: 4rem;
    overflow-y: auto;
    max-height: 85vh;
}

.shop-main-content::-webkit-scrollbar {
    width: 6px;
}

.shop-main-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.shop-hero {
    margin-bottom: 5rem;
    padding: 5rem;
    background: radial-gradient(circle at 0% 0%, rgba(197, 160, 89, 0.08) 0%, transparent 50%),
        rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

/* THE RIGHT HAND DRAWER */
.shop-sidebar {
    width: 380px;
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.8) 0%, rgba(5, 5, 5, 0.95) 100%);
    backdrop-filter: blur(30px);
    border-left: 1px solid rgba(197, 160, 89, 0.2);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.drawer-status-line {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.status-pulse {
    width: 10px;
    height: 10px;
    background: var(--accent-gold, #c5a059);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-gold);
    animation: statusPulseAnim 2s infinite;
}

@keyframes statusPulseAnim {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
        box-shadow: 0 0 15px var(--accent-gold);
    }

    100% {
        transform: scale(0.9);
        opacity: 0.8;
    }
}

.status-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-gold, #c5a059);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.sidebar-category-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: transparent;
    border: none;
    padding: 0;
    backdrop-filter: none;
}

.sidebar-label {
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--accent-gold, #c5a059);
    text-transform: uppercase;
    letter-spacing: 0.4em;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0.8;
}

.sidebar-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(197, 160, 89, 0.5), transparent);
}

.shop-cat-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.shop-cat-btn:hover {
    background: rgba(197, 160, 89, 0.05);
    color: #fff;
    border-color: rgba(197, 160, 89, 0.3);
    transform: translateX(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.shop-cat-btn.active {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.2) 0%, rgba(197, 160, 89, 0.05) 100%);
    color: var(--accent-gold, #c5a059);
    border-color: var(--accent-gold, #c5a059);
    transform: translateX(-15px);
    box-shadow: 0 15px 30px rgba(197, 160, 89, 0.15);
}

.cat-icon {
    font-size: 1.6rem;
    transition: all 0.5s ease;
}

.shop-cat-btn.active .cat-icon {
    transform: scale(1.2) rotate(-5deg);
    filter: drop-shadow(0 0 10px var(--accent-gold));
}

.shop-info-card {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(197, 160, 89, 0.3);
    border-radius: 24px;
    padding: 2.5rem;
}

.shop-info-card h5 {
    color: var(--accent-gold, #c5a059);
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

/* Refined Animation for Category Hover */
.shop-cat-btn:hover .cat-icon {
    transform: scale(1.3) rotate(-15deg);
    filter: grayscale(0) drop-shadow(0 0 12px var(--accent-gold));
}

.shop-cat-btn .cat-icon {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 1200px) {
    .shop-container-layout {
        flex-direction: column;
        border-radius: 20px;
    }

    .shop-sidebar {
        width: 100%;
        height: auto;
        border-left: none;
        border-top: 1px solid rgba(197, 160, 89, 0.2);
        padding: 2rem;
    }

    .sidebar-category-list {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .shop-cat-btn {
        width: auto;
        white-space: nowrap;
        padding: 1rem 2rem;
        transform: none !important;
    }
}

.racedesk-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 10px 20px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.racedesk-input:focus {
    border-color: rgba(0, 200, 255, 0.4);
}

.racedesk-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.racedesk-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-green);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    cursor: pointer;
    transition: all 0.2s;
}

.racedesk-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.racedesk-send-btn svg {
    width: 18px;
    height: 18px;
}

/* --- Social Noise Styling --- */
.social-noise-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

.social-overview {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.social-overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.social-overview-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-overview-title h3 {
    margin: 0;
    font-size: 1.2rem;
    font-family: 'Outfit', sans-serif;
    color: #fff;
}

.social-pulse {
    width: 10px;
    height: 10px;
    background: #ff453a;
    border-radius: 50%;
    box-shadow: 0 0 12px #ff453a;
    animation: socialPulseDot 1.5s infinite;
}

@keyframes socialPulseDot {
    0% {
        transform: scale(0.9);
        opacity: 1;
    }

    70% {
        transform: scale(1.4);
        opacity: 0;
    }

    100% {
        transform: scale(0.9);
        opacity: 0;
    }
}

.platform-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

.platform-badge svg {
    width: 12px;
    height: 12px;
}

/* Platform Colors */
.x-badge {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tiktok-badge {
    background: #ff0050;
    text-shadow: 1px 1px 0px #00f2fe;
}

.snap-badge {
    background: #fffc00;
    color: #000;
}

.fb-badge {
    background: #1877f2;
}

.telegram-badge {
    background: #229ED9;
}

.social-summary-box {
    background: rgba(255, 69, 58, 0.05);
    border-left: 3px solid #ff453a;
    padding: 15px;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dim);
}

.social-summary-box strong {
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

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

.social-horse-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-horse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.social-horse-name h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

.social-horse-odds {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-gold);
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
}

.social-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-post {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 2px solid transparent;
}

.social-post.x-post {
    border-left-color: #555;
}

.social-post.tiktok-post {
    border-left-color: #ff0050;
}

.social-post.snap-post {
    border-left-color: #fffc00;
}

.social-post.fb-post {
    border-left-color: #1877f2;
}

.social-post.telegram-post {
    border-left-color: #229ED9;
}

.platform-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.8;
}

.x-post .platform-icon {
    color: #fff;
}

.tiktok-post .platform-icon {
    color: #ff0050;
}

.snap-post .platform-icon {
    color: #fffc00;
}

.fb-post .platform-icon {
    color: #1877f2;
}

.telegram-post .platform-icon {
    color: #229ED9;
}

.post-content {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #bbb;
    font-family: 'Inter', sans-serif;
}

/* --- Whispers UI Styling --- */
.whispers-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.whispers-overview {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.whispers-main-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

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

.secure-lock-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.1);
    padding: 8px;
    border-radius: 8px;
}

.secure-lock-icon svg {
    width: 20px;
    height: 20px;
}

.whispers-title-group h3 {
    margin: 0;
    color: #fff;
    font-size: 1.3rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
    color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    font-weight: 600;
}

.status-pulser {
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-gold);
    animation: pulseDot 2s infinite;
}

.whispers-desc {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

.classified-tag {
    display: inline-block;
    background: rgba(255, 215, 0, 0.15);
    color: var(--accent-gold);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 10px;
    font-family: 'Inter', sans-serif;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

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

.whisper-intercept-card {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.whisper-intercept-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    bottom: 0;
    background: var(--whisper-color);
}

.whisper-intercept-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.whisper-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.whisper-source {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #888;
    font-family: 'Inter', sans-serif;
}

.whisper-source span {
    color: #e2e8f0;
    font-weight: 600;
}

.whisper-source svg {
    width: 14px;
    height: 14px;
    color: var(--whisper-color);
}

.whisper-reliability {
    font-size: 0.75rem;
    color: #aaa;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.reliability-bar-bg {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.reliability-bar-fill {
    height: 100%;
    background: var(--whisper-color);
}

.whisper-target-row {
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.target-label {
    color: #888;
    margin-right: 8px;
}

.target-value {
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.whisper-message {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e2e8f0;
    background: var(--whisper-bg);
    padding: 15px;
    border-radius: 6px;
    position: relative;
    font-style: italic;
}

.whisper-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
}

.whisper-time {
    font-size: 0.75rem;
    color: #666;
    font-family: 'Inter', sans-serif;
}

.whisper-action-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--whisper-color);
    letter-spacing: 0.5px;
    border: 1px solid var(--whisper-color);
}

/* Add Responsive Design */
@media (max-width: 768px) {
    h1.glow-text {
        font-size: 2.5rem;
    }

    .races-grid {
        display: block;
        width: 100%;
    }

    .race-container {
        padding: 15px;
        overflow: hidden;
    }

    .table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .market-consensus-label {
        display: none;
    }
}

/* Expert Insight Styles */
.form-cell {
    font-family: 'Courier New', monospace;
    letter-spacing: -0.5px;
    color: #fff;
    font-size: 0.85rem;
}

.rpr-high {
    color: var(--accent-gold);
    font-weight: 800;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.rpr-normal {
    color: var(--text-dim);
}

.trainer-cell {
    font-size: 0.85rem;
    color: var(--text-main);
    max-width: 150px;
    white-space: normal;
    /* Allow wrapping for long trainer names */
}



.disagreement-badge {
    background: rgba(255, 69, 0, 0.2);
    color: #ff4500;
    /* OrangeRed */
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    /* margin-left: 8px; Removed for flex gap */
    border: 1px solid rgba(255, 69, 0, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.7;
    }
}

/* ================================================================
   HERO TRIPTYCH — LUXURY EDITION
   ================================================================ */

/* Animated border gradient keyframes */
@keyframes heroShimmerBorder {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes heroNameShimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes heroEntranceSlide {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroPulseGlow {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.06), 0 20px 60px rgba(0, 0, 0, 0.4);
    }

    50% {
        box-shadow: 0 0 55px rgba(255, 215, 0, 0.1), 0 20px 60px rgba(0, 0, 0, 0.4);
    }
}

@keyframes livePulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.4);
        opacity: 1;
    }
}

@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(4px, -6px) scale(1.1);
    }

    50% {
        transform: translate(-2px, -10px) scale(1);
    }

    75% {
        transform: translate(-6px, -4px) scale(0.95);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

.hero-triptych {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 0;
    margin-bottom: 36px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow:
        0 0 40px rgba(255, 215, 0, 0.06),
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.12);
    position: relative;
    animation: heroEntranceSlide 0.6s ease-out, heroPulseGlow 6s ease-in-out infinite;
}

/* Animated gradient top border */
.hero-triptych::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffd700, #ffaa00, #ff6b35, #ff4466, #d4a017, #b8860b, #d4a017, #ff4466, #ff6b35, #ffaa00, #ffd700);
    background-size: 300% 100%;
    animation: heroShimmerBorder 8s linear infinite;
    z-index: 5;
}

/* Subtle noise texture overlay */
.hero-triptych::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 3;
    opacity: 0.6;
    mix-blend-mode: overlay;
    border-radius: 22px;
}

/* Individual Panel Base */
.hero-panel {
    position: relative;
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

.hero-panel__glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 0;
}

.hero-panel:hover .hero-panel__glow {
    opacity: 1;
}

.hero-panel:hover {
    transform: scale(1.005);
}

/* —— AI PICK (Main Panel) —— */
.hero-panel--pick {
    background: linear-gradient(160deg, rgba(0, 0, 0, 0.88), rgba(20, 16, 4, 0.92));
    border-right: 1px solid rgba(255, 215, 0, 0.08);
}

.hero-panel--pick .hero-panel__glow {
    background:
        radial-gradient(ellipse at 20% 20%, rgba(255, 215, 0, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 180, 0, 0.04) 0%, transparent 50%);
}

.hero-panel__crown {
    position: absolute;
    top: 14px;
    right: 20px;
    font-size: 2.8rem;
    opacity: 0.1;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
    animation: crownFloat 5s ease-in-out infinite;
    z-index: 1;
}

@keyframes crownFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(2deg);
    }
}

.hero-panel__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    z-index: 2;
}

.hero-panel--pick .hero-panel__label {
    color: var(--accent-gold);
}

/* Live status dot on the AI Pick label */
.hero-panel--pick .hero-panel__label::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-gold);
    box-shadow: 0 0 8px var(--accent-gold);
    animation: livePulse 2s ease-in-out infinite;
    margin-left: 4px;
}

.hero-panel__icon {
    font-size: 1rem;
    filter: drop-shadow(0 0 6px currentColor);
}

.hero-panel__horse {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    margin: 0;
    z-index: 2;
    line-height: 1.1;
}

.hero-panel__horse.clickable-horse {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hero-panel__horse.clickable-horse:hover {
    transform: translateY(-2px) scale(1.02);
}

/* Gold-foil shimmer sweep on the main horse name */
.hero-panel__horse--main {
    font-size: 2.6rem;
    background: linear-gradient(90deg,
            #ffd700 0%,
            #fff8dc 20%,
            #ffd700 40%,
            rgba(255, 255, 255, 0.95) 48%,
            rgba(255, 255, 255, 0.95) 52%,
            #ffd700 60%,
            #fff8dc 80%,
            #ffd700 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: heroNameShimmer 6s linear infinite;
    filter: drop-shadow(0 2px 12px rgba(255, 215, 0, 0.25));
}

.hero-share-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 4;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: var(--accent-gold);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.hero-share-btn:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.15);
}

/* Danger share button */
.hero-share-btn--danger {
    background: rgba(255, 107, 53, 0.08);
    border-color: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
}

.hero-share-btn--danger:hover {
    background: rgba(255, 107, 53, 0.15);
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.15);
}

/* Dark Horse share button */
.hero-share-btn--dark {
    background: rgba(212, 160, 23, 0.08);
    border-color: rgba(212, 160, 23, 0.2);
    color: #d4a017;
}

.hero-share-btn--dark:hover {
    background: rgba(212, 160, 23, 0.15);
    border-color: rgba(212, 160, 23, 0.4);
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.15);
}

/* ---- Scoped overrides for AI Pick panel internals ---- */
.hero-panel--pick .ai-reasoning-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.hero-panel--pick .ai-reasoning-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-gold), rgba(255, 215, 0, 0.2));
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

.hero-panel--pick .reasoning-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.hero-panel--pick .reasoning-header h4 {
    font-size: 0.65rem;
    color: var(--accent-gold);
    letter-spacing: 2.5px;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    opacity: 0.8;
}

.hero-panel--pick .brain-icon {
    font-size: 1rem;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.3));
}

.hero-panel--pick .reasoning-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    font-style: italic;
    font-weight: 300;
    margin-bottom: 14px;
    font-family: 'Inter', sans-serif;
}

.hero-panel--pick .ai-nuggets {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.hero-panel--pick .nugget {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
}

.hero-panel--pick .nugget strong {
    color: var(--accent-gold);
    opacity: 0.85;
}

.hero-panel--pick .tweet-nugget-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 3px 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.hero-panel--pick .tweet-nugget-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-gold);
    border-color: rgba(255, 215, 0, 0.2);
}

.hero-panel--pick .pick-stats {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    width: 100%;
    flex-wrap: wrap;
}

.hero-panel--pick .pick-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.04);
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-panel--pick .stat-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Inter', sans-serif;
}

.hero-panel--pick .stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Outfit', sans-serif;
}

.hero-panel--pick .stat-value.score {
    color: var(--accent-gold);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.25);
}

.hero-panel--pick .pick-badge-row {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-panel--pick .strategy-badge {
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.hero-panel--pick .mover-badge {
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

/* Light theme scoped overrides for AI Pick panel */
/* —— Side Panels Container —— */
.hero-side-panels {
    display: flex;
    flex-direction: column;
}

/* —— THE DANGER Panel —— */
.hero-panel--danger {
    background: linear-gradient(160deg, rgba(20, 7, 4, 0.95), rgba(12, 4, 2, 0.95));
    border-bottom: 1px solid rgba(255, 107, 53, 0.04);
    flex: 1;
}

.hero-panel--danger .hero-panel__glow {
    background:
        radial-gradient(ellipse at 70% 20%, rgba(255, 107, 53, 0.04) 0%, transparent 55%),
        radial-gradient(ellipse at 30% 80%, rgba(255, 60, 20, 0.02) 0%, transparent 50%);
}

.hero-panel--danger .hero-panel__label {
    color: #ff6b35;
}

/* Pulsing warning dot */
.hero-panel--danger .hero-panel__label::after {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ff6b35;
    box-shadow: 0 0 8px #ff6b35;
    animation: livePulse 1.5s ease-in-out infinite;
    margin-left: 4px;
}

.hero-panel--danger .hero-panel__horse {
    font-size: 1.55rem;
    color: #e66030;
    filter: drop-shadow(0 1px 3px rgba(230, 96, 48, 0.15));
}

.hero-panel__reasoning {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    font-style: italic;
    line-height: 1.55;
    font-family: 'Inter', sans-serif;
    z-index: 2;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* ---- Insight Box (Danger & Dark Horse reasoning panel) ---- */
.hero-insight-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 14px 16px;
    position: relative;
    overflow: hidden;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.hero-insight-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    border-radius: 1px;
}

.hero-insight-box--danger::before {
    background: linear-gradient(180deg, #ff6b35, rgba(255, 107, 53, 0.15));
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.25);
}

.hero-insight-box--dark::before {
    background: linear-gradient(180deg, #d4a017, rgba(212, 160, 23, 0.15));
    box-shadow: 0 0 8px rgba(212, 160, 23, 0.25);
}

.hero-insight-box__header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

.hero-insight-box--danger .hero-insight-box__header {
    color: #ff6b35;
    opacity: 0.75;
}

.hero-insight-box--dark .hero-insight-box__header {
    color: #d4a017;
    opacity: 0.75;
}

.hero-insight-box .hero-panel__reasoning {
    -webkit-line-clamp: 2;
    margin: 0;
}

.hero-insight-box .hero-panel__stats {
    margin-top: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 8px;
}

/* Light theme */
.hero-panel__stats {
    display: flex;
    gap: 10px;
    z-index: 2;
}

.hero-panel--danger .hero-panel__stat,
.hero-panel--darkhorse .hero-panel__stat {
    padding: 5px 10px;
}

.hero-panel__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.hero-panel__stat:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.hero-panel__stat-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Inter', sans-serif;
}

.hero-panel--danger .hero-panel__stat-value,
.hero-panel--darkhorse .hero-panel__stat-value {
    font-size: 1rem;
}

.hero-panel__stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

.hero-panel__stat-value--danger {
    color: #ff6b35;
    text-shadow: 0 0 14px rgba(255, 107, 53, 0.35);
}

.hero-panel__stat-value--dark {
    color: #d4a017;
    text-shadow: 0 0 14px rgba(212, 160, 23, 0.35);
}

/* ---- Threat Meter (Luxury) ---- */
.hero-threat-meter {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
    margin-top: auto;
}

.hero-threat-meter__label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.hero-threat-meter__track {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-threat-meter__fill {
    height: 100%;
    background: linear-gradient(90deg, #ff8c42, #ff6b35, #ff4444, #ff2222);
    border-radius: 3px;
    transition: width 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 12px rgba(255, 107, 53, 0.5), 0 0 4px rgba(255, 68, 68, 0.3);
    animation: threatPulse 2s ease-in-out infinite;
    position: relative;
}

/* Highlight dot at the end of the fill */
.hero-threat-meter__fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px #ff6b35, 0 0 16px rgba(255, 107, 53, 0.4);
}

@keyframes threatPulse {

    0%,
    100% {
        opacity: 0.85;
    }

    50% {
        opacity: 1;
    }
}

.hero-threat-meter__pct {
    font-size: 0.85rem;
    font-weight: 800;
    color: #ff6b35;
    font-family: 'Outfit', sans-serif;
    min-width: 36px;
    text-align: right;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

/* —— DARK HORSE Panel —— */
.hero-panel--darkhorse {
    background: linear-gradient(160deg, rgba(14, 8, 24, 0.95), rgba(10, 5, 18, 0.95));
    flex: 1;
}

.hero-panel--darkhorse .hero-panel__glow {
    background:
        radial-gradient(ellipse at 70% 70%, rgba(212, 160, 23, 0.04) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 30%, rgba(124, 58, 237, 0.02) 0%, transparent 50%);
}

.hero-panel--darkhorse .hero-panel__label {
    color: #d4a017;
}

.hero-panel--darkhorse .hero-panel__label::after {
    content: '✦';
    font-size: 0.5rem;
    color: #d4a017;
    opacity: 0.6;
    margin-left: 4px;
}

.hero-panel--darkhorse .hero-panel__horse {
    font-size: 1.55rem;
    color: #c49618;
    filter: drop-shadow(0 1px 3px rgba(196, 150, 24, 0.15));
}

/* ---- Dark Horse Odds (Luxury) ---- */
.hero-darkhorse-odds {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: auto;
    z-index: 2;
    position: relative;
}

/* Ambient orb behind odds */
.hero-darkhorse-odds::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.15) 0%, transparent 70%);
    left: -8px;
    top: -15px;
    animation: orbFloat 6s ease-in-out infinite;
    pointer-events: none;
}

.hero-darkhorse-odds__value {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: #d4a017;
    text-shadow: 0 0 25px rgba(212, 160, 23, 0.35), 0 0 6px rgba(212, 160, 23, 0.15);
    line-height: 1;
    position: relative;
}

.hero-darkhorse-odds__label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Inter', sans-serif;
}

/* ---- Hover Effects (Luxury) ---- */
.hero-panel--danger:hover {
    background: linear-gradient(160deg, rgba(45, 12, 3, 0.96), rgba(25, 10, 0, 0.93));
}

.hero-panel--danger:hover .hero-panel__stat-value--danger {
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.hero-panel--darkhorse:hover {
    background: linear-gradient(160deg, rgba(25, 12, 50, 0.96), rgba(18, 8, 40, 0.93));
}

.hero-panel--darkhorse:hover .hero-panel__stat-value--dark {
    text-shadow: 0 0 20px rgba(212, 160, 23, 0.5);
}

.hero-panel--darkhorse:hover .hero-darkhorse-odds__value {
    text-shadow: 0 0 35px rgba(212, 160, 23, 0.5), 0 0 8px rgba(212, 160, 23, 0.2);
}

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

    .hero-panel--pick {
        border-right: none;
        border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    }

    .hero-side-panels {
        flex-direction: row;
    }

    .hero-panel--danger {
        border-bottom: none;
        border-right: 1px solid rgba(255, 107, 53, 0.1);
        flex: 1;
    }

    .hero-panel--darkhorse {
        flex: 1;
    }
}

@media (max-width: 600px) {
    .hero-side-panels {
        flex-direction: column;
    }

    .hero-panel--danger {
        border-right: none;
        border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    }

    .hero-panel__horse--main {
        font-size: 1.8rem;
    }
}

/* Light theme overrides */
/* AI PICK Card (legacy fallback) */
.my-pick-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 0, 0, 0.6));
    border: 2px solid var(--accent-gold);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping for EW section */
    gap: 30px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.main-pick-section {
    flex: 2;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ew-section {
    flex: 1;
    min-width: 250px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .ew-section {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 20px;
    }
}

.pick-label {
    color: var(--accent-gold);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.my-pick-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent-gold);
}

.pick-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.pick-header h3 {
    font-size: 2rem;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(to right, #ffd700, #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.ai-reasoning-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.ai-reasoning-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--accent-gold);
    box-shadow: 0 0 10px var(--accent-gold);
}

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

.brain-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px var(--accent-gold));
}

.reasoning-header h4 {
    font-size: 0.75rem;
    color: var(--accent-gold);
    letter-spacing: 2px;
    font-weight: 800;
}

.reasoning-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e0e0e0;
    font-style: italic;
    font-weight: 300;
    margin-bottom: 15px;
}

.ai-nuggets {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    padding-top: 15px;
}

.nugget {
    font-size: 0.85rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.nugget strong {
    color: var(--accent-gold);
}

.pick-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
}

.pick-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

.stat-value.score {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.pick-warning {
    margin-top: 15px;
    color: #ff4500;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255, 69, 0, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
}

.score-cell {
    font-weight: bold;
    color: var(--accent-gold);
    font-family: 'Outfit', sans-serif;
}

.pick-badge {
    background: linear-gradient(135deg, #ff4500, #ff8c00);
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    /* margin-left: 8px; Removed for flex gap */
    font-weight: 800;
}

/* New Badge Row Layout */
.badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    align-items: center;
}

.pick-badge-row {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Each Way Styles */
.ew-title {
    color: var(--text-dim);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-family: 'Outfit', sans-serif;
}

.ew-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ew-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s;
}

.ew-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.ew-name {
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
}

.ew-reasoning {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-style: italic;
    line-height: 1.3;
    border-left: 2px solid var(--accent-gold);
    padding-left: 8px;
}

.ew-nuggets {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.ew-nugget {
    font-size: 0.7rem;
    color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.05);
    padding: 3px 8px;
    border-radius: 4px;
    border-left: 1px solid var(--accent-gold);
}

.ew-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.ew-odds {
    color: var(--accent-green);
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

.ew-score {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* Detailed Horse Stats Inline */
.horse-detailed-stats {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 4px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-family: 'Inter', sans-serif;
}

.horse-detailed-stats .separator {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.6rem;
}

.trainer-inline {
    color: #bbb;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* Empty State / Welcome Screen */
.disclaimer-text {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    padding: 20px;
    margin-top: 40px;
    font-style: italic;
    opacity: 0.7;
}

.empty-action {
    text-align: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 20px 0;
    font-family: 'Outfit', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.pulse-icon {
    font-size: 2rem;
    animation: pulse-point 1.5s infinite;
}

@keyframes pulse-point {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.fun-message {
    text-align: center;
    font-size: 2.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--accent-gold), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Time Machine & Market Movers */
.last-updated {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-left: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.mover-badge {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mover-badge.steamer {
    background: rgba(255, 69, 58, 0.15);
    color: #ff453a;
    border: 1px solid rgba(255, 69, 58, 0.3);
}

.mover-badge.drifter {
    background: rgba(94, 236, 255, 0.15);
    color: #5eecff;
    border: 1px solid rgba(94, 236, 255, 0.3);
}

.mover-badge.late-steam {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.25));
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.5);
    font-weight: 700;
    animation: lateSteamPulse 2s ease-in-out infinite;
}

@keyframes lateSteamPulse {

    0%,
    100% {
        box-shadow: 0 0 4px rgba(251, 191, 36, 0.2);
    }

    50% {
        box-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
    }
}

.opening-line {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-left: 4px;
    font-weight: normal;
}

.bounce {
    font-size: 3rem;
    display: inline-block;
    animation: bounce 2s infinite ease-in-out;
    -webkit-text-fill-color: initial;
    /* allow emoji colors */
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* --- MOBILE ADAPTIVE UPDATE --- */
/* Optimized for iPhone/Android Portrait & Landscape */
@media (max-width: 768px) {

    /* 1. Global Container Fixes */
    .container {
        padding: 20px 10px;
        /* Tighter margins */
        overflow-x: hidden;
        /* Prevent horizontal wiggle */
    }

    /* 2. Header & Typography */
    h1.glow-text {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 0.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
        padding: 0 5px;
        margin-bottom: 20px;
    }

    /* 3. Navigation: Clean Horizontal Swipe */
    .day-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 8px;
        padding: 5px 15px 15px 15px;
        /* Padding for shadow */
        margin: 0 -20px 10px -20px;
        /* Bleed to full edge */
        -webkit-overflow-scrolling: touch;
        scroll-padding: 15px;
    }

    .race-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 10px;
        padding: 5px 15px 15px 15px;
        margin: 0 -20px 20px -20px;
        -webkit-overflow-scrolling: touch;
        scroll-padding: 15px;
    }

    /* Hide scrollbars */
    .day-nav::-webkit-scrollbar,
    .race-nav::-webkit-scrollbar {
        display: none;
    }

    .day-btn {
        flex: 0 0 auto;
        /* Don't shrink */
        padding: 6px 12px;
        font-size: 0.65rem;
        background: rgba(255, 255, 255, 0.08);
        /* Better contrast */
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 6px;
    }

    .day-btn.active {
        background: var(--accent-gold);
        color: #000;
        box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
    }

    .race-btn {
        flex: 0 0 auto;
        min-width: 65px;
        padding: 6px;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(5px);
    }

    .race-btn .race-time {
        font-size: 0.65rem;
    }

    .race-btn .race-name {
        font-size: 0.75rem;
    }

    /* 4. Odds Table: Compact & Native Scroll */
    .race-container {
        padding: 0;
        /* Remove side padding to give table max width */
        background: transparent;
        /* Cleaner look on mobile */
        border: none;
    }

    .table-wrapper {
        border-radius: 0;
        /* Full bleed */
        margin: 0 -10px;
        /* Counteract container padding if any */
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    /* Sticky Column Refinement */
    .sticky-col {
        position: sticky !important;
        left: 0 !important;
        background: #11151b !important;
        /* Solid dark background for dark theme */
        z-index: 50 !important;
        min-width: 130px;
        box-shadow: 4px 0 10px rgba(0, 0, 0, 0.4);
        border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
    }

    /* 5. BADGE OPTIMIZATION FOR MOBILE */
    /* Make them tiny and stackable */
    .horse-name-cell .badges-row {
        display: flex;
        flex-wrap: wrap;
        gap: 3px;
        margin-top: 4px;
    }

    .mover-badge,
    .pick-badge,
    .fav-badge,
    .strategy-badge {
        font-size: 0.55rem !important;
        /* Tiny font */
        padding: 1px 4px !important;
        line-height: 1.2;
        border-radius: 3px;
        margin-left: 0 !important;
        /* Reset margins for flex gap */
        border-width: 0.5px;
        /* Thinner borders */
        height: auto;
    }

    .mover-badge span {
        display: none;
        /* Hide icons/extra text if possible or keep concise */
    }

    /* Stack horse name and badges tightly */
    .horse-name-cell {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 50px;
    }

    /* 6. Card Stacking: Vertical Layout */
    .my-pick-card {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        border-radius: 12px;
    }

    .pick-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        margin-bottom: 15px;
    }

    .pick-header h3 {
        font-size: 1.6rem;
    }

    .pick-label {
        font-size: 0.7rem;
    }

    .pick-stats {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        /* 3 columns for stats */
        gap: 8px;
    }

    .pick-stat {
        padding: 8px 4px;
        min-width: 0;
        /* Prevent overflow */
    }

    .stat-label {
        font-size: 0.65rem;
    }

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

    /* 7. Each Way Section */
    .ew-section {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-left: 0;
        padding-top: 20px;
        margin-top: 10px;
    }

    .ew-title {
        text-align: center;
        font-size: 0.8rem;
    }

    .ew-card {
        padding: 8px 12px;
    }

    .ew-name {
        font-size: 0.85rem;
    }

    /* 8. Race Header Compactness */
    .race-header-large h2 {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        font-size: 1.4rem;
        text-align: center;
    }

    .last-updated {
        margin-left: 0;
        font-size: 0.7rem;
        background: rgba(255, 255, 255, 0.08);
        /* Slightly lighter bg */
    }

    .badges {
        margin-top: 10px;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .strategy-badge {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
}

/* Race Analysis Page Styles */
.race-analysis-content {
    margin-top: 20px;
    padding: 10px;
}

.race-analysis-content .race-briefing-compact {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 0, 0, 0.8));
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.1);
    position: relative;
    overflow: hidden;
}

/* Subtle Green Top Rim */
.race-analysis-content .race-briefing-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.6), transparent);
}

.race-analysis-content .briefing-row-main h1 {
    font-size: 2.5rem !important;
    margin-bottom: 20px !important;
    color: #fff !important;
    font-weight: 900 !important;
    letter-spacing: -1px;
}

.race-analysis-content .briefing-grid-deep {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .race-analysis-content .briefing-grid-deep {
        grid-template-columns: 1fr;
    }

    .race-analysis-content .briefing-row-main h1 {
        font-size: 1.8rem !important;
    }
}

/* --- RACE INTEL CARDS & STRUCTURE --- */
.intel-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.6), rgba(2, 6, 23, 0.85));
    border: 1px solid rgba(0, 255, 136, 0.15);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
}

.intel-premium-summary {
    background: linear-gradient(165deg, rgba(20, 25, 40, 0.8), rgba(0, 0, 0, 0.95));
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8), inset 0 0 40px rgba(255, 215, 0, 0.05);
}

.intel-card .card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.intel-premium-summary .card-glow {
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, transparent 60%);
}

.intel-card:hover {
    border-color: rgba(0, 255, 136, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px -15px rgba(0, 255, 136, 0.2);
}

.intel-premium-summary:hover {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 20px 60px -20px rgba(255, 215, 0, 0.1);
}

.intel-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

.intel-section-share {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
}

.intel-section-share:hover {
    background: #ffd700;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.intel-card-header h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
}

.intel-card-header .intel-icon {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 5px rgba(0, 255, 136, 0.4));
}

/* Fast Facts Grid */
.intel-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.fact-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.fact-label {
    display: block;
    color: var(--text-dim);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.fact-value {
    display: block;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

.fact-value.green {
    color: #00ff88;
}

/* Trends Tables */
.intel-trends-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trend-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    background: rgba(0, 255, 136, 0.02);
    border-radius: 8px;
    border-left: 3px solid rgba(0, 255, 136, 0.5);
}

.trend-stat {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 0.9rem;
    color: #00ff88;
}

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

/* People & Records Grid */
.intel-records-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.record-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
}

.record-header {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 10px;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
}

.record-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

.record-subtext {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 5px;
}

/* Dark Green Intro Section */
.intel-intro-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', sans-serif;
}

.intel-intro-text strong {
    color: #00ff88;
}

/* Layout helpers */
.intel-layout-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

@media (max-width: 992px) {
    .intel-layout-two-col {
        grid-template-columns: 1fr;
    }

    .intel-records-grid {
        grid-template-columns: 1fr;
    }

    .intel-card .intel-intro-text[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* Intel Data Tables */
.intel-table-wrapper,
.intel-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -5px;
}

@media (max-width: 768px) {

    .intel-table-responsive table,
    .intel-table-wrapper table {
        min-width: 100%;
    }

    .intel-table-responsive th,
    .intel-table-responsive td,
    .intel-table-wrapper .odds-table th,
    .intel-table-wrapper .odds-table td {
        padding: 8px 6px;
        font-size: 0.75rem;
        white-space: nowrap;
    }
}

.intel-data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
}

.intel-data-table th {
    text-align: left;
    padding: 12px 15px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.intel-data-table td {
    padding: 12px 15px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.intel-data-table tr:last-child td {
    border-bottom: none;
}

.intel-data-table tr:hover td {
    background: rgba(0, 255, 136, 0.03);
    color: #fff;
}

.intel-data-table .green {
    color: #00ff88;
    font-weight: 800;
}

@media (max-width: 768px) {

    .intel-data-table th,
    .intel-data-table td {
        padding: 10px 8px;
        font-size: 0.75rem;
    }
}

/* ================================= */
/* --- SUCCESS TIP SECTION ---       */
/* ================================= */

.success-tip-section {
    margin-top: 60px;
    margin-bottom: 40px;
    padding: 0 10px;
}

.tip-card {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.06), rgba(0, 0, 0, 0.4));
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    overflow: hidden;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(255, 215, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.tip-glow {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(255, 215, 0, 0.12), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.tip-content {
    position: relative;
    z-index: 1;
}

.tip-icon-wrapper {
    margin-bottom: 20px;
}

/* AI Core Animation (Living AI) */
.ai-core {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.4));
}

.core-inner {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #fff, #00f2ff);
    border-radius: 50%;
    z-index: 2;
    animation: coreBreath 4s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.8), inset 0 0 10px rgba(255, 255, 255, 0.5);
}

.core-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 242, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
    animation: corePulse 2s ease-out infinite;
}

.core-rings {
    position: absolute;
    width: 120%;
    height: 120%;
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 50%;
    animation: coreRotate 8s linear infinite;
}

.core-rings::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #00f2ff;
    border-radius: 50%;
    box-shadow: 0 0 15px #00f2ff;
}

.ai-core-small {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-core-small .core-inner {
    width: 25px;
    height: 25px;
}

@keyframes coreBreath {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
        filter: brightness(1.2);
    }
}

@keyframes corePulse {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@keyframes coreRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.tip-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, var(--accent-gold), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.tip-description {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 450px;
    margin: 0 auto 25px;
}

.tip-description strong {
    color: var(--accent-gold);
    -webkit-text-fill-color: var(--accent-gold);
}

.tip-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent-gold), #e6b800);
    color: #000;
    border: none;
    border-radius: 14px;
    padding: 14px 32px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.tip-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.tip-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.35);
}

.tip-cta-btn:hover::before {
    left: 100%;
}

.tip-cta-btn:active {
    transform: translateY(-1px);
}

.revolut-icon {
    width: 20px;
    height: 20px;
    stroke: #000;
}

/* Access Code Easter Egg */
.tip-access-code {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 20px;
    padding: 8px 16px;
    background: rgba(255, 215, 0, 0.06);
    border: 1px solid rgba(255, 215, 0, 0.12);
    border-radius: 8px;
    display: inline-block;
    letter-spacing: 0.3px;
}

.tip-access-code strong {
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.tip-disclaimer {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.78rem;
    margin-top: 18px;
    font-style: italic;
    letter-spacing: 0.3px;
}

.tip-attribution {
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.65rem;
    margin-top: 25px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
}

/* Tip Card X Close Button (Top-Right) */
.tip-card-close-x {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.25);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
    z-index: 2;
}

.tip-card-close-x:hover {
    color: rgba(255, 255, 255, 0.7);
    transform: scale(1.15);
}

/* Tip Card Close Button (Bottom) */
.tip-card-close-bottom {
    display: inline-block;
    margin-top: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 32px;
    color: rgba(255, 255, 255, 0.3);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
}

.tip-card-close-bottom:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Fade out animation when dismissed */
.success-tip-section.dismissed {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    pointer-events: none;
}

/* ================================= */
/* --- TIP QR CODE MODAL ---         */
/* ================================= */

.tip-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.tip-modal {
    background: linear-gradient(145deg, rgba(30, 35, 45, 0.97), rgba(12, 15, 20, 0.99));
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 24px;
    padding: 40px 35px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(255, 215, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateY(25px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.tip-modal-close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.6rem;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
    z-index: 2;
}

.tip-modal-close-btn:hover {
    color: #fff;
    transform: scale(1.15);
}

.tip-modal-header {
    margin-bottom: 25px;
}

/* Handled via ai-core-small styles */

.tip-modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--accent-gold), #fff, var(--accent-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 10px 0 8px;
}

.tip-modal-subtitle {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto;
}

/* QR Code Container */
.tip-qr-container {
    position: relative;
    display: inline-block;
    margin: 5px auto 20px;
    padding: 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.tip-qr-image {
    display: block;
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
}

.tip-qr-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 215, 0, 0.15),
            transparent);
    animation: qrShine 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes qrShine {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* Suggested Amount */
.tip-modal-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 15px 0;
    padding: 10px 20px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    display: inline-flex;
}

.tip-amount-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Outfit', sans-serif;
}

.tip-amount-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.tip-modal-footer {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-top: 12px;
    line-height: 1.5;
}

.tip-modal-free {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.72rem;
    margin-top: 10px;
    font-style: italic;
}

.tip-modal-free strong {
    color: rgba(255, 215, 0, 0.5);
}

/* Close Button (Bottom) */
.tip-modal-close-bottom {
    display: inline-block;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 10px 36px;
    color: var(--text-dim);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
}

.tip-modal-close-bottom:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* Mobile Adjustments for Tip Section */
@media (max-width: 768px) {
    .success-tip-section {
        margin-top: 40px;
        margin-bottom: 30px;
    }

    .tip-card {
        padding: 35px 20px;
        border-radius: 16px;
    }

    .tip-trophy {
        font-size: 2.8rem;
    }

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

    .tip-description {
        font-size: 0.85rem;
    }

    .tip-cta-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .tip-modal {
        padding: 30px 20px;
        max-width: 340px;
    }

    .tip-modal-title {
        font-size: 1.3rem;
    }

    .tip-qr-image {
        width: 160px;
        height: 160px;
    }

    .tip-qr-container {
        padding: 12px;
    }
}

/* ============================= */
/* --- PAYWALL / LOCK SYSTEM --- */
/* ============================= */

/* Lock Icon on Race Buttons */
.lock-icon {
    width: 12px;
    height: 12px;
    margin-left: 5px;
    vertical-align: middle;
    opacity: 0.5;
    stroke: var(--accent-gold);
    flex-shrink: 0;
    display: inline-block;
    position: relative;
    top: -1px;
}

.race-btn.locked {
    position: relative;
}

.race-btn.locked .race-name {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.race-btn.locked:hover .lock-icon {
    opacity: 1;
    animation: lockPulse 1.5s infinite ease-in-out;
}

@keyframes lockPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

/* Paywall Modal Overlay */
.paywall-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.paywall-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Paywall Modal Card */
.paywall-modal {
    background: linear-gradient(145deg, rgba(30, 35, 45, 0.95), rgba(15, 18, 25, 0.98));
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    padding: 40px 35px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateY(20px) scale(0.95);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Close Button */
.paywall-close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.6rem;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
}

.paywall-close-btn:hover {
    color: #fff;
    transform: scale(1.15);
}

/* Lock Icon in Modal */
.paywall-lock-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 215, 0, 0.25);
}

.paywall-lock-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--accent-gold);
}

/* Modal Title */
.paywall-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, var(--accent-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

/* Modal Subtitle */
.paywall-subtitle {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 25px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

/* Input Group */
.paywall-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.paywall-code-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 12px 16px;
    color: #fff;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.paywall-code-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.paywall-code-input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

.paywall-submit-btn {
    background: linear-gradient(135deg, var(--accent-gold), #e6b800);
    color: #000;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.paywall-submit-btn:hover {
    background: linear-gradient(135deg, #ffe44d, var(--accent-gold));
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    transform: translateY(-1px);
}

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

/* Error Message */
.paywall-error {
    color: #ff453a;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    padding: 6px 12px;
    background: rgba(255, 69, 58, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(255, 69, 58, 0.15);
}

/* Hint Text */
.paywall-hint {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    margin-top: 10px;
    font-style: italic;
}

/* Shake Animation for wrong code */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-8px);
    }

    40% {
        transform: translateX(8px);
    }

    60% {
        transform: translateX(-6px);
    }

    80% {
        transform: translateX(6px);
    }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Mobile Adjustments for Paywall */
@media (max-width: 768px) {
    .paywall-modal {
        padding: 30px 25px;
        max-width: 340px;
    }

    .paywall-title {
        font-size: 1.3rem;
    }

    .paywall-subtitle {
        font-size: 0.8rem;
    }

    .paywall-input-group {
        flex-direction: column;
    }

    .paywall-submit-btn {
        width: 100%;
    }
}

/* ================================= */
/* --- NEURAL TELEMETRY HUB ---      */
/* ================================= */

.telemetry-hub {
    margin-top: 30px;
    background: #080a0d;
    border: 1px solid rgba(0, 242, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.telemetry-hub::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00f2ff, transparent);
    z-index: 2;
}

/* Neural Indexing Ribbon */
.neural-ribbon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 242, 255, 0.08);
    padding: 10px 15px;
    border-bottom: 1px solid rgba(0, 242, 255, 0.15);
    margin: -20px -20px 15px -20px;
}

.indexing-status {
    font-size: 0.65rem;
    color: #00f2ff;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
}

.indexing-dot {
    width: 6px;
    height: 6px;
    background: #00f2ff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00f2ff;
    animation: statusPulse 1.5s infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.2);
    }
}

.source-transponders {
    display: flex;
    gap: 8px;
}

.source-tag {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.source-tag.active {
    color: #00f2ff;
    border-color: rgba(0, 242, 255, 0.4);
    background: rgba(0, 242, 255, 0.05);
}

.telemetry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.telemetry-col {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    height: 250px;
    display: flex;
    flex-direction: column;
}

.telemetry-header {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.telemetry-header svg {
    width: 14px;
    height: 14px;
}

.telemetry-feed {
    flex: 1;
    overflow-y: auto;
    font-size: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 242, 255, 0.2) transparent;
}

.telemetry-feed::-webkit-scrollbar {
    width: 4px;
}

.telemetry-feed::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 255, 0.2);
    border-radius: 2px;
}

.log-entry {
    margin-bottom: 8px;
    line-height: 1.4;
    border-left: 2px solid transparent;
    padding-left: 10px;
    animation: logFadeIn 0.3s ease-out;
}

@keyframes logFadeIn {
    from {
        opacity: 0;
        transform: translateX(-5px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.log-entry.market {
    border-color: #ff453a;
    color: #ff9f9a;
}

.log-entry.discovery {
    border-color: #00f2ff;
    color: #a5f3ff;
}

.log-entry.vault {
    border-color: var(--accent-gold);
    color: #ffe8a3;
}

.log-time {
    color: rgba(255, 255, 255, 0.2);
    margin-right: 6px;
    font-size: 0.65rem;
}

.log-source {
    font-weight: bold;
    margin-right: 5px;
}

.telemetry-empty {
    color: rgba(255, 255, 255, 0.1);
    font-style: italic;
    text-align: center;
    margin-top: 50px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .telemetry-grid {
        grid-template-columns: 1fr;
    }

    .telemetry-col {
        height: 200px;
    }
}

/* ==========================================================================
   RACING LIGHT THEME — Ultra Glassmorphic Premium
   ========================================================================== */
/* Subtle shimmer on main glass panel */
@keyframes glassShimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Slow-drifting background blobs for living feel */
@keyframes blobDrift1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -20px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 15px) scale(0.95);
    }

    75% {
        transform: translate(15px, 25px) scale(1.02);
    }
}

@keyframes blobDrift2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(-25px, 15px) scale(0.97);
    }

    50% {
        transform: translate(20px, -25px) scale(1.03);
    }

    75% {
        transform: translate(-10px, -15px) scale(1);
    }
}

#theme-btn {
    gap: 8px;
    padding: 8px 15px;
}

#theme-icon {
    font-size: 1rem;
}

#theme-text {
    font-family: 'Outfit', sans-serif;
}


/* --- TOP BAR MENU --- */
.top-bar-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.mobile-menu-toggle svg {
    width: 20px;
    height: 20px;
}

.top-bar-right-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    /* Tightened from 16px */
}

.top-bar-item {
    position: relative;
    display: flex;
    align-items: center;
}

.top-icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 8px;
    /* For mobile label space */
}

.top-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.top-icon-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.top-menu-label {
    display: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
}

.top-icon-btn .chevron-down {
    display: none;
    width: 14px;
    height: 14px;
    margin-left: auto;
}

.top-bar-item .top-text-btn:hover,
.top-bar-item .top-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(4px);
}

@media (min-width: 1025px) {

    .top-bar-item .top-text-btn:hover,
    .top-bar-item .top-icon-btn:hover {
        transform: none;
    }
}

/* Search Expansion */
.search-item {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 2px;
    transition: all 0.3s ease;
    overflow: visible;
    width: 42px;
    /* Initial circle size (38 + 2 + 2) */
}

.search-item.expanded {
    width: 220px;
}

.search-item .top-icon-btn {
    background: transparent;
    border: none;
}

.top-search-input {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    width: 0;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 0;
}

.search-item.expanded .top-search-input {
    width: 160px;
    opacity: 1;
    padding-left: 5px;
}

.top-search-input:focus {
    outline: none;
}

/* Search Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    max-height: 420px;
    overflow-y: auto;
    background: rgba(15, 20, 35, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 9999;
    padding: 8px 0;
    animation: searchDropdownIn 0.2s ease;
}

@keyframes searchDropdownIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-category {
    padding: 10px 16px 4px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-gold);
    opacity: 0.7;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-radius: 0;
}

.search-result-item:hover {
    background: rgba(201, 168, 76, 0.1);
}

.search-result-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.search-result-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.search-result-name {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-sub {
    font-size: 0.7rem;
    color: var(--text-dim);
    font-family: 'Outfit', sans-serif;
}

.search-no-results {
    padding: 20px 16px;
    text-align: center;
    color: var(--text-dim);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
}

/* Scrollbar for search dropdown */
.search-results-dropdown::-webkit-scrollbar {
    width: 4px;
}

.search-results-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.3);
    border-radius: 4px;
}

@media (max-width: 768px) {
    .search-results-dropdown {
        width: calc(100vw - 32px);
        right: -60px;
    }
}

/* Text Button (Odds) */
.top-text-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.top-text-btn:hover {
    color: var(--text-main);
}

.top-text-btn svg {
    width: 16px;
    height: 16px;
}

/* Dropdown Menu */
.dropdown-group {
    position: relative;
}

.dropdown-group.active .top-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.top-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
}

/* Avatar dropdown — right-aligned since avatar is at far-right */
.avatar-dropdown-menu {
    left: auto;
    right: 0;
}

.avatar-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 4px 12px;
}

.top-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.top-dropdown-menu a:hover,
.top-dropdown-menu a.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-gold);
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 10px;
}

.auth-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-btn.login-btn:hover {
    color: var(--accent-gold);
}

.auth-btn.signup-btn {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b8860b 100%);
    color: #000;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(197, 160, 33, 0.3);
}

.auth-btn.signup-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(197, 160, 33, 0.4);
}

/* Compact Theme Switch */
.theme-switch.compact {
    padding: 2px 8px 2px 2px;
    gap: 8px;
    font-size: 0.7rem;
}

.theme-switch.compact .switch-track {
    width: 32px;
    height: 16px;
}

.theme-switch.compact .switch-knob {
    width: 12px;
    height: 12px;
    top: 1px;
    left: 1px;
}

.theme-switch.compact .theme-icon {
    font-size: 0.6rem;
}

/* Integrated Theme Switch container overrides */
.top-bar-right-group .theme-switch {
    margin: 0;
}

/* Context Nav Wrapper (Internal Glass Panel version) */
.context-nav-wrapper {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 5px;
    padding-bottom: 5px;
}

/* Inline Views (Glossary inside Glass Panel) */
#terms-view {
    padding: 10px 0;
    animation: fadeIn 0.4s ease;
}

#terms-view.hidden {
    display: none;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.view-header h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--accent-gold);
    font-size: 1.5rem;
}

.close-view-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-view-btn:hover {
    color: var(--text-main);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- SAFER GAMBLING PAGE --- */
#safer-view {
    padding: 30px 0;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.safer-container-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.hero-promo {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.hero-promo h4 {
    font-size: 1.6rem;
    font-family: 'Outfit', sans-serif;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.hero-promo p {
    color: var(--text-dim);
    line-height: 1.6;
}

.safer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.safer-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
}

.safer-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 215, 0, 0.2);
}

.safer-card-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.safer-card h5 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 15px;
    font-family: 'Outfit', sans-serif;
}

.safer-card ul {
    list-style: none;
    padding: 0;
}

.safer-card ul li {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    line-height: 1.4;
}

.safer-card ul li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

.section-title {
    font-size: 1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.resource-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.resource-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.resource-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateX(5px);
}

.res-title {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.res-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.res-arrow {
    color: var(--accent-gold);
    font-size: 1.2rem;
}

/* Helpline & Logos */
.helpline-box {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 25px;
}

.helpline-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-gold);
    margin-bottom: 5px;
}

.helpline-number {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

.industry-logos {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-dim);
}

.safer-section.text-block {
    margin-bottom: 35px;
    padding: 0 5px;
}

.authoritative-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dim);
    margin-bottom: 20px;
    font-weight: 400;
}

.diagnostic-box {
    background: rgba(255, 69, 0, 0.03);
    border: 1px solid rgba(255, 69, 0, 0.1);
    border-radius: 15px;
    padding: 25px;
}

.diagnostic-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.diagnostic-list li {
    padding: 12px 0 12px 35px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-size: 0.95rem;
    position: relative;
}

.diagnostic-list li:last-child {
    border-bottom: none;
}

.diagnostic-list li::before {
    content: '?';
    position: absolute;
    left: 10px;
    color: var(--accent-gold);
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

.safety-checkpoint {
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.checkpoint-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
}

.checkpoint-item {
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.helpline-subtext {
    display: block;
    font-size: 0.65rem;
    color: var(--text-dim);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- PRECISION BET CALCULATOR --- */
#calc-view {
    padding: 30px 0;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.calc-container-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.calc-settings-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calc-select,
.calc-input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 12px;
    color: #fff;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.calc-select:focus,
.calc-input:focus {
    border-color: var(--accent-gold);
    background: rgba(0, 0, 0, 0.3);
}

.input-with-symbol {
    position: relative;
}

.input-with-symbol .symbol {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-gold);
    font-weight: 700;
}

.input-with-symbol .calc-input {
    padding-left: 30px;
    width: 100%;
}

/* Legs List & Cards */
.calc-legs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.calc-leg-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    display: grid;
    grid-template-columns: 40px 1fr 140px 160px 40px;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.calc-leg-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.leg-number {
    width: 24px;
    height: 24px;
    background: var(--accent-gold);
    color: #000;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
}

.leg-odds-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.odds-num,
.odds-den,
.odds-dec {
    width: 60px;
    text-align: center;
}

.odds-sep {
    color: var(--text-dim);
    font-weight: 700;
}

.leg-status-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.status-btn-group {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-btn {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-dim);
    font-size: 0.7rem;
    padding: 6px 4px;
    cursor: pointer;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
    transition: all 0.2s ease;
}

.status-btn.active[data-status="won"] {
    background: var(--accent-green);
    color: #000;
}

.status-btn.active[data-status="placed"] {
    background: var(--accent-gold);
    color: #000;
}

.status-btn.active[data-status="lost"] {
    background: #ef4444;
    color: #fff;
}

.status-btn.active[data-status="void"] {
    background: #64748b;
    color: #fff;
}

.remove-leg-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.remove-leg-btn:hover {
    opacity: 1;
}

.add-leg-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.add-leg-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Results Sidebar */
.calc-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-card.main-return {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b8860b 100%);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    color: #000;
    box-shadow: 0 10px 30px rgba(218, 165, 32, 0.2);
}

.result-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.result-value {
    font-size: 2.2rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

.calc-pro-box {
    margin-top: auto;
}

.line-badge {
    background: rgba(255, 215, 0, 0.15);
    color: var(--accent-gold);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    margin-left: 8px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

/* --- OUR AI INTELLIGENCE PAGE --- */
#ai-view {
    padding: 30px 0;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-container-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.ai-hero {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
}

.hero-stats-band {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
}

.hero-stat {
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    font-weight: 700;
}

.hero-stat span {
    display: block;
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.ai-hero h1 {
    font-size: 2.5rem;
    font-family: 'Outfit', sans-serif;
    color: #fff;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, var(--accent-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-hero p {
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

.ai-architecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.ai-feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ai-feature-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.2);
}

.card-icon {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.ai-feature-card h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
}

.ai-feature-card p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
}

/* Roadmap */
.roadmap-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.roadmap-line {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
    position: relative;
}

.roadmap-point {
    padding-left: 20px;
    border-left: 2px solid var(--accent-gold);
}

.roadmap-point .version {
    font-size: 0.65rem;
    background: var(--accent-gold);
    color: #000;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 800;
}

.roadmap-point .label {
    display: block;
    color: #fff;
    font-weight: 700;
    margin: 8px 0 5px 0;
}

.roadmap-point p {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Integrity Bars */
.sidebar-info-block {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.integrity-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.bar-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bar-row span {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 600;
}

.integrity-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.integrity-bar .fill {
    height: 100%;
    background: linear-gradient(to right, var(--accent-gold), var(--accent-green));
    border-radius: 3px;
}

.ai-badge-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.ai-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.65rem;
    text-align: center;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}

@media (max-width: 900px) {
    .ai-container-layout {
        grid-template-columns: 1fr;
    }

    .roadmap-line {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .calc-container-layout {
        grid-template-columns: 1fr;
    }


}

@media (max-width: 768px) {
    .calc-leg-card {
        grid-template-columns: 40px 1fr 40px;
        grid-template-areas:
            "num inputs remove"
            "num status status";
    }

    .leg-number {
        grid-area: num;
    }

    .remove-leg-btn {
        grid-area: remove;
    }

    .leg-inputs-wrap {
        grid-area: inputs;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .status-btn-group {
        grid-area: status;
    }
}

@media (max-width: 900px) {
    .safer-container-layout {
        grid-template-columns: 1fr;
    }

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

/* --- ACCOUNT INTEGRATION --- */
#account-view {
    padding: 30px 0;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.account-container-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}

.auth-card-wide {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.auth-card-header h1 {
    font-size: 1.8rem;
    font-family: 'Outfit', sans-serif;
    color: #fff;
    margin-bottom: 12px;
}

.auth-card-header p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.sso-grid-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.sso-btn-compact {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    /* Modern glass look */
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sso-btn-compact:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

.sso-icon-mini {
    width: 16px;
    height: 16px;
}

.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: var(--text-dim);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.divider::before {
    margin-right: 20px;
}

.divider::after {
    margin-left: 20px;
}

.auth-form-wide {
    max-width: 400px;
}

.auth-input-pair {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.auth-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 14px 16px;
    color: #fff;
    outline: none;
    font-family: inherit;
    transition: all 0.3s;
}

.auth-input:focus {
    border-color: var(--accent-gold);
    background: rgba(0, 0, 0, 0.4);
}

.auth-submit-btn {
    width: 100%;
    background: var(--accent-gold);
    color: #000;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-submit-btn:hover {
    background: #fff;
    transform: translateY(-2px);
}

.auth-card-footer {
    margin-top: 30px;
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* Account Sidebar Extensions */
.trust-shields-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
    margin-bottom: 30px;
}

.trust-badge {
    display: flex;
    gap: 15px;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
}

.trust-badge h6 {
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.trust-badge p {
    color: var(--text-dim);
    font-size: 0.7rem;
}

/* --- UNIFIED PORTAL ADDITIONS --- */
.auth-section-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
    margin-bottom: 12px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.checkout-plan-summary {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: 600;
}

.summary-details .plan-name {
    color: #fff;
    font-weight: 800;
    margin-right: 10px;
}

.summary-details .plan-price {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 0.9rem;
}

.payment-sim-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px;
    margin-top: 10px;
}

.box-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-dim);
    margin-bottom: 15px;
    font-weight: 700;
}

.sim-cc-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cc-number-mock {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
}

.cc-expiry-cvv {
    display: flex;
    gap: 20px;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-dim);
    opacity: 0.6;
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Helper Class to handle transition states */
.portal-mode-sub #name-fields,
.portal-mode-sub #payment-section,
.portal-mode-sub #checkout-plan-summary {
    display: block !important;
}

.portal-mode-auth #name-fields,
.portal-mode-auth #payment-section,
.portal-mode-auth #checkout-plan-summary {
    display: none !important;
}

/* --- WEB FOOTER --- */
.web-footer {
    margin-top: 60px;
    padding: 60px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.3);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 35px;
    margin-bottom: 40px;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.footer-links a:hover,
.footer-links a.active {
    color: var(--accent-gold);
    opacity: 1;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: clamp(10px, 3vw, 25px);
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.social-icon-link {
    color: var(--text-dim);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon-link svg {
    width: 18px;
    height: 18px;
}

.social-icon-link:hover {
    color: var(--accent-gold);
    opacity: 1;
    transform: translateY(-3px);
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.2);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.1);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    letter-spacing: 0.01em;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 15px;
}

.copyright-text {
    margin-bottom: 15px;
    opacity: 0.9;
}

.footer-master-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-logo-mini {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, var(--accent-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.footer-compliance-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

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

.flag-icon-img {
    height: 14px;
    width: auto;
    border-radius: 2px;
    filter: saturate(0.7) brightness(0.9);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.flag-icon-img:hover {
    filter: saturate(1) brightness(1.1);
    transform: translateY(-1px);
}

.footer-compliance-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 20px;
}

.compliance-badge {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
}

.compliance-badge:hover {
    color: #fff;
    border-color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.compliance-link {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.compliance-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 600px) {
    .footer-master-row {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        gap: 10px 20px;
    }
}

/* ==============================
   REDESIGNED FOOTER
   ============================== */

.web-footer {
    margin-top: 60px;
    padding: 60px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.45));
    position: relative;
    overflow: hidden;
}

.web-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

/* Brand Row */
.footer-brand-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.footer-brand-tm {
    font-size: 0.8rem;
    vertical-align: super;
    -webkit-text-fill-color: rgba(212, 175, 55, 0.7);
}

.footer-brand-tagline {
    font-size: 0.85rem;
    color: var(--text-dim);
    opacity: 0.6;
    letter-spacing: 0.02em;
    margin: 0;
}

.footer-18plus-badge {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 12px;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

/* Divider */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    margin: 30px 0;
}

/* Nav Grid */
.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 10px;
}

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

.footer-nav-heading {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 4px;
    opacity: 0.9;
}

.footer-nav-col a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.footer-nav-col a:hover,
.footer-nav-col a.active {
    color: #fff;
    opacity: 1;
}

/* Socials in nav col */
.footer-socials-col {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-social-sm {
    width: 30px !important;
    height: 30px !important;
}

.footer-social-sm svg {
    width: 14px !important;
    height: 14px !important;
}

/* Responsible Gambling Strip */
.footer-rg-strip {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.footer-rg-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.footer-compliance-logos {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    flex: 1;
}

.compliance-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.45;
    transition: all 0.3s ease;
    filter: grayscale(1) brightness(1.5);
    text-decoration: none;
}

.compliance-logo-link:hover {
    opacity: 0.9;
    filter: grayscale(0) brightness(1);
    transform: translateY(-2px);
}

.compliance-logo-img {
    height: 22px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
}

.compliance-logo-fallback {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.5);
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    align-items: center;
    justify-content: center;
}

/* Bottom Bar */
.footer-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 30px;
    gap: 20px;
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-copyright {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.25);
    margin: 0;
    letter-spacing: 0.01em;
}

.footer-bottom-center {
    display: flex;
    gap: 8px;
    align-items: center;
}

.footer-bottom-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

.footer-age-chip {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 3px 10px;
    font-family: 'Outfit', sans-serif;
}

/* Responsive footer */
@media (max-width: 900px) {
    .footer-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .footer-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .footer-brand-row {
        flex-direction: column;
        gap: 15px;
    }

    .footer-rg-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }

    .footer-compliance-logos {
        gap: 16px;
    }

    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }

    .footer-bottom-left {
        flex-direction: column;
        gap: 6px;
        align-items: center;
    }
}

/* --- FOOTER PAGE SYSTEM --- */
#footer-view {
    padding: 30px 0;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-container-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}

.footer-main-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    color: var(--text-dim);
    line-height: 1.8;
}

.footer-main-content h4 {
    color: #fff;
    font-size: 1.8rem;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 25px;
    letter-spacing: -0.02em;
}

.footer-main-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.footer-main-content section {
    margin-bottom: 40px;
}

.footer-main-content h5 {
    color: var(--accent-gold);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
    font-weight: 800;
}

.footer-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer-info-block {
    background: rgba(255, 215, 0, 0.03);
    border-left: 3px solid var(--accent-gold);
    padding: 25px;
    border-radius: 4px 15px 15px 4px;
}

.footer-sidebar-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 15px;
    display: block;
}

.footer-sidebar-text {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.footer-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.footer-stat-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

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

@media (max-width: 900px) {
    .footer-container-layout {
        grid-template-columns: 1fr;
    }
}

/* --- MOBILE INSTALL GUIDE --- */
.mobile-install-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

.install-step {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.step-num {
    background: var(--accent-gold);
    color: #000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-icon-display {
    display: flex;
    gap: 20px;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.icon-item span {
    font-size: 0.6rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.mobile-icon-display.single-icon {
    width: fit-content;
}

/* --- MOBILE HERO STYLING --- */
.mobile-hero-section {
    display: flex;
    justify-content: center;
    margin: 20px 0 10px 0;
    perspective: 1000px;
}

.mobile-hero-image {
    max-width: 280px;
    height: auto;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: all 0.5s ease;
}

.sidebar-mockup .mobile-hero-image {
    max-width: 210px;
}

.mobile-hero-image:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.03);
    border-color: rgba(255, 215, 0, 0.3);
}

.mobile-guide-icon {
    width: 20px;
    height: 20px;
    color: #fff;
}

/* --- ULTRA-PROFESSIONAL BETTING GLOSSARY --- */
#terms-view {
    padding: 30px 0;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.view-header h3 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.terms-container-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    min-height: 500px;
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    align-content: start;
}

.term-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 18px 24px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 1, 0.2, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.term-card::after {
    content: '?';
    font-size: 1.2rem;
    color: var(--accent-gold);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.term-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.term-card:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.term-card h4 {
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Sidebar Info Panel */
.terms-sidebar {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.sidebar-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    display: block;
}

.sidebar-text {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 25px;
}

.glossary-stats {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.stat-desc {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
}



@media (max-width: 900px) {
    .terms-container-layout {
        grid-template-columns: 1fr;
    }

    .terms-sidebar {
        display: none;
    }
}

/* Term Detail Modal */
.detail-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.detail-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.detail-modal {
    background: #1a1e23;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.detail-modal-overlay.active .detail-modal {
    transform: scale(1);
}

.detail-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 1.5rem;
    cursor: pointer;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

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

.detail-header h3 {
    font-size: 1.8rem;
    font-family: 'Outfit', sans-serif;
    color: var(--accent-gold);
}

.detail-body p {
    color: var(--text-main);
    line-height: 1.6;
    font-size: 1.05rem;
    margin-bottom: 25px;
}

.detail-example {
    background: rgba(255, 215, 0, 0.05);
    border-left: 3px solid var(--accent-gold);
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
}

.detail-example strong {
    display: block;
    color: var(--accent-gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.detail-example p {
    color: var(--text-dim);
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Light Theme Overlays */
/* Mobile Adjustments */
@media (max-width: 1024px) {
    .container {
        padding: 15px 15px;
    }

    header.top-bar-menu {
        padding: 10px 0;
        margin-bottom: 12px;
        position: relative;
        z-index: 9999;
        align-items: flex-start;
    }

    .top-bar-nav-actions {
        align-items: flex-start !important;
        padding-top: 2px;
        /* Small adjustment to match logo optical top */
    }

    .main-glass-panel {
        padding: 15px;
    }

    h1.logo-text {
        line-height: 1;
        margin: 0;
    }

    .mobile-menu-toggle {
        display: flex;
        margin-left: 10px;
    }

    .auth-buttons-item {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .auth-buttons {
        display: flex !important;
        justify-content: center;
        gap: 20px;
        margin: 0;
    }

    .mobile-signup {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: var(--accent-gold);
        color: #000;
        border: none;
        border-radius: 10px;
        padding: 0 15px;
        height: 38px;
        font-weight: 800;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        cursor: pointer;
        white-space: nowrap;
    }

    .mobile-signup-header {
        display: flex !important;
        background: var(--accent-gold);
        color: #000;
        border: none;
        border-radius: 8px;
        padding: 6px 14px;
        font-weight: 700;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        cursor: pointer;
        margin-right: 5px;
    }



    .mobile-nav-link {
        display: block;
        padding: 10px 14px;
        color: var(--text-main);
        text-decoration: none;
        font-size: 0.88rem;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.03);
        transition: all 0.2s ease;
    }

    .mobile-nav-link:hover {
        background: rgba(255, 255, 255, 0.08);
        color: var(--accent-gold);
    }

    .mobile-toggle-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 15px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .toggle-label {
        font-size: 0.75rem;
        font-weight: 700;
        color: var(--text-dim);
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .mini-toggle {
        display: grid;
        grid-template-columns: 1fr 1fr;
        background: rgba(0, 0, 0, 0.3);
        padding: 4px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .mini-toggle button {
        background: transparent;
        border: none;
        color: var(--text-dim);
        padding: 6px;
        font-size: 0.8rem;
        font-weight: 600;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .mini-toggle button.active {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .top-bar-right-group.active {
        display: flex;
        animation: menuSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    .top-bar-right-group {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        right: -10px;
        width: 300px;
        background: rgba(13, 17, 23, 0.98);
        backdrop-filter: blur(50px);
        -webkit-backdrop-filter: blur(50px);
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 24px;
        padding: 24px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        z-index: 1000;
        box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 255, 136, 0.05);
    }

    @keyframes menuSlideIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .top-bar-item {
        width: 100%;
    }

    .top-text-btn,
    .top-icon-btn {
        width: 100%;
        justify-content: flex-start;
        height: 44px;
        border-radius: 12px;
        padding: 0 16px;
    }

    .top-icon-btn {
        border-radius: 12px;
        /* Standardize with top-text-btn on mobile */
    }

    .top-menu-label,
    .top-icon-btn .chevron-down {
        display: block;
    }

    .search-item {
        width: 100% !important;
        border-radius: 8px;
        padding: 0;
        height: 44px;
        background: rgba(255, 255, 255, 0.03);
    }

    .search-item .top-search-input {
        width: 100% !important;
        opacity: 1 !important;
        padding-left: 10px;
    }

    .top-dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
        margin-top: 8px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        padding: 8px;
        border-radius: 12px;
        display: none;
        /* Hide submenus by default even in mobile if needed, or show them? */
    }

    .dropdown-group.open .top-dropdown-menu {
        display: block;
    }

    .dropdown-group.open .chevron-down {
        transform: rotate(180deg);
    }

    .dropdown-group .chevron-down {
        transition: transform 0.3s ease;
    }

    .top-dropdown-menu a {
        padding: 10px 15px;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    .top-dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.08);
    }
}

@media (max-width: 768px) {
    .auth-buttons {
        gap: 8px;
    }

    .auth-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .login-btn {
        display: none;
        /* Hide login on very small, keep Sign Up as priority? Or just compact both? */
    }

    /* User requested: "Would Login and Sign up stay outside the hamburger" */
    /* So let's try to fit both if possible, or at least Signup */
}

@media (max-width: 600px) {
    .login-btn {
        display: none;
    }

    /* Only show Sign up on tiny screens to save space */

    .top-bar-nav-actions {
        gap: 8px;
    }

    h1.logo-text {
        font-size: 1.1rem;
        /* Smaller logo for tiny screens */
    }

    .subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
}

.overlay-title {
    font-size: 2rem;
}

.overlay-content-container {
    padding: 40px 15px;
}

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

.context-nav-wrapper {
    justify-content: center;
}

/* --- RACE BUTTON FIXES --- */
/* --- BRIEFING PANEL REFINEMENT --- */
/* --- OVERALL FRAMING REFINEMENT --- */
/* Fix for Contender Badge in Light Theme */
/* --- ADVERTISING PAGE REFINEMENT --- */
.integrity-badge-wide {
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.1), rgba(0, 255, 136, 0.02));
    border: 1px solid rgba(0, 255, 136, 0.2);
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    color: var(--accent-green);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.funding-highlight {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    margin-top: 25px;
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* --- ELITE CONTACT FORM & SOCIALS --- */
.contact-form-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 40px;
}

.pro-contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.pro-contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.pro-contact-form input,
.pro-contact-form select,
.pro-contact-form textarea {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pro-contact-form input:focus,
.pro-contact-form select:focus,
.pro-contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-green);
    background: rgba(0, 0, 0, 0.3);
}

.pro-contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-submit-btn {
    background: linear-gradient(135deg, var(--accent-green), #064e3b);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.2);
}

.social-liason-grid h5 {
    margin-bottom: 20px;
    color: var(--text-dim);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.social-links-pro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.social-link-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-link-item:hover {
    background: rgba(0, 255, 136, 0.05);
    border-color: rgba(0, 255, 136, 0.2);
    color: var(--accent-green);
    transform: translateX(5px);
}

.social-icon {
    font-size: 1.2rem;
}

/* --- Subscription & Pricing Styles --- */
.pricing-container-layout {
    padding: 20px 0;
    animation: fadeIn 0.5s ease-out;
}

.pricing-header {
    text-align: center;
    margin-bottom: 50px;
}

.pricing-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--accent-gold), #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
    letter-spacing: -1px;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.pricing-header p {
    color: var(--text-dim);
    font-size: 1.2rem;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.pricing-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 50px 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.pricing-card.featured {
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.12) 0%, rgba(10, 10, 20, 0.6) 100%);
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.1);
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 28px;
    padding: 1px;
    background: linear-gradient(135deg, var(--accent-gold), transparent, var(--accent-gold));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    pointer-events: none;
}

@media (min-width: 1024px) {
    .pricing-card.featured {
        transform: scale(1.05);
        z-index: 2;
    }

    .pricing-card.featured:hover {
        transform: translateY(-10px) scale(1.07);
    }
}

.featured-ribbon {
    position: absolute;
    top: 25px;
    right: -40px;
    background: var(--accent-gold);
    color: #000;
    padding: 10px 45px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    transform: rotate(45deg);
    letter-spacing: 1.5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 10;
    pointer-events: none;
}

.plan-badge {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-dim);
    margin-bottom: 20px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.featured-badge {
    color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.1);
}

.plan-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.plan-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.plan-price {
    margin-bottom: 30px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.plan-price .currency {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-gold);
    align-self: flex-start;
    margin-top: 8px;
}

.plan-price .amount {
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: -2px;
}

.plan-price .old-amount {
    font-size: 1.5rem;
    text-decoration: line-through;
    color: var(--text-dim);
    margin-right: 10px;
    opacity: 0.6;
}

.plan-price .period {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.plan-features {
    list-style: none;
    width: 100%;
    margin-bottom: 35px;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
}

.plan-features li {
    margin-bottom: 12px;
    color: var(--text-main);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feat-check {
    color: var(--accent-green);
    font-weight: bold;
}

.feat-check.feat-highlight {
    color: var(--accent-gold);
}

.feat-check.feat-elite {
    color: #d4a017;
}

.plan-btn {
    width: 100%;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-top: auto;
}

.plan-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.featured-btn {
    background: var(--accent-gold) !important;
    color: #000 !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.featured-btn:hover {
    background: #fff !important;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5) !important;
    transform: translateY(-5px) scale(1.02);
}

/* Sign Up Form Overlay */
.signup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.signup-overlay.hidden {
    display: none !important;
}

.signup-form-card {
    max-width: 550px;
    width: 100%;
    padding: 40px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
}

.close-signup-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.signup-form-card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    margin-bottom: 10px;
}

.signup-form-card p {
    color: var(--text-dim);
    margin-bottom: 30px;
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.payment-sim-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
}

.box-label {
    position: absolute;
    top: -10px;
    left: 15px;
    background: #1a1a1a;
    padding: 0 8px;
    font-size: 0.65rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sim-cc-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cc-number-mock {
    font-family: monospace;
    font-size: 1.2rem;
    color: var(--text-dim);
    letter-spacing: 3px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
    padding-bottom: 5px;
}

.cc-expiry-cvv {
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.auth-disclaimer {
    font-size: 0.75rem !important;
    text-align: center;
    margin-top: 15px !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pricing-header h1 {
        font-size: 1.8rem;
    }

    .pricing-grid {
        gap: 20px;
    }

    .pricing-card {
        padding: 30px 20px;
    }

    .pricing-card.featured {
        transform: scale(1);
        border-width: 1px;
    }

    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
}

/* --- Professional Contact Form --- */
.contact-form-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    margin-top: 30px;
    backdrop-filter: blur(10px);
}

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

.form-group-full {
    grid-column: span 2;
}

.contact-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.contact-input-group label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.contact-field {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 18px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-field:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

.contact-textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-submit {
    background: var(--accent-gold);
    color: #000;
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.contact-submit:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    background: #fff;
}

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

    .form-group-full {
        grid-column: span 1;
    }
}

/* --- Hub View (Shop Window) Styling --- */
#hub-view {
    padding: 20px 0;
    animation: fadeIn 0.8s ease-out;
}

.hub-hero {
    text-align: center;
    margin-bottom: 50px;
}

.hub-hero h2 {
    font-size: 2.8rem;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.hub-subtitle {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
}

.hub-grid {
    display: grid;
    grid-template-columns: 5fr 3fr;
    gap: 30px;
    margin-bottom: 50px;
}

.hub-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 35px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hub-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.05), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.hub-card:hover .card-glow {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hub-card h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.hub-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-list li {
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-list li::before {
    content: '→';
    color: var(--accent-gold);
    font-weight: 800;
}

.hub-stat-row {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- SUBSCRIPTION PROMO WIDGET (Enhanced) --- */
.subscription-promo-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(2, 6, 23, 0.95) 100%);
    margin-top: 40px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(255, 215, 0, 0.05);
}

.promo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-main h4 {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px !important;
    background: linear-gradient(to right, #fff, var(--accent-gold), #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 6s linear infinite;
}

.header-main p {
    font-size: 1rem !important;
    color: var(--text-dim);
    margin: 0 !important;
    font-weight: 500;
}

.mini-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.mini-plan-panel {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mini-plan-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.6s;
}

.mini-plan-panel:hover::before {
    left: 100%;
}

.mini-plan-panel:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.mini-plan-panel.featured {
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.1) 0%, rgba(10, 15, 25, 0.6) 100%);
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.1);
}

.mini-plan-panel.featured:hover {
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.15) 0%, rgba(20, 30, 50, 0.8) 100%);
    border-color: var(--accent-gold);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.2);
}

.tier-tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 50px;
    display: inline-block;
    align-self: center;
}

.tier-tag.gold {
    color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.1);
}

.mini-plan-panel h5 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
}

.mini-price {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 25px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    letter-spacing: -1px;
}

.mini-price .curr {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.mini-price .dur {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 500;
    letter-spacing: 0;
}

.old-price {
    font-size: 1rem;
    text-decoration: line-through;
    color: var(--text-dim);
    margin-right: 10px;
    font-weight: 400;
    opacity: 0.5;
}

.mini-perks {
    list-style: none;
    padding: 20px 0;
    margin: 0 0 30px 0;
    text-align: left;
    flex-grow: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mini-perks li {
    font-size: 0.8rem;
    color: var(--text-main);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-perks li::before {
    content: '?';
    color: var(--accent-green);
    font-weight: 900;
    font-size: 0.9rem;
}

.mini-action {
    background: rgba(255, 255, 255, 0.05);
    padding: 14px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    margin-top: auto;
}

.mini-plan-panel:hover .mini-action {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.mini-action.featured {
    background: var(--accent-gold);
    color: #000;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.mini-plan-panel.featured:hover .mini-action.featured {
    background: #fff;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
}

@media (max-width: 1024px) {
    .mini-plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .promo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

.hub-stat {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-gold);
    font-family: 'Outfit', sans-serif;
}

.stat-lab {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
}

.price-chip {
    background: linear-gradient(135deg, var(--accent-gold), #b8860b);
    color: #000;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 10px;
    width: fit-content;
}

.price-compare {
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.6;
}

.syndicate-tag {
    font-size: 0.7rem;
    font-weight: 900;
    color: var(--accent-green);
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hub-cta {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 12px 24px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hub-cta:hover {
    background: var(--accent-gold);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.hub-action-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.primary-hub-btn {
    background: var(--accent-gold);
    color: #000;
    border: none;
    padding: 18px 40px;
    border-radius: 15px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.primary-hub-btn:hover {
    transform: scale(1.05);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.secondary-hub-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 40px;
    border-radius: 15px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-hub-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

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

    .hub-hero h2 {
        font-size: 2rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- LIVE NEWS CARD & HUB HUB ENHANCEMENTS --- */
.news-card-live {
    background: linear-gradient(135deg, rgba(200, 0, 0, 0.05), rgba(0, 0, 0, 0.3)) !important;
    border: 1px solid rgba(255, 0, 0, 0.2) !important;
    position: relative;
    overflow: hidden;
    grid-column: span 1;
}

.news-card-live:hover {
    border-color: rgba(255, 0, 0, 0.4) !important;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.1);
}

.news-static-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.4)) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.news-item-static {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.news-item-static:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.news-date {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent-gold);
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 4px;
}

.news-item-static h6 {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 5px;
    font-family: 'Outfit', sans-serif;
}

.news-item-static p {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0 !important;
    opacity: 0.7;
}

.live-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 0, 0, 0.1);
    color: #ff4444;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #ff4444;
    border-radius: 50%;
    animation: flashPulse 1.5s infinite;
}

@keyframes flashPulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.news-ticker-container {
    height: 120px;
    overflow: hidden;
    position: relative;
    margin: 15px 0;
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    transition: height 0.3s ease;
}

.tall-ticker .news-ticker-container {
    height: 380px;
}

.news-ticker {
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: scrollUp 20s linear infinite;
}

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

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

/* Duplicate ticker content for seamless loop if needed, but for now we'll just use a simple scroll or marquee style */
/* Better approach: 100% is however many items we have. */

.ticker-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.ticker-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 215, 0, 0.2);
    transform: scale(1.02);
}

.ticker-time {
    color: var(--accent-gold);
    font-weight: 800;
    font-size: 0.7rem;
    flex-shrink: 0;
    background: rgba(255, 215, 0, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
}

.ticker-text {
    color: var(--text-main);
    font-weight: 400;
}

.ticker-text strong {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.live-stats-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.live-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    /* For the scanning line */
}

.live-stat::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 255, 136, 0.1), transparent);
    animation: scanLine 3s linear infinite;
    pointer-events: none;
}

@keyframes scanLine {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

.live-stat .val {
    font-family: 'JetBrains Mono', 'Space Mono', monospace;
    /* Technical feel */
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--accent-green);
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
    letter-spacing: -1px;
}

/* Premium News Card Styling */
.news-static-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 24px !important;
}

.news-primary {
    background: rgba(255, 255, 255, 0.03);
    padding: 0;
    /* Remove padding to let image fill top */
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 5px;
    position: relative;
    overflow: hidden;
}

.news-primary-content {
    padding: 20px 25px;
    border-left: 3px solid var(--accent-gold);
}

.inside-track-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
}

.inside-track-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1);
    transition: transform 0.5s ease;
}

.news-primary:hover .inside-track-frame img {
    transform: scale(1.05);
}

.frame-brand {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 8px 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.55rem;
    font-weight: 900;
    color: var(--accent-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.frame-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, var(--accent-gold), transparent);
}

.news-primary::after {
    content: 'BREAKING';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.5rem;
    font-weight: 900;
    color: var(--accent-gold);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
    animation: pulseGlow 2s infinite;
    z-index: 10;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 8px var(--accent-gold);
    }

    100% {
        opacity: 0.4;
    }
}

.news-primary h5 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-weight: 700;
    line-height: 1.3;
}

.news-primary p {
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.4;
    margin: 0;
}

.secondary-news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-secondary {
    display: flex;
    gap: 12px;
    padding: 10px 10px 12px;
    margin: 0 -10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid transparent;
    align-items: flex-start;
    border-radius: 8px;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.news-secondary:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.thumb-frame {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    border: 1px solid rgba(197, 160, 89, 0.4);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.thumb-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-tag {
    font-size: 0.5rem;
    font-weight: 900;
    color: var(--accent-gold);
    background: rgba(197, 160, 89, 0.05);
    padding: 1px 4px;
    border-radius: 3px;
    height: fit-content;
    white-space: nowrap;
    margin-bottom: 2px;
    display: inline-block;
}

.news-content-small {
    flex: 1;
}

.news-content-small h6 {
    color: #fff;
    font-size: 0.8rem;
    margin-bottom: 2px;
    font-weight: 600;
}

.news-content-small span {
    font-size: 0.65rem;
    color: var(--text-dim);
}

/* Wide Layout Extension */
.wide-news-card {
    grid-column: span 2;
}

.wide-news-card .secondary-news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.wide-news-card .news-secondary {
    flex-direction: column;
    align-items: flex-start;
    border-bottom: none;
    padding-bottom: 0;
}

.wide-news-card .thumb-frame {
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    margin-bottom: 10px;
}

.news-card-live .lab {
    font-size: 0.55rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 4px;
    text-align: center;
}

/* Racing Feed Card Overrides */
.news-card-live {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.news-card-live h4,
#live-news-card h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--accent-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.clickable {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-primary.clickable:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(197, 160, 89, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.news-secondary.clickable:hover,
.news-secondary.live-news-card-trigger:hover {
    background: rgba(212, 175, 55, 0.06) !important;
    border-left-color: var(--accent-gold);
    transform: translateX(6px);
    box-shadow: -3px 0 12px rgba(212, 175, 55, 0.15), 4px 4px 16px rgba(0, 0, 0, 0.25);
}

.news-secondary.clickable:hover h6,
.news-secondary.live-news-card-trigger:hover h6 {
    color: var(--accent-gold);
    transition: color 0.2s ease;
}

.news-secondary.clickable:hover .news-tag,
.news-secondary.live-news-card-trigger:hover .news-tag {
    background: rgba(212, 175, 55, 0.15);
}

.news-secondary.clickable:hover .thumb-frame,
.news-secondary.live-news-card-trigger:hover .thumb-frame {
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.news-secondary.clickable:hover .thumb-frame img,
.news-secondary.live-news-card-trigger:hover .thumb-frame img {
    transform: scale(1.08);
    transition: transform 0.35s ease;
}

.news-primary.clickable:hover .inside-track-frame img {
    transform: scale(1.03);
    filter: brightness(1);
}

/* Social dock inside text content for secondary news items */
.news-content-small .social-inline-dock {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.news-secondary:hover .news-content-small .social-inline-dock {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.news-content-small .social-inline-dock .dock-btn {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.news-content-small .social-inline-dock .dock-btn:hover {
    background: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
}

.news-content-small .social-inline-dock .dock-btn svg {
    width: 10px;
    height: 10px;
}

/* Primary story social dock in text area */
.news-primary-content .social-inline-dock {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.news-primary-content .social-inline-dock .dock-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.news-primary-content .social-inline-dock .dock-btn:hover {
    background: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
}

.news-primary-content .social-inline-dock .dock-btn svg {
    width: 13px;
    height: 13px;
}


/* --- ULTRA PREMIUM BLOG ARTICLE STYLES --- */
#blog-article-view {
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

.blog-container {
    padding: 20px 0;
    animation: fadeIn 0.5s ease;
}



/* Article Layout */
.premium-article {
    padding-bottom: 80px;
}

.article-hero {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
}

.article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(10, 10, 12, 1), transparent);
}

.hero-content {
    position: absolute;
    bottom: 40px;
    left: 60px;
    right: 60px;
    z-index: 2;
}

.article-category {
    font-family: 'Outfit', sans-serif;
    color: var(--accent-green);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 4px;
    margin-bottom: 20px;
    display: block;
    font-weight: 700;
}

.hero-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.1rem;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 20px;
    max-width: 650px;
    letter-spacing: -0.02em;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-dim);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-meta .dot {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

/* Body Content */
.article-body-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 50px;
    padding: 40px 0;
}

.article-main-content {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.85;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

.lead {
    font-size: 1.15rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 35px;
    line-height: 1.7;
    border-left: 2px solid var(--accent-gold);
    padding-left: 25px;
    letter-spacing: -0.01em;
}

.article-main-content p {
    margin-bottom: 30px;
}

.article-main-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    color: #fff;
    margin: 45px 0 20px;
    letter-spacing: -0.01em;
    font-weight: 700;
}

.pro-quote {
    background: rgba(197, 160, 89, 0.03);
    border: 1px solid rgba(197, 160, 89, 0.15);
    padding: 25px 35px;
    border-radius: 12px;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--accent-gold);
    margin: 45px 0;
    position: relative;
    line-height: 1.7;
}

.pro-quote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 5rem;
    font-family: serif;
    opacity: 0.2;
}

.article-image-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 50px 0;
}

.sub-image-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sub-image-box img {
    border-radius: 12px;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sub-image-box span {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.ai-insight-box {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05) 0%, rgba(10, 10, 12, 0.8) 100%);
    border: 1px solid rgba(0, 255, 136, 0.2);
    padding: 25px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.ai-insight-box .box-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent-green);
    margin-bottom: 20px;
    display: block;
    letter-spacing: 2px;
}

.ai-insight-box .stat-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-insight-box .stat-row span:first-child {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.ai-insight-box .stat-row .val {
    font-family: 'JetBrains Mono', monospace;
    color: #fff;
    font-weight: 700;
}

.box-summary {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-dim);
    font-style: italic;
    line-height: 1.5;
}

.related-intel h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    color: #fff;
}

.related-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
    align-items: flex-start;
}

.related-item:hover {
    transform: translateX(10px);
}

/* News CTA Source Box */
.news-cta-box {
    margin-top: 40px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.03));
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.news-cta-text {
    flex: 1;
    min-width: 0;
}

.news-cta-source {
    font-size: 0.75rem;
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.news-cta-desc {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin: 0;
}

.news-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--accent-gold);
    color: #000;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.related-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.related-item span {
    font-size: 0.65rem;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 5px;
}

.related-item h5 {
    font-size: 0.85rem;
    color: #fff;
    line-height: 1.3;
}

/* Light Theme overrides */
@media (max-width: 1024px) {
    .article-body-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .blog-header {
        padding: 20px;
    }

    .article-body-wrapper {
        padding: 30px;
    }

    .hero-content {
        left: 30px;
        right: 30px;
    }
}

/* --- MARKET TICKER BAR (HORIZONTAL) --- */
.market-ticker-bar {
    background: rgba(10, 10, 12, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 48px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 18px;
    position: relative;
    z-index: 10;
}

.ticker-label {
    background: var(--accent-gold);
    color: #000;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 25px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 2px;
    white-space: nowrap;
    position: relative;
    z-index: 20;
    box-shadow: 15px 0 40px rgba(0, 0, 0, 0.6);
}

.live-pulse {
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
    margin-right: 12px;
    animation: pulseBlack 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes pulseBlack {
    0% {
        transform: scale(0.95);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.6;
    }
}

.ticker-content-wrapper {
    flex: 1;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.ticker-scroll {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    width: fit-content;
    animation: tickerHorizontal 45s linear infinite;
    padding-left: 20px;
}

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

@keyframes tickerHorizontal {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ticker-item {
    display: flex;
    align-items: center;
    padding: 0 45px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    height: 40%;
}

.ticker-item .horse {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: #fff;
    font-weight: 700;
    margin-right: 15px;
    letter-spacing: 0.5px;
}

.ticker-item .odds {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.05rem;
    font-weight: 800;
    padding: 2px 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.odds.up {
    color: var(--accent-green);
}

.odds.down {
    color: #ff5555;
}

.odds.steady {
    color: var(--text-dim);
}

.odds.up::after {
    content: ' \25B4';
    font-size: 0.75rem;
    margin-left: 5px;
    vertical-align: middle;
}

.odds.down::after {
    content: ' \25BE';
    font-size: 0.75rem;
    margin-left: 5px;
    vertical-align: middle;
}

/* Light Theme overrides for Ticker */
@media (max-width: 768px) {
    .ticker-label {
        font-size: 0.45rem;
        padding: 0 10px;
        letter-spacing: 1px;
    }

    .ticker-item {
        padding: 0 20px;
    }

    .ticker-item .horse {
        font-size: 0.75rem;
        margin-right: 10px;
    }

    .ticker-item .odds {
        font-size: 0.85rem;
    }

    .live-pulse {
        margin-right: 6px;
    }

    .panel-header-actions {
        position: relative;
        top: 0;
        right: 0;
        display: flex;
        justify-content: center;
        margin-bottom: 15px;
        width: 100%;
    }

    .live-clock {
        padding: 4px 10px;
        font-size: 0.58rem;
        gap: 6px;
        background: rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.12);
    }

    .clock-date {
        padding-right: 6px;
    }

    h1.logo-text {
        font-size: 1.4rem;
    }

    /* Fix for Latest Racing News Card on Mobile */
    .wide-news-card {
        grid-column: span 1 !important;
    }

    .wide-news-card .secondary-news-list {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .wide-news-card .news-secondary {
        flex-direction: row !important;
        align-items: center !important;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .wide-news-card .news-secondary:last-child {
        border-bottom: none;
    }

    .wide-news-card .thumb-frame {
        width: 60px !important;
        height: 60px !important;
        aspect-ratio: 1/1 !important;
        margin-bottom: 0 !important;
    }

    .news-static-card {
        padding: 15px !important;
    }


    .hub-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .market-ticker-bar {
        height: 38px !important;
        margin-bottom: 12px;
    }

    .ticker-item {
        height: 40% !important;
    }
}

/* --- MOBILE SPECIFIC VIEW OVERRIDES (Account, Shop, Calc) --- */
@media (max-width: 1024px) {

    #account-view,
    #calc-view,
    #shop-view,
    #subscription-view,
    #terms-view,
    #footer-view {
        padding: 15px 0 !important;
    }

    .view-header {
        padding: 0 15px 10px 15px !important;
        margin-bottom: 15px !important;
    }

    .account-container-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .auth-card-wide {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .auth-card-header h1 {
        font-size: 1.5rem;
    }

    .sso-grid-compact {
        flex-direction: column;
    }

    .sso-btn-compact {
        width: 100%;
        min-height: 48px;
    }

    .shop-container-layout {
        flex-direction: column;
        border-radius: 16px;
        min-height: unset;
    }

    .shop-main-content {
        padding: 1.5rem !important;
        max-height: unset !important;
        overflow: visible;
    }

    .shop-hero {
        padding: 2rem !important;
        margin-bottom: 2rem !important;
        border-radius: 20px !important;
    }

    .shop-hero h1 {
        font-size: 1.4rem !important;
    }

    .shop-hero p {
        font-size: 0.85rem !important;
        margin-top: 15px;
    }

    .shop-product-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .shop-sidebar {
        width: 100% !important;
        border-left: none !important;
        border-top: 1px solid rgba(197, 160, 89, 0.2) !important;
        padding: 2rem 1.5rem !important;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3) !important;
    }

    .sidebar-category-list {
        flex-direction: row !important;
        overflow-x: auto !important;
        padding-bottom: 5px !important;
        gap: 10px !important;
    }

    .shop-cat-btn {
        flex-shrink: 0 !important;
        width: auto !important;
        padding: 10px 15px !important;
        font-size: 0.85rem !important;
        border-radius: 12px !important;
    }

    .cat-icon {
        font-size: 1.1rem !important;
    }

    .sidebar-label {
        margin-bottom: 1.5rem !important;
    }

    .footer-container-layout,
    .safer-container-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 15px !important;
    }

    .footer-main-content {
        padding: 25px 20px !important;
    }

    .footer-main-content h4 {
        font-size: 1.4rem !important;
    }

    #terms-view {
        padding: 10px 15px !important;
    }

    #footer-view {
        padding: 15px 0 !important;
    }

    .terms-container-layout {
        display: flex !important;
        flex-direction: column !important;
    }

    .terms-sidebar {
        width: 100% !important;
        margin-bottom: 20px !important;
    }
}

@media (max-width: 600px) {
    .auth-card-wide {
        padding: 20px 15px;
    }

    .auth-input-pair {
        flex-direction: column;
    }

    .shop-hero h1 {
        font-size: 1.25rem !important;
    }
}

/* --- BROADCAST-STYLE TV HUB REDESIGN --- */
.video-intel-card {
    background: linear-gradient(145deg, rgba(5, 8, 18, 0.95) 0%, rgba(10, 15, 30, 0.98) 100%) !important;
    border: 1px solid rgba(255, 215, 0, 0.12) !important;
}

/* ── Channel Header ── */
.tv-channel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.tv-channel-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.25);
    color: var(--accent-gold);
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 6px;
}

.tv-channel-badge span {
    color: rgba(255, 215, 0, 0.5);
    font-weight: 400;
}

.tv-on-air {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #ef4444;
}

.tv-on-air-dot {
    width: 7px;
    height: 7px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 8px #ef4444;
    animation: tv-blink 1.1s ease-in-out infinite;
}

@keyframes tv-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

.tv-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: -0.5px;
}

.tv-title-accent {
    color: var(--accent-gold);
    font-style: italic;
}

/* ── Content Grid ── */
.tv-content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

/* ── Featured Player ── */
.tv-featured-col {
    position: relative;
}

.tv-player-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.tv-player-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s ease;
    display: block;
}

.tv-player-wrap:hover img {
    transform: scale(1.04);
}

/* Inner placeholder (fills the tv-player-wrap) */
.tv-player-wrap .video-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    display: block;
}

.tv-player-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.0) 35%,
            rgba(0, 0, 0, 0.0) 50%,
            rgba(0, 0, 0, 0.85) 100%);
    pointer-events: none;
}

/* Top row: NOW PLAYING + duration */
.tv-player-top {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
}

.tv-now-playing-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.9);
    backdrop-filter: blur(8px);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 5px;
}

.tv-np-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: tv-blink 1.1s ease-in-out infinite;
}

.tv-duration-badge {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--accent-gold);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 5px;
}

/* Centre play ring */
.tv-play-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(4px);
}

.tv-play-inner {
    width: 52px;
    height: 52px;
    background: rgba(255, 215, 0, 0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
}

.tv-play-inner svg {
    width: 22px;
    height: 22px;
    margin-left: 3px;
}

.tv-player-wrap:hover .tv-play-ring {
    border-color: rgba(255, 255, 255, 0.6);
    transform: translate(-50%, -50%) scale(1.08);
}

.tv-player-wrap:hover .tv-play-inner {
    background: #fff;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.5);
}

/* Bottom info */
.tv-player-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 22px 22px;
    z-index: 3;
}

.tv-player-category {
    font-family: 'Outfit', sans-serif;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 6px;
}

.tv-player-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

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

.tv-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* ── Playlist Column ── */
.tv-playlist-col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tv-playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tv-playlist-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent-gold);
}

.tv-playlist-count {
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    color: var(--text-dim);
    font-weight: 500;
}

.tv-playlist {
    display: flex;
    flex-direction: column;
}

/* Episode row */
.tv-episode {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    position: relative;
    transition: background 0.2s ease;
}

.tv-episode:last-child {
    border-bottom: none;
}

.tv-episode:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Gold left bar for active ep */
.tv-ep-active-bar {
    position: absolute;
    left: -8px;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 3px;
    background: var(--accent-gold);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tv-episode.active .tv-ep-active-bar {
    opacity: 1;
}

/* Thumbnail */
.tv-ep-thumb {
    width: 100px;
    min-width: 100px;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s ease;
}

.tv-episode.active .tv-ep-thumb,
.tv-episode:hover .tv-ep-thumb {
    border-color: rgba(255, 215, 0, 0.4);
}

.tv-ep-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tv-episode:hover .tv-ep-thumb img {
    transform: scale(1.08);
}

.tv-ep-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.tv-ep-overlay svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.tv-episode:hover .tv-ep-overlay {
    opacity: 1;
}

.tv-episode.active .tv-ep-overlay {
    opacity: 1;
    background: rgba(255, 215, 0, 0.25);
}

.tv-episode.active .tv-ep-overlay svg {
    color: var(--accent-gold);
}

.tv-ep-dur {
    position: absolute;
    bottom: 4px;
    right: 5px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 2px 5px;
    border-radius: 3px;
}

/* Episode info */
.tv-ep-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.tv-ep-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-gold);
}

.tv-ep-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.tv-episode.active .tv-ep-title,
.tv-episode:hover .tv-ep-title {
    color: var(--accent-gold);
}

.tv-ep-trainer {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}

.tv-ep-stats {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.6rem;
    color: var(--text-dim);
    margin-top: 2px;
}

.tv-ep-dot-sep {
    color: rgba(255, 255, 255, 0.2);
}

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

    .tv-playlist-col {
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding-top: 16px;
    }

    .tv-playlist {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0 20px;
    }

    .tv-ep-thumb {
        width: 80px;
        min-width: 80px;
    }
}

@media (max-width: 600px) {
    .tv-playlist {
        grid-template-columns: 1fr;
    }

    .tv-title {
        font-size: 1.15rem;
    }
}

/* --- VIDEO MODAL BASE --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal .modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal .modal-content {
    position: relative;
    z-index: 1;
    border-radius: 16px;
    overflow: hidden;
}

.modal .modal-close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.5rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s ease;
}

.modal .modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* --- VIDEO MODAL STYLING --- */
.video-modal-content {
    max-width: 90vw !important;
    width: 800px !important;
    background: #000 !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
}

.video-modal-body {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.video-modal-body iframe {
    width: 100%;
    height: 100%;
}

/* --- BREADCRUMB STYLING --- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: var(--text-dim);
}

.breadcrumb-home {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
}

.breadcrumb-home:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.1rem;
    line-height: 1;
}

.breadcrumb-current {
    color: rgba(255, 255, 255, 0.4);
}

.clickable-breadcrumb {
    cursor: pointer;
    transition: all 0.2s ease;
}

.clickable-breadcrumb:hover {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

@media (max-width: 768px) {
    .breadcrumb {
        font-size: 0.7rem;
        margin-bottom: 4px;
    }

    .view-header h3 {
        font-size: 1.3rem !important;
        margin: 0 !important;
    }

    /* Remove space for invisible titles on mobile */
    .view-header h3[style*="visibility: hidden"] {
        display: none !important;
    }
}

/* Specialized Breadcrumb for Racing View */
#racing-view .view-header,
#race-analysis-view .view-header {
    margin-top: 15px;
    margin-bottom: 10px;
    padding-left: 5px;
}

/* Breadcrumb font standardization */
.breadcrumb-item,
.breadcrumb-current {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: var(--text-dim) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

#racing-view .breadcrumb-separator,
#race-analysis-view .breadcrumb-separator {
    font-size: 0.8rem;
    margin: 0 5px;
    color: rgba(255, 255, 255, 0.2);
}

/* New Race Title Bar (Full Width) */
.race-title-bar {
    width: 100%;
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.race-time-badge {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-gold);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-left: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 768px) {
    .race-title-bar {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        text-align: center;
    }

    .race-title-clickable {
        flex-direction: column;
        font-size: 1.3rem;
        gap: 8px;
    }

    .race-time-badge {
        margin-left: 0;
    }

    .race-title-actions {
        width: 100%;
        justify-content: center;
        flex-direction: column;
        gap: 12px;
    }

    .race-title-actions .social-action-dock {
        width: 100%;
        justify-content: center;
    }
}

.race-title-clickable {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.race-title-clickable:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

.race-title-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* New Analysis Actions Bar (Glass style) */
.analysis-actions-bar {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(15px);
}

.analysis-actions-bar .strategy-tabs {
    width: 100%;
    margin-top: 0;
    gap: 5px;
    justify-content: flex-start;
}

.analysis-actions-bar .strategy-badge {
    height: 40px;
    padding: 0 20px;
    border-radius: 8px;
    font-size: 0.8rem;
}

/* AI Strategy Intel Badge */
.intel-badge {
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 0.58rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.1);
    animation: intel-pulse 2s infinite alternate;
}

.clickable-intel-badge {
    cursor: pointer;
    pointer-events: auto !important;
    transition: all 0.2s ease;
}

.clickable-intel-badge:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
    transform: translateY(-1px) scale(1.02);
}

.intel-badge .sparkle {
    font-size: 0.8rem;
    filter: drop-shadow(0 0 5px #00ff88);
}

@keyframes intel-pulse {
    from {
        box-shadow: 0 0 5px rgba(0, 255, 136, 0.1);
        border-color: rgba(0, 255, 136, 0.3);
        transform: translateY(0);
    }

    to {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
        border-color: rgba(0, 255, 136, 0.6);
        transform: translateY(-1px);
    }
}

/* Light Theme Overrides */
@media (max-width: 768px) {
    #race-breadcrumb-name {
        max-width: 55vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .intel-badge {
        margin-left: 8px;
        padding: 4px 8px;
        font-size: 0.55rem;
    }

    #racing-view .view-header {
        margin-bottom: 20px;
    }
}

/* --- SOCIAL SHARING STYLES --- */
.race-header-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.share-trigger-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.share-trigger-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.share-trigger-btn svg {
    width: 16px;
    height: 16px;
}

/* Toast Notification */
.share-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--accent-green);
    color: #000;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    opacity: 0;
}

.share-toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .race-header-actions {
        justify-content: center;
    }
}

/* --- PREDICTION CARD MODAL --- */
.card-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card-preview-content {
    background: linear-gradient(135deg, #0f1e35 0%, #1a2a45 100%);
    border: 2px solid rgba(255, 215, 0, 0.45);
    border-radius: 20px;
    padding: 30px;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.12), 0 25px 50px rgba(0, 0, 0, 0.6);
    text-align: center;
}

.card-preview-content h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.preview-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 2px solid rgba(255, 215, 0, 0.4);
    margin-bottom: 20px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.1);
}

.badge-selector {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.badge-chip {
    padding: 7px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.06);
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.badge-chip:hover {
    background: rgba(255, 215, 0, 0.15);
    color: #fff;
    border-color: rgba(255, 215, 0, 0.6);
}

.badge-chip.active {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
    font-weight: 700;
}

.pro-card-share-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: var(--accent-gold);
    opacity: 0.7;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.pro-card-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    cursor: pointer;
    border: 1px solid rgba(255, 215, 0, 0.35);
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.15) 0%, rgba(232, 212, 139, 0.08) 50%, rgba(201, 168, 76, 0.15) 100%);
    color: var(--accent-gold);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.pro-card-share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.08), transparent);
    transition: left 0.6s ease;
}

.pro-card-share-btn:hover {
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.25) 0%, rgba(232, 212, 139, 0.15) 50%, rgba(201, 168, 76, 0.25) 100%);
    border-color: rgba(255, 215, 0, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15), 0 0 0 1px rgba(255, 215, 0, 0.1);
    color: #ffd700;
}

.pro-card-share-btn:hover::before {
    left: 100%;
}

.pro-card-share-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.8;
}

.pro-card-share-btn:hover svg {
    opacity: 1;
}

.card-preview-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.card-preview-actions .download-btn,
.card-preview-actions .share-btn,
.card-preview-actions .close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 215, 0, 0.25);
    letter-spacing: 0.5px;
}

.card-preview-actions .download-btn {
    background: linear-gradient(135deg, #c9a84c, #e8d48b);
    color: #0a0f19;
    border-color: rgba(255, 215, 0, 0.5);
}

.card-preview-actions .download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.card-preview-actions .share-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}

.card-preview-actions .share-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.card-preview-actions .close-btn {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.08);
}

.card-preview-actions .close-btn:hover {
    background: rgba(255, 70, 70, 0.15);
    color: #ff6b6b;
    border-color: rgba(255, 70, 70, 0.3);
    transform: translateY(-2px);
}

/* Pro Share Buttons */
.pro-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    letter-spacing: 0.3px;
}

.pro-share-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.pro-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.pro-x-btn:hover {
    background: #000;
    border-color: #555;
}

.pro-tg-btn:hover {
    background: #229ED9;
    border-color: #229ED9;
}

.pro-wa-btn:hover {
    background: #25D366;
    border-color: #25D366;
    color: #000;
}

.pro-ig-btn:hover {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    border-color: transparent;
}

.pro-tk-btn:hover {
    background: #010101;
    border-color: #69C9D0;
}

.pro-close-btn {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin-left: 6px;
}

.pro-close-btn:hover {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .card-preview-actions {
        gap: 8px;
    }

    .pro-share-btn {
        padding: 9px 12px;
        font-size: 0.75rem;
    }
}

.gen-card-btn {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--accent-gold);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- TWEET TIP BUTTONS --- */
.tweet-nugget-btn,
.tweet-trend-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
    margin-left: 10px;
    padding: 0;
}

.tweet-nugget-btn:hover,
.tweet-trend-btn:hover {
    background: #000;
    color: #fff;
    border-color: #1da1f2;
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 4px 10px rgba(29, 161, 242, 0.3);
}

.nugget {
    justify-content: space-between !important;
}

.trend-row {
    grid-template-columns: 110px 1fr auto !important;
}

@media (max-width: 600px) {
    .trend-row {
        grid-template-columns: 1fr auto !important;
        gap: 8px !important;
    }

    .trend-stat {
        grid-column: 1 / -1;
    }
}

/* --- SOCIAL ACTION DOCK --- */
.race-header-large {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-action-dock {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.dock-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-gold);
}

.dock-btns {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dock-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0;
    flex-shrink: 0;
    box-sizing: border-box;
}

.dock-btn svg {
    width: 16px;
    height: 16px;
    pointer-events: none;
    display: block;
}

.dock-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

.x-inner-btn:hover {
    background: #000 !important;
    color: #fff;
}

.tg-inner-btn:hover {
    background: #229ED9 !important;
    border-color: #229ED9;
}

.wa-inner-btn:hover {
    background: #25D366 !important;
    border-color: #25D366;
}

.share-trigger-btn:hover {
    background: var(--accent-gold) !important;
    color: #000 !important;
}

.ig-inner-btn:hover {
    background: #E1306C !important;
    border-color: #E1306C;
}

.tk-inner-btn:hover {
    background: #000000 !important;
    border-color: #000000;
}

@media (max-width: 1000px) {
    .race-header-large {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .social-action-dock {
        width: 100%;
        justify-content: space-between;
    }
}

.gen-card-btn:hover {
    background: var(--accent-gold);
    color: #000;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}


.social-inline-dock {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 10;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
    pointer-events: all;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-primary:hover .social-inline-dock,
.news-secondary:hover .social-inline-dock,
.thumb-frame:hover .social-inline-dock,
.inside-track-frame:hover .social-inline-dock {
    opacity: 1;
    transform: translateY(0);
}

.social-inline-dock .dock-btn {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    border-radius: 4px !important;
    padding: 0 !important;
}

.social-inline-dock .dock-btn svg {
    width: 12px !important;
    height: 12px !important;
}

@media (max-width: 768px) {
    .social-inline-dock {
        opacity: 1;
        transform: none;
    }
}



/* --- HOW IT WORKS: THE VISUAL STORY --- */
.how-it-works-story {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 20px 0;
    max-width: 950px;
    margin: 0 auto;
}

.story-intro {
    text-align: center;
    margin-bottom: 40px;
}

.story-intro h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.story-intro .hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto;
}

.story-step {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.story-step.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.story-step:nth-child(even) {
    grid-template-columns: 1fr 1.2fr;
}

.story-step:nth-child(even) .story-visual {
    order: 2;
}

.story-visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 350px;
}

.story-visual img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 10s ease;
}

.story-step:hover .story-visual img {
    transform: scale(1.1);
}

.story-content {
    padding: 20px;
}

.step-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    display: block;
    font-weight: 800;
}

.story-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    line-height: 1.2;
}

.story-content p {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 20px;
}

.story-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    background: rgba(255, 215, 0, 0.05);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.highlight-icon {
    font-size: 1.3rem;
    color: var(--accent-gold);
    line-height: 1.2;
}

.highlight-text {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}

.story-punchline {
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

.punchline-tag {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 15px;
    display: block;
    opacity: 0.6;
}

.punchline-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    line-height: 1.3;
}

/* Honesty Section Styles */
.honesty-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    padding: 100px;
    text-align: center;
    margin-top: 100px;
    position: relative;
    overflow: hidden;
}

.honesty-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.honesty-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: #fff;
}

.honesty-subtitle {
    font-size: 1.4rem;
    color: var(--text-dim);
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

.honesty-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    text-align: left;
}

.honesty-card {
    background: rgba(0, 0, 0, 0.4);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.honesty-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 215, 0, 0.2);
}

.honesty-card span {
    color: var(--accent-gold);
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.honesty-card p {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
}

.honesty-footer {
    margin-top: 60px;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

/* Advantage Section */
.advantage-section {
    padding: 120px 0;
    text-align: center;
}

.advantage-section h3 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 60px;
    color: #fff;
}

.advantage-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 600px;
    margin: 0 auto;
}

.advantage-item {
    display: flex;
    align-items: center;
    gap: 25px;
    text-align: left;
    padding: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.advantage-item span {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent-gold);
    font-family: 'Outfit', sans-serif;
}

.advantage-item p {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

/* CTA Section */
.story-cta {
    text-align: center;
    padding: 120px 0;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1), transparent 70%);
}

.cta-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 30px;
    color: #fff;
}

.cta-btn-premium {
    background: linear-gradient(135deg, var(--accent-gold), #e6c200);
    color: #000;
    border: none;
    padding: 25px 60px;
    font-size: 1.6rem;
    font-weight: 900;
    border-radius: 60px;
    cursor: pointer;
    box-shadow: 0 25px 50px rgba(255, 215, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-btn-premium:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 40px 70px rgba(255, 215, 0, 0.5);
}


@media (max-width: 900px) {
    .how-it-works-story {
        gap: 25px;
        padding: 5px;
    }

    .story-intro {
        padding: 15px;
        margin-bottom: 10px;
    }

    .story-intro h1 {
        font-size: 1.8rem;
    }

    .story-intro .hero-subtitle {
        font-size: 1rem;
    }

    /* Force strict vertical stack for EVERY step */
    .story-step,
    .story-step:nth-child(even) {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 15px !important;
        padding: 20px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        border-radius: 16px !important;
        margin-bottom: 20px !important;
        opacity: 1 !important;
        transform: none !important;
    }

    /* Keep visual at the top regardless of desktop order */
    .story-visual,
    .story-step:nth-child(even) .story-visual {
        order: -1 !important;
        width: 100% !important;
        max-height: 220px !important;
        border-radius: 10px !important;
    }

    .story-visual img {
        height: 180px !important;
        width: 100% !important;
        object-fit: cover !important;
    }

    .story-content {
        padding: 0 !important;
        width: 100% !important;
        order: 1 !important;
    }

    .story-content h2 {
        font-size: 1.45rem !important;
        margin-bottom: 10px !important;
    }

    .story-content p {
        font-size: 0.92rem !important;
        line-height: 1.5 !important;
        margin-bottom: 15px !important;
    }

    .story-highlights {
        text-align: left !important;
        padding: 15px !important;
        background: rgba(255, 215, 0, 0.04) !important;
        border-radius: 10px !important;
    }

    .highlight-text {
        font-size: 0.86rem !important;
    }

    .punchline-text {
        font-size: 1.15rem !important;
    }

    .honesty-section {
        padding: 30px 15px !important;
        border-radius: 16px !important;
    }

    .honesty-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .cta-title {
        font-size: 1.8rem !important;
    }

    .cta-btn-premium {
        width: 100% !important;
        padding: 16px !important;
        font-size: 1.1rem !important;
    }
}


/* Trainer Profile Specific Styles */
.clickable-trainer {
    color: var(--accent-gold);
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(255, 215, 0, 0.3);
    transition: all 0.2s ease;
    font-weight: 600;
}

.clickable-trainer:hover {
    color: #fff;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 4px;
    padding: 0 4px;
}

.trainer-hero-card {
    min-height: auto;
    padding: 40px;
    margin-bottom: 30px;
}

.trainer-header-info .premium-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-gold);
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-family: "JetBrains Mono", monospace;
}

.trainer-hero-card .briefing-row-main,
.jockey-hero-card .briefing-row-main,
.horse-hero-card .briefing-row-main {
    flex-direction: row;
    /* Desktop defaults back to row */
    justify-content: space-between;
    align-items: flex-start;
}

.trainer-hero-card .briefing-pills,
.jockey-hero-card .briefing-pills,
.horse-hero-card .briefing-pills {
    margin-top: 20px;
}

.trainer-merged-stories,
.jockey-merged-stories,
.horse-merged-stories {
    margin-top: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
}

.story-subtitle {
    color: var(--accent-gold);
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 800;
    opacity: 0.8;
}

@media (max-width: 900px) {

    .trainer-hero-card .briefing-row-main,
    .jockey-hero-card .briefing-row-main,
    .horse-hero-card .briefing-row-main {
        flex-direction: column;
        gap: 20px;
        position: relative;
    }

    .trainer-hero-card .social-action-dock,
    .jockey-hero-card .social-action-dock,
    .horse-hero-card .social-action-dock {
        align-self: flex-end;
        background: rgba(0, 0, 0, 0.3);
        padding: 5px;
        border-radius: 12px;
    }

    .social-action-dock .dock-label {
        display: none;
    }

    .trainer-merged-stories,
    .jockey-merged-stories,
    .horse-merged-stories {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

.specialty-item h4 {
    margin-bottom: 5px;
    font-family: "Outfit", sans-serif;
    letter-spacing: 1px;
}

.specialty-item p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.2;
}

@media (max-width: 900px) {
    .intel-intro-text[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    .specialty-grid {
        grid-template-columns: 1fr !important;
    }
}


@media (max-width: 768px) {
    .target-races-highlight ul {
        grid-template-columns: 1fr !important;
    }
}


/* Jockey Profile Specific Styles */
.clickable-jockey {
    color: var(--accent-gold);
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(255, 215, 0, 0.3);
    transition: all 0.2s ease;
    font-weight: 600;
}

.clickable-jockey:hover {
    color: #fff;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 4px;
    padding: 0 4px;
}

.jockey-hero-card {
    min-height: auto;
    padding: 40px;
    margin-bottom: 30px;
}

.jockey-header-info .premium-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-gold);
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-family: "JetBrains Mono", monospace;
}


/* Horse Profile Specific Styles */
.clickable-horse {
    color: var(--accent-gold);
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(255, 215, 0, 0.3);
    transition: all 0.2s ease;
    font-weight: 700;
}

.clickable-horse:not(.hero-panel__horse):hover {
    color: #fff;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 4px;
    padding: 2px 6px;
}

.horse-hero-card {
    min-height: auto;
    padding: 40px;
    margin-bottom: 30px;
}

.horse-header-info .premium-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-gold);
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-family: "JetBrains Mono", monospace;
}

.horse-hero-card .briefing-row-main {
    flex-direction: column;
    align-items: flex-start;
}

.horse-premium-meta {
    padding: 15px;
    line-height: 1.8;
    color: var(--text-dim);
    font-size: 0.95rem;
}

.horse-premium-meta strong {
    color: var(--accent-gold);
}


/* ULTRA-PREMIUM INTEL OVERHAUL */
.intel-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.intel-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.intel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0.3;
}

.intel-card-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.meta-pill {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 100, 0.1);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.meta-pill:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: var(--accent-gold);
    color: #fff;
    transform: scale(1.05);
}

.intel-share-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.intel-top-dollar-label {
    font-size: 0.52rem;
    color: var(--accent-gold);
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-right: 10px;
}

.intel-section-share {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-gold);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.intel-section-share:hover {
    background: var(--accent-gold);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.share-tip-btn {
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: var(--accent-gold);
    padding: 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Outfit', sans-serif;
}

.share-tip-btn:hover {
    background: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.record-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s;
}

.record-box:hover {
    background: rgba(255, 215, 0, 0.03);
    border-color: rgba(255, 215, 0, 0.2);
}

.intel-data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.intel-data-table th {
    padding: 12px 15px;
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    opacity: 0.7;
}

.intel-data-table tbody tr {
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s;
}

.intel-data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.01);
}

.intel-data-table td {
    padding: 15px;
    font-size: 0.9rem;
    color: #e0e0e0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.intel-data-table td:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px 0 0 8px;
}

.intel-data-table td:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 0 8px 8px 0;
}

.glow-text {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* Scrollbar for views */
#race-analysis-view::-webkit-scrollbar,
#trainer-profile-view::-webkit-scrollbar,
#jockey-profile-view::-webkit-scrollbar,
#horse-profile-view::-webkit-scrollbar {
    width: 8px;
}

#race-analysis-view::-webkit-scrollbar-thumb,
#trainer-profile-view::-webkit-scrollbar-thumb,
#jockey-profile-view::-webkit-scrollbar-thumb,
#horse-profile-view::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
}

#race-analysis-view::-webkit-scrollbar-thumb:hover,
#trainer-profile-view::-webkit-scrollbar-thumb:hover,
#jockey-profile-view::-webkit-scrollbar-thumb:hover,
#horse-profile-view::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.3);
}

/* ULTRA-PREMIUM INTEL OVERHAUL - MOBILE REFINEMENTS */
@media (max-width: 768px) {
    .intel-card {
        padding: 20px;
        border-radius: 12px;
    }

    .briefing-row-main {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 20px;
    }

    .social-action-dock {
        width: 100%;
        justify-content: space-between;
        padding: 10px 15px !important;
    }

    .intel-card-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .intel-section-share {
        padding: 5px 10px;
        font-size: 0.6rem;
    }

    .intel-layout-two-col {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .intel-facts-grid {
        grid-template-columns: 1fr !important;
    }

    /* Fix for first card cut-off */
    .intel-premium-summary {
        margin-top: 60px;
        /* Further increased to ensure clearance on all mobile devices */
    }

    #race-analysis-view .view-header,
    #racing-view .view-header {
        margin-bottom: 12px;
        margin-top: 5px;
    }
}

/* BRAND ICON STYLES - THE INSIDE TRACK */
.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    color: var(--accent-gold);
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Color Variants to prevent "Too Much Gold" feel */
.brand-icon.variant-facts {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    color: var(--accent-gold);
}

.brand-icon.variant-market {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
    color: var(--accent-green);
}

.brand-icon.variant-trends {
    background: rgba(0, 191, 255, 0.1);
    border-color: rgba(0, 191, 255, 0.3);
    color: #00bfff;
}

.brand-icon.variant-prep {
    background: rgba(138, 43, 226, 0.1);
    border-color: rgba(138, 43, 226, 0.3);
    color: #8a2be2;
}

.brand-icon.variant-records {
    background: rgba(255, 69, 0, 0.1);
    border-color: rgba(255, 69, 0, 0.3);
    color: #ff4500;
}

.intel-card:hover .brand-icon {
    transform: rotate(-8deg) scale(1.15);
    background: var(--accent-gold);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    border-color: #fff;
}

/* Hover overrides for variants */
.intel-card:hover .brand-icon.variant-market {
    background: var(--accent-green);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.intel-card:hover .brand-icon.variant-trends {
    background: #00bfff;
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.5);
}

.intel-card:hover .brand-icon.variant-prep {
    background: #8a2be2;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
    color: #fff;
}

.intel-card:hover .brand-icon.variant-records {
    background: #ff4500;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.5);
    color: #fff;
}

.brand-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.2));
}

/* ==== Compliance resources (bottom footer) ==== */
.footer-compliance-logos {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.compliance-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s ease;
}

.compliance-badge:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* =====================================================================
   INTEL PROFILE CARDS (Trainer / Jockey / Horse views)
   ===================================================================== */

.profile-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    gap: 20px;
    color: var(--text-dim);
    font-size: 1rem;
}

.intel-profile-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    max-width: 960px;
    margin: 0 auto 40px;
}

.intel-profile-hero {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-hero-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 215, 0, 0.4);
    flex-shrink: 0;
}

.intel-profile-hero-text {
    flex: 1;
}

.intel-profile-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent-gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
    opacity: 0.8;
}

.intel-profile-name {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.2;
}

.intel-profile-nationality {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.intel-profile-summary {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin: 0;
}

.intel-stats-bar {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.intel-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    gap: 4px;
}

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

.intel-stat-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-gold);
}

.intel-stat-lbl {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.intel-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(255, 255, 255, 0.05);
}

.intel-section {
    background: rgba(10, 10, 20, 0.6);
    padding: 28px;
}

.intel-section h4 {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-family: 'JetBrains Mono', monospace;
}

.intel-section p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.65;
    margin: 0;
}

.intel-milestones {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.intel-milestones li {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}

.intel-milestones li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-size: 0.7rem;
    top: 2px;
}

.target-race-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.target-race-item:last-child {
    border-bottom: none;
}

.target-race-item .race-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.target-race-item .race-desc {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.market-angle-item {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.5;
}

.market-angle-item:last-child {
    border-bottom: none;
}

.market-angle-item strong {
    color: var(--accent-gold);
}

@media (max-width: 768px) {
    .intel-profile-hero {
        flex-direction: column;
        padding: 24px;
        gap: 16px;
    }

    .intel-profile-name {
        font-size: 1.5rem;
    }

    .intel-stats-bar {
        flex-wrap: wrap;
    }

    .intel-stat {
        flex: 1 1 50%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .intel-profile-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   FROM THE YARD — Feed Widget & Article View
   Earthy stable palette: deep greens, hay gold, natural tones
   ============================================================ */

/* Auto-ticker feed container — 3 cards visible, no manual scrollbar */
.yard-feed-container {
    /* JS sets height = 3 × cardHeight */
    height: 330px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    /* Fade bottom edge as a scroll hint */
    -webkit-mask-image: linear-gradient(to bottom, black 72%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 72%, transparent 100%);
}

/* Inner sliding wrapper — RAF drives transform: translateY() */
.yard-ticker-inner {
    display: flex;
    flex-direction: column;
    will-change: transform;
    /* No CSS transition — requestAnimationFrame owns the animation */
}

/* Feed loading state */
.yard-feed-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.yard-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(101, 163, 13, 0.2);
    border-top-color: #65a30d;
    border-radius: 50%;
    animation: yard-spin 0.8s linear infinite;
}

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

/* Individual yard feed card */
.yard-feed-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.18s ease, border-left 0.18s ease;
    border-left: 3px solid transparent;
    margin: 0;
    animation: yard-card-in 0.35s ease both;
}

.yard-feed-card:last-child {
    border-bottom: none;
}

@keyframes yard-card-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.yard-feed-card:hover {
    background: rgba(101, 163, 13, 0.07);
    border-left-color: #65a30d;
}

/* Card header row: avatar + trainer + time */
.yard-card-header {
    display: flex;
    align-items: center;
    gap: 9px;
}

.yard-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #1a2e0a 0%, #2d4a14 100%);
    border: 1px solid rgba(101, 163, 13, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #84cc16;
    font-weight: 800;
    flex-shrink: 0;
    letter-spacing: -0.02em;
}

.yard-trainer-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yard-time {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

/* Tag badge */
.yard-tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    border: 1px solid;
    width: fit-content;
}

/* Headline */
.yard-card-headline {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.3;
    margin: 0;
}

/* Snippet / preview */
.yard-card-snippet {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Horse tag */
.yard-horse-tag {
    font-size: 0.62rem;
    color: #84cc16;
    font-weight: 600;
    opacity: 0.8;
}

/* Read more indicator */
.yard-card-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.yard-read-more {
    font-size: 0.62rem;
    color: rgba(101, 163, 13, 0.7);
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: color 0.15s;
}

.yard-feed-card:hover .yard-read-more {
    color: #84cc16;
}

/* ---- Yard Article / Drill-in View ---- */
#yard-article-view {
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

.yard-view-header {
    border-bottom: 1px solid rgba(101, 163, 13, 0.15) !important;
    background: linear-gradient(to bottom, rgba(10, 20, 5, 0.6), transparent) !important;
}

.yard-article-container {
    width: 100%;
    margin: 0;
    padding: 20px 0 60px;
    animation: fadeIn 0.5s ease;
}

/* Article hero section */
.yard-article-hero {
    margin-bottom: 32px;
}

.yard-article-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    border: 1px solid;
    margin-bottom: 16px;
}

.yard-article-headline {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin: 0 0 12px;
}

.yard-article-byline {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.yard-byline-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1a2e0a, #2d4a14);
    border: 1px solid rgba(101, 163, 13, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: #84cc16;
}

.yard-byline-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.yard-byline-trainer {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.yard-byline-meta {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
}

.yard-horse-pill {
    background: rgba(101, 163, 13, 0.12);
    border: 1px solid rgba(101, 163, 13, 0.35);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.72rem;
    color: #84cc16;
    font-weight: 700;
}

/* Divider bar */
.yard-article-divider {
    height: 2px;
    background: linear-gradient(to right, rgba(101, 163, 13, 0.6), transparent);
    margin-bottom: 28px;
    border-radius: 1px;
}

/* Body paragraphs */
.yard-article-body p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 20px;
}

.yard-article-body p:first-child {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* Source attribution */
.yard-article-source {
    margin-top: 32px;
    padding: 16px 20px;
    background: rgba(101, 163, 13, 0.06);
    border: 1px solid rgba(101, 163, 13, 0.15);
    border-radius: 10px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
}

.yard-article-source::before {
    content: '🏇';
    font-size: 1rem;
}

/* Related stories in sidebar */
.yard-also-from-yard {
    margin-top: 40px;
}

.yard-also-from-yard h5 {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: rgba(101, 163, 13, 0.8);
    text-transform: uppercase;
    margin: 0 0 16px;
    font-weight: 700;
}

.yard-related-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: color 0.15s;
}

.yard-related-item:hover .yard-related-headline {
    color: #84cc16;
}

.yard-related-headline {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.3;
    transition: color 0.15s;
}

.yard-related-meta {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.28);
    margin-top: 4px;
}

/* ============================================================
   YARD CARD — inline social share row
   ============================================================ */

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

.yard-card-social {
    display: flex;
    gap: 4px;
    align-items: center;
}

.yard-share-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(101, 163, 13, 0.2);
    background: rgba(101, 163, 13, 0.06);
    color: rgba(101, 163, 13, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    padding: 0;
}

.yard-share-btn svg {
    width: 10px;
    height: 10px;
}

.yard-share-btn:hover {
    background: rgba(101, 163, 13, 0.2);
    color: #84cc16;
    border-color: rgba(101, 163, 13, 0.5);
}

/* ============================================================
   YARD ARTICLE PAGE — premium stable-themed full page
   ============================================================ */

/* Hero banner */
.yard-art-hero {
    position: relative;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    padding: 48px 40px 36px;
    margin-bottom: 0;
}

.yard-art-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(56, 102, 10, 0.55) 0%, transparent 70%),
        linear-gradient(160deg, rgba(15, 30, 5, 0.98) 0%, rgba(5, 20, 2, 1) 100%);
    /* Subtle SVG grain for paper/stable texture */
    background-size: cover;
}

.yard-art-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.6;
}

.yard-art-hero-content {
    position: relative;
    z-index: 1;
}

.yard-art-tag-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.yard-art-tag {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 30px;
    border: 1px solid;
}

.yard-art-live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(101, 163, 13, 0.8);
}

.yard-art-headline {
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 24px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.yard-art-byline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.yard-art-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(101, 163, 13, 0.5), rgba(56, 102, 10, 0.7));
    border: 2px solid rgba(101, 163, 13, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #84cc16;
    flex-shrink: 0;
}

.yard-art-byline-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.yard-art-trainer {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
}

.yard-art-meta {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
}

/* Stat strip */
.yard-art-stat-strip {
    display: flex;
    gap: 0;
    background: rgba(5, 20, 2, 0.9);
    border-left: 3px solid #65a30d;
    border-bottom: 1px solid rgba(101, 163, 13, 0.2);
    padding: 16px 40px;
}

.yard-art-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-right: 32px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    margin-right: 32px;
}

.yard-art-stat:last-child {
    border-right: none;
    margin-right: 0;
}

.yard-art-stat-label {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(101, 163, 13, 0.6);
    font-weight: 700;
}

.yard-art-stat-val {
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

/* Two-col layout: main article + sidebar */
.yard-art-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 0;
    background: rgba(8, 20, 4, 0.6);
    border-radius: 0 0 18px 18px;
}

@media (max-width: 900px) {
    .yard-art-layout {
        grid-template-columns: 1fr;
    }
}

/* Main body */
.yard-art-main {
    padding: 40px 40px 48px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.yard-art-lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    font-style: italic;
    border-left: 3px solid #65a30d;
    padding-left: 20px;
    margin: 0 0 28px;
}

.yard-art-divider {
    height: 1px;
    background: linear-gradient(to right, rgba(101, 163, 13, 0.4), transparent);
    margin: 0 0 28px;
}

.yard-art-body {
    font-size: 0.97rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.72);
}

.yard-art-body p {
    margin: 0 0 20px;
}

.yard-art-source {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 20px;
    background: rgba(101, 163, 13, 0.05);
    border: 1px solid rgba(101, 163, 13, 0.15);
    border-radius: 10px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 36px;
}

.yard-art-source-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Social share row */
.yard-art-share-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.yard-art-share-label {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(101, 163, 13, 0.6);
    font-weight: 700;
    margin-right: 4px;
}

.yard-art-share-row .dock-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(101, 163, 13, 0.25);
    background: rgba(101, 163, 13, 0.07);
    color: rgba(101, 163, 13, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s;
}

.yard-art-share-row .dock-btn:hover {
    background: rgba(101, 163, 13, 0.22);
    border-color: #84cc16;
    color: #84cc16;
}

.yard-art-share-row .dock-btn svg {
    width: 14px;
    height: 14px;
}

/* Sidebar */
.yard-art-sidebar {
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.yard-art-sidebar-title {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(101, 163, 13, 0.7);
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(101, 163, 13, 0.2);
}

.yard-art-sidebar .yard-related-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.yard-rel-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(101, 163, 13, 0.15);
    border: 1px solid rgba(101, 163, 13, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 800;
    color: #84cc16;
    flex-shrink: 0;
}

.yard-rel-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.yard-rel-tag {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ============================================================
   COMMENTARY & OPINION � Magazine Editorial Layout
   ============================================================ */

.editorial-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ---- Hero Feature ---- */
.editorial-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin-bottom: 16px;
    min-height: 260px;
}

.editorial-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.editorial-hero-img {
    position: relative;
    overflow: hidden;
    min-height: 260px;
}

.editorial-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.editorial-hero:hover .editorial-hero-img img {
    transform: scale(1.04);
}

.editorial-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.55) 0%, rgba(10, 10, 15, 0.15) 100%);
    pointer-events: none;
}

.editorial-hero-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.editorial-issue-tag {
    background: var(--accent-gold, #ffd700);
    color: #000;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
}

.editorial-read-time {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    background: rgba(0, 0, 0, 0.45);
    padding: 3px 8px;
    border-radius: 3px;
}

.editorial-hero-social {
    position: absolute;
    bottom: 14px;
    right: 14px;
}

.editorial-hero-body {
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.97), rgba(12, 12, 20, 1));
}

.editorial-kicker {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-gold, #ffd700);
    margin-bottom: 12px;
    opacity: 0.85;
}

.editorial-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin: 0 0 14px;
}

.editorial-hero-deck {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.65;
    margin: 0 0 18px;
    flex-grow: 1;
}

.editorial-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
}

.editorial-author {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.editorial-dot {
    color: rgba(255, 255, 255, 0.25);
}

.editorial-date {
    color: rgba(255, 255, 255, 0.35);
}

.editorial-tag-pill {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.25);
    color: var(--accent-gold, #ffd700);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* ---- Secondary Strips ---- */
/* ---- "Also In This Edition" bar ---- */
.editorial-edition-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 0 2px;
}

.editorial-edition-label {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

.editorial-edition-rule {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 215, 0, 0.25), transparent);
}

/* ---- 4-column magazine card grid ---- */
.editorial-strips {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.editorial-strip {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.2s ease;
    position: relative;
}

.editorial-strip:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    background: rgba(255, 255, 255, 0.05);
}

/* top colour bar */
.editorial-strip-accent {
    height: 3px;
    width: 100%;
    flex-shrink: 0;
}

.editorial-strip-thumb {
    width: 100%;
    height: 100px;
    overflow: hidden;
    flex-shrink: 0;
}

.editorial-strip-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
    filter: brightness(0.8);
}

.editorial-strip:hover .editorial-strip-thumb img {
    transform: scale(1.06);
    filter: brightness(1);
}

.editorial-strip-body {
    flex: 1;
    padding: 10px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 1;
}

/* Large muted issue number watermark */
.editorial-strip-body::after {
    content: attr(data-issue);
    position: absolute;
    bottom: 4px;
    right: 8px;
    font-size: 3rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    color: rgba(255, 255, 255, 0.04);
    line-height: 1;
    pointer-events: none;
    letter-spacing: -2px;
    z-index: 0;
    transition: color 0.2s ease;
}

.editorial-strip:hover .editorial-strip-body::after {
    color: rgba(255, 255, 255, 0.08);
}

.editorial-strip-kicker {
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-gold, #ffd700);
    opacity: 0.75;
    position: relative;
    z-index: 1;
}

.editorial-strip-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.editorial-strip-deck {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.editorial-strip-social {
    display: flex;
    gap: 4px;
    padding: 0 10px 10px;
    align-items: center;
}

/* Only show X + Telegram in Live TV episodes — no room for all 5 */
.tv-ep-social .wa-inner-btn,
.tv-ep-social .ig-inner-btn,
.tv-ep-social .tk-inner-btn {
    display: none !important;
}

.editorial-strip-social .dock-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.editorial-strip:hover .editorial-strip-social .dock-btn {
    opacity: 1;
}

/* ---- TV Episode social dock ---- */
.tv-ep-social {
    display: flex;
    gap: 5px;
    padding: 6px 8px 8px;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tv-episode:hover .tv-ep-social {
    opacity: 1;
}

.tv-ep-social .dock-btn {
    width: 22px;
    height: 22px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, transform 0.15s ease;
    color: rgba(255, 255, 255, 0.5);
    padding: 0;
    flex-shrink: 0;
}

.tv-ep-social .dock-btn svg {
    width: 11px;
    height: 11px;
    display: block;
}

.tv-ep-social .dock-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: scale(1.1);
}

/* Ensure dock-btn clicks inside social containers work with the global listener */
.tv-ep-social .dock-btn,
.editorial-strip-social .dock-btn {
    pointer-events: all;
}

@media (max-width: 900px) {
    .editorial-strips {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .editorial-hero {
        grid-template-columns: 1fr;
    }

    .editorial-hero-img {
        min-height: 160px;
    }

    .editorial-strips {
        grid-template-columns: repeat(2, 1fr);
    }

    .editorial-strip-deck {
        display: none;
    }
}

.editorial-hero-img {
    min-height: 160px;
}

.editorial-strip-deck {
    display: none;
}

/* === Commentary & Opinion h4 gold heading === */
.news-static-card h4,
.wide-news-card h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--accent-gold, #ffd700));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================================
   COMMENTARY ARTICLE VIEW â€” Premium Editorial Long-Form
   ============================================================ */

/* Reading progress bar */
.cmt-progress-bar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    z-index: 100;
}

.cmt-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #ffd700, #f59e0b);
    transition: width 0.1s linear;
}

/* Shell */
#commentary-article-view {
    padding: 0;
    animation: fadeIn 0.3s ease;
}

.cmt-article-shell {
    width: 100%;
    padding: 28px 0 60px;
}

/* Back nav row */
.cmt-back-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
}

.cmt-back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.cmt-back-btn:hover {
    color: var(--accent-gold, #ffd700);
}

.cmt-nav-social {
    display: flex;
    gap: 5px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.cmt-nav-social .dock-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Category + read time meta */
.cmt-article-meta-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cmt-article-social .dock-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cmt-category-chip {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--accent-gold, #ffd700);
    color: #000;
    padding: 4px 10px;
    border-radius: 4px;
}

.cmt-read-time {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
}

/* Headline */
.cmt-headline {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 18px;
    letter-spacing: -0.3px;
}

/* Deck / standfirst */
.cmt-deck {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin: 0 0 24px;
    font-style: italic;
    border-left: 3px solid var(--accent-gold, #ffd700);
    padding-left: 16px;
}

/* Author row */
.cmt-author-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.cmt-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.cmt-author-info {
    line-height: 1.3;
}

.cmt-author-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
}

.cmt-author-title {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.35);
}

.cmt-article-date {
    margin-left: auto;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.25);
}

/* Hero image */
.cmt-hero-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 32px;
    position: relative;
}

.cmt-hero-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: top;
    display: block;
}

.cmt-hero-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 14px;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.45);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    font-style: italic;
}

/* Body text */
.cmt-body-text p {
    font-size: 0.97rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.85;
    margin: 0 0 20px;
}

.cmt-body-text p:first-child::first-letter {
    font-size: 3.2rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    color: var(--accent-gold, #ffd700);
    float: left;
    line-height: 0.8;
    margin: 6px 10px 0 0;
}

/* Pull quote */
.cmt-pull-quote {
    margin: 32px -10px;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.06), rgba(255, 215, 0, 0.02));
    border-left: 4px solid var(--accent-gold, #ffd700);
    border-radius: 0 8px 8px 0;
    position: relative;
}

.cmt-pull-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 5rem;
    color: var(--accent-gold, #ffd700);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.cmt-pull-quote-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    font-style: italic;
}

.cmt-pull-quote-attr {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Key Stats band */
.cmt-stats-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 28px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.cmt-stat-item {
    text-align: center;
}

.cmt-stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-gold, #ffd700);
    line-height: 1;
}

.cmt-stat-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Tags footer */
.cmt-tags-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.cmt-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cmt-tag:hover {
    border-color: rgba(255, 215, 0, 0.4);
    color: var(--accent-gold, #ffd700);
    background: rgba(255, 215, 0, 0.07);
}

/* More from Commentary rail */
.cmt-more-rail {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.cmt-more-label {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 16px;
}

.cmt-more-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.cmt-more-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.cmt-more-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

.cmt-more-card img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    display: block;
    filter: brightness(0.75);
}

.cmt-more-card-body {
    padding: 9px 10px;
}

.cmt-more-card-tag {
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--accent-gold, #ffd700);
    opacity: 0.7;
    text-transform: uppercase;
}

.cmt-more-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 3px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 700px) {
    .cmt-headline {
        font-size: 1.4rem;
    }

    .cmt-stats-band {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .cmt-stat-value {
        font-size: 1.3rem;
    }

    .cmt-more-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cmt-pull-quote {
        margin: 20px -4px;
    }
}

/* ====================================================
   INITIALIZE ELITE PROTOCOL — SUBSCRIPTION PROMO CARD
   ==================================================== */

.subscription-promo-card {
    background: linear-gradient(145deg, rgba(4, 6, 16, 0.97) 0%, rgba(8, 12, 28, 0.99) 100%) !important;
    border: 1px solid rgba(255, 215, 0, 0.18) !important;
    box-shadow: 0 0 80px rgba(255, 215, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    overflow: hidden;
    position: relative;
}

/* Subtle radial glow in background */
.subscription-promo-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.subscription-promo-card>* {
    position: relative;
    z-index: 1;
}

/* ── Promo Header ── */
.promo-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-main h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #fff 60%, rgba(255, 215, 0, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-main p {
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    font-weight: 400;
}

/* Lock badge */
.intelligence-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    background: rgba(255, 215, 0, 0.06);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 14px;
    padding: 14px 18px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 215, 0, 0.6);
}

.intelligence-badge .lock-icon {
    width: 22px;
    height: 22px;
    color: var(--accent-gold);
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.4));
}

/* ── Plans Grid ── */
.mini-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* ── Individual Plan Panel ── */
.mini-plan-panel {
    border-radius: 18px;
    padding: 22px 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Shimmer on hover */
.mini-plan-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.04),
            transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.mini-plan-panel:hover::after {
    left: 150%;
}

.mini-plan-panel:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* ── Featured (middle) plan ── */
.mini-plan-panel.featured {
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 140, 0, 0.04) 100%);
    border: 1px solid rgba(255, 215, 0, 0.35);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.08), inset 0 1px 0 rgba(255, 215, 0, 0.1);
}

.mini-plan-panel.featured:hover {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.15), inset 0 1px 0 rgba(255, 215, 0, 0.15);
    transform: translateY(-6px);
}

/* Animated glow blob for featured */
.featured-glow {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: featured-pulse 3s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes featured-pulse {
    from {
        opacity: 0.6;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* ── Tier Tag ── */
.tier-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 8px;
}

.tier-tag.gold {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Plan name */
.mini-plan-panel>h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px 0;
    letter-spacing: -0.3px;
}

.mini-plan-panel.featured>h5 {
    color: var(--accent-gold);
}

/* ── Price ── */
.mini-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 18px;
}

.mini-price .curr {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1;
    margin-top: 4px;
}

.mini-price .dur {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.3);
    margin-left: 2px;
}

/* Main amount — inherit from parent text */
.mini-price {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1px;
    line-height: 1;
}

.mini-plan-panel.featured .mini-price {
    color: var(--accent-gold);
}

.old-price {
    display: block;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.25) !important;
    text-decoration: line-through;
    letter-spacing: 0;
    margin-bottom: 2px;
    line-height: 1.2;
}

/* ── Perks list ── */
.mini-perks {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.mini-perks li {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.mini-perks li::before {
    content: '';
    width: 14px;
    height: 14px;
    min-width: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* tick via background-image */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5l2.5 2.5L8 3' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 9px;
    background-repeat: no-repeat;
    background-position: center;
}

.mini-plan-panel.featured .mini-perks li {
    color: rgba(255, 255, 255, 0.75);
}

.mini-plan-panel.featured .mini-perks li::before {
    background-color: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.4);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5l2.5 2.5L8 3' stroke='%23ffd700' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ── CTA Action Bar ── */
.mini-action {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.25s ease;
    cursor: pointer;
}

.mini-plan-panel:hover .mini-action {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.mini-action.featured {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #000;
    font-weight: 800;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.35);
}

.mini-plan-panel.featured:hover .mini-action.featured {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .mini-plans-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .promo-header {
        flex-direction: column;
        gap: 16px;
    }

    .intelligence-badge {
        flex-direction: row;
        align-self: flex-start;
        padding: 8px 14px;
    }

    .mini-plan-panel.featured {
        order: -1;
    }
}

@media (max-width: 600px) {
    .header-main h4 {
        font-size: 1.25rem;
    }
}

/* ============================================================
   RACE CARD REDESIGN  (tag: pre-racecard-redesign to revert)
   ============================================================ */

/* 1. RACE TITLE BAR - bigger, bolder, with glowing border */
.race-title-bar {
    background: linear-gradient(105deg, rgba(20, 28, 48, 0.95) 0%, rgba(10, 15, 30, 0.98) 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    border-radius: 16px !important;
    padding: 20px 30px !important;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.06), 0 8px 40px rgba(0, 0, 0, 0.5) !important;
    position: relative;
    overflow: hidden;
}

.race-title-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.8), transparent);
}

.race-title-clickable {
    font-size: 1.9rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.03em !important;
    background: linear-gradient(135deg, #ffffff 30%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.race-title-clickable:hover {
    transform: none !important;
    filter: brightness(1.15);
}

/* Race metadata strip - injected by JS below title */
.race-meta-strip {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 10px 0 18px;
    flex-wrap: wrap;
}

.race-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 4px 12px;
}

.race-meta-chip.grade-chip {
    color: var(--accent-gold);
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.07);
}

/* 2. AI PICK HERO CARD */
.my-pick-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(0, 0, 0, 0.65) 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    border-radius: 20px !important;
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    padding: 30px 35px !important;
    animation: heroEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes heroEntrance {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.my-pick-card::before {
    height: 4px !important;
    background: linear-gradient(90deg, var(--accent-gold), #fff8dc, var(--accent-gold)) !important;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.pick-header h3 {
    font-size: 2.6rem !important;
    letter-spacing: -0.04em !important;
}

.pick-stats {
    gap: 16px !important;
    justify-content: flex-start !important;
    margin-top: 20px;
}

.pick-stat {
    flex: 1;
    min-width: 90px;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 14px !important;
    padding: 16px 20px !important;
    text-align: center;
    transition: border-color 0.2s;
}

.pick-stat:hover {
    border-color: rgba(212, 175, 55, 0.3) !important;
}

.stat-label {
    font-size: 0.65rem !important;
    letter-spacing: 0.12em !important;
}

.stat-value {
    font-size: 2rem !important;
    line-height: 1.1;
}

.stat-value.score {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4) !important;
}

/* 3. MARKET HORSE CARDS — top pick dominates */
.market-horse-card {
    border-radius: 18px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Market horse cards - equal treatment */
.market-horse-card:hover {
    transform: translateX(4px) !important;
}

/* 4. TAB BAR - stronger active state, dimmer locked */
.analysis-actions-bar {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 14px !important;
    padding: 6px !important;
}

.analysis-actions-bar .strategy-badge {
    height: 44px !important;
    border-radius: 10px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    transition: all 0.2s ease !important;
}

button.strategy-badge.active {
    background: var(--theme-color) !important;
    color: #000 !important;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    font-weight: 800 !important;
    transform: translateY(-1px);
}

button.strategy-badge.locked {
    opacity: 0.38 !important;
    cursor: not-allowed !important;
    filter: saturate(0.3);
}

button.strategy-badge.locked:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* 5. VALUE BET CELL - pulsing gold glow */
.value-bet {
    animation: valuePulse 2s ease-in-out infinite !important;
}

@keyframes valuePulse {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    }
}

/* 6. FIELD SUMMARY STRIP */
.field-summary-strip {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px 18px;
    margin-bottom: 20px;
}

.field-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

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

.field-stat-val {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

.field-stat-lbl {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
}

/* ============================================================
   MOBILE OPTIMISATIONS — Latest News & From The Yard Stories
   ============================================================ */

/* --- SHARED: View Header wrapping on mobile --- */
@media (max-width: 640px) {

    /* Allow breadcrumb + share dock to wrap to two lines */
    #blog-article-view .view-header,
    #yard-article-view .view-header {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 0 10px 0;
    }

    /* Breadcrumb takes full width on first line */
    #blog-article-view .view-header .breadcrumb,
    #yard-article-view .view-header .breadcrumb {
        flex: 1 1 100%;
    }

    /* Social dock sits on second line, full width */
    #blog-article-view .view-header>div,
    #yard-article-view .view-header>div {
        width: 100% !important;
        justify-content: flex-start !important;
    }

    #blog-article-view .view-header>div>div,
    #yard-article-view .view-header>div>div {
        width: 100%;
        justify-content: flex-start;
    }

    /* Social action dock itself */
    #blog-article-view .social-action-dock,
    #yard-article-view .social-action-dock {
        width: 100% !important;
        padding: 5px 10px !important;
        border-radius: 10px !important;
        box-sizing: border-box;
    }

    #blog-article-view .dock-btns,
    #yard-article-view .dock-btns {
        gap: 8px !important;
    }

    /* Slightly larger touch targets for share buttons */
    #blog-article-view .social-action-dock .dock-btn,
    #yard-article-view .social-action-dock .dock-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px;
        min-height: 36px;
    }

    #blog-article-view,
    #yard-article-view {
        padding: 10px 0 !important;
    }
}


/* --- LATEST NEWS: Article hero image & overlay --- */
@media (max-width: 768px) {

    /* Reduce the 380px fixed hero height in the inline style */
    #blog-article-view .article-hero {
        height: 240px !important;
        min-height: 240px !important;
    }

    #blog-article-view .article-hero img {
        height: 240px !important;
    }

    /* Hero content — reduce side inset so text isn't squeezed */
    .hero-content {
        left: 16px !important;
        right: 16px !important;
        bottom: 20px !important;
    }

    .hero-content h1 {
        font-size: clamp(1.2rem, 5vw, 1.8rem) !important;
        margin-bottom: 10px !important;
    }

    .article-category {
        font-size: 0.65rem !important;
        letter-spacing: 2px !important;
        margin-bottom: 10px !important;
    }

    /* Article meta row — allow wrapping */
    .article-meta {
        flex-wrap: wrap !important;
        gap: 4px 10px !important;
        font-size: 0.65rem !important;
    }

    .article-meta .dot {
        display: none;
        /* hide separators when wrapping */
    }

    /* Blog container padding */
    .blog-container {
        padding: 10px 0 !important;
    }

    /* Article body wrapper — ensure single column, reduce padding */
    .article-body-wrapper {
        grid-template-columns: 1fr !important;
        padding: 16px 0 !important;
        gap: 20px !important;
    }

    /* Main article content padding */
    .article-main-content {
        padding: 0 !important;
        font-size: 0.95rem !important;
    }

    /* Lead paragraph */
    .lead {
        font-size: 1rem !important;
        padding-left: 14px !important;
        margin-bottom: 20px !important;
    }


    /* CTA / source link box — stack vertically on mobile */
    .news-cta-box {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 16px !important;
        margin-top: 24px !important;
    }

    .news-cta-btn {
        width: 100% !important;
        justify-content: center !important;
        text-align: center;
        box-sizing: border-box;
    }

    /* Related items in sidebar — better mobile touch area */
    .related-item {
        align-items: flex-start;
        gap: 10px;
    }

    .related-item img {
        width: 52px !important;
        height: 52px !important;
    }

    /* AI insight box - reduce padding */
    .ai-insight-box {
        padding: 18px 16px !important;
    }

    /* Related intel section */
    .related-intel h4 {
        font-size: 0.85rem !important;
        margin-bottom: 16px !important;
    }

    /* Sidebar */
    .article-sidebar {
        gap: 24px !important;
    }
}

@media (max-width: 480px) {
    #blog-article-view .article-hero {
        height: 200px !important;
        min-height: 200px !important;
    }

    #blog-article-view .article-hero img {
        height: 200px !important;
    }
}


/* --- FROM THE YARD: Article page mobile --- */
@media (max-width: 768px) {

    /* Hero banner reduce padding */
    .yard-art-hero {
        padding: 28px 16px 22px !important;
        border-radius: 12px 12px 0 0 !important;
    }

    .yard-art-headline {
        font-size: clamp(1.25rem, 5vw, 2rem) !important;
        margin-bottom: 16px !important;
    }

    .yard-art-tag-row {
        gap: 8px !important;
        margin-bottom: 12px !important;
        flex-wrap: wrap;
    }

    /* Stat strip — make it scrollable or wrapping on mobile */
    .yard-art-stat-strip {
        padding: 12px 16px !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
        gap: 0;
    }

    .yard-art-stat-strip::-webkit-scrollbar {
        display: none;
    }

    .yard-art-stat {
        padding-right: 20px !important;
        margin-right: 20px !important;
        flex-shrink: 0;
        min-width: max-content;
    }

    .yard-art-stat-label {
        font-size: 0.55rem !important;
        white-space: nowrap;
    }

    .yard-art-stat-val {
        font-size: 0.8rem !important;
        white-space: nowrap;
    }

    /* Main body padding */
    .yard-art-main {
        padding: 20px 16px 32px !important;
        border-right: none !important;
    }

    .yard-art-lead {
        font-size: 0.97rem !important;
        padding-left: 14px !important;
        margin-bottom: 20px !important;
    }

    .yard-art-body {
        font-size: 0.92rem !important;
    }

    /* Social share row in article body */
    .yard-art-share-row {
        flex-wrap: wrap;
        gap: 8px !important;
        margin-top: 20px !important;
    }

    .yard-art-share-row .dock-btn {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px;
        min-height: 40px;
    }

    /* Source attribution */
    .yard-art-source {
        padding: 12px 14px !important;
        font-size: 0.72rem !important;
        margin-top: 24px !important;
    }

    /* Sidebar — collapse and show below main content */
    .yard-art-sidebar {
        padding: 20px 16px !important;
        border-top: 1px solid rgba(101, 163, 13, 0.2);
    }

    .yard-art-sidebar-title {
        font-size: 0.6rem !important;
        letter-spacing: 0.1em !important;
        margin-bottom: 14px !important;
    }

    /* Related items in yard sidebar */
    .yard-art-sidebar .yard-related-item {
        padding: 12px 0 !important;
        gap: 8px !important;
        min-height: 44px;
        /* ensure tappable */
    }

    .yard-rel-avatar {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.55rem !important;
    }

    .yard-related-headline {
        font-size: 0.78rem !important;
    }

    .yard-related-meta {
        font-size: 0.6rem !important;
    }

    /* Yard view header */
    .yard-view-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Article container padding */
    .yard-article-container {
        padding: 10px 0 40px !important;
    }
}

/* Yard article: narrower screens — even tighter */
@media (max-width: 480px) {
    .yard-art-hero {
        padding: 20px 12px 16px !important;
        border-radius: 8px 8px 0 0 !important;
    }

    .yard-art-main {
        padding: 16px 12px 24px !important;
    }

    .yard-art-sidebar {
        padding: 16px 12px !important;
    }

    .yard-art-stat-strip {
        padding: 10px 12px !important;
    }
}

/* Prevent horizontal overflow on the page shells */
@media (max-width: 768px) {

    #blog-article-view,
    #yard-article-view {
        overflow-x: hidden;
    }

    /* premium-article padding on mobile */
    .premium-article {
        padding-bottom: 40px !important;
    }

    /* Hero overlay adjust */
    .hero-overlay {
        height: 70% !important;
    }
}

/* ==========================================================================
   RACING MODE — Comprehensive Glassmorphic Overrides (Phase 2)
   Covers ALL remaining dark-styled components
   ========================================================================== */

/* --- TV / LIVE SECTION --- */
/* --- COMMENTARY & OPINION --- */
/* --- EDITORIAL / NEWS --- */
/* --- YARD INTELLIGENCE --- */
/* --- SOCIAL NOISE (complete) --- */
/* --- WHISPERS (complete) --- */
/* --- INTEL / PROFILE SECTIONS --- */
/* --- SHOP / PRICING --- */
/* --- RACE ANALYSIS / TELEMETRY --- */
/* --- AUTH / SIGNUP OVERLAYS --- */
/* --- MISCELLANEOUS COMPONENTS --- */
/* -- Footer full overhaul -- */
/* --- Honesty / Trust / Safety --- */
/* --- Roadmap / Advantage / CTA --- */
/* --- Hub Stats / Secondary --- */
/* --- Video / Modal --- */
/* --- Mobile / Nav --- */
/* --- Share / Action buttons --- */
/* --- Misc form / calc --- */
/* --- Misc visual polish --- */
/* ============================================
   HORSE REVIEW SECTION
   ============================================ */
.horse-review-section {
    margin: 12px 0 8px;
    min-height: 20px;
}

.horse-review-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    padding: 10px 14px;
    margin: 0;
    background: rgba(255, 215, 0, 0.04);
    border-left: 3px solid rgba(255, 215, 0, 0.3);
    border-radius: 0 8px 8px 0;
}

/* Shimmer loading state */
.review-loading {
    height: 38px;
    border-radius: 8px;
    overflow: hidden;
}

.review-shimmer {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 215, 0, 0.03) 0%,
            rgba(255, 215, 0, 0.08) 50%,
            rgba(255, 215, 0, 0.03) 100%);
    background-size: 200% 100%;
    animation: reviewShimmer 1.5s ease-in-out infinite;
}

@keyframes reviewShimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ============================================
   BRANDED PAGE TRANSITION LOADER
   ============================================ */
.page-transition-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 10, 18, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.page-transition-loader.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ptl-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.page-transition-loader.active .ptl-content {
    transform: scale(1);
}

/* Animated ring */
.ptl-ring {
    position: relative;
    width: 90px;
    height: 90px;
}

.ptl-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ptl-track {
    fill: none;
    stroke: rgba(255, 215, 0, 0.08);
    stroke-width: 3;
}

.ptl-runner {
    fill: none;
    stroke: url(#ptl-gradient);
    stroke: var(--accent-gold, #ffd700);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-dasharray: 264;
    stroke-dashoffset: 180;
    animation: ptlSpin 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.4));
}

@keyframes ptlSpin {
    0% {
        stroke-dashoffset: 180;
        transform: rotate(0deg);
    }

    50% {
        stroke-dashoffset: 60;
    }

    100% {
        stroke-dashoffset: 180;
        transform: rotate(360deg);
    }
}

/* Centre icon */
.ptl-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    animation: ptlBounce 1.2s ease-in-out infinite;
}

@keyframes ptlBounce {

    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-4px);
    }
}

/* Brand text */
.ptl-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffd700 0%, #fff 50%, #ffd700 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: ptlShimmer 2s ease-in-out infinite;
}

@keyframes ptlShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Status text */
.ptl-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    animation: ptlPulse 1.5s ease-in-out infinite;
}

@keyframes ptlPulse {

    0%,
    100% {
        opacity: 0.35;
    }

    50% {
        opacity: 0.8;
    }
}

/* Light theme */
/* ==========================================================================
   RACING LIGHT THEME — Dark Widget Overhaul
   Comprehensive overrides for sections that still appear dark in light mode
   ========================================================================== */

/* ── Commentary & Opinion Card ── */
/* ── Video Intelligence Hub / TV Card ── */
/* ── Subscription Promo Card ── */
/* ── Web Footer ── */
/* ==========================================================================
   RACING LIGHT THEME — Text & Remaining Dark Elements Fix
   Fixes white text on light backgrounds and any remaining dark widgets
   ========================================================================== */

/* ── Hub Card Headings & Text ── */
/* ── Card Glow (hide the dark glow in light mode) ── */
/* ── Live Tags ── */
/* ── News Card — Latest Racing News ── */
/* ── From The Yard / Yard Feed Card ── */
/* ── News Secondary Items ── */
/* ── Live Stats (inside yard card) ── */
/* ── Yard Feed Items ── */
/* ── General text color override for all cards ── */
/* ── Ticker / Scrolling items ── */
/* ── Inside Track Frame ── */
/* ── News Primary after pseudo ── */
/* ── Dock Buttons (social share) inside cards ── */
/* ── Context Nav (Today / Tomorrow / Cheltenham tabs) ── */
/* ==========================================================================
   RACING MODE — PREMIUM UPGRADE
   Elevating the light theme to match the Clubhouse mode's polished feel
   ========================================================================== */

/* ── Header: Ultra Premium Glass ── */
/* ── Main Glass Panel: Stunning depth and clarity ── */
/* ── Context Nav: Clean floating pill ── */
/* ── Race Schedule Grid: Ultra-crisp modern interface ── */
/* ── Intelligence Filler (watermark) ── */
/* ── Live Ticker/Marquee Bar ── */
/* ── Hub Cards: High-end floating cards ── */
/* ── Dropdown Menus: Premium Glass ── */
/* ── Background: Ultra White with elegant golden aura from extremes ── */
@media (max-width: 768px) {}

/* --- Dashboard Socials & Winning --- */
.trophy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.trophy-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.trophy-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.trophy-item:hover img {
    transform: scale(1.05);
}

.trophy-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trophy-item:hover .trophy-overlay {
    opacity: 1;
}

.trophy-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.trophy-btn:hover {
    background: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
}

/* --- Premium Intel Per-Card Lock Overlay --- */
.intel-card.is-locked-card,
.locked-runner-group.is-locked-card {
    position: relative;
    overflow: hidden;
}

.intel-card.is-locked-card> :not(.per-card-lock-overlay),
.locked-runner-group.is-locked-card> :not(.per-card-lock-overlay),
.locked-runner-group>div:not(.per-card-lock-overlay) {
    filter: blur(14px) opacity(0.25) grayscale(0.5);
    user-select: none;
    pointer-events: none;
    transition: filter 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Gold shimmer keyframes for lock overlay */
@keyframes lockShimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes lockGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.08), 0 0 60px rgba(255, 215, 0, 0.03);
    }

    50% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.15), 0 0 80px rgba(255, 215, 0, 0.06);
    }
}

@keyframes lockIconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.per-card-lock-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(255, 215, 0, 0.06), transparent 60%),
        radial-gradient(ellipse at 50% 80%, rgba(184, 134, 11, 0.04), transparent 50%),
        linear-gradient(180deg, rgba(8, 10, 18, 0.7) 0%, rgba(12, 16, 28, 0.75) 100%);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid rgba(255, 215, 0, 0.06);
    text-align: center;
    padding: 40px 32px;
    animation: lockGlow 4s ease-in-out infinite;
}

/* Subtle top gold line accent */
.per-card-lock-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.5), transparent);
    border-radius: 2px;
}

.per-card-lock-overlay .lock-icon {
    font-size: 1.6rem;
    margin: 0 auto 12px auto;
    display: block;
    text-align: center;
    width: fit-content;
    animation: lockIconFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.25));
}

.per-card-lock-overlay h4 {
    font-size: 0.75rem;
    margin: 0 auto 4px auto;
    padding: 0;
    display: block;
    width: fit-content;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 5px;
    font-weight: 600;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffd700 0%, #ffec6e 25%, #c9a400 50%, #ffd700 75%, #ffec6e 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: lockShimmer 4s linear infinite;
}

.per-card-lock-overlay .lock-subtitle {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.6rem;
    margin: 0 auto 18px auto;
    padding: 0;
    display: block;
    width: fit-content;
    font-family: 'Inter', sans-serif;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 400;
}

.per-card-lock-overlay p {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-bottom: 28px;
    line-height: 1.6;
    max-width: 260px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.per-card-lock-overlay button.lock-login-btn {
    background: transparent;
    color: #ffd700;
    font-weight: 600;
    font-size: 0.7rem;
    padding: 10px 28px;
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'Outfit', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Shimmer sweep on button */
.per-card-lock-overlay button.lock-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.08), transparent);
    transition: left 0.6s ease;
}

.per-card-lock-overlay button.lock-login-btn:hover::before {
    left: 100%;
}

.per-card-lock-overlay button.lock-login-btn:hover {
    background: rgba(255, 215, 0, 0.06);
    border-color: rgba(255, 215, 0, 0.5);
    color: #ffec6e;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
    letter-spacing: 4px;
}

/* Light Theme */

/* ============================================================
   RACING MODE — Complete Clean White Theme
   Built from scratch as the beautiful white counterpart
   to the dark Clubhouse Mode.
   
   Design System:
   - Background: Pure white #ffffff with warm gold radial hints
   - Text Primary: #0f172a (slate-900)
   - Text Secondary: #334155 (slate-700)
   - Text Dim: #64748b (slate-500)
   - Text Muted: #94a3b8 (slate-400)
   - Accent Gold: #b8860b (dark goldenrod)
   - Accent Green: #059669 (emerald-600)
   - Card BG: #ffffff with subtle shadow
   - Border: rgba(0,0,0,0.06)
   - Hover Accent: rgba(184,134,11,0.06)
   ============================================================ */

/* --- ROOT VARIABLES --- */
body.light-theme {
    --bg-color: #fafaf9;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.06);
    --accent-gold: #b8860b;
    --accent-green: #059669;
    --text-main: #0f172a;
    --text-dim: #64748b;
    background-color: #fafaf9 !important;
    background-image:
        radial-gradient(ellipse at 0% 10%, rgba(184, 134, 11, 0.05) 0vw, transparent 50vw),
        radial-gradient(ellipse at 100% 20%, rgba(212, 160, 23, 0.04) 0vw, transparent 40vw),
        radial-gradient(ellipse at -10% 80%, rgba(184, 134, 11, 0.05) 0vw, transparent 55vw),
        radial-gradient(ellipse at 110% 90%, rgba(212, 160, 23, 0.03) 0vw, transparent 50vw) !important;
    background-attachment: fixed;
    color: #0f172a;
}

/* --- BACKGROUND BLOBS --- */
body.light-theme .blob-1 {
    opacity: 0.15;
    background: radial-gradient(circle, rgba(184, 134, 11, 0.5), transparent);
    filter: blur(130px);
}

body.light-theme .blob-2 {
    opacity: 0.1;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.4), transparent);
    filter: blur(130px);
}

/* --- CONTAINER --- */
body.light-theme .container {
    background: transparent;
}

/* --- TOP BAR / HEADER --- */
body.light-theme .top-bar-menu {
    background: rgba(255, 255, 255, 0.92) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    backdrop-filter: blur(24px) saturate(1.6) !important;
    -webkit-backdrop-filter: blur(24px) saturate(1.6) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

body.light-theme header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding-bottom: 40px;
    margin-bottom: 40px;
}

/* Logo */
body.light-theme h1.logo-text,
body.light-theme h1.glow-text {
    background: linear-gradient(135deg, #0f172a 0%, #b8860b 55%, #daa520 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none;
    filter: drop-shadow(0 1px 4px rgba(184, 134, 11, 0.12));
}

/* Clock */
body.light-theme .live-clock {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    backdrop-filter: none;
}

body.light-theme .clock-time {
    color: #0f172a !important;
    font-weight: 800;
}

body.light-theme .clock-date {
    color: #b8860b !important;
    border-color: rgba(184, 134, 11, 0.15) !important;
    border-right: 1px solid rgba(184, 134, 11, 0.15) !important;
}

/* Top Bar Buttons */
body.light-theme .top-icon-btn {
    color: #475569 !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}

body.light-theme .top-icon-btn:hover {
    color: #b8860b !important;
    background: #fdfcfa !important;
    border-color: rgba(184, 134, 11, 0.2) !important;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.08) !important;
    transform: translateY(-1px);
}

body.light-theme .top-menu-label {
    color: #1e293b !important;
    font-weight: 600;
}

body.light-theme .chevron-down {
    color: #94a3b8;
}

body.light-theme .top-text-btn {
    color: #475569;
}

body.light-theme .top-text-btn:hover {
    color: #0f172a;
}

/* Search */
body.light-theme .search-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .top-search-input {
    color: #0f172a;
}

body.light-theme .search-results-dropdown {
    background: #ffffff;
    border: 1px solid rgba(184, 134, 11, 0.2);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

body.light-theme .search-result-item:hover {
    background: rgba(184, 134, 11, 0.05);
}

body.light-theme .search-result-name {
    color: #0f172a;
}

/* Dropdown Menus */
body.light-theme .top-dropdown-menu {
    background: rgba(255, 255, 255, 0.97) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.8) inset !important;
    backdrop-filter: blur(20px) !important;
    border-radius: 12px;
}

body.light-theme .top-dropdown-menu a {
    color: #334155 !important;
    font-weight: 500;
}

body.light-theme .top-dropdown-menu a:hover,
body.light-theme .top-dropdown-menu a.active {
    background: rgba(184, 134, 11, 0.05) !important;
    color: #b8860b !important;
}

body.light-theme .avatar-dropdown-menu a {
    color: #334155 !important;
}

body.light-theme .avatar-dropdown-menu a:hover {
    background: rgba(184, 134, 11, 0.05) !important;
    color: #b8860b !important;
}

body.light-theme .avatar-menu-divider {
    background: rgba(0, 0, 0, 0.06) !important;
}

/* Auth Buttons */
body.light-theme .auth-btn.login-btn {
    color: #0f172a;
}

body.light-theme .auth-btn.login-btn:hover {
    color: #b8860b;
}

body.light-theme .auth-btn.signup-btn {
    background: linear-gradient(135deg, #b8860b, #996515);
    color: #fff;
    box-shadow: 0 4px 16px rgba(184, 134, 11, 0.25);
}

body.light-theme .auth-btn.signup-btn:hover {
    box-shadow: 0 6px 24px rgba(184, 134, 11, 0.35);
    transform: translateY(-2px);
}

/* Mobile */
body.light-theme .mobile-menu-toggle {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #475569;
}

body.light-theme .mobile-nav-link {
    color: #334155;
}

body.light-theme .mobile-toggle-group {
    background: rgba(0, 0, 0, 0.02);
}

body.light-theme .mini-toggle {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* --- MAIN GLASS PANEL --- */
body.light-theme .main-glass-panel {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03), 0 20px 60px rgba(184, 134, 11, 0.03), inset 0 1px 0 #fff !important;
    backdrop-filter: blur(30px) saturate(1.4);
    -webkit-backdrop-filter: blur(30px) saturate(1.4);
}

body.light-theme .main-glass-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.5) 48%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0.5) 52%, transparent 60%);
    background-size: 200% 100%;
    animation: glassShimmer 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.2;
}

/* --- SEGMENTED CONTROL / CONTEXT NAV --- */
body.light-theme .segmented-control {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    backdrop-filter: none;
}

body.light-theme .context-btn {
    color: #64748b;
}

body.light-theme .context-btn:hover {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.03);
}

body.light-theme .context-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-theme .context-nav {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
    border-radius: 100px;
    padding: 4px;
}

body.light-theme .context-tab {
    color: #64748b;
}

body.light-theme .context-tab.active {
    color: #0f172a !important;
    background: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.light-theme .context-tab:hover:not(.active) {
    color: #334155;
    background: rgba(0, 0, 0, 0.02);
}

/* --- MEGA MENU --- */
body.light-theme .mega-menu-container {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04), 0 20px 60px rgba(184, 134, 11, 0.02) !important;
    border-radius: 14px !important;
    backdrop-filter: none !important;
}

body.light-theme .mega-menu-row {
    border-bottom: 1px solid rgba(0, 0, 0, 0.03) !important;
}

body.light-theme .day-cell {
    background: rgba(184, 134, 11, 0.02) !important;
    color: #b8860b !important;
    font-weight: 800 !important;
    border-right: 1px solid rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .day-cell::before {
    background: #b8860b !important;
}

body.light-theme .mega-menu-table .race-btn.menu-race-btn {
    color: #334155 !important;
    border-right: 1px solid rgba(0, 0, 0, 0.03) !important;
}

body.light-theme .mega-menu-table .race-btn.menu-race-btn .race-time {
    color: #0f172a !important;
    font-weight: 800 !important;
}

body.light-theme .mega-menu-table .race-btn.menu-race-btn .race-name {
    color: #64748b !important;
    font-weight: 600 !important;
}

body.light-theme .mega-menu-table .race-btn.menu-race-btn:hover {
    background: rgba(184, 134, 11, 0.03) !important;
    color: #0f172a !important;
}

body.light-theme .mega-menu-table .race-btn.menu-race-btn.active {
    background: #fffdf5 !important;
    box-shadow: inset 0 3px 0 #b8860b, 0 4px 16px rgba(184, 134, 11, 0.06) !important;
    color: #0f172a !important;
}

body.light-theme .mega-menu-table .race-btn.menu-race-btn.active .race-name {
    color: #b8860b !important;
}

body.light-theme .intelligence-filler {
    background-image: radial-gradient(rgba(184, 134, 11, 0.04) 1px, transparent 1px) !important;
}

body.light-theme .intelligence-filler::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95)) !important;
}

body.light-theme .filler-tag {
    color: #b8860b !important;
}

/* --- RACE BUTTONS --- */
body.light-theme .race-btn {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-dim);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    backdrop-filter: none;
}

body.light-theme .race-btn:hover {
    background: #fdfcfa;
    border-color: rgba(184, 134, 11, 0.2);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.06);
}

body.light-theme .race-btn.active {
    background: linear-gradient(135deg, #b8860b, #996515);
    color: #fff;
    border-color: #b8860b;
    box-shadow: 0 4px 16px rgba(184, 134, 11, 0.3);
}

body.light-theme .race-btn .race-name {
    color: #0f172a;
}

body.light-theme .race-btn .race-time {
    color: #64748b;
}

body.light-theme .race-btn.active .race-name {
    color: #ffffff;
}

body.light-theme .race-btn.active .race-time {
    color: rgba(255, 255, 255, 0.8);
}

/* Day Nav */
body.light-theme .day-btn {
    color: #94a3b8;
    font-weight: 600;
}

body.light-theme .day-btn:hover {
    color: #0f172a;
}

body.light-theme .day-btn.active {
    color: #b8860b;
}

body.light-theme .day-btn.active::after {
    background: #b8860b;
    box-shadow: none;
}

body.light-theme .day-btn::after {
    background: #b8860b;
}

body.light-theme .day-nav {
    border-bottom: 2px solid #f1f5f9;
}

/* Special Race */
body.light-theme .special-race-btn {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.06), rgba(184, 134, 11, 0.03)) !important;
    border: 1px solid rgba(184, 134, 11, 0.15) !important;
}

body.light-theme .special-race-btn:hover {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.12), rgba(184, 134, 11, 0.08)) !important;
    border-color: rgba(184, 134, 11, 0.3) !important;
}

body.light-theme .special-race-btn.active {
    background: linear-gradient(135deg, #b8860b, #996515) !important;
    border-color: #b8860b !important;
}

body.light-theme .special-race-tag {
    background: linear-gradient(135deg, #b8860b, #996515);
}

body.light-theme .divider,
body.light-theme .divider-line {
    background: linear-gradient(90deg, transparent, rgba(184, 134, 11, 0.15), transparent);
}

/* --- HUB CARDS --- */
body.light-theme .hub-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02), 0 8px 32px rgba(0, 0, 0, 0.03) !important;
    backdrop-filter: none !important;
    color: #334155;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.light-theme .hub-card:hover {
    transform: translateY(-3px);
    border-color: rgba(184, 134, 11, 0.15) !important;
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.05), 0 24px 64px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .hub-card h4 {
    color: #0f172a !important;
}

body.light-theme .hub-card h5,
body.light-theme .hub-card h6 {
    color: #0f172a;
}

body.light-theme .hub-card p {
    color: #475569;
}

body.light-theme .card-header-main h4 {
    color: #0f172a !important;
}

body.light-theme .card-glow {
    opacity: 0;
}

body.light-theme .card-list {
    color: #334155;
}

/* Live Tags */
body.light-theme .live-tag {
    background: rgba(255, 0, 0, 0.05);
    border-color: rgba(255, 0, 0, 0.12);
}

body.light-theme .live-pulse,
body.light-theme .social-pulse,
body.light-theme .core-pulse {
    background: #059669;
}

body.light-theme .core-rings {
    border-color: rgba(5, 150, 105, 0.2);
}

/* --- MARKET TICKER --- */
body.light-theme .market-ticker-bar {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

body.light-theme .ticker-item {
    color: #334155 !important;
    border-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .ticker-item .horse {
    color: #0f172a;
}

body.light-theme .ticker-text {
    color: #0f172a !important;
    font-weight: 600;
}

body.light-theme .ticker-time {
    color: var(--accent-gold);
}

/* --- NEWS CARDS --- */
body.light-theme #live-news-card,
body.light-theme .news-card-live {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02), 0 12px 40px rgba(0, 0, 0, 0.03) !important;
    backdrop-filter: none !important;
}

body.light-theme .news-primary,
body.light-theme .news-primary.clickable {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    backdrop-filter: none;
}

body.light-theme .news-primary::after {
    background: linear-gradient(to bottom, transparent 40%, rgba(255, 255, 255, 0.95));
}

body.light-theme .news-primary-content,
body.light-theme .news-primary-content h5 {
    color: #0f172a;
}

body.light-theme .news-secondary {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .news-secondary h6 {
    color: #0f172a;
}

body.light-theme .news-item-static,
body.light-theme .news-static-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    color: #334155;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02), 0 12px 40px rgba(0, 0, 0, 0.03) !important;
}

body.light-theme .news-content-small {
    color: #334155;
}

body.light-theme .news-content-small h6 {
    color: #0f172a;
}

body.light-theme .news-content-small p {
    color: #475569;
}

body.light-theme .news-tag {
    color: #b8860b;
    background: rgba(184, 134, 11, 0.06);
}

body.light-theme .wide-news-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .story-content {
    color: #334155;
}

body.light-theme .story-punchline {
    color: #0f172a;
}

body.light-theme .story-step {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .story-visual {
    background: #f8f7f4;
}

body.light-theme .thumb-frame {
    border-color: rgba(184, 134, 11, 0.2);
}

/* --- EDITORIAL --- */
body.light-theme .editorial-hero {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    color: #0f172a;
}

body.light-theme .editorial-hero-title {
    color: #0f172a;
}

body.light-theme .editorial-kicker {
    color: #b8860b;
}

body.light-theme .editorial-excerpt {
    color: #475569;
}

body.light-theme .editorial-byline {
    color: #64748b;
}

body.light-theme .editorial-read-time {
    color: #64748b;
}

body.light-theme .editorial-tag {
    background: rgba(184, 134, 11, 0.08);
    border-color: rgba(184, 134, 11, 0.2);
    color: #b8860b;
}

body.light-theme .editorial-strip {
    background: transparent;
}

body.light-theme .editorial-strip-title {
    color: #334155;
}

body.light-theme .editorial-strip-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

body.light-theme .editorial-strip-card:hover {
    background: #fdfcfa;
    border-color: rgba(184, 134, 11, 0.2);
}

body.light-theme .strip-card-cat {
    color: #b8860b;
}

body.light-theme .strip-card-title {
    color: #0f172a;
}

body.light-theme .strip-issue-watermark {
    color: rgba(184, 134, 11, 0.05);
}

/* --- TV / VIDEO SECTION --- */
body.light-theme .video-intel-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02), 0 12px 40px rgba(0, 0, 0, 0.03) !important;
}

body.light-theme .tv-channel-header {
    background: #fafaf9;
    color: #475569;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

body.light-theme .tv-channel-badge {
    background: rgba(184, 134, 11, 0.08);
    border-color: rgba(184, 134, 11, 0.2);
    color: #b8860b;
}

body.light-theme .tv-on-air {
    color: #059669;
}

body.light-theme .tv-title {
    color: #0f172a;
}

body.light-theme .tv-player-wrap {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

body.light-theme .tv-player-title {
    color: #0f172a;
}

body.light-theme .tv-playlist-col {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

body.light-theme .tv-playlist-header {
    color: #64748b;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

body.light-theme .tv-episode {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .tv-episode:hover {
    background: #fdfcfa;
    border-color: rgba(184, 134, 11, 0.15);
}

body.light-theme .tv-ep-title {
    color: #0f172a;
}

body.light-theme .tv-ep-dur,
body.light-theme .tv-duration-badge,
body.light-theme .tv-ep-meta {
    color: #64748b;
    background: #f1f0ed;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

body.light-theme .tv-ep-category {
    color: #b8860b;
}

body.light-theme .tv-ep-thumb {
    border: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-theme .tv-ep-overlay {
    background: rgba(255, 255, 255, 0.6);
}

body.light-theme .tv-play-ring {
    border-color: #b8860b;
    color: #b8860b;
}

body.light-theme .tv-now-playing-badge {
    background: linear-gradient(135deg, #b8860b, #996515);
    color: #fff;
}

body.light-theme .tv-ep-social {
    color: #64748b;
}

body.light-theme .tv-ep-social button {
    color: #64748b;
    border-color: rgba(0, 0, 0, 0.06);
    background: #ffffff;
}

body.light-theme .tv-ep-social button:hover {
    color: #b8860b;
    background: #fdfcfa;
}

body.light-theme .tv-ep-active-bar {
    background: #b8860b;
}

/* --- COMMENTARY / BLOG --- */
body.light-theme .blog-container {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    backdrop-filter: none;
}

body.light-theme .blog-header {
    background: #fafaf9;
}

body.light-theme .hero-overlay {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent);
}

body.light-theme .hero-content h1,
body.light-theme .article-main-content,
body.light-theme .article-main-content h3,
body.light-theme .lead {
    color: #0f172a;
}

body.light-theme .cmt-hero-caption {
    color: #334155;
}

body.light-theme .cmt-headline {
    color: #0f172a;
}

body.light-theme .cmt-author-name {
    color: #0f172a;
}

body.light-theme .cmt-author-row {
    color: #475569;
}

body.light-theme .cmt-tags-row {
    color: #64748b;
}

body.light-theme .cmt-tag {
    background: #f8f7f4;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #475569;
}

body.light-theme .cmt-progress-bar {
    background: #f1f0ed;
}

body.light-theme .cmt-stats-band {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #475569;
}

body.light-theme .cmt-more-rail {
    background: transparent;
}

body.light-theme .cmt-more-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

body.light-theme .cmt-more-card:hover {
    background: #fdfcfa;
    border-color: rgba(184, 134, 11, 0.15);
}

body.light-theme .cmt-more-card-title {
    color: #0f172a;
}

body.light-theme .cmt-nav-social {
    color: #64748b;
}

/* --- YARD FEED --- */
body.light-theme .yard-feed-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

body.light-theme .yard-feed-card:hover {
    background: #fdfcfa !important;
    border-color: rgba(184, 134, 11, 0.15) !important;
}

body.light-theme .yard-article-headline,
body.light-theme .yard-art-headline {
    color: #0f172a !important;
}

body.light-theme .yard-article-source,
body.light-theme .yard-art-source {
    color: #64748b !important;
}

body.light-theme .yard-art-main {
    color: #334155;
}

body.light-theme .yard-art-sidebar {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

body.light-theme .yard-art-trainer {
    color: #0f172a;
}

body.light-theme .yard-art-stat,
body.light-theme .yard-art-stat-strip {
    background: #f8f7f4;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .yard-horse-pill {
    background: #f8f7f4;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #334155;
}

body.light-theme .yard-related-item {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .yard-rel-avatar {
    background: rgba(184, 134, 11, 0.08);
    color: #b8860b;
}

body.light-theme .yard-share-btn,
body.light-theme .yard-art-share-row {
    color: #64748b;
}

body.light-theme .yard-feed-loading span {
    color: #64748b;
}

/* --- HORSE ANALYSIS / RACE CARDS --- */
body.light-theme .market-horse-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02), 0 8px 24px rgba(0, 0, 0, 0.03);
    backdrop-filter: none;
}

body.light-theme .market-horse-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.05), 0 20px 60px rgba(0, 0, 0, 0.06);
    border-color: rgba(184, 134, 11, 0.15);
}

body.light-theme .market-horse-card.is-top-pick {
    background: linear-gradient(135deg, #fffdf5, #fef9e7);
    border-left: 4px solid #b8860b;
    border-right: 1px solid rgba(0, 0, 0, 0.04);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

body.light-theme .market-horse-card.is-top-pick::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(184, 134, 11, 0.02) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

body.light-theme .market-horse-card.is-top-pick::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 70% 20%, rgba(184, 134, 11, 0.03), transparent 40%);
    pointer-events: none;
}

body.light-theme .horse-name {
    color: #0f172a;
}

body.light-theme .market-name-large {
    color: #0f172a;
}

body.light-theme .horse-premium-meta strong {
    color: #0f172a;
}

body.light-theme .horse-premium-meta {
    color: #475569;
}

body.light-theme .horse-row {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

body.light-theme .horse-row:hover {
    background: rgba(184, 134, 11, 0.02);
}

body.light-theme .odds-box {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-theme .best-price {
    background: rgba(254, 243, 199, 0.7);
    color: #92400e;
    border: 1px solid rgba(253, 230, 138, 0.4);
}

body.light-theme .horse-bio-bar {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

body.light-theme .bio-value {
    color: var(--text-main);
}

body.light-theme .analysis-narrative {
    color: #475569;
}

body.light-theme .analysis-narrative::before {
    color: rgba(184, 134, 11, 0.06);
}

body.light-theme .market-angle-item {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .horse-item {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .horse-item:hover {
    background: #fdfcfa;
}

body.light-theme .horse-odds {
    color: #059669;
}

body.light-theme .horse-number-circle {
    background: linear-gradient(135deg, #b8860b, #996515);
    border: none;
    box-shadow: 0 2px 6px rgba(184, 134, 11, 0.2);
}

body.light-theme .market-prob-label,
body.light-theme .ts-score-label {
    color: var(--text-dim);
}

body.light-theme .ts-score-val {
    color: var(--text-main);
}

body.light-theme .market-ts-score {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

/* --- PICK SECTION --- */
body.light-theme .my-pick-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 16px rgba(184, 134, 11, 0.04), 0 12px 40px rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .pick-header h3,
body.light-theme .pick-header {
    color: #0f172a;
}

body.light-theme .pick-label {
    color: #b8860b;
    font-weight: 700;
    letter-spacing: 2px;
}

body.light-theme .reasoning-header h4 {
    color: #0f172a;
}

body.light-theme .ai-reasoning-box {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

body.light-theme .reasoning-text {
    color: #334155;
}

body.light-theme .pick-stat {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

body.light-theme .stat-value {
    color: #0f172a;
}

body.light-theme .stat-value.score {
    color: #b8860b;
    text-shadow: none;
}

body.light-theme .stat-label {
    color: #94a3b8;
}

body.light-theme .stat-desc {
    color: #475569;
}

body.light-theme .nugget {
    background: #f8f7f4;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .section-title {
    color: #0f172a;
}

body.light-theme .last-updated {
    color: #94a3b8;
}

body.light-theme .last-updated-slim {
    color: #64748b;
}

/* --- HERO TRIPTYCH --- */
body.light-theme .hero-triptych {
    border-color: rgba(184, 134, 11, 0.15);
    box-shadow: 0 0 30px rgba(184, 134, 11, 0.04), 0 16px 40px rgba(0, 0, 0, 0.06);
}

body.light-theme .hero-panel--pick {
    background: linear-gradient(160deg, #fffdf5 0%, #fef9e7 100%);
    border-right-color: rgba(184, 134, 11, 0.1);
}

body.light-theme .hero-panel--danger {
    background: linear-gradient(160deg, #fff5f5 0%, #fef2f2 100%);
}

body.light-theme .hero-panel--darkhorse {
    background: linear-gradient(160deg, #f8f5ff 0%, #f3f0ff 100%);
}

body.light-theme .hero-panel__reasoning {
    color: #475569;
}

body.light-theme .hero-panel__stat {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .hero-panel__stat-label {
    color: #94a3b8;
}

body.light-theme .hero-threat-meter__track {
    background: rgba(0, 0, 0, 0.06);
}

body.light-theme .hero-threat-meter__label {
    color: #94a3b8;
}

body.light-theme .hero-darkhorse-odds__label {
    color: #94a3b8;
}

body.light-theme .hero-share-btn {
    background: rgba(184, 134, 11, 0.06);
    border-color: rgba(184, 134, 11, 0.15);
}

body.light-theme .hero-share-btn:hover {
    background: rgba(184, 134, 11, 0.12);
}

body.light-theme .hero-insight-box {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .hero-insight-box .hero-panel__reasoning {
    color: #475569;
}

body.light-theme .hero-insight-box .hero-panel__stats {
    border-top-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .hero-panel--pick .ai-reasoning-box {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .hero-panel--pick .ai-reasoning-box::before {
    background: linear-gradient(180deg, #b8860b, rgba(184, 134, 11, 0.15));
}

body.light-theme .hero-panel--pick .reasoning-text {
    color: #475569;
}

body.light-theme .hero-panel--pick .ai-nuggets {
    border-top-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .hero-panel--pick .nugget {
    color: #475569;
}

body.light-theme .hero-panel--pick .pick-stat {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .hero-panel--pick .stat-label {
    color: #94a3b8;
}

body.light-theme .hero-panel--pick .stat-value {
    color: #0f172a;
}

body.light-theme .hero-panel--pick .stat-value.score {
    color: #b8860b;
}

/* --- EACH-WAY & TIPS --- */
body.light-theme .ew-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

body.light-theme .ew-card:hover {
    background: #fdfcfa;
    border-color: rgba(184, 134, 11, 0.15);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.05);
}

body.light-theme .ew-name {
    color: #0f172a;
    font-weight: 800;
}

body.light-theme .ew-reasoning {
    color: #475569;
}

body.light-theme .ew-nugget {
    background: #f8f7f4;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #64748b;
}

body.light-theme .ew-section {
    color: #334155;
}

body.light-theme .success-tip-section {
    background: #fafaf9;
}

body.light-theme .tip-card {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

body.light-theme .tip-description {
    color: #475569;
}

body.light-theme .tip-modal {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

body.light-theme .tip-modal-subtitle {
    color: #64748b;
}

/* --- BRIEFING --- */
body.light-theme .race-briefing-compact {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    border-top: 3px solid #059669;
}

body.light-theme .briefing-row-main h1 {
    color: #0f172a;
}

body.light-theme .briefing-col-insights {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .briefing-grid-deep {
    color: #334155;
}

body.light-theme .strategy-badge {
    background: #f8f7f4;
    color: #64748b;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-theme .strategy-badge.active {
    background: #b8860b;
    color: #fff;
    border-color: #b8860b;
}

body.light-theme .strategy-badge:not(.active):hover {
    background: #f1f0ed;
    color: #0f172a;
}

body.light-theme .strategy-badge.expert {
    background: rgba(184, 134, 11, 0.08);
    color: #b8860b;
    border: 1px solid rgba(184, 134, 11, 0.15);
}

body.light-theme .strategy-badge.racedesk {
    background: rgba(5, 150, 105, 0.06);
    color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.15);
}

body.light-theme .race-header-large {
    border-color: rgba(0, 0, 0, 0.06) !important;
}

body.light-theme .mover-badge.steamer {
    background: rgba(254, 226, 226, 0.7);
    color: #991b1b;
    border: 1px solid rgba(254, 202, 202, 0.5);
}

body.light-theme .mover-badge.drifter {
    background: rgba(219, 234, 254, 0.7);
    color: #1e40af;
    border: 1px solid rgba(191, 219, 254, 0.5);
}

body.light-theme .verdict-text-deep {
    color: #475569;
}

body.light-theme .verdict-label-small {
    color: #64748b;
    letter-spacing: 1px;
}

body.light-theme .insight-mini-item {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

body.light-theme .insight-mini-item strong {
    color: #059669;
    font-weight: 800;
}

body.light-theme .insight-mini-item div {
    color: #475569;
    font-size: 0.8rem;
}

body.light-theme .source-tag {
    background: #f8f7f4;
    color: #475569;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-theme .source-tag.active {
    background: linear-gradient(135deg, #b8860b, #996515);
    color: #fff;
}

/* --- ODDS TABLE --- */
body.light-theme .sync-scroll-container {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

body.light-theme .odds-table {
    background: #ffffff;
}

body.light-theme .odds-table th {
    background: #fafaf9;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-theme .odds-table td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

body.light-theme .odds-table tr:nth-child(even) td {
    background-color: #fafaf9;
}

body.light-theme .odds-cell {
    color: #334155;
}

body.light-theme .odds-cell:hover {
    background: rgba(184, 134, 11, 0.04);
    color: #b8860b;
}

body.light-theme .value-bet {
    background: rgba(254, 243, 199, 0.6);
    color: #92400e;
    border-color: #b8860b !important;
}

body.light-theme .sticky-col {
    background: #ffffff !important;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.03);
    border-right: 1px solid rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .sticky-col::after {
    content: '';
    position: absolute;
    top: 0;
    right: -10px;
    height: 100%;
    width: 10px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.02), transparent);
    pointer-events: none;
}

body.light-theme .horse-name-cell {
    color: var(--text-main);
}

/* --- SOCIAL SECTION --- */
body.light-theme .social-overview {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

body.light-theme .social-overview-title h3 {
    color: #0f172a;
}

body.light-theme .social-horse-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .social-horse-header {
    color: #0f172a;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

body.light-theme .social-horse-name h4 {
    color: #0f172a;
}

body.light-theme .social-horse-odds {
    color: #059669;
}

body.light-theme .social-post {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .social-post:hover {
    background: #fdfcfa;
}

body.light-theme .social-summary-box {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .social-summary-box strong {
    color: #0f172a;
}

body.light-theme .social-action-dock,
body.light-theme .social-inline-dock {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #64748b;
}

body.light-theme .social-icon,
body.light-theme .platform-icon {
    color: #64748b;
}

body.light-theme .x-badge {
    background: #f8f7f4;
    color: #0f172a;
}

body.light-theme .fb-badge {
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
}

body.light-theme .telegram-badge {
    background: rgba(6, 182, 212, 0.08);
    color: #0891b2;
}

body.light-theme .platform-badge {
    background: #f8f7f4;
    color: #475569;
}

body.light-theme .post-content {
    color: #334155;
}

body.light-theme .snap-post,
body.light-theme .social-post.snap-post {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* --- WHISPERS --- */
body.light-theme .whispers-overview {
    background: #ffffff;
    border: 1px solid rgba(184, 134, 11, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

body.light-theme .whispers-title-group h3 {
    color: #0f172a;
}

body.light-theme .whispers-desc {
    color: #475569;
}

body.light-theme .whisper-intercept-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .whisper-intercept-card:hover {
    background: #fdfcfa;
    border-color: rgba(184, 134, 11, 0.15);
}

body.light-theme .whisper-card-header {
    color: #0f172a;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

body.light-theme .whisper-source {
    color: #64748b;
}

body.light-theme .whisper-source span {
    color: #0f172a;
}

body.light-theme .whisper-reliability {
    color: #475569;
}

body.light-theme .reliability-bar-bg {
    background: #f1f0ed;
}

body.light-theme .whisper-target-row {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.03);
    color: #334155;
}

body.light-theme .target-label {
    color: #64748b;
}

body.light-theme .target-value {
    color: #0f172a;
}

body.light-theme .whisper-message {
    color: #334155;
}

body.light-theme .whisper-time {
    color: #94a3b8;
}

body.light-theme .whisper-action-tag {
    background: #f8f7f4;
    color: #475569;
}

/* --- INTEL CARDS (Trainer, Jockey, Horse profiles) --- */
body.light-theme .intel-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

body.light-theme .intel-card-header {
    color: #0f172a;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

body.light-theme .intel-section {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .intel-premium-summary {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .intel-profile-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

body.light-theme .intel-profile-hero {
    background: #fafaf9;
}

body.light-theme .intel-profile-name {
    color: #0f172a;
}

body.light-theme .intel-profile-grid {
    color: #334155;
}

body.light-theme .intel-stat {
    background: #f8f7f4;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .intel-stats-bar {
    background: #fafaf9;
    color: #334155;
}

body.light-theme .intel-section-share {
    color: #64748b;
}

body.light-theme .intel-data-table {
    background: #fafaf9;
    color: #334155;
}

body.light-theme .intel-badge,
body.light-theme .clickable-intel-badge {
    background: rgba(184, 134, 11, 0.08);
    color: #b8860b;
    border: 1px solid rgba(184, 134, 11, 0.15);
}

/* Clickable entities */
body.light-theme .clickable-horse,
body.light-theme .horse-name.clickable-horse,
body.light-theme .clickable-jockey,
body.light-theme .clickable-trainer,
body.light-theme .race-title-clickable {
    color: #0f172a;
}

body.light-theme .clickable-horse:not(.hero-panel__horse):hover,
body.light-theme .clickable-jockey:hover,
body.light-theme .clickable-trainer:hover,
body.light-theme .race-title-clickable:hover {
    color: #b8860b;
}

body.light-theme .trainer-cell {
    color: #334155;
}

/* Related items */
body.light-theme .related-intel,
body.light-theme .related-item {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .related-item h5 {
    color: #0f172a;
}

body.light-theme .related-item span {
    color: #b8860b;
}

body.light-theme .record-box {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .record-name {
    color: #0f172a;
}

body.light-theme .trend-row {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

/* Horse merged / hero */
body.light-theme .horse-merged-stories {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .horse-hero-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .sidebar-info-block {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .live-stats-row {
    color: #334155;
}

body.light-theme .form-cell {
    background: #fafaf9;
    color: #334155;
}

body.light-theme .horse-review-text {
    color: #475569;
    background: rgba(184, 134, 11, 0.03);
    border-left-color: rgba(184, 134, 11, 0.25);
}

body.light-theme .review-shimmer {
    background: linear-gradient(90deg, rgba(184, 134, 11, 0.02) 0%, rgba(184, 134, 11, 0.06) 50%, rgba(184, 134, 11, 0.02) 100%);
    background-size: 200% 100%;
}

/* --- RACEDESK (AI Chat) --- */
body.light-theme .racedesk-container {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

body.light-theme .racedesk-header {
    background: #fafaf9;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

body.light-theme .racedesk-avatar {
    background: rgba(184, 134, 11, 0.08);
    border: 1px solid rgba(184, 134, 11, 0.15);
    color: #b8860b;
}

body.light-theme .racedesk-title h3 {
    color: #0f172a;
}

body.light-theme .racedesk-title span {
    color: #64748b;
}

body.light-theme .racedesk-message .message-content {
    background: #fafaf9;
    color: #334155;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

body.light-theme .racedesk-message.ai-message .message-content {
    background: #fffdf5;
    border-color: rgba(184, 134, 11, 0.08);
}

body.light-theme .racedesk-message .message-time {
    color: #94a3b8;
}

body.light-theme .suggestion-chip {
    background: #f8f7f4;
    border: 1px solid rgba(184, 134, 11, 0.15);
    color: #b8860b;
}

body.light-theme .suggestion-chip:hover {
    background: linear-gradient(135deg, #b8860b, #996515);
    color: #fff;
    border-color: #b8860b;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.2);
}

body.light-theme .racedesk-input-area {
    background: #fafaf9;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

body.light-theme .racedesk-input {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #0f172a;
}

body.light-theme .racedesk-input:focus {
    border-color: rgba(184, 134, 11, 0.3);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.06);
}

body.light-theme .racedesk-input::placeholder {
    color: #94a3b8;
}

body.light-theme .racedesk-send-btn {
    background: linear-gradient(135deg, #b8860b, #996515);
    color: #fff;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.2);
}

/* --- SHOP --- */
body.light-theme .shop-container-layout {
    background: transparent;
}

body.light-theme .shop-hero {
    background: #fafaf9;
    color: #0f172a;
}

body.light-theme .shop-cat-btn {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #475569;
}

body.light-theme .shop-cat-btn:hover {
    background: #fdfcfa;
    color: #0f172a;
}

body.light-theme .shop-cat-btn.active {
    background: linear-gradient(135deg, #b8860b, #996515);
    color: #fff;
    border-color: #b8860b;
}

body.light-theme .shop-info-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .shop-info-card h5 {
    color: #0f172a;
}

/* --- PRICING / PLANS --- */
body.light-theme .pricing-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    color: #334155;
}

body.light-theme .pricing-card:hover {
    background: #fdfcfa;
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.05);
}

body.light-theme .plan-name {
    color: #0f172a;
}

body.light-theme .plan-price {
    color: #0f172a;
}

body.light-theme .plan-features {
    color: #475569;
}

body.light-theme .plan-badge {
    background: linear-gradient(135deg, #b8860b, #996515);
    color: #fff;
}

body.light-theme .plan-btn {
    background: linear-gradient(135deg, #b8860b, #996515);
    color: #fff;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.2);
}

body.light-theme .mini-plan-panel {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    color: #334155;
}

body.light-theme .mini-plan-panel:hover {
    background: #fdfcfa !important;
    border-color: rgba(184, 134, 11, 0.2) !important;
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.06);
}

body.light-theme .mini-plan-panel.featured {
    border-color: #b8860b;
}

body.light-theme .mini-plan-panel h5 {
    color: #0f172a;
}

body.light-theme .mini-price {
    color: #0f172a !important;
}

body.light-theme .mini-perks {
    color: #475569 !important;
}

body.light-theme .mini-price .period {
    color: #94a3b8;
}

body.light-theme .subscription-promo-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02), 0 12px 40px rgba(0, 0, 0, 0.03) !important;
}

body.light-theme .subscription-promo-card::before {
    background: radial-gradient(circle, rgba(184, 134, 11, 0.04) 0%, transparent 70%);
}

body.light-theme .promo-header h4 {
    color: #0f172a;
}

body.light-theme .promo-header p {
    color: #475569;
}

body.light-theme .promo-header {
    color: #0f172a;
    border-bottom-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .tier-tag {
    background: rgba(184, 134, 11, 0.08);
    color: #b8860b;
}

/* --- AUTH / SIGNUP --- */
body.light-theme .auth-card-wide {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
    color: #0f172a;
}

body.light-theme .auth-card-header {
    color: #0f172a;
}

body.light-theme .auth-input {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #0f172a;
}

body.light-theme .auth-input:focus {
    border-color: rgba(184, 134, 11, 0.3);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.06);
}

body.light-theme .signup-overlay {
    background: rgba(250, 250, 249, 0.92);
    backdrop-filter: blur(16px);
}

body.light-theme .sso-btn-compact {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #334155;
}

body.light-theme .payment-sim-box {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .cc-number-mock {
    color: #334155;
}

/* --- PAYWALL --- */
body.light-theme .paywall-modal {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

body.light-theme .paywall-subtitle {
    color: #64748b;
}

body.light-theme .paywall-code-input {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #0f172a;
}

body.light-theme .paywall-close-btn {
    color: #94a3b8;
}

/* Overlays */
body.light-theme .detail-modal-overlay,
body.light-theme .tip-modal-overlay,
body.light-theme .paywall-overlay {
    background: rgba(250, 250, 249, 0.8);
    backdrop-filter: blur(8px);
}

body.light-theme .video-modal-content {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

body.light-theme .page-overlay {
    background: rgba(250, 250, 249, 0.5);
}

/* --- FOOTER --- */
body.light-theme .web-footer {
    background: #ffffff !important;
    border-top: 1px solid rgba(0, 0, 0, 0.04) !important;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.02);
}

body.light-theme .footer-brand-name {
    color: #0f172a;
}

body.light-theme .footer-brand-tagline {
    color: #475569;
}

body.light-theme .footer-nav-heading {
    color: #0f172a;
}

body.light-theme .footer-nav-col {
    color: #64748b;
}

body.light-theme .footer-nav-col a {
    color: #64748b;
}

body.light-theme .footer-nav-col a:hover {
    color: #b8860b;
}

body.light-theme .footer-divider {
    background: rgba(0, 0, 0, 0.04);
}

body.light-theme .footer-rg-strip {
    background: rgba(184, 134, 11, 0.04) !important;
    border: 1px solid rgba(184, 134, 11, 0.1) !important;
}

body.light-theme .footer-rg-strip span {
    color: #475569;
}

body.light-theme .footer-18plus-badge,
body.light-theme .footer-age-chip {
    background: rgba(184, 134, 11, 0.08) !important;
    color: #b8860b !important;
    border-color: rgba(184, 134, 11, 0.2) !important;
}

body.light-theme .footer-bottom-bar {
    border-top-color: rgba(0, 0, 0, 0.04) !important;
    color: #94a3b8;
    background: #fafaf9;
}

body.light-theme .footer-bottom-bar a {
    color: #64748b;
}

body.light-theme .footer-bottom-bar a:hover {
    color: #b8860b;
}

body.light-theme .footer-stat-card {
    background: #fafaf9 !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    color: #334155;
}

body.light-theme .footer-stat-value {
    color: #0f172a !important;
}

body.light-theme .footer-stat-label {
    color: #64748b;
}

body.light-theme .social-icon-link {
    color: #64748b;
    border-color: rgba(0, 0, 0, 0.06);
    background: #ffffff;
}

body.light-theme .social-icon-link:hover {
    color: #b8860b;
    background: #fdfcfa;
    border-color: rgba(184, 134, 11, 0.2);
}

body.light-theme .footer-copyright {
    color: #94a3b8;
}

body.light-theme .footer-links a {
    color: #64748b;
}

body.light-theme .footer-links a:hover,
body.light-theme .footer-links a.active {
    color: #b8860b;
}

body.light-theme .footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.04);
}

/* Footer view pages */
body.light-theme .footer-main-content h4 {
    color: #0f172a;
}

body.light-theme .footer-main-content {
    background: #fafaf9;
    color: #475569;
}

body.light-theme .footer-main-content h5 {
    color: #b8860b;
}

body.light-theme .footer-sidebar-label {
    color: #b8860b;
}

body.light-theme .footer-sidebar-text {
    color: #64748b;
}

body.light-theme .compliance-badge {
    background: rgba(0, 0, 0, 0.02);
    color: #94a3b8;
}

body.light-theme .compliance-link,
body.light-theme .compliance-logo-fallback {
    color: #94a3b8;
}

body.light-theme .footer-rg-strip {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* --- VIEWS / PAGES --- */
body.light-theme .view-header {
    border-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .view-header h3 {
    color: #b8860b;
    background: linear-gradient(135deg, #0f172a, #b8860b);
    -webkit-background-clip: text;
    background-clip: text;
}

body.light-theme .close-view-btn {
    color: #64748b;
}

body.light-theme .close-view-btn:hover {
    color: #0f172a;
}

body.light-theme .back-btn {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
    color: #0f172a;
}

/* Breadcrumbs */
body.light-theme .breadcrumb {
    color: #64748b;
}

body.light-theme .breadcrumb-home {
    color: #b8860b;
}

body.light-theme .breadcrumb-home:hover {
    color: #0f172a;
    text-shadow: none;
}

body.light-theme .breadcrumb-separator {
    color: #cbd5e1;
}

body.light-theme .breadcrumb-current {
    color: #94a3b8;
}

body.light-theme #race-breadcrumb-name {
    color: #0f172a !important;
}

/* --- TERMS / SAFER GAMBLING --- */
body.light-theme .term-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

body.light-theme .term-card:hover {
    border-color: rgba(184, 134, 11, 0.2);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.05);
}

body.light-theme .term-card h4 {
    color: #0f172a;
}

body.light-theme .terms-sidebar {
    background: #fafaf9;
    border-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .detail-modal {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

body.light-theme .detail-header h3 {
    color: #b8860b;
}

body.light-theme .detail-body p {
    color: #334155;
}

body.light-theme .detail-example {
    background: rgba(5, 150, 105, 0.04);
    border-left-color: #059669;
}

body.light-theme .detail-example strong {
    color: #059669;
}

body.light-theme .hero-promo {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .hero-promo h4 {
    color: #059669;
}

body.light-theme .safer-card,
body.light-theme .resource-item {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .safer-card h5,
body.light-theme .res-title,
body.light-theme .helpline-number {
    color: #0f172a;
}

body.light-theme .helpline-box {
    background: rgba(5, 150, 105, 0.03);
    border-color: #059669;
}

body.light-theme .helpline-label,
body.light-theme .res-arrow {
    color: #059669;
}

body.light-theme .helpline-subtext {
    color: #64748b;
}

body.light-theme .diagnostic-box {
    background: rgba(255, 69, 0, 0.02);
    border-color: rgba(255, 69, 0, 0.08);
}

body.light-theme .diagnostic-list li {
    color: #0f172a;
    border-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .checkpoint-item {
    color: #0f172a;
}

body.light-theme .line-badge {
    background: rgba(5, 150, 105, 0.08);
    color: #059669;
    border-color: rgba(5, 150, 105, 0.15);
}

body.light-theme .integrity-badge-wide {
    background: rgba(5, 150, 105, 0.03);
    border: 1px solid rgba(5, 150, 105, 0.08);
}

body.light-theme .funding-highlight {
    background: #fafaf9;
    color: #475569;
}

/* --- CALCULATOR --- */
body.light-theme .calc-input {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #0f172a;
}

body.light-theme .calc-leg-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .calc-settings-bar {
    background: #fafaf9;
    color: #475569;
}

body.light-theme .add-leg-btn {
    background: #f8f7f4;
    border: 1px solid rgba(184, 134, 11, 0.15);
    color: #b8860b;
}

/* --- CONTACT --- */
body.light-theme .contact-form-container {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

body.light-theme .contact-field {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #0f172a;
}

body.light-theme .contact-form-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .contact-submit-btn {
    background: linear-gradient(135deg, #b8860b, #996515);
    color: #fff;
}

body.light-theme .pro-contact-form input,
body.light-theme .pro-contact-form select,
body.light-theme .pro-contact-form textarea {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #0f172a;
}

body.light-theme .social-link-item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* --- AI / HOW IT WORKS --- */
body.light-theme .ai-feature-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .ai-hero {
    color: #0f172a;
}

body.light-theme .ai-badge {
    background: rgba(184, 134, 11, 0.08);
    color: #b8860b;
    border: 1px solid rgba(184, 134, 11, 0.15);
}

body.light-theme .ai-insight-box {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

body.light-theme .advantage-section {
    background: #fafaf9;
    color: #334155;
}

body.light-theme .advantage-item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .honesty-section {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .honesty-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .honesty-footer {
    background: #fafaf9;
    color: #475569;
}

body.light-theme .trust-badge {
    background: #f8f7f4;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #475569;
}

body.light-theme .safety-checkpoint {
    background: #fafaf9;
    color: #334155;
}

body.light-theme .roadmap-section {
    background: #fafaf9;
    color: #334155;
}

body.light-theme .roadmap-point {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .cta-title {
    color: #0f172a;
}

body.light-theme .punchline-text {
    color: #0f172a;
}

body.light-theme .highlight-text {
    color: #b8860b;
}

body.light-theme .hub-stat-row {
    color: #334155;
}

/* --- MISC UI ELEMENTS --- */
body.light-theme .spinner {
    border-color: rgba(0, 0, 0, 0.06);
    border-top-color: #b8860b;
}

body.light-theme .badge-chip {
    background: #f8f7f4;
    color: #475569;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-theme .meta-pill {
    background: #f8f7f4;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #475569;
}

body.light-theme .race-meta-chip {
    background: #f8f7f4;
    color: #475569;
}

body.light-theme .race-header-actions {
    color: #64748b;
}

body.light-theme .text-label {
    color: #0f172a;
}

body.light-theme .box-label {
    color: #64748b;
}

body.light-theme .race-container {
    border: none;
    background: transparent;
    box-shadow: none;
}

body.light-theme .pick-badge[style*="background: linear-gradient"] {
    background: #475569 !important;
    color: #fff;
}

body.light-theme .theme-switch {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.light-theme .theme-switch.compact .switch-knob {
    transform: translateX(16px);
}

body.light-theme .log-entry.market {
    color: #c53030;
}

body.light-theme .log-entry.discovery {
    color: #2b6cb0;
}

body.light-theme .log-time {
    color: #94a3b8;
}

body.light-theme .telemetry-header {
    color: #64748b;
}

body.light-theme .telemetry-feed {
    scrollbar-color: rgba(0, 0, 0, 0.08) transparent;
}

body.light-theme .telemetry-feed::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
}

body.light-theme .telemetry-hub {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .telemetry-col {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

/* Share & Social Buttons */
body.light-theme .dock-btn {
    color: #64748b;
    border-color: rgba(0, 0, 0, 0.06);
    background: #ffffff;
}

body.light-theme .dock-btn:hover {
    color: #b8860b;
    background: #fdfcfa;
}

body.light-theme .share-trigger-btn {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #475569;
}

body.light-theme .pro-share-btn,
body.light-theme .pro-x-btn,
body.light-theme .pro-tk-btn {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #475569;
}

body.light-theme .x-inner-btn,
body.light-theme .tk-inner-btn {
    color: #475569;
}

body.light-theme .tweet-trend-btn {
    background: #f8f7f4;
    color: #475569;
}

body.light-theme .pro-close-btn,
body.light-theme .tip-card-close-bottom,
body.light-theme .tip-modal-close-bottom,
body.light-theme .tip-modal-close-btn {
    color: #64748b;
}

body.light-theme .pro-close-btn:hover {
    color: #0f172a;
}

body.light-theme .empty-action {
    color: #475569;
}

body.light-theme .secondary-hub-btn {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #475569;
}

body.light-theme .secondary-hub-btn:hover {
    background: #fdfcfa;
    color: #b8860b;
}

/* Misc decorative */
body.light-theme .neural-ribbon {
    background: linear-gradient(90deg, transparent, rgba(184, 134, 11, 0.05), transparent);
}

body.light-theme .frame-brand {
    color: #94a3b8;
}

body.light-theme .indexing-dot {
    background: #b8860b;
}

body.light-theme .inside-track-frame {
    border-color: rgba(184, 134, 11, 0.15);
}

body.light-theme .live-stat {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

body.light-theme .live-stat .val {
    color: #0f172a;
}

body.light-theme .live-stat .label,
body.light-theme .live-stat .lab {
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.6rem;
}

body.light-theme .logo-circle {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Race Analysis */
body.light-theme .race-analysis-content {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .fact-item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .fact-value {
    color: #0f172a;
}

body.light-theme .field-summary-strip {
    background: #fafaf9;
    color: #334155;
}

body.light-theme .field-stat {
    color: #475569;
}

body.light-theme .field-stat-val {
    color: #0f172a;
}

body.light-theme .analysis-actions-bar {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #475569;
}

body.light-theme .mini-action {
    color: #475569;
}

body.light-theme .mini-action:hover {
    color: #b8860b;
}

/* Page Transition */
body.light-theme .page-transition-loader {
    background: rgba(250, 250, 249, 0.95);
}

body.light-theme .ptl-track {
    stroke: rgba(184, 134, 11, 0.08);
}

body.light-theme .ptl-runner {
    stroke: #b8860b;
    filter: drop-shadow(0 0 4px rgba(184, 134, 11, 0.25));
}

body.light-theme .ptl-brand {
    background: linear-gradient(135deg, #b8860b, #996515, #b8860b);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-theme .ptl-status {
    color: rgba(51, 65, 85, 0.35);
}

/* Coming Soon */
body.light-theme .coming-soon-container {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #475569;
}

/* Card Preview */
body.light-theme .card-preview-modal {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #0f172a;
}

body.light-theme .target-race-item {
    background: #fafaf9;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #334155;
}

body.light-theme .summary-details {
    color: #334155;
}

body.light-theme .sub-image-box {
    background: #fafaf9;
}

/* Mobile helpers */
body.light-theme .mobile-hero-image,
body.light-theme .mobile-icon-display,
body.light-theme .mobile-guide-icon {
    color: #475569;
}

/* Trophy / Socials */
body.light-theme .trophy-item {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .trophy-btn {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
}

body.light-theme .trophy-btn:hover {
    background: #b8860b;
}

/* --- LOCK OVERLAY (Premium) --- */
body.light-theme .per-card-lock-overlay {
    background:
        radial-gradient(ellipse at 50% 30%, rgba(184, 134, 11, 0.06), transparent 60%),
        radial-gradient(ellipse at 50% 80%, rgba(218, 165, 32, 0.03), transparent 50%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(250, 248, 240, 0.9) 100%);
    border: 1px solid rgba(184, 134, 11, 0.08);
}

body.light-theme .per-card-lock-overlay::before {
    background: linear-gradient(90deg, transparent, rgba(184, 134, 11, 0.3), transparent);
}

body.light-theme .intel-card.is-locked-card> :not(.per-card-lock-overlay),
body.light-theme .locked-runner-group.is-locked-card> :not(.per-card-lock-overlay),
body.light-theme .locked-runner-group>div:not(.per-card-lock-overlay) {
    filter: blur(14px) opacity(0.4) grayscale(0.3);
}

body.light-theme .per-card-lock-overlay .lock-icon {
    filter: drop-shadow(0 2px 6px rgba(184, 134, 11, 0.15));
}

body.light-theme .per-card-lock-overlay h4 {
    background: linear-gradient(135deg, #8B6914 0%, #b8860b 25%, #996515 50%, #b8860b 75%, #DAA520 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: lockShimmer 4s linear infinite;
}

body.light-theme .per-card-lock-overlay .lock-subtitle {
    color: rgba(0, 0, 0, 0.25);
}

body.light-theme .per-card-lock-overlay p {
    color: #64748b;
}

body.light-theme .per-card-lock-overlay button.lock-login-btn {
    color: #8B6914;
    border: 1px solid rgba(184, 134, 11, 0.2);
}

body.light-theme .per-card-lock-overlay button.lock-login-btn::before {
    background: linear-gradient(90deg, transparent, rgba(184, 134, 11, 0.06), transparent);
}

body.light-theme .per-card-lock-overlay button.lock-login-btn:hover {
    background: rgba(184, 134, 11, 0.04);
    border-color: rgba(184, 134, 11, 0.3);
    color: #b8860b;
    box-shadow: 0 0 16px rgba(184, 134, 11, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Live Ticker / Marquee */
body.light-theme .live-ticker-bar,
body.light-theme .marquee-container {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

/* ============================================================
   MOBILE MEGA MENU — must be at END of file to win cascade
   Single row, horizontal scroll, sticky locked meeting name
   ============================================================ */
@media (max-width: 768px) {
    .mega-menu-container {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
    }

    .mega-menu-table {
        display: block !important;
        width: max-content !important;
        min-width: 100% !important;
    }

    .mega-menu-table tbody {
        display: block !important;
    }

    .mega-menu-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        width: max-content !important;
        min-width: 100% !important;
    }

    .day-cell {
        position: sticky !important;
        left: 0 !important;
        z-index: 20 !important;
        flex-shrink: 0 !important;
        width: 72px !important;
        min-width: 72px !important;
        max-width: 72px !important;
        padding: 0 6px 0 12px !important;
        font-size: 0.48rem !important;
        letter-spacing: 0.8px !important;
        background: #0a0a0a !important;
        display: flex !important;
        align-items: center !important;
        border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    body.light-theme .day-cell {
        background: #f5f5f5 !important;
        border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
    }

    .day-cell::before {
        left: 3px !important;
        height: 10px !important;
    }

    .races-cell {
        display: flex !important;
        flex-wrap: nowrap !important;
        flex-shrink: 0 !important;
        align-items: center !important;
        gap: 0 !important;
        padding: 0 !important;
    }

    .mega-menu-table .race-btn.menu-race-btn {
        flex-shrink: 0 !important;
        min-width: 48px !important;
        padding: 0 6px !important;
        white-space: nowrap !important;
    }

    .mega-menu-table .race-btn.menu-race-btn .race-time {
        font-size: 0.62rem !important;
    }

    .mega-menu-table .race-btn.menu-race-btn .race-name {
        display: none !important;
    }

    .intelligence-filler {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════
   RACE CARD REDESIGN — March 2026
   ═══════════════════════════════════════════════════ */

/* Glassmorphic race header */
.race-header-glass {
    background: rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    flex-direction: column;
    align-items: stretch;
}

.race-header-glass .race-meta-strip {
    justify-content: flex-start;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Smaller social dock inside the header */
.social-dock-small {
    justify-content: flex-start;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.social-dock-small .dock-btns {
    gap: 5px;
}

.social-dock-small .dock-btn {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    border-radius: 6px;
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-dock-small .dock-btn:hover {
    opacity: 1;
}

.social-dock-small .dock-btn svg {
    width: 12px;
    height: 12px;
}

/* Share Tip button — top right of horse card */
.share-tip-top-right {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: auto !important;
    padding: 5px 12px;
    font-size: 0.72rem;
    white-space: nowrap;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 8px;
    color: var(--accent-gold);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.share-tip-top-right:hover {
    background: rgba(255, 215, 0, 0.18);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.12);
}

/* Badges below narrative section */
.market-badges-below-narrative {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

@media (max-width: 768px) {
    .share-tip-top-right {
        top: 8px;
        right: 8px;
        font-size: 0.65rem;
        padding: 4px 10px;
    }

    .social-dock-small .dock-btn {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
    }

    .social-dock-small .dock-btn svg {
        width: 10px;
        height: 10px;
    }
}

/* ═══════════════════════════════════════════════════════════
   PWA Install Banners
   ═══════════════════════════════════════════════════════════ */

/* --- Android / Chrome Install Banner --- */
.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 0 16px 16px;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.pwa-install-banner.pwa-install-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.pwa-install-content {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(13, 17, 23, 0.92);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 18px;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.05);
    max-width: 500px;
    margin: 0 auto;
}

.pwa-install-icon img {
    display: block;
}

.pwa-install-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pwa-install-text strong {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
}

.pwa-install-text span {
    color: var(--text-dim, #8b8fa3);
    font-size: 0.78rem;
}

.pwa-install-btn {
    background: linear-gradient(135deg, var(--accent-gold, #d4af37), #c9a84c);
    color: #000;
    border: none;
    border-radius: 10px;
    padding: 8px 20px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pwa-install-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.pwa-install-close {
    background: none;
    border: none;
    color: var(--text-dim, #8b8fa3);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s ease;
}

.pwa-install-close:hover {
    color: #fff;
}

/* --- iOS Safari Install Tooltip --- */
.pwa-ios-tooltip {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.pwa-ios-tooltip.pwa-ios-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.pwa-ios-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
}

.pwa-ios-icon {
    font-size: 1.5rem;
}

.pwa-ios-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pwa-ios-text strong {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
}

.pwa-ios-text span {
    color: var(--text-dim, #8b8fa3);
    font-size: 0.78rem;
}

.pwa-ios-close {
    background: none;
    border: none;
    color: var(--text-dim, #8b8fa3);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

.pwa-ios-close:hover {
    color: #fff;
}

.pwa-ios-arrow {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid rgba(13, 17, 23, 0.95);
    margin: 0 auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* --- COLLAPSIBLE RACE DASHBOARD --- */
.race-content-collapsible {
    display: none;
    animation: slideDownIntel 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 10px;
}

.race-content-collapsible.expanded {
    display: block !important;
}

@keyframes slideDownIntel {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.race-title-bar {
    cursor: pointer;
    transition: background 0.2s ease;
    padding: 15px;
    border-radius: 12px;
}

.race-title-bar:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

.race-title-clickable {
    display: flex;
    align-items: center;
    gap: 12px;
}

.collapse-chevron {
    font-size: 0.7rem;
    color: var(--accent-gold);
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.expanded .collapse-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

/* Non-Runner Dulling */
tr.non-runner {
    opacity: 0.6;
    filter: grayscale(100%);
}

tr.non-runner td {
    background-color: #f8fafc !important;
    color: #94a3b8 !important;
}

.dark-theme tr.non-runner td {
    background-color: #0f172a !important;
    color: #475569 !important;
}

.non-runner .badges-row {
    display: none !important;
}

.non-runner .horse-detailed-stats {
    opacity: 0.5;
}

/* --- PERFORMANCE ANALYTICS KPI CARD --- */
.performance-card {
    grid-column: 1 / -1 !important;
    /* Full width */
    background: linear-gradient(135deg, rgba(13, 17, 23, 0.8), rgba(20, 25, 35, 0.9)) !important;
    border: 1px solid rgba(0, 255, 136, 0.15) !important;
    padding: 25px !important;
    margin-bottom: 20px;
}

.perf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

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

.perf-title h4 {
    margin: 0;
    font-size: 1.2rem !important;
    background: linear-gradient(to right, #fff, var(--accent-green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.kpi-stat {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: all 0.3s ease;
}

.kpi-stat:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
}

.kpi-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    font-weight: 700;
}

.kpi-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

.kpi-value.positive {
    color: var(--accent-green);
}

.kpi-value.negative {
    color: #fe5555;
}

.kpi-value.gold {
    color: var(--accent-gold);
}

.kpi-meta {
    font-size: 0.65rem;
    color: var(--text-dim);
    margin-top: 2px;
}

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

.performance-stats-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.perf-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.perf-label {
    font-size: 0.8rem;
    color: var(--muted);
}

.perf-val {
    font-weight: 700;
    font-family: 'Outfit';
    color: var(--gold);
}

.perf-val.positive {
    color: #4CAF50;
}

.perf-val.negative {
    color: #F44336;
}

/* ═══════════════════════════════════════════════════
   FINAL MOBILE REFINEMENTS — APRIL 2024
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .market-horse-card {
        padding: 16px !important;
    }

    .horse-main-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }

    .market-name-large {
        font-size: 1.25rem !important;
    }

    .horse-bio-bar {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
        padding: 12px !important;
        background: rgba(0, 0, 0, 0.4) !important;
    }

    .market-data-visuals {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .market-odds-giant {
        font-size: 1.8rem !important;
    }

    .price-journey {
        margin-top: 0 !important;
    }

    .hero-triptych {
        grid-template-columns: 1fr !important;
    }

    .hero-panel {
        padding: 15px !important;
    }

    /* Ensure the racecard doesn't cause page overflow */
    .races-grid {
        overflow-x: hidden !important;
    }

    .race-container {
        margin: 5px 0 !important;
        padding: 0 !important;
    }

    /* Improved mobile touch targets */
    .strategy-badge {
        min-height: 44px !important;
        min-width: 100px !important;
    }

    .race-title-bar {
        padding: 12px !important;
    }

    .race-meta-chip {
        font-size: 0.65rem !important;
        padding: 3px 8px !important;
    }
}
/* --- DAILY INTELLIGENCE BRIEFING --- */
.briefing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.briefing-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 24px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.briefing-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.briefing-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at top right, var(--accent-color, rgba(255,255,255,0.1)), transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

.briefing-card .card-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-color, var(--text-dim));
    display: flex;
    align-items: center;
    gap: 6px;
}

.briefing-card .card-main-val {
    font-family: "Outfit", sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
}

.briefing-card .card-subtext {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: auto;
}

.briefing-card.nap { --accent-color: #f59e0b; }
.briefing-card.steamer { --accent-color: #ef4444; }
.briefing-card.value { --accent-color: #3b82f6; }
.briefing-card.watcher { --accent-color: #8b5cf6; }

.briefing-card .stat-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.9rem;
    font-weight: 800;
    font-family: "Outfit", sans-serif;
}

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

