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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%
}

:root {
    --bg: #FAFAF9;
    --bg-white: #FFFFFF;
    --bg-soft: #F5F3F0;
    --bg-accent: #FFF7F5;
    --bg-accent-2: #F0F4FF;
    --text-primary: #1A1A1A;
    --text-secondary: #6B6B6B;
    --text-tertiary: #9CA3AF;
    --text-on-accent: #FFFFFF;
    --accent: #E8456B;
    --accent-hover: #D63A5E;
    --accent-soft: #FDEEF1;
    --accent-2: #7C5CFC;
    --accent-2-soft: #F0EDFF;
    --border: #E8E8E8;
    --border-hover: #D1D1D1;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, .08);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, .1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --font-sans: "Inter", -apple-system, sans-serif;
    --font-serif: "Playfair Display", Georgia, serif;
    --font-script: "Dancing Script", cursive
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.6
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px))
}

.container-sm {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px))
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding-top: env(safe-area-inset-top, 0px);
    background: #ffffffd9;
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .3s ease
}

.nav.scrolled {
    box-shadow: var(--shadow-sm)
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(6px, 2vw, 12px);
    height: 64px;
    min-width: 0
}

.logo {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden
}

.logo-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 1px 4px #0000001f
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.nav-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex: 0 0 auto;
    flex-shrink: 0
}

.nav-actions .btn {
    padding: 6px 12px;
    font-size: .75rem;
    font-weight: 600;
    gap: 4px;
    white-space: nowrap
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-family: var(--font-sans);
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    border: none;
    text-decoration: none;
    line-height: 1.4
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 1px 3px #e8456b4d
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px #e8456b4d
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border)
}

.btn-ghost:hover {
    border-color: var(--border-hover);
    background: var(--bg-soft)
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem
}

.btn-full {
    width: 100%
}

.btn-icon {
    padding: 10px
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: .8rem;
    font-weight: 600
}

.badge-soft {
    background: var(--accent-soft);
    color: var(--accent)
}

.badge-outline {
    border: 1px solid var(--border);
    color: var(--text-secondary);
    background: var(--bg-white)
}

.hero {
    padding: 120px 0 52px;
    text-align: center;
    position: relative;
    overflow: hidden
}

.hero-content {
    position: relative;
    z-index: 2
}

.hero-ba-grid {
    display: grid;
    grid-template-columns:minmax(0, 1fr) minmax(260px, 560px) minmax(0, 1fr);
    gap: 16px 20px;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto
}

.hero-center {
    min-width: 0;
    text-align: center
}

.hero-ba {
    margin: 0;
    width: 100%;
    max-width: 220px;
    justify-self: center
}

.hero-ba--before {
    justify-self: start
}

.hero-ba--after {
    justify-self: end
}

.hero-ba-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-white);
    border: 2px solid rgba(255, 255, 255, .95);
    aspect-ratio: 3 / 4;
    max-height: min(320px, 42vh)
}

.hero-ba-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.hero-ba figcaption {
    text-align: center;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-tertiary);
    margin-top: 10px
}

.hero-ba--before .hero-ba-frame {
    outline: 3px solid rgba(107, 107, 107, .25);
    outline-offset: -3px
}

.hero-ba--after {
    max-width: 200px
}

.hero-ba--after .hero-ba-frame {
    outline: 3px solid rgba(232, 69, 107, .35);
    outline-offset: -3px;
    max-height: min(290px, 38vh)
}

.hero-ba--after figcaption {
    color: var(--accent)
}

.fake-activity-toast {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 95;
    max-width: min(360px, calc(100vw - 40px));
    padding: 12px 14px 12px 16px;
    background: #fffffff5;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    font-size: .8125rem;
    line-height: 1.45;
    color: var(--text-secondary);
    text-align: left;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .45s ease, transform .45s ease;
    pointer-events: none
}

.fake-activity-toast.vis {
    opacity: 1;
    transform: translateY(0)
}

.fake-activity-toast .fat-title {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 6px
}

.fake-activity-toast .fat-msg {
    color: var(--text-primary);
    font-weight: 500
}

.fake-activity-toast .fat-email {
    font-family: ui-monospace, Cascadia Code, monospace;
    font-size: .78rem;
    color: var(--accent);
    word-break: break-all
}

@media (max-width: 640px) {
    .fake-activity-toast {
        left: 12px;
        right: 12px;
        bottom: 14px;
        max-width: none
    }
}

@media (prefers-reduced-motion: reduce) {
    .fake-activity-toast {
        transition: none
    }
}

.landing.hidden + #fake-activity-toast {
    display: none !important
}

.hero:before {
    content: "";
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translate(-50%);
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 69, 107, .06) 0%, transparent 70%);
    pointer-events: none
}

.hero-badge {
    margin-bottom: 12px
}

.hero h1 {
    font-family: var(--font-sans);
    font-size: clamp(1.5rem, 3.2vw, 2.35rem);
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1.3;
    max-width: 44rem;
    margin: 0 auto 18px;
    color: #1f1a1c;
    font-feature-settings: "liga" 1, "kern" 1
}

.hero h1 em {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--accent);
    font-weight: 600
}

.hero-cta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px
}

.hero-hook {
    max-width: 560px;
    margin: 0 auto;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--accent-soft) 0%, var(--bg-accent-2) 100%);
    border: 1px solid rgba(232, 69, 107, .14);
    font-size: .95rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.55;
    text-align: center
}

.hero-refund-note {
    margin-top: 12px;
    display: flex;
    justify-content: center
}

.hero-promo-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 0 auto 12px;
    max-width: 720px
}

.hero-cta-mainrow .hero-promo-badges {
    flex: 1 1 100%;
    width: 100%;
    margin-bottom: 4px
}

.hero-sub-stat {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0
}

.hero-ba-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 12px;
    max-width: 920px;
    margin: 0 auto 24px;
    padding: 0 clamp(4px, 2vw, 12px);
    align-items: start
}

.hero-ba-pair {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-width: 0
}

.hero-ba-strip > .hero-ba-pair:nth-child(4) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: 340px
}

.hero-ba-mini {
    margin: 0;
    flex: 1 1 0;
    min-width: 0;
    max-width: 150px;
    display: flex;
    flex-direction: column
}

.hero-ba-mini .hero-ba-frame {
    flex: 1 1 auto;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--bg-soft);
    border: 2px solid rgba(255, 255, 255, .95);
    aspect-ratio: 3 / 4;
    max-height: 210px
}

.hero-ba-mini .hero-ba-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.hero-ba-mini--after .hero-ba-frame {
    outline: 2px solid rgba(232, 69, 107, .35);
    outline-offset: -2px
}

.hero-ba-mini figcaption {
    font-size: .65rem;
    margin-top: 6px;
    flex-shrink: 0;
    text-align: center;
    line-height: 1.2
}

