/* ===== Tokens ===== */
:root {
    --c-bg: #fff;
    --c-bg-soft: #f6f5fa;
    --c-bg-dark: #0e0a26;
    --c-bg-dark-2: #1a1745;
    --c-lavender: #b399ff;
    --c-magenta: #e23dad;
    --c-text: #0a0817;
    --c-text-muted: #5e5d72;
    --c-text-on-dark: #fff;
    --c-muted-on-dark: #9da3b4;
    --c-primary: #7058ef;
    --c-primary-light: #b4a4ff;
    --c-primary-glow: rgba(112, 88, 239, 0.4);
    --c-border: #e8e6f0;
    --c-border-dark: rgba(255, 255, 255, 0.08);
    --c-success: #00b67a;
    --radius: 20px;
    --radius-sm: 12px;
    --radius-pill: 999px;
    --max-w: 1240px;
    --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.5;
    font-feature-settings: 'ss01', 'cv11';
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
    text-align: center;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--c-primary);
    color: #fff;
    box-shadow: 0 8px 32px -8px var(--c-primary-glow), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.btn-primary:hover { background: #5e45db; box-shadow: 0 12px 40px -8px var(--c-primary-glow); }
.btn-ghost {
    background: transparent;
    color: var(--c-text);
    border: 1.5px solid var(--c-border);
}
.btn-ghost:hover { background: var(--c-bg-soft); }
.btn-ghost--on-dark {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}
.btn-ghost--on-dark:hover { background: rgba(255, 255, 255, 0.06); }
.btn--arrow::after {
    content: "→";
    display: inline-block;
    transition: transform 0.15s;
}
.btn--arrow:hover::after { transform: translateX(4px); }

/* ===== Accents ===== */
.italic {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    color: var(--c-primary);
    letter-spacing: -0.01em;
}
.italic--light { color: var(--c-primary-light); }

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-text-muted);
    margin-bottom: 12px;
}
.eyebrow--on-dark { color: var(--c-muted-on-dark); }

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 100;
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    gap: 24px;
}
.header__drawer {
    display: none;
    padding: 0 16px 16px;
}
.header__drawer-inner {
    border-radius: 24px;
    border: 1px solid rgba(221, 228, 241, 0.9);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    padding: 18px;
    display: grid;
    gap: 16px;
    box-shadow: 0 18px 50px rgba(16, 23, 38, 0.08);
}
.header__drawer-nav {
    display: grid;
    gap: 8px;
}
.header__drawer-nav a {
    padding: 10px 12px;
    border-radius: 14px;
    color: var(--c-text);
    background: var(--c-bg-soft);
    font-weight: 600;
}
.header__drawer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.header__cta .btn { padding: 13px 26px; font-size: 15px; }
.header__logo { height: 28px; }
.header__nav {
    display: flex;
    gap: 32px;
    flex: 1;
    margin-left: 40px;
}
.header__nav a {
    font-weight: 500;
    font-size: 15px;
    color: var(--c-text);
    transition: color 0.15s;
}
.header__nav a:hover { color: var(--c-primary); }
.lang-switcher {
    display: inline-flex;
    align-items: center;
}
.lang-switcher__select {
    min-width: 116px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--c-border);
    background: rgba(255, 255, 255, 0.92);
    color: var(--c-text);
    font: inherit;
}
.header__burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin: -8px;
}
.header__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--c-text);
    margin: 5px 0;
    transition: 0.2s;
}

/* ===== Hero (dark) ===== */
.hero {
    background:
        radial-gradient(ellipse 60% 45% at 50% 0%, rgba(180, 164, 255, 0.45) 0%, transparent 70%),
        radial-gradient(ellipse 70% 50% at 20% 90%, rgba(226, 61, 173, 0.22) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(139, 125, 238, 0.28) 0%, transparent 60%),
        linear-gradient(180deg, #1d1648 0%, #0f0b30 50%, #0e0a26 100%);
    color: var(--c-text-on-dark);
    margin-top: -60px;
    padding: 120px 0 0;
    text-align: center;
    overflow: hidden;
    position: relative;
}
.hero__inner { position: relative; }
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--c-border-dark);
    font-size: 13px;
    color: var(--c-muted-on-dark);
    margin-bottom: 28px;
}
.hero__badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-success);
    box-shadow: 0 0 8px var(--c-success);
}
.hero h1 {
    font-size: clamp(30px, 4.2vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.025em;
    font-weight: 700;
    margin: 0 0 16px;
    max-width: 880px;
    margin-inline: auto;
}
.hero h1 .italic { font-size: 1.05em; }
.hero p {
    font-size: clamp(16px, 1.35vw, 20px);
    color: rgba(255, 255, 255, 0.78);
    max-width: 640px;
    margin: 0 auto 32px;
    line-height: 1.45;
}
.hero__cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero marketplaces strip (inside hero, between cta and composition) */
.hero__marketplaces {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 4vw, 72px);
    flex-wrap: wrap;
    margin-top: 40px;
}
.hero__marketplaces img {
    opacity: 0.6;
    filter: brightness(0) invert(1);
    transition: opacity 0.2s;
}
.hero__marketplaces img[src*="megamarket"],
.hero__marketplaces img[src*="kaspi"] { opacity: 0.28; }
.hero__marketplaces img:hover { opacity: 0.8; }
.hero__marketplaces img[src*="megamarket"]:hover,
.hero__marketplaces img[src*="kaspi"]:hover { opacity: 0.45; }
.hero__marketplace-text {
    font-size: clamp(13px, 1.5vw, 20px);
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 0.6;
    text-transform: uppercase;
}

/* Hero composition: fanned product card mockups */
.hero__composition {
    margin-top: 12px;
    position: relative;
    height: 280px;
    perspective: 1200px;
}
.hero__composition::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(112, 88, 239, 0.5) 0%, transparent 60%);
    filter: blur(40px);
    pointer-events: none;
}
.hero__card {
    position: absolute;
    bottom: -80px;
    left: 50%;
    width: 230px;
    aspect-ratio: 3/4;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
    --hx: 0px;    /* доп. горизонтальный сдвиг при hover (наружу для средних карт) */
    --lift: 56px; /* высота подъёма при hover */
    transform: translateX(var(--tx)) translateY(var(--ty)) rotate(var(--rot));
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
    will-change: transform;
}
.hero__card img { width: 100%; height: 100%; object-fit: cover; }
/* симметричный веер из 5 карточек */
.hero__card:nth-child(1) { --tx: -405px; --ty: 40px;  --rot: -12deg; z-index: 3; }
.hero__card:nth-child(2) { --tx: -260px; --ty: 0;     --rot: -6deg;  z-index: 4; --hx: -50px; --lift: 62px; }
.hero__card:nth-child(3) { --tx: -115px; --ty: -25px; --rot: 0deg;   z-index: 5; }
.hero__card:nth-child(4) { --tx: 30px;   --ty: 0;     --rot: 6deg;   z-index: 4; --hx: 50px;  --lift: 62px; }
.hero__card:nth-child(5) { --tx: 175px;  --ty: 40px;  --rot: 12deg;  z-index: 3; }

/* hover (только на устройствах с настоящим курсором): выпрямить и
   вытащить карточку на передний план */
@media (hover: hover) and (pointer: fine) {
    .hero__card:hover {
        transform: translateX(var(--tx)) translateX(var(--hx)) translateY(var(--ty)) translateY(calc(-1 * var(--lift))) rotate(var(--rot)) scale(1.05);
        z-index: 10;
        box-shadow: 0 34px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.14);
    }
}

/* ===== Marketplaces strip ===== */
.marketplaces {
    background: var(--c-bg-dark);
    padding: 56px 0 88px;
}
.marketplaces__title {
    text-align: center;
    color: var(--c-muted-on-dark);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 28px;
    opacity: 0.6;
}
.marketplaces__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 96px;
    flex-wrap: wrap;
}
.marketplaces__logos img {
    height: 36px;
    opacity: 0.25;
    filter: brightness(0) invert(1);
    transition: opacity 0.2s;
}
.marketplaces__logos img:hover { opacity: 0.5; }

/* ===== Section base ===== */
.section { padding: 96px 0; }
.section--alt {
    background:
        radial-gradient(ellipse 50% 35% at 85% 10%, rgba(180, 164, 255, 0.22) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 10% 90%, rgba(226, 61, 173, 0.08) 0%, transparent 70%),
        var(--c-bg-soft);
}
.section--dark {
    background: var(--c-bg-dark);
    color: var(--c-text-on-dark);
}
.section__head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}
.section__head h2 {
    font-size: clamp(26px, 3.4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 700;
    margin: 0 0 12px;
}
.section__head p {
    font-size: 16px;
    color: var(--c-text-muted);
    margin: 0;
}
.section__head p .italic { font-size: 1.2em; line-height: 1; }
.section--dark .section__head p { color: var(--c-muted-on-dark); }

/* ===== Examples grid ===== */
.examples {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.example {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}
.example__title {
    padding: 24px 24px 0;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.example__pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 20px 24px 24px;
}
.example__col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.example__col img,
.example__col iframe {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 14px;
    background: var(--c-bg-soft);
    border: 0;
    display: block;
}
.example__label {
    align-self: flex-start;
    padding: 4px 12px;
    background: var(--c-bg-soft);
    color: var(--c-text);
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.example__label--after {
    background: linear-gradient(120deg, var(--c-primary) 0%, var(--c-magenta) 100%);
    color: #fff;
}

/* Wide video block — dark gradient variant */
.example--wide {
    grid-column: 1 / -1;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(180, 164, 255, 0.18) 0%, transparent 70%),
        linear-gradient(135deg, #1d1648 0%, #0f0b30 100%);
    border-color: transparent;
    color: #fff;
}
.example--wide .example__title { color: #fff; }
.example--wide .example__col img,
.example--wide .example__col iframe { background: rgba(255, 255, 255, 0.04); }
.example--wide .example__label { background: rgba(255, 255, 255, 0.12); color: #fff; }
.example--wide .example__label--after { background: linear-gradient(120deg, var(--c-primary) 0%, var(--c-magenta) 100%); color: #fff; }
.example__pair--4 { grid-template-columns: repeat(4, 1fr); }

/* ===== Features ===== */
.features-row {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}
.features-row--2 { grid-template-columns: repeat(2, 1fr); }
.features-row--4 { grid-template-columns: repeat(2, 1fr); }

.feature {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
}
.feature__img {
    border-radius: var(--radius-sm);
    background: var(--c-bg-soft);
    aspect-ratio: 16/10;
    overflow: hidden;
    margin-bottom: 22px;
}
.feature__img img { width: 100%; height: 100%; object-fit: cover; }
.feature h3 {
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0 0 12px;
    font-weight: 700;
}
.feature p {
    color: var(--c-text-muted);
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}

/* Hero feature card (full-width with big image at top) */
.feature--hero {
    padding: 32px;
}

/* Accent feature card (full-width, lavender tint, text + demo) */
.feature--accent {
    padding: 40px 48px;
    margin-top: 20px;
    background:
        radial-gradient(ellipse 60% 80% at 0% 0%, rgba(180, 164, 255, 0.32) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 100% 100%, rgba(226, 61, 173, 0.12) 0%, transparent 60%),
        linear-gradient(135deg, #f4eeff 0%, #faf6ff 100%);
    border-color: rgba(112, 88, 239, 0.18);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}
.feature--accent h3 {
    font-size: 28px;
    line-height: 1.15;
    margin-bottom: 20px;
}
.feature--accent .feature__steps {
    border-top-color: rgba(112, 88, 239, 0.18);
}
.feature__demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.feature--hero .feature__img--wide {
    aspect-ratio: 24/10;
    margin-bottom: 32px;
}
.feature--hero h3 {
    font-size: 32px;
    line-height: 1.15;
    margin-bottom: 14px;
}
.feature__lead {
    font-size: 17px;
    color: var(--c-text);
    margin: 0 0 28px;
    max-width: 720px;
}
.feature__steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--c-border);
}
.feature__steps h4 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-primary);
    margin: 0 0 12px;
}
.feature__steps ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}
.feature__steps ol li {
    counter-increment: step;
    position: relative;
    padding-left: 32px;
    color: var(--c-text-muted);
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 8px;
}
.feature__steps ol li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: -1px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--c-bg-soft);
    color: var(--c-primary);
    font-weight: 700;
    font-size: 12px;
    display: grid;
    place-items: center;
}
.feature__steps p {
    font-size: 15px;
    line-height: 1.55;
}

