/* ============================================================
   BullishProspects.com - Main Stylesheet
   ============================================================ */

:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a2332;
    --bg-card-hover: #1f2b3d;
    --bg-input: #0f1724;
    --border-color: #2a3548;
    --border-focus: #d4a017;
    --text-primary: #e8ecf1;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --gold: #d4a017;
    --gold-hover: #e6b422;
    --gold-light: rgba(212, 160, 23, 0.15);
    --green: #22c55e;
    --green-bg: rgba(34, 197, 94, 0.12);
    --red: #ef4444;
    --red-bg: rgba(239, 68, 68, 0.12);
    --blue: #3b82f6;
    --blue-bg: rgba(59, 130, 246, 0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --transition: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--gold-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* ── Ticker Tape ─────────────────────────────────────────── */
.ticker-tape {
    background: #060911;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    white-space: nowrap;
    height: 36px;
    display: flex;
    align-items: center;
    font-size: 0.8rem;
}
.ticker-wrap {
    display: flex;
    width: 100%;
    overflow: hidden;
}
.ticker-content {
    display: flex;
    gap: 2rem;
    animation: ticker-scroll 40s linear infinite;
}
.ticker-item {
    display: inline-flex;
    gap: 0.5rem;
    color: var(--text-secondary);
}
.ticker-price { color: var(--text-primary); font-weight: 600; }
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Header / Nav ────────────────────────────────────────── */
.site-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.main-nav { padding: 0; }
.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    text-decoration: none;
}
.logo .gold { color: var(--gold); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}
.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-bell {
    position: relative;
    color: var(--text-secondary);
    font-size: 1.1rem;
}
.nav-bell:hover { color: var(--gold); }
.notification-count {
    position: absolute;
    top: -6px; right: -8px;
    background: var(--red);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    width: 18px; height: 18px;
    display: flex; align-items: center; justify-content: center;
}

.user-dropdown { position: relative; }
.user-dropdown-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: border-color var(--transition);
}
.user-dropdown-toggle:hover { border-color: var(--gold); }
.user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    min-width: 180px;
    box-shadow: var(--shadow);
    z-index: 100;
}
.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: background var(--transition);
}
.user-dropdown-menu a:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}
.user-dropdown.open .user-dropdown-menu { display: block; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
}
.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 0.8rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
    background: var(--gold);
    color: #0a0e17;
}
.btn-primary:hover {
    background: var(--gold-hover);
    color: #0a0e17;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(212,160,23,0.3);
}

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

.btn-danger {
    background: var(--red);
    color: #fff;
}
.btn-danger:hover {
    background: #dc2626;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.4rem;
}
.btn-text:hover { color: var(--text-primary); }

.btn:disabled, .btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ── Forms ───────────────────────────────────────────────── */
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}
.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-light);
}
.form-control::placeholder {
    color: var(--text-muted);
}

.form-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.input-group {
    position: relative;
}
.input-group .form-control {
    padding-right: 3rem;
}
.input-group-append {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 1rem;
}
.input-group-append:hover { color: var(--text-primary); }

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
    cursor: pointer;
}
.form-check label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    margin: 0;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.alert-danger {
    background: var(--red-bg);
    color: #fca5a5;
    border: 1px solid rgba(239,68,68,0.3);
}
.alert-success {
    background: var(--green-bg);
    color: #86efac;
    border: 1px solid rgba(34,197,94,0.3);
}
.alert-info {
    background: var(--blue-bg);
    color: #93c5fd;
    border: 1px solid rgba(59,130,246,0.3);
}
.alert-warning {
    background: rgba(234,179,8,0.12);
    color: #fde047;
    border: 1px solid rgba(234,179,8,0.3);
}

/* ── Auth Page Layout ────────────────────────────────────── */
.auth-page {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.auth-card {
    width: 100%;
    max-width: 440px;
}
.auth-card .card {
    padding: 2.5rem;
}
.auth-card h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.auth-card .auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}
.auth-card .auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.auth-card .auth-footer a {
    color: var(--gold);
    font-weight: 500;
}
.auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Password strength indicator */
.password-strength {
    margin-top: 0.5rem;
}
.password-strength-bar {
    height: 4px;
    border-radius: 2px;
    background: var(--border-color);
    overflow: hidden;
    margin-bottom: 0.3rem;
}
.password-strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
    width: 0%;
}
.password-strength-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.strength-weak .password-strength-fill { width: 25%; background: var(--red); }
.strength-fair .password-strength-fill { width: 50%; background: #f59e0b; }
.strength-good .password-strength-fill { width: 75%; background: var(--blue); }
.strength-strong .password-strength-fill { width: 100%; background: var(--green); }

/* ── Utility Classes ─────────────────────────────────────── */
.text-success { color: var(--green); }
.text-danger { color: var(--red); }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 0.75rem; right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}
.modal-icon {
    color: var(--gold);
    margin-bottom: 1rem;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}
