/* ── Layout ── */
.lc-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1rem;
    align-items: start;
}

/* ── Toolbar ── */
.toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #111113;
    border: 1px solid #27272a;
    border-radius: 12px;
    margin-top: 1.25rem;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.toolbar-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid #1e1e22;
}

/* Exchange radios */
.exchange-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.exchange-group label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    color: #a1a1aa;
    cursor: pointer;
    margin: 0;
    min-height: 32px;
}
.exchange-group input[type="radio"] { accent-color: #8b5cf6; cursor: pointer; }

/* Symbol search */
.symbol-wrap {
    position: relative;
    flex: 1;
    min-width: 160px;
    max-width: 340px;
}
.symbol-wrap input {
    width: 100%;
    padding: 0.6rem 1rem;
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 8px;
    color: #e4e4e7;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}
.symbol-wrap input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139,92,246,0.12);
}
.symbol-wrap input::placeholder { color: #52525b; }

/* Timeframe pills */
.tf-pills {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}
.tf-pill {
    padding: 0.35rem 0.7rem;
    border: 1px solid #27272a;
    border-radius: 6px;
    background: #18181b;
    color: #71717a;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    letter-spacing: 0.02em;
    min-height: 32px;
    display: flex;
    align-items: center;
}
.tf-pill:hover { border-color: #8b5cf6; color: #e4e4e7; background: rgba(139,92,246,0.08); }
.tf-pill.active { background: #8b5cf6; border-color: #8b5cf6; color: #fff; }

/* Load button */
.btn-fetch {
    padding: 0.6rem 1.25rem;
    background: #8b5cf6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    min-height: 38px;
}
.btn-fetch:hover  { background: #7c3aed; box-shadow: 0 4px 16px rgba(139,92,246,0.3); }
.btn-fetch:active { transform: scale(0.97); }
.btn-fetch:disabled { opacity: 0.5; cursor: not-allowed; }

/* Auto-refresh */
.refresh-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #71717a;
}
.toggle-switch { position: relative; width: 36px; height: 20px; flex-shrink: 0; }
.toggle-switch input { display: none; }
.toggle-slider {
    position: absolute; inset: 0;
    background: #27272a; border-radius: 20px; cursor: pointer;
    transition: background 0.2s;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 14px; height: 14px;
    top: 3px; left: 3px;
    background: #fff; border-radius: 50%;
    transition: transform 0.2s;
}
.toggle-switch input:checked + .toggle-slider { background: #8b5cf6; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(16px); }

/* ── Price bar ── */
.price-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.75rem 1.25rem;
    background: #111113;
    border: 1px solid #27272a;
    border-radius: 10px;
}
.pb-symbol { font-size: 1.05rem; font-weight: 700; color: #f4f4f5; }
.pb-price  { font-size: 1.5rem; font-weight: 800; color: #f4f4f5; letter-spacing: -0.02em; }
.pb-change {
    font-size: 0.9rem; font-weight: 600;
    padding: 0.2rem 0.55rem; border-radius: 5px;
}
.pb-change.up   { background: rgba(34,197,94,0.15);  color: #22c55e; }
.pb-change.down { background: rgba(239,68,68,0.15);  color: #ef4444; }
.pb-meta { font-size: 0.78rem; color: #52525b; }
.pb-ohlv { display: flex; gap: 1rem; flex-wrap: wrap; margin-left: auto; }
.pb-ohlv span  { font-size: 0.78rem; color: #71717a; }
.pb-ohlv strong { color: #a1a1aa; }

/* ── Chart panel ── */
.chart-wrap {
    background: #111113;
    border: 1px solid #27272a;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
#liveChart { width: 100%; height: 420px; }

/* ── Sidebar ── */
.sidebar { display: flex; flex-direction: column; gap: 1rem; }

/* Sentiment card */
.sentiment-card {
    background: #111113;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 1.1rem;
}
.sentiment-title {
    font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: #52525b; margin-bottom: 0.85rem;
}
.sentiment-bars { display: flex; flex-direction: column; gap: 0.6rem; }
.sent-row { display: flex; align-items: center; gap: 0.6rem; }
.sent-label { font-size: 0.78rem; color: #a1a1aa; width: 52px; flex-shrink: 0; }
.sent-track { flex: 1; height: 8px; background: #1e1e22; border-radius: 4px; overflow: hidden; }
.sent-fill { height: 100%; border-radius: 4px; transition: width 0.6s ease; }
.sent-fill.bull { background: linear-gradient(90deg,#22c55e,#4ade80); }
.sent-fill.bear { background: linear-gradient(90deg,#ef4444,#f87171); }
.sent-fill.neut { background: linear-gradient(90deg,#f59e0b,#fbbf24); }
.sent-pct { font-size: 0.78rem; font-weight: 600; width: 38px; text-align: right; flex-shrink: 0; }
.sent-pct.bull { color: #22c55e; }
.sent-pct.bear { color: #ef4444; }
.sent-pct.neut { color: #f59e0b; }

/* Pattern list */
.patterns-card {
    background: #111113;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 1.1rem;
    flex: 1 1 auto;
    min-height: 220px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
/* Let the scrollable list fill remaining card height */
.patterns-card .pattern-list {
    flex: 1;
}
.patterns-title {
    font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: #52525b; margin-bottom: 0.85rem;
    position: sticky; top: 0; z-index: 1;
    background: #111113;
    padding-bottom: 0.5rem;
}

/* Pattern gallery */
.pattern-gallery-card {
    background: #111113;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 1.1rem;
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
}
.pattern-gallery-title {
    font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: #52525b; margin-bottom: 0.85rem;
    display: flex; align-items: center; gap: 0.4rem;
}
.pattern-gallery-title .gallery-badge {
    background: #27272a; color: #a1a1aa;
    font-size: 0.65rem; padding: 0.1rem 0.45rem;
    border-radius: 999px; font-weight: 500; letter-spacing: 0.04em;
}
.pattern-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.65rem;
}

/* Gallery items */
.pg-item {
    background: #18181b; border: 1px solid #27272a;
    border-radius: 8px; overflow: hidden;
    cursor: pointer; transition: border-color 0.15s, transform 0.15s;
}
.pg-item:hover { border-color: #3f3f46; transform: translateY(-2px); }
.pg-item.bullish { border-color: rgba(34,197,94,0.35); }
.pg-item.bearish { border-color: rgba(239,68,68,0.35); }
.pg-item.neutral { border-color: rgba(161,161,170,0.35); }
.pg-item.bullish:hover { border-color: rgba(34,197,94,0.7); }
.pg-item.bearish:hover { border-color: rgba(239,68,68,0.7); }
.pg-item.neutral:hover { border-color: rgba(161,161,170,0.7); }
.pg-img-wrap {
    width: 100%; aspect-ratio: 4/3;
    background: #0d0d0f;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
}
.pg-img-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.pg-img-wrap .pg-no-img { color: #3f3f46; font-size: 0.65rem; text-align: center; padding: 0.5rem; }
.pg-rank {
    position: absolute; top: 4px; left: 5px;
    background: rgba(0,0,0,0.7); color: #a1a1aa;
    font-size: 0.6rem; font-weight: 700; padding: 1px 5px; border-radius: 4px;
}
.pg-rank.rank-1 { background: rgba(139,92,246,0.85); color: #fff; }
.pg-info { padding: 0.45rem 0.55rem 0.55rem; }
.pg-name {
    font-size: 0.65rem; font-weight: 600; color: #e4e4e7;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px;
}
.pg-meta { display: flex; align-items: center; gap: 0.35rem; }
.pg-cat {
    font-size: 0.58rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.04em;
    padding: 1px 5px; border-radius: 4px;
}
.pg-cat.bullish { background: rgba(34,197,94,0.15);  color: #4ade80; }
.pg-cat.bearish { background: rgba(239,68,68,0.15);  color: #f87171; }
.pg-cat.neutral { background: rgba(161,161,170,0.15);color: #a1a1aa; }
.pg-prob { font-size: 0.6rem; color: #71717a; margin-left: auto; }

/* Modal */
.pg-modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.82); z-index: 9999;
    align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}
.pg-modal-overlay.open { display: flex; }
.pg-modal-box {
    background: #18181b; border: 1px solid #3f3f46;
    border-radius: 14px; padding: 1.5rem;
    max-width: 520px; width: 90vw; max-height: 88vh;
    overflow-y: auto; position: relative;
}
.pg-modal-close {
    position: absolute; top: 0.75rem; right: 0.9rem;
    background: none; border: none; color: #71717a;
    font-size: 1.4rem; cursor: pointer; line-height: 1;
    min-width: 40px; min-height: 40px;
    display: flex; align-items: center; justify-content: center;
}
.pg-modal-close:hover { color: #e4e4e7; }
.pg-modal-img { width: 100%; border-radius: 8px; margin-bottom: 1rem; background: #0d0d0f; }
.pg-modal-name { font-size: 1rem; font-weight: 700; color: #e4e4e7; margin-bottom: 0.35rem; }
.pg-modal-desc { font-size: 0.8rem; color: #a1a1aa; line-height: 1.6; }

/* Pattern list rows */
.pattern-list {
    display: flex; flex-direction: column; gap: 0.55rem;
    max-height: 520px; overflow-y: auto;
    /* Smooth scroll on touch devices */
    -webkit-overflow-scrolling: touch;
}
.pattern-list::-webkit-scrollbar { width: 4px; }
.pattern-list::-webkit-scrollbar-track { background: transparent; }
.pattern-list::-webkit-scrollbar-thumb { background: #27272a; border-radius: 2px; }
.patt-item {
    background: #18181b; border: 1px solid #27272a;
    border-radius: 8px; padding: 0.65rem 0.85rem;
    transition: border-color 0.15s; cursor: pointer; position: relative;
    /* overflow:hidden removed — it clipped percentage badges on narrow screens */
}
.patt-item:hover { border-color: #3f3f46; }
.patt-item.top1  { border-color: rgba(139,92,246,0.5); }
.patt-bg-fill {
    position: absolute; top: 0; left: 0; bottom: 0; border-radius: 8px;
    opacity: 0.06; transition: width 0.6s ease; pointer-events: none;
}
.patt-bg-fill.bull { background: #22c55e; }
.patt-bg-fill.bear { background: #ef4444; }
.patt-bg-fill.neut { background: #f59e0b; }
/* Row: name on left (truncate), pct on right (never shrink) */
.patt-row1 {
    display: flex; align-items: center; justify-content: space-between;
    gap: 6px; position: relative; min-width: 0;
}
.patt-name {
    font-size: 0.82rem; font-weight: 600; color: #e4e4e7;
    flex: 1; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.patt-pct  { font-size: 0.95rem; font-weight: 800; flex-shrink: 0; margin-left: 4px; }
.patt-pct.bull { color: #22c55e; }
.patt-pct.bear { color: #ef4444; }
.patt-pct.neut { color: #f59e0b; }
.patt-bar-track { height: 3px; background: #27272a; border-radius: 2px; margin-top: 0.4rem; overflow: hidden; position: relative; }
.patt-bar-fill { height: 100%; border-radius: 2px; transition: width 0.7s ease; }
.patt-bar-fill.bull { background: #22c55e; }
.patt-bar-fill.bear { background: #ef4444; }
.patt-bar-fill.neut { background: #f59e0b; }
.patt-cat { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.3rem; position: relative; }
.patt-cat.bull { color: #22c55e; }
.patt-cat.bear { color: #ef4444; }
.patt-cat.neut { color: #f59e0b; }
.patt-desc { font-size: 0.72rem; color: #71717a; margin-top: 0.3rem; display: none; position: relative; }
.patt-item:hover .patt-desc { display: block; }

/* Loading overlay */
.loading-overlay {
    display: none; position: absolute; inset: 0;
    background: rgba(9,9,11,0.75); border-radius: 12px; z-index: 10;
    align-items: center; justify-content: center; flex-direction: column; gap: 0.75rem;
}
.loading-overlay.show { display: flex; }
.spin-icon {
    width: 36px; height: 36px;
    border: 3px solid rgba(139,92,246,0.2); border-top-color: #8b5cf6;
    border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: #a1a1aa; font-size: 0.9rem; }

/* Empty / error states */
.state-card { padding: 2.5rem; text-align: center; color: #52525b; font-size: 0.9rem; }
.state-card svg {
    width: 40px; height: 40px; stroke: #3f3f46;
    margin-bottom: 0.75rem; display: block; margin-inline: auto;
}

/* Autocomplete dropdown */
#symbolResults {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #18181b; border: 1px solid #27272a;
    border-top: none; border-radius: 0 0 8px 8px;
    z-index: 9999; max-height: 280px; overflow-y: auto;
}
#symbolResults div {
    padding: 10px 14px; color: #e4e4e7; cursor: pointer;
    font-size: 0.9rem; border-bottom: 1px solid #1e1e22;
    min-height: 44px; display: flex; align-items: center;
}
#symbolResults div:hover { background: #27272a; }
#symbolResults div:last-child { border-bottom: none; }

/* Refresh badge */
.refresh-badge { font-size: 0.7rem; color: #52525b; margin-left: auto; }
.refresh-badge.live { color: #22c55e; }

/* status dot */
#statusDot.live { background: #26c17b; box-shadow: 0 0 6px #26c17b88; }

/* ============================================
   RESPONSIVE — Tablet (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .lc-grid { grid-template-columns: 1fr; }

    /* Sidebar becomes a horizontal row: sentiment + signal side by side */
    .sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    /* Pattern Probabilities: full width, appears first */
    .patterns-card {
        grid-column: 1 / -1;
        order: -1;          /* float to top of sidebar grid */
        min-height: 280px;
    }
    /* Give sentiment cards a fixed height and put them after patterns */
    .sentiment-card { order: 0; }

    /* Pattern list shorter at tablet */
    .pattern-list { max-height: 320px; }

    #liveChart { height: 360px; }
}

/* ============================================
   RESPONSIVE — Mobile (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    .toolbar { padding: 0.85rem 1rem; gap: 0.65rem; }

    /* Stack toolbar left items */
    .toolbar-left { gap: 0.5rem; }

    /* Exchange radios scroll horizontally if needed */
    .exchange-group { overflow-x: auto; }

    /* Symbol input full width */
    .symbol-wrap { max-width: 100%; flex: 1 1 100%; }

    /* Timeframe pills scroll horizontally */
    .tf-pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
    .tf-pill  { flex-shrink: 0; }

    /* Price bar stack */
    .price-bar { gap: 0.5rem; padding: 0.65rem 1rem; }
    .pb-price  { font-size: 1.25rem; }
    .pb-ohlv   { margin-left: 0; gap: 0.75rem; }

    /* Chart shorter on phone */
    #liveChart { height: 300px; }

    /* Sidebar stacks to single col */
    .sidebar { grid-template-columns: 1fr; }

    /* Pattern Probabilities first on mobile */
    .patterns-card {
        grid-column: auto;
        order: -1;
        min-height: 200px;
    }
    .sentiment-card { order: 0; }

    /* Pattern list scrollable on mobile */
    .pattern-list { max-height: 300px; }

    /* Ensure name + pct both visible on smallest screens */
    .patt-name { font-size: 0.78rem; }
    .patt-pct  { font-size: 0.85rem; }

    /* Gallery 2 cols on mobile */
    .pattern-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }

    /* Toolbar right: stack items */
    .toolbar-right { flex-direction: column; align-items: flex-start; }

    /* Fetch button full width */
    .btn-fetch { width: 100%; }
}

/* ============================================
   RESPONSIVE — Small Mobile (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    #liveChart { height: 240px; }
    .state-card { padding: 1.5rem 1rem; }
    .pg-modal-box { padding: 1rem; }
}
/* ── Outer wrapper for lc-grid + pattern gallery ── */
.lc-outer-wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-x: hidden;
}

/* ============================================================
   ENHANCED UI — New component styles
   (Added for: trust badges, trade signal, strength breakdown,
    AI insight, options card, missed opportunities, mode toggle,
    trading style selector, Zerodha button)
   ============================================================ */

/* ── Fix #1: Trust badges row ─────────────────────────────── */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: #18181b;
    border: 1px solid #27272a;
    color: #a1a1aa;
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.trust-badge.green  { background: rgba(34,197,94,0.1);  border-color: rgba(34,197,94,0.3);  color: #22c55e; }
.trust-badge.purple { background: rgba(139,92,246,0.1); border-color: rgba(139,92,246,0.3); color: #a78bfa; }

/* ── Fix #4: Trading style selector ──────────────────────── */
.style-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.style-selector select:hover { border-color: #8b5cf6; }
.style-selector select:focus { outline: none; border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,0.12); }

/* ── Simple / Pro mode toggle ─────────────────────────────── */
.mode-toggle {
    display: flex;
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 7px;
    overflow: hidden;
    flex-shrink: 0;
}
.mode-btn {
    padding: 0.3rem 0.8rem;
    background: transparent;
    border: none;
    color: #71717a;
    font-size: 0.76rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    min-height: 32px;
}
.mode-btn:hover  { color: #e4e4e7; }
.mode-btn.active { background: #8b5cf6; color: #fff; }

/* ── Fix #2: Enhanced Trade Signal card ──────────────────── */
.trade-signal-card {
    background: #111113;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 1.1rem;
}
.ts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}
.ts-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #52525b;
}
.ts-style-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(139,92,246,0.15);
    color: #a78bfa;
    border: 1px solid rgba(139,92,246,0.25);
}
.trade-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 10px;
    margin-top: 6px;
}
.trade-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    grid-column: span 2;
}
.trade-lbl { font-size: 0.74rem; color: #71717a; }
.trade-val { font-size: 0.82rem; font-weight: 700; color: #e4e4e7; }

/* Zerodha action button */
.zerodha-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 9px 14px;
    background: linear-gradient(135deg, #387ed1, #1a5fa8);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    margin-top: 10px;
    transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
    letter-spacing: 0.02em;
}
.zerodha-btn:hover  { opacity: 0.9; box-shadow: 0 4px 16px rgba(56,126,209,0.35); }
.zerodha-btn:active { transform: scale(0.98); }

/* ── Feature #2: AI Insight card ─────────────────────────── */
.ai-insight-card {
    background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(59,130,246,0.06));
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: 12px;
    padding: 1rem 1.1rem;
}
.ai-insight-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #a78bfa;
    margin-bottom: 0.55rem;
}
.ai-insight-text {
    font-size: 0.82rem;
    color: #c4b5fd;
    line-height: 1.65;
}

/* ── Feature #3: Options card ────────────────────────────── */
.options-card {
    background: #111113;
    border: 1px solid rgba(139,92,246,0.25);
    border-radius: 12px;
    padding: 1rem 1.1rem;
}
.options-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8b5cf6;
    margin-bottom: 0.65rem;
}

/* ── Feature #4: Missed Opportunities (FOMO) card ────────── */
.missed-card {
    background: rgba(239,68,68,0.04);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: 12px;
    padding: 1rem 1.1rem;
}
.missed-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #f87171;
    margin-bottom: 0.55rem;
}

/* ── Responsive adjustments for new cards ────────────────── */
@media (max-width: 1024px) {
    .trade-signal-card,
    .ai-insight-card,
    .options-card,
    .missed-card    { order: 1; }
    .trust-badge    { font-size: 0.68rem; padding: 3px 8px; }
}

@media (max-width: 768px) {
    .mode-toggle    { margin-left: auto; }
    .style-selector { flex-wrap: wrap; }
    .trade-grid     { grid-template-columns: 1fr; }
    .trade-row      { grid-column: auto; }
    .zerodha-btn    { font-size: 0.78rem; }
}
