/* ==========================================================================
   ELITE LIQUIDITY LEVELS CSS
   Glassmorphism, Quant Charts, SMC Zones
   ========================================================================== */

/* Layout & Globals */
.lqd-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; }
.lqd-layout { display: flex; gap: 24px; align-items: flex-start; }
.lqd-main-view { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.lqd-sidebar { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; gap: 24px; }

/* Utilities */
.hidden { display: none !important; }
.m-0 { margin: 0; } .mt-4 { margin-top: 4px; } .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); }
.text-sm { font-size: 0.85rem; } .text-muted { color: rgba(255,255,255,0.6); } .w-full { width: 100%; } .text-center { text-align: center; } .text-right { text-align: right; }
.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; } .gap-8 { gap: 8px; }

/* 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 slideDown { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes pulseDanger { 0% { box-shadow: 0 0 0 0 rgba(251,191,36,0.4); } 70% { box-shadow: 0 0 0 15px rgba(251,191,36,0); } 100% { box-shadow: 0 0 0 0 rgba(251,191,36,0); } }
@keyframes popIn { 0% { opacity:0; transform:scale(0.9); } 100% { opacity:1; transform:scale(1); } }

.fade-in { animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.spinning { animation: spin 1s linear infinite; }
.pulse { animation: pulseDanger 2s infinite; border-radius: 50%; }

/* Cards & Buttons */
.lqd-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; }

