:root {
    --bg-root: #030b18;
    --bg-card: #101b31;
    --bg-card-hover: #182743;
    
    --text-primary: #f8fafc; /* Slate 50 */
    --text-secondary: #b8c8dd;
    --text-muted: #7f94b1;
    
    --border-subtle: #2a3b57;
    --border-active: #47648b;
    
    --accent-buy: #10b981; /* Emerald 500 */
    --accent-buy-dim: rgba(16, 185, 129, 0.1);
    --accent-sell: #ef4444; /* Red 500 */
    --accent-sell-dim: rgba(239, 68, 68, 0.1);
    --accent-hold: #f59e0b; /* Amber 500 */
    --accent-brand: #39c2ff;
    --focus-ring: rgba(57, 194, 255, 0.5);

    --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Sora', 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-root);
    background-image: radial-gradient(circle at 50% -20%, #1e293b 0%, #020617 80%);
    color: var(--text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    margin: 0;
    line-height: 1.6;
    min-height: 100vh;
}

body.index-page-bg {
    background-color: var(--bg-root);
    background-image:
        linear-gradient(180deg, rgba(2, 6, 23, 0.58) 0%, rgba(2, 6, 23, 0.72) 44%, rgba(2, 6, 23, 0.9) 100%),
        radial-gradient(circle at 50% -18%, rgba(30, 41, 59, 0.65) 0%, rgba(2, 6, 23, 0.95) 78%),
        url('/assets/img/background.png');
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-size: cover, cover, cover;
    background-position: center top, center top, center top;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 3000;
    background: var(--text-primary);
    color: var(--bg-root);
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; font-family: var(--font-display); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
header {
    border-bottom: 1px solid var(--border-subtle);
    background: linear-gradient(180deg, rgba(7, 13, 27, 0.95) 0%, rgba(7, 13, 27, 0.86) 100%);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1000;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-grow: 1;
    margin-left: 3rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-utils {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.nav-auth {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.nav-auth .nav-btn {
    margin-left: 0;
}
.header-stock-search {
    position: relative;
    width: min(320px, 36vw);
}
.header-stock-search input {
    width: 100%;
    min-height: 38px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-primary);
    padding: 0.5rem 0.7rem 0.5rem 2rem;
    font-size: 0.86rem;
    font-family: var(--font-sans);
    outline: none;
}
.header-stock-search input:focus {
    border-color: var(--border-active);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.05);
}
.header-stock-search input::placeholder {
    color: var(--text-muted);
}
.header-search-icon {
    color: var(--text-muted);
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.header-search-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-active);
    border-radius: 10px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    z-index: 120;
    display: none;
    overflow: hidden;
}

.market-status {
    display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--text-secondary);
    background: var(--bg-card); padding: 0.25rem 0.75rem; border-radius: 99px; border: 1px solid var(--border-subtle);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-buy);
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.15);
}

@media (max-width: 1024px) {
    .main-nav { margin-left: 1.5rem; }
    .nav-links { gap: 1rem; }
    .header-stock-search { width: min(250px, 34vw); }
}

@media (max-width: 900px) {
    html, body {
        overflow-x: hidden;
    }

    body.index-page-bg {
        background-position: center top, center top, 62% top;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu-toggle.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .mobile-menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(86%, 380px);
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        justify-content: flex-start;
        padding: 5rem 2rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        margin: 0;
        border-left: 1px solid var(--border-subtle);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }

    .nav-link {
        width: 100%;
        padding: 0.95rem 0;
        margin: 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border-subtle);
    }

    .nav-btn {
        width: 100%;
        margin: 1rem 0 0 0;
        text-align: center;
        padding: 0.75rem;
        justify-content: center;
    }

    .nav-utils {
        margin-top: 0.8rem;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .nav-auth {
        width: 100%;
        margin: auto 0 0 0;
        padding-top: 1rem;
        border-top: 1px solid var(--border-subtle);
    }

    .header-stock-search {
        width: 100%;
        margin-bottom: 0;
    }

    .nav-auth .nav-btn {
        width: 100%;
        margin: 0;
        justify-content: center;
    }

    .lang-switcher {
        margin: 0.2rem 0 0 0;
        font-size: 0.95rem;
    }

    .hide-mobile { display: none; }
    
    body.menu-open {
        overflow: hidden;
    }
}

.logo { font-size: 1.25rem; font-weight: 900; letter-spacing: -0.05em; display: flex; align-items: center; gap: 0.5rem; color: #fff; text-decoration: none; font-family: var(--font-display);}
.beta-tag {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    border: 1px solid var(--border-active);
    border-radius: 999px;
    padding: 0.15rem 0.4rem;
    color: var(--text-secondary);
}
.logo:focus-visible,
.nav-link:focus-visible,
.nav-btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-outline:focus-visible {
    outline: 2px solid var(--accent-brand);
    outline-offset: 2px;
}
.lang-switcher {
    display: flex;
    align-items: center;
    margin-left: 1rem;
    font-size: 0.8rem;
}
.lang-switcher .divider { color: var(--border-active); margin: 0 0.5rem; }
.lang-switcher a { color: var(--text-secondary); text-decoration: none; }
.lang-switcher a.active { color: var(--text-primary); font-weight: 700; }

.nav-btn {
    border: 1px solid #f8fafc;
    background: #f8fafc;
    color: #020617;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.84rem;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    margin-left: 1rem;
}
.nav-btn:hover {
    border-color: #e2e8f0;
    background: #e2e8f0;
    color: #020617;
    text-decoration: none;
}

.nav-link, .nav-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
}

