/* ============================================
   COSMIC NUMEROLOGY — REDESIGN v2
   Warm Gold/Indigo Theme · Mobile-First
   Budget Phone Optimized · WCAG AAA
   ============================================ */

/* ---- Custom Properties ---- */
:root {
    /* Warm Dark Background */
    --bg-deep: #0f1117;
    --bg-surface: #161922;
    --bg-card: rgba(22, 25, 38, 0.92);
    --bg-card-solid: #1a1d2e;
    --bg-input: #1e2133;
    --bg-hover: rgba(232, 168, 56, 0.06);

    /* Text — WCAG AAA on #0f1117 */
    --text-primary: #f0ede5;     /* 15.2:1 contrast */
    --text-secondary: #b8b0a0;   /* 7.8:1 contrast — AAA */
    --text-muted: #8a8278;        /* 4.8:1 contrast — AA */
    --text-inverse: #0f1117;

    /* Accents — Warm Mystical */
    --gold: #e8a838;
    --gold-dim: rgba(232, 168, 56, 0.15);
    --gold-glow: rgba(232, 168, 56, 0.25);
    --amber: #d4793a;
    --indigo: #7c6ef0;
    --indigo-dim: rgba(124, 110, 240, 0.12);
    --teal: #38b2ac;
    --rose: #e8596e;

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #e8a838, #d4793a);
    --gradient-indigo: linear-gradient(135deg, #7c6ef0, #5b8def);
    --gradient-warm: linear-gradient(135deg, #e8a838, #d4793a, #c75050);

    /* Borders */
    --border-subtle: rgba(232, 168, 56, 0.1);
    --border-card: rgba(232, 168, 56, 0.12);
    --border-focus: rgba(232, 168, 56, 0.4);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.35);
    --shadow-gold: 0 4px 24px rgba(232, 168, 56, 0.2);

    /* Typography */
    --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --container-max: 1100px;
    --section-gap: clamp(2.5rem, 6vw, 5rem);

    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Radius */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-full: 100px;
}

/* ==========================================================================
   GLOBAL HIDES (Elements only visible on specific breakpoints)
   ========================================================================== */
.mobile-extra-buttons,
.mobile-premium-cards-grid {
    display: none !important;
}

/* ---- Reset ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ---- Ambient Background (CSS-only, no JS stars) ---- */
.bg-ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-ambient::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    top: -15%;
    right: -10%;
    background: radial-gradient(circle, rgba(232, 168, 56, 0.07), transparent 70%);
    animation: ambientFloat 25s ease-in-out infinite;
}

.bg-ambient::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    bottom: -10%;
    left: -8%;
    background: radial-gradient(circle, rgba(124, 110, 240, 0.05), transparent 70%);
    animation: ambientFloat 30s ease-in-out infinite reverse;
}

/* Subtle dot pattern for texture */
.bg-dots {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(232, 168, 56, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

@keyframes ambientFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 15px) scale(1.1); }
}

/* ---- Header ---- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0.75rem 1.25rem;
    background: rgba(15, 17, 23, 0.88);
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.3s var(--ease);
}

.mobile-menu-btn, .nav-overlay {
    display: none;
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
}

.logo-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.45rem 0.85rem;
    border-radius: var(--r-sm);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s var(--ease);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
    background: var(--bg-hover);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
}

/* ---- Language Toggle ---- */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border-radius: var(--r-full);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s var(--ease);
    user-select: none;
}

.lang-toggle:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.lang-toggle .active-lang {
    color: var(--gold);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    z-index: 1;
    padding: 6rem 1.25rem 2rem;
    text-align: center;
    max-width: var(--container-max);
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: var(--r-full);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--gold);
    background: var(--gold-dim);
    border: 1px solid var(--gold-glow);
    margin-bottom: 1.25rem;
    animation: fadeInUp 0.6s var(--ease) both;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s var(--ease) 0.1s both;
}

.gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 600px;
    margin: 0 auto 1.75rem;
    animation: fadeInUp 0.6s var(--ease) 0.2s both;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: var(--gradient-gold);
    color: var(--text-inverse);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--r-full);
    transition: all 0.3s var(--ease);
    box-shadow: var(--shadow-gold);
    animation: fadeInUp 0.6s var(--ease) 0.3s both;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232, 168, 56, 0.35);
}

.hero-cta svg { transition: transform 0.2s var(--ease); }
.hero-cta:hover svg { transform: translateX(3px); }

/* Cosmic Visual — desktop only */
.hero-visual {
    display: none;
}

/* ---- Sections ---- */
.section {
    position: relative;
    z-index: 1;
    padding: var(--section-gap) 1.25rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.6rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ---- Premium Cosmic Background for Calculator ---- */
.calc-ambient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    background: #080910; /* Very dark navy base */
}

.calc-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.calc-glow-left {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 168, 75, 0.15), transparent 70%);
    top: 20%;
    left: -10%;
}

.calc-glow-right {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(65, 80, 180, 0.08), transparent 70%);
    bottom: -10%;
    right: -20%;
}

.calc-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
        radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 80px 80px, 150px 150px;
    background-position: 0 0, 40px 40px;
    opacity: 0.5;
}

.calc-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 40%, rgba(5,6,10,0.8) 100%);
    pointer-events: none;
}

/* ---- Calculator Section Spacing ---- */
.calc-section {
    position: relative;
    z-index: 10;
    /* 80px (approx header height) + 23px breathing room = 103px */
    padding-top: 103px;
    padding-bottom: 72px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    display: block; /* Use standard block layout so margin: 0 auto centers perfectly */
}

/* ---- Calculator Split Layout (Main Glass Container) ---- */
.calculator-container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.calculator-split-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
    background: rgba(20, 22, 36, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 168, 75, 0.18);
    border-top: 1px solid rgba(212, 168, 75, 0.35); /* Subtle internal highlight */
    border-radius: 24px;
    padding: 1.25rem 3rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
    overflow: hidden;
    position: relative;
}

/* Left Graphic: Premium Astrolabe */
.calc-graphic-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 380px;
    transform: translate(2%, 3%);
}

.calc-dial-label {
    margin-top: 1rem; /* Reduced to bring it tighter to the dial */
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.dial-label-title {
    color: rgba(220, 185, 95, 0.9);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}

.dial-label-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.cosmic-clock {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.clock-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0.03) 40%, transparent 70%);
    animation: pulseGlow 5s ease-in-out infinite;
}

