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

img {
    max-width: 100%;
    display: block
}

:root {
    --grad-start: #0D0D0D;
    --grad-end: #1A1A2E;
    --brand: #C9A96E;
    --brand-2: #E8B4B8;
    --text-1: #F2F0EB;
    --text-2: #A8A29E;
    --card: #1C1C28;
    --muted: #16161F;
    --ring: rgba(201,169,110,.3);
    --banner-bg: #1C1C28;
    --banner-text: #F2F0EB;
    --banner-accent: #C9A96E;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body.no-translate {
    visibility: hidden;
    opacity: 0;
}

body {
    padding-top: 150px;
    font-family: 'Georgia', 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
    color: var(--text-1);
    scroll-behavior: smooth;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
    visibility: visible;
    opacity: 1;
}

.sticky-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

.sticky-banner {
    position: relative;
    top: 0;
    width: 100%;
    background-color: #1C1C28;
    color: #F2F0EB;
    text-align: center;
    padding: 12px 20px;
    z-index: 100;
    font-weight: bold;
    font-size: 1rem;
    border-bottom: 2px solid var(--banner-accent);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

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

.topbar {
    position: relative;
    z-index: 50;
    background: rgba(13, 13, 13, .85);
    backdrop-filter: saturate(1.2) blur(8px);
    border-bottom: 1px solid rgba(201,169,110,.1);
    transition: top 0.3s ease;
}

.topbar__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 1.1rem
}

.logo-icon {
    font-size: 1.4rem
}

.logo-text {
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: .95rem;
}

.nav {
    display: flex;
    flex: 1;
    margin: 0 56px;
    gap: 16px;
    align-items: center
}

.nav a {
    color: var(--text-1);
    text-decoration: none;
    font-weight: 700;
    font-size: .95rem;
    transition: opacity .2s
}

.nav a:hover {
    opacity: .8
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-1);
}

.nav-drawer {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 10px 18px;
    border-bottom: 1px solid rgba(201,169,110,.1);
    background: #0D0D0D
}

.nav-drawer a {
    text-decoration: none;
    color: var(--text-1);
    font-weight: 800
}

.footer-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    padding: 12px 16px;
    line-height: 1.2;
    color: var(--text-2);
    text-decoration: underline;
    font-size: .95rem;
    transition: opacity .2s;
    margin: 0 8px;
}

.footer-nav-link:focus-visible,
.nav a:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 3px;
    border-radius: 6px;
}

.btn {
    display: inline-block;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
}

.btn--small {
    font-size: .9rem;
    background: var(--muted);
    color: var(--text-1);
}

.btn--primary {
    color: #0D0D0D;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 10px 30px rgba(201,169,110,.25)
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 35px rgba(201,169,110,.35)
}

.btn--ghost {
    background: transparent;
    color: var(--text-1);
    border: 1px solid rgba(201,169,110,.3)
}

.btn--ghost:hover {
    border-color: var(--brand)
}

.btn--block {
    display: block;
    text-align: center;
    width: 100%
}

/* Hero */
.hero {
    max-width: 1100px;
    margin: 28px auto 16px;
    display: grid;
    grid-template-columns:1.2fr .8fr;
    gap: 26px;
    align-items: center;
    padding: 0 18px
}

.hero__content h1 {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    line-height: 1.15;
    margin-bottom: 10px;
    margin-top: 30px;
    background: linear-gradient(135deg, var(--text-1), var(--brand));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.lead {
    color: var(--text-2);
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    margin-bottom: 10px
}

.trust {
    list-style: none;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--text-2);
    margin: 10px 0 16px;
    font-size: .95rem
}

.trust li {
    background: rgba(201,169,110,.08);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(201,169,110,.12);
}

.hero__cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.hero__art {
    position: relative;
    height: 280px
}

.bubble {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite
}

.bubble--1 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, rgba(201,169,110,.15), rgba(232,180,184,.1));
    left: 10%;
    top: 20%;
    animation-delay: 0s
}

