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

:root {
    --primary-color: #c084fc;
    --primary-dark: #a855f7;
    --secondary-color: #e9d5ff;
    --success-color: #10b981;
    --error-color: #f472b6;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-primary: #1e1b4b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --shadow-glass: 0 8px 32px 0 rgba(168, 85, 247, 0.15);
    --indigo-600: #4f46e5;
    --indigo-50: #eef2ff;
    --fuchsia-500: #d946ef;
    --slate-800: #1e293b;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(to bottom, #f5f3ff 0%, #ffffff 30%, #fdf4ff 100%);
    color: var(--slate-800);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* App Wrapper */
.app-wrapper {
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Top Bar - New Design */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    background: rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.top-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar-changelog-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    color: var(--slate-700);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.top-bar-changelog-link:hover {
    background: linear-gradient(135deg,
        rgba(251, 207, 232, 0.6) 0%,
        rgba(233, 213, 255, 0.6) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logo-container:hover .logo-icon {
    transform: scale(1.05);
}

.logo-icon {
    width: auto;
    min-width: 48px;
    height: 32px;
    padding: 0 10px;
    border-radius: 12px;
    background: linear-gradient(135deg,
        rgba(251, 182, 222, 0.5) 0%,
        rgba(244, 114, 182, 0.55) 40%,
        rgba(216, 103, 192, 0.5) 100%);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 2px 6px rgba(236, 72, 153, 0.12),
        0 1px 2px rgba(0, 0, 0, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.2s ease;
}

.logo-container:active .logo-icon {
    transform: scale(0.95);
    box-shadow:
        0 1px 3px rgba(236, 72, 153, 0.1),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
}


.logo-tap {
    font-weight: 700;
    font-size: 1.05875rem;
    color: white;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.logo-text {
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--slate-800);
    font-size: 1.21em;
    position: relative;
}

.logo-smile {
    position: relative;
    display: inline-block;
    color: #ec4899;
}

.logo-smile::after {
    content: ')';
    position: absolute;
    bottom: -6px;
    left: 52%;
    transform: translateX(-50%) rotate(90deg);
    font-size: 0.8em;
    color: var(--slate-800);
    line-height: 1;
    font-weight: 500;
    -webkit-text-stroke: 0.5px var(--slate-800);
    text-stroke: 0.5px var(--slate-800);
    display: block;
}

.top-bar-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
}

.sparkles-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.sparkles-icon svg {
    width: 16px;
    height: 16px;
}

.chevron-down {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.chevron-down svg {
    width: 16px;
    height: 16px;
}

.tips-toggle-btn.active .chevron-down {
    transform: rotate(180deg);
}


.badge-text {
    color: var(--slate-600);
}

.badge-text-responsive {
    display: none;
}

@media (min-width: 640px) {
    .badge-text-responsive {
        display: inline;
    }
}

/* Hero Section - New Design */
.hero-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 16px 8px;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--slate-800);
    margin-bottom: 8px;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }
}

.hero-subtitle {
    margin-top: 8px;
    font-size: 0.875rem;
    color: var(--slate-600);
    max-width: 42rem;
    line-height: 1.6;
}

/* Stepper Navigation - New Design */
.stepper-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8px 16px;
}

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

.stepper-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: left;
    width: 100%;
}

.stepper-btn:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stepper-btn.active {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stepper-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(196, 181, 253, 0.4) 0%, rgba(167, 139, 250, 0.35) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    box-shadow: 
        0 4px 12px rgba(167, 139, 250, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(167, 139, 250, 0.2);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.stepper-icon::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%);
    border-radius: 12px;
    pointer-events: none;
}

.stepper-icon svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.stepper-btn.active .stepper-icon {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.6) 0%, rgba(139, 92, 246, 0.55) 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 6px 16px rgba(167, 139, 250, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(139, 92, 246, 0.3);
}

.stepper-content {
    flex: 1;
}

.stepper-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 4px;
}

.stepper-subtitle {
    font-size: 0.875rem;
    color: var(--slate-500);
}

.stepper-arrow {
    color: var(--slate-400);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.stepper-arrow svg {
    width: 20px;
    height: 20px;
}

.stepper-btn:hover .stepper-arrow {
    transform: translateX(2px);
}

/* Main Content Grid - New Design */
.main-content-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 1024px) {
    .main-content-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* Upload Section Main */
.upload-section-main {
    position: relative;
    overflow: visible;
    min-height: 400px;
    padding: 20px;
}

.upload-card-step {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

@media (max-width: 768px) {
    .top-bar-changelog-link {
        padding: 8px 12px;
        font-size: 0.875rem;
    }

    .top-bar-right {
        gap: 8px;
    }

    .upload-card-step {
        position: relative !important;
        width: 100% !important;
        margin-bottom: 20px;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }
    
    .upload-card-step.step-active,
    .upload-card-step.step-slide-in-left,
    .upload-card-step.step-slide-in-right,
    .upload-card-step.step-slide-out-left,
    .upload-card-step.step-slide-out-right {
        transform: none !important;
        opacity: 1 !important;
    }
    
    .upload-section-main {
        overflow: visible;
        padding: 0;
        min-height: auto;
    }
    
    .main-content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar-section {
        order: 2;
    }
    
    .upload-section-main {
        order: 1;
    }
}

.upload-card-step.step-slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
}

.upload-card-step.step-slide-out-right {
    transform: translateX(100%);
    opacity: 0;
}

.upload-card-step.step-slide-in-right {
    transform: translateX(100%);
    opacity: 0;
}

.upload-card-step.step-slide-in-left {
    transform: translateX(-100%);
    opacity: 0;
}

.upload-card-step.step-active {
    transform: translateX(0);
    opacity: 1;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.step-icon-large {
    width: 20px;
    height: 20px;
    color: #a78bfa;
    flex-shrink: 0;
}

.step-icon-large svg {
    width: 20px;
    height: 20px;
}

.step-title-large {
    font-weight: 600;
    color: var(--slate-800);
    font-size: 1rem;
}

.upload-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 16px;
}

@media (min-width: 768px) {
    .upload-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.garment-upload-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 0;
}

@media (min-width: 1024px) {
    .garment-upload-grid {
        grid-template-columns: 1fr 300px;
    }
}

.garment-upload-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Upload Zone Wrapper */
.upload-zone-wrapper {
    position: relative;
}

#step2Content .upload-zone-wrapper {
    min-height: 0;
}

