/* Transform Lab - High-Tech Catchy Design */

/* ===== GLOBAL VIDEO FIX - Prevent Gray Background ===== */
/* Hide Android WebView play button overlays */
video::-webkit-media-controls-start-playback-button,
video::-webkit-media-controls-overlay-play-button {
    display: none !important;
    -webkit-appearance: none !important;
}

/* Force black background on ALL videos globally */
video {
    background: #000 !important;
    background-color: #000 !important;
    background-image: none !important;
}

/* CSS Variables */
:root {
    /* Colors */
    --primary-bg: #000000;
    --secondary-bg: #000000;
    --accent-bg: #0a0a0a;
    --card-bg: rgba(26, 26, 46, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.05);
    
    --primary-color: #667eea;
    --accent-color: #764ba2;
    --highlight-color: #f093fb;
    --success-color: #4ecdc4;
    --warning-color: #ffd93d;
    --danger-color: #ff6b6b;
    
    --text-primary: #ffffff;
    --text-secondary: #b8b8d4;
    --text-muted: #8b8ba7;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    --gradient-card: linear-gradient(145deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.8));
    
    /* Shadows */
    --shadow-light: 0 4px 20px rgba(102, 126, 234, 0.1);
    --shadow-medium: 0 8px 40px rgba(102, 126, 234, 0.2);
    --shadow-heavy: 0 20px 60px rgba(102, 126, 234, 0.3);
    --shadow-glow: 0 0 30px rgba(240, 147, 251, 0.4);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 4rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Force black background for system navigation bar */


html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    background: #000000 !important;
    background-color: #000000 !important;
    /* Extend background to safe areas */
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

body {
    font-family: var(--font-primary);
    background: #000000 !important;
    background-color: #000000 !important;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    /* Ensure background extends to bottom safe area */
    padding-bottom: env(safe-area-inset-bottom);
    padding-bottom: constant(safe-area-inset-bottom);
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    position: relative;
}

/* ========================================
   MASTER APP CONTAINER (1200px max on desktop)
   ======================================== */

.app-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
}

/* Desktop: Constrain entire app to 1200px */
@media (min-width: 769px) {
    .app-container {
        max-width: 1200px;
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
    }
}

/* Modern Animated Background (visible outside 1200px container on desktop) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(240, 147, 251, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(78, 205, 196, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    background-size: 200% 200%, 200% 200%, 200% 200%, 200% 200%, 100% 100%;
    animation: gradientShift 15s ease infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%, 100% 50%, 50% 0%, 25% 25%;
    }
    50% {
        background-position: 100% 50%, 0% 50%, 50% 100%, 75% 75%;
    }
}

/* Floating particles effect (only visible on wide screens) */
@media (min-width: 1240px) {
    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: 
            radial-gradient(circle, rgba(102, 126, 234, 0.6) 2px, transparent 2px),
            radial-gradient(circle, rgba(118, 75, 162, 0.5) 1.5px, transparent 1.5px),
            radial-gradient(circle, rgba(240, 147, 251, 0.4) 1px, transparent 1px);
        background-size: 60px 60px, 90px 90px, 120px 120px;
        background-position: 0 0, 30px 30px, 60px 60px;
        animation: particleFloat 40s linear infinite;
        z-index: 0;
        pointer-events: none;
        opacity: 0.5;
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
    }
    100% {
        transform: translateY(-100px) translateX(50px);
    }
}

/* Additional layer to force black behind navigation bar */

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 20, 40, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    border: 2px solid rgba(15, 20, 40, 0.5);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #f093fb 100%);
    box-shadow: 0 0 15px rgba(118, 75, 162, 0.8);
}

::-webkit-scrollbar-corner {
    background: rgba(15, 20, 40, 0.5);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #667eea rgba(15, 20, 40, 0.5);
}

/* Background Effects */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(102, 126, 234, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 8s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 8s;
}

.particle:nth-child(3) {
    top: 80%;
    left: 40%;
    animation-delay: 4s;
    animation-duration: 7s;
}

.particle:nth-child(4) {
    top: 30%;
    left: 70%;
    animation-delay: 1s;
    animation-duration: 9s;
}

.particle:nth-child(5) {
    top: 70%;
    left: 10%;
    animation-delay: 3s;
    animation-duration: 5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Container */
.container {
    margin: 0 auto;
    padding: var(--space-lg);
    position: relative;
    z-index: 1;
}

/* Header Section */
.header {
    text-align: center;
    margin-bottom: var(--space-xxl);
    padding: var(--space-xl) 0;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.logo-icon {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.main-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.1;
}

.title-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-section {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-lg);
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-light);
}

.welcome-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
}

.highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Search Section */
.search-section {
    margin-bottom: var(--space-xxl);
}

.search-row {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.search-container {
    flex: 1;
    max-width: 500px;
    min-width: 280px;
    position: relative;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: var(--space-md) var(--space-md) var(--space-md) 3.5rem;
    background: var(--card-bg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: var(--font-primary);
    transition: all var(--transition-medium);
    backdrop-filter: blur(20px);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    background: rgba(26, 26, 46, 0.95);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    display: none;
}

/* Category Dropdown */
.category-dropdown-wrapper {
    position: relative;
    min-width: 200px;
}

.category-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    background: var(--card-bg);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-lg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all var(--transition-medium);
    width: 100%;
    min-height: 52px;
}

.category-dropdown-trigger:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-light);
}

.category-dropdown-trigger.active {
    border-color: var(--highlight-color);
    box-shadow: var(--shadow-glow);
}

.selected-category-text {
    flex: 1;
    text-align: left;
    font-weight: 500;
}

.dropdown-arrow {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: transform var(--transition-medium);
}

.category-dropdown-trigger.active .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--highlight-color);
}

.category-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: var(--space-xs);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-heavy);
    max-height: 400px;
    overflow-y: auto;
}

.category-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-badge {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: var(--space-xs);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-badge:last-child {
    margin-bottom: 0;
}

.category-badge:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(4px);
}

.category-badge.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-light);
}

.category-badge.active:hover {
    transform: translateX(4px) scale(1.02);
    box-shadow: var(--shadow-medium);
}

.category-badge i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.category-badge.active i {
    color: white;
}

.category-badge span {
    font-weight: 500;
    font-size: 0.95rem;
}

.category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-badge:hover::before {
    left: 100%;
}

/* Themes Section */
.themes-section {
    margin-bottom: var(--space-xxl);
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-sm);
    padding: var(--space-xs);
}

/* Big screens: Show exactly 4 badges per row */
@media (min-width: 1200px) {
    .themes-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-md);
    }
}

/* Transform Badge */
.transform-badge {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all var(--transition-medium);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.transform-badge:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.transform-badge.selected {
    border-color: var(--highlight-color);
    box-shadow: var(--shadow-glow);
    background: linear-gradient(145deg, rgba(240, 147, 251, 0.1), rgba(26, 26, 46, 0.9));
}

.transform-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.transform-badge:hover::before {
    left: 100%;
}

.badge-image {
    position: relative;
    width: 100%;
    height: 40px; /* Half the previous size */
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-xs);
}

.badge-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.badge-icon-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-sm);
    text-align: center;
}

.badge-icon-placeholder .placeholder-title {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.theme-badge:hover .badge-image img {
    transform: scale(1.05);
}

.badge-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-medium);
    padding: var(--space-sm);
    text-align: center;
}

.theme-badge:hover .badge-overlay {
    opacity: 1;
}

.badge-overlay .overlay-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(102, 126, 234, 0.3);
    line-height: 1.2;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.theme-badge {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(102, 126, 234, 0.12));
    border-radius: var(--radius-md);
    padding: var(--space-xs);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium);
    backdrop-filter: blur(12px);
    margin-bottom: 0; /* Remove extra margin */
    touch-action: manipulation; /* Improve touch responsiveness */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on iOS */
}

.theme-badge::before {
    content: '';
    position: absolute;
    top: -120%;
    left: -120%;
    width: 240%;
    height: 240%;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.25), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-medium), transform var(--transition-medium);
}

.theme-badge::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.25);
    pointer-events: none;
}

.theme-badge:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.35);
    border-color: rgba(102, 126, 234, 0.6);
}

.theme-badge:hover::before {
    opacity: 1;
    transform: rotate(8deg);
}

.theme-badge:hover .badge-image img {
    transform: scale(1.08);
}

.theme-badge:hover .badge-overlay {
    opacity: 1;
}

.badge-content {
    text-align: center;
}


.badge-description {
    color: var(--text-secondary);
    font-size: 0.65rem;
    margin-bottom: 0;
    line-height: 1.1;
}

/* Upload Section */
.upload-section {
    background: var(--glass-bg);
    border-radius: 0;
    padding: var(--space-md);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-lg);
    animation: slideUp 0.5s ease;
}

.upload-section.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upload-container {
    max-width: 600px;
    margin: 0 auto;
}

.selected-theme-info {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.selected-theme-display {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    text-align: left;
}

.theme-preview {
    position: relative;
    width: 80px;
    height: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.theme-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.theme-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.theme-details h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: var(--space-xs);
}

.theme-details p {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
}

.theme-meta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

.meta-item i {
    color: var(--primary-color);
}

.file-upload-area {
    border: 2px dashed rgba(102, 126, 234, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-xxl);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-medium);
    background: rgba(102, 126, 234, 0.02);
    position: relative;
    overflow: hidden;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
    box-shadow: var(--shadow-light);
}

.file-upload-area.dragover {
    border-color: var(--highlight-color);
    background: rgba(240, 147, 251, 0.1);
    box-shadow: var(--shadow-glow);
}

.file-upload-area.has-file {
    border-color: var(--success-color);
    background: rgba(78, 205, 196, 0.05);
    padding: 0;
}

.file-upload-area.has-file:hover {
    border-color: var(--success-color);
    background: rgba(78, 205, 196, 0.08);
    box-shadow: var(--shadow-medium);
}

.upload-content {
    position: relative;
    z-index: 2;
}

.file-preview-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
    justify-content: center;
    width: 100%;
}

.file-preview-container {
    width: 100%;
    max-width: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    background: var(--card-bg);
}

.file-preview-element {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--primary-bg);
}

.file-preview-element img,
.file-preview-element video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.file-preview-element video,
.file-preview-video {
    background-color: #000 !important;
    background: #000 !important;
    background-image: none !important;
}

/* Force black background on file preview container */
.file-preview-element {
    background: #000 !important;
    background-color: #000 !important;
}

.file-preview-info {
    text-align: center;
    padding: var(--space-sm);
}

.file-preview-info h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    word-break: break-all;
}

.file-preview-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: var(--space-md);
}