@media (min-width: 901px) {
    .hero-ba-strip {
        max-width: min(1040px, 100%);
        gap: 22px 20px;
        margin: 0 auto 32px;
        padding: 0 20px
    }

    .hero-ba-pair {
        gap: 12px
    }

    .hero-ba-strip > .hero-ba-pair:nth-child(4) {
        max-width: 420px;
        margin-top: 6px
    }

    .hero-ba-mini {
        max-width: min(176px, 100%)
    }

    .hero-ba-mini .hero-ba-frame {
        max-height: clamp(232px, 26vw, 272px);
        box-shadow: var(--shadow-lg)
    }

    .hero-ba-mini figcaption {
        font-size: .72rem;
        margin-top: 8px;
        letter-spacing: .04em
    }
}

@media (min-width: 1200px) {
    .hero-ba-strip {
        max-width: 1100px;
        gap: 26px 24px
    }

    .hero-ba-mini {
        max-width: 188px
    }

    .hero-ba-mini .hero-ba-frame {
        max-height: min(288px, 30vh)
    }

    .hero-ba-strip > .hero-ba-pair:nth-child(4) {
        max-width: 460px
    }
}

.hero-cta-mainrow {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px
}

.btn-hero-xl {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 800;
    border-radius: var(--radius-full);
    box-shadow: 0 12px 36px #e91e6359
}

.hero-cta-pill {
    display: inline-flex;
    align-items: center;
    padding: 12px 18px;
    border-radius: var(--radius-full);
    background: var(--bg-white);
    border: 2px solid var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
    font-size: .95rem;
    box-shadow: var(--shadow-sm)
}

.choose-us {
    padding: 56px 0 32px;
    background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
    border-bottom: 1px solid var(--border)
}

.choose-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 28px
}

.choose-us-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: left;
    height: 100%
}

.choose-us-ico {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px
}

.choose-us-ico svg {
    width: 26px;
    height: 26px
}

.choose-us-card h3 {
    font-size: 1.05rem;
    margin: 0 0 8px;
    line-height: 1.3
}

.choose-us-card p {
    margin: 0;
    font-size: .9rem;
    color: var(--text-secondary);
    line-height: 1.55
}

.pricing-price--sale {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 12px 20px
}

.pricing-price-was {
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--text-tertiary);
    letter-spacing: -.02em
}

.pricing-price-was s {
    text-decoration: line-through;
    opacity: .85
}

.pricing-price-now {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--text-primary)
}

.pricing-price-now .cur {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: .5;
    vertical-align: super
}

.test-result-thumb {
    margin: 16px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-soft)
}

.test-result-photo {
    width: 100%;
    height: auto;
    display: block;
    max-height: 220px;
    object-fit: cover
}

#reviews .test-grid .test-card:nth-child(2) .test-result-thumb {
    height: 220px
}

#reviews .test-grid .test-card:nth-child(2) .test-result-photo {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center 38%
}

#reviews .test-grid .test-card:nth-child(3) .test-result-thumb {
    height: 220px
}

#reviews .test-grid .test-card:nth-child(3) .test-result-photo {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center 24%
}

@media (max-width: 900px) {
    .hero-ba-strip {
        grid-template-columns: 1fr;
        max-width: min(420px, 100%);
        row-gap: 18px;
        column-gap: 12px;
        padding: 0 max(12px, env(safe-area-inset-left, 0px)) 0 max(12px, env(safe-area-inset-right, 0px))
    }

    .hero-ba-strip > .hero-ba-pair:nth-child(4) {
        grid-column: auto;
        justify-self: stretch;
        max-width: none;
        width: 100%
    }

    .hero-ba-pair {
        gap: clamp(8px, 2.4vw, 12px)
    }

    .hero-ba-mini {
        max-width: none
    }

    .hero-ba-mini .hero-ba-frame {
        max-height: min(220px, 42vw)
    }

    .choose-us-grid {
        grid-template-columns: 1fr
    }
}

@media (max-width: 900px) and (min-width: 520px) {
    .hero-ba-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: min(560px, 100%);
        row-gap: 16px
    }

    .hero-ba-strip > .hero-ba-pair:nth-child(4) {
        grid-column: auto;
        justify-self: stretch;
        max-width: none;
        width: auto
    }

    .hero-ba-mini .hero-ba-frame {
        max-height: min(200px, 32vw)
    }
}

@media (max-width: 640px) {
    .upload-zone {
        min-height: 132px;
        padding: 28px 16px;
        -webkit-tap-highlight-color: transparent
    }
    .upload-zone-hint-desktop {
        display: none
    }
    .btn-hero-xl {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
        font-size: .95rem
    }
    .hero-cta-pill {
        width: 100%;
        justify-content: center;
        text-align: center
    }
}

.trust-bar {
    padding: 10px 0 40px;
    border-bottom: 1px solid var(--border);
    background: #fff9f5
}

.trust-cta-stack {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px
}

.trust-quote-card {
    margin: 0;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, .06);
    border-left: 5px solid #C9A227;
    padding: 16px 20px 16px 22px
}

.trust-quote-card p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.02rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0
}

.trust-quote-card s {
    text-decoration: line-through;
    opacity: .8
}

.trust-cta-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 16px 28px;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, #ff5c8d, #e91e63 45%, #c2185b);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
    box-shadow: 0 10px 32px #e91e6373, 0 4px 12px #c2185b59;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease
}

.trust-cta-main:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 14px 40px #e91e638c, 0 6px 16px #c2185b66
}

.trust-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 4px;
    font-size: .8125rem;
    color: var(--text-tertiary);
    text-align: center;
    line-height: 1.45
}

.trust-inline-ico {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0
}

.trust-social {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    font-size: .8125rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.4
}

.trust-stars {
    color: #fbbf24;
    letter-spacing: 3px;
    font-size: 1.05rem;
    line-height: 1
}

.trust-social strong {
    color: var(--text-primary);
    font-weight: 700
}

.s-header {
    text-align: center;
    margin-bottom: 56px
}

.s-header .s-tag {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent);
    margin-bottom: 12px
}

.s-header h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.15
}

.s-header h2 em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 600
}

.s-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 12px auto 0
}

.steps {
    padding: 96px 0;
    background: #fdfbf7
}

.steps .s-header h2 {
    font-family: var(--font-serif);
    font-weight: 700;
    font-style: normal;
    letter-spacing: -.02em
}

.steps .s-header h2 em {
    font-style: italic
}

.steps .s-header .steps-eyebrow {
    margin-bottom: 12px
}

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

.step-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 22px 26px;
    position: relative;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease
}

.step-card:hover {
    border-color: #e8456b40;
    box-shadow: var(--shadow-md);
    transform: translateY(-3px)
}

.step-watermark {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -.04em;
    color: #1a1a1a0f;
    line-height: 1;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none
}

.step-ico {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px
}

.step-ico svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round
}

.step-card h3 {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.25;
    padding-right: 3rem
}

.step-card p {
    font-size: .875rem;
    color: var(--text-secondary);
    line-height: 1.6
}

.why {
    padding: 48px 0;
    background: var(--bg-white)
}

