/* =============================================================================
   BASE & LAYOUT
   ============================================================================= */

body {
    background: #121212;
    color: #fff;
    font-family: sans-serif;
    margin: 0 auto !important;
    max-width: 1900px !important;
}

#ticker {
    text-transform: uppercase;
}

/* ----- Controls bar ----- */
#controls {
    padding: 15px 20px;
    text-align: center;
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

#controls input[type="text"] {
    padding: 10px;
    border-radius: 4px;
    border: none;
    font-size: 14px;
}

#controls button {
    padding: 10px 20px;
    cursor: pointer;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
}
#controls button:hover { background: #0056b3; }

#controls select {
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #444;
    background: #1e1e1e;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}
#controls select:hover { border-color: #666; }

/* ----- Toggle groups ----- */
.toggle-group {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: #aaa;
    font-size: 13px;
}
.toggle-group label { cursor: pointer; }

.mode-group {
    background: #1e1e1e;
    padding: 6px 12px;
    border-radius: 4px;
}
.mode-group input[type="radio"] { margin-right: 4px; }

/* ----- Strike count pill buttons ----- */
.strike-count-group { gap: 4px; }

.strike-btn {
    background: transparent;
    border: 1px solid #444;
    color: #aaa;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}
.strike-btn:hover { border-color: #888; color: #fff; }
.strike-btn.active {
    background: rgba(0, 255, 102, 0.12);
    border-color: #00ff66;
    color: #00ff66;
}

/* ----- Indicator toggles ----- */
.indicator-toggles { gap: 8px; }

.ind-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
}
.ind-toggle:hover { background: rgba(255, 255, 255, 0.04); }
.ind-toggle input[type="checkbox"] { margin: 0; accent-color: #66ff66; }

/* ----- Status bar ----- */
#status-bar {
    text-align: center;
    padding: 0 20px 10px 20px;
}

#status {
    color: #888;
    font-size: 13px;
}

/* ----- Inline messages ----- */
.message {
    padding: 20px;
    text-align: center;
}
.message-error   { color: #ff5555; }
.message-loading { color: #888; padding: 40px; }


/* =============================================================================
   MAIN GRID (Market State Panel + Main Content)
   ============================================================================= */

#main-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 15px;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}

#main-content {
    min-width: 0;  /* allows grid child to shrink */
}


/* =============================================================================
   GEX HEATMAP
   ============================================================================= */

#chart {
    width: 100%;
    height: 45vh;
}


/* =============================================================================
   PRICE SECTION (TV/Live Chart + Levels Panel)
   ============================================================================= */

#price-section {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 15px;
    padding: 0 20px 20px 20px;
    box-sizing: border-box;
    width: 100%;
    height: 40vh;
    background: #121212;
}

#chart-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    min-height: 0;
}

#chart-container {
    flex: 1;
    background: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
    min-width: 0;
    min-height: 400px;
    height: 100%;
    width: 100%;
    position: relative;
}

#chart-toggles {
    flex: 0 0 auto;
    padding: 8px 12px;
    background: #1a1a1a;
    border-radius: 4px;
    border: 1px solid #2a2a2a;
    flex-wrap: wrap;
    justify-content: center;
}

.toggle-section-label {
    font-size: 11px;
    color: #888;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.toggle-section-divider {
    width: 1px;
    height: 16px;
    background: #444;
    margin: 0 6px;
}


/* =============================================================================
   LIVE CHART (Lightweight Charts)
   ============================================================================= */

#lw-chart {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.lw-info {
    position: absolute;
    top: 10px;
    left: 12px;
    font-size: 12px;
    color: #aaa;
    z-index: 10;
    pointer-events: none;
}

.lw-info .lw-symbol {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.lw-info .lw-price {
    font-size: 13px;
    color: #66ff66;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}


/* =============================================================================
   TRADINGVIEW CHART
   ============================================================================= */

#tv-chart {
    background: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
    min-width: 0;
    width: 100%;
    height: 100%;
    position: relative;
}

#tv-chart > div,
#tv-chart iframe {
    width: 100% !important;
    height: 100% !important;
}

/* Trade Analysis Section */
.analysis-block {
    margin-bottom: 14px;
}

.analysis-subtitle {
    font-family: var(--mono);
    font-size: 10px;
    color: #9ba3b4;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 500;
}

.analysis-text {
    font-size: 12px;
    color: #d1d5db;
    line-height: 1.5;
}

.analysis-text ul {
    margin: 6px 0 0 16px;
    padding: 0;
}

