/* ============================================
   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: 6px;
}

.logo-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 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;
}

/* ---- Nav Search Button ---- */
.nav-search-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    border-radius: 8px;
}
.nav-search-btn:hover {
    color: var(--green);
}
.mobile-search-link {
    color: var(--green) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(45,55,72,0.5);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mobile-search-link::before {
    content: '\1F50D';
}

/* ---- Search Overlay / Modal ---- */
.search-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.search-overlay.open {
    opacity: 1;
    pointer-events: all;
}
.search-modal {
    width: 100%;
    max-width: 620px;
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    overflow: hidden;
    transform: translateY(-10px);
    transition: transform 0.2s ease;
}
.search-overlay.open .search-modal {
    transform: translateY(0);
}
.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--slate);
}
.search-input-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}
.search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-family: inherit;
}
.search-input::placeholder {
    color: var(--text-muted);
}
.search-kbd {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid var(--slate);
    color: var(--text-muted);
    background: var(--navy);
    flex-shrink: 0;
}
.search-results {
    max-height: 420px;
    overflow-y: auto;
    padding: 8px;
}
.search-results::-webkit-scrollbar {
    width: 6px;
}
.search-results::-webkit-scrollbar-thumb {
    background: var(--slate);
    border-radius: 3px;
}
.search-empty {
    padding: 16px 12px;
}
.search-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.search-shortcut-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    width: 100%;
    margin-bottom: 4px;
}
.search-quick {
    font-size: 0.82rem;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--slate);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}
.search-quick:hover {
    border-color: var(--green);
    color: var(--green);
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
    cursor: pointer;
}
.search-result-item:hover,
.search-result-item.focused {
    background: rgba(0, 255, 135, 0.06);
}
.search-result-info {
    flex: 1;
    min-width: 0;
}
.search-result-title {
    display: block;
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result-title mark {
    background: rgba(0, 255, 135, 0.25);
    color: var(--green);
    border-radius: 2px;
    padding: 0 1px;
}
.search-result-desc {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.search-result-desc mark {
    background: rgba(0, 255, 135, 0.15);
    color: var(--text-secondary);
    border-radius: 2px;
    padding: 0 1px;
}
.search-result-type {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 12px;
    flex-shrink: 0;
    white-space: nowrap;
}
.search-type-article {
    background: rgba(99, 179, 237, 0.12);
    color: #63B3ED;
}
.search-type-tool {
    background: rgba(0, 255, 135, 0.12);
    color: var(--green);
}
.search-type-page {
    background: rgba(183, 148, 244, 0.12);
    color: #B794F4;
}
.search-no-results {
    padding: 32px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.92rem;
}
@media (max-width: 700px) {
    .search-overlay { padding-top: 5vh; }
    .search-modal { max-width: calc(100% - 24px); margin: 0 12px; }
    .search-results { max-height: 55vh; }
    .search-kbd { display: none; }
}

/* ============================================
   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 {
    color: #00BFFF;
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    padding: 0;
    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. SEO FAQ & Content Sections
   ============================================ */
.seo-faq { margin-bottom: 12px; border: 1px solid var(--slate); border-radius: var(--radius-sm); background: var(--navy); overflow: hidden; }
.seo-faq summary { padding: 16px 20px; font-weight: 600; font-size: 1rem; color: var(--text-primary); cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; transition: background 0.2s; }
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq summary::before { content: "+"; font-size: 1.2rem; font-weight: 700; color: var(--green); min-width: 20px; text-align: center; transition: transform 0.2s; }
.seo-faq[open] summary::before { content: "\2212"; }
.seo-faq summary:hover { background: rgba(0,255,135,0.04); }
.seo-faq p { padding: 0 20px 16px; color: var(--text-secondary); line-height: 1.7; font-size: 0.95rem; margin: 0; }
.seo-faq p a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.seo-faq p a:hover { color: #4ade80; }

/* ============================================
   16. 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;
}

/* Tools We Use Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tool-card {
    background: var(--navy-mid);
    border: 1px solid var(--slate);
    border-radius: var(--radius);
    padding: 28px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    transition: var(--transition);
}

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

.tool-card-icon {
    font-size: 2.5rem;
}

.tool-card-img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: #fff;
    padding: 12px;
}

.tool-card h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
}

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

/* ============================================
   Setup Page — Tier Layout & Cards
   ============================================ */
.setup-tier {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.setup-tier-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 16px;
    border-radius: 999px;
    flex-shrink: 0;
    white-space: nowrap;
}

.setup-tier-beginner {
    background: rgba(0, 255, 135, 0.15);
    color: var(--green);
    border: 1px solid rgba(0, 255, 135, 0.3);
}

.setup-tier-intermediate {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.setup-tier-advanced {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.setup-tier-header h2 {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.setup-tier-header p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

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

.setup-card {
    background: var(--navy-mid);
    border: 1px solid var(--slate);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

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

.setup-card-img-wrap {
    background: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.setup-card-img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.setup-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.setup-card-body h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin: 0;
}

.setup-card-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.setup-affiliate-note {
    background: var(--navy-mid);
    border: 1px solid var(--slate);
    border-radius: var(--radius);
    padding: 24px 28px;
}

.setup-affiliate-note p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.setup-affiliate-note strong {
    color: var(--text-primary);
}

/* Setup Teaser Strip (Homepage) */
.setup-teaser {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--navy-mid);
    border: 1px solid var(--slate);
    border-radius: var(--radius);
    padding: 28px 32px;
    gap: 24px;
}

.setup-teaser-content h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.setup-teaser-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.setup-teaser-products {
    display: flex;
    gap: 16px;
    align-items: center;
}

.setup-teaser-thumb {
    width: 64px;
    height: 64px;
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 6px;
    object-fit: contain;
}

.setup-teaser-link {
    font-size: 0.9rem;
    color: var(--green);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
}

.setup-teaser-link:hover {
    color: var(--green-dim);
}

/* Recommended Reading Card */
.recommended-reading {
    background: var(--green-glow);
    border: 1px solid rgba(0, 255, 135, 0.25);
    border-radius: var(--radius);
    padding: 28px;
    margin: 32px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.recommended-reading:hover {
    border-color: var(--green);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.recommended-reading-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.recommended-reading-content {
    flex: 1;
}

.recommended-reading-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--green);
    margin-bottom: 6px;
}

.recommended-reading-title {
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.recommended-reading-author {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

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

.recommended-reading-cta:hover {
    color: var(--green-dim);
    gap: 10px;
}

/* 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;
    }

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

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

    .setup-tier {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .setup-teaser {
        flex-direction: column;
        text-align: center;
    }

    .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;
}

/* ============================================
   Calculator Page
   ============================================ */

.calc-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    background: var(--navy-light);
    padding: 6px;
    border-radius: 50px;
    width: fit-content;
    border: 1px solid var(--slate);
}

.calc-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

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

.calc-tab:hover:not(.active) {
    color: var(--white);
    background: var(--slate);
}

.calc-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 28px;
}

.calc-inputs {
    padding: 28px 24px;
}

.calc-panel-title {
    font-size: 0.95rem;
    margin-bottom: 24px;
    color: var(--text-muted);
    font-weight: 500;
    font-style: italic;
}

.calc-field {
    margin-bottom: 20px;
}

.calc-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.calc-label-opt {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.65;
}

.calc-input-wrap {
    display: flex;
    align-items: center;
    background: var(--navy);
    border: 1px solid var(--slate);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color var(--transition);
}

.calc-input-wrap:focus-within {
    border-color: var(--green);
}

.calc-input-prefix,
.calc-input-suffix {
    padding: 0 12px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    background: var(--slate);
    height: 44px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    user-select: none;
}

.calc-input {
    flex: 1;
    background: transparent;
    color: var(--text-primary);
    padding: 10px 14px;
    font-size: 0.95rem;
    border: none;
    outline: none;
    height: 44px;
    width: 100%;
    min-width: 0;
}

.calc-input::-webkit-inner-spin-button,
.calc-input::-webkit-outer-spin-button {
    opacity: 0.4;
}

.calc-select {
    width: 100%;
    background: var(--navy);
    color: var(--text-primary);
    padding: 10px 14px;
    height: 44px;
    border: 1px solid var(--slate);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color var(--transition);
    appearance: auto;
}

.calc-select:focus {
    border-color: var(--green);
    outline: none;
}

.calc-month {
    width: 100%;
    background: var(--navy);
    color: var(--text-primary);
    padding: 10px 14px;
    height: 44px;
    border: 1px solid var(--slate);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color var(--transition);
}

.calc-month:focus {
    border-color: var(--green);
    outline: none;
}

.calc-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--slate);
    margin: 10px 0 6px;
    cursor: pointer;
    outline: none;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--green);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 135, 0.4);
    transition: box-shadow var(--transition);
}

.calc-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 16px rgba(0, 255, 135, 0.6);
}

.calc-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.calc-cta {
    width: 100%;
    padding: 13px;
    font-size: 0.95rem;
    margin-top: 4px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.02em;
}

.calc-stats-panel {
    display: flex;
    flex-direction: column;
}

.calc-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 220px;
    color: var(--text-muted);
    text-align: center;
    gap: 14px;
    background: var(--navy-light);
    border: 2px dashed var(--slate);
    border-radius: var(--radius);
    padding: 40px;
}