.bubble--2 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(201,169,110,.1), rgba(232,180,184,.08));
    right: 5%;
    top: 0%;
    animation-delay: 2s
}

.bubble--3 {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(201,169,110,.12), rgba(232,180,184,.06));
    right: 18%;
    bottom: 10%;
    animation-delay: 4s
}

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

.card-demo {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 260px;
    height: 200px;
    background: var(--card);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
    display: grid;
    place-items: center;
    animation: cardFloat 4s ease-in-out infinite;
    border: 1px solid rgba(201,169,110,.15);
}

.floating-example-img {
    width: 260px;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    padding: 4px;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0) rotate(-1deg)
    }
    50% {
        transform: translateY(-6px) rotate(1deg)
    }
}

/* Sections */
.section-title {
    font-size: clamp(1.3rem, 2.1vw, 1.6rem);
    margin-bottom: 6px;
    text-align: center
}

.section-subtitle {
    text-align: center;
    color: var(--text-2);
    margin-bottom: 16px
}

/* How */
.how {
    max-width: 1100px;
    margin: 20px auto 8px;
    padding: 0 18px;
    scroll-margin-top: 180px;
}

.how h2 {
    text-align: center;
    margin-bottom: 16px;
    font-size: clamp(1.4rem, 2.3vw, 1.8rem)
}

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

.step {
    background: var(--card);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
    transition: transform .2s, box-shadow .2s;
    border: 1px solid rgba(201,169,110,.08);
}

.step:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .2)
}

.step__num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #0D0D0D;
    display: grid;
    place-items: center;
    font-weight: 900;
    margin-bottom: 8px
}

.step h3 {
    font-size: 1.05rem;
    margin-bottom: 4px
}

.step p {
    color: var(--text-2);
    font-size: .95rem
}

.note {
    text-align: center;
    color: var(--text-2);
    margin-top: 12px;
    background: rgba(201,169,110,.06);
    padding: 8px 16px;
    border-radius: 999px;
    display: inline-block;
    border: 1px solid rgba(201,169,110,.1);
}

/* Upload */
.upload-section {
    max-width: 1100px;
    margin: 14px auto;
    padding: 0 18px;
    scroll-margin-top: 180px;
}

.upload-grid {
    display: grid;
    grid-template-columns:1fr;
    gap: 16px;
    align-items: stretch;
    margin-top: 10px
}

.image-upload-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.image-upload {
    border: 2.5px dashed rgba(201,169,110,.25);
    border-radius: 18px;
    padding: 24px 16px;
    text-align: center;
    background: var(--muted);
    cursor: pointer;
    transition: all .25s ease;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    outline: none;
    min-height: 240px;
    position: relative;
    overflow: hidden;
}

.image-upload:hover, .image-upload:focus {
    border-color: var(--brand);
    background: rgba(201,169,110,.05);
    box-shadow: 0 0 0 4px var(--ring)
}

.image-upload.dragover {
    border-color: var(--brand-2);
    background: rgba(232,180,184,.05);
    box-shadow: 0 0 0 4px rgba(232,180,184,.2)
}

.image-upload.has-image {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    height: auto;
    max-width: 500px;
    align-self: center;
}

.upload-label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-2);
    pointer-events: none;
}

.placeholder-svg {
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
    border-radius: 50%;
    transition: transform .2s
}

.image-upload:hover .placeholder-svg {
    transform: scale(1.05)
}

.upload-title {
    font-weight: 800;
    color: var(--text-1);
    font-size: 1.05rem
}

.upload-hint {
    font-size: .9rem;
    color: var(--text-2);
}

.image-upload:hover .upload-hint,
.image-upload:focus .upload-hint,
.image-upload.dragover .upload-hint {
    color: var(--text-1);
}

/* Clothing upload grid */
.clothing-section-title {
    text-align: center;
    margin: 20px 0 10px;
    font-size: 1.1rem;
    color: var(--text-2);
}

.clothing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
}

.clothing-upload-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.clothing-upload {
    border: 2px dashed rgba(201,169,110,.2);
    border-radius: 14px;
    padding: 16px 8px;
    text-align: center;
    background: var(--muted);
    cursor: pointer;
    transition: all .25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    outline: none;
    min-height: 120px;
    position: relative;
    overflow: hidden;
}

