/* ==================== DESIGN TOKENS (Brand Guardian + UX Architect) ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* --- Color System (Stitch: Frosted Obsidian) --- */
    --bg-dark: #0c1324;
    --bg-card: #191f31;
    --bg-card-hover: #23293c;
    --bg-elevated: #2e3447;
    --bg-surface-lowest: #070d1f;
    --bg-surface-low: #151b2d;
    --bg-surface-high: #23293c;
    --bg-surface-highest: #2e3447;
    --bg-surface-bright: #33394c;

    --text-primary: #dce1fb;
    --text-secondary: #cbc3d7;
    --text-muted: #958ea0;

    --accent-purple: #d0bcff;
    --accent-purple-light: #ba9eff;
    --accent-purple-dark: #a078ff;
    --accent-blue: #3b82f6;
    --accent-gold: #e9c349;
    --accent-gold-light: #f0d060;
    --accent-pink: #ffb0cd;
    --accent-green: #22c55e;

    /* --- Gradients (Stitch: Ethereal) --- */
    --gradient-main: linear-gradient(135deg, #d0bcff 0%, #a078ff 100%);
    --gradient-gold: linear-gradient(135deg, #e9c349, #f0d060);
    --gradient-fire: linear-gradient(135deg, #ef4444, #f97316);
    --gradient-water: linear-gradient(135deg, #3b82f6, #06b6d4);
    --gradient-earth: linear-gradient(135deg, #22c55e, #a3e635);
    --gradient-air: linear-gradient(135deg, #a78bfa, #c4b5fd);
    --gradient-cosmic: linear-gradient(135deg, #ba9eff 0%, #ff67ad 50%, #ba9eff 100%);
    --gradient-text: linear-gradient(to right, #ba9eff, #ff67ad);

    /* --- Spacing Scale (4px base) --- */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;

    /* --- Border & Shadow (Stitch: Ghost borders, ambient glow) --- */
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-interactive: rgba(208, 188, 255, 0.3);
    --border-glass: rgba(208, 188, 255, 0.15);
    --shadow-glow: 0 0 30px rgba(208, 188, 255, 0.15);
    --shadow-glow-strong: 0 0 50px rgba(186, 158, 255, 0.25);
    --shadow-card: 0 20px 40px rgba(208, 188, 255, 0.08);
    --shadow-card-hover: 0 20px 40px rgba(208, 188, 255, 0.12);
    --shadow-tarot: 0 0 40px rgba(186, 158, 255, 0.15);

    /* --- Radius --- */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 50px;

    /* --- Timing --- */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 0.15s;
    --duration-normal: 0.25s;
    --duration-slow: 0.4s;

    /* --- Typography (Stitch: Newsreader + Inter) --- */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Newsreader', 'Playfair Display', Georgia, serif;
    --leading-tight: 1.15;
    --leading-normal: 1.6;
    --leading-relaxed: 1.7;
}

/* ==================== BASE (Brand Guardian) ==================== */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(208, 188, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 176, 205, 0.05) 0%, transparent 40%);
    color: var(--text-primary);
    line-height: var(--leading-normal);
    overflow-x: hidden;
    min-height: 100vh;
}

::selection {
    background: rgba(208, 188, 255, 0.35);
    color: #fff;
}

/* ==================== STITCH: ATMOSPHERIC EFFECTS ==================== */
.glass-card {
    background: rgba(46, 52, 71, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card:hover {
    border-color: rgba(233, 195, 73, 0.4);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.glass-panel {
    background: rgba(46, 52, 71, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glowing-border {
    border: 1px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                linear-gradient(to right, #ba9eff, transparent) border-box;
}

.text-glow {
    text-shadow: 0 0 12px rgba(208, 188, 255, 0.3);
}

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

.gold-glow {
    box-shadow: 0 0 20px rgba(233, 195, 73, 0.15);
}

.tarot-shadow {
    box-shadow: var(--shadow-tarot);
}

.nebula-glow {
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.12;
    pointer-events: none;
}

.nebula-glow.nebula-1 {
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, #d0bcff 0%, transparent 70%);
}

.nebula-glow.nebula-2 {
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, #ffb0cd 0%, transparent 70%);
}

.stardust-overlay {
    background-image: radial-gradient(circle at 2px 2px, rgba(208, 188, 255, 0.1) 1px, transparent 0);
    background-size: 40px 40px;
    opacity: 0.05;
}

.hidden {
    display: none !important;
}

/* Focus Visible (UI Designer - Accessibility) */
:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

button:focus:not(:focus-visible) {
    outline: none;
}

/* ==================== STARS BACKGROUND ==================== */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out infinite;
    opacity: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: var(--max-opacity); transform: scale(1); }
}

/* Shooting Stars (Whimsy Injector) */
.shooting-star {
    position: fixed;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
}

.shooting-star::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 1px;
    background: linear-gradient(to left, rgba(255,255,255,0.8), transparent);
    transform-origin: right center;
    transform: rotate(0deg);
}

@keyframes shootingStar {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0);
    }
    5% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    70% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-300px, 200px) scale(0.5);
    }
}

/* ==================== NAVIGATION ==================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) clamp(28px, 5vw, 64px);
    height: 72px;
    background: rgba(46, 52, 71, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background var(--duration-normal) ease,
                box-shadow var(--duration-normal) ease;
}

.nav.scrolled {
    background: rgba(46, 52, 71, 0.8);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--accent-purple);
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: opacity var(--duration-fast);
    text-shadow: 0 0 8px rgba(208, 188, 255, 0.4);
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: var(--space-4);
}

.nav-logo:hover {
    opacity: 0.85;
}

.logo-icon {
    font-size: 1.4rem;
    animation: gentlePulse 3s ease-in-out infinite;
}

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

.nav-cta {
    background: var(--gradient-main);
    color: #0c1324;
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: var(--font-display);
    transition: transform var(--duration-normal) var(--ease-spring),
                box-shadow var(--duration-normal) ease;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(208, 188, 255, 0.25);
}

.nav-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(208, 188, 255, 0.4);
}

.nav-cta:active {
    transform: scale(0.98);
}

/* Nav right group */
.nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    flex-shrink: 0;
}

/* ==================== LANGUAGE SWITCHER ==================== */
.lang-switcher {
    position: relative;
    z-index: 200;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--duration-fast) ease;
    white-space: nowrap;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.lang-arrow {
    font-size: 0.7rem;
    transition: transform var(--duration-fast) ease;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-1);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--duration-fast) ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

.lang-option {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    width: 100%;
    padding: 8px 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) ease;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.lang-option.active {
    background: rgba(208, 188, 255, 0.15);
    color: var(--accent-purple-light);
}

.lang-flag {
    font-size: 1.1rem;
}

.lang-name {
    flex: 1;
}

/* ==================== HERO ==================== */
.hero {
    text-align: center;
    padding: 120px var(--space-6) var(--space-12);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(208, 188, 255, 0.08);
    border: 1px solid rgba(208, 188, 255, 0.2);
    color: var(--accent-purple);
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: var(--space-6);
    animation: fadeInUp 0.6s var(--ease-out);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: var(--space-6);
    text-shadow: 0 0 12px rgba(208, 188, 255, 0.3);
    animation: fadeInUp 0.6s var(--ease-out) 0.1s backwards;
    max-width: 800px;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-8);
    font-weight: 300;
    line-height: 1.7;
    animation: fadeInUp 0.6s var(--ease-out) 0.2s backwards;
}

.hero-time {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: var(--space-4);
    animation: fadeInUp 0.6s var(--ease-out) 0.4s backwards;
}

/* ==================== BUTTONS (UI Designer) ==================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-main);
    color: #0c1324;
    border: none;
    padding: 18px 36px;
    border-radius: var(--radius-lg);
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-display);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s ease;
    animation: fadeInUp 0.6s var(--ease-out) 0.3s backwards;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(208, 188, 255, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 30px rgba(208, 188, 255, 0.5);
}

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

.btn-glow {
    box-shadow: 0 0 25px rgba(208, 188, 255, 0.3);
}

.btn-glow:hover {
    box-shadow: 0 0 40px rgba(208, 188, 255, 0.5);
}

/* Subtle idle pulse */
.btn-glow {
    animation: fadeInUp 0.6s var(--ease-out) 0.3s backwards,
               btnPulse 3s ease-in-out 1.5s infinite;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 0 25px rgba(208, 188, 255, 0.3); }
    50% { box-shadow: 0 0 35px rgba(208, 188, 255, 0.45); }
}

.btn-arrow {
    font-size: 1.3rem;
    transition: transform var(--duration-normal) var(--ease-spring);
}

