/* 
 * Clarity v2.0 - Elegant Astrology Design System
 * --------------------------------------------
 * A refined, higher-end UI focused on conversion and modern aesthetics.
 */

/* --- LOCAL FONTS --- */
@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/PlayfairDisplay.ttf') format('truetype');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

/* Inter font - removed due to missing files */

@font-face {
    font-family: 'Space Mono';
    src: url('fonts/SpaceMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Mono';
    src: url('fonts/SpaceMono-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --- DESIGN TOKENS --- */
:root {
    /* Base Colors */
    --bg-warm: #FFFAFA;
    --text-primary: #1F1D20;
    --text-secondary: #4A474B;
    --text-inverse: #FFFFFF;
    --card-bg: #FFFFFF;
    --border-light: rgba(31, 29, 32, 0.08);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
    
    --white: #FFFFFF;
    --accent: #a238ff;
    --accent-light: #ffd1ff;
    --accent-dark: #6E026F;
    --accent-contrast: #FFFFFF; 
    --error: #E03131;
    --success: #0ca678;
    --gold: #D4AF37;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(31, 29, 32, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(31, 29, 32, 0.05);
    --glass-blur: blur(12px);

    /* Typography & Transitions */
    --font-heading: 'Playfair Display', 'Didot', 'Bodoni MT', 'Times New Roman', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'Space Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    --max-width: 1400px;
    --transition-smooth: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);

    /* Semantic / Layout Tokens */
    --container-padding: 0 4rem;
    --hover-sand: #F8F4EF;
}

[data-theme='dark'] {
    --bg-warm: #0F0E0F;
    --text-primary: #FDFCE8;
    --text-secondary: #ADA5B3;
    --text-inverse: #0F0E0F;
    --card-bg: #1A181C;
    --border-light: rgba(253, 252, 232, 0.1);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    
    --accent: #ffd1ff;
    --accent-light: #a238ff;
    --accent-contrast: #1A181C;
    --error: #FF6B6B;
    --success: #20C997;

    /* Glass Overrides for Dark Mode */
    --glass-bg: rgba(26, 24, 28, 0.6);
    --glass-border: rgba(253, 252, 232, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.7);
    --hover-sand: rgba(253, 252, 232, 0.04);
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-warm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.hidden {
    display: none !important;
}

/* Prevent layout shift of Lucide icons on load */
i[data-lucide] {
    display: inline-block;
    vertical-align: middle;
}

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

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

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

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.responsive-grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-cols, 2), 1fr);
    gap: var(--grid-gap, 1.5rem);
}

@media (max-width: 768px) {
    .responsive-grid {
        grid-template-columns: 1fr;
    }
}

.font-mono {
    font-family: var(--font-mono) !important;
}

/* --- GLOBAL MOBILE TWEAKS --- */
@media (max-width: 768px) {
    :root {
        --container-padding: 0 1.25rem;
    }
    
    h1 { font-size: 2.1rem !important; }
    h2 { font-size: 1.7rem !important; }
    h3 { font-size: 1.4rem !important; }
    
    p { font-size: 0.95rem; }
}

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--bg-warm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    min-height: 72px; /* Prevent layout shift */
}

#nav-placeholder {
    min-height: 72px;
}

#footer-placeholder {
    min-height: 300px;
}



.navbar.scrolled {
    /* Kept for potential JS variations but structure is now robust by default */
    padding: 1rem 2rem;
}

@media (max-width: 1024px) {
    .navbar {
        padding: 1rem 1.2rem;
    }

    .nav-right {
        gap: 1rem;
    }
}

/* --- NAVBAR DESKTOP LINKS --- */
.desktop-nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .desktop-nav-links {
        display: none;
    }
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition-smooth);
}

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

.nav-link.active {
    color: var(--accent);
}

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


.header-logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.header-sigil-small {
    height: 32px;
    width: auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo span {
    font-weight: 400;
    font-size: 0.8rem;
    margin-left: 0.2rem;
    opacity: 0.6;
}

.brand-logo-img {
    height: 40px;
    width: auto;
    display: block;
    transition: var(--transition-smooth);
}

[data-theme='dark'] .brand-logo-img {
    content: url('/logo-dark.svg');
}

/* Footer logo refinement */
.footer-logo-img {
    height: 48px;
    width: auto;
    margin-bottom: 1.5rem;
    display: block;
    transition: var(--transition-smooth);
}

[data-theme='dark'] .footer-logo-img {
    content: url('/logo-dark.svg');
}

/* --- DARK MODE: SVG ICON INVERSION --- */
/* Only pure black-line SVGs get inverted */
[data-theme='dark'] .domain-icon,
[data-theme='dark'] .feature-icon,
[data-theme='dark'] .header-type-icon,
[data-theme='dark'] .loop-main-img,
[data-theme='dark'] .karma-img,
[data-theme='dark'] .center-art {
    filter: invert(1) brightness(1.2);
}



/* Reading page pillar icons — all have purple, use dark variants */
[data-theme='dark'] img[src="/free.svg"]          { content: url('/free-dark.svg'); }
[data-theme='dark'] img[src="/key22.svg"]         { content: url('/key22-dark.svg'); }
[data-theme='dark'] img[src="/compatibility.svg"] { content: url('/compatibility-dark.svg'); }
[data-theme='dark'] img[src="/breakthrough.svg"]  { content: url('/breakthrough-dark.svg'); }
[data-theme='dark'] img[src="/darkside.svg"]      { content: url('/darkside-dark.svg'); }
[data-theme='dark'] img[src="/money22.svg"]       { content: url('/money22-dark.svg'); }
[data-theme='dark'] img[src="/winslosses.svg"]    { content: url('/winslosses-dark.svg'); }
[data-theme='dark'] img[src="/daily.svg"]         { content: url('/daily-dark.svg'); }
[data-theme='dark'] img[src="/monthly.svg"]       { content: url('/monthly-dark.svg'); }
[data-theme='dark'] img[src="/yearly2.svg"]       { content: url('/yearly2-dark.svg'); }

/* Social/brand icons must NOT be inverted */
[data-theme='dark'] .social-icon-link img,
[data-theme='dark'] .social-icon-link svg {
    filter: none;
}

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

.desktop-auth {
    display: flex;
    gap: 1rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .desktop-auth {
        display: none;
    }
}

.desktop-auth .btn-pill {
    padding: 0.6rem 1.4rem;
    font-size: 0.85rem;
}

/* LOGIN BUTTON IN MENU (GLOBAL) */
#mobileLoginBtn {
    display: flex;
    justify-content: center;
    border: 1px solid var(--text-primary);
    padding: 0.8rem 1.4rem;
    text-transform: uppercase;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: 8px;
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

#mobileLoginBtn:hover {
    background: var(--text-primary);
    color: var(--bg-warm);
}

/* HAMBURGER */
.hamburger-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: 0.5rem;
    display: flex;
}

.hamburger-btn svg {
    width: 28px;
    height: 28px;
}

.mobile-menu .hamburger-btn {
    color: var(--text-primary);
}

/* MOBILE MENU */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: min(400px, 100vw);
    height: 100vh;
    background: var(--bg-warm);
    color: var(--text-primary);
    z-index: 9999;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    visibility: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4rem;
    border-left: 1px solid var(--border-light);
}

.mobile-menu.open {
    transform: translateX(0);
    visibility: visible;
}

/* The 'hidden' class should be applied via JS after the transition to avoid cutting it off.
   Example: setTimeout(() => mobileMenu.classList.add('hidden'), 400); // match transition duration */


.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    text-transform: none;
    transition: color 0.3s;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active,
#mobileLoginBtn:not(.hidden) {
    color: var(--accent);
}

#mobileLoginBtn {
    border: 1px solid var(--accent);
    padding: 0.8rem;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-weight: 700;
}

/* --- ONBOARDING GATEKEEPER --- */
#gatekeeperSection {
    margin-top: 2rem;
    animation: fadeIn 0.8s ease-out;
}

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

/* --- HERO SECTION --- */
.hero-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 6rem 0 2rem;
}

/* Two-column split hero */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 5rem 0 1rem;
    min-height: 650px;
}

.hero-sigil-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform: translateX(50px);
}

.hero-sigil-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: sepia(0.3) brightness(0.88) contrast(1.05);
    display: block;
}



