* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* ========================================
   FLUID SCALING SYSTEM
   Responsive scaling based on viewport size
   ======================================== */
:root {
    /* Viewport reference */
    --base-viewport: 375;
    --max-viewport: 1920;
    
    /* Fluid Font Sizes */
    --fs-xs: clamp(0.6rem, 1.2vw, 0.7rem);
    --fs-sm: clamp(0.7rem, 1.5vw, 0.8rem);
    --fs-base: clamp(0.8rem, 2vw, 1rem);
    --fs-md: clamp(1rem, 2.5vw, 1.2rem);
    --fs-lg: clamp(1.3rem, 3.5vw, 1.8rem);
    --fs-xl: clamp(1.5rem, 4vw, 2.5rem);
    --fs-xxl: clamp(1.8rem, 5vw, 3.5rem);
    
    /* Soft Pink Color */
    --pink-soft: rgba(255, 20, 147, 0.6);
    --pink-border: rgba(255, 20, 147, 0.4);
    
    /* Fluid Spacing */
    --space-xs: clamp(0.2rem, 0.4vw, 0.3rem);
    --space-sm: clamp(0.3rem, 0.6vw, 0.5rem);
    --space-md: clamp(0.5rem, 1vw, 0.8rem);
    --space-lg: clamp(0.8rem, 1.5vw, 1.2rem);
    --space-xl: clamp(1rem, 2vw, 1.5rem);
    --space-xxl: clamp(1.5rem, 3vw, 2.5rem);
    
    /* Fluid Gaps */
    --gap-xs: clamp(0.15rem, 0.3vw, 0.25rem);
    --gap-sm: clamp(0.2rem, 0.5vw, 0.4rem);
    --gap-md: clamp(0.3rem, 0.8vw, 0.6rem);
    --gap-lg: clamp(0.5rem, 1.2vw, 1rem);
    
    /* Fluid Border Radius */
    --radius-sm: clamp(0.5rem, 1.5vw, 0.8rem);
    --radius-md: clamp(0.8rem, 2vw, 1.2rem);
    --radius-lg: clamp(1rem, 2.5vw, 1.5rem);
    --radius-xl: clamp(1.2rem, 3vw, 2rem);
    
    /* Fluid Dimensions */
    --icon-sm: clamp(1rem, 2.5vw, 1.4rem);
    --icon-md: clamp(1.2rem, 3vw, 1.8rem);
    --icon-lg: clamp(1.5rem, 4vw, 2.5rem);
    
    /* Button minimum sizes (accessibility) */
    --btn-min-height: 44px;
    --btn-min-width: 44px;
}

/* Age Verification Modal Styles */
.age-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.5s ease;
}

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

.age-modal-content {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(25px);
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(220, 20, 60, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(220, 20, 60, 0.2);
    animation: ageModalSlideIn 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.age-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc143c, #8b008b, #ff1493, #9400d3, #dc143c);
    background-size: 300% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes ageModalSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.age-modal-header {
    margin-bottom: 30px;
}

.age-warning-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: ageWarningPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(220, 20, 60, 0.8));
}

@keyframes ageWarningPulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(220, 20, 60, 0.8));
    }
    50% { 
        transform: scale(1.1);
        filter: drop-shadow(0 0 30px rgba(220, 20, 60, 1));
    }
}

.age-title {
    font-family: 'Outfit', 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #dc143c, #ff1493, #8b008b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.age-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #b0b0b0;
    font-weight: 400;
    margin-bottom: 0;
    opacity: 0.9;
}

.age-modal-body {
    text-align: center;
}

.age-warning-text {
    margin-bottom: 30px;
    padding: 0 10px;
}

.age-warning-text p {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 15px;
    opacity: 0.9;
}

