/* ============================================
   Astrogo — Design System
   Primary: #0047FF | Black: #0a0a0f | White: #fff
   ============================================ */

:root {
    --clr-primary:       #022d44;
    --clr-primary-dark:  #000e16;
    --clr-primary-light: #006aa7;
    --clr-primary-glow:  rgba(0, 71, 255, .32);
    --clr-black:         #0a0a0f;
    --clr-dark:          #0d0d14;
    --clr-dark-2:        #111118;
    --clr-dark-3:        #1a1a28;
    --clr-white:         #ffffff;
    --clr-gray-light:    #f0f2f7;
    --clr-gray-100:      #e8eaef;
    --clr-gray-400:      #9a9aaa;
    --clr-gray-600:      #5a5a6a;
    --radius-sm:         .5rem;
    --radius-md:         .875rem;
    --radius-lg:         1.5rem;
    --radius-xl:         2rem;
    --transition:        .3s ease;
    --shadow-blue:       0 8px 32px var(--clr-primary-glow);
}

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--clr-white);
    color: var(--clr-black);
    overflow-x: hidden;
    padding-top: 70px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

body.page-home { padding-top: 0; }

/* ── Bootstrap overrides ── */
.btn-primary {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
    font-weight: 600;
    transition: all var(--transition);
}
.btn-primary:hover,
.btn-primary:focus {
    background: var(--clr-primary-dark);
    border-color: var(--clr-primary-dark);
    box-shadow: var(--shadow-blue);
    transform: translateY(-1px);
}
.btn-outline-primary {
    color: var(--clr-primary);
    border-color: var(--clr-primary);
    font-weight: 600;
    transition: all var(--transition);
}
.btn-outline-primary:hover {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
    color: #fff;
    box-shadow: var(--shadow-blue);
    transform: translateY(-1px);
}
.border-primary { border-color: var(--clr-primary) !important; }
.bg-primary     { background: var(--clr-primary) !important; }
.text-primary   { color: var(--clr-primary) !important; }
.card           { border-radius: var(--radius-md); }

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: .9rem 0;
    background: rgba(10, 10, 15, .95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,.06);
    transition: padding .35s ease, background .35s ease, box-shadow .35s ease;
}
.navbar.nav-top {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
}
.navbar.nav-top.nav-scrolled {
    background: rgba(10, 10, 15, .92);
    border-bottom-color: rgba(255,255,255,.06);
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: .625rem;
    text-decoration: none;
}
.navbar-brand .brand-logo {
    height: 29px;
    width: auto;
    transition: opacity .2s;
}
.navbar-brand:hover .brand-logo { opacity: .85; }
.navbar .nav-link {
    color: rgba(255,255,255,.75);
    font-weight: 500;
    font-size: .9rem;
    transition: color var(--transition);
    padding: .4rem .75rem !important;
}
.navbar .nav-link:hover { color: #fff; }
.navbar .btn-primary {
    padding: .4rem 1.25rem;
    border-radius: 50rem;
    font-size: .875rem;
}
.navbar .btn-outline-light {
    padding: .4rem 1.25rem;
    border-radius: 50rem;
    border-color: rgba(255,255,255,.25);
    color: rgba(255,255,255,.8);
    font-size: .875rem;
    font-weight: 500;
    transition: all var(--transition);
}
.navbar .btn-outline-light:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.45);
    color: #fff;
}
.navbar-toggler {
    border-color: rgba(255,255,255,.25);
    padding: .35rem .6rem;
}
.navbar-toggler-icon { filter: invert(1); }

/* Mobile drawer: full-bleed panel that drops below the navbar, with
 * centered, generously padded touch targets. The negative-margin trick
 * lets the panel extend edge-to-edge while the brand + toggler row stays
 * aligned to the .container gutter. */
@media (max-width: 991.98px) {
    .navbar > .container {
        position: relative;
    }
    .navbar .navbar-collapse {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-top: .9rem;
        padding: 1.25rem 1rem 1.5rem;
        background: rgba(10, 10, 15, .98);
        border-top: 1px solid rgba(255,255,255,.06);
        box-shadow: 0 16px 32px rgba(0,0,0,.4);
    }
    .navbar .navbar-nav {
        align-items: stretch;
        gap: .15rem;
        width: 100%;
        margin: 0;
    }
    .navbar .navbar-nav .nav-item {
        width: 100%;
        text-align: center;
    }
    .navbar .navbar-nav .nav-link {
        font-size: 1rem;
        padding: .85rem 1rem !important;
        display: block;
    }
    .navbar .navbar-nav .nav-bell {
        display: inline-flex;
        justify-content: center;
        gap: .5rem;
    }
    .navbar .navbar-nav .btn,
    .navbar .navbar-nav .btn-primary,
    .navbar .navbar-nav .btn-outline-light {
        display: block;
        margin: .35rem auto;
        padding: .7rem 1.75rem;
        font-size: .95rem;
    }
    .navbar .dropdown-menu {
        width: 100%;
        margin-top: .25rem;
        text-align: center;
        border-radius: .5rem;
    }
    .navbar .dropdown-menu .dropdown-item {
        text-align: center;
        padding: .65rem 1rem;
    }
    .navbar .lang-switcher-nav {
        margin: .35rem 0 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .navbar .lang-switcher {
        gap: .35rem;
        padding-top: .35rem;
    }
    .navbar .lang-switcher__link {
        font-size: .95rem;
        padding: .5rem 1rem;
    }
}

/* ── Legacy version notice (landing) ── */
.legacy-notice {
    background:
        linear-gradient(180deg, rgba(0,71,255,.22), rgba(0,71,255,.10)),
        var(--clr-black);
    border-bottom: 1px solid rgba(0,71,255,.32);
    color: rgba(255,255,255,.92);
    padding: 5.25rem 0 .85rem;
    font-size: .9rem;
    position: relative;
    z-index: 1;
}
.legacy-notice__text {
    margin: 0;
    text-align: center;
    color: rgba(255,255,255,.88);
    line-height: 1.45;
}
.legacy-notice__icon {
    display: inline-block;
    margin-right: .35rem;
    opacity: .8;
}
.legacy-notice__link {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition);
}
.legacy-notice__link:hover,
.legacy-notice__link:focus {
    color: var(--clr-primary-light);
}
.legacy-notice + .hero { padding-top: 3rem; }

