/* ═══════════════════════════════════════════════════════════
   ABC Crypto Dashboard - Premium Dark Theme
   ═══════════════════════════════════════════════════════════ */

:root {
    /* Core palette - Deep space theme */
    --bg-primary: #080b12;
    --bg-secondary: #0d1117;
    --bg-tertiary: #151b26;
    --bg-card: #111720;
    --bg-hover: #1a2332;
    
    /* Accent colors */
    --accent-primary: #00d4aa;
    --accent-secondary: #00b894;
    --accent-glow: rgba(0, 212, 170, 0.2);
    
    /* Status colors */
    --bullish: #00d4aa;
    --bearish: #ff4757;
    --sideways: #ffa502;
    --neutral: #636e7b;
    
    /* Bull run - green theme (bullish!) */
    --bull-run: #10b981;
    --bull-run-light: #34d399;
    --bull-run-glow: rgba(16, 185, 129, 0.3);
    
    /* Text - Enhanced contrast for readability */
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --text-muted: #7a8a9e;
    
    /* Borders */
    --border-primary: #1e293b;
    --border-glow: rgba(0, 212, 170, 0.3);
    
    /* Typography */
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

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

html {
    height: 100%;
    /* Smooth scrolling */
    scroll-behavior: smooth;
    /* Prevent horizontal scroll */
    overflow-x: hidden;
}

body {
    height: 100%;
    font-family: var(--font-display);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    font-size: 16px;
    /* Prevent pull-to-refresh on mobile */
    overscroll-behavior-y: contain;
    /* Better text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent text size adjustment on orientation change */
    -webkit-text-size-adjust: 100%;
}

/* ═══════════════════════════════════════════════════════════
   Loading Skeletons & Shimmer Effects
   ═══════════════════════════════════════════════════════════ */

.skeleton {
    background: linear-gradient(90deg, 
        var(--bg-tertiary) 25%, 
        var(--bg-hover) 50%, 
        var(--bg-tertiary) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

.skeleton-text {
    height: 1em;
    width: 60%;
    display: inline-block;
}

.skeleton-number {
    height: 1.2em;
    width: 80px;
    display: inline-block;
}

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

/* Chart loading shimmer overlay - styles merged with chart-loading below */

/* Pro lock tooltip */
.pro-lock-tooltip {
    position: relative;
    cursor: pointer;
}

.pro-lock-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pro-lock-tooltip::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--border-primary);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.pro-lock-tooltip:hover::after,
.pro-lock-tooltip:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Mobile touch optimizations */
a, button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Minimum touch target size (44px recommended by Apple/Google) */
button, .asset-btn, .range-btn, .chart-range-btn, .sim-range-btn {
    min-height: 44px;
}

/* Safe area insets for notched phones */
.dashboard {
    padding-left: max(28px, env(safe-area-inset-left));
    padding-right: max(28px, env(safe-area-inset-right));
    padding-bottom: max(28px, env(safe-area-inset-bottom));
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Sophisticated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 10% 10%, rgba(0, 212, 170, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 90%, rgba(102, 126, 234, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(243, 156, 18, 0.03) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-primary) 0%, #0a0f18 100%);
    pointer-events: none;
    z-index: -1;
}

/* Subtle grid pattern */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -1;
}

.dashboard {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 28px;
    max-width: 1800px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════
   Header
   ═══════════════════════════════════════════════════════════ */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}

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

.logo-icon {
    font-size: 32px;
    color: var(--accent-primary);
    text-shadow: 0 0 30px var(--accent-glow);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { text-shadow: 0 0 20px var(--accent-glow); }
    50% { text-shadow: 0 0 40px var(--accent-glow), 0 0 60px var(--accent-glow); }
}

.logo-text {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

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

.asset-selector {
    display: flex;
    gap: 6px;
    background: var(--bg-tertiary);
    padding: 6px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
}

.asset-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.asset-btn:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.asset-btn.active {
    background: var(--bg-secondary);
    border-color: var(--border-primary);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.asset-btn.active[data-asset="BTCUSDT"] {
    border-color: rgba(247, 147, 26, 0.4);
    box-shadow: 0 2px 12px rgba(247, 147, 26, 0.15);
}

.asset-btn.active[data-asset="SOLUSDT"] {
    border-color: rgba(153, 69, 255, 0.4);
    box-shadow: 0 2px 12px rgba(153, 69, 255, 0.15);
}

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

.asset-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.asset-btn.active .asset-icon {
    transform: scale(1.1);
}

.asset-name {
    font-weight: 600;
}

.time-range {
    display: flex;
    gap: 4px;
    background: var(--bg-tertiary);
    padding: 5px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
}

.range-btn {
    padding: 10px 18px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.range-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.range-btn.active {
    background: var(--accent-primary);
    color: var(--bg-primary);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   Status Cards - 4 Column Grid
   ═══════════════════════════════════════════════════════════ */

.status-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.status-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    /* Fade-in animation */
    opacity: 0;
    transform: translateY(10px);
    animation: cardFadeIn 0.5s ease forwards;
}

.status-card:nth-child(1) { animation-delay: 0.05s; }
.status-card:nth-child(2) { animation-delay: 0.1s; }
.status-card:nth-child(3) { animation-delay: 0.15s; }
.status-card:nth-child(4) { animation-delay: 0.2s; }

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

.status-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.15), 0 0 0 1px rgba(16, 185, 129, 0.1);
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0.7;
}

.price-card::before {
    background: linear-gradient(90deg, #00d4aa, #00b894);
}

.regime-card::before {
    background: linear-gradient(90deg, #ffa502, #ff7f50);
}

.trend-card::before {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.bull-run-card::before {
    background: linear-gradient(90deg, var(--bull-run), var(--bull-run-light));
}

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

.card-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.card-timestamp {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-secondary);
}

.card-value {
    font-size: 42px;
    font-weight: 700;
    font-family: var(--font-mono);
    display: flex;
    align-items: baseline;
    gap: 6px;
    letter-spacing: -1px;
    line-height: 1.1;
    /* Smooth transitions for value updates */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.card-value.updating {
    opacity: 0.5;
    transform: scale(0.98);
}

.currency {
    font-size: 28px;
    color: var(--text-secondary);
    font-weight: 500;
}

.regime-indicator, .trend-indicator, .bull-run-indicator {
    font-size: 24px;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.regime-indicator.up, .trend-indicator.bullish {
    color: var(--bullish);
    text-shadow: 0 0 15px var(--bullish);
}

.regime-indicator.down, .trend-indicator.bearish {
    color: var(--bearish);
    text-shadow: 0 0 15px var(--bearish);
}

.regime-indicator.sideways {
    color: var(--sideways);
    text-shadow: 0 0 15px var(--sideways);
}

.bull-run-indicator.active {
    color: var(--bull-run);
    text-shadow: 0 0 15px var(--bull-run-glow);
    animation: bull-pulse 1.5s ease-in-out infinite;
}

.bull-run-indicator.inactive {
    color: var(--neutral);
}

@keyframes bull-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.card-sub {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}


/* ═══════════════════════════════════════════════════════════
   Charts
   ═══════════════════════════════════════════════════════════ */

.charts-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
}

.charts-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s ease;
    /* Fade-in animation */
    opacity: 0;
    transform: translateY(15px);
    animation: chartFadeIn 0.6s ease forwards;
}

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

.chart-container:hover {
    border-color: var(--text-muted);
}

.chart-container.main-chart {
    min-height: 400px;
}

.chart-container.bull-run-chart {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(16, 185, 129, 0.04) 100%);
    border-color: rgba(16, 185, 129, 0.25);
}

.chart-container.bull-run-chart:hover {
    border-color: rgba(16, 185, 129, 0.5);
}

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

.chart-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
}

.title-icon {
    font-size: 24px;
}

.chart-legend {
    display: flex;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

.legend-color.bull-run-color {
    background: linear-gradient(135deg, var(--bull-run), var(--bull-run-light));
}

/* Bull Run Time Selector */
.bull-run-time-selector {
    display: flex;
    gap: 4px;
    background: var(--bg-tertiary);
    padding: 4px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-primary);
}

.bull-run-range-btn {
    padding: 8px 14px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bull-run-range-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.bull-run-range-btn.active {
    background: var(--bull-run);
    color: var(--bg-primary);
    font-weight: 600;
}

/* Chart-specific Time Selectors */
.chart-time-selector {
    display: flex;
    gap: 3px;
    background: var(--bg-tertiary);
    padding: 3px;
    border-radius: 6px;
    border: 1px solid var(--border-primary);
}

.chart-range-btn {
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chart-range-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.chart-range-btn.active {
    background: var(--accent-primary);
    color: var(--bg-primary);
    font-weight: 600;
}

/* Bull run chart uses green buttons */
[data-chart="bullrun"] .chart-range-btn.active {
    background: var(--bull-run);
}

/* Header right section */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.last-update {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0);
    }
}

/* Refresh status */
.refresh-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-primary);
}

.refresh-label {
    font-size: 12px;
    color: var(--text-muted);
}

.refresh-countdown {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-primary);
    min-width: 40px;
}