.analysis-text li {
    margin-bottom: 4px;
}

/* =============================================================================
   FEED STATUS BADGE
   ============================================================================= */

#feed-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    margin-left: 10px;
    vertical-align: middle;
}

#feed-status.feed-realtime {
    background: rgba(0, 170, 0, 0.18);
    color: #66ff66;
    border: 1px solid rgba(0, 170, 0, 0.4);
}

#feed-status.feed-delayed {
    background: rgba(255, 149, 0, 0.18);
    color: #ffb84d;
    border: 1px solid rgba(255, 149, 0, 0.4);
}

#feed-status.feed-closed {
    background: rgba(136, 136, 136, 0.18);
    color: #aaa;
    border: 1px solid rgba(136, 136, 136, 0.4);
}

#feed-status.feed-unknown {
    background: rgba(70, 130, 200, 0.18);
    color: #88bbff;
    border: 1px solid rgba(70, 130, 200, 0.4);
}

#feed-status .feed-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

#feed-status.feed-realtime .feed-dot {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}


/* =============================================================================
   LEVELS PANEL (Right side of price section)
   ============================================================================= */

#levels-panel {
    background: #1a1a1a;
    border-radius: 4px;
    border: 1px solid #2a2a2a;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    min-width: 0;
}

.levels-header {
    padding: 12px 15px;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #161616;
}

.levels-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
}

.regime-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    background: #333;
    color: #aaa;
    letter-spacing: 0.5px;
}

.regime-badge.regime-positive {
    background: rgba(0, 170, 0, 0.18);
    color: #66ff66;
    border: 1px solid rgba(0, 170, 0, 0.4);
}

.regime-badge.regime-negative {
    background: rgba(204, 0, 0, 0.18);
    color: #ff6666;
    border: 1px solid rgba(204, 0, 0, 0.4);
}