.calc-empty-icon {
    font-size: 2.8rem;
    opacity: 0.4;
}

.calc-empty-state p {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 240px;
}

.calc-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.calc-stat-card {
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-radius: var(--radius);
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color var(--transition);
}

.calc-stat-card:hover {
    border-color: var(--slate-light);
}

.calc-stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    line-height: 1.3;
}

.calc-stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1;
}

.calc-stat-value.green   { color: var(--green); }
.calc-stat-value.neutral { color: var(--text-primary); }
.calc-stat-value.yellow  { color: #f6e05e; }

.calc-chart-wrap {
    position: relative;
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-radius: var(--radius);
    padding: 24px 20px 16px;
    margin-bottom: 20px;
    height: 380px;
}

.calc-disclaimer {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(45, 55, 72, 0.25);
    border: 1px solid var(--slate);
    border-left: 3px solid #f6e05e;
    border-radius: var(--radius-sm);
    padding: 16px 18px;
}

.calc-disclaimer-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.calc-disclaimer p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.calc-disclaimer strong {
    color: var(--text-secondary);
}

/* ============================================
   Retirement Projection Calculator
   ============================================ */

.retire-headline {
    text-align: center;
    margin-bottom: 28px;
    padding: 28px 24px;
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-radius: var(--radius);
}

.retire-headline-age {
    font-family: 'Sora', sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--green);
    display: block;
    line-height: 1.1;
    margin: 8px 0;
}

.retire-headline-label {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.retire-headline-sub {
    font-size: 0.95rem;
    display: block;
    margin-top: 6px;
}

.retire-advanced-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

.retire-advanced-toggle:hover {
    color: var(--green);
}

.retire-advanced-toggle .chevron {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
    display: inline-block;
}

.retire-progress-wrap {
    margin-bottom: 28px;
    padding: 20px 24px;
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-radius: var(--radius);
}

.retire-progress-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 600;
}

.retire-progress-bar {
    height: 12px;
    background: var(--slate);
    border-radius: 6px;
    overflow: hidden;
}

.retire-progress-fill {
    height: 100%;
    background: var(--green);
    border-radius: 6px;
    transition: width 0.6s ease;
    box-shadow: 0 0 12px rgba(0, 255, 135, 0.3);
}

.retire-whatif {
    margin-bottom: 28px;
}

.retire-whatif h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 600;
}

.retire-whatif-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.retire-whatif-card {
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-radius: var(--radius);
    padding: 20px 18px;
    text-align: center;
    transition: border-color 0.2s ease;
}

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