/* User menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-primary);
}

.user-tier {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 4px;
    color: #c4b5fd;
    letter-spacing: 0.5px;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-name-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.user-name-link:hover {
    color: var(--accent-primary);
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: rgba(255, 71, 87, 0.15);
    border-color: rgba(255, 71, 87, 0.3);
    color: #ff4757;
}

/* Header Login Button (for anonymous users) */
.header-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--text-muted);
    border-radius: var(--radius-sm);
    background: transparent;
    transition: all 0.2s ease;
}

.header-login-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.login-icon {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.header-login-btn:hover .login-icon {
    transform: translateX(2px);
}

/* Header Upgrade Button (for anonymous users) */
.header-upgrade-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ffa502, #ff7f50);
    border-radius: var(--radius-sm);
    color: #000;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(255, 165, 2, 0.3);
}

.header-upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 165, 2, 0.4);
    background: linear-gradient(135deg, #ffb733, #ff9466);
}

.upgrade-icon-small {
    font-size: 16px;
}

.chart-wrapper {
    position: relative;
    height: 280px;
    min-height: 200px;
}

.chart-wrapper canvas {
    width: 100% !important;
    max-width: 100%;
}

.main-chart .chart-wrapper {
    height: 340px;
}

.bull-run-chart .chart-wrapper {
    height: 320px;
}

/* ═══════════════════════════════════════════════════════════
   Price + SR Levels Container
   ═══════════════════════════════════════════════════════════ */

.price-sr-container {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 20px;
}

.price-sr-container .main-chart {
    min-height: auto;
}

/* SR Levels Panel */
.sr-levels-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.sr-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-primary);
}

.sr-panel-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.sr-icon {
    color: #667eea;
    font-size: 18px;
}

.sr-timestamp {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
}