#step2Content .preview-container {
    margin-top: 12px;
    max-height: 100px;
    overflow: hidden;
    position: relative;
}

#step2Content .preview-item {
    max-height: 100px;
}

#step2Content .preview-item img {
    max-height: 100px;
    height: auto;
}

#step2Content .requirements-list {
    margin: 6px 0;
    line-height: 1.5;
}

#step2Content .requirements-list li {
    margin: 2px 0;
    font-size: 0.8125rem;
}

.upload-zone {
    position: relative;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 2px dashed rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.upload-zone-person {
    border-color: rgba(255, 255, 255, 0.4);
}

.upload-zone-person:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.3);
}

.upload-zone-garment {
    border-color: rgba(255, 255, 255, 0.4);
}

.upload-zone-garment:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.3);
}

.upload-zone.drag-over {
    transform: scale(1.01);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.upload-icon-large {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    color: var(--slate-400);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.upload-icon-large svg {
    width: 40px;
    height: 40px;
}

.upload-title {
    font-weight: 500;
    color: var(--slate-800);
    margin-bottom: 12px;
    margin-top: 12px;
    font-size: 1rem;
}

.upload-subtitle {
    font-size: 0.875rem;
    color: var(--slate-500);
    margin-bottom: 16px;
}

.upload-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 0;
}

.btn-upload-primary {
    border-radius: 8px;
    padding: 8px 16px;
    background: var(--slate-800);
    color: white;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-upload-primary:hover {
    opacity: 0.9;
}

.btn-upload-secondary {
    border-radius: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-upload-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Requirements Card */
.requirements-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 20px;
    font-size: 0.875rem;
    color: var(--slate-600);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    align-self: start;
}

.requirements-title {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--slate-800);
}

.requirements-list {
    list-style: disc;
    list-style-position: inside;
    margin: 8px 0;
    line-height: 1.6;
}

.requirements-list li {
    margin: 4px 0;
}

.requirement-error {
    color: #e11d48;
}

/* Category Selector New */
.category-selector-new {
    margin-bottom: 0;
}

.category-label-new {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--slate-800);
}

.category-options-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.category-option-new {
    cursor: pointer;
}

.category-option-new input[type="radio"] {
    display: none;
}

.category-btn-new {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.category-option-new input[type="radio"]:checked + .category-btn-new {
    background: rgba(99, 102, 241, 0.08);
    border: 2px solid var(--indigo-600);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.category-btn-new:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.category-icon-new {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--slate-600);
    transition: all 0.3s ease;
}

.category-option-new input[type="radio"]:checked + .category-btn-new .category-icon-new {
    color: var(--indigo-600);
}

.category-text-new {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-700);
    white-space: nowrap;
}

.category-option-new input[type="radio"]:checked + .category-btn-new .category-text-new {
    color: var(--indigo-600);
    font-weight: 600;
}

/* Sidebar Section */
.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Tips Card */
.tips-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tips-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.info-icon {
    width: 20px;
    height: 20px;
    color: var(--indigo-600);
    flex-shrink: 0;
}

.info-icon svg {
    width: 20px;
    height: 20px;
}

.tips-title {
    font-weight: 600;
    color: var(--slate-800);
    font-size: 1rem;
}

.tips-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--slate-600);
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.tip-check {
    width: 20px;
    height: 20px;
    color: #10b981;
    margin-top: 2px;
    flex-shrink: 0;
}

.tip-check svg {
    width: 20px;
    height: 20px;
}

.tips-toggle-btn {
    margin-top: 16px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.6) 0%, rgba(236, 72, 153, 0.6) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 12px rgba(168, 85, 247, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tips-toggle-btn:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 16px rgba(168, 85, 247, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.7) 0%, rgba(236, 72, 153, 0.7) 100%);
    border-color: rgba(255, 255, 255, 0.4);
}

