/* ==========================================================================
   BANKRUPT ELON MUSK - STYLESHEET (style.css)
   Features:
    - Mission: Make Elon Musk Go Broke & Bankrupt ($889B -> $0.00)
    - Elon Meltdown & Rage Popup Engine with Comic Cussing
    - Local Caricature Image integrations (Smug, Grinning, Seething Elon)
    - Bankruptcy Destruction Gauge & Boss Phase Tracking
    - Stock Crash & Catastrophic Backfire animations
    - Interactive Activity Guide & Lo-Fi Audio Beats
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Theme Variables & Tokens
   -------------------------------------------------------------------------- */
:root {
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --color-emerald: #10b981;
    --color-emerald-dark: #059669;
    --color-red: #ef4444;
    --color-red-dark: #dc2626;
    --color-blue: #38bdf8;
    --color-purple: #a855f7;
    --color-gold: #f59e0b;
    --color-amber: #f97316;
}

/* Dark Theme (Default) - Restored Original Palette from Screenshot */
[data-theme="dark"] {
    --bg-page: #0b0d14;
    --bg-surface: #131622;
    --bg-card: #191d2c;
    --bg-card-hover: #22273b;
    --bg-subtle: #0f121c;
    
    --text-main: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-subtle: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.18);
    --border-hover: rgba(255, 255, 255, 0.3);
    
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.5);
    
    --pill-active-bg: rgba(255, 255, 255, 0.14);
    --money-pill-bg: #1c1917;
    --money-pill-border: rgba(239, 68, 68, 0.4);
    --flash-alert-bg: rgba(249, 115, 22, 0.12);
    --flash-alert-border: rgba(249, 115, 22, 0.35);
    --guide-bg: linear-gradient(135deg, #161a29 0%, #10131f 100%);
}

/* Light / Minimalist Theme */
[data-theme="light"] {
    --bg-page: #f0f4f9;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-subtle: #f8fafc;
    
    --accent-cobalt: #0047AB;
    --accent-navy: #000080;
    --accent-sky: #0284c7;
    --accent-steel: #6D8196;
    
    --eclipse-panel: #ffffff;
    --eclipse-border: #cbd5e1;
    --eclipse-text-muted: #64748b;
    
    --text-main: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.15);
    --border-hover: #0047AB;
    
    --shadow-soft: 0 2px 14px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
    
    --pill-active-bg: #0047AB;
    --money-pill-bg: #f8fafc;
    --money-pill-border: #93c5fd;
    --flash-alert-bg: #eff6ff;
    --flash-alert-border: #bfdbfe;
    --guide-bg: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

/* --------------------------------------------------------------------------
   2. Reset & Typography
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: var(--font-primary);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

.text-emerald { color: var(--color-emerald) !important; }
.text-accent { color: var(--color-gold) !important; }
.text-red { color: var(--color-red) !important; }
.text-blue { color: var(--color-blue) !important; }
.text-purple { color: var(--color-purple) !important; }
.text-amber { color: var(--color-amber) !important; }

/* --------------------------------------------------------------------------
   3. Sticky Header & Caricature Branding
   -------------------------------------------------------------------------- */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

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

.avatar-ring-wrap {
    position: relative;
}

.header-elon-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-red);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.header-elon-avatar:hover {
    transform: rotate(10deg) scale(1.1);
}

.avatar-mood-badge {
    position: absolute;
    bottom: -2px;
    right: -4px;
    font-size: 1rem;
    background: var(--bg-surface);
    border-radius: 50%;
    line-height: 1;
}

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

.brand-text h1 {
    font-size: 1.15rem;
    line-height: 1.2;
}

.version-tag {
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ef4444, #f97316);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

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

/* Minimalist Cash Display Pill (Target: $0.00) */
.money-display-pill {
    background: var(--money-pill-bg);
    border: 1px solid var(--money-pill-border);
    padding: 8px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 2px 12px rgba(239, 68, 68, 0.15);
    transition: transform 0.15s ease;
}

.money-display-pill.pulse-change {
    transform: scale(1.04);
}

.money-caption {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
    color: var(--color-red);
    display: block;
}

.money-value {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-emerald);
    line-height: 1.1;
}

.money-value.danger-low {
    color: var(--color-red) !important;
    animation: dangerPulse 1s infinite alternate;
}

@keyframes dangerPulse {
    from { transform: scale(1); text-shadow: 0 0 4px rgba(239, 68, 68, 0.4); }
    to { transform: scale(1.02); text-shadow: 0 0 14px rgba(239, 68, 68, 0.9); }
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lofi-player-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.lofi-play-btn {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
    border-radius: 50%;
    background: var(--color-emerald);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lofi-track-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lofi-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.lofi-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}

.lofi-bars .bar {
    width: 3px;
    height: 3px;
    background: var(--color-emerald);
    border-radius: 1px;
}

.lofi-bars.playing .bar:nth-child(1) { animation: barJump 0.6s infinite ease-in-out alternate; }
.lofi-bars.playing .bar:nth-child(2) { animation: barJump 0.8s infinite ease-in-out 0.2s alternate; }
.lofi-bars.playing .bar:nth-child(3) { animation: barJump 0.5s infinite ease-in-out 0.4s alternate; }

@keyframes barJump {
    from { height: 3px; }
    to { height: 12px; }
}

.icon-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
}

.icon-btn:hover {
    border-color: var(--border-strong);
    background: var(--bg-card-hover);
}

.action-btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.action-btn-danger:hover {
    background: var(--color-red);
    color: #ffffff;
}

/* Wealth Strip & Boss Phase Meter */
.wealth-strip {
    width: 100%;
    height: 32px;
    background: var(--bg-subtle);
    position: relative;
    border-top: 1px solid var(--border-subtle);
    overflow: hidden;
}

.wealth-strip-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #ef4444 100%);
    position: absolute;
    top: 0;
    left: 0;
    transition: width 0.3s ease;
}

.wealth-strip-text {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    font-size: 0.72rem;
    font-weight: 700;
}

.strip-left-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.boss-phase-badge {
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.elon-mood-bubble {
    color: var(--text-main);
    font-style: italic;
    background: rgba(0, 0, 0, 0.45);
    padding: 2px 12px;
    border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   4. Main Wrapper & Player Status Metrics Grid (Level 1)
   -------------------------------------------------------------------------- */
.main-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}

.minimal-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.metric-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.metric-box:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
}

.metric-tag {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 2px;
}

.metric-num {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   5. LEVEL 2: MAIN GAMEPLAY SYSTEMS (THE HERO 3x2 NAVIGATION)
   -------------------------------------------------------------------------- */
.gameplay-hero-section {
    margin-bottom: 16px;
}

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

.gameplay-hero-card {
    background: var(--guide-bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-soft);
}

.gameplay-hero-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.gameplay-hero-card.active {
    background: var(--pill-active-bg);
    border-color: var(--border-hover);
    box-shadow: inset 0 0 0 1px var(--border-hover);
}

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

.hero-card-icon-box {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: transform 0.2s ease;
}

.gameplay-hero-card:hover .hero-card-icon-box {
    transform: scale(1.08);
}

.hero-card-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: var(--bg-subtle);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
}

.gameplay-hero-card.active .hero-card-badge {
    background: rgba(56, 189, 248, 0.15);
    color: var(--color-blue);
    border-color: rgba(56, 189, 248, 0.3);
}

.hero-card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--text-main);
}

.hero-card-body p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.35;
    margin-bottom: 10px;
}

.hero-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-card-action {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-blue);
    transition: transform 0.15s ease;
}

