/* ===================================================
   3D WebGL Viewport & Hero Styling — Ocean Theme
   =================================================== */
.viewport-3d-section { padding: 22px 26px; }

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 16px;
}

.stock-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.stock-symbol {
    font-size: 2.3rem;
    font-weight: 800;
    font-family: var(--font-mono);
    line-height: 1;
    background: linear-gradient(135deg, #fff 30%, var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.45));
}

.stock-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
}

.sector-pill {
    font-size: 0.74rem;
    background: rgba(0, 180, 255, 0.10);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 180, 255, 0.25);
    padding: 3px 12px;
    border-radius: 20px;
    font-family: var(--font-mono);
    backdrop-filter: blur(8px);
}

.stock-price-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-price {
    font-size: 2.1rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-main);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.18);
}

.hero-change {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.mini-metrics {
    display: flex;
    gap: 18px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    border-left: 1px solid rgba(0, 180, 255, 0.12);
    padding-left: 18px;
    flex-wrap: wrap;
}

.scene-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* WebGL canvas — ocean style */
.webgl-canvas-container {
    width: 100%;
    height: 390px;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: radial-gradient(ellipse at center top, #05213f 0%, #020c18 70%);
    border: 1px solid rgba(0, 180, 255, 0.20);
    box-shadow:
        inset 0 0 60px rgba(0, 0, 0, 0.80),
        inset 0 1px 0 rgba(0, 180, 255, 0.10),
        0 0 30px rgba(0, 100, 200, 0.10);
}

#threeCanvas { width: 100%; height: 100%; display: block; }

.canvas-hud-overlay {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}

.hud-stat {
    display: flex;
    gap: 8px;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    background: rgba(2, 10, 22, 0.80);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(0, 180, 255, 0.12);
    backdrop-filter: blur(10px);
}

.hud-label { color: var(--text-muted); }

.canvas-help-hint {
    position: absolute;
    bottom: 14px;
    right: 14px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    background: rgba(2, 10, 22, 0.80);
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid rgba(0, 180, 255, 0.10);
    backdrop-filter: blur(10px);
    pointer-events: none;
}

/* ===================================================
   ML Predictive Signal Hub Styling
   =================================================== */
.ai-signal-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(3, 15, 32, 0.92);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    margin-bottom: 22px;
    box-shadow: 0 0 30px rgba(0, 180, 255, 0.10), inset 0 1px 0 rgba(0, 212, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.ai-signal-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(0, 180, 255, 0.04) 0%, transparent 60%);
    pointer-events: none;
    animation: bannerGlow 6s ease-in-out infinite alternate;
}

@keyframes bannerGlow {
    0%   { opacity: 0.5; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.1); }
}

.signal-badge-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 145px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s var(--ease-out);
}

.signal-badge-large:hover { transform: scale(1.03); }

.signal-strong-buy {
    background: linear-gradient(135deg, rgba(0, 255, 179, 0.18), rgba(0, 212, 255, 0.22));
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 24px rgba(0, 255, 179, 0.35), inset 0 0 20px rgba(0, 255, 179, 0.05);
    animation: buyPulse 2.5s ease-in-out infinite;
}

@keyframes buyPulse {
    0%, 100% { box-shadow: 0 0 24px rgba(0, 255, 179, 0.35); }
    50%       { box-shadow: 0 0 40px rgba(0, 255, 179, 0.55), 0 0 70px rgba(0, 255, 179, 0.15); }
}

.signal-buy {
    background: rgba(0, 255, 179, 0.12);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
}

.signal-hold {
    background: rgba(255, 186, 0, 0.12);
    border: 1px solid var(--gold-warning);
    color: var(--gold-warning);
}

.signal-sell {
    background: rgba(255, 59, 107, 0.12);
    border: 1px solid var(--crimson-red);
    color: var(--crimson-red);
}

.signal-strong-sell {
    background: linear-gradient(135deg, rgba(255, 59, 107, 0.22), rgba(107, 53, 200, 0.20));
    border: 1px solid var(--crimson-red);
    color: var(--crimson-red);
    box-shadow: 0 0 24px rgba(255, 59, 107, 0.35);
}