.sr-levels-ladder {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.sr-loading {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
    padding: 40px 0;
}

/* Individual SR Level Row */
.sr-level-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    position: relative;
}

.sr-level-row:hover {
    background: var(--bg-hover);
}

.sr-level-row.resistance {
    border-left: 3px solid #ff4757;
}

.sr-level-row.support {
    border-left: 3px solid #00d4aa;
}

.sr-level-row.current-price-row {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.15), transparent);
    border-left: 3px solid #667eea;
}

.sr-level-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 28px;
}

.sr-level-row.resistance .sr-level-label {
    color: #ff4757;
}

.sr-level-row.support .sr-level-label {
    color: #00d4aa;
}

.sr-level-row.current-price-row .sr-level-label {
    color: #667eea;
}

.sr-level-price {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
}

.sr-level-distance {
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
}

.sr-level-row.resistance .sr-level-distance {
    background: rgba(255, 71, 87, 0.15);
    color: #ff4757;
}

.sr-level-row.support .sr-level-distance {
    background: rgba(0, 212, 170, 0.15);
    color: #00d4aa;
}

.sr-panel-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-primary);
}

.sr-hint {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════ */

.footer {
    background: linear-gradient(180deg, rgba(15, 23, 35, 0) 0%, rgba(10, 18, 28, 0.95) 100%);
    border-top: 1px solid rgba(0, 212, 170, 0.1);
    padding: 24px 40px;
    margin-top: 28px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    font-size: 20px;
    color: var(--accent-primary);
}

.footer-text {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-primary);
    letter-spacing: 0.5px;
}

.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    padding: 4px 10px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.footer-status .status-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

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

.footer-links .twitter-icon {
    opacity: 0.8;
}

.footer-divider {
    color: var(--text-muted);
    opacity: 0.4;
    font-size: 10px;
}

.footer-disclaimer {
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
    max-width: 500px;
    line-height: 1.5;
    opacity: 0.7;
}

.footer-sep {
    opacity: 0.4;
}

.footer-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.footer-link:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════
   Upgrade Banner (Free Users)
   ═══════════════════════════════════════════════════════════ */

.upgrade-banner {
    background: linear-gradient(135deg, rgba(255, 165, 2, 0.15) 0%, rgba(255, 71, 87, 0.1) 100%);
    border: 1px solid rgba(255, 165, 2, 0.4);
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    margin-bottom: 20px;
    position: sticky;
    top: 16px;
    z-index: 100;
    backdrop-filter: blur(10px);
    /* Slide-down animation */
    animation: bannerSlideIn 0.4s ease-out;
}

@keyframes bannerSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upgrade-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffa502, #ff4757);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.upgrade-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.upgrade-banner-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.upgrade-icon {
    font-size: 28px;
}

.upgrade-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.upgrade-text strong {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
}

/* Performance percentages in banner */
.upgrade-text strong span {
    font-family: var(--font-mono);
    font-weight: 800;
    color: var(--accent-primary);
    background: rgba(0, 212, 170, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 15px;
}

.upgrade-subtext {
    color: var(--text-secondary);
    font-size: 14px;
}

.upgrade-banner-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.banner-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.upgrade-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ffa502, #ff7f50);
    border-radius: var(--radius-sm);
    color: #000;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(255, 165, 2, 0.3);
    /* Subtle pulse animation */
    animation: upgradePulse 2s ease-in-out infinite;
}

@keyframes upgradePulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 165, 2, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 165, 2, 0.5), 0 0 40px rgba(255, 165, 2, 0.2);
    }
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 165, 2, 0.4);
    animation: none; /* Stop pulse on hover */
}

.upgrade-dismiss {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: 1px solid rgba(255, 165, 2, 0.3);
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upgrade-dismiss:hover {
    background: rgba(255, 165, 2, 0.2);
    color: var(--text-primary);
}

.upgrade-banner.hidden {
    display: none;
}

/* ═══════════════════════════════════════════════════════════
   Delay Badges (using slate gray to differentiate from SIDEWAYS orange)
   ═══════════════════════════════════════════════════════════ */

.delay-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(100, 116, 139, 0.2);
    border: 1px solid rgba(100, 116, 139, 0.5);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

.delay-badge.hidden {
    display: none;
}

.chart-delay-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(100, 116, 139, 0.2);
    border: 1px solid rgba(100, 116, 139, 0.5);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-mono);
    color: #94a3b8;
    margin-left: 12px;
}

.chart-delay-badge.hidden {
    display: none;
}

/* ═══════════════════════════════════════════════════════════
   SR Levels - Locked State
   ═══════════════════════════════════════════════════════════ */

.sr-pro-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border: 1px solid rgba(102, 126, 234, 0.4);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #c4b5fd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sr-pro-badge.hidden {
    display: none;
}

.sr-levels-panel {
    position: relative;
    overflow: hidden;
}

.sr-levels-panel.locked .sr-levels-ladder {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
}

.sr-locked-overlay {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 11, 18, 0.85);
    backdrop-filter: blur(4px);
    z-index: 10;
    padding: 20px;
}

.sr-locked-overlay.hidden {
    display: none;
}

.sr-locked-content {
    text-align: center;
    max-width: 200px;
}

.sr-locked-icon {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
}

.sr-locked-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.sr-locked-content p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.sr-upgrade-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.sr-upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Delayed card styling */
.status-card.delayed::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, transparent 50%, rgba(100, 116, 139, 0.2) 50%);
}