.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.75rem;
    line-height: 1.5;
}
.footer-col h4 {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 0.5rem;
}
.footer-col ul a {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.footer-col ul a:hover { color: var(--gold); }
.footer-social {
    display: flex;
    gap: 1rem;
}
.footer-social a {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.footer-social a:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.footer-disclaimer {
    margin-top: 0.3rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ── Breadcrumbs ─────────────────────────────────────────── */
.breadcrumb {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}
.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    color: var(--text-muted);
    margin-right: 0.5rem;
}
.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item a:hover { color: var(--gold); }
.breadcrumb-item.active { color: var(--text-secondary); }

/* ── New Articles Banner ─────────────────────────────────── */
.new-articles-banner {
    background: var(--gold);
    color: #0a0e17;
    font-weight: 600;
    font-size: 0.9rem;
}
.banner-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.banner-close {
    background: none;
    border: none;
    color: #0a0e17;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: auto;
}

/* ── Toggle Switch ───────────────────────────────────────── */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--border-color);
    border-radius: 26px;
    transition: var(--transition);
}
.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px; width: 20px;
    left: 3px; bottom: 3px;
    background: var(--text-primary);
    border-radius: 50%;
    transition: var(--transition);
}
.toggle-switch input:checked + .toggle-slider {
    background: var(--gold);
}
.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
    background: #0a0e17;
}

/* ── Hero Section ───────────────────────────────────────── */
.hero {
    position: relative;
    width: 100%;
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #0f1525 40%, #111a2e 70%, var(--bg-primary) 100%);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212,160,23,0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(34,197,94,0.03) 0%, transparent 60%);
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 1rem;
    background: var(--gold-light);
    border: 1px solid rgba(212,160,23,0.3);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 1.25rem;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}
.hero-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--gold);
}
.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ── Market Overview Bar ────────────────────────────────── */
.market-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}
.market-bar-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.market-bar-inner::-webkit-scrollbar { display: none; }
.market-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius);
    transition: background var(--transition);
}
.market-bar-item:hover { background: var(--bg-card-hover); }
.market-bar-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}
.market-bar-value {
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.market-bar-change {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}
.market-bar-change.up { color: var(--green); background: var(--green-bg); }
.market-bar-change.down { color: var(--red); background: var(--red-bg); }

/* ── News Cards ─────────────────────────────────────────── */
.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.news-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212,160,23,0.2);
}
.news-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.news-card:hover .news-card-image img {
    transform: scale(1.03);
}
.news-card-image .badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
}
.news-card-body {
    padding: 1.25rem;
}
.news-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.news-card-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
}
.news-card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}
.news-card:hover .news-card-title { color: var(--gold); }
.news-card-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border-color);
}
.news-card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.news-card-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}
.news-card-author span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Card featured variant */
.news-card.featured {
    grid-column: span 2;
}
.news-card.featured .news-card-image { aspect-ratio: 21 / 9; }
.news-card.featured .news-card-title { font-size: 1.4rem; }

/* Card horizontal variant */
.news-card.horizontal {
    display: grid;
    grid-template-columns: 240px 1fr;
}
.news-card.horizontal .news-card-image {
    aspect-ratio: auto;
    height: 100%;
}

/* Card compact variant */
.news-card.compact {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
}
.news-card.compact .news-card-image {
    width: 90px;
    min-height: 70px;
    aspect-ratio: auto;
    border-radius: var(--radius);
    flex-shrink: 0;
}
.news-card.compact .news-card-body { padding: 0; }
.news-card.compact .news-card-title {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
}

/* ── News Grid Layouts ──────────────────────────────────── */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.news-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.news-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Content + sidebar layout */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}
.content-main { min-width: 0; }

/* ── Sidebar Widgets ────────────────────────────────────── */
.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.sidebar-widget-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}
.sidebar-widget-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    transition: color var(--transition);
}
.sidebar-widget-list a:last-child { border-bottom: none; }
.sidebar-widget-list a:hover { color: var(--gold); }

/* Sidebar Filter */
.sidebar-filter-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: block;
}
.sidebar-filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition);
}
.sidebar-filter-option:hover { color: var(--text-primary); }
.sidebar-filter-option input { accent-color: var(--gold); }