/* Hero */
.hero { padding: 4.25rem 0.5rem 2.8rem; text-align: center; max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); background: linear-gradient(to bottom right, #fff, #94a3b8); -webkit-background-clip: text; color: transparent; margin-bottom: 0.9rem; line-height: 1.12; }
.subtitle { color: var(--text-secondary); font-size: clamp(1rem, 2.8vw, 1.2rem); margin: 0 auto 1.6rem; font-weight: 400; max-width: 60ch; }

.home-page .hero {
    background:
        linear-gradient(155deg, rgba(14, 24, 45, 0.95) 0%, rgba(6, 12, 26, 0.92) 58%),
        radial-gradient(circle at 0% 0%, rgba(57, 194, 255, 0.2) 0%, rgba(57, 194, 255, 0) 48%);
    border: 1px solid var(--border-active);
    border-radius: 20px;
    padding: 3rem 1.4rem 2.3rem;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
    position: relative;
    overflow: hidden;
}

.home-page .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.22;
    pointer-events: none;
}

.home-page .hero h1 {
    background: linear-gradient(130deg, #f8fafc 10%, #cfe7fb 52%, #67c5f5 100%);
    -webkit-background-clip: text;
}

.home-signature {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
}

.home-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--border-active);
    padding: 0.33rem 0.72rem;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: #d0def0;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.045);
}

.home-pill.home-pill-primary {
    color: #eaf6ff;
    border-color: rgba(57, 194, 255, 0.65);
    background: rgba(57, 194, 255, 0.24);
}

.home-signal-note {
    margin: -0.4rem auto 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 58ch;
}

@keyframes riseFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-page .hero { animation: riseFade 480ms ease-out both; }
.home-page .utility-point { animation: riseFade 600ms ease-out both; }
.home-page .home-workflow-item { animation: riseFade 700ms ease-out both; }

@media (prefers-reduced-motion: reduce) {
    .home-page .hero,
    .home-page .utility-point,
    .home-page .home-workflow-item {
        animation: none;
    }
}

@media (max-width: 768px) {
    .hero { padding: 2.6rem 0.2rem 2rem; }
    .subtitle { margin-bottom: 1.2rem; }
}

/* Search */
.search-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    display: flex; align-items: center;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    max-width: 560px; margin: 0 auto;
    position: relative;
    width: 100%;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-active);
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: none;
    overflow: hidden;
}

.suggestion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-subtle);
    text-decoration: none;
    color: inherit;
}

.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: var(--bg-card-hover); }

.s-info { display: flex; flex-direction: column; text-align: left; }
.s-ticker { font-weight: 700; font-size: 0.875rem; color: var(--text-primary); }
.s-name { font-size: 0.75rem; color: var(--text-muted); }

.s-score { font-weight: 800; font-size: 0.875rem; }
.s-score.buy { color: var(--accent-buy); }
.s-score.sell { color: var(--accent-sell); }
.s-score.hold { color: var(--accent-hold); }
.search-box:focus-within { border-color: var(--text-muted); box-shadow: 0 0 0 2px rgba(255,255,255,0.05); }
.search-icon { color: var(--text-muted); margin-right: 0.75rem; display: flex; }
.search-box input {
    background: transparent; border: none; outline: none; color: var(--text-primary);
    font-size: 1rem; width: 100%; font-family: var(--font-sans); min-height: 38px;
}
.search-box input::placeholder { color: var(--text-muted); }

.hero-quick-links {
    display: flex;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}

.hero-quick-links a {
    color: var(--text-secondary);
    text-decoration: none;
    border: 0;
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 0.86rem;
    font-weight: 600;
}

.hero-quick-links a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.teaser-shell {
    position: relative;
    margin-bottom: 1rem;
}

.teaser-shell.is-locked::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.65));
    pointer-events: none;
    z-index: 2;
}

.teaser-list {
    display: block;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(6, 14, 28, 0.72);
    margin-bottom: 0;
}

.teaser-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-primary);
    border: 0;
    border-bottom: 1px solid var(--border-subtle);
    background: transparent;
    border-radius: 0;
    padding: 0.78rem 0.92rem;
    transition: border-color 0.2s, background-color 0.2s;
}

.teaser-item:last-child {
    border-bottom: 0;
}

.teaser-item:hover {
    background: rgba(255, 255, 255, 0.035);
}

.teaser-item.teaser-item-locked {
    filter: blur(3px);
    opacity: 0.58;
    user-select: none;
    pointer-events: none;
}

.teaser-main {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: baseline;
}

.teaser-ticker {
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.teaser-rank {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 700;
}

.teaser-sub {
    margin-top: 0.45rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-secondary);
}

.teaser-name {
    font-size: 0.9rem;
}

.teaser-meta {
    margin-top: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.teaser-score {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 700;
}

.teaser-lock-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: min(540px, calc(100% - 1.2rem));
    text-align: center;
    background: rgba(2, 6, 23, 0.84);
    border: 1px solid var(--border-active);
    border-radius: 12px;
    padding: 1rem 1rem 1.1rem;
    backdrop-filter: blur(4px);
}

.teaser-lock-overlay h3 {
    font-size: 1.05rem;
    margin: 0 0 0.35rem;
}

.teaser-lock-overlay p {
    margin: 0 0 0.85rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* Grid */
.stock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    padding-bottom: 4rem;
}

@media (max-width: 480px) {
    .stock-grid {
        grid-template-columns: 1fr;
    }
}

/* Card */
.stock-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex; flex-direction: column; justify-content: space-between;
    transition: transform 0.2s, border-color 0.2s, background-color 0.2s;
    min-height: 180px;
}
.stock-card:hover { transform: translateY(-2px); border-color: var(--border-active); background-color: var(--bg-card-hover); }
.stock-card-link {
    color: inherit;
    text-decoration: none;
}

.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; }
.ticker { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); letter-spacing: 0.05em; background: rgba(255,255,255,0.03); padding: 4px 8px; border-radius: 4px; }
.rank { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); }