.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-copy .hero-title {
    text-align: left;
}

.hero-copy .hero-desc {
    max-width: 100%;
    text-align: left;
}

.hero-copy .hero-highlight {
    text-align: left;
}

/* Mobile: stack vertically, sigil on top */
@media (max-width: 768px) {
    .hero-split {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 4rem 0 2rem;
        min-height: auto;
    }

    .hero-sigil-wrap {
        order: -1;
        transform: none;
    }

    .hero-sigil-img {
        max-width: 280px;
    }

    .hero-copy,
    .hero-copy .hero-title,
    .hero-copy .hero-desc,
    .hero-copy .hero-highlight {
        align-items: center;
        text-align: center;
    }

    .hero-copy .hero-ctas {
        justify-content: center;
    }
}



.hero-title {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.hero-title span.light {
    font-weight: 300;
    display: block;
    font-size: 0.55em;
    margin-bottom: 0.2em;
}

.hero-title span.heavy {
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.hero-title span.heavy::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--accent);
    opacity: 0.3;
    z-index: -1;
}

.hero-desc {
    max-width: 700px;
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 3.5rem;
    color: var(--text-secondary);
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.hero-highlight {
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* --- BUTTONS --- */
.btn-pill {
    padding: 1.2rem 2.8rem;
    border-radius: 100px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-warm);
    border: 1px solid var(--text-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-primary);
    transform: translateY(-4px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--card-bg);
    transform: translateY(-4px);
}

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

.btn-outline:hover {
    background: var(--text-primary);
    color: var(--bg-warm);
    border-color: var(--text-primary);
}

/* --- MODALS --- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: var(--transition-smooth);
}

/* Mobile: disable GPU-expensive blur — causes dropped frames on mid-range devices */
@media (max-width: 768px) {
    .modal {
        backdrop-filter: none;
        background: rgba(0, 0, 0, 0.82);
    }
}

.modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-content {
    background: var(--card-bg);
    color: var(--text-primary);
    width: 100%;
    max-width: 480px;
    padding: 3rem;
    border-radius: 32px;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}


/* --- COMPACT AUTH MODAL --- */
.auth-modal-card {
    padding: 2.5rem 2.5rem 2rem;
}

.auth-modal-heading {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.auth-input {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: var(--bg-warm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.auth-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(162, 56, 255, 0.08);
}

.auth-input::placeholder { color: var(--text-secondary); opacity: 0.7; }

.auth-select { cursor: pointer; }

.auth-pw-wrap {
    position: relative;
    margin-bottom: 0.25rem;
}
.auth-pw-wrap .auth-input { margin-bottom: 0; padding-right: 3rem; }

.auth-eye-btn {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    display: flex;
    align-items: center;
}

.auth-forgot-row {
    text-align: right;
    margin-bottom: 0.85rem;
    margin-top: 0.35rem;
}

.auth-forgot-btn {
    background: none;
    border: none;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    cursor: pointer;
    text-decoration: underline;
    color: var(--text-secondary);
    padding: 0;
}

.auth-error-msg {
    color: var(--error);
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    text-align: center;
    font-weight: 600;
}

.auth-cta-btn {
    width: 100%;
    padding: 0.9rem !important;
}

.auth-switch-text {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.auth-switch-btn {
    background: none;
    border: none;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    color: var(--accent);
    font-size: 0.875rem;
}
.mobile-menu .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Also ensure the email display is readable */
.mobile-menu .user-email {
    color: rgba(255, 255, 255, 0.7);
}

/* --- FEATURES SECTION (HOW IT WORKS) --- */
.features-section {
    border-top: 1px solid var(--border-light);
    padding: 1rem 0 2rem;
}

.features-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 1.2rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
    margin-bottom: 0;
}

/* --- FEATURES GRID --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    padding: 0;
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.feature-item {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.feature-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    margin-bottom: 2rem;
}

.feature-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.feature-content p {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* --- FEATURES SPLIT LAYOUT --- */
.features-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.steps-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    transition: var(--transition-smooth);
}

.steps-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.features-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.loop-main-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

@media (max-width: 700px) {
    .features-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .features-visual {
        order: -1;
    }

    .loop-main-img {
        max-width: 300px;
    }
}

/* --- CARDS --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 4rem 0;
}

@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.card-number {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.card-visual {
    width: 48px;
    height: 48px;
    color: var(--accent);
}

.card h3 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
}

.card p {
    margin-bottom: 2rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

.card-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

/* --- ONGOING GUIDANCE (TIMELINE CARDS) --- */
.days-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .days-grid {
        grid-template-columns: 1fr;
    }
}

.day-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition-smooth);
}

.day-card.active {
    border-color: var(--accent);
    border-width: 2px;
}

.day-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.day-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* --- ABOUT SECTION --- */
.about-section {
    padding: 6rem 0;
    background: var(--bg-warm);
    border-top: 1px solid var(--border-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: center;
}

.about-lead {
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 400;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-footer {
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--hover-sand);
    border-radius: 12px;
    border-left: 3px solid var(--accent);
}

.about-footer p {
    margin-bottom: 0;
    font-style: italic;
    color: var(--text-primary);
}

.reveal-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.reveal-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.reveal-item:hover {
    border-color: var(--accent);
    transform: translateX(10px);
}

.reveal-item i {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.reveal-item span {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

/* --- WHY DIFFERENT SECTION --- */
.diff-section {
    padding: 6rem 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border-light);
}

.diff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.diff-card {
    padding: 2.5rem;
    background: var(--bg-warm);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.diff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.diff-card.highlight {
    background: var(--text-primary);
}

.diff-card.highlight h3,
.diff-card.highlight p {
    color: var(--white);
}

.diff-card.highlight i {
    color: var(--accent);
}

.diff-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.diff-card i {
    width: 28px;
    height: 28px;
    color: var(--accent);
}

.diff-card h3 {
    font-size: 1.3rem;
    font-weight: 500;
}

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

/* --- ABOUT SPLIT SECTION --- */
.about-split-section {
    padding: 6rem 0;
    background: var(--bg-warm);
    border-top: 1px solid var(--border-light);
}

.about-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: flex-start;
}

.about-left .about-lead {
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 400;
}

.about-left p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-roadmap {
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--hover-sand);
    border-radius: 12px;
    border-left: 3px solid var(--accent);
}

.about-roadmap p {
    margin-bottom: 0;
    font-style: italic;
    color: var(--text-primary);
}

/* Accordion Differentiators */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.accordion-item {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.accordion-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--accent-light);
}

