/* ==========================================================================
   Stellarme — Mystic Cosmic Stylesheet
   Deep celestial dark theme. Gold & violet accents. Destiny-driven design.
   ========================================================================== */

/* ==========================================================================
   Google Fonts (loaded via layout.html)
   Cinzel — ancient/ceremonial headings
   Inter — clean modern body
   ========================================================================== */

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
    /* Cosmic palette */
    --brand-primary: #7c6cf0;
    --brand-secondary: #a78bfa;
    --brand-accent: #d4af37;
    --brand-accent-light: #f0d77b;
    --brand-dark: #0a0a1a;
    --brand-darker: #060612;
    --brand-surface: #111127;
    --brand-surface-2: #1a1a3e;
    --brand-light: #e8e6f0;
    --brand-muted: #8a87a8;
    --brand-border: rgba(124, 108, 240, 0.15);
    --brand-border-gold: rgba(212, 175, 55, 0.25);
    --brand-glow: rgba(124, 108, 240, 0.4);
    --brand-glow-gold: rgba(212, 175, 55, 0.3);

    /* Bootstrap overrides */
    --bs-primary: #7c6cf0;
    --bs-primary-rgb: 124, 108, 240;
    --bs-secondary: #a78bfa;
    --bs-secondary-rgb: 167, 139, 250;
    --bs-link-color: #a78bfa;
    --bs-link-hover-color: #d4af37;
    --bs-body-bg: #0a0a1a;
    --bs-body-color: #d0cde0;

    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: "Cinzel", "Palatino Linotype", "Times New Roman", serif;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 0 8px rgba(124, 108, 240, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 20px rgba(124, 108, 240, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(124, 108, 240, 0.1);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.15);

    --radius-sm: 0.5rem;
    --radius-md: 0.875rem;
    --radius-lg: 1.25rem;
}

/* ==========================================================================
   Cosmic Background — stars & nebula
   ========================================================================== */