.gameplay-hero-card:hover .hero-card-action {
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   6. LEVEL 3: COMPACT TUTORIAL BANNER & COLLAPSIBLE DRAWER (Secondary Helper)
   -------------------------------------------------------------------------- */
.compact-tutorial-section {
    margin-bottom: 20px;
}

.compact-tutorial-banner {
    background: var(--guide-bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-shadow: var(--shadow-card);
}

.compact-tutorial-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.compact-tutorial-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.compact-tutorial-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.compact-tutorial-title {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
}

.compact-tutorial-progress {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-gold);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.compact-tutorial-desc {
    font-size: 0.76rem;
    color: var(--text-secondary);
    margin-top: 1px;
}

.btn-toggle-guide {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--color-blue);
    padding: 5px 12px;
    border-radius: var(--radius-xs);
    font-family: var(--font-display);
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-toggle-guide:hover {
    background: var(--color-blue);
    color: #ffffff;
    border-color: var(--color-blue);
}

.guide-toggle-arrow {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

.tutorial-roadmap-drawer {
    display: block;
    max-height: 1200px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, margin-top 0.25s ease;
    margin-top: 12px;
    visibility: visible;
}

.tutorial-roadmap-drawer.collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    pointer-events: none !important;
    visibility: hidden;
}

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

.guide-step-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.guide-step-box:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
}

.guide-step-box.completed {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.05);
}

.guide-step-status {
    font-size: 1.1rem;
    line-height: 1;
}

.guide-step-info h4 {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-main);
}

.guide-step-info p {
    font-size: 0.74rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

.guide-go-btn {
    align-self: flex-start;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--color-blue);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.15s ease;
}

.guide-go-btn:hover {
    background: var(--color-blue);
    color: #ffffff;
    border-color: var(--color-blue);
}

/* --------------------------------------------------------------------------
   7. FIRST-TIME USER TUTORIAL PROMPT MODAL
   -------------------------------------------------------------------------- */
.first-time-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.first-time-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.first-time-card {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    max-width: 540px;
    width: 100%;
    padding: 28px;
    display: flex;
    gap: 20px;
    box-shadow: var(--shadow-card);
    animation: threatPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.first-time-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 2px solid var(--color-gold);
    object-fit: cover;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.4);
    flex-shrink: 0;
}

.first-time-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.first-time-pill {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--color-gold);
    text-transform: uppercase;
}

.first-time-body h2 {
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.25;
}

.first-time-body p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.first-time-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.btn-ft-show {
    background: var(--color-blue);
    border: 1px solid var(--color-blue);
    color: #0b0d14;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-ft-show:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4);
}

.btn-ft-skip {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-ft-skip:hover {
    background: var(--bg-surface);
    color: var(--text-main);
    border-color: var(--border-strong);
}

/* Tab Panes */
.tab-pane {
    display: none;
    animation: fadeInPane 0.2s ease-out;
}

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

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

/* --------------------------------------------------------------------------
   7. TAB 1: Shopping Grid & Catalog Toolbar
   -------------------------------------------------------------------------- */
.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.category-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pill {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
}

.pill:hover {
    color: var(--text-main);
    border-color: var(--border-strong);
}

.pill.active {
    background: var(--pill-active-bg);
    color: var(--text-main);
    border-color: var(--border-strong);
}

.pill[data-category="memes"].active {
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.2), rgba(239, 68, 68, 0.2));
    border-color: var(--color-amber);
    color: var(--color-amber);
}

.catalog-search-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
}

.catalog-search-wrap input {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    width: 240px;
}

.catalog-search-wrap input:focus {
    outline: none;
    border-color: var(--color-emerald);
}

.catalog-search-wrap select {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
}

/* Supply Chain Banner */
.supply-chain-banner {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.85));
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.supply-status-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-main);
}

.supply-icon {
    font-size: 1.3rem;
}

.supply-info {
    line-height: 1.4;
}

.supply-status-active {
    color: var(--color-emerald);
    font-weight: 700;
}

.supply-timer-tag {
    color: var(--color-amber);
    font-family: var(--font-display);
    font-weight: 800;
    background: rgba(245, 158, 11, 0.15);
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.supply-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-bribe-suppliers {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-bribe-suppliers:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.45);
    filter: brightness(1.1);
}

.btn-bribe-suppliers:active {
    transform: scale(0.96);
}

/* Flash Sale Alert Box */
.flash-sale-alert-box {
    background: var(--flash-alert-bg);
    border: 1px solid var(--flash-alert-border);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-amber);
    font-size: 0.82rem;
    animation: flashPulse 2s infinite ease-in-out;
}

@keyframes flashPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.005); }
}

.flash-icon {
    font-size: 1.2rem;
}

/* Items Grid */
.items-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.item-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: var(--shadow-soft);
    transition: transform 0.15s ease, border-color 0.15s ease;
    overflow: hidden;
}

.item-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
}

.item-card.is-flash-sale {
    border-color: var(--color-amber);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.2);
}

.item-card.shake-error {
    animation: shakeCard 0.3s ease;
}

@keyframes shakeCard {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.flash-sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--color-amber);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    z-index: 2;
}

.item-badge-owned {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--color-emerald);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    z-index: 2;
}

.item-header {
    text-align: center;
    margin: 14px 0 10px;
}

.item-icon-display {
    font-size: 2.5rem;
    margin-bottom: 6px;
    transition: filter 0.2s ease;
}

.item-icon-display.icon-dimmed {
    filter: grayscale(0.7) opacity(0.65);
}

.item-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.item-price {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-emerald);
}

/* Item Stock Status & Meter */
.item-stock-status-wrap {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.item-stock-badge-row {
    display: flex;
    justify-content: center;
}

.item-stock-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid transparent;
}

.item-stock-badge.stock-unlimited {
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-secondary);
    border-color: rgba(148, 163, 184, 0.25);
}

.item-stock-badge.stock-ok {
    background: rgba(16, 185, 129, 0.12);
    color: var(--color-emerald);
    border-color: rgba(16, 185, 129, 0.3);
}

.item-stock-badge.stock-low {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-amber);
    border-color: rgba(245, 158, 11, 0.4);
}

.item-stock-badge.stock-critical {
    background: rgba(239, 68, 68, 0.2);
    color: var(--color-red);
    border-color: rgba(239, 68, 68, 0.5);
    font-weight: 800;
}

.item-stock-badge.stock-sold-out {
    background: rgba(239, 68, 68, 0.25);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.6);
    font-weight: 800;
    letter-spacing: 0.5px;
}

.pulse-low-stock {
    animation: pulseLowStock 1.5s infinite ease-in-out;
}

@keyframes pulseLowStock {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.85; }
}

.pulse-sold-out {
    animation: pulseSoldOut 2s infinite ease-in-out;
}

@keyframes pulseSoldOut {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); filter: brightness(1.2); }
}

/* Mini Stock Meter */
.item-stock-meter {
    width: 100%;
    margin-top: 2px;
}

.stock-meter-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.stock-meter-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.3s ease, background 0.3s ease;
}

.stock-meter-fill.healthy {
    background: linear-gradient(90deg, #10b981, #059669);
}

.stock-meter-fill.warning {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.stock-meter-fill.critical {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.stock-meter-fill.empty {
    background: rgba(239, 68, 68, 0.3);
}

/* Out of Stock Card State */
.item-card.is-out-of-stock {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.75) 100%);
    border-color: rgba(239, 68, 68, 0.35);
}

.item-card.is-out-of-stock:hover {
    transform: none;
    border-color: rgba(239, 68, 68, 0.5);
}

.sold-out-ribbon {
    position: absolute;
    top: 16px;
    right: -28px;
    transform: rotate(45deg);
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 3px 30px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 5;
    pointer-events: none;
}

.item-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.qty-control-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.qty-btn {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.qty-btn:hover:not(:disabled) {
    background: var(--bg-card-hover);
    border-color: var(--border-strong);
}

.qty-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.qty-input {
    flex: 1;
    height: 32px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius-xs);
}

.qty-input:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.qty-quick-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.quick-qty-btn {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 0;
    border-radius: var(--radius-xs);
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}

.quick-qty-btn:hover:not(:disabled) {
    color: var(--text-main);
    background: var(--bg-card-hover);
    border-color: var(--border-strong);
}

.quick-qty-btn:active:not(:disabled) {
    transform: scale(0.96);
}

.quick-qty-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.buttons-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.btn-trade {
    padding: 8px 0;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: var(--radius-xs);
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-buy {
    background: var(--color-emerald);
    color: #ffffff;
}

.btn-buy:hover:not(:disabled) {
    background: var(--color-emerald-dark);
}

.btn-buy.btn-sold-out,
.btn-buy:disabled {
    background: rgba(239, 68, 68, 0.16);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
    cursor: not-allowed;
    opacity: 0.85;
}

.btn-buy.btn-sold-out:hover {
    background: rgba(239, 68, 68, 0.16);
    color: #f87171;
}

.btn-sell {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-sell:hover:not(:disabled) {
    background: var(--color-red);
    color: #ffffff;
}

.btn-sell:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   8. TAB 2: Sports Empire
   -------------------------------------------------------------------------- */
.section-banner {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.section-banner h2 { font-size: 1.25rem; }
.section-banner p { font-size: 0.82rem; color: var(--text-secondary); margin-top: 2px; }

.sports-summary-pill {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
}

.sports-empty-banner {
    background: var(--bg-surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    text-align: center;
    margin-top: 20px;
}

.empty-icon { font-size: 2.8rem; margin-bottom: 8px; }
.sports-empty-banner h3 { font-size: 1.15rem; margin-bottom: 4px; }
.sports-empty-banner p { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 16px; }

.sports-teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 16px;
}

.sports-franchise-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-soft);
}

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

.franchise-title-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.franchise-avatar {
    font-size: 1.8rem;
    width: 44px;
    height: 44px;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-custom-name { font-size: 1.05rem; }
.team-league-tag { font-size: 0.72rem; color: var(--text-secondary); }

.franchise-pnl-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: var(--bg-subtle);
    padding: 10px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.pnl-stat-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; display: block; }
.pnl-stat-value { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; }

.match-feed-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 0.78rem;
}

.match-feed-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 4px;
}