@media (max-width: 575.98px) {
    .legacy-notice { padding: 4.75rem .5rem .75rem; font-size: .82rem; }
    .legacy-notice__text { font-size: .82rem; }
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--clr-black);
    overflow: hidden;
    padding: 7rem 0 5rem;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 60% at 50% -10%, rgba(0,71,255,.22) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 85% 65%,  rgba(0,71,255,.10) 0%, transparent 55%),
        var(--clr-black);
    will-change: transform;
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,71,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,71,255,.025) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
}
.hero-stars { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.star {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    animation: twinkle var(--dur, 3s) ease-in-out infinite var(--delay, 0s);
}
@keyframes twinkle {
    0%, 100% { opacity: var(--lo, .15); transform: scale(1); }
    50%       { opacity: 1; transform: scale(1.3); }
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(0,71,255,.12);
    border: 1px solid rgba(0,71,255,.28);
    color: rgba(255,255,255,.88);
    border-radius: 50rem;
    padding: .35rem .9rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}
.badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--clr-primary);
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,71,255,.7); }
    50%       { box-shadow: 0 0 0 6px rgba(0,71,255,0); }
}
.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1.25rem;
    letter-spacing: -.03em;
}
.gradient-text {
    background: linear-gradient(135deg, #6699ff 0%, #0047ff 45%, #00c6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,.55);
    max-width: 500px;
    line-height: 1.75;
    margin-bottom: 2.5rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.btn-hero-primary {
    background: var(--clr-primary);
    color: #fff;
    border: none;
    border-radius: 50rem;
    padding: .875rem 2rem;
    font-size: .975rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: all .3s ease;
    box-shadow: 0 4px 20px rgba(0,71,255,.4);
}
.btn-hero-primary:hover {
    background: var(--clr-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,71,255,.55);
}
.btn-hero-outline {
    color: rgba(255,255,255,.75);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50rem;
    padding: .875rem 2rem;
    font-size: .975rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: all .3s ease;
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(8px);
}
.btn-hero-outline:hover {
    background: rgba(255,255,255,.09);
    border-color: rgba(255,255,255,.35);
    color: #fff;
    transform: translateY(-2px);
}

/* ── Cosmic visual ── */
.hero-visual { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; }
.cosmic-sphere {
    position: relative;
    width: 360px;
    height: 360px;
}
.sphere-ring {
    position: absolute;
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(0,71,255,.18);
    animation: spin var(--spd, 28s) linear infinite;
    animation-direction: var(--dir, normal);
}
.sphere-ring.r1 { width: 100%; height: 100%; --spd: 32s; }
.sphere-ring.r2 { width: 72%;  height: 72%;  --spd: 22s; --dir: reverse; border-color: rgba(0,71,255,.28); }
.sphere-ring.r3 { width: 46%;  height: 46%;  --spd: 14s; border-color: rgba(0,71,255,.45); }
@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}
.ring-dot {
    position: absolute;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--clr-primary);
    top: -4px; left: calc(50% - 4px);
    box-shadow: 0 0 10px var(--clr-primary), 0 0 24px rgba(0,71,255,.5);
}
.sphere-core {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(0,71,255,.12);
    border: 1px solid rgba(0,71,255,.3);
    display: flex; align-items: center; justify-content: center;
}
.core-glow {
    position: absolute;
    inset: -40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,71,255,.22) 0%, transparent 70%);
    animation: glow-pulse 3.5s ease-in-out infinite;
}
.core-symbol {
    font-size: 2.2rem;
    color: rgba(255,255,255,.9);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 10px rgba(0,71,255,.8));
}
@keyframes glow-pulse {
    0%, 100% { opacity: .5; transform: scale(1); }
    50%       { opacity: 1; transform: scale(1.12); }
}
.float-sym {
    position: absolute;
    color: rgba(255,255,255,.45);
    font-size: 1.25rem;
    animation: float-anim var(--fd, 6s) ease-in-out infinite var(--fdy, 0s);
    user-select: none;
}
.float-sym.s1 { top:  6%; left: 46%; --fd: 5.0s; --fdy:  0.0s; }
.float-sym.s2 { top: 32%; left: 88%; --fd: 7.0s; --fdy:  1.2s; }
.float-sym.s3 { top: 72%; left: 72%; --fd: 6.2s; --fdy:  2.3s; }
.float-sym.s4 { top: 68%; left:  8%; --fd: 8.0s; --fdy:  0.6s; }
.float-sym.s5 { top: 18%; left: 10%; --fd: 5.5s; --fdy:  1.8s; }
.float-sym.s6 { top: 86%; left: 30%; --fd: 7.5s; --fdy:  0.3s; }
@keyframes float-anim {
    0%, 100% { transform: translateY(0)    rotate(0deg);  opacity: .45; }
    50%       { transform: translateY(-14px) rotate(8deg); opacity: .8; }
}

