@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* --- CONSTANTS (Shared) --- */
    --font-main: 'Outfit', sans-serif;
    --anim-speed-fast: 0.3s;
    --anim-speed-normal: 0.5s;
    --anim-speed-slow: 0.8s;
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    --success-color: #10b981;
    --error-color: #ef4444;

    /* --- BASE/MALE THEME (Default / Fallback) --- */
    /* Deep Navy / Blue Palette */
    --bg-page: #000000;
    --bg-app: #0f172a;
    /* Slate 900 */
    --bg-app-rgb: 15, 23, 42;

    --surface-0: #1e293b;
    /* Slate 800 */
    --surface-1: #334155;
    /* Slate 700 */
    --surface-highlight: #475569;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-brand: #60a5fa;

    --accent-color: #3b82f6;
    /* Blue 500 */
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --accent-glow: 0 0 20px rgba(59, 130, 246, 0.4);

    --border-radius-sm: 12px;
    --border-radius-lg: 20px;
    --border-radius-pill: 50px;

    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* --- GENDER SPLIT TOKENS --- */
    --split-female-bg: #fff1f5;
    --split-female-accent: #ec4899;
    --split-female-glow: rgba(236, 72, 153, 0.3);
    --split-male-bg: #0f172a;
    --split-male-accent: #3b82f6;
    --split-male-glow: rgba(59, 130, 246, 0.3);

    /* Gender Card Tokens */
    --gender-card-bg: rgba(255, 255, 255, 0.1);
    --gender-card-border: rgba(255, 255, 255, 0.2);
    --gender-card-hover-bg: rgba(255, 255, 255, 0.15);
    --gender-card-hover-border: rgba(255, 255, 255, 0.35);
    --gender-card-selected-bg: rgba(255, 255, 255, 0.2);
    --gender-card-selected-border: rgba(255, 255, 255, 0.5);
}

/* --- MALE THEME EXPLICIT --- */
:root[data-gender="male"] {
    /* Same as default but explicit */
    --bg-app: #0f172a;
    --text-primary: #f8fafc;
    --accent-color: #3b82f6;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --surface-0: #1e293b;
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-brand-contrast: #ffffff;
}

/* --- FEMALE THEME (Light & Pleasant Pink) --- */
:root[data-gender="female"] {
    /* Light/Soft Palette */
    --bg-page: #fce7f3;
    /* Light Pink Page Background */
    --bg-app: #fff0f5;
    /* Lavender Blush (Previous favorite) */
    --bg-app-rgb: 255, 240, 245;

    --surface-0: #ffffff;
    --surface-1: #fff5f7;
    --surface-highlight: #ffe4e9;

    /* Dark text for contrast on light bg */
    --text-primary: #5a4a4e;
    --text-secondary: #9d8a8e;
    --text-brand: #db2777;
    /* Pink 600 */

    --accent-color: #ec4899;
    /* Pink 500 */
    --accent-gradient: linear-gradient(135deg, #f472b6 0%, #db2777 100%);
    --accent-glow: 0 0 25px rgba(236, 72, 153, 0.2);

    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(236, 72, 153, 0.15);
    --shadow-card: 0 10px 30px -10px rgba(131, 24, 67, 0.15);
    /* Softer shadow */
    --text-brand-contrast: #5a4a4e;
}

/* --- RESET & BASE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    overscroll-behavior: none;
    /* Prevent swipe navigation */
}

body {
    font-family: var(--font-main);
    background: var(--bg-page);
    color: var(--text-primary);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: none;
    /* KEY FIX: Disables rubber-banding and swipe nav */
    touch-action: pan-y;
    /* KEY FIX: Disables horizontal swipe gestures on body */
    display: flex;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Body background for gender split mode */
body:has(#app.gender-split-mode) {
    background: linear-gradient(90deg,
            var(--split-female-bg) 0%,
            var(--split-female-bg) 50%,
            var(--split-male-bg) 50%,
            var(--split-male-bg) 100%) !important;
}

/* --- APP CONTAINER --- */
#app {
    width: 100%;
    max-width: 480px;
    background-color: var(--bg-app);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transition: background-color 0.8s var(--ease-smooth);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 20%);
}

[data-theme="female"] #app {
    background-image:
        radial-gradient(circle at 0% 0%, rgba(255, 182, 193, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(255, 228, 225, 0.3) 0%, transparent 40%);
}

/* --- HEADER --- */
#main-header {
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(var(--bg-app), 0.6);
    /* Needs RGB vars ideally, but this works if chrome */
    /* Hack for glass header bg matching theme */
    background: linear-gradient(180deg, var(--bg-app) 0%, transparent 100%);
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="female"] .icon-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid rgba(236, 72, 153, 0.15);
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
    color: #ec4899;
}

