:root {
    --bg-color: #0b0e14;
    --panel-bg: rgba(22, 27, 34, 0.6);
    --panel-border: rgba(255, 255, 255, 0.05);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-purple: #8b5cf6;

    --badge-bg-blue: rgba(59, 130, 246, 0.15);
    --badge-text-blue: #3b82f6;
    --badge-bg-purple: rgba(139, 92, 246, 0.15);
    --badge-text-purple: #8b5cf6;
    --badge-bg-teal: rgba(20, 184, 166, 0.15);
    --badge-text-teal: #14b8a6;
    --badge-bg-yellow: rgba(234, 179, 8, 0.15);
    --badge-text-yellow: #eab308;
    
    /* Dynamic Theme Variables */
    --top-bar-bg: rgba(11, 14, 20, 0.8);
    --bg-grad-1: rgba(59, 130, 246, 0.08);
    --bg-grad-2: rgba(139, 92, 246, 0.08);
    --logo-grad-1: #ffffff;
    --logo-grad-2: #94a3b8;
    
    --header-accent-grad: linear-gradient(to bottom, #a855f7, #00d2ff);
    
    --regime-color: var(--accent-blue);
    --regime-glow: 0 0 10px rgba(59, 130, 246, 0.5);
    
    --clock-bg: rgba(16, 185, 129, 0.08);
    --clock-border: rgba(16, 185, 129, 0.4);
    --clock-text: #00ff9d;
    --clock-shadow: 0 0 10px rgba(0, 255, 157, 0.7);
    --clock-box-shadow: 0 0 10px rgba(16, 185, 129, 0.15), inset 0 0 10px rgba(0, 0, 0, 0.4);
    
    --trend-bullish-color: #10b981;
    --trend-bullish-glow: 0 0 10px rgba(16, 185, 129, 0.5);
    --trend-bearish-color: #ef4444;
    --trend-bearish-glow: 0 0 10px rgba(239, 68, 68, 0.5);
    --trend-neutral-color: #ec4899;
    --trend-neutral-glow: 0 0 10px rgba(236, 72, 153, 0.5);
    --trend-range-color: #06b6d4;
    --trend-range-glow: 0 0 10px rgba(6, 182, 212, 0.5);
    
    --trend-stable-color: #94a3b8;
    --trend-exhaustion-color: #f59e0b;
    --trend-reversal-bottom-color: #10b981;
    --trend-reversal-top-color: #ef4444;
    
    --border-subtle: rgba(255, 255, 255, 0.05);
    --hover-bg: rgba(255, 255, 255, 0.03);
    --progress-bg: rgba(255, 255, 255, 0.1);
    --metric-bg: rgba(0, 0, 0, 0.2);
    --threshold-color: rgba(148, 163, 184, 0.45);
    
    --list-item-bg: rgba(0, 0, 0, 0.3);
    --list-item-hover: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
    --bg-color: #f8fafc;
    --panel-bg: rgba(255, 255, 255, 0.9);
    --panel-border: rgba(0, 0, 0, 0.1);
    --text-main: #0f172a;
    --text-muted: #64748b;
    
    --accent-green: #047857; /* Darker green */
    --accent-red: #b91c1c;   /* Darker red */
    --accent-blue: #1d4ed8;  /* Darker blue */
    --accent-purple: #6d28d9;/* Darker purple */
    
    --badge-bg-blue: rgba(37, 99, 235, 0.15);
    --badge-text-blue: #1d4ed8;
    --badge-bg-purple: rgba(109, 40, 217, 0.15);
    --badge-text-purple: #6d28d9;
    --badge-bg-teal: rgba(15, 118, 110, 0.15);
    --badge-text-teal: #0f766e;
    --badge-bg-yellow: rgba(161, 98, 7, 0.15);
    --badge-text-yellow: #a16207;

    --top-bar-bg: rgba(255, 255, 255, 0.85);
    --bg-grad-1: rgba(37, 99, 235, 0.04);
    --bg-grad-2: rgba(124, 58, 237, 0.04);
    --logo-grad-1: #0f172a;
    --logo-grad-2: #3b82f6;
    
    --header-accent-grad: linear-gradient(to bottom, #7c3aed, #0284c7);
    
    --regime-color: #2563eb;
    --regime-glow: none;
    
    --clock-bg: rgba(5, 150, 105, 0.1);
    --clock-border: rgba(5, 150, 105, 0.3);
    --clock-text: #059669;
    --clock-shadow: none;
    --clock-box-shadow: none;
    
    --trend-bullish-color: #059669;
    --trend-bullish-glow: none;
    --trend-bearish-color: #dc2626;
    --trend-bearish-glow: none;
    --trend-neutral-color: #db2777;
    --trend-neutral-glow: none;
    --trend-range-color: #0891b2;
    --trend-range-glow: none;

    --trend-stable-color: #64748b;
    --trend-exhaustion-color: #d97706;
    --trend-reversal-bottom-color: #059669;
    --trend-reversal-top-color: #dc2626;

    --border-subtle: rgba(0, 0, 0, 0.05);
    --hover-bg: rgba(0, 0, 0, 0.03);
    --progress-bg: rgba(0, 0, 0, 0.1);
    --metric-bg: rgba(0, 0, 0, 0.03);
    --threshold-color: rgba(100, 116, 139, 0.6);
    
    --list-item-bg: rgba(0, 0, 0, 0.03);
    --list-item-hover: rgba(0, 0, 0, 0.06);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, var(--bg-grad-1) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, var(--bg-grad-2) 0%, transparent 50%);
}

.dashboard-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: var(--top-bar-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--panel-border);
    position: sticky;
    top: 0;
    z-index: 10;
}

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