.accordion-input {
    display: none;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    cursor: pointer;
    user-select: none;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header-content i {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

.header-content span {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-primary);
    font-weight: 500;
}

.chevron {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 2rem;
    transition: all 0.3s ease;
}

.accordion-body p {
    padding-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Checkbox Toggle Logic */
.accordion-input:checked~.accordion-header .chevron {
    transform: rotate(180deg);
    color: var(--accent);
}

.accordion-input:checked~.accordion-body {
    max-height: 300px;
}

@media (max-width: 900px) {
    .about-split-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

.testimonial-section {
    padding: 2rem 0 4rem;
    background: var(--bg-warm);
    border-top: 1px solid var(--border-light);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.testimonial-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.testimonial-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.quote-icon {
    width: 24px;
    height: 24px;
    color: var(--accent);
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
}

.testimonial-meta .author {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.testimonial-meta .stars {
    color: #FFD700;
    /* Gold for stars */
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.testimonial-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-art {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    border-radius: 24px;
}

@media (max-width: 1024px) {
    .testimonial-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .testimonial-visual {
        grid-column: span 2;
        order: -1;
        margin-bottom: 2rem;
    }

    .center-art {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-visual {
        grid-column: span 1;
    }
}

/* --- FINAL CTA --- */
.final-cta {
    padding: 8rem 0;
    text-align: center;
    background: var(--bg-warm);
    /* Return to default section background */
}

/* Overlay moved inside the glass-card */

.final-cta .container {
    position: relative;
    z-index: 2;
}

.final-cta h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    /* Dark text on light glass */
}

.final-cta p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--text-secondary);
    /* Dark text on light glass */
}

.stat-highlight {
    color: var(--accent);
    font-weight: 700;
}

/* Micro-animations for Final CTA Buttons */
.final-cta .btn-pill {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.final-cta .btn-primary {
    background: #ffd1ff;
    /* Light Orange */
    color: #1F1D20;
    border: none;
    position: relative;
    z-index: 3;
}

.final-cta .btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(162, 56, 255, 0.4);
    background: #b91eba;
}

.final-cta .btn-secondary:hover {
    transform: translateY(-5px);
}

/* --- FOOTER --- */
footer {
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--border-light);
}

/* Footer inner wrapper — keeps content aligned with rest of page */
footer .footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 4rem;
}

@media (max-width: 1200px) { footer .footer-inner { padding: 0 2rem; } }
@media (max-width: 768px)  { footer .footer-inner { padding: 0 1.25rem; } }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-brand .stamp {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    margin-top: 1rem;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-links-col h4 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    opacity: 0.6;
}

/* --- FORMS (CALCULATE) --- */
.brutal-form {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 4rem;
    max-width: 800px;
    margin: 4rem auto;
}

@media (max-width: 768px) {
    .brutal-form {
        padding: 2.5rem 1.5rem;
    }
}

.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
}

/* Location dropdown consolidated to the end of file */

/* --- BLOG --- */
.blog-toc {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2.5rem;
    margin: 4rem 0;
}

.blog-article {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 6rem;
    max-width: 1000px;
    margin: 0 auto 4rem;
}

@media (max-width: 768px) {
    .blog-article {
        padding: 4rem 2rem;
    }
}

.blog-article h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.article-meta {
    font-family: var(--font-mono);
    text-align: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4rem;
    color: var(--accent);
}

.article-content {
    font-size: 1.15rem;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 2.2rem;
    margin: 4rem 0 1.5rem;
}

.article-table-container {
    margin: 4rem 0;
    overflow-x: auto;
}

.article-table {
    width: 100%;
    border-collapse: collapse;
}

.article-table th,
.article-table td {
    padding: 1.2rem;
    border: 1px solid var(--border-light);
    text-align: left;
}

.article-table th {
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.75rem;
    background: var(--hover-sand);
}

/* --- READING PAGE --- */
.loading-state-container {
    text-align: center;
    padding: 4rem 0;
}

.brutal-loader-box {
    width: 300px;
    height: 4px;
    background: var(--border-light);
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
}

.loader-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--accent);
    width: 0%;
    overflow: hidden;
    transition: width 0.5s ease;
}

.loader-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loader-shimmer 1.5s infinite;
}

/* Modals consolidated and moved to core components section around Line 630 */

/* --- UTILITIES --- */

.violet-accent {
    color: var(--accent);
    border-bottom-color: var(--accent) !important;
}

/* RE-SYNCING SOME LEGACY CLASSES FOR JS COMPATIBILITY */
.btn-brutal {
    padding: 0.8rem 2rem;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: var(--text-primary);
    color: var(--white);
    border: 1px solid var(--text-primary);
}

.brutal-divider-violet {
    height: 1px;
    background: var(--border-light);
    margin: 2rem 0;
    position: relative;
}

.brutal-divider-violet::after {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-warm);
    padding: 0 1rem;
    color: var(--accent);
    font-size: 1.2rem;
}

/* CHART WHEEL OVERRIDES */
#chartWheelContainer svg {
    max-width: 100%;
    height: auto;
}

/* --- PLANET ROWS & INTERPRETATIONS --- */
.planet-row {
    margin-bottom: 2.5rem;
}

.planet-row-header {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0.75rem;
}

.planet-name {
    font-weight: 700;
    color: var(--text-primary);
}

.planet-details {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.interpretation-full {
    display: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border-light);
    animation: fadeIn 0.4s ease forwards;
}

.interpretation-full.visible {
    display: block;
}

.expand-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    margin-top: 1rem;
    transition: var(--transition-smooth);
    border-radius: 50px;
}

.expand-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
    background: var(--hover-sand);
}


/* Utility Animations */
@keyframes loaderRun {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(200%);
    }
}


.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Tab Navigation Utilities */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

/* Tab Navigation Adjustments */
.chart-tabs-nav button,
.tab-navigation .tab-btn,
.chart-tabs button,
.tab-click {
    transition: var(--transition-smooth);
}

.chart-tabs-nav button.active,
.tab-navigation .tab-btn.active,
.chart-tabs button.active,
.tab-click.active {
    font-weight: 700;
}

/* --- COSMIC DYNAMIC WIDGETS --- */

/* Cosmic Weather Banner - Standardized High-Fidelity Definition */
.cosmic-weather-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--glass-shadow);
}

.weather-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.weather-item i {
    display: inline-block;
    color: var(--accent);
    width: 22px;
    height: 22px;
    opacity: 0.9;
}

.weather-details {
    display: flex;
    flex-direction: column;
}

.weather-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    opacity: 0.8;
}

.weather-value {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
}

/* Momentum Widget */
.momentum-box {
    background: var(--hover-sand);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.momentum-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.momentum-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.momentum-oracle {
    background: transparent;
    border-left: 2px solid var(--accent);
    padding-left: 1rem;
    margin-top: 1rem;
}

/* Mini Reading Box */
.mini-reading-box {
    background: transparent;
}

/* --- CHART TOOLTIP --- */
.brutal-tooltip {
    position: absolute;
    padding: 1rem 1.2rem;
    background: var(--text-primary);
    color: var(--bg-warm);
    border: 1px solid var(--text-primary);
    border-radius: 8px;
    font-size: 0.75rem;
    pointer-events: none;
    z-index: 9000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
    line-height: 1.5;
}

.brutal-tooltip strong {
    color: var(--accent);
    display: block;
    margin-bottom: 0.3rem;
    letter-spacing: 0.05em;
}

.planet-marker {
    cursor: pointer;
    pointer-events: all;
}

.planet-marker:hover .planet-bg {
    fill: var(--hover-sand);
    stroke: var(--accent);
}

/* --- COSMIC UPGRADE CLASSES --- */
.cosmic-dashboard-wrapper {
    position: relative;
    padding: 2rem 0; /* Vertical padding only, to keep vertical spacing */
    border-radius: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    margin-top: 2rem;
    animation: fadeIn 1.2s ease-out;
    border: none;
    transition: var(--transition-smooth);
}

@media (max-width: 1024px) {
    .cosmic-dashboard-wrapper {
        padding: 1.5rem 0;
    }
}

@media (max-width: 768px) {
    .cosmic-dashboard-wrapper {
        padding: 0;
        border-radius: 0;
        margin-top: 1rem;
    }
}

.cosmic-dashboard-wrapper::before {
    display: none;
}

.cosmic-dashboard-wrapper>* {
    position: relative;
    z-index: 2;
}

.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 4px 32px -4px rgba(0, 0, 0, 0.04);
    transition: var(--transition-smooth);
    padding: 2.5rem;
}

[data-theme='dark'] .glass-card {
    background: rgba(26, 24, 28, 0.85);
    box-shadow: 0 4px 32px -4px rgba(0, 0, 0, 0.4);
}


.archive-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1.2rem;
    padding: 2rem 1.5rem;
    text-align: center;
}

.archive-item-content {
    flex: 1;
}

.archive-meta {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 0.3rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
}

.archive-date {
    color: var(--text-secondary);
}

.archive-tag {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.archive-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin: 0;
    color: var(--text-primary);
}

.archive-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-icon:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.btn-icon i {
    display: inline-block;
    width: 16px;
    height: 16px;
}

.btn-delete:hover {
    background: var(--error);
    border-color: var(--error);
}

@media (max-width: 768px) {
    .glass-card {
        padding: 1.5rem;
    }
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.85);
}

[data-theme='dark'] .glass-card:hover {
    background: rgba(26, 24, 28, 0.95);
}