.clothing-upload:hover, .clothing-upload:focus {
    border-color: var(--brand);
    background: rgba(201,169,110,.05);
    box-shadow: 0 0 0 3px var(--ring);
}

.clothing-upload.has-image {
    padding: 0;
    border: 1px solid rgba(201,169,110,.2);
}

.clothing-upload .preview-image {
    display: none;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 14px;
}

.clothing-upload .preview-image.show {
    display: block;
    animation: fadeIn .3s ease;
}

.clothing-upload.has-image .upload-label {
    display: none;
}

.clothing-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(201,169,110,.15);
    color: var(--brand);
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: .85rem;
    margin-bottom: 4px;
}

.preview-image {
    display: none;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 18px;
}

.preview-image.show {
    display: block;
    animation: fadeIn .3s ease
}

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

.drop-hint {
    text-align: center;
    color: var(--text-2);
    font-size: .9rem
}

.generate-btn {
    display: block;
    margin: 14px auto 0;
    padding: 14px 36px;
    font-size: 1.05rem;
    font-weight: 900;
    color: #0D0D0D;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 10px 30px rgba(201,169,110,.25);
    position: relative;
    overflow: hidden
}

.generate-btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 200%;
    background: rgba(255, 255, 255, .2);
    transform: translateY(-50%) skewX(-20deg);
    transition: left .4s
}

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

.generate-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 35px rgba(201,169,110,.35)
}

.generate-btn:disabled {
    opacity: .6;
    cursor: not-allowed
}

.generate-btn.loading {
    cursor: default;
    pointer-events: none
}

.privacy-badge {
    text-align: center;
    color: var(--text-2);
    margin-top: 10px;
    font-size: .9rem
}

/* Processing */
.processing-section {
    display: none;
    text-align: center;
    margin: 28px auto;
    max-width: 900px;
    padding: 0 18px
}

.processing-section.show {
    display: block;
    animation: fadeIn .3s ease
}

.fusion-animation {
    position: relative;
    height: 220px;
    margin-bottom: 16px
}

.image-container {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    top: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3)
}

.image-left {
    left: 50%;
    transform: translateX(-200px);
    animation: slideLeft 2.4s ease-in-out infinite
}

.image-right {
    right: 50%;
    transform: translateX(200px);
    animation: slideRight 2.4s ease-in-out infinite
}

@keyframes slideLeft {
    0%, 100% { transform: translateX(-200px) }
    50% { transform: translateX(-60px) }
}

@keyframes slideRight {
    0%, 100% { transform: translateX(200px) }
    50% { transform: translateX(60px) }
}

.fusion-effect {
    position: absolute;
    width: 220px;
    height: 220px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,169,110,.25) 0%, rgba(232,180,184,.15) 40%, transparent 70%);
    animation: pulse 1.2s ease-in-out infinite;
    display: none
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(.85); opacity: .6 }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1 }
}

.floating-hearts {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 220px;
    pointer-events: none
}

.floating-hearts span {
    position: absolute;
    color: var(--brand);
    opacity: .8;
    animation: floatUp 2.4s ease-in-out infinite
}

.floating-hearts span:nth-child(1) { left: 30%; top: 60%; font-size: 18px; animation-delay: .1s }
.floating-hearts span:nth-child(2) { left: 55%; top: 70%; font-size: 24px; animation-delay: .4s }
.floating-hearts span:nth-child(3) { left: 70%; top: 50%; font-size: 16px; animation-delay: .7s }

@keyframes floatUp {
    0% { transform: translateY(0); opacity: .2 }
    50% { transform: translateY(-14px); opacity: .9 }
    100% { transform: translateY(0); opacity: .2 }
}

.processing-text p {
    font-size: 1.05rem;
    color: var(--text-2);
    margin-bottom: 12px;
    font-weight: 600
}

