@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
    --font-sans: 'Poppins', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    --font-weight-thin: 100;
    --font-weight-extralight: 200;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;
    --default-font-family: var(--font-sans);

    --color-purple-500: oklch(62.7% 0.265 303.9);
    --color-purple-600: oklch(55.8% 0.288 302.321);
    --color-purple-700: oklch(49.6% 0.265 301.924);
    --color-pink-500: var(--color-purple-500);
    --color-pink-600: oklch(59.2% 0.249 0.584);
    --color-neutral-900: oklch(20.5% 0 0);
    --color-neutral-950: oklch(14.5% 0 0);
    --color-gray-800: oklch(27.8% 0.033 256.848);
    --color-border-dark: oklch(35% 0.15 300);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-btn: 0.4rem;
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --progress-width: 0%;
}

/* Button color variables - centralize CTA/next button styling */
:root {
    /* Primary button gradient (can be used with background-image: var(--btn-primary-bg)) */
    --btn-primary-bg: linear-gradient(152deg, #9363ff, #ff4588);
    /* Slightly adjusted hover gradient for a subtle shift */
    --btn-primary-bg-hover: linear-gradient(152deg, #7b4bff, #ff2f73);
    --btn-primary-text: #ffffff;
    /* Transparent border; use inset shadow for separation */
    --btn-border: transparent;
    --btn-shadow: var(--shadow-md);
    --btn-shadow-hover: var(--shadow-lg);
}

/* Force Poppins across UI */
html, body, h1, h2, h3, h4, h5, h6,
input, textarea, select, button, optgroup, option, label, legend {
    font-family: var(--default-font-family) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%; /* Ensure full viewport height so fixed video covers */
}

body {
    font-family: var(--default-font-family);
    background-color: var(--color-neutral-950);
    color: white;
    line-height: 1.5;
    font-feature-settings: normal;
    position: relative;
    overflow-x: hidden;
}

/* Background Video Styles */
.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    opacity: 0.7;
    pointer-events: none;
    min-width: 100vw;
    min-height: 100vh;
}

.background-video.loaded {
    opacity: 0.7;
}

/* Ensure content overlays the video */
.header,
.promo-bar,
.main-content {
    position: relative;
    z-index: 1;
}

/* Subtle global overlay for readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.1);
    z-index: 0;
    pointer-events: none;
}

/* Enhanced overlay for header */
.header {
    background-color: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(5px);
}

.question-container {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(40, 40, 40, 0.8);
}

button, .style-card { outline: none !important; -webkit-tap-highlight-color: transparent; }
button:focus, .style-card:focus,
button:focus:not(:focus-visible), .style-card:focus:not(:focus-visible) { outline: none !important; box-shadow: none !important; }
button::-moz-focus-inner { border: 0; }
*:focus { outline: none !important; }

/* =====  HEADER & PROMO ===== */
.header {
    padding: 15px 20px;
    background-color: var(--color-neutral-900);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid oklch(27.4% 0.006 286.033);
}

.logo { display: flex; align-items: center; }
.logo img { height: 30px; width: auto; filter: drop-shadow(0 1px 2px oklch(0 0 0 / 0.15)); }


/* ===== MAIN CONTENT ===== */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 10px;
    max-width: 1400px;
    margin: 0 auto;
}