.clock-ring {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.clock-ring.outer-dial {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(212, 168, 75, 0.15);
    background: repeating-conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 3deg,
        rgba(212, 168, 75, 0.25) 3deg,
        rgba(212, 168, 75, 0.25) 4deg
    );
    -webkit-mask-image: radial-gradient(circle, transparent 65%, black 66%, black 69%, transparent 70%);
    mask-image: radial-gradient(circle, transparent 65%, black 66%, black 69%, transparent 70%);
    animation: clockSpin 120s linear infinite;
}

.clock-ring.number-track {
    width: 90%;
    height: 90%;
    border: 1px solid rgba(212, 168, 75, 0.12);
    box-shadow: inset 0 0 30px rgba(212, 168, 75, 0.04), 0 0 30px rgba(212, 168, 75, 0.04);
}

.clock-ring.middle-ring {
    width: 72%;
    height: 72%;
    border: 1px dashed rgba(212, 168, 75, 0.2);
    animation: clockSpinCounter 90s linear infinite;
}

.clock-ring.inner-ring {
    width: 45%;
    height: 45%;
    border: 2px solid rgba(212, 168, 75, 0.1);
    box-shadow: 0 0 10px rgba(212, 168, 75, 0.05);
    animation: clockSpin 45s linear infinite;
}

.clock-center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(212, 168, 75, 0.15) 0%, transparent 80%);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(212, 168, 75, 0.4);
    animation: pulseGlow 3s ease-in-out infinite alternate;
}

.clock-node {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(var(--a)) translateY(-135px) rotate(calc(-1 * var(--a)));
    color: rgba(250, 245, 235, 0.95);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(212, 168, 75, 0.5);
}

@keyframes clockSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes clockSpinCounter {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.7; filter: brightness(1); }
    50% { opacity: 1; filter: brightness(1.2); }
}

/* Right Form Area (Luxury Panel) */
.calc-form-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calc-form-panel {
    background: rgba(18, 20, 32, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem 2.5rem 1.25rem 2.5rem;
    box-shadow: inset 0 2px 15px rgba(0,0,0,0.15);
    height: fit-content;
}

.calc-form {
    width: 100%;
}

.form-header {
    margin-bottom: 1.25rem;
}

.form-eyebrow {
    color: var(--gold);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.form-header h3 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: #fcfcfc;
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

.form-header p {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    line-height: 1.5;
}

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

.form-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.form-label svg { color: var(--gold); opacity: 0.8; }

.form-input {
    width: 100%;
    padding: 0.75rem 1.1rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    min-height: 48px;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.form-input::placeholder { color: rgba(255,255,255,0.3); }

.form-input:hover {
    border-color: rgba(255,255,255,0.2);
}

.form-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.15), inset 0 2px 5px rgba(0,0,0,0.1);
}

.form-input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8) sepia(1) saturate(3) hue-rotate(10deg);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.form-input[type="date"]:focus::-webkit-calendar-picker-indicator,
.form-input[type="date"]:hover::-webkit-calendar-picker-indicator {
    opacity: 1;
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.55);
    margin-top: 0.5rem;
}

/* Benefit Strip */
.form-benefit-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0 1rem 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.5px;
}

.form-benefit-strip .separator {
    color: var(--gold);
    opacity: 0.4;
    font-size: 0.65rem;
}

/* ---- Teaser & Paywall State ---- */
.calc-state-panel {
    animation: fadeIn 0.5s ease;
}

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

.teaser-header {
    text-align: center;
    margin-bottom: 2rem;
}

.teaser-header h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.teaser-header p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.teaser-highlight {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.highlight-number {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.highlight-title {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.highlight-desc {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    line-height: 1.6;
}

.paywall-section {
    text-align: center;
}

.locked-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.locked-item {
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 8px;
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    backdrop-filter: blur(5px);
}

.lock-icon {
    font-size: 1.1rem;
}

.paywall-desc {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.secure-payments {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
    margin-top: 1rem;
}

.results-content-area {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
    color: #eee;
    font-size: 0.95rem;
    line-height: 1.6;
}

.results-content-area h1, 
.results-content-area h2, 
.results-content-area h3 {
    color: var(--gold);
    font-family: var(--font-display);
    margin: 1.5rem 0 0.8rem 0;
}

.results-content-area ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.results-content-area p {
    margin-bottom: 1rem;
}

/* Premium CTA Button */
.btn-row {
    display: flex;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.premium-btn {
    width: 100%;
    padding: 1.1rem 1.5rem;
    background: linear-gradient(135deg, #e6d5b3 0%, #c2a162 100%); /* True champagne luxury gold */
    border: none;
    border-radius: 12px;
    color: #1a160d;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255,255,255,0.6);
    letter-spacing: 0.5px;
}

.premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255,255,255,0.8);
    filter: brightness(1.05);
}

.premium-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* CTA Reassurance */
.cta-reassurance {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
}

.reassurance-main {
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.reassurance-secure {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: rgba(255,255,255,0.35);
    font-size: 0.7rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-label svg { color: var(--gold); }

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--bg-input);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--r-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    min-height: 48px;
    transition: all 0.2s var(--ease);
    outline: none;
}

.form-input::placeholder { color: var(--text-muted); }

.form-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-dim);
}

/* Date input styling for all browsers */
.form-input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.65) sepia(1) saturate(2) hue-rotate(10deg);
    cursor: pointer;
}

.form-hint {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

/* Buttons Row */
.btn-row {
    display: flex;
    gap: 0.75rem;
}

.calc-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    background: var(--gradient-gold);
    color: var(--text-inverse);
    border: none;
    border-radius: var(--r-md);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    min-height: 48px;
    transition: all 0.3s var(--ease);
    box-shadow: var(--shadow-gold);
}

.calc-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(232, 168, 56, 0.3);
}

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

.calc-btn-icon {
    display: flex;
    transition: transform 0.2s var(--ease-spring);
}

.calc-btn:hover .calc-btn-icon {
    transform: translateX(2px);
}

.reset-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1.25rem;
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--r-md);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 48px;
    transition: all 0.2s var(--ease);
}

.reset-btn:hover {
    border-color: var(--rose);
    color: var(--rose);
}

.reset-btn.visible { display: flex; }

/* ---- Results ---- */
.results-container {
    display: none;
}

.results-container.visible {
    display: block;
    animation: fadeInUp 0.5s var(--ease) both;
}

/* User summary bar */
.results-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-card);
    border-radius: var(--r-lg);
    margin-bottom: 1.5rem;
}

.results-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.results-user-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--gold);
}

.results-user-dob {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    background: var(--indigo-dim);
    color: var(--indigo);
    border: 1px solid rgba(124, 110, 240, 0.2);
    border-radius: var(--r-full);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    font-family: var(--font-body);
}