.age-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.age-btn {
    width: 100%;
    padding: 18px 24px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-height: 56px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.age-btn-confirm {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 50%, #00aa55 100%);
    color: #000000;
    box-shadow: 
        0 8px 20px rgba(0, 255, 136, 0.4),
        0 0 20px rgba(0, 204, 106, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: confirmGlow 3s ease-in-out infinite;
}

.age-btn-deny {
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 50%, #ff2f3a 100%);
    color: #ffffff;
    box-shadow: 
        0 8px 20px rgba(255, 71, 87, 0.4),
        0 0 20px rgba(255, 55, 66, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: denyGlow 3s ease-in-out infinite;
}

.age-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.age-btn-confirm:hover {
    box-shadow: 
        0 12px 25px rgba(0, 255, 136, 0.6),
        0 0 25px rgba(0, 204, 106, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.age-btn-deny:hover {
    box-shadow: 
        0 12px 25px rgba(255, 71, 87, 0.6),
        0 0 25px rgba(255, 55, 66, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.age-btn:active {
    transform: translateY(-1px) scale(1.01);
}

.age-btn-icon {
    font-size: 18px;
    animation: iconBounce 2s ease-in-out infinite;
}

.age-btn-text {
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes confirmGlow {
    0%, 100% { 
        box-shadow: 
            0 8px 20px rgba(0, 255, 136, 0.4),
            0 0 20px rgba(0, 204, 106, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% { 
        box-shadow: 
            0 12px 25px rgba(0, 255, 136, 0.6),
            0 0 30px rgba(0, 204, 106, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

@keyframes denyGlow {
    0%, 100% { 
        box-shadow: 
            0 8px 20px rgba(255, 71, 87, 0.4),
            0 0 20px rgba(255, 55, 66, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% { 
        box-shadow: 
            0 12px 25px rgba(255, 71, 87, 0.6),
            0 0 30px rgba(255, 55, 66, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-2px) scale(1.1); }
}

.age-disclaimer {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.age-disclaimer small {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: #a0a0a0;
    line-height: 1.4;
    opacity: 0.8;
}

/* Mobile optimizations for age verification */
@media (max-width: 480px) {
    .age-modal-content {
        padding: 30px 20px;
        max-width: 380px;
        border-radius: 20px;
    }
    
    .age-title {
        font-size: 24px;
    }
    
    .age-subtitle {
        font-size: 14px;
    }
    
    .age-warning-text p {
        font-size: 13px;
    }
    
    .age-btn {
        padding: 16px 20px;
        font-size: 15px;
        min-height: 52px;
    }
    
    .age-warning-icon {
        font-size: 50px;
    }
}

@media (max-width: 360px) {
    .age-modal-content {
        padding: 25px 15px;
        max-width: 320px;
    }
    
    .age-title {
        font-size: 22px;
    }
    
    .age-btn {
        padding: 14px 18px;
        font-size: 14px;
        min-height: 48px;
    }
}

/* Loading Screen Styles */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(25px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    margin-bottom: 30px;
}

.loading-logo img {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    animation: pulse 2s infinite;
}

.loading-text {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 30px;
    color: #ffffff;
    -webkit-text-size-adjust: 100%;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcf7f);
    border-radius: 2px;
    animation: loadingProgress 2s ease-in-out infinite;
}

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

@keyframes loadingProgress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

html, body {
    height: 100vh;
    max-height: 100vh;
    overflow: auto; /* allow scroll */
    -webkit-overflow-scrolling: touch;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', 'Outfit', sans-serif;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(25px);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: auto; /* allow scroll */
    /* Mobile optimizations */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
    /* Prevent text selection and copy */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Hide scrollbar visuals while keeping scroll functional */
body {
    scrollbar-width: none; /* Firefox */
}
body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* Background effects removed - static black background only */

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

/* Background slide animation removed */

.container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    /* Mobile-first approach */
    position: relative;
    overflow: visible;
}

.app-card {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(25px);
    border: none;
    border-radius: 25px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: none;
    position: relative;
    overflow: visible;
    animation: cardGlow 3s ease-in-out infinite alternate;
    width: 100%;
    /* Mobile optimizations */
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    /* Custom scrollbar for better look */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.app-card::-webkit-scrollbar {
    display: none;
}

@keyframes cardGlow {
    0% { box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(220, 20, 60, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 20px rgba(220, 20, 60, 0.2); }
    100% { box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(220, 20, 60, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 50px rgba(220, 20, 60, 0.5); }
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc143c, #8b008b, #ff1493, #9400d3, #dc143c);
    background-size: 300% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

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

/* App Header Layout */
.app-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.app-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.app-title-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.simple-title {
    font-size: 20px;
    color: #ffffff;
    text-align: left;
    margin-bottom: 0px;
    font-weight: normal;
}

.app-copyright {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    color: #ffffff;
    text-align: left;
    margin-top: 2px;
    margin-bottom: 0px;
    font-weight: 300;
    opacity: 0.4;
}

.app-purchases {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    color: #ffffff;
    text-align: left;
    margin-bottom: 0;
    font-weight: 300;
    opacity: 0.4;
}

.icon-placeholder {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #dc143c, #8b008b, #ff1493);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    margin: 0 auto;
    box-shadow: none;
    position: relative;
    animation: iconPulse 2s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    /* Mobile touch optimization */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    overflow: hidden;
}

.app-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.fallback-icon {
    display: none;
    font-size: 42px;
}

.icon-placeholder:hover {
    transform: scale(1.05);
    box-shadow: none;
}

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

.app-title {
    font-family: 'Outfit', 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #dc143c, #ff1493, #8b008b, #9400d3);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: textGradient 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(220, 20, 60, 0.5);
    letter-spacing: -0.5px;
    /* Mobile text optimization */
    word-break: keep-all;
    hyphens: none;
}

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

.app-info {
    margin-bottom: 20px;
}

.version-size {
    margin-bottom: 15px;
    color: #e5e7eb;
    font-size: 11px;
    font-weight: 400;
    font-family: 'Outfit', sans-serif;
    opacity: 0.7;
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.3);
    letter-spacing: 0.5px;
}

.separator {
    margin: 0 10px;
    color: #ff1493;
}

.stats-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding: 0 5px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.stat-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

.stat-number {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.stat-icon {
    font-size: 12px;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
}

.stat-label {
    font-size: 9px;
    color: #a0a0a0;
    font-weight: 300;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.2px;
    opacity: 0.6;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 25px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 8px;
}


.install-btn {
    width: 100%;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 50%, #ff6b35 100%);
    background-size: 200% 100%;
    border: none;
    border-radius: 16px;
    padding: 18px 24px;
    font-size: 17px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 20px rgba(255, 215, 0, 0.5),
        0 0 20px rgba(255, 140, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
    animation: subtleGlow 4s ease-in-out infinite, backgroundFlow 6s linear infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
    /* Mobile touch optimization */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 56px;
    user-select: none;
}

/* Install button emoji spacing */
/* .install-emoji removed */

.install-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.install-btn:hover::before {
    left: 100%;
}

.install-btn:hover {
    transform: translateY(-2px) scale(1.02);
    background-position: 100% 0;
    box-shadow: 
        0 12px 25px rgba(255, 215, 0, 0.7),
        0 0 25px rgba(255, 140, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.install-btn:active {
    transform: translateY(-1px) scale(1.01);
}

.install-text, .install-icon {
    position: relative;
    z-index: 2;
}

@keyframes subtleGlow {
    0%, 100% { 
        box-shadow: 
            0 8px 20px rgba(220, 20, 60, 0.5),
            0 0 20px rgba(139, 0, 139, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% { 
        box-shadow: 
            0 12px 25px rgba(220, 20, 60, 0.7),
            0 0 30px rgba(139, 0, 139, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

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


.download-icon {
    font-size: 20px;
    animation: iconBounce 3s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-2px) scale(1.05); }
}

.security-note {
    color: #ff1493;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-shadow: 0 0 15px rgba(255, 20, 147, 0.7);
    animation: securityPulse 2s ease-in-out infinite;
}

@keyframes securityPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.age-restriction {
    color: #dc143c;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-shadow: 0 0 15px rgba(220, 20, 60, 0.8);
    animation: ageWarning 2s ease-in-out infinite;
    margin-top: 10px;
    padding: 10px 20px;
    background: rgba(220, 20, 60, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(220, 20, 60, 0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@keyframes ageWarning {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.02);
    }
}

/* Platforms Section */
.platforms {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    padding: 0 20px;
}

.platform-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    background: rgba(139, 0, 139, 0.1);
    border: 1px solid rgba(139, 0, 139, 0.3);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 60px;
}

.platform-item:hover {
    background: rgba(139, 0, 139, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 0, 139, 0.4);
}

.platform-icon {
    font-size: 18px;
    margin-bottom: 4px;
    filter: drop-shadow(0 0 6px rgba(139, 0, 139, 0.6));
}

.platform-text {
    font-size: 10px;
    color: #a0a0a0;
    font-weight: 300;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.2px;
    opacity: 0.8;
}

/* Mobile-first responsive design */
@media (max-width: 480px) {
    body {
        padding: 8px;
        height: auto;
        min-height: 100vh;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        align-items: flex-start;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(25px);
    }
    
    .container {
        max-width: 380px;
        padding: 0;
        overflow: visible;
    }
    
    .app-card {
        padding: 25px 20px;
        border-radius: 20px;
        width: 100%;
        overflow: visible;
        border: none;
        box-shadow: none;
    }
    
    .app-title {
        font-size: 26px;
        margin-bottom: 15px;
    }
    
    .icon-placeholder {
        width: 75px;
        height: 75px;
        font-size: 38px;
    }
    
    .app-description {
        padding: 20px 18px;
        margin-bottom: 25px;
    }
    
    .app-description p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .install-btn {
        font-size: 18px;
        padding: 20px 28px;
        min-height: 58px;
        letter-spacing: 1px;
        border-radius: 16px;
        /* Auto-glow on mobile without hover */
        animation: mobileAutoGlow 3s ease-in-out infinite, backgroundFlow 5s linear infinite;
        box-shadow: 
            0 10px 25px rgba(255, 215, 0, 0.6),
            0 0 25px rgba(255, 140, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    
    .install-icon {
        font-size: 19px;
    }
    
    
    .game-description-text {
        margin-top: 20px;
        padding: 0 15px;
    }
    
    .description-title {
        font-size: 14px;
        margin-bottom: 12px;
        letter-spacing: 0.3px;
    }
    
    .description-content {
        font-size: 12px;
        line-height: 1.5;
        max-width: 100%;
    }
    
    .stat-item, .rating {
        padding: 6px 14px;
        font-size: 13px;
    }
    
    .version-size {
        font-size: 10px;
    }
}

@keyframes mobileAutoGlow {
    0%, 100% { 
        box-shadow: 
            0 10px 25px rgba(220, 20, 60, 0.6),
            0 0 25px rgba(139, 0, 139, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        transform: scale(1);
    }
    50% { 
        box-shadow: 
            0 15px 35px rgba(220, 20, 60, 0.8),
            0 0 35px rgba(139, 0, 139, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
        transform: scale(1.01);
    }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
    .container {
        max-width: 320px;
    }
    
    .app-card {
        padding: 20px 15px;
    }
    
    .app-title {
        font-size: 24px;
    }
    
    .icon-placeholder {
        width: 70px;
        height: 70px;
        font-size: 35px;
    }
    
    .download-btn {
        font-size: 15px;
        padding: 16px 20px;
        min-height: 52px;
    }
}

/* Landscape orientation for mobile */
@media (max-height: 600px) and (orientation: landscape) {
    body {
        padding: 10px;
    }
    
    .app-card {
        padding: 20px;
    }
    
    .app-header {
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .app-icon {
        margin-bottom: 0;
    }
    
    .app-title {
        font-size: 20px;
        margin-bottom: 1px;
    }
    
    .app-copyright {
        font-size: 11px;
        margin-bottom: 0px;
    }
    
    .app-purchases {
        font-size: 11px;
    }
    
    .icon-placeholder {
        width: 65px;
        height: 65px;
        font-size: 32px;
    }
    
    .app-header {
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .app-title {
        font-size: 18px;
        margin-bottom: 1px;
    }
    
    .app-copyright {
        font-size: 10px;
        margin-bottom: 0px;
    }
    
    .app-purchases {
        font-size: 10px;
    }
    
    .app-description {
        margin-bottom: 20px;
        padding: 15px;
    }
    
    .stats {
        gap: 8px;
    }
}

/* Loading animation for install button */
.install-btn.loading {
    position: relative;
    color: transparent;
}

.install-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Video Section Styles */
.video-section {
    margin-top: 25px;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    border: none;
    position: relative;
    overflow: hidden;
}


.video-container {
    position: relative;
    width: 100%;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
    border-radius: 2px 0 0 0;
}

.video-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    border-right: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
    border-radius: 0 0 2px 0;
}

.game-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: transparent;
    cursor: pointer;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.video-play-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.video-play-button.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.8);
}

.video-play-button:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.play-icon {
    color: white;
    font-size: 16px;
    margin-left: 2px;
}


/* Video loading state */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ff1493;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #ff1493;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Integrated Screenshots Gallery - No borders, full width */
.screenshots-section-integrated {
    margin: 20px 0;
    width: 100%;
    position: relative;
}

.gallery-container-integrated {
    position: relative;
    width: 100%;
}

.gallery-wrapper-integrated {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    border-radius: 0;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.gallery-wrapper-integrated:active {
    cursor: grabbing;
}

.gallery-slider-integrated {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    /* Enhanced mobile performance */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

.gallery-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-slide.fade-out {
    opacity: 0.7;
    transform: scale(0.98);
}

.gallery-slide.fade-in {
    opacity: 1;
    transform: scale(1);
}

.gallery-slide img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border-radius: 12px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    filter: brightness(1.05) contrast(1.1) saturate(1.1);
    display: block;
    margin: 0 auto;
}

.gallery-slide:hover img {
    transform: scale(1.02) translateY(-1px);
    box-shadow: 
        0 10px 35px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        0 0 15px rgba(255, 255, 255, 0.1);
    filter: brightness(1.08) contrast(1.12) saturate(1.15);
}

.gallery-slide {
    position: relative;
    overflow: hidden;
}

.gallery-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.gallery-slide:hover::before {
    opacity: 1;
}

.gallery-dots-integrated {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
}

.gallery-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
}

.gallery-dot::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: -1;
}

.gallery-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.gallery-dot:hover::before {
    opacity: 0.2;
}

.gallery-dot.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.gallery-dot.active::before {
    opacity: 0.3;
}

/* Gallery loading animation */
.gallery-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 320px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
    gap: 15px;
}

.gallery-loading::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.gallery-loading::after {
    content: 'Loading screenshots...';
    font-size: 12px;
    opacity: 0.7;
    animation: pulse 2s ease-in-out infinite;
}

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

/* Detailed Ratings Section */
.detailed-ratings {
    margin-top: 40px;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    border: none;
    position: relative;
    overflow: visible;
}


.ratings-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 0 auto;
}

.rating-circle {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(15px);
    animation: liquidGlass 4s ease-in-out 3;
    overflow: hidden;
}

.rating-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: liquidShine 3s ease-in-out 3;
    z-index: 1;
}

.rating-circle::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.3));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rating-progress {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all 0.3s ease;
}

.rating-circle:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
}

.rating-circle:hover::after {
    opacity: 1;
}

.rating-number {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 2px;
}

.rating-label {
    font-family: 'Poppins', sans-serif;
    font-size: 9px;
    font-weight: 500;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    opacity: 0.8;
}


.rating-circle.animate-in {
    animation: slideInUp 0.6s ease-out forwards;
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes liquidGlass {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
        backdrop-filter: blur(15px);
    }
    50% {
        transform: scale(1.01);
        filter: brightness(1.05);
        backdrop-filter: blur(20px);
    }
}

@keyframes liquidShine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}


/* Comments Section */
.comments-section {
    margin-top: 40px;
    padding: 0;
    background: transparent;
    overflow: hidden;
}

.comments-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask: linear-gradient(90deg, transparent 0%, black 20%, black 80%, transparent 100%);
    -webkit-mask: linear-gradient(90deg, transparent 0%, black 20%, black 80%, transparent 100%);
}

.comments-track {
    display: flex;
    gap: 20px;
    animation: scrollComments 50s linear infinite;
    width: max-content;
    will-change: transform;
}

.comment-item {
    flex-shrink: 0;
    width: 280px;
    background: transparent;
    border-radius: 12px;
    padding: 15px;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.comment-item:hover {
    transform: translateY(-2px);
    border-bottom-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.comment-avatar {
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
}

.comment-content {
    text-align: center;
}

.comment-name {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.comment-text {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #e0e0e0;
    line-height: 1.4;
    margin-bottom: 8px;
    opacity: 0.9;
}

.comment-rating {
    font-size: 12px;
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

@keyframes scrollComments {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Footer Section */
.footer-section {
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    text-align: center;
    max-width: 100%;
}

.footer-text {
    margin-bottom: 15px;
}

.footer-text p {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: #a0a0a0;
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 5px;
    opacity: 0.7;
}

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

.footer-links span {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    color: #ffffff;
    font-weight: 400;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.footer-links span:hover {
    opacity: 0.9;
}

/* Game Description Text */
.game-description-text {
    margin-top: 25px;
    text-align: center;
    padding: 0 20px;
}

.description-title {
    font-family: 'Outfit', 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.3;
    letter-spacing: 0.5px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.description-content {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #b0b0b0;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 500px;
    letter-spacing: 0.2px;
    opacity: 0.9;
}

/* Mobile optimizations for video and gallery */
@media (max-width: 480px) {
    .video-section {
        margin-top: 20px;
        padding: 15px;
    }
    
    .video-play-button {
        width: 45px;
        height: 45px;
    }
    
    .play-icon {
        font-size: 15px;
    }
    
    
    .video-wrapper {
        padding-bottom: 56.25%; /* Keep 16:9 ratio */
        border-radius: 6px;
    }
    
    .video-wrapper::before,
    .video-wrapper::after {
        width: 15px;
        height: 15px;
        border-width: 1.5px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .play-icon {
        font-size: 24px;
    }
    
    .video-info h4 {
        font-size: 16px;
    }
    
    .video-info p {
        font-size: 12px;
    }
    
    .screenshots-section {
        margin-top: 20px;
        padding: 15px;
    }
    
    .gallery-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .gallery-wrapper-integrated {
        height: 270px;
        /* Enhanced mobile gallery performance */
        -webkit-overflow-scrolling: touch;
    }
    
    .gallery-slider-integrated {
        /* Ultra-smooth mobile transitions */
        transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000;
        perspective: 1000;
        /* Hardware acceleration */
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
    }
    
    .gallery-slide {
        /* Smooth image rendering */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .gallery-slide img {
        /* Optimized image rendering */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: optimize-contrast;
    }
    
    .gallery-dot {
        width: 8px;
        height: 8px;
        /* Smooth dot transitions */
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .gallery-controls {
        margin-top: 12px;
    }
}

@media (max-width: 360px) {
    .video-wrapper {
        padding-bottom: 56.25%; /* Keep 16:9 ratio */
        border-radius: 5px;
    }
    
    .video-play-button {
        width: 40px;
        height: 40px;
    }
    
    .play-icon {
        font-size: 14px;
    }
    
    .video-wrapper::before,
    .video-wrapper::after {
        width: 12px;
        height: 12px;
        border-width: 1px;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }
    
    .play-icon {
        font-size: 20px;
    }
    
    .video-info h4 {
        font-size: 14px;
    }
    
    .video-info p {
        font-size: 11px;
    }
    
    .gallery-wrapper-integrated {
        height: 240px;
    }
    
    .game-description-text {
        margin-top: 18px;
        padding: 0 12px;
    }
    
    .description-title {
        font-size: 13px;
        margin-bottom: 10px;
        letter-spacing: 0.2px;
    }
    
    .description-content {
        font-size: 11px;
        line-height: 1.4;
    }
    
    .detailed-ratings {
        margin-top: 35px;
        padding: 0;
    }
    
    .comments-section {
        margin-top: 35px;
    }
    
    .comment-item {
        width: 250px;
        padding: 12px;
    }
    
    .comment-name {
        font-size: 13px;
    }
    
    .comment-text {
        font-size: 11px;
    }
    
    .comment-rating {
        font-size: 11px;
    }
    
    
    .ratings-container {
        gap: 12px;
    }
    
    .rating-circle {
        width: 60px;
        height: 60px;
    }
    
    .rating-number {
        font-size: 14px;
    }
    
    .rating-label {
        font-size: 8px;
    }
    
    .footer-section {
        margin-top: 20px;
        padding: 15px 0;
    }
    
    .footer-text p {
        font-size: 10px;
    }
    
    .footer-links {
        gap: 15px;
    }
    
    .footer-links span {
        font-size: 9px;
    }
}

/* AI Character Design Modal Styles */
.ai-design-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a1a 50%, #0a0a1a 100%);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    opacity: 1;
    transition: opacity 0.5s ease;
    overflow-y: auto;
}

.ai-design-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.ai-design-content {
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.95) 0%, rgba(20, 10, 25, 0.92) 100%);
    backdrop-filter: blur(40px) saturate(180%);
    border-radius: clamp(15px, 3vw, 25px);
    padding: var(--space-md) var(--space-lg);
    max-width: clamp(320px, 95vw, 1000px);
    width: 95%;
    max-height: 95vh;
    overflow-y: auto;
    overflow-x: visible;
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: none;
    position: relative;
    box-sizing: border-box;
}

.ai-design-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--pink-soft), transparent);
}

/* Header Section */
.ai-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid rgba(255, 20, 147, 0.2);
}

.ai-logo {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: var(--fs-lg);
    font-weight: 800;
    background: linear-gradient(135deg, #ff1493, #ff69b4, #ff1493);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 20, 147, 0.5);
}

.hamburger-menu {
    font-size: var(--icon-md);
    color: #ffffff;
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    min-width: var(--btn-min-width);
    min-height: var(--btn-min-height);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger-menu:hover {
    background: rgba(255, 20, 147, 0.2);
    transform: scale(1.1);
}

/* Title Section */
.ai-title-section {
    text-align: center;
    margin-bottom: var(--space-md);
}

.ai-main-title {
    font-family: 'Outfit', sans-serif;
    font-size: var(--fs-lg);
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.highlight-text {
    background: linear-gradient(135deg, #ff1493, #ff69b4, #ff1493);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 20, 147, 0.6);
}

/* Progress Bar */
.progress-section {
    margin-bottom: var(--space-md);
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 var(--space-xl);
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: calc(clamp(25px, 6vw, 32px) / 2);
    left: clamp(30px, 8vw, 40px);
    right: clamp(30px, 8vw, 40px);
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-number {
    width: clamp(25px, 6vw, 32px);
    height: clamp(25px, 6vw, 32px);
    border-radius: 50%;
    background: rgba(10, 10, 20, 0.95);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: var(--fs-xs);
    margin-bottom: var(--space-xs);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.step-label {
    font-family: 'Poppins', sans-serif;
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, var(--pink-soft), rgba(255, 105, 180, 0.6));
    border-color: var(--pink-soft);
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.3);
    transform: scale(1.1);
}

.progress-step.active .step-label {
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.progress-step:hover .step-number {
    transform: scale(1.05);
    background: rgba(255, 20, 147, 0.3);
}

/* Gender Selection */
.gender-selection {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: var(--space-sm);
    flex-wrap: nowrap;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    overflow: hidden;
    border: none;
    background: transparent;
}

.gender-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--gap-xs);
    padding: var(--space-sm) var(--space-lg);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex: 1;
    min-height: clamp(40px, 10vw, 50px);
    position: relative;
    will-change: transform, background-color;
}

/* دکمه زن - کرو سمت چپ بالا */
.gender-option:first-child {
    border-radius: var(--radius-md) 0 0 0;
}

/* دکمه ترنس - کرو سمت راست بالا */
.gender-option:last-child {
    border-radius: 0 var(--radius-md) 0 0;
}

.gender-option::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 20, 147, 0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gender-option:hover::before {
    opacity: 0;
}

.gender-option.active {
    background: rgba(255, 255, 255, 0.08);
    border-bottom: 2px solid var(--pink-soft);
}

.gender-option.active span {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.gender-icon {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.gender-option:hover .gender-icon {
    transform: scale(1.05);
}

.gender-option span {
    font-family: 'Poppins', sans-serif;
    font-size: var(--fs-md);
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Character Display */
.character-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-xs);
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.02);
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

    .character-column {
        display: flex;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
        overflow: visible;
        min-width: 0;
        flex: 1;
    }

.character-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 0 0 var(--radius-lg);
    padding: var(--space-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(20px);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    will-change: transform, opacity;
}

/* کارت سمت راست (Anime) - راست کرو، چپ صاف */
.character-card[data-style="anime"] {
    border-radius: 0 0 var(--radius-lg) 0;
}

.character-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.1), rgba(255, 105, 180, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.character-card:hover {
    border-color: rgba(255, 20, 147, 0.3);
    transform: translateY(-1px) scale(1.02);
}

.character-card.active {
    border-color: var(--pink-soft);
    border-width: 1px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 0 40px rgba(255, 20, 147, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.character-card.active::before {
    opacity: 1;
}

.character-card:not(.active) {
    opacity: 0.3;
}

.character-image {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    min-height: clamp(180px, 40vw, 280px);
    max-height: clamp(250px, 50vh, 350px);
    border-radius: 0 0 0 0;
    overflow: hidden;
    margin-bottom: var(--space-xs);
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.character-image img,
.character-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0 0 0 0;
    transition: all 0.3s ease;
    box-sizing: border-box;
    display: block;
}
    
/* Mobile specific fixes for character images */
@media (max-width: 768px) {
    .character-image img,
    .character-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        min-width: 0;
        max-width: 100%;
        display: block;
    }
}

/* تصویر کارت سمت راست (Anime) - راست کرو، چپ صاف */
.character-card[data-style="anime"] .character-image {
    border-radius: 0 0 0 0;
}

.character-card[data-style="anime"] .character-image img,
.character-card[data-style="anime"] .character-video {
    border-radius: 0 0 0 0;
}

.character-video {
    position: absolute;
    top: 0;
    left: 0;
    /* بهینه‌سازی برای لود سریع */
    image-rendering: optimizeSpeed;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    will-change: transform;
}

.character-card.active .character-image img,
.character-card.active .character-video {
    transform: scale(1);
}

.placeholder-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #ffffff;
}

.placeholder-icon {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: var(--space-md);
    opacity: 0.8;
}

.placeholder-text {
    font-family: 'Poppins', sans-serif;
    font-size: var(--fs-md);
    font-weight: 600;
    text-align: center;
    opacity: 0.9;
}

.style-button {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0 0 0 var(--radius-md);
    font-family: 'Poppins', sans-serif;
    font-size: var(--fs-md);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    min-height: var(--btn-min-height);
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
}

/* دکمه کارت سمت راست (Anime) - راست پایین کرو */
.character-card[data-style="anime"] .style-button {
    border-radius: 0 0 var(--radius-md) 0;
}

.style-button.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-bottom: 2px solid var(--pink-soft);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.style-button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: var(--gap-sm);
    margin-top: var(--space-sm);
}

.design-ai-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-xl);
    font-family: 'Outfit', sans-serif;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    backdrop-filter: blur(20px);
    min-height: var(--btn-min-height);
    min-width: var(--btn-min-width);
}

.design-ai-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--pink-border);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 20, 147, 0.15);
}

.btn-icon {
    font-size: var(--icon-sm);
}

.next-button {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.6), rgba(255, 105, 180, 0.6));
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-xl);
    font-family: 'Outfit', sans-serif;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 
        0 8px 32px rgba(255, 20, 147, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    min-height: var(--btn-min-height);
    min-width: var(--btn-min-width);
}

.next-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.next-button:hover::before {
    left: 100%;
}

.next-button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 40px rgba(255, 20, 147, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.7), rgba(255, 105, 180, 0.7));
}

.next-button:active {
    transform: translateY(-1px);
}

/* Tablet Responsive - Two columns with good spacing */
@media (min-width: 769px) and (max-width: 1024px) {
    .character-display {
        grid-template-columns: 1fr 1fr;
        gap: var(--gap-lg);
    }
}

/* Mobile Responsive - Full Height */
@media (max-width: 768px) {
    .ai-design-modal {
        padding: 0;
        align-items: stretch;
    }
    
    /* Ensure proper grid layout on mobile */
    .character-display {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: clamp(4px, 1vw, 8px);
        width: 100%;
        min-width: 0;
        overflow: visible;
    }
    
    /* Full height modal for mobile */
    .ai-design-content {
        padding: clamp(8px, 2vw, 12px);
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: clamp(8px, 2vw, 12px);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        box-sizing: border-box;
    }
    
    /* Make sections flex to fill space */
    .character-display {
        flex: 0 0 auto;
        display: grid;
        align-content: flex-start;
    }
    
    /* Smaller header */
    .ai-header {
        margin-bottom: clamp(6px, 1.5vw, 10px);
        padding-bottom: clamp(4px, 1vw, 6px);
    }
    
    .logo-text {
        font-size: clamp(1.1rem, 4vw, 1.4rem);
    }
    
    /* Compact title */
    .ai-title-section {
        margin-bottom: clamp(10px, 2.5vw, 16px);
    }
    
    .ai-main-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        font-weight: 800;
        text-shadow: 0 0 20px rgba(255, 20, 147, 0.3);
    }
    
    /* Smaller progress bar */
    .progress-section {
        margin-bottom: clamp(12px, 3vw, 18px);
    }
    
    .progress-bar {
        padding: 0 clamp(5px, 2vw, 10px);
        gap: clamp(12px, 3vw, 20px);
    }
    
    .progress-bar::before {
        top: calc(clamp(36px, 8vw, 48px) / 2);
        left: clamp(15px, 4vw, 25px);
        right: clamp(15px, 4vw, 25px);
    }
    
    .step-number {
        width: clamp(36px, 8vw, 48px);
        height: clamp(36px, 8vw, 48px);
        font-size: clamp(0.9rem, 2.8vw, 1.1rem);
        margin-bottom: clamp(4px, 1vw, 6px);
    }
    
    .step-label {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
        font-weight: 700;
    }
    
    /* Compact gender selection */
    .gender-selection {
        margin-bottom: clamp(4px, 1vw, 6px);
        padding: clamp(4px, 1vw, 6px) clamp(1px, 0.3vw, 2px);
        box-sizing: border-box;
    }
    
    .gender-option {
        padding: clamp(6px, 1.5vw, 8px) clamp(8px, 2vw, 14px);
        min-height: clamp(42px, 9vw, 52px);
        gap: clamp(3px, 1vw, 5px);
        flex: 1;
    }
    
    .gender-icon {
        font-size: clamp(1rem, 3.5vw, 1.3rem);
    }
    
    .gender-option span {
        font-size: clamp(0.85rem, 2.5vw, 1rem);
        font-weight: 700;
    }
    
    /* Two columns on mobile with smaller cards */
    .character-display {
        grid-template-columns: 1fr 1fr;
        gap: clamp(4px, 1vw, 8px);
        margin-bottom: 0;
        padding: clamp(8px, 2vw, 12px);
        box-sizing: border-box;
        border-bottom: 1px solid rgba(255, 20, 147, 0.3);
        width: 100%;
        overflow: visible;
        min-width: 0;
    }
    
    .character-column {
        display: flex;
        justify-content: center;
        width: 100%;
        min-width: 0;
        flex: 1;
        box-sizing: border-box;
        overflow: visible;
    }
    
    .character-card {
        padding: clamp(4px, 1vw, 6px);
        max-width: 100%;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        flex-shrink: 1;
        flex-grow: 1;
        align-self: stretch;
    }
    
    /* Auto height images on mobile */
    .character-image {
        height: auto;
        aspect-ratio: 9 / 16;
        min-height: clamp(160px, 35vh, 240px);
        max-height: clamp(220px, 45vh, 300px);
        margin-bottom: clamp(2px, 0.5vw, 4px);
        flex: 1;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
        box-sizing: border-box;
        align-self: stretch;
    }
    
    .placeholder-icon {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
        margin-bottom: clamp(2px, 0.5vw, 4px);
    }
    
    .placeholder-text {
        font-size: clamp(0.6rem, 1.5vw, 0.8rem);
    }
    
    .style-button {
        padding: clamp(3px, 0.8vw, 5px) clamp(4px, 1vw, 8px);
        font-size: clamp(0.8rem, 2.2vw, 1rem);
        min-height: clamp(28px, 5vw, 36px);
        font-weight: 700;
        margin-top: auto;
    }
    
    /* Compact action buttons */
    .action-buttons {
        gap: clamp(4px, 1vw, 8px);
        margin-top: clamp(12px, 3vw, 18px);
        margin-bottom: clamp(12px, 3vw, 18px);
        flex: 0 0 auto;
    }
    
    .design-ai-button,
    .next-button {
        padding: clamp(8px, 2vw, 12px) clamp(12px, 3vw, 18px);
        font-size: clamp(0.75rem, 2.2vw, 0.9rem);
        min-height: clamp(40px, 9vw, 50px);
        gap: clamp(3px, 1vw, 5px);
        font-weight: 700;
    }
    
    .next-button {
        background: linear-gradient(135deg, rgba(255, 20, 147, 0.8), rgba(255, 105, 180, 0.8));
        box-shadow: 0 8px 32px rgba(255, 20, 147, 0.4);
        transform: scale(1.05);
    }
    
    .btn-icon {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }
}