.card-body { margin-bottom: 1.5rem; text-align: center; }
.name { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.signal-badge {
    display: inline-block; font-size: 0.875rem; font-weight: 800; padding: 0.25rem 1rem; border-radius: 99px; letter-spacing: 0.05em;
}
.signal-badge.buy { color: var(--accent-buy); background: var(--accent-buy-dim); border: 1px solid rgba(16, 185, 129, 0.2); }
.signal-badge.sell { color: var(--accent-sell); background: var(--accent-sell-dim); border: 1px solid rgba(239, 68, 68, 0.2); }
.signal-badge.hold { color: var(--accent-hold); background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.2); }

.card-footer { display: flex; justify-content: space-between; border-top: 1px solid var(--border-subtle); padding-top: 1rem; }
.metric { display: flex; flex-direction: column; }
.metric .label { font-size: 0.65rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0.05em; margin-bottom: 2px; }
.metric .value { font-size: 1rem; font-weight: 600; color: var(--text-primary); font-feature-settings: "tnum"; }

/* Blur Overlay */
.blur-overlay {
    grid-column: 1 / -1;
    background: linear-gradient(to bottom, transparent, var(--bg-root));
    padding: 4rem 0;
    text-align: center;
    border: 1px dashed var(--border-active);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.02);
}
.cta-box { max-width: 400px; }
.cta-box h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.cta-box p { color: var(--text-secondary); margin-bottom: 1.5rem; }
.btn-primary {
    background: linear-gradient(135deg, #e7f2ff 0%, #c6dcfa 100%);
    border: 1px solid #d8e8ff;
    color: #06162d;
    text-decoration: none;
    padding: 0.75rem 2rem; border-radius: 8px; font-weight: 700; display: inline-block;
    transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.96; }

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .stock-grid { grid-template-columns: 1fr; }
}

/* Market Directory Table */
.directory-header { padding: 4rem 0 2rem; }
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 4rem;
}
.market-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.market-table th {
    text-align: left; padding: 1rem; border-bottom: 1px solid var(--border-active);
    color: var(--text-muted); font-size: 0.7rem; letter-spacing: 0.1em; font-weight: 700;
}
.market-table td { padding: 1rem; border-bottom: 1px solid var(--border-subtle); }
.market-table tr:hover { background: var(--bg-card-hover); }

.market-search {
    width: min(100%, 460px);
    margin: 0 0 1rem;
    padding: 0.7rem 0.9rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.market-search::placeholder {
    color: var(--text-muted);
}

.text-right { text-align: right; }
.font-mono { font-family: 'SF Mono', 'Courier New', monospace; font-feature-settings: "tnum"; }
.small-caps { font-variant: small-caps; letter-spacing: 0.05em; font-weight: 600; color: var(--text-secondary); }

.sector-square {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 8px;
    vertical-align: middle;
}

.badge-mini {
    padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em;
}
.badge-mini.buy { color: var(--accent-buy); background: var(--accent-buy-dim); }
.badge-mini.sell { color: var(--accent-sell); background: var(--accent-sell-dim); }
.badge-mini.hold { color: var(--accent-hold); background: rgba(245, 158, 11, 0.1); }

.buy { color: var(--accent-buy); }
.sell { color: var(--accent-sell); }
.hold { color: var(--accent-hold); }

.nav-link {
    text-decoration: none; color: var(--text-secondary); font-size: 0.875rem;
    font-weight: 700; margin-right: 0; transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }

.blur-row td {
    filter: none;
    padding: 2rem;
    position: relative;
    background: rgba(2, 6, 23, 0.55);
}
.locked-row td {
    filter: blur(4px);
    user-select: none;
    pointer-events: none;
}
.table-cta {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    filter: none; z-index: 10;
}
.table-cta a {
    background: var(--text-primary); color: var(--bg-root); padding: 0.5rem 1.5rem;
    border-radius: 6px; font-weight: 700; text-decoration: none;
}

/* Trust Stats */
.trust-stats {
    display: flex; justify-content: center; gap: 0.75rem; margin-bottom: 1.4rem; flex-wrap: wrap;
}
.t-stat {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
    border: 1px solid var(--border-subtle);
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
    padding: 0.45rem 0.7rem;
}
.t-stat span { display: block; font-size: 1.05rem; font-weight: 900; color: var(--text-primary); line-height: 1.2; }
.t-stat.t-stat-buy {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.12);
}
.t-stat.t-stat-buy span { color: var(--accent-buy); }
.t-stat.t-stat-hold {
    border-color: rgba(245, 158, 11, 0.45);
    background: rgba(245, 158, 11, 0.12);
}
.t-stat.t-stat-hold span { color: var(--accent-hold); }
.t-stat.t-stat-sell {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.12);
}
.t-stat.t-stat-sell span { color: var(--accent-sell); }

.stock-quote-line {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 0.45rem;
}
.quote-price {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-primary);
}
.quote-change {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
}
.quote-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.stock-insights-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}
.related-sector-section {
    margin-top: 2rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--border-subtle);
}
.stock-insight-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1rem;
}
.stock-insight-card h2 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
.insight-meta {
    margin: 0.2rem 0 0.8rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}
.insight-kv {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.82rem;
}
.insight-kv span { color: var(--text-secondary); }
.insight-kv strong { color: var(--text-primary); font-weight: 700; }

.score-matrix {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 0.5rem;
}
.score-head {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}
.score-label {
    align-self: center;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.82rem;
}
.score-cell {
    border: 1px solid var(--border-subtle);
    background: rgba(255,255,255,0.015);
    border-radius: 8px;
    text-align: center;
    font-weight: 800;
    padding: 0.45rem 0.35rem;
    font-size: 0.82rem;
}

.dividend-pill {
    border: 1px solid var(--border-active);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}