.icon-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="female"] .icon-btn:hover {
    box-shadow: 0 6px 24px rgba(236, 72, 153, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 1);
}

.icon-btn:active {
    transform: scale(0.96);
}

.header-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 12px;
}

#section-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* --- PROGRESS BAR --- */
.segmented-progress-bar {
    display: flex;
    gap: 6px;
    width: 100%;
    height: 6px;
    padding: 0 4px;
}

.segment {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

[data-gender="female"] .segment {
    background: rgba(236, 72, 153, 0.12);
    box-shadow: inset 0 1px 2px rgba(236, 72, 153, 0.08);
}

.segment::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
    opacity: 1;
    transform: translateX(calc(var(--fill, 0%) - 100%));
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

[data-gender="female"] .segment::after {
    background: linear-gradient(90deg, #db2777 0%, #ec4899 100%);
    box-shadow: 0 0 10px rgba(219, 39, 119, 0.5);
}

.segment.completed::after {
    transform: translateX(0);
}

/* Remove the old active animation which might conflict with precise filling */
.segment.active::after {
    /* Controlled by inline style now */
}

@keyframes shimmer {
    0% {
        mask-position: -200%;
        -webkit-mask-position: -200%;
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }

    100% {
        mask-position: 200%;
        -webkit-mask-position: 200%;
        opacity: 0.8;
    }
}

/* --- MAIN CONTAINER --- */
#quiz-container {
    flex: 1;
    padding: 20px 20px 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    /* Animation defaults */
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
}

/* --- TYPOGRAPHY --- */
h1 {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    line-height: 1.15;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    animation: fadeInUp 0.5s var(--ease-bounce) 0.1s both;
}

.highlight-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.subtitle {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-brand);
    margin-bottom: 24px;
    font-weight: 700;
    text-align: center;
    animation: fadeInUp 0.5s var(--ease-bounce) both;
}

.description {
    font-size: 17px;
    line-height: 1.6;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 400;
    animation: fadeInUp 0.5s var(--ease-bounce) 0.2s both;
}

/* --- CARDS & GRIDS --- */
.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
    animation: fadeInUp 0.6s var(--ease-smooth) 0.3s both;
}

.option-card {
    background: var(--surface-0);
    border-radius: var(--border-radius-lg);
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    transition: all 0.3s var(--ease-bounce);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

[data-theme="female"] .option-card {
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.08);
}

/* Hover effects only for devices with actual hover capability (desktop) */
@media (hover: hover) and (pointer: fine) {
    .option-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-card);
        border-color: rgba(255, 255, 255, 0.1);
    }

    [data-theme="female"] .option-card:hover {
        border-color: rgba(236, 72, 153, 0.2);
    }

    .option-card:hover img {
        transform: scale(1.05) rotate(2deg);
    }
}

.option-card:active {
    transform: scale(0.96);
}

.option-card img {
    width: 90%;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.option-card .label {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
    text-align: center;
}

/* Premium Avatar Style for Gender Card */
.option-card img[src*="avatar"] {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50% !important;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--surface-1);
    background: var(--surface-1);
    animation: pulse-soft 2s infinite;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

[data-theme="female"] .option-card img[src*="avatar"] {
    border-color: #fce7f3;
    /* Light pink border */
}

/* --- LIST OPTIONS --- */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    animation: fadeInUp 0.6s var(--ease-smooth) 0.3s both;
}

.list-option {
    background: var(--surface-0);
    padding: 18px 24px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    transition: all 0.2s var(--ease-smooth);
}

[data-theme="female"] .list-option {
    border-radius: 18px;
}

/* Hover effects only for devices with actual hover capability (desktop) */
@media (hover: hover) and (pointer: fine) {
    .list-option:hover {
        transform: translateX(6px);
        background: var(--surface-1);
        border-color: var(--text-brand);
    }

    .list-option:hover .arrow {
        transform: translateX(4px);
        color: var(--accent-color);
        opacity: 1;
    }
}

.list-option:active {
    transform: scale(0.98);
}

.list-option .icon {
    font-size: 24px;
    margin-right: 18px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.list-option .content {
    flex: 1;
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 17px;
}

.list-option .arrow {
    color: var(--text-secondary);
    font-size: 20px;
    font-weight: bold;
    opacity: 0.5;
    transition: transform 0.2s;
}

/* Selected State for Multi Select */
.list-option.selected {
    background: var(--surface-highlight);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

.checkbox-circle {
    width: 24px;
    height: 24px;
    border: 2px solid var(--text-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-bounce);
}

.selected .checkbox-circle {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.1);
}

.checkbox-circle::after {
    content: '✓';
    font-size: 14px;
    color: white;
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s;
}

.selected .checkbox-circle::after {
    opacity: 1;
    transform: scale(1);
}

/* --- BUTTONS --- */
.btn-primary {
    background: var(--accent-gradient);
    color: white;
    font-weight: 800;
    font-size: 18px;
    padding: 18px 32px;
    border-radius: var(--border-radius-pill);
    border: none;
    cursor: pointer;
    width: 100%;
    box-shadow: var(--accent-glow), 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s var(--ease-bounce);
    margin-top: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s var(--ease-smooth) 0.5s both;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--accent-glow), 0 8px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    filter: grayscale(0.8);
}