.why-value {
    margin-bottom: 28px;
    max-width: 640px
}

.why-value .s-tag {
    margin-bottom: 8px;
    display: inline-block
}

.why-value h2 {
    font-size: clamp(1.35rem, 4.5vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.15;
    margin: 0 0 14px
}

.why-value-text {
    font-size: .95rem;
    color: #0f0f0f;
    font-weight: 700;
    line-height: 1.65;
    margin: 0
}

.why-value-text strong {
    color: var(--text-primary);
    font-weight: 700
}

.why-showcase-label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin: 0 0 14px
}

.why-showcase-grid {
    display: grid;
    grid-template-columns:1fr;
    gap: 18px;
    align-items: stretch
}

.why-ba--before {
    justify-self:center;
    width:min(100%, 220px)
}

.why-ba {
    margin: 0
}

.why-ba-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    aspect-ratio: 3 / 4
}

.why-ba--before .why-ba-frame {
    box-shadow: 0 8px 28px #00000014;
    max-height: min(420px, 52vh)
}

.why-ba-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.why-ba figcaption {
    font-size: .72rem;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-top: 8px;
    text-align: center;
    line-height: 1.3
}

.why-ba--before figcaption {
    color: var(--accent)
}

.why-after-grid {
    display: grid;
    grid-template-columns:repeat(2, 1fr);
    gap: 12px
}

.why-ba--after-featured {
    grid-column:1 / -1;
    justify-self:center;
    width:min(78%, 240px);
    margin-top:6px
}

.why-ba--after-featured .why-ba-frame {
    box-shadow:0 14px 36px #e91e6324;
    border-color:#e91e6338
}

.why-ba--after-featured figcaption {
    font-size:.72rem;
    font-weight:700;
    color:var(--accent)
}

.why-ba--after .why-ba-frame {
    aspect-ratio: 3 / 4
}

.why-ba--after figcaption {
    font-size: .62rem;
    margin-top: 4px;
    display: block
}

.why-cta {
    margin-top: 28px;
    text-align: center
}

.why-cta .btn {
    justify-content: center
}

.styles-section {
    padding: 96px 0;
    background: var(--bg)
}

.styles-section .s-header h2 {
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: -.02em
}

.styles-section .s-header > .badge {
    margin-bottom: 12px
}

.ba-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 36px
}

.ba-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow .25s ease, transform .2s ease
}

.ba-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px)
}

.ba-split {
    display: grid;
    grid-template-columns:1fr 1fr;
    align-items: stretch
}

.ba-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px 8px;
    gap: 10px;
    aspect-ratio: 1;
    min-width: 0;
    min-height: 0;
    overflow: hidden
}

.ba-before {
    background: #f3f4f6
}

.ba-side--photo {
    padding: 0;
    gap: 0;
    align-items: stretch
}

.ba-side--photo .ba-photo-img {
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    align-self: stretch;
    object-fit: cover;
    object-position: center top
}

.ba-side--photo p {
    flex: 0 0 44px;
    height: 44px;
    width: 100%;
    align-self: stretch;
    box-sizing: border-box;
    margin: 0;
    padding: 4px 6px 6px;
    max-width: none;
    font-size: .68rem;
    line-height: 1.35;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden
}

.ba-card--portrait .ba-side {
    aspect-ratio: 3 / 4
}

.ba-side--photo .ba-photo-img.ba-photo--torso {
    object-position: center 28%
}

.ba-side--photo .ba-photo-img.ba-photo--spring {
    object-position: center 32%
}

.ba-side--photo .ba-photo-img.ba-photo--elegant {
    object-position: center 42%;
    transform: scale(1.08);
    transform-origin: center 45%
}

.ba-after--blue {
    background: #eef2ff
}

.ba-after--pink {
    background: #fdf2f8
}

.ba-after--cream {
    background: #f5f0e8
}

.ba-ico {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary)
}

.ba-ico svg {
    width: 36px;
    height: 36px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round
}

.ba-after .ba-ico {
    color: #4b5563
}

.ba-after--blue .ba-ico {
    color: #4338ca
}

.ba-after--pink .ba-ico {
    color: #db2777
}

.ba-after--cream .ba-ico {
    color: #92400e
}

.ba-side:not(.ba-side--photo) p {
    font-size: .72rem;
    line-height: 1.4;
    color: var(--text-secondary);
    margin: 0;
    max-width: 11em
}

.ba-card-label {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    text-align: center;
    padding: 14px 12px 16px;
    margin: 0;
    border-top: 1px solid var(--border);
    color: var(--text-primary)
}

.ba-cta-wrap {
    text-align: center
}

.ba-cta-wrap .btn {
    max-width: 440px;
    width: 100%
}

.pricing {
    padding: 96px 0;
    background: var(--bg-white)
}

.pricing .s-header h2, .testimonials .s-header h2, .faq .s-header h2 {
    font-family: var(--font-serif);
    font-weight: 700;
    font-style: normal;
    letter-spacing: -.02em
}

.pricing .s-header h2 em, .testimonials .s-header h2 em, .faq .s-header h2 em {
    font-family: inherit;
    font-style: italic;
    font-weight: 700
}

.pricing-card {
    max-width: 440px;
    margin: 0 auto;
    background: var(--bg);
    border: 2px solid var(--accent);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    text-align: center;
    position: relative
}

.pricing-card:before {
    content: "Популярный выбор";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translate(-50%);
    background: var(--accent);
    color: #fff;
    padding: 4px 20px;
    border-radius: var(--radius-full);
    font-size: .75rem;
    font-weight: 700
}

.pricing-price {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -.04em;
    margin: 16px 0 4px
}

.pricing-price .cur {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: .5;
    vertical-align: super
}

.pricing-note {
    font-size: .9rem;
    color: var(--text-secondary);
    margin-bottom: 32px
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: .9rem;
    color: var(--text-secondary)
}

.pricing-features li .check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.pricing-features li .check img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.pricing-safe {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: .8rem;
    color: var(--text-tertiary)
}

.pricing-safe-ico {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0
}

.package-picker-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 10px
}

.package-option {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    text-align: left;
    padding: 12px;
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease
}

.package-option:hover {
    border-color: var(--accent);
    transform: translateY(-1px)
}

.package-option.is-active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px #e8456b1a
}

.package-option-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px
}

.package-buy-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px
}

.package-buy-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    padding: 14px;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease
}

.package-buy-card:hover {
    border-color: var(--accent);
    transform: translateY(-1px)
}

.package-buy-card.is-active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px #e8456b1a
}

.package-buy-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px
}

.package-buy-price {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.1;
    margin-bottom: 4px
}

.package-buy-price .cur {
    font-size: .9rem;
    font-weight: 600;
    opacity: .6;
    vertical-align: super
}

@media (max-width: 900px) {
    .package-picker-grid, .package-buy-grid {
        grid-template-columns:1fr
    }
}

.price-compare {
    font-size: .85rem;
    color: var(--text-tertiary);
    margin-bottom: 24px
}