.btn-primary:hover .btn-arrow {
    transform: translateX(5px);
}

/* ==================== SOCIAL PROOF ==================== */
.social-proof {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
    padding: var(--space-8) var(--space-8);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s var(--ease-out) 0.5s backwards;
    background: rgba(46, 52, 71, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(208, 188, 255, 0.08);
    border-radius: var(--radius-xl);
    max-width: 640px;
    margin: 0 auto;
}

.proof-item {
    text-align: center;
    flex: 1;
}

.proof-icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
    font-variation-settings: 'FILL' 0, 'wght' 300;
    opacity: 0.7;
}

.proof-number {
    display: inline;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--accent-gold);
}

.proof-suffix {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--accent-gold);
}

/* Shimmer sweep on numbers */
.shimmer-text {
    background: linear-gradient(
        110deg,
        var(--accent-gold) 0%,
        var(--accent-gold) 35%,
        #fff 50%,
        var(--accent-gold) 65%,
        var(--accent-gold) 100%
    );
    background-size: 250% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerSweep 4s ease-in-out infinite;
}
@keyframes shimmerSweep {
    0%, 100% { background-position: 150% center; }
    50% { background-position: -50% center; }
}

.proof-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: var(--space-1);
    letter-spacing: 0.03em;
}

.proof-divider {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, rgba(208, 188, 255, 0.2), transparent);
    flex-shrink: 0;
}

/* ==================== SECTIONS ==================== */
.section {
    padding: var(--space-24) var(--space-6);
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
    text-shadow: 0 0 12px rgba(208, 188, 255, 0.2);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: var(--space-12);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== HOW IT WORKS ==================== */
.steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    margin-top: var(--space-12);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.step {
    background: rgba(46, 52, 71, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-10) var(--space-8);
    text-align: left;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.step:hover {
    transform: translateY(-4px);
    border-color: rgba(233, 195, 73, 0.3);
    box-shadow: 0 20px 40px rgba(208, 188, 255, 0.08);
}

.step-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-surface-highest);
    border: 1px solid rgba(73, 68, 84, 0.2);
    margin-bottom: var(--space-8);
    transition: transform var(--duration-slow) var(--ease-spring);
}

.step-icon .material-symbols-outlined {
    font-size: 1.6rem;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.step:nth-child(1) .step-icon .material-symbols-outlined { color: var(--accent-purple); }
.step:nth-child(2) .step-icon .material-symbols-outlined { color: var(--accent-gold); }
.step:nth-child(3) .step-icon .material-symbols-outlined { color: var(--accent-pink); }

.step:hover .step-icon {
    transform: scale(1.1);
}

.step-number {
    position: absolute;
    top: var(--space-4);
    right: var(--space-5);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.step h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: var(--space-3);
    letter-spacing: -0.01em;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.7;
}

/* ==================== TYPE TEASER (landing page) ==================== */
.type-teaser {
    text-align: center;
}

.type-teaser .btn-primary {
    display: inline-flex;
    margin-top: var(--space-8);
}

/* ==================== TYPES PAGE ==================== */
.types-page {
    padding: 120px var(--space-6) var(--space-12);
    max-width: 1200px;
    margin: 0 auto;
}

.types-hero {
    text-align: center;
    margin-bottom: var(--space-12);
}

.types-hero .hero-title {
    padding-top: 0;
}

.types-hero .hero-subtitle {
    margin-top: var(--space-4);
}

/* ==================== TYPE SHOWCASE (16personalities style) ==================== */
.type-showcase {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.type-group {
    margin-top: var(--space-12);
}

.group-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid;
    display: inline-block;
}

.group-title.analysts { color: #a78bfa; border-color: #a78bfa; }
.group-title.diplomats { color: #34d399; border-color: #34d399; }
.group-title.sentinels { color: #22d3ee; border-color: #22d3ee; }
.group-title.explorers { color: #fbbf24; border-color: #fbbf24; }

.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-5);
}

@media (min-width: 700px) {
    .type-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.type-card {
    background: rgba(46, 52, 71, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(233, 195, 73, 0.15);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.type-card:hover {
    transform: translateY(-4px);
    border-color: rgba(233, 195, 73, 0.4);
    box-shadow: 0 20px 40px rgba(208, 188, 255, 0.12);
}

[data-group="analysts"] .type-card:hover { border-color: rgba(167, 139, 250, 0.4); box-shadow: 0 12px 40px rgba(167, 139, 250, 0.15); }
[data-group="diplomats"] .type-card:hover { border-color: rgba(52, 211, 153, 0.4); box-shadow: 0 12px 40px rgba(52, 211, 153, 0.15); }
[data-group="sentinels"] .type-card:hover { border-color: rgba(34, 211, 238, 0.4); box-shadow: 0 12px 40px rgba(34, 211, 238, 0.15); }
[data-group="explorers"] .type-card:hover { border-color: rgba(251, 191, 36, 0.4); box-shadow: 0 12px 40px rgba(251, 191, 36, 0.15); }

.type-card-img {
    width: 120px;
    height: 180px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-4);
    flex-shrink: 0;
}

.type-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) ease;
}

.type-card:hover .type-card-img img {
    transform: scale(1.05);
}

.type-card-img.placeholder {
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
    border: 1px dashed var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
}

.type-card-img.placeholder span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.type-card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.type-card-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.type-card-code {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1.5px;
}

[data-group="analysts"] .type-card-code { color: #a78bfa; }
[data-group="diplomats"] .type-card-code { color: #34d399; }
[data-group="sentinels"] .type-card-code { color: #22d3ee; }
[data-group="explorers"] .type-card-code { color: #fbbf24; }

.type-card-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    font-style: italic;
    margin-top: 4px;
}

/* ==================== FAQ ==================== */
.faq-section {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: rgba(46, 52, 71, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--duration-normal) ease;
}

.faq-item[open] {
    border-color: rgba(208, 188, 255, 0.3);
}

.faq-question {
    padding: 18px 24px;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.15rem;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color var(--duration-normal) ease;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--accent-purple-light);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item[open] .faq-question::after {
    content: '−';
}

.faq-question:hover {
    color: var(--accent-purple-light);
}

.faq-answer {
    padding: 0 24px 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ==================== TESTIMONIALS ==================== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-5);
    margin-top: var(--space-12);
}

.testimonial {
    background: rgba(46, 52, 71, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.testimonial:hover {
    transform: translateY(-4px);
    border-color: rgba(233, 195, 73, 0.2);
    box-shadow: 0 20px 40px rgba(208, 188, 255, 0.08);
}

.testimonial-stars {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-bottom: var(--space-3);
    letter-spacing: 2px;
}

.testimonial p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: var(--leading-normal);
    margin-bottom: var(--space-4);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.author-type {
    color: var(--accent-purple-light);
    font-size: 0.8rem;
    font-weight: 500;
}

/* ==================== FINAL CTA ==================== */
.final-cta {
    text-align: center;
    padding: var(--space-20) var(--space-6) 100px;
}

.final-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: var(--space-3);
}

.final-cta p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: var(--space-8);
}

/* ==================== QUIZ ==================== */
.quiz {
    min-height: 100vh;
    padding: var(--space-20) var(--space-6) var(--space-10);
    position: relative;
    z-index: 1;
}

.quiz-progress {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    padding: var(--space-4) var(--space-6);
    background: rgba(12, 19, 36, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 50;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #d0bcff, #ffb0cd);
    border-radius: 3px;
    transition: width var(--duration-slow) var(--ease-out);
    width: 0%;
    position: relative;
    box-shadow: 0 0 8px rgba(208, 188, 255, 0.6);
}

/* Animated glow tip on progress bar */
.progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 12px;
    height: 12px;
    background: var(--accent-purple);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(208, 188, 255, 0.8);
    opacity: 0.8;
}

.progress-text {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: var(--space-2);
}

.quiz-content {
    max-width: 640px;
    margin: 60px auto 0;
}

/* QUESTION CARD */
.question-card {
    text-align: center;
    animation: questionEnter 0.45s var(--ease-out);
    background: rgba(46, 52, 71, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: var(--space-10) var(--space-8);
    box-shadow: 0 20px 40px rgba(208, 188, 255, 0.06);
}

/* ===== ZODIAC BONUS QUESTION STYLING ===== */
.question-card.zodiac-question {
    background: linear-gradient(135deg, rgba(208, 188, 255, 0.06) 0%, rgba(255, 176, 205, 0.06) 50%, rgba(208, 188, 255, 0.06) 100%);
    border: 1px solid rgba(208, 188, 255, 0.2);
    border-radius: 20px;
    padding: var(--space-8) var(--space-6);
    position: relative;
    overflow: hidden;
}

.question-card.zodiac-question::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #d0bcff, #ffb0cd, #d0bcff);
    background-size: 200% 100%;
    animation: borderShimmer 3s linear infinite;
}

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

.zodiac-question-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(208, 188, 255, 0.2), rgba(236, 72, 153, 0.2));
    border: 1px solid rgba(208, 188, 255, 0.3);
    border-radius: 100px;
    padding: 6px 18px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-purple-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: var(--space-4);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(208, 188, 255, 0.3); }
    50% { box-shadow: 0 0 20px 4px rgba(208, 188, 255, 0.15); }
}

.zodiac-badge-symbol {
    font-size: 1rem;
}

.zodiac-question-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-3);
    animation: iconFloat 3s ease-in-out infinite;
}

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