.share-btn:hover {
    background: rgba(124, 110, 240, 0.2);
}

.share-btn.copied {
    background: rgba(56, 178, 172, 0.15);
    color: var(--teal);
    border-color: rgba(56, 178, 172, 0.3);
}

/* Action Dropdown */
.action-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--r-md);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.action-dropdown.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.action-dropdown button {
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 12px 16px;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
}

.action-dropdown button:hover {
    background: rgba(255,255,255,0.05);
    color: var(--gold);
}

/* Primary Numbers */
.results-primary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.result-card {
    position: relative;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-card);
    border-radius: var(--r-lg);
    padding: 1.5rem 1.25rem;
    text-align: center;
    overflow: hidden;
    transition: all 0.3s var(--ease);
    box-shadow: var(--shadow-sm);
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
    opacity: 0;
    transition: opacity 0.3s;
}

.result-card:hover {
    border-color: var(--gold-glow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.result-number {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.1;
    margin-bottom: 0.15rem;
}

.result-reduction {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.35rem;
    font-family: var(--font-display);
}

.result-label {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.result-source {
    font-size: 0.65rem;
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}

.result-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Secondary Cards */
.results-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.result-card-sm {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-card);
    border-radius: var(--r-lg);
    padding: 1.25rem 1rem;
    text-align: center;
    transition: all 0.3s var(--ease);
    box-shadow: var(--shadow-sm);
}

.result-card-sm:hover {
    border-color: rgba(124, 110, 240, 0.25);
    transform: translateY(-2px);
}

.result-number-sm {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--indigo);
    line-height: 1.1;
    margin-bottom: 0.1rem;
}

.result-reduction-sm {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.result-label-sm {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.05rem;
}

.result-source-sm {
    font-size: 0.6rem;
    color: var(--indigo);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
}

.result-desc-sm {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ---- Lucky Info Section ---- */
.lucky-section {
    display: none;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-card);
    border-radius: var(--r-lg);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.lucky-section.visible { display: block; }

.lucky-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--gold);
}

.lucky-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.lucky-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    background: var(--bg-surface);
    border-radius: var(--r-sm);
    border: 1px solid var(--border-subtle);
}

.lucky-item-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.lucky-item-info {
    display: flex;
    flex-direction: column;
}

.lucky-item-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.lucky-item-value {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
}

.lucky-color-swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 4px;
    vertical-align: middle;
    border: 1px solid rgba(255,255,255,0.15);
}

/* ---- Lo Shu Grid ---- */
.loshu-section {
    display: none;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-card);
    border-radius: var(--r-lg);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.loshu-section.visible { display: block; }

.loshu-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--gold);
}

.loshu-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.loshu-grid-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.loshu-grid {
    display: grid;
    grid-template-columns: repeat(3, 80px);
    grid-template-rows: repeat(3, 80px);
    gap: 4px;
    border-radius: var(--r-md);
    overflow: hidden;
}

.loshu-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    font-family: var(--font-display);
    position: relative;
    transition: all 0.2s;
}

.loshu-cell-planet {
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--text-muted);
    position: absolute;
    top: 4px;
    left: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.loshu-cell-number {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--gold);
    position: absolute;
    top: 4px;
    right: 5px;
}

.loshu-cell-count {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 10px;
}

.loshu-cell.has-numbers {
    background: var(--gold-dim);
    border-color: var(--gold-glow);
}

.loshu-cell.has-numbers .loshu-cell-count {
    color: var(--gold);
}

.loshu-cell.missing {
    opacity: 0.4;
}

.loshu-cell.missing .loshu-cell-count {
    color: var(--text-muted);
}

.loshu-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.loshu-legend-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.loshu-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.loshu-dot.present {
    background: var(--gold);
}

.loshu-dot.absent {
    background: var(--text-muted);
    opacity: 0.4;
}

/* ---- Remedies Section ---- */
.remedies-section {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-card);
    border-radius: var(--r-lg);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.remedies-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--gold);
}

.remedies-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.remedies-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.remedy-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-md);
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.remedy-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remedy-num {
    background: rgba(232, 168, 56, 0.15);
    color: var(--gold);
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-display);
}

.remedy-planet {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.remedy-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---- Breakdown Section ---- */
.breakdown-section {
    margin-top: 1rem;
}

.breakdown-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.breakdown-title svg { color: var(--gold); }

.breakdown-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.breakdown-card {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-card);
    border-radius: var(--r-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.breakdown-card-title {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Letter breakdown */
.letter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.6rem;
}

.letter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--gold-dim);
    border: 1px solid var(--gold-glow);
    transition: transform 0.15s;
}

.letter-chip:hover { transform: scale(1.08); }

.letter-chip .char { color: var(--text-primary); }
.letter-chip .val { color: var(--gold); font-size: 0.68rem; }

.letter-chip.vowel {
    background: var(--indigo-dim);
    border-color: rgba(124, 110, 240, 0.2);
}

.letter-chip.vowel .val { color: var(--indigo); }

.breakdown-sum {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.82rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.breakdown-sum strong { color: var(--text-primary); font-weight: 700; }
.breakdown-arrow { color: var(--gold); }

/* DOB breakdown */
.dob-step {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
    padding: 0.45rem 0.65rem;
    border-radius: var(--r-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    font-size: 0.78rem;
}

.dob-step-label {
    font-weight: 700;
    color: var(--gold);
    min-width: 65px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dob-step-value {
    color: var(--text-primary);
    font-weight: 600;
    font-family: var(--font-display);
}

.dob-step-calc {
    color: var(--text-muted);
    font-size: 0.72rem;
    margin-left: auto;
}

/* ---- Chaldean Chart ---- */
.chart-container {
    max-width: 600px;
    margin: 0 auto;
}

.chaldean-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-card);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.chaldean-table th {
    padding: 0.8rem 0.4rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
    background: rgba(232, 168, 56, 0.06);
    border-bottom: 1px solid var(--border-card);
}

.chaldean-table td {
    padding: 0.6rem 0.4rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
    transition: all 0.15s;
}

.chaldean-table td:last-child { border-right: none; }
.chaldean-table tbody tr:last-child td { border-bottom: none; }

.chaldean-table td:hover {
    background: var(--gold-dim);
    color: var(--gold);
}

.chaldean-table td:empty { opacity: 0.2; }

.chart-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background: var(--gold-dim);
    border: 1px solid var(--gold-glow);
    border-radius: var(--r-md);
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.chart-note svg {
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ---- About Grid ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.about-card {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-card);
    border-radius: var(--r-lg);
    padding: 1.5rem 1.25rem;
    transition: all 0.3s var(--ease);
    box-shadow: var(--shadow-sm);
}

.about-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold-glow);
}