.signal-arrow { font-size: 1.3rem; line-height: 1; }
.signal-text  { font-size: 0.95rem; font-weight: 800; letter-spacing: 0.5px; }
.signal-details { flex: 1; }

.confidence-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    font-family: var(--font-mono);
    margin-bottom: 7px;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(0, 180, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid rgba(0, 180, 255, 0.10);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--ocean-teal), var(--neon-green));
    background-size: 200% 100%;
    border-radius: 8px;
    transition: width 0.8s var(--ease-out);
    animation: flowFill 3s linear infinite;
}

.fill-glow { box-shadow: 0 0 12px var(--neon-cyan); }

@keyframes flowFill {
    0%   { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.signal-narrative { font-size: 0.84rem; color: var(--text-muted); line-height: 1.45; }

/* Forecast Horizons Grid */
.horizons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}

.horizon-card {
    background: rgba(3, 14, 30, 0.78);
    border: 1px solid rgba(0, 180, 255, 0.09);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: all 0.25s var(--ease-out);
}

.horizon-card:hover {
    border-color: rgba(0, 212, 255, 0.25);
    background: rgba(0, 180, 255, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 180, 255, 0.08);
}

.horizon-card.highlight-card {
    border-color: rgba(0, 212, 255, 0.28);
    background: rgba(0, 180, 255, 0.06);
    box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.04), 0 0 16px rgba(0, 180, 255, 0.08);
}

.h-label { font-size: 0.72rem; color: var(--text-muted); font-family: var(--font-mono); }
.h-price { font-size: 1.28rem; font-weight: 800; font-family: var(--font-mono); }
.h-chg   { font-size: 0.82rem; font-weight: 700; font-family: var(--font-mono); }

/* Feature Importance */
.feature-importance-section { margin-bottom: 18px; }

.feature-importance-section h4 {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-family: var(--font-mono);
}

.features-list { display: flex; flex-direction: column; gap: 9px; }

.feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.feat-name {
    width: 190px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feat-bar-wrapper {
    flex: 1;
    height: 6px;
    background: rgba(0, 180, 255, 0.07);
    border-radius: 6px;
    margin: 0 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 180, 255, 0.08);
}

.feat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--ocean-teal));
    border-radius: 6px;
    box-shadow: 0 0 6px rgba(0, 212, 255, 0.30);
    transition: width 0.7s var(--ease-out);
}

.feat-impact { font-size: 0.73rem; padding: 2px 7px; border-radius: 4px; }
.impact-bullish { background: rgba(0, 255, 179, 0.12); color: var(--neon-green); }
.impact-bearish { background: rgba(255, 59, 107, 0.12); color: var(--crimson-red); }
.impact-neutral { background: rgba(255, 255, 255, 0.07); color: var(--text-muted); }

.diagnostics-row {
    display: flex;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 180, 255, 0.08);
    font-size: 0.76rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.diag-val { font-weight: 700; color: var(--text-main); margin-left: 6px; }

/* ===================================================
   2D Interactive Chart Section
   =================================================== */
.timeframe-buttons {
    display: flex;
    gap: 3px;
    background: rgba(3, 14, 30, 0.80);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 180, 255, 0.09);
}

.btn-tf {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
}

.btn-tf.active,
.btn-tf:hover {
    background: linear-gradient(135deg, var(--neon-cyan), var(--ocean-teal));
    color: #020c18;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.35);
}

