/* ══════════════════════════════════════════════
   Stocks365 — Premium Trading Intelligence
   Dark Navy + Gold | Professional Trading UI
   ══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Core palette */
    --bg-primary: #0f1319;
    --bg-secondary: #1a1f36;
    --bg-card: rgba(26,31,54,0.85);
    --bg-card-solid: #1a1f36;
    --bg-input: #232945;
    --border: rgba(50,60,90,0.5);
    --border-light: rgba(70,80,120,0.5);

    /* Accent */
    --gold: #f0b90b;
    --gold-glow: rgba(240,185,11,0.15);
    --gold-dark: #d4a00a;
    --green: #00e676;
    --green-glow: rgba(0,230,118,0.1);
    --red: #ff5252;
    --red-glow: rgba(255,82,82,0.08);
    --orange: #ff9800;
    --blue: #42a5f5;

    /* Text */
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-light: #475569;

    /* Layout */
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.4);
    --transition: all 0.2s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    font-size: 15px;
    line-height: 1.6;
}

/* ── Animations ── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.animate-in { animation: fadeIn 0.3s ease-out; }

/* Skeleton */
.skeleton { background: linear-gradient(90deg, #1a1f36 25%, #232945 50%, #1a1f36 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius); }
.skeleton-text { height: 14px; margin-bottom: 8px; width: 80%; }
.skeleton-box { height: 80px; margin-bottom: 12px; }
.skeleton-title { height: 24px; margin-bottom: 12px; }

/* ══════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════ */

.nav {
    background: #0d1117;
    padding: 0 32px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-brand {
    font-size: 22px; font-weight: 800; text-decoration: none;
    color: var(--gold); letter-spacing: -0.5px;
}
.nav-brand-stocks { color: #e2e8f0; }
.nav-brand-365 { color: var(--gold); }

.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-link {
    color: #94a3b8; text-decoration: none;
    padding: 6px 14px; border-radius: 6px;
    font-size: 14px; font-weight: 500; transition: var(--transition);
}
.nav-link:hover { color: #e2e8f0; background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--gold); font-weight: 600; background: rgba(240,185,11,0.1); }

.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-user { color: #94a3b8; font-size: 13px; }
.nav-user strong { color: #e2e8f0; }

/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */

.btn {
    padding: 8px 18px; border-radius: 6px;
    font-size: 14px; font-weight: 600; cursor: pointer;
    border: none; transition: var(--transition);
    font-family: 'Inter', sans-serif; display: inline-block; text-decoration: none;
}
.btn-primary { background: var(--gold); color: #0f1319; }
.btn-primary:hover { background: #d4a00a; transform: translateY(-1px); box-shadow: 0 0 20px var(--gold-glow); }

.btn-outline { background: transparent; border: 1px solid var(--border-light); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-lg { padding: 12px 28px; font-size: 16px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* ══════════════════════════════════════
   HERO SECTION (with video)
   ══════════════════════════════════════ */

.hero {
    text-align: center; padding: 100px 32px 80px;
    position: relative; overflow: hidden;
    background: var(--bg-primary);
    min-height: 520px; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}
.hero-video {
    position: absolute !important; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0 !important; opacity: 0.3;
}
.hero::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(15,19,25,0.7) 0%, rgba(15,19,25,0.85) 100%);
    z-index: 1;
}
.hero > *:not(video) { position: relative; z-index: 2; }
.hero h1 {
    font-size: 44px; font-weight: 800; margin-bottom: 18px;
    letter-spacing: -1px; line-height: 1.15; color: #fff;
    max-width: 720px;
}
.hero h1 span { color: var(--gold); }
.hero p {
    font-size: 17px; color: rgba(255,255,255,0.65); max-width: 580px;
    margin: 0 auto 28px; line-height: 1.7;
}
.hero-buttons { display: flex; gap: 12px; justify-content: center; }

/* ══════════════════════════════════════
   MARKET TICKER
   ══════════════════════════════════════ */

.market-ticker {
    background: #0d1117; border-bottom: 1px solid var(--border);
    overflow: hidden; white-space: nowrap; padding: 8px 0;
}
.ticker-track { display: inline-flex; gap: 32px; animation: tickerScroll 60s linear infinite; }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.ticker-item .ticker-sym { color: #FFFFFF; font-weight: 700; }
.ticker-item .ticker-price { color: #94A3B8; }
.ticker-item .ticker-up { color: var(--green); }
.ticker-item .ticker-down { color: var(--red); }

/* ══════════════════════════════════════
   HOMEPAGE SECTIONS
   ══════════════════════════════════════ */

.main { padding: 24px 32px; max-width: 1280px; margin: 0 auto; }

/* Stats */
.stats-section { padding: 48px 32px; text-align: center; background: var(--bg-secondary); border-bottom: 1px solid var(--border); }
.stats-counters { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; }
.counter-number { font-size: 42px; font-weight: 900; color: var(--gold); letter-spacing: -2px; }
.counter-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; }

/* Signal highlights */
.signal-highlights { padding: 40px 32px; max-width: 1200px; margin: 0 auto; }
.signal-highlights h2 { font-size: 22px; font-weight: 800; margin-bottom: 20px; color: #fff; }
.signal-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.signal-mini-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 16px; text-align: center;
    cursor: pointer; transition: var(--transition);
}
.signal-mini-card:hover { border-color: var(--gold); box-shadow: 0 0 20px var(--gold-glow); transform: translateY(-2px); }
.signal-mini-card .mini-symbol { font-weight: 700; font-size: 15px; color: #fff; margin-bottom: 4px; }
.signal-mini-card .mini-price { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }

/* Features */
.features-section { padding: 56px 32px; max-width: 1100px; margin: 0 auto; }
.features-section h2 { font-size: 26px; font-weight: 800; text-align: center; margin-bottom: 36px; color: #fff; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px; text-align: center;
    transition: var(--transition);
}
.feature-card:hover { border-color: var(--gold); box-shadow: 0 0 20px var(--gold-glow); transform: translateY(-3px); }
.feature-icon { font-size: 36px; margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.feature-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* News section */
.news-section { padding: 40px 32px; max-width: 1200px; margin: 0 auto; }
.news-section h2 { font-size: 22px; font-weight: 800; margin-bottom: 20px; color: #fff; display: flex; justify-content: space-between; align-items: center; }
.news-section h2 a { font-size: 14px; color: var(--gold); text-decoration: none; font-weight: 600; }
.news-section h2 a:hover { text-decoration: underline; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card-home {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
    transition: var(--transition);
}
.news-card-home:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--border-light); }
.news-card-home img { width: 100%; height: 160px; object-fit: cover; }
.news-card-home .news-body { padding: 14px; }
.news-card-home .news-title { font-size: 15px; font-weight: 600; line-height: 1.4; color: #fff; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-home .news-meta { font-size: 12px; color: var(--text-muted); display: flex; justify-content: space-between; }

/* Blog/Education section */
.blog-section { padding: 40px 32px; max-width: 1200px; margin: 0 auto; }
.blog-section h2 { font-size: 22px; font-weight: 800; margin-bottom: 20px; color: #fff; display: flex; justify-content: space-between; align-items: center; }
.blog-section h2 a { font-size: 14px; color: var(--gold); text-decoration: none; font-weight: 600; }
.blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.blog-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
    transition: var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--border-light); }
.blog-card img { width: 100%; height: 130px; object-fit: cover; }
.blog-card .blog-body { padding: 12px; }
.blog-card .blog-category { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.blog-card .blog-title { font-size: 14px; font-weight: 600; line-height: 1.3; color: #fff; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card .blog-date { font-size: 11px; color: var(--text-muted); }

/* CTA */
.cta-section {
    padding: 64px 32px; text-align: center;
    background: var(--bg-secondary); color: #fff;
    border-top: 1px solid var(--border);
}
.cta-section h2 { font-size: 32px; font-weight: 800; margin-bottom: 10px; }
.cta-section p { font-size: 16px; color: var(--text-secondary); margin-bottom: 24px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ══════════════════════════════════════
   SIGNAL BADGES
   ══════════════════════════════════════ */

.sig-badge, .signal-badge {
    padding: 3px 10px; border-radius: 4px;
    font-size: 11px; font-weight: 700; display: inline-block;
    letter-spacing: 0.3px;
}
.sig-badge.strong-buy, .signal-badge.bullish { background: var(--green-glow); color: var(--green); }
.sig-badge.buy { background: rgba(0,230,118,0.08); color: #00c853; }
.sig-badge.neutral { background: var(--gold-glow); color: var(--gold); }
.sig-badge.sell { background: var(--red-glow); color: #ff8a80; }
.sig-badge.strong-sell, .signal-badge.bearish { background: rgba(255,82,82,0.12); color: var(--red); }

/* ══════════════════════════════════════
   CATEGORY TABS (Dashboard)
   ══════════════════════════════════════ */

.tabs-bar {
    background: var(--bg-secondary);
    padding: 10px 32px;
    display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
}
.tab-btn {
    background: transparent; color: var(--text-muted);
    border: 1px solid transparent; padding: 8px 18px;
    border-radius: 6px; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: var(--transition);
    font-family: 'Inter', sans-serif;
}
.tab-btn:hover { color: var(--text-primary); background: var(--bg-input); }
.tab-btn.active { background: var(--gold); color: #0f1319; }
.tab-separator { width: 1px; height: 28px; background: var(--border); margin: 0 8px; }

/* Custom input */
.custom-input-wrap { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.custom-input-wrap input, .input {
    background: var(--bg-input); border: 1px solid var(--border);
    color: var(--text-primary); padding: 8px 14px; border-radius: 6px; font-size: 13px;
    width: 220px; font-weight: 500; font-family: 'Inter', sans-serif; transition: var(--transition);
}
.custom-input-wrap input { text-transform: uppercase; letter-spacing: 0.5px; }
.input:focus, .custom-input-wrap input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }

.scan-btn {
    background: var(--gold); color: #0f1319;
    border: none; padding: 8px 20px; border-radius: 6px;
    font-size: 13px; font-weight: 700; cursor: pointer;
    font-family: 'Inter', sans-serif; transition: var(--transition);
}
.scan-btn:hover { background: #d4a00a; }
.scan-btn:disabled { background: #333; color: #666; cursor: not-allowed; }

/* Filter bar */
.filter-bar {
    background: var(--bg-secondary); padding: 8px 32px;
    display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
    border-bottom: 1px solid var(--border); font-size: 13px;
}
.filter-bar label { color: var(--text-muted); font-weight: 500; }
.filter-bar select, .select {
    background: var(--bg-input); border: 1px solid var(--border);
    color: var(--text-primary); padding: 5px 10px; border-radius: 6px; font-size: 12px;
    font-family: 'Inter', sans-serif;
}
.scan-progress { margin-left: auto; color: var(--gold); font-weight: 600; display: none; animation: pulse 1.5s infinite; }
.scan-progress.active { display: inline-flex; align-items: center; gap: 6px; }

/* ══════════════════════════════════════
   SIGNALS TABLE
   ══════════════════════════════════════ */

.signals-table-wrap {
    overflow-x: auto; border-radius: var(--radius-lg);
    border: 1px solid var(--border); background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}
.signals-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.signals-table th {
    background: var(--bg-secondary); color: var(--text-muted);
    text-transform: uppercase; font-size: 10px; letter-spacing: 1.2px;
    padding: 12px 16px; text-align: left;
    border-bottom: 1px solid var(--border);
    cursor: pointer; font-weight: 600;
}
.signals-table th:hover { color: var(--text-primary); }
.signals-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.signals-table tr { cursor: pointer; transition: var(--transition); }
.signals-table tr:hover { background: rgba(255,255,255,0.03); }
.signals-table tbody tr { animation: fadeIn 0.3s ease-out; animation-fill-mode: both; }

/* Symbol cell */
.symbol-cell { display: flex; align-items: center; gap: 10px; }
.symbol-logo {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--bg-input); display: flex; align-items: center;
    justify-content: center; font-weight: 700; font-size: 12px;
    color: var(--gold); border: 1px solid var(--border);
    overflow: hidden; flex-shrink: 0;
}
.symbol-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.symbol-logo-emoji { line-height: 1; }
.symbol-name { font-weight: 700; color: var(--text-primary); font-size: 14px; }
.symbol-label { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

/* Trust bar */
.trust-bar-wrap { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.trust-bar { flex: 1; height: 5px; background: rgba(26,35,50,0.8); border-radius: 3px; overflow: hidden; min-width: 70px; }
.trust-fill { height: 100%; border-radius: 3px; transition: width 0.8s ease; }
.trust-score { font-weight: 700; font-size: 13px; min-width: 36px; text-align: right; }

/* Colors */
.change-up { color: var(--green); }
.change-down { color: var(--red); }
.counts-mini { font-size: 12px; }
.counts-mini .b { color: var(--green); }
.counts-mini .s { color: var(--red); }
.counts-mini .n { color: var(--orange); }

/* ══════════════════════════════════════
   CARDS & GRIDS
   ══════════════════════════════════════ */

.card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 20px;
    box-shadow: var(--shadow-sm); transition: var(--transition);
}
.card h3 {
    font-size: 11px; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 1.5px; margin-bottom: 14px; padding-bottom: 10px;
    border-bottom: 1px solid var(--border); font-weight: 600;
}
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }

/* Stats grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.stat-box {
    background: rgba(13,21,32,0.6); padding: 12px; border-radius: var(--radius);
    text-align: center; border: 1px solid var(--border);
}
.stat-box .stat-label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; }
.stat-box .stat-value { font-size: 16px; font-weight: 700; margin-top: 4px; }

/* Stats cards */
.stats-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 20px; text-align: center;
    box-shadow: var(--shadow-sm);
}
.stat-card .stat-number { font-size: 30px; font-weight: 800; }
.stat-card .stat-title { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; font-weight: 600; }

/* ══════════════════════════════════════
   DETAIL OVERLAY (Signal pages)
   ══════════════════════════════════════ */

.detail-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.6); z-index: 100;
    overflow-y: auto; padding: 24px;
}
.detail-overlay.active { display: block; }
.detail-panel {
    background: var(--bg-card-solid); border: 1px solid var(--border);
    border-radius: var(--radius-lg); max-width: 1100px; margin: 0 auto;
    padding: 32px; position: relative; box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease-out;
}
.detail-close {
    position: absolute; top: 16px; right: 20px;
    background: var(--bg-input); border: 1px solid var(--border);
    color: var(--text-muted); width: 36px; height: 36px;
    border-radius: 50%; cursor: pointer; display: flex;
    align-items: center; justify-content: center; font-size: 20px;
    transition: var(--transition);
}
.detail-close:hover { color: var(--red); border-color: var(--red); background: var(--red-glow); }

/* Price header */
.price-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.price-header .symbol { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.price-header .price { font-size: 30px; font-weight: 700; }
.price-header .change { font-size: 14px; font-weight: 600; padding: 4px 10px; border-radius: 4px; }
.price-header .change.up { color: var(--green); background: var(--green-glow); }
.price-header .change.down { color: var(--red); background: var(--red-glow); }

/* Trust gauge */
.trust-gauge {
    display: flex; align-items: center; gap: 24px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px;
}
.trust-circle {
    width: 100px; height: 100px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; border: 3px solid; flex-shrink: 0;
}
.trust-circle .pct { font-size: 26px; font-weight: 800; }
.trust-circle .lbl { font-size: 9px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; }
.trust-components { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.trust-comp { display: flex; align-items: center; font-size: 12px; gap: 8px; }
.trust-comp .comp-label { color: var(--text-muted); min-width: 85px; font-weight: 500; }
.trust-comp .comp-bar { width: 50px; height: 4px; background: rgba(26,35,50,0.8); border-radius: 2px; overflow: hidden; }
.trust-comp .comp-fill { height: 100%; border-radius: 2px; }

/* Overall signal */
.overall-signal {
    padding: 20px; border-radius: var(--radius-lg);
    text-align: center; margin-bottom: 20px; border: 2px solid;
}
.overall-signal .label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }
.overall-signal .verdict { font-size: 36px; font-weight: 900; margin: 6px 0; letter-spacing: -1px; }
.overall-signal .score-bar { height: 4px; background: rgba(26,35,50,0.8); border-radius: 2px; margin: 12px auto; max-width: 300px; overflow: hidden; }
.overall-signal .score-fill { height: 100%; border-radius: 2px; }
.overall-signal .counts { font-size: 12px; color: var(--text-muted); }
.overall-signal .counts span { margin: 0 10px; font-weight: 600; }

/* Trade levels */
.trade-levels-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; }
.trade-level-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 6px; margin-bottom: 4px; }
.trade-level-row.entry { background: rgba(66,165,245,0.08); border-left: 3px solid var(--blue); }
.trade-level-row.tp { background: var(--green-glow); border-left: 3px solid var(--green); }
.trade-level-row.sl { background: var(--red-glow); border-left: 3px solid var(--red); }
.trade-level-label { font-size: 12px; font-weight: 600; }
.trade-level-value { font-size: 14px; font-weight: 700; }
.trade-grade {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%; font-size: 16px; font-weight: 800;
}
.trade-grade.a-plus { background: var(--green-glow); color: var(--green); border: 2px solid var(--green); }
.trade-grade.a { background: rgba(0,200,83,0.1); color: #00c853; border: 2px solid #00c853; }
.trade-grade.b { background: var(--gold-glow); color: var(--gold); border: 2px solid var(--gold); }
.trade-grade.c { background: rgba(255,152,0,0.1); color: var(--orange); border: 2px solid var(--orange); }
.trade-grade.f { background: var(--red-glow); color: var(--red); border: 2px solid var(--red); }

/* Signal list */
.signal-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; border-bottom: 1px solid var(--border);
}
.signal-item:last-child { border-bottom: none; }
.signal-item .name { font-weight: 600; font-size: 13px; }
.signal-item .detail { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* S/R levels */
.sr-level { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); }
.sr-level:last-child { border-bottom: none; }
.sr-level .label { font-size: 12px; color: var(--text-muted); }
.sr-level .value { font-weight: 700; font-size: 13px; }
.sr-level .value.res { color: var(--red); }
.sr-level .value.sup { color: var(--green); }
.sr-level .value.pivot { color: var(--orange); }

/* Charts */
.chart-container { position: relative; height: 350px; margin-bottom: 8px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.chart-small { height: 180px; }

/* MTF */
.mtf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.mtf-item { background: rgba(13,21,32,0.6); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; text-align: center; }
.mtf-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; font-weight: 600; }

/* Risk */
.risk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.risk-item { background: rgba(13,21,32,0.6); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.risk-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; }
.risk-value { font-size: 18px; font-weight: 700; margin-top: 4px; }
.risk-note { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* Factor bars */
.factor-bar-wrap { margin-bottom: 10px; }
.factor-header { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; }
.factor-bar { height: 5px; background: rgba(26,35,50,0.8); border-radius: 3px; overflow: hidden; position: relative; }
.factor-fill { height: 100%; border-radius: 3px; transition: width 0.8s ease; position: absolute; }
.factor-fill.positive { left: 50%; }
.factor-fill.negative { right: 50%; }

/* ══════════════════════════════════════
   NEWS PAGE
   ══════════════════════════════════════ */

.news-page { max-width: 1200px; margin: 0 auto; padding: 24px 32px; display: flex; gap: 28px; }
.news-main { flex: 1; min-width: 0; }
.news-sidebar { width: 300px; flex-shrink: 0; }
.news-sidebar-inner { position: sticky; top: 74px; display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - 90px); overflow-y: auto; padding-right: 4px; padding-bottom: 20px; }
.news-sidebar-inner::-webkit-scrollbar { width: 3px; }
.news-sidebar-inner::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 2px; }

.news-page-header { margin-bottom: 24px; }
.news-page-header h1 { font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.news-page-header p { font-size: 14px; color: var(--text-muted); }

.news-feed-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); cursor: pointer; transition: var(--transition); }
.news-feed-item:first-child { padding-top: 0; }
.news-feed-item:hover { padding-left: 4px; }
.news-feed-img { width: 200px; height: 130px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
.news-feed-img img { width: 100%; height: 100%; object-fit: cover; }
.news-feed-body { flex: 1; display: flex; flex-direction: column; }
.news-feed-time { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; display: flex; gap: 8px; align-items: center; }
.news-feed-time .time-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.news-feed-title { font-size: 17px; font-weight: 700; color: #fff; line-height: 1.35; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-feed-excerpt { font-size: 13px; color: var(--text-secondary); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.news-feed-tags { display: flex; gap: 6px; margin-top: 8px; }
.news-feed-tag { font-size: 10px; padding: 2px 8px; border-radius: 4px; background: var(--bg-input); color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

.news-featured { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; border: 1px solid var(--border); cursor: pointer; transition: var(--transition); }
.news-featured:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--border-light); }
.news-featured img { width: 100%; height: 280px; object-fit: cover; }
.news-featured-body { padding: 18px; }
.news-featured-body .news-feed-title { font-size: 22px; margin-bottom: 10px; -webkit-line-clamp: 3; }

/* Sidebar widgets */
.sidebar-widget { background: var(--bg-card-solid); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.widget-header { padding: 10px 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); border-bottom: 1px solid var(--border); background: var(--bg-secondary); }
.widget-body { padding: 0; max-height: 250px; overflow-y: auto; }
.widget-body::-webkit-scrollbar { width: 3px; }
.widget-body::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 2px; }

.mover-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 13px; }
.mover-item:last-child { border-bottom: none; }
.mover-sym { font-weight: 700; color: #fff; }
.mover-price { color: var(--text-muted); }
.mover-change { font-weight: 600; font-size: 12px; padding: 2px 6px; border-radius: 4px; }
.mover-up { color: var(--green); background: var(--green-glow); }
.mover-down { color: var(--red); background: var(--red-glow); }

.signal-widget-item { padding: 10px 14px; border-bottom: 1px solid var(--border); cursor: pointer; transition: var(--transition); }
.signal-widget-item:hover { background: var(--bg-input); }
.signal-widget-item:last-child { border-bottom: none; }
.signal-widget-row { display: flex; justify-content: space-between; align-items: center; }
.signal-widget-sym { font-weight: 700; color: #fff; font-size: 13px; }

.trending-item { display: flex; gap: 10px; padding: 10px 14px; align-items: center; border-bottom: 1px solid var(--border); cursor: pointer; transition: var(--transition); font-size: 13px; }
.trending-item:hover { background: var(--bg-input); }
.trending-item:last-child { border-bottom: none; }
.trending-num { font-size: 16px; font-weight: 800; color: var(--gold); min-width: 24px; }
.trending-title { color: #fff; font-weight: 500; line-height: 1.3; }

/* ══════════════════════════════════════
   BLOG / ARTICLE PAGES
   ══════════════════════════════════════ */

.blog-listing { max-width: 900px; margin: 0 auto; padding: 32px; }
.blog-listing h1 { font-size: 28px; font-weight: 800; margin-bottom: 24px; color: #fff; }

.blog-list-item { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--border); cursor: pointer; transition: var(--transition); }
.blog-list-item:hover { padding-left: 4px; }
.blog-list-item img { width: 200px; height: 130px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.blog-list-item .list-body { flex: 1; }
.blog-list-item .list-category { font-size: 11px; text-transform: uppercase; color: var(--gold); font-weight: 700; letter-spacing: 0.5px; }
.blog-list-item .list-title { font-size: 18px; font-weight: 700; margin: 6px 0 8px; color: #fff; }
.blog-list-item .list-excerpt { font-size: 14px; color: var(--text-secondary); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-list-item .list-meta { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

/* Article page */
.article-page { max-width: 760px; margin: 0 auto; padding: 32px; }
.article-page h1 { font-size: 30px; font-weight: 800; line-height: 1.2; margin-bottom: 14px; color: #fff; }
.article-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; display: flex; gap: 14px; align-items: center; }
.article-meta .meta-category { color: var(--gold); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: 1px; }
.article-hero-img { width: 100%; height: auto; max-height: 500px; object-fit: contain; border-radius: var(--radius); margin-bottom: 24px; }
.article-content { font-size: 16px; line-height: 1.8; color: var(--text-secondary); }
.article-content h2 { font-size: 22px; font-weight: 700; color: #fff; margin: 28px 0 12px; }
.article-content h3 { font-size: 18px; font-weight: 600; color: #fff; margin: 22px 0 10px; }
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol { margin-bottom: 16px; padding-left: 24px; }
.article-content li { margin-bottom: 6px; }
.article-content strong { color: var(--text-primary); }
.article-content blockquote { border-left: 3px solid var(--gold); padding: 12px 20px; margin: 20px 0; background: var(--gold-glow); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--text-secondary); }
.article-content img { max-width: 100%; border-radius: var(--radius); margin: 16px 0; }
.article-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 24px; }
.article-tag { background: var(--bg-input); color: var(--text-muted); padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 500; }

.news-card-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ══════════════════════════════════════
   AUTH MODAL
   ══════════════════════════════════════ */

.auth-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 200; align-items: center; justify-content: center; }
.auth-modal.active { display: flex; }
.auth-box {
    background: var(--bg-card-solid); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 36px; width: 100%; max-width: 400px;
    box-shadow: var(--shadow-lg); animation: slideUp 0.3s ease-out;
}
.auth-box h2 { text-align: center; margin-bottom: 24px; color: #fff; font-size: 22px; font-weight: 700; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input {
    width: 100%; background: var(--bg-input); border: 1px solid var(--border);
    color: var(--text-primary); padding: 10px 14px; border-radius: 6px; font-size: 14px;
    font-family: 'Inter', sans-serif; transition: var(--transition);
}
.form-group input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.auth-error { color: var(--red); font-size: 13px; text-align: center; margin-bottom: 12px; display: none; }
.auth-divider { text-align: center; color: var(--text-muted); font-size: 11px; margin: 20px 0; position: relative; font-weight: 500; }
.auth-divider::before, .auth-divider::after { content: ""; position: absolute; top: 50%; width: 38%; height: 1px; background: var(--border); }
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.oauth-buttons { display: flex; gap: 10px; }
.oauth-btn {
    flex: 1; padding: 10px; border-radius: 6px; font-size: 13px; font-weight: 600;
    cursor: pointer; border: 1px solid var(--border); background: var(--bg-input);
    color: var(--text-primary); text-align: center; text-decoration: none;
    transition: var(--transition); font-family: 'Inter', sans-serif;
}
.oauth-btn:hover { border-color: var(--gold); color: var(--gold); }
.auth-switch { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-muted); }
.auth-switch a { color: var(--gold); cursor: pointer; text-decoration: none; font-weight: 600; }

/* Disclaimer */
.disclaimer {
    font-size: 10px; color: var(--text-muted);
    background: var(--bg-input); padding: 4px 10px;
    border-radius: 4px; border: 1px solid var(--border);
    font-weight: 500;
}

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state h2 { color: var(--text-secondary); margin-bottom: 10px; font-size: 20px; font-weight: 600; }

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */

.footer {
    text-align: center; padding: 30px; color: var(--text-muted);
    font-size: 12px; border-top: 1px solid var(--border);
}

/* Active signals */
.active-signal-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.active-signal-row:last-child { border-bottom: none; }

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

@media (max-width: 1024px) {
    .news-page { flex-direction: column; }
    .news-sidebar { width: 100%; }
    .news-sidebar-inner { position: static; flex-direction: row; flex-wrap: wrap; max-height: none; }
    .news-sidebar-inner .sidebar-widget { flex: 1; min-width: 260px; }
}

/* Hamburger menu */
.nav-hamburger {
    display: none; background: none; border: none; cursor: pointer; padding: 4px;
    flex-direction: column; gap: 5px; z-index: 60;
}
.nav-hamburger span {
    width: 22px; height: 2px; background: #e2e8f0; border-radius: 2px; transition: var(--transition);
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
    .nav { padding: 0 16px; height: 52px; }
    .nav-brand { font-size: 18px; }
    .nav-hamburger { display: flex; }
    .nav-links {
        display: none; position: fixed; top: 52px; left: 0; right: 0;
        background: #0d1117; border-bottom: 1px solid var(--border);
        flex-direction: column; padding: 12px 16px; gap: 2px;
        box-shadow: var(--shadow-lg); z-index: 55;
    }
    .nav-links.mobile-open { display: flex; }
    .nav-right { display: none; }
    .nav-links.mobile-open ~ .nav-right { display: none; }
    .tabs-bar { padding: 8px 16px; }
    .custom-input-wrap { margin-left: 0; width: 100%; }
    .custom-input-wrap input { flex: 1; width: auto; }
    .main { padding: 16px; }
    .hero { padding: 60px 20px 50px; min-height: 420px; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 15px; }
    .hero-buttons { flex-direction: column; gap: 10px; }
    .features-grid { grid-template-columns: 1fr; }
    .features-section { padding: 36px 16px; }
    .stats-counters { gap: 20px; }
    .counter-number { font-size: 28px; }
    .signal-cards { grid-template-columns: repeat(2, 1fr); }
    .signal-highlights { padding: 24px 16px; }
    .news-grid { grid-template-columns: 1fr; }
    .news-section { padding: 24px 16px; }
    .blog-grid { grid-template-columns: 1fr 1fr; }
    .blog-section { padding: 24px 16px; }
    .cta-section { padding: 40px 20px; }
    .cta-section h2 { font-size: 24px; }
    .news-page { flex-direction: column; padding: 16px; }
    .news-sidebar { width: 100%; }
    .news-sidebar-inner { position: static; max-height: none; }
    .news-feed-item { flex-direction: column; }
    .news-feed-img { width: 100%; height: 180px; }
    .article-page { padding: 16px; }
    .article-page h1 { font-size: 24px; }
    .blog-listing { padding: 16px; }
    .blog-list-item { flex-direction: column; }
    .blog-list-item img { width: 100%; height: 180px; }
    .detail-overlay { padding: 8px; }
    .detail-panel { padding: 20px; }
    .trust-gauge { flex-direction: column; }
    .trust-components { grid-template-columns: 1fr; }
    .price-header .symbol { font-size: 20px; }
    .price-header .price { font-size: 24px; }
    .grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   LIGHT THEME — Content Pages
   Applied when body does NOT have .dark-mode
   ══════════════════════════════════════════════ */
body:not(.dark-mode) { background:#fff; color:#0F172A; }
body:not(.dark-mode) .nav { background:#fff; border-bottom:1px solid #E2E8F0; }
body:not(.dark-mode) .nav-brand { color:#0F172A; }
body:not(.dark-mode) .nav-link { color:#64748B; }
body:not(.dark-mode) .nav-link:hover { color:#0F172A; background:#F1F5F9; }
body:not(.dark-mode) .nav-link.active { color:#1E40AF; background:rgba(30,64,175,0.06); }
body:not(.dark-mode) .btn-primary { background:#1E40AF; color:#fff; }
body:not(.dark-mode) .btn-primary:hover { background:#1D4ED8; }
body:not(.dark-mode) .btn-outline { border-color:#E2E8F0; color:#0F172A; }
body:not(.dark-mode) .btn-outline:hover { border-color:#1E40AF; color:#1E40AF; }
body:not(.dark-mode) .nav-hamburger span { background:#0F172A; }
body:not(.dark-mode) .skeleton { background:linear-gradient(90deg,#F1F5F9 25%,#E2E8F0 50%,#F1F5F9 75%); background-size:200% 100%; }
body:not(.dark-mode) .hero { background:#F8FAFC; min-height:auto; padding:24px 32px; border-bottom:1px solid #E2E8F0; }
body:not(.dark-mode) .hero::after { display:none; }
body:not(.dark-mode) .stats-section { background:#F8FAFC; border-bottom:1px solid #E2E8F0; }
body:not(.dark-mode) .counter-number { color:#1E40AF; }
body:not(.dark-mode) .signal-highlights h2, body:not(.dark-mode) .features-section h2, body:not(.dark-mode) .news-section h2, body:not(.dark-mode) .blog-section h2 { color:#0F172A; }
body:not(.dark-mode) .news-section h2 a, body:not(.dark-mode) .blog-section h2 a { color:#1E40AF; }
body:not(.dark-mode) .signal-mini-card { background:#fff; border:1px solid #E2E8F0; }
body:not(.dark-mode) .signal-mini-card:hover { border-color:#1E40AF; box-shadow:0 4px 12px rgba(30,64,175,0.08); }
body:not(.dark-mode) .signal-mini-card .mini-symbol { color:#0F172A; }
body:not(.dark-mode) .feature-card { background:#fff; border:1px solid #E2E8F0; }
body:not(.dark-mode) .feature-card:hover { border-color:#1E40AF; }
body:not(.dark-mode) .feature-card h3 { color:#0F172A; }
body:not(.dark-mode) .news-card-home { background:#fff; border:1px solid #E2E8F0; }
body:not(.dark-mode) .news-card-home:hover { box-shadow:0 8px 25px rgba(0,0,0,0.06); }
body:not(.dark-mode) .news-card-home .news-title { color:#0F172A; }
body:not(.dark-mode) .blog-card { background:#fff; border:1px solid #E2E8F0; }
body:not(.dark-mode) .blog-card .blog-title { color:#0F172A; }
body:not(.dark-mode) .blog-card .blog-category { color:#1E40AF; }
body:not(.dark-mode) .cta-section { background:#0F172A; }
body:not(.dark-mode) .footer { border-top:1px solid #E2E8F0; }
body:not(.dark-mode) .news-page-header h1 { color:#0F172A; }
body:not(.dark-mode) .news-feed-title { color:#0F172A; }
body:not(.dark-mode) .news-feed-item { border-bottom-color:#E2E8F0; }
body:not(.dark-mode) .news-featured { border-color:#E2E8F0; }
body:not(.dark-mode) .news-feed-tag { background:#F1F5F9; color:#475569; }
body:not(.dark-mode) .sidebar-widget { background:#fff; border:1px solid #E2E8F0; }
body:not(.dark-mode) .widget-header { color:#1E40AF; background:#F8FAFC; border-bottom-color:#E2E8F0; }
body:not(.dark-mode) .mover-sym, body:not(.dark-mode) .signal-widget-sym, body:not(.dark-mode) .trending-title { color:#0F172A; }
body:not(.dark-mode) .trending-num { color:#1E40AF; }
body:not(.dark-mode) .mover-item { border-bottom-color:#F1F5F9; }
body:not(.dark-mode) .blog-listing h1 { color:#0F172A; }
body:not(.dark-mode) .blog-list-item { border-bottom-color:#E2E8F0; }
body:not(.dark-mode) .blog-list-item .list-title { color:#0F172A; }
body:not(.dark-mode) .blog-list-item .list-category { color:#1E40AF; }
body:not(.dark-mode) .article-page h1 { color:#0F172A; }
body:not(.dark-mode) .article-meta .meta-category { color:#1E40AF; }
body:not(.dark-mode) .article-content { color:#334155; }
body:not(.dark-mode) .article-content h2, body:not(.dark-mode) .article-content h3 { color:#0F172A; }
body:not(.dark-mode) .article-content strong { color:#0F172A; }
body:not(.dark-mode) .article-content blockquote { border-left-color:#1E40AF; background:rgba(30,64,175,0.04); color:#475569; }
body:not(.dark-mode) .article-tag { background:#F1F5F9; color:#475569; }
body:not(.dark-mode) .auth-box { background:#fff; border:1px solid #E2E8F0; }
body:not(.dark-mode) .auth-box h2 { color:#0F172A; }
body:not(.dark-mode) .form-group input { background:#fff; border:1px solid #E2E8F0; color:#0F172A; }
body:not(.dark-mode) .form-group input:focus { border-color:#1E40AF; box-shadow:0 0 0 3px rgba(30,64,175,0.08); }
body:not(.dark-mode) .auth-switch a { color:#1E40AF; }
body:not(.dark-mode) .oauth-btn { background:#fff; border:1px solid #E2E8F0; color:#0F172A; }
body:not(.dark-mode) .auth-divider::before, body:not(.dark-mode) .auth-divider::after { background:#E2E8F0; }
body:not(.dark-mode) .signals-table-wrap { background:#fff; border:1px solid #E2E8F0; }
body:not(.dark-mode) .signals-table th { background:#F8FAFC; color:#64748B; border-bottom-color:#E2E8F0; }
body:not(.dark-mode) .signals-table td { border-bottom-color:#F1F5F9; color:#475569; }
body:not(.dark-mode) .signals-table tr:hover { background:#F8FAFC; }
body:not(.dark-mode) .card { background:#fff; border:1px solid #E2E8F0; }
body:not(.dark-mode) .card h3 { color:#475569; border-bottom-color:#E2E8F0; }
body:not(.dark-mode) .stat-card { background:#fff; border:1px solid #E2E8F0; }
body:not(.dark-mode) .stat-box { background:#F8FAFC; border-color:#E2E8F0; }
body:not(.dark-mode) .sig-badge.strong-buy { background:rgba(5,150,105,0.1); color:#059669; }
body:not(.dark-mode) .sig-badge.buy { background:rgba(5,150,105,0.08); color:#059669; }
body:not(.dark-mode) .sig-badge.neutral { background:rgba(245,158,11,0.1); color:#D97706; }
body:not(.dark-mode) .sig-badge.sell { background:rgba(220,38,38,0.08); color:#DC2626; }
body:not(.dark-mode) .sig-badge.strong-sell { background:rgba(220,38,38,0.1); color:#DC2626; }
@media (max-width:768px) { body:not(.dark-mode) .nav-links { background:#fff; border-bottom:1px solid #E2E8F0; } }

/* Market ticker stays dark on all pages */
.market-ticker { background:#0d1117 !important; border-bottom:1px solid rgba(50,60,90,0.5) !important; }

/* News Slider Hero */
.hero-slider { display:grid; grid-template-columns:260px 1fr 260px; gap:16px; max-width:1200px; margin:0 auto; min-height:380px; }
.hero-side-cards { display:flex; flex-direction:column; gap:8px; }
.hero-side-card { display:flex; flex-direction:column; background:#fff; border:1px solid #E2E8F0; border-radius:8px; cursor:pointer; transition:all 0.2s; flex:1; overflow:hidden; }
.hero-side-card:hover { border-color:#1E40AF; box-shadow:0 2px 8px rgba(30,64,175,0.08); }
.side-card-img { flex:1; min-height:0; overflow:hidden; }
.side-card-img img { width:100%; height:100%; object-fit:cover; }
.side-card-text { padding:8px 10px; }
.hero-side-card .side-title { font-size:12px; font-weight:600; color:#0F172A; line-height:1.3; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.hero-side-card .side-time { font-size:10px; color:#94A3B8; margin-top:3px; }
.hero-featured { display:flex; flex-direction:column; border-radius:12px; overflow:hidden; cursor:pointer; background:#fff; border:1px solid #E2E8F0; }
.hero-featured:hover { border-color:#1E40AF; box-shadow:0 4px 16px rgba(30,64,175,0.08); }
.hero-featured-title-top { padding:20px 24px 16px; }
.hero-featured-img { flex:1; min-height:0; overflow:hidden; }
.hero-featured-img img { width:100%; height:100%; object-fit:cover; }
.hero-featured-cat { display:inline-block; background:#1E40AF; color:#fff; padding:3px 10px; border-radius:4px; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:1px; }
.hero-dots { display:flex; gap:6px; justify-content:center; margin-top:12px; }
.hero-dot { width:8px; height:8px; border-radius:50%; background:#CBD5E1; cursor:pointer; transition:all 0.2s; }
.hero-dot.active { background:#1E40AF; width:24px; border-radius:4px; }
@media (max-width:900px) { .hero-slider { grid-template-columns:1fr; } .hero-side-cards { display:none; } .hero-featured { min-height:300px; } }

/* ══════════════════════════════════════════════
   COMPREHENSIVE MOBILE RESPONSIVENESS
   ══════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Global padding reduction */
    .main { padding: 16px !important; }

    /* Tables — allow horizontal scroll, remove nowrap */
    .signals-table td { white-space: normal; font-size: 12px; padding: 8px 10px; }
    .signals-table th { font-size: 9px; padding: 8px 10px; }

    /* Homepage hero — stack vertically */
    [style*="grid-template-columns:1fr 340px"] { grid-template-columns: 1fr !important; }
    [style*="grid-template-columns:1fr 1fr 1fr"] { grid-template-columns: 1fr !important; }
    [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
    [style*="grid-template-columns:repeat(6"] { grid-template-columns: repeat(2, 1fr) !important; }
    [style*="grid-template-columns:repeat(5"] { grid-template-columns: repeat(2, 1fr) !important; }
    [style*="grid-template-columns:repeat(auto-fill, minmax(320px"] { grid-template-columns: 1fr !important; }

    /* Reduce padding on all sections */
    [style*="padding:24px 32px"] { padding: 16px !important; }
    [style*="padding:0 32px"] { padding: 0 16px !important; }
    [style*="padding:32px"] { padding: 16px !important; }
    [style*="padding:48px 32px"] { padding: 24px 16px !important; }

    /* Market status bar */
    [style*="padding:8px 32px"][style*="overflow-x:auto"] { padding: 8px 12px !important; gap: 12px !important; }

    /* Footer */
    .footer [style*="gap:30px"] { gap: 16px !important; flex-direction: column !important; }

    /* News feed */
    .news-feed-item { flex-direction: column; }
    .news-feed-img { width: 100% !important; height: 180px !important; }

    /* Article pages */
    .article-page { padding: 16px !important; }
    .article-page h1 { font-size: 22px !important; }
    .article-hero-img { max-width: 100%; height: auto; }

    /* Admin */
    .admin-sidebar { display: none !important; }
    .admin-main { max-width: 100% !important; padding: 16px !important; }
    .admin-kpi { grid-template-columns: repeat(2, 1fr) !important; }
    .admin-table td, .admin-table th { font-size: 11px; padding: 6px 8px; }

    /* Signal cards grid */
    [style*="minmax(320px"] { grid-template-columns: 1fr !important; }

    /* Stats cards */
    .stats-cards { grid-template-columns: repeat(2, 1fr) !important; }
    .stat-card .stat-number { font-size: 22px; }

    /* CTA section */
    [style*="padding:48px 32px"][style*="text-align:center"] { padding: 32px 16px !important; }
    [style*="font-size:28px"] { font-size: 22px !important; }

    /* Trust bar */
    [style*="gap:32px"][style*="flex-wrap:wrap"] { gap: 8px !important; }
    [style*="gap:32px"][style*="flex-wrap:wrap"] span { font-size: 11px !important; }

    /* Blog/Education grids */
    .blog-grid { grid-template-columns: 1fr !important; }
    .news-grid { grid-template-columns: 1fr !important; }

    /* Signal detail page */
    .trust-gauge { flex-direction: column; }
    .trust-components { grid-template-columns: 1fr; }
    .price-header .symbol { font-size: 20px; }
    .price-header .price { font-size: 24px; }

    /* User dashboard */
    .stats-cards { grid-template-columns: repeat(2, 1fr) !important; }

    /* News page */
    .news-page { flex-direction: column; padding: 16px; }
    .news-sidebar { width: 100%; }
    .news-sidebar-inner { position: static; max-height: none; }

    /* Blog listing */
    .blog-listing { padding: 16px; }
    .blog-list-item { flex-direction: column; }
    .blog-list-item img { width: 100% !important; height: 180px; }
}