/* ── Stats bar ── */
.stats-bar {
    background: var(--clr-dark-2);
    border-top:    1px solid rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.04);
    padding: 2.75rem 0;
}
.stat-col {
    text-align: center;
    padding: .25rem 1.5rem;
    border-right: 1px solid rgba(255,255,255,.07);
}
.stat-col:last-child { border-right: 0; }
.stat-value {
    font-size: 2.1rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: .4rem;
}
.stat-value em { color: var(--clr-primary); font-style: normal; }
.stat-label { font-size: .82rem; color: var(--clr-gray-400); font-weight: 500; }

/* ── Section helpers ── */
.sec-label {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--clr-primary);
    margin-bottom: .625rem;
}
.sec-title {
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.025em;
    margin-bottom: .75rem;
}
.sec-title.light { color: #fff; }
.sec-title.dark  { color: var(--clr-black); }
.sec-sub {
    font-size: 1rem;
    line-height: 1.72;
    max-width: 540px;
    margin: 0 auto;
}
.sec-sub.light { color: rgba(255,255,255,.5); }
.sec-sub.dark  { color: var(--clr-gray-600); }

/* ── Features ── */
.features-section {
    background: var(--clr-dark);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}
.features-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,71,255,.4), transparent);
}
.feat-card {
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    height: 100%;
    transition: all .4s ease;
    position: relative;
    overflow: hidden;
}
.feat-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--clr-primary), transparent);
    opacity: 0;
    transition: opacity .4s ease;
}
.feat-card:hover {
    background: rgba(0,71,255,.055);
    border-color: rgba(0,71,255,.22);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,71,255,.14);
}
.feat-card:hover::after { opacity: 1; }
.feat-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius-sm);
    background: rgba(0,71,255,.14);
    border: 1px solid rgba(0,71,255,.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    transition: all .4s ease;
    color:#fff;
}
.feat-card:hover .feat-icon {
    background: rgba(0,71,255,.24);
    box-shadow: 0 4px 20px rgba(0,71,255,.3);
}
.feat-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .45rem;
}
.feat-desc { font-size: .875rem; color: rgba(255,255,255,.45); line-height: 1.65; margin: 0; }

/* ── How it works ── */
.how-section {
    background: var(--clr-gray-light);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}
.how-section::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,71,255,.15), transparent);
}
.step-connector {
    position: absolute;
    top: 32px;
    left: calc(50% + 40px);
    right: calc(-50% + 40px);
    height: 2px;
    background: linear-gradient(90deg, rgba(0,71,255,.35), rgba(0,71,255,.05));
}
.step-wrap { position: relative; }
.step-num {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--clr-primary);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 20px rgba(0,71,255,.3);
    transition: all .3s ease;
}
.step-wrap:hover .step-num {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(0,71,255,.42);
}
.step-title { font-size: 1.05rem; font-weight: 700; color: var(--clr-black); margin-bottom: .4rem; }
.step-desc  { font-size: .875rem; color: var(--clr-gray-600); line-height: 1.65; }