/* Zodiac scale buttons — purple/pink gradient instead of standard colors */
.zodiac-scale .scale-btn:hover,
.zodiac-scale .scale-btn.filled {
    border-color: #a78bfa !important;
}
.zodiac-scale .scale-btn:hover .scale-dot,
.zodiac-scale .scale-btn.filled .scale-dot {
    background: linear-gradient(135deg, #d0bcff, #ffb0cd) !important;
}

.zodiac-scale .scale-btn.selected {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(208, 188, 255, 0.4);
}

/* ===== ZODIAC TRANSITION SCREEN ===== */
.zodiac-transition {
    text-align: center;
    padding: var(--space-10) var(--space-6);
    animation: questionEnter 0.6s var(--ease-out);
}

.zodiac-transition-symbol {
    font-size: 4rem;
    display: block;
    margin-bottom: var(--space-4);
    animation: iconFloat 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(208, 188, 255, 0.5));
}

.zodiac-transition h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    background: linear-gradient(135deg, #a78bfa, #ffb0cd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-3);
}

.zodiac-transition p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.zodiac-transition-sub {
    color: var(--accent-purple-light) !important;
    font-size: 0.9rem !important;
    font-style: italic;
    margin-top: var(--space-2);
    opacity: 0.8;
}

@keyframes questionEnter {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.question-number {
    font-size: 0.85rem;
    color: var(--accent-purple-light);
    font-weight: 600;
    margin-bottom: var(--space-3);
    letter-spacing: 1.5px;
}

.question-text {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    margin-bottom: var(--space-12);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

/* SCALE */
.scale-container {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    padding: 0 var(--space-2);
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-5);
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.scale-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.scale-line {
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    z-index: 1;
    transform: translateY(-22px);
}

.scale-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(73, 68, 84, 1);
    background: var(--bg-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.scale-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    transition: all var(--duration-normal) var(--ease-spring);
}

/* Size variation: outer = bigger, center = smaller */
.scale-btn-1, .scale-btn-7 { width: 52px; height: 52px; }
.scale-btn-1 .scale-dot, .scale-btn-7 .scale-dot { width: 18px; height: 18px; }
.scale-btn-2, .scale-btn-6 { width: 46px; height: 46px; }
.scale-btn-2 .scale-dot, .scale-btn-6 .scale-dot { width: 14px; height: 14px; }
.scale-btn-3, .scale-btn-5 { width: 40px; height: 40px; }
.scale-btn-3 .scale-dot, .scale-btn-5 .scale-dot { width: 10px; height: 10px; }
.scale-btn-4 { width: 36px; height: 36px; }
.scale-btn-4 .scale-dot { width: 8px; height: 8px; }

/* Colors: disagree = red-ish, neutral = gray, agree = purple */
.scale-btn-1:hover, .scale-btn-1.filled { border-color: #d0bcff; }
.scale-btn-1:hover .scale-dot, .scale-btn-1.filled .scale-dot { background: #d0bcff; }
.scale-btn-2:hover, .scale-btn-2.filled { border-color: #d0bcff; }
.scale-btn-2:hover .scale-dot, .scale-btn-2.filled .scale-dot { background: #d0bcff; }
.scale-btn-3:hover, .scale-btn-3.filled { border-color: #d0bcff; }
.scale-btn-3:hover .scale-dot, .scale-btn-3.filled .scale-dot { background: #d0bcff; }
.scale-btn-4:hover, .scale-btn-4.filled { border-color: #d0bcff; }
.scale-btn-4:hover .scale-dot, .scale-btn-4.filled .scale-dot { background: #d0bcff; }
.scale-btn-5:hover, .scale-btn-5.filled { border-color: #d0bcff; }
.scale-btn-5:hover .scale-dot, .scale-btn-5.filled .scale-dot { background: #d0bcff; }
.scale-btn-6:hover, .scale-btn-6.filled { border-color: #d0bcff; }
.scale-btn-6:hover .scale-dot, .scale-btn-6.filled .scale-dot { background: #d0bcff; }
.scale-btn-7:hover, .scale-btn-7.filled { border-color: #d0bcff; }
.scale-btn-7:hover .scale-dot, .scale-btn-7.filled .scale-dot { background: #d0bcff; }

.scale-btn.selected {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(208, 188, 255, 0.5);
    border-color: #d0bcff;
}

.scale-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(208, 188, 255, 0.5);
}

/* ==================== BIRTHDAY ==================== */
.birthday {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-20) var(--space-6);
    position: relative;
    z-index: 1;
}

.birthday-content {
    text-align: center;
    max-width: 440px;
    animation: fadeInUp 0.6s var(--ease-out);
}

.birthday-icon {
    font-size: 4rem;
    margin-bottom: var(--space-6);
    animation: gentlePulse 3s ease-in-out infinite;
}

.birthday-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 500;
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
    text-shadow: 0 0 12px rgba(208, 188, 255, 0.2);
}

.birthday-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-10);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
}

.birthday-input-group {
    margin-bottom: var(--space-8);
}

.birthday-input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-2);
    font-weight: 500;
}

.birthday-input {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    background: rgba(46, 52, 71, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(208, 188, 255, 0.15);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: var(--font-body);
    text-align: center;
    transition: border-color var(--duration-normal) ease,
                box-shadow var(--duration-normal) ease;
}

.birthday-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px rgba(208, 188, 255, 0.25);
}

/* ==================== CALCULATING ==================== */
.calculating {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-20) var(--space-6);
    position: relative;
    z-index: 1;
}

.calc-content {
    text-align: center;
    max-width: 400px;
}

.calc-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-8);
}

/* Orbit animation */
.calc-animation {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-8);
    position: relative;
}

.orbit {
    width: 100%;
    height: 100%;
    border: 2px solid rgba(208, 188, 255, 0.25);
    border-radius: 50%;
    animation: spin 3s linear infinite;
    position: relative;
}

/* Second orbit ring (Whimsy) */
.orbit::before {
    content: '';
    position: absolute;
    inset: -16px;
    border: 1px solid rgba(236, 72, 153, 0.15);
    border-radius: 50%;
    animation: spin 5s linear infinite reverse;
}

.orbit::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.planet {
    width: 16px;
    height: 16px;
    background: var(--gradient-main);
    border-radius: 50%;
    position: absolute;
    top: -8px;
    left: 50%;
    margin-left: -8px;
    box-shadow: 0 0 20px rgba(208, 188, 255, 0.6),
                0 0 40px rgba(208, 188, 255, 0.3);
}

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

.calc-steps {
    text-align: left;
}

.calc-step {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: var(--space-2) 0;
    transition: all var(--duration-normal) ease;
    opacity: 0.4;
    transform: translateX(0);
}

.calc-step.active {
    color: var(--accent-purple-light);
    opacity: 1;
    transform: translateX(6px);
}

.calc-step.done {
    color: var(--accent-gold);
    opacity: 0.8;
}

/* ==================== RESULT ==================== */
.result {
    min-height: 100vh;
    padding: 100px var(--space-6) var(--space-16);
    position: relative;
    z-index: 1;
}

.result-content {
    max-width: 600px;
    margin: 0 auto;
}

.result-teaser {
    text-align: center;
    animation: resultReveal 0.8s var(--ease-out);
}

@keyframes resultReveal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.result-badge {
    display: inline-block;
    background: var(--gradient-main);
    padding: 10px 28px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: var(--space-3);
    animation: badgeGlow 2s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(208, 188, 255, 0.3); }
    50% { box-shadow: 0 0 35px rgba(208, 188, 255, 0.5); }
}

.result-zodiac {
    font-size: 0.85rem;
    color: var(--accent-pink);
    font-weight: 600;
    margin-bottom: var(--space-6);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.result-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    font-weight: 700;
    margin-bottom: var(--space-8);
    letter-spacing: -0.03em;
    text-shadow: 0 0 12px rgba(208, 188, 255, 0.2);
}

.result-type-card {
    background: var(--bg-card);
    border: 2px solid var(--border-interactive);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    margin-bottom: var(--space-10);
    box-shadow: var(--shadow-glow);
    transition: box-shadow var(--duration-slow) ease;
}

.result-type-card:hover {
    box-shadow: var(--shadow-glow-strong);
}

.type-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.type-code {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* PREVIEW / BLURRED */
.result-preview {
    text-align: left;
    margin-bottom: var(--space-10);
}

.result-preview h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-4);
    text-align: center;
}

.preview-list {
    list-style: none;
    margin-bottom: var(--space-6);
}

.preview-list li {
    padding: var(--space-2) 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.blurred-content {
    /* filter: blur(6px); */
    /* user-select: none; */
    /* pointer-events: none; */
    position: relative;
}

.blurred-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--space-3);
    line-height: var(--leading-normal);
}

/* ==================== PAYWALL ==================== */
.paywall {
    margin-bottom: var(--space-12);
}

.paywall-card {
    background: rgba(46, 52, 71, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(208, 188, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: border-color var(--duration-normal) ease,
                box-shadow var(--duration-slow) ease;
}

.paywall-card:hover {
    box-shadow: 0 0 50px rgba(208, 188, 255, 0.15);
}

.paywall-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-main);
    padding: 6px 24px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.paywall-card h3 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    margin: var(--space-6) 0 var(--space-5);
    letter-spacing: -0.02em;
}

.paywall-price {
    margin-bottom: var(--space-2);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-3);
}

.price-old {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 1rem;
}

.price-current {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.paywall-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: var(--space-6);
}

.btn-pay {
    width: 100%;
    justify-content: center;
    font-size: 1.05rem;
    padding: 18px;
}

.paywall-social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: var(--space-3);
    font-size: 0.85rem;
    color: var(--accent-purple-light);
}

