input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
}

/* ============================================================ */
/* Market Pulse Bar                                              */
/* ============================================================ */
.market-pulse-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 3px 16px;
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(42, 46, 57, 0.3);
    font-size: 0.6rem;
}
.pulse-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
}
.pulse-label {
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}
.pulse-value {
    font-weight: 700;
    white-space: nowrap;
}
.pulse-sep {
    width: 1px;
    height: 14px;
    background: rgba(42, 46, 57, 0.5);
}

/* ============================================================ */
/* Top Bar                                                       */
/* ============================================================ */

/* Override Hyper framework navbar margin for combined page */
.navbar-custom {
    margin-left: 0 !important;
}

.cl-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 16px;
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    border-bottom: 1px solid rgba(42, 46, 57, 0.6);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 16px;
    min-height: 44px;
}

.cl-price-chip {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(31, 41, 55, 0.4);
    border: 1px solid rgba(42, 46, 57, 0.5);
    border-radius: 6px;
}

.cl-price-value {
    font-family: 'JetBrains Mono', 'Monaco', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: #e2e8f0;
}

.cl-price-sub {
    font-size: 0.6rem;
    color: #64748b;
    margin-top: 1px;
}

/* ============================================================ */
/* Main 2-Column Layout: News Sidebar + Trading Content          */
/* ============================================================ */

/* Override the Hyper admin framework's content-page defaults */
.cl-main-layout.content-page {
    margin-left: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}

.cl-main-layout {
    display: flex;
    height: calc(100vh - 44px);
    overflow: hidden;
}

/* Left News Sidebar */
.cl-news-sidebar {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    background: linear-gradient(180deg, #111827 0%, #0d1117 100%);
    border-right: 1px solid rgba(42, 46, 57, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.cl-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(42, 46, 57, 0.4);
    flex-shrink: 0;
}

.cl-news-header h6 {
    color: #e2e8f0;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* OHLC Stats Bar */
.cl-ohlc-bar {
    display: flex;
    padding: 6px 14px;
    border-bottom: 1px solid rgba(42, 46, 57, 0.3);
    background: rgba(15, 23, 42, 0.5);
    flex-shrink: 0;
    gap: 4px;
}

.cl-ohlc-item {
    flex: 1;
    text-align: center;
    padding: 4px 0;
    border-radius: 4px;
    background: rgba(31, 41, 55, 0.3);
}

.cl-ohlc-label {
    display: block;
    font-size: 0.55rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.cl-ohlc-val {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
}

/* AI Summary body */
.cl-news-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px;
    min-height: 0;
}

/* Headlines section */
.cl-news-headlines {
    border-top: 1px solid rgba(42, 46, 57, 0.4);
    padding: 8px 10px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.cl-news-body::-webkit-scrollbar,
.cl-news-headlines::-webkit-scrollbar {
    width: 4px;
}
.cl-news-body::-webkit-scrollbar-thumb,
.cl-news-headlines::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.15);
    border-radius: 4px;
}

/* News upgrade CTA */
.cl-news-upgrade {
    padding: 16px;
    text-align: center;
    border-top: 1px solid rgba(42, 46, 57, 0.3);
    background: rgba(6, 182, 212, 0.03);
    flex-shrink: 0;
}

/* Right Trading Content */
.cl-trading-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    min-width: 0;
}

/* ============================================================ */
/* Responsive: collapse sidebar on small screens                 */
/* ============================================================ */

@media (max-width: 1199px) {
    .cl-news-sidebar {
        width: 260px;
        min-width: 260px;
        max-width: 260px;
    }
}

@media (max-width: 991px) {
    .cl-main-layout {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }
    .cl-news-sidebar {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        max-height: 350px;
        border-right: none;
        border-bottom: 1px solid rgba(42, 46, 57, 0.5);
    }
    .cl-trading-content {
        overflow-y: visible;
    }
}

/* ============================================================ */
/* Trading Panel (cards)                                         */
/* ============================================================ */

body {
    background: #0a0e1a !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.trading-panel {
    background: linear-gradient(145deg, #161b26 0%, #1a1f2e 100%);
    border: 1px solid rgba(42, 46, 57, 0.6);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    position: relative;
    display: flex;
    flex-direction: column;
}

.trading-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.3) 25%, rgba(139, 92, 246, 0.3) 75%, transparent 100%);
}