.retire-whatif-scenario {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 10px;
}

.retire-whatif-age {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--green);
}

.retire-whatif-delta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 6px;
}

@media (max-width: 960px) {
    .retire-whatif-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .retire-headline-age {
        font-size: 2.4rem;
    }
    .retire-whatif-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Investor Personality Quiz ---- */
.quiz-hero .btn {
  font-size: 1.1rem;
  padding: 16px 40px;
  margin-top: 24px;
}
.quiz-section {
  min-height: 70vh;
  display: flex;
  align-items: flex-start;
  padding-top: 120px;
}
.quiz-section .container {
  max-width: 740px;
  margin: 0 auto;
  width: 100%;
}
.quiz-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}
.quiz-progress-bar {
  flex: 1;
  height: 8px;
  background: var(--slate);
  border-radius: 4px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 4px;
  transition: width 0.4s ease;
}
.quiz-progress-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 600;
}
.quiz-question-wrap {
  animation: quizFadeIn 0.35s ease;
}
@keyframes quizFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.quiz-question-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
}
.quiz-question-text {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quiz-option {
  background: var(--navy-light);
  border: 1px solid var(--slate);
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
  width: 100%;
}
.quiz-option:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 255, 135, 0.1);
}
.quiz-option.selected {
  border-color: var(--green);
  background: rgba(0, 255, 135, 0.08);
}
.quiz-nav {
  margin-top: 24px;
}
.quiz-back {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  cursor: pointer;
  padding: 8px 0;
  transition: color var(--transition);
  font-family: 'Inter', sans-serif;
}
.quiz-back:hover {
  color: var(--text-primary);
}
/* Quiz Results */
.quiz-results .container {
  max-width: 760px;
  margin: 0 auto;
}
.quiz-result-card {
  background: var(--navy-light);
  border: 1px solid var(--slate);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  animation: quizFadeIn 0.5s ease;
}
.quiz-result-icon {
  font-size: 4rem;
  margin-bottom: 12px;
}
.quiz-result-card h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.quiz-result-tagline {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 32px;
}
.quiz-result-body {
  text-align: left;
  max-width: 640px;
  margin: 0 auto;
}
.quiz-result-body h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 32px 0 12px;
}
.quiz-result-body h3:first-child {
  margin-top: 0;
}
.quiz-result-body p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
  margin: 0 0 12px;
}
.quiz-result-body a {
  color: var(--green);
  text-decoration: underline;
}
.quiz-share-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}
.quiz-share-section .btn {
  font-size: 0.9rem;
  padding: 12px 28px;
}
.quiz-copied-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: var(--navy);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 9999;
  animation: quizToastIn 0.3s ease, quizToastOut 0.3s ease 1.7s forwards;
}
@keyframes quizToastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes quizToastOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
@media (max-width: 600px) {
  .quiz-section { padding-top: 100px; }
  .quiz-result-card { padding: 32px 20px; }
  .quiz-result-card h2 { font-size: 1.8rem; }
  .quiz-option { padding: 16px 18px; font-size: 0.9rem; }
  .quiz-share-section { flex-direction: column; align-items: stretch; }
}

/* ---- FIRE Mode (Retirement Calculator) ---- */
.fire-savings-hero {
    text-align: center;
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-radius: var(--radius);
    padding: 28px 24px;
    margin-bottom: 28px;
}
.fire-savings-hero .fire-rate {
    display: block;
    font-family: 'Sora', sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--green);
    line-height: 1.1;
}
.fire-savings-hero .fire-rate-label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.fire-savings-hero .fire-time {
    display: block;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 6px;
}
.fire-badge {
    display: inline-block;
    font-size: 0.65rem;
    padding: 3px 9px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    vertical-align: middle;
    margin-left: 4px;
}
.fire-badge-lean {
    background: rgba(246,224,94,0.15);
    color: #f6e05e;
    border: 1px solid rgba(246,224,94,0.3);
}
.fire-badge-coast {
    background: rgba(99,179,237,0.15);
    color: #63b3ed;
    border: 1px solid rgba(99,179,237,0.3);
}
.fire-badge-fat {
    background: rgba(183,148,244,0.15);
    color: #b794f4;
    border: 1px solid rgba(183,148,244,0.3);
}
@media (max-width: 600px) {
    .fire-savings-hero .fire-rate {
        font-size: 2.4rem;
    }
}

/* ---- Dividend Tracker ---- */
.div-add-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.div-income-headline {
    text-align: center;
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-radius: var(--radius);
    padding: 28px 24px;
    margin-bottom: 28px;
}
.div-income-label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.div-income-amount {
    display: block;
    font-family: 'Sora', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--green);
    line-height: 1.1;
}
.div-income-monthly {
    display: block;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 6px;
}

.div-holdings-wrap {
    margin-bottom: 32px;
    overflow-x: auto;
}
.div-holdings-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 20px;
}
.div-holdings-table th.sortable::after {
    content: '\2195';
    position: absolute;
    right: 6px;
    opacity: 0.3;
    font-size: 0.75rem;
}
.div-holdings-table th.sort-asc::after {
    content: '\25B2';
    opacity: 0.8;
    color: var(--green);
}
.div-holdings-table th.sort-desc::after {
    content: '\25BC';
    opacity: 0.8;
    color: var(--green);
}

.div-badge {
    display: inline-block;
    font-size: 0.62rem;
    padding: 2px 7px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    vertical-align: middle;
    margin-left: 4px;
}
.div-badge-grower {
    background: rgba(72,187,120,0.15);
    color: var(--green);
    border: 1px solid rgba(72,187,120,0.3);
}

