/* ===========================================
   Uncovered - Character Generator
   Cyberpunk Dark Theme with Neon Pink Accents
   =========================================== */

/* CSS Variables */
:root {
    --bg-dark: #1e1e22;
    --bg-dark-lighter: #252528;
    --bg-card: #2a2a2e;
    --pink-primary: #ff2d75;
    --pink-accent: #ff69b4;
    --pink-glow: rgba(255, 45, 117, 0.5);
    --pink-glow-strong: rgba(255, 45, 117, 0.8);
    --purple-primary: #ff2d75;
    --purple-light: #ff69b4;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    --border-color: rgba(255, 45, 117, 0.2);
    --border-color-hover: rgba(255, 45, 117, 0.5);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background gradient effect - subtle */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at top right, rgba(255, 45, 117, 0.05) 0%, transparent 40%),
        radial-gradient(ellipse at bottom left, rgba(255, 105, 180, 0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* Typography */
.font-orbitron {
    font-family: 'Orbitron', sans-serif;
}

.font-rajdhani {
    font-family: 'Rajdhani', sans-serif;
}

/* Colors */
.bg-dark { background-color: var(--bg-dark); }
.bg-dark-lighter { background-color: var(--bg-dark-lighter); }
.text-pink-primary { color: var(--pink-primary); }
.text-pink-accent { color: var(--pink-accent); }
.border-pink-primary\/20 { border-color: var(--border-color); }
.border-pink-primary\/30 { border-color: rgba(255, 45, 117, 0.3); }

/* Pink Text */
.neon-text {
    color: var(--pink-primary);
}

/* Heart Logo */
.neon-heart {
    /* No glow effect */
}

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

.neon-heart.pulse {
    animation: heartPulse 1.5s ease-in-out infinite;
}

@keyframes heartPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 2px rgba(255, 45, 117, 0.3));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 4px rgba(255, 45, 117, 0.4));
    }
}

/* Header */
header {
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.8) 100%);
    z-index: 1001 !important;
}

.logo {
    cursor: pointer;
}

/* Progress Bar */
.progress-bar {
    background: var(--bg-dark-lighter);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-fill {
    background: linear-gradient(90deg, var(--pink-primary) 0%, var(--pink-accent) 100%);
    box-shadow: 0 0 10px var(--pink-glow),
                0 0 20px var(--pink-glow);
}

/* Progress Hearts */
.progress-hearts {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
}

.progress-hearts::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 8px;
    right: 8px;
    height: 2px;
    background: #2a2a35;
    transform: translateY(-50%);
    z-index: 0;
}

.progress-hearts::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 8px;
    height: 2px;
    background: linear-gradient(90deg, #ff2d75, #ff69b4);
    transform: translateY(-50%);
    z-index: 1;
    width: var(--progress-width, 0%);
    transition: width 0.5s ease;
}

.progress-heart {
    position: relative;
    z-index: 2;
    background: transparent;
}

.progress-heart svg {
    display: block;
}

/* Wizard Container */
.wizard-container {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.wizard-step {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.wizard-step.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

/* Option Cards */
.option-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.option-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--pink-glow),
                0 4px 20px rgba(0, 0, 0, 0.3);
}

.option-card.selected {
    border-color: var(--pink-primary);
    box-shadow: 0 0 20px var(--pink-glow),
                0 0 40px rgba(255, 45, 117, 0.2);
}

.option-card.small {
    padding: 0;
}

/* Compact option cards for body features */
.option-card.compact {
    padding: 16px 12px;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.option-card.compact .card-label {
    position: static;
    transform: none;
    padding: 0;
    background: transparent;
    font-size: 13px;
    text-shadow: none;
    color: var(--text-primary);
}

.option-card .card-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: visible;
    position: relative;
}

/* Taller art style cards */
.option-card[data-option="style"] .card-image {
    aspect-ratio: 3/4;
}

/* Match ethnicity and hair color cards to hair type sizing */
.option-card[data-option="race"] .card-image,
.option-card[data-option="hairColor"] .card-image {
    aspect-ratio: 3/4;
}

.option-card .card-label {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    padding: 0;
    background: none;
    color: white;
    z-index: 10;
    white-space: nowrap;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8), 0 0 8px rgba(0,0,0,0.5);
}

/* Placeholder Images */
.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-dark-lighter) 0%, var(--bg-dark) 100%);
    font-weight: 600;
    color: var(--pink-accent);
}

.placeholder-image.anime-style {
    background: linear-gradient(135deg, #2a1f4e 0%, #1a1030 100%);
}

.placeholder-image.realistic-style {
    background: linear-gradient(135deg, #1f2a3e 0%, #101820 100%);
}

.placeholder-image.gender-female,
.placeholder-image.gender-male {
    background: linear-gradient(135deg, var(--bg-dark-lighter) 0%, var(--bg-dark) 100%);
}

/* Style Preview Images */
.style-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.option-card:hover .style-preview-image {
    transform: scale(1.05);
}

/* Race Preview */
.race-preview {
    border-radius: 0;
}

/* Color Swatches */
.color-swatch {
    padding: 20px 12px;
}

.swatch-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    transition: all 0.3s ease;
}

.option-card.selected .swatch-circle {
    border-color: var(--pink-primary);
    box-shadow: 0 0 15px var(--pink-glow);
}

.eye-swatch {
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Color swatch labels - static position below the circle */
.color-swatch .card-label {
    position: static;
    transform: none;
    margin-top: 8px;
    text-shadow: none;
    color: var(--text-primary);
}

/* Eye Color Cards - wider aspect ratio, 2 columns */
#eye-color-options {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

#eye-color-options .option-card {
    width: calc(50% - 0.5rem);
}

#eye-color-options .option-card .card-image {
    aspect-ratio: 16/9;
}

@media (max-width: 768px) {
    #eye-color-options .option-card {
        width: 100%;
    }
}

/* Center last item when alone on row - for 3 column grids */
#race-options,
#hair-type-options,
#hair-color-options {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

