/* ============================================
   RiskStock.com — Complete Stylesheet
   Financial Education Platform
   ============================================ */

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

/* ============================================
   1. CSS Variables
   ============================================ */
:root {
    --navy: #0A1628;
    --navy-light: #111d33;
    --navy-mid: #162038;
    --green: #00FF87;
    --green-dim: #00cc6a;
    --green-glow: rgba(0, 255, 135, 0.15);
    --white: #F8F9FA;
    --slate: #2D3748;
    --slate-light: #3d4a5c;
    --red: #FF4D4D;
    --text-primary: #F8F9FA;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --transition: 0.3s ease;
    --max-width: 1200px;
}

/* ============================================
   2. Reset & Base Styles
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--navy);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    color: var(--green-dim);
}

ul,
ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

input,
button,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   3. Navbar
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(45, 55, 72, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0;
}

.logo .risk {
    color: var(--white);
}

.logo .stock {
    color: var(--green);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding: 4px 0;
    transition: color var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green);
    border-radius: 1px;
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--white);
}

.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--green);
    color: var(--navy) !important;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--green-dim);
    color: var(--navy) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 255, 135, 0.3);
}

/* ============================================
   3b. Navbar Dropdown
   ============================================ */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dropdown-arrow {
    font-size: 0.55rem;
    transition: transform var(--transition);
    line-height: 1;
    opacity: 0.7;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 200px;
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-radius: var(--radius);
    padding: 8px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Invisible bridge to prevent hover gap */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 0;
    right: 0;
    height: 18px;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-dropdown-menu a:hover {
    color: var(--white);
    background: rgba(45, 55, 72, 0.4);
    border-left-color: var(--green);
}

.nav-dropdown-menu a::after {
    display: none !important;
}

/* ============================================
   4. Hamburger & Mobile Menu
   ============================================ */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: none;
    border: none;
    gap: 6px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1050;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    color: var(--text-primary);
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 16px;
    transition: color var(--transition);
}

.mobile-menu a:hover {
    color: var(--green);
}

.mobile-menu .nav-cta {
    font-size: 1.1rem;
    padding: 12px 32px;
    margin-top: 16px;
}

/* Mobile Submenu */
.mobile-submenu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.mobile-submenu-title {
    color: var(--text-primary);
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 16px;
    transition: color var(--transition);
}

.mobile-submenu-title:hover {
    color: var(--green);
}

.mobile-submenu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    border-left: 2px solid var(--green);
    padding: 6px 0 6px 20px;
}

.mobile-submenu-links a {
    color: var(--text-secondary);
    font-family: 'Sora', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    padding: 4px 16px;
    transition: color var(--transition);
}

.mobile-submenu-links a:hover {
    color: var(--green);
}

/* ============================================
   5. Hero Section
   ============================================ */
.hero {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 255, 135, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 .highlight {
    color: var(--green);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   6. Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--green);
    color: var(--navy);
    border-color: var(--green);
}

.btn-primary:hover {
    background: var(--green-dim);
    border-color: var(--green-dim);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 255, 135, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(248, 249, 250, 0.15);
}

.btn-ghost {
    background: transparent;
    color: var(--green);
    border-color: transparent;
    padding: 14px 16px;
}

.btn-ghost:hover {
    background: var(--green-glow);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* ============================================
   7. Ticker Tape
   ============================================ */
.ticker-tape {
    background: var(--navy-light);
    border-top: 1px solid var(--slate);
    border-bottom: 1px solid var(--slate);
    overflow: hidden;
    padding: 12px 0;
    position: relative;
}

.ticker-track {
    display: flex;
    gap: 48px;
    animation: ticker-scroll 30s linear infinite;
    width: max-content;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    white-space: nowrap;
    color: var(--text-secondary);
}

.ticker-item .symbol {
    font-weight: 600;
    color: var(--text-primary);
}

.ticker-item .price {
    color: var(--text-primary);
    font-weight: 500;
}

.ticker-item .change {
    font-weight: 500;
}

.ticker-item .change.up {
    color: var(--green);
}

.ticker-item .change.down {
    color: var(--red);
}

.data-notice {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    background: var(--navy-mid);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    padding: 4px 10px;
    border-radius: 50px;
    border: 1px solid var(--slate);
    z-index: 5;
    white-space: nowrap;
}

.last-updated-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   8. Section Styles
   ============================================ */
.section {
    padding: 80px 0;
}

.section-dark {
    background: var(--navy-light);
}

.section-darker {
    background: var(--navy-mid);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--green);
    margin-bottom: 12px;
}