.yield-green { color: var(--green); font-weight: 600; }
.yield-yellow { color: #f6e05e; font-weight: 600; }
.yield-red { color: #FC8181; font-weight: 600; }

.div-edit-btn, .div-remove-btn {
    background: transparent;
    border: 1px solid var(--slate);
    color: var(--text-muted);
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: all 0.15s;
    margin: 0 2px;
}
.div-edit-btn:hover {
    border-color: var(--green);
    color: var(--green);
}
.div-remove-btn:hover {
    border-color: #FC8181;
    color: #FC8181;
}

.div-projection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
}

.div-drip-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-secondary);
}
.div-drip-toggle input { display: none; }
.div-drip-slider {
    width: 40px;
    height: 22px;
    background: var(--slate);
    border-radius: 11px;
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}
.div-drip-slider::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--white);
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
}
.div-drip-toggle input:checked + .div-drip-slider {
    background: var(--green);
}
.div-drip-toggle input:checked + .div-drip-slider::after {
    transform: translateX(18px);
}

.div-upcoming-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.div-upcoming-card {
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-radius: var(--radius);
    padding: 18px 16px;
}
.div-upcoming-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding: 4px 0;
    border-bottom: 1px solid rgba(45,55,72,0.3);
}
.div-upcoming-row:last-child { border-bottom: none; }

@media (max-width: 960px) {
    .div-projection-grid {
        grid-template-columns: 1fr;
    }
    .div-upcoming-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .div-income-amount {
        font-size: 2.2rem;
    }
    .div-upcoming-grid {
        grid-template-columns: 1fr;
    }
    .div-add-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .div-add-bar .calc-input-wrap {
        max-width: 100% !important;
    }
}

/* ---- Calculator Teaser (Homepage) ---- */
.calc-teaser {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.calc-teaser-content h2 {
    margin: 12px 0 16px;
}

.calc-teaser-content p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 1.05rem;
    line-height: 1.75;
}

.calc-teaser-preview {
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.calc-teaser-label {
    display: block;
    font-size: 0.78rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.calc-teaser-value {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--green);
    line-height: 1;
}

.calc-teaser-gain {
    display: block;
    font-size: 0.88rem;
    color: var(--green);
    margin-top: 6px;
    opacity: 0.8;
}

.calc-teaser-modes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.calc-teaser-pill {
    background: var(--slate);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
}

@media (max-width: 960px) {
    .calc-layout {
        grid-template-columns: 1fr;
    }
    .calc-teaser {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .calc-tabs {
        width: 100%;
        border-radius: var(--radius);
        justify-content: center;
    }
    .calc-tab {
        flex: 1;
        text-align: center;
        padding: 10px;
        font-size: 0.8rem;
    }
    .calc-stat-value {
        font-size: 1.1rem;
    }
    .calc-chart-wrap {
        height: 280px;
    }
    .calc-teaser-value {
        font-size: 1.9rem;
    }
}

/* ============================================
   Newsletter — Redesigned Hero + Archive
   ============================================ */

/* Two-column hero layout */
.newsletter-section { text-align: left; }

.newsletter-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 64px;
    align-items: center;
}

.nl-hero-left h1 {
    font-size: 2.6rem;
    line-height: 1.15;
    margin: 16px 0 20px;
}

.nl-hero-left > p {
    text-align: left;
    margin: 0 0 28px;
    max-width: none;
}

.newsletter-perks {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.check { color: var(--green); font-weight: 700; flex-shrink: 0; }

/* Form card */
.nl-form-card {
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
}

.nl-form-card h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.3rem;
    color: var(--white);
    margin: 0 0 4px;
}

.nl-form-tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0 0 24px !important;
}

/* Full-width submit button */
.nl-submit-btn { width: 100%; justify-content: center; }
.nl-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Override form width inside card */
.nl-form-card .newsletter-form { max-width: 100%; margin: 0; }

/* Error */
.nl-error-msg {
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.3);
    border-radius: 10px;
    color: #ff6b6b;
    font-size: 0.875rem;
    padding: 12px 16px;
    margin-top: 12px;
    text-align: center;
}

/* Success / already-subscribed */
.nl-result-state { text-align: center; padding: 24px 0; }

.nl-result-icon { font-size: 2.4rem; line-height: 1; display: block; }

.nl-result-state h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.2rem;
    color: var(--green);
    margin: 10px 0 8px;
}