#race-options .option-card,
#hair-type-options .option-card,
#hair-color-options .option-card {
    width: calc(33.333% - 0.67rem);
}

@media (max-width: 768px) {
    #race-options .option-card,
    #hair-type-options .option-card,
    #hair-color-options .option-card {
        width: calc(50% - 0.5rem);
    }
}

/* Hair Preview Icons */
.hair-preview {
    position: relative;
}

.hair-icon {
    width: 60px;
    height: 80px;
    position: relative;
}

.hair-icon.straight::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--pink-primary) 0%, var(--pink-accent) 100%);
    clip-path: polygon(10% 0, 90% 0, 95% 100%, 5% 100%);
}

.hair-icon.wavy::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--pink-primary) 0%, var(--pink-accent) 100%);
    border-radius: 30% 30% 50% 50%;
}

.hair-icon.curly::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, var(--pink-primary) 20%, transparent 20%),
                radial-gradient(circle at 70% 30%, var(--pink-primary) 20%, transparent 20%),
                radial-gradient(circle at 30% 60%, var(--pink-accent) 20%, transparent 20%),
                radial-gradient(circle at 70% 60%, var(--pink-accent) 20%, transparent 20%),
                radial-gradient(circle at 50% 80%, var(--pink-primary) 20%, transparent 20%);
}

.hair-icon.coily::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-radial-gradient(circle, var(--pink-primary) 0, var(--pink-primary) 5px, var(--pink-accent) 5px, var(--pink-accent) 10px);
    border-radius: 50% 50% 40% 40%;
}

.hair-icon.short::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 50%;
    top: 10%;
    left: 10%;
    background: linear-gradient(180deg, var(--pink-primary) 0%, var(--pink-accent) 100%);
    border-radius: 50% 50% 30% 30%;
}

.hair-icon.bald::before {
    content: '';
    position: absolute;
    width: 60%;
    height: 40%;
    top: 20%;
    left: 20%;
    background: linear-gradient(135deg, var(--bg-dark-lighter) 0%, var(--bg-dark) 100%);
    border-radius: 50%;
    border: 2px dashed var(--pink-accent);
}

/* Body Preview Icons */
.body-preview {
    position: relative;
}

.body-icon {
    width: 40px;
    height: 80px;
    position: relative;
    background: linear-gradient(180deg, var(--pink-primary) 0%, var(--pink-accent) 100%);
}

.body-icon.slim {
    border-radius: 20px 20px 5px 5px;
    width: 30px;
}

.body-icon.athletic {
    border-radius: 15px 15px 5px 5px;
    width: 40px;
    clip-path: polygon(20% 0, 80% 0, 90% 30%, 85% 100%, 15% 100%, 10% 30%);
}

.body-icon.average {
    border-radius: 15px 15px 5px 5px;
    width: 40px;
}

.body-icon.curvy {
    border-radius: 20px 20px 5px 5px;
    width: 45px;
    clip-path: polygon(25% 0, 75% 0, 90% 40%, 85% 100%, 15% 100%, 10% 40%);
}

.body-icon.muscular {
    border-radius: 10px 10px 5px 5px;
    width: 50px;
    clip-path: polygon(15% 0, 85% 0, 100% 20%, 90% 100%, 10% 100%, 0% 20%);
}

.body-icon.plus-size {
    border-radius: 25px 25px 10px 10px;
    width: 55px;
}

/* Personality Cards */
.option-card.personality {
    padding: 24px 16px;
}