.upload-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.upload-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.supported-formats {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Preview Area */
.preview-area {
    margin: var(--space-xl) 0;
    padding: var(--space-lg);
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-content {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.preview-image {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--accent-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-image img,
.preview-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-image video {
    background-color: #000 !important;
}

.preview-info h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.preview-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Transform Controls */
.transform-controls {
    
    bottom: calc(68px + env(safe-area-inset-bottom)); /* Position just above bottom nav */
    left: 0;
    right: 0;
    z-index: 10001; /* Below modal but above bottom nav */
    padding: 8px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.98), rgba(0, 0, 0, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.transform-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5), 
                0 8px 40px rgba(139, 92, 246, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    letter-spacing: 0.5px;
}

.transform-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.7), 
                0 12px 60px rgba(139, 92, 246, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.transform-btn:active {
    transform: translateY(0) scale(0.98);
}

.transform-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.transform-btn i {
    font-size: 1.2rem;
}

.transform-btn span {
    font-weight: 700;
}

.transform-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 ease;
}

.transform-btn:hover::before {
    left: 100%;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--gradient-card);
    border-radius: 0;
    padding: var(--space-xxl);
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transform: scale(0.9);
    transition: transform var(--transition-medium);
    position: relative;
}

.modal-container.modal-large {
    max-width: 95vw;
    width: 800px;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

/* Mobile Modal Styles - Force Full Screen */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 0 !important;
        align-items: stretch !important;
        justify-content: stretch !important;
        background: rgba(0, 0, 0, 0.98);
    }
    
    .modal-container {
        width: calc(100vw - 40px) !important;
        height: calc(100vh - 40px) !important;
        max-width: calc(100vw - 40px) !important;
        max-height: calc(100vh - 40px) !important;
        border-radius: var(--radius-lg) !important;
        margin: 20px !important;
        padding: 20px !important;
        transform: none !important;
        display: flex;
        flex-direction: column;
    }
    
    .modal-container.modal-large {
        width: calc(100vw - 40px) !important;
        height: calc(100vh - 40px) !important;
        max-width: calc(100vw - 40px) !important;
        max-height: calc(100vh - 40px) !important;
        border-radius: var(--radius-lg) !important;
        margin: 20px !important;
    }
    
    .mobile-fullscreen {
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 20px !important;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.modal-header h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Modal Header */
@media (max-width: 768px) {
    .modal-header {
        position: sticky;
        top: 0;

        z-index: 10;
        margin-bottom: var(--space-lg);
        padding: var(--space-md) 0 var(--space-md) 0;
        border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    }

    /* Auth modal specific mobile styles */
    .auth-modal {
        max-width: calc(100vw - 60px) !important;
        width: calc(100vw - 60px) !important;
        margin: 0 auto !important;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    .modal-close {
        min-width: 48px;
        min-height: 48px;
        font-size: 1.8rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-lg);
    }
}

/* Result Comparison */
.result-comparison {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.comparison-item {
    flex: 1;
    text-align: center;
}

.comparison-item h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    font-size: 1.2rem;
}

.image-container {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000 !important;
    background-color: #000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-container img,
.image-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-container video {
    background-color: #000 !important;
    background: #000 !important;
    background-image: none !important;
}

.comparison-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

/* No Results Message */
.no-results {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xxl);
    color: var(--text-secondary);
}

.no-results-content {
    text-align: center;
}

.no-results-content i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.no-results-content h3 {
    margin: 0 0 var(--space-sm) 0;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.no-results-content p {
    margin: 0;
    font-size: 1rem;
}

/* Upload Modal Specific Styles */
.selected-theme-info,
.selected-transform-info {
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

/* Modal Content */
.modal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobile Modal Content */
@media (max-width: 768px) {
    .modal-content {
        flex: 1;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    /* Auth modal content mobile styles */
    .auth-modal .modal-content {
        padding: var(--space-md) !important;
    }

    /* Mobile checkbox styles */
    .checkbox-wrapper {
        font-size: 16px;
        gap: 12px;
    }

    .checkmark {
        width: 20px;
        height: 20px;
    }

    .checkbox-wrapper input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }
    
    .selected-theme-info,
    .selected-transform-info {
        margin-bottom: var(--space-md);
        padding: var(--space-sm);
        border-radius: var(--radius-sm);
    }
}

.selected-theme-display {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.theme-preview {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.theme-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.theme-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.theme-details h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.theme-details p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
    display: none; /* Hide description to keep it one row */
}

.theme-meta {
    display: none; /* Hide meta info to keep it simple and small */
}

.theme-meta .meta-item {
    color: var(--text-muted);
}

.theme-meta .meta-item i {
    margin-right: var(--space-xs);
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-medium);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.btn-primary {
    background: var(--gradient-success);
    color: white;
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    color: var(--text-primary);
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

/* Loading Overlay */
.loading-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: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    text-align: center;
    max-width: 400px;
    padding: var(--space-xxl);
}

/* Loading Spinner */
.loading-spinner {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-xl);
}

.spinner-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.spinner-ring:nth-child(1) {
    border-top-color: var(--primary-color);
    animation-duration: 2s;
}

.spinner-ring:nth-child(2) {
    border-right-color: var(--highlight-color);
    animation-duration: 3s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    border-bottom-color: var(--success-color);
    animation-duration: 1.5s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.loading-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

/* Loading Close Button */
.loading-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Loading Progress Bar */
.progress-container {
    width: 100%;
    max-width: 300px;
    margin: var(--space-lg) auto 0;
    position: relative;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
    background-size: 200% 100%;
    width: 0%;
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 20px rgba(245, 158, 11, 0.6),
        0 0 40px rgba(245, 158, 11, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: gradientShift 3s ease infinite;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

.progress-text {
    position: absolute;
    top: -25px;
    right: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes shimmer {
    0% {
        left: -50%;
    }
    100% {
        left: 150%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: var(--space-md);
    }
    
    .themes-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .search-row {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .category-dropdown-wrapper {
        min-width: 100%;
    }
    
    .result-comparison {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .comparison-arrow {
        transform: rotate(90deg);
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .upload-section {
        padding: var(--space-lg);
    }
    
    .main-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }
    
    .welcome-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .logo-section {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .logo-icon {
        font-size: 2rem;
    }
    
    .category-selector-wrapper {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
    
    .badge-tags {
        justify-content: center;
    }
    
    .preview-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --primary-color: #4d9fff;
        --highlight-color: #ff4da6;
    }
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-xxl);
    color: var(--text-secondary);
}

.no-results-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-results-content i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    opacity: 0.5;
}

.no-results-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.no-results-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Transform Button States */
.transform-btn.enabled {
    background: var(--gradient-success);
    box-shadow: var(--shadow-glow);
}

.transform-btn.enabled:hover {
    box-shadow: 0 20px 60px rgba(78, 205, 196, 0.4);
}

/* Additional Polish */
.themes-grid {
    position: relative;
    overflow-x: hidden;
}

.gallery-section {
    display: none;
    padding: var(--space-lg);
    padding-bottom: calc(80px + var(--space-lg) + env(safe-area-inset-bottom));
    animation: fadeIn 0.3s ease;
}

.gallery-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.gallery-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.gallery-controls {
    display: flex;
    gap: var(--space-sm);
}

.view-toggle {
    display: inline-flex;
    background: rgba(15, 23, 42, 0.65);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.view-toggle .view-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 0.9rem;
    cursor: pointer;
    font-size: 1rem;
    transition: all var(--transition-medium);
}

.view-toggle .view-btn.active {
    color: var(--text-primary);
    background: rgba(102, 126, 234, 0.2);
}

.gallery-filters {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.gallery-filter {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.gallery-filter.active {
    background: rgba(102, 126, 234, 0.18);
    border-color: rgba(102, 126, 234, 0.45);
    color: var(--text-primary);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-md);
    position: relative;
    min-height: 200px;
}

.gallery-grid.list-view {
    display: flex;
    flex-direction: column;
}

.gallery-load-more {
    margin: var(--space-lg) auto 0;
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(102, 126, 234, 0.45);
    background: rgba(102, 126, 234, 0.15);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.gallery-load-more:hover {
    background: rgba(102, 126, 234, 0.25);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.gallery-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.gallery-load-more i {
    font-size: 1rem;
}

.gallery-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xl) 0;
    color: var(--text-secondary);
}

.gallery-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium);
    position: relative;
}

.gallery-grid.list-view .gallery-card {
    flex-direction: row;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.45);
    border-color: rgba(102, 126, 234, 0.45);
}

.gallery-media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.gallery-grid.list-view .gallery-media {
    width: 120px;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
}

.gallery-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Video Thumbnail Container */
.video-thumbnail-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    background: #000 !important;
}

.video-thumbnail-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000 !important;
    /* KILL GRAY BACKGROUND - Android WebView fix */
    background-color: #000 !important;
    background-image: none !important;
    position: relative;
    z-index: 1;
    /* Smooth fade-in when video loads */
    animation: videoFadeIn 0.5s ease-in;
}

/* Smooth video fade-in animation */
@keyframes videoFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

  

/* Cover any gray flash with black overlay during video load */
.video-thumbnail-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000 !important;
    z-index: 0;
    pointer-events: none;
}

/* NUCLEAR OPTION - Kill gray on ALL parent containers */
.gallery-media {
    background: #000 !important;
    background-color: #000 !important;
    background-image: none !important;
}

.gallery-card[data-type="video"] .gallery-media,
.gallery-card[data-type="video"] {
    background: #000 !important;
    background-color: #000 !important;
}

/* Force black during ALL video loading states */
video[poster],
video:empty,
video:-moz-loading,
video:-webkit-loading {
    background: #000 !important;
    background-color: #000 !important;
    background-image: none !important;
}

/* Hide ALL default video controls for gallery thumbnails */
.video-thumbnail-container video::-webkit-media-controls,
.video-thumbnail-container video::-webkit-media-controls-enclosure,
.video-thumbnail-container video::-webkit-media-controls-panel,
.video-thumbnail-container video::-webkit-media-controls-play-button,
.video-thumbnail-container video::-webkit-media-controls-start-playback-button,
.video-thumbnail-container video::-webkit-media-controls-overlay-play-button,
.video-thumbnail-container video::-webkit-media-controls-overlay-enclosure {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    -webkit-appearance: none !important;
}

.video-thumbnail-container video::-moz-media-controls {
    display: none !important;
}

.video-thumbnail-container video[poster] {
    object-fit: cover;
}

.video-thumbnail-container video::before,
.video-thumbnail-container video::after {
    display: none !important;
}

/* Custom Play Button Overlay - Hidden for autoplaying videos */
.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: transparent;
    transition: opacity 0.3s ease;
    z-index: 2;
    opacity: 0;
}

/* Show play button only on hover for paused videos */
.gallery-card:hover .video-play-overlay {
    opacity: 0;
}

.video-play-button {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.video-play-button svg {
    width: 20px;
    height: 20px;
    margin-left: 2px;
}

.gallery-card:hover .video-play-button {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

/* Media Placeholders */
.image-placeholder,
.video-placeholder,
.audio-placeholder,
.file-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.3);
}

.image-placeholder i,
.video-placeholder i,
.audio-placeholder i,
.file-placeholder i {
    font-size: 48px;
}

.gallery-media .media-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.75);
    color: var(--text-primary);
    font-size: 0.7rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 2;
}

.gallery-info {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.gallery-grid.list-view .gallery-info {
    padding: 0;
    flex: 1;
}

.gallery-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.gallery-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.gallery-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: var(--space-xs);
    font-size: 0.75rem;
    color: var(--text-muted);
}


.gallery-empty-state {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.gallery-empty-state i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.gallery-empty-state h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.gallery-empty-state p {
    color: var(--text-secondary);
    max-width: 260px;
}

.gallery-empty-state .btn-primary {
    margin-top: var(--space-sm);
}

.gallery-grid .empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.gallery-grid .empty-state i {
    font-size: 2rem;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .gallery-section {
        padding: var(--space-xs);
    }

    .gallery-controls {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .gallery-grid.list-view .gallery-card {
        flex-direction: column;
        align-items: stretch;
    }

    .gallery-grid.list-view .gallery-media {
        width: 100%;
    }
}

/* Removed themes-grid::before pseudo element */

/* Smooth transitions for all interactive elements */
.theme-badge,
.search-input,
.category-selector-wrapper,
.file-upload-area,
.transform-btn,
.modal-container {
    will-change: transform;
}

/* Enhanced focus states */
.theme-badge:focus-visible {
    outline: 2px solid var(--highlight-color);
    outline-offset: 4px;
}

.search-input:focus-visible,
.category-selector:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .bg-effects,
    .floating-particles,
    .loading-overlay {
        display: none;
    }

    .modal-overlay {
        display: none !important;
    }
    
    body {
        background: #000000;
        color: #ffffff;
    }
    
    .themes-grid {
        display: block;
    }
    
    .theme-badge {
        break-inside: avoid;
        margin-bottom: var(--space-md);
    }
}

/* Modal Base Styles - Ensure modals display properly */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.modal-content {
    position: relative;
   
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10000;
}

.auth-modal {
    max-width: 450px;
    width: 100%;
}

/* Desktop: Modals stay within app-container automatically */
@media (min-width: 769px) {
    .modal-overlay,
    .modal-overlay-credits,
    .modal-overlay-buy-credits {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 20px !important;
    }
    
    /* Ensure modal containers respect the constraint */
    .modal-container {
        max-width: 800px;
        width: calc(100% - 40px);
        margin: 0 auto;
    }
    
    .auth-modal {
        max-width: 450px;
        width: 100%;
    }
    
    .credits-modal {
        max-width: 600px;
        width: 90%;
    }
    
    .buy-credits-modal-simple {
        max-width: 900px;
        width: 95%;
    }
    
    .transform-action-modal,
    .transform-action-modal-simple {
        max-width: 520px;
        width: 90%;
    }
}

/* Modal Header Styles */
.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 24px;
}

.modal-header p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-full {
    width: 100%;
}

/* Divider */
.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider span {
    background: var(--secondary-bg);
    padding: 0 15px;
    color: var(--text-muted);
    font-size: 12px;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* Transform Action Modal Styles */
.transform-action-modal {
    max-width: 520px;
    text-align: center;
}

.transform-action-modal .modal-header {
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

/* Simplified Transform Action Modal Styles */
.transform-action-modal-simple {
    max-width: 440px;
    width: 90%;
    text-align: center;
    background: rgb(5 84 91 / 95%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    padding: 40px 32px;
    position: relative;
}

.transform-action-modal-simple .modal-header {
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 32px;
    position: relative;
}

.transform-action-modal-simple .modal-close {
    position: absolute;
    top: -16px;
    right: -16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.transform-action-modal-simple .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: scale(1.1);
}

.transform-action-modal-simple .transform-action-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 28px;
    color: white;
    animation: pulse-glow 2s infinite;
}

.transform-action-modal-simple h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.transform-action-modal-simple .hero-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}

/* Simple Features Grid */
.simple-features {
    display: flex;
    justify-content: space-around;
    gap: 16px;
    margin: 32px 0;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    flex: 1;
}

.feature-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.feature-item span {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

/* Auth Actions Simple */
.auth-actions-simple {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.btn-signup-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-signup-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.btn-signup-primary::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;
}

.btn-signup-primary:hover::before {
    left: 100%;
}

.btn-login-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.3);
}

.simple-benefits {
    margin-top: 16px;
    text-align: center;
}

.simple-benefits small {
    color: var(--text-muted);
    font-size: 12px;
    opacity: 0.8;
}

.transform-action-icon {
    width: 90px;
    height: 90px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-glow);
    animation: pulse-glow 2s infinite;
}

.transform-action-icon i {
    font-size: 36px;
    color: white;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: var(--shadow-glow);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 40px rgba(240, 147, 251, 0.6);
        transform: scale(1.05);
    }
}

.transform-action-modal h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.transform-action-modal .modal-header p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

.transform-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 35px;
    padding: 25px;
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.showcase-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.showcase-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}

.showcase-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.showcase-icon i {
    font-size: 20px;
    color: white;
}

.showcase-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.showcase-item p {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
}

.auth-actions {
    margin-bottom: 30px;
}

.auth-actions .btn {
    margin-bottom: 15px;
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::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 ease;
}

.btn-glow:hover::before {
    left: 100%;
}