.lqd-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; }
.lqd-btn--primary { background: linear-gradient(135deg, #a855f7, #7e22ce); color: white; box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3); }
.lqd-btn--primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5); }
.lqd-btn--secondary { background: rgba(255,255,255,0.05); color: white; border: 1px solid rgba(255,255,255,0.1); }
.lqd-btn--secondary:hover { background: rgba(255,255,255,0.1); border-color: #c084fc; color: #c084fc; }
.lqd-btn-icon { background: transparent; border: none; color: rgba(255,255,255,0.6); cursor: pointer; transition: 0.2s; font-size: 1.2rem; }
.lqd-btn-icon:hover { color: white; }
.lqd-btn-icon-small { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: white; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; }
.lqd-btn-icon-small:hover { background: rgba(192,132,252,0.2); color: #c084fc; border-color: #c084fc; }

.lqd-input, .lqd-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; }
.lqd-input:focus, .lqd-select:focus { border-color: #c084fc; box-shadow: 0 0 0 2px rgba(192,132,252,0.2); }
.lqd-form-group { margin-bottom: 16px; }
.lqd-form-group label { display: block; margin-bottom: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.8); font-weight: 600; }
.lqd-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Banners */
.lqd-alerts { background: radial-gradient(circle at left, rgba(251,191,36,0.15), transparent); border: 1px solid rgba(251,191,36,0.3); padding: 16px 24px; border-radius: 16px; animation: slideDown 0.4s ease-out; }
.lqd-alerts-header { display: flex; justify-content: space-between; align-items: center; }
.lqd-alerts-list { display: flex; flex-direction: column; gap: 8px; }
.lqd-alert-item { background: rgba(0,0,0,0.3); padding: 12px 16px; border-radius: 8px; font-size: 0.85rem; border-left: 3px solid #fbbf24; cursor: pointer; transition: 0.2s; display: flex; justify-content: space-between; align-items: center; }
.lqd-alert-item:hover { background: rgba(255,255,255,0.05); transform: translateX(4px); border-left-color: #c084fc; }

/* Header */
.lqd-header { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 24px; }
.lqd-header__title { font-size: 2.2rem; font-weight: 800; margin: 0 0 8px 0; letter-spacing: 1px; }
.lqd-header__subtitle { color: #c084fc; margin: 0; font-size: 1rem; }
.lqd-header__stats { display: flex; gap: 24px; }
.lqd-stat-card { text-align: center; }
.lqd-stat-val { display: block; font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.lqd-stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); text-transform: uppercase; }

/* Symbols Grid */
.lqd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.lqd-sym-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 16px; cursor: pointer; transition: 0.3s; position: relative; overflow: hidden; }
.lqd-sym-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.04); border-color: rgba(192,132,252,0.4); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.lqd-sym-card.active { border-color: #c084fc; background: rgba(192,132,252,0.05); }

.lqd-sym-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.lqd-sym-title { font-size: 1.2rem; font-weight: 800; margin: 0; }
.lqd-sym-price { font-size: 0.9rem; font-weight: 700; color: rgba(255,255,255,0.8); tabular-nums: tabular-nums; }
.lqd-badge { font-size: 0.65rem; padding: 3px 8px; border-radius: 6px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #fff; background: rgba(255,255,255,0.1); }
.badge-appr { background: rgba(251,191,36,0.2); color: #fbbf24; border: 1px solid rgba(251,191,36,0.4); }
.badge-swept { background: rgba(239,83,80,0.2); color: #ef5350; border: 1px solid rgba(239,83,80,0.4); }

.lqd-sym-spark { width: 100%; height: 50px; position: relative; border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 12px; }
.lqd-sym-stats { display: flex; justify-content: space-between; font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.lqd-sym-stats .val { color: white; font-weight: 700; }

/* Main Chart */
.lqd-chart-filters { display: flex; gap: 8px; }
.lqd-flt-btn { background: rgba(255,255,255,0.05); border: 1px solid transparent; color: rgba(255,255,255,0.6); padding: 4px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: 0.2s; }
.lqd-flt-btn:hover { background: rgba(255,255,255,0.1); color: white; }
.lqd-flt-btn.active { background: rgba(192,132,252,0.2); color: #c084fc; border-color: rgba(192,132,252,0.4); }

.lqd-chart-wrapper { width: 100%; height: 400px; background: rgba(0,0,0,0.2); border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); position: relative; overflow: hidden; cursor: crosshair; }
.lqd-svg-chart { width: 100%; height: 100%; overflow: visible; }
.lqd-chart-legend { display: flex; gap: 16px; justify-content: center; font-size: 0.8rem; color: rgba(255,255,255,0.6); flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 6px; }
.l-box { width: 12px; height: 4px; border-radius: 2px; }

/* SVG Elements */
.chart-axis { stroke: rgba(255,255,255,0.1); stroke-width: 1; }
.chart-price-line { fill: none; stroke: rgba(255,255,255,0.4); stroke-width: 2; stroke-linejoin: round; }
.lvl-line { stroke-width: 2; cursor: pointer; transition: stroke-width 0.2s; }
.lvl-line:hover { stroke-width: 4; }
.lvl-line-pd { stroke: #06b6d4; } 
.lvl-line-pw { stroke: #22c55e; }
.lvl-line-eq { stroke: #ef5350; stroke-dasharray: 4; }
.lvl-line-fvg { fill: rgba(168,85,247,0.15); stroke: none; }
.lvl-line-swept { opacity: 0.3; stroke-dasharray: 2; }
.lvl-label { font-size: 0.65rem; fill: rgba(255,255,255,0.7); font-weight: 700; font-family: 'Inter', sans-serif; pointer-events: none; }

/* Table */
.lqd-table-wrapper { overflow-x: auto; }
.lqd-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.lqd-table th { text-align: left; padding: 12px 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; }
.lqd-table td { padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,0.05); font-variant-numeric: tabular-nums; }
.lqd-table tr:hover td { background: rgba(255,255,255,0.02); cursor: pointer; }
.dist-close { color: #fbbf24; font-weight: 700; }
.dist-far { color: rgba(255,255,255,0.5); }

/* Sidebar */
.lqd-sweeps-list { display: flex; flex-direction: column; gap: 8px; }
.lqd-sweep-item { background: rgba(0,0,0,0.2); padding: 12px; border-radius: 8px; border-left: 3px solid #06b6d4; font-size: 0.85rem; line-height: 1.4; color: rgba(255,255,255,0.8); }
.lqd-trade-insight { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); padding: 16px; border-radius: 12px; color: #4ade80; font-size: 0.9rem; line-height: 1.5; }

/* Modals */
.lqd-modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.lqd-modal__overlay { position: absolute; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); }
.lqd-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; }
.lqd-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; }
.lqd-modal__close:hover { color: white; }

/* Tooltip */
.lqd-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; }