.personality-emoji {
    font-size: 40px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* ===========================================
   Pill Buttons & Details Sections
   =========================================== */

.details-sections {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.details-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px 24px;
}

.section-label {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-sublabel {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.pill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.pill-btn {
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pill-btn:hover {
    border-color: var(--border-color-hover);
    color: var(--text-primary);
}

.pill-btn.selected {
    border-color: var(--pink-primary);
    color: var(--pink-primary);
    background: rgba(255, 45, 117, 0.1);
}

.pill-btn.hidden-pill {
    display: none;
}

.pill-container.expanded .pill-btn.hidden-pill {
    display: inline-flex;
}

.show-more-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    margin-bottom: 16px;
    transition: color 0.2s ease;
}

.show-more-btn:hover {
    color: var(--text-primary);
}

.custom-input-box {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
}

.custom-label {
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.custom-input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 600;
    outline: none;
}

.custom-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

/* Location Previews */
.location-preview {
    border-radius: 0;
}

.location-preview.cyberpunk {
    background: linear-gradient(135deg, #1a0a2e 0%, #16213e 50%, #0f3460 100%);
    background-image:
        linear-gradient(135deg, transparent 40%, var(--pink-primary) 40.5%, var(--pink-primary) 41%, transparent 41.5%),
        linear-gradient(225deg, transparent 40%, #00d9ff 40.5%, #00d9ff 41%, transparent 41.5%),
        linear-gradient(135deg, #1a0a2e 0%, #16213e 50%, #0f3460 100%);
}

.location-preview.beach {
    background: linear-gradient(180deg, #ff7e5f 0%, #feb47b 50%, #87ceeb 100%);
}

.location-preview.sakura {
    background: linear-gradient(135deg, #ffc0cb 0%, #ffb6c1 50%, #ff69b4 100%);
}

.location-preview.luxury {
    background: linear-gradient(135deg, #2c1810 0%, #4a3728 50%, #6b4423 100%);
}

.location-preview.forest {
    background: linear-gradient(180deg, #134e5e 0%, #71b280 100%);
}

.location-preview.studio {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    background-image:
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.location-preview.rooftop {
    background: linear-gradient(180deg, #0c0c1e 0%, #1a1a3e 50%, #2a2a4e 100%);
}

.location-preview.cafe {
    background: linear-gradient(135deg, #3e2723 0%, #5d4037 50%, #795548 100%);
}

.location-preview.space {
    background: linear-gradient(135deg, #000428 0%, #004e92 100%);
    background-image:
        radial-gradient(circle at 20% 30%, white 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, white 1px, transparent 1px),
        radial-gradient(circle at 50% 80%, white 1px, transparent 1px),
        linear-gradient(135deg, #000428 0%, #004e92 100%);
}

/* Name Input */
.input-container {
    position: relative;
}

.neon-input {
    width: 100%;
    padding: 16px 24px;
    font-size: 18px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
}

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

.neon-input:focus {
    border-color: var(--pink-primary);
    box-shadow: 0 0 20px var(--pink-glow),
                0 0 40px rgba(255, 45, 117, 0.2);
}

.input-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--pink-primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--pink-primary);
}

.neon-input:focus + .input-glow {
    width: 100%;
}

/* Name Suggestion Cards */
#name-suggestions .option-card {
    padding: 12px;
}

/* Neon Buttons */
.neon-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--pink-primary) 0%, var(--pink-accent) 100%);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px var(--pink-glow),
                0 4px 15px rgba(0, 0, 0, 0.3);
}

.neon-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--pink-glow),
                0 0 40px rgba(255, 45, 117, 0.3),
                0 6px 20px rgba(0, 0, 0, 0.4);
}

.neon-button:active:not(:disabled) {
    transform: translateY(0);
}

.neon-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.neon-button.secondary {
    background: transparent;
    border: 2px solid var(--pink-primary);
    box-shadow: 0 0 10px rgba(255, 45, 117, 0.2);
}

.neon-button.secondary:hover:not(:disabled) {
    background: rgba(255, 45, 117, 0.1);
    box-shadow: 0 0 20px var(--pink-glow);
}

.neon-button.generate {
    background: linear-gradient(135deg, #ff2d75 0%, #ff1a6c 50%, #ff69b4 100%);
    padding: 16px 32px;
    font-size: 18px;
}

.hidden {
    display: none !important;
}

/* Generation Container */
.generation-container {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
}

.loading-heart {
    animation: float 3s ease-in-out infinite;
}

/* Progress bar */
.progress-bar-container {
    width: 100%;
    max-width: 300px;
    height: 8px;
    background: rgba(255, 45, 117, 0.2);
    border-radius: 4px;
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 45, 117, 0.3);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff2d75, #ff69b4, #ff2d75);
    background-size: 200% 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
    animation: shimmer 1.5s ease-in-out infinite;
}

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

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

.generated-image-container {
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--pink-primary);
    box-shadow: 0 0 30px var(--pink-glow);
}

.generated-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    border: 2px solid var(--pink-primary);
    border-radius: 8px;
    padding: 16px 24px;
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: 0 0 20px var(--pink-glow),
                0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    z-index: 9999;
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--pink-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--pink-accent);
}

/* Responsive Design */
@media (max-width: 768px) {
    .wizard-step h2 {
        font-size: 24px;
    }

    .option-card {
        padding: 0;
    }

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

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

    .navigation-buttons {
        flex-wrap: wrap;
        gap: 12px;
    }

    .neon-button {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    header .container {
        padding: 12px;
    }

    .logo span {
        display: none;
    }

    /* Smaller header on mobile */
    .header-inner {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

    .heart-logo svg {
        width: 24px;
        height: 24px;
    }

    .menu-toggle svg {
        width: 18px;
        height: 18px;
    }

    .credit-display {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* Animations for step transitions */
.wizard-step.slide-out-left {
    position: absolute;
    visibility: visible;
    animation: slideOutLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.wizard-step.slide-in-right {
    position: relative;
    visibility: visible;
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.wizard-step.slide-out-right {
    position: absolute;
    visibility: visible;
    animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.wizard-step.slide-in-left {
    position: relative;
    visibility: visible;
    animation: slideInLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideOutLeft {
    0% { opacity: 1; transform: translate3d(0, 0, 0); }
    100% { opacity: 0; transform: translate3d(-40px, 0, 0); }
}

@keyframes slideInRight {
    0% { opacity: 0; transform: translate3d(40px, 0, 0); }
    100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes slideOutRight {
    0% { opacity: 1; transform: translate3d(0, 0, 0); }
    100% { opacity: 0; transform: translate3d(40px, 0, 0); }
}

@keyframes slideInLeft {
    0% { opacity: 0; transform: translate3d(-40px, 0, 0); }
    100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Age Slider */
.slider-container {
    padding: 20px;
}

.neon-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: var(--bg-dark-lighter);
    border-radius: 4px;
    outline: none;
    border: 1px solid var(--border-color);
}

.neon-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink-primary) 0%, var(--pink-accent) 100%);
    cursor: pointer;
    box-shadow: 0 0 15px var(--pink-glow),
                0 0 30px rgba(255, 45, 117, 0.3);
    border: 2px solid white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.neon-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--pink-glow),
                0 0 40px rgba(255, 45, 117, 0.5);
}

.neon-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink-primary) 0%, var(--pink-accent) 100%);
    cursor: pointer;
    box-shadow: 0 0 15px var(--pink-glow);
    border: 2px solid white;
}

.slider-labels {
    font-family: 'Rajdhani', sans-serif;
}

.slider-wrapper {
    position: relative;
    padding-bottom: 35px;
}

.slider-tooltip {
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--pink-primary) 0%, var(--pink-accent) 100%);
    color: white;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 16px;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 0 10px var(--pink-glow);
}

.slider-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--pink-primary);
}

/* Image-based Option Cards */
.option-card.with-image {
    padding: 0;
}

.option-card.with-image .card-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: visible;
    position: relative;
}

/* Portrait aspect ratio for ethnicity, hair type, and hair color cards */
.option-card.with-image[data-option="race"] .card-image,
.option-card.with-image[data-option="hairType"] .card-image,
.option-card.with-image[data-option="hairColor"] .card-image {
    aspect-ratio: 3/4;
}

.option-card.with-image .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.option-card.with-image:hover .card-image img {
    transform: scale(1.05);
}

/* Small button variant */
.neon-button.small {
    padding: 8px 16px;
    font-size: 14px;
}

.neon-button.large {
    padding: 18px 36px;
    font-size: 18px;
}

.neon-button.w-full {
    width: 100%;
    justify-content: center;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background: var(--bg-card);
    border: 2px solid var(--pink-primary);
    border-radius: 20px;
    padding: 40px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: 0 0 40px var(--pink-glow),
                0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-content.subscription-modal {
    max-width: 480px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--pink-primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-logo {
    margin-bottom: 15px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--pink-accent);
}

.modal-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Subscription Card */
.subscription-card {
    background: linear-gradient(135deg, rgba(255, 45, 117, 0.1) 0%, rgba(255, 105, 180, 0.05) 100%);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    position: relative;
}

.subscription-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--pink-primary) 0%, var(--pink-accent) 100%);
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: bold;
    padding: 6px 20px;
    border-radius: 20px;
    box-shadow: 0 0 15px var(--pink-glow);
}