.about-icon {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.about-card h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.about-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- Footer ---- */
.footer {
    position: relative;
    z-index: 1;
    padding: 2rem 1.25rem;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    margin-top: 1.5rem;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.35rem;
    color: var(--gold);
}

.footer-text {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.footer-disclaimer {
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Result card stagger */
.results-container.visible .result-card:nth-child(1) { animation: fadeInUp 0.4s var(--ease) 0.05s both; }
.results-container.visible .result-card:nth-child(2) { animation: fadeInUp 0.4s var(--ease) 0.12s both; }
.results-container.visible .result-card-sm:nth-child(1) { animation: fadeInUp 0.4s var(--ease) 0.18s both; }
.results-container.visible .result-card-sm:nth-child(2) { animation: fadeInUp 0.4s var(--ease) 0.24s both; }
.results-container.visible .result-card-sm:nth-child(3) { animation: fadeInUp 0.4s var(--ease) 0.30s both; }
.results-container.visible .result-card-sm:nth-child(4) { animation: fadeInUp 0.4s var(--ease) 0.36s both; }
.results-container.visible .result-card-sm:nth-child(5) { animation: fadeInUp 0.4s var(--ease) 0.42s both; }
.results-container.visible .result-card-sm:nth-child(6) { animation: fadeInUp 0.4s var(--ease) 0.48s both; }

.number-highlight {
    animation: numberPop 0.5s var(--ease-spring) both;
}

@keyframes numberPop {
    0% { transform: scale(0.6); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive: Tablet (600px+) ---- */
@media (min-width: 600px) {
    .header { padding: 0.85rem 2rem; }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .results-primary {
        grid-template-columns: 1fr 1fr;
    }

    .results-secondary {
        grid-template-columns: repeat(3, 1fr);
    }

    .lucky-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

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

    .calc-form {
        padding: 2rem;
    }

    .section {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .hero {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .loshu-grid {
        grid-template-columns: repeat(3, 85px);
        grid-template-rows: repeat(3, 85px);
        gap: 5px;
    }
}

/* ---- Responsive: Desktop (900px+) ---- */
@media (min-width: 900px) {
    .hero {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 3rem;
        padding-top: 7rem;
        padding-bottom: 3rem;
    }

    .hero-content {
        flex: 1;
    }

    .hero-subtitle {
        margin-left: 0;
    }

    .hero-visual {
        display: flex;
        flex: 0 0 auto;
        animation: fadeIn 1s var(--ease) 0.4s both;
    }

    .cosmic-circle {
        position: relative;
        width: 260px;
        height: 260px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cosmic-ring {
        position: absolute;
        border-radius: 50%;
        border: 1px solid;
    }

    .ring-1 {
        width: 100%;
        height: 100%;
        border-color: rgba(232, 168, 56, 0.12);
        animation: ringRotate 30s linear infinite;
    }

    .ring-2 {
        width: 72%;
        height: 72%;
        border-color: rgba(124, 110, 240, 0.15);
        animation: ringRotate 20s linear infinite reverse;
    }

    .ring-3 {
        width: 45%;
        height: 45%;
        border-color: rgba(56, 178, 172, 0.18);
        animation: ringRotate 14s linear infinite;
    }

    .ring-1::before,
    .ring-2::before,
    .ring-3::before {
        content: '';
        position: absolute;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        top: -3.5px;
        left: 50%;
        transform: translateX(-50%);
    }

    .ring-1::before { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
    .ring-2::before { background: var(--indigo); box-shadow: 0 0 10px var(--indigo); }
    .ring-3::before { background: var(--teal); box-shadow: 0 0 10px var(--teal); }

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

    .cosmic-number {
        font-family: var(--font-display);
        font-size: 3rem;
        font-weight: 700;
        color: var(--gold);
        z-index: 1;
        animation: cosmicPulse 4s ease-in-out infinite;
    }

    @keyframes cosmicPulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.06); }
    }

    .results-secondary {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .loshu-grid {
        grid-template-columns: repeat(3, 95px);
        grid-template-rows: repeat(3, 95px);
    }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html { scroll-behavior: auto; }

    .bg-ambient::before,
    .bg-ambient::after {
        animation: none;
    }

    .cosmic-ring {
        animation: none !important;
    }
}

/* ---- Advanced Metrics (Shadbala & Ashtakavarga) ---- */
.metrics-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 900px;
    margin: 2rem auto;
}

@media (min-width: 900px) {
    .metrics-container {
        grid-template-columns: 1fr 1fr;
    }
}

.metric-box {
    background: rgba(31, 35, 48, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.sav-score {
    position: absolute;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    transform: translate(-50%, -50%);
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
    transition: color 0.3s ease;
}

.sav-score.excellent {
    color: #4ade80; /* bright green */
    text-shadow: 0 0 15px rgba(74, 222, 128, 0.6);
}

.sav-score.good {
    color: #facc15; /* yellow */
}

.sav-score.poor {
    color: #f87171; /* red */
}

/* =========================================
   Funnel & Ad Spaces (Phase 6)
========================================= */

/* Hide everything in results container by default, let funnel manager show it */
.funnel-step {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.funnel-step.active {
    display: block;
    opacity: 1;
}

.ad-container {
    background: var(--bg-card-solid);
    border: 1px dashed var(--border-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin: 2rem auto;
    width: 100%;
    max-width: 728px;
    min-height: 250px;
    color: var(--text-muted);
    font-family: var(--font-primary);
    border-radius: var(--r-md);
}

.ad-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.ad-processing-text {
    font-size: 1.2rem;
    color: var(--gold);
    margin-top: 1.5rem;
    font-family: var(--font-display);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.step-btn-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.step-btn {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 100px;
    background: linear-gradient(135deg, #d4af37, #f9f0a2);
    color: #0f1117;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

.step-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
}

.step-btn.disabled {
    background: #333;
    color: #666;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* =========================================
   Grand Sales Page (Paywall)
========================================= */
.sales-container {
    background: linear-gradient(180deg, rgba(20,22,31,1) 0%, rgba(15,17,23,1) 100%);
    border: 1px solid var(--gold);
    border-radius: var(--r-lg);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.15);
}

.sales-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.sales-header {
    position: relative;
    z-index: 1;
    margin-bottom: 3rem;
}

.sales-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    background: linear-gradient(135deg, #f9f0a2, #d4af37, #aa771c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.sales-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.pricing-cards {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.pricing-card {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-card);
    border-radius: var(--r-lg);
    padding: 2rem;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s;
    text-align: left;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.premium {
    border: 1px solid var(--gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.15);
}

.pricing-card.premium::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #d4af37, #aa771c);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.price-title {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.price-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.price-amount span {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
    font-family: 'Inter', sans-serif;
}

.price-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.price-features li {
    padding-left: 1.8rem;
    position: relative;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.price-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #34d399; /* Green checkmark */
    font-size: 1.1rem;
    font-weight: bold;
}

.buy-btn {
    width: 100%;
    padding: 1rem;
    border-radius: var(--r-md);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--border-subtle);
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.buy-btn:hover {
    background: rgba(255,255,255,0.1);
}

.pricing-card.premium .buy-btn {
    background: linear-gradient(135deg, #d4af37, #f9f0a2);
    color: #0f1117;
    border: none;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.pricing-card.premium .buy-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
}

/* ==========================================================================
   Slide-Over Cart Drawer & Payment Modal System
   ========================================================================== */

/* Floating Cart Button */
.floating-cart-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #f9f0a2);
    color: #0f1117;
    border: none;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.floating-cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.6);
}

/* Reduced dominance on Calculator screen */
.floating-cart-btn.calc-page-cart {
    transform: scale(0.85);
    transform-origin: bottom right;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
    opacity: 0.85;
}
.floating-cart-btn.calc-page-cart:hover {
    transform: scale(0.95);
    opacity: 1;
}

.cart-badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e53e3e;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid #0f1117;
}

/* Cart Drawer Backdrop & Drawer */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 17, 23, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
}

.cart-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: #14161f;
    border-left: 1px solid var(--gold);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.cart-drawer-overlay.active .cart-drawer {
    right: 0;
}

.cart-drawer-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--gold);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-drawer-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.cart-drawer-close:hover { color: var(--gold); }

.cart-drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-card);
    border-radius: var(--r-md);
    padding: 1rem;
}

.cart-item-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.cart-item-price {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.9rem;
}

.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--r-sm);
    padding: 0.2rem 0.5rem;
}

.cart-qty-controls button {
    background: none;
    border: none;
    color: var(--gold);
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
}

.cart-drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    background: rgba(15, 17, 23, 0.9);
}

.cart-subtotal-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cart-checkout-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--gold), #f9f0a2);
    color: #0f1117;
    border: none;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* Toast Notifications */
.astro-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(20, 22, 31, 0.95);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.8rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.astro-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Checkout Payment Modal */
.checkout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 17, 23, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.checkout-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.checkout-modal-card {
    background: #14161f;
    border: 1px solid var(--gold);
    border-radius: var(--r-lg);
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    position: relative;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.payment-method-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-card);
    border-radius: var(--r-md);
    padding: 1rem;
    text-align: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method-btn:hover {
    border-color: var(--gold);
    background: rgba(232, 168, 56, 0.1);
}


/* Responsive Hero Grid for New Landing Page */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .hero-title {
        text-align: center !important;
        font-size: 2.8rem !important;
    }
    .hero-subtitle {
        text-align: center !important;
        margin: 0 auto 2.5rem auto !important;
    }
    .hero-badge {
        justify-content: center !important;
    }
    .hero-grid > div:last-child {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Founder Modal */
.founder-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 17, 23, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.founder-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.founder-modal-card {
    background: #14161f;
    border: 1px solid var(--border-card);
    border-radius: var(--r-xl);
    width: 90%;
    max-width: 500px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s var(--ease-spring);
}

.founder-modal-overlay.active .founder-modal-card {
    transform: translateY(0) scale(1);
}

/* =========================================
   PREMIUM IMMERSIVE HERO REDESIGN
   ========================================= */
.hero-premium {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: #060913;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    padding: 6rem 0 0;
    font-family: var(--font-body);
}

/* Background & Glowing Horizon */
.hero-premium-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: 
        radial-gradient(circle at 75% 40%, rgba(200, 160, 80, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 20% 60%, rgba(50, 100, 200, 0.1) 0%, transparent 30%);
    /* Adding subtle noise/stars via a base64 or CSS trick (omitted for brevity, handled by existing bg-ambient) */
}

.hero-bg-glow {
    position: absolute;
    bottom: -150px;
    left: 0;
    right: 0;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(232, 168, 56, 0.4) 0%, rgba(10, 30, 80, 0.2) 40%, transparent 70%);
    filter: blur(40px);
    border-top: 2px solid rgba(232, 168, 56, 0.5);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    box-shadow: 0 -10px 50px rgba(232, 168, 56, 0.3);
}

.hero-premium-container {
    position: relative;
    z-index: 10;
    max-width: 1550px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    padding: 0 3rem;
    align-items: stretch;
}

/* Left Content */
.hero-premium-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5rem;
    padding-bottom: 1rem;
    text-align: left;
    max-width: 650px;
    animation: fadeInLeft 1s var(--ease) both;
}

.hero-premium-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #e0d0b0;
    margin-bottom: 2rem;
    font-weight: 500;
}
.hero-premium-badge span { color: var(--gold); }