body {
    font-family: var(--font-body);
    color: var(--brand-light);
    background-color: var(--brand-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Animated starfield background */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 60% 20%, rgba(255,255,255,0.35) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 60%, rgba(255,255,255,0.25) 0%, transparent 100%),
        radial-gradient(1px 1px at 10% 90%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1.2px 1.2px at 70% 80%, rgba(255,255,255,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 50% 50%, rgba(255,255,255,0.15) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 90% 10%, rgba(212,175,55,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 30% 50%, rgba(124,108,240,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 85% 35%, rgba(212,175,55,0.2) 0%, transparent 100%);
    background-size: 550px 550px;
    animation: starDrift 120s linear infinite;
    pointer-events: none;
}

/* Deep nebula glow */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 15% 85%, rgba(124, 108, 240, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 15%, rgba(212, 175, 55, 0.04) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 50%, rgba(45, 27, 105, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

@keyframes starDrift {
    from { transform: translateY(0); }
    to { transform: translateY(-550px); }
}

/* Subtle twinkling for emphasis elements */
@keyframes twinkle {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.2); }
    50% { box-shadow: 0 0 35px rgba(212, 175, 55, 0.4); }
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.02em;
    color: #fff;
}

h1 { letter-spacing: 0.04em; }

.display-4,
.display-5,
.display-6 {
    letter-spacing: 0.03em;
    text-transform: none;
}

.lead {
    font-weight: 400;
    line-height: 1.8;
    color: var(--brand-muted);
}

/* Gold shimmer text for key headings */
.text-gold,
.brand-text {
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-light), var(--brand-accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
}

a {
    color: var(--brand-secondary);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--brand-accent);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

/* ==========================================================================
   Navbar — Glass morphism cosmic
   ========================================================================== */

.navbar {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    backdrop-filter: blur(16px) saturate(1.2);
    background-color: rgba(10, 10, 26, 0.85) !important;
    border-bottom: 1px solid var(--brand-border) !important;
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.navbar .nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--brand-muted) !important;
    padding: 0.5rem 0.85rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    letter-spacing: 0.01em;
}

.navbar .nav-link:hover {
    color: var(--brand-accent) !important;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

.dropdown-menu {
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    --bs-dropdown-bg: var(--brand-surface);
    --bs-dropdown-color: var(--brand-light);
    --bs-dropdown-link-color: var(--brand-light);
    --bs-dropdown-link-hover-bg: rgba(124, 108, 240, 0.1);
    --bs-dropdown-link-hover-color: var(--brand-accent);
    --bs-dropdown-link-active-bg: rgba(124, 108, 240, 0.15);
    --bs-dropdown-link-active-color: var(--brand-accent);
    --bs-dropdown-divider-bg: var(--brand-border);
}

.dropdown-item {
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    padding: 0.55rem 0.85rem;
    color: var(--brand-light);
    transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(124, 108, 240, 0.1);
    color: var(--brand-accent);
}

.dropdown-item.active,
.dropdown-item:active {
    background: rgba(124, 108, 240, 0.15);
    color: var(--brand-accent);
}

.dropdown-item.text-danger {
    color: #ff8e8e !important;
}
.dropdown-item.text-danger:hover,
.dropdown-item.text-danger:focus {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b !important;
}

.dropdown-divider {
    border-top-color: var(--brand-border);
}

.navbar-toggler {
    border: 1px solid var(--brand-border) !important;
    color: var(--brand-light);
}

.navbar-toggler-icon {
    filter: invert(0.8) sepia(0.3) hue-rotate(200deg);
}

/* Registration button — vertically center within navbar */
.navbar .nav-item .btn-sm {
    line-height: 1.5;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    margin-top: 0;
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .navbar .nav-item.d-flex {
        display: block !important;
        margin-top: 0.5rem;
    }
    .navbar .nav-item.d-flex .btn-sm {
        display: inline-block;
    }
}

/* ==========================================================================
   Buttons — Cosmic styled
   ========================================================================== */

.btn-primary {
    background: linear-gradient(135deg, var(--brand-accent) 0%, #c9a84c 100%);
    border: none;
    color: var(--brand-dark);
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.04em;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--brand-accent-light) 0%, var(--brand-accent) 100%);
    color: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-primary {
    color: var(--brand-accent);
    border: 1px solid var(--brand-accent);
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.04em;
    border-radius: var(--radius-sm);
    background: transparent;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn-outline-primary:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--brand-accent);
    color: var(--brand-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

.btn-outline-secondary {
    color: var(--brand-muted);
    border-color: var(--brand-border);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: rgba(124, 108, 240, 0.08);
    border-color: var(--brand-secondary);
    color: var(--brand-secondary);
}

.btn-outline-secondary.active,
.btn-outline-secondary:active {
    background: rgba(124, 108, 240, 0.15) !important;
    border-color: var(--brand-primary) !important;
    color: var(--brand-light) !important;
}

.btn-light {
    background: rgba(255, 255, 255, 0.95);
    color: var(--brand-dark);
    border: none;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn-light:hover {
    background: #fff;
    color: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-lg {
    padding: 0.8rem 1.8rem;
    font-size: 0.92rem;
    border-radius: var(--radius-md);
}

.btn-sm {
    font-size: 0.78rem;
    letter-spacing: 0.03em;
}

/* Bootstrap utility overrides for dark theme */
.bg-primary { background-color: var(--brand-primary) !important; }
.bg-secondary { background-color: var(--brand-secondary) !important; }
.text-primary { color: var(--brand-primary) !important; }
.text-secondary { color: var(--brand-secondary) !important; }
.text-muted { color: var(--brand-muted) !important; }
.text-dark { color: var(--brand-light) !important; }
.text-success { color: #4ecdc4 !important; }
.text-warning { color: var(--brand-accent) !important; }
.text-danger { color: #ff6b6b !important; }
.border-primary { border-color: var(--brand-primary) !important; }
.badge.bg-primary { background-color: var(--brand-primary) !important; }
.badge.bg-secondary { background-color: var(--brand-secondary) !important; }
.bg-light { background-color: var(--brand-surface) !important; }
.bg-white { background-color: var(--brand-surface) !important; }
.border-bottom { border-color: var(--brand-border) !important; }
.border-top { border-color: var(--brand-border) !important; }
.border-end { border-color: var(--brand-border) !important; }

/* ==========================================================================
   Cards — Cosmic glass morphism
   ========================================================================== */

.card {
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    color: var(--brand-light);
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--brand-border);
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.3);
}

.card.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.card-header {
    background: rgba(124, 108, 240, 0.1);
    border-bottom: 1px solid var(--brand-border);
}

.card-footer {
    border-top: 1px solid var(--brand-border);
    background: transparent;
}

.card-img-top {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* Element badges */
.bg-element-fire { background: linear-gradient(135deg, #e74c3c, #ff6b6b) !important; color: #fff; }
.bg-element-earth { background: linear-gradient(135deg, #27ae60, #4ecdc4) !important; color: #fff; }
.bg-element-air { background: linear-gradient(135deg, #3498db, #74b9ff) !important; color: #fff; }
.bg-element-water { background: linear-gradient(135deg, #2980b9, #6c5ce7) !important; color: #fff; }

/* Score bars */
.score-bar {
    height: 10px;
    background: rgba(124, 108, 240, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
    transition: width 0.8s ease;
}

/* Content body */
.content-body p { margin-bottom: 1rem; line-height: 1.8; color: var(--brand-light); }
.content-body h2 { margin-top: 1.5rem; margin-bottom: 0.75rem; }
.content-body ul, .content-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--brand-muted);
}

/* ==========================================================================
   Hero Section — Cosmic gateway
   ========================================================================== */

.hero-section {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(124, 108, 240, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(45, 27, 105, 0.15) 0%, transparent 70%),
        var(--brand-darker);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}

.hero-section::after {
    content: "";
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 108, 240, 0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: float 10s ease-in-out infinite reverse;
}

.hero-visual {
    position: relative;
}

/* ── Hero enhancements — glow orbs, sparkles, entrance reveal ─────────── */

.hero-section--enhanced {
    isolation: isolate;
}

/* Big radial orb behind the wheel */
.hero-orb {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 460px;
    height: 460px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.35) 0%, rgba(124, 108, 240, 0.18) 40%, transparent 70%);
    filter: blur(30px);
    pointer-events: none;
    z-index: 0;
    animation: heroOrbPulse 6s ease-in-out infinite;
}
.hero-orb--2 {
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.4) 0%, transparent 70%);
    filter: blur(20px);
    animation: heroOrbPulse 5s ease-in-out 0.8s infinite;
}
@keyframes heroOrbPulse {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

/* Natal wheel — slow continuous rotation + soft glow */
.hero-wheel {
    position: relative;
    z-index: 1;
    max-width: 100%;
    filter: drop-shadow(0 0 24px rgba(212, 175, 55, 0.35)) drop-shadow(0 0 50px rgba(124, 108, 240, 0.25));
    animation: heroWheelSpin 80s linear infinite, heroWheelFloat 7s ease-in-out infinite;
    transform-origin: 50% 50%;
}
@keyframes heroWheelSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes heroWheelFloat {
    0%, 100% { filter: drop-shadow(0 0 24px rgba(212, 175, 55, 0.35)) drop-shadow(0 0 50px rgba(124, 108, 240, 0.25)); }
    50% { filter: drop-shadow(0 0 34px rgba(212, 175, 55, 0.55)) drop-shadow(0 0 70px rgba(124, 108, 240, 0.4)); }
}

/* Twinkling sparkles scattered across hero */
.hero-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.8), 0 0 14px 4px rgba(212, 175, 55, 0.5);
    pointer-events: none;
    z-index: 1;
    animation: sparkleTwinkle 3s ease-in-out infinite;
}
.hero-sparkle--1 { top: 18%; left: 12%; animation-delay: 0s; }
.hero-sparkle--2 { top: 32%; left: 78%; width: 3px; height: 3px; animation-delay: 0.8s; }
.hero-sparkle--3 { top: 68%; left: 22%; width: 2px; height: 2px; animation-delay: 1.5s; }
.hero-sparkle--4 { top: 76%; left: 62%; width: 3px; height: 3px; animation-delay: 2.1s; }
@keyframes sparkleTwinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* Shooting star — diagonal streak, runs once every ~8s */
.hero-shooting-star {
    position: absolute;
    top: 20%;
    left: -10%;
    width: 140px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), rgba(212, 175, 55, 0.8), transparent);
    border-radius: 999px;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transform: rotate(18deg);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9));
    animation: shootingStar 8s linear 1s infinite;
}
@keyframes shootingStar {
    0% { opacity: 0; transform: translate(0, 0) rotate(18deg); }
    5% { opacity: 1; }
    20% { opacity: 1; }
    30% { opacity: 0; transform: translate(85vw, 28vh) rotate(18deg); }
    100% { opacity: 0; transform: translate(85vw, 28vh) rotate(18deg); }
}

/* Entrance reveal — staggered fade-in-up on page load */
.hero-reveal {
    opacity: 0;
    transform: translateY(24px);
    animation: heroReveal 0.9s cubic-bezier(0.22, 0.9, 0.3, 1) forwards;
}
.hero-reveal--1 { animation-delay: 0.1s; }
.hero-reveal--2 { animation-delay: 0.25s; }
.hero-reveal--3 { animation-delay: 0.4s; }
.hero-reveal--4 { animation-delay: 0.55s; }
.hero-reveal--5 { animation-delay: 0.7s; }
.hero-reveal--6 { animation: heroRevealZoom 1.2s cubic-bezier(0.22, 0.9, 0.3, 1) 0.3s forwards; opacity: 0; transform: scale(0.88); }

@keyframes heroReveal {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes heroRevealZoom {
    to { opacity: 1; transform: scale(1); }
}

/* Respect reduced-motion users */
@media (prefers-reduced-motion: reduce) {
    .hero-reveal,
    .hero-reveal--6 { animation: none !important; opacity: 1 !important; transform: none !important; }
    .hero-wheel { animation: none !important; }
    .hero-orb, .hero-orb--2 { animation: none !important; }
    .hero-sparkle, .hero-shooting-star { display: none; }
}

.hero-icon {
    font-size: 8rem;
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary), var(--brand-accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.5;
    animation: shimmer 6s ease-in-out infinite, float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.3));
}

.min-vh-50 {
    min-height: 55vh;
}

/* ==========================================================================
   Calculator Cards — Mystical portals
   ========================================================================== */

.calculator-card {
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.calculator-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.calculator-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.3);
}

.calculator-card:hover::before {
    opacity: 1;
}

.calculator-card__icon {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15), rgba(124, 108, 240, 0.1));
    border: 1px solid var(--brand-border-gold);
    margin: 0 auto;
}

.calculator-card__icon i {
    font-size: 1.6rem;
    color: var(--brand-accent);
}

/* ==========================================================================
   Steps / How it Works — Mystic path
   ========================================================================== */

.step-number {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-accent), #c9a84c);
    color: var(--brand-dark);
    font-weight: 800;
    font-size: 1.15rem;
    font-family: var(--font-heading);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* ==========================================================================
   Result Pages
   ========================================================================== */

.result-header {
    background:
        radial-gradient(ellipse at 30% 50%, rgba(124, 108, 240, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        var(--brand-darker);
}

/* Element bars */
.element-bar.element-fire { background: linear-gradient(90deg, #e74c3c, #ff6b6b); }
.element-bar.element-earth { background: linear-gradient(90deg, #27ae60, #4ecdc4); }
.element-bar.element-air { background: linear-gradient(90deg, #3498db, #74b9ff); }
.element-bar.element-water { background: linear-gradient(90deg, #2980b9, #6c5ce7); }

.progress {
    border-radius: var(--radius-sm);
    background-color: rgba(124, 108, 240, 0.08);
    height: 8px;
}

.progress-bar {
    border-radius: var(--radius-sm);
    transition: width 0.8s ease;
}

/* Premium lock overlay */
.premium-blur {
    filter: blur(4px);
    user-select: none;
}

.premium-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 26, 0.75);
    backdrop-filter: blur(4px);
    color: var(--brand-accent);
    border-radius: var(--radius-md);
}

/* ==========================================================================
   Compatibility Score
   ========================================================================== */

.overall-score-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary));
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
    position: relative;
}

.overall-score-circle::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary), var(--brand-accent));
    z-index: -1;
    animation: pulseGlow 3s ease-in-out infinite;
}

.overall-score-value {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--brand-dark);
}

.score-bar {
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: rgba(124, 108, 240, 0.08);
}

.score-bar-fill {
    transition: width 0.8s ease;
    border-radius: var(--radius-sm);
}

.score-bar-romance { background: linear-gradient(90deg, #ff6b6b, #ff8e8e); }
.score-bar-communication { background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary)); }
.score-bar-conflict { background: linear-gradient(90deg, var(--brand-accent), var(--brand-accent-light)); }
.score-bar-longterm { background: linear-gradient(90deg, #4ecdc4, #6ee7de); }
.score-bar-intimacy { background: linear-gradient(90deg, #e74c3c, #ff6b6b); }
.score-bar-values { background: linear-gradient(90deg, #3498db, #74b9ff); }

/* ==========================================================================
   Dashboard — Dark cosmic sidebar
   ========================================================================== */

.dashboard-body main {
    min-height: calc(100vh - 60px);
}

.dashboard-sidebar {
    min-height: calc(100vh - 60px);
    position: sticky;
    top: 56px;
    background: var(--brand-darker) !important;
    border-color: var(--brand-border) !important;
}

.dashboard-sidebar .nav-link {
    color: var(--brand-muted);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.dashboard-sidebar .nav-link:hover {
    color: var(--brand-accent);
    background: rgba(212, 175, 55, 0.05);
}

.dashboard-sidebar .nav-link.active {
    color: var(--brand-accent);
    background: rgba(212, 175, 55, 0.1);
    font-weight: 600;
    border-left: 2px solid var(--brand-accent);
}

/* ==========================================================================
   Global account sidebar — shown on all pages when user is logged in
   ========================================================================== */

.layout-with-sidebar {
    display: flex;
    align-items: flex-start;
    min-height: calc(100vh - 60px);
}

.layout-no-sidebar {
    min-height: calc(100vh - 60px);
}
.layout-no-sidebar .layout-main { width: 100%; }

.account-sidebar {
    flex: 0 0 240px;
    width: 240px;
    align-self: stretch; /* fill flex-container height all the way down */
    position: sticky;
    top: 56px; /* below sticky navbar */
    height: calc(100vh - 56px);
    overflow-y: auto;
    z-index: 20;
    display: flex;
    flex-direction: column;
    /* No bg/border on the outer aside — the dark chrome lives on the
       inner layer so it always hugs the actual menu content, and the
       subscriber rounded box doesn't show dark strips above/below. */
}

.account-sidebar-inner {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    height: 100%;
    background: var(--brand-darker);
    border-right: 1px solid var(--brand-border);
}

.account-sidebar-inner.account-sidebar--subscriber {
    border-right: 1px solid rgba(212, 175, 55, 0.35);
}

/* Legal requisites block (footer, legal page, contact page, PDFs) */
.legal-requisites__heading { color: var(--brand-light, #e8e8ef); }
.legal-requisites--boxed {
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md, 12px);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.account-sidebar-inner .avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.account-nav .nav-link {
    color: var(--brand-muted);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
    transition: all 0.18s ease;
    display: flex;
    align-items: center;
}

.account-nav .nav-link:hover {
    color: var(--brand-accent);
    background: rgba(212, 175, 55, 0.06);
}

.account-nav .nav-link.active {
    color: var(--brand-accent);
    background: rgba(212, 175, 55, 0.1);
    font-weight: 600;
    border-left: 2px solid var(--brand-accent);
}

.layout-main {
    min-width: 0; /* allow child .container to shrink instead of overflowing */
    flex: 1 1 auto;
}

/* Mobile offcanvas body styling — mirror the dark sidebar look */
.account-sidebar-offcanvas {
    background: var(--brand-darker);
    color: var(--brand-text, #e8e8ef);
    max-width: 280px;
}
.account-sidebar-offcanvas .offcanvas-header {
    border-bottom: 1px solid var(--brand-border);
}
.account-sidebar-offcanvas .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* ==========================================================================
   CTA Section — Glowing destiny portal
   ========================================================================== */

.cta-section {
    background:
        radial-gradient(ellipse at 30% 50%, rgba(212, 175, 55, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(124, 108, 240, 0.2) 0%, transparent 60%),
        linear-gradient(135deg, #1a0a3e 0%, #0d0f1e 50%, #1a0a3e 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--brand-border-gold);
    border-bottom: 1px solid var(--brand-border-gold);
}

.cta-section::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.04);
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}

.cta-section::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(124, 108, 240, 0.04);
    pointer-events: none;
    animation: float 10s ease-in-out infinite reverse;
}

/* ==========================================================================
   Forms — Mystic inputs
   ========================================================================== */

.form-control,
.form-select {
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.9rem;
    font-size: 0.925rem;
    color: var(--brand-light);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Date/time inputs: render native controls (year spinner arrows, calendar icon) in dark scheme */
input[type="date"].form-control,
input[type="time"].form-control,
input[type="datetime-local"].form-control,
input[type="month"].form-control,
input[type="week"].form-control,
input[type="number"].form-control {
    color-scheme: dark;
}

input[type="date"].form-control::-webkit-calendar-picker-indicator,
input[type="time"].form-control::-webkit-calendar-picker-indicator,
input[type="datetime-local"].form-control::-webkit-calendar-picker-indicator,
input[type="month"].form-control::-webkit-calendar-picker-indicator,
input[type="week"].form-control::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(2);
    opacity: 0.85;
    cursor: pointer;
}

input[type="date"].form-control::-webkit-inner-spin-button,
input[type="time"].form-control::-webkit-inner-spin-button,
input[type="datetime-local"].form-control::-webkit-inner-spin-button,
input[type="month"].form-control::-webkit-inner-spin-button,
input[type="week"].form-control::-webkit-inner-spin-button,
input[type="number"].form-control::-webkit-inner-spin-button,
input[type="number"].form-control::-webkit-outer-spin-button {
    filter: invert(1) brightness(2);
    opacity: 1;
}

.form-control::placeholder {
    color: rgba(138, 135, 168, 0.6);
}

.form-control:focus,
.form-select:focus {
    background: var(--brand-surface-2);
    border-color: var(--brand-accent);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--brand-light);
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
}

.form-text {
    font-size: 0.8rem;
    color: var(--brand-muted);
}

/* Birth place map */
#birthMap {
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
}

#cityResults {
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-sm);
}

#cityResults .list-group-item {
    font-size: 0.85rem;
    border-left: none;
    border-right: none;
    border-color: var(--brand-border);
    background: var(--brand-surface);
    color: var(--brand-light);
    cursor: pointer;
}

#cityResults .list-group-item:hover {
    background: var(--brand-surface-2);
    color: var(--brand-accent);
}

.form-check-input {
    background-color: var(--brand-surface);
    border-color: var(--brand-border);
}

.form-check-input:checked {
    background-color: var(--brand-accent);
    border-color: var(--brand-accent);
}

.form-check-label {
    color: var(--brand-muted);
}

.form-select option {
    background: var(--brand-surface);
    color: var(--brand-light);
}

/* ==========================================================================
   Accordion — Mystic folds
   ========================================================================== */

.accordion-button {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem 1.25rem;
    background: var(--brand-surface);
    color: var(--brand-light);
    border-radius: var(--radius-sm) !important;
    font-family: var(--font-heading);
    letter-spacing: 0.01em;
}

.accordion-button::after {
    filter: invert(0.7) sepia(0.3) hue-rotate(200deg);
}

.accordion-button:not(.collapsed) {
    color: var(--brand-accent);
    background: var(--brand-surface-2);
    box-shadow: none;
}

.accordion-button:not(.collapsed)::after {
    filter: invert(0.6) sepia(1) saturate(3) hue-rotate(15deg);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--brand-border);
}

.accordion-item {
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.accordion-body {
    background: var(--brand-surface);
    color: var(--brand-muted);
}

.accordion-collapse {
    background: var(--brand-surface);
}

/* ==========================================================================
   Tables — Dark glass
   ========================================================================== */

.table {
    font-size: 0.9rem;
    color: var(--brand-light);
    --bs-table-bg: var(--brand-surface);
    --bs-table-hover-bg: rgba(124, 108, 240, 0.06);
    --bs-table-border-color: var(--brand-border);
    border-color: var(--brand-border);
}

.table th {
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-accent);
    font-family: var(--font-heading);
    background: rgba(212, 175, 55, 0.05);
    border-color: var(--brand-border);
}

.table td {
    border-color: var(--brand-border);
}

.table-light {
    --bs-table-bg: rgba(212, 175, 55, 0.05) !important;
    --bs-table-color: var(--brand-accent) !important;
    --bs-table-border-color: var(--brand-border);
    border-color: var(--brand-border);
    color: var(--brand-accent) !important;
}

.table-light th,
.table-light td {
    color: var(--brand-accent) !important;
}

/* Bootstrap table variant overrides — prevent black text on dark theme */
.table-primary {
    --bs-table-bg: rgba(124, 108, 240, 0.1) !important;
    --bs-table-color: var(--brand-light) !important;
    --bs-table-border-color: var(--brand-border);
    color: var(--brand-light) !important;
}

.table-primary td,
.table-primary th {
    color: var(--brand-light) !important;
}

.table-success {
    --bs-table-bg: rgba(78, 205, 196, 0.08) !important;
    --bs-table-color: #4ecdc4 !important;
    color: #4ecdc4 !important;
}

.table-warning {
    --bs-table-bg: rgba(212, 175, 55, 0.08) !important;
    --bs-table-color: var(--brand-accent) !important;
    color: var(--brand-accent) !important;
}

.table-danger {
    --bs-table-bg: rgba(255, 107, 107, 0.08) !important;
    --bs-table-color: #ff8e8e !important;
    color: #ff8e8e !important;
}

.table-info {
    --bs-table-bg: rgba(124, 108, 240, 0.06) !important;
    --bs-table-color: var(--brand-secondary) !important;
    color: var(--brand-secondary) !important;
}

.table-active {
    --bs-table-bg: rgba(124, 108, 240, 0.08) !important;
    --bs-table-color: var(--brand-light) !important;
    color: var(--brand-light) !important;
}

.table-secondary {
    --bs-table-bg: rgba(138, 135, 168, 0.08) !important;
    --bs-table-color: var(--brand-muted) !important;
    color: var(--brand-muted) !important;
}

/* Force all table cells to inherit proper color */
.table > :not(caption) > * > * {
    color: inherit;
}

.table-hover > tbody > tr:hover > * {
    --bs-table-color-state: var(--brand-light);
    background-color: rgba(124, 108, 240, 0.06);
    color: var(--brand-light) !important;
}

/* Striped variant */
.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-color-type: var(--brand-light);
    color: var(--brand-light);
}

.table-hover > tbody > tr:hover > * {
    background-color: rgba(124, 108, 240, 0.06);
    color: var(--brand-light);
}

/* ==========================================================================
   Footer — Cosmic base
   ========================================================================== */

.site-footer {
    background: var(--brand-darker);
    border-top: 1px solid var(--brand-border);
}

.site-footer h5,
.site-footer h6 {
    color: var(--brand-accent);
    font-family: var(--font-heading);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.social-links a {
    color: var(--brand-muted);
    font-size: 1.15rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.social-links a:hover {
    color: var(--brand-accent);
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

/* ==========================================================================
   Blog / Articles — Dark reading
   ========================================================================== */

.article-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--brand-light);
}

.article-body h2 { margin-top: 2rem; margin-bottom: 1rem; font-size: 1.5rem; }
.article-body h3 { margin-top: 1.5rem; margin-bottom: 0.75rem; font-size: 1.25rem; }
.article-body p { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    border: 1px solid var(--brand-border);
}

.article-body blockquote {
    border-left: 3px solid var(--brand-accent);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--brand-muted);
}

/* ==========================================================================
   Legal pages
   ========================================================================== */

.legal-content { font-size: 0.95rem; line-height: 1.85; color: var(--brand-light); }
.legal-content h2 { margin-top: 2rem; margin-bottom: 0.75rem; font-size: 1.3rem; }
.legal-content h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; font-size: 1.1rem; }

/* ==========================================================================
   Disclaimer
   ========================================================================== */

.disclaimer-block {
    border-left: 3px solid var(--brand-border-gold);
    background: rgba(212, 175, 55, 0.03);
}

/* ==========================================================================
   Badges
   ========================================================================== */

.badge {
    font-weight: 600;
    letter-spacing: 0.03em;
    font-family: var(--font-heading);
}

.badge.bg-light {
    background: rgba(124, 108, 240, 0.1) !important;
    color: var(--brand-secondary) !important;
    border: 1px solid var(--brand-border);
}

.badge.bg-warning {
    background: rgba(212, 175, 55, 0.2) !important;
    color: var(--brand-accent) !important;
}

.badge.bg-white {
    background: var(--brand-surface-2) !important;
    color: var(--brand-muted) !important;
}

/* ==========================================================================
   Alerts — Dark themed
   ========================================================================== */

.alert {
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    border: 1px solid var(--brand-border);
    background: var(--brand-surface);
    color: var(--brand-light);
}

.alert-success {
    background: rgba(78, 205, 196, 0.08) !important;
    border-color: rgba(78, 205, 196, 0.2) !important;
    color: #4ecdc4 !important;
}

.alert-danger {
    background: rgba(255, 107, 107, 0.08) !important;
    border-color: rgba(255, 107, 107, 0.2) !important;
    color: #ff8e8e !important;
}

.alert-info {
    background: rgba(124, 108, 240, 0.08) !important;
    border-color: rgba(124, 108, 240, 0.2) !important;
    color: var(--brand-secondary) !important;
}

.alert-link {
    color: var(--brand-accent) !important;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

nav[aria-label="breadcrumb"] {
    background: var(--brand-darker) !important;
    border-color: var(--brand-border) !important;
}

.breadcrumb {
    font-size: 0.8rem;
}

.breadcrumb-item a {
    color: var(--brand-muted);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--brand-accent);
}

.breadcrumb-item.active {
    color: var(--brand-light);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--brand-muted);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.page-link {
    background: var(--brand-surface);
    border-color: var(--brand-border);
    color: var(--brand-muted);
}

.page-link:hover {
    background: var(--brand-surface-2);
    border-color: var(--brand-accent);
    color: var(--brand-accent);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--brand-accent), #c9a84c);
    border-color: var(--brand-accent);
    color: var(--brand-dark);
}

/* ==========================================================================
   Misc Bootstrap overrides for dark theme
   ========================================================================== */

.list-group-item {
    background: var(--brand-surface);
    border-color: var(--brand-border);
    color: var(--brand-light);
}

.btn-close {
    filter: invert(0.8) sepia(0.2) hue-rotate(200deg);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(212, 175, 55, 0.3);
}

.blockquote {
    color: var(--brand-light);
}

.blockquote-footer {
    color: var(--brand-accent);
}

.bg-opacity-10 {
    background: rgba(124, 108, 240, 0.1) !important;
}

.rounded-circle.bg-primary {
    background: rgba(124, 108, 240, 0.12) !important;
}

.fw-medium { color: var(--brand-light); }

.text-white-50 { color: rgba(232, 230, 240, 0.5) !important; }

hr { border-color: var(--brand-border); }

.container-fluid { background: transparent; }

/* ==========================================================================
   Zodiac / Astro content special styling
   ========================================================================== */

.zodiac-glyph {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Planet symbols styling */
.planet-symbol {
    color: var(--brand-accent);
    font-size: 1.2em;
}

/* ==========================================================================
   Nav pills (horoscope tabs, etc.)
   ========================================================================== */

.nav-pills .nav-link {
    color: var(--brand-muted);
    background: transparent;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin: 0 0.25rem;
    transition: all 0.2s ease;
}

.nav-pills .nav-link:hover {
    color: var(--brand-accent);
    border-color: var(--brand-accent);
    background: rgba(212, 175, 55, 0.05);
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--brand-accent), #c9a84c);
    border-color: var(--brand-accent);
    color: var(--brand-dark);
    font-weight: 600;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991.98px) {
    .hero-section { text-align: center; }
    .hero-section .d-flex.flex-wrap { justify-content: center; }
    .hero-section .d-flex.align-items-center.gap-4 { justify-content: center; }
    .display-4 { font-size: 2.25rem; }
    .display-5 { font-size: 2rem; }
    .display-6 { font-size: 1.5rem; }
}

@media (max-width: 767.98px) {
    section.py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    .overall-score-circle { width: 100px; height: 100px; }
    .overall-score-value { font-size: 1.5rem; }
    .hero-icon { font-size: 5rem; }
    .min-vh-50 { min-height: 40vh; }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
    .navbar, .site-footer, .cta-section, .premium-overlay, .btn { display: none !important; }
    body { font-size: 12pt; color: #000; background: #fff; }
    body::before, body::after { display: none; }
    .premium-blur { filter: none; }
    .card { background: #fff; border: 1px solid #ddd; color: #000; }
    h1, h2, h3, h4, h5, h6 { color: #000; }
    .table { color: #000; }
}

/* ==========================================================================
   Lock badge (subscriber-only marker)
   ========================================================================== */

.lock-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.12);
    color: var(--brand-accent, #d4af37);
    border: 1px solid rgba(212, 175, 55, 0.35);
    font-size: 0.875rem;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
    vertical-align: middle;
}
.lock-badge:hover,
.lock-badge:focus {
    background: rgba(212, 175, 55, 0.25);
    border-color: var(--brand-accent, #d4af37);
    color: var(--brand-accent, #d4af37);
    transform: scale(1.08);
    outline: none;
}
.lock-badge.lock-badge--inline {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.65rem;
    margin-left: 0.3rem;
}

/* Unlocked variant — shown to active subscribers. Green/teal tint indicates access. */
.lock-badge.lock-badge--unlocked {
    background: rgba(72, 187, 120, 0.15);
    color: #68d391;
    border-color: rgba(72, 187, 120, 0.45);
    cursor: default;
}
.lock-badge.lock-badge--unlocked:hover,
.lock-badge.lock-badge--unlocked:focus {
    background: rgba(72, 187, 120, 0.25);
    border-color: #68d391;
    color: #68d391;
    transform: scale(1.08);
    outline: none;
}

/* Popover readability — prevent white-on-white text on any themed page */
.popover {
    --bs-popover-bg: #1a1d2e;
    --bs-popover-border-color: rgba(212, 175, 55, 0.35);
    --bs-popover-header-bg: rgba(212, 175, 55, 0.12);
    --bs-popover-header-color: var(--brand-accent, #d4af37);
    --bs-popover-body-color: #e8e8ef;
    --bs-popover-max-width: 280px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.popover .popover-arrow::before,
.popover .popover-arrow::after {
    border-top-color: rgba(212, 175, 55, 0.35) !important;
}
.popover-header {
    font-weight: 600;
    border-bottom-color: rgba(212, 175, 55, 0.25);
}

/* Demo chart blur wrapper — positions the lock overlay */
.demo-locked {
    position: relative;
}
.demo-locked .demo-locked__chart {
    filter: blur(8px);
    user-select: none;
    pointer-events: none;
    opacity: 0.7;
}
.demo-locked__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(10, 10, 26, 0.35);
    backdrop-filter: blur(2px);
    border-radius: var(--radius-md, 8px);
    z-index: 2;
    text-align: center;
    padding: 1rem;
}
.demo-locked__overlay .lock-badge {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
}

/* Equal-height card helper: forces card-body to fill and card-footer to stick.
   Use .card.card-flex on a Bootstrap card to get aligned headers/bodies/footers. */
.card.card-flex {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card.card-flex > .card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
.card.card-flex > .card-body > .card-cta,
.card.card-flex > .card-body > .mt-auto {
    margin-top: auto !important;
}

/* Big unicode zodiac glyphs used on /zodiac/ cards */
.zodiac-glyph {
    font-size: 3rem;
    line-height: 1;
    color: var(--brand-accent, #d4af37);
    text-shadow: 0 0 24px rgba(212, 175, 55, 0.25);
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* House card icons */
.house-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(124, 108, 240, 0.12);
    color: var(--brand-primary, #7c6cf0);
    font-family: var(--font-heading, serif);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(124, 108, 240, 0.3);
}
.house-glyph i {
    font-size: 1.25rem;
}

/* ── Flatpickr dark-theme overrides + larger tap targets for mobile ─────── */
.flatpickr-calendar {
    background: #1a1a2e;
    color: #e8e8f0;
    border: 1px solid rgba(124, 108, 240, 0.3);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.flatpickr-months .flatpickr-month,
.flatpickr-current-month,
.flatpickr-current-month input.cur-year,
.flatpickr-weekday,
.flatpickr-monthDropdown-months {
    color: #ffffff;
    background: transparent;
    fill: #ffffff;
}
.flatpickr-weekdays .flatpickr-weekday,
span.flatpickr-weekday { color: #ffffff; }
.flatpickr-monthDropdown-months option,
.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month {
    background: #ffffff;
    color: #1a1a2e;
}
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month,
.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg { color: #ffffff; fill: #ffffff; }
.flatpickr-day {
    color: #e8e8f0;
    border-radius: 6px;
}
.flatpickr-day.today { border-color: var(--brand-primary, #7c6cf0); }
.flatpickr-day:hover,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover { background: rgba(124,108,240,0.18); border-color: transparent; }
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: var(--brand-primary, #7c6cf0);
    border-color: var(--brand-primary, #7c6cf0);
    color: #fff;
}
.flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay { color: rgba(232,232,240,0.35); }
.flatpickr-day.flatpickr-disabled { color: rgba(232,232,240,0.2); }
.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg { fill: var(--brand-primary, #7c6cf0); }
.flatpickr-time input,
.flatpickr-time .flatpickr-am-pm,
.flatpickr-time .flatpickr-time-separator { color: #e8e8f0; background: transparent; }
.flatpickr-time input:hover,
.flatpickr-time input:focus { background: rgba(124,108,240,0.12); }

/* Touch-friendly sizing on small screens */
@media (max-width: 576px) {
    .flatpickr-calendar { font-size: 1rem; }
    .flatpickr-day { height: 40px; line-height: 40px; max-width: 14.2857143%; }
    .flatpickr-current-month input.cur-year,
    .flatpickr-current-month .flatpickr-monthDropdown-months { font-size: 1.05rem; }
}

/* ── Pricing section headers ─────────────────────────────────────────── */
.pricing-section-head { position: relative; }
.pricing-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.4em 1em;
    border-radius: 999px;
    background: rgba(124, 108, 240, 0.12);
    color: var(--brand-secondary);
    border: 1px solid rgba(124, 108, 240, 0.35);
}
.pricing-eyebrow--gold {
    background: rgba(212, 175, 55, 0.1);
    color: var(--brand-accent);
    border-color: rgba(212, 175, 55, 0.4);
}

/* ── Pricing cards — premium vertical layout ─────────────────────────── */
.pricing-card {
    position: relative;
    background: linear-gradient(160deg, rgba(26, 26, 62, 0.85) 0%, rgba(17, 17, 39, 0.95) 100%);
    border: 1px solid var(--brand-border);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    backdrop-filter: blur(6px);
}
.pricing-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 108, 240, 0.6), transparent);
    opacity: 0.7;
    pointer-events: none;
}
.pricing-card:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 108, 240, 0.45);
    box-shadow: 0 20px 45px -15px rgba(124, 108, 240, 0.35), 0 0 0 1px rgba(124, 108, 240, 0.2);
}

/* Featured (middle) card — purple glow */
.pricing-card--featured {
    border-color: rgba(124, 108, 240, 0.5);
    background: linear-gradient(160deg, rgba(44, 36, 94, 0.9) 0%, rgba(17, 17, 39, 0.95) 100%);
    box-shadow: 0 12px 40px -10px rgba(124, 108, 240, 0.35);
}
.pricing-card--featured::before {
    background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
    opacity: 1;
    height: 2px;
}

/* Best (third) card — gold accent */
.pricing-card--best {
    border-color: rgba(212, 175, 55, 0.5);
    background: linear-gradient(160deg, rgba(60, 48, 26, 0.55) 0%, rgba(17, 17, 39, 0.95) 100%);
    box-shadow: 0 12px 40px -10px rgba(212, 175, 55, 0.28);
}
.pricing-card--best::before {
    background: linear-gradient(90deg, transparent, var(--brand-accent), transparent);
    opacity: 1;
    height: 2px;
}
.pricing-card--best:hover {
    border-color: rgba(212, 175, 55, 0.65);
    box-shadow: 0 20px 45px -15px rgba(212, 175, 55, 0.35), 0 0 0 1px rgba(212, 175, 55, 0.25);
}

/* Ribbon (top-right corner label) */
.pricing-card__ribbon {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.4em 0.85em;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #fff;
    box-shadow: 0 6px 18px -4px rgba(124, 108, 240, 0.6);
    z-index: 3;
}
.pricing-card__ribbon--best {
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-light));
    color: #1a1a1a;
    box-shadow: 0 6px 18px -4px rgba(212, 175, 55, 0.55);
}
.pricing-card__ribbon--info {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    box-shadow: 0 6px 18px -4px rgba(59, 130, 246, 0.5);
}

/* Orb (reading count circle) */
.pricing-card__orb {
    width: 72px;
    height: 72px;
    margin: 0.5rem auto 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, rgba(167, 139, 250, 0.4), rgba(124, 108, 240, 0.15) 60%, transparent 80%);
    border: 1.5px solid rgba(124, 108, 240, 0.55);
    position: relative;
    box-shadow: inset 0 0 20px rgba(124, 108, 240, 0.25), 0 0 24px rgba(124, 108, 240, 0.3);
}
.pricing-card__orb::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px dashed rgba(124, 108, 240, 0.2);
    animation: orbSpin 14s linear infinite;
}
.pricing-card__orb span {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, var(--brand-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.pricing-card--best .pricing-card__orb {
    background: radial-gradient(circle at 30% 30%, rgba(240, 215, 123, 0.4), rgba(212, 175, 55, 0.15) 60%, transparent 80%);
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.25), 0 0 24px rgba(212, 175, 55, 0.3);
}
.pricing-card--best .pricing-card__orb span {
    background: linear-gradient(135deg, #fff, var(--brand-accent-light));
    -webkit-background-clip: text;
    background-clip: text;
}
@keyframes orbSpin { to { transform: rotate(360deg); } }

/* Plan icon (for subscriptions) */
.pricing-card__plan-icon {
    width: 64px;
    height: 64px;
    margin: 0.5rem auto 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, rgba(167, 139, 250, 0.3), rgba(124, 108, 240, 0.1) 60%, transparent 80%);
    border: 1.5px solid rgba(124, 108, 240, 0.45);
    font-size: 1.75rem;
    color: var(--brand-secondary);
    box-shadow: 0 0 20px rgba(124, 108, 240, 0.2);
}
.pricing-card--featured .pricing-card__plan-icon {
    background: radial-gradient(circle at 30% 30%, rgba(240, 215, 123, 0.35), rgba(212, 175, 55, 0.1) 60%, transparent 80%);
    border-color: rgba(212, 175, 55, 0.55);
    color: var(--brand-accent-light);
    box-shadow: 0 0 22px rgba(212, 175, 55, 0.28);
}

/* Title & subtitle */
.pricing-card__title {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--brand-light);
    margin: 0.25rem 0 0.15rem;
    letter-spacing: 0.01em;
}
.pricing-card__sub {
    font-size: 0.82rem;
    color: var(--brand-muted);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

/* Price */
.pricing-card__price {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, var(--brand-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}
.pricing-card--best .pricing-card__price,
.pricing-card--featured .pricing-card__price {
    background: linear-gradient(135deg, #fff 0%, var(--brand-accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}
.pricing-card__price-unit {
    font-family: "Inter", sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--brand-muted);
    -webkit-text-fill-color: var(--brand-muted);
    margin-left: 0.15rem;
    letter-spacing: 0;
}

/* Savings badge */
.pricing-card__save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.3em 0.85em;
    border-radius: 999px;
    margin: 0.35rem auto 1rem;
    background: rgba(124, 108, 240, 0.15);
    color: var(--brand-secondary);
    border: 1px solid rgba(124, 108, 240, 0.35);
}
.pricing-card__save--hot {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(240, 215, 123, 0.12));
    color: var(--brand-accent-light);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.2);
}
.pricing-card__price-hint {
    font-size: 0.75rem;
    color: var(--brand-muted);
    margin: 0.35rem auto 1rem;
    letter-spacing: 0.04em;
    text-transform: lowercase;
}

/* Features list */
.pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    text-align: left;
    border-top: 1px solid var(--brand-border);
    padding-top: 1rem;
}
.pricing-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.86rem;
    color: var(--brand-light);
    margin-bottom: 0.55rem;
    line-height: 1.4;
}
.pricing-card__features li:last-child { margin-bottom: 0; }
.pricing-card__features li i {
    color: var(--brand-secondary);
    flex-shrink: 0;
    font-size: 1rem;
    margin-top: 0.1rem;
}
.pricing-card--best .pricing-card__features li i,
.pricing-card--featured .pricing-card__features li i {
    color: var(--brand-accent);
}

/* CTA button */
.pricing-card__cta {
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(124, 108, 240, 0.55);
    background: rgba(124, 108, 240, 0.12);
    color: var(--brand-light);
    transition: all 0.2s ease;
}
.pricing-card__cta:hover {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    border-color: transparent;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -8px rgba(124, 108, 240, 0.55);
}
.pricing-card--featured .pricing-card__cta {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 22px -8px rgba(124, 108, 240, 0.55);
}
.pricing-card--featured .pricing-card__cta:hover {
    filter: brightness(1.1);
    box-shadow: 0 14px 32px -8px rgba(124, 108, 240, 0.7);
}
.pricing-card--best .pricing-card__cta {
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-light));
    border-color: transparent;
    color: #1a1a1a;
    box-shadow: 0 8px 22px -8px rgba(212, 175, 55, 0.55);
}
.pricing-card--best .pricing-card__cta:hover {
    filter: brightness(1.08);
    color: #1a1a1a;
    box-shadow: 0 14px 32px -8px rgba(212, 175, 55, 0.7);
}
.pricing-card__cta--disabled,
.pricing-card__cta.disabled {
    background: rgba(138, 135, 168, 0.1);
    border-color: rgba(138, 135, 168, 0.3);
    color: var(--brand-muted);
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive tweaks */
@media (max-width: 575.98px) {
    .pricing-card__orb { width: 60px; height: 60px; }
    .pricing-card__orb span { font-size: 1.85rem; }
    .pricing-card__price { font-size: 1.85rem; }
    .pricing-card__title { font-size: 1.2rem; }
}

/* ── Birth location picker — map + autocomplete list ─────────────────── */
.birth-location-picker .list-group {
    background: #fff;
    border-radius: 0.375rem;
    border: 1px solid rgba(0,0,0,0.15);
}
.birth-location-picker .birth-picker-map {
    border: 1px solid rgba(124, 108, 240, 0.25);
}

/* ==========================================================================
   Reusable glow utilities — derived from pricing-card light effects
   ========================================================================== */

/* Animated glow CTA — attention-grabbing payment buttons */
.glow-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.03em;
    border-radius: 12px;
    border: 1px solid transparent;
    color: #fff;
    text-decoration: none !important;
    vertical-align: middle;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    box-shadow: 0 10px 28px -10px rgba(124, 108, 240, 0.6), 0 0 0 1px rgba(124, 108, 240, 0.3);
    transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
    overflow: hidden;
    isolation: isolate;
}
.glow-cta::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: conic-gradient(from 0deg,
        rgba(124, 108, 240, 0) 0deg,
        rgba(167, 139, 250, 0.7) 90deg,
        rgba(124, 108, 240, 0) 180deg,
        rgba(167, 139, 250, 0.7) 270deg,
        rgba(124, 108, 240, 0) 360deg);
    opacity: 0.35;
    animation: glowSpin 4s linear infinite;
    z-index: -1;
    filter: blur(10px);
}
.glow-cta:hover {
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 16px 38px -10px rgba(124, 108, 240, 0.75), 0 0 0 1px rgba(167, 139, 250, 0.5);
}
.glow-cta--gold {
    background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-accent-light) 100%);
    color: #1a1a1a;
    box-shadow: 0 10px 28px -10px rgba(212, 175, 55, 0.6), 0 0 0 1px rgba(212, 175, 55, 0.3);
}
.glow-cta--gold::before {
    background: conic-gradient(from 0deg,
        rgba(212, 175, 55, 0) 0deg,
        rgba(240, 215, 123, 0.75) 90deg,
        rgba(212, 175, 55, 0) 180deg,
        rgba(240, 215, 123, 0.75) 270deg,
        rgba(212, 175, 55, 0) 360deg);
    opacity: 0.4;
}
.glow-cta--gold:hover {
    color: #1a1a1a;
    box-shadow: 0 16px 38px -10px rgba(212, 175, 55, 0.75), 0 0 0 1px rgba(240, 215, 123, 0.55);
}
.glow-cta--lg { padding: 0.5rem 1.5rem; font-size: 1.25rem; line-height: 1.5; border-radius: 14px; }

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

/* Glow card — premium container with soft inner gradient + ambient ring */
.glow-card {
    position: relative;
    border-radius: 20px;
    padding: 2rem;
    background: linear-gradient(160deg, rgba(26, 26, 62, 0.75) 0%, rgba(17, 17, 39, 0.92) 100%);
    border: 1px solid rgba(124, 108, 240, 0.3);
    box-shadow: 0 18px 50px -20px rgba(124, 108, 240, 0.35);
    overflow: hidden;
    isolation: isolate;
}
.glow-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 0%, rgba(167, 139, 250, 0.18) 0%, transparent 55%),
                radial-gradient(circle at 85% 100%, rgba(212, 175, 55, 0.12) 0%, transparent 55%);
    pointer-events: none;
    z-index: -1;
}
.glow-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 108, 240, 0.6), transparent);
    pointer-events: none;
}
.glow-card--gold {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 18px 50px -20px rgba(212, 175, 55, 0.35);
}
.glow-card--gold::after {
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.7), transparent);
}