.subscription-price {
    margin: 20px 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.subscription-price .currency {
    font-size: 24px;
    color: var(--pink-accent);
    font-weight: bold;
}

.subscription-price .amount {
    font-family: 'Orbitron', sans-serif;
    font-size: 56px;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 20px var(--pink-glow);
}

.subscription-price .period {
    font-size: 18px;
    color: var(--text-muted);
}

.subscription-features {
    list-style: none;
    text-align: left;
    margin: 25px 0;
    padding: 0;
}

.subscription-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
}

.subscription-features li:last-child {
    border-bottom: none;
}

.subscription-features li strong {
    color: var(--pink-accent);
}

.subscription-note {
    margin-top: 15px;
    font-size: 12px;
    color: var(--text-muted);
}

/* No Credits Info */
.no-credits-info {
    padding: 20px;
    background: rgba(255, 45, 117, 0.1);
    border-radius: 12px;
    margin-bottom: 20px;
}

/* ===========================================
   New Subscription Modal
   =========================================== */
.subscription-modal-new {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
    background: #1a1a25 !important;
    border: 2px solid #ff2d75 !important;
    color: white;
}

.sub-modal-header {
    text-align: center;
    margin-bottom: 15px;
}

.sub-modal-header h2 {
    margin-bottom: 3px;
}

.sub-modal-header p {
    margin-bottom: 10px;
}

/* Promo Banner in Modal */
.promo-banner-modal {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
    animation: promoBannerPulse 2s ease-in-out infinite;
}

@keyframes promoBannerPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4); }
    50% { transform: scale(1.02); box-shadow: 0 6px 20px rgba(155, 89, 182, 0.6); }
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.billing-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    color: #888;
    transition: color 0.2s;
}

.billing-label.active {
    color: white;
    font-weight: 600;
}

.save-badge {
    display: inline-block;
    background: var(--pink-primary);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #333;
    border-radius: 26px;
    transition: 0.3s;
}

.toggle-slider:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--pink-primary);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Plans Container */
.plans-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 10px;
}

@media (max-width: 600px) {
    .plans-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 15px;
        padding-bottom: 15px;
        margin: 0 -15px 10px -15px;
        padding-left: 15px;
        padding-right: 15px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .plans-container::-webkit-scrollbar {
        display: none;
    }

    .plan-card {
        flex: 0 0 90%;
        min-width: 90%;
        scroll-snap-align: center;
    }
}

/* Swipe indicator for mobile plans */
.swipe-indicator {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

@media (max-width: 600px) {
    .swipe-indicator {
        display: flex;
    }
}

.swipe-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #444;
    transition: background 0.3s;
    cursor: pointer;
}

.swipe-dot.active {
    background: var(--pink-primary);
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 10px;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .modal-content {
        padding: 15px 12px;
        max-width: 95vw;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 12px;
        position: relative;
    }

    .modal-header {
        margin-bottom: 12px;
    }

    .modal-header h2 {
        font-size: 1.1rem;
    }

    .modal-form {
        gap: 10px;
    }

    /* Fix X button visibility */
    .modal-close {
        position: absolute;
        top: 5px;
        right: 8px;
        font-size: 28px;
        z-index: 100;
        background: rgba(0,0,0,0.5);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    /* Subscription Modal Mobile - Scale to fit */
    .subscription-modal-new {
        max-width: 95vw;
        max-height: 85vh;
        padding: 10px;
        overflow-y: auto;
        transform-origin: center center;
    }

    .subscription-modal-new .modal-close {
        top: 5px;
        right: 8px;
        position: sticky;
        float: right;
        margin-bottom: -30px;
    }

    .sub-modal-header {
        margin-bottom: 8px;
        padding-top: 0;
    }

    .sub-modal-header h2 {
        font-size: 0.95rem;
        margin-bottom: 0;
    }

    .sub-modal-header p {
        font-size: 11px;
        margin-bottom: 5px;
    }

    .promo-banner-modal {
        font-size: 10px;
        padding: 5px 8px;
        margin-bottom: 6px;
        border-radius: 6px;
    }

    .billing-toggle {
        gap: 5px;
        margin-bottom: 5px;
    }

    .billing-label {
        font-size: 10px;
    }

    .save-badge {
        font-size: 7px;
        padding: 1px 3px;
    }

    .toggle-switch {
        width: 36px;
        height: 20px;
    }

    .toggle-slider:before {
        height: 14px;
        width: 14px;
        left: 3px;
        bottom: 3px;
    }

    .toggle-switch input:checked + .toggle-slider:before {
        transform: translateX(16px);
    }

    .swipe-indicator {
        margin-bottom: 5px;
    }

    .swipe-dot {
        width: 6px;
        height: 6px;
    }

    .plan-card {
        padding: 10px 8px;
    }

    .featured-badge {
        font-size: 7px;
        padding: 2px 6px;
        top: -6px;
    }

    .plan-header {
        margin-bottom: 6px;
    }

    .plan-name {
        font-size: 0.85rem;
        margin-bottom: 3px;
    }

    .plan-price .amount {
        font-size: 24px;
    }

    .plan-price .currency {
        font-size: 12px;
    }

    .plan-price .period {
        font-size: 10px;
    }

    .billed-yearly {
        font-size: 8px;
    }

    .plan-features {
        font-size: 10px;
        margin: 6px 0;
    }

    .plan-features li {
        padding: 2px 0;
        gap: 5px;
        border-bottom: none;
    }

    .plan-features li svg {
        width: 12px;
        height: 12px;
    }

    .plan-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .subscription-note {
        font-size: 9px;
        margin-top: 8px;
    }

    /* Token Shop Modal Mobile */
    .token-modal {
        padding: 15px 12px;
    }

    .token-pack {
        padding: 12px;
    }

    .token-amount {
        font-size: 1.1rem;
    }

    .token-price {
        font-size: 1rem;
    }
}

/* Plan Card */
.plan-card {
    background: #252528;
    border: 2px solid #333;
    border-radius: 14px;
    padding: 18px;
    position: relative;
    transition: all 0.2s;
}

.plan-card:hover {
    border-color: #444;
}

.plan-card.featured {
    border-color: var(--pink-primary);
    background: linear-gradient(135deg, rgba(255, 45, 117, 0.1) 0%, #252528 100%);
}

.featured-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pink-primary);
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 10px;
}