.chart-indicators-bar {
    display: flex;
    gap: 18px;
    margin-bottom: 14px;
    font-size: 0.78rem;
    font-family: var(--font-mono);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

.checkbox-label:hover { color: var(--text-main); }
.checkbox-label input { accent-color: var(--neon-cyan); }

.chart-canvas-container  { width: 100%; height: 310px; position: relative; }
.subchart-canvas-container {
    width: 100%;
    height: 120px;
    position: relative;
    margin-top: 12px;
    border-top: 1px solid rgba(0, 180, 255, 0.08);
    padding-top: 6px;
}

/* ===================================================
   Quantitative Risk Metrics Grid
   =================================================== */
.risk-grade-badge {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-weight: 700;
}

.badge-conservative { background: rgba(0, 255, 179, 0.12); color: var(--neon-green); border: 1px solid var(--neon-green); }
.badge-moderate     { background: rgba(0, 212, 255, 0.12); color: var(--neon-cyan);  border: 1px solid var(--neon-cyan);  }
.badge-aggressive   { background: rgba(255, 186, 0, 0.12); color: var(--gold-warning); border: 1px solid var(--gold-warning); }
.badge-speculative  { background: rgba(255, 59, 107, 0.12); color: var(--crimson-red); border: 1px solid var(--crimson-red); }

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

@media (max-width: 800px) {
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}

.metric-box {
    background: rgba(3, 13, 28, 0.72);
    border: 1px solid rgba(0, 180, 255, 0.09);
    border-radius: var(--radius-md);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: all 0.25s var(--ease-out);
    cursor: default;
}

.metric-box:hover {
    border-color: rgba(0, 212, 255, 0.24);
    background: rgba(0, 180, 255, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 180, 255, 0.06);
}

.m-title { font-size: 0.72rem; color: var(--text-muted); font-family: var(--font-mono); }
.m-value { font-size: 1.38rem; font-weight: 800; font-family: var(--font-mono); color: var(--text-main); }
.m-sub   { font-size: 0.67rem; color: var(--text-dim); }

/* ===================================================
   Sector Correlation Matrix Heatmap
   =================================================== */
.matrix-legend { font-size: 0.72rem; color: var(--text-muted); font-family: var(--font-mono); }
.matrix-table-wrapper { overflow-x: auto; margin-bottom: 16px; }

.corr-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-align: center;
}

.corr-table th { padding: 6px 8px; color: var(--text-muted); font-weight: 600; }

.corr-cell {
    padding: 10px 6px;
    border-radius: 6px;
    font-weight: 700;
    transition: transform 0.18s var(--ease-out), box-shadow 0.18s;
    cursor: default;
}

.corr-cell:hover {
    transform: scale(1.12);
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.50);
    z-index: 10;
}

.sector-performance-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.sector-pill-item {
    background: rgba(3, 14, 30, 0.80);
    border: 1px solid rgba(0, 180, 255, 0.10);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    white-space: nowrap;
    display: flex;
    gap: 6px;
    transition: border-color 0.2s;
}

.sector-pill-item:hover { border-color: rgba(0, 212, 255, 0.30); }

/* ===================================================
   Watchlist & Alerts Styling
   =================================================== */
.watchlist-table-container { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    font-family: var(--font-sans);
}

.data-table th {
    text-align: left;
    padding: 10px 14px;
    color: var(--text-muted);
    font-size: 0.73rem;
    font-family: var(--font-mono);
    border-bottom: 1px solid rgba(0, 180, 255, 0.10);
    letter-spacing: 0.3px;
}

.data-table td {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(0, 180, 255, 0.05);
    transition: background 0.15s;
}

.data-table tbody tr {
    transition: background 0.15s, transform 0.15s;
}

.data-table tbody tr:hover {
    background: rgba(0, 180, 255, 0.05);
}

.alerts-list-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 290px;
    overflow-y: auto;
}

/* Scrollbar water style */
.alerts-list-container::-webkit-scrollbar,
.search-suggestions::-webkit-scrollbar {
    width: 5px;
}

.alerts-list-container::-webkit-scrollbar-track,
.search-suggestions::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.alerts-list-container::-webkit-scrollbar-thumb,
.search-suggestions::-webkit-scrollbar-thumb {
    background: rgba(0, 180, 255, 0.30);
    border-radius: 10px;
}

.alert-card-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(3, 14, 30, 0.78);
    border: 1px solid rgba(0, 180, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 13px 17px;
    transition: all 0.22s var(--ease-out);
}

.alert-card-item:hover {
    background: rgba(0, 180, 255, 0.04);
    border-color: rgba(0, 180, 255, 0.20);
    transform: translateX(3px);
}