.price-compare s {
    color: var(--text-tertiary)
}

.price-compare strong {
    color: var(--accent)
}

.testimonials {
    padding: 96px 0
}

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

.test-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px
}

.test-stars {
    color: #fbbf24;
    font-size: .9rem;
    margin-bottom: 12px;
    letter-spacing: 2px
}

.test-text {
    font-size: .9rem;
    line-height: 1.6;
    margin-bottom: 16px;
    color: var(--text-primary)
}

.test-author {
    display: flex;
    align-items: center;
    gap: 10px
}

.test-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--bg-white);
    box-shadow: var(--shadow-sm)
}

.test-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.test-name {
    font-size: .85rem;
    font-weight: 600
}

.test-role {
    font-size: .75rem;
    color: var(--text-tertiary)
}

.faq {
    padding: 96px 0;
    background: var(--bg-white)
}

.faq-list {
    max-width: 640px;
    margin: 0 auto
}

.faq-item {
    border-bottom: 1px solid var(--border)
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-size: .95rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    transition: color .2s
}

.faq-q:hover {
    color: var(--accent)
}

.faq-q .faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--border);
    font-size: 1.1rem;
    color: var(--text-tertiary);
    transition: all .3s ease
}

.faq-item.open .faq-q .faq-icon {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: rotate(45deg)
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease
}

.faq-item.open .faq-a {
    max-height: 200px
}

.faq-a p {
    padding-bottom: 20px;
    font-size: .875rem;
    color: var(--text-secondary);
    line-height: 1.65
}

.cta-bottom {
    padding: 96px 0;
    text-align: center;
    background: var(--bg-white);
    border-top: 1px solid var(--border)
}

.cta-final {
    max-width: 520px;
    margin: 0 auto
}

.cta-final__eyebrow {
    margin-bottom: 12px
}

.cta-final__title {
    font-size: clamp(1.6rem, 3.8vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.15;
    color: var(--text-primary);
    margin: 0 0 16px
}

.cta-final__title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 600;
    color: var(--accent)
}

.cta-final__body {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 28em;
    margin: 0 auto 20px
}

.cta-final__price {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text-primary);
    margin: 0 0 24px
}

.cta-final__price strong {
    color: var(--accent);
    font-weight: 800
}

.cta-final .btn-lg {
    width: 100%;
    max-width: 400px;
    justify-content: center
}

.cta-final__note {
    margin-top: 18px;
    font-size: .8125rem;
    color: var(--text-tertiary);
    line-height: 1.5
}

.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border)
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px
}

.footer-brand {
    min-width: 0
}

.footer-copy {
    font-size: .8rem;
    color: var(--text-tertiary)
}

.footer-inn {
    font-size: .75rem;
    color: var(--text-tertiary);
    margin: 6px 0 0;
    line-height: 1.4
}

.footer-inn a {
    color: var(--text-tertiary);
    text-decoration: none
}

.footer-inn a:hover {
    color: var(--accent);
    text-decoration: underline
}

.footer-links {
    display: flex;
    gap: 20px
}

.dash-legal {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: .75rem;
    color: var(--text-tertiary);
    text-align: center;
    line-height: 1.45
}

.dash-legal a {
    color: var(--text-tertiary);
    text-decoration: none
}

.dash-legal a:hover {
    color: var(--accent);
    text-decoration: underline
}

.modal-inn {
    margin-top: 14px;
    font-size: .75rem;
    color: var(--text-tertiary);
    text-align: center;
    line-height: 1.45
}

.footer-links a {
    font-size: .8rem;
    color: var(--text-tertiary);
    text-decoration: none
}

.footer-links a:hover {
    color: var(--text-primary)
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #0006;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px
}

.modal-overlay.open {
    display: flex
}

.modal {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    position: relative;
    animation: modalIn .25s ease
}

@keyframes modalIn {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(.97)
    }
    to {
        opacity: 1;
        transform: none
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: all .2s
}

.modal-close:hover {
    background: var(--bg-soft);
    color: var(--text-primary)
}

.modal h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px
}

.modal .modal-sub {
    font-size: .9rem;
    color: var(--text-secondary);
    margin-bottom: 28px
}

.field {
    margin-bottom: 16px
}

.field label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px
}

.field input {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    background: var(--bg);
    font-family: var(--font-sans);
    font-size: .9rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color .2s
}

.field input:focus {
    border-color: var(--accent)
}

.field input::placeholder {
    color: var(--text-tertiary)
}

.field-row {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 12px
}

.field-error {
    display: none;
    color: var(--accent);
    font-size: .8rem;
    margin-top: 12px
}

.field-error.show {
    display: block
}

.field-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: .85rem;
    color: var(--accent);
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-weight: 500
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    font-size: .8rem;
    color: var(--text-tertiary)
}

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

.dashboard {
    display: none;
    min-height: 100vh;
    padding-top: 80px;
    background: var(--bg)
}

.dashboard.active {
    display: block
}

.dash-header {
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px
}

.dash-greeting {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.02em
}

.dash-sub {
    color: var(--text-secondary);
    font-size: .95rem;
    margin-top: 4px
}

.dash-paid-banner {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: .9rem;
    line-height: 1.5
}

.dash-coins-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 20px
}

.dash-coins-bar strong {
    font-size: 1.15rem;
    color: var(--accent)
}

.gen-history-grid {
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px
}

.gen-studio-wrap {
    display: none;
    margin-top: 24px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius-xl);
    background: var(--bg-white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: box-shadow .3s ease
}

.gen-studio-wrap.gen-studio-visible {
    display: block;
    animation: genParamsIn .35s ease-out
}

.gen-studio-wrap:hover {
    box-shadow: var(--shadow-lg)
}

@keyframes genParamsIn {
    0% {
        opacity: 0;
        transform: translateY(8px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.gen-studio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border)
}

.gen-studio-header h4 {
    margin: 0;
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -.02em
}

.gen-studio-header p {
    margin: 2px 0 0;
    font-size: .75rem;
    color: var(--text-tertiary)
}

.gen-studio-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    background: transparent;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s
}

.gen-studio-icon-btn:hover {
    background: var(--bg-soft);
    color: var(--text-primary)
}

.gen-studio-err {
    display: none;
    margin: 12px 18px 0;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: .82rem;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca
}

.gen-studio-err.show {
    display: block
}

.gen-model-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(232, 69, 107, .2)
}

.gen-studio-phase {
    padding: 18px;
    position: relative
}

.gen-prompt-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px
}

.gen-prompt-row span {
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-secondary)
}

.gen-suggest-details summary {
    list-style: none;
    cursor: pointer;
    font-size: .72rem;
    color: var(--accent);
    font-weight: 600
}

.gen-suggest-details summary::-webkit-details-marker {
    display: none
}

.gen-suggest-panel {
    margin-top: 8px;
    padding: 8px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-soft)
}

.gen-suggest-panel button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    margin-bottom: 4px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    font-size: .78rem;
    cursor: pointer;
    font-family: var(--font-sans);
    color: var(--text-primary)
}