.loading-bar {
    width: min(420px, 92%);
    height: 8px;
    background: rgba(201,169,110,.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto
}

.loading-progress {
    height: 100%;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    width: 0%;
    animation: loadingAnimation 48s ease-out forwards
}

@keyframes loadingAnimation {
    0% { width: 0% }
    25% { width: 35% }
    60% { width: 72% }
    100% { width: 100% }
}

.tips {
    margin-top: 10px;
    color: var(--text-2);
    font-size: .95rem;
    font-style: italic
}

/* Result */
.result-section {
    display: none;
    text-align: center;
    margin: 24px auto;
    max-width: 900px;
    padding: 0 18px
}

.result-section.show {
    display: block;
    animation: fadeIn .3s ease
}

.result-image-container {
    position: relative;
    display: inline-block;
    max-width: 560px;
    width: 100%;
    margin: 16px auto
}

.result-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .4);
    transition: filter .3s;
    pointer-events: none;
}

.result-image.blurred {
    filter: blur(0px)
}

.close-result-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 16px;
    display: none;
}

.share-result-btn,
.download-result-btn {
    position: absolute;
    bottom: 10px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    margin: 5px;
    display: none;
}

.download-result-btn { right: -40px; }
.share-result-btn { left: 80px; }

.result-image-container:hover .close-result-btn { display: block; }
.result-image-container:hover .share-result-btn { display: block; }
.result-image-container:hover .download-result-btn { display: block; }

.view-result-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 900;
    color: #fff;
    background: rgba(0, 0, 0, .82);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: transform .2s, background .2s;
    backdrop-filter: blur(10px);
    letter-spacing: 0.0125em;
}

.view-result-btn:hover {
    background: rgba(0, 0, 0, .92);
    transform: translate(-50%, -50%) scale(1.03)
}

@keyframes btnSpin {
    to { transform: translateY(-50%) rotate(360deg); }
}

.view-result-btn.loading {
    pointer-events: none;
    opacity: 0.9;
}

.view-result-btn.loading::after {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    transform: translateY(-50%);
    animation: btnSpin .8s linear infinite;
}

.disclaimer {
    display: none;
    margin-top: 12px;
    color: var(--text-2);
    font-size: .95rem;
    font-style: italic
}

/* Library */
.past-results {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 18px;
    text-align: center;
}

.past-results h2 { margin-bottom: 12px; font-size: 1.6rem; }

.past-results__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    justify-items: center;
}

.past-results__image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.past-results__item {
    position: relative;
    display: inline-block;
}

.trash-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    padding: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.trash-icon:hover {
    background: rgba(255, 255, 255, 0.8);
    color: #fff;
}

/* Features */
.features {
    max-width: 1100px;
    margin: 8px auto 18px;
    padding: 0 18px
}

.features h2 {
    text-align: center;
    margin-bottom: 14px;
    font-size: clamp(1.4rem, 2.3vw, 1.8rem)
}

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

.feat {
    background: var(--card);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
    text-align: center;
    transition: transform .2s, box-shadow .2s;
    border: 1px solid rgba(201,169,110,.08);
}

.feat:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .2)
}

.feat__icon { font-size: 24px; margin-bottom: 6px }
.feat h3 { font-size: 1.05rem; margin-bottom: 6px }
.feat p { color: var(--text-2); font-size: .95rem }

.cta-center {
    display: flex;
    justify-content: center;
    margin-top: 14px
}

/* FAQ */
.faq {
    max-width: 900px;
    margin: 10px auto 28px;
    padding: 0 18px
}

.faq h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: clamp(1.4rem, 2.3vw, 1.8rem)
}

.faq details {
    background: var(--card);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
    transition: box-shadow .2s;
    border: 1px solid rgba(201,169,110,.06);
}

.faq details:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, .15)
}

.faq summary {
    cursor: pointer;
    font-weight: 800;
    padding: 4px 0
}

.faq summary::-webkit-details-marker {
    color: var(--brand)
}

.faq p {
    color: var(--text-2);
    margin-top: 8px;
    line-height: 1.5
}