.plan-header {
    text-align: center;
    margin-bottom: 12px;
}

.plan-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: white;
    margin-bottom: 6px;
}

.plan-price .currency {
    font-size: 18px;
    color: var(--pink-primary);
}

.plan-price .amount {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: bold;
    color: white;
}

.plan-price .period {
    font-size: 14px;
    color: #888;
}

.billed-yearly {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.price-yearly {
    display: none;
}

.price-yearly.show {
    display: block;
}

.price-monthly.hidden {
    display: none;
}

/* Plan Features */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    color: #ccc;
}

.plan-features li strong {
    color: var(--pink-accent);
}

/* Plan Button */
.plan-btn {
    width: 100%;
    padding: 12px;
    background: #333;
    border: 1px solid #444;
    border-radius: 8px;
    color: white;
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.plan-btn:hover {
    background: #444;
}

.plan-btn.featured {
    background: var(--pink-primary);
    border-color: var(--pink-primary);
}

.plan-btn.featured:hover {
    background: var(--pink-accent);
}

.plan-btn.current-plan {
    background: transparent;
    border: 2px solid var(--pink-primary);
    color: var(--pink-primary);
    cursor: default;
}

.plan-btn.current-plan:hover {
    background: transparent;
}

.plan-card.current {
    border-color: var(--pink-primary);
    box-shadow: 0 0 20px rgba(255, 45, 117, 0.3);
}

.sub-modal-note {
    text-align: center;
    font-size: 12px;
    color: #666;
}

/* ===========================================
   Token Shop Modal
   =========================================== */
.token-shop-modal {
    max-width: 500px;
}

.token-packs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

@media (max-width: 480px) {
    .token-packs {
        grid-template-columns: 1fr;
    }
}

.token-pack {
    background: #252528;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.token-pack:hover {
    border-color: var(--pink-primary);
    transform: translateY(-2px);
}

.token-pack.best-value {
    border-color: var(--pink-primary);
}

.best-value-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pink-primary);
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 9px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 10px;
    white-space: nowrap;
}

.token-amount {
    margin-bottom: 10px;
}

.token-amount .amount {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: bold;
    color: white;
    display: block;
}

.token-amount .label {
    font-size: 14px;
    color: #888;
}

.token-price {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    color: var(--pink-primary);
    margin-bottom: 5px;
}

.token-value {
    font-size: 12px;
    color: #666;
}

.token-shop-note {
    text-align: center;
    font-size: 12px;
    color: #666;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    padding: 0 15px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Google Sign-in Button */
.google-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.google-signin-btn svg {
    flex-shrink: 0;
}

.mr-2 {
    margin-right: 8px;
}

/* Welcome Modal */
.welcome-modal {
    max-width: 800px;
    padding: 0;
    overflow: hidden;
}

.welcome-layout {
    display: flex;
    min-height: 500px;
}

.welcome-image {
    flex: 1;
    background: #0a0a0f;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.welcome-image::before {
    display: none;
}

.welcome-image-placeholder {
    text-align: center;
    position: relative;
    z-index: 1;
}

.welcome-form {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-form .modal-form {
    margin-bottom: 20px;
}

/* Divider Line */
.divider-line {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.divider-line::before,
.divider-line::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider-line span {
    padding: 0 15px;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    background: var(--bg-dark-lighter);
    color: var(--text-primary);
}

.social-btn:hover {
    border-color: var(--pink-primary);
    background: rgba(255, 45, 117, 0.1);
}

.social-btn.google-signin-btn {
    background: white;
    color: #333;
    border-color: #ddd;
}

.social-btn.google-signin-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

/* Responsive Welcome Modal */
@media (max-width: 768px) {
    .welcome-modal {
        max-width: 90%;
        max-height: none;
        overflow: visible;
        margin: 20px;
    }

    .welcome-layout {
        flex-direction: column;
        min-height: auto;
    }

    /* Hide image on mobile */
    .welcome-image {
        display: none;
    }

    .welcome-form {
        padding: 24px;
    }

    .welcome-form h2 {
        font-size: 1.25rem;
        margin-bottom: 4px;
    }

    .welcome-form > p {
        margin-bottom: 16px;
        font-size: 14px;
    }

    .welcome-form .form-group {
        margin-bottom: 14px;
    }

    .welcome-form .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
        display: block;
    }

    .welcome-form .neon-input {
        padding: 12px 14px;
        font-size: 16px;
    }

    .welcome-form .neon-button {
        padding: 14px 20px;
        font-size: 15px;
        margin-top: 8px;
    }

    .welcome-form .modal-form {
        margin-bottom: 16px;
    }

    .welcome-form p.text-sm {
        margin-top: 16px !important;
        font-size: 13px;
    }

    .welcome-form p.text-xs {
        margin-top: 12px !important;
        font-size: 11px;
        line-height: 1.4;
    }
}

/* ===========================================
   Sidebar Navigation
   =========================================== */

.sidebar {
    position: fixed;
    top: 50px;
    left: 0;
    width: 70px;
    height: calc(100vh - 50px);
    background: #1a1a1d;
    border-right: 1px solid #252528;
    z-index: 999;
    transition: width 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar.expanded {
    width: 220px;
}

/* Hide text when collapsed */
.sidebar .sidebar-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity 0.2s ease, width 0.3s ease;
}

.sidebar.expanded .sidebar-text {
    opacity: 1;
    width: auto;
}

/* Mobile: hidden by default */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 220px;
        top: 44px;
        height: calc(100vh - 44px);
        z-index: 1001;
        background: #1a1a1d;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar .sidebar-text {
        opacity: 1;
        width: auto;
    }

    .sidebar .sidebar-nav {
        padding: 15px 10px;
        background: #1a1a1d;
    }

    .sidebar .sidebar-link {
        justify-content: flex-start;
        padding: 0 16px;
        width: auto;
        height: 44px;
        margin: 0 0 2px 0;
        gap: 12px;
    }

    .sidebar .sidebar-divider {
        margin: 8px 0;
        width: auto;
    }

    .sidebar .sidebar-footer {
        padding: 12px 10px;
        background: #1a1a1d;
    }
}