.trading-panel .card-body {
    padding: 0;
    background: transparent;
    flex: 1;
    min-height: 0;
}

.trading-header {
    background: linear-gradient(135deg, #1e2936 0%, #161b26 100%);
    padding: 8px 12px;
    border-bottom: 1px solid rgba(42, 46, 57, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    flex-shrink: 0;
}

.trading-header h6 {
    color: #e2e8f0 !important;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0;
}

.trading-controls {
    display: flex;
    align-items: center;
}

.trading-controls label,
.trading-controls span {
    color: #e2e8f0 !important;
    font-size: 12px;
    font-weight: 500;
}

.orderbook-table {
    font-family: 'JetBrains Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 11px;
    background: transparent;
}

.orderbook-table th {
    background: rgba(15, 23, 42, 0.8) !important;
    color: #64748b !important;
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(42, 46, 57, 0.4) !important;
    padding: 6px 8px !important;
    position: sticky;
    top: 0;
    z-index: 1;
}

.orderbook-table td {
    padding: 3px 8px !important;
    border-bottom: 1px solid rgba(42, 46, 57, 0.15) !important;
    vertical-align: middle;
}

/* Price column styles */
.orderbook-table .text-danger .orderbook-price { color: #ef4444 !important; font-weight: 600; }
.orderbook-table .text-success .orderbook-price { color: #22c55e !important; font-weight: 600; }
.orderbook-table .orderbook-quantity { color: #94a3b8; }
.orderbook-table .orderbook-total { color: #64748b; }

/* Chart panels */
.chart-panel { min-height: 260px; }
.chart-container { padding: 6px !important; min-height: 240px; }

/* Data row panels (charts, orderbook, trades, etc.) get slightly subtler styling */
[data-panel-id="charts"] .trading-panel,
[data-panel-id="orderbook-trades"] .trading-panel,
[data-panel-id="data-cards"] .trading-panel {
    border-color: rgba(42, 46, 57, 0.4);
}
[data-panel-id="charts"] .trading-panel::before,
[data-panel-id="orderbook-trades"] .trading-panel::before,
[data-panel-id="data-cards"] .trading-panel::before {
    opacity: 0.5;
}


/* Grid panel */
.grid-panel { width: 100%; }
.grid-panel[style*="display: none"] { display: none !important; }

/* ============================================================ */
/* Row height matching for orderbook + trades + whale tracker    */
/* ============================================================ */

/* Row 2: orderbook, trades, whale all same height */
.row-matched-height {
    display: flex;
    flex-wrap: wrap;
}
.row-matched-height > [class*="col-"] {
    display: flex;
}
.row-matched-height > [class*="col-"] > .trading-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.row-matched-height > [class*="col-"] > .trading-panel > .card-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/* Cap the orderbook-trades row so trades/whale panels scroll within
   the same height as the orderbook (24 levels + header ≈ 620px). */
[data-panel-id="orderbook-trades"] .row-matched-height {
    max-height: 620px;
    overflow: hidden;
}
[data-panel-id="orderbook-trades"] .row-matched-height > [class*="col-"] {
    max-height: 620px;
    overflow: hidden;
}

/* Constrain all scrollable feeds to consistent max-height */
.ob-scroll { overflow-y: visible; }
.trades-scroll {
    overflow-y: auto;
    max-height: 560px;
}
.whale-scroll {
    overflow-y: auto;
    max-height: 560px;
}

/* Row 4 data cards (liquidations, funding, OI, signals) have no fixed-height
   anchor, so cap them so they don't grow infinitely as items are appended. */
.data-feed-scroll {
    overflow-y: auto;
    max-height: 280px;
}

/* ============================================================ */
/* Pair selector + controls                                      */
/* ============================================================ */

.btn-pair-selector {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-pair-selector:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

.btn-control-compact {
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(42, 46, 57, 0.6);
    color: #94a3b8;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.15s;
}
.btn-control-compact:hover { color: #e2e8f0; background: rgba(59, 130, 246, 0.15); }

.live-status {
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 500;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.btn-trading {
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(42, 46, 57, 0.6);
    color: #94a3b8 !important;
    font-size: 0.7rem;
}
.btn-trading:hover { color: #e2e8f0 !important; border-color: rgba(59, 130, 246, 0.4); }

/* ============================================================ */
/* Loading                                                       */
/* ============================================================ */

.loading-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: #0a0e1a; z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.4s;
}
.loading-overlay.hidden { opacity: 0; pointer-events: none; }
.spinner-ring {
    width: 40px; height: 40px;
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================ */
/* Whale feed styling                                            */
/* ============================================================ */

.whale-feed-container { font-size: 0.75rem; }

.whale-alert {
    padding: 6px 8px;
    margin-bottom: 4px;
    border-radius: 6px;
    border-left: 3px solid;
    animation: fadeInSlide 0.3s ease-out;
}
.whale-alert.buy-whale { border-left-color: #22c55e; background: rgba(34, 197, 94, 0.05); }
.whale-alert.sell-whale { border-left-color: #ef4444; background: rgba(239, 68, 68, 0.05); }

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================ */
/* Exchange icons                                                */
/* ============================================================ */

.exchange-icon-stack { display: flex; gap: 2px; justify-content: flex-end; align-items: center; }
.exchange-icon-stack img { width: 14px; height: 14px; border-radius: 2px; }

/* ============================================================ */
/* Dropdowns                                                     */
/* ============================================================ */

.dropdown-menu {
    background: #1e293b;
    border: 1px solid rgba(42, 46, 57, 0.8);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}
.dropdown-item {
    color: #94a3b8;
    font-size: 0.8rem;
    padding: 6px 14px;
}
.dropdown-item:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #e2e8f0;
}

/* ============================================================ */
/* Row gap helper (tight grid spacing)                           */
/* ============================================================ */
.cl-trading-content .row.g-2 { --bs-gutter-x: 0.5rem; --bs-gutter-y: 0.5rem; }
.cl-trading-content .row.g-2 > [class*="col"] { padding-left: calc(var(--bs-gutter-x) / 2); padding-right: calc(var(--bs-gutter-x) / 2); margin-bottom: var(--bs-gutter-y); }

/* Remove bottom margin from .mb-2 inside trading content for tighter layout */
.cl-trading-content .grid-panel > .row.mb-2 { margin-bottom: 0 !important; }
.cl-trading-content .grid-panel + .grid-panel { margin-top: 0.5rem; }

/* Scrollbar styling for all scrollable panels */
.ob-scroll::-webkit-scrollbar,
.trades-scroll::-webkit-scrollbar,
.whale-scroll::-webkit-scrollbar,
.data-feed-scroll::-webkit-scrollbar,
.row-matched-height .trading-panel > .card-body::-webkit-scrollbar {
    width: 4px;
}
.ob-scroll::-webkit-scrollbar-thumb,
.trades-scroll::-webkit-scrollbar-thumb,
.whale-scroll::-webkit-scrollbar-thumb,
.data-feed-scroll::-webkit-scrollbar-thumb,
.row-matched-height .trading-panel > .card-body::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.15);
    border-radius: 4px;
}

/* ============================================================ */
/* Exchange Name Tags                                            */
/* ============================================================ */
.exchange-tag {
    display: inline-block;
    font-size: 0.55rem;
    font-weight: 600;
    line-height: 1;
    padding: 2px 4px;
    margin: 0 1px;
    border-radius: 3px;
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.25);
    white-space: nowrap;
    vertical-align: middle;
    letter-spacing: 0.02em;
}

.orderbook-exchange-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    justify-content: flex-end;
    align-items: center;
}

.orderbook-overflow-text {
    font-size: 0.6rem;
    color: #94a3b8;
    margin-left: 2px;
}

/* ============================================================ */
/* Pro Accent System                                             */
/* ============================================================ */
:root {
    --pro-accent: #06b6d4;       /* cyan-500 */
    --pro-accent-light: #22d3ee; /* cyan-400 */
    --pro-accent-dim: rgba(6, 182, 212, 0.15);
    --pro-accent-border: rgba(6, 182, 212, 0.35);
    --pro-accent-glow: rgba(6, 182, 212, 0.25);
    --warn-amber: #d97706;       /* amber-600 — caution/delay only */
    --warn-amber-light: #f59e0b;
}

/* ============================================================ */
/* Speed-limit banner (free tier)                                */
/* ============================================================ */
.speed-limit-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 4px 16px;
    background: linear-gradient(90deg, rgba(217, 119, 6, 0.07) 0%, rgba(6, 182, 212, 0.06) 100%);
    border-bottom: 1px solid rgba(217, 119, 6, 0.2);
    font-size: 0.7rem;
}

.speed-limit-text {
    color: #94a3b8;
    font-weight: 500;
}

.speed-limit-text .delay-word {
    color: var(--warn-amber);
    font-weight: 700;
}

.speed-limit-text .pro-word {
    color: var(--pro-accent-light);
    font-weight: 700;
}

.speed-limit-text i {
    margin-right: 4px;
    font-size: 0.8rem;
    vertical-align: -1px;
    color: var(--warn-amber);
}

.speed-limit-upgrade {
    color: var(--pro-accent-light) !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.65rem;
    padding: 2px 10px;
    border: 1px solid var(--pro-accent-border);
    border-radius: 4px;
    background: var(--pro-accent-dim);
    transition: all 0.15s;
    white-space: nowrap;
}

.speed-limit-upgrade:hover {
    background: rgba(6, 182, 212, 0.25);
    border-color: var(--pro-accent-light);
    text-decoration: none;
    color: #fff !important;
}

/* ============================================================ */
/* Alpha Feed                                                    */
/* ============================================================ */

.alpha-feed-panel {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.06);
}

.alpha-feed-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #10b981, #3b82f6, #06b6d4);
}

.alpha-feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px 8px 16px;
}

.alpha-feed-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #10b981;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.alpha-feed-live {
    font-size: 0.5rem;
    background: #10b981;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
    animation: pulse 2s ease-in-out infinite;
}

.alpha-feed-delayed {
    font-size: 0.5rem;
    background: var(--warn-amber, #d97706);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
}

.alpha-feed-body {
    padding: 6px 16px 14px 16px;
    min-height: 100px;
}

.alpha-bullet {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    margin-bottom: 6px;
    border-radius: 5px;
    background: rgba(15, 23, 42, 0.5);
    border-left: 3px solid;
    font-size: 0.72rem;
    line-height: 1.45;
    animation: fadeInSlide 0.3s ease-out;
}

.alpha-bullet.bullish { border-left-color: #10b981; }
.alpha-bullet.bearish { border-left-color: #ef4444; }
.alpha-bullet.neutral { border-left-color: #64748b; }
.alpha-bullet.info { border-left-color: #3b82f6; }

.alpha-bullet-time {
    font-size: 0.5rem;
    color: #475569;
    white-space: nowrap;
    min-width: 28px;
    margin-top: 1px;
}

.alpha-bullet-badge {
    font-size: 0.5rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.alpha-bullet-badge.high { background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); font-weight: 800; }
.alpha-bullet.bullish .alpha-bullet-badge.high { background: rgba(16, 185, 129, 0.2); color: #10b981; border-color: rgba(16, 185, 129, 0.3); }
.alpha-bullet-badge.medium { background: rgba(148, 163, 184, 0.12); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.2); }
.alpha-bullet-badge.low { background: rgba(71, 85, 105, 0.15); color: #64748b; border: 1px solid rgba(71, 85, 105, 0.2); }

.alpha-bullet-text {
    flex: 1;
    color: #e2e8f0;
    font-weight: 600;
}

.alpha-bullet-why {
    font-size: 0.58rem;
    color: #93c5fd;
    font-weight: 500;
    margin-top: 3px;
    font-style: italic;
    line-height: 1.4;
}

.alpha-feed-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 14px;
    margin: 6px 14px 10px 14px;
    background: linear-gradient(135deg, var(--pro-accent-dim, rgba(6,182,212,0.08)) 0%, rgba(59, 130, 246, 0.06) 100%);
    border: 1px solid var(--pro-accent-border, rgba(6,182,212,0.25));
    border-radius: 6px;
    font-size: 0.6rem;
    color: #94a3b8;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
}

.alpha-feed-cta .cta-emphasis {
    color: var(--pro-accent-light, #22d3ee);
    font-weight: 700;
    font-size: 0.58rem;
}

.alpha-feed-cta a {
    color: var(--pro-accent-light, #22d3ee) !important;
}

.alpha-blurred {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

/* Market state helper line — prominent bar */
.alpha-feed-market-state {
    font-size: 0.62rem;
    color: #e2e8f0;
    font-weight: 700;
    padding: 6px 16px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: rgba(15, 23, 42, 0.6);
    border-top: 1px solid rgba(42, 46, 57, 0.3);
    border-bottom: 1px solid rgba(42, 46, 57, 0.3);
}

.alpha-feed-market-state .state-label {
    font-size: 0.5rem;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.6px;
    margin-right: 6px;
}

.alpha-feed-market-state .state-stage {
    font-size: 0.5rem;
    color: #475569;
    font-weight: 500;
    margin-left: 6px;
}

/* Primary signal emphasis */
.alpha-bullet.alpha-primary {
    background: rgba(15, 23, 42, 0.7);
    border-left-width: 4px;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.06);
}

.alpha-bullet.alpha-primary .alpha-bullet-text {
    font-size: 0.76rem;
    color: #f1f5f9;
}

.alpha-primary-label {
    font-size: 0.42rem;
    color: #10b981;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 2px;
    display: block;
}

.alpha-bullet.bearish .alpha-primary-label {
    color: #ef4444;
}

/* Secondary signal de-emphasis */
.alpha-bullet.alpha-secondary {
    opacity: 0.78;
}

.alpha-bullet.alpha-secondary .alpha-bullet-text {
    font-size: 0.68rem;
}

/* ============================================================ */
/* Bias Card                                                     */
/* ============================================================ */

.bias-card {
    text-align: center;
    padding: 12px 14px;
}

.bias-card-label {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bias-card-reason {
    font-size: 0.6rem;
    color: #94a3b8;
    margin-top: 4px;
    line-height: 1.4;
}

.bias-meter {
    display: flex;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.bias-meter-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.bias-card-verdict {
    font-size: 0.6rem;
    color: #e2e8f0;
    font-weight: 600;
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    line-height: 1.4;
}

/* ============================================================ */
/* Signal Agreement Card (replaces What Matters Now)             */
/* ============================================================ */

.signal-agreement-card {
    text-align: center;
    padding: 10px 14px;
}

.signal-agreement-icon {
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.signal-agreement-label {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.signal-agreement-text {
    font-size: 0.6rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.signal-action-hint {
    font-size: 0.58rem;
    font-weight: 700;
    padding: 5px 10px;
    margin-top: 8px;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(42, 46, 57, 0.4);
    letter-spacing: 0.2px;
}

.signal-action-hint .action-label {
    font-size: 0.45rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
    margin-right: 4px;
}

/* Whale intensity label */
.whale-intensity {
    font-size: 0.52rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-right: 4px;
}

/* ============================================================ */
/* Missed Opportunities / Recent Catches Strip                   */
/* ============================================================ */

.missed-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: thin;
}

.missed-strip::-webkit-scrollbar { height: 3px; }
.missed-strip::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.15); border-radius: 3px; }

.missed-strip-item {
    flex-shrink: 0;
    min-width: 200px;
    max-width: 280px;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(42, 46, 57, 0.4);
    border-left: 3px solid;
    font-size: 0.6rem;
}

.missed-strip-item.catch-bullish { border-left-color: #10b981; }
.missed-strip-item.catch-bearish { border-left-color: #ef4444; }
.missed-strip-item.catch-info { border-left-color: #3b82f6; }

.missed-strip-time {
    font-size: 0.5rem;
    color: #475569;
}

.missed-strip-text {
    color: #e2e8f0;
    font-weight: 600;
    line-height: 1.3;
    margin: 2px 0;
}

.missed-strip-sub {
    font-size: 0.5rem;
    color: #64748b;
    font-style: italic;
}

/* ============================================================ */
/* Edge-focused Pro Lock (upgraded)                              */
/* ============================================================ */

.pro-lock-edge {
    position: relative;
    text-align: center;
    padding: 16px 14px;
}

.pro-lock-edge-headline {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--pro-accent-light, #22d3ee);
    margin-bottom: 6px;
}

.pro-lock-edge-subtext {
    font-size: 0.6rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 10px;
}

/* Pro CTA buttons — replace btn-warning with Pro accent */
.btn-pro-accent {
    background: linear-gradient(135deg, var(--pro-accent, #06b6d4), #0891b2) !important;
    border: 1px solid var(--pro-accent-light, #22d3ee) !important;
    color: #fff !important;
    font-weight: 700;
    transition: all 0.2s;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.btn-pro-accent:hover {
    background: linear-gradient(135deg, var(--pro-accent-light, #22d3ee), var(--pro-accent, #06b6d4)) !important;
    box-shadow: 0 0 12px var(--pro-accent-glow, rgba(6,182,212,0.3));
    color: #fff !important;
}


/* ============================================================ */
/* Micro-copy for real-time advantage                            */
/* ============================================================ */

.micro-edge {
    font-size: 0.5rem;
    color: #64748b;
    font-weight: 500;
    padding: 2px 0;
}

.micro-edge strong {
    color: #94a3b8;
}

.micro-edge .edge-pro {
    color: var(--pro-accent-light, #22d3ee);
    font-weight: 700;
}

.micro-edge .edge-free {
    color: #ef4444;
    font-weight: 600;
}

/* Speed limit banner upgrade */
.speed-limit-banner-edge {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 5px 16px;
    background: linear-gradient(90deg, rgba(217, 119, 6, 0.06) 0%, rgba(6, 182, 212, 0.06) 100%);
    border-bottom: 1px solid rgba(217, 119, 6, 0.2);
    font-size: 0.65rem;
}

/* Smart Money vs Crowd module */
.smart-crowd-panel {
    display: flex;
    gap: 12px;
    padding: 10px;
}

.smart-crowd-col {
    flex: 1;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.4);
}

.smart-crowd-label {
    font-size: 0.5rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 4px;
}

.smart-crowd-value {
    font-size: 1rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
}

.smart-crowd-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: #475569;
    padding: 0 4px;
}

.smart-crowd-insight {
    font-size: 0.6rem;
    color: #cbd5e1;
    font-weight: 600;
    text-align: center;
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.06);
}

/* Responsive for new components */
@media (max-width: 991px) {
    .missed-strip {
        flex-direction: column;
        overflow-x: visible;
    }
    .missed-strip-item {
        min-width: 0;
        max-width: 100%;
    }
    .smart-crowd-panel {
        flex-direction: column;
    }
}

/* Share button on signals */
.alpha-share-btn {
    color: #475569;
    font-size: 0.6rem;
    padding: 2px 4px;
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.15s;
    flex-shrink: 0;
}
.alpha-share-btn:hover {
    color: #22d3ee;
    opacity: 1;
}

/* Edge Score card */
.edge-score-number {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'IBM Plex Mono', SFMono-Regular, Consolas, monospace;
    line-height: 1;
    margin-bottom: 2px;
    text-shadow: 0 0 20px currentColor;
}
.edge-score-action {
    font-size: 0.58rem;
    font-weight: 700;
    padding: 5px 10px;
    margin-top: 6px;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(42, 46, 57, 0.4);
    letter-spacing: 0.2px;
}

/* Action line in alpha feed bullets */
.alpha-bullet-action {
    font-size: 0.6rem;
    color: #e2e8f0;
    font-weight: 600;
    margin-top: 4px;
    padding: 3px 6px;
    background: rgba(16, 185, 129, 0.06);
    border-radius: 3px;
    border-left: 2px solid rgba(16, 185, 129, 0.3);
}

/* Signal outcome badges on missed strip */
.missed-strip-outcome {
    font-size: 0.55rem;
    font-weight: 700;
    margin-top: 2px;
}
.missed-strip-outcome.win {
    color: #10b981;
}
.missed-strip-outcome.loss {
    color: #64748b;
}
.missed-strip-outcome.flat {
    color: #475569;
}

/* Missed signals counter banner */
.missed-signals-counter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 4px 16px;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.07) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
    font-size: 0.6rem;
    color: #fbbf24;
    font-weight: 600;
}
.missed-signals-upgrade {
    color: #22d3ee !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.6rem;
    padding: 2px 10px;
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: 4px;
    background: rgba(6, 182, 212, 0.15);
    transition: all 0.15s;
    white-space: nowrap;
}
.missed-signals-upgrade:hover {
    background: rgba(6, 182, 212, 0.25);
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.2);
}

/* Divergence alert for predictions */
.divergence-alert {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1), rgba(239, 68, 68, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 8px;
    text-align: center;
    animation: divergencePulse 2s ease-in-out infinite;
}
@keyframes divergencePulse {
    0%, 100% { border-color: rgba(245, 158, 11, 0.3); }
    50% { border-color: rgba(245, 158, 11, 0.6); }
}