.transform-stats {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-item strong {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-item span {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Mobile responsiveness for transform action modal */
@media (max-width: 600px) {
    .transform-action-modal {
        max-width: 95vw;
        margin: 20px;
    }
    
    .transform-showcase {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }

    .transform-action-modal-simple {
        max-width: 95vw;
        width: calc(100% - 32px);
        margin: 16px;
        padding: 32px 24px;
    }

    .transform-action-modal-simple h2 {
        font-size: 24px;
    }

    .transform-action-modal-simple .hero-subtitle {
        font-size: 14px;
    }

    .simple-features {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .feature-item {
        flex-direction: row;
        text-align: left;
        gap: 12px;
    }

    .feature-item i {
        font-size: 20px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .btn-signup-primary {
        font-size: 15px;
        padding: 14px 20px;
    }

    .btn-login-secondary {
        font-size: 13px;
        padding: 10px 20px;
    }
    
    .showcase-item {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 12px;
    }
    
    .showcase-item h4,
    .showcase-item p {
        text-align: left;
    }
    
    .transform-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-item {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Enhanced Transform Action Modal Styles */
.hero-subtitle {
    font-size: 18px !important;
    color: var(--text-secondary) !important;
    margin-bottom: 10px !important;
    line-height: 1.5 !important;
}

/* Value Proposition Section */
.value-proposition {
    margin-bottom: 40px;
    text-align: center;
}

.value-proposition h3 {
    color: var(--text-primary);
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 700;
}

.value-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.value-point {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.value-point:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.value-point i {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 5px;
    flex-shrink: 0;
}

.value-point div {
    text-align: left;
}

.value-point strong {
    display: block;
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 5px;
}

.value-point p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Enhanced Showcase Grid */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.showcase-item {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.showcase-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.showcase-item h4 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.showcase-item p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.feature-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-primary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Social Proof Section */
.social-proof {
    margin-bottom: 40px;
    text-align: center;
}

.social-proof h3 {
    color: var(--text-primary);
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 700;
}

.testimonial-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.testimonial {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.testimonial-content p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.testimonial-author strong {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 14px;
}

.testimonial-rating {
    margin-top: 15px;
    display: flex;
    gap: 3px;
}

.testimonial-rating i {
    color: #ffd700;
    font-size: 16px;
}

/* Urgency Section */
.urgency-section {
    margin-bottom: 30px;
    text-align: center;
}

.limited-time-offer {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: white;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
}

.limited-time-offer i {
    font-size: 24px;
    flex-shrink: 0;
}

.limited-time-offer div {
    text-align: left;
}

.limited-time-offer strong {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

.limited-time-offer p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Enhanced CTA Section */
.cta-benefits {
    margin-top: 15px;
    text-align: center;
}

.cta-benefits small {
    color: var(--text-muted);
    font-size: 12px;
    display: block;
}

/* Enhanced Trust Indicators */
.trust-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 25px;
    padding: 20px;
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    padding: 10px;
}

.trust-item i {
    color: var(--success-color);
    font-size: 18px;
}

.trust-item span {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .value-points {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .value-point {
        padding: 15px;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .showcase-item {
        padding: 20px;
    }

    .testimonial-carousel {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .testimonial {
        padding: 20px;
    }

    .trust-indicators {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }

    .limited-time-offer {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .limited-time-offer div {
        text-align: center;
    }
}

/* ========================================
   MOBILE DASHBOARD STYLES
   ======================================== */

/* Transform Lab Dashboard Container */
.transform-lab-dashboard {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #000000 !important;
    overflow-x: hidden;
    padding-bottom: calc(80px + env(safe-area-inset-bottom)); /* Space for bottom nav */
    position: relative;
    z-index: 1;
}

/* Add padding for header on mobile only, not affecting fixed drawers */
@media (max-width: 768px) {
    .mobile-main {
        padding-top: 66px;
    }
}

/* Desktop: add padding to dashboard for header */
@media (min-width: 769px) {
    .transform-lab-dashboard {
        padding-top: 66px;
    }
}

/* Ensure black background extends behind system navigation bar */
.transform-lab-dashboard::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: env(safe-area-inset-bottom, 0);
    background: #000000;
    z-index: 9999;
    pointer-events: none;
}

/* Mobile Header Styles */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #000000;
    border-bottom: 1px solid #1a1a1a;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 8px 16px;
    height: 50px;
}

/* Hide logo section on mobile */
@media (max-width: 768px) {
    .logo-section {
        display: none;
    }
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-link .logo-icon {
    font-size: 24px;
    color: var(--primary-color);
}

.logo-link .logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: -0.5px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-btn, .user-menu-btn, .login-btn {
    background: none;
    border: none;
    color: #e2e8f0;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.search-btn:hover, .user-menu-btn:hover, .login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.login-btn span {
    font-size: 12px;
    font-weight: 500;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initials {
    color: white;
    font-weight: 600;
    font-size: 14px;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    padding: 80px 20px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.search-overlay .search-input-wrapper input {
    width: 100%;
    padding: 16px 50px 16px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.search-overlay .search-input-wrapper input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
}

.search-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #e2e8f0;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.search-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-results {
    background: rgba(26, 26, 46, 0.9);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    max-height: 400px;
    overflow-y: auto;
}

/* Mobile Main Content 
   NOTE: This container wraps ALL sections (gallery, credits, profile, creators, etc.)
   The app-container handles the 1200px max-width, so this just needs basic styling.
*/
.mobile-main {
    flex: 1;
    padding-bottom: 70px;
    min-height: 100vh;
    width: 100%;
}

/* Top Transform Section */
.top-transform-section {
    padding: var(--space-xl) var(--space-md) var(--space-lg);
    margin: var(--space-md) var(--space-md) 0;
    background: var(--gradient-primary);
    border-radius: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.top-transform-section::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) 100%);
    pointer-events: none;
}

.top-transform-content {
    position: relative;
    z-index: 2;
}

.transform-hero {
    margin-bottom: var(--space-lg);
}

.hero-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-icon i {
    font-size: 24px;
    color: var(--text-primary);
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    opacity: 0.9;
}

.transform-categories-preview {
    margin-top: var(--space-lg);
}

.category-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    max-width: 300px;
    margin: 0 auto;
}

.category-preview-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-medium);
}

.category-preview-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.category-preview-item i {
    font-size: 20px;
    color: var(--text-primary);
}

.category-preview-item span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Welcome Section */
.welcome-section {
    padding: 40px 20px 30px;
    text-align: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.welcome-content {
    max-width: 400px;
    margin: 0 auto;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: white;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.welcome-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.welcome-text {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.6;
}

.welcome-text .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 20px;
}


/* Transform Section Container */
.transform-section-container {
    padding-bottom: calc(80px + var(--space-lg) + env(safe-area-inset-bottom));
}

/* Upload Section - Fixed at top */
.upload-section {
    position: fixed;
    padding: var(--space-xs);
    top: 50px; /* Add margin to clear top navigation */
    left: 0;
    right: 0;
    height: 25vh; /* Reduced to 20vh */
    min-height: 25vh;
    max-height: 25vh;
    background: var(--glass-bg);
    border-radius: 0;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.upload-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    min-height: 0;
    overflow: hidden;
}

.upload-section .file-upload-area {
    flex: 1;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(102, 126, 234, 0.3);
    border-radius: 0;
    background: rgba(102, 126, 234, 0.02);
    cursor: pointer;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.upload-section .file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
    box-shadow: var(--shadow-light);
}

.upload-section .file-upload-area.dragover {
 
    background: rgba(240, 147, 251, 0.1);
    box-shadow: var(--shadow-glow);
}

.upload-section .file-upload-area.has-file {
    border-color: var(--success-color);
    background: rgba(78, 205, 196, 0.05);
    padding: 0;
}

.upload-section .file-upload-area.has-file .upload-content {
    display: none;
}

.upload-section .file-upload-area.has-file .file-preview-content {
    display: flex;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    position: relative;
    overflow: hidden;
}

.upload-section .file-preview-container {
    width: 100%;
    max-width: none;
    height: 100%;
}

.upload-section .file-upload-area .file-preview-image,
.upload-section .file-upload-area .file-preview-video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    display: block;
}

.upload-section .file-upload-area .file-preview-video {
    background-color: #000 !important;
}

.upload-section .file-upload-area .file-preview-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.upload-section .file-upload-area .change-file-btn {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(192, 192, 192, 0.4);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(192, 192, 192, 0.2);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
}

.upload-section .file-upload-area .change-file-btn:hover {
    background: rgba(192, 192, 192, 0.6);
    border-color: rgba(192, 192, 192, 0.4);
    color: white;
    transform: translateX(-50%) translateY(-1px);
}

.upload-section .file-upload-area .change-file-btn:active {
    background: rgba(169, 169, 169, 0.7);
    border-color: rgba(169, 169, 169, 0.5);
    color: white;
    transform: translateX(-50%) translateY(0px);
}

.upload-section .upload-content {
    text-align: center;
    padding: var(--space-xs);
}

.upload-section .upload-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.upload-section .upload-content h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 2px;
    font-weight: 600;
    line-height: 1.1;
}

.upload-section .upload-content p {
    color: var(--text-secondary);
    margin-bottom: 2px;
    font-size: 0.8rem;
    line-height: 1.1;
}

.upload-section .supported-formats {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-top: var(--space-xs);
}



/* Gallery Time Styling */
.gallery-time {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 var(--space-xs) 0;
    font-weight: 500;
}

/* Media Popup Styles */
.media-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.media-popup {
    max-width: 90vw;
    max-height: 90vh;
    background: #000 !important;
    background-color: #000 !important;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.media-popup-header {
    display: flex;
    justify-content: flex-end;
    padding: var(--space-sm);
    background: rgba(0, 0, 0, 0.1);
}

.popup-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--space-xs);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.media-popup-content {
    padding: 0;
    text-align: center;
    background: #000 !important;
    background-color: #000 !important;
    min-height: 70vh; /* Prevent size jump during video load */
    min-width: 90vw; /* Prevent width jump during video load */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.popup-media {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    background: #000 !important;
    background-color: #000 !important;
    background-image: none !important;
}

/* Clean video player controls */
.popup-media::-webkit-media-controls-panel {
    background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

video.popup-media::-webkit-media-controls-play-button {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    backdrop-filter: blur(4px);
}

video.popup-media::-webkit-media-controls-play-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

/* Ensure black background for video elements */
video.popup-media,
video {
    background-color: #000 !important;
    /* CRITICAL: Remove gray background completely */
    background-image: none !important;
    /* Force black background during all loading states */
    background: #000 !important;
}

/* Remove gray background from video in all states */
video::before,
video::after {
    background: #000 !important;
}

/* Override Android WebView default video player overlay background only */
video::-webkit-media-controls-overlay-enclosure {
    background-color: transparent !important;
    background-image: none !important;
}

video::-webkit-media-controls-enclosure {
    background-color: transparent !important;
    background-image: none !important;
}

/* Kill the gray background shadow effect on Android */
video::-webkit-media-controls {
    background-image: none !important;
}

/* Remove ANY default backgrounds from video element states */
video[poster] {
    background: #000 !important;
}

video:empty {
    background: #000 !important;
}

/* Media popup prompt section */
.media-popup-prompt {
    width: 100%;
    padding: var(--space-md);
    padding-top: var(--space-sm);
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    max-height: 200px;
    overflow-y: auto;
    margin-top: 0;
}

.media-popup-prompt .prompt-label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.media-popup-prompt .prompt-label i {
    font-size: 1rem;
}

.media-popup-prompt .prompt-text {
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    word-wrap: break-word;
}

/* Custom scrollbar for prompt */
.media-popup-prompt::-webkit-scrollbar {
    width: 6px;
}

.media-popup-prompt::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.media-popup-prompt::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.media-popup-prompt::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.media-popup-actions {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    justify-content: center;
    align-items: center;
}

.popup-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--primary-color);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.popup-btn-icon {
    padding: var(--space-sm);
    width: 45px;
    height: 45px;
    justify-content: center;
}

.popup-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.popup-btn:disabled,
.popup-btn.disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none;
    background: #666 !important;
}

/* Privacy Toggle */
.media-privacy-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.privacy-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.privacy-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.privacy-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ff6b6b;
    transition: .3s;
    border-radius: 34px;
}

.privacy-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.privacy-switch input:checked + .privacy-slider {
    background-color: var(--success-color);
}

.privacy-switch input:checked + .privacy-slider:before {
    transform: translateX(24px);
}

/* Disabled state for privacy toggle */
.privacy-switch input:disabled + .privacy-slider {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #ccc;
}

.privacy-switch input:disabled:checked + .privacy-slider {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #a8d5a8;
}

.media-privacy-toggle.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.privacy-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 50px;
}

/* Hide Open Full Size button */
#popupOpenFullBtn {
    display: none !important;
}

/* Dark shiny download button with silver text */
#popupDownloadBtn {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    color: #c0c0c0;
    border: 1px solid #404040;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

#popupDownloadBtn:hover {
    background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 50%, #2d2d2d 100%);
    color: #e0e0e0;
    border-color: #505050;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

#popupDownloadBtn i {
    color: #c0c0c0;
}

#popupDownloadBtn:disabled,
#popupDownloadBtn.disabled {
    background: #555 !important;
    color: #888 !important;
    border-color: #444 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

#popupDownloadBtn:disabled i,
#popupDownloadBtn.disabled i {
    color: #888 !important;
}

/* Category Selection Section - Fixed below upload */
.category-selection-section {
    position: fixed;
    top: calc(60px + 24vh + 0px); /* Reduced gap */
    left: 0;
    right: 0;
    padding: var(--space-xs);
   
    backdrop-filter: blur(20px);
    z-index: 99;
    display: flex;
    justify-content: center;
}

.category-selection-section .category-dropdown-wrapper {
    max-width: 400px;
    width: 100%;
}

/* Mobile Only Elements */
.mobile-only {
    display: block;
}

@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }
    
    .category-selection-section .category-dropdown-wrapper {
        max-width: 300px;
    }
}

/* Themes Section - Scrollable below fixed sections */
.themes-section {
    margin-top: calc(60px + 25vh + 50px); /* Reduced margin - account for upload + category */
    padding: var(--space-xs) var(--space-xs) calc(100px + env(safe-area-inset-bottom)); /* Extra padding for bottom nav */
    min-height: 60vh;
}

/* Transforms Section */
.transforms-section {
    padding: 0 20px 20px;
}

.transforms-section .section-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding: 0;
    text-align: left;
}

.transforms-section .transforms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* Big screens: 4 badges per row */
@media (min-width: 1200px) {
    .transforms-section .transforms-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* Transform Image Placeholder */
.transform-image-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(102, 126, 234, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.transform-image-placeholder i {
    font-size: 3rem;
    color: rgba(102, 126, 234, 0.5);
}

.transform-card-image.no-image {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(102, 126, 234, 0.05) 100%);
}

.transform-card-image.no-image::before {
    content: '\f0d0';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 3rem;
    color: rgba(102, 126, 234, 0.5);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

/* Transform Section Container */
.transform-section-container {
    padding: 0;
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
    min-height: 100vh;
}

.transform-section-container .generation-categories-section {
    margin: 0;
    padding: 0;
}

.transform-section-container .categories-content {
    padding: 1rem 0;
    min-height: 400px;
}

/* Category Content Loading State */
.category-content-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    min-height: 300px;
}

.category-content-loading i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

.category-content-loading p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.transforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

/* Make transform badges larger and more touch-friendly on mobile */
@media (max-width: 768px) {
    .transform-badge {
        padding: var(--space-lg);
        min-height: 180px;
        border-radius: 0;
    }
    
    
    .badge-description {
        font-size: 0.75rem;
        line-height: 1.3;
        margin-bottom: var(--space-sm);
    }
    
    .badge-image {
        height: 50px; /* Half size for mobile too */
        margin-bottom: var(--space-sm);
    }
    
    .badge-tags {
        gap: var(--space-sm);
    }
    
    .tag {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
        font-weight: 600;
    }
}

@media (max-width: 480px) {
    /* Single column layout for very small screens */
    .themes-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    /* Make header even more compact */
    .header {
        padding: 10px 5px;
    }
    
    .logo-section h1 {
        font-size: 1.3rem;
    }
    
    /* Stack controls vertically */
    .controls-section {
        gap: 8px;
    }
    
    /* Transform controls mobile styles */
    .transform-controls {
        margin-top: auto;
       
        flex-shrink: 0;
    }
    
    /* Larger touch targets */
    .btn {
        min-height: 48px;
        padding: 14px 20px;
    }
    
    /* Better spacing for form elements */
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 14px;
        width: 100%;
        box-sizing: border-box;
        font-size: 16px;
    }
    
    /* Make modal header sticky and touch-friendly */
    .modal-header {
        position: sticky;
        top: 0;
       
        z-index: 10;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    
    .modal-close {
        min-width: 48px;
        min-height: 48px;
        padding: 12px;
        font-size: 20px;
    }
    
    /* Make theme cards more touch-friendly */
    .theme-card {
        padding: 8px;
        min-height: 100px;
    }
    
    .theme-card:hover {
        transform: translateY(-2px); /* Reduced transform for mobile */
    }
    
    .theme-badge {
        padding: 8px;
    }
}

/* Theme Selection Styles */
.theme-card.selected {
    border-color: var(--success-color) !important;
    background: rgba(78, 205, 196, 0.1) !important;
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.3) !important;
    transform: translateY(-4px) !important;
    position: relative;
}

.theme-card.selected::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-card.selected::before {
    content: '✓';
    position: absolute;
    top: 16px;
    right: 16px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

/* Creators Section */
.creators-section {
    padding: var(--space-lg);
    padding-bottom: calc(80px + var(--space-lg) + env(safe-area-inset-bottom));
}

.creators-content {
    max-width: 600px;
    margin: 0 auto;
}

.coming-soon-state {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.coming-soon-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.coming-soon-icon i {
    font-size: 40px;
    color: white;
}

.coming-soon-state h3 {
    font-size: 28px;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.coming-soon-state > p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    font-size: 16px;
}

.features-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.feature-item i {
    font-size: 24px;
    color: var(--primary-color);
}

.feature-item span {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
    }
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000000 !important;
    border-top: 1px solid #1a1a1a;
    display: flex !important;
    justify-content: space-around;
    align-items: center;
    z-index: 10002; /* Above black background layers */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    padding-bottom: calc(8px + constant(safe-area-inset-bottom));
}

/* Desktop: Constrain bottom nav to 1200px */
@media (min-width: 769px) {
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%);
        max-width: 1200px;
        width: 1200px;
        border-radius: 0;
    }
    
    /* Optional: Add rounded top corners and shadow on desktop */
    @media (min-width: 1240px) {
        .bottom-nav {
            border-top-left-radius: 20px;
            border-top-right-radius: 20px;
            border-left: 1px solid #1a1a1a;
            border-right: 1px solid #1a1a1a;
            box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
        }
    }
}

.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 11px;
    font-weight: 500;
    min-height: 60px;
}

.nav-btn i {
    font-size: 20px;
    transition: all 0.2s ease;
}

.nav-btn:hover,
.nav-btn:active {
    color: var(--primary-color);
    background: rgba(139, 92, 246, 0.1);
}

.nav-btn.active {
    color: var(--primary-color);
}

.nav-btn.active i {
    transform: scale(1.1);
}

.nav-btn span {
    display: block;
    font-size: 11px;
    line-height: 1;
}