.dividend-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}
.dividend-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}
.metric-box {
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: rgba(255,255,255,0.015);
    padding: 0.5rem 0.45rem;
    text-align: center;
}
.metric-box span {
    display: block;
    color: var(--text-muted);
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
}
.metric-box strong {
    font-size: 0.95rem;
    font-weight: 800;
}
.btn-mini {
    padding: 0.35rem 0.75rem;
    font-size: 0.76rem;
    min-height: auto;
}
.dividend-history-panel {
    display: none;
    margin-top: 0.55rem;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,0.015);
}
.dividend-history-panel.open { display: block; }
.dividend-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.76rem;
}
.dividend-history-table th,
.dividend-history-table td {
    padding: 0.45rem 0.55rem;
    border-bottom: 1px solid var(--border-subtle);
}
.dividend-history-table tr:last-child td { border-bottom: 0; }
.dividend-history-table th {
    color: var(--text-muted);
    text-align: left;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.projection-grid {
    display: grid;
    gap: 0.55rem;
}
.projection-row {
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: rgba(255,255,255,0.015);
    padding: 0.55rem 0.65rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.25rem 0.7rem;
    align-items: center;
}
.projection-label {
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 700;
}
.projection-price {
    text-align: right;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-primary);
}
.projection-meta {
    grid-column: 1 / 2;
    color: var(--text-muted);
    font-size: 0.72rem;
}
.projection-range {
    grid-column: 2 / 3;
    text-align: right;
    color: var(--text-secondary);
    font-size: 0.72rem;
}

.utility-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 1.2rem auto 0;
    max-width: 920px;
}

.utility-point {
    background: linear-gradient(180deg, rgba(17, 29, 51, 0.78), rgba(12, 20, 37, 0.82));
    border: 1px solid var(--border-active);
    border-radius: 12px;
    padding: 0.95rem;
    text-align: left;
}

.utility-point h3 {
    font-size: 0.92rem;
    margin-bottom: 0.25rem;
}

.utility-point p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.legal-page {
    padding: 2.2rem 0 3rem;
}

.legal-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 1.25rem 1.3rem;
}

.legal-card h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 0.2rem;
}

.legal-meta {
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: 0.83rem;
}

.legal-card section {
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border-subtle);
}

.legal-card h2 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.legal-card p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
.main-footer {
    background: #020617;
    border-top: 1px solid var(--border-subtle);
    padding: 5rem 0 2rem;
    margin-top: 4rem;
    color: var(--text-secondary);
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem;
}
.f-col h4 { color: var(--text-primary); font-size: 1rem; margin-bottom: 1.5rem; }
.f-col p { font-size: 0.875rem; line-height: 1.6; }
.footer-links { margin-top: 0.8rem; }
.footer-links a {
    display: inline-block;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-active);
    font-size: 0.85rem;
    margin: 0 0 0.45rem;
}
.footer-links a:hover { border-color: var(--text-primary); }
.footer-links a:last-child { margin-bottom: 0; }

.contact-info { margin-top: 1rem; font-weight: 600; }
.contact-info a { color: var(--text-primary); text-decoration: none; border-bottom: 1px solid var(--border-active); }
.contact-info a:hover { border-color: var(--text-primary); }

.disclaimer-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    padding: 1.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 3rem;
}
.disclaimer-box strong { color: var(--text-secondary); }

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.small-print { font-size: 0.75rem; color: var(--text-muted); margin-top: 1rem; }

/* Global Modals */
.modal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.85); 
    z-index: 9999; 
    align-items: center; 
    justify-content: center; 
    backdrop-filter: blur(8px);
}
.modal-content { 
    background: var(--bg-card); 
    padding: 2.5rem; 
    border-radius: 20px; 
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--border-active); 
    max-height: 90vh; 
    overflow-y: auto;
    position: relative;
}

/* Hero Actions */
.hero-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
    min-width: 150px;
    text-align: center;
}
.btn-secondary {
    display: inline-block;
    background: #13223d;
    border: 1px solid var(--border-active);
    color: var(--text-primary);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}
.btn-secondary:hover { background: var(--bg-card-hover); }

/* Feature Promo */
.feature-promo {
    background: linear-gradient(110deg, rgba(13, 25, 46, 0.78), rgba(8, 14, 30, 0.78));
    border: 1px solid var(--border-active);
    border-radius: 24px;
    padding: 1.6rem;
    margin: 2rem 0 4rem;
}
.promo-content {
    display: flex; justify-content: space-between; align-items: center; gap: 2rem;
}
.promo-text h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.promo-text p { color: var(--text-secondary); margin: 0; }
.btn-outline {
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    padding: 0.75rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--text-primary); color: var(--bg-root); }

.home-workflow {
    margin: 0 0 1.35rem;
}

.home-workflow h2 {
    font-size: clamp(1.05rem, 2.5vw, 1.3rem);
    margin: 0 0 0.85rem;
}

.home-workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.home-workflow-item {
    border: 1px solid var(--border-active);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(17, 30, 55, 0.82), rgba(12, 20, 37, 0.58));
    padding: 0.9rem;
}

.home-workflow-item h3 {
    font-size: 0.92rem;
    margin: 0 0 0.3rem;
}