.alert-card-item.triggered {
    border-color: var(--neon-green);
    background: rgba(0, 255, 179, 0.05);
    box-shadow: 0 0 14px rgba(0, 255, 179, 0.10), inset 0 0 12px rgba(0, 255, 179, 0.03);
}

.alert-info-left { display: flex; align-items: center; gap: 12px; }

.alert-symbol-tag {
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--neon-cyan);
    background: rgba(0, 212, 255, 0.08);
    padding: 4px 9px;
    border-radius: 6px;
    border: 1px solid rgba(0, 212, 255, 0.18);
}

.alert-msg-text { font-size: 0.82rem; color: var(--text-main); }
.alert-time-text { font-size: 0.70rem; color: var(--text-muted); font-family: var(--font-mono); margin-top: 2px; }

/* ===================================================
   Modals & MFA Form Styling — Water Theme
   =================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(1, 5, 14, 0.88);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: backdropIn 0.2s ease;
}

@keyframes backdropIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-hidden { display: none !important; }

.modal-card {
    width: 100%;
    max-width: 445px;
    position: relative;
    border-color: var(--border-glow);
    box-shadow:
        0 0 60px rgba(0, 0, 0, 0.80),
        0 0 30px rgba(0, 180, 255, 0.12),
        inset 0 1px 0 rgba(0, 212, 255, 0.10);
    animation: modalSlideUp 0.28s var(--ease-out);
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
}

.modal-close-btn:hover {
    color: var(--neon-cyan);
    transform: rotate(90deg);
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid rgba(0, 180, 255, 0.10);
    margin-bottom: 22px;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 11px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.22s;
}

.tab-btn.active {
    color: var(--neon-cyan);
    border-bottom-color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.40);
}

.tab-btn:hover:not(.active) { color: var(--text-main); }

.modal-sub { font-size: 0.83rem; color: var(--text-muted); margin-bottom: 18px; line-height: 1.5; }

.modal-form { display: flex; flex-direction: column; gap: 15px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }

.form-group input,
.form-group select {
    background: rgba(3, 12, 28, 0.92);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    transition: all 0.25s var(--ease-out);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: var(--shadow-glow-cyan), inset 0 0 16px rgba(0, 212, 255, 0.03);
    background: rgba(4, 18, 40, 0.98);
}

.form-group select option { background: #04102a; color: var(--text-main); }

.input-code {
    font-family: var(--font-mono) !important;
    font-size: 1.6rem !important;
    letter-spacing: 8px;
    text-align: center;
    color: var(--neon-cyan) !important;
}

.mfa-header { text-align: center; margin-bottom: 20px; }
.mfa-icon-badge { font-size: 2.4rem; margin-bottom: 8px; }

.mfa-qr-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(2, 8, 20, 0.85);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 180, 255, 0.10);
}

.mfa-qr-img {
    width: 175px;
    height: 175px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.20);
}

.mfa-secret-box {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
}

.mfa-secret-box code {
    background: rgba(0, 212, 255, 0.08);
    color: var(--neon-cyan);
    padding: 3px 10px;
    border-radius: 5px;
    border: 1px solid rgba(0, 212, 255, 0.20);
}

.mfa-secret-label { color: var(--text-muted); }

.settings-section {
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(0, 180, 255, 0.08);
}

.settings-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.settings-section h4 { font-size: 0.9rem; margin-bottom: 12px; color: var(--neon-cyan); }

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sub-text { font-size: 0.78rem; color: var(--text-muted); margin-top: 3px; line-height: 1.4; }

.form-message {
    font-size: 0.8rem;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.error-msg   { background: rgba(255, 59, 107, 0.12); color: var(--crimson-red); border: 1px solid rgba(255, 59, 107, 0.35); }
.success-msg { background: rgba(0, 255, 179, 0.12); color: var(--neon-green); border: 1px solid rgba(0, 255, 179, 0.35); }

/* ===================================================
   Toast Notifications — Water Style
   =================================================== */
.toast-container {
    position: fixed;
    bottom: 26px;
    right: 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2000;
}