.social-proof-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.paywall-discount-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: var(--space-4);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.discount-countdown {
    font-weight: 700;
    color: #f59e0b;
    font-variant-numeric: tabular-nums;
}

.paywall-includes {
    margin-top: var(--space-5);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    text-align: left;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.paywall-include-item {
    padding: 4px 0;
}

.paywall-trust {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    margin-top: var(--space-4);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==================== EMAIL PDF SECTION ==================== */
.email-pdf-section {
    margin-top: var(--space-10);
}

.email-pdf-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-8) var(--space-6);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.email-pdf-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
}

.email-pdf-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-3);
}

.email-pdf-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.email-pdf-card > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--space-6);
    line-height: 1.5;
}

.email-input-group {
    display: flex;
    gap: var(--space-3);
    max-width: 480px;
    margin: 0 auto var(--space-4);
    flex-wrap: wrap;
    justify-content: center;
}

.email-input {
    flex: 1;
    min-width: 220px;
    padding: 12px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color var(--duration-fast) ease;
}

.email-input:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(208, 188, 255, 0.15);
}

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

.btn-email {
    white-space: nowrap;
}

.email-hint {
    color: var(--text-muted) !important;
    font-size: 0.8rem !important;
    margin-bottom: var(--space-3) !important;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 10px 24px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-interactive);
    background: transparent;
    color: var(--accent-purple-light);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-fast) ease;
    font-family: var(--font-body);
}

.btn-download:hover {
    background: rgba(208, 188, 255, 0.1);
    border-color: var(--accent-purple);
    transform: translateY(-1px);
}

.email-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
    padding: var(--space-3) var(--space-4);
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-md);
    color: #22c55e;
    font-weight: 600;
    font-size: 0.9rem;
}

.success-icon {
    font-size: 1.2rem;
}

/* ==================== SHARE ==================== */
/* ==================== EXPLORE MORE ==================== */
.explore-more {
    margin-top: var(--space-10);
    text-align: center;
}

.explore-more h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: var(--space-5);
}

.explore-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 450px;
    margin: 0 auto;
}

.explore-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all var(--duration-normal) ease;
}

.explore-link:hover {
    border-color: rgba(208, 188, 255, 0.4);
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.explore-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* ==================== RETAKE ==================== */
.retake-section {
    text-align: center;
    margin-top: var(--space-8);
    padding-bottom: var(--space-6);
}

.btn-secondary {
    padding: 12px 28px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--duration-normal) ease;
}

.btn-secondary:hover {
    border-color: var(--accent-purple);
    color: var(--text-primary);
    background: rgba(208, 188, 255, 0.1);
}

.share-section {
    text-align: center;
    margin-top: var(--space-10);
}

.share-section p {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    font-size: 0.95rem;
}

.share-buttons {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-spring);
    font-family: var(--font-body);
}

.share-btn:hover {
    transform: translateY(-2px) scale(1.03);
}

.share-btn:active {
    transform: translateY(0) scale(0.97);
}

.share-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(220, 39, 67, 0.3);
}

.share-btn.whatsapp:hover {
    background: #25D366;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.share-btn.twitter:hover {
    background: #1DA1F2;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(29, 161, 242, 0.3);
}

.share-btn.copy:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-purple);
}

/* ==================== RESULT HERO (Tarot-style) ==================== */
.result-hero-wrapper {
    position: relative;
    width: 280px;
    height: 502px; /* 1536:2752 image ratio */
    margin: var(--space-6) auto var(--space-8);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: tarotFloat 4s ease-in-out infinite;
}

.result-hero-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle, rgba(167,139,250,0.35) 0%, rgba(167,139,250,0.15) 40%, transparent 70%);
    filter: blur(24px);
    z-index: 0;
    animation: heroGlowPulse 3s ease-in-out infinite;
}

@keyframes heroGlowPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.result-hero-picture {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
}

.result-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    border: 2px solid rgba(167,139,250,0.4);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.6),
        0 0 40px rgba(167,139,250,0.35),
        inset 0 0 0 1px rgba(255,255,255,0.08);
    background: linear-gradient(135deg, #1a1040 0%, #0c1324 100%);
}

@media (max-width: 480px) {
    .result-hero-wrapper {
        width: calc(100vw - 80px);
        max-width: 280px;
        height: calc((100vw - 80px) * 1.79);
        max-height: 502px;
    }
}

/* ==================== FULL PROFILE ==================== */
.result-full-profile {
    text-align: left;
    margin-bottom: var(--space-10);
    position: relative;
}

/* Paywall gating: when not paid, hide the full profile entirely.
   Free users see the teaser + free preview + paywall. */
body:not(.is-paid) .result-full-profile {
    display: none;
}

/* ==================== FREE PREVIEW (always visible) ==================== */
.free-preview {
    max-width: 680px;
    margin: var(--space-8) auto var(--space-6);
    text-align: left;
}

body.is-paid .free-preview {
    display: none;
}