/* ============================================
   9. Cards — Base
   ============================================ */
.card {
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition);
}

.card:hover {
    border-color: var(--green);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

/* ============================================
   10. Clickable Card Links
   ============================================ */
a.moving-card,
a.news-card,
a.featured-article {
    text-decoration: none;
    color: inherit;
    display: block;
}

a.moving-card h3,
a.news-card h3,
a.featured-article h3 {
    color: var(--white);
}

/* ============================================
   11. Moving Cards Grid
   ============================================ */
.moving-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.moving-card {
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}

.moving-card:hover {
    border-color: var(--green);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.moving-card-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-mid);
    font-size: 3.5rem;
    position: relative;
    overflow: hidden;
}

.moving-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.moving-card-body {
    padding: 20px;
}

.moving-card-body .tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--green);
    background: var(--green-glow);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.moving-card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.35;
    color: var(--white);
}

.moving-card-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.moving-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.moving-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   12. Three Pillars
   ============================================ */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.pillar {
    text-align: center;
    padding: 40px 24px;
}

.pillar-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.pillar h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--white);
}

.pillar p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   13. Featured Article
   ============================================ */
.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.featured-article:hover {
    border-color: var(--green);
    box-shadow: var(--shadow);
}

.featured-article-img {
    position: relative;
    min-height: 320px;
    overflow: hidden;
}

.featured-article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-article-body {
    padding: 40px 40px 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-article-body .tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--green);
    background: var(--green-glow);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 16px;
    width: fit-content;
}

.featured-article-body h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    color: var(--white);
}

.featured-article-body p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.featured-article-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.featured-article-author .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--green-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--green);
}

.featured-article-author .avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.featured-article-author .author-info {
    display: flex;
    flex-direction: column;
}

.featured-article-author .author-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.featured-article-author .author-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   14. Quick Explainer Pills
   ============================================ */
.explainer-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.explainer-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.explainer-pill:hover {
    border-color: var(--green);
    color: var(--green);
    background: var(--green-glow);
    transform: translateY(-2px);
}

.explainer-pill .pill-icon {
    font-size: 1rem;
}

/* ============================================
   15. Disclaimer Banner
   ============================================ */
.disclaimer-banner {
    background: var(--slate);
    padding: 16px 0;
    text-align: center;
}

.disclaimer-banner p {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   16. Footer
   ============================================ */
.footer {
    background: var(--navy-light);
    border-top: 1px solid var(--slate);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 320px;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--navy-mid);
    border: 1px solid var(--slate);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all var(--transition);
    text-decoration: none;
}

.footer-social a:hover {
    border-color: var(--green);
    color: var(--green);
    background: var(--green-glow);
}

.footer-col h4 {
    font-family: 'Sora', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 6px 0;
    transition: color var(--transition);
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--green);
}

.footer-bottom {
    border-top: 1px solid var(--slate);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--green);
}

.footer-disclaimer {
    padding: 20px 0;
    border-top: 1px solid var(--slate);
}