/* ═══════════════════════════════════════════════════════════
   Research Banner - Top of page
   ═══════════════════════════════════════════════════════════ */

.research-banner {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 50%, rgba(16, 185, 129, 0.08) 100%);
    border: 1px solid rgba(102, 126, 234, 0.25);
    border-radius: var(--radius-xl);
    padding: 24px 32px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.research-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #10b981);
}

.research-banner-content {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.research-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.research-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border: 1px solid rgba(102, 126, 234, 0.4);
    border-radius: 24px;
    font-size: 13px;
    font-weight: 700;
    color: #c4b5fd;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.15), rgba(16, 185, 129, 0.15));
    border: 1px solid rgba(0, 212, 170, 0.4);
    border-radius: 24px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.research-text {
    flex: 1;
    min-width: 300px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.research-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.research-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: var(--radius-md);
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.research-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #7c8ff5, #8b5fc7);
}

/* ═══════════════════════════════════════════════════════════
   Trading Simulation Section
   ═══════════════════════════════════════════════════════════ */

.simulation-section {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 212, 170, 0.03) 100%);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.simulation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00d4aa, #00b894, #667eea);
}

.simulation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 20px;
}

.simulation-title-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.simulation-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.simulation-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

.simulation-delay-badge {
    font-size: 11px;
    font-weight: 600;
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    letter-spacing: 0.3px;
}

.simulation-delay-badge.hidden {
    display: none;
}

.simulation-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.simulation-time-selector {
    display: flex;
    gap: 4px;
    background: var(--bg-tertiary);
    padding: 4px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-primary);
}

.sim-range-btn {
    padding: 10px 18px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sim-range-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.sim-range-btn.active {
    background: var(--accent-primary);
    color: var(--bg-primary);
    font-weight: 700;
}

/* Simulation Stats Cards */
.simulation-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

/* Simplified 3-card layout */
.simulation-stats.simplified {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sim-stat-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.25s ease;
}

.sim-stat-card:hover {
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.sim-stat-card.primary {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1), rgba(0, 184, 148, 0.08));
    border-color: rgba(0, 212, 170, 0.3);
}

.sim-stat-card.highlight {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.08));
    border-color: rgba(102, 126, 234, 0.3);
}

/* Profit card styling */
.sim-stat-card.profit-card {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.08), rgba(16, 185, 129, 0.05));
    border-color: rgba(0, 212, 170, 0.3);
}

.profit-value {
    font-weight: 700;
}

.profit-value.positive {
    color: var(--bullish) !important;
}

.profit-value.negative {
    color: var(--bearish) !important;
}

/* Enhanced outperformance card - the key selling metric (HERO) */
.sim-stat-card.outperformance-highlight {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.2), rgba(16, 185, 129, 0.12));
    border: 2px solid rgba(0, 212, 170, 0.6);
    box-shadow: 0 0 40px rgba(0, 212, 170, 0.2);
    position: relative;
    overflow: hidden;
}

.sim-stat-card.outperformance-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.sim-stat-card.hero-card {
    padding: 28px 24px;
}

.sim-stat-card.hero-card .sim-stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.outperformance-value {
    font-size: 42px !important;
    font-weight: 800 !important;
    color: var(--accent-primary) !important;
    text-shadow: 0 0 30px rgba(0, 212, 170, 0.5);
    letter-spacing: -1px;
}

/* Trades card styling */
.sim-stat-card.trades-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.05));
    border-color: rgba(102, 126, 234, 0.3);
}

.sim-stat-card.trades-card .sim-stat-value {
    color: #a78bfa;
}

.sim-stat-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sim-stat-value {
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.sim-stat-value.negative {
    color: #ff4757;
}

.sim-stat-change {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
}

.sim-stat-change.positive {
    color: #00d4aa;
}

.sim-stat-change.negative {
    color: #ff4757;
}

.sim-stat-sub {
    font-size: 12px;
    color: var(--text-secondary);
}

.sim-stat-sub.positive {
    color: var(--bullish);
}

.sim-stat-sub.negative {
    color: var(--bearish);
}

/* Simulation Chart */
.simulation-chart-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.simulation-legend {
    margin-bottom: 16px;
}

.legend-marker {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.legend-marker.buy-marker {
    background: #00d4aa;
    box-shadow: 0 0 8px rgba(0, 212, 170, 0.6);
}

.legend-marker.sell-marker {
    background: #ff4757;
    box-shadow: 0 0 8px rgba(255, 71, 87, 0.6);
}

.simulation-chart-wrapper {
    height: 360px;
    min-height: 250px;
    position: relative;
}

.simulation-chart-wrapper canvas {
    width: 100% !important;
    max-width: 100%;
}

/* Trade History */
.trades-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.trades-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-primary);
}

.trades-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.trades-count {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-secondary);
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.trades-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 700px;
    overflow-y: auto;
}

.trades-loading {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
    padding: 30px;
}

.trade-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.trade-row:hover {
    background: var(--bg-hover);
}

.trade-action {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    min-width: 70px;
    text-align: center;
}

.trade-action.buy {
    background: rgba(0, 212, 170, 0.2);
    color: #00d4aa;
    border: 1px solid rgba(0, 212, 170, 0.3);
}

.trade-action.sell {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.trade-action.open {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
    border: 1px dashed rgba(100, 116, 139, 0.4);
}

.trade-action.stop-loss {
    background: rgba(255, 165, 2, 0.2);
    color: #ffa502;
    border: 1px solid rgba(255, 165, 2, 0.3);
}

.trade-date {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-secondary);
    min-width: 140px;
}