.transform-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(145deg, #1a1a1a, #000000);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-medium);
    min-height: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1),
                inset 0 -1px 0 rgba(255, 255, 255, 0.05),
                0 0 20px rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.transform-btn:hover {
    background: linear-gradient(145deg, #333333, #1a1a1a);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), 
                inset 0 1px 0 rgba(255, 255, 255, 0.15),
                inset 0 -1px 0 rgba(255, 255, 255, 0.08),
                0 0 30px rgba(102, 126, 234, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.transform-btn:active {
    transform: translateY(0);
}

.transform-btn i {
    font-size: 1.2rem;
}

.transform-btn span {
    font-size: 1.1rem;
    font-weight: 600;
}

/* User Menu Drawer */
.user-menu-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: #1a1a2e;
    z-index: 1500;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.user-menu-drawer.active {
    right: 0;
}

.drawer-header {
    padding: 20px;
    background: #16213e;
    border-bottom: 1px solid #2d3748;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details h3 {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 2px;
}

.user-details p {
    font-size: 12px;
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 50%, #4ecdc4 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #4ecdc4;
    font-weight: 600;
    text-shadow:
        0 0 10px rgba(78, 205, 196, 0.5),
        0 0 20px rgba(78, 205, 196, 0.3),
        0 0 30px rgba(78, 205, 196, 0.2);
    animation: glossy-shine 3s ease-in-out infinite;
}

@keyframes glossy-shine {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Credits Modal Styles */
.modal-overlay-credits {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10000 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
}

.modal-overlay-credits.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.credits-modal {
    max-width: 600px;
    width: 90%;
}

.credits-balance-section {
    margin-bottom: 30px;
}

.credits-balance-card {
       color: white;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.balance-icon {
    font-size: 3rem;
    opacity: 0.8;
}

.balance-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    opacity: 0.9;
}

.balance-amount {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.credits-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.credits-history-section h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.transactions-list {
    max-height: 300px;
    overflow-y: auto;
}

.loading-state {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.loading-state i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid var(--primary-color);
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.transaction-icon i {
    color: white;
    font-size: 1rem;
}

.transaction-details {
    flex: 1;
    margin-right: 15px;
}

.transaction-description {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 4px;
}

.transaction-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.transaction-amount {
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.transaction-amount.purchase {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
}

.transaction-amount.deduction {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.no-transactions {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.no-transactions i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.no-transactions p {
    margin: 0;
    font-size: 1.1rem;
}

/* Credits Section Styles */
.credits-section {
    padding: var(--space-xs);
    padding-bottom: calc(80px + var(--space-xs) + env(safe-area-inset-bottom));
    text-align: center;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-lg);
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.3) 0%, rgba(22, 33, 62, 0.2) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
}

.credits-section .section-header {
    margin-bottom: var(--space-xxl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.credits-section .section-header h2 {
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.credits-controls {
    display: flex;
    gap: var(--space-sm);
}

.credits-section .credits-balance-card {
    color: white;
    border-radius: 15px;
    padding: var(--space-xxl);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xxl);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.credits-section .balance-icon {
    font-size: 3rem;
    opacity: 0.8;
}

.credits-section .balance-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    opacity: 0.9;
}

.credits-section .balance-amount {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.credits-add-button-container {
    margin: var(--space-xxl) 0;
    display: flex;
    justify-content: center;
}

.credits-add-button-container .btn-primary {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: 8px;
}

.credits-history-section {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-top: var(--space-lg);
}

.credits-history-section h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.transactions-list-compact {
    max-height: 100%;
    min-height: 200px;
    overflow-y: auto;
}

.transactions-list-compact .transaction-item {
    display: flex;
    align-items: center;
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-bottom: var(--space-xs);
    border-left: 3px solid var(--primary-color);
    font-size: 0.9rem;
}

/* Load More Button for Transactions */
.load-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--space-md);
    padding: var(--space-sm) 0;
}

.load-more-btn {
    background: rgba(102, 126, 234, 0.2);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.load-more-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.load-more-btn i {
    transition: transform var(--transition-fast);
}

.load-more-btn:hover i {
    transform: translateY(2px);
}

/* Stripe Embedded Checkout Modal */
#stripeCheckoutModal {
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

#stripeCheckoutModal.active {
    display: flex;
}

.stripe-checkout-modal {
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.stripe-checkout-container {
    min-height: 400px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.stripe-checkout-container .loading-state,
.stripe-checkout-container .error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    gap: var(--space-md);
}

.stripe-checkout-container .error-state i {
    font-size: 3rem;
    color: var(--danger-color);
}

.stripe-checkout-container .error-state p {
    color: var(--text-secondary);
    margin: 0;
}

.transactions-list-compact .transaction-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--space-sm);
    flex-shrink: 0;
}

.transactions-list-compact .transaction-icon i {
    color: white;
    font-size: 0.7rem;
}

.transactions-list-compact .transaction-details {
    flex: 1;
    margin-right: var(--space-sm);
}

.transactions-list-compact .transaction-description {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 2px;
    font-size: 0.85rem;
}

.transactions-list-compact .transaction-date {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.transactions-list-compact .transaction-amount {
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.transactions-list-compact .transaction-amount.purchase {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
}

.transactions-list-compact .transaction-amount.deduction {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.transactions-list-compact .no-transactions {
    text-align: center;
    padding: var(--space-lg);
    color: var(--text-secondary);
}

.transactions-list-compact .no-transactions i {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--text-muted);
}

.no-packages {
    text-align: center;
    padding: var(--space-xxl);
    color: var(--text-secondary);
    grid-column: 1 / -1;
}

.no-packages i {
    font-size: 2rem;
    margin-bottom: var(--space-md);
    color: var(--warning-color);
}

/* Mobile responsive for credits section */
@media (max-width: 768px) {

    .credits-section .section-header {
        margin-bottom: var(--space-lg);
    }

    .credits-section .credits-balance-card {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
        padding: var(--space-lg);
        margin-bottom: var(--space-lg);
    }

    .credits-section .balance-amount {
        font-size: 1.5rem;
    }

    .credits-add-button-container {
        margin: var(--space-md) 0;
    }

    .credits-history-section {
        min-height: 400px;
        margin-top: var(--space-md);
        padding: var(--space-md);
    }
}

/* Buy Credits Modal Styles - Simplified */
.modal-overlay-buy-credits {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10000 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
}

.modal-overlay-buy-credits.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.buy-credits-modal-simple {
    max-width: 900px;
    width: 95%;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.9) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.packages-section-simple {
    padding: var(--space-xxl);
}

.packages-section-simple h3 {
    text-align: center;
    margin-bottom: var(--space-xxl);
    color: var(--text-primary);
    font-size: 1.5rem;
}

.packages-grid-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.package-card-simple {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    transition: all 0.3s ease;
}

.package-card-simple:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
}

.package-header-simple h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    font-size: 1.2rem;
}

.package-price-simple {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: var(--space-lg);
}

.package-features-simple {
    margin-bottom: var(--space-lg);
}

.feature-item-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xs);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.feature-item-simple i {
    color: #4ecdc4;
    margin-right: var(--space-xs);
    font-size: 0.75rem;
}

.buy-package-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.buy-package-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .credits-modal,
    .buy-credits-modal,
    .buy-credits-modal-simple {
        width: 95%;
        margin: 10px;
    }

    .packages-section-simple {
        padding: var(--space-lg);
    }

    .packages-grid-simple {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .credits-balance-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .balance-amount {
        font-size: 1.5rem;
    }

    .packages-grid {
        grid-template-columns: 1fr;
    }

    .current-balance-display .balance-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

.drawer-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.drawer-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.drawer-content {
    flex: 1;
    padding: 20px 0;
}

.menu-items {
    display: flex;
    flex-direction: column;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: #667eea;
}

.menu-item.logout {
    color: #ef4444;
    margin-top: 20px;
    border-top: 1px solid #2d3748;
    padding-top: 20px;
}

.menu-item.generate-after-transform {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border-left: 3px solid #10b981;
}

.menu-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.menu-item span {
    font-size: 14px;
    font-weight: 500;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1400;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Keep container visible but make it mobile-friendly */
    .container {
        padding: 10px;
        margin: 0;
        min-height: 100vh;
    }
    
    /* Make header more compact on mobile */
    .header {
        padding: 15px 10px;
        flex-wrap: wrap;
    }
    
    .logo-section {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    
    .logo-section h1 {
        font-size: 1.5rem;
    }
    
    .logo-section p {
        font-size: 0.9rem;
        display: none; /* Hide tagline on very small screens */
    }
    
    /* Make control section responsive */
    .controls-section {
        width: 100%;
        margin-top: 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    .category-dropdown, .search-container {
        width: 100%;
    }
    
    /* Mobile modal improvements */
    .preview-area {
        margin: var(--space-md) 0;
        padding: var(--space-md);
        border-radius: var(--radius-md);
    }
    
    /* Make file upload area larger and more prominent */
    .file-upload-area {
        padding: var(--space-xl) var(--space-md);
        min-height: 250px;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: var(--space-md) 0;
    }
    
    .upload-content {
        text-align: center;
        width: 100%;
    }
    
    .upload-icon {
        font-size: 4rem;
        margin-bottom: var(--space-lg);
        color: var(--primary-color);
    }
    
    .upload-content h3 {
        font-size: 1.8rem;
        margin-bottom: var(--space-sm);
        color: var(--text-primary);
        font-weight: 600;
    }
    
    .upload-content p {
        font-size: 1.2rem;
        margin-bottom: var(--space-lg);
        color: var(--text-secondary);
    }
    
    .supported-formats {
        font-size: 1rem;
        color: var(--text-muted);
        font-family: var(--font-mono);
    }
    
    /* Make modal header mobile-friendly */
    .modal-header {
        margin-bottom: 15px;
        padding-bottom: 15px;
        position: sticky;
        top: 0;
       
        z-index: 10;
    }
    
    .modal-close {
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
        font-size: 18px;
    }
    
    /* Make form elements mobile-friendly */
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Make buttons touch-friendly */
    .btn {
        padding: 16px 24px;
        font-size: 18px;
        min-height: 48px; /* iOS touch target minimum */
        width: 100%;
        margin-bottom: 12px;
        border-radius: var(--radius-lg);
        font-weight: 600;
    }
    
    .transform-btn {
        padding: 18px 32px;
        font-size: 20px;
        min-height: 56px;
        border-radius: 0;
        position: relative;
        z-index: 1;
    }
    
    /* Improve theme cards for mobile */
    .theme-card {
        padding: 12px;
        min-height: 120px;
    }
    
    .theme-card .theme-title {
        font-size: 1rem;
        font-weight: 600;
    }
    
    .theme-card .theme-description {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .theme-badge {
        padding: 10px;
    }
}

/* ========================================
   DESKTOP RESPONSIVE STYLES
   ======================================== */

@media (min-width: 769px) {
    /* Desktop responsive styles for transform lab dashboard */
    .transform-lab-dashboard {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    /* Desktop header styles - constrained to 1200px */
    .mobile-header {
        position: fixed !important;
        top: 0 !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 100% !important;
        max-width: 1200px !important;
        background: rgba(10, 10, 10, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        border-bottom: 1px solid rgba(40, 40, 40, 0.3) !important;
        padding: var(--space-md) var(--space-lg) !important;
        margin: 0 !important;
        z-index: 1000 !important;
    }

    /* Header content */
    .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo-section {
        display: flex;
        align-items: center;
        gap: var(--space-md);
    }

    .main-title {
        font-size: 2rem;
        font-weight: 700;
    }

    /* Desktop main content */
    .mobile-main {
        flex: 1;
        padding: var(--space-lg);
        width: 100%;
    }

    /* Desktop themes grid - show more columns on larger screens */
    .themes-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: var(--space-md);
    }

    /* Desktop upload section */
    .upload-section {
        margin-bottom: var(--space-xl);
    }

    .upload-container {
        max-width: 800px;
        margin: 0 auto;
    }

    /* Desktop modals - larger and centered */
    .modal-container {
        max-width: 90vw;
        max-height: 90vh;
        margin: var(--space-lg) auto;
    }

    /* Desktop gallery */
    .gallery-section {
        margin-top: var(--space-xl);
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    /* Desktop bottom navigation - hide on desktop */
    .bottom-nav {
        margin: 0 auto;
        border-radius: 12px;
        max-width: 1200px;
        display: none;
    }
}

/* Large desktop styles (1200px+) */
@media (min-width: 1200px) {
    .transform-lab-dashboard {
        max-width: 1200px;
    }

    .mobile-main {
        padding: var(--space-xl);
    }

    .themes-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: var(--space-md);
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .header-content {
        max-width: 1600px;
    }

    /* Larger upload container for big screens */
    .upload-container {
        max-width: 1000px;
    }

    /* Better spacing for large screens */
    .category-selection-section {
        margin-bottom: var(--space-xl);
    }
}

/* Extra large desktop styles (1600px+) */
@media (min-width: 1600px) {
    .transform-lab-dashboard {
        max-width: 1200px;
    }

    .mobile-main {
        padding: var(--space-2xl);
    }

    .themes-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: var(--space-lg);
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .header-content {
        max-width: 1200px;
    }
}

/* ========================================
   TRANSFORM UPLOAD PAGE STYLES
   ======================================== */

.transform-upload-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #0f0f23;
}

/* Upload Page Header */
.transform-upload-page .mobile-header {
    background: #000000;
    border-bottom: 1px solid #1a1a1a;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.back-button {
    display: flex;
    align-items: center;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #e2e8f0;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

.page-title {
    flex: 1;
    text-align: center;
}

.page-title h1 {
    font-size: 18px;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0;
    letter-spacing: -0.5px;
}

/* Upload Main Content */
.upload-main {
    flex: 1;
    padding: 20px;
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Selected Transform Section */
.selected-transform-section {
    flex-shrink: 0;
}

.transform-info-card {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.transform-preview {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--accent-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.transform-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.transform-icon {
    font-size: 1rem;
    color: var(--primary-color);
}

.transform-details {
    flex: 1;
}

.transform-details h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    line-height: 1.2;
}

.transform-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.transform-meta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.transform-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.transform-meta i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Upload Section */
.upload-section {
    flex: 1;
    display: ro;
    flex-direction: column;
}

.upload-container {
    flex: 1;
    display: contents;
    flex-direction: column;
    gap: var(--space-sm);
    min-height: 0;
    overflow: hidden;
}

.upload-section .file-upload-area {
    flex: 1;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(102, 126, 234, 0.3);
    border-radius: 0;
   /* From https://css.glass */
background: rgba(147, 7, 255, 0.2);
border-radius: 16px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
border: 1px solid rgba(147, 7, 255, 0.3);
    cursor: pointer;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.upload-section .file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
    box-shadow: var(--shadow-light);
}

.upload-section .file-upload-area.dragover {
    border-color: var(--highlight-color);
    background: rgba(240, 147, 251, 0.1);
    box-shadow: var(--shadow-glow);
}

.upload-section .upload-content {
    text-align: center;
    padding: var(--space-md);
}

.upload-section .upload-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
}

.upload-section .upload-content h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    font-weight: 600;
    line-height: 1.2;
}

.upload-section .upload-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
    font-size: 0.95rem;
    line-height: 1.2;
}

.upload-section .supported-formats {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-top: var(--space-xs);
}

/* Transform Controls for Upload Page - Use same fixed positioning */
.upload-section .transform-controls {
    position: fixed;
    bottom: calc(68px + env(safe-area-inset-bottom));
    left: 0;
    right: 0;
    z-index: 10001;
    padding: 8px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.98), rgba(0, 0, 0, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.upload-section .transform-btn {
    width: 100%;
    background: linear-gradient(145deg, #1a1a1a, #000000);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-lg);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1),
                inset 0 -1px 0 rgba(255, 255, 255, 0.05),
                0 0 20px rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    min-height: 56px;
}

.upload-section .transform-btn:hover:not(:disabled) {
    background: linear-gradient(145deg, #333333, #1a1a1a);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), 
                inset 0 1px 0 rgba(255, 255, 255, 0.15),
                inset 0 -1px 0 rgba(255, 255, 255, 0.08),
                0 0 30px rgba(102, 126, 234, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.upload-section .transform-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Mobile Responsive for Upload Page */
@media (max-width: 768px) {
    .transform-info-card {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .transform-preview {
        width: 80px;
        height: 80px;
    }
    
    .transform-details h2 {
        font-size: 1.4rem;
    }
    
    .transform-meta {
        justify-content: center;
    }
    
    .upload-section .file-upload-area {
        width: 100%;
        height: 100%;
    }
    
    .upload-section .upload-icon {
        font-size: 2rem;
    }
    
    .upload-section .upload-content h3 {
        font-size: 1rem;
    }
}

/* Selected Theme Styling - Higher Specificity */
.theme-badge.selected,
.theme-card.selected {
    border-color: var(--primary-color) !important;
    border-width: 3px !important;
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.25), rgba(102, 126, 234, 0.15)) !important;
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.6),
                0 0 60px rgba(102, 126, 234, 0.4),
                0 0 0 4px rgba(102, 126, 234, 0.3),
                inset 0 0 20px rgba(102, 126, 234, 0.1) !important;
    transform: scale(1.03) !important;
    animation: selectedPulse 2s ease-in-out infinite;
}

@keyframes selectedPulse {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.6),
                    0 0 60px rgba(102, 126, 234, 0.4),
                    0 0 0 4px rgba(102, 126, 234, 0.3);
    }
    50% { 
        box-shadow: 0 0 40px rgba(102, 126, 234, 0.8),
                    0 0 80px rgba(102, 126, 234, 0.5),
                    0 0 0 6px rgba(102, 126, 234, 0.4);
    }
}

/* Checkmark for selected badge - Override the border ::after */
.theme-badge.selected::after,
.theme-card.selected::after {
    content: '✓' !important;
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background: linear-gradient(135deg, #667eea, #8b5cf6) !important;
    color: white !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    z-index: 100 !important;
    border: 1px solid rgb(76, 133, 199) !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.6),
                0 0 25px rgba(102, 126, 234, 0.5) !important;
    animation: checkmarkAppear 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    pointer-events: none !important;
}

@keyframes checkmarkAppear {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.3) rotate(10deg);
    }
    70% {
        transform: scale(0.95) rotate(-5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Enhance selected badge glow effect with ::before */
.theme-badge.selected::before {
    opacity: 1 !important;
    background: radial-gradient(circle at top left, rgba(102, 126, 234, 0.4), transparent 60%) !important;
}

/* Highlight Animation for Pre-selected Transform */
.theme-badge-highlight {
    animation: pulseHighlight 2s ease-in-out;
}

@keyframes pulseHighlight {
    0%, 100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
        transform: scale(1.02);
    }
    25% {
        box-shadow: 0 0 40px rgba(102, 126, 234, 0.6),
                    0 0 60px rgba(240, 147, 251, 0.4),
                    0 0 0 4px rgba(102, 126, 234, 0.3);
        transform: scale(1.05);
    }
    50% {
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.5),
                    0 0 50px rgba(240, 147, 251, 0.3);
        transform: scale(1.03);
    }
    75% {
        box-shadow: 0 0 40px rgba(102, 126, 234, 0.6),
                    0 0 60px rgba(240, 147, 251, 0.4),
                    0 0 0 4px rgba(102, 126, 234, 0.3);
        transform: scale(1.05);
    }
}

/* Toast Notifications */
.error-toast,
.success-toast,
.warning-toast,
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999; /* Much higher than all modals */
    min-width: 300px;
    max-width: 500px;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
}

.error-toast {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 38, 0.95));
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.success-toast {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(22, 163, 74, 0.95));
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.warning-toast {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(217, 119, 6, 0.95));
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Notification toast styles */
.notification-toast.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 38, 0.95));
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.notification-toast.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(22, 163, 74, 0.95));
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.notification-toast.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(217, 119, 6, 0.95));
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.notification-toast.info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(37, 99, 235, 0.95));
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.error-toast.show,
.success-toast.show,
.warning-toast.show,
.notification-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: white;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
}

.toast-content i {
    margin-right: 12px;
    font-size: 18px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.toast-text {
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.3;
}

.error-toast .toast-content i {
    color: rgba(255, 255, 255, 0.9);
}

.success-toast .toast-content i {
    color: rgba(255, 255, 255, 0.9);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .error-toast,
    .success-toast,
    .warning-toast,
    .notification-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
        transform: translateY(-100%);
        z-index: 999999; /* Ensure it stays above modals on mobile too */
    }
    
    .error-toast.show,
    .success-toast.show,
    .warning-toast.show,
    .notification-toast.show {
        transform: translateY(0);
    }
}

/* Result Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 20px;
    padding: 32px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    width: 800px;
    position: relative;
}

/* Full Page Modal Variant */
.modal-container.modal-fullpage {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    padding: 60px 20px 20px 20px;
    background: #000000;
    border: none;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent container from scrolling */
}

/* Fullpage modal content should scroll */
.modal-container.modal-fullpage .modal-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-overlay.active .modal-container.modal-fullpage {
    transform: translateY(0);
}

/* Top Right Close Button */
.modal-close-top-right {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close-top-right:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.modal-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 24px 0;
    text-align: center;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Result Comparison */
.result-comparison {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.comparison-item {
    flex: 1;
    text-align: center;
}

.comparison-item h3 {
    color: white;
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 600;
}

.image-container {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-container img,
.image-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-arrow {
    font-size: 2rem;
    color: #667eea;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

.modal-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-secondary,
.btn-primary {
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Mobile responsive for result modal */
@media (max-width: 768px) {
    .modal-container {
        width: 95vw;
        padding: 20px;
    }
    
    .result-comparison {
        flex-direction: column;
        gap: 16px;
    }
    
    .comparison-arrow {
        transform: rotate(90deg);
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .image-container {
        height: 250px;
    }
}

/* Transform Lab Logo Styles */
.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.logo-section:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.logo-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.main-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.1;
}

.title-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-accent {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Logo Content Container */
.logo-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

/* Dynamic Tab Name */
.tab-name {
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
    padding: 4px 12px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Glossy shine effect */
.tab-name::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Tab-specific colors matching badges */
.tab-name[data-tab="home"] {
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-color: rgba(102, 126, 234, 0.3);
}

.tab-name[data-tab="transform"] {
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-color: rgba(102, 126, 234, 0.3);
}

.tab-name[data-tab="generate"] {
    background: linear-gradient(145deg, rgba(240, 147, 251, 0.2), rgba(245, 87, 108, 0.2));
    border-color: rgba(240, 147, 251, 0.3);
}

.tab-name[data-tab="gallery"] {
    background: linear-gradient(145deg, rgba(78, 205, 196, 0.2), rgba(68, 160, 141, 0.2));
    border-color: rgba(78, 205, 196, 0.3);
}

.tab-name[data-tab="shop"] {
    background: linear-gradient(145deg, rgba(255, 217, 61, 0.2), rgba(255, 179, 0, 0.2));
    border-color: rgba(255, 217, 61, 0.3);
}

.tab-name[data-tab="creators"] {
    background: linear-gradient(145deg, rgba(255, 107, 107, 0.2), rgba(245, 59, 87, 0.2));
    border-color: rgba(255, 107, 107, 0.3);
}

.tab-name[data-tab="settings"] {
    background: linear-gradient(145deg, rgba(139, 139, 167, 0.2), rgba(107, 107, 147, 0.2));
    border-color: rgba(139, 139, 167, 0.3);
}

/* Mobile responsive for logo */
@media (max-width: 480px) {
    .selection-display {
        padding: 10px;
        margin-bottom: 12px;
    }

    .logo-section {
        gap: 8px;
    }

    .logo-icon {
        font-size: 1.5rem;
    }

    .main-title {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }
    
    .tab-name {
        font-size: clamp(0.65rem, 1.8vw, 0.75rem);
        padding: 3px 10px;
    }
}

/* Profile/Settings Section Styles */
.profile-section {
    padding: var(--space-lg);
    padding-bottom: calc(80px + var(--space-lg) + env(safe-area-inset-bottom));
}

.settings-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.settings-group {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.settings-group h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-layout {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-xl);
    align-items: start;
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input {
    padding: var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.form-group input[readonly] {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-group small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.profile-image-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.image-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.image-upload-btn {
    padding: var(--space-sm) var(--space-md);
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.image-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.preference-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preference-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.preference-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Mobile responsive for profile section */
@media (max-width: 768px) {
    .profile-section {
        padding: var(--space-md);
    }

    .form-layout {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .settings-group {
        padding: var(--space-lg);
    }

    .preference-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .toggle-switch {
        align-self: flex-end;
    }
}

/* ============================================
   Generation Section Styles
   ============================================ */
.generate-section {
    padding: var(--space-xs);
    padding-bottom: calc(80px + var(--space-xs) + env(safe-area-inset-bottom));
    min-height: 100vh;
}

.generate-section .section-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
}

.generate-section .section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.generate-section .section-header h2 i {
    color: #667eea;
    font-size: 1.5rem;
}

.generate-section .section-header p {
    font-size: 0.95rem;
    color: #94a3b8;
}

/* Media Types Container */
.media-types-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    padding: 0 1rem 2rem;
}

/* Media Type Badge Cards */
.media-type-badge-card {
    position: relative;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.4);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.media-type-badge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.media-type-badge-card:hover::before,
.media-type-badge-card.expanded::before {
    transform: scaleX(1);
}

.media-type-badge-card.expanded {
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(102, 126, 234, 0.2);
}

/* Media Type Color Themes - Image (Green) */
.media-type-badge-card[data-media-type="image"],
.media-type-badge-card[data-type="image"] {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
    border-color: rgba(16, 185, 129, 0.3);
}

.media-type-badge-card[data-media-type="image"]::before,
.media-type-badge-card[data-type="image"]::before {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.media-type-badge-card[data-media-type="image"]:hover,
.media-type-badge-card[data-type="image"]:hover,
.media-type-badge-card[data-media-type="image"].expanded,
.media-type-badge-card[data-type="image"].expanded {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(16, 185, 129, 0.3);
}

.media-type-badge-card[data-media-type="image"] .badge-icon,
.media-type-badge-card[data-type="image"] .badge-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%);
}

.media-type-badge-card[data-media-type="image"] .badge-icon i,
.media-type-badge-card[data-type="image"] .badge-icon i {
    color: #10b981;
}

.media-type-badge-card[data-media-type="image"]:hover .badge-icon,
.media-type-badge-card[data-type="image"]:hover .badge-icon,
.media-type-badge-card[data-media-type="image"].expanded .badge-icon,
.media-type-badge-card[data-type="image"].expanded .badge-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.media-type-badge-card[data-media-type="image"] .badge-expand-icon i,
.media-type-badge-card[data-type="image"] .badge-expand-icon i {
    color: #10b981;
}

.media-type-badge-card[data-media-type="image"]:hover .badge-expand-icon i,
.media-type-badge-card[data-type="image"]:hover .badge-expand-icon i,
.media-type-badge-card[data-media-type="image"].expanded .badge-expand-icon i,
.media-type-badge-card[data-type="image"].expanded .badge-expand-icon i {
    color: #059669;
}

/* Media Type Color Themes - Video (Red/Pink) */
.media-type-badge-card[data-media-type="video"],
.media-type-badge-card[data-type="video"] {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.15) 100%);
    border-color: rgba(239, 68, 68, 0.3);
}

.media-type-badge-card[data-media-type="video"]::before,
.media-type-badge-card[data-type="video"]::before {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.media-type-badge-card[data-media-type="video"]:hover,
.media-type-badge-card[data-type="video"]:hover,
.media-type-badge-card[data-media-type="video"].expanded,
.media-type-badge-card[data-type="video"].expanded {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(239, 68, 68, 0.3);
}

.media-type-badge-card[data-media-type="video"] .badge-icon,
.media-type-badge-card[data-type="video"] .badge-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
}

.media-type-badge-card[data-media-type="video"] .badge-icon i,
.media-type-badge-card[data-type="video"] .badge-icon i {
    color: #ef4444;
}

.media-type-badge-card[data-media-type="video"]:hover .badge-icon,
.media-type-badge-card[data-type="video"]:hover .badge-icon,
.media-type-badge-card[data-media-type="video"].expanded .badge-icon,
.media-type-badge-card[data-type="video"].expanded .badge-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.media-type-badge-card[data-media-type="video"] .badge-expand-icon i,
.media-type-badge-card[data-type="video"] .badge-expand-icon i {
    color: #ef4444;
}

.media-type-badge-card[data-media-type="video"]:hover .badge-expand-icon i,
.media-type-badge-card[data-type="video"]:hover .badge-expand-icon i,
.media-type-badge-card[data-media-type="video"].expanded .badge-expand-icon i,
.media-type-badge-card[data-type="video"].expanded .badge-expand-icon i {
    color: #dc2626;
}

/* Media Type Color Themes - Audio (Purple) */
.media-type-badge-card[data-media-type="audio"],
.media-type-badge-card[data-type="audio"] {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(124, 58, 237, 0.15) 100%);
    border-color: rgba(139, 92, 246, 0.3);
}

.media-type-badge-card[data-media-type="audio"]::before,
.media-type-badge-card[data-type="audio"]::before {
    background: linear-gradient(90deg, #8b5cf6 0%, #7c3aed 100%);
}

.media-type-badge-card[data-media-type="audio"]:hover,
.media-type-badge-card[data-type="audio"]:hover,
.media-type-badge-card[data-media-type="audio"].expanded,
.media-type-badge-card[data-type="audio"].expanded {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(139, 92, 246, 0.3);
}

.media-type-badge-card[data-media-type="audio"] .badge-icon,
.media-type-badge-card[data-type="audio"] .badge-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);
}

.media-type-badge-card[data-media-type="audio"] .badge-icon i,
.media-type-badge-card[data-type="audio"] .badge-icon i {
    color: #8b5cf6;
}

.media-type-badge-card[data-media-type="audio"]:hover .badge-icon,
.media-type-badge-card[data-type="audio"]:hover .badge-icon,
.media-type-badge-card[data-media-type="audio"].expanded .badge-icon,
.media-type-badge-card[data-type="audio"].expanded .badge-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.media-type-badge-card[data-media-type="audio"] .badge-expand-icon i,
.media-type-badge-card[data-type="audio"] .badge-expand-icon i {
    color: #8b5cf6;
}

.media-type-badge-card[data-media-type="audio"]:hover .badge-expand-icon i,
.media-type-badge-card[data-type="audio"]:hover .badge-expand-icon i,
.media-type-badge-card[data-media-type="audio"].expanded .badge-expand-icon i,
.media-type-badge-card[data-type="audio"].expanded .badge-expand-icon i {
    color: #7c3aed;
}

/* Media Type Color Themes - Text (Orange/Amber) */
.media-type-badge-card[data-media-type="text"],
.media-type-badge-card[data-type="text"] {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.15) 0%, rgba(249, 115, 22, 0.15) 100%);
    border-color: rgba(251, 146, 60, 0.3);
}

.media-type-badge-card[data-media-type="text"]::before,
.media-type-badge-card[data-type="text"]::before {
    background: linear-gradient(90deg, #fb923c 0%, #f97316 100%);
}

.media-type-badge-card[data-media-type="text"]:hover,
.media-type-badge-card[data-type="text"]:hover,
.media-type-badge-card[data-media-type="text"].expanded,
.media-type-badge-card[data-type="text"].expanded {
    border-color: rgba(251, 146, 60, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(251, 146, 60, 0.3);
}

.media-type-badge-card[data-media-type="text"] .badge-icon,
.media-type-badge-card[data-type="text"] .badge-icon {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.2) 0%, rgba(249, 115, 22, 0.2) 100%);
}

.media-type-badge-card[data-media-type="text"] .badge-icon i,
.media-type-badge-card[data-type="text"] .badge-icon i {
    color: #fb923c;
}

.media-type-badge-card[data-media-type="text"]:hover .badge-icon,
.media-type-badge-card[data-type="text"]:hover .badge-icon,
.media-type-badge-card[data-media-type="text"].expanded .badge-icon,
.media-type-badge-card[data-type="text"].expanded .badge-icon {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
}

.media-type-badge-card[data-media-type="text"] .badge-expand-icon i,
.media-type-badge-card[data-type="text"] .badge-expand-icon i {
    color: #fb923c;
}

.media-type-badge-card[data-media-type="text"]:hover .badge-expand-icon i,
.media-type-badge-card[data-type="text"]:hover .badge-expand-icon i,
.media-type-badge-card[data-media-type="text"].expanded .badge-expand-icon i,
.media-type-badge-card[data-type="text"].expanded .badge-expand-icon i {
    color: #f97316;
}

/* Media Type Color Themes - 3D (Cyan/Blue) */
.media-type-badge-card[data-media-type="3d"],
.media-type-badge-card[data-type="3d"] {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(8, 145, 178, 0.15) 100%);
    border-color: rgba(6, 182, 212, 0.3);
}

.media-type-badge-card[data-media-type="3d"]::before,
.media-type-badge-card[data-type="3d"]::before {
    background: linear-gradient(90deg, #06b6d4 0%, #0891b2 100%);
}

.media-type-badge-card[data-media-type="3d"]:hover,
.media-type-badge-card[data-type="3d"]:hover,
.media-type-badge-card[data-media-type="3d"].expanded,
.media-type-badge-card[data-type="3d"].expanded {
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(6, 182, 212, 0.3);
}

.media-type-badge-card[data-media-type="3d"] .badge-icon,
.media-type-badge-card[data-type="3d"] .badge-icon {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(8, 145, 178, 0.2) 100%);
}

.media-type-badge-card[data-media-type="3d"] .badge-icon i,
.media-type-badge-card[data-type="3d"] .badge-icon i {
    color: #06b6d4;
}

.media-type-badge-card[data-media-type="3d"]:hover .badge-icon,
.media-type-badge-card[data-type="3d"]:hover .badge-icon,
.media-type-badge-card[data-media-type="3d"].expanded .badge-icon,
.media-type-badge-card[data-type="3d"].expanded .badge-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.media-type-badge-card[data-media-type="3d"] .badge-expand-icon i,
.media-type-badge-card[data-type="3d"] .badge-expand-icon i {
    color: #06b6d4;
}

.media-type-badge-card[data-media-type="3d"]:hover .badge-expand-icon i,
.media-type-badge-card[data-type="3d"]:hover .badge-expand-icon i,
.media-type-badge-card[data-media-type="3d"].expanded .badge-expand-icon i,
.media-type-badge-card[data-type="3d"].expanded .badge-expand-icon i {
    color: #0891b2;
}

/* Generation Categories Section (like transform categories) */
.generation-categories-section {
    padding: 20px 20px 0;
    background: rgba(102, 126, 234, 0.05);
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.categories-tabs-wrapper {
    position: relative;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

/* Scroll fade effect for generation tabs */
.categories-tabs-wrapper.has-scroll::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to left, rgba(102, 126, 234, 0.05), transparent);
    pointer-events: none;
    z-index: 1;
}

.categories-tabs {
    display: flex;
    gap: 12px;
    padding: 0 0 20px;
    min-width: max-content;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: fit-content;
}

.category-tab:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

.category-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.category-tab i {
    font-size: 1rem;
}

/* Generation Methods Container */
.generation-methods-container {
    padding: 20px;
}

.generation-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #667eea;
    font-size: 1rem;
    padding: 40px;
    grid-column: 1 / -1;
}

.loading-state i {
    font-size: 1.2rem;
}

/* Generation Method Badge (like transform badges) */
.generation-method-badge {
    position: relative;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.4);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    min-height: 320px; /* Much larger to accommodate 250px banner + content */
}

.generation-method-badge:hover {
    border-color: rgba(102, 126, 234, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.generation-method-badge.selected {
    background: rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.7);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4), 0 0 30px rgba(102, 126, 234, 0.2);
}

.generation-method-image {
    width: 100%;
    height: 250px; /* Much larger height for full banner visibility */
    overflow: hidden;
    position: relative;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.generation-method-image img,
.generation-method-image video {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center center;
    transition: transform 0.3s ease;
    display: block;
    min-width: 100%;
    min-height: 100%;
}

.generation-method-badge:hover .generation-method-image img {
    transform: scale(1.05);
}

.generation-method-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(102, 126, 234, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(102, 126, 234, 0.6);
    font-size: 3rem;
}

.generation-method-badge-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.generation-method-badge-overlay:hover {
    background: rgba(102, 126, 234, 0.9);
    transform: translateY(-2px);
}

.generation-method-badge-overlay i {
    color: #f59e0b;
    font-size: 0.9rem;
}

.generation-method-content {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.generation-method-content h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8f0;
    text-align: left;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.generation-method-credits {
    background: rgba(102, 126, 234, 0.2);
    color: #f59e0b;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.generation-method-credits i {
    color: #f59e0b;
    font-size: 0.8rem;
}

.media-type-image img,
.media-type-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-type-badge-card:hover .media-type-image img {
    transform: scale(1.05);
}

.media-type-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(102, 126, 234, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(102, 126, 234, 0.6);
    font-size: 3rem;
}

.media-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.media-type-btn-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.media-type-btn-overlay:hover {
    background: rgba(102, 126, 234, 0.9);
    transform: translateY(-2px);
}

.media-type-btn-overlay i {
    color: #f59e0b;
    font-size: 0.9rem;
}

.media-type-content {
    padding: 16px;
}

.media-type-content h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8f0;
    text-align: center;
}

.media-type-content p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.7);
    text-align: center;
    line-height: 1.4;
}

/* Badge Card Header */
.badge-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.media-type-badge-card:hover .badge-card-header {
    transform: translateY(-2px);
}

.media-type-badge-card .badge-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.media-type-badge-card:hover .badge-icon,
.media-type-badge-card.expanded .badge-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scale(1.1);
}

.media-type-badge-card .badge-icon i {
    font-size: 24px;
    color: #667eea;
    transition: color 0.3s ease;
}

.media-type-badge-card:hover .badge-icon i,
.media-type-badge-card.expanded .badge-icon i {
    color: white;
}

.media-type-badge-card .badge-content {
    flex: 1;
}

.media-type-badge-card .badge-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.25rem;
}