.dashboard-header-modern {
    padding: 2rem 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.dashboard-title-modern {
    font-size: 3.5rem;
    line-height: 1;
    color: var(--text-primary);
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
    margin: 0;
}

@media (max-width: 1100px) {
    .dashboard-header-modern {
        justify-content: center;
        text-align: center;
    }
    
    .dashboard-title-group {
        width: 100%;
    }
    
    .header-stats-group {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .dashboard-header-modern {
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
    }

    .dashboard-title-modern {
        font-size: 2.8rem;
    }
}

.momentum-box-glass {
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: var(--transition-smooth);
}

.momentum-box-glass:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
}

.momentum-label-glass {
    display: block;
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.65rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.momentum-value-glass {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dashboard-welcome-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    opacity: 0.9;
}

/* Cosmic Strategy Box - Unified Card Content */
.cosmic-strategy-box {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* --- COSMIC ALERT BAR --- */
.cosmic-alert-bar {
    background: #1F1D20;
    color: #FDFCE8;
    text-align: center;
    padding: 0.75rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    /* Natural flow inside container */
    width: 100%;
    z-index: 1100;
    border-bottom: 2px solid var(--accent);
    display: none;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .cosmic-alert-bar {
        padding: 0.6rem 1rem;
        font-size: 0.6rem;
    }

    .cosmic-alert-bar .alert-link {
        display: block;
        margin-left: 0;
        margin-top: 0.2rem;
    }
}

.cosmic-alert-bar .alert-link {
    margin-left: 1rem;
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 700;
}

.cosmic-alert-bar .alert-link:hover {
    color: var(--accent-light);
}

/* Strategic Shifts Card */
.strategic-shifts-card {
    grid-column: span 2;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .strategic-shifts-card {
        grid-column: span 1;
    }
}

.shift-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}



.shift-item {
    padding: 1.25rem 1.5rem;
    background: rgba(31, 29, 32, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: center;
    transition: var(--transition-smooth);
}

.shift-item:hover {
    border-color: var(--accent);
    background: rgba(31, 29, 32, 0.04);
}

.shift-icon {
    width: 36px;
    height: 36px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.shift-content h5 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 0.1rem;
}

.shift-content p {
    font-size: 0.8rem;
    margin-bottom: 0;
    line-height: 1.4;
    color: var(--text-secondary);
}

.shift-tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.15rem;
}

@media (max-width: 768px) {
    .cosmic-weather-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 2rem;
    }

    .shift-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

}

/* --- DASHBOARD & MY WORLD SPECIFIC --- */
.my-world-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 1.5rem 0 4rem;
}

@media (max-width: 1024px) {
    .my-world-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.chart-display-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 3rem;
    position: relative;
}

.chart-visual-wrapper {
    width: 100%;
    aspect-ratio: 1;
    margin: 2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 50%;
    padding: 10px;
}

#chartWheelContainer {
    width: 100%;
    height: 100%;
}

.archive-readings-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 1rem;
}

.archive-readings-list::-webkit-scrollbar {
    width: 4px;
}

.archive-readings-list::-webkit-scrollbar-thumb {
    background: var(--border-light);
}

.reading-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.reading-card:hover {
    border-color: var(--accent);
    background: var(--hover-sand);
}

.reading-card h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.reading-meta {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
}

.auth-overlay {
    text-align: center;
    padding: 10rem 0;
    background: var(--hover-sand);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin: 4rem 0;
}

.auth-overlay h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.placeholder-text {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: 4rem 0;
    text-align: center;
}

/* Location dropdown consolidated to the end of file */

/* SHARE MODAL STYLES */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.share-modal-content {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    padding: 3rem;
    position: relative;
    text-align: center;
}

.share-btn-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
}

.social-btn:hover {
    background: rgba(193, 124, 110, 0.1);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.social-btn i {
    display: inline-block;
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.copy-link-box {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    border-radius: 12px;
    margin-top: 1rem;
    border: 1px solid var(--glass-border);
}

.copy-link-box input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    width: 100%;
    padding: 0.5rem;
}

.copy-link-box button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
}

/* --- READING VIEW SPECIFIC --- */
.reading-view-header {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 1rem;
    text-align: center;
}

.header-type-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.08));
}

.reading-view-header .domain-icon {
    display: block;
    width: 64px;
    height: auto;
    margin: 2rem auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.05));
    transition: var(--transition-smooth);
}

.reading-view-header .domain-icon:hover {
    transform: translateY(-5px) scale(1.05);
}

.reading-view-header h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.reading-meta-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.loading-container-elegant {
    text-align: center;
    padding: 4rem 0;
    max-width: 600px;
    margin: 0 auto;
}

.loader-bar-wrapper {
    width: 100%;
    height: 2px;
    background: var(--border-light);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.loader-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.3s ease;
}

.loading-fact {
    margin-top: 2rem;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1rem;
    color: var(--text-secondary);
    min-height: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.8s ease;
}

.reading-output {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-primary);
    max-width: 850px;
    margin: 0 auto 8rem;
}

#readingContent *:first-child {
    margin-top: 0 !important;
}

.reading-output h2 {
    font-size: 2.5rem;
    margin: 3rem 0 2rem;
}

.reading-output h3 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem;
}

.reading-output p {
    margin-bottom: 2rem;
}

.reading-output strong {
    font-weight: 700;
    color: var(--text-primary);
}

.reading-output em {
    font-style: italic;
    color: var(--text-secondary);
}

.action-bar-fixed {
    margin: 4rem auto 2rem auto;
    width: max-content;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    padding: 0.8rem 2rem;
    border-radius: 100px;
    display: flex;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
}

.action-bar-fixed button,
.action-bar-fixed a {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.action-bar-fixed button:hover,
.action-bar-fixed a:hover {
    color: var(--accent);
}

.action-bar-fixed .separator {
    width: 1px;
    height: 20px;
    background: var(--border-light);
}

@media print {
    @page {
        size: auto;
        margin: 1.5cm;
    }

    /* Hide UI elements and unnecessary loading states */
    .action-bar-fixed,
    .navbar,
    footer,
    .hamburger-btn,
    .mobile-menu,
    #readingLoading,
    #readingError,
    .readings-hero,
    .compatibility-container> :not(.reading-output),
    .pdf-export-container {
        display: none !important;
    }

    /* Clean, high-contrast print theme (Always White) */
    html,
    body {
        background-color: #FFFFFF !important;
        color: #000000 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Force all text elements to dark for visibility on white background */
    p,
    span,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    div,
    blockquote,
    li,
    strong,
    em,
    b,
    i,
    u,
    mark,
    code,
    pre,
    a {
        color: #1F1D20 !important;
    }

    /* Specific overrides for reading content to ensure contrast */
    .reading-output strong,
    .reading-output b,
    .reading-output span {
        color: inherit !important;
    }

    .container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Ensure text looks crisp and handles page boundaries cleanly */
    .reading-output {
        font-size: 11pt;
        line-height: 1.6;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        page-break-after: avoid;
    }

    p,
    li {
        page-break-inside: avoid;
    }
}

/* Locked Content UI */
.locked-content-container {
    position: relative;
    overflow: hidden;
    border-bottom: 5px solid var(--text-primary);
}

.reading-truncated {
    max-height: 600px;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.locked-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top, var(--bg-warm) 30%, transparent 100%);
    z-index: 5;
}

.locked-cta-box {
    background: var(--card-bg);
    border: 2px solid var(--text-primary);
    padding: 2.5rem;
    text-align: center;
    box-shadow: 12px 12px 0px var(--text-primary);
    max-width: 450px;
    animation: bounce-in 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.locked-cta-box h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.locked-cta-box p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-family: var(--font-mono);
}

.premium-badge {
    display: inline-block;
    background: var(--text-primary);
    color: var(--white);
    padding: 0.25rem 0.6rem;
    font-size: 0.6rem;
    font-weight: bold;
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
    margin-left: 1rem;
    vertical-align: middle;
}

/* --- COSMIC STRATEGY MODULES --- */
.strategy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.glass-card-mini {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: var(--transition-smooth);
}

.glass-card-mini:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    transform: translateX(4px);
}

.module-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
}

.module-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 0;
}

.module-data {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.module-content {
    margin-bottom: 1.5rem !important;
    min-height: 40px;
    line-height: 1.6;
}

.module-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(193, 124, 110, 0.12);
    color: var(--accent);
    font-size: 0.65rem;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .strategy-grid {
        grid-template-columns: 1fr;
    }
}

/* --- CORE ALIGNMENT BAR (BIG 4 -> 5 COMPACT) --- */
.core-alignment-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin: 1.5rem 0 1rem;
    width: 100%;
}

.alignment-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 0.8rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.alignment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    opacity: 0.4;
}