/* ===== Steps ===== */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.step {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
}
.step__img {
    border-radius: var(--radius-sm);
    background: var(--c-bg-soft);
    aspect-ratio: 16/13;
    overflow: hidden;
    margin-bottom: 22px;
}
.step__img img { width: 100%; height: 100%; object-fit: cover; }
.step__label {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    color: var(--c-primary);
    margin-right: 4px;
}
.step h3 {
    font-size: 20px;
    margin: 0 0 10px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    font-weight: 700;
}
.step p {
    color: var(--c-text-muted);
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}

/* Step 4: outcome card */
.step-result {
    margin-top: 24px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--c-border);
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.step-result__body .step__label {
    font-size: 22px;
    display: inline-block;
    margin-bottom: 8px;
}
.step-result__body h3 {
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin: 0 0 24px;
    font-weight: 700;
}
.step-result__list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}
.step-result__list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 14px;
    color: var(--c-text-muted);
    font-size: 15px;
    line-height: 1.55;
}
.step-result__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--c-primary);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><path d='M4 8.5l2.5 2.5L12 5.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: center;
}
.step-result__list li strong {
    color: var(--c-text);
    display: block;
    margin-bottom: 2px;
    font-weight: 700;
}

.step-result__compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.step-result__col {
    display: flex;
    flex-direction: column;
}
.step-result__caption {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text-muted);
    margin-bottom: 10px;
}
.step-result__caption--after { color: var(--c-primary); }
.step-result__img {
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--c-bg-soft);
}
.step-result__img img { width: 100%; height: 100%; object-fit: cover; }
.step-result__metric {
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text);
    padding: 8px 12px;
    background: var(--c-bg-soft);
    border-radius: 10px;
}
.step-result__metric--after {
    background: linear-gradient(135deg, var(--c-primary), var(--c-magenta));
    color: #fff;
}

/* ===== Pricing ===== */
.pricing-subhead {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 20px;
    line-height: 1.25;
}
/* Cost breakdown */
.pricing-cost {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.cost-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
}
.cost-card__img {
    width: 96px;
    height: 96px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cost-card__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cost-card__name {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}
.cost-card__price {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--c-primary);
    line-height: 1.2;
    margin-bottom: 6px;
}
.cost-card__price--row {
    font-size: 18px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cost-card__desc {
    color: var(--c-text-muted);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.pricing-note {
    background: var(--c-bg-soft);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-top: 20px;
    font-size: 15px;
    color: var(--c-text);
    line-height: 1.55;
}

/* CTA banner with gradient */
.pricing-banner {
    background:
        radial-gradient(ellipse 60% 80% at 20% 0%, rgba(139, 125, 238, 0.9), transparent),
        radial-gradient(ellipse 60% 80% at 80% 100%, rgba(226, 61, 173, 0.7), transparent),
        linear-gradient(135deg, #8b7dee 0%, #b399ff 50%, #c5a8ff 100%);
    color: #fff;
    padding: 56px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 24px 60px -24px rgba(139, 125, 238, 0.5);
    margin: 48px 0 64px;
}
.pricing-banner__amount {
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.pricing-banner p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 480px;
    margin: 0 auto 24px;
}
.pricing-banner .btn-primary { background: #fff; color: var(--c-primary); }
.pricing-banner .btn-primary:hover { background: var(--c-bg-soft); }

/* Flow (how charging works) */
.pricing-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.flow-item {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.flow-item__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(124, 91, 248, 0.12);
    color: var(--c-primary);
}
.flow-item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: var(--c-text);
}

/* ===== FAQ + CTA (dark) ===== */
.faq-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
}
.section__head--left {
    text-align: left;
    max-width: none;
    margin: 0 0 24px;
}
@media (min-width: 1024px) {
    .faq-cta { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 40px; }
}
.faq {
    margin: 0;
}
.faq__item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--c-border-dark);
    border-radius: var(--radius-sm);
    padding: 24px 28px;
    margin-bottom: 12px;
    transition: border-color 0.15s, background 0.15s;
}
.faq__item:hover { border-color: rgba(255,255,255,0.15); }
.faq__item[open] {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}
.faq__item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 17px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    line-height: 1.4;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: "+";
    font-size: 24px;
    color: var(--c-primary-light);
    flex-shrink: 0;
    transition: transform 0.2s;
    font-weight: 300;
}
.faq__item[open] summary::after { content: "−"; }
.faq__item p {
    margin: 16px 0 0;
    color: var(--c-muted-on-dark);
    font-size: 15px;
    line-height: 1.7;
}