.latest-match-item { color: var(--text-main); font-style: italic; }

.franchise-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn-franchise-upgrade {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 8px 10px;
    border-radius: var(--radius-xs);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 2px;
}

.btn-franchise-upgrade:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-strong);
}

.btn-franchise-sell {
    grid-column: span 2;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--color-red);
    padding: 8px;
    border-radius: var(--radius-xs);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-franchise-sell:hover {
    background: var(--color-red);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   9. TAB 3: Startups & TAB 4: Dilemmas
   -------------------------------------------------------------------------- */
.startups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.startup-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    box-shadow: var(--shadow-soft);
}

.startup-card-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.startup-logo {
    font-size: 2.2rem;
    width: 50px;
    height: 50px;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.startup-meta h3 { font-size: 1.05rem; }
.startup-pitch { font-size: 0.78rem; color: var(--text-secondary); margin: 4px 0 8px; }

.startup-badges-row { display: flex; gap: 6px; }
.badge-risk { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; padding: 2px 7px; border-radius: var(--radius-full); }
.risk-low { background: rgba(16, 185, 129, 0.15); color: var(--color-emerald); }
.risk-medium { background: rgba(56, 189, 248, 0.15); color: var(--color-blue); }
.risk-high { background: rgba(249, 115, 22, 0.15); color: var(--color-amber); }
.risk-extreme { background: rgba(239, 68, 68, 0.15); color: var(--color-red); }
.badge-roi { font-size: 0.65rem; font-weight: 800; background: rgba(245, 158, 11, 0.15); color: var(--color-gold); padding: 2px 7px; border-radius: var(--radius-full); }

.incubation-status-box {
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    display: none;
}

.incubation-status-box.active { display: block; }
.incubation-header { display: flex; justify-content: space-between; font-size: 0.72rem; font-weight: 700; margin-bottom: 4px; }
.incubation-progress-track { width: 100%; height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 3px; overflow: hidden; }
.incubation-progress-fill { height: 100%; width: 0%; background: var(--color-gold); transition: width 0.9s linear; }

.invest-tiers-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.btn-invest-tier { background: var(--color-purple); color: #ffffff; border: none; padding: 7px 0; border-radius: var(--radius-xs); font-size: 0.75rem; font-weight: 700; cursor: pointer; }
.btn-invest-tier:disabled { opacity: 0.5; cursor: not-allowed; }

/* Moral Dilemmas Arena */
.dilemma-prompt-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-card);
}

.dilemma-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.dilemma-tag { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; color: var(--color-gold); background: rgba(245, 158, 11, 0.1); padding: 3px 10px; border-radius: var(--radius-full); }
.dilemma-title { font-size: 1.3rem; line-height: 1.3; }
.dilemma-context { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; background: var(--bg-subtle); padding: 14px 16px; border-radius: var(--radius-md); border-left: 3px solid var(--color-blue); margin: 12px 0 16px; }

.dilemma-choices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn-dilemma-choice { padding: 16px 18px; border-radius: var(--radius-md); border: 1px solid transparent; cursor: pointer; display: flex; flex-direction: column; gap: 4px; text-align: left; transition: transform 0.15s ease; }
.btn-dilemma-choice:hover { transform: translateY(-2px); }
.choice-yes { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.3); }
.choice-yes:hover { background: var(--color-emerald); color: #ffffff; }
.choice-no { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.3); }
.choice-no:hover { background: var(--color-red); color: #ffffff; }
.choice-btn-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.choice-btn-desc { font-size: 0.78rem; opacity: 0.85; }

.dilemma-aftermath-box { background: var(--bg-subtle); border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 18px; margin-top: 14px; display: none; animation: fadeInPane 0.3s ease-out; }
.dilemma-aftermath-box.active { display: block; }
.aftermath-headline { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.aftermath-details { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 12px; }

.dilemma-history-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 18px; }
.dilemma-history-card h3 { font-size: 1.05rem; margin-bottom: 12px; }
.dilemma-history-list { display: flex; flex-direction: column; gap: 8px; }
.history-item { font-size: 0.82rem; padding: 8px 12px; background: var(--bg-subtle); border-radius: var(--radius-sm); display: flex; justify-content: space-between; align-items: center; }
.history-empty { font-size: 0.82rem; color: var(--text-muted); font-style: italic; }

/* --------------------------------------------------------------------------
   10. TAB 5: Stock Market, Tweet Console & Catastrophic Backfires
   -------------------------------------------------------------------------- */
.stock-tweet-hub {
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-card);
}

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

.hub-avatar-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tweet-elon-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-blue);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.hub-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hub-name-row h2 { font-size: 1.2rem; }
.verified-badge {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(56, 189, 248, 0.15);
    color: var(--color-blue);
    padding: 2px 7px;
    border-radius: var(--radius-full);
}

.hub-info p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.tweet-actions-toolbar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.tweet-trigger-btn {
    background: linear-gradient(135deg, #38bdf8 0%, #a855f7 50%, #f97316 100%);
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tweet-trigger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
}

.tweet-presets-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tweet-preset-btn {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: var(--radius-xs);
    cursor: pointer;
}

.tweet-preset-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-strong);
}

/* Live Dynamic Tweet Card */
.live-tweet-card-v2 {
    background: var(--bg-subtle);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.tweet-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tweet-feed-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--color-blue);
}

.tweet-name-line {
    font-size: 0.85rem;
}

.verified-pill {
    color: var(--color-blue);
    font-weight: bold;
}

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

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

.tweet-location {
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: block;
}

.tweet-body-text {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.45;
    font-weight: 500;
}

/* Market Impact Pill */
.tweet-market-impact-pill {
    padding: 6px 12px;
    border-radius: var(--radius-xs);
    font-size: 0.78rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
}

.impact-pump {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-emerald);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.impact-crash {
    background: rgba(239, 68, 68, 0.2);
    color: var(--color-red);
    border: 1px solid rgba(239, 68, 68, 0.5);
    animation: pulseCrash 1s infinite alternate;
}

@keyframes pulseCrash {
    from { box-shadow: 0 0 5px rgba(239, 68, 68, 0.3); }
    to { box-shadow: 0 0 16px rgba(239, 68, 68, 0.6); }
}

.tweet-engagement-row {
    display: flex;
    gap: 16px;
    font-size: 0.72rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
    padding-top: 8px;
}

/* Screen Panic Shake for Backfires */
.screen-panic-shake {
    animation: screenShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes screenShake {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(3px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-5px, 0, 0); }
    40%, 60% { transform: translate3d(5px, 0, 0); }
}

/* Stocks Grid */
.stocks-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.stock-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    box-shadow: var(--shadow-soft);
}