/* --- FOOTER --- */
#main-footer {
    padding: 24px;
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-app);
    margin-top: auto;
}

[data-theme="female"] #main-footer {
    border-color: rgba(0, 0, 0, 0.05);
}

#main-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
}

/* --- ANIMATION CLASSES --- */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

@keyframes pulse-soft {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

/* Transition Logic */
.step-exit {
    animation: fadeOutDown 0.3s var(--ease-smooth) forwards !important;
}

.step-enter {
    /* Animation handled by child elements staggering */
}

/* Specific Component Styles */
.input-container {
    background: var(--surface-0);
    padding: 10px;
    border-radius: var(--border-radius-lg);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--glass-border);
    animation: fadeInUp 0.5s var(--ease-smooth) 0.3s both;
}

.main-input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    padding: 20px;
    outline: none;
    font-family: var(--font-main);
}

.unit-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.unit-btn {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    opacity: 0.6;
}

.unit-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    opacity: 1;
}

/* --- TOAST NOTIFICATION --- */
.toast-success {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(16, 185, 129, 0.95);
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    z-index: 2000;
    opacity: 0;
    transition: all 0.4s var(--ease-bounce);
    pointer-events: none;
}

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

/* --- FULL SCREEN BG HELPERS --- */
.full-screen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- SALES PAGE (BETTERME STYLE) --- */
.sales-page-container {
    padding-bottom: 120px;
    /* Space for sticky button */
    background: var(--bg-app);
    color: var(--text-primary);
}

/* Sticky Header */
.sales-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-app);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sales-timer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.sales-timer-time {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.sales-timer-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-secondary);
    display: flex;
    gap: 16px;
    width: 100%;
    justify-content: center;
}

.sales-header-btn {
    background: var(--accent-color);
    color: white;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    text-transform: uppercase;
    box-shadow: var(--accent-glow);
}

/* Hero Comparison */
.comparison-container {
    background: var(--surface-0);
    margin: 20px;
    border-radius: 24px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.comparison-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    position: relative;
}

.comp-img-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.comp-img {
    width: 100%;
    max-width: 140px;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
}