.logo h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    letter-spacing: 3px;
    margin: 0;
    background: linear-gradient(90deg, var(--logo-grad-1), var(--logo-grad-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo span {
    font-weight: 400;
    background: linear-gradient(90deg, var(--accent-blue), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.live-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--trend-bullish-color);
    border-radius: 50%;
    box-shadow: var(--trend-bullish-glow);
    animation: pulse 2s infinite;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
    color: var(--text-main);
    margin-left: 8px;
}

.theme-toggle:hover {
    background: var(--panel-border);
}

[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.global-metrics {
    display: flex;
    gap: 16px;
    flex: 1;
    justify-content: center;
    margin: 0 16px;
}

.metric {
    display: flex;
    flex-direction: column;
    padding-right: 16px;
    border-right: 1px solid var(--panel-border);
    white-space: nowrap;
}

.metric:last-child {
    border-right: none;
    padding-right: 0;
}

.metric .label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.metric .value {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.time {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Grid Layout */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    padding: 12px 24px;
    flex: 1;
    overflow: hidden;
}

/* Responsive logic moved to end of file */

/* Panels */
.panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 12px 16px;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel::-webkit-scrollbar {
    display: none;
}

.panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.panel h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--header-accent-grad);
    border-radius: 2px;
}

.sub-heading {
    font-size: 13px;
    margin: 6px 0 4px 0;
    color: var(--text-muted);
    font-weight: 600;
}

/* Tooltip styles */
.tooltip-header {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.info-icon {
    font-size: 14px;
    cursor: pointer;
    color: var(--text-muted);
    position: relative;
    display: inline-block;
}

.info-icon:hover {
    color: var(--accent-blue);
}

.info-icon .tooltip-text {
    visibility: hidden;
    width: 240px;
    background-color: #1e293b;
    color: #e2e8f0;
    text-align: left;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 10px;
    position: absolute;
    z-index: 100;
    bottom: 125%; /* Position above the icon */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: normal;
    line-height: 1.4;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    white-space: normal;
}

.info-icon:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Max Pain Panel */
.advice-box {
    background: rgba(139, 92, 246, 0.1);
    border-left: 4px solid var(--accent-purple);
    padding: 12px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.4;
}

.advice-box p {
    margin-bottom: 8px;
}

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

/* Tables */
.table-container {
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 8px;
    flex: 1;
}

.table-container::-webkit-scrollbar {
    display: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th {
    text-align: left;
    padding: 8px 10px;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--panel-border);
}

td {
    padding: 6px 10px;
    border-bottom: 1px solid var(--border-subtle);
}

tr:last-child td {
    border-bottom: none;
}

tbody tr {
    transition: background-color 0.2s;
}

tbody tr:hover {
    background-color: var(--hover-bg);
}

/* Whale Trap Panel */
.whale-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px;
    text-align: center;
    background: var(--metric-bg);
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    min-height: 60px;
    width: 100%;
}

.whale-status.armed-dump {
    background: rgba(239, 68, 68, 0.1);
    box-shadow: inset 0 0 15px rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Magic Prediction Panel */
.magic-prediction-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.magic-red {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: inset 0 0 20px rgba(239, 68, 68, 0.2);
}
.magic-red .magic-title { color: #ef4444; }

.magic-pink {
    background: rgba(236, 72, 153, 0.15);
    border-color: rgba(236, 72, 153, 0.6);
    box-shadow: inset 0 0 20px rgba(236, 72, 153, 0.2);
}
.magic-pink .magic-title { color: #ec4899; }

.magic-amber {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: inset 0 0 20px rgba(245, 158, 11, 0.2);
}
.magic-amber .magic-title { color: #f59e0b; }

.magic-skyblue {
    background: rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.6);
    box-shadow: inset 0 0 20px rgba(14, 165, 233, 0.2);
}
.magic-skyblue .magic-title { color: #0ea5e9; }

.magic-green {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.2);
}
.magic-green .magic-title { color: #10b981; }

.magic-prediction-card .magic-title {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
}

.whale-status.armed-dump #whale-armed-status { color: var(--accent-red); }

.whale-status.armed-pump {
    background: var(--glow-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.whale-status.armed-pump #whale-armed-status { color: var(--accent-green); }

.status-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.whale-status:not(.armed-dump):not(.armed-pump) .status-icon {
    animation: pulse-whale 2s infinite ease-in-out;
}

@keyframes pulse-whale {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(59, 130, 246, 0.2)); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.6)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(59, 130, 246, 0.2)); }
}

#whale-armed-status {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    margin-bottom: 0px;
    letter-spacing: 1px;
}

.whale-msg {
    color: var(--text-muted);
    font-size: 14px;
}

.whale-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
    width: 100%;
}

.w-metric {
    background: var(--metric-bg);
    padding: 6px 10px;
    border-radius: 8px;
    text-align: center;
}

.w-metric .label {
    display: block;
    font-size: clamp(9px, 0.8vw, 12px);
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.w-metric .value {
    font-size: clamp(12px, 1.5vw, 18px);
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    line-height: 1.1;
    white-space: nowrap;
}

.w-threshold {
    display: block;
    font-size: 9px;
    color: var(--threshold-color);
    margin-top: 6px;
    letter-spacing: 0.3px;
    font-family: 'Inter', sans-serif;
    border-top: 1px solid var(--border-subtle);
    padding-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Options Seller Edge Grid */
.options-edge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 12px;
}

.e-metric {
    background: var(--metric-bg);
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.e-metric .label {
    display: block;
    font-size: 9px;
    color: var(--text-muted);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.e-metric .value {
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.e-metric.high-ivr {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}
.e-metric.low-ivr {
    border-color: rgba(239, 68, 68, 0.3);
}
.e-metric.gex-pos {
    border-color: rgba(16, 185, 129, 0.3);
}
.e-metric.gex-neg {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}
.e-metric.skew-fear {
    border-color: rgba(239, 68, 68, 0.3);
}
.e-metric.skew-greed {
    border-color: rgba(16, 185, 129, 0.3);
}

.moves-list {
    list-style: none;
    overflow-y: hidden;
    flex: 0 0 auto;
}

.moves-list::-webkit-scrollbar {
    display: none;
}

.moves-list li {
    padding: 8px 12px;
    background: var(--list-item-bg);
    margin-bottom: 6px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    border-left: 4px solid var(--accent-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.moves-list li:hover {
    background: var(--list-item-hover);
}

.move-time {
    flex: 0 0 60px;
}

.move-time .badge {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
}

.move-price {
    flex: 1;
    text-align: center;
    font-weight: 600;
    color: var(--text-main);
}

.move-amount {
    flex: 0 0 80px;
    text-align: right;
    font-weight: 700;
}

.move-positive {
    color: var(--accent-green);
}

.move-negative {
    color: var(--accent-red);
}

.text-green { color: var(--accent-green) !important; }
.text-red { color: var(--accent-red) !important; }

/* Micro-animations */
.value-update {
    animation: flash 1s ease-out;
}

@keyframes flash {
    0% { filter: brightness(1.8); transform: scale(1.02); }
    100% { filter: brightness(1); transform: scale(1); }
}

/* Aura Background */
.bg-aura {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    transition: background 2s ease;
}

.bg-aura.aura-neutral {
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 60%);
}
.bg-aura.aura-positive {
    background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.20) 0%, transparent 75%);
    animation: breathe-green 4s infinite alternate ease-in-out;
}
.bg-aura.aura-negative {
    background: radial-gradient(circle at 50% 50%, rgba(239, 68, 68, 0.20) 0%, transparent 75%);
    animation: breathe-red 4s infinite alternate ease-in-out;
}

@keyframes breathe-green {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}
@keyframes breathe-red {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Progress Bars */
.progress-bg {
    width: 100%;
    height: 4px;
    background: var(--progress-bg);
    border-radius: 2px;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--text-muted);
    border-radius: 2px;
    transition: width 0.5s ease, transform 0.5s ease, background 0.5s ease;
}

/* Center-aligned bar for skew */
.progress-center .progress-fill {
    position: absolute;
    left: 50%;
    width: 0%;
    transform-origin: center;
}

/* Layout Wrappers (Replaced Inline Styles) */
.third-col-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
    flex: 1;
}

.dynamic-list {
    flex: 1;
    overflow-y: hidden;
}

.track-panel {
    flex: 1;
    margin-bottom: 0;
}

/* Market Toggle */
.market-toggle {
    display: flex;
    position: relative;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 2px;
    align-items: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    width: 210px;
}

.market-toggle input[type="radio"] {
    display: none;
}

.market-toggle label {
    position: relative;
    z-index: 2;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 16px;
    flex: 1 1 0;
    text-align: center;
    width: 33.333%;
}

.market-toggle input[type="radio"]:checked + label {
    color: #ffffff;
}

[data-theme="light"] .market-toggle input[type="radio"]:checked + label {
    color: #ffffff;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 2px;
    width: calc(33.333% - 1.33px);
    background: linear-gradient(135deg, var(--accent-blue), #8b5cf6);
    border-radius: 16px;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.market-toggle input[value="BTC"]:checked ~ .toggle-slider,
.market-toggle[data-market="BTC"] .toggle-slider {
    transform: translateX(0%);
    background: linear-gradient(135deg, var(--accent-blue), #8b5cf6);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.market-toggle input[value="ETH"]:checked ~ .toggle-slider,
.market-toggle[data-market="ETH"] .toggle-slider {
    transform: translateX(100%);
    background: linear-gradient(135deg, var(--accent-blue), #8b5cf6);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.market-toggle input[value="XAU"]:checked ~ .toggle-slider,
.market-toggle[data-market="XAU"] .toggle-slider {
    transform: translateX(200%);
    background: linear-gradient(135deg, #eab308, #f59e0b);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.market-toggle.market-closed input[value="ETH"]:checked ~ .toggle-slider,
.market-toggle.market-closed input[value="XAU"]:checked ~ .toggle-slider,
.market-toggle.market-closed[data-market="ETH"] .toggle-slider,
.market-toggle.market-closed[data-market="XAU"] .toggle-slider {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* Sniper Strikes Grid */
.sniper-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.sniper-card {
    background: var(--metric-bg);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.sniper-card.call {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

.sniper-card.put {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.sniper-card .strike {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.sniper-card .details {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.sniper-card .premium {
    font-weight: 600;
    color: var(--text-main);
}

/* Order Flow Dynamics */
.order-flow-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.of-metric {
    background: var(--metric-bg);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.of-metric .label {
    display: block;
    font-size: clamp(9px, 0.8vw, 11px);
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.of-metric .value {
    font-size: clamp(14px, 1.5vw, 16px);
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
    white-space: nowrap;
}

/* Flash animation for liquidation spikes */
@keyframes liq-flash-short {
    0% { background: rgba(16, 185, 129, 0.4); box-shadow: 0 0 15px rgba(16, 185, 129, 0.6); }
    100% { background: var(--metric-bg); box-shadow: none; }
}

@keyframes liq-flash-long {
    0% { background: rgba(239, 68, 68, 0.4); box-shadow: 0 0 15px rgba(239, 68, 68, 0.6); }
    100% { background: var(--metric-bg); box-shadow: none; }
}

.flash-short {
    animation: liq-flash-short 1.5s ease-out;
    border-color: rgba(16, 185, 129, 0.5);
}

.flash-long {
    animation: liq-flash-long 1.5s ease-out;
    border-color: rgba(239, 68, 68, 0.5);
}

@keyframes radar-flash-bg {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.5); box-shadow: 0 0 25px rgba(255, 255, 255, 0.2); }
    100% { filter: brightness(1); }
}

.flash-bg {
    animation: radar-flash-bg 1s infinite alternate;
}

/* --- Responsive Design --- */
@media (max-width: 1200px) {
    body {
        height: auto;
        overflow: auto;
    }
    .dashboard-container {
        height: auto;
        min-height: 100vh;
    }
    .grid-layout {
        grid-template-columns: 1fr;
        overflow: visible;
        height: auto;
    }
    .grid-layout > div, .third-col-wrapper {
        overflow: visible !important;
        height: auto !important;
        flex: none !important;
    }
    .panel, .track-panel {
        height: auto !important;
        overflow: visible !important;
        flex: none !important;
    }
    .moves-list, .dynamic-list {
        overflow: visible !important;
        flex: none !important;
        height: auto !important;
    }
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px;
    }
    .logo {
        width: 100%;
        justify-content: space-between;
    }
    .global-metrics {
        position: relative;
        left: auto;
        transform: none;
        width: 100%;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap;
    }
    .time {
        width: 100%;
        text-align: right;
        margin-top: 4px;
    }
    .whale-metrics {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .options-edge-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .grid-layout {
        padding: 12px;
        gap: 12px;
    }
    .metric .value {
        font-size: 16px;
    }
    .moves-list {
        overflow-y: visible !important;
    }
    .moves-list li {
        font-size: 13px;
        padding: 8px;
    }
    .whale-status {
        min-height: 60px;
    }
}

/* Smooth Breathing Icon Wrapper */
.breathing-icon {
    width: 38px;
    height: 38px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: breatheSmooth 5s ease-in-out infinite;
    will-change: transform;
}

.emoji-face {
    font-size: 30px;
    line-height: 1;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

@keyframes breatheSmooth {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* CSS Coin styling */
.css-coin {
    width: 38px;
    height: 38px;
    position: relative;
    /* Animation is now handled by wrapper */
}

.coin-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    /* Gold gradient */
    background: radial-gradient(circle at 30% 30%, #fde047, #f59e0b, #b45309);
    border: 3px solid #fbbf24;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5), inset 0 0 10px rgba(255,255,255,0.5);
}

@media (min-width: 1201px) {
    .grid-layout.sensex-mode {
        grid-template-columns: 1fr 1fr;
    }
}