/* ── Article Page ───────────────────────────────────────── */
.article {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}
.article-category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold);
    margin-bottom: 0.75rem;
}
.article-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.article-author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.article-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}
.article-hero-img {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    aspect-ratio: 21 / 9;
    object-fit: cover;
}
.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}
.article-body h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem;
}
.article-body h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 2rem 0 0.75rem;
}
.article-body p { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol {
    margin: 1rem 0 1.25rem 1.5rem;
    color: var(--text-secondary);
}
.article-body li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}
.article-body ul li { list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body blockquote {
    border-left: 3px solid var(--gold);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--bg-card);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-secondary);
}
.article-body img {
    border-radius: var(--radius);
    margin: 1.5rem 0;
}
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* ── Badges / Sentiment ─────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 4px;
    line-height: 1.4;
}
.badge-bullish { color: var(--green); background: var(--green-bg); }
.badge-bearish { color: var(--red); background: var(--red-bg); }
.badge-neutral { color: var(--text-muted); background: rgba(136,146,176,0.12); }
.badge-breaking {
    color: #fff;
    background: var(--red);
    animation: pulse-breaking 1.5s ease-in-out infinite;
}
@keyframes pulse-breaking {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
.badge-gold { color: #0a0e17; background: var(--gold); }

/* ── Ad Slot Placeholders ───────────────────────────────── */
.ad-slot {
    position: relative;
    width: 100%;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius);
    background: rgba(26,35,50,0.3);
    margin: 1.5rem 0;
    overflow: hidden;
}
.ad-slot::before {
    content: 'Advertisement';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    opacity: 0.5;
}
.ad-slot.banner { min-height: 90px; }
.ad-slot.leaderboard { min-height: 90px; max-width: 728px; margin-left: auto; margin-right: auto; }
.ad-slot.sidebar-ad { min-height: 250px; }
.ad-slot.inline { min-height: 120px; }

/* ── Share Buttons ──────────────────────────────────────── */
.share-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.share-bar-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 0.5rem;
}
.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    background: none;
    cursor: pointer;
    transition: all var(--transition);
}
.share-btn:hover {
    color: var(--text-primary);
    border-color: var(--gold);
    background: var(--bg-card-hover);
}
.share-btn.twitter:hover { color: #1DA1F2; border-color: #1DA1F2; }
.share-btn.facebook:hover { color: #1877F2; border-color: #1877F2; }
.share-btn.linkedin:hover { color: #0A66C2; border-color: #0A66C2; }
.share-btn.reddit:hover { color: #FF4500; border-color: #FF4500; }

/* ── Watchlist ──────────────────────────────────────────── */
.watchlist {
    display: flex;
    flex-direction: column;
}
.watchlist-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition);
}
.watchlist-item:hover { background: var(--bg-card-hover); }
.watchlist-item:last-child { border-bottom: none; }
.watchlist-symbol { font-weight: 700; font-size: 0.9rem; color: var(--text-primary); }
.watchlist-name { font-size: 0.8rem; color: var(--text-muted); }
.watchlist-price { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.watchlist-change {
    text-align: right;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 4px;
}
.watchlist-change.up { color: var(--green); background: var(--green-bg); }
.watchlist-change.down { color: var(--red); background: var(--red-bg); }

/* ── Ticker Tags / Chips ────────────────────────────────── */
.ticker-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    background: var(--gold-light);
    border: 1px solid rgba(212,160,23,0.25);
    border-radius: 999px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.ticker-tag:hover {
    background: rgba(212,160,23,0.2);
    border-color: rgba(212,160,23,0.4);
}
.ticker-tag.bullish { color: var(--green); background: var(--green-bg); border-color: rgba(34,197,94,0.25); }
.ticker-tag.bearish { color: var(--red); background: var(--red-bg); border-color: rgba(239,68,68,0.25); }
.ticker-tag .remove {
    display: inline-flex;
    margin-left: 2px;
    opacity: 0.6;
    transition: opacity var(--transition);
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
    padding: 0;
}
.ticker-tag .remove:hover { opacity: 1; }
.ticker-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ── Word Cloud (Trending Tickers) ──────────────────────── */
.word-cloud {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem;
}
.word-cloud-item {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    border-radius: 4px;
}
.word-cloud-item:hover { color: var(--gold); background: var(--gold-light); }
.word-cloud-item.sm { font-size: 0.75rem; }
.word-cloud-item.md { font-size: 1rem; font-weight: 500; color: var(--text-secondary); }
.word-cloud-item.lg { font-size: 1.3rem; font-weight: 600; color: var(--text-primary); }
.word-cloud-item.xl { font-size: 1.7rem; font-weight: 700; color: var(--gold); }

/* ── Chart Container ────────────────────────────────────── */
.chart-container {
    position: relative;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}
.chart-header h3 {
    font-size: 1rem;
    font-weight: 600;
}
.chart-timeframes {
    display: flex;
    gap: 2px;
    background: var(--bg-primary);
    border-radius: var(--radius);
    padding: 2px;
}
.chart-tf-btn {
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 4px;
    transition: all var(--transition);
    background: none;
    border: none;
    cursor: pointer;
}
.chart-tf-btn:hover { color: var(--text-primary); }
.chart-tf-btn.active { color: var(--text-primary); background: var(--bg-card); }
.chart-body {
    padding: 1.25rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Comment Section ────────────────────────────────────── */
.comments-section {
    padding: 2rem 0;
}
.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.comments-header h3 { font-size: 1.2rem; font-weight: 700; }
.comments-count { color: var(--text-muted); font-size: 0.85rem; }

.comment-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}
.comment-form-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--bg-card-hover);
    object-fit: cover;
}
.comment-form-body { flex: 1; }
.comment-form textarea {
    width: 100%;
    min-height: 70px;
    padding: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    resize: vertical;
    outline: none;
    font-family: var(--font-sans);
    transition: border-color var(--transition);
    margin-bottom: 0.5rem;
}
.comment-form textarea:focus { border-color: var(--gold); }
.comment-form-actions { display: flex; justify-content: flex-end; }

.comment {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}
.comment:last-child { border-bottom: none; }
.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}
.comment-body { flex: 1; min-width: 0; }
.comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}
.comment-author { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.comment-date { font-size: 0.75rem; color: var(--text-muted); }
.comment-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.comment-actions { display: flex; gap: 1rem; }
.comment-action {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: color var(--transition);
}
.comment-action:hover { color: var(--gold); }
.comment-replies {
    margin-top: 0.75rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--border-color);
}

/* ── Author Bio Card ────────────────────────────────────── */
.author-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}
.author-card-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--gold);
}
.author-card-info { flex: 1; }
.author-card-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}
.author-card-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}
.author-card-title {
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.author-card-bio {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}
.author-card-social {
    display: flex;
    gap: 0.5rem;
}
.author-card-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: all var(--transition);
}
.author-card-social a:hover { color: var(--gold); border-color: var(--gold); }