.free-preview-card {
    background: linear-gradient(135deg, rgba(46, 52, 71, 0.6) 0%, rgba(30, 27, 75, 0.4) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(208, 188, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-8) var(--space-6);
    margin-bottom: var(--space-4);
}

.free-preview-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-purple, #a78bfa);
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.free-preview-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.free-preview-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.free-preview-strengths {
    list-style: none;
    padding: 0;
    margin: var(--space-5) 0 0;
    display: grid;
    gap: var(--space-3);
}

.free-preview-strengths li {
    padding: var(--space-3) var(--space-4);
    background: rgba(167, 139, 250, 0.08);
    border-left: 3px solid var(--accent-purple, #a78bfa);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.free-preview-strengths li::before {
    content: '✦';
    color: var(--accent-purple, #a78bfa);
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.free-preview-cta {
    text-align: center;
    padding: var(--space-5) var(--space-4);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

.free-preview-cta strong {
    color: var(--accent-purple, #a78bfa);
    font-style: normal;
}

.profile-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px var(--space-6);
    margin-bottom: var(--space-4);
    animation: fadeInUp 0.5s var(--ease-out) backwards;
    transition: border-color var(--duration-normal) ease,
                transform var(--duration-slow) var(--ease-out);
}

.profile-section:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.profile-section:nth-child(1) { animation-delay: 0.1s; }
.profile-section:nth-child(2) { animation-delay: 0.15s; }
.profile-section:nth-child(3) { animation-delay: 0.2s; }
.profile-section:nth-child(4) { animation-delay: 0.25s; }
.profile-section:nth-child(5) { animation-delay: 0.3s; }
.profile-section:nth-child(6) { animation-delay: 0.35s; }
.profile-section:nth-child(7) { animation-delay: 0.4s; }
.profile-section:nth-child(8) { animation-delay: 0.45s; }

.profile-icon {
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
}

.profile-section h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
}

.profile-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: var(--leading-relaxed);
}

.element-section {
    border-width: 2px;
}

.zodiac-section {
    border-color: rgba(245, 158, 11, 0.25);
}

.profile-highlight {
    margin-top: var(--space-4);
    padding: 14px 18px;
    background: rgba(208, 188, 255, 0.08);
    border-left: 3px solid var(--accent-purple);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.profile-highlight.warning {
    background: rgba(245, 158, 11, 0.08);
    border-left-color: var(--accent-gold);
}

.compatibility-box {
    margin-top: var(--space-4);
    padding: 14px 18px;
    background: rgba(245, 158, 11, 0.06);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.compat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compat-signs {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1.05rem;
}

.profile-mantra {
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    text-align: center;
    margin: var(--space-8) 0;
    animation: fadeInUp 0.5s var(--ease-out) 0.5s backwards;
    position: relative;
    overflow: hidden;
}

/* Sparkle border on mantra (Whimsy) */
.profile-mantra::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 2px;
    background: var(--gradient-cosmic);
    background-size: 300% 300%;
    animation: borderRotate 4s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.4;
}

@keyframes borderRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.mantra-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: var(--space-3);
    opacity: 0.85;
}

.mantra-text {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 700;
    line-height: 1.4;
    font-style: italic;
}

/* ==================== RARITY BADGE ==================== */
.rarity-badge {
    background: linear-gradient(135deg, rgba(208, 188, 255, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border: 1px solid rgba(208, 188, 255, 0.25);
    border-radius: 16px;
    padding: var(--space-6) var(--space-6);
    margin: var(--space-5) 0;
    text-align: center;
}

.rarity-percent {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #a78bfa, #ffb0cd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.rarity-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: var(--space-1);
    margin-bottom: var(--space-4);
}

.rarity-bar-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--space-3);
}

.rarity-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #d0bcff, #ffb0cd);
    border-radius: 4px;
    transition: width 1.5s var(--ease-out);
}

.rarity-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* ==================== SPARKLE PARTICLES (Whimsy Injector) ==================== */
.sparkle {
    position: fixed;
    pointer-events: none;
    z-index: 1000;
    font-size: 14px;
    animation: sparkleFloat 0.8s var(--ease-out) forwards;
}

@keyframes sparkleFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) scale(0) rotate(180deg);
    }
}

/* Result confetti burst */
.confetti {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    pointer-events: none;
    z-index: 1000;
    animation: confettiFall 2.5s var(--ease-out) forwards;
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg) scale(0.3);
    }
}

/* ==================== SECTION TRANSITIONS (Whimsy) ==================== */
.section-enter {
    animation: sectionFadeIn 0.5s var(--ease-out);
}

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

/* ==================== DIMENSION CHART — Scale with Marker ==================== */
.dimension-chart { margin-top: var(--space-4); }

.dimension-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.dimension-label {
    width: 105px;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: right;
    font-weight: 500;
    transition: color 0.3s;
}

.dimension-label-right {
    width: 105px;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: left;
    font-weight: 500;
    transition: color 0.3s;
}

.dimension-label.active {
    color: var(--text-primary);
    font-weight: 700;
}

.dimension-label-right.active {
    color: var(--text-primary);
    font-weight: 700;
}

.dimension-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    position: relative;
    /* NO overflow hidden — marker needs to overflow */
}

/* Center tick mark */
.dimension-track::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -4px;
    width: 2px;
    height: 14px;
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(-50%);
    border-radius: 1px;
}

/* The marker dot on the scale */
.dimension-marker {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gradient-main);
    transform: translate(-50%, -50%);
    transition: left 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    left: 50%; /* starts at center, animates to position */
    box-shadow: 0 0 12px rgba(208, 188, 255, 0.5);
    z-index: 2;
}

/* Glow pulse on marker */
.dimension-marker::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(208, 188, 255, 0.2);
    animation: markerPulse 2s ease-in-out infinite;
}

@keyframes markerPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.4); opacity: 0; }
}

.dimension-percent {
    width: 40px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-purple-light);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* ==================== STRENGTH BARS ==================== */