/* ── Pricing ── */
.pricing-section { background: var(--clr-white); padding: 6rem 0; }
.pricing-card {
    background: #fff;
    border: 1px solid var(--clr-gray-100);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    height: 100%;
    transition: all .4s ease;
    position: relative;
}
.pricing-card:hover {
    box-shadow: 0 16px 56px rgba(0,0,0,.1);
    transform: translateY(-4px);
}
.pricing-card.popular {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 1px var(--clr-primary), var(--shadow-blue);
    transform: scale(1.04);
}
.pricing-card.popular:hover { transform: scale(1.04) translateY(-4px); }
.popular-badge {
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    background: var(--clr-primary);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .28rem 1rem;
    border-radius: 50rem;
    white-space: nowrap;
}
.pricing-tier {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--clr-gray-400);
    margin-bottom: .75rem;
}
.pricing-amt {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--clr-black);
    line-height: 1;
    margin-bottom: .25rem;
}
.pricing-amt .cur { font-size: 1.25rem; vertical-align: super; font-weight: 700; color: var(--clr-gray-600); }
.pricing-amt .per { font-size: .85rem; color: var(--clr-gray-400); font-weight: 500; }
.pricing-card.popular .pricing-amt { color: var(--clr-primary); }
.pricing-desc {
    font-size: .875rem;
    color: var(--clr-gray-600);
    line-height: 1.65;
    margin-bottom: 1.5rem;
    min-height: 2.75rem;
}
.pricing-feats { list-style: none; padding: 0; margin: 0 0 2rem; }
.pricing-feats li {
    font-size: .875rem;
    color: var(--clr-gray-600);
    padding: .375rem 0;
    display: flex;
    align-items: center;
    gap: .6rem;
    border-bottom: 1px solid var(--clr-gray-100);
}
.pricing-feats li:last-child { border-bottom: 0; }
.pricing-feats li::before {
    content: '✓';
    width: 18px; height: 18px;
    border-radius: 50%;
    background: rgba(0,71,255,.1);
    color: var(--clr-primary);
    font-size: .65rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.pricing-card.popular .pricing-feats li::before { background: rgba(0,71,255,.15); }

/* Billing toggle */
.billing-toggle {
    display: flex;
    gap: .25rem;
    padding: .35rem;
    background: var(--clr-gray-100);
    border-radius: 50rem;
    margin: 0 auto 3rem;
    width: max-content;
    max-width: 100%;
}
.billing-toggle-btn {
    background: transparent;
    border: 0;
    padding: .55rem 1.4rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--clr-gray-600);
    border-radius: 50rem;
    cursor: pointer;
    transition: all .2s ease;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    white-space: nowrap;
}
.billing-toggle-btn:hover { color: var(--clr-black); }
.billing-toggle-btn.active {
    background: #fff;
    color: var(--clr-black);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.billing-toggle-badge {
    background: var(--clr-primary);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    padding: .15rem .55rem;
    border-radius: 50rem;
    letter-spacing: .04em;
}

/* ── Testimonials ── */
.testimonials-section {
    background: var(--clr-gray-light);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}
.testimonial-carousel {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 3.5rem;
}
.testimonial-viewport {
    overflow: hidden;
    border-radius: var(--radius-sm, 14px);
}
.testimonial-track {
    position: relative;
    min-height: 240px;
}
.testimonial-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(24px);
    pointer-events: none;
    transition: opacity .4s ease, transform .4s ease;
}
.testimonial-slide.is-active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}
.testimonial-card {
    background: var(--clr-white);
    border-radius: var(--radius-sm, 14px);
    padding: 2.5rem 2rem 2rem;
    box-shadow: 0 12px 36px rgba(10, 10, 15, .06);
    text-align: center;
    position: relative;
}
.testimonial-quote {
    position: absolute;
    top: -.6rem;
    left: 1.5rem;
    font-size: 4rem;
    line-height: 1;
    color: var(--clr-primary);
    opacity: .18;
    font-family: serif;
    user-select: none;
}
.testimonial-text {
    font-size: 1.05rem;
    color: var(--clr-black);
    line-height: 1.7;
    margin: 0 0 1.5rem;
    font-style: italic;
}
.testimonial-meta {
    border-top: 1px solid var(--clr-gray-100);
    padding-top: 1rem;
}
.testimonial-name {
    font-weight: 700;
    color: var(--clr-black);
    font-size: .95rem;
}
.testimonial-role {
    color: var(--clr-gray-600);
    font-size: .825rem;
    margin-top: .15rem;
}
.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--clr-gray-100);
    background: var(--clr-white);
    color: var(--clr-black);
    font-size: 1.6rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
    box-shadow: 0 4px 16px rgba(10, 10, 15, .06);
    z-index: 2;
}
.testimonial-nav:hover {
    color: var(--clr-primary);
    border-color: var(--clr-primary);
    transform: translateY(-50%) scale(1.05);
}
.testimonial-nav.prev { left: 0; }
.testimonial-nav.next { right: 0; }
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: 1.75rem;
}
.testimonial-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: var(--clr-gray-100);
    cursor: pointer;
    transition: all .2s ease;
    padding: 0;
}
.testimonial-dot:hover { background: var(--clr-gray-400); }
.testimonial-dot.is-active {
    background: var(--clr-primary);
    transform: scale(1.25);
}
@media (max-width: 575.98px) {
    .testimonial-carousel { padding: 0 2.5rem; }
    .testimonial-nav { width: 36px; height: 36px; font-size: 1.3rem; }
    .testimonial-card { padding: 2rem 1.25rem 1.5rem; }
    .testimonial-text { font-size: 1rem; }
}

/* ── CTA section ── */
.cta-section {
    background: var(--clr-primary);
    padding: 5.5rem 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(255,255,255,.08) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 50%, rgba(0,0,0,.15) 0%,        transparent 55%);
    pointer-events: none;
}
.cta-deco {
    position: absolute;
    font-size: 14rem;
    opacity: .05;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}
.cta-deco.d1 { right: 4%; top: 50%; transform: translateY(-50%); }
.cta-deco.d2 { left: 4%;  top: 50%; transform: translateY(-50%); }
.cta-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: .875rem;
    letter-spacing: -.025em;
}
.cta-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,.72);
    margin-bottom: 2.5rem;
    max-width: 460px;
    margin-left: auto; margin-right: auto;
    line-height: 1.7;
}
.btn-cta {
    background: #fff;
    color: var(--clr-primary);
    border: none;
    border-radius: 50rem;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    transition: all .3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,.18);
}
.btn-cta:hover {
    color: var(--clr-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,.22);
}

/* ── Cross-promo band: astrogo → astrogai (lila accent) ── */
.cross-promo {
    padding: 3.5rem 0;
    background: linear-gradient(135deg, #1a1340 0%, #2d1b6b 100%);
    color: #fff;
}
.cross-promo__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.cross-promo__copy {
    flex: 1 1 360px;
    min-width: 0;
}
.cross-promo__tag {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #c084fc;
    margin-bottom: .5rem;
}
.cross-promo__title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    margin: 0 0 .5rem;
    line-height: 1.2;
}
.cross-promo__lede {
    color: rgba(255,255,255,.78);
    margin: 0;
    max-width: 38rem;
    line-height: 1.55;
}
.cross-promo__cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    text-decoration: none;
    padding: .9rem 1.8rem;
    border-radius: 50rem;
    font-weight: 700;
    box-shadow: 0 6px 24px rgba(124, 58, 237, .35);
    transition: transform .2s ease, box-shadow .2s ease;
}
.cross-promo__cta:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(124, 58, 237, .5);
}