.nl-result-state p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.nl-already-state h3 { color: #64c8ff; }

.nl-no-spam {
    color: var(--text-muted);
    font-size: 0.78rem;
    text-align: center;
    margin: 16px 0 0 !important;
}

/* ---- Past Issues Archive ---- */
.nl-issues-section { padding: 80px 0; }

.nl-issues-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.nl-issue-card {
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color var(--transition), transform var(--transition);
}

.nl-issue-card:hover {
    border-color: rgba(0, 255, 135, 0.3);
    transform: translateY(-3px);
}

.nl-issue-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.nl-issue-num {
    background: rgba(0, 255, 135, 0.12);
    color: var(--green);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nl-issue-date { color: var(--text-muted); font-size: 0.8rem; }

.nl-issue-title {
    font-family: 'Sora', sans-serif;
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
}

.nl-issue-contents {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nl-issue-contents li {
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.nl-bullet { flex-shrink: 0; font-size: 0.9rem; }

.nl-issue-link {
    color: var(--green);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    transition: color var(--transition);
}

.nl-issue-link:hover { color: var(--green-dim); }

.nl-archive-cta {
    text-align: center;
    margin-top: 48px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.nl-archive-cta strong { color: var(--green); }

/* Responsive */
@media (max-width: 960px) {
    .newsletter-section { text-align: center; }

    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nl-hero-left > p { text-align: left; }

    .nl-form-card {
        max-width: 480px;
        margin: 0 auto;
    }

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

    .nl-issues-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .nl-issues-grid { grid-template-columns: 1fr; }
    .nl-hero-left h1 { font-size: 1.75rem; }
    .nl-form-card { padding: 28px 20px; }
}


/* ============================================
   Research Page Styles
   ============================================ */

.research-hero {
  padding-top: 120px;
  padding-bottom: 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
}
.research-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--white) 0%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.research-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Search Box */
.research-search-wrap {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}
.research-search-box {
  display: flex;
  gap: 12px;
  background: var(--navy-light);
  border: 1px solid var(--slate);
  border-radius: var(--radius);
  padding: 6px 6px 6px 20px;
  transition: border-color var(--transition);
}
.research-search-box:focus-within {
  border-color: var(--green);
}
.research-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-family: 'JetBrains Mono', monospace;
  outline: none;
}
.research-search-box input::placeholder {
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
}
.research-search-box .btn {
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  background: var(--green);
  color: var(--navy);
  transition: background var(--transition);
}
.research-search-box .btn:hover {
  background: var(--green-dim);
}

/* Loading & Empty States */
.research-loading {
  text-align: center;
  color: var(--text-muted);
  padding: 48px 20px;
  font-size: 1rem;
}
.research-empty {
  text-align: center;
  color: var(--text-secondary);
  padding: 40px 20px;
  font-size: 0.95rem;
  background: rgba(45, 55, 72, 0.2);
  border-radius: var(--radius);
  border: 1px solid rgba(45, 55, 72, 0.4);
}

/* Health Check Card */
.health-card {
  background: var(--navy-light);
  border: 1px solid var(--slate);
  border-radius: var(--radius-lg);
  padding: 32px;
  animation: fadeInUp 0.4s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.health-error {
  text-align: center;
  padding: 40px 20px;
}
.health-error h3 {
  color: var(--red);
  margin-bottom: 8px;
}
.health-error p {
  color: var(--text-secondary);
}
.health-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.health-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.health-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
}
.health-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.health-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 8px;
}
.health-badge.stock { background: rgba(0, 255, 135, 0.15); color: var(--green); }
.health-badge.etf { background: rgba(100, 149, 237, 0.2); color: #6495ED; }
.health-badge.fund { background: rgba(255, 215, 0, 0.15); color: #FFD700; }

.health-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}
.health-price {
  text-align: right;
}
.health-price-value {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}
.health-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(45, 55, 72, 0.5);
}

/* Score Bar */
.health-score-section {
  margin-bottom: 28px;
  padding: 20px;
  background: rgba(0, 255, 135, 0.04);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 255, 135, 0.1);
}
.health-score-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.health-score-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.1rem;
}
.health-score-bar {
  height: 10px;
  background: rgba(45, 55, 72, 0.5);
  border-radius: 5px;
  overflow: hidden;
}
.health-score-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.8s ease;
}
.health-score-note {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 10px;
  font-style: italic;
}

/* Metrics Grid */
.health-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.health-metrics.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.health-metric {
  background: rgba(45, 55, 72, 0.25);
  border: 1px solid rgba(45, 55, 72, 0.4);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}
.health-metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.health-metric-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Revenue Chart */
.health-subsection {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(45, 55, 72, 0.5);
}
.health-subsection h3 {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-weight: 600;
}
.revenue-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 160px;
  padding: 10px 0;
}
.revenue-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}
.revenue-bar {
  width: 100%;
  max-width: 60px;
  background: linear-gradient(180deg, var(--green) 0%, rgba(0, 255, 135, 0.3) 100%);
  border-radius: 4px 4px 0 0;
  transition: height 0.5s ease;
  min-height: 4px;
}
.revenue-bar-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
}
.revenue-bar-value {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
}