.gen-suggest-panel button:last-child {
    margin-bottom: 0
}

.gen-suggest-panel button:hover {
    background: var(--accent-soft)
}

.gen-prompt-block textarea {
    width: 100%;
    min-height: 88px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: .85rem;
    resize: vertical;
    outline: none;
    transition: border-color .2s
}

.gen-prompt-block textarea:focus {
    border-color: var(--accent);
    background: var(--bg-white)
}

.gen-prompt-block textarea::placeholder {
    color: var(--text-tertiary)
}

.gen-adv-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: .78rem;
    color: var(--text-secondary)
}

.gen-adv-toggle input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent)
}

.gen-adv-block {
    display: none;
    margin-top: 14px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--bg-soft);
    border: 1px solid var(--border)
}

.gen-adv-block.open {
    display: block
}

.gen-adv-block label {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px
}

.gen-adv-block textarea {
    min-height: 56px;
    font-size: .8rem
}

.gen-slider-row {
    margin-top: 12px
}

.gen-slider-row .gen-slider-val {
    float: right;
    font-size: .72rem;
    color: var(--text-secondary)
}

.gen-slider-row input[type=range] {
    width: 100%;
    margin-top: 6px;
    accent-color: var(--accent)
}

.gen-settings-card {
    margin-top: 16px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--bg-soft);
    border: 1px solid var(--border)
}

.gen-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    font-size: .8rem
}

.gen-setting-row:last-child {
    margin-bottom: 0
}

.gen-setting-row label {
    color: var(--text-secondary);
    font-weight: 500;
    flex-shrink: 0
}

.gen-setting-row select {
    max-width: 180px;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-white);
    font-family: var(--font-sans);
    font-size: .78rem;
    color: var(--text-primary)
}

.gen-studio-submit {
    margin-top: 18px;
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, var(--accent) 0%, #c73d62 100%);
    box-shadow: 0 2px 12px #e8456b59;
    transition: transform .15s, box-shadow .2s
}

.gen-studio-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px #e8456b66
}

.gen-studio-submit:disabled {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none
}

.gen-studio-submit-cron {
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    border: 1px solid rgba(232, 69, 107, .55);
    background: transparent;
    color: var(--accent);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease
}

.gen-studio-submit-cron:hover:not(:disabled) {
    transform: translateY(-1px);
    background: #e8456b14
}

.gen-studio-submit-cron:disabled {
    opacity: .45;
    cursor: not-allowed
}

.gen-studio-loading-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px 20px;
    min-height: 220px
}

.gen-studio-loading-inner .gen-loader-spinner {
    position: relative
}

.gen-studio-loading-inner .gen-loader-title {
    max-width: 280px
}

.gen-studio-loading-inner .gen-loader-hint {
    font-size: .75rem;
    color: var(--text-tertiary);
    text-align: center;
    margin: 0
}

.gen-studio-loading-inner .gen-loader-bar {
    width: min(280px, 90%)
}

.gen-studio-meta {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    font-size: .8rem;
    margin-bottom: 14px
}

.gen-studio-meta div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px
}

.gen-studio-meta div:last-child {
    margin-bottom: 0
}

.gen-studio-meta .k {
    color: var(--text-tertiary)
}

.gen-studio-meta .v {
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
    max-width: 65%;
    word-break: break-word
}

.studio-recent-gallery {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px
}

.studio-gallery-thumb {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--bg-soft)
}

.studio-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.studio-gallery-thumb:hover {
    border-color: var(--accent)
}

.studio-gallery-thumb-wrap {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-soft)
}

.studio-gallery-thumb-wrap:hover {
    border-color: var(--accent)
}

.studio-gallery-thumb-wrap .studio-gallery-thumb-main {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    cursor: zoom-in;
    border: none;
    padding: 0;
    background: none
}

.studio-gallery-thumb-wrap .studio-gallery-thumb-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.studio-thumb-dl {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #fffffff0;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    box-shadow: var(--shadow-sm);
    z-index: 2
}

.studio-thumb-dl:hover {
    background: #fff
}

.upload-ref-chip {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border);
    flex-shrink: 0
}

.upload-ref-chip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.upload-ref-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: #0000008c;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0
}

.upload-ref-remove:hover {
    background: #000000c7
}

.gen-studio-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.gen-studio-actions .btn {
    flex: 1;
    min-width: 120px
}

.gen-history-search-wrap {
    position: relative;
    margin-bottom: 14px
}

.gen-history-search-wrap input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-soft);
    font-size: .85rem
}

.gen-history-search-wrap:before {
    content: "⌕";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--text-tertiary);
    pointer-events: none
}

.gen-studio-history-list {
    max-height: 360px;
    overflow-y: auto
}

.gen-studio-history-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background .15s
}

.gen-studio-history-item:hover {
    background: var(--bg-soft)
}

.gen-studio-history-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0
}

.gen-studio-history-item .txt {
    min-width: 0;
    flex: 1
}

.gen-studio-history-item .txt p {
    margin: 0;
    font-size: .78rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.gen-studio-history-item .txt small {
    font-size: .68rem;
    color: var(--text-tertiary)
}

.gen-studio-history-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-tertiary);
    font-size: .85rem
}

.gen-result-panel {
    margin-top: 0;
    padding: 0;
    border-radius: 0;
    overflow: visible;
    border: none;
    background: transparent
}

.gen-studio-preview {
    position: relative;
    min-height: 200px;
    background: radial-gradient(ellipse 70% 55% at 50% 100%, rgba(232, 69, 107, .08), transparent 55%), radial-gradient(ellipse 55% 45% at 15% 25%, rgba(124, 92, 252, .06), transparent 50%), linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 32px
}

.gen-frame {
    position: relative;
    width: 100%;
    max-width: min(100%, 440px);
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    background: var(--bg-white)
}

.gen-frame.ratio-landscape {
    aspect-ratio: 16 / 9;
    max-height: 260px
}

.gen-frame.ratio-portrait {
    aspect-ratio: 9 / 16;
    max-width: 220px;
    max-height: 400px
}

.gen-frame.ratio-45 {
    aspect-ratio: 4 / 5;
    max-width: 240px;
    max-height: 420px
}

.gen-frame.ratio-34 {
    aspect-ratio: 3 / 4;
    max-width: 240px;
    max-height: 420px
}

.gen-frame.ratio-square {
    aspect-ratio: 1 / 1;
    max-width: 300px;
    max-height: min(300px, 55vh)
}

.gen-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    vertical-align: middle
}

.gen-result-img {
    transition: filter .85s cubic-bezier(.22, 1, .36, 1), opacity .85s cubic-bezier(.22, 1, .36, 1);
    filter: blur(18px);
    opacity: .35
}

.gen-result-img.gen-reveal-ready {
    filter: blur(0);
    opacity: 1
}

.gen-preview-low {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
    filter: blur(6px) saturate(.85);
    transition: opacity .55s ease;
    z-index: 1;
    pointer-events: none
}