/* Hide sidebar header - logo is in main header */
.sidebar-header {
    display: none;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

.sidebar-nav {
    flex: 1;
    padding: 15px 0;
    overflow-y: auto;
}

.sidebar.expanded .sidebar-nav {
    padding: 15px 10px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    margin: 0 0 4px 11px;
    width: 48px;
    height: 48px;
    color: #888;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.15s ease;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 15px;
}

/* When expanded, align left */
.sidebar.expanded .sidebar-link {
    justify-content: flex-start;
    padding: 0 16px;
    width: auto;
    height: 44px;
    margin: 0 0 2px 0;
    gap: 12px;
}

.sidebar-link:hover {
    background: #252528;
    color: #fff;
}

.sidebar-link.active {
    background: var(--pink-primary);
    color: #fff;
}

.sidebar-link svg {
    flex-shrink: 0;
    stroke: currentColor;
}

.sidebar-link.upgrade {
    background: linear-gradient(135deg, rgba(255, 45, 117, 0.2) 0%, rgba(255, 105, 180, 0.1) 100%);
    color: var(--pink-primary);
    margin-top: 10px;
}

.sidebar.expanded .sidebar-link.upgrade {
    margin-top: 8px;
}

.sidebar-link.upgrade:hover {
    background: linear-gradient(135deg, rgba(255, 45, 117, 0.3) 0%, rgba(255, 105, 180, 0.2) 100%);
}

.sidebar-link.upgrade svg {
    fill: var(--pink-primary);
    stroke: none;
}

/* Promo Badge on Sidebar */
.promo-badge {
    display: none;
    position: absolute;
    top: -8px;
    right: -5px;
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(155, 89, 182, 0.5);
    animation: promoPulse 2s ease-in-out infinite;
}

.sidebar.expanded .promo-badge {
    display: inline-block;
    position: static;
    margin-left: auto;
    font-size: 10px;
    padding: 4px 8px;
}

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

.sidebar-divider {
    height: 1px;
    background: #252528;
    margin: 8px 0 8px 11px;
    width: 48px;
}

.sidebar.expanded .sidebar-divider {
    margin: 8px 0;
    width: auto;
}

.sidebar-footer {
    padding: 12px 0;
    border-top: 1px solid #252528;
}

.sidebar.expanded .sidebar-footer {
    padding: 12px 10px;
}

/* Menu Toggle Button */
.menu-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    background: rgba(255, 45, 117, 0.1);
    color: var(--pink-primary);
}

.menu-toggle svg {
    stroke: currentColor;
}

/* ===========================================
   Age Selector Card (New Design)
   =========================================== */

.age-selector-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.age-display-box {
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 32px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
    text-align: center;
}

.age-display-box #age-display {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    color: var(--pink-primary);
    margin-right: 6px;
}

.age-slider-row {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.age-label {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    min-width: 30px;
    text-align: center;
}

.slider-track-wrapper {
    flex: 1;
    position: relative;
}

.age-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    background: linear-gradient(to right, var(--pink-primary) 0%, var(--pink-primary) var(--progress, 18.9%), #3a3a4a var(--progress, 18.9%), #3a3a4a 100%);
}

.age-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    border: none;
    transition: transform 0.15s ease;
}

.age-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.age-range-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    border: none;
}

.age-range-slider::-moz-range-progress {
    background: var(--pink-primary);
    height: 6px;
    border-radius: 3px;
}

.age-range-slider::-moz-range-track {
    background: #3a3a4a;
    height: 6px;
    border-radius: 3px;
}

@media (max-width: 480px) {
    .age-selector-card {
        padding: 20px 16px;
    }

    .age-display-box {
        padding: 10px 24px;
    }

    .age-display-box #age-display {
        font-size: 20px;
    }
}

/* ===========================================
   My Characters Grid
   =========================================== */

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.character-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.character-card:hover {
    border-color: var(--pink-primary);
    box-shadow: 0 0 20px var(--pink-glow);
    transform: translateY(-4px);
}