.stock-header { display: flex; justify-content: space-between; align-items: flex-start; }
.stock-ticker-tag { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; }
.stock-company-name { font-size: 0.75rem; color: var(--text-secondary); }
.stock-change-pill { font-size: 0.72rem; font-weight: 700; padding: 2px 6px; border-radius: var(--radius-full); }
.pill-up { background: rgba(16, 185, 129, 0.15); color: var(--color-emerald); }
.pill-down { background: rgba(239, 68, 68, 0.15); color: var(--color-red); }

.stock-current-price { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; }
.stock-shares-owned-label { font-size: 0.75rem; color: var(--text-secondary); }

.stock-trade-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.btn-stock-trade { padding: 6px 0; font-size: 0.8rem; font-weight: 700; border-radius: var(--radius-xs); border: none; cursor: pointer; }
.btn-stock-buy { background: var(--color-emerald); color: #ffffff; }
.btn-stock-sell { background: rgba(239, 68, 68, 0.15); color: var(--color-red); border: 1px solid rgba(239, 68, 68, 0.3); }
.btn-stock-trade:disabled { background: var(--bg-subtle); color: var(--text-muted); border: 1px solid var(--border-subtle); cursor: not-allowed; }

.portfolio-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
}

.portfolio-card h3 { font-size: 1.05rem; margin-bottom: 12px; }
.minimal-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; text-align: left; }
.minimal-table th { padding: 8px 12px; border-bottom: 1px solid var(--border-subtle); color: var(--text-muted); font-weight: 600; text-transform: uppercase; font-size: 0.7rem; }
.minimal-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-subtle); }

/* --------------------------------------------------------------------------
   11. TAB 6: Receipt & TAB 7: Achievements
   -------------------------------------------------------------------------- */