.footer-disclaimer p {
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.6;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* ============================================
   17. Page Header (Inner Pages)
   ============================================ */
.page-header {
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 135, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   18. Learn Page
   ============================================ */
.learn-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.learn-card {
    display: flex;
    gap: 20px;
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
}

.learn-card:hover {
    border-color: var(--green);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.learn-card-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: var(--green-glow);
    border: 1px solid rgba(0, 255, 135, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.learn-card-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--white);
}

.learn-card-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.learn-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.learn-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   18b. Article Page
   ============================================ */
.article-page {
    padding: 120px 0 60px;
}

.article-page h1 {
    font-family: 'Sora', sans-serif;
}

.article-page h2 {
    font-size: 1.5rem;
    margin: 40px 0 16px;
    color: var(--text-primary);
}

.article-page h3 {
    font-size: 1.2rem;
    margin: 28px 0 12px;
    color: var(--text-primary);
}

.article-hero-img {
    width: 100%;
    max-height: 420px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 32px;
}

.article-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-meta {
    margin-bottom: 8px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition);
}

.back-link:hover {
    color: var(--green);
}

.news-card-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.news-tag.read-time {
    color: var(--text-muted);
    background: var(--navy-mid);
}

/* ============================================
   19. Article Layout
   ============================================ */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

.article-content {
    max-width: 100%;
}

.article-content h2 {
    font-size: 1.6rem;
    margin: 40px 0 16px;
    color: var(--text-primary);
}

.article-content h3 {
    font-size: 1.25rem;
    margin: 32px 0 12px;
    color: var(--text-primary);
}

.article-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 0 0 20px 24px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.article-content ul {
    list-style: disc;
}

.article-content ol {
    list-style: decimal;
}

.article-content ul li,
.article-content ol li {
    margin-bottom: 8px;
    padding-left: 4px;
}

.article-content img {
    border-radius: var(--radius);
    margin: 24px 0;
}

.article-content a {
    color: var(--green);
    text-decoration: underline;
    text-decoration-color: rgba(0, 255, 135, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--transition);
}

.article-content a:hover {
    text-decoration-color: var(--green);
}

/* Key Takeaways Box */
.key-takeaways {
    background: var(--green-glow);
    border: 1px solid rgba(0, 255, 135, 0.25);
    border-radius: var(--radius);
    padding: 28px;
    margin: 32px 0;
}

.key-takeaways h3 {
    font-size: 1.1rem;
    color: var(--green);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.key-takeaways ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.key-takeaways ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.key-takeaways ul li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Pull Quote */
.pull-quote {
    border-left: 4px solid var(--green);
    padding: 20px 0 20px 24px;
    margin: 32px 0;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Article Sidebar */
.article-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-radius: var(--radius);
    padding: 24px;
}

.sidebar-card h4 {
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.sidebar-card ul {
    list-style: none;
}

.sidebar-card ul li {
    margin-bottom: 8px;
}

.sidebar-card ul li a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition);
}

.sidebar-card ul li a:hover {
    color: var(--green);
}

.sidebar-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   20. News Grid
   ============================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}

.news-card:hover {
    border-color: var(--green);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.news-card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.news-card:hover .news-card-img img {
    transform: scale(1.05);
}

.news-card-body {
    padding: 20px;
}

.news-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.news-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 50px;
}

.news-tag.category {
    color: var(--green);
    background: var(--green-glow);
}

.news-tag.date,
.news-tag.time {
    color: var(--text-muted);
    background: var(--navy-mid);
}

.news-card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--white);
    line-height: 1.35;
}

.news-card-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap var(--transition);
}

.read-more::after {
    content: '\2192';
    transition: transform var(--transition);
}

.read-more:hover::after {
    transform: translateX(4px);
}

/* ============================================
   21. Tab Navigation
   ============================================ */
.tab-nav {
    display: flex;
    gap: 4px;
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-radius: 50px;
    padding: 4px;
    width: fit-content;
    margin: 0 auto 40px;
}

.tab-btn {
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--navy-mid);
}

.tab-btn.active {
    background: var(--green);
    color: var(--navy);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ============================================
   22. Market Snapshot
   ============================================ */
.index-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.index-card {
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition);
}

.index-card:hover {
    border-color: var(--green);
}

.index-card .index-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.index-card .index-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.index-card .daily-change {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 500;
}

.index-card .daily-change.up {
    color: var(--green);
}

.index-card .daily-change.down {
    color: var(--red);
}

.sparkline {
    height: 50px;
    margin-top: 12px;
    position: relative;
    overflow: hidden;
}

.sparkline svg,
.sparkline canvas {
    width: 100%;
    height: 100%;
}

.commentary {
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 40px;
}

.commentary p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.commentary .commentary-date {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 8px;
}

/* Spotlight Card */
.spotlight-card {
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 40px;
}

.spotlight-card h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white);
}

.spotlight-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.spotlight-stat {
    text-align: center;
}

.spotlight-stat .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.spotlight-stat .stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Heatmap Grid */
.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 40px;
}

.heatmap-cell {
    padding: 16px 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all var(--transition);
}

.heatmap-cell .cell-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}

.heatmap-cell .cell-change {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
}

.heatmap-cell.strong-up {
    background: rgba(0, 255, 135, 0.25);
}

.heatmap-cell.strong-up .cell-change {
    color: var(--green);
}

.heatmap-cell.up {
    background: rgba(0, 255, 135, 0.12);
}

.heatmap-cell.up .cell-change {
    color: var(--green);
}

.heatmap-cell.flat {
    background: rgba(45, 55, 72, 0.5);
}