/* ── Cross-promo: Tarotgo (mystical amber/burgundy) ── */
.cross-promo--tarot {
    background: linear-gradient(135deg, #2b0a1a 0%, #6b1d3a 55%, #8a3a1f 100%);
}
.cross-promo--tarot .cross-promo__tag {
    color: #ffb88c;
}
.cross-promo--tarot .cross-promo__cta {
    background: linear-gradient(135deg, #f59e0b, #b45309);
    box-shadow: 0 6px 24px rgba(245, 158, 11, .35);
}
.cross-promo--tarot .cross-promo__cta:hover {
    box-shadow: 0 10px 32px rgba(245, 158, 11, .5);
}

/* ── Footer ── */
.site-footer {
    background: var(--clr-black);
    color: rgba(255,255,255,.38);
    padding: 2.25rem 0;
    border-top: 1px solid rgba(255,255,255,.05);
    font-size: .85rem;
}
.site-footer a {
    color: rgba(255,255,255,.38);
    text-decoration: none;
    transition: color .2s;
}
.site-footer a:hover { color: rgba(255,255,255,.75); }

/* ── Scroll animations ── */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .65s ease, transform .65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: .1s; }
.fade-up.d2 { transition-delay: .2s; }
.fade-up.d3 { transition-delay: .3s; }
.fade-up.d4 { transition-delay: .4s; }

.fade-in {
    opacity: 0;
    transition: opacity .65s ease;
}
.fade-in.visible { opacity: 1; }
.fade-in.d1 { transition-delay: .1s; }
.fade-in.d2 { transition-delay: .2s; }
.fade-in.d3 { transition-delay: .3s; }

/* ── Footer nav ── */
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}
@media (max-width: 767px) {
    .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}
.footer-logo { height: 28px; opacity: .35; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a {
    color: rgba(255,255,255,.38);
    text-decoration: none;
    font-size: .85rem;
    transition: color .2s;
}
.footer-nav a:hover { color: rgba(255,255,255,.75); }
.footer-copy { font-size: .82rem; }

/* ── Static pages ── */
.static-page {
    min-height: 60vh;
    padding: 4rem 0 5rem;
}
.static-page h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -.025em;
    margin-bottom: 1.5rem;
}
.static-page .static-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--clr-gray-600);
}
.static-page .static-body h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--clr-black);
    margin-top: 2rem;
    margin-bottom: .75rem;
}

/* ── Auth pages ── */
.auth-page {
    min-height: calc(100vh - 70px);
    background: var(--clr-dark);
    display: flex;
    align-items: center;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}