/* Countdown Timer */
.countdown-timer {
    background: rgba(185, 28, 28, .15);
    color: #fca5a5;
    font-weight: bold;
    text-align: center;
    padding: 6px 8px;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 0.9rem;
}

.countdown-timer-pre { white-space: pre-line; }

.old-price {
    color: var(--text-2);
    text-decoration: line-through;
    margin-right: 8px;
}

/* Modal */
.modal {
    overflow: scroll;
    z-index: 1001;
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .85);
    animation: fadeIn .25s ease
}

.modal-content {
    background: var(--card);
    margin: 2% auto;
    padding: 32px 24px 24px;
    border-radius: 18px;
    max-width: 520px;
    width: 92%;
    position: relative;
    animation: slideUp .25s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    max-height: 95vh;
    overflow-y: auto;
    border: 1px solid rgba(201,169,110,.12);
}

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

.close {
    position: absolute;
    right: 16px;
    top: 12px;
    font-size: 28px;
    font-weight: 900;
    color: var(--text-2);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color .2s
}

.close:hover { color: var(--text-1) }

.modal h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.35rem;
    line-height: 1.2;
}

.modal-desc {
    text-align: center;
    color: var(--text-2);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.pricing-info {
    text-align: center;
    margin-bottom: 10px
}

.price-tag {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #0D0D0D;
    padding: 16px;
    border-radius: 14px;
    margin: 32px 0
}

.price-tag .old-price {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.95);
    padding: 2px 6px;
    border-radius: 6px;
    text-decoration-thickness: 2px;
}

.price { font-size: 2.2rem; font-weight: 900; display: block }
.description { font-size: 1.02rem; opacity: .95 }

/* Stripe button */
.payment-embed-container {
    display: flex;
    justify-content: center;
    margin-top: 16px
}

.payment-embed {
    width: 100%;
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.payment-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 8px;
    background: #635bff;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
    border: 0;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .08), 0 8px 20px rgba(99, 91, 255, .35);
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.payment-link-button:hover {
    background: #584fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12), 0 10px 28px rgba(99, 91, 255, .45);
}

.payment-link-button:active {
    transform: translateY(0);
    background: #4f46e5;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .16), 0 6px 18px rgba(99, 91, 255, .35);
}

.payment-link-button:focus-visible {
    outline: 3px solid rgba(99, 91, 255, .55);
    outline-offset: 3px;
}

.payment-link-button .lock-icon {
    width: 18px;
    height: 18px;
    color: #ffffff;
    flex-shrink: 0;
    opacity: .95;
}

.payment-secure-note {
    margin: 0;
    font-size: 11px;
    color: var(--text-2);
    text-align: center;
}

/* Footer */
.footer {
    max-width: 1100px;
    margin: 0 auto 0px;
    text-align: center;
    color: var(--text-2);
    font-size: .9rem;
    padding: 8px 18px
}

.footer-links { margin-top: 2px; margin-bottom: 8px; gap: 8px; }

/* Pack cards */
.pack-selector {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 8px;
}

.pack-card {
    position: relative;
    border: 2px solid rgba(201,169,110,.15);
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    background: var(--muted);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.pack-card[aria-checked="true"] {
    border-color: var(--brand);
    box-shadow: 0 8px 22px rgba(201,169,110,.12);
}

.pack-card:hover { transform: translateY(-1px); }

.pack-card__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
}

.pack-name { font-weight: 900; font-size: 1rem; }
.pack-credits { color: var(--text-2); font-weight: 700; font-size: 0.9rem; }
.pack-price { font-size: 1.3rem; font-weight: 900; line-height: 1; }

.pack-note {
    display: none;
    color: var(--text-2);
    font-size: 0.85rem;
}

.pack-card--popular .ribbon {
    position: absolute;
    top: -8px;
    right: 10px;
    background: var(--brand);
    color: #0D0D0D;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 0.7rem;
}

.pack-promo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    margin-bottom: 4px;
    padding: 4px 6px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--muted), var(--muted)) padding-box,
    linear-gradient(135deg, var(--brand), var(--brand-2)) border-box;
    border: 1.5px solid transparent;
    box-shadow: 0 4px 12px rgba(201,169,110,.1);
}