.strength-chart { margin-top: var(--space-4); }
.strength-row { margin-bottom: 14px; }
.strength-header { display: flex; justify-content: space-between; margin-bottom: 6px; }
.strength-name { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); }
.strength-value { font-size: 0.85rem; font-weight: 700; color: var(--accent-purple-light); }
.strength-track { height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.strength-fill { height: 100%; border-radius: 4px; transition: width 1s cubic-bezier(0.22,1,0.36,1); width: 0%; }
/* Different colors for each bar */
.strength-fill-1 { background: linear-gradient(90deg, #d0bcff, #a78bfa); }
.strength-fill-2 { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.strength-fill-3 { background: linear-gradient(90deg, #ffb0cd, #f472b6); }
.strength-fill-4 { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.strength-fill-5 { background: linear-gradient(90deg, #22c55e, #4ade80); }

/* ==================== TRAIT TAGS ==================== */
.trait-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-4); }
.trait-tag { padding: 6px 16px; border-radius: 50px; font-size: 0.82rem; font-weight: 600; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); color: var(--text-secondary); transition: all 0.3s ease; }
.trait-tag:nth-child(odd) { border-color: rgba(139,92,246,0.25); color: var(--accent-purple-light); }
.trait-tag:nth-child(3n) { border-color: rgba(236,72,153,0.25); color: var(--accent-pink); }
.trait-tag:nth-child(4n) { border-color: rgba(59,130,246,0.25); color: var(--accent-blue); }

/* ==================== COMPATIBILITY METERS ==================== */
.compat-chart { margin-top: var(--space-4); }
.compat-meter-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 10px 14px; background: rgba(255,255,255,0.02); border-radius: var(--radius-sm); }
.compat-element-icon { font-size: 1.2rem; width: 28px; text-align: center; }
.compat-element-name { width: 60px; font-size: 0.85rem; font-weight: 600; }
.compat-meter-track { flex: 1; height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.compat-meter-fill { height: 100%; border-radius: 3px; transition: width 1s ease; }
.compat-meter-fill.fire { background: var(--gradient-fire); }
.compat-meter-fill.water { background: var(--gradient-water); }
.compat-meter-fill.earth { background: var(--gradient-earth); }
.compat-meter-fill.air { background: var(--gradient-air); }
.compat-meter-label { font-size: 0.78rem; color: var(--text-muted); width: 50px; text-align: right; }

/* ==================== FAMOUS PEOPLE ==================== */
.famous-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: var(--space-4); }
.famous-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: rgba(255,255,255,0.03); border-radius: var(--radius-sm); border: 1px solid var(--border-subtle); transition: border-color 0.2s; }
.famous-item:hover { border-color: var(--border-interactive); }
.famous-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--gradient-main); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }
.famous-info { display: flex; flex-direction: column; }
.famous-name { font-size: 0.85rem; font-weight: 600; }
.famous-role { font-size: 0.75rem; color: var(--text-muted); }

/* ==================== ENERGY TIMELINE ==================== */
.energy-chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; margin-top: var(--space-5); padding: 0 10px; }
.energy-slot { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.energy-bar-wrapper { width: 100%; height: 80%; display: flex; align-items: flex-end; justify-content: center; }
.energy-bar { width: 70%; max-width: 40px; border-radius: 6px 6px 2px 2px; transition: height 1.2s cubic-bezier(0.22,1,0.36,1); height: 0%; }
.energy-bar.morning { background: linear-gradient(to top, #f59e0b, #fbbf24); }
.energy-bar.midday { background: linear-gradient(to top, #ef4444, #f97316); }
.energy-bar.afternoon { background: linear-gradient(to top, #d0bcff, #a78bfa); }
.energy-bar.evening { background: linear-gradient(to top, #3b82f6, #60a5fa); }
.energy-bar.night { background: linear-gradient(to top, #6366f1, #818cf8); }
.energy-time { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; white-space: nowrap; }

/* ==================== GROWTH STEPS ==================== */
.growth-steps { margin-top: var(--space-4); counter-reset: growth; }
.growth-step { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border-subtle); }
.growth-step:last-child { border-bottom: none; }
.growth-step-num { counter-increment: growth; width: 28px; height: 28px; border-radius: 50%; background: rgba(139,92,246,0.15); color: var(--accent-purple-light); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; flex-shrink: 0; }
.growth-step-text { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.5; }

/* ==================== SECTION DIVIDERS ==================== */
.profile-divider { text-align: center; margin: var(--space-6) 0; color: var(--text-muted); font-size: 0.85rem; letter-spacing: 4px; opacity: 0.5; }

/* ==================== TYPE OVERVIEW GRID ==================== */
.type-overview { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: var(--space-5); }
.type-overview-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: rgba(255,255,255,0.03); border-radius: var(--radius-md); border: 1px solid var(--border-subtle); }
.type-overview-icon { font-size: 1.3rem; }
.type-overview-label { font-size: 0.82rem; color: var(--text-muted); }
.type-overview-value { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); }

/* ==================== ARCHETYPE AVATAR ==================== */
.archetype-avatar {
    width: 200px;
    height: 200px;
    margin: 0 auto 24px;
    position: relative;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: avatarReveal 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.archetype-avatar::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    padding: 4px;
    background: var(--gradient-cosmic);
    background-size: 300% 300%;
    animation: borderRotate 4s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.archetype-avatar::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    filter: blur(30px);
    opacity: 0.4;
    z-index: -1;
}

.avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.avatar-symbol {
    font-size: 3.5rem;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 12px rgba(255,255,255,0.5));
    animation: symbolFloat 3s ease-in-out infinite;
}

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

.avatar-element-ring {
    position: absolute;
    inset: 15px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    animation: spin 8s linear infinite;
}

.avatar-element-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    top: -4px;
    left: 50%;
    margin-left: -4px;
}

.avatar-zodiac {
    position: absolute;
    bottom: 20px;
    font-size: 1.2rem;
    opacity: 0.7;
    z-index: 2;
}

@keyframes avatarReveal {
    from {
        opacity: 0;
        transform: scale(0.7) rotate(-10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Avatar variants per element */
.archetype-avatar.fire .avatar-inner { background: radial-gradient(circle at 40% 40%, #f97316 0%, #ef4444 40%, #7f1d1d 100%); }
.archetype-avatar.water .avatar-inner { background: radial-gradient(circle at 40% 40%, #06b6d4 0%, #3b82f6 40%, #1e1b4b 100%); }
.archetype-avatar.earth .avatar-inner { background: radial-gradient(circle at 40% 40%, #a3e635 0%, #22c55e 40%, #14532d 100%); }
.archetype-avatar.air .avatar-inner { background: radial-gradient(circle at 40% 40%, #c4b5fd 0%, #a78bfa 40%, #2e1065 100%); }

/* Small sparkle dots inside avatar */
.avatar-sparkle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s ease-in-out infinite;
}

/* ===== Archetype Image Wrapper ===== */
.archetype-image-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-6);
}

/* Tarot card image container with overlay */
.archetype-image-container {
    position: relative;
    width: 280px;
    max-width: 90%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 0 30px rgba(208, 188, 255, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.4);
    animation: avatarReveal 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.archetype-image-container:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow:
        0 0 50px rgba(208, 188, 255, 0.5),
        0 12px 48px rgba(0, 0, 0, 0.5);
}

/* Element-colored glow */
.archetype-image-wrapper.fire .archetype-image-container {
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.4), 0 8px 32px rgba(0, 0, 0, 0.4);
}
.archetype-image-wrapper.water .archetype-image-container {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4), 0 8px 32px rgba(0, 0, 0, 0.4);
}
.archetype-image-wrapper.earth .archetype-image-container {
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.4), 0 8px 32px rgba(0, 0, 0, 0.4);
}
.archetype-image-wrapper.air .archetype-image-container {
    box-shadow: 0 0 30px rgba(167, 139, 250, 0.4), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.archetype-image-wrapper.fire .archetype-image-container:hover {
    box-shadow: 0 0 60px rgba(239, 68, 68, 0.6), 0 12px 48px rgba(0, 0, 0, 0.5);
}
.archetype-image-wrapper.water .archetype-image-container:hover {
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.6), 0 12px 48px rgba(0, 0, 0, 0.5);
}
.archetype-image-wrapper.earth .archetype-image-container:hover {
    box-shadow: 0 0 60px rgba(34, 197, 94, 0.6), 0 12px 48px rgba(0, 0, 0, 0.5);
}
.archetype-image-wrapper.air .archetype-image-container:hover {
    box-shadow: 0 0 60px rgba(167, 139, 250, 0.6), 0 12px 48px rgba(0, 0, 0, 0.5);
}

/* The actual tarot card image */
.archetype-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

/* Zodiac + Element overlay on the image */
.archetype-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.archetype-overlay-zodiac {
    font-size: 2rem;
    text-shadow:
        0 0 12px var(--element-glow),
        0 0 24px var(--element-glow);
    filter: drop-shadow(0 0 6px var(--element-glow));
}

.archetype-overlay-element {
    font-size: 1.5rem;
    text-shadow:
        0 0 10px var(--element-glow),
        0 0 20px var(--element-glow);
}

/* Legacy archetype-image classes for backwards compat */
.archetype-image.fire { box-shadow: 0 0 40px rgba(239, 68, 68, 0.3); }
.archetype-image.water { box-shadow: 0 0 40px rgba(59, 130, 246, 0.3); }
.archetype-image.earth { box-shadow: 0 0 40px rgba(34, 197, 94, 0.3); }
.archetype-image.air { box-shadow: 0 0 40px rgba(167, 139, 250, 0.3); }

/* ==================== NAV CENTER LINKS ==================== */
.nav-center {
    display: flex;
    gap: var(--space-8);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.nav-link {
    color: var(--accent-purple);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: opacity var(--duration-normal) ease;
    opacity: 0.6;
    white-space: nowrap;
}

.nav-link:first-child {
    opacity: 1;
}

.nav-link:hover {
    opacity: 1;
}

@media (max-width: 860px) {
    .nav-center { display: none; }
}

/* ==================== TAROT CARD REVEAL ==================== */
.tarot-reveal {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tarot-scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
    position: relative;
}

/* Wrapper handles entrance + float (no preserve-3d needed here) */
.tarot-card-wrapper {
    width: 300px;
    height: 538px; /* matches 1536:2752 image ratio */
    animation: tarotEntrance 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards, tarotFloat 3s ease-in-out 1.2s infinite;
    cursor: pointer;
    perspective: 1000px;
}

/* Inner card handles ONLY the 3D flip — no other transforms */
.tarot-card-3d {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.tarot-card-3d.flipped {
    transform: rotateY(180deg);
}

@keyframes tarotEntrance {
    0% { opacity: 0; transform: translateY(80px) scale(0.7) rotateX(15deg); }
    100% { opacity: 1; transform: translateY(0) scale(1) rotateX(0); }
}

@keyframes tarotFlipReveal {
    0% { transform: rotateY(0) scale(1); }
    40% { transform: rotateY(90deg) scale(1.08); }
    70% { transform: rotateY(180deg) scale(1.15); }
    100% { transform: rotateY(180deg) scale(1.05); }
}

.tarot-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(208, 188, 255, 0.15);
}

.tarot-card-3d.flipped .tarot-face {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(208, 188, 255, 0.4);
}

.tarot-back {
    background:
        radial-gradient(ellipse at 50% 35%, rgba(139, 92, 246, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 90%, rgba(245, 158, 11, 0.18) 0%, transparent 60%),
        radial-gradient(circle at 20% 20%, rgba(208, 188, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.06) 0%, transparent 30%),
        linear-gradient(160deg, #0b0520 0%, #1a0b3e 35%, #2d1b69 60%, #150830 100%);
    border: 2px solid rgba(245, 158, 11, 0.55);
}

/* Subtle star field across the back */
.tarot-back::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 72% 12%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 30% 72%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 85% 60%, rgba(208, 188, 255, 0.8), transparent),
        radial-gradient(1px 1px at 50% 45%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 18% 88%, rgba(245, 220, 180, 0.8), transparent),
        radial-gradient(1px 1px at 65% 85%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 92% 30%, rgba(255, 255, 255, 0.6), transparent);
    pointer-events: none;
    opacity: 0.85;
}

/* Ornate gold frame */
.tarot-back-frame {
    position: absolute;
    inset: 12px;
    border: 1.5px solid rgba(245, 200, 120, 0.75);
    border-radius: 10px;
    box-shadow:
        inset 0 0 0 1px rgba(245, 158, 11, 0.15),
        inset 0 0 24px rgba(245, 158, 11, 0.12);
}

/* Inner thin border for a double-frame look */
.tarot-back-frame::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 0.5px solid rgba(245, 200, 120, 0.35);
    border-radius: 7px;
    pointer-events: none;
}

/* Corner ornaments */
.tarot-back-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 1.5px solid rgba(245, 200, 120, 0.9);
    pointer-events: none;
}
.tarot-back-corner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; border-top-left-radius: 8px; }
.tarot-back-corner.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; border-top-right-radius: 8px; }
.tarot-back-corner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; border-bottom-left-radius: 8px; }
.tarot-back-corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; border-bottom-right-radius: 8px; }

.tarot-back-corner::after {
    content: '✦';
    position: absolute;
    font-size: 0.7rem;
    color: rgba(245, 200, 120, 0.95);
    text-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}
.tarot-back-corner.tl::after { top: 4px; left: 4px; }
.tarot-back-corner.tr::after { top: 4px; right: 4px; }
.tarot-back-corner.bl::after { bottom: 4px; left: 4px; }
.tarot-back-corner.br::after { bottom: 4px; right: 4px; }

.tarot-back-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 24px;
    text-align: center;
}

/* Central emblem with radiating rays */
.tarot-back-emblem {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tarot-back-rays {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        conic-gradient(
            from 0deg,
            rgba(245, 200, 120, 0.55) 0deg 2deg,
            transparent 2deg 30deg,
            rgba(245, 200, 120, 0.35) 30deg 32deg,
            transparent 32deg 60deg,
            rgba(245, 200, 120, 0.55) 60deg 62deg,
            transparent 62deg 90deg,
            rgba(245, 200, 120, 0.35) 90deg 92deg,
            transparent 92deg 120deg,
            rgba(245, 200, 120, 0.55) 120deg 122deg,
            transparent 122deg 150deg,
            rgba(245, 200, 120, 0.35) 150deg 152deg,
            transparent 152deg 180deg,
            rgba(245, 200, 120, 0.55) 180deg 182deg,
            transparent 182deg 210deg,
            rgba(245, 200, 120, 0.35) 210deg 212deg,
            transparent 212deg 240deg,
            rgba(245, 200, 120, 0.55) 240deg 242deg,
            transparent 242deg 270deg,
            rgba(245, 200, 120, 0.35) 270deg 272deg,
            transparent 272deg 300deg,
            rgba(245, 200, 120, 0.55) 300deg 302deg,
            transparent 302deg 330deg,
            rgba(245, 200, 120, 0.35) 330deg 332deg,
            transparent 332deg 360deg
        );
    mask: radial-gradient(circle, transparent 32%, black 34%, black 70%, transparent 72%);
    -webkit-mask: radial-gradient(circle, transparent 32%, black 34%, black 70%, transparent 72%);
    animation: tarotRaysSpin 30s linear infinite;
}

.tarot-back-sun {
    position: relative;
    font-size: 3.2rem;
    color: rgba(245, 220, 150, 1);
    text-shadow:
        0 0 12px rgba(245, 158, 11, 0.8),
        0 0 24px rgba(245, 158, 11, 0.4);
    animation: gentlePulse 3s ease-in-out infinite;
    z-index: 1;
}

.tarot-back-divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 200, 120, 0.7), transparent);
}

.tarot-back-text {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    line-height: 1.3;
    color: rgba(245, 220, 150, 0.95);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.tarot-back-stars {
    font-size: 0.7rem;
    color: rgba(245, 200, 120, 0.7);
    letter-spacing: 4px;
    margin-top: 4px;
}

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

.tarot-front {
    transform: rotateY(180deg);
    background: var(--bg-card);
    border: 2px solid rgba(245, 158, 11, 0.4);
}

.tarot-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.5s ease, opacity 0.5s ease;
}

/* Blur-up loading effect for tarot card */
.tarot-front.loading img {
    filter: blur(15px);
    opacity: 0.5;
}
.tarot-front.loading {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(139, 92, 246, 0.15) 100%);
}

/* Glow behind card */
.tarot-glow {
    position: absolute;
    width: 340px;
    height: 580px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 24px;
    background: radial-gradient(ellipse, rgba(208, 188, 255, 0) 60%, rgba(208, 188, 255, 0) 100%);
    transition: all 1s ease;
    pointer-events: none;
    z-index: -1;
}

.tarot-glow.active {
    background: radial-gradient(ellipse, rgba(208, 188, 255, 0.3) 0%, rgba(245, 158, 11, 0.15) 50%, transparent 80%);
    box-shadow: 0 0 120px rgba(208, 188, 255, 0.3), 0 0 60px rgba(245, 158, 11, 0.2);
    animation: glowPulse 2s ease-in-out infinite;
}
.tarot-glow.flash {
    animation: glowFlash 0.8s ease-out forwards;
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}
@keyframes glowFlash {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 120px rgba(208, 188, 255, 0.3); }
    30% { opacity: 1; transform: translate(-50%, -50%) scale(1.6); box-shadow: 0 0 200px rgba(208, 188, 255, 0.6), 0 0 100px rgba(245, 158, 11, 0.4); background: radial-gradient(ellipse, rgba(255, 255, 255, 0.4) 0%, rgba(208, 188, 255, 0.3) 40%, transparent 70%); }
    100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 150px rgba(208, 188, 255, 0.35), 0 0 80px rgba(245, 158, 11, 0.25); }
}

/* Particles */
.tarot-particles {
    position: absolute;
    inset: -100px;
    pointer-events: none;
    overflow: hidden;
}

.tarot-particle {
    position: absolute;
    bottom: -20px;
    color: rgba(167, 139, 250, 0.8);
    animation: tarotParticleFloat 3s ease-out forwards;
    opacity: 0;
    text-shadow: 0 0 6px currentColor;
}

@keyframes tarotFloat {
    0%, 100% { transform: translateY(0) rotateX(2deg); }
    50% { transform: translateY(-12px) rotateX(-2deg); }
}

@keyframes tarotParticleFloat {
    0% { opacity: 0; transform: translateY(0) scale(0.5); }
    20% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-400px) scale(1.2) rotate(180deg); }
}