.hero-premium-title {
    font-family: 'Times New Roman', Times, serif; /* Or a similar elegant serif if added */
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.text-gold {
    color: #e8b855;
    text-shadow: 0 0 30px rgba(232, 168, 56, 0.4);
}

.hero-premium-desc {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #c0c5d0;
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-premium-features {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    border-radius: 50%;
}

.feature-item span {
    font-size: 0.9rem;
    color: #a0a5b0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.hero-premium-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0c565, #d99a36);
    color: #1a1005;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1.3rem;
    padding: 1.3rem 3rem;
    border-radius: 12px;
    text-transform: capitalize;
    transition: all 0.3s var(--ease);
    box-shadow: 0 10px 30px rgba(232, 168, 56, 0.3);
    margin-bottom: 2rem;
}

.hero-premium-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(232, 168, 56, 0.5);
    color: #000;
}

.hero-premium-signature {
    font-family: 'Brush Script MT', 'Cedarville Cursive', cursive;
    font-size: 2.2rem;
    color: #d8c8a0;
    transform: rotate(-3deg);
    opacity: 0.9;
}

/* Right Image Area */
.hero-premium-image-area {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeInRight 1s var(--ease) 0.3s both;
}

/* ── LAYER 1: Cosmic ambient glow (disabled per user feedback) ── */
.hero-cosmic-glow {
    display: none;
}

/* ── LAYER 2: Orbital system (behind person) ── */
.orbit-system {
    position: absolute;
    /* Align optical center with person's upper torso/head area */
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 760px;
    height: 760px;
    z-index: 10;
    /* Slow orbit rotation restored per user preference */
    animation: orbitSpin 120s linear infinite;
    /* Fade the left side so ring doesn't compete with headline */
    -webkit-mask-image: linear-gradient(
        to right,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.3) 15%,
        rgba(0,0,0,1) 40%,
        rgba(0,0,0,1) 100%
    );
    mask-image: linear-gradient(
        to right,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.3) 15%,
        rgba(0,0,0,1) 40%,
        rgba(0,0,0,1) 100%
    );
}