/* Earnings Calendar */
.earnings-explainer {
  margin-bottom: 28px;
}
.earnings-explainer-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--slate);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-family: 'Sora', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
  text-align: left;
}
.earnings-explainer-toggle:hover {
  border-color: var(--green);
  color: var(--text-primary);
}
.earnings-explainer-toggle .chevron {
  transition: transform 0.25s ease;
  font-size: 0.7rem;
}
.earnings-explainer-toggle.open .chevron {
  transform: rotate(90deg);
}
.earnings-explainer-body {
  display: none;
  background: var(--navy-light);
  border: 1px solid var(--slate);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 20px 22px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
}
.earnings-explainer-body.open {
  display: block;
}
.earnings-explainer-body p {
  margin: 0 0 12px;
}
.earnings-explainer-body p:last-child {
  margin-bottom: 0;
}
.earnings-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.earnings-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.earnings-day {
  margin-bottom: 24px;
}
.earnings-day-header {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 255, 135, 0.15);
}
.earnings-day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.earnings-item {
  background: var(--navy-light);
  border: 1px solid var(--slate);
  border-left: 3px solid var(--slate);
  border-radius: var(--radius-sm);
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition);
}
.earnings-item:hover {
  border-color: var(--green);
  border-left-color: var(--green);
  transform: translateY(-2px);
}
.earnings-item.earnings-beat {
  border-left-color: var(--green);
}
.earnings-item.earnings-miss {
  border-left-color: #FC8181;
}
.earnings-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.earnings-symbol {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}
.earnings-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.earnings-badge-beat {
  background: rgba(0, 255, 135, 0.12);
  color: var(--green);
}
.earnings-badge-miss {
  background: rgba(252, 129, 129, 0.12);
  color: #FC8181;
}
.earnings-badge-pending {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}
.earnings-data-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 0.78rem;
  margin-bottom: 5px;
  font-family: 'JetBrains Mono', monospace;
}
.earnings-data-row .label {
  color: var(--text-muted);
  font-family: 'Sora', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.earnings-data-row .value {
  color: var(--text-secondary);
  text-align: right;
}
.earnings-data-row .value.beat {
  color: var(--green);
  font-weight: 600;
}
.earnings-data-row .value.miss {
  color: #FC8181;
  font-weight: 600;
}
.earnings-surprise {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: 4px;
}
.earnings-surprise.beat {
  color: var(--green);
}
.earnings-surprise.miss {
  color: #FC8181;
}
.earnings-interpretation {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  line-height: 1.5;
  font-style: italic;
}
.earnings-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.earnings-est, .earnings-actual {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
}
.earnings-actual {
  color: var(--green);
  font-weight: 600;
}

/* Events Timeline */
.events-day {
  margin-bottom: 28px;
}
.events-day-header {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 255, 135, 0.15);
}
.event-item {
  background: var(--navy-light);
  border: 1px solid var(--slate);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 10px;
  border-left: 3px solid var(--slate);
  transition: border-color var(--transition);
}
.event-item.impact-high { border-left-color: var(--red); }
.event-item.impact-medium { border-left-color: #FFD700; }
.event-item.impact-low { border-left-color: var(--slate); }
.event-item:hover { border-color: rgba(255, 255, 255, 0.15); }

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.event-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}
.event-impact {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 4px;
}
.event-impact.impact-high { background: rgba(255, 77, 77, 0.15); color: var(--red); }
.event-impact.impact-medium { background: rgba(255, 215, 0, 0.15); color: #FFD700; }
.event-impact.impact-low { background: rgba(45, 55, 72, 0.4); color: var(--text-muted); }

.event-country {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.event-data {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 8px;
}
.event-data strong {
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
}
.event-actual strong {
  color: var(--green);
}
.event-explanation {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
  line-height: 1.5;
  padding-top: 8px;
  border-top: 1px solid rgba(45, 55, 72, 0.3);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 36px;
}
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--green);
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.section-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Section backgrounds */
.section-darker {
  background: var(--navy-mid, #162038);
}

/* Responsive */
@media (max-width: 768px) {
  .research-hero h1 { font-size: 2rem; }
  .health-header { flex-direction: column; }
  .health-price { text-align: left; }
  .health-price-value { font-size: 1.4rem; }
  .health-metrics { grid-template-columns: repeat(2, 1fr); }
  .health-metrics.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .earnings-day-grid { grid-template-columns: repeat(2, 1fr); }
  .earnings-legend { gap: 12px; }
  .event-data { flex-direction: column; gap: 6px; }
}
@media (max-width: 480px) {
  .health-card { padding: 20px; }
  .health-metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
  .earnings-day-grid { grid-template-columns: 1fr; }
  .earnings-legend { flex-direction: column; gap: 8px; }
  .revenue-chart { height: 120px; }
}

/* --- Market News Cards --- */
.news-item {
  display: flex;
  gap: 16px;
  padding: 18px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  margin-bottom: 12px;
  border-left: 3px solid var(--green, #00FF87);
  transition: transform 0.2s, background 0.2s;
}
.news-item:hover {
  background: rgba(255,255,255,0.06);
  transform: translateX(4px);
}
.news-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.news-content {
  flex: 1;
  min-width: 0;
}
.news-title {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
  line-height: 1.4;
}
a.news-title:hover {
  color: var(--green, #00FF87);
}
.news-snippet {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin: 0 0 8px 0;
  line-height: 1.5;
}
.news-tickers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.news-ticker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0,255,135,0.1);
  color: var(--green, #00FF87);
  cursor: pointer;
  transition: background 0.2s;
}
.news-ticker:hover {
  background: rgba(0,255,135,0.25);
}
@media (max-width: 480px) {
  .news-thumb { width: 60px; height: 60px; }
  .news-item { padding: 12px; gap: 10px; }
}

/* --- Read More / Show Less button --- */
.news-read-more {
  background: none;
  border: none;
  color: var(--green, #00FF87);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  margin-top: 4px;
  transition: opacity 0.2s;
}
.news-read-more:hover {
  opacity: 0.75;
  text-decoration: underline;
}

/* --- Ticker Notice (below ticker tape) --- */
.ticker-notice {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  background: var(--navy-light);
  border-bottom: 1px solid var(--slate);
}
.ticker-notice .data-notice {
  position: static;
  transform: none;
  background: none;
  border: none;
  color: #00BFFF;
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  padding: 0;
  white-space: nowrap;
}
.ticker-notice .last-updated-time {
  color: #00BFFF;
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
}

/* ============================================
   Stock Comparison Tool
   ============================================ */

.compare-inputs {
    padding: 32px;
}

.compare-ticker-row {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    justify-content: center;
}

.compare-ticker-field {
    flex: 0 1 220px;
}

.compare-ticker-field .calc-input {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-align: center;
}

.compare-vs {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-bottom: 10px;
}

.compare-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.compare-period-btns {
    display: flex;
    gap: 6px;
    background: rgba(45, 55, 72, 0.4);
    border-radius: var(--radius);
    padding: 4px;
}

.compare-period {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.compare-period:hover {
    color: var(--white);
    background: rgba(45, 55, 72, 0.6);
}

.compare-period.active {
    background: var(--green);
    color: var(--navy);
}

.compare-stats-table {
    margin-top: 32px;
    overflow-x: auto;
}

.compare-stats-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border: 1px solid var(--slate);
    border-radius: var(--radius);
    overflow: hidden;
}

.compare-stats-table thead th {
    background: rgba(45, 55, 72, 0.5);
    padding: 14px 20px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--slate);
}

.compare-stats-table thead th:not(:first-child) {
    text-align: center;
    color: var(--white);
    font-size: 0.95rem;
}

.compare-stats-table tbody td {
    padding: 12px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(45, 55, 72, 0.3);
}

.compare-stats-table tbody td:first-child {
    font-weight: 600;
    color: var(--white);
}

.compare-stats-table tbody td:not(:first-child) {
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.compare-stats-table tbody tr:hover {
    background: rgba(45, 55, 72, 0.2);
}

.compare-summary {
    margin-top: 32px;
    padding: 24px 28px;
    background: var(--card-bg);
    border: 1px solid var(--slate);
    border-radius: var(--radius);
    border-left: 4px solid var(--green);
}

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

/* Comparison responsive */
@media (max-width: 768px) {
    .compare-inputs {
        padding: 20px;
    }
    .compare-ticker-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .compare-ticker-field {
        flex: 1;
    }
    .compare-vs {
        text-align: center;
        padding-bottom: 0;
    }
    .compare-controls {
        flex-direction: column;
        gap: 16px;
    }
    .compare-period-btns {
        width: 100%;
        justify-content: center;
    }
    .compare-stats-table thead th,
    .compare-stats-table tbody td {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    .compare-summary {
        padding: 18px 20px;
    }
}

/* ============================================
   Auth — Login / Register
   ============================================ */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    background: var(--navy-light);
    border-radius: var(--radius);
    padding: 4px;
    border: 1px solid var(--slate);
}
.auth-tab {
    flex: 1;
    padding: 12px 0;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}
.auth-tab.active {
    background: var(--green);
    color: var(--navy);
}
.auth-field {
    margin-bottom: 18px;
}
.auth-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.auth-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.auth-input:focus {
    outline: none;
    border-color: var(--green);
}
.auth-input::placeholder {
    color: var(--text-muted);
}
.auth-input-wrap {
    position: relative;
}
.auth-input-wrap .auth-input {
    padding-right: 48px;
}
.auth-toggle-pw {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.2s;
}
.auth-toggle-pw:hover {
    color: var(--text-primary);
}
.auth-error {
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid var(--red);
    border-radius: var(--radius);
    color: var(--red);
    padding: 10px 14px;
    font-size: 0.88rem;
    margin-bottom: 14px;
}
.auth-submit {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 6px;
}
.auth-footer-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 24px;
}
.auth-footer-text a {
    color: var(--green);
    text-decoration: none;
}

/* ============================================
   Dashboard
   ============================================ */
.dash-add-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    align-items: flex-start;
}
.dash-add-wrap {
    flex: 1;
    position: relative;
}
.dash-add-bar .auth-input {
    font-size: 1rem;
    padding: 14px 16px;
}
.dash-add-bar .btn {
    white-space: nowrap;
    padding: 14px 24px;
    font-size: 0.95rem;
}
.dash-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 100;
    max-height: 280px;
    overflow-y: auto;
}
.dash-suggestion {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: background 0.15s;
    display: flex;
    gap: 10px;
    align-items: center;
}
.dash-suggestion:hover {
    background: var(--slate);
    color: var(--text-primary);
}
.dash-suggestion strong {
    color: var(--green);
    font-family: 'JetBrains Mono', monospace;
    min-width: 60px;
}

/* Watchlist Grid */
.dash-watchlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.dash-stock-card {
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-radius: var(--radius);
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
}
.dash-stock-card:hover {
    border-color: var(--green);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.dash-remove {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
    line-height: 1;
}
.dash-remove:hover {
    color: var(--red);
    background: rgba(255,77,77,0.1);
}
.dash-stock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    padding-right: 28px;
}
.dash-stock-symbol {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--green);
}
.dash-stock-name {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-stock-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.dash-stock-change {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.dash-stock-change.up { color: var(--green); }
.dash-stock-change.down { color: var(--red); }
.dash-stock-range {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Sentiment badges */
.dash-sentiment {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.dash-sentiment-bullish {
    color: var(--green);
    background: rgba(0,255,135,0.1);
}
.dash-sentiment-bearish {
    color: var(--red);
    background: rgba(255,77,77,0.1);
}
.dash-sentiment-neutral {
    color: var(--text-muted);
    background: rgba(160,174,192,0.1);
}

/* Empty states */
.dash-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}
.dash-empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}
.dash-empty h3 {
    font-family: 'Sora', sans-serif;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.dash-empty p {
    max-width: 360px;
    margin: 0 auto;
    font-size: 0.92rem;
}
.dash-empty-sm {
    text-align: center;
    padding: 32px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Loading */
.dash-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}
.dash-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--slate);
    border-top-color: var(--green);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: dashSpin 0.8s linear infinite;
}
@keyframes dashSpin {
    to { transform: rotate(360deg); }
}

/* Section titles */
.dash-section-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 6px;
}
.dash-section-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* Earnings */
.dash-earnings-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dash-earnings-date {
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 8px;
    margin-bottom: 4px;
}
.dash-earnings-day-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}
.dash-earnings-item {
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-left: 3px solid var(--slate);
    border-radius: var(--radius);
    padding: 14px 16px;
}
.dash-earnings-beat { border-left-color: var(--green); }
.dash-earnings-miss { border-left-color: var(--red); }
.dash-earnings-pending { border-left-color: var(--text-muted); }
.dash-earnings-sym {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--green);
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.dash-earnings-badge {
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.dash-badge-beat { color: var(--green); }
.dash-badge-miss { color: var(--red); }
.dash-badge-pending { color: var(--text-muted); }
.dash-earnings-detail {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

/* News */
.dash-news-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.dash-news-item {
    display: flex;
    gap: 16px;
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-radius: var(--radius);
    padding: 16px;
    transition: border-color 0.2s;
}
.dash-news-item:hover {
    border-color: var(--green);
}
.dash-news-img {
    width: 120px;
    min-width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.dash-news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dash-news-body {
    flex: 1;
    min-width: 0;
}
.dash-news-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 0.95rem;
    line-height: 1.35;
}
.dash-news-snippet {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.4;
}
.dash-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.dash-news-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-right: 4px;
}
.dash-news-ticker {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--green);
    background: rgba(0,255,135,0.08);
    padding: 2px 7px;
    border-radius: 4px;
}