.home-workflow-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.83rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .promo-content { flex-direction: column; text-align: center; }
    .utility-points { grid-template-columns: 1fr; margin-top: 1rem; }
    .home-workflow-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .legal-page { padding: 1.35rem 0 2rem; }
    .legal-card { padding: 1rem; border-radius: 12px; }
    .legal-card h2 { font-size: 0.96rem; }
    .quote-price { font-size: 1.7rem; }
    .quote-change { font-size: 0.95rem; }
    .quote-meta { width: 100%; }
    .stock-insights-grid { grid-template-columns: 1fr; }
    .dividend-summary-grid { grid-template-columns: 1fr 1fr; }
    .dividend-metrics { grid-template-columns: 1fr 1fr 1fr; }
    .hero-actions {
        width: 100%;
    }
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .container { padding: 0 1rem; }
    .directory-header { padding: 1.8rem 0 1rem; }
    .directory-header .subtitle {
        margin-bottom: 0.8rem;
        font-size: 0.95rem;
        line-height: 1.5;
    }
    .market-search {
        width: 100%;
        margin-bottom: 0.75rem;
        min-height: 42px;
        font-size: 0.95rem;
    }
    .table-container {
        background: transparent;
        border: none;
        border-radius: 0;
        overflow: visible;
    }

    .market-table, .market-table tbody, .market-table tr {
        display: block;
        width: 100%;
    }

    .market-table thead {
        display: none;
    }

    .market-table tr {
        margin-bottom: 0.8rem;
        border: 1px solid var(--border-subtle);
        border-radius: 14px;
        background: var(--bg-card);
        overflow: hidden;
    }

    .market-table td {
        display: grid;
        grid-template-columns: minmax(80px, 96px) minmax(0, 1fr);
        align-items: start;
        gap: 0.25rem 0.75rem;
        width: auto;
        box-sizing: border-box;
        padding: 0.72rem 0.88rem;
        border-bottom: 1px solid var(--border-subtle);
        text-align: left !important;
        font-size: 0.92rem;
        line-height: 1.35;
    }

    .market-table td .cell-value {
        min-width: 0;
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        justify-content: flex-start;
    }

    .market-table td:last-child {
        border-bottom: 0;
    }

    .market-table td::before {
        content: attr(data-label);
        color: var(--text-muted);
        font-size: 0.68rem;
        letter-spacing: 0.05em;
        font-weight: 700;
        text-transform: uppercase;
        text-align: left;
        padding-top: 0.12rem;
    }

    .market-table td.text-right {
        text-align: right !important;
        font-variant-numeric: tabular-nums;
        font-size: 0.95rem;
        font-weight: 700;
    }

    .market-table td.text-right .cell-value {
        width: 100%;
        justify-content: flex-end;
    }

    .market-table td.ticker-cell {
        background: rgba(255,255,255,0.02);
    }

    .market-table td.ticker-cell strong {
        font-size: 1rem;
        letter-spacing: 0.01em;
        color: var(--text-primary);
    }

    .market-table td.name-cell {
        color: var(--text-secondary);
    }

    .market-table td.name-cell .name-value {
        align-items: flex-start;
    }

    .market-table td.name-cell .company-name {
        display: block;
        line-height: 1.35;
        word-break: break-word;
    }

    .market-table td.name-cell .sector-square {
        margin-top: 0.28rem;
        flex: 0 0 auto;
    }

    .market-table td[data-label="Signal"] .badge-mini {
        font-size: 0.74rem;
        letter-spacing: 0.04em;
        padding: 0.2rem 0.55rem;
    }

    .market-table td a {
        color: var(--text-primary);
        text-decoration: none;
    }

    .market-table td a:focus-visible {
        outline: 2px solid var(--accent-brand);
        outline-offset: 2px;
        border-radius: 4px;
    }

    .blur-row td {
        display: block;
        filter: none;
        padding: 1.2rem;
        text-align: center !important;
    }

    .blur-row td::before {
        display: none;
    }

    .table-cta {
        position: static;
        width: auto;
        height: auto;
    }
}