/* Orbit Ring Bases */
.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid transparent;
}

.orbit-ring.orbit-outer {
    width: 100%;
    height: 100%;
    border-color: rgba(212, 175, 55, 0.18);
    box-shadow:
        0 0 40px 2px rgba(212, 175, 55, 0.04),
        inset 0 0 30px 1px rgba(212, 175, 55, 0.02);
}

.orbit-ring.orbit-inner {
    width: 72%;
    height: 72%;
    border-color: rgba(212, 175, 55, 0.10);
    border-style: dashed;
}

/* ── Numbers on the orbit ── */
.orbit-num {
    position: absolute;
    /* Use pre-computed coordinates from --x and --y custom properties */
    left: var(--x, 50%);
    top: var(--y, 50%);
    transform: translate(-50%, -50%);

    font-family: 'Outfit', 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: 700;
    color: rgb(212, 175, 55);
    opacity: var(--num-opacity, 0.25);
    text-shadow:
        0 0 12px rgba(212, 175, 55, 0.4),
        0 0 30px rgba(212, 175, 55, 0.15);
    pointer-events: none;
    /* Counter-rotate to stay upright while orbit spins */
    animation: orbitSpinCounter 120s linear infinite;
}

/* Numbers that are "behind" the person: extra dim */
.orbit-num.on-back {
    filter: blur(0.4px);
}

/* ── LAYER 3: Portrait ── */
.founder-portrait {
    position: relative;
    z-index: 20;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    transform: scale(1.16);
    transform-origin: bottom center;
    mix-blend-mode: lighten;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
}

/* ── LAYER 4: Front glow halo (disabled per user feedback) ── */
.orbit-front-glow {
    display: none;
}