.toast-item {
    background: rgba(4, 16, 34, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    padding: 13px 20px;
    color: var(--text-main);
    font-size: 0.84rem;
    box-shadow:
        0 10px 36px rgba(0, 0, 0, 0.60),
        0 0 20px rgba(0, 180, 255, 0.14);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastSlideIn 0.32s var(--ease-out);
    min-width: 260px;
    max-width: 360px;
}

.toast-item.success { border-color: var(--neon-green); box-shadow: 0 10px 36px rgba(0,0,0,0.60), 0 0 20px rgba(0, 255, 179, 0.14); }
.toast-item.error   { border-color: var(--crimson-red); box-shadow: 0 10px 36px rgba(0,0,0,0.60), 0 0 20px rgba(255, 59, 107, 0.14); }

@keyframes toastSlideIn {
    from { transform: translateX(110%); opacity: 0; }
    to   { transform: translateX(0);   opacity: 1; }
}

/* ===================================================
   Buy on Groww Button — Special Style
   =================================================== */
.btn-buy-groww {
    background: linear-gradient(135deg, #00c853, #00e676);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    padding: 7px 14px;
    font-size: 0.80rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 16px rgba(0, 200, 83, 0.38), 0 4px 14px rgba(0,0,0,0.30);
    transition: all 0.25s var(--ease-out);
    text-decoration: none;
    font-family: var(--font-sans);
    position: relative;
    overflow: hidden;
}

.btn-buy-groww::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    border-radius: inherit;
}

.btn-buy-groww:hover {
    box-shadow: 0 0 28px rgba(0, 200, 83, 0.55), 0 0 60px rgba(0, 230, 118, 0.18), 0 6px 20px rgba(0,0,0,0.30);
    transform: translateY(-2px) scale(1.03);
    color: #fff;
}

.btn-buy-groww:active { transform: translateY(0) scale(0.98); }

/* India Market badge */
.india-badge {
    font-size: 0.65rem;
    background: rgba(255, 153, 0, 0.15);
    color: #ff9900;
    border: 1px solid rgba(255, 153, 0, 0.30);
    padding: 2px 7px;
    border-radius: 5px;
    font-family: var(--font-mono);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ===================================================
   India Stocks Section
   =================================================== */
.india-screener-section {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 153, 0, 0.15);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.india-screener-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 153, 0, 0.6), rgba(0, 180, 255, 0.4), transparent);
}

.screener-filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    align-items: center;
}

.screener-filter-bar select,
.screener-filter-bar input {
    background: rgba(3, 14, 30, 0.88);
    border: 1px solid rgba(0, 180, 255, 0.14);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.84rem;
    transition: border-color 0.2s;
    cursor: pointer;
}

.screener-filter-bar select:focus,
.screener-filter-bar input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.20);
}

.screener-filter-bar select option { background: #04102a; }

.india-stocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.india-stocks-grid::-webkit-scrollbar { width: 5px; }
.india-stocks-grid::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 10px; }
.india-stocks-grid::-webkit-scrollbar-thumb { background: rgba(255, 153, 0, 0.30); border-radius: 10px; }

.india-stock-card {
    background: rgba(3, 14, 30, 0.80);
    border: 1px solid rgba(0, 180, 255, 0.09);
    border-radius: var(--radius-md);
    padding: 14px;
    cursor: pointer;
    transition: all 0.24s var(--ease-out);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.india-stock-card:hover {
    border-color: rgba(0, 212, 255, 0.30);
    background: rgba(0, 180, 255, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 180, 255, 0.08);
}

.isc-header { display: flex; justify-content: space-between; align-items: flex-start; }
.isc-symbol { font-weight: 800; font-family: var(--font-mono); color: var(--neon-cyan); font-size: 0.95rem; }
.isc-chg { font-size: 0.8rem; font-weight: 700; font-family: var(--font-mono); }
.isc-name { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.isc-price { font-size: 1.1rem; font-weight: 800; font-family: var(--font-mono); color: var(--text-main); }
.isc-sector { font-size: 0.68rem; color: var(--text-dim); font-family: var(--font-mono); }