.pack-old {
    color: var(--text-2);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    font-weight: 800;
    font-size: 0.85rem;
}

.pack-save {
    background: #10b981;
    color: #062e25;
    font-weight: 900;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 999px;
}

.pack-card[aria-checked="true"] .pack-credits {
    font-weight: 700;
    font-size: 0.9rem;
    background: linear-gradient(90deg, var(--text-2) 0%, var(--text-2) 40%, var(--brand) 50%, var(--brand-2) 60%, var(--text-2) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

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

/* Credits area */
.credits-area {
    display: flex;
    gap: 8px;
    align-items: center;
    cursor: pointer
}

.credits-badge {
    background: rgba(201,169,110,.1);
    color: var(--text-1);
    border: 1px solid rgba(201,169,110,.2);
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 800;
}

/* Billing toggle */
.billing-toggle {
    display: flex;
    gap: 8px;
    background: var(--muted);
    border: 1px solid rgba(201,169,110,.1);
    padding: 6px;
    border-radius: 999px;
    margin: 10px 0 12px;
}

.billing-toggle__btn {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 10px 12px;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
    color: var(--text-2);
}

.billing-toggle__btn.is-active {
    background: var(--card);
    color: var(--text-1);
    box-shadow: 0 8px 18px rgba(0,0,0,.15);
}

.subscription-box { margin-top: 8px; }

.subscription-card {
    position: relative;
    border-radius: 14px;
    padding: 14px;
    border: 2px solid rgba(201,169,110,.3);
    background: linear-gradient(135deg, var(--muted), var(--muted)) padding-box,
    linear-gradient(135deg, var(--brand), var(--brand-2)) border-box;
    box-shadow: 0 14px 40px rgba(201,169,110,.08);
}

.ribbon--sub {
    position: absolute;
    top: -10px;
    left: 12px;
    background: var(--brand);
    color: #0D0D0D;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .75rem;
}

.subscription-card__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.subscription-title { font-weight: 900; font-size: 1.05rem; }
.subscription-subtitle { color: var(--text-2); font-size: .9rem; margin-top: 2px; white-space: pre-line; }

.subscription-price {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.subscription-price__main { font-weight: 900; font-size: 1.6rem; text-align: right; }
.subscription-price__per { color: var(--text-2); font-size: .9rem; text-align: right; margin-top: 2px; }

.subscription-bullets { margin: 10px 0 12px; padding-left: 18px; color: var(--text-1); }
.subscription-bullets li { margin: 6px 0; }

.change-payment-type {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px 8px;
    gap: 6px;
}

.change-payment-type-text {
    font-size: 0.9rem;
    color: var(--text-2);
    text-decoration: underline;
    cursor: pointer;
}

/* Other services */
.other-services {
    max-width: 1100px;
    margin: 8px auto 24px;
    padding: 0 18px;
    scroll-margin-top: 180px;
}

.other-services h2 {
    text-align: center;
    margin-bottom: 6px;
    font-size: clamp(1.4rem, 2.3vw, 1.8rem);
}

.other-services__subtitle {
    text-align: center;
    color: var(--text-2);
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.other-services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.other-service-card {
    background: var(--card);
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
    border: 1px solid rgba(201,169,110,.06);
}

.other-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .2);
}

.other-service-card__image-wrapper { position: relative; width: 100%; overflow: hidden; }
.other-service-card__image { inset: 0; width: 100%; height: 100%; object-fit: contain; }
.other-service-card__video { inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* Image Compare Component (used by other-services cards) */
.ic-compare {
    --ic-pos: 50%;
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 16px;
    overflow: hidden;
    user-select: none;
    touch-action: none;
    background: #1a1a2e;
}

.ic-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.ic-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    clip-path: inset(0 calc(100% - var(--ic-pos, 50%)) 0 0);
}

.ic-handle {
    display: grid;
    grid-auto-flow: column;
    position: absolute;
    top: 0;
    left: var(--ic-pos, 50%);
    transform: translateX(-50%);
    height: 100%;
    width: 40px;
    cursor: ew-resize;
    z-index: 2;
    outline: none;
}

.ic-handle::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 0 12px rgba(0, 0, 0, .25);
}

.ic-handle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.125);
    backdrop-filter: blur(7px);
    box-shadow: rgba(0, 0, 0, 0.35) 0px 0px 4px;
    border: 2px solid #fff;
}