.create-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    align-self: center;
    font-size: 35px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 40px;
}
.create-icon { margin-right: 10px; color: #888888; }

/* Enforce centering for Create title inside question-container */
.question-container .create-title {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 auto 40px !important;
}

/* Mobile portrait */
@media (max-width: 768px) {
    .question-container .create-title {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        text-align: center !important;
        margin: 0 auto 15px !important;
        font-size: 18px;
    }
}

/* Mobile landscape */
@media (max-width: 900px) and (orientation: landscape) {
    .question-container .create-title {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 700px;
    margin-bottom: 40px;
    position: relative;
}
.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: oklch(27.4% 0.006 286.033);
    z-index: 1;
}
.progress-bar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    height: 2px;
    background-color: var(--color-purple-500);
    z-index: 1;
    width: var(--progress-width);
    transition: width 0.4s var(--ease-out);
}
.progress-step {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: oklch(27.4% 0.006 286.033);
    z-index: 2;
    position: relative;
    transition: background-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.progress-step.active {
    background-color: var(--color-purple-500);
    box-shadow: 0 0 0 3px oklch(62.7% 0.265 303.9 / 0.3);
}

/* ===== QUESTION CONTAINER ===== */
.question-container {
    background-color: #1a1a1a;
    padding: 40px 30px;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 700px;
    min-height: 600px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
    position: relative;
    border: 1px solid #282828;
}

.question-title { font-size: 24px; margin-bottom: 20px; text-align: center; font-weight: var(--font-weight-medium); letter-spacing: 0.5px; }
.style-title { font-size: 22px; margin-bottom: 30px; text-align: center; font-weight: var(--font-weight-medium); letter-spacing: 0.5px; }
.question-description { color: oklch(80% 0 0 / 0.9); text-align: center; margin-bottom: 25px; font-size: 16px; }

/* ===== BUTTONS - SHARED STYLES ===== */
.next-btn, .cta-button, .back-btn {
    border: none;
    border-radius: var(--radius-btn);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--ease-out);
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}
.next-btn, .cta-button {
    background-image: var(--btn-primary-bg);
    background-color: #9363ff;
    color: var(--btn-primary-text);
    border: 1px solid var(--btn-border);
    background-size: 200% 200%;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    box-shadow: var(--btn-shadow), inset 0 1px 0 rgba(0,0,0,0.12);
}
.next-btn:hover, .cta-button:hover,
.next-btn:focus, .cta-button:focus {
    background-image: var(--btn-primary-bg-hover);
    transform: translateY(-2px);
    box-shadow: var(--btn-shadow-hover);
    animation: buttonPulse 2s infinite;
}
.next-btn:active, .cta-button:active {
    background-color: var(--color-pink-600);
    transform: translateY(0px) scale(0.96);
    transition: all 0.1s var(--ease-out);
}

.next-btn {
    padding: 14px 45px;
    min-width: 140px;
    font-size: 16px;
    margin-left: auto;
    margin-top: auto;
    align-self: flex-end;
}
.cta-button {
    padding: 14px 190px;
    font-size: 25px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 40px;
    z-index: 10;
    min-width: 240px;
}
.cta-button:hover, .cta-button:focus { transform: translateX(-50%) translateY(-2px); }
.cta-button:active { transform: translateX(-50%) translateY(0px) scale(0.96); }

.back-btn {
    background-color: transparent;
    color: white;
    border: 1px solid white;
    padding: 12px 35px;
    min-width: 140px;
    font-size: 16px;
    box-shadow: none;
}
.back-btn:hover, .back-btn:focus {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    animation: backButtonPulse 2s infinite;
}
.back-btn:active {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(0px) scale(0.96);
    transition: all 0.1s var(--ease-out);
}

/* Button Icons */
.next-btn-icon, .cta-button-icon {
    margin-left: 5px;
    transition: transform 0.2s var(--ease-out);
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.cta-button-icon { margin-left: 10px; }
.back-btn-icon {
    margin-right: 5px;
    transition: transform 0.2s var(--ease-out);
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.next-btn:hover .next-btn-icon, .cta-button:hover .cta-button-icon { transform: translateX(3px); }
.back-btn:hover .back-btn-icon { transform: translateX(-3px); }
.next-btn:active .next-btn-icon, .cta-button:active .cta-button-icon { transform: translateX(1px); transition: transform 0.1s var(--ease-out); }
.back-btn:active .back-btn-icon { transform: translateX(-1px); transition: transform 0.1s var(--ease-out); }

/* ===== STYLE OPTIONS ===== */
.style-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-direction: row;
    flex-wrap: nowrap;
    margin: 20px 0 100px;
    flex-grow: 1;
}
.style-card {
    width: 280px;
    height: 380px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s var(--ease-out);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.style-card:hover { transform: scale(1.03); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 0 0 3px oklch(62.7% 0.265 303.9 / 0.3); }
.style-card img, .style-card video { width: 100%; height: 100%; object-fit: cover; }
.style-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    font-weight: var(--font-weight-bold);
    color: white;
    font-size: 35px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding: 25px 0 15px;
}

/* ===== QUESTION CARDS - SHARED STYLES ===== */
.question-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0 30px;
    flex-grow: 1;
    flex-wrap: wrap;
}
.question-card {
    background-color: oklch(25% 0 0 / 0.6);
    border-radius: var(--radius-btn);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
    overflow: hidden;
    position: relative;
}
.question-card:hover { transform: scale(1.03); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 0 0 3px oklch(62.7% 0.265 303.9 / 0.3); }
.question-card.selected { outline: 3px solid var(--color-purple-500); box-shadow: 0 0 0 3px oklch(62.7% 0.265 303.9 / 0.3); }
.question-card.selected::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background-color: var(--color-purple-500);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 10;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    background-size: 75%;
    background-position: center;
    background-repeat: no-repeat;
}