.character-image {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.character-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.character-info {
    padding: 12px;
}

.character-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.character-style {
    font-size: 12px;
    color: var(--pink-accent);
    text-transform: capitalize;
}

.character-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.character-card:hover .character-actions {
    opacity: 1;
}

.character-action-btn {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.character-action-btn.video-btn {
    background: linear-gradient(135deg, var(--pink-primary), #ff69b4);
    color: white;
}

.character-action-btn.video-btn:hover {
    box-shadow: 0 0 15px var(--pink-glow);
}

.character-action-btn.delete-btn {
    background: rgba(0, 0, 0, 0.7);
    color: #ff5555;
    border: 1px solid rgba(255, 50, 50, 0.3);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    padding: 0;
    flex: none;
}

.character-action-btn.delete-btn:hover {
    background: rgba(255, 50, 50, 0.6);
    color: white;
}

.loading-characters {
    grid-column: 1 / -1;
}

/* Save Character Button (neon-button variant) */
.neon-button.save {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-color: #4CAF50;
}

.neon-button.save:hover {
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.6), 0 0 40px rgba(76, 175, 80, 0.3);
    background: linear-gradient(135deg, #5CBF60, #4CAF50);
}

.neon-button.save.saved {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    cursor: default;
}

.neon-button.save.saved:hover {
    transform: none;
    box-shadow: none;
}

/* Character Card Video Button */
.character-card-buttons {
    padding: 0 12px 12px;
}

.video-gen-btn {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--pink-primary), #ff69b4);
    border: none;
    border-radius: 8px;
    color: white;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.video-gen-btn:hover {
    box-shadow: 0 0 20px var(--pink-glow);
    transform: translateY(-2px);
}

/* Video Modal Styles */
.video-character-preview {
    text-align: center;
}

.video-character-preview img {
    width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--pink-primary);
    box-shadow: 0 0 20px var(--pink-glow);
}

/* Pose Options */
.pose-options {
    gap: 12px;
}

.pose-option {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.pose-option:hover {
    border-color: var(--pink-accent);
    background: var(--bg-dark-lighter);
}

.pose-option.selected {
    border-color: var(--pink-primary);
    background: rgba(255, 45, 117, 0.1);
    box-shadow: 0 0 15px var(--pink-glow);
}

.pose-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.pose-label {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.pose-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
}

/* Video Result */
#video-result video {
    border: 2px solid var(--pink-primary);
    box-shadow: 0 0 20px var(--pink-glow);
}

#video-loading {
    padding: 20px;
}

/* ===========================================
   Video Generation Page
   =========================================== */

.video-page-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    .video-page-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.video-character-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    border: 2px solid var(--pink-primary);
    box-shadow: 0 0 30px var(--pink-glow);
}

.video-page-preview-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 12px;
}

.video-options-panel {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
}

.pose-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 500px) {
    .pose-grid {
        grid-template-columns: 1fr;
    }
}

/* Video Loading State */
.video-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

.video-loading-preview {
    width: 200px;
    height: 267px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--pink-primary);
    box-shadow: 0 0 30px var(--pink-glow);
    margin-bottom: 30px;
}

.video-loading-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.loading-heart-large {
    display: inline-block;
}

.video-progress-container {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.video-progress-bar {
    height: 8px;
    background: var(--bg-dark-lighter);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.video-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--pink-primary), var(--pink-accent));
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Video Result State */
.video-result-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.video-player-container {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--pink-primary);
    box-shadow: 0 0 30px var(--pink-glow);
}

.video-player {
    width: 100%;
    display: block;
    max-height: 70vh;
}

.video-result-actions {
    flex-wrap: wrap;
}

/* Video Page Tabs */
.video-tabs {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-dark-lighter);
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.video-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-tab:hover {
    background: rgba(255, 45, 117, 0.1);
    color: var(--pink-accent);
}

.video-tab.active {
    background: var(--pink-primary);
    color: white;
    box-shadow: 0 0 15px var(--pink-glow);
}

.video-tab-content {
    animation: fadeIn 0.3s ease;
}

/* Pose Result Layout */
.pose-result-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.pose-success-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink-primary), var(--pink-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 45, 117, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 45, 117, 0.8);
    }
}