/* Premium halo — the orb/shine ornament re-used around numbers, icons */
.premium-halo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(240, 215, 123, 0.4), rgba(212, 175, 55, 0.12) 60%, transparent 80%);
    border: 1.5px solid rgba(212, 175, 55, 0.55);
    color: var(--brand-accent-light);
    box-shadow: inset 0 0 16px rgba(212, 175, 55, 0.2), 0 0 22px rgba(212, 175, 55, 0.28);
    font-size: 1.4rem;
    flex-shrink: 0;
}
.premium-halo--purple {
    background: radial-gradient(circle at 30% 30%, rgba(167, 139, 250, 0.4), rgba(124, 108, 240, 0.12) 60%, transparent 80%);
    border-color: rgba(124, 108, 240, 0.55);
    color: var(--brand-secondary);
    box-shadow: inset 0 0 16px rgba(124, 108, 240, 0.22), 0 0 22px rgba(124, 108, 240, 0.3);
}

/* Price glow — the gradient-text treatment for any numeric price */
.price-glow {
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--brand-accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}
.price-glow--purple {
    background: linear-gradient(135deg, #fff 0%, var(--brand-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Subscriber-only glow enhancements — activated by .is-subscriber on <body> */

/* Account sidebar — gold right-edge accent + inner glow for subscribers.
   Rendered as a full-height column (no border-radius / floating shadow). */
.account-sidebar--subscriber {
    position: relative;
    border-right: 1px solid rgba(212, 175, 55, 0.35);
    background:
        radial-gradient(circle at 0% 0%, rgba(212, 175, 55, 0.08), transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(124, 108, 240, 0.06), transparent 60%),
        var(--brand-darker);
}

/* Premium avatar — gold gradient w/ pulsing halo */
.avatar-circle--premium {
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-light)) !important;
    color: #1a1a1a !important;
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.5);
    animation: avatarPulse 3.4s ease-in-out infinite;
}
@keyframes avatarPulse {
    0%, 100% { box-shadow: 0 0 12px rgba(212, 175, 55, 0.4); }
    50% { box-shadow: 0 0 22px rgba(212, 175, 55, 0.7); }
}