/* Hover zoom for images inside cards */
.question-card:hover .ethnicity-img,
.question-card:hover .eye-color-img,
.question-card:hover .hair-style-img,
.question-card:hover .hair-color-img,
.question-card:hover .body-type-img,
.question-card:hover .breast-size-img,
.question-card:hover .butt-size-img { transform: scale(1.1); }

/* ===== APPEARANCE SECTIONS ===== */
.appearance-section { margin-bottom: 30px; width: 100%; }
.appearance-section:first-of-type { display: flex; flex-direction: column; align-items: center; }
.appearance-section:first-of-type .question-options { padding-bottom: 5px; }
.appearance-section:last-child { margin-bottom: 10px; }

/* ===== SPECIFIC CARD TYPES ===== */
/* Unified card dimensions - all image cards use the same size */
.ethnicity-card, .eye-card, .hair-card, 
.body-card, .breast-card, .butt-card {
    width: 120px;
    height: 160px;
    text-align: center;
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* Unified image styles */
.ethnicity-img, .eye-color-img, .hair-style-img, .hair-color-img,
.body-type-img, .breast-size-img, .butt-size-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s var(--ease-out);
}

/* Age and Hair color cards */
.age-card {
    width: 90px;
    text-align: center;
    padding: 10px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: linear-gradient(to bottom, oklch(28% 0 0 / 0.8), oklch(22% 0 0 / 0.8));
    border: 1px solid #4a4a4a;
    border-radius: var(--radius-btn);
}
.hair-color-card {
    width: 120px;
    height: 160px;
    text-align: center;
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* Card labels - shared styles */
.ethnicity-card h3, .eye-card h3, .hair-card h3, .hair-color-card h3,
.body-card h3, .breast-card h3, .butt-card h3 {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    margin: 0;
    padding: 4px 12px;
    background: rgba(128, 128, 128, 0.9);
    border-radius: 8px;
    transition: background 0.3s var(--ease-out);
    white-space: nowrap;
    width: auto;
    max-width: calc(100% - 20px);
    text-align: center;
}
.ethnicity-card.selected h3, .eye-card.selected h3, .hair-card.selected h3, .hair-color-card.selected h3,
.body-card.selected h3, .breast-card.selected h3, .butt-card.selected h3 { background: var(--color-purple-500); }

.age-card h3 {
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ===== PERSONALITY CARDS ===== */
.personality-cards-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0 30px;
    flex-grow: 1;
    flex-wrap: wrap;
}
.personality-card {
    width: 120px;
    height: 160px;
    background-image: linear-gradient(to bottom, oklch(28% 0 0 / 0.8), oklch(22% 0 0 / 0.8));
    border-radius: var(--radius-btn);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    padding: 15px;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
    overflow: hidden;
    position: relative;
    border: 1px solid #4a4a4a;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.personality-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 0 0 3px oklch(62.7% 0.265 303.9 / 0.3);
    border-color: var(--color-purple-500);
}
.personality-card.selected {
    outline: 3px solid var(--color-purple-500);
    box-shadow: 0 0 0 3px oklch(62.7% 0.265 303.9 / 0.3);
    border-color: var(--color-purple-500);
}
.personality-card.selected::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--color-purple-500);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 70%;
    background-position: center;
    background-repeat: no-repeat;
}
.personality-icon { width: 48px; height: 48px; margin-bottom: 10px; }
.personality-card h3 { font-weight: var(--font-weight-medium); font-size: 14px; margin-bottom: 8px; color: white; text-align: center; }
.personality-description { font-size: 12px; color: oklch(80% 0 0 / 0.9); line-height: 1.2; }

.relationship-description { font-size: 12px; color: oklch(80% 0 0 / 0.9); line-height: 1.2; }