/* ── Related Posts ──────────────────────────────────────── */
.related-posts {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}
.related-posts-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* ── Loading / Skeleton ─────────────────────────────────── */
.spinner {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 3px solid var(--border-color);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
.spinner.sm { width: 16px; height: 16px; border-width: 2px; }
.spinner.lg { width: 44px; height: 44px; border-width: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.skeleton {
    background: linear-gradient(90deg, var(--border-color) 25%, var(--bg-card-hover) 50%, var(--border-color) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease infinite;
    border-radius: 4px;
}
.skeleton.text { height: 14px; width: 100%; margin-bottom: 0.5rem; }
.skeleton.text-sm { height: 12px; width: 60%; }
.skeleton.title { height: 20px; width: 80%; margin-bottom: 0.75rem; }
.skeleton.image { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); }
.skeleton.avatar { width: 36px; height: 36px; border-radius: 50%; }
.skeleton.card-sk { height: 260px; border-radius: var(--radius-lg); }
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Toast Notifications ────────────────────────────────── */
.toast-container {
    position: fixed;
    top: 80px;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 3000;
    max-width: 380px;
    width: 100%;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    animation: toast-in 0.3s ease;
    pointer-events: auto;
}
.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }
.toast.warning { border-left: 3px solid var(--gold); }
.toast.info { border-left: 3px solid var(--blue); }
.toast-title { font-weight: 600; font-size: 0.85rem; color: var(--text-primary); margin-bottom: 2px; }
.toast-message { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.toast-close {
    color: var(--text-muted);
    padding: 2px;
    background: none;
    border: none;
    cursor: pointer;
    transition: color var(--transition);
}
.toast-close:hover { color: var(--text-primary); }
.toast.exiting { animation: toast-out 0.3s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes toast-out { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(100%); } }

/* ── Pagination ─────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 1.5rem 0;
    list-style: none;
}
.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all var(--transition);
}
.pagination a:hover {
    color: var(--text-primary);
    border-color: var(--gold);
    background: var(--bg-card-hover);
}
.pagination .active {
    color: #0a0e17;
    background: var(--gold);
    border-color: var(--gold);
    font-weight: 700;
}
.pagination .disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ── Section Helpers ────────────────────────────────────── */
.section { padding: 2rem 0; }
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.section-header h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
}
.section-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    transition: color var(--transition);
}
.section-link:hover { color: var(--gold-hover); }

/* ── Scrollbar Styling ──────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
* { scrollbar-width: thin; scrollbar-color: var(--border-color) var(--bg-primary); }

/* ── Selection ──────────────────────────────────────────── */
::selection { background: rgba(212,160,23,0.25); color: var(--text-primary); }

/* ── Focus Visible ──────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }

/* ── Container ──────────────────────────────────────────── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.container-narrow { max-width: 800px; }

/* ── Dropdown ───────────────────────────────────────────── */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.15s ease;
}
.dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: background var(--transition), color var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}
.dropdown-item:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.dropdown-divider { border-top: 1px solid var(--border-color); margin: 0.25rem 0; }

/* ── Empty State ────────────────────────────────────────── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}
.empty-state i {
    font-size: 2.5rem;
    color: var(--text-muted);
    opacity: 0.4;
    margin-bottom: 1rem;
}
.empty-state h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.empty-state p {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 400px;
    margin-bottom: 1rem;
}

/* ── Notification Opt-in Modal ──────────────────────────── */
.notification-optin .modal-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}
.notification-optin h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.notification-optin p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.notification-optin .btn-group {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

/* ============================================================
   HOMEPAGE SECTIONS
   ============================================================ */

/* ── Hero Section ─────────────────────────────────────────── */
.hero-section {
    position: relative;
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, #0a0e17 0%, #131c2e 50%, #0a0e17 100%);
    text-align: center;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(212,160,23,0.06) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(34,197,94,0.04) 0%, transparent 50%);
    pointer-events: none;
}
.hero-headline {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
    position: relative;
}
.hero-headline .gold {
    color: var(--gold);
}
.hero-subheadline {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    position: relative;
}
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ── Hero Animated Chart ─────────────────────────────────── */
.hero-chart {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65%;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}
.hero-section .container {
    position: relative;
    z-index: 1;
}
.hero-chart-line {
    stroke-dasharray: 2600;
    stroke-dashoffset: 2600;
    animation: drawChart 3s ease-in-out forwards;
}
.hero-chart-fill {
    opacity: 0;
    animation: fadeInFill 1.2s ease-in 2s forwards;
}
.hero-chart-dot {
    opacity: 0;
    animation: fadeInDot 0.4s ease-out forwards;
}
.hero-chart-dot:nth-child(1)  { animation-delay: 0.3s; }
.hero-chart-dot:nth-child(2)  { animation-delay: 0.55s; }
.hero-chart-dot:nth-child(3)  { animation-delay: 0.8s; }
.hero-chart-dot:nth-child(4)  { animation-delay: 1.0s; }
.hero-chart-dot:nth-child(5)  { animation-delay: 1.2s; }
.hero-chart-dot:nth-child(6)  { animation-delay: 1.4s; }
.hero-chart-dot:nth-child(7)  { animation-delay: 1.6s; }
.hero-chart-dot:nth-child(8)  { animation-delay: 1.8s; }
.hero-chart-dot:nth-child(9)  { animation-delay: 2.0s; }
.hero-chart-dot:nth-child(10) { animation-delay: 2.2s; }
.hero-chart-dot:nth-child(11) { animation-delay: 2.5s; }
.hero-chart-dot:nth-child(12) { animation-delay: 2.7s; }
.hero-chart-dot:nth-child(13) { animation-delay: 2.9s; }
.hero-chart-dot-last {
    animation: fadeInDot 0.4s ease-out 2.9s forwards, pulseGlow 2s ease-in-out 3.3s infinite;
}
@keyframes drawChart {
    0% {
        stroke-dashoffset: 2600;
    }
    100% {
        stroke-dashoffset: 0;
    }
}
@keyframes fadeInFill {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@keyframes fadeInDot {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 0.8;
        transform: scale(1);
    }
}
@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.95;
        r: 4;
    }
    50% {
        opacity: 1;
        r: 6;
    }
}