.heatmap-cell.flat .cell-change {
    color: var(--text-muted);
}

.heatmap-cell.down {
    background: rgba(255, 77, 77, 0.12);
}

.heatmap-cell.down .cell-change {
    color: var(--red);
}

.heatmap-cell.strong-down {
    background: rgba(255, 77, 77, 0.25);
}

.heatmap-cell.strong-down .cell-change {
    color: var(--red);
}

/* Week Numbers Grid */
.week-numbers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.week-number-item {
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.week-number-item .label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.week-number-item .value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   23. About Page
   ============================================ */
.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 64px;
}

.about-hero-text h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.about-hero-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-hero-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-hero-image img {
    width: 100%;
    height: auto;
}

/* Mission Box */
.mission-box {
    background: var(--green-glow);
    border: 1px solid rgba(0, 255, 135, 0.25);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 64px;
    text-align: center;
}

.mission-box p {
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.mission-box .mission-label {
    font-style: normal;
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--green);
    margin-bottom: 16px;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.team-card {
    display: flex;
    gap: 20px;
    align-items: center;
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition);
}

.team-card:hover {
    border-color: var(--green);
}

.team-avatar {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--green-glow);
    border: 2px solid rgba(0, 255, 135, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--green);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.team-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--white);
}

.team-info .role {
    font-size: 0.85rem;
    color: var(--green);
    font-weight: 500;
    margin-bottom: 6px;
}

.team-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   24. FAQ Accordion
   ============================================ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--slate);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 16px;
}

.faq-question h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.faq-toggle {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--green);
    font-weight: 300;
    transition: transform var(--transition);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    padding-bottom: 20px;
}

/* ============================================
   25. Newsletter Page
   ============================================ */
.newsletter-section {
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 135, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.newsletter-section .container {
    position: relative;
    z-index: 1;
}

.newsletter-section h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.newsletter-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.newsletter-form {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
    width: 100%;
    padding: 14px 20px;
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color var(--transition);
}

.newsletter-form input[type="text"]::placeholder,
.newsletter-form input[type="email"]::placeholder {
    color: var(--text-muted);
}

.newsletter-form input[type="text"]:focus,
.newsletter-form input[type="email"]:focus {
    border-color: var(--green);
    outline: none;
}

.newsletter-form .btn-submit {
    width: 100%;
    padding: 14px 32px;
    background: var(--green);
    color: var(--navy);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
}

.newsletter-form .btn-submit:hover {
    background: var(--green-dim);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 255, 135, 0.3);
}

.social-proof {
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   26. Disclaimer Box (Article)
   ============================================ */
.disclaimer-box {
    background: rgba(255, 77, 77, 0.08);
    border: 1px solid rgba(255, 77, 77, 0.25);
    border-radius: var(--radius);
    padding: 24px;
    margin: 32px 0;
}

.disclaimer-box h4 {
    font-family: 'Sora', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.disclaimer-box p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
}

/* ============================================
   27. Utility Classes
   ============================================ */
.text-center {
    text-align: center;
}

.text-green {
    color: var(--green);
}

.text-red {
    color: var(--red);
}

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

.mono {
    font-family: 'JetBrains Mono', monospace;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

/* ============================================
   28. Responsive — 1024px
   ============================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .featured-article {
        grid-template-columns: 1fr;
    }

    .featured-article-img {
        min-height: 240px;
    }

    .featured-article-body {
        padding: 24px;
    }

    .about-hero {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .spotlight-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   29. Responsive — 768px
   ============================================ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .hero {
        padding: 140px 0 60px;
    }

    .section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .page-header {
        padding: 120px 0 48px;
    }

    .moving-cards-grid {
        grid-template-columns: 1fr;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .learn-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .index-grid {
        grid-template-columns: 1fr;
    }

    .heatmap-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .week-numbers-grid {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .tab-nav {
        flex-wrap: wrap;
        border-radius: var(--radius);
        justify-content: center;
    }

    .tab-btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    .learn-card {
        flex-direction: column;
        text-align: center;
    }

    .learn-card-icon {
        margin: 0 auto;
    }

    .learn-card-meta {
        justify-content: center;
    }

    .explainer-pills {
        gap: 8px;
    }

    .explainer-pill {
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    .spotlight-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .team-card {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   30. Responsive — 480px
   ============================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero {
        padding: 130px 0 48px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header {
        padding: 110px 0 40px;
    }

    .heatmap-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .index-card .index-value {
        font-size: 1.3rem;
    }

    .featured-article-body h3 {
        font-size: 1.3rem;
    }

    .article-content h2 {
        font-size: 1.35rem;
    }

    .article-content h3 {
        font-size: 1.1rem;
    }

    .newsletter-form {
        padding: 0 8px;
    }

    .footer-grid {
        gap: 24px;
    }

    .mission-box {
        padding: 24px;
    }

    .mission-box p {
        font-size: 1.05rem;
    }

    .key-takeaways {
        padding: 20px;
    }

    .faq-question h3 {
        font-size: 0.95rem;
    }

    .tab-nav {
        width: 100%;
    }

    .tab-btn {
        flex: 1;
        text-align: center;
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .category-pills {
        gap: 8px;
    }

    .pill-btn {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .comment-form input,
    .comment-form textarea {
        font-size: 0.9rem;
    }
}

/* ============================================
   19. Category Filter Pills
   ============================================ */
.category-pills {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding: 0 0 12px;
    margin-bottom: 32px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--slate) transparent;
}

.category-pills::-webkit-scrollbar {
    height: 4px;
}

.category-pills::-webkit-scrollbar-track {
    background: transparent;
}

.category-pills::-webkit-scrollbar-thumb {
    background: var(--slate);
    border-radius: 4px;
}

.pill-btn {
    flex-shrink: 0;
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid var(--slate);
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.pill-btn:hover {
    border-color: var(--green);
    color: var(--green);
}

.pill-btn.active {
    background: var(--green);
    color: var(--navy);
    border-color: var(--green);
    font-weight: 600;
}

/* ============================================
   20. Comment Section
   ============================================ */
.comment-section {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--slate);
}

.comment-section h2 {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 24px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--slate);
    background: var(--navy);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.25s ease;
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: var(--text-muted);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--green);
}