.ic-handle:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 3px;
    border-radius: 8px;
}

.ic-handle-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    justify-self: center;
    z-index: 3;
    width: 0px;
    height: 0px;
    border-top: 8px solid transparent;
    border-right: 10px solid;
    border-bottom: 8px solid transparent;
    color: white;
}

.ic-labels {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 3;
    pointer-events: none;
}

.ic-label {
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .3px;
}

.ic-label--edited {
    margin-right: 4px;
}

.ic-label--original {
    margin-left: 4px;
}

.other-service-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.other-service-card__title { font-size: 1rem; font-weight: 800; color: var(--text-1); }
.other-service-card__description { font-size: 0.9rem; color: var(--text-2); }

.other-service-card__cta {
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.other-service-card__cta::after { content: "\203A"; font-size: 1rem; line-height: 1; }
.other-service-card__cta:hover { text-decoration: underline; }

/* Lead offer */
.lead-offer {
    display: none;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(201,169,110,.1);
}

.lead-offer__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-2);
}

.lead-offer__divider::before,
.lead-offer__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(201,169,110,.15);
}

.lead-offer__text { font-size: 0.9rem; color: var(--text-2); text-align: center; margin-bottom: 10px; }
.lead-offer__text strong { font-weight: 800; }

.lead-form { display: flex; flex-direction: column; gap: 6px; }
.lead-form__label { font-size: 0.85rem; font-weight: 600; color: var(--text-2); }
.lead-form__row { display: flex; gap: 8px; }

.lead-form__input {
    flex: 1;
    border-radius: 999px;
    border: 1px solid rgba(201,169,110,.2);
    padding: 9px 12px;
    font-size: 0.95rem;
    outline: none;
    min-width: 0;
    background: var(--muted);
    color: var(--text-1);
}

.lead-form__input:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-color: var(--brand);
}

.lead-form__btn {
    border: none;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #0D0D0D;
    box-shadow: 0 6px 18px rgba(201,169,110,.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lead-form__btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(201,169,110,.3); }
.lead-form__btn:disabled { opacity: 0.7; cursor: default; transform: none; box-shadow: none; }

.lead-form__btn.loading::after {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.4);
    border-top-color: #0D0D0D;
    margin-left: 6px;
    animation: btnSpin .8s linear infinite;
}

.lead-form__help { font-size: 0.8rem; color: var(--text-2); margin: 0; }
.lead-form__error { font-size: 0.8rem; color: #fca5a5; margin: 0; }
.lead-form__success { font-size: 0.8rem; color: #86efac; margin: 0; }

/* A2HS */
.a2hs-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 999;
    background: #111;
    color: #fff;
    padding: 23px env(safe-area-inset-right) calc(23px + env(safe-area-inset-bottom)) env(safe-area-inset-left);
    border-top: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .25);
    transform: translateY(110%);
    transition: transform .25s ease;
    font-size: 15px;
}

.a2hs-banner.show { transform: translateY(0); }

.a2hs-content {
    display: grid;
    padding: 2px 12px;
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
    align-items: center;
}

.a2hs-icon { border-radius: 8px; }
.a2hs-text strong { display: block; font-size: 16px; margin-bottom: 4px; }
.a2hs-text p { margin: 0; opacity: .9; }
.a2hs-ios { margin: 0; padding-left: 18px; }
.a2hs-install { white-space: nowrap; }

.a2hs-close {
    position: absolute; top: 6px; right: 8px;
    width: 32px; height: 32px; border: 0;
    background: transparent; color: #fff;
    font-size: 22px; line-height: 32px; cursor: pointer;
}