.media-type-badge-card .badge-content p {
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.4;
    margin: 0;
}

/* Expand Icon */
.badge-expand-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.badge-expand-icon i {
    font-size: 16px;
    color: #667eea;
    transition: transform 0.3s ease, color 0.3s ease;
}

.media-type-badge-card:hover .badge-expand-icon i,
.media-type-badge-card.expanded .badge-expand-icon i {
    color: #764ba2;
}

/* Creation Methods Container */
.creation-methods-container {
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    padding: 1rem 1.5rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
}

/* Method Credits Display */
.method-credits {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #f59e0b;
    font-weight: 600;
    margin-top: 0.25rem;
}

.method-credits i {
    font-size: 0.875rem;
    color: #f59e0b;
}

.creation-method .method-credits {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(245, 158, 11, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    margin-left: auto;
}

.creation-method-item .method-credits {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(245, 158, 11, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    margin-left: auto;
}

/* Transform Card Button Credits Styling */
.transform-card-btn-overlay {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #f59e0b;
}

.transform-card-btn-overlay i {
    color: #f59e0b;
    font-size: 1rem;
}


/* Generate Button Credits Styling */
#generateButtonText {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #f59e0b;
}

#generateButtonText i {
    color: #f59e0b;
    font-size: 1rem;
}