.comment-form textarea {
    min-height: 100px;
    resize: vertical;
}

.comment-form button {
    align-self: flex-start;
    padding: 10px 28px;
    border-radius: var(--radius);
    border: none;
    background: var(--green);
    color: var(--navy);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.comment-form button:hover {
    opacity: 0.85;
}

.comment-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    padding: 20px;
    background: var(--navy-light);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.05);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    color: var(--green);
    font-size: 0.95rem;
}

.comment-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.comment-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9rem;
}

.no-comments {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
}

.comment-status {
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: none;
}

.comment-status.success {
    display: block;
    background: rgba(0,255,135,0.1);
    color: var(--green);
    border: 1px solid rgba(0,255,135,0.2);
}

.comment-status.error {
    display: block;
    background: rgba(255,77,77,0.1);
    color: var(--red);
    border: 1px solid rgba(255,77,77,0.2);
}

/* ============================================
   21. Article Visual Elements
   ============================================ */

/* Data Table */
.article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 0.9rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--slate);
}

.article-table thead {
    background: var(--navy-mid);
}

.article-table th {
    padding: 12px 16px;
    text-align: left;
    font-family: 'Sora', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--slate);
}

.article-table td {
    padding: 12px 16px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(45, 55, 72, 0.5);
}

.article-table tbody tr:last-child td { border-bottom: none; }

.article-table tbody tr {
    background: var(--navy-light);
    transition: background var(--transition);
}

.article-table tbody tr:hover { background: var(--navy-mid); }

.article-table .mono { font-family: 'JetBrains Mono', monospace; font-weight: 500; }
.article-table .text-green { color: var(--green); }
.article-table .text-red { color: var(--red); }

/* Stat Grid */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 32px 0;
}

.stat-box {
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
}

.stat-box .stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.stat-box .stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-box .stat-value.up { color: var(--green); }
.stat-box .stat-value.down { color: var(--red); }

.stat-box .stat-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Bar Chart */
.bar-chart {
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bar-chart .bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar-chart .bar-label {
    flex: 0 0 120px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: right;
}

.bar-chart .bar-track {
    flex: 1;
    height: 28px;
    background: var(--navy-mid);
    border-radius: 4px;
    overflow: hidden;
}

.bar-chart .bar {
    height: 100%;
    border-radius: 4px;
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    min-width: 40px;
    transition: width 0.6s ease;
}

.bar-chart .bar.red { background: var(--red); }

.bar-chart .bar-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--navy);
}