.alignment-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.alignment-card i {
    display: inline-block;
    width: 18px;
    height: 18px;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.alignment-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.alignment-sign {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .core-alignment-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .alignment-card:last-child:nth-child(odd) {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .core-alignment-bar {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .alignment-card:last-child:nth-child(odd) {
        grid-column: span 1;
    }

    .alignment-card {
        flex-direction: row;
        text-align: left;
        padding: 1rem 1.5rem;
        gap: 1.5rem;
    }

    .alignment-card i {
        margin-bottom: 0;
    }
}


/* --- STYLING OVERRIDE FOR STUCK IN LOOPS SECTION --- */

.final-cta .glass-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8) !important;
    /* Slightly more opaque glass */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    color: var(--text-primary);
}

.final-cta .glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('cta.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    /* Subtle but clearly visible zodiac pattern */
    z-index: 0;
    /* Behind content */
    pointer-events: none;
}

.final-cta .glass-card>* {
    position: relative;
    z-index: 2;
    /* In front of image */
}

.final-cta h2,
.final-cta p {
    color: var(--text-primary) !important;
}

.final-cta .stat-highlight {
    color: var(--accent) !important;
    font-weight: 700;
}

/* --- PERSONA SELECTOR CENTERING --- */
.persona-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0;
    margin-bottom: 2rem;
}

/* --- LOCATION DROPDOWN --- */
.location-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 2000;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
    backdrop-filter: blur(10px);
}

.dropdown-item {
    transition: var(--transition-smooth);
    border-bottom: 1px solid var(--border-light);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--hover-sand) !important;
}

/* --- COSMIC CALENDAR --- */
.cosmic-calendar-container {
    margin-top: 1.5rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calendar-month-year {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
}

.calendar-controls {
    display: flex;
    gap: 1rem;
}

.cosmic-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-top: 1rem;
}

.calendar-day-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    text-align: center;
    color: var(--accent);
    padding-bottom: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1 / 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: var(--transition-smooth);
    min-height: 60px;
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
}

.calendar-day.empty {
    visibility: hidden;
}

.calendar-day.current-day {
    border: 2px solid var(--accent);
}

.day-number {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
}

.reading-indicator {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    margin-top: 4px;
    box-shadow: 0 0 10px var(--accent);
}

.calendar-day.has-reading {
    background: rgba(193, 124, 110, 0.1);
}

@media (max-width: 600px) {
    .cosmic-calendar-grid {
        gap: 5px;
    }

    .day-number {
        font-size: 0.8rem;
    }
}

/* --- CLARITY CHAT (THOUGHTFUL ASSISTANT CONSULTATION) --- */
.chat-floating-bubble {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(162, 56, 255, 0.4);
    z-index: 2000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-floating-bubble:hover {
    transform: scale(1.1) rotate(5deg);
}

.chat-window {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 380px;
    height: 500px;
    background: var(--bg-warm);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--glass-shadow);
    z-index: 2001;
    overflow: hidden;
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.chat-window.hidden {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}

.chat-header {
    padding: 1.5rem;
    background: rgba(193, 124, 110, 0.1);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scroll-behavior: smooth;
}

.chat-message {
    max-width: 85%;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
}

.chat-message.user {
    align-self: flex-end;
    background: var(--accent);
    color: white;
    border-bottom-right-radius: 2px;
}

.chat-message.ai {
    align-self: flex-start;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-bottom-left-radius: 2px;
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.1);
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    padding: 0.5rem;
}

.chat-send-btn {
    background: var(--accent);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-session-info {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent);
    margin-top: 0.2rem;
}

@media (max-width: 480px) {
    .chat-window {
        width: calc(100vw - 2rem);
        right: 1rem;
        bottom: 5rem;
        height: 70vh;
    }
}

/* --- CONSULTATION MENU (Forensic Micro-Readings) --- */
.consultation-menu-container {
    padding: 1rem;
}

.consultation-tabs {
    border-bottom: 1px solid var(--glass-border);
}

.tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.8rem 1.5rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

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

.tab-btn.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.consultation-grid {
    margin-top: 1rem;
}

.consultation-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    padding: 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.consultation-card:hover {
    background: rgba(193, 124, 110, 0.1);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(193, 124, 110, 0.2);
}

.consultation-card i {
    display: inline-block;
    color: var(--gold);
    width: 18px;
    height: 18px;
}

.consultation-card .question-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

.consultation-card .token-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Modal Enhancements */
#microReadingContent {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 1rem;
}

#microReadingContent p {
    margin-bottom: 1rem;
}

#microReadingContent strong {
    color: var(--gold);
}

/* Animations */
@keyframes loader-shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}


/* --- PRINT OPTIMIZATIONS --- */
@media print {
    body {
        background: #FFFFFF !important;
        color: #1F1D20 !important;
    }

    .navbar,
    .action-tray,
    .chart-tab-strip,
    .aspect-filter-container,
    .cosmic-pulse,
    footer,
    .modal,
    button {
        display: none !important;
    }

    .container {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .chart-frame-elegant {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .chart-page-header {
        padding: 2rem 0 !important;
    }

    .chart-page-header h1 {
        font-size: 3rem !important;
    }

    #chartWheelContainer {
        margin-top: 2rem !important;
        page-break-inside: avoid;
    }

    canvas,
    svg {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* --- AUTH MODAL REFINEMENTS --- */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    opacity: 0.5;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-light);
}

.auth-divider span {
    padding: 0 1rem;
}

.btn-google {
    width: 100%;
    justify-content: center;
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    gap: 0.75rem;
    padding: 0.8rem 1.5rem !important;
    font-size: 0.9rem !important;
    border-radius: 100px;
    font-family: var(--font-body);
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
}

.btn-google:hover {
    background: var(--hover-sand);
    border-color: var(--text-primary);
}

/* --- ARCHIVE FILTER PILLS --- */
.archive-filter-pill {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.archive-filter-pill:hover {
    border-color: rgba(255,255,255,0.4);
    color: var(--text-primary);
}

.archive-filter-pill.active {
    background: var(--text-primary);
    color: var(--bg-warm);
    border-color: var(--text-primary);
}

/* --- CHART DROPDOWN SELECTOR --- */
.chart-dropdown-container {
    position: relative;
    width: 100%;
}

.chart-dropdown-trigger {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.chart-dropdown-trigger:hover {
    border-color: var(--accent);
    background: rgba(193, 124, 110, 0.05);
}

.chart-dropdown-trigger .chevron {
    color: var(--accent);
    transition: transform 0.3s ease;
}

.chart-dropdown-container.open .chart-dropdown-trigger .chevron {
    transform: rotate(180deg);
}

.chart-dropdown-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(20px);
}

.chart-dropdown-container.open .chart-dropdown-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chart-dropdown-option {
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.95rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chart-dropdown-option:hover {
    background: var(--bg-warm);
}

.chart-dropdown-option.active {
    color: var(--accent);
    font-weight: bold;
}

.chart-dropdown-option i {
    display: inline-block;
    width: 16px;
    height: 16px;
}

.chart-dropdown-option .primary-tag {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    background: var(--accent);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

/* Ensure dropdown works on compatibility page panels */
.chart-panel {
    z-index: 1; /* Basis for dropdown absolute pos */
}
.archive-subject-tag {
    padding: 0.1rem 0.4rem;
    background: rgba(193, 124, 110, 0.15);
    color: var(--accent);
    border-radius: 4px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.btn-google svg {
    width: 18px;
    height: 18px;
}

/* --- QUANTUM SYNC OVERLAY (PREMIUM LOADING) --- */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 17, 19, 0.9); /* Deep obsidian focus */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 5000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--white);
    text-align: center;
}

.loading-overlay.active {
    display: flex !important;
    animation: fadeIn 0.5s ease forwards;
}

.progress-box {
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.progress-bar-wrap {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent);
    transition: width 0.3s ease;
}

.loading-status-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent);
    min-height: 1.2rem;
}

.loading-percentage {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

/* --- PREMIUM FOCUS MODE (READING DISPLAY) --- */
.reading-output.focus-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4500;
    background: var(--bg-warm);
    padding: 10vh 20vw;
    overflow-y: auto;
    display: none; /* Controlled by JS */
    margin: 0;
    max-width: none;
    border-radius: 0;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 1024px) {
    .reading-output.focus-mode {
        padding: 5vh 5vw;
    }
}