.gen-loader {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 4;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: #ffffffeb;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg)
}

.gen-loader.active {
    display: flex
}

.gen-loader-spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    animation: genSpin .75s linear infinite
}

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

.gen-loader-title {
    margin: 0;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    max-width: 220px;
    line-height: 1.4
}

.gen-loader-count {
    display: none
}

.gen-loader-bar {
    width: min(240px, 80%);
    height: 5px;
    border-radius: 99px;
    background: var(--border);
    overflow: hidden
}

.gen-loader-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 99px;
    transition: width .35s ease-out
}

.gen-result-body {
    padding: 18px 20px 20px
}

.gen-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    font-size: .82rem
}

.gen-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    background: var(--bg-soft)
}

.gen-card-body {
    padding: 10px 12px
}

.gen-card-body p {
    color: var(--text-secondary);
    margin: 4px 0 8px;
    font-size: .75rem
}

.support-chat-root {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10050;
    font-family: var(--font-sans);
    display: none
}

.support-chat-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent), #c084fc);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    box-shadow: 0 8px 28px #e8456b73;
    display: flex;
    align-items: center;
    justify-content: center
}

.support-chat-fab:hover {
    transform: scale(1.05)
}

.support-chat-panel {
    display: none;
    flex-direction: column;
    position: absolute;
    bottom: 68px;
    right: 0;
    width: min(100vw - 32px, 380px);
    height: min(72vh, 440px);
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden
}

.support-chat-panel.open {
    display: flex
}

.support-chat-head {
    padding: 12px 14px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .9rem;
    font-weight: 700
}

.support-chat-head button {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1
}

.support-chat-msgs {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    font-size: .85rem;
    background: #fafafa
}

.support-msg {
    max-width: 92%;
    padding: 8px 10px;
    border-radius: 12px;
    margin-bottom: 10px;
    word-break: break-word
}

.support-msg.from-user {
    background: #fce7f3;
    margin-left: auto;
    text-align: right
}

.support-msg.from-admin {
    background: #e0e7ff;
    margin-right: auto
}

.support-msg-text {
    white-space: pre-wrap
}

.support-msg-img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 6px;
    display: block
}

.support-msg-time {
    font-size: .65rem;
    color: var(--text-tertiary);
    margin-top: 4px
}

.support-chat-foot {
    border-top: 1px solid var(--border);
    padding: 10px;
    background: var(--bg-white)
}

.support-chat-foot textarea {
    width: 100%;
    min-height: 52px;
    resize: vertical;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 8px;
    font-family: inherit;
    font-size: .85rem
}

.support-chat-foot .row2 {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    align-items: center;
    flex-wrap: wrap
}

.support-chat-foot input[type=file] {
    font-size: .75rem;
    max-width: 160px
}

@media (max-width: 640px) {
    .support-chat-root {
        right: 12px;
        bottom: 12px
    }
}

.dash-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border)
}

.upload-area {
    margin-top: 16px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    background: var(--bg-white)
}

.upload-area:hover {
    border-color: var(--accent);
    background: var(--accent-soft)
}

.upload-area .up-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    border-radius: var(--radius-md);
    overflow: hidden
}

.upload-area .up-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.upload-area p {
    font-size: .9rem;
    color: var(--text-secondary)
}

.upload-area .up-hint {
    font-size: .8rem;
    color: var(--text-tertiary);
    margin-top: 4px
}

.upload-instructions.photo-rules {
    margin-top: 28px;
    padding: 20px 18px 22px;
    background: #f7f5f2;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg)
}

.photo-rules__graphic {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #faf8f5;
    line-height: 0;
    box-shadow: 0 4px 20px #0000000f
}

.photo-rules__graphic img {
    width: 100%;
    height: auto;
    display: block
}

.photo-rules__steps {
    list-style: none;
    padding: 0;
    margin: 22px auto 0;
    max-width: 42rem;
    counter-reset: photo-step
}

.photo-rules__steps li {
    counter-increment: photo-step;
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 14px;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -.015em;
    color: var(--text-primary)
}

.photo-rules__steps li:last-child {
    margin-bottom: 0
}

.photo-rules__steps li:before {
    content: counter(photo-step);
    position: absolute;
    left: 0;
    top: .08em;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    background: linear-gradient(145deg, #22c55e, #15803d);
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.65rem
}

.photo-rules__note {
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.5;
    text-align: center;
    max-width: 40rem;
    margin: 18px auto 0
}

@media (max-width: 768px) {
    .upload-instructions.photo-rules {
        margin-top: 22px;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        width: 100vw;
        max-width: 100vw;
        padding: 0 0 22px;
        border-left: none;
        border-right: none;
        border-radius: 0
    }

    .photo-rules__graphic {
        border-radius: 0;
        box-shadow: 0 2px 14px #00000012
    }

    .photo-rules__graphic img {
        max-width: none
    }

    .photo-rules__steps {
        margin-top: 20px;
        max-width: none;
        padding: 0 max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px))
    }

    .photo-rules__steps li {
        font-size: clamp(1rem, 3.8vw, 1.125rem);
        line-height: 1.5;
        padding-left: 2.65rem;
        margin-bottom: 16px
    }

    .photo-rules__steps li:before {
        width: 1.75rem;
        height: 1.75rem;
        line-height: 1.75rem;
        font-size: .88rem
    }

    .photo-rules__note {
        text-align: left;
        font-size: clamp(.88rem, 3.2vw, .98rem);
        line-height: 1.55;
        max-width: none;
        margin-top: 16px;
        padding: 0 max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px))
    }
}

@media (max-width: 1024px) {
    .hero {
        padding: 108px 0 48px
    }

    .steps, .styles-section, .pricing, .testimonials, .faq, .cta-bottom {
        padding: 72px 0
    }

    .s-header {
        margin-bottom: 44px
    }
}

@media (max-width: 900px) {
    .steps-grid {
        grid-template-columns:repeat(2, 1fr)
    }

    .test-grid {
        grid-template-columns:1fr
    }

    .ba-grid {
        grid-template-columns:1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto
    }

    .hero-ba-grid {
        grid-template-columns:1fr 1fr;
        grid-template-rows:auto auto;
        align-items: start;
        column-gap: max(12px, 3vw);
        row-gap: 8px
    }

    .hero-ba--before, .hero-ba--after {
        grid-row: 1;
        justify-self: center;
        max-width: min(164px, calc(50vw - 20px));
        width: 100%
    }

    .hero-ba--before {
        grid-column: 1
    }

    .hero-ba--after {
        grid-column: 2
    }

    .hero-center {
        grid-column: 1 / -1;
        grid-row: 2
    }

    .hero-ba--before .hero-ba-frame, .hero-ba--after .hero-ba-frame {
        max-height: min(200px, 52vw)
    }
}