.comp-arrow {
    font-size: 24px;
    color: var(--text-secondary);
    animation: pulse-soft 2s infinite;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.stat-item h4 {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
}

.stat-item .stat-val {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.stat-bar-track {
    height: 6px;
    background: var(--surface-1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    display: flex;
    gap: 2px;
}

.stat-bar-fill {
    height: 100%;
    background: var(--accent-color);
    /* Fallback */
}

/* Coupon Box */
.coupon-section {
    padding: 20px;
    text-align: center;
}

.coupon-container {
    background: rgba(16, 185, 129, 0.1);
    /* Green tint */
    border: 2px dashed rgba(16, 185, 129, 0.4);
    border-radius: 20px;
    padding: 20px;
    margin-top: 20px;
}

.coupon-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--success-color);
    font-size: 15px;
    text-align: left;
}

.coupon-row {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.coupon-code {
    background: var(--surface-0);
    padding: 12px 20px;
    border-radius: 12px;
    font-family: monospace;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.coupon-timer {
    background: rgba(16, 185, 129, 0.2);
    padding: 12px;
    border-radius: 12px;
    color: var(--success-color);
    font-weight: 800;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    min-width: 80px;
}

/* Pricing Cards */
.pricing-section {
    padding: 20px;
}

.pricing-card {
    background: var(--surface-0);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pricing-card.selected {
    border-color: var(--accent-color);
    background: rgba(var(--bg-app-rgb), 0.5);
    /* Slight tint */
    box-shadow: 0 0 0 4px rgba(var(--bg-app-rgb), 0.1);
}

[data-theme="female"] .pricing-card.selected {
    background: #fff0f5;
    border-color: var(--accent-color);
}


.pricing-card.popular {
    border-color: var(--text-primary);
    border-top-width: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-top: 30px;
    /* Space for banner */
}

.popular-banner {
    background: var(--text-primary);
    color: var(--bg-app);
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
    padding: 8px;
    border-radius: 20px 20px 0 0;
    position: absolute;
    top: -32px;
    left: -2px;
    /* compensate border */
    right: -2px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pricing-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.pricing-card.selected .pricing-check {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.pricing-check:after {
    content: '✓';
    display: none;
    font-size: 14px;
    font-weight: bold;
}

.pricing-card.selected .pricing-check:after {
    display: block;
}

.plan-info {
    flex: 1;
}

.plan-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}

.plan-desc {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.price-box {
    text-align: right;
}

.price-big {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.price-per-day {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Features */
.features-section {
    padding: 30px 20px;
    background: var(--surface-0);
    margin-top: 30px;
    border-radius: 30px 30px 0 0;
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.feature-icon {
    min-width: 50px;
    height: 50px;
    background: var(--surface-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--accent-color);
}

.feature-text h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.feature-text p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Logos */
.logos-section {
    padding: 20px;
    text-align: center;
    opacity: 0.6;
    filter: grayscale(1);
}

.logos-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* --- NEW SALES PAGE SECTIONS --- */

/* Results Section */
.results-section {
    padding: 30px 20px;
    text-align: center;
    background: var(--bg-app);
}

.result-card {
    background: var(--surface-0);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.result-imgs {
    display: flex;
    height: 250px;
}

.result-img {
    flex: 1;
    width: 50%;
    object-fit: cover;
}

.result-content {
    padding: 20px;
}

.result-name {
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.result-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Reviews Section */
.reviews-section {
    padding: 30px 20px;
    background: var(--surface-1);
    /* Slightly different bg */
}

.review-card {
    background: var(--surface-0);
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.stars {
    color: #FBBF24;
    /* Amber 400 */
    font-size: 18px;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.5;
}

.review-author {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
}

/* FAQ Section */
.faq-section {
    padding: 30px 20px;
    background: var(--bg-app);
}

.faq-item {
    border-bottom: 1px solid var(--glass-border);
    padding: 20px 0;
}

.faq-question {
    font-weight: 700;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--text-primary);
}

.faq-answer {
    display: none;
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    display: block;
    animation: fadeInUp 0.3s;
}

.faq-icon {
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Lifetime Pricing Card specific */
.pricing-card.lifetime {
    border: 2px solid var(--accent-color);
    background: rgba(var(--bg-app-rgb), 0.3);
    padding: 24px;
}

.lifetime-tag {
    background: var(--accent-color);
    color: white;
    font-weight: 800;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.price-strike {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 14px;
    margin-right: 8px;
}

/* Guarantee Section */
.guarantee-section {
    margin: 40px 20px;
    background: var(--surface-0);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.guarantee-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
    color: var(--accent-color);
}

.guarantee-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-primary);
    line-height: 1.3;
}

.guarantee-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.guarantee-subtext {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.7;
}

.guarantee-subtext a {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Sales Footer */
.sales-footer {
    padding: 40px 20px 80px 20px;
    background: var(--bg-app);
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.6;
}

.sales-footer p {
    margin-bottom: 20px;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: underline;
}

/* --- EXIT INTENT MODAL --- */
.exit-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: flex-end;
    /* Slide up from bottom on mobile approach or center */
    justify-content: center;
    animation: fadeIn 0.3s forwards;
}

.exit-modal-overlay.active {
    display: flex;
}

.exit-modal-card {
    background: #FFFCF7;
    /* Warm white like screenshot */
    width: 100%;
    max-width: 400px;
    border-radius: 24px 24px 0 0;
    /* Bottom sheet style or fully rounded */
    padding: 30px 24px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    color: #333;
}

@media(min-width: 768px) {
    .exit-modal-overlay {
        align-items: center;
    }

    .exit-modal-card {
        border-radius: 24px;
    }
}

.exit-title {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    color: #2D2D2D;
}

.exit-text {
    font-size: 15px;
    text-align: center;
    line-height: 1.5;
    color: #4B5563;
    margin-bottom: 24px;
}

.exit-text strong {
    color: #000;
    font-weight: 700;
}

/* Graph Container */
.graph-container {
    position: relative;
    background: #FFF;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.graph-labels-y {
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #6B7280;
}

.graph-labels-x {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    color: #9CA3AF;
    font-weight: 500;
}

/* SVG Styles */
.graph-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.line-avg {
    stroke: #F59E0B;
    /* Orange */
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
}

.line-user {
    stroke: #10B981;
    /* Green */
    stroke-width: 4;
    fill: none;
    stroke-linecap: round;
}

/* Points */
.point {
    fill: #FFF;
    stroke-width: 3;
    r: 6;
}

.point-avg {
    stroke: #F59E0B;
}

.point-user {
    stroke: #10B981;
}

/* Labels on Graph */
.graph-tag {
    position: absolute;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translate(-50%, -120%);
    white-space: nowrap;
}

.tag-now {
    background: #FFF;
    color: #333;
    top: 35%;
    /* Adjust based on SVG coords */
    left: 10%;
}

.tag-avg {
    background: #FFF;
    color: #333;
    top: 45%;
    left: 70%;
}

.tag-user {
    background: #2D2D2D;
    color: #FFF;
    top: 75%;
    left: 60%;
    transform: translate(-20%, 20%);
}

.exit-btn {
    width: 100%;
    background: #3E3128;
    /* Brownish dark from screen */
    color: white;
    padding: 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(62, 49, 40, 0.3);
}

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

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Guarantee Section */
.guarantee-section {
    margin: 40px 20px;
    background: var(--surface-0);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.guarantee-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
    color: var(--accent-color);
    /* Fallback */
}

/* Use a custom check-shield look if possible, or just style the emoji/icon wrapper */
.guarantee-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-primary);
    line-height: 1.3;
}

.guarantee-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.guarantee-subtext {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.7;
}

.guarantee-subtext a {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Sales Footer */
.sales-footer {
    padding: 40px 20px 80px 20px;
    /* Extra padding bottom for mobile scrolling */
    background: var(--bg-app);
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.6;
}

.sales-footer p {
    margin-bottom: 20px;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: underline;
}

/* --- WATER COUNTER --- */
.water-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 20px;
}

.water-counter-display {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 30px;
    text-align: center;
    font-family: var(--font-main);
}

.water-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 40px;
    width: 100%;
    justify-items: center;
}

/* Glass Wrapper */
.water-glass {
    width: 45px;
    height: 60px;
    /* Approximate glass ratio */
    position: relative;
    cursor: pointer;
    transition: transform 0.2s var(--ease-bounce);
}

.water-glass:active {
    transform: scale(0.9);
}

/* Base Glass (Outline) */
.glass-outline {
    fill: none;
    stroke: var(--text-secondary);
    /* Grey initially */
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s;
    opacity: 0.5;
}

.water-glass.active .glass-outline {
    stroke: var(--text-primary);
    opacity: 1;
}

/* Plus Icon (Green circle with plus) */
.glass-plus-group {
    transition: opacity 0.3s, transform 0.3s;
    transform-origin: center;
}

.water-glass.active .glass-plus-group {
    opacity: 0;
    transform: scale(0.5);
}

/* Water Fill Animation */
.glass-water {
    fill: #3B82F6;
    /* Blue water */
    opacity: 0;
    transform-origin: bottom center;
    transform: scaleY(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
    /* Bounce effect */
}

.water-glass.active .glass-water {
    opacity: 1;
    transform: scaleY(1);
}

.coffee-btn {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
    padding: 16px 24px;
    border-radius: 30px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    font-size: 14px;
}

.coffee-btn.selected {
    background: var(--surface-highlight);
    border-color: #10B981;
    /* Green success color like button */
    color: #10B981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.coffee-btn .arrow-icon {
    display: none;
    font-weight: bold;
    font-size: 18px;
}

.coffee-btn.selected .arrow-icon {
    display: block;
}

/* ========================================
   GENDER SELECTION SCREEN (STEP 1)
   Premium Split Layout with Clean Transitions
   ======================================== */

#app.gender-split-mode {
    /* Full viewport coverage - no cuts */
    min-height: 100vh;
    min-height: -webkit-fill-available;
    height: 100vh;

    /* Safe area support for iPhone notch */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);

    /* Base split background */
    background: linear-gradient(90deg,
            var(--split-female-bg) 0%,
            var(--split-female-bg) 50%,
            var(--split-male-bg) 50%,
            var(--split-male-bg) 100%) !important;

    /* Remove default background image */
    background-image: none !important;

    /* Ensure full coverage */
    position: relative;
    overflow: hidden;
}

/* Organic wave separator overlay */
#app.gender-split-mode::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;

    /* SVG wave mask for organic separation */
    background: var(--split-male-bg);
    clip-path: url(#wave-separator);

    /* Subtle blur for smooth blend */
    filter: blur(1px);

    /* Initial state */
    opacity: 1;
    transition: opacity 0.4s ease-out;
}

/* Fill overlay for liquid transition */
#app.gender-split-mode::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;

    /* Will be set dynamically */
    background: transparent;

    /* Initial state - hidden */
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;

    /* Smooth liquid fill animation */
    transition:
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease-out;
}

/* Female selected - liquid fill from left */
#app.gender-selected-female::after {
    background: var(--split-female-bg);
    transform: scaleX(1);
    transform-origin: left center;
    opacity: 1;
}

/* Male selected - liquid fill from right */
#app.gender-selected-male::after {
    background: var(--split-male-bg);
    transform: scaleX(1);
    transform-origin: right center;
    opacity: 1;
}

/* Hide wave during transition */
#app.gender-selected-female::before,
#app.gender-selected-male::before {
    opacity: 0;
}

/* Content above overlays */
#app.gender-split-mode #quiz-container {
    position: relative;
    z-index: 20;
}

/* Header in gender mode - NO BLUR, clean and crisp */
.gender-split-mode #main-header {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    padding-top: max(16px, env(safe-area-inset-top));
    position: relative;
    z-index: 30;
}

/* Ensure progress bar is hidden on gender step */
.gender-split-mode .segmented-progress-bar {
    visibility: hidden !important;
}

/* Hide footer in gender mode to prevent bottom space */
.gender-split-mode #main-footer {
    display: none !important;
}