.close-focus-btn {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--text-primary);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.close-focus-btn:hover {
    background: var(--accent);
    transform: rotate(90deg) scale(1.1);
}

@keyframes slideUp {
    from { transform: translateY(100vh); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}


/* --- MOBILE READING ENHANCEMENTS --- */
.reading-guidance-banner {
    background: rgba(162, 56, 255, 0.05);
    border: 1px solid rgba(162, 56, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--transition-smooth);
}

.reading-guidance-banner i {
    display: inline-block;
    color: var(--accent);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.reading-guidance-banner p {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.reading-guidance-banner .btn-close-banner {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.2rem;
    margin-left: auto;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.reading-guidance-banner .btn-close-banner:hover {
    opacity: 1;
}



@media (max-width: 768px) {
    .reading-guidance-banner {
        padding: 1rem;
    }
    
    .reading-guidance-banner p {
        font-size: 0.85rem;
    }
}

/* --- PREMIUM READING BEAUTIFICATION (v2.0) --- */
.reading-output {
    font-family: var(--font-body) !important;
    font-size: 1.15rem !important;
    line-height: 1.8 !important;
    color: var(--text-primary) !important;
    max-width: 800px;
    margin: 0 auto;
    padding: 6rem 1rem;
}

/* Document Header/Title */
.reading-output h1 {
    font-family: var(--font-heading) !important;
    font-size: 4rem !important;
    line-height: 1 !important;
    text-align: center;
    margin-bottom: 4rem !important;
    letter-spacing: -0.02em !important;
    color: var(--text-primary) !important;
}

/* Act/Chapter Headers */
.reading-output h3 {
    font-family: var(--font-heading) !important;
    font-size: 2.2rem !important;
    margin: 4rem 0 1.5rem !important;
    text-align: center !important;
    letter-spacing: -0.01em !important;
}

/* Premium Delimiters */
.reading-output hr {
    border: none !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, var(--accent), transparent) !important;
    margin: 3.5rem 0 !important;
    opacity: 0.4 !important;
}

/* Paragraph Spacing & Style */
.reading-output p {
    margin-bottom: 1.8rem !important;
    opacity: 0.9 !important;
}

/* Drop-word styling for the start of Acts/Chapters */
.reading-output .drop-word {
    font-family: var(--font-heading) !important;
    font-size: 3.5rem !important;
    font-weight: 700 !important;
    float: left !important;
    line-height: 0.9 !important;
    padding-right: 1.25rem !important;
    margin-top: 0.25rem !important;
    color: var(--accent) !important;
    text-transform: uppercase !important;
    letter-spacing: -0.02em !important;
}

/* Anchor Insights (Bold Highlights) */
.reading-output strong {
    font-family: var(--font-heading) !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    background: linear-gradient(120deg, rgba(193, 124, 110, 0.1) 0%, rgba(193, 124, 110, 0.1) 100%) !important;
    background-repeat: no-repeat !important;
    background-size: 100% 0.3em !important;
    background-position: 0 88% !important;
}

/* Premium Tables */
.reading-output table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 2rem 0 !important;
    font-family: var(--font-mono) !important;
    font-size: 0.85rem !important;
    background: rgba(193, 124, 110, 0.03) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1px solid rgba(193, 124, 110, 0.1) !important;
}

.reading-output th {
    background: rgba(193, 124, 110, 0.08) !important;
    text-align: left !important;
    padding: 1.25rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: var(--accent) !important;
    border-bottom: 1px solid var(--border-light) !important;
}

.reading-output td {
    padding: 1.25rem !important;
    border-bottom: 1px solid rgba(193, 124, 110, 0.05) !important;
}

/* Section highlights - Action Items (only when paragraph starts with bold) */
.reading-output p:has(> strong:first-child) {
    border-left: 2px solid var(--accent);
    padding-left: 2rem;
}

/* Closing Mantra */
.reading-output p:last-of-type {
    font-family: var(--font-heading) !important;
    font-size: 1.5rem !important;
    text-align: center !important;
    font-style: italic !important;
    margin-top: 6rem !important;
    color: var(--accent) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .reading-output h1 { font-size: 2.5rem !important; }
    .reading-output h3 { font-size: 1.8rem !important; }
    .reading-output { padding: 1.5rem !important; }
}

/* --- DOMAIN ICONS (reading power days / caution windows) --- */
/* Applied only by reading-init.js after [LOVE][MONEY][CAREER][HEALTH][BREAKTHROUGH] tags are replaced */
.domain-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    display: inline-block;
    margin-right: 3px;
    object-fit: contain;
    position: relative;
    top: -1px; /* optical alignment with text baseline */
}

/* --- UNIFIED CITY AUTOCOMPLETE DROPDOWNS --- */
.location-dropdown, 
.city-suggestions, 
.autocomplete-dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: var(--card-bg) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 12px !important;
    margin-top: 5px !important;
    max-height: 250px !important;
    overflow-y: auto !important;
    z-index: 5000 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}

.dropdown-item, 
.city-suggestion {
    padding: 1rem 1.5rem !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    color: var(--text-primary) !important;
    transition: background 0.2s ease !important;
    border-bottom: 1px solid rgba(0,0,0,0.03) !important;
}

.dropdown-item:hover, 
.city-suggestion:hover {
    background: var(--bg-warm) !important;
    color: var(--accent) !important;
}


/* --- SOCIAL MEDIA LINKS --- */
.footer-socials {
    margin-top: 1.5rem;
}

.follow-us-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.social-icons-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon-link {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.social-icon-link:hover {
    transform: scale(1.05); /* Subtle scale instead of color change */
}

.social-icon-link img {
    width: 100%;
    height: 100%;
}

.social-icon-link svg {
    width: 100%;
    height: 100%;
}

/* --- PREMIUM COSMIC STATUS (PHASE 6 UPGRADE) --- */
.cosmic-status-card-premium {
    position: relative;
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border) !important;
    border-radius: 20px;
    padding: 2rem !important;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.cosmic-status-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 50px rgba(162, 56, 255, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Background Aura Glow */
.cosmic-status-card-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(162, 56, 255, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    filter: blur(40px);
}

.cosmic-status-card-premium::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    filter: blur(40px);
}

/* Shimmer Text Effect - Now respects JS-injected colors */
.shimmer-text {
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        rgb(255, 215, 0) 50%, 
        transparent 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    /* The color itself is handled by app.js (status.rankColor) */
    animation: textShimmer 3s linear infinite;
    display: inline-block;
    position: relative;
    color: var(--accent); /* Fallback */
    text-shadow: 0 0 10px rgba(162, 56, 255, 0.2);
}

@keyframes textShimmer {
    to {
        background-position: 200% center;
    }
}

/* Premium Progress Bar */
.premium-progress-container {
    height: 8px; /* Slightly thicker */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.premium-progress-fill {
    height: 100%;
    /* background-color is updated by app.js */
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    box-shadow: 0 0 15px var(--accent);
    position: relative;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: progressShimmer 2.5s infinite linear;
}

@keyframes progressShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Stats Typography */
.premium-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.premium-stat-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.premium-stat-value {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
}

/* Sidebar Custom Aura */
.cosmic-status-card-sidebar::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(162, 56, 255, 0.08) 0%, transparent 70%);
    filter: blur(30px);
    z-index: 0;
    pointer-events: none;
}

/* Premium Token Aura */
#tokenBalanceCard::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
    filter: blur(20px);
    z-index: 0;
    pointer-events: none;
    animation: auraPulse 4s infinite alternate ease-in-out;
}

@keyframes auraPulse {
    0% { opacity: 0.4; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.3); }
}

/* --- CONSOLIDATED LANDING STYLES (Extracted from index.html) --- */
.hero-desire-tags {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.desire-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    letter-spacing: 0.04em;
}

.desire-tag.hot {
    background: var(--text-primary);
    color: var(--bg-warm);
    border-color: var(--text-primary);
    font-weight: 700;
}

.hero-cta-note {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    letter-spacing: 0.04em;
}

.karma-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border-light);
}

.karma-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.karma-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
}