/* ── Section Titles ───────────────────────────────────────── */
.section-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}
.section-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}
.view-all-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color var(--transition);
}
.view-all-link:hover {
    color: var(--gold-hover);
    text-decoration: underline;
}

/* ── Market Overview ──────────────────────────────────────── */
.market-overview-section {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}
.market-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.market-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    transition: border-color var(--transition), transform var(--transition);
}
.market-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}
.market-card .ticker-symbol {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}
.market-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}
.market-card .change {
    font-size: 0.9rem;
    font-weight: 600;
}
.market-updated {
    text-align: right;
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ── Features Section ─────────────────────────────────────── */
.features-section {
    padding: 3rem 0;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gold-light);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}
.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: #fff;
}
.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ── Latest News Section ──────────────────────────────────── */
.latest-news-section {
    padding: 3rem 0;
}

/* ── Top Movers Section ───────────────────────────────────── */
.top-movers-section {
    padding: 3rem 0;
}
.movers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}
.movers-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.movers-panel-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    color: #fff;
    background: var(--bg-secondary);
}
.movers-table {
    width: 100%;
    border-collapse: collapse;
}
.movers-table th,
.movers-table td {
    padding: 0.75rem 1.25rem;
    text-align: left;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(42,53,72,0.5);
}
.movers-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.movers-table td {
    color: var(--text-primary);
}
.movers-table tr:last-child td {
    border-bottom: none;
}
.movers-table tr:hover td {
    background: rgba(255,255,255,0.02);
}
.movers-list {
    list-style: none;
    padding: 0;
}
.movers-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(42,53,72,0.5);
    font-size: 0.9rem;
}
.movers-list li:last-child {
    border-bottom: none;
}

/* ── Blog Preview Section ─────────────────────────────────── */
.blog-preview-section {
    padding: 3rem 0;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* ── Newsletter Section ───────────────────────────────────── */
.newsletter-section {
    padding: 3.5rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}
.newsletter-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 480px;
    margin: 0 auto;
}
.newsletter-input-group {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    min-width: 250px;
}
.newsletter-input-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.9rem;
}
.newsletter-input-group input:focus {
    outline: none;
    border-color: var(--gold);
}
.newsletter-disclaimer {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.75rem;
}

/* ── Placeholder & Empty States ───────────────────────────── */
.placeholder-message {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius);
}
.placeholder-message i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

/* ── Ticker Extras ────────────────────────────────────────── */
.ticker-symbol {
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 0.35rem;
}
.ticker-change {
    font-weight: 600;
    margin-left: 0.35rem;
}
.ticker-chip {
    display: inline-block;
    background: var(--gold-light);
    color: var(--gold);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    margin: 0.15rem;
    transition: background var(--transition);
}
.ticker-chip:hover {
    background: rgba(212,160,23,0.25);
}

/* ── Color Utility Classes ────────────────────────────────── */
.text-green, .text-success { color: var(--green) !important; }
.text-red, .text-danger { color: var(--red) !important; }
.text-gold { color: var(--gold) !important; }
.text-muted { color: var(--text-muted) !important; }


/* ============================================================
   NEWS PAGE
   ============================================================ */
.news-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 2rem 0;
}
.news-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}
.news-main {
    min-width: 0;
}
.news-results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.results-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.new-articles-alert {
    background: var(--gold-light);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 1rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background var(--transition);
}
.new-articles-alert:hover {
    background: rgba(212,160,23,0.25);
}