/* ===== Final CTA ===== */
.cta-final {
    margin: 64px 24px;
    background:
        radial-gradient(ellipse 70% 80% at 20% 20%, rgba(139, 125, 238, 0.9), transparent),
        radial-gradient(ellipse 70% 80% at 80% 80%, rgba(226, 61, 173, 0.6), transparent),
        linear-gradient(135deg, #8b7dee 0%, #b399ff 50%, #c5a8ff 100%);
    color: #fff;
    border-radius: 32px;
    padding: 96px 32px;
    text-align: center;
    box-shadow: 0 40px 80px -40px rgba(139, 125, 238, 0.6);
    position: relative;
    overflow: hidden;
    max-width: calc(var(--max-w) - 48px);
    margin-inline: auto;
}
.cta-final::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle 300px at 30% 30%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(circle 250px at 70% 70%, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}
.cta-final > * { position: relative; }
.cta-final h2 {
    color: #fff;
    font-size: clamp(28px, 4vw, 48px);
    margin: 0 0 16px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.cta-final p {
    font-size: 18px;
    opacity: 0.92;
    max-width: 540px;
    margin: 0 auto 32px;
}
.cta-final__buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.cta-final .btn-primary { background: #fff; color: var(--c-primary); }
.cta-final .btn-primary:hover { background: var(--c-bg-soft); }
.cta-final .btn-ghost {
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.cta-final .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.cta-final--compact {
    margin: 0;
    padding: 36px 32px;
    border-radius: 24px;
    max-width: none;
}
.cta-final--compact h2 { font-size: 26px; margin-bottom: 12px; }
.cta-final--compact p { font-size: 15px; margin-bottom: 24px; max-width: none; }
.cta-final--compact .cta-final__buttons { flex-direction: column; gap: 10px; }
.cta-final--compact .btn { width: 100%; justify-content: center; }
@media (min-width: 1024px) {
    .cta-final--compact { position: sticky; top: 92px; }
}

/* CTA strip — full-width separator between FAQ (dark) and footer (dark) */
.cta-strip {
    background:
        radial-gradient(ellipse 60% 80% at 20% 20%, rgba(139, 125, 238, 0.9), transparent),
        radial-gradient(ellipse 60% 80% at 80% 80%, rgba(226, 61, 173, 0.55), transparent),
        linear-gradient(135deg, #8b7dee 0%, #b399ff 50%, #c5a8ff 100%);
    color: #fff;
    padding: 88px 24px;
    text-align: center;
    position: relative;
}
.cta-strip h2 {
    color: #fff;
    font-size: clamp(28px, 4vw, 44px);
    margin: 0 0 14px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.cta-strip p {
    font-size: 18px;
    opacity: 0.95;
    max-width: 540px;
    margin: 0 auto 28px;
}
.cta-strip .btn-primary { background: #fff; color: var(--c-primary); }
.cta-strip .btn-primary:hover { background: var(--c-bg-soft); }
@media (max-width: 768px) {
    .cta-strip { padding: 64px 20px; }
    .cta-strip p { font-size: 16px; margin-bottom: 24px; }
}

/* ===== Footer ===== */
.footer {
    background: var(--c-bg-dark);
    color: var(--c-muted-on-dark);
    padding: 80px 0 40px;
    font-size: 14px;
}
.footer__inner {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 56px;
    margin-bottom: 56px;
}
.footer__brand { max-width: 320px; }
.footer__brand img { height: 28px; margin-bottom: 16px; }
.footer__brand p { color: var(--c-muted-on-dark); margin: 0; line-height: 1.6; }
.footer h4 {
    color: #fff;
    font-size: 12px;
    margin: 0 0 18px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 700;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 6px 0; }
.footer a { color: var(--c-muted-on-dark); transition: color 0.15s; }
.footer a:hover { color: #fff; }
.footer__bottom {
    border-top: 1px solid var(--c-border-dark);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    color: #6b6f7d;
}
.footer__bottom a { color: #6b6f7d; }

/* ===== Lightbox ===== */
.example__col img { cursor: zoom-in; }
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 64px;
}
.lightbox::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(8, 6, 24, 0.92);
    backdrop-filter: blur(10px);
    z-index: -1;
    pointer-events: none;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    user-select: none;
}
.lightbox__close,
.lightbox__nav {
    position: fixed;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 0;
    cursor: pointer;
    display: grid;
    place-items: center;
    line-height: 1;
    transition: background 0.15s;
    z-index: 2;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox__close {
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 22px;
}
.lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 32px;
    padding-bottom: 4px;
}
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
.lightbox__counter {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
}
@media (max-width: 768px) {
    .lightbox { padding: 24px 16px; }
    .lightbox__close { top: 16px; right: 16px; width: 40px; height: 40px; }
    .lightbox__nav { width: 44px; height: 44px; font-size: 28px; }
    .lightbox__nav--prev { left: 12px; }
    .lightbox__nav--next { right: 12px; }
}

/* ===== Floating widgets ===== */
.floating-widgets {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 50;
}
.floating-widget {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: transparent;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 30px rgba(112, 88, 239, 0.35), 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s;
}
.floating-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(112, 88, 239, 0.45), 0 6px 14px rgba(0, 0, 0, 0.14);
}
.floating-widget img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
}
.floating-widget--scroll {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}
.floating-widget--scroll.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
@media (max-width: 768px) {
    .floating-widgets { right: 16px; bottom: 16px; gap: 10px; }
    .floating-widget { width: 48px; height: 48px; }
}

/* ===== Modal ===== */
body.is-modal-open {
    position: fixed;
    width: 100%;
}
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    padding: 40px 16px;
    overflow-y: auto;
}
.modal::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(14, 12, 30, 0.75);
    backdrop-filter: blur(8px);
    z-index: -1;
    pointer-events: none;
}
.modal.is-open { display: block; }
.modal__panel {
    background: #fff;
    border-radius: var(--radius);
    max-width: 820px;
    width: 100%;
    margin: 0 auto;
    padding: 56px 48px 48px;
    position: relative;
    box-shadow: 0 40px 80px rgba(0,0,0,0.25);
}
.modal__close {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: var(--c-text);
    display: grid;
    place-items: center;
    text-decoration: none;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.modal__close:hover { background: var(--c-border); color: var(--c-text); }
.modal__body h2 {
    font-size: 28px;
    margin: 0 0 24px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.modal__body .legal-text {
    font-size: 14px;
    line-height: 1.65;
    color: var(--c-text-muted);
}
.modal__body .legal-text h2 {
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--c-text);
    margin: 0 0 8px;
}
.modal__body .legal-text h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--c-text);
    margin: 28px 0 10px;
    letter-spacing: -0.01em;
}
.modal__body .legal-text h4 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--c-text);
    margin: 18px 0 6px;
}
.modal__body .legal-text p { margin: 0 0 12px; }
.modal__body .legal-text ul {
    margin: 0 0 14px;
    padding-left: 0;
    list-style: none;
}
.modal__body .legal-text li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
}
.modal__body .legal-text li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 9px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--c-primary);
}
.modal__body .legal-text a {
    color: var(--c-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.modal__body .legal-text strong { color: var(--c-text); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .feature--hero .feature__img--wide { aspect-ratio: 20/10; }
    .feature--accent { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
    .steps { grid-template-columns: 1fr; gap: 16px; }
    .step__img { aspect-ratio: 24/10; }
    .step-result { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
    .pricing-cost { grid-template-columns: 1fr; gap: 16px; }
    .pricing-flow { grid-template-columns: 1fr; gap: 12px; }
    .footer__inner { grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
}
@media (max-width: 1024px) {
    .hero__composition { height: 260px; }
    .hero__card { width: 180px; }
    .hero__card:nth-child(1) { --tx: -320px; --ty: 35px;  --rot: -12deg; }
    .hero__card:nth-child(2) { --tx: -205px; --ty: 0;     --rot: -6deg; }
    .hero__card:nth-child(3) { --tx: -90px;  --ty: -20px; --rot: 0deg; }
    .hero__card:nth-child(4) { --tx: 25px;   --ty: 0;     --rot: 6deg; }
    .hero__card:nth-child(5) { --tx: 140px;  --ty: 35px;  --rot: 12deg; }
}
@media (max-width: 768px) {
    .hero__marketplaces { margin-top: 32px; flex-wrap: nowrap; gap: 14px; }
    .hero__marketplace-text { font-size: 10px; }
    .hero__composition { height: 250px; margin-top: 20px; }
    .hero__card { width: 110px; border-radius: 12px; bottom: -30px; }
    /* 5 карточек симметрично (hover на мобилке не применяется) */
    .hero__card:nth-child(1) { transform: translateX(-199px) translateY(12px)  rotate(-12deg); }
    .hero__card:nth-child(2) { transform: translateX(-127px) translateY(2px)   rotate(-6deg); }
    .hero__card:nth-child(3) { transform: translateX(-55px)  translateY(-16px) rotate(0deg); }
    .hero__card:nth-child(4) { transform: translateX(17px)   translateY(2px)   rotate(6deg); }
    .hero__card:nth-child(5) { transform: translateX(89px)   translateY(12px)  rotate(12deg); }

    .header__nav { display: none; }
    .header__nav--open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        background: #fff;
        padding: 24px;
        border-bottom: 1px solid var(--c-border);
        gap: 4px;
        margin: 0;
    }
    .header__nav--open a { padding: 12px 0; }
    .header__burger { display: block; }
    .header__cta .btn { padding: 12px 20px; font-size: 14px; }

    .hero { padding: 120px 0 0; }
    .section { padding: 72px 0; }
    .section__head { margin-bottom: 40px; }
    .marketplaces__logos { gap: 32px; }
    .marketplaces__logos img { height: 22px; }

    .examples { grid-template-columns: 1fr; gap: 16px; }
    .example__pair--4 { grid-template-columns: 1fr 1fr; }
    .features-row--2, .features-row--4 { grid-template-columns: 1fr; gap: 16px; }
    .feature--hero { padding: 24px; }
    .feature--hero h3 { font-size: 24px; }
    .feature--accent { padding: 24px; grid-template-columns: 1fr; gap: 24px; }
    .feature--accent h3 { font-size: 22px; }
    .feature__steps { grid-template-columns: 1fr; gap: 24px; }
    .feature--hero .feature__img--wide { aspect-ratio: 16/10; margin-bottom: 24px; }
    .steps { grid-template-columns: 1fr; gap: 16px; }
    .step__img { aspect-ratio: 16/12; }
    .step-result { padding: 24px; gap: 24px; }
    .step-result__body h3 { font-size: 22px; }
    .pricing-cost { grid-template-columns: 1fr; gap: 16px; }
    .pricing-flow { grid-template-columns: 1fr; gap: 12px; }

    .feature { padding: 24px; }
    .cost-card { padding: 24px; }
    .pricing-banner { padding: 36px 24px; }
    .cta-final { padding: 64px 24px; margin: 32px 16px; border-radius: 20px; }
    .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer__brand { grid-column: span 2; }
    .modal__panel { padding: 40px 24px 24px; }
}

/* ===== Card-flow «было → стало» (заменяет статичный frame_109) =====
   cqw = 1% ширины .cardflow: геометрия карточек тянется за блоком,
   рамки/радиусы/шрифты ограничены clamp() — крупные где ширина позволяет
   и не вырождаются на узких экранах. */
.cardflow {
    container-type: inline-size;
    margin-bottom: 32px;
    background: linear-gradient(105deg, #f1effb 0%, #f1effb 42%, #e7e3f8 42%, #e4e0f7 100%);
    border-radius: clamp(14px, 2.2cqw, 26px);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr auto 1.3fr;
    align-items: stretch;
    gap: clamp(8px, 1.4cqw, 20px);
    padding: clamp(16px, 2.8cqw, 38px) clamp(16px, 3.4cqw, 44px);
    aspect-ratio: 1800 / 803;
}
.cardflow__col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 1.5cqw, 18px);
    min-width: 0;
}
.cardflow__label {
    font-size: clamp(12px, 1.55cqw, 16px);
    font-weight: 500;
    line-height: 1.2;
    border-radius: var(--radius-pill);
    padding: .62em 1.3em;
    white-space: nowrap;
    max-width: 100%;
}
.cardflow__label--plain {
    background: #fff;
    color: var(--c-text-muted);
    box-shadow: 0 2px 10px rgba(80, 70, 130, .10);
}
.cardflow__label--accent {
    background: #8579d6;
    color: #fff;
    box-shadow: 0 6px 18px rgba(133, 121, 214, .45);
}
.cardflow__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}
.cardflow__arrow svg {
    width: clamp(32px, 5.4cqw, 60px);
    aspect-ratio: 1;
    height: auto;
    filter: drop-shadow(0 4px 14px rgba(130, 110, 235, .55));
}
.cardflow__card {
    border: clamp(3px, .5cqw, 6px) solid #fff;
    border-radius: clamp(8px, 1.3cqw, 16px);
    object-fit: cover;
    background: #fff;
    box-shadow: 0 14px 30px rgba(60, 50, 110, .20);
    cursor: pointer;
    transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s;
}
.cardflow__card:hover {
    z-index: 20;
    box-shadow: 0 22px 46px rgba(112, 88, 239, .40), 0 0 0 3px rgba(112, 88, 239, .55);
}
.cardflow__stage {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
}
.cardflow__stage--before {
    display: flex;
    align-items: center;
    justify-content: center;
}
.cardflow__card--before {
    width: 62%;
    height: auto;
    aspect-ratio: 3 / 4;
    transform: rotate(-4deg);
}
.cardflow__card--before:hover { transform: rotate(-4deg) scale(1.04); }
.cardflow__stage--after .cardflow__card {
    position: absolute;
    bottom: 11%;
    width: 42%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-position: top center;
    transform-origin: bottom left;
    transform: rotate(var(--rot));
}
.cardflow__stage--after .cardflow__card:hover {
    transform: rotate(var(--rot)) translateY(-6%) scale(1.06);
}
.cardflow__card--1 { left: 0%;  --rot: 0deg;  z-index: 6; }
.cardflow__card--2 { left: 13%; --rot: 7deg;  z-index: 5; }
.cardflow__card--3 { left: 26%; --rot: 14deg; z-index: 4; }
.cardflow__card--4 { left: 39%; --rot: 21deg; z-index: 3; }

/* mobile: вертикальный стек, стрелка вниз, россыпь новой строкой */
@media (max-width: 560px) {
    .cardflow {
        aspect-ratio: auto;
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 20px 16px;
        border-radius: 18px;
        margin-bottom: 24px;
    }
    .cardflow__label { font-size: 14px; white-space: normal; text-align: center; }
    .cardflow__arrow svg { width: 34px; transform: rotate(90deg); }
    .cardflow__stage--before { aspect-ratio: auto; }
    .cardflow__card--before { width: 42%; }
    .cardflow__stage--after { aspect-ratio: 3 / 2; }
.cardflow__stage--after .cardflow__card { width: 40%; }
}

/* ===== App Demo ===== */
.app-shell {
    background: #f3f4f7;
    color: #112247;
}
.app-header {
    background: #fff;
    border-bottom: 1px solid #dde4f1;
    position: sticky;
    top: 0;
    z-index: 50;
}
.app-header__bar,
.app-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
}
.app-header__bar {
    min-height: 106px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.app-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}
.app-header__drawer {
    display: none;
    padding: 0 28px 22px;
}
.app-header__drawer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
    padding: 18px;
    border: 1px solid #dfe5ef;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
    box-shadow: 0 20px 44px rgba(16, 23, 38, 0.06);
}
.app-header__drawer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.app-header__burger {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid #d6deeb;
    background: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
}
.app-header__burger span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #12203c;
    display: block;
}
.app-logo img { width: 110px; }
.app-nav,
.app-actions,
.app-subtabs,
.app-topic-grid,
.app-ratio-row,
.app-copy-row,
.app-section__row {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}
.app-nav { flex: 1; }
.app-nav--drawer {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.app-actions .lang-switcher__select {
    background: #fff;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.app-nav__item,
.app-subtabs span,
.app-chip,
.app-pill,
.app-balance,
.app-user {
    border-radius: 14px;
    background: #fff;
    padding: 12px 16px;
}
.app-nav__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #5c667d;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.app-nav__item:hover {
    color: #244ec7;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(37, 84, 215, 0.10);
}
.app-nav__item.is-active {
    background: #eaf0ff;
    color: #2555d9;
}
.app-nav__icon {
    font-size: 15px;
    opacity: 0.9;
}
.app-btn {
    border: 0;
    border-radius: 14px;
    padding: 14px 22px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.app-btn:hover,
.app-pill:hover,
.app-user:hover {
    transform: translateY(-1px);
}
.app-btn--primary {
    background: #2f64ea;
    color: #fff;
    box-shadow: 0 14px 28px rgba(47, 100, 234, 0.18);
}
.app-btn--accent {
    background: linear-gradient(135deg, #8e2de2, #a93cf5);
    color: #fff;
    box-shadow: 0 14px 28px rgba(151, 46, 229, 0.18);
}
.app-btn--ghost {
    background: #fff;
    color: #2f64ea;
    border: 1px solid #cfdbf8;
}
.app-btn--disabled {
    width: 100%;
    background: #cfd4dd;
    color: #fff;
    cursor: not-allowed;
}
.app-balance {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #f2f2f8;
    text-align: center;
}
.app-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f8edff;
    color: #8a34e9;
    font-weight: 700;
}
.app-pill--soft { padding: 8px 12px; }
.app-user {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #5c667d;
}
.app-btn__icon {
    font-size: 15px;
}
.app-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.app-banner {
    background: #eef4ff;
    border-top: 1px solid #e4ebfb;
    border-bottom: 1px solid #d9e3fb;
    padding: 18px 28px;
}
.app-banner a {
    max-width: 1280px;
    margin: 0 auto;
    display: block;
    color: #2252d7;
}
.app-main {
    padding-top: 32px;
    padding-bottom: 60px;
}
.app-notice {
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 14px;
    font-weight: 500;
}
.app-notice--success {
    background: #ecfdf3;
    color: #17663b;
    border: 1px solid #b7ebc8;
}
.app-notice--error {
    background: #fff2f3;
    color: #91253a;
    border: 1px solid #f3c0ca;
}
.app-section {
    display: grid;
    gap: 22px;
}
.app-form,
.app-form-grid {
    display: grid;
    gap: 18px;
}
.app-form-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.app-form-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.app-form-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.app-title {
    font-size: 22px;
    line-height: 1.2;
    margin: 0;
}
.app-subtitle {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #12203c;
}
.app-card,
.app-empty,
.app-upload,
.app-balance-card,
.app-bonus-card,
.app-stat,
.app-status {
    background: #fff;
    border: 1px solid #dfe5ef;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(31, 50, 81, 0.06);
}
.app-card,
.app-empty,
.app-status { padding: 28px 30px; }
.app-card--soft { background: #eef5ff; }
.app-label{
    display: block;
    font-weight: 600;
    margin-bottom: 14px;
}
.app-input {
    width: 100%;
    border: 1px solid #d7deea;
    border-radius: 14px;
    padding: 16px 18px;
    font: inherit;
    background: #fff;
}
.app-input--small {
    max-width: 120px;
}
.app-textarea {
    min-height: 120px;
    resize: vertical;
}
.app-textarea--lg {
    min-height: 220px;
}
.app-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    color: #6f7c95;
}
.app-divider::before,
.app-divider::after {
    content: "";
    height: 1px;
    background: #d4dbeb;
    flex: 1;
}
.app-upload {
    padding: 42px 20px;
    text-align: center;
    border-style: dashed;
}
.app-upload__icon {
    font-size: 38px;
    color: #8b96ac;
}
.app-upload__title {
    font-size: 18px;
    font-weight: 700;
    margin-top: 10px;
}
.app-upload__hint,
.app-copy,
.app-empty p,
.app-card p,
.app-form-grid label,
.app-list,
.app-price-list,
.app-breadcrumbs {
    color: #60708d;
}
.app-checkbox {
    display: flex;
    gap: 10px;
    align-items: center;
}
.app-empty {
    min-height: 370px;
    display: grid;
    place-items: center;
    text-align: center;
}
.app-empty--compact {
    min-height: 220px;
}
.app-empty__icon {
    font-size: 54px;
    color: #c7cfdd;
}
.app-subtabs span.is-active,
.app-chip.is-active {
    background: #fff;
    color: #14264d;
    box-shadow: 0 8px 20px rgba(31, 50, 81, 0.08);
}
.app-chip input {
    display: none;
}
.app-actions-row,
.app-inline-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.app-inline-form__label {
    display: grid;
    gap: 6px;
    color: #65748e;
    font-size: 14px;
}
.app-section__note {
    margin: 0 0 18px;
    color: #65748e;
    font-size: 14px;
}
.app-table-wrap {
    overflow-x: auto;
}
.app-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.app-table th,
.app-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e7ebf3;
    text-align: left;
    vertical-align: top;
}
.app-table th {
    color: #65748e;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.app-model-list {
    display: grid;
    gap: 2px;
    border: 1px solid #e2e7f0;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 24px;
}
.app-model {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
}
.app-model.is-active { background: #f4f1ff; }
.app-model span {
    font-size: 18px;
    font-weight: 700;
}
.app-model em {
    font-style: normal;
    color: #65748e;
}
.app-model strong { font-size: 22px; }
.app-balance-card {
    background: linear-gradient(90deg, #9536e8, #3469ea);
    color: #fff;
    padding: 28px;
}
.app-balance-card strong {
    display: block;
    font-size: 56px;
    margin-top: 6px;
}
.app-bonus-card {
    padding: 24px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.app-bonus-card--blue {
    background: #f3f7ff;
    border-color: #bfd5ff;
}
.app-bonus-card--pink {
    background: #fff3fb;
    border-color: #f5c7e0;
}
.app-price-list,
.app-list {
    margin: 0;
    padding-left: 22px;
}
.app-price-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #edf1f7;
}
.app-price-list li:last-child { border-bottom: 0; }
.app-copy-row .app-input { flex: 1; }
.app-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.app-products-overview,
.app-history-overview {
    display: grid;
    gap: 16px;
}
.app-products-overview__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}
.app-products-overview__head h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
}
.app-products-overview__head p,
.app-history-overview__summary p {
    margin: 6px 0 0;
    color: #6d7b96;
}
.app-products-filter,
.app-history-filter {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(150px, 0.45fr)) auto;
    gap: 12px;
    padding: 14px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #e1e8f2;
    box-shadow: 0 12px 30px rgba(16, 23, 38, 0.05);
}
.app-history-filter {
    grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(140px, 0.4fr)) auto;
}
.app-products-filter__search {
    position: relative;
    display: block;
}
.app-products-filter__search i {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #96a3ba;
    z-index: 1;
}
.app-products-filter__search .app-input {
    padding-left: 44px;
}
.app-products-list,
.app-history-list {
    display: grid;
    gap: 14px;
}
.app-product-row,
.app-history-row {
    display: grid;
    gap: 14px;
    padding: 14px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #e1e8f2;
    box-shadow: 0 12px 28px rgba(16, 23, 38, 0.05);
}
.app-product-row__top,
.app-history-row__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.app-product-row__top {
    color: inherit;
}
.app-product-row__title {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.app-product-row__thumb {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #dbe4f2;
}
.app-product-row__title strong,
.app-history-row__head strong {
    display: block;
    color: #12203c;
    font-size: 18px;
    line-height: 1.2;
}
.app-product-row__title span,
.app-history-row__head span,
.app-history-row__body > p {
    color: #6d7b96;
}
.app-product-row__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #6d7b96;
    flex-shrink: 0;
}
.app-product-row__meta div {
    text-align: right;
}
.app-product-row__meta strong {
    display: block;
    color: #12203c;
    font-size: 18px;
    line-height: 1;
}
.app-product-row__gallery {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
}
.app-product-row__frame {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid #e3e9f4;
    background: #f7faff;
    display: block;
}
.app-product-row__frame img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}
.app-history-row {
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: start;
}
.app-history-row__media {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e2e9f3;
    background: #f6f9ff;
    min-height: 132px;
}
.app-history-row__media img {
    width: 100%;
    height: 132px;
    object-fit: cover;
    display: block;
}
.app-history-row__placeholder {
    min-height: 132px;
    display: grid;
    place-items: center;
    color: #9dacbf;
    font-size: 28px;
}
.app-history-row__video {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(12, 23, 46, 0.72);
    color: #fff;
    display: grid;
    place-items: center;
}
.app-history-row__body {
    display: grid;
    gap: 10px;
}
.app-history-row__seo {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #f7faff;
    border: 1px solid #e5ecf6;
}
.app-history-row__seo strong {
    color: #12203c;
}
.app-history-row__seo span,
.app-history-row__seo p {
    color: #6d7b96;
    margin: 0;
}
.app-history-row__actions a {
    color: #3156d3;
    font-weight: 600;
}
.app-product-card {
    background: #fff;
    border: 1px solid #dfe5ef;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(31, 50, 81, 0.06);
}
.app-product-card__head,
.app-product-card__actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}
.app-product-card__actions {
    align-items: center;
    flex-wrap: wrap;
}
.app-product-card__actions form {
    display: flex;
}
.app-product-card__head h2 {
    margin: 0 0 4px;
    font-size: 22px;
}
.app-product-card__head p {
    margin: 0;
    color: #60708d;
}
.app-muted {
    margin: 0;
    color: #60708d;
}
.app-section__row--compact {
    margin-top: 14px;
    margin-bottom: 14px;
}
.app-product-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    margin: 14px 0 0;
    border: 1px solid #e2e8f2;
}
.app-product-hero {
    display: grid;
    gap: 10px;
}
.app-product-hero__meta {
    margin: 0;
    color: #68778f;
    font-size: 15px;
}
.app-actions-row--hero {
    align-items: center;
    justify-content: flex-end;
}
.app-actions-row--hero form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.app-badge {
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}
.app-badge--draft {
    background: #eef2f7;
    color: #58677f;
}
.app-badge--analyzed {
    background: #eefaf0;
    color: #17663b;
}
.app-badge--error {
    background: #fff2f3;
    color: #91253a;
}
.app-badge--submitted {
    background: #eef3ff;
    color: #2d53b8;
}
.app-badge--processing {
    background: #fff7e8;
    color: #a56310;
}
.app-badge--ready {
    background: #eefaf0;
    color: #17663b;
}
.app-analysis {
    margin-top: 18px;
    background: #101726;
    color: #eef2ff;
    border-radius: 16px;
    padding: 18px;
}
.app-analysis h3 {
    margin: 0 0 12px;
    font-size: 16px;
}
.app-analysis pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 13px;
    line-height: 1.55;
}
.app-seo-panel {
    display: grid;
    gap: 18px;
}
.app-seo-form {
    display: grid;
    gap: 16px;
}
.app-seo-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: end;
}
.app-seo-toolbar__source {
    display: grid;
    gap: 8px;
}
.app-seo-toolbar__upload {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
}
.app-seo-upload {
    width: 48px;
    height: 48px;
}
.app-seo-upload__name {
    max-width: 220px;
    color: #6c7a96;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
}
.app-seo-results {
    display: grid;
    gap: 14px;
}
.app-seo-section {
    border: 1px solid rgba(73, 118, 255, 0.14);
    border-radius: 22px;
    background: #fff;
    padding: 18px;
}
.app-seo-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.app-seo-section__head h4 {
    margin: 0;
    font-size: 16px;
}
.app-seo-output {
    min-height: 88px;
    resize: vertical;
    line-height: 1.6;
}
.app-seo-output--large {
    min-height: 220px;
}
.app-seo-section__meta {
    margin: 10px 0 0;
    color: #6c7a96;
    font-size: 13px;
}
.app-icon-btn.is-copied {
    color: #17663b;
    border-color: rgba(23, 102, 59, 0.2);
    background: #eefaf0;
}
.app-generated-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}
.app-generated-card {
    margin: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbe4f1;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.05);
}
.app-generated-card__media {
    position: relative;
}
.app-generated-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}
.app-generated-card__media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 44%;
    background: linear-gradient(180deg, rgba(8, 16, 36, 0) 0%, rgba(8, 16, 36, 0.78) 100%);
    pointer-events: none;
}
.app-generated-card__meta-top {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.app-generated-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #22324d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    box-shadow: 0 10px 22px rgba(18, 32, 60, 0.16);
}
.app-generated-card__scene {
    margin-left: auto;
    max-width: min(70%, 22ch);
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #253657;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(18, 32, 60, 0.14);
    backdrop-filter: blur(12px);
}
.app-generated-card__overlay,
.app-scene-card__overlay {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    justify-content: flex-start;
    pointer-events: none;
}
.app-generated-card__overlay span,
.app-scene-card__overlay span {
    max-width: min(100%, 22ch);
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 249, 241, 0.90);
    color: #4f3b2c;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
    box-shadow: 0 10px 22px rgba(34, 24, 16, 0.12);
    backdrop-filter: blur(10px);
}
.app-generated-card__headline {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 76px;
    z-index: 2;
    display: grid;
    gap: 4px;
    pointer-events: none;
}
.app-generated-card__headline strong {
    color: #ffffff;
    font-size: 24px;
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-shadow: 0 10px 24px rgba(8, 16, 36, 0.34);
}
.app-generated-card__headline span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 600;
}
.app-generated-card figcaption {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 14px 10px;
    color: #60708d;
    font-size: 13px;
}
.app-generated-card figcaption span {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eff4fb;
    color: #5f708d;
}
.app-generated-card .app-product-card__actions {
    justify-content: flex-start;
    padding: 0 14px 14px;
    gap: 8px;
}
.app-icon-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.app-icon-btn:hover {
    transform: translateY(-2px);
}
.app-icon-btn i {
    font-size: 16px;
}
.app-icon-btn--primary {
    background: #2f64ea;
    color: #fff;
    box-shadow: 0 12px 22px rgba(47, 100, 234, 0.18);
}
.app-icon-btn--accent {
    background: linear-gradient(135deg, #8e2de2, #a93cf5);
    color: #fff;
    box-shadow: 0 12px 22px rgba(151, 46, 229, 0.20);
}
.app-icon-btn--ghost {
    background: #fff;
    color: #2f64ea;
    border: 1px solid #cfdbf8;
}
.app-icon-btn--danger {
    background: #fff4f5;
    color: #d63a57;
    border: 1px solid #f2c3cd;
}
.app-prompt-lab {
    display: grid;
    gap: 24px;
    padding: 30px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.14), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e3eaf5;
    box-shadow: 0 24px 54px rgba(16, 23, 38, 0.05);
}
.app-prompt-lab--video {
    background:
        radial-gradient(circle at top right, rgba(167, 139, 250, 0.16), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8f8ff 100%);
}
.app-prompt-lab__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
.app-prompt-lab__intro {
    max-width: 760px;
    display: grid;
    gap: 10px;
}
.app-prompt-lab__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4f46e5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.app-prompt-lab__title {
    margin: 0;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.04;
    letter-spacing: -0.04em;
    color: #12203c;
    max-width: 18ch;
}
.app-prompt-lab__text {
    margin: 0;
    max-width: 68ch;
    color: #64748b;
    font-size: 15px;
    line-height: 1.65;
}
.app-prompt-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    counter-reset: prompt-card;
}
.app-prompt-card {
    position: relative;
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid #dde6f3;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.98));
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    overflow: hidden;
}
.app-prompt-card::before {
    counter-increment: prompt-card;
    content: "0" counter(prompt-card);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #eef4ff;
    color: #3156d3;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.app-prompt-card::after {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.34), rgba(255, 255, 255, 0));
}
.app-prompt-card:hover {
    transform: translateY(-4px);
    border-color: #bfd1ef;
    box-shadow: 0 22px 42px rgba(37, 99, 235, 0.10);
}
.app-prompt-card--video:hover {
    box-shadow: 0 22px 42px rgba(124, 58, 237, 0.10);
}
.app-prompt-card__meta {
    color: #7c8aa5;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.app-prompt-card__title {
    display: block;
    margin: 0;
    color: #12203c;
    font-size: 21px;
    line-height: 1.12;
    letter-spacing: -0.03em;
}
.app-prompt-card__prompt {
    margin: 0;
    color: #53627b;
    line-height: 1.68;
    font-size: 14px;
}
.app-prompt-card__field {
    display: grid;
    gap: 8px;
    color: #41506a;
    font-size: 13px;
    font-weight: 600;
}
.app-prompt-card__actions,
.app-prompt-custom__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.app-prompt-card .app-btn,
.app-prompt-custom .app-btn {
    min-width: 180px;
}
.app-prompt-empty {
    padding: 22px 24px;
    border-radius: 22px;
    border: 1px dashed #ccd7e8;
    background: rgba(248, 251, 255, 0.9);
    display: grid;
    gap: 6px;
}
.app-prompt-empty strong {
    color: #1e293b;
}
.app-prompt-empty p {
    margin: 0;
    color: #64748b;
}
.app-prompt-custom {
    display: grid;
    gap: 18px;
    padding: 24px;
    border-radius: 26px;
    border: 1px solid #dce6f2;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.96));
}
.app-prompt-custom__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
}
.app-prompt-custom__title {
    margin: 6px 0 0;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #12203c;
}
.app-prompt-custom__text {
    margin: 0;
    max-width: 420px;
    color: #64748b;
    line-height: 1.65;
    font-size: 14px;
}
.app-prompt-custom__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(200px, 0.7fr) minmax(220px, 0.8fr);
    gap: 18px;
    align-items: start;
}
.app-prompt-custom .app-label {
    margin: 0;
}
.app-prompt-custom .app-textarea {
    min-height: 160px;
    background: rgba(255, 255, 255, 0.98);
}
.app-product-detail {
    display: grid;
    gap: 18px;
}
.app-product-shell {
    display: grid;
    gap: 18px;
}
.app-product-shell__top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}
.app-product-shell__title {
    display: flex;
    align-items: center;
    gap: 14px;
}
.app-product-shell__title h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}
.app-product-shell__title p {
    margin: 6px 0 0;
    color: #7c8aa5;
}
.app-product-shell__thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #d9e4f4;
}
.app-product-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
    gap: 18px;
    align-items: start;
}
.app-photo-workspace {
    display: grid;
    gap: 22px;
    align-items: start;
    padding: 22px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid #e3ebf7;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.04);
}
.app-photo-workspace__section,
.app-photo-workspace__improve {
    display: grid;
    gap: 18px;
    align-content: start;
    min-width: 0;
}
.app-photo-workspace__section .app-panel-head {
    margin-bottom: 2px;
}
.app-photo-workspace__section .app-scene-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}
.app-photo-workspace__section .app-scene-card {
    border-radius: 26px;
}
.app-photo-workspace__section .app-scene-card__preview {
    min-height: 270px;
}
.app-photo-workspace__improve h3 {
    margin: 0;
}
.app-photo-workspace__improve > form:last-child {
    padding-top: 4px;
}
.app-product-panel {
    display: grid;
    gap: 16px;
    padding: 20px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #e3ebf7;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.04);
}
.app-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.app-panel-head h3,
.app-product-panel h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}
.app-panel-head p {
    margin: 6px 0 0;
    color: #7c8aa5;
}
.app-btn--danger {
    background: #ffe7e7;
    color: #c62828;
    border-color: #ffd1d1;
}
.app-btn--danger:hover {
    background: #ffdede;
}
.app-fact-row {
    gap: 12px;
}
.app-fact-row label {
    display: grid;
    gap: 8px;
}
.app-product-stack {
    display: grid;
    gap: 12px;
}
.app-product-grid .app-prompt-custom {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}
.app-product-grid .app-prompt-card {
    min-width: 0;
}
.app-product-grid .app-generated-grid {
    margin-top: 0;
}
.app-product-grid .app-generated-card img {
    aspect-ratio: 4 / 5;
}
.app-video-flow {
    display: grid;
    gap: 18px;
}
.app-video-flow__hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.app-video-flow__hero h3 {
    margin: 0;
}
.app-video-flow__hero p {
    margin: 6px 0 0;
    color: #72819a;
}
.app-video-wizard-shell__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.app-video-results {
    gap: 18px;
}
.app-video-wizard {
    display: grid;
    gap: 18px;
}
.app-video-wizard__progress {
    display: grid;
    gap: 12px;
}
.app-video-wizard__progress-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}
.app-video-wizard__progress-copy {
    display: grid;
    gap: 4px;
}
.app-video-wizard__progress-copy strong {
    font-size: 20px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #16253f;
}
.app-video-wizard__progress-copy span,
.app-video-wizard__progress-value {
    color: #7a8aa5;
    font-size: 13px;
    font-weight: 700;
}
.app-video-wizard__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.app-video-wizard__step {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid #d7e3f4;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    text-align: left;
    color: #45546d;
    transition: 0.18s ease;
}
.app-video-wizard__step span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #7d8aa3;
}
.app-video-wizard__step strong {
    font-size: 14px;
    line-height: 1.3;
}
.app-video-wizard__step.is-active {
    border-color: #7a6cff;
    box-shadow: 0 16px 36px rgba(122, 108, 255, 0.12);
    color: #18284a;
}
.app-video-wizard__step.is-complete {
    background: linear-gradient(180deg, #eff4ff 0%, #e9f1ff 100%);
}
.app-video-wizard__step.is-locked {
    opacity: 0.56;
}
.app-progress-track--wizard {
    height: 10px;
    border-radius: 999px;
    background: #e2eaf6;
    overflow: hidden;
}
.app-video-wizard__stage {
    display: grid;
    gap: 16px;
    padding: 20px;
    border: 1px solid #dbe5f2;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.app-video-wizard__stage-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.app-video-wizard__stage-head h4 {
    margin: 0;
    font-size: 20px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}
.app-video-wizard__stage-head p {
    margin: 6px 0 0;
    color: #72819a;
}
.app-video-preview {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid #dbe6f4;
    border-radius: 26px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}
.app-video-preview__frame {
    min-height: 320px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #dfe7f4;
    background: linear-gradient(180deg, rgba(120, 146, 255, 0.16) 0%, rgba(255, 255, 255, 0.95) 100%);
    display: grid;
    place-items: center;
    color: #a2afc3;
}
.app-video-preview__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.app-video-preview__frame i {
    font-size: 44px;
}
.app-video-preview__copy {
    display: grid;
    gap: 10px;
}
.app-video-preview__copy strong {
    color: #16253f;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.app-video-preview__copy p,
.app-video-preview__copy span {
    margin: 0;
    color: #72819a;
    line-height: 1.55;
}
.app-video-source-card {
    position: relative;
}
.app-video-source-card__check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #d6dff0;
    color: #6d63ff;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    opacity: 0.45;
    transition: 0.18s ease;
}
.app-video-source-card.is-active .app-video-source-card__check {
    opacity: 1;
    background: #6d63ff;
    border-color: #6d63ff;
    color: #fff;
}
.app-video-source-card.is-active .app-video-source-card__check i {
    color: #fff;
}
.app-video-idea-grid {
    display: grid;
    gap: 12px;
}
.app-video-source-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
}
.app-video-source-card {
    display: grid;
    gap: 10px;
    padding: 10px;
    border-radius: 22px;
    border: 1px solid #dbe6f4;
    background: #fff;
    text-align: left;
    transition: 0.18s ease;
}
.app-video-source-card__media {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid #e4edf8;
}
.app-video-source-card__media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}
.app-video-source-card__meta {
    display: grid;
    gap: 4px;
    padding: 0 4px 2px;
}
.app-video-source-card__meta strong {
    color: #16253f;
    font-size: 14px;
    line-height: 1.3;
}
.app-video-source-card__meta span {
    color: #7a8aa5;
    font-size: 12px;
}
.app-video-source-card.is-active,
.app-video-idea-card.is-active,
.app-video-template-pill.is-active,
.app-video-pill.is-active {
    border-color: #6f63ff;
    box-shadow: 0 16px 34px rgba(111, 99, 255, 0.12);
    transform: translateY(-1px);
}
.app-video-idea-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    padding: 16px 18px;
    border-radius: 24px;
    border: 1px solid #dbe6f4;
    background:
        radial-gradient(circle at top left, rgba(250, 240, 210, 0.92), rgba(255, 255, 255, 0.96) 42%),
        linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    text-align: left;
    min-height: 150px;
}
.app-video-idea-card__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #eff3ff;
    color: #556ae2;
    font-size: 12px;
    font-weight: 800;
}
.app-video-idea-card strong {
    color: #14213c;
    font-size: 20px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}