/* Unlocked padlock gets extra pulse for subscribers (padlock already shows as unlocked) */
body.is-subscriber .lock-badge--unlocked {
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.45);
    animation: subscriberPulse 3.2s ease-in-out infinite;
}
@keyframes subscriberPulse {
    0%, 100% { box-shadow: 0 0 14px rgba(212, 175, 55, 0.35); }
    50% { box-shadow: 0 0 22px rgba(212, 175, 55, 0.65); }
}

/* Subscriber ribbon on any card with .subscriber-boost — subtle gold hairline */
body.is-subscriber .subscriber-boost {
    border-color: rgba(212, 175, 55, 0.35) !important;
    box-shadow: 0 10px 30px -12px rgba(212, 175, 55, 0.28);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
body.is-subscriber .subscriber-boost:hover {
    border-color: rgba(212, 175, 55, 0.55) !important;
    box-shadow: 0 16px 40px -14px rgba(212, 175, 55, 0.4);
}

/* Page-level ambient: subtle gold tint at top of viewport for subscribers */
body.is-subscriber::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), rgba(240, 215, 123, 0.9), rgba(212, 175, 55, 0.6), transparent);
    z-index: 1100;
    pointer-events: none;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.5);
}

/* Subscriber crown badge — pops in small places (nav, avatar) */
.subscriber-crown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25em 0.7em;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(240, 215, 123, 0.12));
    color: var(--brand-accent-light);
    border: 1px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.35);
}
.subscriber-crown i { font-size: 0.85rem; }

/* ===== Glossary autolinked terms ===== */
a.glossary-term,
a.glossary-term:link,
a.glossary-term:visited {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(to right, rgba(108, 92, 231, 0.45), rgba(108, 92, 231, 0.45));
    background-repeat: no-repeat;
    background-size: 100% 1px;
    background-position: 0 100%;
    border-bottom: 0;
    padding-bottom: 1px;
    cursor: help;
    transition: background-size 0.2s ease, color 0.2s ease;
}
a.glossary-term:hover,
a.glossary-term:focus {
    color: var(--brand-primary, #4A3AFF);
    background-size: 100% 2px;
    text-decoration: none;
    outline: none;
}
a.glossary-term:focus-visible {
    outline: 2px solid rgba(108, 92, 231, 0.55);
    outline-offset: 2px;
    border-radius: 2px;
}

.popover.glossary-popover {
    max-width: 320px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(108, 92, 231, 0.18);
}
.popover.glossary-popover .popover-header {
    background: rgba(108, 92, 231, 0.08);
    color: var(--brand-primary, #4A3AFF);
    font-weight: 600;
    border-bottom: 1px solid rgba(108, 92, 231, 0.12);
}
.popover.glossary-popover .popover-body {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #2c2c3a;
}