@media (max-width: 768px) {
    .nav-inner {
        min-height: 56px;
        height: auto;
        padding: 6px 0
    }

    .logo {
        font-size: .95rem;
        gap: 6px
    }

    .logo-text {
        max-width: min(9rem, 38vw)
    }

    .logo-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px
    }

    .hero {
        padding: 96px 0 40px
    }

    .hero-ba--before, .hero-ba--after {
        max-width: min(152px, calc(50vw - 18px))
    }

    .hero-ba--before .hero-ba-frame, .hero-ba--after .hero-ba-frame {
        max-height: min(180px, 50vw)
    }

    .hero h1 {
        font-size: clamp(1.2rem, 5.2vw, 1.65rem);
        line-height: 1.34;
        letter-spacing: -.006em;
        max-width: 30rem;
        margin-bottom: 14px
    }

    .trust-bar {
        padding: 8px 0 32px
    }

    .trust-cta-stack {
        gap: 12px
    }

    .dashboard {
        padding-top: calc(72px + env(safe-area-inset-top, 0px))
    }

    .dash-header {
        padding: 24px 0;
        margin-bottom: 24px
    }

    .dash-greeting {
        font-size: 1.25rem
    }

    .upload-area {
        padding: 28px 20px;
        margin-top: 24px
    }

    .upload-area p {
        font-size: 1rem
    }

    .upload-area .up-hint {
        font-size: .9rem;
        line-height: 1.45
    }

    .gen-studio-wrap {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
        border-radius: var(--radius-lg)
    }

    .gen-history-grid {
        grid-template-columns:repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px
    }

    .studio-recent-gallery {
        grid-template-columns:repeat(2, 1fr)
    }

    .dash-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        text-align: center
    }

    .modal-overlay {
        padding: 12px;
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right))
    }
}

@media (max-width: 640px) {
    .container, .container-sm {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right))
    }

    .steps-grid, .ba-grid {
        grid-template-columns:1fr
    }

    .hero-cta-row {
        flex-direction: column;
        align-items: stretch
    }

    .btn-lg {
        width: 100%
    }

    .trust-quote-card {
        padding: 14px 16px 14px 18px
    }

    .trust-quote-card p {
        font-size: .95rem;
        line-height: 1.48
    }

    .trust-cta-main {
        max-width: none;
        padding: 14px 22px;
        font-size: .9375rem
    }

    .hero-hook {
        font-size: .875rem;
        padding: 10px 12px;
        margin-bottom: 0
    }

    .steps, .styles-section, .pricing, .testimonials, .faq, .cta-bottom {
        padding: 48px 0
    }

    .s-header {
        margin-bottom: 32px
    }

    .s-header h2 br {
        display: none
    }

    .pricing-price {
        font-size: clamp(2.25rem, 12vw, 3.5rem)
    }

    .footer-inner {
        flex-direction: column;
        text-align: center
    }

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

    .nav-actions {
        gap: 5px
    }

    .nav-actions .btn {
        padding: 5px 10px;
        font-size: .6875rem
    }

    .field-row {
        grid-template-columns:1fr
    }

    .modal-overlay {
        align-items: center;
        justify-content: center;
        padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px))
    }

    .modal {
        padding: 24px 20px 28px;
        max-height: min(85dvh, 100%);
        overflow-y: auto;
        border-radius: var(--radius-xl);
        -webkit-overflow-scrolling: touch
    }

    .modal-close {
        top: 12px;
        right: max(12px, env(safe-area-inset-right))
    }

    .pricing-card {
        padding: 32px 20px
    }

    .fake-activity-toast {
        left: max(12px, env(safe-area-inset-left));
        right: max(12px, env(safe-area-inset-right));
        bottom: max(14px, env(safe-area-inset-bottom))
    }

    .support-chat-root {
        right: max(12px, env(safe-area-inset-right));
        bottom: max(12px, env(safe-area-inset-bottom))
    }

    .why-showcase-grid {
        grid-template-columns:1fr;
        gap: 20px
    }

    .why-after-grid {
        grid-template-columns:repeat(2, 1fr);
        gap: 8px
    }

    .why-ba--before .why-ba-frame {
        max-height: min(320px, 48vh);
        max-width: 280px;
        margin: 0 auto
    }

    .why-ba--after figcaption {
        font-size: .58rem
    }

    .gen-setting-row {
        flex-wrap: wrap;
        align-items: flex-start
    }

    .gen-setting-row select {
        max-width: 100%;
        width: 100%;
        margin-top: 6px
    }

    .gen-studio-header {
        flex-wrap: wrap;
        gap: 8px
    }

    .faq-q {
        padding: 16px 0;
        font-size: .9rem;
        min-height: 48px
    }

    .faq-item.open .faq-a {
        max-height: 320px
    }
}

@media (max-width: 400px) {
    .logo-text {
        display: none
    }

    .logo {
        flex: 0 0 auto
    }

    .nav-inner {
        gap: 6px
    }

    .nav-actions .btn {
        padding: 5px 8px;
        font-size: .625rem
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 88px 0 40px
    }

    .hero-badge .badge {
        font-size: .72rem;
        padding: 5px 12px
    }

    .step-card {
        padding: 24px 18px
    }

    .pricing-card:before {
        font-size: .68rem;
        padding: 4px 14px
    }
}

.reveal {
    opacity: 1;
    transform: translateY(20px);
    transition: all .6s cubic-bezier(.16, 1, .3, 1)
}

.reveal.vis {
    opacity: 1;
    transform: none
}

.landing {
    display: block
}

.landing.hidden {
    display: none
}

.spinner-sm {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .6s linear infinite
}

.app-below-nav {
    padding-top: 64px
}

.auth-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 64px);
    padding: 40px 20px;
    background: var(--bg)
}

.auth-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border)
}

.auth-card h1 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 4px
}

.auth-card .sub {
    font-size: .9rem;
    color: var(--text-secondary);
    margin-bottom: 28px
}

.auth-card .field {
    margin-bottom: 16px
}

.auth-card .field label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px
}

.auth-card .field input {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    background: var(--bg);
    font-family: var(--font-sans);
    font-size: .9rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color .2s
}

.auth-card .field input:focus {
    border-color: var(--accent)
}

.field-link {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: .85rem;
    color: var(--accent);
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-weight: 500
}

.field-link:hover {
    text-decoration: underline
}

.error-box {
    background: #fef2f2;
    border: 1px solid #FECACA;
    color: #991b1b;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-size: .85rem;
    margin-bottom: 12px
}

.success-box {
    background: #f0fdf4;
    border: 1px solid #BBF7D0;
    color: #166534;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-size: .85rem;
    margin-bottom: 12px
}

.page {
    padding: 32px 0 80px
}

.page-header {
    margin-bottom: 32px
}

.page-header h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -.02em
}

.page-header p {
    color: var(--text-secondary);
    font-size: .95rem;
    margin-top: 6px
}

.card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm)
}

.muted {
    color: var(--text-secondary);
    font-size: .9rem
}

.tertiary {
    color: var(--text-tertiary);
    font-size: .8rem
}

.nav-balance {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: .8rem;
    font-weight: 700
}