@media (max-width: 768px) {
    .home-page {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .home-page .hero {
        text-align: left;
        padding: 2.1rem 1rem 1.45rem;
        max-width: none;
        border-radius: 16px;
    }

    .home-page .hero h1 {
        font-size: clamp(1.95rem, 8.6vw, 2.45rem);
        line-height: 1.12;
        margin-bottom: 0.7rem;
    }

    .home-page .home-signature {
        justify-content: flex-start;
        margin-bottom: 0.65rem;
    }

    .home-page .home-pill {
        font-size: 0.68rem;
        padding: 0.3rem 0.62rem;
    }

    .home-page .subtitle {
        font-size: 1rem;
        line-height: 1.55;
        margin-bottom: 0.65rem;
        max-width: none;
    }

    .home-page .home-signal-note {
        font-size: 0.88rem;
        margin: 0 0 1rem;
        max-width: none;
    }

    .home-page .trust-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
        margin-bottom: 1.1rem;
        justify-content: stretch;
    }

    .home-page .trust-stats .t-stat:last-child {
        grid-column: 1 / -1;
    }

    .home-page .t-stat {
        font-size: 0.82rem;
        line-height: 1.3;
        padding: 0.55rem 0.65rem;
        border-radius: 12px;
    }

    .home-page .t-stat span {
        font-size: 1.02rem;
    }

    .home-page .search-box {
        margin: 0;
        padding: 0.65rem 0.8rem;
        border-radius: 12px;
    }

    .home-page .search-icon {
        margin-right: 0.65rem;
    }

    .home-page .search-box input {
        min-height: 40px;
        font-size: 1rem;
    }

    .home-page .suggestion-item {
        padding: 0.85rem 0.95rem;
    }

    .home-page .s-ticker {
        font-size: 0.9rem;
    }

    .home-page .s-name {
        font-size: 0.8rem;
    }

    .home-page .hero-quick-links {
        justify-content: flex-start;
        margin-top: 0.95rem;
        gap: 0.5rem;
    }

    .home-page .hero-quick-links a {
        display: inline;
        font-size: 0.82rem;
        padding: 0;
    }

    .home-page .hero-actions {
        margin-top: 1.05rem;
        gap: 0.55rem;
    }

    .home-page .hero-actions .btn-primary,
    .home-page .hero-actions .btn-secondary {
        min-height: 46px;
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
        font-weight: 700;
    }

    .home-page .utility-points {
        margin-top: 1.15rem;
        gap: 0.7rem;
    }

    .home-page .utility-point {
        padding: 1rem;
        border-radius: 12px;
    }

    .home-page .utility-point h3 {
        font-size: 0.96rem;
        line-height: 1.35;
        margin-bottom: 0.35rem;
    }

    .home-page .utility-point p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .home-page .feature-promo {
        margin: 1.5rem 0 2.2rem;
        padding: 1.15rem;
        border-radius: 18px;
    }

    .home-page .home-workflow {
        margin-bottom: 1rem;
    }

    .home-page .home-workflow h2 {
        font-size: 1.08rem;
        margin-bottom: 0.65rem;
    }

    .home-page .home-workflow-grid {
        gap: 0.6rem;
    }

    .home-page .home-workflow-item {
        padding: 0.85rem;
    }

    .home-page .home-workflow-item h3 {
        font-size: 0.9rem;
    }

    .home-page .home-workflow-item p {
        font-size: 0.87rem;
    }

    .home-page .promo-text h2 {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 0.4rem;
    }

    .home-page .promo-text p {
        font-size: 0.94rem;
        line-height: 1.5;
    }

    .home-page .feature-promo .btn-outline {
        width: 100%;
        max-width: 320px;
        min-height: 46px;
        text-align: center;
        padding: 0.8rem 1rem;
    }

    .home-page .teaser-list { margin-bottom: 0.9rem; }

    .home-page .teaser-item { padding: 0.82rem 0.84rem; }

    .home-page .teaser-ticker {
        font-size: 0.92rem;
    }

    .home-page .teaser-rank {
        font-size: 0.72rem;
    }

    .home-page .teaser-name {
        font-size: 0.88rem;
        line-height: 1.35;
    }

    .home-page .teaser-meta {
        margin-top: 0.55rem;
    }

    .home-page .teaser-score {
        font-size: 0.75rem;
    }

    .home-page .teaser-lock-overlay {
        width: calc(100% - 0.8rem);
        padding: 0.9rem;
    }

    .home-page .teaser-lock-overlay h3 {
        font-size: 0.98rem;
    }

    .home-page .teaser-lock-overlay p {
        font-size: 0.82rem;
        margin-bottom: 0.7rem;
    }

    .home-page .teaser-lock-overlay .btn-primary {
        min-height: 44px;
        padding: 0.75rem 1rem;
        width: 100%;
        max-width: 260px;
    }

    .home-page .stock-grid {
        gap: 0.9rem;
        padding-bottom: 2.2rem;
    }

    .home-page .stock-card {
        padding: 1.05rem;
        min-height: auto;
        border-radius: 12px;
    }

    .home-page .card-header {
        margin-bottom: 0.95rem;
        align-items: center;
    }

    .home-page .ticker,
    .home-page .rank {
        font-size: 0.78rem;
    }

    .home-page .card-body {
        margin-bottom: 1rem;
        text-align: left;
    }

    .home-page .name {
        font-size: 1.02rem;
        white-space: normal;
        line-height: 1.35;
        margin-bottom: 0.5rem;
    }

    .home-page .signal-badge {
        font-size: 0.82rem;
        padding: 0.32rem 0.85rem;
    }

    .home-page .card-footer {
        padding-top: 0.8rem;
    }

    .home-page .metric .label {
        font-size: 0.72rem;
    }

    .home-page .metric .value {
        font-size: 0.98rem;
    }

    .home-page .blur-overlay {
        padding: 1.7rem 0.75rem;
        border-radius: 12px;
    }

    .home-page .cta-box h3 {
        font-size: 1.2rem;
    }

    .home-page .cta-box p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .home-page .cta-box .btn-primary {
        width: 100%;
        max-width: 280px;
        min-height: 46px;
        padding: 0.8rem 1rem;
    }
}

/* Flatpickr Custom */
.flatpickr-calendar {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-active) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5) !important;
    color: var(--text-primary) !important;
}
.flatpickr-day { color: var(--text-primary) !important; }
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange {
    background: var(--text-primary) !important;
    color: var(--bg-root) !important;
    border-color: var(--text-primary) !important;
}
.flatpickr-day:hover {
    background: var(--bg-card-hover) !important;
}
.flatpickr-current-month, .flatpickr-weekday {
    color: var(--text-primary) !important;
}
.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month {
    fill: var(--text-secondary) !important;
}
.flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover {
    color: var(--text-muted) !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.mobile-cta-bar {
    display: none;
}

@media (max-width: 900px) {
    body.has-mobile-cta {
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }

    .mobile-cta-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
        padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
        background: rgba(2, 6, 23, 0.95);
        border-top: 1px solid var(--border-subtle);
        backdrop-filter: blur(8px);
    }

    .mobile-cta-primary,
    .mobile-cta-secondary {
        min-height: 44px;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 700;
    }

    .mobile-cta-primary {
        background: var(--text-primary);
        color: var(--bg-root);
    }

    .mobile-cta-secondary {
        border: 1px solid var(--border-active);
        color: var(--text-primary);
        background: rgba(255, 255, 255, 0.02);
    }
}