.receipt-wrapper { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 20px 0; }
.receipt-sheet { background: #ffffff; color: #0f172a; width: 100%; max-width: 480px; padding: 28px; border-radius: 4px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); font-family: var(--font-mono); }
.receipt-top { text-align: center; margin-bottom: 10px; }
.receipt-logo-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid #0f172a; margin-bottom: 6px; }
.receipt-top h2 { font-size: 1.25rem; color: #0f172a; font-family: var(--font-display); }
.receipt-subline { font-size: 0.75rem; color: #64748b; }
.receipt-date-line { font-size: 0.7rem; color: #94a3b8; }
.receipt-dashes { color: #cbd5e1; text-align: center; margin: 6px 0; }
.receipt-body { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; max-height: 360px; overflow-y: auto; }
.receipt-item-row { display: flex; justify-content: space-between; font-size: 0.8rem; }
.receipt-summary-block { display: flex; flex-direction: column; gap: 4px; }
.summary-line { display: flex; justify-content: space-between; font-size: 0.8rem; font-weight: 600; }
.grand-total-line { font-size: 1rem; font-weight: 800; color: #047857; border-top: 1px dashed #94a3b8; border-bottom: 1px dashed #94a3b8; padding: 4px 0; }
.receipt-bottom { text-align: center; margin-top: 16px; font-size: 0.7rem; color: #64748b; }
.barcode { font-size: 1.1rem; letter-spacing: 0.12em; margin-top: 6px; font-weight: bold; color: #334155; }

.action-btn-outline {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.action-btn-outline:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.action-btn-primary {
    background: var(--color-emerald);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.action-btn-primary:hover {
    background: var(--color-emerald-dark);
}

/* Achievements */
.achieve-progress-pill { background: var(--bg-surface); border: 1px solid var(--border-subtle); padding: 6px 14px; border-radius: var(--radius-full); font-size: 0.8rem; color: var(--color-gold); font-weight: 700; }
.active-perks-box { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 16px; margin-bottom: 20px; }
.perks-title { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.perks-title h4 { font-size: 0.95rem; color: var(--color-emerald); }
.perks-tags-list { display: flex; flex-wrap: wrap; gap: 8px; }
.perk-pill { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.3); color: var(--text-main); font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-full); display: inline-flex; align-items: center; gap: 4px; }
.no-perks-text { font-size: 0.8rem; color: var(--text-muted); font-style: italic; }

.achievements-grid-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.achievement-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 14px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; opacity: 0.55; filter: grayscale(70%); }
.achievement-card.unlocked { opacity: 1; filter: grayscale(0%); border-color: rgba(245, 158, 11, 0.4); background: var(--bg-card); }
.achievement-main { display: flex; gap: 12px; align-items: flex-start; }
.achievement-icon { font-size: 1.8rem; width: 42px; height: 42px; background: var(--bg-subtle); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.achievement-details h4 { font-size: 0.95rem; margin-bottom: 2px; }
.achievement-details p { font-size: 0.75rem; color: var(--text-secondary); }
.achievement-bonus-box { background: var(--bg-subtle); border-radius: var(--radius-xs); padding: 6px 10px; display: flex; justify-content: space-between; font-size: 0.72rem; }
.bonus-label { font-weight: 700; color: var(--color-gold); }
.achievement-status-tag { font-weight: 700; text-transform: uppercase; color: var(--text-muted); }
.achievement-card.unlocked .achievement-status-tag { color: var(--color-emerald); }

/* --------------------------------------------------------------------------
   12. Floating Elon Companion
   -------------------------------------------------------------------------- */
.floating-elon-companion {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    cursor: pointer;
}

.companion-avatar-img {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-gold);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    animation: elonBob 3s infinite ease-in-out alternate;
}

@keyframes elonBob {
    from { transform: translateY(0); }
    to { transform: translateY(-6px); }
}

.companion-bubble {
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 0.78rem;
    font-weight: 600;
    max-width: 220px;
    color: var(--text-main);
    box-shadow: var(--shadow-card);
    position: relative;
    animation: popBubble 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.companion-bubble::after {
    content: "";
    position: absolute;
    bottom: 12px;
    left: -6px;
    width: 10px;
    height: 10px;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-strong);
    border-bottom: 1px solid var(--border-strong);
    transform: rotate(45deg);
}

@keyframes popBubble {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

/* --------------------------------------------------------------------------
   13. ELON RAGE & MELTDOWN POPUP MODAL (Hilarious cussing & screaming)
   -------------------------------------------------------------------------- */
.elon-rage-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.elon-rage-overlay.active {
    display: flex;
    animation: ragePopIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes ragePopIn {
    0% { transform: scale(0.6) rotate(-8deg); opacity: 0; }
    70% { transform: scale(1.05) rotate(2deg); opacity: 1; }
    100% { transform: scale(1) rotate(0); }
}

.elon-rage-card {
    background: var(--bg-surface);
    border: 3px solid var(--color-red);
    border-radius: var(--radius-lg);
    max-width: 520px;
    width: 100%;
    padding: 0;
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.6), inset 0 0 20px rgba(239, 68, 68, 0.1);
    overflow: hidden;
    position: relative;
}

.rage-header-strip {
    background: linear-gradient(90deg, #dc2626, #ef4444, #b91c1c);
    color: #ffffff;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: hazardFlash 1s infinite alternate;
}

@keyframes hazardFlash {
    from { background: linear-gradient(90deg, #dc2626, #ef4444, #b91c1c); }
    to { background: linear-gradient(90deg, #b91c1c, #991b1b, #ef4444); }
}

.rage-siren {
    font-size: 1.3rem;
    animation: sirenBounce 0.5s infinite alternate;
}

@keyframes sirenBounce {
    from { transform: scale(0.9); }
    to { transform: scale(1.3); }
}

.rage-body-content {
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.rage-avatar-box {
    position: relative;
    flex-shrink: 0;
}

.rage-elon-img {
    width: 105px;
    height: 105px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-red);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.7);
    animation: elonSeethe 0.2s infinite alternate;
}

@keyframes elonSeethe {
    0% { transform: translate(-2px, -2px) rotate(-3deg); filter: drop-shadow(0 0 6px red); }
    100% { transform: translate(2px, 2px) rotate(3deg); filter: drop-shadow(0 0 16px red); }
}

.rage-steam-cloud {
    position: absolute;
    top: -12px;
    right: -8px;
    font-size: 1.1rem;
    animation: steamRise 1s infinite ease-out;
}

@keyframes steamRise {
    0% { transform: translateY(0) scale(0.8); opacity: 0.8; }
    100% { transform: translateY(-10px) scale(1.2); opacity: 0.2; }
}

.rage-speech-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rage-speech-bubble {
    background: #ffffff;
    color: #0f172a;
    border: 2px solid var(--color-red);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.4;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.rage-speech-bubble::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 30px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 10px solid var(--color-red);
}

.rage-speech-bubble strong {
    color: #dc2626;
}

.rage-loss-stat {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--color-gold);
    background: rgba(245, 158, 11, 0.1);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(245, 158, 11, 0.3);
    width: fit-content;
}

.rage-actions-row {
    padding: 0 20px 18px;
    display: flex;
    justify-content: flex-end;
}

.action-btn-rage {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
}

.action-btn-rage:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 24px rgba(239, 68, 68, 0.7);
}

/* --------------------------------------------------------------------------
   14. ULTIMATE BANKRUPTCY VICTORY MODAL ($0.00 / >= 99% Burned)
   -------------------------------------------------------------------------- */
.victory-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 100001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.victory-overlay.active {
    display: flex;
    animation: victoryPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes victoryPop {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.victory-card {
    background: var(--bg-surface);
    border: 3px solid var(--color-gold);
    border-radius: var(--radius-lg);
    max-width: 560px;
    width: 100%;
    padding: 28px;
    text-align: center;
    box-shadow: 0 0 50px rgba(245, 158, 11, 0.5);
}

.victory-icon-trophy {
    font-size: 3.5rem;
    margin-bottom: 8px;
    animation: trophyBounce 1s infinite alternate ease-in-out;
}

@keyframes trophyBounce {
    from { transform: translateY(0) scale(1); }
    to { transform: translateY(-8px) scale(1.1); }
}

.victory-card h2 {
    font-size: 1.6rem;
    color: var(--color-gold);
    font-weight: 900;
}

.victory-subtitle {
    font-size: 1.1rem;
    color: var(--color-red);
    margin: 4px 0 10px;
}

.victory-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.victory-elon-box {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
}

.victory-elon-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-red);
    flex-shrink: 0;
}

.victory-elon-quote {
    font-size: 0.8rem;
    color: var(--text-main);
    font-style: italic;
    line-height: 1.4;
}

.victory-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.victory-stat-box {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    padding: 10px 8px;
    border-radius: var(--radius-sm);
}

.victory-stat-box span {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.victory-stat-box strong {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--color-gold);
}

/* --------------------------------------------------------------------------
   15. Micro-Toast Stack & Reset Modal
   -------------------------------------------------------------------------- */
.micro-toast-stack {
    position: fixed;
    bottom: 18px;
    right: 18px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}

.micro-toast {
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    color: var(--text-main);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    pointer-events: auto;
    animation: microToastSlide 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes microToastSlide {
    from { transform: translateY(12px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.micro-toast-success { border-color: var(--color-emerald); color: var(--color-emerald); }
.micro-toast-error { border-color: var(--color-red); color: var(--color-red); }
.micro-toast-gold { border-color: var(--color-gold); color: var(--color-gold); }

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active { display: flex; animation: fadeInPane 0.15s ease-out; }
.minimal-modal { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); max-width: 400px; width: 100%; padding: 24px; text-align: center; box-shadow: var(--shadow-card); }
.modal-icon-badge { font-size: 2.2rem; margin-bottom: 8px; }
.minimal-modal h3 { font-size: 1.2rem; margin-bottom: 6px; }
.minimal-modal p { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 18px; }
.modal-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.team-input-group {
    text-align: left;
    margin-bottom: 16px;
}

.team-input-group label {
    font-size: 0.75rem;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
    color: var(--text-secondary);
}

.team-input-group input {
    width: 100%;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   16. ZERO-BRAIN GAMBLE, MEME STOCKS & PROPAGANDA WARFARE STYLES
   -------------------------------------------------------------------------- */
.gamble-hero-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.gamble-summary-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pr-shield-pill, .rival-damage-pill {
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
}

.gamble-subnav-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 12px;
    overflow-x: auto;
}

.gamble-subnav-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.gamble-subnav-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-main);
    border-color: var(--border-hover);
}

.gamble-subnav-btn.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(239, 68, 68, 0.18) 100%);
    border-color: var(--color-gold);
    color: var(--color-gold);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}

.gamble-subview-panel {
    display: none;
    animation: fadeInPane 0.2s ease-out;
}

.gamble-subview-panel.active {
    display: block;
}

/* Blind Gamble Hero Card */
.blind-gamble-hero-card {
    background: linear-gradient(135deg, #1b1627 0%, #121422 100%);
    border: 2px solid rgba(245, 158, 11, 0.4);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
}

.blind-gamble-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.gamble-badge-flash {
    background: linear-gradient(90deg, #ef4444 0%, #f97316 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    animation: pulseFlash 2s infinite ease-in-out;
}

@keyframes pulseFlash {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(0.98); }
}

.gamble-subtext {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.blind-bet-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.blind-bet-presets {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bet-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-right: 4px;
}

.btn-bet-preset {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-bet-preset:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.btn-bet-preset.active {
    background: var(--color-gold);
    color: #000;
    border-color: var(--color-gold);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.btn-bet-preset.btn-yolo {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border-color: #ef4444;
}

.btn-bet-preset.btn-yolo.active {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.6);
}

.btn-execute-blind-bet {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: #000;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 900;
    border: none;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.4);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.02em;
}

.btn-execute-blind-bet:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.6);
}

.btn-execute-blind-bet:active {
    transform: scale(0.98);
}

/* Outcome Stage */
.bet-outcome-stage {
    min-height: 110px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.stage-placeholder {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.placeholder-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 4px;
}

.stage-spinning {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
}

.spinning-roulette-icon {
    font-size: 2.5rem;
    animation: spinGamble 0.5s infinite linear;
}

@keyframes spinGamble {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spinning-text h4 {
    font-size: 0.95rem;
    color: var(--color-gold);
    margin-bottom: 2px;
}

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

.outcome-card {
    width: 100%;
    text-align: left;
    padding: 4px 6px;
}

.outcome-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.outcome-tag {
    font-size: 0.8rem;
    font-weight: 900;
}

.outcome-amt {
    font-size: 1.15rem;
    font-family: var(--font-display);
    font-weight: 800;
}

.outcome-card h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.outcome-desc {
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 6px;
    line-height: 1.4;
}

.outcome-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Propaganda Shield Card */
.propaganda-shield-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-card);
}

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

.shield-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.shield-big-icon {
    font-size: 2.2rem;
}

.shield-meter-box {
    text-align: right;
}

.shield-meter-num {
    font-size: 1.8rem;
    font-family: var(--font-display);
    font-weight: 900;
    color: var(--color-gold);
    display: block;
    line-height: 1;
}

.shield-meter-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.shield-bar-track {
    width: 100%;
    height: 12px;
    background: var(--bg-subtle);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--border-subtle);
}

.shield-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444 0%, #f59e0b 50%, #10b981 100%);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.shield-perks-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}

.shield-perk-item {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.76rem;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.shield-perk-item.active {
    opacity: 1;
    border-color: var(--color-gold);
    background: rgba(245, 158, 11, 0.1);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
}

.shield-perk-item span {
    font-weight: 800;
    display: block;
    margin-bottom: 2px;
}

.shield-perk-item small {
    color: var(--text-secondary);
    font-size: 0.7rem;
}

.whitewash-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.whitewash-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 16px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.whitewash-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

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

.whitewash-icon {
    font-size: 1.8rem;
}

.whitewash-card-head h4 {
    font-size: 0.9rem;
    margin: 0;
}

.whitewash-boost {
    font-size: 0.72rem;
    color: var(--color-emerald);
    font-weight: 700;
}

.whitewash-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.35;
}

.btn-whitewash-exec {
    background: var(--bg-subtle);
    border: 1px solid var(--border-strong);
    color: var(--color-gold);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-whitewash-exec:hover {
    background: var(--color-gold);
    color: #000;
}

/* Rival Sabotage Dossiers */
.rival-sabotage-section {
    margin-top: 24px;
}

.rival-dossiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
    margin-top: 14px;
}

.rival-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.rival-card:hover {
    border-color: var(--border-hover);
}

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

.rival-info-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rival-avatar-badge {
    font-size: 1.8rem;
}

.rival-name {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}

.rival-rep-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.rival-networth-badge {
    font-size: 0.8rem;
    font-family: var(--font-display);
    font-weight: 800;
}

.rival-rep-track {
    width: 100%;
    height: 8px;
    background: var(--bg-subtle);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid var(--border-subtle);
}

.rival-rep-fill {
    height: 100%;
    background: var(--color-red);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.rival-sabotage-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.btn-sabotage-action {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.btn-sabotage-action:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.12);
    border-color: var(--color-red);
    color: var(--color-red);
    transform: translateX(2px);
}

.btn-sabotage-action:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-sabotage-action span {
    font-size: 0.78rem;
    font-weight: 700;
}

.btn-sabotage-action small {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.btn-add-hundred {
    background: var(--bg-surface);
}

/* --------------------------------------------------------------------------
   17. CEO ONBOARDING MODAL & CONTRACT THEME
   -------------------------------------------------------------------------- */
.brand-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.ceo-badge-pill {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(239, 68, 68, 0.2) 100%);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ceo-badge-pill:hover {
    transform: scale(1.05);
    background: var(--color-gold);
    color: #000;
}

.lofi-nav-btn {
    font-size: 0.75rem;
    padding: 4px 6px;
}

.lofi-track-info {
    cursor: pointer;
    user-select: none;
}

.ceo-onboarding-overlay {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
}

.ceo-contract-card {
    background: linear-gradient(135deg, #181926 0%, #11121d 100%);
    border: 2px solid var(--color-gold);
    border-radius: var(--radius-lg);
    max-width: 580px;
    width: 100%;
    padding: 28px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(245, 158, 11, 0.2);
    animation: contractSlide 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes contractSlide {
    from { transform: translateY(30px) scale(0.92); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.contract-stamp {
    position: absolute;
    top: 20px;
    right: 24px;
    border: 2px dashed #ef4444;
    color: #ef4444;
    font-family: var(--font-mono);
    font-weight: 900;
    font-size: 0.75rem;
    padding: 3px 8px;
    transform: rotate(6deg);
    letter-spacing: 0.1em;
}

.contract-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.contract-elon-img {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-gold);
    object-fit: cover;
    background: #000;
}

.contract-badge {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--color-gold);
    display: block;
    margin-bottom: 2px;
}

.contract-header h2 {
    font-size: 1.15rem;
    margin: 0;
    line-height: 1.2;
}

.contract-sub {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin: 0;
}

.contract-dialogue-bubble {
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--text-main);
    margin-bottom: 18px;
    position: relative;
    border-left: 4px solid var(--color-gold);
}

.contract-inputs-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.input-field-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.input-field-wrap label {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.input-field-wrap input, .input-field-wrap select {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

.input-field-wrap input:focus, .input-field-wrap select:focus {
    border-color: var(--color-gold);
    outline: none;
}

.contract-perks-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.btn-sign-contract {
    width: 100%;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: #000;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 900;
    border: none;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-sign-contract:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.6);
}

/* --------------------------------------------------------------------------
   18. SPORTS FRANCHISE SYSTEM WITH MORALE & OVERBUDGET METERS
   -------------------------------------------------------------------------- */
.sports-teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 20px;
    margin-top: 18px;
}

.sports-franchise-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.2s ease;
}

.sports-franchise-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

.franchise-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.franchise-title-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.franchise-avatar {
    font-size: 2.2rem;
}

.team-custom-name {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
}

.team-league-tag {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.pulse-alarm {
    animation: pulseAlarm 1s infinite alternate ease-in-out;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--color-red);
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

@keyframes pulseAlarm {
    from { opacity: 0.7; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1.03); }
}

.sports-meters-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
}

.sports-meter-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meter-label-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 700;
}

.meter-bar-track {
    width: 100%;
    height: 7px;
    background: var(--bg-surface);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.meter-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.3s ease, background-color 0.3s ease;
}

.franchise-pnl-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 8px;
    text-align: center;
}

.pnl-stat-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.pnl-stat-value {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 800;
}

.match-feed-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
}

.match-feed-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.latest-match-item {
    font-size: 0.8rem;
    line-height: 1.35;
    margin: 0;
}

.franchise-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn-franchise-peptalk {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    border: none;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: all 0.2s ease;
}

.btn-franchise-peptalk:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-franchise-upgrade {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-franchise-upgrade:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.btn-franchise-sell {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid var(--color-red);
    color: var(--color-red);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-franchise-sell:hover {
    background: var(--color-red);
    color: #fff;
}

/* --------------------------------------------------------------------------
   19. OFFICIAL CHAPTER 11 BANKRUPTCY AUDIT & RECEIPT ENHANCEMENTS
   -------------------------------------------------------------------------- */
.receipt-wrapper {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.receipt-sheet {
    background: #fdfdfd;
    color: #111827;
    font-family: var(--font-mono);
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    padding: 28px 24px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.bankruptcy-red-stamp {
    position: absolute;
    top: 30px;
    right: 20px;
    border: 3px solid #dc2626;
    color: #dc2626;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.1rem;
    padding: 6px 14px;
    transform: rotate(12deg);
    text-align: center;
    line-height: 1.1;
    opacity: 0.9;
    letter-spacing: 0.05em;
    pointer-events: none;
}

.bankruptcy-red-stamp span {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.receipt-top h2 {
    font-size: 1.15rem;
    color: #0f172a;
    margin-bottom: 2px;
}

.receipt-subline {
    font-size: 0.75rem;
    color: #475569;
    font-weight: 700;
    margin-bottom: 4px;
}

.receipt-ceo-endorse {
    font-size: 0.78rem;
    color: #1e293b;
    margin-bottom: 4px;
}

.receipt-date-line {
    font-size: 0.75rem;
    color: #64748b;
}

.receipt-category-header {
    font-size: 0.78rem;
    font-weight: 900;
    color: #0f172a;
    background: #f1f5f9;
    padding: 4px 8px;
    margin: 10px 0 6px;
    letter-spacing: 0.04em;
    border-left: 3px solid #0f172a;
}

.receipt-body, .receipt-investments-breakdown {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8rem;
}

.receipt-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
}

.receipt-summary-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 14px 0;
    font-size: 0.84rem;
}

.grand-total-line {
    font-weight: 900;
    font-size: 0.98rem;
    border-top: 1px solid #cbd5e1;
    border-bottom: 1px solid #cbd5e1;
    padding: 6px 0;
}

.remaining-cash-line {
    font-weight: 900;
    font-size: 0.95rem;
}

.receipt-signatures-row {
    display: flex;
    justify-content: space-between;
    margin: 16px 0 10px;
}

.sig-box {
    border-top: 1px solid #94a3b8;
    padding-top: 4px;
    width: 45%;
    text-align: center;
}

.sig-line {
    font-size: 0.7rem;
    color: #475569;
}

.receipt-actions-toolbar {
    width: 100%;
}

.receipt-actions-toolbar .action-btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 800;
    border-radius: var(--radius-md);
    cursor: pointer;
}

/* Footer */
.minimal-footer {
    max-width: 1280px;
    margin: 30px auto 16px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   19. DEDICATED @MEDIA PRINT STYLES FOR CLEAN PDF AUDIT EXPORT
   -------------------------------------------------------------------------- */
@media print {
    @page {
        size: auto;
        margin: 10mm;
    }

    body {
        background: #ffffff !important;
        color: #000000 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Hide every single UI element except the receipt */
    header,
    nav,
    .activity-guide-card,
    .section-banner,
    .floating-elon-companion,
    .micro-toast-stack,
    .modal-overlay,
    .receipt-actions-toolbar,
    .minimal-footer,
    #shop-tab,
    #sports-tab,
    #gamble-tab,
    #dilemmas-tab,
    #achievements-tab {
        display: none !important;
    }

    #receipt-tab {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .receipt-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .receipt-sheet {
        border: 2px solid #000000 !important;
        box-shadow: none !important;
        width: 100% !important;
        background: #ffffff !important;
        color: #000000 !important;
        padding: 20px !important;
        page-break-inside: avoid;
    }

    .bankruptcy-red-stamp {
        border-color: #dc2626 !important;
        color: #dc2626 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .receipt-category-header {
        background: #e2e8f0 !important;
        color: #000000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* =============================================================================
   GAMBLE SUBNAV & VARIABLE GAMBLING SUITE
   ============================================================================= */

.gamble-subnav-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    scrollbar-width: thin;
}

.gamble-subnav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.gamble-subnav-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.gamble-subnav-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.gamble-subview-panel {
    display: none;
    animation: fadeInTab 0.25s ease forwards;
}

.gamble-subview-panel.active {
    display: block;
}

/* Custom Bet Input */
.custom-bet-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
    padding: 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.custom-bet-flex {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-currency-prefix {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-gold);
}

.custom-bet-flex input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
}

.btn-custom-bet-apply {
    padding: 10px 16px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-custom-bet-apply:hover {
    filter: brightness(1.15);
}

.custom-bet-status {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =============================================================================
   STARSHIP ROCKET CRASH MULTIPLIER GAME
   ============================================================================= */

.rocket-crash-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.rocket-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 14px;
}

.rocket-title-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rocket-badge-icon {
    font-size: 2rem;
}

.rocket-history-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.rocket-hist-pill {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
}

.hist-crash { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.hist-win { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.hist-mega { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); box-shadow: 0 0 8px rgba(245, 158, 11, 0.3); }

.rocket-arena-display {
    position: relative;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #090c19;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rocket-arena-display canvas {
    width: 100%;
    height: 260px;
    display: block;
}

.rocket-multiplier-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.rocket-mult-number {
    display: block;
    font-size: 3.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.9);
}

.rocket-mult-caption {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.rocket-betting-controls {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rocket-presets-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-rocket-preset {
    padding: 8px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-rocket-preset.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.rocket-custom-input {
    width: 120px;
    padding: 8px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
}

.rocket-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.btn-launch-rocket {
    padding: 16px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
    transition: var(--transition-fast);
}

.btn-launch-rocket:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-cashout-rocket {
    padding: 16px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
    transition: var(--transition-fast);
}

.btn-cashout-rocket:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.btn-launch-rocket:disabled, .btn-cashout-rocket:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* =============================================================================
   DOGE VEGAS SLOTS
   ============================================================================= */

.slots-game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

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

.slots-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.slots-jackpot-pill {
    padding: 8px 16px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
}

.slot-machine-cabinet {
    background: linear-gradient(180deg, #1e1b4b, #0f172a);
    border: 3px solid #f59e0b;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.25);
    text-align: center;
}

.slot-reels-window {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.slot-reel {
    width: 110px;
    height: 120px;
    background: #ffffff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
    border: 2px solid #cbd5e1;
}

.slot-symbol {
    font-size: 3.5rem;
}

.slot-win-banner {
    padding: 10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-md);
    color: #f59e0b;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.slots-controls-bar {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.slots-bet-select {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-slot-preset {
    padding: 8px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
}

.btn-slot-preset.active {
    background: #f59e0b;
    color: #000000;
    border-color: #f59e0b;
}

.btn-spin-slots {
    padding: 14px 28px;
    background: linear-gradient(135deg, #ec4899, #be185d);
    border: none;
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.4);
    transition: var(--transition-fast);
}

.btn-spin-slots:hover {
    transform: scale(1.03);
}

.slots-paytable-row {
    margin-top: 16px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =============================================================================
   MARS 50/50 COIN FLIP
   ============================================================================= */

.coinflip-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

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

.coinflip-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    perspective: 1000px;
}

.coin-3d {
    width: 120px;
    height: 120px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s ease-in-out;
}

.coin-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
    border: 4px solid #f59e0b;
}

.coin-front {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #000;
}

.coin-back {
    background: linear-gradient(135deg, #38bdf8, #0284c7);
    color: #fff;
    transform: rotateY(180deg);
}

.coin-3d.flipping-anim {
    animation: coinSpin3D 1s infinite linear;
}

@keyframes coinSpin3D {
    0% { transform: rotateY(0deg) scale(1); }
    50% { transform: rotateY(540deg) scale(1.3); }
    100% { transform: rotateY(1080deg) scale(1); }
}

.coinflip-outcome-text {
    margin-top: 18px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.coinflip-controls {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.coin-side-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-coin-side {
    padding: 14px;
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-coin-side.active {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.coinflip-bets-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-coin-preset {
    padding: 8px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
}

.btn-coin-preset.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.btn-flip-coin {
    padding: 16px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    border: none;
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
    transition: var(--transition-fast);
}

.btn-flip-coin:hover {
    transform: translateY(-2px);
}

/* =============================================================================
   DYNAMIC STOCK PRICE GRAPH DROPDOWN & CANVAS
   ============================================================================= */

.stock-chart-section-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
}

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

.chart-title-select-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stock-chart-select {
    padding: 10px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.chart-active-stat-box {
    text-align: right;
}

.chart-stat-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-stat-price {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-primary);
}

.chart-timeframe-pills {
    display: flex;
    gap: 4px;
    background: var(--bg-surface);
    padding: 4px;
    border-radius: var(--radius-md);
}

.chart-tf-btn {
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
}

.chart-tf-btn.active {
    background: var(--primary);
    color: #ffffff;
}

.chart-canvas-wrapper {
    position: relative;
    width: 100%;
    background: #0f121d;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.chart-canvas-wrapper canvas {
    width: 100%;
    height: 280px;
    display: block;
}

.chart-trade-strip {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
}

.trade-strip-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-trade-batch {
    padding: 6px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-trade-batch:hover {
    background: var(--primary);
    color: #fff;
}

.btn-buy-max {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.4);
}

.btn-sell-batch {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.btn-sell-max {
    background: rgba(239, 68, 68, 0.25);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
}

/* =============================================================================
   UNDERGROUND GOSSIP & REPUTATION DAMAGE WAR ROOM
   ============================================================================= */

.gossip-locked-card {
    background: var(--bg-card);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    text-align: center;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.1);
}

.locked-icon-shield {
    font-size: 3.5rem;
    margin-bottom: 12px;
}

.locked-subtext {
    max-width: 600px;
    margin: 10px auto 24px;
    color: var(--text-muted);
    line-height: 1.6;
}

.unlock-progress-box {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.25);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.unlock-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.unlock-progress-track {
    height: 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 10px;
}

.unlock-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #f59e0b);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.unlock-hint {
    font-size: 0.8rem;
    color: var(--color-gold);
    display: block;
}

.gossip-active-room {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.gossip-header-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.gossip-badge-pill {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.reputation-meter-card {
    min-width: 220px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-align: center;
}

.rep-card-num {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-primary);
}

.rep-status-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.rep-bar-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.rep-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.rep-bar-fill.healthy { background: #10b981; }
.rep-bar-fill.warning { background: #f59e0b; }
.rep-bar-fill.critical { background: #ef4444; }

.gossip-consequences-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.consequence-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.con-icon {
    font-size: 1.6rem;
}

.gossip-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.gossip-dossier-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    transition: var(--transition-fast);
}

.gossip-dossier-card:hover {
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
}

.gossip-card-top {
    display: flex;
    gap: 12px;
}

.gossip-icon-badge {
    font-size: 2rem;
}

.gossip-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: #ef4444;
    text-transform: uppercase;
    display: block;
}

.gossip-damage-stat {
    font-size: 0.85rem;
    color: #ef4444;
}

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

.btn-execute-gossip {
    padding: 12px;
    background: linear-gradient(135deg, #b91c1c, #7f1d1d);
    border: none;
    border-radius: var(--radius-md);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-execute-gossip:hover {
    filter: brightness(1.15);
}

/* =============================================================================
   MORAL DILEMMAS FIXES & AFTERMATH ACTION
   ============================================================================= */

.dilemma-prompt-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-card);
}

.dilemma-choices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

.btn-dilemma-choice {
    padding: 20px;
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition-fast);
}

.choice-yes {
    border-color: rgba(16, 185, 129, 0.4);
}

.choice-yes:hover:not(:disabled) {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    transform: translateY(-2px);
}

.choice-no {
    border-color: rgba(239, 68, 68, 0.4);
}

.choice-no:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    transform: translateY(-2px);
}

.btn-dilemma-choice:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.choice-btn-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
}

.choice-btn-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.dilemma-aftermath-box {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    animation: fadeInTab 0.25s ease forwards;
}

.dilemma-aftermath-box.active {
    display: block;
}

.aftermath-headline {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.aftermath-details {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.aftermath-action-row {
    display: flex;
    justify-content: flex-end;
}

.action-btn-primary {
    padding: 12px 24px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.action-btn-primary:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

/* =============================================================================
   MOBILE & TOUCH RESPONSIVE STYLES (< 768px & < 480px)
   ============================================================================= */

@media (max-width: 1024px) {
    .guide-steps-grid { grid-template-columns: repeat(2, 1fr); }
    .items-grid-container { grid-template-columns: repeat(2, 1fr); }
    .minimal-metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .whitewash-actions-grid { grid-template-columns: 1fr 1fr; }
    .rival-dossiers-grid { grid-template-columns: 1fr; }
    .gossip-consequences-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    body {
        padding: 8px;
    }

    .main-container {
        padding: 0 4px;
    }

    .header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .header-left-group {
        justify-content: space-between;
    }

    .header-controls {
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
    }

    .navigation-bar {
        overflow-x: auto;
        white-space: nowrap;
        padding: 6px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .nav-item {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .category-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }
}
/* =============================================================================
   22. CRISIS BLEED BANNER & GOSSIP EXHAUSTED BANNER
   ============================================================================= */
.crisis-bleed-banner {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.25) 0%, rgba(185, 28, 28, 0.35) 50%, rgba(239, 68, 68, 0.25) 100%);
    border: 2px solid #ef4444;
    border-radius: var(--radius-md);
    padding: 12px 20px;
    margin: 16px 0;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.4), inset 0 0 15px rgba(239, 68, 68, 0.2);
    animation: bleedSirenGlow 2s infinite ease-in-out;
}

@keyframes bleedSirenGlow {
    0%, 100% { box-shadow: 0 0 25px rgba(239, 68, 68, 0.4), inset 0 0 15px rgba(239, 68, 68, 0.2); }
    50% { box-shadow: 0 0 40px rgba(239, 68, 68, 0.8), inset 0 0 25px rgba(239, 68, 68, 0.4); }
}

.crisis-banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.siren-icon {
    font-size: 2rem;
    animation: pulseFlash 0.8s infinite ease-in-out;
}

.crisis-text-group h4 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 900;
    color: #fca5a5;
    letter-spacing: 0.04em;
}

.crisis-text-group p {
    margin: 4px 0 0 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.crisis-bleed-metrics {
    display: flex;
    gap: 20px;
}

.bleed-metric {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.bleed-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.bleed-value {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 900;
}

/* Gossip Exhausted Banner */
.gossip-exhausted-banner {
    display: none;
    align-items: center;
    gap: 16px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    margin-bottom: 20px;
}

.exhaust-icon {
    font-size: 2.2rem;
}

.exhaust-text h4 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: #ef4444;
}

.exhaust-text p {
    margin: 4px 0 0 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.gossip-dossier-card.is-exhausted {
    opacity: 0.55;
    filter: grayscale(0.5);
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-execute-gossip.btn-disabled {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

/* 50% Cash In preset */
.btn-coin-preset.btn-half {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(239, 68, 68, 0.2) 100%);
    border-color: rgba(245, 158, 11, 0.5);
    color: #fcd34d;
}

.btn-coin-preset.btn-half.active {
    background: #f59e0b;
    color: #000;
    border-color: #f59e0b;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.6);
}

.btn-tier-danger {
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #f87171 !important;
}

.btn-tier-danger:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: #ef4444 !important;
    color: #fff !important;
}

.btn-add-hundred {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-add-hundred:hover:not(:disabled) {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

/* =============================================================================
   23. ELON ZERO REPUTATION THREAT MODAL
   ============================================================================= */
.threat-overlay,
.resignation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.threat-overlay.active,
.resignation-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.threat-card {
    background: #111116;
    border: 2px solid #ef4444;
    border-radius: var(--radius-lg);
    max-width: 680px;
    width: 100%;
    padding: 32px;
    box-shadow: 0 0 60px rgba(239, 68, 68, 0.5), inset 0 0 30px rgba(239, 68, 68, 0.15);
    animation: threatPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes threatPop {
    from { transform: scale(0.9) translateY(20px); }
    to { transform: scale(1) translateY(0); }
}

.threat-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(239, 68, 68, 0.3);
}

.threat-avatar-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid #ef4444;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
}

.threat-badge {
    display: inline-block;
    background: #ef4444;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.threat-meta h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.45rem;
    color: #fff;
}

.threat-dialogue-box {
    background: rgba(0, 0, 0, 0.4);
    border-left: 4px solid #ef4444;
    padding: 16px 20px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: 20px;
}

.threat-dialogue-box p {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-main);
}

.threat-dialogue-box p:last-child {
    margin-bottom: 0;
}

.threat-dialogue-box strong {
    color: #fca5a5;
}

.threat-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.btn-threat-plead,
.btn-threat-resign,
.btn-threat-accept,
.btn-threat-leave {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    text-align: center;
}

.btn-threat-plead small,
.btn-threat-resign small,
.btn-threat-accept small,
.btn-threat-leave small {
    font-size: 0.72rem;
    font-weight: 500;
    margin-top: 4px;
    opacity: 0.85;
}

.btn-threat-plead {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4);
}

.btn-threat-plead:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.6);
}

.btn-threat-resign {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.btn-threat-resign:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fff;
    transform: translateY(-2px);
}

.threat-last-chance-reveal {
    margin-top: 20px;
    animation: fadeIn 0.3s ease;
}

.elon-speech-bubble-threat {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 20px;
}

.elon-speech-bubble-threat h3 {
    margin: 0 0 8px 0;
    color: #f59e0b;
    font-size: 1.1rem;
}

.elon-speech-bubble-threat p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.5;
}

.elon-speech-bubble-threat p:last-child {
    margin-bottom: 0;
}

.btn-threat-accept {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-threat-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(16, 185, 129, 0.6);
}

/* Resignation Modal */
.resignation-card {
    background: #0f1117;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    max-width: 560px;
    width: 100%;
    padding: 32px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.resignation-header h2 {
    margin: 12px 0 6px 0;
    font-family: var(--font-display);
    font-size: 1.6rem;
}

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

.resignation-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
    background: var(--bg-surface);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.resign-stat-item {
    display: flex;
    flex-direction: column;
}

.resign-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.resign-stat-val {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: #f59e0b;
    margin-top: 4px;
}

.resignation-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.btn-resign-return {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    padding: 14px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-resign-return:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.btn-resign-restart {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
    transition: all 0.2s ease;
}

.btn-resign-restart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.6);
}

/* =============================================================================
   24. RESPONSIVE BREAKPOINTS FOR HERO GAMEPLAY DASHBOARD
   ============================================================================= */
@media (max-width: 1024px) {
    .gameplay-hero-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .minimal-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .guide-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gameplay-hero-grid {
        grid-template-columns: 1fr;
    }
    .minimal-metrics-grid {
        grid-template-columns: 1fr;
    }
    .guide-steps-grid {
        grid-template-columns: 1fr;
    }
    .compact-tutorial-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .btn-toggle-guide {
        width: 100%;
        justify-content: center;
    }
    .first-time-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .first-time-actions {
        width: 100%;
        flex-direction: column;
    }
    .btn-ft-show, .btn-ft-skip {
        width: 100%;
        justify-content: center;
    }
    .crisis-bleed-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .crisis-bleed-metrics {
        width: 100%;
        justify-content: space-between;
    }
    .threat-actions-grid {
        grid-template-columns: 1fr;
    }
    .resignation-actions {
        grid-template-columns: 1fr;
    }
}