/* Reveal info */
.tarot-reveal-info {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}

.tarot-reveal-info.tarot-info-enter {
    animation: tarotNameReveal 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes tarotNameReveal {
    0% { opacity: 0; transform: translateY(30px) scale(0.9); }
    60% { opacity: 1; transform: translateY(-5px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.tarot-reveal-name {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
}

.tarot-reveal-code {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: var(--space-6);
}

/* ==================== EMAIL GATE ==================== */
.email-gate {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
}
.email-gate-card {
    position: relative;
    overflow: hidden;
    text-align: center;
    max-width: 500px;
    width: 100%;
    background: rgba(46, 52, 71, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(208, 188, 255, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--space-12) var(--space-8);
}
.email-gate-glow {
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(208, 188, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}
.email-gate-icon {
    font-size: 3.5rem;
    color: var(--accent-purple-light);
    display: block;
    margin-bottom: var(--space-6);
    filter: drop-shadow(0 0 16px rgba(208, 188, 255, 0.3));
}
.email-gate-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}
.email-gate-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-8);
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}
.email-gate-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}
.email-gate-input {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    background: rgba(15, 20, 40, 0.6);
    border: 1px solid rgba(208, 188, 255, 0.15);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
    text-align: center;
}
.email-gate-input::placeholder {
    color: var(--text-muted);
}
.email-gate-input:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2), 0 0 20px rgba(208, 188, 255, 0.08);
}
.email-gate-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
    animation: shake 0.4s ease;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}
.email-gate-btn {
    width: 100%;
    justify-content: center;
    font-size: 1.15rem;
    padding: var(--space-4) var(--space-6);
}
.email-gate-privacy {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.email-gate-hint {
    margin-top: var(--space-4);
    padding: var(--space-3) var(--space-4);
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(245, 200, 120, 0.92);
    background: rgba(245, 158, 11, 0.07);
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: var(--radius-md);
    text-align: center;
}

/* ==================== COMPATIBILITY BANNER ==================== */
.compat-banner {
    display: block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: rgba(46, 52, 71, 0.5);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(236, 72, 153, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--space-16) var(--space-8);
    transition: transform var(--duration-normal) var(--ease-spring), border-color var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
    cursor: pointer;
    margin-top: calc(-1 * var(--space-10));
    margin-bottom: calc(-1 * var(--space-10));
}
.compat-banner:hover {
    transform: translateY(-3px);
    border-color: rgba(236, 72, 153, 0.35);
    box-shadow: 0 12px 60px rgba(236, 72, 153, 0.15), 0 0 80px rgba(208, 188, 255, 0.06);
}
.compat-banner-glow {
    position: absolute;
    top: -50%;
    right: -15%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
    pointer-events: none;
}
.compat-banner-glow-2 {
    top: auto;
    bottom: -50%;
    right: auto;
    left: -15%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
}
.compat-banner-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-6);
}

