/* ==========================================================================
   ELITE SESSION VOLATILITY CSS
   Glassmorphism, Quant Charts, Heatmaps
   ========================================================================== */

/* Layout & Globals */
.svl-container { margin-left: 20px; padding: 32px; min-height: 100vh; color: #ffffff; font-family: 'Inter', sans-serif; display: flex; flex-direction: column; gap: 24px; position: relative; }
.svl-layout { display: flex; gap: 24px; align-items: flex-start; }
.svl-main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.svl-sidebar { width: 380px; flex-shrink: 0; position: sticky; top: 32px; }

/* Utilities */
.hidden { display: none !important; }
.m-0 { margin: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.pb-16 { padding-bottom: 16px; } .border-bottom { border-bottom: 1px solid rgba(255,255,255,0.1); } .border-top { border-top: 1px solid rgba(255,255,255,0.1); }
.text-sm { font-size: 0.85rem; } .text-muted { color: rgba(255,255,255,0.6); } .w-full { width: 100%; } .text-center { text-align: center; }
.uppercase { text-transform: uppercase; } .letter-spacing { letter-spacing: 1px; } .font-bold { font-weight: 700; } .tabular-nums { font-variant-numeric: tabular-nums; }
.flex-between { display: flex; justify-content: space-between; align-items: center; } .flex-align-center { display: flex; align-items: center; }

/* Palette */
.text-purple { color: #c084fc; } .text-cyan { color: #06b6d4; } .text-gold { color: #fbbf24; } .text-red { color: #ef5350; } .text-green { color: #22c55e; } .text-white { color: #ffffff; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseBtn { 0% { box-shadow: 0 0 0 0 rgba(168,85,247,0.6); } 70% { box-shadow: 0 0 0 15px rgba(168,85,247,0); } 100% { box-shadow: 0 0 0 0 rgba(168,85,247,0); } }
@keyframes spin { 100% { transform: rotate(360deg); } }
.fade-in { animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.pulse-btn { animation: pulseBtn 2s infinite; }
.spinning { animation: spin 1s linear infinite; }

/* Cards & Buttons */
.svl-card { background: rgba(255,255,255,0.03); backdrop-filter: blur(24px) saturate(180%); border: 1px solid rgba(255,255,255,0.08); border-radius: 24px; padding: 24px; box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05); transition: all 0.4s; }

.svl-btn { padding: 10px 20px; border-radius: 12px; font-weight: 700; font-size: 0.85rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s; border: none; text-transform: uppercase; font-family: inherit; }
.svl-btn--primary { background: linear-gradient(135deg, #a855f7, #7e22ce); color: white; box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3); }
.svl-btn--primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5); }
.svl-btn--secondary { background: rgba(255,255,255,0.05); color: white; border: 1px solid rgba(255,255,255,0.1); }
.svl-btn--secondary:hover { background: rgba(255,255,255,0.1); border-color: #c084fc; color: #c084fc; }

.svl-input, .svl-select { width: 100%; padding: 10px 14px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); color: white; border-radius: 8px; transition: 0.3s; font-family: inherit; font-size: 0.85rem; outline: none; }
.svl-input:focus, .svl-select:focus { border-color: #c084fc; box-shadow: 0 0 0 2px rgba(192,132,252,0.2); }
.svl-form-group { margin-bottom: 16px; }
.svl-form-group label { display: block; margin-bottom: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.8); font-weight: 600; }
.svl-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Header */
.svl-header { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 24px; }
.svl-header__title { font-size: 2.2rem; font-weight: 800; margin: 0 0 8px 0; letter-spacing: 1px; text-transform: uppercase; }
.svl-header__subtitle { color: #c084fc; margin: 0; font-size: 1rem; }
.svl-header__stats { display: flex; gap: 24px; }
.svl-stat-card { text-align: center; }
.svl-stat-val { display: block; font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.svl-stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); text-transform: uppercase; }

/* Live Session Strip */
.svl-live-strip { width: 100%; height: 40px; background: rgba(0,0,0,0.3); border-radius: 8px; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); }
.strip-zone { position: absolute; height: 100%; opacity: 0.6; mix-blend-mode: screen; }
.zone-asia { background: #a855f7; }
.zone-london { background: #06b6d4; }
.zone-ny { background: #fbbf24; }
.strip-cursor { position: absolute; top: 0; width: 2px; height: 100%; background: #fff; box-shadow: 0 0 10px #fff; z-index: 10; transition: left 1s linear; }
.strip-cursor::before { content: 'NOW'; position: absolute; top: -20px; left: -14px; font-size: 0.65rem; background: #fff; color: #000; padding: 2px 6px; border-radius: 4px; font-weight: 800; }
.strip-labels { position: absolute; width: 100%; height: 100%; display: flex; pointer-events: none; }
.strip-label-hr { flex: 1; border-right: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: center; align-items: flex-end; padding-bottom: 2px; font-size: 0.6rem; color: rgba(255,255,255,0.3); }

.svl-strip-legend { display: flex; gap: 16px; font-size: 0.75rem; color: rgba(255,255,255,0.6); }
.l-item { display: flex; align-items: center; gap: 6px; }
.l-box { width: 12px; height: 12px; border-radius: 3px; opacity: 0.8; }

/* Comparison Hero Grid */
.svl-comparison-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svl-sess-card { background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 16px; position: relative; overflow: hidden; transition: 0.3s; }
.svl-sess-card.active { border-color: rgba(255,255,255,0.4); box-shadow: 0 0 20px rgba(255,255,255,0.1); background: rgba(255,255,255,0.05); }
.svl-sess-card .title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.6); margin-bottom: 8px; }
.svl-sess-card .val { font-size: 1.8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.svl-sess-card.active::after { content: ''; position: absolute; top: 16px; right: 16px; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 10px #22c55e; }

/* Heatmap Grid */
.svl-heatmap-wrapper { width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); }
.hm-header { display: grid; grid-template-columns: 100px 1fr 1fr 1fr 1fr; background: rgba(0,0,0,0.4); border-bottom: 1px solid rgba(255,255,255,0.1); }
.hm-col-sym { padding: 12px; font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.5); text-transform: uppercase; }
.hm-col { padding: 12px; font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.5); text-transform: uppercase; text-align: center; }
.hm-body { display: flex; flex-direction: column; }
.hm-row { display: grid; grid-template-columns: 100px 1fr 1fr 1fr 1fr; border-bottom: 1px solid rgba(255,255,255,0.02); transition: 0.2s; cursor: pointer; }
.hm-row:hover { background: rgba(255,255,255,0.03); }
.hm-cell-sym { padding: 12px; font-weight: 800; font-size: 0.9rem; display: flex; align-items: center; }
.hm-cell { padding: 12px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; transition: 0.2s; }
.hm-cell:hover { transform: scale(1.1); box-shadow: 0 0 10px rgba(0,0,0,0.5); z-index: 10; border-radius: 4px; }

/* Sidebar Charts */
.svl-bar-chart { width: 100%; height: 200px; position: relative; background: rgba(255,255,255,0.02); border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); }
.svg-chart { width: 100%; height: 100%; overflow: visible; padding: 10px; }
.chart-bar { transition: y 0.5s, height 0.5s; cursor: crosshair; }
.chart-bar:hover { filter: brightness(1.3); }
.chart-axis { stroke: rgba(255,255,255,0.1); stroke-width: 1; }
.chart-lbl { font-size: 0.6rem; fill: rgba(255,255,255,0.4); }

.svl-killzone-insight { background: rgba(251,191,36,0.1); border-left: 3px solid #fbbf24; padding: 12px 16px; border-radius: 8px; font-size: 0.85rem; line-height: 1.4; color: rgba(255,255,255,0.9); }

/* Tables */
.svl-table-wrapper { overflow-x: auto; }
.svl-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.svl-table th { text-align: left; padding: 8px; border-bottom: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); text-transform: uppercase; font-size: 0.75rem; }
.svl-table td { padding: 8px; border-bottom: 1px solid rgba(255,255,255,0.05); font-variant-numeric: tabular-nums; }
.svl-table tr:hover td { background: rgba(255,255,255,0.02); }

/* Trade Stats */
.svl-trade-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ts-box { background: rgba(0,0,0,0.3); padding: 12px; border-radius: 8px; text-align: center; border: 1px solid rgba(255,255,255,0.05); }
.ts-box .lbl { font-size: 0.7rem; color: rgba(255,255,255,0.5); text-transform: uppercase; display: block; margin-bottom: 4px; }
.ts-box .val { font-size: 1.1rem; font-weight: 700; }
.svl-verdict { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); padding: 12px; border-radius: 8px; color: #22c55e; font-weight: 700; font-size: 0.9rem; text-align: center; }
.verdict-bad { background: rgba(239,83,80,0.1); border-color: rgba(239,83,80,0.3); color: #ef5350; }

/* Modals */
.svl-modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.svl-modal__overlay { position: absolute; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); }
.svl-modal__content { position: relative; background: #0d0b12; border: 1px solid rgba(255,255,255,0.1); border-radius: 24px; width: 90%; max-height: 90vh; overflow-y: auto; padding: 32px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); animation: fadeInUp 0.3s ease-out; }
.svl-modal__close { position: absolute; top: 24px; right: 24px; background: none; border: none; color: rgba(255,255,255,0.5); font-size: 1.5rem; cursor: pointer; transition: 0.3s; }
.svl-modal__close:hover { color: white; }

/* Tooltip */
.svl-tooltip { position: fixed; background: #140f19; border: 1px solid rgba(192,132,252,0.4); padding: 12px; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.5); z-index: 2000; pointer-events: none; font-size: 0.8rem; color: white; transform: translate(-50%, -120%); transition: opacity 0.2s; white-space: nowrap; }