.app-video-idea-card__body {
    display: grid;
    gap: 8px;
}
.app-video-idea-card p,
.app-video-idea-card small {
    margin: 0;
    color: #6f7d95;
    line-height: 1.55;
}
.app-video-template-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.app-video-template-pill {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid #dbe6f4;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    text-align: left;
    color: #4b5d79;
}
.app-video-template-pill__eyebrow {
    color: #7d8aa3;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.app-video-template-pill strong {
    color: #18284a;
    font-size: 14px;
}
.app-video-template-pill span {
    font-size: 12px;
    line-height: 1.45;
}
.app-video-wizard__settings {
    display: grid;
    gap: 16px;
}
.app-video-setting-group {
    display: grid;
    gap: 10px;
}
.app-video-setting-group > span {
    color: #46556f;
    font-size: 13px;
    font-weight: 700;
}
.app-video-pill-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.app-video-pill {
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid #d7e3f4;
    background: #fff;
    color: #2a3956;
    font-size: 13px;
    font-weight: 700;
}
.app-video-wizard__prompt .app-textarea {
    min-height: 140px;
}
.app-video-wizard__footer {
    display: grid;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 24px;
    border: 1px solid #dce6f4;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}
.app-video-wizard__summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
}
.app-video-wizard__summary-photo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.app-video-wizard__summary-thumb {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #dfebf7;
    background: #f4f7fc;
    display: grid;
    place-items: center;
    color: #6f7d95;
}
.app-video-wizard__summary-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.app-video-wizard__summary-photo strong,
.app-video-wizard__summary-copy strong {
    display: block;
    color: #16253f;
}
.app-video-wizard__summary-photo span,
.app-video-wizard__summary-copy p {
    margin: 4px 0 0;
    color: #71819b;
    font-size: 13px;
    line-height: 1.45;
}
.app-video-wizard__summary-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.app-video-wizard__summary-meta span {
    display: inline-flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 999px;
    background: #eef3ff;
    color: #4159d5;
    font-size: 12px;
    font-weight: 700;
}
.app-video-wizard__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}
.app-video-wizard__actions .app-btn {
    min-width: 170px;
}
.app-video-results__stack {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.app-video-result-card {
    display: grid;
    grid-template-columns: minmax(260px, 30%) minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
    border-radius: 24px;
    border: 1px solid #dce6f3;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.05);
}
.app-video-result-card__media {
    display: grid;
    gap: 12px;
    align-content: start;
}
.app-video-result-card__poster {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid #dce7f5;
    background: radial-gradient(circle at top, rgba(147, 197, 253, 0.28), rgba(255, 255, 255, 0.96) 62%);
    min-height: 220px;
}
.app-video-result-card__poster img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    filter: saturate(1.02);
}
.app-video-result-card.is-pending .app-video-result-card__poster img {
    filter: blur(14px) saturate(0.92);
    transform: scale(1.08);
}
.app-video-result-card__placeholder,
.app-video-result-card__play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 28px;
}
.app-video-result-card__status {
    position: absolute;
    inset: 18px 18px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 2;
}
.app-video-result-card__status strong {
    color: #fff;
    font-size: 28px;
    line-height: 1;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.app-video-result-card__queue {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    display: grid;
    gap: 8px;
}
.app-video-result-card__queue p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}
.app-video-result-card__player-wrap {
    border-radius: 20px;
    border: 1px solid #dce7f5;
    overflow: hidden;
    background: #0f172a;
}
.app-video-result-card__player {
    display: block;
    width: 100%;
    min-height: 220px;
    max-height: 360px;
    background: #000;
}
.app-video-result-card__body {
    display: grid;
    gap: 12px;
    align-content: start;
}
.app-video-result-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}
.app-video-result-card__head strong {
    color: #16253f;
    font-size: 18px;
    line-height: 1.15;
}
.app-video-result-card__head p,
.app-video-result-card__prompt,
.app-video-result-card__error {
    margin: 4px 0 0;
    color: #72819a;
}
.app-video-result-card__meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.app-video-result-card__meta span {
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 999px;
    background: #eef3ff;
    color: #4159d5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.app-video-result-card__error {
    color: #b42318;
}
@media (max-width: 1100px) {
    .app-video-wizard__steps,
    .app-video-template-strip {
        grid-template-columns: 1fr;
    }
    .app-video-result-card {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 900px) {
    .app-video-flow__hero,
    .app-video-wizard__progress-head,
    .app-video-wizard__summary {
        display: grid;
        grid-template-columns: 1fr;
    }
    .app-video-preview {
        grid-template-columns: 1fr;
    }
    .app-video-preview__frame {
        min-height: 260px;
    }
    .app-video-wizard__summary {
        align-items: start;
    }
    .app-video-wizard__summary-meta {
        justify-content: flex-start;
    }
    .app-video-idea-card {
        grid-template-columns: 1fr;
    }
}
.app-scene-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}
.app-scene-builder {
    display: grid;
    gap: 18px;
}
.app-scene-queue {
    display: grid;
    gap: 12px;
    padding: 18px 20px;
    border: 1px solid #d7e4f5;
    border-radius: 26px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
}
.app-scene-queue[hidden] {
    display: none;
}
.app-scene-queue__head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.app-scene-queue__head strong {
    display: block;
    color: #13213c;
    font-size: 18px;
    line-height: 1.2;
}
.app-scene-queue__head p {
    margin: 6px 0 0;
    color: #6f7f99;
    font-size: 14px;
}
.app-scene-queue__meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #edf4ff;
    color: #2d4db6;
    font-size: 13px;
    font-weight: 800;
}
.app-scene-card {
    display: grid;
    gap: 12px;
    padding: 12px;
    border-radius: 28px;
    border: 1px solid #d8e3f3;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.06);
}
.app-scene-card__preview {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid #dfebf7;
    background:
        linear-gradient(180deg, rgba(8, 16, 36, 0.18) 0%, rgba(8, 16, 36, 0) 28%, rgba(8, 16, 36, 0.34) 100%),
        radial-gradient(circle at top, rgba(147, 197, 253, 0.28), rgba(255, 255, 255, 0.96) 62%);
    min-height: 300px;
}
.app-scene-card__preview img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}
.app-scene-card__preview::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(180deg, rgba(7, 15, 33, 0) 0%, rgba(7, 15, 33, 0.78) 100%);
    pointer-events: none;
}
.app-scene-card__preview-head {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.app-scene-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #233453;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    box-shadow: 0 10px 24px rgba(18, 32, 60, 0.16);
    backdrop-filter: blur(12px);
}
.app-scene-card__pick {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #22324d;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(18, 32, 60, 0.14);
    backdrop-filter: blur(12px);
}
.app-scene-card__pick input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #3d63ff;
}
.app-scene-card__placeholder {
    min-height: 300px;
    display: grid;
    place-items: center;
    text-align: center;
    gap: 10px;
    padding: 24px;
    color: #52627c;
}
.app-scene-card__placeholder strong {
    font-size: 22px;
    line-height: 1.2;
    max-width: 12ch;
}
.app-scene-card__placeholder-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    color: #4d66d8;
    font-size: 20px;
}
.app-scene-card__headline {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 76px;
    z-index: 2;
    display: grid;
    gap: 6px;
    pointer-events: none;
}
.app-scene-card__headline strong {
    color: #ffffff;
    font-size: 28px;
    line-height: 1.04;
    letter-spacing: -0.04em;
    text-shadow: 0 10px 24px rgba(8, 16, 36, 0.34);
}
.app-scene-card__count {
    position: absolute;
    top: 64px;
    right: 14px;
    z-index: 3;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(17, 34, 71, 0.78);
    color: #f8fbff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.app-scene-card__body {
    display: grid;
    gap: 14px;
    padding: 4px 4px 2px;
}
.app-scene-card__toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #22324d;
    font-size: 13px;
    font-weight: 700;
}
.app-scene-card__toggle input {
    width: 18px;
    height: 18px;
    accent-color: #3d63ff;
}
.app-scene-card__field {
    display: grid;
    gap: 8px;
    margin: 0;
    color: #46556f;
    font-size: 13px;
    font-weight: 600;
}
.app-scene-card__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.app-scene-card__field--full {
    grid-column: 1 / -1;
}
.app-scene-card__field .app-textarea {
    min-height: 98px;
}
.app-scene-card__progress {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid #dbe6f4;
    background: rgba(243, 247, 255, 0.88);
}
.app-scene-card__progress[hidden] {
    display: none;
}
.app-scene-card__progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.app-scene-card__progress-head strong {
    color: #1a2d4d;
    font-size: 13px;
    line-height: 1.2;
}
.app-scene-card__progress-head span {
    color: #3d63ff;
    font-size: 12px;
    font-weight: 800;
}
.app-progress-track--scene {
    height: 8px;
    border-radius: 999px;
    background: #dfe8f5;
    overflow: hidden;
}
.app-progress-track--queue {
    height: 10px;
    border-radius: 999px;
    background: #dfe8f5;
    overflow: hidden;
}
.app-scene-card__progress p {
    margin: 0;
    color: #6c7b95;
    font-size: 12px;
    line-height: 1.4;
}
.app-scene-card.is-progress-active {
    border-color: #8ca4ff;
    box-shadow: 0 20px 40px rgba(61, 99, 255, 0.14);
    transform: translateY(-2px);
}
.app-scene-card.is-queue-pending {
    opacity: 0.86;
}
.app-scene-card.is-queue-pending .app-scene-card__preview::after {
    background: linear-gradient(180deg, rgba(7, 15, 33, 0.12) 0%, rgba(7, 15, 33, 0.84) 100%);
}
.app-scene-card.is-queue-pending .app-scene-card__progress {
    background: rgba(241, 245, 255, 0.96);
}
.app-scene-card.is-progress-active .app-scene-card__preview {
    box-shadow: inset 0 0 0 2px rgba(61, 99, 255, 0.24);
}
.app-scene-card.is-progress-active .app-scene-card__badge {
    background: #3d63ff;
    color: #ffffff;
}
.app-scene-card.is-progress-complete .app-scene-card__progress {
    background: rgba(233, 248, 237, 0.92);
    border-color: #cfe8d6;
}
.app-scene-card.is-progress-complete .app-scene-card__progress-head span {
    color: #1f8f49;
}
.app-scene-card.is-progress-complete .app-scene-card__badge {
    background: #e9f8ed;
    color: #1f8f49;
}
.app-scene-card.is-progress-complete .app-scene-card__preview {
    box-shadow: inset 0 0 0 2px rgba(31, 143, 73, 0.18);
}
@media (max-width: 900px) {
    .app-scene-card__fields {
        grid-template-columns: 1fr;
    }
    .app-scene-card__headline strong {
        font-size: 24px;
    }
    .app-scene-queue {
        padding: 16px;
    }
    .app-photo-workspace {
        padding: 16px;
    }
    .app-photo-workspace__section .app-scene-grid {
        grid-template-columns: 1fr;
    }
    .app-products-filter,
    .app-history-filter {
        grid-template-columns: 1fr;
    }
    .app-product-row__gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .app-history-row {
        grid-template-columns: 1fr;
    }
}
.app-scene-card__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.app-scene-card__actions .app-btn {
    flex: 1 1 180px;
}
.app-scene-builder__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 20px;
    border: 1px solid #d9e5f4;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
}
.app-scene-builder__footer p {
    margin: 0;
    color: #6e7d97;
    font-size: 14px;
}
.app-scene-builder__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.app-scene-builder__actions .app-btn {
    min-width: 220px;
}
.app-product-grid .app-empty {
    min-height: 280px;
    margin: 0;
}
.app-detail-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.app-studio-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: start;
}
.app-studio-side,
.app-studio-tools {
    display: grid;
    gap: 16px;
}
.app-studio-side__head,
.app-studio-canvas__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}
.app-studio-side__eyebrow,
.app-studio-canvas__eyebrow,
.app-studio-thumb__meta {
    display: inline-block;
    color: #7c8aa5;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.app-studio-side__title,
.app-studio-canvas__title {
    margin: 6px 0 0;
    color: #12203c;
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.app-studio-main {
    display: grid;
    gap: 20px;
}
.app-studio-canvas {
    display: grid;
    gap: 18px;
    background:
        radial-gradient(circle at top, rgba(86, 118, 255, 0.20), transparent 38%),
        linear-gradient(180deg, #101726 0%, #161f30 100%);
    border-radius: 28px;
    padding: 22px;
    border: 1px solid #25324a;
    box-shadow: 0 30px 60px rgba(16, 23, 38, 0.18);
}
.app-studio-preview-target {
    width: 100%;
    max-height: 640px;
    object-fit: contain;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.app-studio-main .app-generated-grid {
    margin-top: 0;
}
.app-studio-thumb,
.app-studio-idea {
    text-align: left;
    cursor: pointer;
}
.app-studio-thumb {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
    border: 1px solid #dde6f3;
    box-shadow: 0 14px 34px rgba(16, 23, 38, 0.05);
}
.app-studio-thumb strong {
    color: #12203c;
    font-size: 16px;
    line-height: 1.2;
}
.app-studio-thumb small {
    color: #73829a;
}
.app-studio-thumb .app-product-card__image {
    margin-top: 0;
    aspect-ratio: 4 / 5;
}
.app-tool-panel[hidden] {
    display: none;
}
.app-chip--block {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
}
.app-studio-thumb:hover,
.app-studio-idea:hover {
    border-color: #8e9cff;
    box-shadow: 0 18px 36px rgba(112, 88, 239, 0.14);
    transform: translateY(-2px);
}
.app-chip {
    cursor: pointer;
}
.app-studio-tools > .app-card,
.app-source-link {
    border-radius: 24px;
    border: 1px solid #e2e9f4;
    box-shadow: 0 18px 44px rgba(16, 23, 38, 0.06);
}
.app-tool-panel {
    display: grid;
    gap: 14px;
}
.app-source-link {
    display: grid;
    gap: 10px;
}
.app-source-link a {
    color: #3156d3;
    word-break: break-all;
}
.app-studio-tools .app-card p,
.app-studio-tools .app-card small {
    color: #60708d;
}
.app-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 20, 0.58);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 3000;
}
.app-modal {
    width: min(760px, 100%);
    background: #fff;
    border-radius: 22px;
    border: 1px solid #dfe5ef;
    box-shadow: 0 24px 80px rgba(16, 23, 38, 0.24);
    overflow: hidden;
}
.app-modal__head,
.app-modal__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid #e9eef5;
}
.app-modal__foot {
    border-top: 1px solid #e9eef5;
    border-bottom: 0;
}
.app-modal__body {
    padding: 22px;
    display: grid;
    gap: 14px;
}
.app-modal__dialog {
    width: min(760px, 100%);
    max-height: calc(100vh - 32px);
    display: grid;
    grid-template-rows: auto 1fr;
    background: #fff;
    border-radius: 22px;
    border: 1px solid #dfe5ef;
    box-shadow: 0 24px 80px rgba(16, 23, 38, 0.24);
    overflow: hidden;
}
[data-app-image-modal].app-modal {
    position: fixed;
    inset: 0;
    z-index: 3100;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    padding: 24px;
    display: grid;
    place-items: center;
    background: rgba(9, 14, 28, 0.78);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.app-modal__dialog--image {
    width: min(1320px, calc(100vw - 48px));
    max-width: 1320px;
    max-height: calc(100vh - 48px);
    margin: 0 auto;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    border-radius: 28px;
    overflow: hidden;
    background: #f8fbff;
    border: 1px solid rgba(226, 233, 244, 0.9);
    box-shadow: 0 28px 90px rgba(7, 12, 26, 0.38);
}
.app-modal__head {
    position: relative;
}
.app-modal__dialog--image .app-modal__head {
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e7edf6;
}
.app-modal__dialog--image .app-modal__head strong {
    font-size: 18px;
    color: #1b2a49;
}
.app-modal__body--image {
    min-height: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top, rgba(184, 209, 255, 0.3), transparent 40%),
        linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    overflow: auto;
}
.app-image-modal__img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 170px);
    margin: auto;
    border-radius: 22px;
    box-shadow: 0 22px 60px rgba(16, 23, 38, 0.18);
    object-fit: contain;
    background: #fff;
}
.app-image-modal__video {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 170px);
    margin: auto;
    border-radius: 22px;
    box-shadow: 0 22px 60px rgba(16, 23, 38, 0.18);
    background: #000;
}
.app-history-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    margin-bottom: 8px;
}
.app-history-row__media {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}
.app-history-row__thumb {
    position: relative;
    width: 72px;
    height: 72px;
    padding: 0;
    border: 1px solid #dfe5ef;
    border-radius: 16px;
    overflow: hidden;
    background: #f7f9fc;
    cursor: pointer;
}
.app-history-row__thumb-image,
.app-history-row__thumb-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.app-history-row__thumb--video {
    background: #0f172a;
}
.app-history-row__thumb-play {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 11px;
}
.app-history-row__content {
    min-width: 0;
}
.app-modal-open {
    overflow: hidden;
}
body.app-modal-open {
    overflow: hidden;
}
.app-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #d9e3f2;
    border-radius: 14px;
    background: #fff;
    color: #24324d;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.app-modal__close:hover {
    transform: translateY(-1px);
    border-color: #b7c7e7;
    box-shadow: 0 14px 28px rgba(17, 24, 39, 0.12);
}
.app-modal__close:focus-visible {
    outline: 2px solid #6c63ff;
    outline-offset: 2px;
}
.app-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #101726;
    color: #eef2ff;
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 18px 50px rgba(16, 23, 38, 0.28);
    z-index: 3200;
    max-width: 360px;
}
.app-progress-overlay {
    position: fixed;
    inset: 0;
    z-index: 3150;
    background: rgba(7, 12, 23, 0.72);
    display: grid;
    place-items: center;
    padding: 24px;
    backdrop-filter: blur(8px);
}
.app-progress-overlay__card {
    width: min(640px, 100%);
    border-radius: 28px;
    padding: 28px;
    background: radial-gradient(circle at top, #1f2940 0%, #101726 62%, #090d18 100%);
    color: #eef2ff;
    box-shadow: 0 28px 80px rgba(5, 10, 20, 0.42);
    display: grid;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.app-progress-overlay__label {
    color: #93c5fd;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.app-progress-overlay__title {
    margin: 0;
    font-size: 28px;
    line-height: 1.1;
}
.app-progress-overlay__text {
    margin: 0;
    color: #dbe5ff;
}
.app-progress-overlay__steps {
    display: grid;
    gap: 10px;
}
.app-progress-overlay__step {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #c3d0eb;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}
.app-progress-overlay__step.is-active {
    background: rgba(96, 165, 250, 0.16);
    border-color: rgba(147, 197, 253, 0.44);
    color: #f8fbff;
}
.app-progress-overlay__step.is-complete {
    background: rgba(52, 211, 153, 0.12);
    border-color: rgba(110, 231, 183, 0.32);
    color: #d1fae5;
}
.is-hidden {
    display: none !important;
}
.app-custom-marketplace.is-hidden {
    display: none !important;
}
.app-upload-dropzone {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px dashed #c7d1e3;
    border-radius: 18px;
    background: #f8fbff;
}
.app-upload-dropzone--wide {
    grid-column: 1 / -1;
    gap: 14px;
}
.app-upload-dropzone__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.app-upload-dropzone__hero {
    min-height: 180px;
    display: grid;
    place-items: center;
    align-content: center;
    justify-items: center;
    gap: 8px;
    padding: 24px;
    border-radius: 22px;
    border: 1px dashed #d6dce8;
    background: linear-gradient(180deg, #fdfefe 0%, #f7f9fc 100%);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.app-upload-dropzone__hero:hover {
    border-color: #9eb4e8;
    background: linear-gradient(180deg, #ffffff 0%, #f2f6ff 100%);
    transform: translateY(-1px);
}
.app-upload-dropzone__icon {
    width: 42px;
    height: 42px;
    color: #9aa4b2;
}
.app-upload-dropzone__icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}
.app-upload-dropzone__title {
    color: #4d596c;
    font-size: 18px;
    font-weight: 700;
}
.app-upload-dropzone__hint {
    margin: 0;
    color: #98a2b3;
    font-size: 15px;
}
.app-upload-dropzone__filename {
    color: #6b778c;
    font-size: 14px;
}
.app-upload-dropzone > span:first-child {
    font-weight: 600;
    color: #4d596c;
}
.app-upload-dropzone > strong:not(.app-upload-dropzone__title) {
    color: #41506a;
}
.app-upload-dropzone > p:not(.app-upload-dropzone__hint) {
    margin: 0;
    max-width: 680px;
    color: #6f7c91;
}
.app-upload-dropzone img {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid #dfe5ef;
}
.app-field-help {
    display: block;
    margin-top: 8px;
    color: #6f7c91;
    font-size: 13px;
    line-height: 1.5;
}
.app-workflow-studio {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 320px;
    gap: 18px;
    padding: 22px;
    border-radius: 28px;
    background: radial-gradient(circle at top, #1f2940 0%, #0d1321 60%, #090d18 100%);
    color: #eef2ff;
}
.app-workflow-studio .app-card,
.app-workflow-studio .app-btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: #eef2ff;
    border-color: rgba(255, 255, 255, 0.12);
}
.app-workflow-studio__rail,
.app-workflow-studio__tools,
.app-workflow-studio__main {
    display: grid;
    gap: 16px;
    align-content: start;
}
.app-workflow-studio__canvas {
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.app-workflow-progress .app-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 28px;
}
.app-ready-card {
    padding: 28px;
    border-radius: 24px;
    border: 1px solid #e4e8f0;
    background: #fff;
    box-shadow: 0 18px 44px rgba(16, 23, 38, 0.08);
    display: grid;
    gap: 22px;
}
.app-ready-card__head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}
.app-ready-card__eyebrow {
    margin: 0 0 10px;
    color: #6b778c;
}
.app-ready-card__canvas {
    display: grid;
    grid-template-columns: 290px 290px;
    gap: 18px;
    align-items: start;
}
.app-ready-card__primary {
    margin: 0;
    display: grid;
    gap: 10px;
}
.app-ready-card__primary span {
    font-weight: 700;
    color: #38465f;
}
.app-ready-card__primary img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
    border: 1px solid #dfe5ef;
    box-shadow: 0 20px 40px rgba(30, 40, 60, 0.12);
}
.app-ready-card__secondary {
    min-height: 100%;
    border-radius: 22px;
    border: 1px solid #dbe3f5;
    background:
        radial-gradient(circle at 20% 20%, rgba(120, 150, 255, 0.18), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(255, 164, 186, 0.18), transparent 42%),
        linear-gradient(180deg, #f6f8ff 0%, #fff6f9 100%);
    padding: 16px;
    display: grid;
    align-content: space-between;
    gap: 22px;
}
.app-ready-card__metric {
    display: grid;
    gap: 10px;
}
.app-ready-card__metric span {
    color: #6a7894;
    font-size: 14px;
}
.app-ready-card__metric strong {
    font-size: 44px;
    line-height: 1;
    color: #5a78d6;
}
.app-ready-card__soft-card {
    display: grid;
    gap: 10px;
    min-height: 220px;
    align-content: center;
    text-align: center;
    color: rgba(55, 61, 83, 0.7);
}
.app-ready-card__soft-card p {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}
.app-ready-card__soft-card small {
    color: rgba(88, 98, 126, 0.78);
}
.app-ready-card__ideas {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.app-ready-card__idea-add {
    min-width: 290px;
    border: 1px dashed #d5dceb;
    background: #fff;
    border-radius: 18px;
    padding: 16px 18px;
    text-align: left;
    font-size: 22px;
    color: #59657b;
    cursor: pointer;
}
.app-ready-card__cta {
    width: 100%;
    justify-content: center;
    min-height: 58px;
    font-size: 18px;
}
.app-progress-track {
    height: 14px;
    background: #dfe5ef;
    border-radius: 999px;
    overflow: hidden;
}
.app-progress-track--overlay {
    background: rgba(255, 255, 255, 0.08);
}
.app-progress-bar {
    width: 12%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff8c42 0%, #ffb347 100%);
    transition: width 0.8s ease;
}
.admin-auth {
    max-width: 520px;
}
.admin-auth-body .app-notice {
    margin: 0;
}
.admin-gate-page {
    padding: 36px 20px;
}
.admin-gate .auth-stage__title {
    max-width: 10ch;
}
.admin-gate__brand {
    min-height: 100%;
}
.admin-gate__panel {
    padding: 28px;
    gap: 18px;
}
.admin-auth-card {
    display: grid;
    gap: 20px;
}
.admin-auth-card__head {
    display: grid;
    gap: 8px;
}
.admin-auth-card__head h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.04;
    color: #10284c;
}
.admin-auth-card__head p {
    margin: 0;
    color: #60708d;
    line-height: 1.55;
}
.admin-auth .app-input {
    min-height: 54px;
}
.admin-auth .app-btn {
    min-height: 54px;
    width: 100%;
}
.admin-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.admin-sidebar {
    position: sticky;
    top: 20px;
    display: grid;
    gap: 16px;
}
.admin-sidebar__card {
    padding: 22px 20px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(72, 138, 255, 0.2), transparent 42%),
        linear-gradient(180deg, #14233e 0%, #182c4e 100%);
    color: #eef4ff;
    box-shadow: 0 22px 48px rgba(13, 25, 49, 0.22);
}
.admin-sidebar__eyebrow {
    margin: 0 0 8px;
    color: rgba(190, 212, 255, 0.78);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.admin-sidebar__title {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1.05;
}
.admin-sidebar__text {
    margin: 0;
    color: rgba(228, 236, 255, 0.82);
    line-height: 1.55;
}
.admin-sidebar__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}
.admin-sidebar__stat {
    padding: 12px 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}
.admin-sidebar__stat strong {
    display: block;
    font-size: 22px;
    line-height: 1;
    color: #fff;
}
.admin-sidebar__stat span {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(210, 223, 255, 0.72);
}
.admin-sidebar__actions {
    display: grid;
    gap: 10px;
}
.admin-sidebar__actions .app-btn {
    justify-content: center;
    min-height: 46px;
}
.admin-tabs {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 24px;
    background: #f7f9fd;
    border: 1px solid #e2e8f4;
    box-shadow: 0 12px 30px rgba(16, 23, 38, 0.06);
}
.admin-tabs__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 16px;
    background: transparent;
    color: #415271;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.admin-tabs__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.admin-tabs__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 11px;
    background: #e8eef9;
    color: #1c315a;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.admin-tabs__copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.admin-tabs__label {
    display: block;
}
.admin-tabs__hint {
    display: block;
    color: #6d7c98;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}
.admin-tabs__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: #edf3ff;
    color: #25457a;
    font-size: 12px;
    font-weight: 800;
}
.admin-tabs__link:hover {
    background: #eef3fb;
    border-color: #dce5f5;
    color: #1b2a45;
}
.admin-tabs__link:hover .admin-tabs__icon {
    background: #dce8fb;
}
.admin-tabs__link.is-active {
    background: #16233f;
    color: #fff;
    border-color: #16233f;
    transform: translateY(-1px);
}
.admin-tabs__link.is-active .admin-tabs__icon {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}
.admin-tabs__link.is-active .admin-tabs__hint {
    color: rgba(227, 236, 255, 0.78);
}
.admin-tabs__link.is-active .admin-tabs__badge {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}
.admin-tab-panels {
    display: grid;
}
.admin-tab-panel {
    display: none;
}
.admin-tab-panel.is-active {
    display: block;
}
.admin-tab-panel > .app-card,
.admin-tab-panel > form.app-card,
.admin-tab-panel > section.app-card {
    border-radius: 28px;
    border: 1px solid #e6ebf5;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.98));
    box-shadow: 0 22px 48px rgba(16, 23, 38, 0.08);
    padding: 28px;
}
.admin-tab-panel .app-card--soft {
    border-radius: 22px;
    border: 1px solid #e7edf7;
    background: linear-gradient(180deg, #fcfdff 0%, #f5f8fd 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.admin-tab-panel h2 {
    margin: 0 0 6px;
    font-size: 30px;
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: #12203c;
}
.admin-tab-panel h3 {
    margin: 6px 0 4px;
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #5c6f93;
}
.admin-tab-panel p {
    color: #64748f;
    line-height: 1.6;
}
.admin-tab-panel label > span,
.admin-tab-panel label span {
    color: #31415e;
}
.admin-tab-panel .app-input,
.admin-tab-panel .app-textarea,
.admin-tab-panel select.app-input {
    min-height: 50px;
    border-radius: 15px;
    border: 1px solid #dce5f3;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.admin-tab-panel textarea.app-input,
.admin-tab-panel .app-textarea {
    min-height: 120px;
}
.admin-tab-panel .app-input:focus,
.admin-tab-panel .app-textarea:focus,
.admin-tab-panel select.app-input:focus {
    border-color: #90a9d9;
    box-shadow: 0 0 0 4px rgba(100, 132, 198, 0.12);
}
.admin-tab-panel .app-actions-row {
    padding-top: 6px;
}
.admin-tab-panel .app-btn {
    min-height: 46px;
}
.admin-tab-panel .app-inline-form {
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfcff 0%, #f3f7fd 100%);
    border: 1px solid #e5ebf6;
}
.admin-tab-panel pre {
    margin: 0;
    padding: 18px;
    border-radius: 18px;
    background: #0f1729;
    color: #e6efff;
    overflow: auto;
}
.admin-tab-panel .app-card:first-child,
.admin-tab-panel > .app-card:first-child {
    margin-top: 0;
}
.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(255, 159, 67, 0.22), transparent 32%),
        radial-gradient(circle at bottom right, rgba(47, 100, 234, 0.24), transparent 36%),
        linear-gradient(135deg, #0b1324 0%, #10192d 45%, #161f33 100%);
    color: #eef3ff;
}
.auth-shell-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
}
.auth-stage {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(380px, 460px);
    gap: 32px;
    align-items: stretch;
}
.auth-stage__brand,
.auth-panel {
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
}
.auth-stage__brand {
    padding: 42px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        linear-gradient(135deg, rgba(15, 26, 48, 0.94), rgba(24, 35, 61, 0.88));
    display: grid;
    align-content: space-between;
    gap: 22px;
}
.auth-stage__logo img {
    width: 148px;
}
.auth-stage__eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.58);
}
.auth-stage__title {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 0.94;
    max-width: 8ch;
    color: #ffffff;
}
.auth-stage__text {
    margin: 0;
    max-width: 42ch;
    font-size: 17px;
    line-height: 1.6;
    color: rgba(236, 242, 255, 0.78);
}
.auth-stage__points {
    display: grid;
    gap: 12px;
}
.auth-stage__point {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
    color: rgba(255, 255, 255, 0.88);
}
.auth-panel {
    background: rgba(249, 251, 255, 0.96);
    color: #12203c;
    padding: 18px;
    display: grid;
    gap: 16px;
    align-content: start;
}
.auth-success {
    display: grid;
    gap: 10px;
    padding: 18px 18px 20px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(66, 153, 225, 0.16), transparent 42%),
        linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
    border: 1px solid #d1e6ff;
}
.auth-success__eyebrow {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #4971b7;
    font-weight: 800;
}
.auth-success__title {
    margin: 0;
    font-size: 26px;
    line-height: 1.05;
    color: #10284c;
}
.auth-success__text {
    margin: 0;
    color: #4f668e;
    line-height: 1.55;
}
.auth-success__cta {
    margin-top: 6px;
    justify-self: start;
}
.auth-panel__switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.auth-stage[data-current-mode="verify"] .auth-panel__switch {
    display: none;
}
.auth-panel__tab {
    border: 0;
    border-radius: 16px;
    background: #edf1f8;
    color: #61708d;
    padding: 12px 14px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.auth-panel__tab.is-active {
    background: #16233f;
    color: #fff;
    transform: translateY(-1px);
}
.auth-panel__notice {
    min-height: 0;
}
.auth-panel__notice:not(.is-visible) {
    display: none;
}
.auth-panel__pane {
    display: none;
}
.auth-panel__pane.is-active {
    display: grid;
    gap: 18px;
}
.auth-panel__head {
    display: grid;
    gap: 8px;
}
.auth-panel__head h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.05;
}
.auth-panel__head p {
    margin: 0;
    color: #60708d;
    line-height: 1.5;
}
.auth-form {
    display: grid;
    gap: 14px;
}
.auth-form__field {
    display: grid;
    gap: 8px;
}
.auth-form__field span {
    display: block;
    font-weight: 700;
}
.auth-form__field .app-input.is-invalid,
.auth-password__input.is-invalid {
    border-color: #e35d6a;
    box-shadow: 0 0 0 4px rgba(227, 93, 106, 0.12);
}
.auth-form__error {
    display: none;
    color: #b63b4d;
    font-size: 13px;
    line-height: 1.4;
}
.auth-form__error.is-visible {
    display: block;
}
.auth-password {
    position: relative;
    display: block;
}
.auth-password__input {
    padding-right: 104px;
}
.auth-password__toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #47639d;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 10px;
}
.auth-password__toggle:hover {
    background: rgba(71, 99, 157, 0.08);
}
.auth-form__submit {
    width: 100%;
    min-height: 54px;
}
.auth-panel__links {
    display: flex;
    align-items: center;
    gap: 14px;
}
.auth-panel__links--split {
    justify-content: space-between;
}
.auth-panel__link {
    border: 0;
    padding: 0;
    background: transparent;
    color: #47639d;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}
.auth-panel__link:hover {
    color: #16233f;
}
.auth-inline-actions {
    display: flex;
    justify-content: flex-start;
}
.auth-inline-actions .app-btn[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}
.auth-result {
    display: none;
    padding: 16px 18px;
    border-radius: 18px;
    background: #eff6ff;
    border: 1px solid #d6e4ff;
    gap: 8px;
}
.auth-result.is-visible {
    display: grid;
}
.auth-result__title {
    font-weight: 700;
    color: #18305c;
}
.auth-result__link {
    word-break: break-all;
    color: #2f64ea;
}
.app-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.app-stat {
    padding: 24px;
    text-align: center;
}
.app-stat strong {
    display: block;
    font-size: 42px;
}
.app-form-grid {
    display: grid;
    gap: 22px;
}
.app-topic-grid { gap: 10px; }
.app-status { padding: 18px 22px; }
.app-timeline {
    display: grid;
    gap: 14px;
}
.app-timeline__item {
    background: #fff;
    border: 1px solid #dfe5ef;
    border-radius: 18px;
    padding: 18px 20px;
}
.app-timeline__item strong,
.app-timeline__item span {
    display: block;
}
.app-timeline__item span {
    color: #60708d;
    font-size: 14px;
    margin-top: 4px;
}
.app-nav--wide {
    overflow-x: auto;
    padding-bottom: 6px;
}

@media (max-width: 960px) {
    .header__inner {
        align-items: center;
    }
    .header__nav,
    .header__cta {
        display: none;
    }
    .header__burger {
        display: inline-flex;
        margin-left: auto;
    }
    .header__drawer.is-open {
        display: block;
    }
    .app-header__bar,
    .app-main {
        padding-left: 18px;
        padding-right: 18px;
    }
    .app-header__bar {
        min-height: auto;
        padding-top: 16px;
        padding-bottom: 16px;
        align-items: center;
        flex-direction: row;
    }
    .app-header__actions,
    .app-banner {
        display: none;
    }
    .app-header__burger {
        display: inline-flex;
        margin-left: auto;
    }
    .app-header__drawer.is-open {
        display: block;
    }
    .app-nav--drawer {
        grid-template-columns: 1fr;
        width: 100%;
    }
    .app-bonus-card,
    .app-section__row {
        align-items: stretch;
        flex-direction: column;
    }
    .app-form-grid--2,
    .app-form-grid--3,
    .app-form-grid--4,
    .app-list-grid,
    .app-prompt-grid,
    .app-scene-grid,
    .app-prompt-custom__grid,
    .app-generated-grid,
    .app-studio-shell,
    .app-workflow-studio {
        grid-template-columns: 1fr;
    }
    .app-prompt-lab {
        padding: 22px;
    }
    .app-prompt-card,
    .app-prompt-custom {
        padding: 20px;
    }
    .app-prompt-lab__title {
        max-width: none;
    }
    .app-seo-toolbar {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .app-seo-toolbar__upload {
        justify-content: flex-start;
    }
    .app-seo-upload__name {
        max-width: none;
    }
    .app-product-grid {
        grid-template-columns: 1fr;
    }
    .app-prompt-card .app-btn,
    .app-prompt-custom .app-btn {
        width: 100%;
        min-width: 0;
    }
    .app-ready-card__head,
    .app-ready-card__canvas,
    .app-ready-card__ideas {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }
    .app-ready-card__idea-add {
        min-width: 0;
        width: 100%;
    }
    .app-stats-grid { grid-template-columns: 1fr; }
    .app-model { grid-template-columns: auto 1fr; }
    .auth-stage {
        grid-template-columns: 1fr;
    }
    .auth-stage__brand {
        padding: 28px;
    }
    .auth-panel {
        padding: 14px;
    }
    .admin-layout {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        position: static;
    }
    .admin-sidebar__stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .auth-panel__switch {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .admin-tabs {
        overflow-x: auto;
        display: flex;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }
    .admin-tabs__link {
        flex: 0 0 auto;
    }
    .admin-tab-panel > .app-card,
    .admin-tab-panel > form.app-card,
    .admin-tab-panel > section.app-card {
        padding: 22px;
    }
    .auth-panel__links--split {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (min-width: 961px) {
    .app-header__burger {
        display: none;
    }
}