.auth-page-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -5%, rgba(0,71,255,.18) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 80% 80%, rgba(0,71,255,.08) 0%, transparent 50%);
    pointer-events: none;
}
.auth-stars { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.auth-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-xl);
    padding: 2.75rem 2.25rem;
    width: 100%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    z-index: 1;
}
.auth-logo {
    display: block;
    margin: 0 auto 2rem;
    height: 38px;
}
.auth-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: .4rem;
    letter-spacing: -.025em;
}
.auth-subtitle {
    font-size: .875rem;
    color: rgba(255,255,255,.4);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.5;
}
.auth-card .form-label {
    color: rgba(255,255,255,.65);
    font-size: .85rem;
    font-weight: 500;
    margin-bottom: .375rem;
}
.auth-card .form-control {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: .7rem 1rem;
    font-size: .9rem;
    transition: background .25s, border-color .25s, box-shadow .25s;
}
.auth-card .form-control:focus {
    background: rgba(255,255,255,.09);
    border-color: rgba(0,71,255,.55);
    box-shadow: 0 0 0 3px rgba(0,71,255,.15);
    color: #fff;
    outline: none;
}
.auth-card .form-control::placeholder { color: rgba(255,255,255,.22); }
.auth-card .form-text { color: rgba(255,255,255,.3); font-size: .78rem; margin-top: .35rem; }
.auth-card .alert-danger {
    background: rgba(220,53,69,.1);
    border: 1px solid rgba(220,53,69,.22);
    color: #ff8585;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    padding: .7rem 1rem;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.5rem 0;
}
.auth-divider hr { flex: 1; margin: 0; border-color: rgba(255,255,255,.08); }
.auth-divider span { font-size: .78rem; color: rgba(255,255,255,.28); white-space: nowrap; }
.btn-google {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.75);
    font-size: .875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    padding: .7rem 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .625rem;
    text-decoration: none;
    transition: background .25s, border-color .25s, color .25s;
}
.btn-google:hover {
    background: rgba(255,255,255,.09);
    border-color: rgba(255,255,255,.2);
    color: #fff;
}
.auth-card .btn-primary {
    width: 100%;
    border-radius: var(--radius-sm);
    padding: .75rem;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .01em;
}
.auth-card .form-check {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    padding-left: 0;
    margin-bottom: .5rem;
    min-height: auto;
}
.auth-card .form-check-input {
    flex-shrink: 0;
    margin: .15rem 0 0;
    background-color: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.25);
    width: 1.05rem;
    height: 1.05rem;
}
.auth-card .form-check-input:checked {
    background-color: var(--clr-primary);
    border-color: var(--clr-primary);
}
.auth-card .form-check-input:focus {
    border-color: rgba(0,71,255,.55);
    box-shadow: 0 0 0 3px rgba(0,71,255,.15);
}
.auth-card .form-check-label {
    color: rgba(255,255,255,.7);
    font-size: .82rem;
    line-height: 1.45;
}
.auth-card .form-check-label a {
    color: var(--clr-primary-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.auth-card .form-check-label a:hover { color: #fff; }
.auth-footer-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: .85rem;
    color: rgba(255,255,255,.38);
}
.auth-footer-link a {
    color: var(--clr-primary-light);
    text-decoration: none;
    font-weight: 500;
    transition: color .2s;
}
.auth-footer-link a:hover { color: #fff; }

/* ── Message thread shared-chart attachment ── */
.msg-attachment {
    background: rgba(0,71,255,.04);
    border: 1px solid rgba(0,71,255,.12);
    border-radius: 10px;
    padding: .65rem .85rem;
    font-size: .85rem;
}
.msg-attachment__title { font-weight: 600; margin-bottom: .25rem; cursor: pointer; }
.msg-attachment__meta { color: #64748b; font-size: .8rem; }
.msg-attachment__content {
    margin-top: .65rem;
    padding-top: .65rem;
    border-top: 1px solid rgba(0,71,255,.12);
    font-size: .88rem;
    line-height: 1.55;
    max-height: 28rem;
    overflow-y: auto;
}
.msg-attach__heading { font-size: 1rem; font-weight: 700; margin: .75rem 0 .5rem; }
.msg-attach__subheading { font-size: .9rem; font-weight: 600; margin: .5rem 0 .25rem; }
.msg-attach__rule { margin: .75rem 0; opacity: 0.4; }
.msg-attach__body { line-height: 1.55; }

/* Attachment opens full-width in a popup (see #msgAttachmentModal).
   This control only renders on the dark astrogai message thread, so it uses
   light text on a translucent purple chip to stay readable on the dark bg. */
.msg-attachment-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(177,140,255,.12);
    border: 1px solid rgba(177,140,255,.4);
    border-radius: 10px;
    padding: .5rem .85rem;
    font-size: .85rem;
    font-weight: 600;
    color: #c084fc;
    text-align: left;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}
.msg-attachment-btn:hover {
    background: rgba(177,140,255,.22);
    border-color: rgba(177,140,255,.6);
    color: #f5f3ff;
}
/* Modal body sits on the dark astrogai modal surface — keep text light. */
.msg-attachment-full { line-height: 1.6; font-size: 1rem; color: #f5f3ff; }
.msg-attachment-full h1,
.msg-attachment-full h2,
.msg-attachment-full h3,
.msg-attachment-full strong,
.msg-attachment-full a { color: #f5f3ff; }
.msg-attachment-full h1,
.msg-attachment-full h2,
.msg-attachment-full h3 { margin: 1rem 0 .5rem; }

/* ── Bell dropdown ── */
/* The .navbar .dropdown-menu rule above paints this panel dark; pick text
   colors that read on rgba(255,255,255,.08)-ish backgrounds. */
.notifications-menu {
    min-width: 320px;
    max-width: 360px;
    padding: .25rem 0;
    max-height: 420px;
    overflow-y: auto;
}
.notifications-item {
    white-space: normal;
    padding: .65rem 1rem !important;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.notifications-item:last-child { border-bottom: none; }
.navbar .notifications-item--unread { background: rgba(0, 71, 255, .12); }
.navbar .notifications-item--unread .notifications-item__title {
    font-weight: 600;
    color: #fff !important;
}
.navbar .notifications-item__title {
    font-size: .9rem;
    color: rgba(255,255,255,.85) !important;
}
.navbar .notifications-item__body {
    font-size: .8rem;
    color: rgba(255,255,255,.55) !important;
    margin-top: .15rem;
    line-height: 1.4;
}
.navbar .notifications-item__meta {
    font-size: .72rem;
    color: rgba(255,255,255,.35) !important;
    margin-top: .25rem;
}

/* ── Setup wizard (/setup/*) ── */
.setup-banner {
    background: linear-gradient(135deg, rgba(124, 58, 237, .12), rgba(99, 102, 241, .12));
    border-bottom: 1px solid rgba(124, 58, 237, .25);
    color: #4c1d95;
    padding: .75rem 0;
    font-size: .9rem;
}
.setup-banner a {
    color: #6d28d9;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.setup-banner a:hover { color: #4c1d95; }

/* ── Language switcher (header + footer, both portals) ── */
/* All four surfaces (astrogo navbar/footer + astrogai header/footer) sit on
 * dark backgrounds, so the link colour is anchored to white instead of
 * inheriting the (dark) body text colour. */
.lang-switcher {
    display: inline-flex;
    gap: .15rem;
    align-items: center;
}
.lang-switcher__link {
    color: rgba(255, 255, 255, .65);
    text-decoration: none;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .03em;
    padding: .15rem .45rem;
    border-radius: .25rem;
    transition: color .15s ease, background .15s ease;
}
.lang-switcher__link:hover,
.lang-switcher__link:focus {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}
.lang-switcher__link--active {
    color: #fff;
    background: rgba(124, 58, 237, .35);
}
.lang-switcher-nav { margin-left: .5rem; }

/* ── Legacy astrogo7 import wizard (/legacy/*) ── */
.legacy-import-banner {
    background: linear-gradient(135deg, rgba(245, 158, 11, .15), rgba(217, 119, 6, .12));
    border-bottom: 1px solid rgba(217, 119, 6, .35);
    color: #78350f;
    padding: .65rem 0;
    font-size: .9rem;
}
.legacy-import-banner__text { margin-right: .75rem; }
.legacy-import-banner__cta {
    background: none;
    border: 0;
    color: #92400e;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    padding: 0;
    cursor: pointer;
}
.legacy-import-banner__cta:hover { color: #78350f; }

.setup-progress {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0 auto 2rem;
    max-width: 720px;
}
.setup-progress__step {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    color: #94a3b8;
}
.setup-progress__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #fff;
    font-weight: 600;
    font-size: .85rem;
}
.setup-progress__step--current { color: var(--clr-primary); font-weight: 600; }
.setup-progress__step--current .setup-progress__num {
    border-color: var(--clr-primary);
    background: var(--clr-primary);
    color: #fff;
}
.setup-progress__step--done { color: #16a34a; }
.setup-progress__step--done .setup-progress__num {
    border-color: #16a34a;
    background: #16a34a;
    color: #fff;
}

.setup-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-xl);
    padding: 2.25rem 2rem;
    max-width: 640px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
}
.setup-card__title {
    font-size: 1.55rem;
    font-weight: 800;
    margin-bottom: .6rem;
    letter-spacing: -.02em;
}
.setup-card__lede {
    color: #64748b;
    font-size: .95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.setup-card__bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
}
.setup-card__bullets li {
    padding: .65rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: .92rem;
    color: #475569;
}
.setup-card__bullets li:last-child { border-bottom: none; }
.setup-card__actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}
.setup-card__check {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    font-size: 2rem;
    line-height: 64px;
    margin: 0 auto 1rem;
}

/* ── Inner page shell ── */
/* No min-height here — the body already owns it for the sticky footer.
   An override on this class beats the body selector and shortens the page. */
.inner-bg {
    background:
        linear-gradient(135deg, #f6f8fc 0%, #f0f2f7 50%, #eef0f8 100%);
}
.inner-bg::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse 70% 50% at 80% 10%, rgba(0,71,255,.03) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 10% 90%, rgba(0,71,255,.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}
/* No z-index: avoids creating a stacking context that would trap
   Bootstrap modal z-index (1055) below the body-level backdrop (1050).
   Paint order alone keeps main above the fixed ::before pseudo. */
.inner-bg > main { position: relative; }

/* ── Dashboard header ── */
.dash-header {
    padding: 2.25rem 0 1.25rem;
    margin-bottom: .5rem;
}
.dash-greeting {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.025em;
    color: var(--clr-black);
    margin-bottom: .15rem;
}
.dash-subtitle {
    color: var(--clr-gray-400);
    font-size: .9rem;
    font-weight: 500;
}
.dash-stats {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.dash-stat {
    display: flex;
    align-items: baseline;
    gap: .35rem;
}
.dash-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--clr-primary);
    line-height: 1;
}
.dash-stat-label {
    font-size: .8rem;
    color: var(--clr-gray-400);
    font-weight: 500;
}

/* ── Empty state ── */
.empty-state {
    padding: 5rem 1rem;
    text-align: center;
}
.empty-state-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(0,71,255,.08);
    border: 1px solid rgba(0,71,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.75rem;
    font-size: 2.2rem;
    color: var(--clr-primary);
    font-family: serif;
}
.empty-state-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--clr-black);
    margin-bottom: .5rem;
}
.empty-state-desc {
    color: var(--clr-gray-400);
    font-size: .95rem;
    max-width: 400px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* ── Search bar ── */
.search-bar .form-control {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    border: 1px solid var(--clr-gray-100);
    background: #fff;
    padding: .6rem 1rem;
    font-size: .9rem;
    transition: border-color .2s, box-shadow .2s;
}
.search-bar .form-control:focus {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(0,71,255,.08);
}
.search-bar .btn {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    border: 1px solid var(--clr-gray-100);
    border-left: 0;
    background: #fff;
    color: var(--clr-gray-400);
    transition: color .2s, background .2s;
}
.search-bar .btn:hover {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
    color: #fff;
}

/* ── Chart list card ── */
.chart-list-card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,.04);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    overflow: hidden;
}
.chart-list-card::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-primary-light), rgba(0,198,255,.6));
    opacity: 0;
    transition: opacity .3s ease;
}
.chart-list-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, .08), 0 2px 8px rgba(0,71,255,.06);
    border-color: rgba(0,71,255,.1);
}
.chart-list-card:hover::before { opacity: 1; }
.chart-list-card .card-body { padding: 1.35rem 1.5rem; }
.chart-list-card .chart-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--clr-black);
    text-decoration: none;
    transition: color .2s;
}
.chart-list-card .chart-name:hover { color: var(--clr-primary); }
.chart-list-card .chart-meta {
    font-size: .82rem;
    color: var(--clr-gray-400);
    line-height: 1.55;
}
.chart-symbols {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    font-family: serif;
    line-height: 1;
    padding: .6rem .75rem;
    background: var(--clr-gray-light);
    border-radius: var(--radius-sm);
}
.chart-symbol-group {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
}
.chart-symbol-icon {
    font-size: 1.4rem;
    color: var(--clr-gray-600);
}
.chart-symbol-sign {
    font-size: 1.6rem;
    color: var(--clr-primary);
    font-weight: 600;
}
.chart-symbol-label {
    font-family: 'Inter', sans-serif;
    font-size: .75rem;
    font-weight: 600;
    color: var(--clr-gray-600);
    letter-spacing: .04em;
}
.chart-actions .btn {
    white-space: nowrap;
    font-size: .8rem;
    font-weight: 600;
}