/* ===== RELATIONSHIP CARDS ===== */
.relationship-cards-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0 30px;
    flex-grow: 1;
    flex-wrap: wrap;
}
.relationship-card {
    width: 120px;
    height: 160px;
    background-image: linear-gradient(to bottom, oklch(28% 0 0 / 0.8), oklch(22% 0 0 / 0.8));
    border-radius: var(--radius-btn);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    padding: 15px;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
    overflow: hidden;
    position: relative;
    border: 1px solid #4a4a4a;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.relationship-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 0 0 3px oklch(62.7% 0.265 303.9 / 0.3);
    border-color: var(--color-purple-500);
}
.relationship-card.selected {
    outline: 3px solid var(--color-purple-500);
    box-shadow: 0 0 0 3px oklch(62.7% 0.265 303.9 / 0.3);
    border-color: var(--color-purple-500);
}
.relationship-card.selected::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--color-purple-500);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 70%;
    background-position: center;
    background-repeat: no-repeat;
}
.relationship-icon { width: 48px; height: 48px; margin-bottom: 10px; }
.relationship-card h3 { font-weight: var(--font-weight-medium); font-size: 16px; margin-bottom: 8px; color: white; text-align: center; }

/* ===== PREMIUM OPTIONS ===== */
.premium-option {
    position: relative;
    overflow: visible;
    background-image: linear-gradient(to bottom, oklch(30% 0.05 303.9 / 0.8), oklch(22% 0.03 303.9 / 0.8));
}
.premium-option:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, oklch(62.7% 0.265 303.9), var(--color-purple-500));
    border-radius: calc(var(--radius-btn) + 1px);
    z-index: -1;
    opacity: 0.7;
}
.premium-lock { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; z-index: 5; animation: pulse 2s infinite; }
.lock-icon { width: 100%; height: 100%; filter: drop-shadow(0 0 3px rgba(255,255,255,0.5)); }

/* ===== NAVIGATION ===== */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
    padding-top: 20px;
}

/* Step 7 navigation buttons */
#step7 .navigation-buttons {
    flex-direction: column-reverse;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}
#step7 .back-btn, 
#step7 .next-btn { width: 100%; justify-content: center; }
#step7 .next-btn { padding: 16px 45px; font-size: 18px; }
#step7 .back-btn { padding: 14px 35px; font-size: 16px; }

/* ===== VALIDATION & NOTIFICATIONS ===== */
.step-notification {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: var(--radius-btn);
    border: 1px solid;
    animation: slideInNotification 0.3s ease-out;
}
.step-notification-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(185, 28, 28, 0.1));
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}
.step-notification-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(29, 78, 216, 0.1));
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}
.notification-content { display: flex; align-items: center; gap: 0.75rem; }
.notification-icon { font-size: 1.25rem; flex-shrink: 0; }
.notification-message { font-weight: var(--font-weight-medium); line-height: 1.4; }

.selection-required { position: relative; animation: highlightPulse 1.5s ease-in-out; }
.selection-required::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid #ef4444;
    border-radius: calc(var(--radius-btn) + 4px);
    background: rgba(239, 68, 68, 0.1);
    animation: highlightGlow 1.5s ease-in-out;
    pointer-events: none;
    z-index: -1;
}
.option-card.selected, .style-card.selected {
    border-color: var(--color-purple-500);
    background-color: var(--color-purple-500);
    box-shadow: 0 0 0 3px oklch(62.7% 0.265 303.9 / 0.3);
}

/* ===== SUMMARY STYLES ===== */
.summary-container { width: 100%; overflow: hidden; padding: 0 5px; box-sizing: border-box; }
.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 100%;
    justify-items: center;
    margin: 0 auto;
}
.summary-item { display: flex; flex-direction: column; gap: 8px; width: 100%; align-items: center; }
.summary-label { font-size: 16px; font-weight: var(--font-weight-medium); color: white; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.summary-card {
    width: 120px;
    height: 160px;
    margin: 0 auto;
    text-align: center;
    padding: 0;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-btn);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
    background-color: oklch(25% 0 0 / 0.6);
}
.summary-card:hover { transform: scale(1.03); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 0 0 3px oklch(62.7% 0.265 303.9 / 0.3); }
.summary-content { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.summary-img, .color-swatch { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s var(--ease-out); }
.summary-card:hover .summary-img { transform: scale(1.1); }
.color-swatch { border-radius: var(--radius-btn); margin: 0 auto; }

#style-value, #ethnicity-value, #age-value, #eyecolor-value,
#hairstyle-value, #haircolor-value, #bodytype-value, 
#breastsize-value, #buttsize-value, #personality-value, #relationship-value {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-weight: var(--font-weight-semibold);
    font-size: 14px;
    z-index: 10;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#summary-age { display: flex; align-items: center; justify-content: center; }
#summary-age #age-value {
    position: static !important;
    background: none !important;
    padding: 0 !important;
    font-size: 24px !important;
    font-weight: bold !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5) !important;
}