/* Try Now Transform Button Credits Styling */
#tryNowTransformBtn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#tryNowTransformBtn i {
    color: #f59e0b;
    font-size: 1rem;
}

#tryNowTransformCredit {
    color: #f59e0b;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Generate button styling to match transform buttons */
#submitCreation.transform-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#submitCreation.transform-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.7), 
                0 12px 60px rgba(139, 92, 246, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

#submitCreation.transform-btn i {
    color: #f59e0b;
    font-size: 1.2rem;
}

#submitCreation.transform-btn span:first-of-type {
    color: #f59e0b;
    font-weight: 600;
    font-size: 1rem;
}

/* Mobile responsive styles for transform card "Try Now" buttons */
@media (max-width: 768px) {
    .transform-card-btn-overlay {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .transform-card-btn-overlay i {
        font-size: 0.8rem;
    }
    
    .transform-card-btn-overlay span {
        font-size: 0.75rem;
    }
    
    /* Mobile styles for generate button */
    #submitCreation.transform-btn {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
    
    #submitCreation.transform-btn i {
        font-size: 0.9rem;
    }
    
    #submitCreation.transform-btn span:first-of-type {
        font-size: 0.8rem;
    }
}

/* Main Transform Button Credits Styling */
#transformBtn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#transformBtn i {
    color: #f59e0b;
    font-size: 1rem;
}

#transformBtnCredit {
    color: #f59e0b;
    font-weight: 600;
    font-size: 0.9rem;
}

.creation-methods-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

.creation-methods-loading i {
    font-size: 1.25rem;
    color: #667eea;
}

.creation-methods-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.creation-method-item {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.creation-method-item .method-banner {
    width: 100%;
    height: 120px;
    overflow: hidden;
    position: relative;
}

.creation-method-item .method-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.creation-method-item:hover .method-banner img {
    transform: scale(1.05);
}

.creation-method-item .method-content {
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.creation-method-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.creation-method-item .method-content .method-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.creation-method-item .method-content .method-icon i {
    font-size: 16px;
    color: #667eea;
}

.creation-method-item:hover .method-content .method-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.creation-method-item:hover .method-content .method-icon i {
    color: white;
}

/* Creation Method Color Inheritance - Image (Green) */
.media-type-badge-card[data-media-type="image"] .creation-method-item,
.media-type-badge-card[data-type="image"] .creation-method-item {
    border-color: rgba(16, 185, 129, 0.2);
}

.media-type-badge-card[data-media-type="image"] .creation-method-item:hover,
.media-type-badge-card[data-type="image"] .creation-method-item:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.media-type-badge-card[data-media-type="image"] .creation-method-item .method-content .method-icon i,
.media-type-badge-card[data-type="image"] .creation-method-item .method-content .method-icon i {
    color: #10b981;
}

.media-type-badge-card[data-media-type="image"] .creation-method-item:hover .method-content .method-icon,
.media-type-badge-card[data-type="image"] .creation-method-item:hover .method-content .method-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Creation Method Color Inheritance - Video (Red) */
.media-type-badge-card[data-media-type="video"] .creation-method-item,
.media-type-badge-card[data-type="video"] .creation-method-item {
    border-color: rgba(239, 68, 68, 0.2);
}

.media-type-badge-card[data-media-type="video"] .creation-method-item:hover,
.media-type-badge-card[data-type="video"] .creation-method-item:hover {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.media-type-badge-card[data-media-type="video"] .creation-method-item .method-content .method-icon i,
.media-type-badge-card[data-type="video"] .creation-method-item .method-content .method-icon i {
    color: #ef4444;
}

.media-type-badge-card[data-media-type="video"] .creation-method-item:hover .method-content .method-icon,
.media-type-badge-card[data-type="video"] .creation-method-item:hover .method-content .method-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Creation Method Color Inheritance - Audio (Purple) */
.media-type-badge-card[data-media-type="audio"] .creation-method-item,
.media-type-badge-card[data-type="audio"] .creation-method-item {
    border-color: rgba(139, 92, 246, 0.2);
}

.media-type-badge-card[data-media-type="audio"] .creation-method-item:hover,
.media-type-badge-card[data-type="audio"] .creation-method-item:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.media-type-badge-card[data-media-type="audio"] .creation-method-item .method-content .method-icon i,
.media-type-badge-card[data-type="audio"] .creation-method-item .method-content .method-icon i {
    color: #8b5cf6;
}

.media-type-badge-card[data-media-type="audio"] .creation-method-item:hover .method-content .method-icon,
.media-type-badge-card[data-type="audio"] .creation-method-item:hover .method-content .method-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

/* Creation Method Color Inheritance - Text (Orange) */
.media-type-badge-card[data-media-type="text"] .creation-method-item,
.media-type-badge-card[data-type="text"] .creation-method-item {
    border-color: rgba(251, 146, 60, 0.2);
}

.media-type-badge-card[data-media-type="text"] .creation-method-item:hover,
.media-type-badge-card[data-type="text"] .creation-method-item:hover {
    border-color: rgba(251, 146, 60, 0.4);
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.2);
}

.media-type-badge-card[data-media-type="text"] .creation-method-item .method-content .method-icon i,
.media-type-badge-card[data-type="text"] .creation-method-item .method-content .method-icon i {
    color: #fb923c;
}

.media-type-badge-card[data-media-type="text"] .creation-method-item:hover .method-content .method-icon,
.media-type-badge-card[data-type="text"] .creation-method-item:hover .method-content .method-icon {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
}

/* Creation Method Color Inheritance - 3D (Cyan) */
.media-type-badge-card[data-media-type="3d"] .creation-method-item,
.media-type-badge-card[data-type="3d"] .creation-method-item {
    border-color: rgba(6, 182, 212, 0.2);
}

.media-type-badge-card[data-media-type="3d"] .creation-method-item:hover,
.media-type-badge-card[data-type="3d"] .creation-method-item:hover {
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

.media-type-badge-card[data-media-type="3d"] .creation-method-item .method-content .method-icon i,
.media-type-badge-card[data-type="3d"] .creation-method-item .method-content .method-icon i {
    color: #06b6d4;
}

.media-type-badge-card[data-media-type="3d"] .creation-method-item:hover .method-content .method-icon,
.media-type-badge-card[data-type="3d"] .creation-method-item:hover .method-content .method-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.creation-method-item .method-content .method-info {
    flex: 1;
}

.creation-method-item .method-content .method-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 0.25rem 0;
}

.creation-method-item .method-content .method-info p {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.3;
    margin: 0;
}

.no-methods {
    text-align: center;
    padding: 2rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Empty State */
.media-types-container .empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
}

.media-types-container .empty-state i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.media-types-container .empty-state p {
    font-size: 1rem;
    color: #94a3b8;
}

/* Empty State for Non-Logged In Users */
.gallery-empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.empty-state-icon i {
    font-size: 48px;
    color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
    .selection-display {
        padding: 12px;
        margin-bottom: 16px;
    }

    .generate-section .section-header h2 {
        font-size: 1.5rem;
    }

    .generate-section .section-header p {
        font-size: 0.875rem;
    }

    .media-types-container {
        grid-template-columns: 1fr;
        padding: 0 0.5rem 1rem;
    }

    .badge-card-header {
        padding: 1.25rem;
    }

    .creation-methods-list {
        grid-template-columns: 1fr;
    }

    .creation-methods-container {
        padding: 0.75rem 1rem 1rem;
    }
}

/* Mobile responsive styles for generation methods */
@media (max-width: 768px) {
    .generation-categories-section {
        padding: 16px 16px 0;
    }
    
    .categories-tabs {
        gap: 8px;
        padding: 0 0 16px;
    }
    
    .category-tab {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .category-tab i {
        font-size: 0.9rem;
    }
    
    .generation-methods-container {
        padding: 16px;
    }
    
    .generation-methods-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 16px;
    }
    
    .generation-method-badge {
        min-height: 280px; /* Much larger for mobile to show full banner */
    }
    
    .generation-method-badge-overlay {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
    
    .generation-method-badge-overlay i {
        font-size: 0.8rem;
    }
    
    .generation-method-content h4 {
        font-size: 1rem;
    }
    
    .generation-method-credits {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .generation-method-content {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .badge-card-header {
        padding: 1rem;
        gap: 0.75rem;
    }

    .media-type-badge-card .badge-icon {
        width: 45px;
        height: 45px;
    }

    .media-type-badge-card .badge-icon i {
        font-size: 20px;
    }

    .media-type-badge-card .badge-content h3 {
        font-size: 0.875rem;
    }

    .media-type-badge-card .badge-content p {
        font-size: 0.8125rem;
    }

    .creation-methods-container {
        padding: 0.75rem;
    }

    .creation-method-item .method-content {
        padding: 0.75rem;
    }

    .creation-method-item .method-banner {
        height: 100px;
    }

    .creation-method-item .method-content .method-icon {
        width: 30px;
        height: 30px;
    }

    .creation-method-item .method-content .method-icon i {
        font-size: 14px;
    }

    .creation-method-item .method-content .method-info h4 {
        font-size: 0.85rem;
    }

    .creation-method-item .method-content .method-info p {
        font-size: 0.7rem;
    }
}

/* ============================================
   Generation Modal Overrides for Transform Lab
   ============================================ */
.creation-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #000000 !important; /* Solid black background */
    z-index: 10003 !important; /* Higher than bottom nav */
    display: none; /* Hidden by default */
    align-items: flex-start !important;
    justify-content: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: hidden !important; /* Prevent scroll on overlay itself */
    overscroll-behavior: contain !important; /* Prevent scroll chaining */
}

/* Show modal when display is set to flex */
.creation-modal-overlay[style*="display: flex"],
.creation-modal-overlay[style*="display:flex"] {
    display: flex !important;
}

.creation-modal {
    background: #1a1a2e !important;
    width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    max-width: 600px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    position: relative !important;
    margin: 0 !important;
}

.creation-modal-close {
    display: flex !important; /* Make close button visible */
    align-items: center !important;
    justify-content: center !important;
    position: sticky !important; /* Sticky so it stays visible while scrolling */
    top: 0 !important;
    right: 0 !important;
    margin-left: auto !important;
    z-index: 100 !important;
    background: rgba(139, 92, 246, 0.2) !important;
    color: white !important;
    border: none !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 0 0 0 12px !important;
    cursor: pointer !important;
    font-size: 24px !important;
    transition: all 0.2s ease !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.creation-modal-close:hover {
    background: rgba(139, 92, 246, 0.4) !important;
    transform: scale(1.1) !important;
}

.creation-modal-close:active {
    transform: scale(0.95) !important;
}

.creation-modal-content {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 20px !important;
    flex: 1 !important;
    -webkit-overflow-scrolling: touch !important; /* Smooth scrolling on iOS */
    overscroll-behavior: contain !important; /* Prevent scroll chaining to body */
    height: 100% !important;
}

.create-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.create-menu-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
   
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(102, 126, 234, 0.2);
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.create-menu-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
}

.create-menu-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #e2e8f0;
}

.create-menu-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.create-menu-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    transform: rotate(90deg);
}

.create-menu-content {
    padding: var(--space-xs);
    overflow-y: auto;
    flex: 1;
}

.media-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}

.media-type-card {
    position: relative;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.4);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.media-type-card:hover {
    border-color: rgba(102, 126, 234, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.media-type-card.active {
    background: rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.7);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4), 0 0 30px rgba(102, 126, 234, 0.2);
}

.media-type-image {
    width: 100%;
    aspect-ratio: 12/16;
    overflow: hidden;
    position: relative;
    border-radius: 12px 12px 0 0;
}

.media-type-image img,
.media-type-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-type-card:hover .media-type-image img {
    transform: scale(1.05);
}

.media-type-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(102, 126, 234, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(102, 126, 234, 0.6);
    font-size: 3rem;
}

.media-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.media-type-btn-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.media-type-btn-overlay:hover {
    background: rgba(102, 126, 234, 0.9);
    transform: translateY(-2px);
}

.media-type-btn-overlay i {
    color: #f59e0b;
    font-size: 0.9rem;
}

.media-type-content {
    padding: 16px;
}

.media-type-content h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8f0;
    text-align: center;
}