/* News Card Variants */
.news-card-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    border-radius: var(--radius) var(--radius) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
}
.news-card-summary {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}
.news-card-tickers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}
.news-card-share {
    display: flex;
    gap: 0.5rem;
}
.news-source {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.news-source a {
    color: var(--gold);
    text-decoration: none;
}
.news-source a:hover {
    text-decoration: underline;
}
.news-time {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.news-views {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.news-sentiment {
    display: inline-block;
}
.meta-separator {
    color: var(--border-color);
    margin: 0 0.4rem;
}
.load-more-wrap {
    text-align: center;
    padding: 2rem 0;
}

/* Filter sidebar components */
.filter-group {
    margin-bottom: 1.5rem;
}
.filter-group label {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}
.filter-group h4 {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}
.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.35rem 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: color var(--transition);
}
.checkbox-label:hover,
.radio-label:hover {
    color: var(--text-primary);
}
.checkbox-label input,
.radio-label input {
    accent-color: var(--gold);
}

/* Breaking news */
.breaking-news-banner {
    background: linear-gradient(90deg, var(--red) 0%, #c41230 100%);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: pulse-border 2s ease-in-out infinite;
}
.breaking-label {
    background: rgba(255,255,255,0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.breaking-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}
.breaking-link:hover {
    text-decoration: underline;
}
@keyframes pulse-border {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}

/* ── Sentiment Badge ──────────────────────────────────────── */
.sentiment-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.sentiment-badge.badge-bullish, .sentiment-badge.bullish {
    background: var(--green-bg);
    color: var(--green);
}
.sentiment-badge.badge-bearish, .sentiment-badge.bearish {
    background: var(--red-bg);
    color: var(--red);
}
.sentiment-badge.badge-neutral, .sentiment-badge.neutral {
    background: rgba(148,163,184,0.12);
    color: var(--text-secondary);
}


/* ============================================================
   STOCK PAGE
   ============================================================ */
.stock-page {
    padding: 2rem 0;
}
.stock-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.stock-header-left {}
.stock-header-right {
    text-align: right;
}
.stock-header-actions {
    margin-top: 0.75rem;
}
.stock-ticker-heading {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}
.stock-company-name {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 0.25rem;
}
.stock-price-block {}
.stock-live-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}
.stock-change, .stock-change-pct {
    font-size: 1.1rem;
    font-weight: 600;
    margin-left: 0.5rem;
}
.stock-meta-row {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.stock-chart-section {
    margin-bottom: 2rem;
}
.chart-period {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.stock-sentiment-section {
    margin-bottom: 2rem;
}
.sentiment-gauge {
    max-width: 500px;
}
.sentiment-bar {
    display: flex;
    height: 28px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.sentiment-bar-bullish {
    background: var(--green);
    transition: width 0.5s ease;
}
.sentiment-bar-neutral {
    background: var(--text-muted);
    transition: width 0.5s ease;
}
.sentiment-bar-bearish {
    background: var(--red);
    transition: width 0.5s ease;
}
.sentiment-legend {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
}
.legend-bullish { color: var(--green); }
.legend-bearish { color: var(--red); }
.legend-neutral { color: var(--text-muted); }
.stock-news-section,
.stock-external-section {
    margin-bottom: 2rem;
}
.external-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.external-link-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: border-color var(--transition), transform var(--transition);
}
.external-link-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}
.external-link-card i {
    font-size: 1.25rem;
}
.price-cell {
    font-weight: 600;
    color: #fff;
}
.change-cell {
    font-weight: 600;
}
.sentiment-cell {
    font-size: 0.8rem;
}


/* ============================================================
   BLOG PAGES
   ============================================================ */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    padding: 2rem 0;
}
.blog-main {
    min-width: 0;
}
.blog-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}
.blog-header {
    margin-bottom: 2rem;
}
.blog-filters {
    margin-bottom: 1.5rem;
}
.blog-content {}

/* Category Tabs */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.category-tab {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition);
}
.category-tab:hover, .category-tab.active {
    background: var(--gold);
    color: #0a0e17;
    border-color: var(--gold);
}

/* Blog Cards */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition);
}
.blog-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}
.blog-card-image, .blog-card-image-link {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-card-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
}
.blog-card-body {
    padding: 1.25rem;
}
.blog-card-category, .blog-category {
    display: inline-block;
    background: var(--gold-light);
    color: var(--gold);
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}
.blog-card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.blog-card-title a {
    color: #fff;
    text-decoration: none;
}
.blog-card-title a:hover {
    color: var(--gold);
}
.blog-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}
.blog-card-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.blog-card-author {
    color: var(--text-secondary);
    font-weight: 500;
}
.blog-card-date, .blog-date {
    color: var(--text-muted);
}
.blog-card-readmore, .read-more-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}
.blog-card-readmore:hover, .read-more-link:hover {
    text-decoration: underline;
}

/* Blog Sidebar */
.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.sidebar-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #fff;
}
.sidebar-search-form {
    display: flex;
    gap: 0.5rem;
}
.sidebar-search-group {
    display: flex;
    flex: 1;
}
.sidebar-search-input {
    flex: 1;
    padding: 0.6rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius) 0 0 var(--radius);
    color: var(--text-primary);
    font-size: 0.85rem;
}
.sidebar-search-input:focus {
    outline: none;
    border-color: var(--gold);
}
.sidebar-search-btn {
    padding: 0.6rem 0.75rem;
    background: var(--gold);
    color: #0a0e17;
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
}
.sidebar-popular-list {
    list-style: none;
}
.sidebar-popular-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(42,53,72,0.5);
}
.sidebar-popular-item:last-child {
    border-bottom: none;
}
.sidebar-popular-thumb, .sidebar-popular-thumb-placeholder {
    width: 60px;
    height: 45px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}