.pose-image-showcase {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.pose-image-frame {
    background: linear-gradient(135deg, var(--pink-primary), var(--pink-accent));
    padding: 4px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(255, 45, 117, 0.3);
    display: inline-block;
}

.generated-pose-img {
    display: block;
    border-radius: 16px;
    max-height: 500px;
    max-width: 100%;
    height: auto;
}

.pose-action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.pose-action-buttons .neon-button {
    flex: 1;
    max-width: 220px;
}

@media (max-width: 480px) {
    .pose-action-buttons {
        flex-direction: column;
    }

    .pose-action-buttons .neon-button {
        max-width: none;
    }
}

/* Animate Info Box */
.animate-info-box {
    background: var(--bg-dark-lighter);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.5rem;
}

/* ===========================================
   Profile Page - Modern Design
   =========================================== */
.profile-page {
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
}

.profile-header {
    margin-bottom: 2rem;
}

.profile-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.profile-subtitle {
    font-family: 'Rajdhani', sans-serif;
    color: #888;
    font-size: 0.95rem;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-card {
    background: #2a2a2e;
    border: 1px solid #3a3a40;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.profile-card:hover {
    border-color: #4a4a50;
}

.profile-user-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-primary), var(--pink-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.profile-user-info {
    flex: 1;
}

.profile-email {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.profile-member-status {
    font-family: 'Rajdhani', sans-serif;
    color: #888;
    font-size: 0.9rem;
}

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

.profile-stat-card {
    background: #2a2a2e;
    border: 1px solid #3a3a40;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

.profile-stat-card:hover {
    border-color: var(--purple-primary);
    background: #32323a;
}

.profile-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(255, 45, 117, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-primary);
}

.profile-stat-info {
    flex: 1;
}

.profile-stat-label {
    font-family: 'Rajdhani', sans-serif;
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.profile-stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-actions {
    margin-top: 0.5rem;
}

.profile-action-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.profile-btn-primary {
    background: linear-gradient(135deg, var(--purple-primary), var(--pink-primary));
    color: white;
}

.profile-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.4);
}

.profile-btn-secondary {
    background: #2a2a2e;
    border: 1px solid #3a3a40;
    color: var(--text-primary);
}

.profile-btn-secondary:hover {
    background: #35353b;
    border-color: var(--purple-primary);
}

.profile-btn-outline {
    background: transparent;
    border: 1px solid #3a3a40;
    color: #888;
}

.profile-btn-outline:hover {
    background: #2a2a2e;
    border-color: #ff4444;
    color: #ff4444;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .profile-stats-grid {
        grid-template-columns: 1fr;
    }

    .profile-stat-card {
        padding: 1rem;
    }

    .profile-stat-icon {
        width: 40px;
        height: 40px;
    }

    .profile-stat-value {
        font-size: 1.25rem;
    }
}

/* ===========================================
   Generated Content Page - Modern Design
   =========================================== */
.gc-page {
    padding: 0;
}

.gc-header {
    margin-bottom: 1.5rem;
}

.gc-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.gc-subtitle {
    font-family: 'Rajdhani', sans-serif;
    color: #888;
    font-size: 0.95rem;
}

/* Toolbar - Search, Filters, View Toggle */
.gc-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.gc-search-wrapper {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 320px;
}

.gc-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.gc-search-input {
    width: 100%;
    padding: 10px 12px 10px 42px;
    background: #2a2a2e;
    border: 1px solid #3a3a40;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.gc-search-input:focus {
    outline: none;
    border-color: var(--purple-primary);
    background: #32323a;
}

.gc-search-input::placeholder {
    color: #666;
}

/* Filter Pills */
.gc-filters {
    display: flex;
    gap: 0.5rem;
}

.gc-filter-btn {
    padding: 8px 16px;
    background: #2a2a2e;
    border: 1px solid #3a3a40;
    border-radius: 20px;
    color: #888;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gc-filter-btn:hover {
    background: #35353b;
    color: var(--text-primary);
}

.gc-filter-btn.active {
    background: var(--purple-primary);
    border-color: var(--purple-primary);
    color: white;
}

/* View Toggle */
.gc-view-toggle {
    display: flex;
    gap: 4px;
    background: #2a2a2e;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid #3a3a40;
}

.gc-view-btn {
    padding: 6px 10px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gc-view-btn:hover {
    color: var(--text-primary);
}

.gc-view-btn.active {
    background: #3a3a40;
    color: var(--purple-primary);
}

/* Stats */
.gc-stats {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #2a2a2e;
}

.gc-stats span {
    color: #666;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
}

/* Content Grid */
.gc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.gc-grid.list-view {
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

/* Content Card */
.gc-card {
    background: #252528;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.gc-card:hover {
    transform: translateY(-2px);
    border-color: var(--purple-primary);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.15);
}

.gc-card-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #1a1a1c;
}

.gc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gc-card:hover .gc-card-image img {
    transform: scale(1.03);
}

/* Hover Overlay */
.gc-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    gap: 0.5rem;
}

.gc-card:hover .gc-card-overlay {
    opacity: 1;
}

/* My Characters Card Overlay */
.mc-card {
    cursor: pointer;
}

.mc-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mc-card:hover .mc-card-overlay {
    opacity: 1;
}

.mc-create-pose-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--pink-primary), var(--purple-primary));
    border-radius: 25px;
    color: white;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mc-card:hover .mc-create-pose-btn {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 45, 117, 0.4);
}

.gc-card-action {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gc-card-action:hover {
    background: var(--purple-primary);
    transform: scale(1.1);
}

.gc-card-action.delete:hover {
    background: #ef4444;
}

/* Card Info */
.gc-card-info {
    padding: 0.75rem;
}

.gc-card-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gc-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gc-card-type {
    font-size: 0.75rem;
    color: var(--purple-primary);
    text-transform: capitalize;
    font-weight: 500;
}

.gc-card-date {
    font-size: 0.7rem;
    color: #555;
}

/* List View Card */
.gc-grid.list-view .gc-card {
    display: flex;
    flex-direction: row;
}

.gc-grid.list-view .gc-card-image {
    width: 80px;
    height: 80px;
    aspect-ratio: 1;
    flex-shrink: 0;
}

.gc-grid.list-view .gc-card-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gc-grid.list-view .gc-card-overlay {
    display: none;
}

/* Empty State */
.gc-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.gc-empty-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    background: #252528;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
}

.gc-empty-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.gc-empty-text {
    color: #666;
    font-family: 'Rajdhani', sans-serif;
    margin-bottom: 1.5rem;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.gc-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    background: var(--purple-primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gc-empty-btn:hover {
    background: var(--purple-light);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .gc-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .gc-search-wrapper {
        max-width: 100%;
    }

    .gc-filters {
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .gc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* ===========================================
   Image Lightbox
   =========================================== */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-lightbox.show {
    opacity: 1;
}

.image-lightbox.hidden {
    display: none;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(255, 45, 117, 0.3);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -10px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    color: var(--pink-primary);
    transform: scale(1.1);
}

.lightbox-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    width: 100%;
    max-width: 400px;
}

.lightbox-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.neon-button.small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.neon-button.small svg {
    flex-shrink: 0;
}

/* Make generated content images clickable */
.generated-content-image {
    cursor: pointer;
}

@media (max-width: 640px) {
    .lightbox-content img {
        max-height: 70vh;
    }

    .lightbox-close {
        top: -35px;
        right: 0;
    }

    .lightbox-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .lightbox-title {
        text-align: center;
    }
}

/* ===========================================
   Promo Banner
   =========================================== */
.promo-banner {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 24px auto;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 45, 117, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.promo-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 45, 117, 0.5);
}

.promo-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

.promo-banner-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.promo-banner-close:hover {
    background: rgba(255, 45, 117, 0.8);
}

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

/* FAQ Page Styles */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(30, 30, 35, 0.8);
    border: 1px solid rgba(255, 45, 117, 0.2);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 45, 117, 0.4);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: none;
    border: none;
    color: white;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--pink-primary);
}

.faq-question span {
    flex: 1;
    padding-right: 15px;
}

.faq-arrow {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--pink-primary);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 20px 18px 20px;
    color: #a0a0a0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

/* Main content offset for sidebar */
@media (min-width: 769px) {
    body {
        padding-left: 70px;
        transition: padding-left 0.3s ease;
    }

    body.sidebar-expanded {
        padding-left: 220px;
    }
}