/* ── LAYER 5: Name Plate (slim professional badge) ── */
.founder-name-plate {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    background: rgba(12, 14, 22, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 10px;
    padding: 0.7rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    white-space: nowrap;
}

.plate-left {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.plate-name-hi {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
}

.plate-name-en {
    color: rgba(255,255,255,0.85);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.plate-divider-v {
    width: 1px;
    height: 28px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
    flex-shrink: 0;
}

.plate-right {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.plate-role {
    color: rgba(255,255,255,0.7);
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1.2;
}

.plate-exp {
    color: var(--gold);
    font-size: 0.6rem;
    letter-spacing: 1px;
    font-weight: 700;
    line-height: 1.2;
}

/* Slow orbit spin */
@keyframes orbitSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}
/* Counter-rotation keeps numbers upright */
@keyframes orbitSpinCounter {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(-360deg); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 1024px) {
    .calculator-split-layout {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }
    .calc-graphic-area {
        min-height: 250px;
    }
    
    .hero-premium {
        padding: 5rem 0 0rem;
    }
    .hero-premium-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
        padding-top: 1rem;
    }
    .hero-premium-content {
        align-items: center;
        margin: 0 auto;
        text-align: center;
    }
    .hero-premium-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }
    .hero-premium-features {
        justify-content: center;
        gap: 1rem;
    }
    .hero-premium-image-area {
        height: 550px;
        margin-top: 2rem;
    }
    .founder-name-plate {
        bottom: 1rem;
        padding: 0.6rem 1rem;
        gap: 0.7rem;
    }
    .plate-name-hi { font-size: 0.75rem; }
    .plate-name-en { font-size: 0.65rem; }
    /* Recenter and scale orbit for tablet */
    .orbit-system {
        width: 450px;
        height: 450px;
        left: 50%;
        top: 40%;
        /* Remove left-fade mask on tablet since layout is centered */
        -webkit-mask-image: none;
        mask-image: none;
    }
    .hero-cosmic-glow {
        width: 450px;
        height: 450px;
    }
    .orbit-front-glow {
        width: 320px;
        height: 320px;
    }
    .orbit-num {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .calculator-split-layout {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .calc-section {
        /* approx 60px header + 24px breathing room */
        padding-top: 84px;
        padding-bottom: 40px;
    }
    
    .cosmic-clock {
        width: 220px;
        height: 220px;
    }
    .clock-node {
        transform: translate(-50%, -50%) rotate(var(--a)) translateY(-95px) rotate(calc(-1 * var(--a)));
        font-size: 0.9rem;
    }
    .calc-form-panel {
        padding: 1.5rem;
    }
    
    .hero-premium-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        gap: 1.5rem 0.5rem;
    }
}

/* Auth Profile Menu */
.auth-container {
    display: flex;
    align-items: center;
}
.auth-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background: #14161f;
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 200px;
    display: none;
    flex-direction: column;
    z-index: 1000;
}
.auth-menu.active {
    display: flex;
}
.auth-menu-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-card);
    color: var(--gold);
    font-size: 0.9rem;
}
.auth-menu-item {
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.auth-menu-item:hover {
    background: rgba(255,255,255,0.05);
}


/* ============================================
   MOBILE RESPONSIVENESS — COMPREHENSIVE V3
   Desktop layout is UNTOUCHED. All rules below
   are scoped inside max-width media queries.
   ============================================ */

/* ── Tablet & Small Laptop (≤ 900px) ── */
@media (max-width: 900px) {

    /* ── HEADER ── */
    .header {
        padding: 0.5rem 0.75rem;
    }

    .header-inner {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        gap: 0.4rem 0.5rem;
        align-items: center;
        padding: 0;
    }

    /* Logo: icon + text on one line, first column */
    .logo {
        grid-column: 1 / 2;
        grid-row: 1;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.45rem;
        min-width: 0;          /* allow shrinking */
    }

    .logo-icon {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }

    .logo-text {
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Lang toggle, auth, and menu btn */
    .header-inner > div:last-child {
        grid-column: 3;
        grid-row: 1;
        gap: 0.5rem;
    }

    /* Mobile Sidebar Menu (replaces horizontal scroller) */
    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1;

        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    .nav-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -280px; /* Hidden off screen to the right */
        width: 260px;
        height: 100vh;
        height: 100dvh;
        background: rgba(15, 17, 23, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid rgba(255,255,255,0.05);
        display: flex;
        flex-direction: column;
        padding: 5rem 1.5rem 2rem;
        z-index: 1100;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 1rem;
        box-shadow: -10px 0 40px rgba(0,0,0,0.5);
    }
    .nav.open {
        transform: translateX(-280px); /* Slide in */
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        width: 100%;
        text-align: left;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        color: var(--text-primary);
        cursor: pointer;
        z-index: 1200; /* above nav */
        transition: all 0.3s ease;
    }
    .mobile-menu-btn:hover { background: rgba(255, 255, 255, 0.1); }

    /* ── HERO (index.html) ── */
    .hero {
        padding: 7rem 1rem 2rem;
    }
    .hero-title {
        font-size: 2.2rem;
    }

    /* ── CALCULATOR SECTION ── */
    .calc-section {
        padding-top: 90px;
        padding-bottom: 40px;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .calculator-split-layout {
        grid-template-columns: 1fr;
        padding: 1.25rem 1rem;
        gap: 1.5rem;
    }

    .calc-graphic-area {
        min-height: auto;
        transform: none;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .cosmic-clock {
        width: 220px;
        height: 220px;
    }
    .clock-node {
        transform: translate(-50%, -50%) rotate(var(--a)) translateY(-95px) rotate(calc(-1 * var(--a)));
        font-size: 0.85rem;
    }

    .calc-form-panel {
        padding: 1.25rem 1rem;
    }

    .form-header h3 {
        font-size: 1.3rem;
    }

    /* ── RESULTS CONTAINER ── */
    .results-container {
        padding: 0 !important;
        margin-top: 1.5rem;
    }

    .results-summary {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start !important;
    }

    .results-user-name {
        font-size: 1.3rem !important;
    }

    .results-primary {
        grid-template-columns: 1fr !important;
    }

    .results-secondary {
        grid-template-columns: 1fr 1fr !important;
    }

    .result-card, .result-card-sm {
        padding: 1rem !important;
    }

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

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

    /* ── SECTIONS ── */
    .section {
        padding: 2.5rem 1rem;
    }

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

    /* ── FLOATING CART ── */
    .floating-cart-btn {
        bottom: 16px !important;
        right: 16px !important;
        width: 48px !important;
        height: 48px !important;
        font-size: 1.2rem !important;
    }

    /* ── CART DRAWER ── */
    .cart-drawer {
        width: 92vw !important;
        max-width: 360px;
    }

    /* ── TABS (result tabs) ── */
    .result-tabs, .results-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .result-tabs::-webkit-scrollbar,
    .results-tabs::-webkit-scrollbar { display: none; }

    .result-tab, .results-tab {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 0.8rem !important;
        padding: 0.5rem 0.8rem !important;
    }

    /* ── FOOTER ── */
    .footer-inner {
        padding: 2rem 1rem !important;
    }
}


/* ── Smartphone (≤ 767px) ── */
@media (max-width: 767px) {
    /* ── OVERFLOW SAFETY ── */
    html, body { overflow-x: hidden !important; width: 100% !important; }

    /* ── 1. HEADER REDESIGN ── */
    .header { padding: 0.5rem 1rem !important; }
    
    .header-inner {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 !important;
        gap: 0.5rem !important;
    }
    
    /* Logo */
    .logo {
        display: flex !important;
        align-items: center !important;
        gap: 0.4rem !important;
        flex-shrink: 1 !important;
        min-width: 0 !important;
    }
    .logo-icon { width: 26px !important; height: 26px !important; flex-shrink: 0 !important; }
    .logo-text {
        font-size: 0.8rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.2 !important;
        max-width: 130px !important;
    }

    /* Auth & Lang & Hamburger */
    .header-inner > div:last-child {
        display: flex !important;
        align-items: center !important;
        gap: 0.4rem !important;
        flex-shrink: 0 !important;
    }
    


    /* ══════════════════════════════════════════════════════
       PREMIUM HERO LAYOUT (Side-by-Side Title & Photo)
       ══════════════════════════════════════════════════════ */
    .hero-premium {
        padding: 110px 1rem 2rem 1rem !important;
        min-height: auto !important;
        height: auto !important;
        display: block !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    .hero-premium-container { 
        display: grid !important;
        grid-template-columns: 54% 46% !important; /* Slightly more room for photo */
        gap: 0 !important;
        align-items: start !important; /* Top aligned! */
        width: 100% !important; 
        padding: 0 !important; 
        position: relative !important; 
        z-index: 10 !important; 
    }
    
    /* Unwrap content so grid children are direct descendants */
    .hero-premium-content { 
        display: contents !important;
    }
    
    /* ── TYPOGRAPHY & BADGE ── */
    .hero-premium-badge {
        grid-column: 1 / 2 !important; /* Left column only */
        grid-row: 1 !important;
        font-size: 0.6rem !important;
        margin: 0 0 0.8rem 0 !important;
        color: var(--gold) !important;
        letter-spacing: 1.5px !important;
        text-transform: uppercase !important;
        text-align: left !important;
        display: block !important;
    }
    
    .hero-premium-title {
        grid-column: 1 / 2 !important; /* Left column */
        grid-row: 2 !important;
        align-self: start !important;
        font-size: clamp(1.8rem, 7.8vw, 2.4rem) !important; /* HUGE FONT */
        font-family: 'Times New Roman', Times, serif !important; /* Elegant serif look */
        font-weight: 700 !important;
        line-height: 1.05 !important; /* Tight line height */
        letter-spacing: -0.5px !important;
        margin: 0 0 1rem 0 !important;
        text-align: left !important;
        max-width: 100% !important;
        padding-right: 0 !important;
    }
    
    /* ── VISUAL BLOCK & PORTRAIT (Spanning full height of text block) ── */
    .hero-premium-image-area {
        grid-column: 2 / 3 !important; /* Right column */
        grid-row: 1 / 4 !important; /* Spans Badge, Title, and Description */
        align-self: stretch !important;
        position: relative !important;
        width: 100% !important;
        height: auto !important; 
        min-height: 320px !important; /* AT LEAST 320px (approx 40% of mobile screen) */
        display: flex !important;
        justify-content: center !important;
        align-items: flex-end !important; /* Portrait anchored to bottom */
        margin: 0 !important;
        z-index: 5 !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        overflow: visible !important;
    }
    .founder-portrait {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; /* Fills the tall column */
        object-position: center top !important; /* Head aligned at top */
        transform: scale(1.05) !important;
        -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%) !important;
        mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%) !important;
    }
    .orbit-system { 
        width: 200px !important; /* Larger orbit */
        height: 200px !important; 
        opacity: 0.35 !important; 
        left: 50% !important;
        top: 35% !important;
        transform: translate(-50%, -50%) !important;
        pointer-events: none !important;
    }

    .founder-name-plate, .hero-premium-signature {
        display: none !important;
    }

    .hero-premium-desc {
        grid-column: 1 / -1 !important; /* Spans full width to overlap image */
        grid-row: 3 !important;
        align-self: start !important;
        display: block !important;
        font-size: 0.95rem !important; /* Slightly larger readable text */
        margin: -0.5rem 0 0 0 !important; /* Negative margin to pull it up slightly over the photo */
        color: rgba(255, 255, 255, 0.95) !important;
        padding: 0 1rem 0 0 !important; /* Little padding on right so it doesn't touch the edge */
        text-align: left !important;
        max-width: 95% !important;
        line-height: 1.5 !important;
        position: relative !important;
        z-index: 20 !important; /* Ensures it stays ABOVE the photo */
        text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 0 15px rgba(0,0,0,0.8) !important; /* Ensures readability over photo */
    }
    
    /* ── MOBILE PREMIUM CARDS (2x2 Grid) ── */
    .hero-premium-btn,
    .mobile-extra-buttons,
    .hero-premium-features {
        display: none !important;
    }

    .mobile-premium-cards-grid {
        display: grid !important;
        grid-column: 1 / -1 !important; /* Full width under hero text/photo */
        grid-row: 4 !important; /* Below description */
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
        width: 100% !important;
        margin-top: 1.5rem !important;
        margin-bottom: 2rem !important;
        padding: 0 0.2rem !important;
        z-index: 20 !important;
    }
    
    .premium-card {
        position: relative !important;
        border-radius: 16px !important;
        padding: 1.25rem 1rem !important;
        display: flex !important;
        flex-direction: column !important;
        text-decoration: none !important;
        overflow: hidden !important;
        border: 1px solid rgba(255,255,255,0.1) !important;
        box-shadow: 0 8px 25px rgba(0,0,0,0.5) !important;
        min-height: 180px !important;
    }
    
    .card-icon {
        width: 42px !important;
        height: 42px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-bottom: 1rem !important;
        border: 1px solid rgba(255,255,255,0.2) !important;
    }
    
    .card-title {
        font-family: 'Times New Roman', Times, serif !important;
        font-size: 1.2rem !important;
        font-weight: 700 !important;
        color: #fff !important;
        margin: 0 0 0.4rem 0 !important;
        letter-spacing: 0.5px !important;
    }
    
    .card-desc {
        font-size: 0.75rem !important;
        color: rgba(255, 255, 255, 0.8) !important;
        line-height: 1.4 !important;
        margin: 0 0 1.5rem 0 !important;
    }
    
    .card-arrow {
        margin-top: auto !important;
        align-self: flex-end !important;
        width: 24px !important;
        height: 24px !important;
        border-radius: 50% !important;
        border: 1px solid rgba(255,255,255,0.3) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #fff !important;
        font-size: 0.8rem !important;
    }
    
    .premium-card-gold {
        background: linear-gradient(145deg, rgba(35,25,5,0.95) 0%, rgba(15,10,2,0.95) 100%) !important;
        border-color: rgba(212,175,55,0.3) !important;
    }
    .premium-card-gold .card-icon { border-color: rgba(212,175,55,0.5) !important; color: #d4af37 !important; }
    .premium-card-gold .card-arrow { border-color: rgba(212,175,55,0.5) !important; color: #d4af37 !important; }
    
    .premium-card-purple {
        background: linear-gradient(145deg, rgba(25,15,45,0.95) 0%, rgba(10,5,20,0.95) 100%) !important;
        border-color: rgba(147,112,219,0.3) !important;
    }
    .premium-card-purple .card-icon { border-color: rgba(147,112,219,0.5) !important; color: #9370db !important; }
    .premium-card-purple .card-arrow { border-color: rgba(147,112,219,0.5) !important; color: #9370db !important; }
    
    .premium-card-green {
        background: linear-gradient(145deg, rgba(15,30,20,0.95) 0%, rgba(5,15,5,0.95) 100%) !important;
        border-color: rgba(143,188,143,0.3) !important;
    }
    .premium-card-green .card-icon { border-color: rgba(143,188,143,0.5) !important; color: #8fbc8f !important; }
    .premium-card-green .card-arrow { border-color: rgba(143,188,143,0.5) !important; color: #8fbc8f !important; }
    
    .premium-card-pink {
        background: linear-gradient(145deg, rgba(40,15,20,0.95) 0%, rgba(20,5,10,0.95) 100%) !important;
        border-color: rgba(219,112,147,0.3) !important;
    }
    .premium-card-pink .card-icon { border-color: rgba(219,112,147,0.5) !important; color: #db7093 !important; }
    .premium-card-pink .card-arrow { border-color: rgba(219,112,147,0.5) !important; color: #db7093 !important; }

    /* ── OTHER MOBILE COMPONENTS ── */
    .cosmic-clock { width: 180px !important; height: 180px !important; }
    .clock-node { transform: translate(-50%, -50%) rotate(var(--a)) translateY(-78px) rotate(calc(-1 * var(--a))) !important; font-size: 0.75rem !important; }
    .calc-dial-label .dial-label-title { font-size: 0.75rem !important; }
    .calc-dial-label .dial-label-subtitle { font-size: 0.6rem !important; }
    .form-header h3 { font-size: 1.15rem !important; }
    .results-secondary { grid-template-columns: 1fr !important; }
    .result-number { font-size: 2.6rem !important; }
    .result-number-sm { font-size: 1.8rem !important; }
    .result-label { font-size: 0.95rem !important; }
    .result-label-sm { font-size: 0.85rem !important; }
    .result-desc { font-size: 0.78rem !important; line-height: 1.5 !important; }
    .section-title { font-size: 1.3rem !important; }
    .section-desc { font-size: 0.82rem !important; }
    .about-card { padding: 1.25rem !important; }
    .checkout-modal-card { width: 95% !important; padding: 1.5rem !important; }
    .payment-methods-grid { grid-template-columns: 1fr !important; }
    
    /* ── HEADER SCREENSHOT MATCHING ── */
    .header { padding: 0.5rem 0.5rem !important; }
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }
    .header-inner { gap: 0.2rem !important; }
    .mobile-center-pill {
        flex: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        white-space: nowrap !important;
    }
}