/* Mobile readability pass: improve contrast and touch ergonomics */
@media (max-width: 900px) {
    :root {
        --text-secondary: #cbd5e1;
        --text-muted: #9fb1c9;
        --border-subtle: #31435f;
        --border-active: #4a5f81;
    }

    body.index-page-bg {
        background-image:
            linear-gradient(180deg, rgba(2, 6, 23, 0.72) 0%, rgba(2, 6, 23, 0.84) 48%, rgba(2, 6, 23, 0.94) 100%),
            radial-gradient(circle at 50% -18%, rgba(30, 41, 59, 0.64) 0%, rgba(2, 6, 23, 0.96) 78%),
            url('/assets/img/background.png');
    }

    .main-nav {
        background: linear-gradient(180deg, #0b1222 0%, #111c33 100%);
    }

    .nav-link {
        color: var(--text-primary);
        font-weight: 700;
        min-height: 48px;
        padding: 1rem 0;
    }

    .nav-btn {
        min-height: 46px;
        font-size: 0.92rem;
    }

    .lang-switcher a,
    .hero-quick-links a {
        color: var(--text-primary);
    }

    .subtitle,
    .utility-point p,
    .promo-text p,
    .teaser-rank,
    .teaser-sub,
    .teaser-score,
    .metric .label,
    .s-name,
    .quote-meta,
    .insight-meta,
    .projection-meta,
    .projection-range,
    .legal-meta,
    .legal-card p,
    .f-col p,
    .disclaimer-box,
    .footer-bottom,
    .small-print {
        color: var(--text-secondary);
    }

    .search-box,
    .market-search,
    .header-stock-search input,
    .market-table tr,
    .stock-card,
    .utility-point,
    .feature-promo,
    .teaser-item,
    .table-container {
        border-color: var(--border-active);
    }

    .search-box input,
    .header-stock-search input,
    .market-search {
        font-size: 16px;
        min-height: 44px;
    }

    .btn-primary,
    .btn-secondary,
    .btn-outline,
    .mobile-cta-primary,
    .mobile-cta-secondary {
        min-height: 46px;
    }

    .btn-secondary {
        background: #0b1730;
        border-color: var(--border-active);
        color: var(--text-primary);
    }

    .market-table tr {
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(10, 17, 33, 0.95));
        box-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
    }

    .market-table td {
        font-size: 0.96rem;
        line-height: 1.45;
    }

    .market-table td::before {
        color: var(--text-secondary);
        font-size: 0.72rem;
    }

    .market-table td.name-cell {
        color: var(--text-primary);
    }

    .market-table td .company-name {
        color: var(--text-secondary);
    }
}

/* Small phone tuning (iPhone mini/SE widths and similar) */
@media (max-width: 430px) {
    .container {
        padding: 0 0.78rem;
    }

    .header-inner {
        min-height: 64px;
        padding: 0 0.78rem;
    }

    .logo {
        font-size: 1.06rem;
        gap: 0.35rem;
    }

    .beta-tag {
        font-size: 0.55rem;
        padding: 0.1rem 0.32rem;
    }

    .main-nav {
        width: min(92%, 360px);
        padding: 4.2rem 1.1rem 1.1rem;
    }

    .home-page .hero {
        padding: 1.55rem 0.8rem 1.05rem;
    }

    .home-page .hero h1 {
        font-size: clamp(1.75rem, 9.5vw, 2.05rem);
        margin-bottom: 0.58rem;
    }

    .home-page .home-signature {
        gap: 0.42rem;
    }

    .home-page .home-pill {
        font-size: 0.64rem;
        padding: 0.26rem 0.52rem;
    }

    .home-page .subtitle {
        font-size: 0.96rem;
        line-height: 1.45;
        margin-bottom: 0.55rem;
    }

    .home-page .home-signal-note {
        font-size: 0.82rem;
        margin: 0 0 0.82rem;
    }

    .home-page .trust-stats {
        grid-template-columns: 1fr;
        gap: 0.48rem;
    }

    .home-page .trust-stats .t-stat:last-child {
        grid-column: auto;
    }

    .home-page .search-box {
        padding: 0.58rem 0.7rem;
    }

    .home-page .search-box input,
    .header-stock-search input,
    .market-search {
        min-height: 42px;
        font-size: 16px;
    }

    .nav-btn,
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        min-height: 44px;
    }

    .home-page .teaser-list { border-radius: 10px; }

    .home-page .teaser-item,
    .home-page .stock-card {
        padding: 0.8rem;
    }

    .home-page .feature-promo {
        padding: 0.95rem;
        margin: 1.1rem 0 1.5rem;
    }

    .home-page .home-workflow-item {
        padding: 0.72rem;
    }

    .home-page .home-workflow-item h3 {
        font-size: 0.86rem;
    }

    .home-page .home-workflow-item p {
        font-size: 0.82rem;
    }

    .directory-header {
        padding: 1.25rem 0 0.85rem;
    }

    .market-table td {
        grid-template-columns: minmax(74px, 90px) minmax(0, 1fr);
        padding: 0.66rem 0.72rem;
        gap: 0.2rem 0.58rem;
        font-size: 0.91rem;
    }

    .market-table td::before {
        font-size: 0.64rem;
        letter-spacing: 0.045em;
    }

    .quote-price {
        font-size: 1.48rem;
    }

    .stock-insight-card {
        padding: 0.8rem;
    }

    .dividend-metrics,
    .dividend-summary-grid {
        gap: 0.4rem;
    }

    .footer-grid {
        gap: 1.35rem;
    }
}

@media (max-width: 380px) {
    .container {
        padding: 0 0.62rem;
    }

    .header-inner {
        padding: 0 0.62rem;
    }

    .home-page .hero h1 {
        font-size: clamp(1.62rem, 9.2vw, 1.9rem);
    }

    .home-page .subtitle {
        font-size: 0.93rem;
    }

    .home-page .hero-quick-links {
        gap: 0.4rem;
    }

    .home-page .hero-quick-links a {
        font-size: 0.78rem;
        padding: 0;
    }

    .market-table td {
        grid-template-columns: minmax(70px, 84px) minmax(0, 1fr);
        font-size: 0.89rem;
    }
}

/* Home V2 (professional landing redesign) */
.home-v2 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.home-v2-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 1.35rem;
    background: linear-gradient(145deg, rgba(10, 19, 35, 0.92) 0%, rgba(5, 11, 22, 0.95) 100%);
    border: 1px solid var(--border-active);
    border-radius: 22px;
    padding: 2rem;
    box-shadow: 0 26px 56px rgba(0, 0, 0, 0.3);
}