@media (min-width: 768px) {
    .a2hs-banner { left: auto; right: 20px; bottom: 90px; width: 420px; border-radius: 12px; }
}

/* Responsive */
@media (max-width: 920px) {
    .nav { display: none }
    .nav-toggle { display: block }
    .hero { grid-template-columns:1fr; gap: 18px; text-align: center }
    .hero__art { order: -1; height: 220px }
    .steps { grid-template-columns:1fr }
    .upload-grid { grid-template-columns:1fr; gap: 12px }
    .features__grid { grid-template-columns:1fr }
    .generate-btn { width: 100%; max-width: 520px }
    .clothing-grid { grid-template-columns: repeat(2, 1fr); }
    .credits-area { display: none; }
    .credits-area--drawer {
        display: flex; gap: 8px; align-items: center;
        padding: 10px 0; border-top: 1px solid rgba(201,169,110,.1); flex-wrap: wrap;
    }
    .nav-drawer .btn { width: 100%; }
}

@media (max-width: 620px) {
    .fusion-animation { height: 180px }
    .image-container { width: 130px; height: 130px; top: 20px }
    .image-left { animation: slideLeftSm 2.4s ease-in-out infinite }
    .image-right { animation: slideRightSm 2.4s ease-in-out infinite }
    @keyframes slideLeftSm { 0%, 100% { transform: translateX(-150px) } 50% { transform: translateX(-40px) } }
    @keyframes slideRightSm { 0%, 100% { transform: translateX(150px) } 50% { transform: translateX(40px) } }
    .fusion-effect { width: 180px; height: 180px }
    .floating-hearts { display: none }
    .hero__cta .btn { flex: 1 1 100% }
    .sticky-banner { font-size: 0.9rem; padding: 14px 15px; }
    .sticky-banner .price { font-size: 1rem; color: var(--text-1); }
    .sticky-banner .old-price { color: var(--text-2); }
}

@media (max-width: 600px) {
    .other-services { margin-bottom: 20px; }
}

@media (max-width: 480px) {
    .topbar__inner { padding: 10px 14px }
    .section-subtitle { margin-bottom: 12px }
    .upload-grid { gap: 10px }
    .image-upload { padding: 18px 12px; min-height: 200px }
    .drop-hint { display: none }
    .result-image-container { max-width: 96% }
    .view-result-btn { padding: 12px 18px; font-size: .95rem }
    .modal-content { margin: 1% auto; padding: 24px 16px 20px; width: 96%; max-height: 98vh; }
    .modal h2 { font-size: 1.25rem; margin-bottom: 6px; }
    .modal-desc { font-size: 0.9rem; margin-bottom: 12px; }
    .pack-selector { gap: 6px; }
    .pack-card { padding: 8px; }
    .pack-name { font-size: 0.95rem; }
    .pack-price { font-size: 1.2rem; }
    .countdown-timer { padding: 5px 6px; font-size: 0.85rem; }
    .payment-link-button { padding: 11px 16px; font-size: 0.95rem; }
    .close { right: 12px; top: 8px; font-size: 24px; }
    .note { font-size: .85rem }
    .lead-form__row { flex-direction: column; }
    .lead-form__btn { width: 100%; justify-content: center; }
}

@media (max-width: 380px) {
    .modal h2 { font-size: 1.15rem; }
    .pack-price { font-size: 1.15rem; }
}

.buy-credits { white-space: nowrap; }

.pack-card--popular .pack-save { background: #22c55e; }

.modal-content .price .small {
    font-size: 1rem;
    font-weight: 700;
    opacity: .9;
}

.features-list { list-style: none; text-align: left; max-width: 320px; margin: 16px auto; color: var(--text-2); }
.features-list li { padding: 6px 0; display: flex; align-items: center; gap: 8px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .payment-link-button, .btn, .step, .feat, .bubble, .card-demo { transition: none; animation: none; }
}

/* Skeleton */
.skeleton {
    background: linear-gradient(90deg, #1a1a2e 25%, #252538 50%, #1a1a2e 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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