#levels-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.level-row {
    display: grid;
    grid-template-columns: 14px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    border-left: 3px solid transparent;
    transition: background 0.15s;
    cursor: default;
}
.level-row:hover { background: #232323; }

.level-row.is-spot  { border-left-color: #00ff66; background: rgba(0, 255, 102, 0.05); }
.level-row.is-flip  { border-left-color: #ffd700; background: rgba(255, 215, 0, 0.05); }
.level-row.is-pivot { border-left-color: #ff9500; }
.level-row.is-call  { border-left-color: #00aa00; }
.level-row.is-put   { border-left-color: #cc0000; }

.level-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.level-row.is-spot  .level-dot { background: #00ff66; }
.level-row.is-flip  .level-dot { background: #ffd700; }
.level-row.is-pivot .level-dot { background: #ff9500; }
.level-row.is-call  .level-dot { background: #00aa00; }
.level-row.is-put   .level-dot { background: #cc0000; }

.level-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}

.level-label {
    font-size: 12px;
    color: #ccc;
    font-weight: 500;
}

.level-strike {
    font-size: 15px;
    color: #fff;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.level-meta {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-size: 11px;
    color: #888;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.level-distance.positive { color: #66ff66; }
.level-distance.negative { color: #ff6666; }

.level-gex {
    font-size: 10px;
    color: #666;
}

/* ----- Levels footer legend ----- */
.levels-footer {
    padding: 10px 12px;
    border-top: 1px solid #2a2a2a;
    background: #161616;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 10px;
    color: #888;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-spot  { background: #00ff66; }
.dot-flip  { background: #ffd700; }
.dot-pivot { background: #ff9500; }
.dot-call  { background: #00aa00; }
.dot-put   { background: #cc0000; }


/* =============================================================================
   MARKET STATE PANEL
   ============================================================================= */

#market-state-panel {
    position: relative;
    width: 300px;
    background: #161616;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
}

.msp-content {
    padding: 16px;
    max-height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
}

/* ----- Header ----- */
.msp-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #2a2a2a;
}

.msp-symbol {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.msp-price {
    font-size: 16px;
    color: #66ff66;
}

/* ----- Sections ----- */
.msp-section {
    margin-bottom: 16px;
}

.msp-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 8px;
    font-weight: 600;
}

.msp-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 12px;
    color: #ccc;
}

.msp-row span:last-child {
    color: #fff;
    font-weight: 600;
}

/* ----- Market State bars (Trend / Momentum / Extension / RV) ----- */
.msp-state-row {
    display: grid;
    grid-template-columns: 80px 1fr 60px;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 12px;
    color: #ccc;
}

.msp-state-val {
    color: #fff;
    font-weight: 600;
    text-align: right;
    font-size: 11px;
}

.msp-bar {
    height: 6px;
    background: #2a2a2a;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.msp-bar-fill {
    height: 100%;
    background: #66ff66;
    width: 50%;
    transition: width 0.3s ease, background 0.3s ease;
    border-radius: 3px;
}
.msp-bar-fill.pos { background: #66ff66; }
.msp-bar-fill.neg { background: #ff5555; }
.msp-bar-fill.neu { background: #888; }

/* ----- Alignment pill ----- */
.msp-alignment {
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    text-transform: uppercase;
}

.msp-alignment.aligned     { background: rgba(102, 255, 102, 0.15); color: #66ff66; }
.msp-alignment.conflicting { background: rgba(255, 85, 85, 0.15);   color: #ff5555; }
.msp-alignment.neutral     { background: rgba(136, 136, 136, 0.15); color: #aaa; }

/* ----- Positioning (call/put split bar) ----- */
.msp-positioning-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    margin-bottom: 6px;
    color: #ccc;
}

.msp-positioning-header .pos-label {
    color: #888;
    font-size: 10px;
}

.msp-positioning-header .pos-side {
    font-weight: 600;
}

.msp-positioning-header .pos-side.calls .arrow { color: #66ff66; }
.msp-positioning-header .pos-side.puts .arrow  { color: #ff5555; }

.msp-oi-split-bar {
    height: 8px;
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #2a2a2a;
}

.oi-call-fill {
    background: linear-gradient(90deg, #00aa00, #66ff66);
    height: 100%;
    transition: width 0.3s ease;
}

.oi-put-fill {
    background: linear-gradient(90deg, #ff5555, #cc0000);
    height: 100%;
    transition: width 0.3s ease;
}

/* ----- VIX section ----- */
.msp-vix-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.msp-vix-label {
    color: #aaa;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.msp-vix-value {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-family: ui-monospace, monospace;
}

.msp-vix-regime {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.msp-vix-regime.vix-ultra-low { background: rgba(100, 150, 255, 0.15); color: #88aaff; }
.msp-vix-regime.vix-normal    { background: rgba(102, 255, 102, 0.15); color: #66ff66; }
.msp-vix-regime.vix-elevated  { background: rgba(255, 215, 0, 0.15);   color: #ffd700; }
.msp-vix-regime.vix-high      { background: rgba(255, 119, 119, 0.15); color: #ff7777; }
.msp-vix-regime.vix-crisis    { background: rgba(255, 0, 0, 0.25);     color: #ff5555; }

.msp-vix-sma {
    font-size: 10px;
    color: #888;
    margin-top: 2px;
}

/* ----- Sensitivity selector ----- */
.msp-sensitivity-wrap select {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #ccc;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 3px;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}

/* ----- Empty / loading state ----- */
.msp-empty {
    text-align: center;
    color: #555;
    font-size: 11px;
    padding: 16px 0;
    font-style: italic;
}

/* ----- Footer link to history page ----- */
.msp-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #2a2a2a;
    text-align: center;
}

.msp-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #888 !important;
    text-decoration: none;
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}

.msp-footer-link:hover {
    background: #2a2a2a;
    color: #66ff66;
}

.msp-external-icon {
    font-size: 10px;
    opacity: 0.6;
}


/* =============================================================================
   SIGNALS (Cards + Regime Banner + Stats)
   ============================================================================= */

.msp-regime-banner {
    padding: 6px 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #222;
    color: #aaa;
}

.msp-regime-banner.positive_gamma { background: rgba(102, 255, 102, 0.12); color: #66ff66; }
.msp-regime-banner.negative_gamma { background: rgba(255, 85, 85, 0.12);   color: #ff5555; }
.msp-regime-banner.near_expiry    { background: rgba(255, 215, 0, 0.12);   color: #ffd700; }

.msp-signals-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.signal-card {
    background: #1a1a1a;
    border-left: 3px solid #444;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.15s;
}
.signal-card:hover { background: #222; }

.signal-card.dir-long_call { border-left-color: #00aa00; }
.signal-card.dir-long_put  { border-left-color: #cc0000; }

.signal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.signal-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.signal-badge.long_call { background: rgba(0, 170, 0, 0.2); color: #66ff66; }
.signal-badge.long_put  { background: rgba(204, 0, 0, 0.2); color: #ff7777; }

.signal-confidence {
    font-size: 10px;
    color: #888;
}
.signal-confidence .dots {
    color: #66ff66;
    letter-spacing: 1px;
}

.signal-card-prices {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    margin: 8px 0 6px 0;
}

.signal-price-block {
    text-align: center;
    background: #111;
    border-radius: 3px;
    padding: 4px 2px;
}

.signal-price-block .label {
    font-size: 9px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.signal-price-block .value {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-top: 2px;
}

.signal-price-block.entry  .value { color: #aaa; }
.signal-price-block.target .value { color: #66ff66; }
.signal-price-block.stop   .value { color: #ff7777; }

.signal-card-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 10px;
    margin-top: 6px;
}

.signal-rationale {
    color: #999;
    font-size: 10px;
    line-height: 1.4;
    padding: 4px 0;
    font-style: italic;
}

.signal-option-info {
    margin-top: 4px;
    padding: 4px 6px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
    font-size: 10px;
    color: #aaa;
    font-family: ui-monospace, monospace;
}

/* ----- Signal stats footer ----- */
.msp-signals-stats {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #2a2a2a;
    font-size: 10px;
    color: #888;
}

.msp-signals-stats .stat-row {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
}

.msp-signals-stats .stat-row .win  { color: #66ff66; }
.msp-signals-stats .stat-row .loss { color: #ff7777; }


/* =============================================================================
   WATCHLIST
   ============================================================================= */

.msp-watchlist {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.watchlist-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 8px;
    background: #1a1a1a;
    border-radius: 4px;
    padding: 8px 10px;
    cursor: pointer;
    transition: background 0.15s;
    border-left: 3px solid #444;
}

.watchlist-row:hover { background: #232323; }

.watchlist-row.is-current {
    border-left-color: #66ff66;
    background: rgba(102, 255, 102, 0.05);
}

.watchlist-row.has-signals {
    border-left-color: #ffd700;
}

.watchlist-ticker {
    font-weight: 700;
    font-size: 12px;
    color: #fff;
}

.watchlist-status {
    font-size: 10px;
    color: #888;
}

.watchlist-signals-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    background: #2a2a2a;
    color: #aaa;
}

.watchlist-signals-badge.has-signals {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.watchlist-winrate {
    font-size: 10px;
    color: #888;
    text-align: right;
    min-width: 35px;
}

.watchlist-winrate.win  { color: #66ff66; }
.watchlist-winrate.loss { color: #ff5555; }


/* =============================================================================
   SETTINGS MODAL
   ============================================================================= */

.settings-btn {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #ccc;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
}
.settings-btn:hover { background: #3a3a3a; }

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal-overlay.open { display: flex; }

.modal-content {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #2a2a2a;
}

.modal-header h2 {
    margin: 0;
    font-size: 16px;
    color: #fff;
}

.modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.modal-close:hover { color: #fff; }

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid #2a2a2a;
}

.btn-primary,
.btn-secondary {
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: #1976d2;
    color: #fff;
}
.btn-primary:hover { background: #1565c0; }

.btn-secondary {
    background: transparent;
    color: #aaa;
    border-color: #444;
}
.btn-secondary:hover { background: #2a2a2a; }

/* ----- Settings form ----- */
.settings-section {
    margin-bottom: 20px;
}

.settings-section h3 {
    margin: 0 0 10px 0;
    color: #ccc;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.settings-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 6px 0;
}

.settings-row input[type="checkbox"] {
    margin-top: 2px;
}

.settings-label {
    flex: 1;
    font-size: 12px;
    color: #ddd;
}

.settings-desc {
    display: block;
    font-size: 10px;
    color: #888;
    margin-top: 2px;
}

.settings-select {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #ddd;
    padding: 5px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.settings-signal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #232323;
}
.settings-signal-row:last-child { border-bottom: none; }

.settings-confidence {
    font-size: 11px;
    color: #888;
}

.settings-confidence input {
    width: 45px;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #ddd;
    padding: 3px 5px;
    border-radius: 3px;
    margin-left: 6px;
    text-align: center;
}


/* =============================================================================
   RESPONSIVE OVERRIDES
   ============================================================================= */

@media (max-width: 1100px) {
    #price-section {
        grid-template-columns: 1fr;
        height: auto;
    }
    #tv-chart       { height: 65vh; }
    #levels-panel   { height: auto; max-height: 500px; }
}
 
/* =============================================================================
   DISCLAIMER FOOTER
   ============================================================================= */
 
#disclaimer {
    text-align: center;
    padding: 10px 20px;
    font-size: 14px;
    color: #555;
    border-top: 1px solid #222;
    background: #121212;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}