/* Mobile responsive styles for media type cards */
@media (max-width: 768px) {
    .media-types-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 16px;
        padding: 16px;
    }
    
    .media-type-card {
        min-height: 200px;
    }
    
    .media-type-btn-overlay {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
    
    .media-type-btn-overlay i {
        font-size: 0.8rem;
    }
    
    .media-type-content h3 {
        font-size: 1rem;
    }
}

.creation-methods {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    gap: 12px;
}

.creation-method {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
   margin-bottom: var(--space-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.creation-method:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    transform: translateX(4px);
}

.creation-method i {
    font-size: 20px;
    color: #667eea;
}

.creation-method span {
    font-size: 1rem;
    font-weight: 500;
    color: #e2e8f0;
}

/* ============================================
   Mobile Creation Form Styles
   ============================================ */
.mobile-creation-form {
    color: white;
}

.selection-display {
    position: relative;
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    padding: 15px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s ease;
}

/* Badge Color Themes - Transform (purple/blue) */
.selection-display.theme-transform {
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border-color: rgba(102, 126, 234, 0.3);
}
.selection-display.theme-transform:hover {
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
}

/* Badge Color Themes - Generate (pink) */
.selection-display.theme-generate {
    background: linear-gradient(145deg, rgba(240, 147, 251, 0.15), rgba(245, 87, 108, 0.15));
    border-color: rgba(240, 147, 251, 0.3);
}
.selection-display.theme-generate:hover {
    box-shadow: 0 12px 40px rgba(240, 147, 251, 0.3);
    border-color: rgba(240, 147, 251, 0.5);
}

/* Badge Color Themes - Gallery (teal) */
.selection-display.theme-gallery {
    background: linear-gradient(145deg, rgba(78, 205, 196, 0.15), rgba(68, 160, 141, 0.15));
    border-color: rgba(78, 205, 196, 0.3);
}
.selection-display.theme-gallery:hover {
    box-shadow: 0 12px 40px rgba(78, 205, 196, 0.3);
    border-color: rgba(78, 205, 196, 0.5);
}

/* Badge Color Themes - Shop (yellow) */
.selection-display.theme-shop {
    background: linear-gradient(145deg, rgba(255, 217, 61, 0.15), rgba(255, 179, 0, 0.15));
    border-color: rgba(255, 217, 61, 0.3);
}
.selection-display.theme-shop:hover {
    box-shadow: 0 12px 40px rgba(255, 217, 61, 0.3);
    border-color: rgba(255, 217, 61, 0.5);
}

/* Badge Color Themes - Creators (red) */
.selection-display.theme-creators {
    background: linear-gradient(145deg, rgba(255, 107, 107, 0.15), rgba(245, 59, 87, 0.15));
    border-color: rgba(255, 107, 107, 0.3);
}
.selection-display.theme-creators:hover {
    box-shadow: 0 12px 40px rgba(255, 107, 107, 0.3);
    border-color: rgba(255, 107, 107, 0.5);
}

/* Badge Color Themes - Settings (gray/purple) */
.selection-display.theme-settings {
    background: linear-gradient(145deg, rgba(139, 139, 167, 0.15), rgba(107, 107, 147, 0.15));
    border-color: rgba(139, 139, 167, 0.3);
}
.selection-display.theme-settings:hover {
    box-shadow: 0 12px 40px rgba(139, 139, 167, 0.3);
    border-color: rgba(139, 139, 167, 0.5);
}

.selection-display::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 ease;
}

/* Glossy shine effect (like home badges) */
.selection-display::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    pointer-events: none;
    animation: shine 3s ease-in-out infinite;
    z-index: 1;
}

.selection-display:hover::before {
    left: 100%;
}

.selection-display:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.selection-info {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.selected-media-type {
    color: #ea66aa;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.selected-creation-method {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}

.form-container {
    margin-top: 20px;
}

.generator-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    color: white !important;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.required {
    color: #ef4444 !important;
    font-size: 0.8rem;
}

.form-input {
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white !important;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input.error,
input.error,
textarea.error,
select.error {
    border-color: #ef4444 !important;
    border-width: 2px !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
    animation: shake 0.3s ease-in-out;
}

/* Error state for file upload containers */
.file-upload-container.error,
.file-upload-container:has(input.error) {
    border-color: #ef4444 !important;
    border-width: 2px !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Error message styling */
.field-error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

/* Shake animation for error fields */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* Slide down animation for error messages */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-input option {
    color: #1f2937 !important;
    background-color: #ffffff !important;
}

.form-range {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

.form-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
}

.range-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.range-value {
    text-align: center;
    color: white;
    font-weight: 500;
    font-size: 1.1rem;
}

.form-help {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.8rem;
    margin-top: 5px;
}

.dynamic-form-elements {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.no-form-elements {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.no-form-elements i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    color: #6b7280;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    font-size: 1rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
}

/* Radio and Checkbox Groups */
.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-item,
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-item input[type="radio"],
.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.radio-item label,
.checkbox-item label {
    color: #ffffff !important;
    cursor: pointer;
    font-size: 14px;
}

/* Custom Checkbox Styles */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    gap: 8px;
}

.checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    z-index: 1;
    opacity: 0;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Switch Styles */
.switch-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-switch {
    width: 44px;
    height: 24px;
    appearance: none;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.form-switch:checked {
    background-color: #667eea;
}

.form-switch::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ffffff;
    top: 2px;
    left: 2px;
    transition: transform 0.2s ease;
}

.form-switch:checked::before {
    transform: translateX(20px);
}

.switch-label {
    color: #ffffff !important;
    cursor: pointer;
    font-size: 14px;
}

/* Size Input Styles */
.size-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.size-input {
    flex: 1;
    min-width: 0;
}

.size-separator {
    color: #a0aec0;
    font-weight: 500;
    font-size: 16px;
    flex-shrink: 0;
}

/* Model Price Info */
.model-price-info {
    margin-top: 8px;
    font-size: 14px;
    color: #94a3b8;
}

.model-price-info i {
    color: #fbbf24;
    margin-right: 4px;
}

/* ============================================
   Style Selection Modal Styles
   ============================================ */
.style-selection-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #000000 !important; /* Solid black background like dynamic form */
    z-index: 10004 !important;  /* Higher than dynamic form modal (10003) */
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden !important;
    overscroll-behavior: contain !important;
}

.style-selection-modal.show {
    opacity: 1;
    visibility: visible;
}

.style-selection-content {
    background: #1a1a2e !important;
    width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    max-width: 600px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    position: relative !important;
    margin: 0 !important;
    border-radius: 0 !important; /* No border radius for full screen */
}

.style-selection-modal.show .style-selection-content {
    transform: scale(1);
}

.style-selection-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0; /* Don't shrink the header */
}

.style-selection-title {
    font-size: 16px;  /* Reduced from 20px */
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.style-selection-close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: sticky !important;
    top: 0 !important;
    right: 0 !important;
    margin-left: auto !important;
    z-index: 100 !important;
    background: rgba(139, 92, 246, 0.2) !important;
    color: white !important;
    border: none !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 0 0 0 12px !important;
    cursor: pointer !important;
    font-size: 24px !important;
    transition: all 0.2s ease !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.style-selection-close:hover {
    background: rgba(139, 92, 246, 0.4) !important;
    transform: scale(1.1) !important;
}

.style-selection-close:active {
    transform: scale(0.95) !important;
}

.style-categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 20px !important;
    flex: 1 !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    min-height: 0;  /* Allow flex shrinking to enable scroll */
    height: 100%;  /* Take full available height */
}

.style-category {
    background: rgba(255, 255, 255, 0.1);  /* Lighter gray for category background */
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;  /* Keep for border-radius clipping */
    display: flex;
    flex-direction: column;
    flex-shrink: 0;  /* Don't allow shrinking */
}

.style-category-header {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.style-category-header:hover {
    background: rgba(255, 255, 255, 0.15);
}

.style-category-icon {
    margin-right: 12px;
    font-size: 16px;  /* Reduced from 18px */
    color: #667eea;
}

.style-category-info {
    flex: 1;
}

.style-category-name {
    font-size: 14px;  /* Reduced from 16px */
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 2px;
}

.style-category-description {
    font-size: 12px;  /* Reduced from 14px */
    color: #a0aec0;
}

.style-category-toggle {
    color: #a0aec0;
    transition: transform 0.2s ease;
}

.style-category-styles {
    padding: 15px;
    display: none;
    background: rgba(0, 0, 0, 0.6);  /* Much darker background for clear distinction */
    border-top: 2px solid rgba(139, 92, 246, 0.3);  /* Purple border to show expansion */
    flex-shrink: 0;  /* Don't allow shrinking when expanded */
}

.style-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.15);  /* Much lighter to stand out from very dark container */
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;  /* Don't allow style items to shrink */
}

.style-item:last-child {
    margin-bottom: 0;  /* No margin on last item */
}

.style-item:hover {
    background: rgba(255, 255, 255, 0.22);  /* Brighter on hover */
    border-color: rgba(255, 255, 255, 0.3);
}

.style-item.selected {
    background: rgba(102, 126, 234, 0.25);  /* More vibrant purple for selected */
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);  /* Glow effect */
}

.style-item-icon {
    margin-right: 12px;
    font-size: 14px;  /* Reduced from 16px */
    color: #a78bfa;
}

.style-item-info {
    flex: 1;
}

.style-item-name {
    font-size: 13px;  /* Reduced from 14px */
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 2px;
}

.style-item-description {
    font-size: 12px;
    color: #a0aec0;
}

.style-selection-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;  /* Stack vertically instead of horizontally */
    gap: 12px;  /* Add spacing between text and buttons */
    flex-shrink: 0; /* Don't shrink the footer */
    background: #1a1a2e; /* Match content background */
}

.selected-style-info {
    color: #a0aec0;
    font-size: 14px;
}

.style-selection-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;  /* Align buttons to the right */
}

.btn-style-cancel {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #a0aec0;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-style-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.btn-style-apply {
    background: #667eea;
    border: none;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-style-apply:hover:not(:disabled) {
    background: #5a6fd8;
}

.btn-style-apply:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: #a0aec0;
    cursor: not-allowed;
}