.tips-toggle-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(168, 85, 247, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tips-toggle-text {
    flex: 1;
    text-align: center;
}

.chevron-down {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.tips-toggle-btn.active .chevron-down {
    transform: rotate(180deg);
}

.tips-examples {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tips-example-image {
    width: 100%;
    aspect-ratio: auto;
    height: 300px;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.5);
}

.tips-example-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.tips-example-image-last {
    /* Same styles as .tips-example-image - no special handling needed */
}

/* CTA Card */
.cta-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cta-title {
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 4px;
}

.cta-text {
    font-size: 0.875rem;
    color: var(--slate-600);
    margin-top: 4px;
    margin-bottom: 12px;
}

.cta-hint {
    font-size: 0.6875rem;
    color: var(--slate-500);
    margin-top: 8px;
}

.cta-thanks {
    font-size: 0.875rem;
    color: var(--slate-600);
    margin-top: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    line-height: 1.6;
    text-align: center;
}

/* CTA Card Buttons */
.cta-card .btn-test-feedback {
    margin-top: 8px;
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    background: rgba(255, 255, 255, 0.7);
    color: var(--indigo-600);
    font-weight: 500;
    padding: 12px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cta-card .btn-test-feedback:hover {
    background: white;
}

/* Footer Section */
.footer-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

.footer-links {
    text-align: center;
    margin-bottom: 16px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    color: var(--slate-700);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-link:hover {
    background: linear-gradient(135deg,
        rgba(251, 207, 232, 0.5) 0%,
        rgba(233, 213, 255, 0.5) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.15);
}

.footer-text {
    font-size: 0.75rem;
    color: var(--slate-500);
}

.feedback-bar {
    margin-top: 16px;
}

.feedback-bar-content {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

@media (min-width: 640px) {
    .feedback-bar-content {
        flex-direction: row;
    }
}

.feedback-bar-text {
    font-size: 0.875rem;
}

.feedback-bar-title {
    font-weight: 500;
    color: var(--slate-800);
}

.feedback-bar-subtitle {
    color: var(--slate-600);
}

.feedback-bar-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.feedback-bar-btn {
    border-radius: 12px;
    background: linear-gradient(to right, #d946ef 0%, #4f46e5 100%);
    color: white;
    padding: 12px 20px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: opacity 0.2s;
    text-decoration: none;
    display: inline-block;
}

.feedback-bar-btn:hover {
    opacity: 0.95;
}

.feedback-bar-btn-secondary {
    background: rgba(100, 116, 139, 0.1);
    color: var(--slate-700);
    border: 1px solid rgba(100, 116, 139, 0.2);
}

.feedback-bar-btn-secondary:hover {
    background: rgba(100, 116, 139, 0.15);
    opacity: 1;
}

/* Modern 2025 Abstract Gradient Shapes - Static */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
    background-image:
        url("data:image/svg+xml,%3Csvg width='1400' height='1400' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3CradialGradient id='g1' cx='50%25' cy='50%25'%3E%3Cstop offset='0%25' style='stop-color:%23ff9ed8;stop-opacity:0.55'/%3E%3Cstop offset='100%25' style='stop-color:%23ffc9e8;stop-opacity:0'/%3E%3C/radialGradient%3E%3CradialGradient id='g2' cx='50%25' cy='50%25'%3E%3Cstop offset='0%25' style='stop-color:%23a78bfa;stop-opacity:0.48'/%3E%3Cstop offset='100%25' style='stop-color:%23c4b5fd;stop-opacity:0'/%3E%3C/radialGradient%3E%3CradialGradient id='g3' cx='50%25' cy='50%25'%3E%3Cstop offset='0%25' style='stop-color:%23ff85c8;stop-opacity:0.4'/%3E%3Cstop offset='100%25' style='stop-color:%23ffb8e0;stop-opacity:0'/%3E%3C/radialGradient%3E%3CradialGradient id='g4' cx='50%25' cy='50%25'%3E%3Cstop offset='0%25' style='stop-color:%23d946ef;stop-opacity:0.45'/%3E%3Cstop offset='100%25' style='stop-color:%23fae8ff;stop-opacity:0'/%3E%3C/radialGradient%3E%3Cfilter id='blur1'%3E%3CfeGaussianBlur stdDeviation='90'/%3E%3C/filter%3E%3Cfilter id='blur2'%3E%3CfeGaussianBlur stdDeviation='110'/%3E%3C/filter%3E%3C/defs%3E%3Cg%3E%3C!-- Extra large organic blob shapes --%3E%3Cellipse cx='220' cy='280' rx='380' ry='320' fill='url(%23g1)' filter='url(%23blur1)' transform='rotate(-20 220 280)'/%3E%3Cellipse cx='1000' cy='450' rx='420' ry='360' fill='url(%23g2)' filter='url(%23blur2)' transform='rotate(35 1000 450)'/%3E%3Cellipse cx='550' cy='950' rx='400' ry='340' fill='url(%23g3)' filter='url(%23blur1)' transform='rotate(15 550 950)'/%3E%3Cellipse cx='1150' cy='1150' rx='360' ry='400' fill='url(%23g4)' filter='url(%23blur2)' transform='rotate(-30 1150 1150)'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 1400px 1400px;
    background-position: center;
    filter: blur(35px);
}

/* Removed unused animated blobs and shine effects for better performance */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* Removed unused glass-reflection and old header styles */

/* Removed unused old header, logo, main-content, upload-card, and step-title styles */

/* Removed unused old category-selector and photo-requirements styles (using -new versions) */

.requirement-item {
    padding: 4px 0;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.examples-link {
    margin-top: 10px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.examples-link:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.examples-link:active {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.examples-link svg {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Upload Zone */
.upload-zone {
    position: relative;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px dashed #d1d5db;
    border-radius: 15px;
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 25px;
}

/* Person upload zone - purple */
.upload-zone-person {
    border-color: #c4b5fd;
}

.upload-zone-person:hover {
    border-color: #a78bfa;
    background: rgba(196, 181, 253, 0.1);
    transform: translateY(-3px);
}

.upload-zone-person .upload-icon {
    color: #8b5cf6;
}

/* Garment upload zone - purple (matching person zone) */
.upload-zone-garment {
    border-color: #c4b5fd;
}

.upload-zone-garment:hover {
    border-color: #a78bfa;
    background: rgba(196, 181, 253, 0.1);
    transform: translateY(-3px);
}

.upload-zone-garment .upload-icon {
    color: #8b5cf6;
}

.upload-zone:active {
    transform: translateY(-1px);
}

.upload-zone.drag-over {
    transform: scale(1.01);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.upload-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.file-input {
    display: none;
}

/* Preview Container */
.preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.preview-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease;
    border: 2px solid transparent;
}

.preview-item.has-warnings {
    border-color: #f59e0b;
}

.preview-item.has-errors {
    border-color: #ef4444;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.preview-item.validated-ok {
    border-color: #10b981;
}

.preview-item:hover {
    transform: scale(1.05);
}

.preview-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--error-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    z-index: 10;
}

.preview-remove:hover {
    transform: scale(1.1);
}

/* Action Section */
.action-section {
    text-align: center;
    margin: 12px 0;
}

/* Action Section inside CTA Card */
.cta-card .action-section {
    margin: 12px 0;
}

.btn-primary {
    background: linear-gradient(135deg, #ec4899 0%, #d946ef 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 1.15em;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.2px;
}

.btn-icon {
    font-size: 1.2em;
}

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

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

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background: rgba(148, 163, 184, 0.4);
    backdrop-filter: blur(10px);
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 15px 35px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background: rgba(168, 85, 247, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.2);
}

/* Progress Bar */
.progress-bar {
    margin-top: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.progress-fill {
    height: 8px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    animation: progress 2s ease-in-out infinite;
}

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

.progress-text {
    text-align: center;
    margin-top: 10px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

/* Blur only on mobile */
@media (max-width: 768px) {
    .loading-overlay {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    
    .loading-overlay-content {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.loading-overlay-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 40px 50px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.loading-spinner {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(168, 85, 247, 0.2);
    border-top-color: #a855f7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-message {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.loading-message .sparkle-emoji {
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    font-size: 1em;
    line-height: 1;
}

.loading-tips {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
}

.loading-tips p {
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Mobile styles for loading overlay */
@media (max-width: 768px) {
    .loading-overlay-content {
        padding: 30px 24px;
        max-width: 90%;
        border-radius: 20px;
    }
    
    .loading-spinner {
        margin-bottom: 20px;
    }
    
    .spinner {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }
    
    .loading-message {
        font-size: 1.2em;
        margin-bottom: 16px;
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .loading-tips {
        margin-top: 16px;
        padding-top: 16px;
    }
    
    .loading-tips p {
        font-size: 0.9em;
    }
}

/* Results Section */
.results-section {
    max-width: 1400px;
    margin: 50px auto 0;
    padding: 50px 16px;
    border-top: 2px solid var(--border-color);
}

@media (max-width: 768px) {
    .results-section {
        padding: 30px 16px;
        margin-top: 30px;
    }
}

.results-title {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.result-card {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.result-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 50px rgba(168, 85, 247, 0.25);
    border-color: rgba(168, 85, 247, 0.5);
}

.result-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.result-info {
    padding: 20px;
    text-align: center;
}

.result-info h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.result-buttons-container {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.download-btn,
.reset-btn {
    flex: 1;
    background: linear-gradient(135deg,
        rgba(236, 72, 153, 0.5) 0%,
        rgba(168, 85, 247, 0.5) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 16px rgba(168, 85, 247, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

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

.download-btn:hover::before,
.reset-btn:hover::before {
    left: 100%;
}

.download-btn:hover,
.reset-btn:hover {
    background: linear-gradient(135deg,
        rgba(236, 72, 153, 0.7) 0%,
        rgba(168, 85, 247, 0.7) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow:
        0 6px 20px rgba(168, 85, 247, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.download-btn:active,
.reset-btn:active {
    transform: translateY(0);
    box-shadow:
        0 2px 8px rgba(168, 85, 247, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.action-buttons {
    text-align: center;
    margin-top: 30px;
}

/* Error Message */
.error-message {
    background: rgba(254, 226, 226, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(244, 114, 182, 0.6);
    color: #881337;
    padding: 20px 25px;
    border-radius: 20px;
    margin: 25px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(244, 114, 182, 0.2);
}

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

.error-icon {
    font-size: 1.5em;
}

.error-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #991b1b;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px;
    color: var(--text-primary);
    margin-top: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

/* Feedback Section */
.feedback-section {
    margin: 40px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.15);
    position: relative;
}

.feedback-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.feedback-close-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.feedback-close-btn svg {
    width: 20px;
    height: 20px;
}

.feedback-section h3,
.feedback-title {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.3em;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feedback-form {
    max-width: 600px;
    margin: 0 auto;
}

.feedback-rating {
    margin-bottom: 25px;
}

.feedback-rating label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.rating-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.rating-label {
    font-size: 0.9em;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 80px;
}

.rating-label.rating-bad {
    text-align: right;
}

.rating-label.rating-good {
    text-align: left;
}

.rating-slider {
    flex: 1;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(90deg, 
        rgba(239, 68, 68, 0.3) 0%, 
        rgba(234, 179, 8, 0.3) 50%, 
        rgba(34, 197, 94, 0.3) 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.rating-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
    transition: all 0.3s ease;
}

.rating-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(168, 85, 247, 0.6);
}

.rating-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
    transition: all 0.3s ease;
}

.rating-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(168, 85, 247, 0.6);
}

.rating-value {
    text-align: center;
    font-size: 1.2em;
    font-weight: 700;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feedback-comment {
    margin-bottom: 25px;
}

.feedback-comment label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
}

.feedback-textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    font-family: inherit;
    font-size: 1em;
    color: var(--text-primary);
    resize: vertical;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.feedback-textarea:focus {
    outline: none;
    border-color: rgba(168, 85, 247, 0.6);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.2);
}

.feedback-textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.btn-feedback {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg,
        rgba(236, 72, 153, 0.6) 0%,
        rgba(168, 85, 247, 0.6) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 16px rgba(168, 85, 247, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.btn-feedback:hover:not(:disabled)::before {
    left: 100%;
}

.btn-feedback:hover:not(:disabled) {
    background: linear-gradient(135deg,
        rgba(236, 72, 153, 0.75) 0%,
        rgba(168, 85, 247, 0.75) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow:
        0 6px 24px rgba(168, 85, 247, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-feedback:active:not(:disabled) {
    transform: translateY(0);
    box-shadow:
        0 2px 12px rgba(168, 85, 247, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-feedback:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: linear-gradient(135deg,
        rgba(148, 163, 184, 0.4) 0%,
        rgba(148, 163, 184, 0.4) 100%);
}

.feedback-success {
    margin-top: 20px;
    padding: 15px;
    background: rgba(34, 197, 94, 0.15);
    border: 2px solid rgba(34, 197, 94, 0.4);
    border-radius: 15px;
    text-align: center;
    color: #16a34a;
    font-weight: 600;
    animation: slideIn 0.4s ease;
}

.btn-test-feedback {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 12px 25px;
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    border: 2px solid rgba(168, 85, 247, 0.4);
    border-radius: 50px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.btn-test-feedback:hover {
    background: rgba(168, 85, 247, 0.3);
    border-color: rgba(168, 85, 247, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .upload-grid {
        grid-template-columns: 1fr;
    }

    .garment-upload-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .main-content-grid {
        padding: 16px;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .category-options-new {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-btn-new {
        padding: 6px 10px;
        gap: 6px;
    }

    .category-icon-new {
        width: 14px;
        height: 14px;
    }

    .category-text-new {
        font-size: 0.75rem;
    }

    .feedback-section {
        padding: 20px;
        margin: 30px 0;
    }

    .rating-container {
        flex-direction: column;
        gap: 10px;
    }

    .rating-label {
        min-width: auto;
        text-align: center !important;
    }

    .rating-slider {
        width: 100%;
    }

    .stepper-grid {
        gap: 8px;
    }

    .stepper-btn {
        padding: 10px 12px;
    }

    .upload-card-step {
        padding: 16px;
    }

    .stepper-icon {
        width: 28px;
        height: 28px;
        font-size: 0.875rem;
    }

    .stepper-title {
        font-size: 0.8125rem;
    }

    .stepper-subtitle {
        font-size: 0.6875rem;
    }

    .tips-card,
    .cta-card {
        padding: 12px;
    }

    .category-options-new {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Waiting time text under button */
.waiting-time-text {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9em;
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.8;
}

/* Error result cards */
.error-card {
    background: #fee2e2;
    border: 2px solid var(--error-color);
}

.error-result {
    padding: 40px;
    text-align: center;
    color: #991b1b;
}

.error-result .error-icon {
    font-size: 3em;
    display: block;
    margin-bottom: 15px;
}

.error-result p {
    font-weight: 600;
    margin-bottom: 8px;
}

.error-result small {
    font-size: 0.85em;
    opacity: 0.8;
}

/* No results message */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--background);
    border-radius: 15px;
    border: 2px dashed var(--border-color);
}

.no-results .error-icon {
    font-size: 4em;
    display: block;
    margin-bottom: 20px;
}

.no-results h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.5em;
}

.no-results p {
    color: var(--text-secondary);
    font-size: 1.1em;
}

/* Result card loaded state */
.result-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.result-card.loaded img {
    animation: imageLoad 0.3s ease;
}

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

@keyframes imageLoad {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Examples Modal - New Design */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

.modal-dialog {
    max-width: 56rem;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 20px;
}

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

.modal-content-wrapper {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.08),
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 25px 60px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 24px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .modal-header {
        padding: 32px 32px 24px;
    }
}

.modal-header-text {
    flex: 1;
}

.modal-title-new {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin-bottom: 6px;
}

@media (min-width: 768px) {
    .modal-title-new {
        font-size: 1.75rem;
        margin-bottom: 8px;
    }
}

.modal-subtitle-new {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

@media (min-width: 768px) {
    .modal-subtitle-new {
        font-size: 0.9375rem;
    }
}

.modal-close-btn {
    border-radius: 10px;
    padding: 10px;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: scale(1.05);
}

.modal-close-btn:active {
    transform: scale(0.98);
}

.modal-content-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    padding: 24px;
}

@media (min-width: 768px) {
    .modal-content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
        padding: 28px 32px 32px;
    }
}

/* Example Cards */
.example-card {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.example-card:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.example-card-good {
    border-top: 3px solid #10b981;
}

.example-card-bad {
    border-top: 3px solid #f43f5e;
}

.example-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 20px 12px;
    background: linear-gradient(to bottom, #fafafa 0%, #ffffff 100%);
}

.example-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.example-icon-good {
    color: #10b981;
}

.example-icon-bad {
    color: #f43f5e;
}

.example-title {
    font-weight: 600;
    font-size: 1rem;
}

.example-title-good {
    color: #065f46;
}

.example-title-bad {
    color: #9f1239;
}

/* Slider Styles */
.slider-container {
    position: relative;
    padding: 0 20px;
    margin-bottom: 16px;
}

.slider-track {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.05);
}

.example-card-good .slider-track {
    box-shadow:
        inset 0 0 0 2px rgba(16, 185, 129, 0.15),
        0 1px 3px rgba(16, 185, 129, 0.1);
}

.example-card-bad .slider-track {
    box-shadow:
        inset 0 0 0 2px rgba(244, 63, 94, 0.15),
        0 1px 3px rgba(244, 63, 94, 0.1);
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    background: #f8fafc;
}

.slider-image.lazy-load {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

.slider-image.active {
    opacity: 1;
    pointer-events: auto;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.slider-btn:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.05);
}

.slider-btn:active {
    transform: translateY(-50%) scale(0.98);
}

.slider-btn-prev {
    left: 16px;
}

.slider-btn-next {
    right: 16px;
}

.slider-counter {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    z-index: 2;
}

.example-list {
    list-style: none;
    padding: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.example-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9375rem;
    color: #334155;
    line-height: 1.5;
}

.example-bullet {
    display: block;
    width: 6px;
    height: 6px;
    min-width: 6px;
    border-radius: 50%;
    background: #94a3b8;
    margin-top: 8px;
}

.example-card.good {
    border-color: #10b981;
}

.example-card.bad {
    border-color: #ef4444;
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

.example-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1.1em;
}

.example-header.good {
    color: #10b981;
}

.example-header.bad {
    color: #ef4444;
}

.example-image {
    width: 100%;
    height: 250px;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    margin-bottom: 10px;
}

.example-description {
    color: #64748b;
    font-size: 0.9em;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
}

/* ==================== AI Model Selector ==================== */

/* Glass Mat CTA Button - Frosted glass with gradient */
.glass-mat-cta-button {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    padding: 18px 40px;
    position: relative;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    overflow: hidden;
    transition: opacity 0.2s ease;
    
    /* Более яркий градиентный розово-фиолетовый стеклянный матовый фон */
    background: linear-gradient(135deg, 
        rgba(192, 132, 252, 0.55) 0%, 
        rgba(168, 85, 247, 0.65) 50%, 
        rgba(236, 72, 153, 0.6) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    
    /* Матовая тень (не изменяется при hover) */
    box-shadow: 
        0 4px 15px rgba(168, 85, 247, 0.3),
        0 2px 8px rgba(236, 72, 153, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Стеклянный блик сверху на краях */
.glass-mat-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 100%);
    border-radius: 16px 16px 0 0;
    pointer-events: none;
    z-index: 1;
}

/* Дополнительный блик на левом верхнем углу */
.glass-mat-cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse at top left,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.2) 30%,
        transparent 70%);
    border-radius: 16px 0 0 0;
    pointer-events: none;
    z-index: 1;
}

.glass-mat-cta-button:hover {
    /* При наведении только изменение прозрачности, без увеличения */
    opacity: 0.9;
}

.glass-mat-cta-button:active {
    opacity: 0.8;
}

.glass-mat-cta-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}


/* Контент кнопки */
.glass-mat-button-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Белый текст для лучшей читаемости */
.glass-mat-button-text {
    font-size: 1.25em;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(168, 85, 247, 0.5),
                 0 1px 4px rgba(236, 72, 153, 0.4);
    letter-spacing: 0.3px;
}

.glass-mat-button-icon {
    font-size: 1.3em;
    filter: drop-shadow(0 0 4px rgba(236, 72, 153, 0.4));
    animation: sparkle 2s ease-in-out infinite;
}

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

/* Helper message above button (desktop version) */
.cta-helper-message {
    text-align: center;
    margin-bottom: 16px;
    padding: 12px 20px;
    background: rgba(168, 85, 247, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 12px;
    color: #a855f7;
    font-size: 0.95em;
    font-weight: 600;
    animation: slideInDown 0.3s ease;
    line-height: 1.5;
}

.cta-helper-message em {
    font-style: italic;
    opacity: 0.85;
    font-weight: 500;
}

/* Helper message for mobile (between stepper and main content) */
.cta-helper-message-mobile {
    display: none; /* Hidden by default, controlled by JS */
    max-width: 1400px;
    margin: 16px auto;
    padding: 12px 20px;
    text-align: center;
    background: rgba(168, 85, 247, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 12px;
    color: #a855f7;
    font-size: 0.95em;
    font-weight: 600;
    animation: slideInDown 0.3s ease;
    line-height: 1.5;
}

.cta-helper-message-mobile em {
    font-style: italic;
    opacity: 0.85;
    font-weight: 500;
}

@media (max-width: 768px) {
    .cta-helper-message-mobile {
        margin: 16px 16px;
        padding: 12px 16px;
        font-size: 0.9em;
    }
}

/* Hide desktop version on mobile */
@media (max-width: 768px) {
    .cta-helper-message {
        display: none !important; /* Скрываем десктопную версию на мобильных */
    }
}

/* Hide mobile version on desktop */
@media (min-width: 769px) {
    .cta-helper-message-mobile {
        display: none !important; /* Скрываем мобильную версию на десктопе */
    }
}

/* Stylized features text under button */
.cta-features-text {
    text-align: center;
    margin-top: 16px;
    margin-bottom: 8px;
    font-size: 0.95em;
    font-weight: 600;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.8px;
    opacity: 0.85;
    line-height: 1.5;
    position: relative;
    white-space: nowrap; /* Всегда в одну строчку */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Generation counter card with progress bar - glassmorphism style */
.generation-counter-card {
    margin-top: 15px;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(243, 232, 255, 0.4) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 14px;
    animation: fadeIn 0.3s ease;
    box-shadow:
        0 8px 32px rgba(139, 92, 246, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    min-width: 300px;
}

.generation-counter-card.hide {
    display: none !important;
}

.gen-counter-icon {
    font-size: 2em;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.gen-counter-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gen-counter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gen-counter-title {
    font-size: 1em;
    font-weight: 600;
    color: #4c1d95;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.gen-counter-value {
    font-size: 0.85em;
    font-weight: 600;
    color: #92400e;
    background: rgba(251, 191, 36, 0.4);
    backdrop-filter: blur(10px);
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
}

.gen-counter-progress {
    width: 100%;
    height: 10px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gen-counter-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #c4b5fd 0%, #a78bfa 50%, #8b5cf6 100%);
    border-radius: 5px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
    position: relative;
}

.gen-counter-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
    border-radius: 5px 5px 0 0;
}

/* Sample garments for quick testing */
.sample-garments {
    margin-top: 24px;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(243, 232, 255, 0.3) 100%);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.sample-garments-title {
    font-size: 0.95em;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.sample-garments-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    max-width: 550px;
    margin: 0 auto;
}

.sample-garment-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sample-garment-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.35);
}

.sample-garment-item.selected {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.3), 0 8px 20px rgba(139, 92, 246, 0.25);
    transform: scale(1.02);
}

.sample-garment-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.sample-garment-item:hover img {
    transform: scale(1.1);
}

.sample-garment-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(236, 72, 153, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.sample-garment-item:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .sample-garments-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .sample-garment-item img {
        height: 110px;
    }
}

@media (max-width: 480px) {
    .sample-garments-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .sample-garment-item img {
        height: 120px;
    }
}

/* Old classes for backward compatibility */
.free-generations-counter {
    margin-top: 10px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(192, 132, 252, 0.2);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    animation: fadeIn 0.3s ease;
    font-size: 0.85em;
    color: var(--text-secondary);
}

.free-generations-counter.hide {
    display: none !important;
}

/* Auth required banner (yellow friendly banner) */
.auth-required-banner {
    margin-top: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
    animation: slideInDown 0.4s ease;
}

.auth-required-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.auth-required-icon {
    font-size: 1.5em;
    flex-shrink: 0;
}

.auth-required-text {
    color: #78350f;
    font-size: 0.95em;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
    min-width: 200px;
}

.auth-required-button {
    padding: 10px 20px;
    background: white;
    color: #f59e0b;
    border: none;
    border-radius: 10px;
    font-size: 0.9em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.auth-required-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: #fffbeb;
}

.auth-required-button:active {
    transform: translateY(0);
}

/* Error message below button */
.cta-button-error {
    text-align: center;
    margin-top: 12px;
    padding: 12px 20px;
    background: rgba(244, 114, 182, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(244, 114, 182, 0.3);
    border-radius: 12px;
    color: #be185d;
    font-size: 0.9em;
    font-weight: 600;
    animation: slideInDown 0.3s ease;
    line-height: 1.5;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile: ensure features text stays on one line */
@media (max-width: 768px) {
    .cta-helper-message {
        font-size: 0.9em;
        padding: 10px 16px;
        margin-bottom: 12px;
    }
    
    .cta-features-text {
        font-size: 0.85em;
        letter-spacing: 0.5px;
        white-space: nowrap;
        overflow: visible;
        word-spacing: 0.2em;
    }
    
    .glass-mat-cta-button {
        padding: 16px 32px;
        max-width: 100%;
    }
    
    .glass-mat-button-text {
        font-size: 1.1em;
    }
    
    .cta-button-error {
        font-size: 0.85em;
        padding: 10px 16px;
    }

    .auth-required-banner {
        padding: 14px 16px;
        margin-top: 12px;
    }

    .auth-required-content {
        gap: 10px;
    }

    .auth-required-text {
        font-size: 0.85em;
        text-align: center;
        min-width: 100%;
    }

    .auth-required-button {
        padding: 8px 16px;
        font-size: 0.85em;
        width: 100%;
    }
}

/* Legacy support - hide old generate container if exists */
.generate-container {
    display: none;
}

.generate-text {
    display: none;
}

.model-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0.5;
    transform: scale(0.95);
}

.model-label.active {
    opacity: 1;
    transform: scale(1);
}

.model-label:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.model-label.active:hover {
    opacity: 1;
}

.model-icon {
    font-size: 2em;
    filter: grayscale(100%);
    transition: all 0.4s ease;
}

.model-label.active .model-icon {
    filter: grayscale(0%);
    animation: iconPulse 2s ease-in-out infinite;
}

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

.model-info {
    text-align: left;
}

.model-label-right .model-info {
    text-align: right;
}

.model-name {
    font-size: 1em;
    font-weight: 700;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.model-label.active .model-name {
    font-size: 1.1em;
}

.model-desc {
    font-size: 0.75em;
    color: #64748b;
    font-weight: 500;
}

/* Switch Wrapper */
.switch-wrapper {
    position: relative;
    display: inline-block;
}

.model-switch-input {
    display: none;
}

.model-switch-label {
    display: block;
    width: 70px;
    height: 36px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3) 0%, rgba(236, 72, 153, 0.3) 100%);
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid rgba(168, 85, 247, 0.4);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

.model-switch-label:hover {
    box-shadow: 
        inset 0 2px 8px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(168, 85, 247, 0.4);
}

.switch-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 
        0 4px 12px rgba(168, 85, 247, 0.4),
        0 0 0 0 rgba(168, 85, 247, 0.6);
}

.switch-slider::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(8px);
}

.model-switch-input:checked + .model-switch-label .switch-slider {
    left: calc(100% - 31px);
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    box-shadow: 
        0 4px 12px rgba(16, 185, 129, 0.4),
        0 0 0 0 rgba(16, 185, 129, 0.6);
    animation: switchBounce 0.6s ease;
}

@keyframes switchBounce {
    0% { transform: translateX(0) scale(1); }
    30% { transform: translateX(-5px) scale(1.1); }
    50% { transform: translateX(3px) scale(0.95); }
    70% { transform: translateX(-2px) scale(1.05); }
    100% { transform: translateX(0) scale(1); }
}

.model-switch-input:checked + .model-switch-label .switch-slider::before {
    opacity: 1;
}

.model-switch-input:checked + .model-switch-label {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(59, 130, 246, 0.3) 100%);
    border-color: rgba(16, 185, 129, 0.4);
}

/* Ripple effect on click */
.switch-slider::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    transition: transform 0.6s ease-out;
}

.model-switch-input:active + .model-switch-label .switch-slider::after {
    transform: scale(2);
    opacity: 0;
}

/* Slide transition animation for content */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

/* Badge for model info */
.model-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7em;
    font-weight: 600;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.model-label[data-model="fashn"] .model-badge {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.model-label[data-model="imagen"] .model-badge {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .model-switch-container {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        border-radius: 25px;
    }

    .switch-wrapper {
        order: -1;
    }

    .model-label {
        width: 100%;
        justify-content: center;
    }

    .model-info {
        text-align: center !important;
    }

    .model-name {
        font-size: 0.95em;
    }

    .model-desc {
        font-size: 0.7em;
    }

    .model-icon {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .ai-model-selector {
        margin-top: 20px;
    }

    .model-switch-container {
        padding: 15px;
        gap: 12px;
    }

    .model-switch-label {
        width: 60px;
        height: 32px;
    }

    .switch-slider {
        width: 24px;
        height: 24px;
    }

    .model-switch-input:checked + .model-switch-label .switch-slider {
        left: calc(100% - 27px);
    }
}

/* ==================== NEW RESULT CARD LAYOUT ==================== */

.result-card-new {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 0;
    background: linear-gradient(to right,
        rgba(255, 255, 255, 0.6) 0%,
        rgba(251, 207, 232, 0.3) 30%,
        rgba(233, 213, 255, 0.3) 70%,
        rgba(255, 255, 255, 0.6) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.15);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 32px;
    opacity: 0;
}

.result-card-new.loaded {
    opacity: 1;
}

/* Left Side: Image Preview */
.result-left {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background: linear-gradient(135deg,
        rgba(236, 72, 153, 0.08) 0%,
        rgba(168, 85, 247, 0.08) 100%);
}

.result-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

.result-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.3) 30%,
        transparent 100%);
    pointer-events: none;
}

.result-image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.result-card-new:hover .result-image-preview {
    transform: scale(1.05);
}

.result-number {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 16px;
    text-align: center;
}

.result-left .download-btn {
    width: 100%;
    max-width: 280px;
}

/* Divider removed - using gradient background instead */

/* Right Side: Promo Content */
.result-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.6) 0%,
        rgba(255, 255, 255, 0.3) 100%);
}

.promo-content {
    max-width: 520px;
}

.promo-header {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.promo-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--slate-800);
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    background: linear-gradient(135deg,
        rgba(236, 72, 153, 0.6) 0%,
        rgba(168, 85, 247, 0.6) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    font-size: 0.75em;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 4px 12px rgba(168, 85, 247, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.promo-description {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--slate-600);
    margin-bottom: 28px;
}

.promo-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.promo-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.promo-feature:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.15);
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-text {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--slate-700);
}

/* Responsive Design for New Result Card */
@media (max-width: 1024px) {
    .result-card-new {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(251, 207, 232, 0.3) 30%,
            rgba(233, 213, 255, 0.3) 70%,
            rgba(255, 255, 255, 0.6) 100%);
    }

    .result-left {
        padding: 32px 24px 24px;
    }

    .result-right {
        padding: 32px 24px;
    }

    .promo-title {
        font-size: 1.5rem;
    }

    .promo-description {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .result-left {
        padding: 24px 16px;
    }

    .result-right {
        padding: 24px 16px;
    }

    .promo-header {
        margin-bottom: 16px;
    }

    .promo-title {
        font-size: 1.25rem;
        gap: 8px;
    }
    
    .promo-badge {
        padding: 4px 12px;
        font-size: 0.7em;
    }

    .promo-description {
        font-size: 0.9375rem;
    }

    .promo-feature {
        padding: 10px 12px;
    }

    .feature-icon {
        font-size: 1.25rem;
    }

    .feature-text {
        font-size: 0.875rem;
    }
}

/* ===================================
   ONBOARDING MODAL
   =================================== */

.onboarding-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.onboarding-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.onboarding-content {
    position: relative;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.85) 0%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 28px;
    padding: 40px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.15),
        0 10px 30px rgba(236, 72, 153, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset,
        0 0 60px rgba(236, 72, 153, 0.05) inset;
    animation: slideUp 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.onboarding-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    color: var(--slate-600);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.onboarding-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
    color: var(--slate-800);
}

.onboarding-header {
    text-align: center;
    margin-bottom: 40px;
}

.onboarding-logo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
}

.onboarding-logo-icon {
    width: auto;
    min-width: 48px;
    height: 32px;
    padding: 0 10px;
    border-radius: 12px;
    background: linear-gradient(135deg,
        rgba(251, 182, 222, 0.5) 0%,
        rgba(244, 114, 182, 0.55) 40%,
        rgba(216, 103, 192, 0.5) 100%);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 2px 6px rgba(236, 72, 153, 0.12),
        0 1px 2px rgba(0, 0, 0, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.onboarding-logo-tap {
    font-weight: 700;
    font-size: 1.05875rem;
    color: white;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.onboarding-logo-text {
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--slate-800);
    font-size: 1.21em;
    position: relative;
}

.onboarding-logo-smile {
    position: relative;
    display: inline-block;
    color: #ec4899;
}

.onboarding-logo-smile::after {
    content: ')';
    position: absolute;
    bottom: -6px;
    left: 52%;
    transform: translateX(-50%) rotate(90deg);
    font-size: 0.8em;
    color: var(--slate-800);
    line-height: 1;
    font-weight: 500;
    -webkit-text-stroke: 0.5px var(--slate-800);
    text-stroke: 0.5px var(--slate-800);
    display: block;
}

.onboarding-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--slate-800);
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

.onboarding-subtitle {
    font-size: 1.125rem;
    color: var(--slate-600);
    margin: 0;
}

.onboarding-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.onboarding-step {
    position: relative;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-radius: 20px;
    padding: 32px 24px 24px 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 8px 32px rgba(236, 72, 153, 0.12),
        0 1px 1px rgba(255, 255, 255, 0.9) inset;
    transition: all 0.3s ease;
    overflow: visible;
    margin-top: 20px;
}


.onboarding-step:hover {
    transform: translateY(-6px);
    box-shadow:
        0 12px 40px rgba(236, 72, 153, 0.2),
        0 1px 1px rgba(255, 255, 255, 1) inset;
    border-color: rgba(255, 255, 255, 0.7);
}

.onboarding-step-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9375rem;
    box-shadow:
        0 6px 20px rgba(236, 72, 153, 0.4),
        0 1px 1px rgba(255, 255, 255, 0.5) inset;
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 10;
}

.onboarding-step-image-wrapper {
    width: 100%;
    height: 320px;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.onboarding-step-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.onboarding-step-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--slate-800);
    margin: 0 0 12px 0;
}

.onboarding-step-description {
    font-size: 0.9375rem;
    color: var(--slate-600);
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.onboarding-example {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}

.example-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.example-good {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.example-bad {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.onboarding-tips {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.onboarding-tip {
    font-size: 0.8125rem;
    color: var(--slate-700);
    font-weight: 500;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(168, 85, 247, 0.2);
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.1);
    transition: all 0.3s ease;
}

.onboarding-tip:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.15);
    transform: translateX(2px);
}

.onboarding-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.onboarding-feature {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-700);
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(236, 72, 153, 0.2);
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.1);
    transition: all 0.3s ease;
}

.onboarding-feature:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(236, 72, 153, 0.3);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.15);
    transform: translateY(-2px);
}

.onboarding-footer {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 20px;
}

.onboarding-btn {
    padding: 14px 32px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    position: relative;
    z-index: 1;
}

.onboarding-btn * {
    position: relative;
    z-index: 2;
}

.onboarding-btn-primary {
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
    color: white;
    box-shadow:
        0 10px 30px rgba(236, 72, 153, 0.35),
        0 1px 1px rgba(255, 255, 255, 0.3) inset;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.onboarding-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0) 100%);
    border-radius: 14px 14px 0 0;
    pointer-events: none;
}

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

.onboarding-btn-primary:hover::after {
    left: 100%;
}

.onboarding-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 14px 40px rgba(236, 72, 153, 0.45),
        0 1px 1px rgba(255, 255, 255, 0.4) inset;
}

.onboarding-btn-secondary {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    color: var(--slate-700);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.08),
        0 1px 1px rgba(255, 255, 255, 0.9) inset;
    position: relative;
    overflow: hidden;
}

.onboarding-btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.6) 0%,
        rgba(255, 255, 255, 0) 100%);
    border-radius: 14px 14px 0 0;
    pointer-events: none;
}

.onboarding-btn-secondary:hover {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.9) 100%);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.12),
        0 1px 1px rgba(255, 255, 255, 1) inset;
    transform: translateY(-2px);
}

.onboarding-note {
    text-align: center;
}

.onboarding-checkbox {
    margin-right: 8px;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.onboarding-label {
    font-size: 0.875rem;
    color: var(--slate-600);
    cursor: pointer;
    user-select: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .onboarding-content {
        padding: 24px;
        border-radius: 16px;
    }

    .onboarding-title {
        font-size: 1.5rem;
    }

    .onboarding-subtitle {
        font-size: 1rem;
    }

    .onboarding-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .onboarding-step {
        padding: 20px;
    }

    .onboarding-step-icon {
        font-size: 2.5rem;
    }

    .onboarding-step-title {
        font-size: 1rem;
    }

    .onboarding-step-description {
        font-size: 0.875rem;
    }

    .onboarding-step-image-wrapper {
        height: 400px;
    }

    .onboarding-footer {
        flex-direction: column;
    }

    .onboarding-btn {
        width: 100%;
        padding: 12px 24px;
    }

    .onboarding-close {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
}

/* ============================================================
   AUTH STYLES
   ============================================================ */

/* Auth Button */
.auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    min-height: 40px;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.user-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--slate-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-status-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.user-status-badge.free {
    background: rgba(100, 116, 139, 0.1);
    color: var(--slate-600);
}

.user-status-badge.premium {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.user-limit-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
    white-space: nowrap;
}

.logout-btn {
    background: none;
    border: none;
    color: var(--slate-600);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.logout-btn:hover {
    color: var(--slate-800);
}

.logout-btn:active {
    opacity: 0.7;
}

/* Limit Banner */
.limit-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 32px rgba(251, 191, 36, 0.4);
    z-index: 1000;
}

.limit-banner button {
    background: white;
    color: #f59e0b;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* Auth Modal */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
}

.auth-modal-content {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 40px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--slate-400);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 24px;
    text-align: center;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px;
    border-radius: 12px;
}

.auth-tab {
    flex: 1;
    padding: 8px 16px;
    border: none;
    background: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab.active {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.form-input {
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.auth-submit-btn {
    padding: 14px;
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
}

.auth-error {
    color: #dc2626;
    font-size: 0.875rem;
    min-height: 20px;
}

.auth-divider {
    text-align: center;
    color: var(--slate-400);
    font-size: 0.875rem;
    margin: 20px 0;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.social-auth {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .auth-modal-content {
        padding: 24px;
    }

    .user-profile {
        padding: 4px 8px;
        gap: 6px;
        min-height: 36px;
    }

    .user-avatar {
        width: 24px;
        height: 24px;
    }

    .user-name {
        font-size: 0.75rem;
        max-width: 60px;
    }

    .user-status-badge {
        font-size: 0.65rem;
        padding: 1px 6px;
    }

    .user-limit-badge {
        font-size: 0.65rem;
        padding: 1px 4px;
    }

    .logout-btn {
        padding: 8px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        touch-action: manipulation;
    }

    .logout-btn:active {
        background: rgba(0, 0, 0, 0.05);
        transform: scale(0.95);
    }

    .logout-btn svg {
        width: 20px;
        height: 20px;
        pointer-events: none;
    }

    .top-bar-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .badge-text {
        font-size: 0.75rem;
    }
}