.karma-spiral {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.karma-ring {
    position: absolute;
    border-radius: 50%;
}

.karma-ring:nth-child(1) {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(162, 56, 255, 0.2);
}

.karma-ring:nth-child(2) {
    width: 72%;
    height: 72%;
    border: 1px solid rgba(162, 56, 255, 0.3);
    animation: slowrot 22s linear infinite reverse;
}

.karma-ring:nth-child(3) {
    width: 46%;
    height: 46%;
    border: 1px solid rgba(162, 56, 255, 0.5);
    animation: slowrot 14s linear infinite;
}

@keyframes slowrot {
    from { transform: rotate(0) }
    to { transform: rotate(360deg) }
}

.karma-center {
    position: relative;
    z-index: 2;
    text-align: center;
}

.karma-glyph {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--accent);
    display: block;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.karma-center p {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin: 0;
}

.karma-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 20px;
    filter: sepia(0.2) brightness(0.9) contrast(1.05);
}

.karma-bullets {
    list-style: none;
    margin: 2rem 0 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.karma-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.karma-bullets li::before {
    content: '↳';
    color: var(--accent);
    font-family: var(--font-mono);
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.receive-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border-light);
}

.receive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.receive-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2.5rem;
}

.receive-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.receive-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(162, 56, 255, 0.1);
    border: 1px solid rgba(162, 56, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}

.receive-icon svg {
    width: 18px;
    height: 18px;
}

.receive-text h4 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.receive-text p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.55;
}

.reading-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 8px 40px rgba(31, 29, 32, 0.06);
}

.reading-card-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.reading-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #6E026F);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--bg-warm);
    flex-shrink: 0;
    font-weight: 700;
}

.reading-meta-name {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    letter-spacing: 0.04em;
}

.reading-meta-type {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.topic-chip {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.85rem;
}

.chip-karma {
    background: rgba(162, 56, 255, 0.12);
    color: var(--accent);
}

.chip-love {
    background: rgba(220, 80, 130, 0.1);
    color: #d05082;
}

.chip-gold {
    background: rgba(180, 140, 50, 0.12);
    color: #9a780a;
}

.reading-line {
    height: 9px;
    border-radius: 100px;
    background: var(--hover-sand);
    margin-bottom: 0.7rem;
}

.reading-line.full { width: 100% }
.reading-line.med { width: 78% }
.reading-line.short { width: 52% }

.reading-line.accent {
    background: linear-gradient(90deg, rgba(162, 56, 255, 0.45), transparent);
}

.reading-preview-body { position: relative; }

.reading-blur {
    position: absolute;
    bottom: -10px;
    left: -10px;
    right: -10px;
    height: 110px;
    background: linear-gradient(to bottom, transparent, var(--card-bg));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1.2rem;
}

.unlock-btn {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.55rem 1.4rem;
    border-radius: 100px;
    background: var(--text-primary);
    color: var(--bg-warm);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.unlock-btn:hover {
    background: var(--accent);
    color: var(--text-primary);
}

.testi-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border-light);
}

.testi-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(162, 56, 255, 0.1);
    border: 1px solid rgba(162, 56, 255, 0.3);
    border-radius: 100px;
    padding: 0.35rem 1.1rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    letter-spacing: 0.04em;
}

.testi-count-badge::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.testi-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.testi-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    transition: var(--transition-smooth);
}