.trade-price {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 100px;
}

.trade-reason {
    font-size: 13px;
    color: var(--text-secondary);
    flex: 1;
}

.trade-pnl {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    min-width: 80px;
    text-align: right;
}

/* Pro Promotion Banner in Trade History */
.trades-pro-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.pro-banner-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.pro-banner-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.pro-banner-text strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.pro-banner-text span {
    font-size: 12px;
    color: var(--text-secondary);
}

.pro-banner-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pro-banner-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.trade-pnl.positive {
    color: #00d4aa;
}

.trade-pnl.negative {
    color: #ff4757;
}

/* Scrollbar for trades list */
.trades-list::-webkit-scrollbar {
    width: 6px;
}

.trades-list::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.trades-list::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

.trades-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════
   Chart Loading Indicators
   ═══════════════════════════════════════════════════════════ */

.chart-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: linear-gradient(90deg, 
        var(--bg-secondary) 0%, 
        var(--bg-tertiary) 50%, 
        var(--bg-secondary) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: var(--radius-md);
    z-index: 5;
}

.chart-loading.hidden {
    display: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-primary);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.chart-loading span {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Simulation Loading - larger and more prominent */
.simulation-loading .loading-spinner {
    width: 50px;
    height: 50px;
    border-width: 4px;
}

.simulation-loading span {
    font-size: 16px;
}

/* Simulation Placeholder (before running) */
.simulation-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    z-index: 5;
}

.simulation-placeholder.hidden {
    display: none;
}

.placeholder-icon {
    font-size: 48px;
    opacity: 0.6;
}

.simulation-placeholder p {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
    max-width: 300px;
    line-height: 1.5;
}

.simulation-placeholder strong {
    color: var(--accent-primary);
}

/* Run Simulation Button */
.run-simulation-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: var(--radius-sm);
    color: var(--bg-primary);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.run-simulation-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.run-simulation-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.run-simulation-btn.loading {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    box-shadow: none;
}