#personality-img, #relationship-img { width: 60% !important; height: 60% !important; object-fit: contain !important; }
#summary-style-video { width: 100%; height: 100%; object-fit: cover; }

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(255,255,255,0.5)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 5px rgba(255,255,255,0.8)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(255,255,255,0.5)); }
}
@keyframes buttonPulse {
    0% { box-shadow: var(--shadow-md), 0 0 0 0 oklch(62.7% 0.265 303.9 / 0.3); }
    50% { box-shadow: var(--shadow-md), 0 0 0 8px oklch(62.7% 0.265 303.9 / 0); }
    100% { box-shadow: var(--shadow-md), 0 0 0 0 oklch(62.7% 0.265 303.9 / 0); }
}
@keyframes backButtonPulse {
    0% { box-shadow: none, 0 0 0 0 rgba(255, 255, 255, 0.4); }
    50% { box-shadow: none, 0 0 0 8px rgba(255, 255, 255, 0); }
    100% { box-shadow: none, 0 0 0 0 rgba(255, 255, 255, 0); }
}
@keyframes slideInNotification {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes highlightPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }
@keyframes highlightGlow {
    0% { opacity: 0; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.7; transform: scale(1); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 769px) {
    #step7 .navigation-buttons { padding-top: 30px; max-width: 500px; }
}

@media (max-width: 768px) {
    /* Mobile-specific background video adjustments */
    .background-video { object-position: center center; transform: translateZ(0); }

    .relationship-cards-container { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, 1fr); gap: 10px; }

    .style-card { width: 140px; height: 200px; }

    .progress-bar { max-width: 90%; margin-bottom: 20px; }
    .progress-step { width: 15px; height: 15px; }
    .progress-bar::before { height: 1.5px; }

    .promo-bar { flex-wrap: wrap; padding: 10px; justify-content: center; }
    .timer { margin: 5px auto; }
    .promo-content { justify-content: center; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .promo-text {
        display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        flex: 1 1 auto; min-width: 0;
    }
    .join-btn { display: inline-block; padding: 8px 12px; font-size: 14px; border-radius: 6px; flex: 0 0 auto; }

    .discount-text { margin: 5px; }
    .question-container { padding: 20px 15px; min-height: auto; }

    .style-options { gap: 10px; margin: 15px 0 70px; }
    .style-label { font-size: 20px; padding: 20px 0 10px; }
    .style-title, .create-title { display: flex; align-items: center; justify-content: center; width: 100%; text-align: center; font-size: 18px; margin-bottom: 15px; }
    .question-title { font-size: 15px; margin-bottom: 12px; }

    .question-options { gap: 10px; margin: 15px 0 20px; flex-wrap: wrap; justify-content: center; }

    /* Mobile responsive - unified card dimensions (maintains 3:4 ratio) */
    .ethnicity-card, .eye-card, .hair-card, .hair-color-card,
    .body-card, .breast-card, .butt-card { width: 100px; height: 133px; /* Maintains 3:4 ratio */ }

    .appearance-section:first-of-type .question-options { flex-wrap: wrap; overflow-x: visible; }

    .ethnicity-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; justify-content: center; }
    .hair-style-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; justify-content: center; }

    .personality-cards-container {
        display: flex; flex-wrap: wrap; gap: 10px; width: 100%; justify-content: center; margin: 20px 0 30px;
    }
    .personality-card {
        /* Match relationship-card sizing on mobile portrait */
        width: 100px; height: 133px; /* 3:4 ratio */
        padding: 10px; box-sizing: border-box;
    }

    .question-description { font-size: 14px; margin-bottom: 15px; }

    .cta-button { padding: 12px 60px; font-size: 19px; bottom: 18px; min-width: 200px; }
    #step1-cta-button { max-width: 290px; width: 290px; left: 50%; transform: translateX(-50%); margin: 0 auto; min-width: unset; }

    .ethnicity-card { width: 100%; padding: 0; height: 140px; position: relative; }
    .ethnicity-img { width: 100%; height: 100%; }
    .ethnicity-card h3 {
        font-size: 13px; padding: 4px 12px; position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
        width: auto; max-width: calc(100% - 20px);
    }

    .appearance-section { margin-bottom: 20px; }
    .age-card { width: 75px; height: auto; }
    .age-card h3 { font-size: 13px; }

    .hair-color-card h3 {
        font-size: 13px; padding: 3px 8px; position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
        width: auto; max-width: calc(100% - 12px);
    }

    .eye-card h3 {
        font-size: 13px; padding: 4px 12px; position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
        width: auto; max-width: calc(100% - 20px);
    }

    .hair-style-img { width: 100%; height: 100%; object-fit: cover; }
    .hair-card h3 {
        font-size: 13px; padding: 3px 8px; position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
        width: auto; max-width: calc(100% - 12px);
    }

    .body-card, .breast-card, .butt-card { width: 90px; height: 130px; }
    .body-card h3, .breast-card h3, .butt-card h3 {
        font-size: 13px; padding: 3px 8px; position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
        width: auto; max-width: calc(100% - 12px);
    }

    .premium-lock { width: 18px; height: 18px; top: 5px; right: 5px; }
    .question-card.selected { outline-width: 2px; }
    .question-card.selected::after { width: 16px; height: 16px; top: 5px; right: 5px; }

    .navigation-buttons { padding-top: 15px; }

    #step7 .navigation-buttons { flex-direction: column-reverse; gap: 15px; max-width: 1000px; margin: 0 auto; padding-left: 15px; padding-right: 15px; }
    #step7 .back-btn, #step7 .next-btn { width: 100%; justify-content: center; }

    .back-btn-icon, .next-btn-icon { align-items: center; }

    .relationship-card { width: 100px; height: 133px; padding: 10px; }
    .relationship-icon { width: 34px; height: 34px; margin-bottom: 4px; }
    .personality-icon { width: 34px; height: 34px; margin-bottom: 4px; }
    .relationship-card h3 { font-size: 13px; margin-bottom: 4px; }

    /* Summary responsive */
    .summary-container { padding: 0 10px; }
    .summary-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0; }
    .summary-item { margin-bottom: 10px; }
    .summary-label { font-size: 13px; }
    .summary-card { width: 100px; height: 133px; /* Maintains 3:4 ratio */ }

    #style-value, #ethnicity-value, #age-value, #eyecolor-value,
    #hairstyle-value, #haircolor-value, #bodytype-value, 
    #breastsize-value, #buttsize-value, #personality-value, #relationship-value {
        font-size: 12px; padding: 3px 8px;
    }
    #summary-age #age-value { font-size: 20px !important; }

    #step7 .next-btn { margin-top: 10px; }

    /* Ensure spacing below Back button on small screens */
    #step7 { padding-bottom: 20px; }
}