/* ========================================
   TRANSITION ANIMATIONS - A → B → C
   ======================================== */

/* A) Hide UI - Fade + Scale Down */
.gender-transition-hide {
    animation: genderHideUI 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes genderHideUI {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* B) Fill animation is handled by ::after pseudo-element */

/* C) Show Next UI - Fade In + Slide Up + Stagger */
.gender-transition-show {
    opacity: 0;
    pointer-events: none;
}

.gender-transition-show.active {
    pointer-events: auto;
}

/* Stagger animations for children */
.gender-transition-show.active .segmented-progress-bar {
    animation: genderShowUI 0.4s cubic-bezier(0, 0, 0.2, 1) 0s forwards;
    opacity: 0;
}

.gender-transition-show.active h1 {
    animation: genderShowUI 0.5s cubic-bezier(0, 0, 0.2, 1) 0.1s forwards;
    opacity: 0;
}

.gender-transition-show.active .subtitle,
.gender-transition-show.active .description {
    animation: genderShowUI 0.5s cubic-bezier(0, 0, 0.2, 1) 0.15s forwards;
    opacity: 0;
}

.gender-transition-show.active .option-card:nth-child(1),
.gender-transition-show.active .list-option:nth-child(1) {
    animation: genderShowUI 0.5s cubic-bezier(0, 0, 0.2, 1) 0.2s forwards;
    opacity: 0;
}

.gender-transition-show.active .option-card:nth-child(2),
.gender-transition-show.active .list-option:nth-child(2) {
    animation: genderShowUI 0.5s cubic-bezier(0, 0, 0.2, 1) 0.25s forwards;
    opacity: 0;
}

.gender-transition-show.active .option-card:nth-child(3),
.gender-transition-show.active .list-option:nth-child(3) {
    animation: genderShowUI 0.5s cubic-bezier(0, 0, 0.2, 1) 0.3s forwards;
    opacity: 0;
}

.gender-transition-show.active .option-card:nth-child(4),
.gender-transition-show.active .list-option:nth-child(4) {
    animation: genderShowUI 0.5s cubic-bezier(0, 0, 0.2, 1) 0.35s forwards;
    opacity: 0;
}

.gender-transition-show.active .btn-primary {
    animation: genderShowUI 0.5s cubic-bezier(0, 0, 0.2, 1) 0.4s forwards;
    opacity: 0;
}

@keyframes genderShowUI {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography - Gradient text matching split background */
.gender-split-mode h1 {
    font-size: clamp(28px, 7vw, 36px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 8px;

    /* Gradient from dark (left/pink) to light pink (right/blue) */
    background: linear-gradient(90deg,
            #2d1b2e 0%,
            #2d1b2e 50%,
            #fff1f5 50%,
            #fff1f5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.gender-split-mode .subtitle {
    font-size: clamp(11px, 3vw, 13px);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;

    background: linear-gradient(90deg,
            rgba(45, 27, 46, 0.85) 0%,
            rgba(45, 27, 46, 0.85) 50%,
            rgba(255, 241, 245, 0.95) 50%,
            rgba(255, 241, 245, 0.95) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-shadow:
        -1px -1px 0 rgba(255, 255, 255, 0.2),
        1px 1px 0 rgba(0, 0, 0, 0.15);
}

.gender-split-mode .description {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 40px;

    background: linear-gradient(90deg,
            rgba(45, 27, 46, 0.8) 0%,
            rgba(45, 27, 46, 0.8) 50%,
            rgba(255, 241, 245, 0.9) 50%,
            rgba(255, 241, 245, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* Dark text for female side (left) - better contrast on pink */
.gender-split-mode .option-card:first-child h1,
.gender-split-mode .option-card:first-child .label {
    color: #2d1b2e !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Keep white text for male side (right) */
.gender-split-mode .option-card:last-child h1,
.gender-split-mode .option-card:last-child .label {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Section title color adjustment */
.gender-split-mode #section-title {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

/* Gender Cards - Premium Glass Design */
.gender-split-mode .option-card {
    background: var(--gender-card-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 2px solid var(--gender-card-border);
    border-radius: 24px;
    padding: 28px 16px;

    /* Smooth transitions */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Premium shadow */
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);

    /* Prevent blur artifacts */
    transform: translateZ(0);
    will-change: transform, box-shadow, border-color;
}

/* Female card specific */
.gender-split-mode .option-card:first-child {
    box-shadow:
        0 8px 32px var(--split-female-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Male card specific */
.gender-split-mode .option-card:last-child {
    box-shadow:
        0 8px 32px var(--split-male-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Hover state - Premium feedback */
.gender-split-mode .option-card:hover {
    background: var(--gender-card-hover-bg);
    border-color: var(--gender-card-hover-border);
    transform: translateY(-6px) scale(1.02);
}

.gender-split-mode .option-card:first-child:hover {
    box-shadow:
        0 16px 48px var(--split-female-glow),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.gender-split-mode .option-card:last-child:hover {
    box-shadow:
        0 16px 48px var(--split-male-glow),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Active/Click state */
.gender-split-mode .option-card:active {
    transform: translateY(-4px) scale(0.98);
    transition-duration: 0.1s;
}

/* Selected state - Snap effect */
.gender-split-mode .option-card.selected {
    background: var(--gender-card-selected-bg);
    border-color: var(--gender-card-selected-border);
    transform: translateY(-8px) scale(1.05);
}

.gender-split-mode .option-card:first-child.selected {
    box-shadow:
        0 20px 60px var(--split-female-glow),
        0 0 0 2px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.gender-split-mode .option-card:last-child.selected {
    box-shadow:
        0 20px 60px var(--split-male-glow),
        0 0 0 2px rgba(255, 255, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Unselected card when one is selected */
.gender-split-mode .option-card.unselected {
    opacity: 0.5;
    filter: saturate(0.7);
    transform: scale(0.95);
}

/* Card labels */
.gender-split-mode .option-card .label {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    letter-spacing: -0.01em;
}

/* Avatar styling - Premium ring animation */
.gender-split-mode .option-card img[src*="avatar"] {
    width: 130px !important;
    height: 130px !important;
    border-radius: 50% !important;
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);

    /* Subtle pulse animation */
    animation: avatarPulse 3s ease-in-out infinite;

    /* Smooth transitions */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gender-split-mode .option-card:hover img[src*="avatar"] {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.gender-split-mode .option-card.selected img[src*="avatar"] {
    border-color: rgba(255, 255, 255, 0.6);
    border-width: 4px;
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.25),
        0 0 0 4px rgba(255, 255, 255, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

/* Avatar pulse animation */
@keyframes avatarPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* Section title in header */
.gender-split-mode #section-title {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

/* Ensure no keyframes conflict */
@keyframes fillFemale {
    0% {}

    100% {}
}

@keyframes fillMale {
    0% {}

    100% {}
}

/* --- SCRATCH CARD --- */
.scratch-container {
    padding: 20px;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scratch-wrapper {
    position: relative;
    width: 320px;
    height: 480px;
    margin-bottom: 30px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    /* Improve sharpness/rendering */
    transform: translateZ(0);
}

/* Background Prize Layer */
.scratch-prize {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #2DD4BF;
    /* Teal Green like BetterMe */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    /* Below canvas */
    border-radius: 20px;
    padding: 20px;
    text-align: center;
}

.prize-title {
    font-size: 64px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.prize-subtitle {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    opacity: 0.9;
}

.prize-desc {
    font-size: 16px;
    color: #ffffff;
    opacity: 0.8;
    margin-bottom: 30px;
    max-width: 80%;
}

/* Coupon Box */
.coupon-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px 25px;
    width: 90%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: absolute;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Dashed line connector effect (Visual only) */
.coupon-box::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 10px;
    right: 10px;
    height: 2px;
    border-top: 2px dashed rgba(255, 255, 255, 0.5);
}

.coupon-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #64748B;
    /* Slate 500 */
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.coupon-code {
    font-size: 20px;
    font-weight: 700;
    color: #0F172A;
    /* Slate 900 */
    display: flex;
    align-items: center;
    gap: 8px;
}

.coupon-check {
    color: #10B981;
    /* Success Green */
    font-size: 20px;
}

.prize-footer {
    position: absolute;
    bottom: 25px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    width: 100%;
    text-align: center;
}

/* Canvas Cover Layer */
#scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* Top layer */
    border-radius: 20px;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="white" stroke="black" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></svg>') 16 16, pointer;
    touch-action: none;
    /* Prevent scroll while scratching */
}

/* Hand animation hint */
.scratch-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    transition: opacity 0.5s;
}

.hand-icon {
    font-size: 40px;
    margin-top: 10px;
    animation: scratch-motion 1.5s infinite;
}

@keyframes scratch-motion {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(-20px, 10px) rotate(-10deg);
    }

    50% {
        transform: translate(20px, -10px) rotate(10deg);
    }

    75% {
        transform: translate(-20px, 10px) rotate(-10deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

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

/* --- GROUPED LIST SELECT --- */
.group-container {
    width: 100%;
    margin-bottom: 25px;
}

.group-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.group-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-card-grouped {
    text-align: left;
    align-items: flex-start;
    padding: 16px 20px;
}

.option-content-grouped {
    display: flex;
    flex-direction: column;
}

.option-label {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 4px;
}

.option-description {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
}

/* Make sure header and content are visible on dark bg */
.gender-split-mode #main-header,
.gender-selected-female #main-header,
.gender-selected-male #main-header {
    background: transparent;
    box-shadow: none;
}

/* ========================================
   PREMIUM STARFIELD EFFECT - STEP 1 ONLY
   Cinematic, Interactive, Non-Intrusive
   ======================================== */

/* Starfield Container - Only active on gender step */
.gender-split-mode #starfield-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
    opacity: 0;
    animation: starfieldFadeIn 1.5s ease-out 0.3s forwards;
}

@keyframes starfieldFadeIn {
    to {
        opacity: 1;
    }
}

/* Parallax Layers */
.starfield-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========== STAR EFFECTS REMOVED FOR MOBILE PERFORMANCE ========== */
/* All star, cosmic dust, shooting star, and particle effects have been 
   removed to improve performance on mobile devices */

/* ========================================
   KEYWORD GLOW HIGHLIGHT - GENDER-BASED
   Subtle, Elegant, Non-Intrusive
   ======================================== */

/* Base keyword highlight */
.highlight-keyword {
    position: relative;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Female theme - Soft rose/pink glow */
[data-gender="female"] .highlight-keyword {
    color: #db2777;
    text-shadow:
        0 0 8px rgba(219, 39, 119, 0.15),
        0 0 16px rgba(219, 39, 119, 0.1),
        0 1px 2px rgba(219, 39, 119, 0.2);
}

/* Male theme - Soft blue/cyan glow */
[data-gender="male"] .highlight-keyword {
    color: #3b82f6;
    text-shadow:
        0 0 8px rgba(59, 130, 246, 0.15),
        0 0 16px rgba(59, 130, 246, 0.1),
        0 1px 2px rgba(59, 130, 246, 0.2);
}

/* Optional subtle underline (very light) */
.highlight-keyword::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

[data-gender="female"] .highlight-keyword::after {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(219, 39, 119, 0.4) 50%,
            transparent 100%);
}

[data-gender="male"] .highlight-keyword::after {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(59, 130, 246, 0.4) 50%,
            transparent 100%);
}

/* Accessibility - ensure readability */
@media (prefers-reduced-motion: reduce) {
    .highlight-keyword {
        transition: none;
    }
}

/* High contrast mode - remove glow, keep color */
@media (prefers-contrast: high) {
    .highlight-keyword {
        text-shadow: none;
    }

    .highlight-keyword::after {
        display: none;
    }
}

/* ========================================
   FULLSCREEN IMAGE FIX - FEMALE ONLY
   Remove bottom space for background images
   ======================================== */

/* Hide footer completely for female gender */
html[data-gender="female"] #main-footer {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove bottom padding when female gender has fullscreen background image */
html[data-gender="female"] #quiz-container {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Ensure app container extends to bottom for female */
html[data-gender="female"] #app {
    min-height: 100vh !important;
    min-height: -webkit-fill-available !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Ensure body also has no bottom space */
html[data-gender="female"] body {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Ensure main element has no bottom space */
html[data-gender="female"] main {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* --- FIXED FOOTER (Sticky CTA) --- */
#fixed-footer-zone {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    /* Aligns with #app */
    padding: 16px 20px 24px 20px;
    z-index: 500;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    background: linear-gradient(to top, var(--bg-app) 60%, rgba(var(--bg-app-rgb), 0.8) 85%, transparent 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s var(--ease-smooth);
}

#fixed-footer-zone:empty {
    display: none;
    pointer-events: none;
    height: 0;
    padding: 0;
}

#fixed-footer-zone>* {
    pointer-events: auto;
    width: 100%;
    margin-top: 0 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

/* Ensure padding so content doesn't get hidden behind fixed footer */
#quiz-container {
    padding-bottom: 120px;
}