.home-v2-eyebrow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.home-v2-chip {
    border: 1px solid rgba(81, 159, 214, 0.6);
    background: rgba(49, 110, 156, 0.22);
    color: #d7ebff;
    border-radius: 999px;
    padding: 0.28rem 0.62rem;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    font-weight: 700;
    text-transform: uppercase;
}

.home-v2-copy h1 {
    font-size: clamp(2rem, 4.9vw, 3.2rem);
    line-height: 1.08;
    margin: 0 0 0.85rem;
    background: linear-gradient(150deg, #f8fcff 10%, #d3e7fb 50%, #8cc9ef 100%);
    -webkit-background-clip: text;
    color: transparent;
}

.home-v2-subtitle {
    margin: 0;
    color: var(--text-primary);
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.55;
    max-width: 62ch;
}

.home-v2-note {
    margin: 0.75rem 0 1.1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.home-v2-search {
    margin: 0;
    max-width: 100%;
}

.home-v2-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.9rem;
}

.home-v2-actions .btn-primary,
.home-v2-actions .btn-secondary {
    min-width: 180px;
    text-align: center;
}

.home-v2-links {
    margin-top: 0.8rem;
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.home-v2-links a {
    color: var(--text-secondary);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
}

.home-v2-links a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.home-v2-preview {
    background: linear-gradient(180deg, rgba(12, 23, 42, 0.85), rgba(10, 17, 31, 0.85));
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.home-v2-preview-head h2 {
    margin: 0;
    font-size: 1rem;
}

.home-v2-preview-head p {
    margin: 0.3rem 0 0.7rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.home-v2-preview-list {
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.home-v2-preview-row {
    display: block;
    text-decoration: none;
    color: var(--text-primary);
    padding: 0.72rem 0;
    border-bottom: 1px solid rgba(127, 148, 177, 0.2);
}

.home-v2-preview-row:last-child {
    border-bottom: 0;
}

.home-v2-preview-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.home-v2-row-main,
.home-v2-row-name,
.home-v2-row-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.home-v2-row-main {
    margin-bottom: 0.25rem;
}

.home-v2-row-ticker {
    font-size: 0.92rem;
    font-weight: 800;
}

.home-v2-row-rank {
    font-size: 0.73rem;
    color: var(--text-secondary);
    font-weight: 700;
}

.home-v2-row-name {
    justify-content: flex-start;
    color: var(--text-secondary);
    font-size: 0.84rem;
}

.home-v2-row-score {
    font-size: 0.74rem;
    color: var(--text-secondary);
    font-weight: 700;
}

.home-v2-preview-footer {
    margin-top: 0.8rem;
}

.home-v2-preview-footer .btn-secondary {
    width: 100%;
    text-align: center;
}

.home-v2-proof {
    margin: 1rem 0 0.8rem;
    padding: 0.6rem 0.2rem 0.9rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    border-bottom: 1px solid var(--border-subtle);
}

.home-v2-proof-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.home-v2-proof-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
}

.home-v2-proof-label {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.home-v2-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.3rem;
    margin-top: 1.15rem;
}

.home-v2-block h2 {
    font-size: 1.2rem;
    margin: 0 0 0.65rem;
}

.home-v2-block-list {
    display: grid;
    gap: 0.65rem;
}

.home-v2-list-item,
.home-v2-step {
    border-top: 1px solid var(--border-subtle);
    padding-top: 0.6rem;
}

.home-v2-list-item h3,
.home-v2-step h3 {
    margin: 0 0 0.25rem;
    font-size: 0.96rem;
}

.home-v2-list-item p,
.home-v2-step p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.5;
}

.home-v2-steps {
    display: grid;
    gap: 0.55rem;
}

.home-v2-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
}

.home-v2-step-index {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: rgba(57, 194, 255, 0.17);
    border: 1px solid rgba(57, 194, 255, 0.48);
    color: #dff2ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    margin-top: 0.05rem;
}

.home-v2-final {
    margin: 1.4rem 0 0.25rem;
    border: 1px solid var(--border-active);
    border-radius: 18px;
    padding: 1.35rem;
    background: linear-gradient(125deg, rgba(18, 30, 54, 0.9), rgba(10, 18, 34, 0.88));
    text-align: center;
}

.home-v2-final h2 {
    font-size: clamp(1.2rem, 3vw, 1.65rem);
    margin: 0 0 0.4rem;
}

.home-v2-final p {
    margin: 0 auto;
    color: var(--text-secondary);
    max-width: 64ch;
}

.home-v2-actions-final {
    justify-content: center;
    margin-top: 1rem;
}

@media (max-width: 980px) {
    .home-v2-hero {
        grid-template-columns: 1fr;
        padding: 1.2rem;
        border-radius: 16px;
    }

    .home-v2-copy h1 {
        font-size: clamp(1.85rem, 8.4vw, 2.6rem);
    }

    .home-v2-proof {
        grid-template-columns: 1fr 1fr;
    }

    .home-v2-proof-item:last-child {
        grid-column: 1 / -1;
    }

    .home-v2-sections {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .home-v2 {
        padding-top: 1.25rem;
    }

    .home-v2-subtitle,
    .home-v2-note,
    .home-v2-links a,
    .home-v2-list-item p,
    .home-v2-step p,
    .home-v2-final p {
        font-size: 0.92rem;
    }

    .home-v2-actions {
        flex-direction: column;
    }

    .home-v2-actions .btn-primary,
    .home-v2-actions .btn-secondary {
        width: 100%;
        min-width: 0;
    }

    .home-v2-proof {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .home-v2-proof-item:last-child {
        grid-column: auto;
    }
}