.testi-card:hover {
    border-color: rgba(162, 56, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(31, 29, 32, 0.07);
}

.testi-author-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.testi-av {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.av-orange { background: linear-gradient(135deg, #a238ff, #6E026F); color: var(--bg-warm); }
.av-purple { background: linear-gradient(135deg, #a78bfa, #6d4fc7); color: #fff; }
.av-teal { background: linear-gradient(135deg, #5ec4c0, #2e8a87); color: #fff; }

.testi-name { font-weight: 700; font-size: 0.9rem; color: var(--text-primary); display: block; }

.testi-loc {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.testi-quote { font-size: 0.95rem; line-height: 1.7; color: var(--text-secondary); font-style: italic; margin: 0; }

.testi-footer { display: flex; align-items: center; gap: 0.5rem; }

.testi-stars { color: #f59e0b; font-size: 0.88rem; }

.testi-verified { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-secondary); }

.cta-improved {
    padding: 6rem 0;
    border-top: 1px solid var(--border-light);
    background: var(--bg-warm);
}

.cta-box {
    border: 1px solid var(--border-light);
    border-radius: 40px;
    padding: 5rem 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(162, 56, 255, 0.04) 0%, var(--bg-warm) 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(162, 56, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: pulse-cosmic 8s ease-in-out infinite;
}

@keyframes pulse-cosmic {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.cta-free-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--text-primary);
    color: var(--white);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.45rem 1.4rem;
    border-radius: 100px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-box h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 6vw, 3.8rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.cta-box .cta-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.cta-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    z-index: 2;
}

#sampleReadingBtn {
    font-size: 1.05rem;
    padding: 1.25rem 4.5rem;
    min-width: 250px;
    justify-content: center;
}

.cta-no-card {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.faq-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border-light);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 5rem;
    margin-top: 4rem;
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 2rem;
}

.faq-q {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.7rem;
    line-height: 1.4;
}

.faq-a { font-size: 0.93rem; color: var(--text-secondary); line-height: 1.7; margin: 0; }
.faq-a strong { color: var(--text-primary) }
.faq-a a { color: var(--accent); text-decoration: none }
.faq-a a:hover { text-decoration: underline }

/* --- GLOBAL MOBILE RESPONSIVENESS FIXES (OVERRIDE) --- */
@media(max-width:900px) {
    .karma-grid, .receive-grid, .faq-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .testi-cards {
        grid-template-columns: 1fr !important;
    }

    .karma-visual { order: -1; }

    .cta-box {
        padding: 4.5rem 1.5rem !important;
        border-radius: 30px !important;
    }
    
    #sampleReadingBtn { width: 100% !important; }
}

@media (max-width: 768px) {
    .mobile-menu {
        width: 100% !important;
        max-width: 100vw !important;
        right: 0 !important;
    }

    .hero-title span.heavy::after {
        height: 4px !important;
        bottom: 2px !important;
    }

    .hero-title {
        font-size: 2.8rem !important;
    }

    .container {
        padding: 0 1.2rem !important;
    }
}

/* --- MOBILE COMPATIBILITY OVERRIDES (v2.2) --- */
@media (max-width: 768px) {
    /* ─── ALL MODALS: bottom-sheet on mobile ─── */
    .modal {
        align-items: flex-end !important;
        padding: 0 !important;
        padding-top: 2.5rem !important; /* safety gap — prevents sheet reaching very top */
    }
    .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 90vh !important;
        padding: 1.75rem 1.25rem 2.5rem !important;
        border-radius: 24px 24px 0 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        /* override inline styles on Low Tokens modal */
        padding-top: 1.75rem !important;
    }
    /* Drag-handle pill */
    .modal-content::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: var(--border-light);
        border-radius: 2px;
        margin: 0 auto 1.5rem;
        opacity: 0.5;
    }
    .modal-close {
        font-size: 1.4rem !important;
        top: 1.1rem !important;
        right: 1.25rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    /* Headings inside any modal */
    #authTitle,
    .modal-content h2 {
        font-size: 1.4rem !important;
        margin-bottom: 1.25rem !important;
        line-height: 1.25 !important;
        text-align: center !important;
    }
    /* Auth inputs already full-width — just reduce vertical padding a touch */
    .auth-input {
        padding: 0.8rem 1rem !important;
        font-size: 1rem !important; /* ≥16px prevents iOS zoom */
    }
    .auth-pw-wrap .auth-input {
        padding-right: 3rem !important;
    }
    .form-group { margin-bottom: 0.85rem !important; }
    .form-group label {
        font-size: 0.75rem !important;
        margin-bottom: 0.3rem !important;
    }
    .form-group input,
    .form-group select {
        padding: 0.8rem 1rem !important;
        font-size: 1rem !important; /* prevents iOS zoom */
    }
    #forgotPasswordWrapper { margin-bottom: 0.75rem !important; }
    .auth-divider { margin: 0.85rem 0 !important; }
    /* Low-tokens modal: override inline grid to stack buttons */
    #lowTokensModal .modal-content div[style*="grid-template-columns"],
    .modal-content div[style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    /* All buttons inside any modal — full width, comfortable tap target */
    .modal-content button:not(.modal-close):not(.auth-eye-btn):not(.auth-forgot-btn):not(.auth-switch-btn),
    .modal-content a.btn-pill {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.85rem 1.25rem !important;
        font-size: 0.9rem !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
    /* Low-tokens icon: shrink on small screens */
    #lowTokensModal .modal-content > div > div:first-child {
        width: 56px !important;
        height: 56px !important;
    }
    #lowTokensModal h2 {
        font-size: 1.4rem !important;
    }
    #lowTokensMessage {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.5rem !important; }
    .hero-content h1 { font-size: 2.8rem !important; }
    .btn-pill, .btn-purchase, .match-btn, .pulse-cta { 
        padding: 0.8rem 1.25rem !important; 
        width: 100% !important; 
        min-width: unset !important;
        justify-content: center !important; 
        font-size: 0.85rem !important;
    }
    .pricing-card { padding: 2rem 1.25rem !important; }
    .cta-free-pill { margin-bottom: 1.25rem !important; font-size: 0.6rem !important; }
    .cta-box .cta-sub { font-size: 0.95rem !important; margin-bottom: 2rem !important; }
    .pricing-header h1 { font-size: 2.2rem !important; }
    .price-val { font-size: 3rem !important; }
}

/* --- COMPREHENSIVE MOBILE UI REGRESSION OVERRIDES (v2.3) --- */
@media (max-width: 768px) {
    /* 1. Action Bar Fixed (Buttons Below Readings) */
    .action-bar-fixed {
        margin: 3rem auto 2rem auto !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        background: var(--card-bg) !important;
        border: 1px solid var(--border-light) !important;
        padding: 1rem !important;
        border-radius: 20px !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
    }

    .action-bar-fixed .separator {
        display: none !important;
    }

    .action-bar-fixed button,
    .action-bar-fixed a {
        width: 100% !important;
        padding: 0.8rem 0.5rem !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 12px !important;
        justify-content: center !important;
        font-size: 0.75rem !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    /* 2. Modals & Overlay Popups Bottom Sheet Behavior */
    .purchase-selection-panel,
    .locked-overlay-popup {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: unset !important;
        max-height: 92vh !important;
        padding: 1.75rem 1.5rem 2rem !important;
        border-radius: 24px 24px 0 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.2) !important;
        box-sizing: border-box !important;
    }

    /* Add drag handle indicator to overlay popups */
    .purchase-selection-panel::before,
    .locked-overlay-popup::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: var(--border-light);
        border-radius: 2px;
        margin: 0 auto 1.25rem;
        opacity: 0.6;
    }

    /* 3. Modal Inner Button Containers & Grid Alignment */
    .purchase-selection-panel div[style*="display: flex"],
    .locked-overlay-popup div[style*="display: flex"],
    .modal-content div[style*="display: grid"],
    .modal-content div[style*="display: flex"],
    .confirm-btn-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.85rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .purchase-selection-panel button:not(.modal-close),
    .locked-overlay-popup button:not(.modal-close),
    .modal-content button:not(.modal-close):not(.auth-eye-btn):not(.auth-forgot-btn):not(.auth-switch-btn) {
        width: 100% !important;
        margin: 0 !important;
        padding: 0.8rem 1.25rem !important;
        font-size: 0.9rem !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    /* 4. Global Stats & Pillar Cards Adjustments */
    .header-stats-group {
        gap: 0.8rem !important;
        width: 100% !important;
    }

    .header-stats-group .glass-card {
        flex: 1 1 45% !important;
        min-width: unset !important;
        padding: 0.8rem 1rem !important;
        box-sizing: border-box !important;
    }

    .reading-pillars {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .forecast-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
}

/* --- AUTH CONSENT ROW (GDPR Compliance) --- */
.auth-consent-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1rem 0;
    cursor: pointer;
    text-align: left;
}

.auth-consent-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.auth-consent-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    user-select: none;
}

.auth-consent-label a {
    color: var(--accent);
    text-decoration: underline;
}

/* --- FLOATING AUDIO PLAYER SYSTEM --- */
.floating-audio-player {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    width: calc(100% - 4rem);
    max-width: 900px;
    background: var(--card-bg);
    border: 2px solid var(--text-primary);
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: 6px 6px 0px var(--text-primary);
    z-index: 9999;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    opacity: 1;
    visibility: visible;
}

.floating-audio-player.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(20px);
    pointer-events: none;
}

/* Left controls: Play/Pause */
.player-controls-left {
    display: flex;
    align-items: center;
}

/* Buttons */
.player-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    position: relative;
}

.player-btn:hover {
    background: var(--hover-sand);
    color: var(--accent);
}

.player-btn.active {
    background: rgba(162, 56, 255, 0.1);
    color: var(--accent);
}

[data-theme='dark'] .player-btn.active {
    background: rgba(255, 209, 255, 0.15);
    color: var(--accent);
}

/* Specific button styles */
#btnPlayerPlayPause {
    background: var(--text-primary);
    color: var(--bg-warm);
    width: 44px;
    height: 44px;
    box-shadow: var(--shadow-sm);
}

#btnPlayerPlayPause:hover {
    background: var(--accent);
    color: var(--accent-contrast);
    transform: scale(1.05);
}

#btnPlayerSpeed {
    font-size: 0.85rem;
    font-weight: 700;
    width: auto;
    padding: 0 8px;
    border-radius: 8px;
}

/* Progress bar container */
.player-progress-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    min-width: 32px;
}

/* Slider wrappers */
.player-slider-wrapper {
    position: relative;
    flex-grow: 1;
    height: 6px;
    background: var(--border-light);
    border-radius: 3px;
    display: flex;
    align-items: center;
}

.player-slider {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    margin: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    z-index: 3;
}

/* Webkit input slider styling */
.player-slider::-webkit-slider-runnable-track {
    background: transparent;
}

.player-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--text-primary);
    border: 2px solid var(--bg-warm);
    box-shadow: var(--shadow-sm);
    transition: transform 0.1s ease;
    margin-top: -4px; /* Align to track center */
}

.player-slider:active::-webkit-slider-thumb,
.player-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--accent);
}

/* Firefox input slider styling */
.player-slider::-moz-range-track {
    background: transparent;
}

.player-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-primary);
    border: 2px solid var(--bg-warm);
    box-shadow: var(--shadow-sm);
    transition: transform 0.1s ease;
}

.player-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: var(--accent);
}

.player-slider-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--text-primary);
    border-radius: 3px;
    z-index: 1;
}

/* Right controls */
.player-controls-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.separator-v {
    width: 1px;
    height: 20px;
    background: var(--border-light);
    margin: 0 0.25rem;
}

/* --- READ-ALONG HIGHLIGHT STYLING REMOVED --- */

/* Responsive adjustment for Mobile */
@media (max-width: 768px) {
    .floating-audio-player {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        transform: translateY(0);
        width: calc(100% - 2rem);
        border-radius: 8px;
        padding: 0.8rem 1rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .floating-audio-player.hidden {
        transform: translateY(20px);
    }
    
    .player-progress-container {
        width: 100%;
        order: 3; /* Push timeline to the second row */
        margin-top: 0.25rem;
    }
    
    .player-controls-right {
        gap: 0.25rem;
    }
    
    .player-btn {
        width: 36px;
        height: 36px;
    }
    
    #btnPlayerPlayPause {
        width: 38px;
        height: 38px;
    }
}

/* =============================================
   MOBILE PERFORMANCE OVERRIDES
   Disable GPU-expensive effects on small screens
   ============================================= */
@media (max-width: 768px) {
    /* Kill all remaining backdrop blurs — each one forces a GPU compositing layer */
    *:not(.modal) {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Isolate the SVG wheel's paint layer so it doesn't force full-page recomposition */
    #chartWheelContainer {
        contain: layout paint;
        will-change: transform;
    }

    /* Reduce transition duration globally on mobile — 0.4s feels laggy on low-end devices */
    * {
        transition-duration: 0.2s !important;
    }

    /* Exception: keep the mobile menu slide smooth */
    .mobile-menu {
        transition-duration: 0.3s !important;
    }
}