/* Quick actions */
.dash-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    max-width: 800px;
    margin: 0 auto 16px;
}
.dash-quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    background: var(--navy-light);
    border: 1px solid var(--slate);
    border-radius: var(--radius);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.dash-quick-card:hover {
    border-color: var(--green);
    transform: translateY(-2px);
}
.dash-quick-icon {
    font-size: 1.6rem;
}
.dash-timestamp {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 12px;
}

/* Nav auth link */
.nav-auth-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border: 1px solid var(--slate);
    border-radius: var(--radius);
    transition: all 0.2s;
    font-size: 0.88rem;
}
.nav-auth-link:hover {
    border-color: var(--green);
    color: var(--green);
}
.nav-dash-link {
    color: var(--navy);
    background: var(--green);
    text-decoration: none;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 0.88rem;
    transition: all 0.2s;
}
.nav-dash-link:hover {
    background: var(--green-dim);
}

/* Mobile responsive */
@media (max-width: 600px) {
    .dash-add-bar {
        flex-direction: column;
    }
    .dash-add-bar .btn {
        width: 100%;
    }
    .dash-watchlist-grid {
        grid-template-columns: 1fr;
    }
    .dash-news-item {
        flex-direction: column;
    }
    .dash-news-img {
        width: 100%;
        height: 140px;
    }
    .dash-quick-grid {
        grid-template-columns: 1fr 1fr;
    }
    .auth-tabs {
        margin-bottom: 20px;
    }
}