.nav-email {
    color: var(--text-tertiary);
    font-size: .8rem
}

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 20px;
    text-align: center;
    background: var(--bg);
    cursor: pointer;
    transition: border-color .2s, background .2s
}

.upload-zone:hover, .upload-zone.drag {
    border-color: var(--accent);
    background: var(--accent-soft)
}

.upload-zone .ico {
    font-size: 32px;
    margin-bottom: 8px
}

.upload-zone .hint {
    color: var(--text-tertiary);
    font-size: .8rem;
    margin-top: 4px
}

.refs-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px
}

.ref-thumb {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    display: block
}

.ref-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.ref-thumb button {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0009;
    color: #fff;
    border: 0;
    cursor: pointer;
    font-size: 12px;
    line-height: 1
}

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

@media (max-width: 720px) {
    .results-grid {
        grid-template-columns:repeat(2, 1fr)
    }
}

@media (max-width: 420px) {
    .results-grid {
        grid-template-columns:1fr
    }
}

.result-tile {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column
}

.result-tile .img-wrap {
    aspect-ratio: 3 / 4;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative
}

.result-tile .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.result-tile .label {
    padding: 10px 14px;
    font-family: var(--font-serif);
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-primary);
    border-top: 1px solid var(--border);
    text-align: center
}

.result-tile .err {
    padding: 12px;
    font-size: .8rem;
    color: #991b1b;
    text-align: center
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .8s linear infinite
}

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

.progress-bar {
    height: 8px;
    background: var(--bg-soft);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 12px 0
}

.progress-bar > span {
    display: block;
    height: 100%;
    background: var(--accent);
    border-radius: inherit;
    transition: width .4s
}

.batch-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px
}

.batch-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: .85rem;
    color: var(--text-tertiary)
}

.batch-thumbs {
    display: grid;
    grid-template-columns:repeat(6, 1fr);
    gap: 8px
}

@media (max-width: 720px) {
    .batch-thumbs {
        grid-template-columns:repeat(3, 1fr)
    }
}

.batch-thumbs .t {
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    color: var(--text-tertiary)
}

.batch-thumbs .t img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px
}

.admin-tab {
    padding: 10px 16px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    font-size: .875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color .15s, background .15s;
    border-bottom: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px
}

.admin-tab:hover {
    color: var(--text-primary);
    text-decoration: none;
    background: var(--bg-soft)
}

.admin-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: var(--bg-white)
}

.dot-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--radius-full);
    background: var(--accent);
    color: #fff;
    font-size: .7rem;
    font-weight: 700
}

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

@media (max-width: 720px) {
    .stat-grid {
        grid-template-columns:1fr 1fr
    }
}

.stat-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px
}

.stat-card.hl {
    border-color: var(--accent);
    background: var(--accent-soft)
}

.stat-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-tertiary);
    font-weight: 700;
    margin-bottom: 8px
}

.stat-value {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary)
}

.input-flat, textarea.input-flat, select.input-flat {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    background: var(--bg);
    font-family: var(--font-sans);
    font-size: .9rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color .2s
}

.input-flat:focus, textarea.input-flat:focus, select.input-flat:focus {
    border-color: var(--accent)
}

textarea.input-flat {
    resize: vertical;
    min-height: 120px
}

.table-wrap {
    overflow-x: auto
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem
}

.data-table th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-tertiary);
    font-weight: 700;
    background: var(--bg-soft);
    white-space: nowrap
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    vertical-align: middle
}

.data-table tr:hover td {
    background: var(--bg-soft)
}

.pay-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: .75rem;
    font-weight: 600
}

.pay-ok {
    background: #dcfce7;
    color: #166534
}

.pay-pend {
    background: #fef3c7;
    color: #92400e
}

.pay-cnl {
    background: #fee2e2;
    color: #991b1b
}

.admin-chat {
    display: grid;
    grid-template-columns:280px 1fr;
    gap: 0;
    height: 70vh;
    min-height: 480px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden
}

@media (max-width: 720px) {
    .admin-chat {
        grid-template-columns:1fr;
        height: auto
    }
}

.admin-chat-list {
    border-right: 1px solid var(--border);
    overflow-y: auto;
    background: var(--bg-soft)
}

.admin-chat-thread {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    font-family: var(--font-sans);
    transition: background .15s
}

.admin-chat-thread:hover {
    background: var(--bg-white)
}

.admin-chat-thread.active {
    background: var(--bg-white);
    border-left: 3px solid var(--accent);
    padding-left: 11px
}

.admin-chat-pane {
    display: flex;
    flex-direction: column;
    min-height: 0
}

.admin-chat-head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border)
}

.admin-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg)
}

.chat-msg {
    max-width: 75%;
    padding: 8px 12px;
    border-radius: var(--radius-md)
}

.chat-msg-body {
    font-size: .9rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-wrap: break-word
}

.chat-msg-time {
    font-size: .7rem;
    opacity: .6;
    margin-top: 4px
}

.chat-msg.mine {
    align-self: flex-end;
    background: var(--accent);
    color: #fff
}

.chat-msg.theirs {
    align-self: flex-start;
    background: var(--bg-white);
    border: 1px solid var(--border)
}

.chat-input {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--border);
    background: var(--bg-white)
}

.chat-input input {
    flex: 1;
    padding: 10px 14px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border);
    background: var(--bg);
    font-family: var(--font-sans);
    font-size: .9rem;
    outline: none
}

.chat-input input:focus {
    border-color: var(--accent)
}

.chat-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 200;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 24px #e8456b66;
    transition: transform .2s
}

.chat-fab:hover {
    transform: translateY(-2px)
}

.chat-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: var(--radius-full);
    background: #fff;
    color: var(--accent);
    font-size: .75rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent)
}

.chat-panel {
    position: fixed;
    right: 20px;
    bottom: 88px;
    z-index: 200;
    width: 360px;
    max-width: calc(100vw - 40px);
    height: 520px;
    max-height: calc(100vh - 120px);
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden
}

.chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-cream, #FDFBF7)
}

.chat-close {
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: var(--text-tertiary)
}

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

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg)
}
.auth-modal-overlay{position:fixed;inset:0;z-index:1000;background:rgba(20,12,20,.55);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);display:flex;align-items:flex-start;justify-content:center;overflow-y:auto;padding:56px 16px 32px}
.auth-modal-inner{position:relative;width:100%;max-width:420px}
.auth-modal-overlay .auth-wrap{min-height:0;background:transparent;padding:0;width:auto;display:block}
.auth-modal-overlay .auth-card{box-shadow:0 24px 64px rgba(0,0,0,.28)}
.auth-modal-close{position:absolute;top:-16px;right:-8px;z-index:2;width:38px;height:38px;border:0;border-radius:50%;background:#fff;box-shadow:0 6px 18px rgba(0,0,0,.2);font-size:24px;line-height:1;cursor:pointer;color:#444;display:flex;align-items:center;justify-content:center}
.auth-modal-close:hover{color:#111}
@media(max-width:520px){.auth-modal-close{top:4px;right:4px}}