/* ── Inner page cards ── */
.inner-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.04);
    border-radius: var(--radius-md);
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.02);
    transition: box-shadow .25s ease;
}
.inner-card:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.04);
}
.inner-card .card-header {
    background: transparent;
    border-bottom: 1px solid var(--clr-gray-100);
    font-weight: 600;
    padding: 1rem 1.5rem;
}

/* ── Page headings ── */
.page-heading {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.025em;
    color: var(--clr-black);
}

/* ── Dropdown menu (logged-in) ── */
.navbar .dropdown-menu {
    background: var(--clr-dark-2);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-sm);
    padding: .5rem;
    margin-top: .5rem;
    box-shadow: 0 16px 48px rgba(0,0,0,.3);
    backdrop-filter: blur(20px);
}
.navbar .dropdown-item {
    color: rgba(255,255,255,.7);
    font-size: .85rem;
    font-weight: 500;
    border-radius: .375rem;
    padding: .45rem .75rem;
    transition: background .15s, color .15s;
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: rgba(255,255,255,.08);
    color: #fff;
}
.navbar .dropdown-divider {
    border-color: rgba(255,255,255,.08);
    margin: .35rem 0;
}

/* ── Form switches ── */
.form-check-input:checked {
    background-color: var(--clr-primary);
    border-color: var(--clr-primary);
}
.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(0,71,255,.15);
    border-color: var(--clr-primary);
}
.form-select:focus,
.form-control:focus {
    border-color: rgba(0,71,255,.4);
    box-shadow: 0 0 0 3px rgba(0,71,255,.08);
}