/* Single-line promo-bar for small portrait devices: compact text, icon, CTA and timer */
@media (max-width: 480px) and (orientation: portrait) {
    /* Make header and promo-bar the same height and vertically centered */
    .header, .promo-bar {
        height: 48px;
        padding: 0 8px; /* horizontal padding only; height controls vertical space */
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    .logo img { height: 20px; }
    .promo-bar .promo-content { height: 100%; align-items: center; }
    .promo-content {
        display: flex !important;
        align-items: center;
        justify-content: flex-start; /* keep items grouped from the left */
        gap: 6px;
        flex-wrap: nowrap; /* keep on one line */
    }
    .promo-text {
        flex: 0 1 auto; /* avoid consuming all remaining space */
        max-width: 58%; /* leave room for icon + button */
        min-width: 0; /* allow truncation */
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-right: 2px; /* tiny gap to icon */
    }
    .diamond-icon { display: flex; align-items: center; margin: 0 0; }
    .diamond-icon img { width: 18px; height: auto; flex: 0 0 auto; margin: 0; }
    .join-btn {
        flex: 0 0 auto;
        padding: 6px 8px;
        font-size: 13px;
        white-space: nowrap;
        border-radius: 6px;
        margin-left: auto; /* push CTA to the right edge */
    }
    .timer { display: none !important; }
    /* Hide less-important labels and the milliseconds block to save space */
    .timer-block .timer-label,
    .timer-block:nth-child(3) { display: none; }
    .timer-value { font-size: 13px; font-weight: 700; padding: 0 4px; min-width: auto; }

    /* Progress bar — mobile portrait tweaks */
    .main-content {
        /* reduce top padding; makes the promo-bar ↔ progress-bar gap smaller */
        padding-top: 16px; /* (was 40px globally) */
    }
    .progress-bar {
        /* make the progress bar narrower and reduce the gap below it */
        max-width: 80%;      /* was 90% in the @max-width:768px block */
        margin-bottom: 14px; /* was 20px in the @max-width:768px block */
    }
    .progress-step {
        /* make the dots smaller */
        width: 12px;  /* was 15px in the @max-width:768px block */
        height: 12px; /* was 15px in the @max-width:768px block */
    }
    .progress-bar::before,
    .progress-bar::after {
        /* thinner progress line */
        height: 1px; /* was 1.5px in the @max-width:768px block */
    }
}

@media (max-width: 480px) {
    .diamond-icon img { width: 24px; height: 24px; }
    .discount-text { font-size: 14px; }
    .timer-value { font-size: 14px; }
    .timer-label { font-size: 10px; }

    .appearance-section:first-of-type .question-options { padding: 0; }
    .appearance-section:first-of-type .ethnicity-card { height: 130px; }

    .ethnicity-card h3, .eye-card h3 {
        font-size: 12px; padding: 3px 10px; bottom: 8px; max-width: calc(100% - 16px);
    }

    .hair-color-card h3 {
        font-size: 12px; padding: 3px 10px; bottom: 8px; max-width: calc(100% - 16px);
    }

    .personality-card { width: 100px; height: 133px; }
    .personality-card h3 { font-size: 12px; }
    .personality-description { font-size: 10px; }
    .relationship-description { font-size: 10px; }

    #step7 .navigation-buttons { padding-left: 15px; padding-right: 15px; }

    #step1-cta-button { max-width: 290px; width: 290px; }

    /* Summary extra small */
    .summary-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 2px; }
    .summary-item { margin-bottom: 8px; }
    .summary-label { font-size: 12px; }
    .summary-card { width: 90px; height: 120px; /* Maintains 3:4 ratio */ }

    #style-value, #ethnicity-value, #age-value, #eyecolor-value,
    #hairstyle-value, #haircolor-value, #bodytype-value, 
    #breastsize-value, #buttsize-value, #personality-value, #relationship-value {
        font-size: 11px; padding: 2px 5px;
    }
    #summary-age #age-value { font-size: 18px !important; }
}