/* ============================================
   RiskBot — Chatbot Widget
   ============================================ */

/* Toggle Button */
#riskbot-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00FF87 0%, #00cc6a 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 255, 135, 0.35), 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#riskbot-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(0, 255, 135, 0.45), 0 4px 12px rgba(0, 0, 0, 0.3);
}

#riskbot-toggle svg {
    width: 28px;
    height: 28px;
    color: #0A1628;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

#riskbot-toggle .riskbot-icon-close {
    display: none;
}

#riskbot-toggle.riskbot-active .riskbot-icon-open {
    display: none;
}

#riskbot-toggle.riskbot-active .riskbot-icon-close {
    display: block;
}

/* Chat Panel */
#riskbot-panel {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 400px;
    max-height: 580px;
    background: #0d1b2e;
    border: 1px solid rgba(0, 255, 135, 0.15);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    z-index: 9999;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 255, 135, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#riskbot-panel.riskbot-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Header */
.riskbot-header {
    background: linear-gradient(135deg, #0f2240 0%, #162038 100%);
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 255, 135, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.riskbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.riskbot-avatar {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.riskbot-avatar svg {
    width: 100%;
    height: 100%;
}

.riskbot-header-name {
    font-weight: 700;
    font-size: 15px;
    color: #F8F9FA;
    font-family: 'Sora', sans-serif;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.riskbot-ai-badge {
    font-size: 9px;
    font-weight: 700;
    background: linear-gradient(135deg, #00FF87, #00cc6a);
    color: #0A1628;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
    font-family: 'JetBrains Mono', monospace;
}

.riskbot-header-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #a0aec0;
}

.riskbot-status-dot {
    width: 7px;
    height: 7px;
    background: #00FF87;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px rgba(0, 255, 135, 0.5);
    animation: riskbot-pulse 2s infinite;
}

@keyframes riskbot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Disclaimer */
.riskbot-disclaimer {
    padding: 8px 16px;
    background: rgba(255, 77, 77, 0.08);
    border-bottom: 1px solid rgba(255, 77, 77, 0.12);
    font-size: 10.5px;
    color: #e88a8a;
    line-height: 1.5;
    flex-shrink: 0;
}

/* Messages Area */
.riskbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 200px;
    max-height: 320px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 135, 0.2) transparent;
}

.riskbot-messages::-webkit-scrollbar {
    width: 5px;
}

.riskbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.riskbot-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 135, 0.2);
    border-radius: 10px;
}

/* Message Bubbles */
.riskbot-msg {
    display: flex;
    max-width: 85%;
    animation: riskbot-fadeIn 0.3s ease;
}

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

.riskbot-msg-bot {
    align-self: flex-start;
}

.riskbot-msg-user {
    align-self: flex-end;
}

.riskbot-msg-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.65;
    color: #F8F9FA;
    word-break: break-word;
}

.riskbot-msg-bot .riskbot-msg-bubble {
    background: #162038;
    border: 1px solid rgba(0, 255, 135, 0.08);
    border-top-left-radius: 4px;
}

.riskbot-msg-bot .riskbot-msg-bubble strong {
    color: #00FF87;
}

.riskbot-msg-user .riskbot-msg-bubble {
    background: linear-gradient(135deg, #00FF87, #00cc6a);
    color: #0A1628;
    border-top-right-radius: 4px;
    font-weight: 500;
}

/* Typing dots */
.riskbot-dots {
    display: inline-flex;
    gap: 4px;
    padding: 4px 0;
}

.riskbot-dots span {
    width: 7px;
    height: 7px;
    background: rgba(0, 255, 135, 0.5);
    border-radius: 50%;
    animation: riskbot-bounce 1.4s infinite;
}

.riskbot-dots span:nth-child(2) { animation-delay: 0.2s; }
.riskbot-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes riskbot-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* Suggestions */
.riskbot-suggestions {
    padding: 8px 16px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}

.riskbot-suggestion {
    background: rgba(0, 255, 135, 0.06);
    border: 1px solid rgba(0, 255, 135, 0.15);
    color: #00FF87;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.riskbot-suggestion:hover {
    background: rgba(0, 255, 135, 0.15);
    border-color: rgba(0, 255, 135, 0.3);
    transform: translateY(-1px);
}

/* Input Area */
.riskbot-input-area {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid rgba(0, 255, 135, 0.1);
    background: rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

#riskbotInput {
    flex: 1;
    background: #0f1f35;
    border: 1px solid rgba(0, 255, 135, 0.12);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13.5px;
    color: #F8F9FA;
    outline: none;
    transition: border-color 0.2s ease;
    font-family: 'Inter', sans-serif;
}

#riskbotInput::placeholder {
    color: #718096;
}

#riskbotInput:focus {
    border-color: rgba(0, 255, 135, 0.35);
}

#riskbotSend {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #00FF87, #00cc6a);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

#riskbotSend:hover {
    transform: scale(1.05);
}

#riskbotSend svg {
    width: 18px;
    height: 18px;
    color: #0A1628;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    #riskbot-panel {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 90px;
        max-height: calc(100vh - 120px);
        border-radius: 14px;
    }
    #riskbot-toggle {
        bottom: 16px;
        right: 16px;
        width: 54px;
        height: 54px;
    }
    .riskbot-messages {
        max-height: calc(100vh - 340px);
    }
}