/* Style Selection Container */
.style-selection-container {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.style-selection-label {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
    display: block;
}

.style-selection-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.style-selection-preview:hover {
    background: rgba(102, 126, 234, 0.2);
}

.style-selection-preview-icon {
    font-size: 18px;
    color: #a78bfa;
}

.style-selection-preview-info {
    flex: 1;
}

.style-selection-preview-name {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    margin: 0 0 2px 0;
}

.style-selection-preview-description {
    font-size: 12px;
    color: #a0aec0;
    margin: 0;
}

.style-selection-preview-remove {
    color: #a0aec0;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.style-selection-preview-remove:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.style-selection-placeholder {
    color: #a0aec0;
    font-style: italic;
    text-align: center;
    padding: 20px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.style-selection-placeholder:hover {
    color: #ffffff;
}

/* ============================================
   Completion Modal Styles
   ============================================ */
.completion-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.completion-modal-overlay.show {
    opacity: 1;
}

.completion-modal-overlay.fullscreen-modal .completion-modal {
    max-width: 100%;
    width: 100%;
    height: 100%;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.completion-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.completion-modal-overlay.show .completion-modal {
    transform: scale(1);
}

.completion-modal .modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.completion-modal .modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.completion-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: success-bounce 0.6s ease;
}

@keyframes success-bounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.completion-icon i {
    font-size: 48px;
    color: white;
}

.completion-modal h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

.completion-modal p {
    font-size: 1.125rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.completion-media {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.completion-media img,
.completion-media video {
    max-width: 100%;
    max-height: 400px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.audio-player-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px;
}

.audio-player-container audio {
    width: 100%;
    max-width: 400px;
}

.completion-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.completion-actions .btn {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.completion-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Dark shiny download button - matching gallery style */
#completionDownloadBtn {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%) !important;
    color: #c0c0c0 !important;
    border: 1px solid #404040 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

#completionDownloadBtn:hover {
    background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 50%, #2d2d2d 100%) !important;
    color: #e0e0e0 !important;
    border-color: #505050 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px) !important;
}

#completionDownloadBtn i {
    color: #c0c0c0 !important;
}

.completion-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.completion-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.completion-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ========================================
   HOME SECTION STYLES
   ======================================== */

/* Home Section Container */
.home-section {
    padding: 2rem 1rem;
    padding-bottom: calc(80px + 2rem + env(safe-area-inset-bottom));
    max-width: 1200px;
    margin: 0 auto;
}

/* Video Showcase */
.home-video-showcase {
    background-color: #000 !important;
}

.home-video-showcase .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.home-video-showcase .section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.home-video-showcase .section-header h2 i {
    color: var(--primary-color);
}

.home-video-showcase .section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.home-videos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    min-height: 200px;
    background-color: #000 !important;
}

.home-video-item {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000 !important;
    background-color: #000 !important;
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-video-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.home-video-item video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000 !important;
    background-color: #000 !important;
}

/* Hide ALL default video controls and play buttons - MAXIMUM AGGRESSION */
.home-video-item video {
    pointer-events: auto;
}

.home-video-item video::-webkit-media-controls,
.home-video-item video::-webkit-media-controls-enclosure,
.home-video-item video::-webkit-media-controls-panel,
.home-video-item video::-webkit-media-controls-play-button,
.home-video-item video::-webkit-media-controls-start-playback-button,
.home-video-item video::-webkit-media-controls-overlay-play-button,
.home-video-item video::-webkit-media-controls-overlay-enclosure {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    -webkit-appearance: none !important;
}

/* Firefox */
.home-video-item video::-moz-media-controls {
    display: none !important;
}

/* Additional mobile-specific hacks */
.home-video-item video[poster] {
    object-fit: cover;
    background-color: #000 !important;
}

.home-video-item video::before {
    display: none !important;
    background-color: #000 !important;
}

.home-video-item video::after {
    display: none !important;
    background-color: #000 !important;
}

/* Force black background on all video states */
.home-video-item video:loading,
.home-video-item video:buffering,
.home-video-item video:-webkit-media-controls,
.home-video-item video[controls] {
    background-color: #000 !important;
}

/* Custom small play icon overlay - only shows when NOT playing */
.hero-video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.hero-video-play-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-video-play-icon i {
    margin-left: 2px;
}

/* Empty State Styling */
.home-videos-container .empty-state,
.home-videos-container .loading-state,
.home-videos-container .video-loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    background: #000 !important;
    background-color: #000 !important;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.home-videos-container .empty-state i,
.home-videos-container .loading-state i,
.home-videos-container .video-loading-state i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.home-videos-container .empty-state p,
.home-videos-container .loading-state p,
.home-videos-container .video-loading-state p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

.home-videos-container .video-loading-state i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Announcement Slider */
.home-announcement {
    
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: var(--radius-lg);
  
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.announcement-slider {
    width: 100%;
    overflow: hidden;
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slide-announcement 20s linear infinite;
    white-space: nowrap;
}

.announcement-content i {
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.announcement-text {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    display: inline-block;
}

.announcement-text .separator {
    margin: 0 1rem;
    color: var(--primary-color);
}

@keyframes slide-announcement {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Duplicate content for seamless loop */
.announcement-slider::before {
    content: attr(data-text);
}

/* Feature Badges */
.home-badges {
    margin-top: 3rem;
}

.home-badges .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.home-badges .section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.home-badges .section-header h2 i {
    color: var(--primary-color);
}

.home-badges .section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Glossy Badge Styling */
.feature-badge {
    position: relative;
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Individual Badge Colors */
.feature-badge[data-feature="transform"] {
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border-color: rgba(102, 126, 234, 0.3);
}

.feature-badge[data-feature="transform"] .badge-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.feature-badge[data-feature="transform"]:hover {
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
}

.feature-badge[data-feature="generate"] {
    background: linear-gradient(145deg, rgba(240, 147, 251, 0.15), rgba(245, 87, 108, 0.15));
    border-color: rgba(240, 147, 251, 0.3);
}

.feature-badge[data-feature="generate"] .badge-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.4);
}

.feature-badge[data-feature="generate"]:hover {
    box-shadow: 0 20px 60px rgba(240, 147, 251, 0.3);
    border-color: rgba(240, 147, 251, 0.5);
}

.feature-badge[data-feature="gallery"] {
    background: linear-gradient(145deg, rgba(78, 205, 196, 0.15), rgba(68, 160, 141, 0.15));
    border-color: rgba(78, 205, 196, 0.3);
}

.feature-badge[data-feature="gallery"] .badge-icon {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.4);
}

.feature-badge[data-feature="gallery"]:hover {
    box-shadow: 0 20px 60px rgba(78, 205, 196, 0.3);
    border-color: rgba(78, 205, 196, 0.5);
}

.feature-badge[data-feature="shop"] {
    background: linear-gradient(145deg, rgba(255, 217, 61, 0.15), rgba(255, 179, 0, 0.15));
    border-color: rgba(255, 217, 61, 0.3);
}

.feature-badge[data-feature="shop"] .badge-icon {
    background: linear-gradient(135deg, #ffd93d 0%, #ffb300 100%);
    box-shadow: 0 10px 30px rgba(255, 217, 61, 0.4);
}

.feature-badge[data-feature="shop"]:hover {
    box-shadow: 0 20px 60px rgba(255, 217, 61, 0.3);
    border-color: rgba(255, 217, 61, 0.5);
}

.feature-badge[data-feature="creators"] {
    background: linear-gradient(145deg, rgba(255, 107, 107, 0.15), rgba(245, 59, 87, 0.15));
    border-color: rgba(255, 107, 107, 0.3);
}

.feature-badge[data-feature="creators"] .badge-icon {
    background: linear-gradient(135deg, #ff6b6b 0%, #f53b57 100%);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
}

.feature-badge[data-feature="creators"]:hover {
    box-shadow: 0 20px 60px rgba(255, 107, 107, 0.3);
    border-color: rgba(255, 107, 107, 0.5);
}

.feature-badge[data-feature="settings"] {
    background: linear-gradient(145deg, rgba(139, 139, 167, 0.15), rgba(107, 107, 147, 0.15));
    border-color: rgba(139, 139, 167, 0.3);
}

.feature-badge[data-feature="settings"] .badge-icon {
    background: linear-gradient(135deg, #8b8ba7 0%, #6b6b93 100%);
    box-shadow: 0 10px 30px rgba(139, 139, 167, 0.4);
}

.feature-badge[data-feature="settings"]:hover {
    box-shadow: 0 20px 60px rgba(139, 139, 167, 0.3);
    border-color: rgba(139, 139, 167, 0.5);
}

.feature-badge::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 ease;
}

.feature-badge:hover::before {
    left: 100%;
}

.feature-badge:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
}

.badge-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-badge:hover .badge-glow {
    opacity: 1;
}

.badge-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-badge:hover .badge-icon {
    transform: rotateY(360deg);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.badge-icon i {
    font-size: 2rem;
    color: #fff;
}

.feature-badge h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-badge p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.badge-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    pointer-events: none;
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0%, 100% {
        opacity: 0;
        transform: rotate(45deg) translate(-100%, -100%);
    }
    50% {
        opacity: 1;
        transform: rotate(45deg) translate(100%, 100%);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .home-section {
        padding: 1rem 0.75rem;
    }
    
    .home-video-showcase .section-header h2,
    .home-badges .section-header h2 {
        font-size: 1.5rem;
    }
    
    .home-videos-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .feature-badge {
        padding: 1.5rem 1rem;
    }
    
    .badge-icon {
        width: 60px;
        height: 60px;
    }
    
    .badge-icon i {
        font-size: 1.5rem;
    }
    
    .feature-badge h3 {
        font-size: 1.1rem;
    }
    
    .feature-badge p {
        font-size: 0.85rem;
    }
    
    .announcement-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .home-section {
        padding: 0.75rem 0.5rem;
    }
    
    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .home-video-showcase .section-header h2,
    .home-badges .section-header h2 {
        font-size: 1.25rem;
    }
    
    .feature-badge {
        padding: 1.25rem 0.75rem;
    }
    
    .badge-icon {
        width: 50px;
        height: 50px;
    }
    
    .badge-icon i {
        font-size: 1.25rem;
    }
    
    .feature-badge h3 {
        font-size: 0.95rem;
    }
    
    .feature-badge p {
        font-size: 0.75rem;
    }
}

/* ============================================
   File Upload Styles for Creation Forms
   ============================================ */

.upload-container {
    width: 100%;
}

.upload-area {
    border: 2px dashed #4a5568;
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(26, 57, 75, 0.3);
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: #667eea;
    background: rgba(26, 57, 75, 0.5);
    transform: translateY(-2px);
}

.upload-area.drag-over {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.02);
}

.upload-area.file-selected {
    border-color: #48bb78;
    background: rgba(72, 187, 120, 0.05);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.upload-placeholder i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.upload-text {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.upload-subtext {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.upload-preview {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.upload-preview .preview-image {
    max-width: 100%;
    max-height: 250px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.remove-preview,
.remove-selection {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.remove-preview:hover,
.remove-selection:hover {
    background: rgba(220, 38, 38, 1);
    transform: scale(1.1);
}

.file-input-hidden {
    display: none !important;
}

/* Library Section Styles */
.library-section {
    padding: 1.5rem;
    background: rgba(26, 57, 75, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.library-selector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.library-btn {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.library-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.library-btn:active {
    transform: translateY(-1px);
}

.library-btn i {
    font-size: 1.3rem;
}

.selected-image-preview,
.selected-multiple-preview {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 2px dashed rgba(102, 126, 234, 0.3);
}

.selected-image-preview .preview-image {
    max-width: 100%;
    max-height: 250px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.selected-multiple-preview {
    flex-direction: column;
}

.selected-multiple-preview .preview-images-container {
    width: 100%;
}

.selected-image-preview .remove-selection,
.selected-multiple-preview .remove-selection {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Form Group File Container */
.form-group-file {
    width: 100%;
}

/* Upload/Library Toggle Styles */
.upload-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.25rem;
    background: rgba(26, 57, 75, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.upload-toggle .toggle-btn {
    flex: 1;
    padding: 0.875rem 1.25rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.upload-toggle .toggle-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

.upload-toggle .toggle-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

.upload-toggle .toggle-btn i {
    font-size: 1.1rem;
}

/* Multiple Image Previews */
.preview-images-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    width: 100%;
    padding: 0.5rem;
}

.preview-image-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.preview-image-item .preview-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.preview-image-name {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    word-break: break-word;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Library Modal Styles */
.library-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #000000 !important; /* Solid black background */
    z-index: 99999 !important;  /* Highest z-index to always stay on top */
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    opacity: 0;
    visibility: hidden; /* Hide when not shown */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow: hidden !important;
    overscroll-behavior: contain !important;
    padding: 0 !important;
    pointer-events: none !important; /* Allow clicking through when hidden */
}

.library-modal-overlay.show {
    opacity: 1 !important;
    visibility: visible !important; /* Make visible when shown */
    pointer-events: auto !important; /* Enable clicking when shown */
}

.library-modal {
    background: #1a1a2e !important;
    width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    max-width: 600px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    position: relative !important;
    margin: 0 !important;
    border-radius: 0 !important; /* No border radius for full screen */
    transform: scale(1);
    z-index: 100000 !important; /* Ensure modal content stays on top within overlay */
}

.library-modal-overlay.show .library-modal {
    transform: scale(1);
}

.library-modal-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0; /* Don't shrink the header */
}

.library-modal-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
}

.library-modal-close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: sticky !important;
    top: 0 !important;
    right: 0 !important;
    margin-left: auto !important;
    z-index: 100001 !important; /* Ensure close button is on top of modal content */
    background: rgba(139, 92, 246, 0.2) !important;
    color: white !important;
    border: none !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 0 0 0 12px !important;
    cursor: pointer !important;
    font-size: 24px !important;
    transition: all 0.2s ease !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.library-modal-close:hover {
    background: rgba(139, 92, 246, 0.4) !important;
    transform: scale(1.1) !important;
}

.library-modal-close:active {
    transform: scale(0.95) !important;
}

.library-modal-content {
    flex: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 20px !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.library-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.library-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.library-item.selected {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.library-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.library-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(102, 126, 234, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.library-item.selected .library-item-overlay {
    opacity: 1;
}

.library-item-overlay i {
    font-size: 3rem;
    color: white;
}

.library-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    gap: 0.5rem;
}

.library-item-placeholder i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
}

.library-item-placeholder p {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.library-modal-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0; /* Don't shrink the footer */
    background: #1a1a2e; /* Match content background */
}

.selection-info {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    flex: 1;
}

.library-modal-footer .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.library-modal-footer .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.library-modal-footer .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.library-modal-footer .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.library-modal-footer .btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.library-modal-footer .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Library Loading Indicator */
.library-loading {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.library-loading i {
    font-size: 24px;
    color: #667eea;
}

.library-loading p {
    margin-top: 10px;
    font-size: 14px;
}

/* Mobile responsive adjustments for upload components */
@media (max-width: 768px) {
    .upload-area {
        padding: 1.5rem 0.75rem;
    }
    
    .upload-placeholder i {
        font-size: 2.5rem;
    }
    
    .upload-text {
        font-size: 0.9rem;
    }
    
    .upload-subtext {
        font-size: 0.8rem;
    }
    
    .upload-preview .preview-image {
        max-height: 200px;
    }
    
    .library-btn {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
    
    .library-modal {
        width: 100vw;
        height: 100vh;
    }
    
    .library-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    
    .preview-images-container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (max-width: 480px) {
    .upload-area {
        padding: 1.25rem 0.5rem;
    }
    
    .upload-placeholder i {
        font-size: 2rem;
    }
    
    .upload-text {
        font-size: 0.85rem;
    }
    
    .upload-preview .preview-image {
        max-height: 150px;
    }
    
    .upload-toggle {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .upload-toggle .toggle-btn {
        padding: 0.625rem;
        font-size: 0.8rem;
    }
    
    .library-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .library-modal-header h3 {
        font-size: 1rem;
    }
    
   /* .library-modal-overlay {
        /* Keep full screen on all sizes 
    } */
    
    .library-modal-footer {
        flex-direction: column;
    }
    
    .library-modal-footer .btn {
        width: 100%;
    }
    
    .preview-images-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   FOOTER STYLING
   =================================== */

.transform-lab-footer {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-top: 1px solid var(--border-color);
    padding: 2rem 1rem;
    margin-top: auto;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    letter-spacing: 0.3px;
    line-height: 1.6;
}

.footer-content .mediasnap-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    position: relative;
    display: inline-block;
    padding: 0 4px;
}

.footer-content .mediasnap-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--gradient-end));
    transition: width var(--transition-medium);
}

.footer-content .mediasnap-link:hover {
    color: var(--gradient-end);
    transform: translateY(-1px);
}

.footer-content .mediasnap-link:hover::after {
    width: 100%;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .transform-lab-footer {
        background: linear-gradient(135deg, rgba(30, 30, 40, 0.95) 0%, rgba(20, 20, 30, 0.98) 100%);
        border-top-color: rgba(255, 255, 255, 0.1);
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .transform-lab-footer {
        padding: 1.5rem 1rem;
    }
    
    .footer-content p {
        font-size: 0.85rem;
    }
}