@media (max-width: 360px) {
    .summary-container { padding: 0 2px; }
    .summary-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .summary-card { width: 80px; height: 107px; /* Maintains 3:4 ratio */ margin: 0 auto; }
    .summary-label { font-size: 11px; max-width: 80px; }
    #style-value, #ethnicity-value, #age-value, #eyecolor-value,
    #hairstyle-value, #haircolor-value, #bodytype-value, 
    #breastsize-value, #buttsize-value, #personality-value, #relationship-value {
        font-size: 10px; padding: 2px 4px;
    }
    #summary-age #age-value { font-size: 16px !important; }
}

@media (max-width: 320px) {
    .summary-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
    .summary-card { width: 65px; height: 87px; /* Maintains 3:4 ratio */ }
    .summary-label { font-size: 10px; max-width: 65px; }
    #summary-age #age-value { font-size: 14px !important; }
}

@media (max-width: 900px) and (orientation: landscape) {
    /* Landscape-specific background video adjustments */
    .background-video { object-position: center center; width: 100vw; height: 100vh; }

    .question-container { max-width: 95%; padding: 20px; min-height: auto; background-color: rgba(26, 26, 26, 0.98); }
    #step6.question-container { max-width: 98%; padding: 15px; }

    .ethnicity-card { width: 105px; height: 140px; }
    .eye-card { width: 105px; height: 140px; }
    .ethnicity-card h3, .eye-card h3 { font-size: 14px; padding: 3px 8px; max-width: calc(100% - 12px); bottom: 8px; }

    .hair-color-card { width: 105px; height: 140px; }
    .hair-color-card h3 { font-size: 14px; padding: 3px 8px; max-width: calc(100% - 12px); bottom: 8px; }

    .ethnicity-options, .hair-style-options, .personality-cards-container {
        display: flex; flex-wrap: wrap; justify-content: center; gap: 15px;
    }

    .body-card, .breast-card, .butt-card { width: 105px; height: 140px; margin-bottom: 5px; }
    .body-card h3, .breast-card h3, .butt-card h3 { font-size: 14px; padding: 3px 8px; max-width: calc(100% - 12px); bottom: 8px; }

    .style-options { gap: 20px; margin: 15px 0 60px; }
    .style-card { width: 200px; height: 270px; }

    .appearance-section { margin-bottom: 15px; }
    .navigation-buttons { padding-top: 10px; margin-top: 15px; }

    .cta-button { padding: 10px 40px; font-size: 18px; bottom: 15px; }

    .question-options { margin: 10px 0 15px; gap: 15px; justify-content: center; }

    .personality-card { width: 105px; height: 140px; padding: 12px; margin-bottom: 5px; }
    .personality-icon { width: 55px; height: 55px; margin-bottom: 8px; }
    .personality-card h3 { font-size: 15px; margin-bottom: 3px; }
    .personality-description, .relationship-description { font-size: 11px; line-height: 1.2; }

    .relationship-cards-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin: 10px 0 15px; max-width: 95%; margin-left: auto; margin-right: auto; }
    .relationship-card { width: 105px; height: 140px; padding: 12px; }
    .relationship-icon { width: 55px; height: 55px; margin-bottom: 8px; }
    .relationship-card h3 { font-size: 15px; margin-bottom: 3px; line-height: 1.3; }

    /* Summary section optimized for landscape */
    .summary-container { padding: 0 15px; max-width: 100%; }
    .summary-grid { grid-template-columns: repeat(5, 1fr); gap: 15px; justify-items: center; max-width: 95%; margin: 0 auto; }
    .summary-card { width: 110px; height: 147px; /* Maintains 3:4 ratio */ }
    .summary-label { font-size: 15px; margin-bottom: 8px; }
    #style-value, #ethnicity-value, #age-value, #eyecolor-value,
    #hairstyle-value, #haircolor-value, #bodytype-value, 
    #breastsize-value, #buttsize-value, #personality-value, #relationship-value {
        font-size: 13px; padding: 4px 8px;
    }
    #summary-age #age-value { font-size: 22px !important; }

    /* Ensure spacing below Back button on landscape phones/tablets */
    #step7 { padding-bottom: 20px; }
}