/* Insight Box */
.insight-box {
    background: rgba(0, 255, 135, 0.06);
    border: 1px solid rgba(0, 255, 135, 0.2);
    border-left: 4px solid var(--green);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin: 32px 0;
}

.insight-box .insight-label {
    font-family: 'Sora', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--green);
    margin-bottom: 8px;
}

.insight-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 32px 0;
}

.comparison-card {
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-radius: var(--radius-sm);
    padding: 20px;
}

.comparison-card .card-header {
    font-family: 'Sora', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comparison-card .card-header.bull { color: var(--green); }
.comparison-card .card-header.bear { color: var(--red); }

.comparison-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comparison-card ul li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

.comparison-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--slate-light);
}

/* Mini Chart */
.mini-chart {
    margin: 32px 0;
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-radius: var(--radius);
    padding: 20px;
}

.mini-chart .chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.mini-chart .chart-title {
    font-family: 'Sora', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mini-chart .chart-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 500;
}

.mini-chart svg {
    width: 100%;
    height: 80px;
    display: block;
}

/* Responsive — Article Visuals */
@media (max-width: 768px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .comparison-grid { grid-template-columns: 1fr; }
    .bar-chart .bar-label { flex: 0 0 80px; font-size: 0.8rem; }
    .article-table { font-size: 0.8rem; }
    .article-table th, .article-table td { padding: 10px 12px; }
}

@media (max-width: 480px) {
    .stat-grid { grid-template-columns: 1fr; }
    .stat-box .stat-value { font-size: 1.3rem; }
    .bar-chart .bar-label { flex: 0 0 60px; font-size: 0.75rem; }
}

/* ============================================
   Stock Risk Search
   ============================================ */
.stock-search-section {
    background: var(--navy);
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.stock-search-section .section-header { margin-bottom: 1.5rem; }

.stock-search-section .section-header h2 {
    font-family: 'Sora', sans-serif;
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.stock-search-section .section-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Search form */
.stock-search-form {
    position: relative;
    max-width: 520px;
    margin: 0 auto 2rem;
}

.stock-search-form input {
    width: 100%;
    padding: 14px 52px 14px 20px;
    background: var(--navy-light);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.stock-search-form input::placeholder {
    color: var(--text-muted, #5a6a7e);
}

.stock-search-form input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0,255,135,0.1);
}

.stock-search-form .search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.2rem;
    pointer-events: none;
}

/* Autocomplete dropdown */
.search-autocomplete {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--navy-light);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.search-autocomplete.active { display: block; }

.search-autocomplete .ac-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s;
}

.search-autocomplete .ac-item:hover,
.search-autocomplete .ac-item.highlighted {
    background: rgba(255,255,255,0.06);
}

.search-autocomplete .ac-symbol {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--green);
    min-width: 60px;
}