/* ── Badge polish ── */
.badge { font-weight: 600; letter-spacing: .02em; }

/* ── Chart show tabs ── */
.chart-tabs .nav-link {
    color: var(--clr-gray-600);
    font-weight: 600;
    border: none;
    border-bottom: 2px solid transparent;
    padding: .85rem 1.25rem;
    background: transparent;
    transition: color .2s, border-color .2s;
}
.chart-tabs .nav-link:hover {
    color: var(--clr-primary);
    border-bottom-color: var(--clr-gray-100);
}
.chart-tabs .nav-link.active {
    color: var(--clr-primary);
    background: transparent;
    border-bottom-color: var(--clr-primary);
}
.chart-tab-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}
.chart-tab-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

/* Keep datasheet tables breathing room inside their cards */
.card > .table-responsive {
    padding: .25rem .75rem 1rem;
}
.card > .table-responsive > .table {
    margin-bottom: 0;
}

/* ── Nav bell + unread badge ── */
.nav-bell {
    display: inline-flex !important;
    align-items: center;
    padding: .5rem .65rem !important;
}
.nav-bell-badge {
    font-size: .62rem;
    padding: .22em .42em;
    min-width: 1.4em;
    line-height: 1;
}

/* ── Message thread ── */
.msg-bubble {
    border-radius: 12px;
    padding: .75rem 1rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.msg-bubble.from-me {
    background: rgba(0, 71, 255, .08);
    border: 1px solid rgba(0, 71, 255, .15);
    margin-left: auto;
}
.msg-bubble.from-them {
    background: var(--clr-gray-light);
    border: 1px solid var(--clr-gray-100);
}
.msg-row {
    display: flex;
    margin-bottom: 1rem;
}
.msg-row.from-me { justify-content: flex-end; }
.msg-row.from-them { justify-content: flex-start; }
.msg-time {
    font-size: .75rem;
    color: var(--clr-gray-600);
    margin-top: .25rem;
}

/* ── Print styles ── */
@media print {
    /* Make the page actually paginate. The body normally has
       `overflow-x: hidden` + `min-height: 100vh` + flex layout — together
       Chrome clips everything past the first printed page. Reset all of
       it. Also kill the fixed radial-gradient pseudo, since position:fixed
       behaves unpredictably across print engines. */
    html, body {
        overflow: visible !important;
        height: auto !important;
    }
    body {
        padding-top: 0 !important;
        display: block !important;
        min-height: 0 !important;
    }
    main { flex: none !important; min-height: 0 !important; overflow: visible !important; }
    .inner-bg::before { display: none !important; }
    .navbar, .site-footer, .chart-tabs, .chart-tab-actions,
    #ai-btn, #ai-spinner, .chart-print-hide,
    .tab-content button, .tab-content .btn,
    .ql-toolbar { display: none !important; }
    /* Tab-pane visibility is controlled inline by the print JS handler */
    .tab-pane { opacity: 1 !important; }
    .card { box-shadow: none !important; border: 1px solid #ddd !important; }
    .card-header { background: transparent !important; }
    main { padding: 0 !important; }
    .container { max-width: 100% !important; }
    .ql-container.ql-snow { border: none !important; }
    .ql-editor { padding: 0 !important; }
    #tab-synthesis .card,
    #tab-synthesis .card-body { border: 0 !important; padding: 0 !important; }
}