.run-simulation-btn .run-icon {
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════
   Animations
   ═══════════════════════════════════════════════════════════ */

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

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════
   Responsive - Tablet (1400px)
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1400px) {
    .status-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .price-sr-container {
        grid-template-columns: 1fr 220px;
    }
    
    .simulation-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .simulation-stats.simplified {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ═══════════════════════════════════════════════════════════
   Responsive - Small Tablet (1024px)
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .status-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-row {
        grid-template-columns: 1fr;
    }
    
    .price-sr-container {
        grid-template-columns: 1fr;
    }
    
    .sr-levels-panel {
        order: -1;
    }
    
    .sr-levels-ladder {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .sr-level-row {
        flex: 1;
        min-width: 140px;
    }
    
    .header {
        flex-direction: column;
        gap: 16px;
        padding: 16px 20px;
    }
    
    .header-left, .header-center, .header-right {
        width: 100%;
        justify-content: center;
    }
    
    .asset-selector {
        justify-content: center;
    }
    
    .simulation-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .simulation-stats.simplified {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .sim-stat-card.hero-card {
        padding: 20px 16px;
    }
    
    .outperformance-value {
        font-size: 32px !important;
    }
    
    .simulation-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .simulation-controls {
        justify-content: center;
    }
    
    .trade-reason {
        display: none;
    }
    
    /* Research banner */
    .research-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .research-text {
        min-width: auto;
    }
    
    /* Upgrade banner */
    .upgrade-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .upgrade-banner-left {
        flex-direction: column;
    }
}

/* ═══════════════════════════════════════════════════════════
   Responsive - Large Phone (768px)
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .dashboard {
        padding: 12px;
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
        padding-bottom: max(80px, env(safe-area-inset-bottom));
    }
    
    /* Hide research banner on tablet/mobile - it's promotional */
    .research-banner {
        display: none;
    }
    
    /* HORIZONTAL SCROLLING STATUS CARDS - like trading apps */
    .status-section {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding-bottom: 8px;
        margin: 0 -12px;
        padding-left: 12px;
        padding-right: 12px;
    }
    
    /* Hide scrollbar but keep functionality */
    .status-section::-webkit-scrollbar {
        display: none;
    }
    .status-section {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .status-card {
        flex: 0 0 auto;
        width: 140px;
        min-width: 140px;
        scroll-snap-align: start;
        padding: 14px 12px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        margin-bottom: 8px;
    }
    
    .card-timestamp {
        font-size: 9px;
        display: none;
    }
    
    .card-value {
        font-size: 20px;
        white-space: nowrap;
    }
    
    .card-label {
        font-size: 9px;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }
    
    /* Hide delay badges in horizontal scroll - too cramped */
    .status-card .delay-badge {
        display: none;
    }
    
    /* Charts - full width focus */
    .chart-container {
        padding: 16px;
    }
    
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .chart-header > div[style] {
        flex-wrap: wrap;
        gap: 10px !important;
        width: 100%;
    }
    
    .chart-time-selector {
        width: 100%;
        justify-content: space-between;
    }
    
    .chart-title {
        font-size: 16px;
    }
    
    .chart-wrapper {
        height: 260px;
        min-height: 220px;
    }
    
    .main-chart .chart-wrapper {
        height: 300px;
    }
    
    .bull-run-chart .chart-wrapper {
        height: 280px;
    }
    
    /* Simulation - clean and focused */
    .simulation-section {
        padding: 20px 16px;
    }
    
    /* Horizontal scrolling stats - like app dashboards */
    .simulation-stats {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding-bottom: 8px;
        margin: 0 -16px;
        padding-left: 16px;
        padding-right: 16px;
    }
    
    /* Simplified stats stay as grid on mobile */
    .simulation-stats.simplified {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin: 0;
        padding: 0;
        padding-bottom: 8px;
    }
    
    .simulation-stats.simplified .sim-stat-card {
        width: auto;
        padding: 12px 8px;
    }
    
    .simulation-stats.simplified .sim-stat-card.hero-card {
        padding: 14px 10px;
    }
    
    .simulation-stats.simplified .outperformance-value {
        font-size: 24px !important;
    }
    
    .simulation-stats.simplified .sim-stat-label {
        font-size: 9px;
    }
    
    .simulation-stats::-webkit-scrollbar {
        display: none;
    }
    .simulation-stats {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .sim-stat-card {
        flex: 0 0 auto;
        width: 140px;
        scroll-snap-align: start;
        padding: 14px;
    }
    
    .sim-stat-value {
        font-size: 22px;
    }
    
    .simulation-chart-wrapper {
        height: 300px;
        min-height: 260px;
    }
    
    .simulation-time-selector {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Simulation legend - horizontal scroll */
    .simulation-legend {
        display: flex;
        overflow-x: auto;
        gap: 16px;
        padding-bottom: 8px;
        white-space: nowrap;
    }
    
    /* Trade history - collapsible feel */
    .trades-section {
        max-height: 200px;
    }
    
    .trades-list {
        max-height: 150px;
    }
    
    /* Trade rows */
    .trade-row {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 12px;
    }
    
    .trade-date {
        min-width: auto;
        font-size: 11px;
    }
    
    .trade-price {
        min-width: auto;
        font-size: 13px;
    }
    
    /* Header */
    .logo-text {
        font-size: 22px;
    }
    
    .logo-icon {
        font-size: 26px;
    }
    
    .header-right {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .refresh-status {
        display: none;
    }
    
    /* User menu */
    .user-menu {
        padding: 6px 12px;
    }
    
    .user-name, .user-name-link {
        font-size: 12px;
    }
}

/* ═══════════════════════════════════════════════════════════
   Responsive - Phone (480px)
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
    .dashboard {
        padding: 8px;
        padding-left: max(8px, env(safe-area-inset-left));
        padding-right: max(8px, env(safe-area-inset-right));
        padding-bottom: max(70px, env(safe-area-inset-bottom));
    }
    
    /* Compact header - mobile app style */
    .header {
        padding: 10px 12px;
        border-radius: var(--radius-md);
        margin-bottom: 12px;
        gap: 10px;
    }
    
    .header-left {
        order: 1;
    }
    
    .header-center {
        order: 3;
        width: 100%;
    }
    
    .header-right {
        order: 2;
        width: auto;
        justify-content: flex-end;
    }
    
    .logo {
        gap: 8px;
    }
    
    .logo-icon {
        font-size: 20px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    /* Hide upgrade banner on phone - too much space */
    .upgrade-banner {
        display: none;
    }
    
    /* Asset buttons - pill style */
    .asset-selector {
        width: 100%;
        flex-direction: row;
        gap: 4px;
        padding: 4px;
    }
    
    .asset-btn {
        flex: 1;
        padding: 10px 8px;
        font-size: 13px;
        justify-content: center;
        border-radius: var(--radius-md);
    }
    
    .asset-icon {
        width: 18px;
        height: 18px;
    }
    
    .asset-name {
        display: inline;
    }
    
    /* Status cards - wider for better readability */
    .status-section {
        margin: 0 -8px;
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .status-card {
        width: 150px;
        padding: 14px;
    }
    
    .card-label {
        font-size: 9px;
        letter-spacing: 1px;
    }
    
    .card-value {
        font-size: 22px;
    }
    
    .currency {
        font-size: 16px;
    }
    
    .regime-indicator, .trend-indicator, .bull-run-indicator {
        font-size: 16px;
        margin-right: 6px;
    }
    
    .card-timestamp {
        display: none;
    }
    
    /* Charts - focus on the chart itself */
    .chart-container {
        padding: 12px;
        border-radius: var(--radius-md);
    }
    
    .chart-header {
        margin-bottom: 10px;
    }
    
    .chart-title {
        font-size: 14px;
        font-weight: 600;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    /* Hide delay badges in chart titles on mobile */
    .chart-delay-badge {
        display: none !important;
    }
    
    .title-icon {
        font-size: 14px;
    }
    
    /* Full width time selectors */
    .chart-time-selector {
        background: transparent;
        border: none;
        padding: 0;
        gap: 4px;
    }
    
    .chart-range-btn {
        flex: 1;
        text-align: center;
        padding: 8px 4px;
        font-size: 12px;
        border-radius: 8px;
        background: var(--bg-tertiary);
    }
    
    .chart-range-btn.active {
        background: var(--accent-primary);
    }
    
    .chart-wrapper {
        height: 180px;
    }
    
    .main-chart .chart-wrapper {
        height: 240px;
    }
    
    .chart-legend {
        display: none;
    }
    
    .chart-time-selector {
        padding: 2px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .chart-range-btn {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .bull-run-chart .chart-wrapper {
        height: 200px;
    }
    
    /* Research banner */
    .research-banner {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .research-badges {
        gap: 8px;
        justify-content: center;
    }
    
    .research-badge-large {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .trust-badge {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .outperformance-value {
        font-size: 28px !important;
    }
    
    .research-text {
        font-size: 13px;
    }
    
    .research-cta {
        padding: 10px 16px;
        font-size: 12px;
        width: 100%;
        justify-content: center;
    }
    
    /* Upgrade banner */
    .upgrade-banner {
        padding: 12px 16px;
        margin-bottom: 12px;
    }
    
    .upgrade-icon {
        font-size: 22px;
    }
    
    .upgrade-text strong {
        font-size: 14px;
    }
    
    .upgrade-subtext {
        font-size: 12px;
    }
    
    .upgrade-btn {
        padding: 8px 16px;
        font-size: 12px;
        width: 100%;
        justify-content: center;
    }
    
    /* Simulation section */
    .simulation-section {
        padding: 16px 12px;
        border-radius: var(--radius-md);
    }
    
    .simulation-header {
        gap: 16px;
    }
    
    .simulation-title {
        font-size: 16px;
        flex-wrap: wrap;
    }
    
    .simulation-title .title-icon {
        font-size: 16px;
    }
    
    .simulation-subtitle {
        font-size: 12px;
    }
    
    .simulation-controls {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .simulation-time-selector {
        width: 100%;
        justify-content: center;
    }
    
    .run-simulation-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Simulation stats - horizontal scroll like status cards */
    .simulation-stats {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        margin: 0 -12px;
        padding: 0 12px 8px;
    }
    
    .sim-stat-card {
        flex: 0 0 auto;
        width: 110px;
        min-width: 110px;
        padding: 10px;
    }
    
    .sim-stat-label {
        font-size: 8px;
        letter-spacing: 0.5px;
    }
    
    .sim-stat-value {
        font-size: 16px;
    }
    
    .sim-stat-change, .sim-stat-sub {
        font-size: 10px;
    }
    
    .sim-range-btn {
        padding: 8px 10px;
        font-size: 11px;
    }
    
    .simulation-chart-container {
        padding: 10px;
    }
    
    .simulation-chart-wrapper {
        height: 220px;
        min-height: 180px;
    }
    
    /* Hide simulation delay badge on mobile */
    .simulation-delay-badge {
        display: none !important;
    }
    
    /* Simulation legend on mobile - simplified */
    .simulation-legend {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 12px;
        justify-content: flex-start;
        padding-bottom: 4px;
    }
    
    .simulation-legend .legend-item {
        font-size: 10px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .simulation-legend .legend-color,
    .simulation-legend .legend-marker {
        width: 8px;
        height: 8px;
    }
    
    /* Trade history */
    .trades-section {
        padding: 14px;
    }
    
    .trades-title {
        font-size: 14px;
    }
    
    .trade-row {
        padding: 8px 10px;
    }
    
    .trade-action {
        font-size: 10px;
        padding: 3px 8px;
        min-width: 60px;
    }
    
    .trade-date {
        font-size: 10px;
    }
    
    .trade-price {
        font-size: 12px;
    }
    
    .trade-pnl {
        font-size: 12px;
        min-width: 60px;
    }
    
    /* SR Levels */
    .sr-levels-panel {
        padding: 14px;
    }
    
    .sr-panel-title {
        font-size: 14px;
    }
    
    .sr-level-price {
        font-size: 14px;
    }
    
    .sr-level-distance {
        font-size: 11px;
    }
    
    /* Footer */
    .footer {
        padding: 20px 16px;
    }
    
    .footer-content {
        gap: 12px;
    }
    
    .footer-brand {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .footer-links {
        gap: 8px;
    }
    
    .footer-links a {
        font-size: 12px;
    }
    
    .footer-divider {
        font-size: 8px;
    }
    
    .footer-disclaimer {
        font-size: 9px;
    }
    
    .footer-sep {
        display: none;
    }
    
    /* Header buttons for logged out state */
    .header-login-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .login-icon {
        display: none;
    }
    
    .header-upgrade-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* Time range buttons */
    .time-range {
        display: none;
    }
    
    /* Run simulation button */
    .run-simulation-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    /* Pro banner in trades */
    .trades-pro-banner {
        flex-direction: column;
        text-align: center;
        padding: 12px;
    }
    
    .pro-banner-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Hide last update on very small screens */
    .last-update {
        display: none;
    }
    
    /* User menu adjustments */
    .user-tier {
        font-size: 9px;
        padding: 3px 6px;
    }
    
    /* Delay badges */
    .delay-badge {
        font-size: 9px;
        padding: 2px 6px;
    }
}

/* ═══════════════════════════════════════════════════════════
   Responsive - Very Small Phone (360px)
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 360px) {
    .dashboard {
        padding: 6px;
        padding-left: max(6px, env(safe-area-inset-left));
        padding-right: max(6px, env(safe-area-inset-right));
        padding-bottom: max(65px, env(safe-area-inset-bottom));
    }
    
    .header {
        padding: 8px 10px;
        gap: 8px;
    }
    
    .logo-text {
        font-size: 14px;
    }
    
    .logo-icon {
        font-size: 16px;
    }
    
    .asset-btn {
        padding: 8px 6px;
        font-size: 11px;
        gap: 4px;
    }
    
    .asset-icon {
        width: 20px;
        height: 20px;
    }
    
    .asset-name {
        display: none;
    }
    
    /* Smaller status cards for tiny screens */
    .status-section {
        margin: 0 -6px;
        padding-left: 6px;
        padding-right: 6px;
    }
    
    .status-card {
        width: 130px;
        padding: 12px;
    }
    
    .card-value {
        font-size: 18px;
    }
    
    .currency {
        font-size: 14px;
    }
    
    /* Bottom bar adjustments */
    .mobile-bottom-bar {
        padding: 10px 12px;
    }
    
    .bottom-bar-value {
        font-size: 18px;
    }
    
    .bottom-bar-regime {
        padding: 6px 12px;
    }
    
    .bottom-bar-regime-text {
        font-size: 12px;
    }
    
    /* Charts on very small phones */
    .chart-wrapper {
        height: 160px;
        min-height: 140px;
    }
    
    .main-chart .chart-wrapper {
        height: 200px;
    }
    
    .bull-run-chart .chart-wrapper {
        height: 180px;
    }
    
    .chart-title {
        font-size: 13px;
    }
    
    .chart-range-btn {
        padding: 4px 6px;
        font-size: 10px;
    }
    
    /* Simulation on very small phones */
    .simulation-section {
        padding: 12px 10px;
    }
    
    .simulation-title {
        font-size: 14px;
    }
    
    .simulation-title .title-icon {
        font-size: 14px;
    }
    
    .simulation-subtitle {
        font-size: 11px;
    }
    
    .sim-stat-value {
        font-size: 16px;
    }
    
    .sim-stat-label {
        font-size: 9px;
    }
    
    .sim-range-btn {
        padding: 6px 8px;
        font-size: 10px;
    }
    
    .simulation-chart-wrapper {
        height: 200px;
        min-height: 180px;
    }
    
    .simulation-legend .legend-item {
        font-size: 10px;
    }
    
    /* Trade history */
    .trade-row {
        flex-wrap: wrap;
    }
    
    .trade-action {
        font-size: 9px;
        min-width: 50px;
    }
    
    .trade-date, .trade-price, .trade-pnl {
        font-size: 10px;
    }
    
    .research-banner {
        padding: 14px 12px;
    }
    
    .research-badge-large {
        font-size: 10px;
        padding: 5px 10px;
    }
    
    .trust-badge {
        font-size: 10px;
        padding: 5px 10px;
    }
    
    .outperformance-value {
        font-size: 24px !important;
    }
    
    .research-text {
        font-size: 12px;
    }
    
    .upgrade-banner {
        padding: 10px 12px;
    }
    
    .upgrade-text strong {
        font-size: 12px;
    }
    
    .upgrade-subtext {
        font-size: 11px;
    }
}

/* ═══════════════════════════════════════════════════════════
   Mobile-Specific Enhancements
   ═══════════════════════════════════════════════════════════ */

/* Smooth momentum scrolling for trade lists on iOS */
.trades-list {
    -webkit-overflow-scrolling: touch;
}

/* Prevent zoom on input focus (iOS) */
@media screen and (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* Active/pressed states for touch feedback */
@media (hover: none) and (pointer: coarse) {
    .asset-btn:active,
    .range-btn:active,
    .chart-range-btn:active,
    .sim-range-btn:active,
    .run-simulation-btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    .status-card:active,
    .plan-card:active,
    .benefit-card:active {
        transform: scale(0.99);
    }
    
    /* Larger touch targets on mobile */
    .logout-btn {
        width: 44px;
        height: 44px;
    }
    
    .upgrade-dismiss {
        width: 44px;
        height: 44px;
    }
}

/* ═══════════════════════════════════════════════════════════
   Mobile Sticky Bottom Bar - Shows key info always visible
   ═══════════════════════════════════════════════════════════ */

.mobile-bottom-bar {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-top: 1px solid var(--border-primary);
        padding: 12px 16px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
        z-index: 1000;
        justify-content: space-between;
        align-items: center;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    .mobile-bottom-bar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
        opacity: 0.5;
    }
    
    .bottom-bar-price {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    .bottom-bar-label {
        font-size: 10px;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .bottom-bar-value {
        font-family: var(--font-mono);
        font-size: 20px;
        font-weight: 700;
        color: var(--text-primary);
    }
    
    .bottom-bar-regime {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        background: var(--bg-tertiary);
        border-radius: 24px;
        border: 1px solid var(--border-primary);
    }
    
    .bottom-bar-regime-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--neutral);
    }
    
    .bottom-bar-regime-dot.up {
        background: var(--bullish);
        box-shadow: 0 0 8px var(--bullish);
    }
    
    .bottom-bar-regime-dot.down {
        background: var(--bearish);
        box-shadow: 0 0 8px var(--bearish);
    }
    
    .bottom-bar-regime-dot.sideways {
        background: var(--sideways);
        box-shadow: 0 0 8px var(--sideways);
    }
    
    .bottom-bar-regime-text {
        font-size: 13px;
        font-weight: 600;
        color: var(--text-primary);
    }
    
    /* Hide footer on mobile - bottom bar replaces it */
    .footer {
        display: none;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .dashboard {
        padding: 12px;
        padding-bottom: 60px;
    }
    
    .research-banner {
        display: none;
    }
    
    .upgrade-banner {
        display: none;
    }
    
    .status-section {
        display: flex;
        overflow-x: auto;
        gap: 8px;
    }
    
    .status-card {
        flex: 0 0 auto;
        width: 140px;
        padding: 10px 14px;
    }
    
    .card-value {
        font-size: 20px;
    }
    
    .chart-wrapper {
        height: 180px;
    }
    
    .simulation-chart-wrapper {
        height: 200px;
    }
    
    .mobile-bottom-bar {
        padding: 8px 16px;
    }
    
    .bottom-bar-value {
        font-size: 16px;
    }
}