.sidebar-popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sidebar-popular-info {
    flex: 1;
    min-width: 0;
}
.sidebar-popular-link, .sidebar-popular-title {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sidebar-popular-link:hover {
    color: var(--gold);
}
.sidebar-popular-date {
    color: var(--text-muted);
    font-size: 0.7rem;
    margin-top: 0.15rem;
}
.sidebar-category-list {
    list-style: none;
}
.sidebar-category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--transition);
}
.sidebar-category-link:hover {
    color: var(--gold);
}
.sidebar-category-count {
    background: var(--bg-secondary);
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.sidebar-newsletter {}
.sidebar-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.sidebar-newsletter-input {
    padding: 0.6rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.85rem;
}
.sidebar-newsletter-input:focus {
    outline: none;
    border-color: var(--gold);
}

/* ── Blog Post Page ───────────────────────────────────────── */
.blog-post-page {
    padding: 2rem 0;
}
.blog-post-layout {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}
.blog-post-main {
    min-width: 0;
}
.blog-post-header {
    margin-bottom: 2rem;
}
.blog-post-category-badge {
    display: inline-block;
    background: var(--gold-light);
    color: var(--gold);
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.blog-post-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.blog-post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-weight: 700;
}
.blog-post-author-info {}
.blog-post-author-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}
.blog-post-author-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-top: 2rem;
}
.blog-post-date-reading {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.blog-post-share-header,
.blog-post-share-bottom {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.blog-post-featured-image {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
}
.blog-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}
.blog-post-content {
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--text-primary);
}
.blog-post-content h2, .blog-post-content h3, .blog-post-content h4 {
    font-family: var(--font-display);
    color: #fff;
    margin: 2rem 0 0.75rem;
}
.blog-post-content p {
    margin-bottom: 1.25rem;
}
.blog-post-content a {
    color: var(--gold);
}
.blog-post-content blockquote {
    border-left: 3px solid var(--gold);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--bg-card);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-secondary);
    font-style: italic;
}
.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}
.blog-post-content ul, .blog-post-content ol {
    margin: 1rem 0 1.25rem 1.5rem;
    color: var(--text-secondary);
}
.blog-post-content li {
    margin-bottom: 0.4rem;
}
.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
}
.blog-post-tag {
    display: inline-block;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}
.blog-post-tag:hover {
    background: var(--gold-light);
    color: var(--gold);
}
.blog-post-comments {
    margin-top: 2rem;
}
.blog-post-related {
    margin-top: 2rem;
}
.blog-post-related-news {
    margin-top: 2rem;
}

/* Comment elements */
.comment-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
}
.comment-textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    resize: vertical;
}
.comment-textarea:focus {
    outline: none;
    border-color: var(--gold);
}
.comment-alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.comment-alert-success {
    background: var(--green-bg);
    color: var(--green);
    border: 1px solid rgba(34,197,94,0.3);
}
.comment-alert-error {
    background: var(--red-bg);
    color: var(--red);
    border: 1px solid rgba(239,68,68,0.3);
}
.comment-login-prompt {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
}
.comment-login-prompt a {
    color: var(--gold);
    font-weight: 600;
}
.comments-list {
    margin-top: 1.5rem;
}
.no-comments {
    color: var(--text-muted);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
}

/* Related posts */
.related-post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition);
}
.related-post-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}
.related-post-image, .related-post-image-link {
    display: block;
    width: 100%;
    height: 140px;
    overflow: hidden;
}
.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-post-image-placeholder {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.related-post-body {
    padding: 1rem;
}
.related-post-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}
.related-post-title a {
    color: #fff;
    text-decoration: none;
}
.related-post-title a:hover {
    color: var(--gold);
}
.related-post-excerpt {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0.35rem;
}
.related-post-date {
    color: var(--text-muted);
    font-size: 0.75rem;
}
.related-news-list {
    list-style: none;
}
.related-news-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(42,53,72,0.5);
}
.related-news-item:last-child {
    border-bottom: none;
}
.related-news-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}
.related-news-link:hover {
    color: var(--gold);
}
.related-news-thumb {
    width: 80px;
    height: 55px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-secondary);
}
.related-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-news-info { flex: 1; min-width: 0; }
.related-news-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}
.related-news-source {
    color: var(--text-muted);
    font-size: 0.75rem;
}


/* ============================================================
   TIPS & TRENDS PAGE
   ============================================================ */
.disclaimer-banner {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: var(--red);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    font-size: 0.9rem;
    line-height: 1.6;
}
.hot-picks-section {
    margin-bottom: 2rem;
}
.hot-picks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}
.hot-pick-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: border-color var(--transition), transform var(--transition);
}
.hot-pick-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}
.hot-pick-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.hot-pick-ticker {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
}
.hot-pick-mentions {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.hot-pick-sentiment {
    font-size: 0.85rem;
    font-weight: 600;
}
.hot-pick-body {
    margin-bottom: 0.75rem;
}
.hot-pick-headline {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}
.hot-pick-footer {
    display: flex;
    justify-content: flex-end;
}

/* Trending tickers word cloud */
.trending-tickers-section {
    margin-bottom: 2rem;
}
.trending-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}
.trending-tag {
    display: inline-block;
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    background: var(--gold-light);
    transition: background var(--transition), transform var(--transition);
}
.trending-tag:hover {
    background: rgba(212,160,23,0.3);
    transform: scale(1.05);
}
.tag-count {
    color: var(--text-muted);
    font-size: 0.7em;
    font-weight: 400;
    margin-left: 0.25rem;
}

/* Tech Analysis */
.tech-analysis-section {
    margin-bottom: 2rem;
}
.tech-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}
.tech-table th {
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.tech-table td {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(42,53,72,0.5);
    color: var(--text-primary);
}
.tech-table tr:last-child td {
    border-bottom: none;
}
.tech-table tr:hover td {
    background: rgba(255,255,255,0.02);
}


/* ============================================================
   ABOUT / CONTACT / ADVERTISE / LEGAL PAGES
   ============================================================ */
.about-hero-section {
    text-align: center;
    padding: 3rem 0 2rem;
}
.about-content,
.about-mission-section,
.about-services-section,
.about-sources-section,
.about-team-section,
.about-contact-section {
    padding: 2rem 0;
}
.about-list {
    list-style: none;
    padding: 0;
}
.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
}
.about-list li i {
    color: var(--gold);
    margin-top: 0.25rem;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: border-color var(--transition);
}
.team-card:hover {
    border-color: var(--gold);
}
.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gold-light);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}
.team-card h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}
.team-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Contact */
.contact-section {
    padding: 2rem 0;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.contact-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-info-list {
    list-style: none;
}
.contact-info-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.contact-info-list li i {
    color: var(--gold);
    width: 20px;
    text-align: center;
}
.social-links {
    display: flex;
    gap: 0.75rem;
}
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition);
}
.social-link:hover {
    background: var(--gold);
    color: #0a0e17;
    border-color: var(--gold);
}