/* Utility: purple-accent selection outline for JS-applied states */
.selected--purple {
    border-color: var(--color-purple-500) !important;
    outline: 3px solid var(--color-purple-500) !important;
    box-shadow: 0 0 0 3px oklch(62.7% 0.265 303.9 / 0.3) !important;
}

/* Final CTA button — visually consistent with other primary buttons */
.final-cta-btn {
    background-image: var(--btn-primary-bg);
    background-color: #9363ff; /* fallback */
    background-size: 200% 200%;
    color: var(--btn-primary-text);
    border: 1px solid var(--btn-border);
    box-shadow: var(--btn-shadow), inset 0 1px 0 rgba(0,0,0,0.12);
    padding: 14px 45px;
    font-size: 20px;
    border-radius: var(--radius-btn);
    font-weight: var(--font-weight-bold);
    font-family: var(--default-font-family);
    cursor: pointer;
    display: inline-block;
    text-align: center;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
    animation: finalPulse 3000ms ease-in-out infinite;
}
.final-cta-btn:hover, .final-cta-btn:focus { transform: translateY(-2px); box-shadow: var(--btn-shadow-hover); outline: none !important; }

/* Keep Step 7 final CTA visually consistent on mobile as well */
#step7 .final-cta-btn {
    background-image: var(--btn-primary-bg) !important;
    background-size: 200% 200% !important;
    background-clip: padding-box !important;
    color: var(--btn-primary-text) !important;
    box-shadow: 0 -6px 18px rgba(0,0,0,0.45), var(--btn-shadow) !important;
    align-self: stretch;
}
@keyframes finalPulse {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-2px) scale(1.01); }
    100% { transform: translateY(0) scale(1); }
}
.question-container .final-cta-btn {
    display: block;
    margin: 24px auto 0 auto;
    padding: 12px 36px;
    min-width: 200px;
    font-size: 18px;
}