.search-autocomplete .ac-name {
    color: var(--text-primary);
    font-size: 0.88rem;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-autocomplete .ac-sector {
    color: var(--text-secondary);
    font-size: 0.75rem;
    white-space: nowrap;
}

.search-autocomplete .ac-exchange {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.search-autocomplete .ac-exchange.tsx {
    background: rgba(220, 38, 38, 0.2);
    color: #f87171;
}

.search-autocomplete .ac-exchange.tsxv {
    background: rgba(234, 179, 8, 0.2);
    color: #fbbf24;
}

/* Exchange badge in stock result card */
.result-exchange {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 8px;
    vertical-align: middle;
    position: relative;
    top: -1px;
    letter-spacing: 0.03em;
}

.result-exchange.tsx {
    background: rgba(220, 38, 38, 0.2);
    color: #f87171;
}

.result-exchange.tsxv {
    background: rgba(234, 179, 8, 0.2);
    color: #fbbf24;
}

/* Stock result card */
.stock-result-wrapper {
    max-width: 720px;
    margin: 0 auto;
    display: none;
}

.stock-result-wrapper.active { display: block; }

.stock-result-card {
    background: var(--navy-light);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
}

/* Header row: symbol + name + live price */
.stock-result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.stock-result-identity h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.4rem;
    color: var(--text-primary);
    margin: 0;
}

.stock-result-identity h3 .result-symbol {
    color: var(--green);
    font-family: 'JetBrains Mono', monospace;
    margin-right: 8px;
}

.stock-result-identity .result-sector {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.stock-live-price {
    text-align: right;
}

.stock-live-price .live-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stock-live-price .live-change {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 2px;
}

.stock-live-price .live-change.up { color: var(--green); }
.stock-live-price .live-change.down { color: var(--red); }

/* Risk meter */
.risk-meter-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.risk-meter {
    flex: 1;
    min-width: 200px;
}

.risk-meter-label {
    font-family: 'Sora', sans-serif;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.risk-meter-bar {
    height: 10px;
    background: rgba(255,255,255,0.06);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.risk-meter-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.6s ease;
}

.risk-meter-fill.low { width: 30%; background: var(--green); }
.risk-meter-fill.medium { width: 60%; background: #FFA500; }
.risk-meter-fill.high { width: 90%; background: var(--red); }

.risk-level-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 4px;
}

.risk-level-text.low { color: var(--green); }
.risk-level-text.medium { color: #FFA500; }
.risk-level-text.high { color: var(--red); }

/* Rating badge */
.rating-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.rating-badge.strong-buy { background: rgba(0,255,135,0.15); color: var(--green); border: 1px solid rgba(0,255,135,0.3); }
.rating-badge.buy { background: rgba(0,255,135,0.1); color: #66ffb2; border: 1px solid rgba(0,255,135,0.2); }
.rating-badge.hold { background: rgba(255,165,0,0.12); color: #FFA500; border: 1px solid rgba(255,165,0,0.25); }
.rating-badge.sell { background: rgba(255,77,77,0.1); color: #ff7b7b; border: 1px solid rgba(255,77,77,0.2); }
.rating-badge.strong-sell { background: rgba(255,77,77,0.15); color: var(--red); border: 1px solid rgba(255,77,77,0.3); }

/* Metrics grid */
.stock-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 1.5rem;
}

.stock-metric {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 12px 14px;
    text-align: center;
}

.stock-metric .metric-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.stock-metric .metric-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Returns row */
.stock-returns-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.return-box {
    flex: 1;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}

.return-box .return-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.return-box .return-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
}

.return-box .return-value.positive { color: var(--green); }
.return-box .return-value.negative { color: var(--red); }
.return-box .return-value.neutral { color: var(--text-secondary); }

/* Sparkline chart */
.stock-chart-container {
    margin-top: 1rem;
}

.stock-chart-container .chart-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.stock-chart-container svg {
    width: 100%;
    height: 100px;
    display: block;
}

/* Loading spinner */
.stock-loading {
    display: none;
    text-align: center;
    padding: 3rem 0;
}

.stock-loading.active { display: block; }

.stock-loading .spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.stock-loading p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Disclaimer inside result */
.stock-disclaimer {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.7rem;
    color: var(--text-muted, #4a5568);
    line-height: 1.5;
}

/* Responsive — Stock Search */
@media (max-width: 768px) {
    .stock-metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .stock-result-header { flex-direction: column; }
    .stock-live-price { text-align: left; }
    .stock-returns-row { flex-direction: column; }
}

@media (max-width: 480px) {
    .stock-search-section { padding: 2rem 0 1.5rem; }
    .stock-result-card { padding: 1.2rem; }
    .stock-metrics-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .risk-meter-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* ============================================
   Article Listen Button — Text-to-Speech
   ============================================ */
.article-listen-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(0,255,135,0.08);
    border: 1px solid rgba(0,255,135,0.2);
    border-radius: 20px;
    color: var(--green);
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    margin-left: 8px;
    vertical-align: middle;
    white-space: nowrap;
}

.article-listen-btn:hover {
    background: rgba(0,255,135,0.15);
    border-color: rgba(0,255,135,0.35);
}

.article-listen-btn.playing {
    background: rgba(0,255,135,0.15);
    border-color: var(--green);
}

.article-listen-btn.paused {
    background: rgba(255,165,0,0.1);
    border-color: rgba(255,165,0,0.3);
    color: #FFA500;
}

.article-listen-btn .listen-icon {
    font-size: 0.9rem;
    line-height: 1;
}

.article-listen-stop {
    display: none;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(255,77,77,0.1);
    border: 1px solid rgba(255,77,77,0.25);
    border-radius: 50%;
    color: var(--red);
    font-size: 0.75rem;
    cursor: pointer;
    margin-left: 4px;
    vertical-align: middle;
    transition: background 0.2s;
}

.article-listen-stop:hover {
    background: rgba(255,77,77,0.2);
}

.article-listen-stop.active {
    display: inline-flex;
}