/* Advertise */
.advertise-hero-section {
    text-align: center;
    padding: 3rem 0 2rem;
}
.audience-stats-section {
    padding: 2rem 0;
}
.ad-options-section {
    padding: 2rem 0;
}
.pricing-section {
    padding: 2rem 0;
}
.advertise-benefits-section {
    padding: 2rem 0;
}
.advertise-form-section {
    padding: 2rem 0;
}
.advertise-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 640px;
    margin: 0 auto;
}

/* Stat cards (about/advertise) */
.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.25rem;
}
.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}
.stats-disclaimer {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-align: center;
    margin-top: 1rem;
}

/* Legal pages */
.legal-section {
    padding: 2rem 0;
    max-width: 800px;
    margin: 0 auto;
}
.legal-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}
.legal-content h2 {
    font-family: var(--font-display);
    color: #fff;
    font-size: 1.3rem;
    margin: 2rem 0 0.75rem;
}
.legal-content h3 {
    color: #fff;
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem;
}
.legal-content p {
    margin-bottom: 1rem;
}
.legal-content ul, .legal-content ol {
    margin: 0.75rem 0 1rem 1.5rem;
}
.legal-content li {
    margin-bottom: 0.35rem;
}
.legal-content a {
    color: var(--gold);
}
.legal-updated {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}


/* ============================================================
   FORMS & AUTH PAGES
   ============================================================ */
.form-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem 0;
}
.form-input, .form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: border-color var(--transition);
}
.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--gold);
}
.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
.toggle-pw {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
}
.required {
    color: var(--red);
}

/* Page titles for inner pages */
.page-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}
.page-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Pagination */
.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all var(--transition);
}
.pagination-link:hover, .pagination-link.active {
    background: var(--gold);
    color: #0a0e17;
    border-color: var(--gold);
}
.pagination-link.disabled {
    opacity: 0.4;
    pointer-events: none;
}
.pagination-ellipsis {
    color: var(--text-muted);
    padding: 0 0.5rem;
}
.pagination-prev, .pagination-next {
    font-weight: 600;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.share-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-right: 0.25rem;
}
.share-btn-twitter, .share-btn-facebook, .share-btn-linkedin, .share-btn-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all var(--transition);
    background: transparent;
}
.share-btn-twitter:hover { background: #1da1f2; color: #fff; border-color: #1da1f2; }
.share-btn-facebook:hover { background: #4267B2; color: #fff; border-color: #4267B2; }
.share-btn-linkedin:hover { background: #0077b5; color: #fff; border-color: #0077b5; }
.share-btn-email:hover { background: var(--gold); color: #0a0e17; border-color: var(--gold); }

/* Data table generic */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}
.data-table th {
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 0.75rem 1rem;
    text-align: left;
}
.data-table td {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(42,53,72,0.5);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

/* Error pages */
.error-page {
    text-align: center;
    padding: 5rem 1.5rem;
}
.error-page h1 {
    font-family: var(--font-display);
    font-size: 5rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.error-page h2 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
}
.error-page p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}
.error-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Role select in admin */
.role-select {
    padding: 0.35rem 0.5rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.8rem;
}

/* No data text */
.no-data-text {
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

/* Author card role */
.author-card-role {
    color: var(--text-muted);
    font-size: 0.8rem;
}


/* ============================================================
   RESPONSIVE ADDITIONS
   ============================================================ */
@media (max-width: 992px) {
    .hero-headline { font-size: 2.25rem; }
    .news-layout { grid-template-columns: 1fr; }
    .news-sidebar { position: static; }
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; }
    .contact-grid { grid-template-columns: 1fr; }
    .stock-header-section { flex-direction: column; }
    .stock-header-right { text-align: left; }
}
@media (max-width: 768px) {
    .hero-headline { font-size: 1.85rem; }
    .hero-subheadline { font-size: 1rem; }
    .market-cards { grid-template-columns: 1fr 1fr; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .movers-grid { grid-template-columns: 1fr; }
    .blog-post-title { font-size: 1.75rem; }
    .external-links-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
    .hero-headline { font-size: 1.5rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    .market-cards { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .newsletter-input-group { min-width: 100%; }
    .blog-post-title { font-size: 1.4rem; }
    .blog-post-meta { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .external-links-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .hot-picks-grid { grid-template-columns: 1fr; }
}

/* ── Inline Ad Slots ──────────────────────────────────────── */
.ad-slot-article {
    margin: 2rem 0;
}
.ad-slot-inline {
    margin: 1.5rem 0;
}

/* ── Inline Ad Slots ──────────────────────────────────────── */
.ad-slot-article { margin: 2rem 0; }
.ad-slot-inline { margin: 1.5rem 0; }

/* ── Ticker tape positive/negative colors ─────────────────── */
.ticker-item .positive { color: var(--green); }
.ticker-item .negative { color: var(--red); }