/* Visual: INFJ ♥ ENFP badges */
.compat-banner-visual {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    margin-bottom: var(--space-2);
}
.compat-badge {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    background: rgba(208, 188, 255, 0.1);
    border: 1px solid rgba(208, 188, 255, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-2) var(--space-5);
}
.compat-heart-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.compat-heart {
    font-size: 2.8rem;
    color: var(--accent-pink);
    filter: drop-shadow(0 0 18px rgba(236, 72, 153, 0.5));
    animation: compatHeartPulse 2s ease-in-out infinite;
}
@keyframes compatHeartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

.compat-banner-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: var(--leading-tight);
}
.compat-banner-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 480px;
}
.compat-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-2);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    padding: var(--space-3) var(--space-8);
    border-radius: var(--radius-lg);
    transition: transform var(--duration-normal) var(--ease-spring), box-shadow var(--duration-normal) ease;
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.25);
}
.compat-banner:hover .compat-banner-btn {
    transform: scale(1.04);
    box-shadow: 0 6px 30px rgba(236, 72, 153, 0.35);
}
@media (max-width: 600px) {
    .compat-banner {
        padding: var(--space-12) var(--space-6);
    }
    .compat-badge {
        font-size: 0.95rem;
        padding: var(--space-2) var(--space-4);
    }
    .compat-heart {
        font-size: 2.2rem;
    }
}

/* ==================== FOOTER ==================== */
.footer {
    border-top: 1px solid rgba(73, 68, 84, 0.05);
    padding: var(--space-12) var(--space-6);
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.2rem;
    font-style: italic;
    color: rgba(208, 188, 255, 0.4);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    margin: var(--space-4) 0;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--duration-fast) ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

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

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== MOBILE RESPONSIVE (UX Architect) ==================== */
@media (max-width: 640px) {
    .social-proof {
        gap: var(--space-4);
        padding: var(--space-6) var(--space-4);
    }

    .proof-number, .proof-suffix {
        font-size: 1.4rem;
    }

    .proof-icon {
        font-size: 1.2rem;
    }

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

    .type-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }

    .type-card-img {
        width: 90px;
        height: 135px;
    }

    .type-card-desc {
        display: none;
    }

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

    .hero {
        padding: 100px var(--space-5) var(--space-10);
    }

    .btn-primary {
        padding: var(--space-4) 28px;
        font-size: 1rem;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
    }

    .result-type-card {
        padding: var(--space-6);
    }

    .type-name {
        font-size: 1.5rem;
    }

    .profile-section {
        padding: var(--space-6) var(--space-5);
    }

    .paywall-card {
        padding: var(--space-8) var(--space-5);
    }

    .profile-mantra {
        padding: 28px var(--space-5);
    }

    .dimension-label, .dimension-label-right { width: 65px; font-size: 0.7rem; }
    .dimension-marker { width: 14px; height: 14px; }
    .dimension-row { gap: 6px; margin-bottom: 16px; }
    .famous-grid { grid-template-columns: 1fr; }
    .type-overview { grid-template-columns: 1fr; }
    .energy-chart { height: 100px; }
    .dimension-row { gap: 8px; }

    .archetype-avatar, .archetype-image {
        width: 160px;
        height: 160px;
    }
    .avatar-symbol {
        font-size: 2.8rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .tarot-card-wrapper {
        width: calc(100vw - 48px);
        max-width: 280px;
        height: auto;
        aspect-ratio: 300 / 538;
    }

    .tarot-glow {
        width: calc(100vw - 24px);
        max-width: 300px;
        height: auto;
        aspect-ratio: 340 / 580;
    }

    .nav-cta {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .nav-right {
        gap: var(--space-3);
    }

    .exit-modal {
        padding: 24px 20px;
    }

    .compat-banner {
        padding: var(--space-8) var(--space-4);
    }

    .compat-banner-title {
        font-size: 1.3rem;
    }

    .compat-heart {
        font-size: 2rem;
    }

    .compat-badge {
        font-size: 0.85rem;
        padding: 6px 14px;
    }
}

/* Hide decorative glow effects on mobile */
@media (max-width: 640px) {
    .email-gate-glow,
    .compat-banner-glow,
    .compat-banner-glow-2 {
        display: none;
    }
}

/* Tablet tweaks */
@media (min-width: 641px) and (max-width: 1024px) {
    .type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .gradient-text {
        animation: none;
    }

    .progress-fill::after {
        display: none;
    }
}

/* ==================== COOKIE BANNER ==================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 500;
    background: rgba(15, 15, 35, 0.95);
    border-top: 1px solid rgba(208, 188, 255, 0.3);
    backdrop-filter: blur(10px);
    animation: slideUp 0.4s ease;
}

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

.cookie-banner.hidden { display: none; }

.cookie-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.cookie-content a {
    color: var(--accent-purple-light);
    text-decoration: underline;
}

.cookie-accept {
    padding: 8px 24px;
    border-radius: var(--radius-full);
    background: var(--gradient-main);
    border: none;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s;
}

.cookie-accept:hover {
    transform: scale(1.05);
}

/* ==================== AMBIENT SOUND TOGGLE ==================== */
.ambient-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 15, 35, 0.8);
    border: 1px solid rgba(208, 188, 255, 0.3);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.ambient-toggle:hover {
    border-color: rgba(208, 188, 255, 0.6);
    transform: scale(1.1);
}
.ambient-toggle.hidden {
    display: none;
}

/* ==================== EXIT INTENT POPUP ==================== */
.exit-popup { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.exit-popup.hidden { display: none; }
.exit-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); }
.exit-modal { position: relative; background: var(--bg-dark); border: 1px solid rgba(208, 188, 255, 0.4); border-radius: 20px; padding: 40px 32px; max-width: 420px; width: calc(100% - 40px); text-align: center; animation: popIn 0.3s ease; }
@keyframes popIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.exit-close { position: absolute; top: 12px; right: 16px; background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; }
.exit-close:hover { color: var(--text-primary); }
.exit-icon { font-size: 3rem; margin-bottom: 16px; }
.exit-modal h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 12px; }
.exit-modal p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; margin-bottom: 20px; }
.exit-price { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin-bottom: 20px; }
.exit-skip { color: var(--text-muted); font-size: 0.8rem; cursor: pointer; margin-top: 16px; margin-bottom: 0; }
.exit-skip:hover { color: var(--text-secondary); text-decoration: underline; }

/* ==================== RESUME QUIZ BANNER ==================== */
.resume-banner {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    background: rgba(15, 15, 35, 0.95);
    border: 1px solid rgba(208, 188, 255, 0.4);
    border-radius: 12px;
    padding: 16px 24px;
    backdrop-filter: blur(10px);
    animation: slideDown 0.4s ease;
    max-width: 500px;
    width: calc(100% - 40px);
}
@keyframes slideDown { from { opacity: 0; transform: translateX(-50%) translateY(-20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.resume-banner.hidden { display: none; }
.resume-content { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.resume-text { font-size: 0.9rem; color: var(--text-secondary); }
.resume-actions { display: flex; gap: 12px; }
.resume-btn { padding: 8px 20px; border-radius: 20px; border: none; cursor: pointer; font-size: 0.85rem; transition: all 0.2s; }
.resume-btn.resume-yes { background: var(--gradient-main); color: white; }
.resume-btn.resume-no { background: transparent; border: 1px solid var(--border-subtle); color: var(--text-secondary); }
.resume-btn:hover { transform: scale(1.05); }

/* ==================== 192 COSMIC TEASER (Types Page) ==================== */
.cosmic-teaser {
    position: relative;
    margin: var(--space-16) auto;
    max-width: 800px;
    padding: var(--space-12) var(--space-8);
    background: rgba(46, 52, 71, 0.5);
    border: 1px solid rgba(208, 188, 255, 0.15);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-align: center;
    overflow: hidden;
}

.cosmic-teaser-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    background: radial-gradient(ellipse, rgba(208, 188, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.cosmic-teaser-content {
    position: relative;
    z-index: 1;
}

.cosmic-teaser-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(208, 188, 255, 0.2), rgba(245, 158, 11, 0.15));
    border: 1px solid rgba(208, 188, 255, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--accent-gold);
    margin-bottom: var(--space-6);
}

.cosmic-teaser-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-4);
}

.cosmic-teaser-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto var(--space-8);
}

.cosmic-teaser-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.cosmic-teaser-grid picture {
    aspect-ratio: 300 / 538;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(208, 188, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform var(--duration-normal) var(--ease-spring);
}

.cosmic-teaser-grid picture:hover {
    transform: scale(1.05) translateY(-4px);
}

.cosmic-teaser-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 640px) {
    .cosmic-teaser {
        margin: var(--space-10) var(--space-4);
        padding: var(--space-8) var(--space-5);
    }
    .cosmic-teaser-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cosmic-teaser-glow {
        display: none;
    }
}
