/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: #090a0f;
    color: #f5f5f7;

    line-height: 1.5;

    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    border: 0;
}

ul {
    list-style: none;
}


/* =========================
   GLOBAL
========================= */

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.section {
    padding: 110px 0;
}

.section--dark {
    background: #0d0e14;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-heading__eyebrow {
    display: inline-block;

    margin-bottom: 14px;

    color: #9d88ff;

    font-size: 13px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.section-heading h2 {
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-heading p {
    max-width: 620px;

    margin: 20px auto 0;

    color: #9698a6;

    font-size: 18px;
}


/* =========================
   HEADER
========================= */

.header {
    position: sticky;
    top: 0;
    z-index: 100;

    height: 76px;

    background: rgba(9, 10, 15, 0.82);

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);

    backdrop-filter: blur(20px);
}

.header__inner {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    font-weight: 700;
}

.logo__mark {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #7457ff,
            #b057ff
        );

    color: white;

    box-shadow:
        0 8px 28px rgba(116, 87, 255, 0.3);
}

.logo__text {
    font-size: 17px;
}

.nav {
    display: flex;
    gap: 34px;
}

.nav a {
    color: #a6a7b2;

    font-size: 14px;
    font-weight: 500;

    transition: 0.2s;
}

.nav a:hover {
    color: white;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

a.ui-disabled {
    cursor: not-allowed !important;
    opacity: 0.55;
}

a.ui-disabled:hover {
    transform: none !important;
}

.header__actions [hidden] {
    display: none !important;
}

.header__actions [data-auth-login][hidden],
.header__actions [data-auth-logout][hidden] {
    display: none !important;
}

body[data-auth-state="loading"] [data-auth-login],
body[data-auth-state="loading"] [data-auth-logout],
body[data-auth-state="loading"] [data-auth-primary] {
    visibility: hidden;
    pointer-events: none;
}

.auth-cta-skeleton {
    display: none;
    align-items: center;
    gap: 9px;
    min-height: 42px;
}

body[data-auth-state="loading"] .auth-cta-skeleton {
    display: flex;
}

.auth-cta-skeleton span {
    width: 74px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(100deg, #171820 25%, #242631 45%, #171820 65%);
    background-size: 220% 100%;
    animation: auth-skeleton 1.15s ease-in-out infinite;
}

.auth-cta-skeleton span:last-child {
    width: 108px;
}

@keyframes auth-skeleton {
    to { background-position-x: -220%; }
}

.landing-logout {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #17181f;
    color: #d7d8df;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
}

.landing-logout:hover {
    border-color: rgba(154, 119, 239, 0.32);
    background: #20212a;
    color: #ffffff;
}

body[data-auth-state="anonymous"] [data-auth-logout],
body[data-auth-state="ready"] [data-auth-login] {
    display: none !important;
}


/* =========================
   BUTTONS
========================= */

.btn {
    min-height: 42px;

    padding: 0 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    font-size: 14px;
    font-weight: 600;

    transition:
        transform 0.2s,
        background 0.2s,
        border-color 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--primary {
    color: white;

    background:
        linear-gradient(
            135deg,
            #7257ff,
            #9d4dff
        );

    box-shadow:
        0 10px 30px rgba(116, 87, 255, 0.23);
}

.btn--primary:hover {
    box-shadow:
        0 14px 40px rgba(116, 87, 255, 0.35);
}

.btn--secondary {
    background: #16171f;

    border:
        1px solid rgba(255, 255, 255, 0.1);

    color: #f1f1f4;
}

.btn--secondary:hover {
    background: #1d1e27;
}

.btn--ghost {
    color: #bebfc7;
}

.btn--ghost:hover {
    color: white;
}

.btn--large {
    min-height: 52px;

    padding: 0 24px;

    border-radius: 13px;

    font-size: 15px;
}

.btn--full {
    width: 100%;
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;

    min-height: calc(100vh - 76px);

    padding: 105px 0 110px;

    display: flex;
    align-items: center;

    overflow: hidden;
}

.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(117, 87, 255, 0.08),
            transparent 42%
        );
}

.hero__inner {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 0.95fr 1.05fr;

    gap: 70px;

    align-items: center;
}

.hero__content {
    max-width: 590px;
}

.badge {
    width: fit-content;

    margin-bottom: 24px;

    padding: 8px 12px;

    display: flex;
    align-items: center;
    gap: 8px;

    border:
        1px solid rgba(161, 133, 255, 0.22);

    border-radius: 999px;

    background:
        rgba(121, 87, 255, 0.08);

    color: #c7b8ff;

    font-size: 13px;
    font-weight: 600;
}

.badge__dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #a581ff;

    box-shadow:
        0 0 12px #a581ff;
}

.hero__title {
    max-width: 700px;

    font-size: clamp(48px, 6vw, 78px);

    line-height: 0.98;

    letter-spacing: -0.055em;
}

.hero__title span {
    display: block;

    margin-top: 8px;

    background:
        linear-gradient(
            90deg,
            #8d73ff,
            #d282ff
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.hero__description {
    max-width: 570px;

    margin-top: 28px;

    color: #a0a2ad;

    font-size: 19px;
    line-height: 1.65;
}

.hero__actions {
    margin-top: 34px;

    display: flex;
    gap: 12px;
}

.hero__meta {
    margin-top: 44px;

    display: flex;
    flex-wrap: wrap;

    gap: 32px;
}

.hero__meta-item {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.hero__meta-item strong {
    color: white;

    font-size: 14px;
}

.hero__meta-item span {
    color: #777986;

    font-size: 12px;
}

.hero__glow {
    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    filter: blur(110px);

    opacity: 0.16;

    pointer-events: none;
}

.hero__glow--one {
    top: -240px;
    right: 80px;

    background: #794cff;
}

.hero__glow--two {
    bottom: -300px;
    left: -200px;

    background: #2d74ff;
}


/* =========================
   GENERATOR CARD
========================= */

.generator-card {
    position: relative;

    padding: 22px;

    border:
        1px solid rgba(255, 255, 255, 0.09);

    border-radius: 24px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.022)
        );

    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.4);

    backdrop-filter: blur(20px);
}

.generator-card::before {
    content: "";

    position: absolute;
    inset: -1px;

    z-index: -1;

    border-radius: inherit;

    background:
        linear-gradient(
            135deg,
            rgba(140, 110, 255, 0.25),
            transparent 30%,
            transparent 70%,
            rgba(89, 135, 255, 0.15)
        );
}

.generator-card__top {
    margin-bottom: 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.generator-card__label {
    display: block;

    margin-bottom: 4px;

    color: #767987;

    font-size: 11px;

    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.generator-card__top h3 {
    font-size: 18px;
}

.credits {
    padding: 8px 11px;

    border-radius: 9px;

    background:
        rgba(123, 91, 255, 0.13);

    color: #c6b8ff;

    font-size: 12px;
    font-weight: 600;
}

.generator-card__field label {
    display: block;

    margin-bottom: 8px;

    color: #aaaab4;

    font-size: 12px;
}

.fake-textarea {
    min-height: 90px;

    padding: 15px;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 12px;

    background: #101118;

    color: #d4d4db;

    font-size: 13px;
    line-height: 1.55;
}

.generator-card__row {
    margin-top: 12px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 10px;
}

.generator-option {
    padding: 12px;

    display: flex;
    flex-direction: column;

    border:
        1px solid rgba(255, 255, 255, 0.07);

    border-radius: 11px;

    background: #101118;
}

.generator-option span {
    color: #6f7180;

    font-size: 10px;
}

.generator-option strong {
    margin-top: 2px;

    font-size: 12px;
}

.fake-generate-btn {
    width: 100%;

    margin-top: 14px;

    padding: 13px 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #7057ff,
            #9d4eff
        );

    color: white;

    font-weight: 600;

    cursor: default;
}

.fake-generate-btn span {
    color: rgba(255, 255, 255, 0.68);

    font-size: 11px;
}

.generator-result {
    margin-top: 14px;
}

.image-placeholder {
    position: relative;

    height: 260px;

    display: grid;
    place-items: center;

    overflow: hidden;

    border-radius: 15px;

    background:
        radial-gradient(
            circle at 25% 25%,
            rgba(129, 80, 255, 0.5),
            transparent 30%
        ),
        radial-gradient(
            circle at 75% 60%,
            rgba(53, 103, 255, 0.36),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #12131d,
            #171120
        );

    border:
        1px solid rgba(255, 255, 255, 0.06);
}

.image-placeholder__shine {
    position: absolute;

    width: 220px;
    height: 220px;

    border-radius: 50%;

    background: #8256ff;

    opacity: 0.08;

    filter: blur(60px);
}

.image-placeholder__content {
    position: relative;

    text-align: center;
}

.image-placeholder__content span {
    display: inline-grid;
    place-items: center;

    width: 50px;
    height: 50px;

    margin-bottom: 12px;

    border:
        1px solid rgba(255, 255, 255, 0.13);

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.06);

    color: #c9baff;

    font-size: 13px;
    font-weight: 700;
}

.image-placeholder__content p {
    color: #80828e;

    font-size: 12px;
}


/* =========================
   FEATURES
========================= */

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.feature-card {
    padding: 26px;

    min-height: 245px;

    border:
        1px solid rgba(255, 255, 255, 0.07);

    border-radius: 18px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.018)
        );

    transition:
        transform 0.25s,
        border-color 0.25s,
        background 0.25s;
}

.feature-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(139, 107, 255, 0.28);

    background:
        linear-gradient(
            180deg,
            rgba(119, 86, 255, 0.08),
            rgba(255, 255, 255, 0.02)
        );
}

.feature-card__icon {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    margin-bottom: 24px;

    border-radius: 12px;

    background:
        rgba(124, 91, 255, 0.12);

    color: #a98dff;

    font-size: 20px;
}

.feature-card h3 {
    font-size: 17px;
}

.feature-card p {
    margin-top: 10px;

    color: #898b98;

    font-size: 14px;
    line-height: 1.65;
}


/* =========================
   TOOLS
========================= */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.tool-card {
    overflow: hidden;

    border:
        1px solid rgba(255, 255, 255, 0.07);

    border-radius: 20px;

    background: #111219;

    transition:
        transform 0.25s,
        border-color 0.25s;
}

.tool-card:hover {
    transform: translateY(-6px);

    border-color:
        rgba(145, 113, 255, 0.26);
}

.tool-card__preview {
    height: 180px;

    display: grid;
    place-items: center;

    font-size: 22px;
    font-weight: 800;

    letter-spacing: 0.14em;
}

.tool-card__preview span {
    padding: 12px 16px;

    border:
        1px solid rgba(255, 255, 255, 0.18);

    border-radius: 12px;

    background:
        rgba(0, 0, 0, 0.12);

    backdrop-filter: blur(10px);
}

.tool-card__preview--purple {
    background:
        linear-gradient(
            135deg,
            #6d45e8,
            #32245e
        );
}

.tool-card__preview--blue {
    background:
        linear-gradient(
            135deg,
            #315fd4,
            #19284d
        );
}

.tool-card__preview--pink {
    background:
        linear-gradient(
            135deg,
            #d24491,
            #572447
        );
}

.tool-card__preview--orange {
    background:
        linear-gradient(
            135deg,
            #d77938,
            #5a321c
        );
}

.tool-card__preview--green {
    background:
        linear-gradient(
            135deg,
            #2e9f77,
            #183f34
        );
}

.tool-card__preview--cyan {
    background:
        linear-gradient(
            135deg,
            #2495b5,
            #183943
        );
}

.tool-card__body {
    padding: 22px;
}

.tool-card__body h3 {
    font-size: 17px;
}

.tool-card__body p {
    min-height: 48px;

    margin-top: 8px;

    color: #858793;

    font-size: 13px;
    line-height: 1.6;
}

.tool-card__body a {
    display: inline-block;

    margin-top: 20px;

    color: #ad95ff;

    font-size: 13px;
    font-weight: 600;
}


/* =========================
   STEPS
========================= */

.steps {
    position: relative;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 28px;
}

.step {
    padding: 28px;

    border-left:
        1px solid rgba(255, 255, 255, 0.1);
}

.step__number {
    margin-bottom: 28px;

    color: #9278ff;

    font-size: 13px;
    font-weight: 700;
}

.step h3 {
    font-size: 19px;
}

.step p {
    margin-top: 10px;

    color: #878995;

    font-size: 14px;
    line-height: 1.7;
}


/* =========================
   PRICING
========================= */

.pricing-grid {
    max-width: 1020px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}

.price-card {
    position: relative;

    padding: 30px;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 20px;

    background:
        #111219;
}

.price-card--featured {
    border-color:
        rgba(139, 105, 255, 0.42);

    background:
        linear-gradient(
            180deg,
            rgba(113, 81, 255, 0.11),
            #111219 46%
        );

    box-shadow:
        0 20px 60px rgba(84, 55, 194, 0.15);
}

.price-card__badge {
    position: absolute;

    top: 18px;
    right: 18px;

    padding: 6px 9px;

    border-radius: 8px;

    background:
        rgba(122, 88, 255, 0.16);

    color: #bba7ff;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.price-card__name {
    color: #b0b1ba;

    font-size: 13px;
    font-weight: 600;
}

.price-card__price {
    margin-top: 14px;

    font-size: 36px;
    font-weight: 700;

    letter-spacing: -0.04em;
}

.price-card__price span {
    color: #6f7180;

    font-size: 12px;
    font-weight: 400;

    letter-spacing: 0;
}

.price-card__credits {
    margin-top: 8px;

    color: #9e83ff;

    font-size: 13px;
    font-weight: 600;
}

.price-card ul {
    margin: 28px 0;

    display: flex;
    flex-direction: column;

    gap: 12px;
}

.price-card li {
    position: relative;

    padding-left: 22px;

    color: #9496a1;

    font-size: 13px;
}

.price-card li::before {
    content: "✓";

    position: absolute;

    left: 0;

    color: #9a82ff;
}


/* =========================
   CTA
========================= */

.cta {
    padding: 100px 0;
}

.cta__box {
    position: relative;

    overflow: hidden;

    padding: 52px 56px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    border:
        1px solid rgba(150, 120, 255, 0.18);

    border-radius: 26px;

    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(118, 81, 255, 0.18),
            transparent 40%
        ),
        #111219;
}

.cta__box h2 {
    margin-top: 3px;

    font-size: clamp(32px, 4vw, 48px);

    line-height: 1.1;
    letter-spacing: -0.04em;
}

.cta__box p {
    max-width: 600px;

    margin-top: 14px;

    color: #8e909b;

    font-size: 15px;
}


/* =========================
   FOOTER
========================= */

.footer {
    border-top:
        1px solid rgba(255, 255, 255, 0.06);

    padding: 32px 0;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.footer p {
    color: #626470;

    font-size: 12px;
}

.footer__links {
    display: flex;
    gap: 22px;
}

.footer__links a {
    color: #777985;

    font-size: 12px;
}

.footer__links a:hover {
    color: white;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {

    .hero__inner {
        grid-template-columns: 1fr;

        gap: 60px;
    }

    .hero__content {
        max-width: 720px;
    }

    .hero__visual {
        max-width: 700px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;

        max-width: 520px;
    }

}


@media (max-width: 760px) {

    .container {
        width: min(100% - 28px, 1180px);
    }

    .header {
        height: 68px;
    }

    .nav {
        display: none;
    }

    .header__actions .btn--ghost {
        display: none;
    }

    .header__actions [data-auth-login],
    .header__actions [data-auth-logout] {
        display: inline-flex;
        min-height: 38px;
        padding: 0 12px;
        font-size: 12px;
    }

    .header__actions .btn--primary {
        min-height: 38px;

        padding: 0 13px;

        font-size: 12px;
    }

    .logo__text {
        font-size: 15px;
    }

    .hero {
        min-height: auto;

        padding: 75px 0 80px;
    }

    .hero__title {
        font-size: 48px;
    }

    .hero__description {
        font-size: 16px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .hero__meta {
        gap: 20px;
    }

    .generator-card {
        padding: 16px;

        border-radius: 18px;
    }

    .generator-card__top {
        align-items: flex-start;

        gap: 16px;
    }

    .generator-card__row {
        grid-template-columns: 1fr;
    }

    .image-placeholder {
        height: 220px;
    }

    .section {
        padding: 78px 0;
    }

    .section-heading {
        margin-bottom: 40px;
    }

    .section-heading p {
        font-size: 15px;
    }

    .features-grid,
    .tools-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: auto;
    }

    .tool-card__preview {
        height: 160px;
    }

    .step {
        padding:
            20px 0 20px 24px;
    }

    .cta {
        padding: 70px 0;
    }

    .cta__box {
        padding: 34px 24px;

        flex-direction: column;
        align-items: flex-start;
    }

    .cta__box .btn {
        width: 100%;
    }

    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer__links {
        flex-direction: column;

        gap: 8px;
    }

}


@media (max-width: 480px) {

    .header__inner {
        gap: 8px;
    }

    .header__actions {
        gap: 6px;
    }

    .header__actions .btn {
        padding: 0 10px;
    }

    .logo__text {
        display: none;
    }

    .hero__title {
        font-size: 41px;
    }

    .hero__meta {
        flex-direction: column;
    }

    .generator-card__top {
        flex-direction: column;
    }

    .credits {
        align-self: flex-start;
    }

}

/* =========================
   AUTH
========================= */

.auth-page {
    min-height: 100vh;

    background: #090a0f;
}

.auth-layout {
    position: relative;

    min-height: 100vh;

    padding: 100px 20px 50px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.auth-logo {
    position: absolute;

    top: 30px;
    left: 40px;

    z-index: 3;
}

.auth-card {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 430px;

    padding: 38px;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 24px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.025)
        );

    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.45);

    backdrop-filter: blur(20px);
}

.auth-card__header {
    text-align: center;

    margin-bottom: 28px;
}

.auth-card__eyebrow {
    display: inline-block;

    margin-bottom: 10px;

    color: #a58cff;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.13em;
}

.auth-card__header h1 {
    font-size: 32px;

    letter-spacing: -0.04em;
}

.auth-card__header p {
    margin-top: 9px;

    color: #858793;

    font-size: 14px;
}

.auth-social-btn {
    width: 100%;
    min-height: 48px;

    padding: 0 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    border:
        1px solid rgba(255, 255, 255, 0.09);

    border-radius: 12px;

    background: #111219;

    color: #f0f0f4;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s,
        border-color 0.2s,
        transform 0.2s;
}

.auth-social-btn:hover {
    transform: translateY(-1px);

    background: #171821;

    border-color:
        rgba(255, 255, 255, 0.14);
}

.auth-social-btn__icon {
    width: 25px;
    height: 25px;

    display: grid;
    place-items: center;

    border-radius: 7px;

    background: white;

    color: #151515;

    font-size: 12px;
    font-weight: 800;
}

.auth-divider {
    margin: 23px 0;

    display: grid;
    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    gap: 12px;
}

.auth-divider span {
    height: 1px;

    background:
        rgba(255, 255, 255, 0.07);
}

.auth-divider p {
    color: #626470;

    font-size: 11px;
}

.auth-form {
    display: flex;
    flex-direction: column;

    gap: 18px;
}

.auth-field {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.auth-field label {
    color: #b2b3bc;

    font-size: 12px;
    font-weight: 500;
}

.auth-field__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-link {
    color: #9d83ff;

    font-size: 11px;
}

.auth-link:hover {
    color: #baa9ff;
}

.auth-field input {
    width: 100%;

    min-height: 48px;

    padding: 0 14px;

    outline: none;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 11px;

    background: #0d0e14;

    color: white;

    font-size: 14px;

    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.auth-field input::placeholder {
    color: #555762;
}

.auth-field input:focus {
    border-color:
        rgba(139, 107, 255, 0.65);

    box-shadow:
        0 0 0 4px rgba(120, 86, 255, 0.08);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 82px;
}

.password-toggle {
    position: absolute;

    top: 50%;
    right: 12px;

    transform: translateY(-50%);

    padding: 5px;

    background: transparent;

    color: #797b87;

    font-size: 11px;

    cursor: pointer;
}

.password-toggle:hover {
    color: white;
}

.auth-checkbox {
    width: fit-content;

    display: flex;
    align-items: center;

    gap: 9px;

    color: #858793;

    font-size: 12px;

    cursor: pointer;
}

.auth-checkbox input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.auth-checkbox__custom {
    position: relative;

    width: 17px;
    height: 17px;

    border:
        1px solid rgba(255, 255, 255, 0.12);

    border-radius: 5px;

    background: #0d0e14;
}

.auth-checkbox input:checked
+ .auth-checkbox__custom {
    border-color: #805fff;

    background:
        linear-gradient(
            135deg,
            #7157ff,
            #9b4eff
        );
}

.auth-checkbox input:checked
+ .auth-checkbox__custom::after {
    content: "✓";

    position: absolute;

    inset: 0;

    display: grid;
    place-items: center;

    color: white;

    font-size: 10px;
    font-weight: 700;
}

.auth-submit {
    margin-top: 3px;

    cursor: pointer;
}

.auth-submit:disabled {
    cursor: wait;
    opacity: 0.72;
}

.auth-checkbox input:focus-visible + .auth-checkbox__custom {
    outline: 2px solid #a38bff;
    outline-offset: 3px;
}

.auth-consents {
    display: grid;
    gap: 12px;
}

.auth-consent {
    display: grid;
    gap: 6px;
}

.auth-consent--invalid .auth-checkbox {
    color: #ef9a9a;
}

.auth-consent--invalid .auth-checkbox__custom {
    border-color: #ef5f67;
    background: rgba(239, 95, 103, .08);
    box-shadow: 0 0 0 3px rgba(239, 95, 103, .08);
}

.auth-consent__error,
.auth-consents__summary {
    color: #ff7b83;
    font-size: 14px;
    line-height: 1.5;
}

.auth-consent__error {
    padding-left: 26px;
}

.auth-consents__summary {
    margin-top: 4px;
}

.auth-consent__error[hidden],
.auth-consents__summary[hidden] {
    display: none;
}

.credits--demo {
    color: #aaa0c8;
    font-size: 9px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.auth-social-btn:disabled,
.fake-generate-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.auth-link--disabled {
    cursor: not-allowed;
    color: #666875;
    text-decoration: none;
}

.auth-submit--loading {
    position: relative;
}

@keyframes auth-skeleton-pulse {
    0%, 100% { opacity: 0.42; }
    50% { opacity: 0.8; }
}

body[data-auth-state="loading"] [data-user-name] {
    display: inline-block;
    min-width: 96px;
    min-height: 1em;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: transparent !important;
    animation: auth-skeleton-pulse 1.2s ease-in-out infinite;
    vertical-align: middle;
}

body[data-auth-state="loading"] [data-user-initial] {
    background: rgba(255, 255, 255, 0.12);
    color: transparent;
    animation: auth-skeleton-pulse 1.2s ease-in-out infinite;
}

.auth-card__footer {
    margin-top: 26px;

    padding-top: 24px;

    border-top:
        1px solid rgba(255, 255, 255, 0.06);

    text-align: center;
}

.auth-card__footer p {
    color: #777985;

    font-size: 12px;
}

.auth-card__footer a {
    color: #a68cff;

    font-weight: 600;
}

.auth-layout__glow {
    position: absolute;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    filter: blur(110px);

    opacity: 0.15;
}

.auth-layout__glow--one {
    top: -180px;
    right: 5%;

    background: #8650ff;
}

.auth-layout__glow--two {
    bottom: -220px;
    left: 5%;

    background: #315cff;
}

.auth-bottom-text {
    position: relative;
    z-index: 2;

    max-width: 450px;

    margin-top: 24px;

    color: #4e505a;

    text-align: center;

    font-size: 10px;
    line-height: 1.6;
}


/* =========================
   AUTH RESPONSIVE
========================= */

@media (max-width: 600px) {

    .auth-layout {
        padding:
            95px 14px 35px;
    }

    .auth-logo {
        top: 22px;
        left: 20px;
    }

    .auth-card {
        padding: 28px 22px;

        border-radius: 20px;
    }

    .auth-card__header h1 {
        font-size: 28px;
    }

}

/* =========================
   APP LAYOUT
========================= */

.app-page {
    min-height: 100vh;

    background: #090a0f;
}

.app-layout {
    min-height: 100vh;

    display: grid;
    grid-template-columns: 245px 1fr;
}


/* =========================
   SIDEBAR
========================= */

.sidebar {
    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    z-index: 50;

    width: 245px;

    padding: 22px 16px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border-right:
        1px solid rgba(255, 255, 255, 0.06);

    background: #0b0c11;

    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar__logo {
    padding: 0 8px;

    margin-bottom: 30px;
}

.sidebar__nav {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.sidebar__link {
    min-height: 44px;

    padding: 0 12px;

    display: flex;
    align-items: center;

    gap: 11px;

    border-radius: 10px;

    color: #81838e;

    font-size: 13px;
    font-weight: 500;
    width: 100%;
    text-align: left;
    cursor: pointer;

    transition:
        background 0.2s,
        color 0.2s;
}

.sidebar__link:hover {
    background:
        rgba(255, 255, 255, 0.04);

    color: #e6e6eb;
}

.sidebar__link.active {
    background:
        rgba(126, 91, 255, 0.11);

    color: #c6b8ff;
}

.sidebar__link--disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.sidebar__link--disabled:hover {
    background: transparent;
    color: #81838e;
}

.sidebar__badge {
    margin-left: auto;
    padding: 2px 6px;

    border: 1px solid rgba(157, 136, 255, 0.18);
    border-radius: 999px;

    color: #8e7bdc;
    background: rgba(126, 91, 255, 0.07);

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.sidebar__icon {
    width: 22px;

    display: flex;
    justify-content: center;

    color: inherit;

    font-size: 15px;
}

.sidebar__bottom {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.sidebar__credits {
    --sidebar-profile-primary-size: 16px;
    --sidebar-profile-secondary-size: 13px;
    --sidebar-profile-label-size: 14px;

    padding: 14px;

    border:
        1px solid rgba(255, 255, 255, 0.06);

    border-radius: 13px;

    background:
        rgba(255, 255, 255, 0.025);
}

.sidebar__credits-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    font-size: var(--sidebar-profile-label-size);
}

.sidebar__credits-top span {
    color: #7c7e89;
}

.sidebar__credits-top strong {
    color: #c6b8ff;

    font-size: 17px;
}

.sidebar__credits-bar {
    height: 5px;

    margin-top: 10px;

    overflow: hidden;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.06);
}

.sidebar__credits-bar span {
    display: block;

    width: 62%;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #7257ff,
            #a35cff
        );
}

.sidebar__credits p {
    margin-top: 7px;

    color: #565864;

    font-size: var(--sidebar-profile-secondary-size);
}

.sidebar__credits a {
    display: inline-block;

    margin-top: 10px;

    color: #9b82ff;

    font-size: var(--sidebar-profile-label-size);
    font-weight: 600;
}

.sidebar__nav--bottom {
    padding-top: 3px;
    gap: 2px;
}

.sidebar__user {
    --sidebar-profile-primary-size: 16px;
    --sidebar-profile-secondary-size: 13px;

    min-height: 58px;

    padding: 8px;

    display: grid;
    grid-template-columns: auto minmax(0, 1fr);

    align-items: center;

    gap: 10px;

    border-top:
        1px solid rgba(255, 255, 255, 0.06);
}

.sidebar__avatar {
    width: 35px;
    height: 35px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #7257ff,
            #9f4eff
        );

    color: white;

    font-size: 12px;
    font-weight: 700;
}

.sidebar__user-info {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.sidebar__user-info strong {
    color: #dedee3;

    font-size: var(--sidebar-profile-primary-size);

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar__user-info span {
    margin-top: 1px;

    color: #666875;

    font-size: var(--sidebar-profile-secondary-size);
}

.sidebar__user-menu {
    padding: 6px;

    background: transparent;

    color: #656773;

    cursor: pointer;
}

.sidebar__link--logout {
    color: #9a747a;
}

.sidebar__link--logout:hover {
    color: #e0a7ae;
    background: rgba(190, 92, 104, 0.08);
}


/* =========================
   APP MAIN
========================= */

.app-main {
    grid-column: 2;

    min-width: 0;

    padding: 38px 42px 70px;
}

.app-topbar {
    max-width: 1450px;

    margin: 0 auto 42px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.app-topbar__eyebrow {
    margin-bottom: 4px;

    color: #626471;

    font-size: 11px;

    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.app-topbar h1 {
    font-size: 29px;

    letter-spacing: -0.035em;
}

.app-topbar__actions {
    display: flex;
    align-items: center;

    gap: 12px;
}

.topbar-credits {
    min-height: 42px;

    padding: 0 13px;

    display: flex;
    align-items: center;

    gap: 9px;

    border:
        1px solid rgba(255, 255, 255, 0.07);

    border-radius: 11px;

    background:
        rgba(255, 255, 255, 0.025);
}

.topbar-credits__icon {
    color: #9b82ff;
}

.topbar-credits div {
    display: flex;
    align-items: baseline;

    gap: 4px;
}

.topbar-credits strong {
    font-size: 13px;
}

.topbar-credits span {
    color: #656773;

    font-size: 10px;
}


/* =========================
   DASHBOARD
========================= */

.dashboard-section {
    max-width: 1450px;

    margin: 0 auto 48px;
}

.dashboard-section--last {
    margin-bottom: 0;
}

.dashboard-section__heading {
    margin-bottom: 20px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;
}

.dashboard-section__heading h2 {
    font-size: 19px;

    letter-spacing: -0.02em;
}

.dashboard-section__heading p {
    margin-top: 5px;

    color: #656773;

    font-size: 15px;
}

.dashboard-section__link {
    color: #8f76ec;

    font-size: 13px;
    font-weight: 600;
}


/* =========================
   DASHBOARD TOOLS
========================= */

.dashboard-tools {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 14px;
}

.dashboard-tool {
    position: relative;

    min-height: 210px;

    padding: 22px;

    display: flex;
    flex-direction: column;

    border:
        1px solid rgba(255, 255, 255, 0.07);

    border-radius: 17px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.018)
        );

    transition:
        transform 0.22s,
        border-color 0.22s,
        background 0.22s;
}

.dashboard-tool:hover {
    transform: translateY(-4px);

    border-color:
        rgba(135, 104, 255, 0.28);
}

.dashboard-tool--main {
    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(127, 89, 255, 0.16),
            transparent 45%
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.04),
            rgba(255, 255, 255, 0.018)
        );

    border-color:
        rgba(132, 99, 255, 0.22);
}

.dashboard-tool__icon {
    width: 42px;
    height: 42px;

    margin-bottom: 29px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background:
        rgba(120, 86, 255, 0.1);

    color: #a68dff;

    font-size: 17px;
}

.dashboard-tool__content {
    padding-right: 25px;
}

.dashboard-tool__label {
    color: #626471;

    font-size: 11px;

    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.dashboard-tool h3 {
    margin-top: 5px;

    font-size: 15px;
}

.dashboard-tool p {
    margin-top: 8px;

    color: #747681;

    font-size: 13px;
    line-height: 1.55;
}

.dashboard-tool__arrow {
    position: absolute;

    right: 18px;
    bottom: 18px;

    color: #656773;

    transition:
        color 0.2s,
        transform 0.2s;
}

.dashboard-tool:hover .dashboard-tool__arrow {
    transform: translateX(3px);

    color: #a78fff;
}


/* =========================
   STATS
========================= */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 14px;
}

.dashboard-stat {
    padding: 20px;

    border:
        1px solid rgba(255, 255, 255, 0.06);

    border-radius: 15px;

    background:
        rgba(255, 255, 255, 0.02);
}

.dashboard-stat__title {
    display: block;

    margin-bottom: 12px;

    color: #666875;

    font-size: 12px;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard-stat strong {
    display: block;

    font-size: 27px;

    letter-spacing: -0.04em;
}

.dashboard-stat__plan {
    color: #b29cff;
}

.dashboard-stat p {
    margin-top: 5px;

    color: #565864;

    font-size: 16px;
}


/* =========================
   RECENT
========================= */

.recent-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 14px;
}

.recent-card {
    overflow: hidden;

    border:
        1px solid rgba(255, 255, 255, 0.06);

    border-radius: 16px;

    background: #101117;

    transition:
        transform 0.2s,
        border-color 0.2s;
}

.recent-card:hover {
    transform: translateY(-4px);

    border-color:
        rgba(255, 255, 255, 0.11);
}

.recent-card__image {
    position: relative;

    height: 170px;

    display: grid;
    place-items: center;

    overflow: hidden;
}

.recent-card__image--purple {
    background:
        radial-gradient(
            circle at 30% 30%,
            #7548d9,
            transparent 35%
        ),
        #21152f;
}

.recent-card__image--blue {
    background:
        radial-gradient(
            circle at 70% 30%,
            #395ed7,
            transparent 35%
        ),
        #111b38;
}

.recent-card__image--orange {
    background:
        radial-gradient(
            circle at 40% 40%,
            #b86730,
            transparent 35%
        ),
        #2e1c12;
}

.recent-card__image--green {
    background:
        radial-gradient(
            circle at 60% 40%,
            #2b976f,
            transparent 35%
        ),
        #102a22;
}

.recent-card__quality {
    position: absolute;

    top: 10px;
    right: 10px;

    padding: 5px 7px;

    border:
        1px solid rgba(255, 255, 255, 0.1);

    border-radius: 7px;

    background:
        rgba(10, 10, 14, 0.45);

    color: #c8c8cf;

    font-size: 10px;

    backdrop-filter: blur(10px);
}

.recent-card__placeholder {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    border:
        1px solid rgba(255, 255, 255, 0.12);

    border-radius: 13px;

    background:
        rgba(255, 255, 255, 0.05);

    color: rgba(255, 255, 255, 0.7);

    font-size: 11px;
    font-weight: 700;

    backdrop-filter: blur(12px);
}

.recent-card__body {
    padding: 15px;
}

.recent-card__body h3 {
    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 12px;
}

.recent-card__meta {
    margin-top: 7px;

    display: flex;
    justify-content: space-between;

    gap: 10px;

    color: #5d5f6a;

    font-size: 11px;
}


/* =========================
   PROJECTS
========================= */

.project-list {
    overflow: hidden;

    border:
        1px solid rgba(255, 255, 255, 0.06);

    border-radius: 15px;

    background:
        rgba(255, 255, 255, 0.018);
}

.project-row {
    min-height: 69px;

    padding: 11px 16px;

    display: grid;
    grid-template-columns: auto 1fr auto auto;

    align-items: center;

    gap: 14px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.05);

    transition:
        background 0.2s;
}

.project-row:last-child {
    border-bottom: 0;
}

.project-row:hover {
    background:
        rgba(255, 255, 255, 0.025);
}

.project-row__preview {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            rgba(117, 86, 255, 0.25),
            rgba(83, 56, 160, 0.12)
        );

    color: #a990ff;

    font-size: 8px;
    font-weight: 700;
}

.project-row__content {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.project-row__content strong {
    font-size: 11px;
}

.project-row__content span {
    margin-top: 3px;

    color: #60626e;

    font-size: 11px;
}

.project-row__date {
    color: #5d5f6a;

    font-size: 11px;
}

.project-row__arrow {
    color: #5f616c;

    font-size: 13px;
}


/* =========================
   DASHBOARD RESPONSIVE
========================= */

@media (max-width: 1180px) {

    .dashboard-tools {
        grid-template-columns: repeat(2, 1fr);
    }

    .recent-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 900px) {

    .app-layout {
        display: block;
    }

    .sidebar {
        position: static;

        width: 100%;
        height: auto;

        padding: 15px;

        border-right: 0;

        border-bottom:
            1px solid rgba(255, 255, 255, 0.06);

        gap: 14px;
    }

    .sidebar__top {
        display: flex;
        align-items: stretch;
        flex-direction: column;

        gap: 14px;
    }

    .sidebar__logo {
        margin: 0;
    }

    .sidebar__nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
    }

    .sidebar__nav .sidebar__link {
        width: 100%;
    }

    .sidebar__link--account-mobile {
        display: flex;
    }

    .sidebar__bottom {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .sidebar__user,
    .sidebar__credits,
    .sidebar__nav--bottom {
        grid-column: 1 / -1;
    }

    .sidebar__user {
        grid-row: 1;
        border-top: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .sidebar__credits {
        grid-row: 2;
    }

    .sidebar__nav--bottom {
        grid-row: 3;
    }

    .app-main {
        padding: 28px 22px 55px;
    }

}


@media (max-width: 700px) {

    .app-topbar {
        align-items: flex-start;

        flex-direction: column;
    }

    .app-topbar__actions {
        width: 100%;

        justify-content: space-between;
    }

    .dashboard-tools,
    .dashboard-stats,
    .recent-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-tool {
        min-height: 180px;
    }

    .project-row {
        grid-template-columns: auto 1fr auto;
    }

    .project-row__date {
        display: none;
    }

}


@media (max-width: 520px) {

    .app-main {
        padding:
            24px 14px 45px;
    }

    .app-topbar h1 {
        font-size: 24px;
    }

    .topbar-credits {
        display: none;
    }

    .dashboard-section__heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }

}

/* =========================
   CREATE PAGE
========================= */

.create-main {
    padding-top: 34px;
}

.create-topbar {
    max-width: 1500px;

    margin: 0 auto 30px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;
}

.create-topbar h1 {
    font-size: 31px;

    letter-spacing: -0.04em;
}

.create-topbar__description {
    margin-top: 7px;

    color: #696b77;

    font-size: 12px;
}


/* =========================
   WORKSPACE
========================= */

.create-workspace {
    max-width: 1500px;

    margin: 0 auto;

    display: grid;
    grid-template-columns:
        minmax(440px, 0.85fr)
        minmax(500px, 1.15fr);

    gap: 18px;

    align-items: start;
}


/* =========================
   LEFT PANEL
========================= */

.create-panel,
.edit-panel {
    --form-type-micro: 10px;
    --form-type-caption: 12px;
    --form-type-label: 14px;
    --form-type-body: 16px;
    --form-type-heading: 17px;
}

.create-panel {
    overflow: hidden;

    border:
        1px solid rgba(255, 255, 255, 0.065);

    border-radius: 18px;

    background:
        rgba(255, 255, 255, 0.018);
}

.create-panel__section {
    padding: 23px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.055);
}

.create-panel__section:last-child {
    border-bottom: 0;
}

.create-panel__heading {
    margin-bottom: 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.create-panel__heading > div {
    display: flex;
    align-items: center;

    gap: 10px;
}

.create-panel__step {
    width: 27px;
    height: 27px;

    display: grid;
    place-items: center;

    border-radius: 8px;

    background:
        rgba(126, 91, 255, 0.1);

    color: #9f87ff;

    font-size: var(--form-type-micro);
    font-weight: 700;
}

.create-panel__heading h2 {
    font-size: var(--form-type-heading);

    letter-spacing: -0.01em;
}


/* =========================
   PROMPT
========================= */

.prompt-box {
    overflow: hidden;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 13px;

    background: #0c0d12;

    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.prompt-box:focus-within {
    border-color:
        rgba(132, 100, 255, 0.5);

    box-shadow:
        0 0 0 4px rgba(117, 83, 255, 0.06);
}

.prompt-box textarea {
    width: 100%;
    min-height: 135px;

    padding: 15px;

    display: block;

    resize: vertical;

    outline: none;
    border: 0;

    background: transparent;

    color: #e3e3e8;

    font-size: var(--form-type-body);
    line-height: 1.6;
}

.prompt-box textarea::placeholder {
    color: #51535d;
}

.prompt-box__footer {
    min-height: 42px;

    padding: 8px 11px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    border-top:
        1px solid rgba(255, 255, 255, 0.05);
}

.prompt-box__footer > span {
    color: #50525d;

    font-size: var(--form-type-caption);
}

.prompt-helper {
    padding: 6px 8px;

    border-radius: 7px;

    background:
        rgba(123, 89, 255, 0.08);

    color: #9d84ff;

    font-size: var(--form-type-caption);
    font-weight: 600;

    cursor: pointer;
}

.prompt-helper:hover {
    background:
        rgba(123, 89, 255, 0.14);
}


/* =========================
   STYLE OPTIONS
========================= */

.style-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 9px;
}

.style-option {
    padding: 8px;

    display: flex;
    align-items: center;

    gap: 9px;

    border:
        1px solid rgba(255, 255, 255, 0.065);

    border-radius: 11px;

    background: #0e0f15;

    color: #858793;

    font-size: var(--form-type-caption);
    font-weight: 500;

    cursor: pointer;

    transition:
        border-color 0.2s,
        background 0.2s,
        color 0.2s;
}

.style-option:hover {
    border-color:
        rgba(255, 255, 255, 0.12);

    color: #d8d8de;
}

.style-option.active {
    border-color:
        rgba(137, 104, 255, 0.42);

    background:
        rgba(123, 89, 255, 0.075);

    color: #c7b9ff;
}

.style-option__preview {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 8px;

    color: rgba(255, 255, 255, 0.82);

    font-size: var(--form-type-micro);
    font-weight: 700;
}

.style-option__preview--realistic {
    background:
        linear-gradient(
            135deg,
            #5845a5,
            #262044
        );
}

.style-option__preview--cinema {
    background:
        linear-gradient(
            135deg,
            #9c5d34,
            #382117
        );
}

.style-option__preview--3d {
    background:
        linear-gradient(
            135deg,
            #317ba2,
            #173340
        );
}

.style-option__preview--illustration {
    background:
        linear-gradient(
            135deg,
            #b14970,
            #431b2d
        );
}

.style-option__preview--anime {
    background:
        linear-gradient(
            135deg,
            #7652bd,
            #30214c
        );
}

.style-option__preview--ad {
    background:
        linear-gradient(
            135deg,
            #3a906f,
            #183b30
        );
}


/* =========================
   RATIO
========================= */

.ratio-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 9px;
}

.ratio-option {
    min-height: 88px;

    padding: 11px 8px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    border:
        1px solid rgba(255, 255, 255, 0.065);

    border-radius: 11px;

    background: #0e0f15;

    color: #858793;

    cursor: pointer;

    transition:
        border-color 0.2s,
        background 0.2s;
}

.ratio-option:hover {
    border-color:
        rgba(255, 255, 255, 0.12);
}

.ratio-option.active {
    border-color:
        rgba(137, 104, 255, 0.42);

    background:
        rgba(123, 89, 255, 0.075);
}

.ratio-option strong {
    margin-top: 2px;

    color: #d1d1d7;

    font-size: 13px;
}

.ratio-option small {
    color: #5d5f6b;

    font-size: var(--form-type-micro);
}

.ratio-shape {
    display: block;

    border:
        1px solid #777986;

    border-radius: 3px;
}

.ratio-shape--square {
    width: 24px;
    height: 24px;
}

.ratio-shape--portrait {
    width: 20px;
    height: 25px;
}

.ratio-shape--wide {
    width: 31px;
    height: 18px;
}

.ratio-shape--story {
    width: 15px;
    height: 27px;
}

.ratio-option.active .ratio-shape {
    border-color: #9d85ff;

    background:
        rgba(126, 91, 255, 0.12);
}


/* =========================
   QUALITY
========================= */

.quality-options {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.quality-option {
    width: 100%;

    min-height: 67px;

    padding: 13px 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    text-align: left;

    border:
        1px solid rgba(255, 255, 255, 0.065);

    border-radius: 11px;

    background: #0e0f15;

    cursor: pointer;

    transition:
        border-color 0.2s,
        background 0.2s;
}

.quality-option:hover {
    border-color:
        rgba(255, 255, 255, 0.12);
}

.quality-option.active {
    border-color:
        rgba(137, 104, 255, 0.42);

    background:
        rgba(123, 89, 255, 0.075);
}

.quality-option > div:first-child {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.quality-option strong {
    color: #d5d5db;

    font-size: var(--form-type-label);
}

.quality-option span {
    color: #626470;

    font-size: var(--form-type-caption);
}

.quality-option__title {
    display: flex;
    align-items: center;

    gap: 7px;
}

.quality-badge {
    padding: 3px 5px;

    border-radius: 5px;

    background:
        rgba(124, 91, 255, 0.12);

    color: #9f86ff !important;

    font-size: 9px !important;
    font-weight: 600;
}

.quality-option__cost {
    flex-shrink: 0;

    padding: 6px 8px;

    border-radius: 7px;

    background:
        rgba(255, 255, 255, 0.035);

    color: #8d8f9a;

    font-size: var(--form-type-caption);
    font-weight: 600;
}

.quality-option.active .quality-option__cost {
    background:
        rgba(124, 91, 255, 0.11);

    color: #b29fff;
}


/* =========================
   GENERATION SUMMARY
========================= */

.generation-summary {
    padding: 18px;

    background:
        linear-gradient(
            180deg,
            rgba(123, 89, 255, 0.055),
            rgba(123, 89, 255, 0.015)
        );
}

.generation-summary__top {
    margin-bottom: 13px;

    display: flex;
    justify-content: space-between;

    gap: 20px;
}

.generation-summary__top > div {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.generation-summary__top span {
    color: #575965;

    font-size: var(--form-type-micro);

    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.generation-summary__top strong {
    color: #b8b9c1;

    font-size: 13px;
}

.generation-summary__price {
    align-items: flex-end;
}

.generate-button {
    width: 100%;
    min-height: 50px;

    padding: 0 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #7057ff,
            #9d4eff
        );

    color: white;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 12px 32px rgba(107, 75, 229, 0.18);

    transition:
        transform 0.2s,
        box-shadow 0.2s,
        opacity 0.2s;
}

.generate-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 16px 40px rgba(107, 75, 229, 0.28);
}

.generate-button:disabled {
    opacity: 0.5;

    cursor: not-allowed;

    transform: none;
}

.generate-button > span:last-child {
    color: rgba(255, 255, 255, 0.65);

    font-size: 9px;
}

.generation-summary__balance {
    margin-top: 12px;

    color: #92949f;

    text-align: center;

    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.generation-summary__balance strong {
    color: #d2d3da;
    font-weight: 700;
}


/* =========================
   RESULT PANEL
========================= */

.create-result-panel {
    position: sticky;
    top: 25px;

    overflow: hidden;

    border:
        1px solid rgba(255, 255, 255, 0.065);

    border-radius: 18px;

    background:
        rgba(255, 255, 255, 0.018);
}

.create-result-panel__header {
    min-height: 62px;

    padding: 0 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.055);
}

.create-result-panel__header > div {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.create-result-panel__header span {
    color: #575965;

    font-size: 8px;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.create-result-panel__header strong {
    color: #b9bac2;

    font-size: 11px;
}

.result-menu {
    width: 31px;
    height: 31px;

    border-radius: 8px;

    background:
        rgba(255, 255, 255, 0.035);

    color: #777986;

    cursor: pointer;
}


/* =========================
   RESULT CANVAS
========================= */

.result-canvas {
    position: relative;

    min-height: 575px;

    display: grid;
    place-items: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 15%,
            rgba(117, 83, 255, 0.06),
            transparent 35%
        ),
        #0b0c11;
}

.result-canvas::before {
    content: "";

    position: absolute;
    inset: 0;

    opacity: 0.18;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );

    background-size: 32px 32px;

    pointer-events: none;
}

.result-empty {
    position: relative;
    z-index: 2;

    max-width: 290px;

    text-align: center;
}

.result-empty__icon {
    width: 54px;
    height: 54px;

    margin: 0 auto 17px;

    display: grid;
    place-items: center;

    border:
        1px solid rgba(151, 121, 255, 0.15);

    border-radius: 16px;

    background:
        rgba(125, 91, 255, 0.07);

    color: #977cff;

    font-size: 17px;
}

.result-empty h3 {
    font-size: 14px;
}

.result-empty p {
    margin-top: 8px;

    color: #5e606b;

    font-size: 10px;
    line-height: 1.65;
}


/* =========================
   LOADING
========================= */

.result-loading {
    position: relative;
    z-index: 2;

    display: none;
    flex-direction: column;
    align-items: center;

    text-align: center;
}

.result-loading.active {
    display: flex;
}

.result-loading__spinner {
    width: 46px;
    height: 46px;

    margin-bottom: 17px;

    border:
        3px solid rgba(255, 255, 255, 0.06);

    border-top-color: #9479ff;

    border-radius: 50%;

    animation:
        generatorSpin 0.8s linear infinite;
}

.result-loading strong {
    font-size: 12px;
}

.result-loading span {
    margin-top: 5px;

    color: #5c5e69;

    font-size: 9px;
}

.result-error {
    display: none;
    max-width: 360px;
    padding: 28px;

    flex-direction: column;
    align-items: center;
    gap: 10px;

    text-align: center;
    color: #c5c6cf;
}

.result-error.active {
    display: flex;
}

.result-error__icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 110, 134, 0.3);
    border-radius: 50%;

    color: #ff879b;
    background: rgba(255, 87, 115, 0.09);

    font-size: 20px;
    font-weight: 700;
}

.result-error strong {
    color: #f1f1f4;
}

.result-error span {
    color: #7f818d;
    font-size: 13px;
}

@keyframes generatorSpin {

    to {
        transform: rotate(360deg);
    }

}


/* =========================
   GENERATED
========================= */

.result-generated {
    position: absolute;
    inset: 22px;

    z-index: 2;

    display: none;
}

.result-generated.active {
    display: block;
}

.result-generated__visual {
    position: relative;

    width: 100%;
    height: 100%;

    padding: 40px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;

    overflow: hidden;

    border-radius: 15px;

    background:
        radial-gradient(
            circle at 25% 25%,
            rgba(135, 69, 226, 0.75),
            transparent 29%
        ),
        radial-gradient(
            circle at 75% 55%,
            rgba(29, 105, 190, 0.65),
            transparent 31%
        ),
        linear-gradient(
            135deg,
            #171423,
            #0c1520
        );

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.4);
}

.result-generated__image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: contain;

    background: #08090d;
}

.result-generated__visual::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 1;

    background: linear-gradient(
        to top,
        rgba(5, 6, 10, 0.82),
        transparent 48%
    );

    pointer-events: none;
}

.result-generated__glow {
    position: absolute;

    width: 320px;
    height: 320px;

    top: 10%;
    left: 15%;

    border-radius: 50%;

    background: #955aff;

    opacity: 0.12;

    filter: blur(90px);
}

.result-generated__label {
    position: relative;
    z-index: 2;

    margin-bottom: 8px;

    padding: 5px 7px;

    border:
        1px solid rgba(255, 255, 255, 0.12);

    border-radius: 6px;

    background:
        rgba(0, 0, 0, 0.18);

    color: rgba(255, 255, 255, 0.72);

    font-size: 7px;
    font-weight: 700;

    letter-spacing: 0.12em;
}

.result-generated h3 {
    position: relative;
    z-index: 2;

    max-width: 80%;

    font-size: 24px;

    letter-spacing: -0.03em;
}

.result-generated p {
    position: relative;
    z-index: 2;

    max-width: 75%;

    margin-top: 8px;

    color: rgba(255, 255, 255, 0.55);

    font-size: 9px;
    line-height: 1.55;
}


/* =========================
   RESULT ACTIONS
========================= */

.result-actions {
    padding: 12px;

    display: none;
    grid-template-columns: repeat(4, 1fr);

    gap: 7px;

    border-top:
        1px solid rgba(255, 255, 255, 0.055);
}

.result-actions.active {
    display: grid;
}

.result-actions button {
    min-height: 36px;

    padding: 0 8px;

    border:
        1px solid rgba(255, 255, 255, 0.065);

    border-radius: 9px;

    background:
        rgba(255, 255, 255, 0.025);

    color: #7b7d89;

    font-size: 8px;
    font-weight: 500;

    cursor: pointer;

    transition:
        background 0.2s,
        color 0.2s;
}

.result-actions button:hover {
    background:
        rgba(255, 255, 255, 0.055);

    color: #d2d2d8;
}


/* =========================
   RESULT INFO
========================= */

.result-info {
    min-height: 58px;

    padding: 10px 18px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 15px;

    border-top:
        1px solid rgba(255, 255, 255, 0.055);
}

.result-info div {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.result-info span {
    color: #50525d;

    font-size: 7px;

    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.result-info strong {
    color: #8a8c97;

    font-size: 9px;
}


/* =========================
   CREATE RESPONSIVE
========================= */

@media (max-width: 1180px) {

    .create-workspace {
        grid-template-columns: 1fr;
    }

    .create-result-panel {
        position: static;
    }

}


@media (max-width: 700px) {

    .create-topbar {
        align-items: flex-start;

        flex-direction: column;
    }

    .style-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .ratio-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .result-canvas {
        min-height: 440px;
    }

    .result-actions {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 450px) {

    .create-panel__section {
        padding: 17px;
    }

    .style-options {
        grid-template-columns: 1fr 1fr;
    }

    .generation-summary__top {
        flex-direction: column;
    }

    .generation-summary__price {
        align-items: flex-start;
    }

    .result-canvas {
        min-height: 360px;
    }

}

/* =========================
   REGISTER
========================= */

.register-bonus {
    margin-top: 22px;

    padding: 13px 14px;

    display: flex;
    align-items: center;

    gap: 11px;

    border:
        1px solid rgba(133, 101, 255, 0.14);

    border-radius: 11px;

    background:
        rgba(123, 89, 255, 0.055);
}

.register-bonus__icon {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background:
        rgba(123, 89, 255, 0.12);

    color: #a58cff;

    font-size: 12px;
}

.register-bonus > div:last-child {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.register-bonus strong {
    color: #c6b8ff;

    font-size: 11px;
}

.register-bonus span {
    color: #656773;

    font-size: 9px;
}


/* PASSWORD STRENGTH */

.password-strength {
    margin-top: -7px;
}

.password-strength__bars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 5px;
}

.password-strength__bars span {
    height: 3px;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.06);

    transition:
        background 0.2s;
}

.password-strength p {
    margin-top: 7px;

    color: #555762;

    font-size: 9px;
}

.password-strength[data-level="1"]
.password-strength__bars span:nth-child(1) {
    background: #d75959;
}

.password-strength[data-level="2"]
.password-strength__bars span:nth-child(-n+2) {
    background: #d79343;
}

.password-strength[data-level="3"]
.password-strength__bars span:nth-child(-n+3) {
    background: #9980ff;
}

.password-strength[data-level="4"]
.password-strength__bars span:nth-child(-n+4) {
    background: #4ba77c;
}

/* =========================
   EDIT PAGE
========================= */

.edit-main {
    padding-top: 34px;
}

.edit-workspace {
    max-width: 1500px;

    margin: 0 auto;

    display: grid;
    grid-template-columns:
        minmax(420px, 0.82fr)
        minmax(520px, 1.18fr);

    gap: 18px;

    align-items: start;
}

.edit-panel {
    overflow: hidden;

    border:
        1px solid rgba(255, 255, 255, 0.065);

    border-radius: 18px;

    background:
        rgba(255, 255, 255, 0.018);
}


/* =========================
   UPLOAD
========================= */

.upload-zone {
    position: relative;

    min-height: 270px;

    display: block;

    overflow: hidden;

    border:
        1px dashed rgba(255, 255, 255, 0.12);

    border-radius: 14px;

    background:
        #0c0d12;

    cursor: pointer;

    transition:
        border-color 0.2s,
        background 0.2s;
}

.upload-zone:hover,
.upload-zone.dragging {
    border-color:
        rgba(144, 111, 255, 0.55);

    background:
        rgba(119, 86, 255, 0.035);
}

.upload-zone__empty {
    min-height: 270px;

    padding: 30px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.upload-zone__icon {
    width: 50px;
    height: 50px;

    margin-bottom: 16px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    background:
        rgba(126, 91, 255, 0.09);

    color: #a189ff;

    font-size: 18px;
}

.upload-zone__empty strong {
    color: #d2d2d8;

    font-size: 15px;
}

.upload-zone__empty p {
    margin-top: 5px;

    color: #6c6e79;

    font-size: var(--form-type-caption);
}

.upload-zone__empty > span {
    margin-top: 13px;

    color: #4f515b;

    font-size: var(--form-type-micro);
}

.upload-preview {
    position: absolute;
    inset: 0;

    display: none;

    background: #08090d;
}

.upload-preview.active {
    display: block;
}

.upload-preview img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.upload-preview__overlay {
    position: absolute;
    inset: 0;

    padding: 15px;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    background:
        linear-gradient(
            transparent 60%,
            rgba(0, 0, 0, 0.65)
        );

    opacity: 0;

    transition: opacity 0.2s;
}

.upload-preview:hover
.upload-preview__overlay {
    opacity: 1;
}

.upload-preview__overlay button {
    min-height: 34px;

    padding: 0 12px;

    border:
        1px solid rgba(255, 255, 255, 0.12);

    border-radius: 8px;

    background:
        rgba(10, 10, 14, 0.72);

    color: #d0d0d7;

    font-size: 9px;

    cursor: pointer;

    backdrop-filter: blur(10px);
}


/* =========================
   EDIT PRESETS
========================= */

.edit-presets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 8px;
}

.edit-preset {
    min-height: 68px;

    padding: 11px;

    display: flex;
    align-items: center;

    gap: 10px;

    text-align: left;

    border:
        1px solid rgba(255, 255, 255, 0.065);

    border-radius: 11px;

    background: #0e0f15;

    color: #a6a7b0;

    cursor: pointer;

    transition:
        border-color 0.2s,
        background 0.2s,
        transform 0.2s;
}

.edit-preset:hover {
    transform: translateY(-1px);

    border-color:
        rgba(137, 104, 255, 0.28);

    background:
        rgba(123, 89, 255, 0.045);
}

.edit-preset > span {
    width: 35px;
    height: 35px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background:
        rgba(126, 91, 255, 0.08);

    color: #9e86ff;

    font-size: 9px;
    font-weight: 700;
}

.edit-preset strong {
    font-size: var(--form-type-caption);
}


/* =========================
   EDIT RESULT
========================= */

.edit-result-panel {
    position: sticky;
    top: 25px;

    overflow: hidden;

    border:
        1px solid rgba(255, 255, 255, 0.065);

    border-radius: 18px;

    background:
        rgba(255, 255, 255, 0.018);
}

.compare-area {
    position: relative;

    min-height: 615px;

    display: grid;
    place-items: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 10%,
            rgba(120, 86, 255, 0.055),
            transparent 36%
        ),
        #0b0c11;
}

.compare-area::before {
    content: "";

    position: absolute;
    inset: 0;

    opacity: 0.15;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );

    background-size: 32px 32px;
}

.edit-empty-result {
    position: relative;
    z-index: 2;

    max-width: 310px;

    text-align: center;
}

.edit-empty-result h3 {
    font-size: 14px;
}

.edit-empty-result p {
    margin-top: 8px;

    color: #5f616c;

    font-size: 10px;
    line-height: 1.65;
}

.edit-loading {
    position: relative;
    z-index: 3;

    display: none;
    flex-direction: column;
    align-items: center;

    text-align: center;
}

.edit-loading.active {
    display: flex;
}

.edit-loading strong {
    font-size: 12px;
}

.edit-loading span {
    margin-top: 5px;

    color: #5b5d68;

    font-size: 9px;
}

.edit-error {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 4;

    display: none;
    padding: 14px 16px;

    border: 1px solid rgba(255, 110, 134, 0.25);
    border-radius: 11px;

    background: rgba(42, 15, 22, 0.92);
    color: #f1f1f4;
}

.edit-error.active {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.edit-error strong {
    font-size: 12px;
}

.edit-error span {
    color: #c78e98;
    font-size: 10px;
}


/* =========================
   BEFORE / AFTER
========================= */

.compare-grid {
    position: relative;
    z-index: 2;

    width: 100%;

    padding: 20px;

    display: none;
    grid-template-columns: repeat(2, 1fr);

    gap: 12px;
}

.compare-grid.active {
    display: grid;
}

.compare-card {
    min-width: 0;
}

.compare-card__label {
    width: fit-content;

    margin-bottom: 8px;

    padding: 5px 8px;

    border-radius: 7px;

    background:
        rgba(255, 255, 255, 0.05);

    color: #8a8c97;

    font-size: 8px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.compare-card__label--after {
    background:
        rgba(125, 91, 255, 0.1);

    color: #a991ff;
}

.compare-card__image {
    position: relative;

    height: 475px;

    overflow: hidden;

    border:
        1px solid rgba(255, 255, 255, 0.07);

    border-radius: 14px;

    background: #090a0e;
}

.compare-card__image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
}

.compare-card__image--after {
    border-color:
        rgba(137, 104, 255, 0.2);
}

.after-effect {
    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 70% 20%,
            rgba(133, 97, 255, 0.13),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            rgba(73, 119, 255, 0.04),
            rgba(145, 73, 255, 0.06)
        );

    mix-blend-mode: screen;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1180px) {

    .edit-workspace {
        grid-template-columns: 1fr;
    }

    .edit-result-panel {
        position: static;
    }

}

@media (max-width: 700px) {

    .edit-presets {
        grid-template-columns: 1fr;
    }

    .compare-grid {
        grid-template-columns: 1fr;
    }

    .compare-card__image {
        height: 420px;
    }

    .compare-area {
        min-height: 500px;
    }

}

@media (max-width: 450px) {

    .compare-card__image {
        height: 340px;
    }

    .upload-zone,
    .upload-zone__empty {
        min-height: 220px;
    }

}
.auth-message {
    display: none;
    padding: 12px 14px;
    border: 1px solid rgba(255, 90, 90, .35);
    border-radius: 10px;
    color: #ff8e8e;
    background: rgba(255, 70, 70, .08);
}

.auth-message.active { display: block; }
.auth-message--success {
    border-color: rgba(92, 220, 155, .35);
    color: #7ee2ae;
    background: rgba(70, 200, 130, .08);
}
.recent-card__image--generate {
    background: radial-gradient(circle at 30% 30%, #7548d9, transparent 38%), #21152f;
}

.recent-card__image--edit {
    background: radial-gradient(circle at 70% 35%, #2b976f, transparent 38%), #102a22;
}

.recent-card__quality { text-transform: capitalize; }

.recent-card__type {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    background: rgba(10, 10, 14, 0.45);
    color: #eeeef3;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.recent-card__details {
    min-height: 13px;
    margin-top: 5px;
    overflow: hidden;
    color: #777985;
    font-size: 11px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.history-state {
    grid-column: 1 / -1;
    min-height: 170px;
    display: grid;
    place-items: center;
    padding: 30px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: #101117;
    color: #858792;
    font-size: 12px;
    text-align: center;
}

.history-state--error {
    color: #d79797;
    border-color: rgba(215, 100, 100, 0.18);
}
.billing-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    place-items: center;
    padding: 24px;
}
.billing-modal.active { display: grid; }
.billing-modal__backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(4, 5, 8, .78); backdrop-filter: blur(8px); cursor: pointer; }
.billing-modal__dialog {
    position: relative;
    width: min(820px, 100%);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 22px;
    background: #101117;
    box-shadow: 0 30px 100px rgba(0, 0, 0, .5);
    scrollbar-color: #3a3c48 #101117;
}

/* =========================
   CREATE / EDIT RESULT UX
========================= */

.create-result-panel__header span {
    font-size: 11px;
}

.create-result-panel__header strong {
    font-size: 14px;
}

.result-empty h3,
.edit-empty-result h3 {
    font-size: 16px;
}

.result-empty p,
.edit-empty-result p {
    font-size: 13px;
    line-height: 1.65;
}

.result-loading strong,
.edit-loading strong {
    font-size: 15px;
}

.result-loading span,
.edit-loading span {
    font-size: 13px;
    line-height: 1.55;
}

.result-loading__track {
    width: min(220px, 62vw);
    height: 4px;
    margin-top: 18px !important;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
}

.result-loading__track::after {
    content: "";
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, #8d6cff, transparent);
    animation: resultWaiting 1.55s ease-in-out infinite;
}

@keyframes resultWaiting {
    from { transform: translateX(-120%); }
    to { transform: translateX(340%); }
}

.result-error strong,
.edit-error strong {
    font-size: 15px;
    line-height: 1.35;
}

.result-error span,
.edit-error span {
    font-size: 13px;
    line-height: 1.55;
}

.result-generated__visual[data-result-preview],
.compare-card__image--after[data-result-preview] {
    cursor: zoom-in;
}

.result-generated__visual[data-result-preview]:focus-visible,
.compare-card__image--after[data-result-preview]:focus-visible {
    outline: 2px solid #9678ff;
    outline-offset: -3px;
}

.result-actions {
    padding: 14px;
    gap: 9px;
}

.result-actions button,
.result-lightbox__actions button {
    min-height: 46px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.035);
    color: #b8bac5;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color .18s, background .18s, color .18s, transform .18s;
}

.result-actions button > span,
.result-lightbox__actions button > span {
    font-size: 17px;
    line-height: 1;
}

.result-actions button:hover:not(:disabled),
.result-lightbox__actions button:hover:not(:disabled) {
    border-color: rgba(145, 111, 255, 0.42);
    background: rgba(126, 88, 255, 0.12);
    color: #f0ecff;
    transform: translateY(-1px);
}

.result-actions button:active:not(:disabled),
.result-lightbox__actions button:active:not(:disabled) {
    transform: translateY(0);
}

.result-actions button:focus-visible,
.result-lightbox__actions button:focus-visible,
.result-lightbox__close:focus-visible {
    outline: 2px solid #997cff;
    outline-offset: 2px;
}

.result-actions button:disabled,
.result-lightbox__actions button:disabled {
    cursor: not-allowed;
    opacity: .48;
    color: #777985;
}

.result-info {
    min-height: 70px;
    padding-block: 13px;
}

.result-info span {
    font-size: 10px;
}

.result-info strong {
    font-size: 13px;
}

.compare-card__label {
    font-size: 11px;
}

body.result-lightbox-open {
    overflow: hidden;
}

body.result-fullscreen-open {
    overflow: hidden;
    overscroll-behavior: none;
}

.result-lightbox[hidden] {
    display: none;
}

.result-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1300;
    padding: 24px;
    display: grid;
    place-items: center;
    background: rgba(3, 4, 8, .88);
    backdrop-filter: blur(12px);
}

.result-lightbox__dialog {
    width: min(1120px, 100%);
    max-height: calc(100dvh - 48px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 20px;
    background: #101116;
    box-shadow: 0 34px 100px rgba(0, 0, 0, .58);
}

.result-lightbox__header {
    min-height: 68px;
    padding: 12px 14px 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.result-lightbox__header > div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.result-lightbox__header .result-lightbox__header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-lightbox__fullscreen {
    min-height: 42px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 11px;
    background: rgba(255, 255, 255, .04);
    color: #c2c3ca;
    font: inherit;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

.result-lightbox__fullscreen-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: block;
}

.result-lightbox__fullscreen-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.result-lightbox__fullscreen:hover {
    border-color: rgba(145, 111, 255, .4);
    background: rgba(126, 88, 255, .12);
    color: #fff;
}

.result-lightbox__fullscreen:focus-visible,
.result-fullscreen__close:focus-visible,
.result-fullscreen__controls button:focus-visible {
    outline: 2px solid #9f84ff;
    outline-offset: 2px;
}

.result-lightbox__header span {
    color: #777986;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.result-lightbox__header strong {
    overflow: hidden;
    color: #f1f1f4;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-lightbox__close {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 11px;
    background: rgba(255, 255, 255, .04);
    color: #c2c3ca;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    transition: border-color .18s, background .18s, color .18s, transform .18s;
}

.result-lightbox__close::before,
.result-lightbox__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 17px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
}

.result-lightbox__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.result-lightbox__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.result-lightbox__close:hover {
    border-color: rgba(145, 111, 255, .4);
    background: rgba(126, 88, 255, .12);
    color: #fff;
}

.result-lightbox__close:active {
    transform: scale(.96);
}

.result-lightbox__stage {
    min-height: 0;
    padding: 20px;
    display: grid;
    place-items: center;
    overflow: auto;
    background: #08090d;
}

.result-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: calc(100dvh - 190px);
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .45);
}

.result-lightbox__actions {
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

.result-fullscreen[hidden] {
    display: none;
}

.result-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 1400;
    background: #030408;
}

.result-fullscreen__dialog {
    width: 100%;
    height: 100dvh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
}

.result-fullscreen__header {
    min-height: 66px;
    padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: rgba(10, 11, 16, .94);
}

.result-fullscreen__header > div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.result-fullscreen__header strong { color: #f2f2f5; font-size: 15px; }
.result-fullscreen__header span { color: #858793; font-size: 11px; }

.result-fullscreen__close {
    min-height: 42px;
    padding: 0 13px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 11px;
    background: rgba(255, 255, 255, .06);
    color: #e2e2e7;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.result-fullscreen__close span { margin-left: 5px; color: inherit; font-size: 18px; }

.result-fullscreen__stage {
    min-width: 0;
    min-height: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: zoom-in;
}

.result-fullscreen--zoomed .result-fullscreen__stage { cursor: grab; }

.result-fullscreen__image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center;
    will-change: transform;
    -webkit-user-drag: none;
}

.result-fullscreen__controls {
    padding: 10px max(16px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    display: flex;
    justify-content: center;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: rgba(10, 11, 16, .94);
}

.result-fullscreen__controls button {
    min-width: 48px;
    min-height: 44px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 11px;
    background: rgba(255, 255, 255, .055);
    color: #dedee4;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

@media (max-width: 700px) {
    .result-actions,
    .result-lightbox__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .result-lightbox {
        padding: 12px;
        place-items: center;
    }

    .result-lightbox__dialog {
        max-height: calc(100dvh - 24px);
        border-radius: 16px;
    }

    .result-lightbox__header {
        min-height: 60px;
        padding: 9px 9px 9px 15px;
    }

    .result-lightbox__fullscreen {
        width: 42px;
        height: 42px;
        padding: 0;
        gap: 0;
        font-size: 0;
    }

    .result-lightbox__stage {
        padding: 10px;
    }

    .result-lightbox__image {
        max-height: calc(100dvh - 230px);
    }

    .result-fullscreen__header span { display: none; }
}

@media (max-width: 420px) {
    .result-actions button,
    .result-lightbox__actions button {
        min-height: 48px;
        padding-inline: 9px;
        font-size: 12px;
    }

    .result-info {
        gap: 9px;
        padding-inline: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .result-loading__track::after {
        animation: none;
        transform: translateX(70%);
    }
}
.billing-modal__dialog::-webkit-scrollbar { width: 8px; }
.billing-modal__dialog::-webkit-scrollbar-track { background: #101117; }
.billing-modal__dialog::-webkit-scrollbar-thumb { border-radius: 8px; background: #3a3c48; }
.billing-modal__close { position: absolute; top: 15px; right: 17px; border: 0; background: none; color: #8c8e99; font-size: 24px; cursor: pointer; }
.billing-modal__heading { margin-bottom: 22px; text-align: center; }
.billing-modal__heading > span { color: #8d69e8; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.billing-modal__heading h2 { margin-top: 7px; font-size: 24px; }
.billing-modal__heading p { margin-top: 7px; color: #777985; font-size: 11px; }
.billing-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.billing-plan { position: relative; padding: 22px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; background: #15161d; }
.billing-plan--featured { border-color: rgba(123, 86, 220, .55); }
.billing-plan--active { box-shadow: 0 0 0 1px #8d69e8 inset; }
.billing-plan--selected { border-color: #9b7dea; box-shadow: 0 0 0 2px rgba(141, 105, 232, .18); }
.billing-plan--active::after { content: "Активен"; position: absolute; left: 22px; bottom: 7px; color: #8d69e8; font-size: 8px; text-transform: uppercase; }
.billing-plan__badge { position: absolute; top: 10px; right: 10px; color: #a98be9; font-size: 8px; text-transform: uppercase; }
.billing-plan h3 { color: #bbbcc5; font-size: 12px; }
.billing-plan > strong { display: block; margin-top: 14px; font-size: 22px; }
.billing-plan p { margin-top: 5px; color: #777985; font-size: 10px; }
.billing-plan button { width: 100%; margin-top: 20px; padding: 11px; border: 0; border-radius: 10px; background: linear-gradient(135deg, #7952d8, #5232a8); color: white; font: inherit; font-size: 10px; cursor: pointer; }
.billing-plan button:disabled { cursor: wait; opacity: .55; }
.billing-modal__status { min-height: 16px; margin-top: 14px; color: #d79797; font-size: 10px; text-align: center; }
.payment-notice { position: fixed; z-index: 900; right: 22px; bottom: 22px; display: none; max-width: 380px; padding: 15px 18px; border: 1px solid rgba(123, 86, 220, .35); border-radius: 12px; background: #15131e; color: #dedee5; box-shadow: 0 16px 50px rgba(0,0,0,.4); font-size: 11px; }
.payment-notice.active { display: block; }
@media (max-width: 720px) { .billing-plans { grid-template-columns: 1fr; } .billing-modal__dialog { max-height: 90vh; overflow: auto; } }
.legal-page { min-height: 100vh; background: #090a0f; color: #d9dae1; }
.legal-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 16px max(24px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(9,10,15,.88); backdrop-filter: blur(16px); }
.legal-header > a:last-child { color: #9b9da8; font-size: 11px; text-decoration: none; }
.legal-shell { width: min(1180px, calc(100% - 40px)); margin: 42px auto 70px; display: grid; grid-template-columns: 230px minmax(0, 760px); justify-content: center; gap: 52px; }
.legal-shell--single { grid-template-columns: minmax(0, 760px); }
.legal-toc { position: sticky; top: 100px; align-self: start; display: grid; gap: 9px; padding: 18px; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; background: #101117; }
.legal-toc strong { margin-bottom: 5px; color: #f1f1f4; font-size: 11px; }
.legal-toc a { color: #777985; font-size: 10px; line-height: 1.5; text-decoration: none; }
.legal-toc a:hover { color: #a98be9; }
.legal-document { min-width: 0; }
.legal-document__head { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.08); }
.legal-document__head > span { color: #8e69e3; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.legal-document h1 { max-width: 720px; margin-top: 10px; color: #f5f5f7; font-size: clamp(30px, 5vw, 48px); line-height: 1.08; }
.legal-document__head p { margin-top: 14px; color: #777985; font-size: 10px; }
.legal-document section { scroll-margin-top: 100px; margin-top: 34px; }
.legal-document h2 { margin-bottom: 13px; color: #ededf1; font-size: 18px; }
.legal-document p, .legal-document li, .legal-document dd { color: #a0a2ac; font-size: 12px; line-height: 1.85; }
.legal-document p + p { margin-top: 12px; }
.legal-document ul { display: grid; gap: 7px; padding-left: 20px; }
.legal-document a { color: #a98be9; }
.legal-document code { padding: 2px 5px; border-radius: 5px; background: rgba(255,255,255,.06); color: #d8cdf4; }
.legal-note { margin-top: 38px; padding: 17px 19px; border: 1px solid rgba(137,96,231,.2); border-radius: 12px; background: rgba(111,72,203,.08); color: #999ba7; font-size: 10px; line-height: 1.7; }
.legal-footer, .app-legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; padding: 24px; border-top: 1px solid rgba(255,255,255,.06); }
.legal-footer a, .app-legal-links a, .auth-legal-links a, .billing-modal__legal a { color: #777985; font-size: 9px; text-decoration: none; }
.legal-footer a:hover, .app-legal-links a:hover, .auth-legal-links a:hover { color: #aaa0c8; }
.legal-table { display: grid; grid-template-columns: 1fr 1fr 1fr; margin: 16px 0; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; }
.legal-table > div { padding: 12px; border-bottom: 1px solid rgba(255,255,255,.06); color: #b4b5bd; font-size: 11px; }
.requisites-list { display: grid; grid-template-columns: 180px 1fr; gap: 0; margin: 18px 0 28px; border-top: 1px solid rgba(255,255,255,.07); }
.requisites-list dt, .requisites-list dd { margin: 0; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.requisites-list dt { color: #6f717d; font-size: 10px; }
.auth-legal-links { display: flex; justify-content: center; gap: 14px; margin-top: 16px; }
.billing-modal__legal { margin-top: 6px; color: #72747e; font-size: 9px; text-align: center; }
.billing-modal__legal a { color: #a98be9; text-decoration: underline; }
.app-legal-links { margin-top: 30px; }
@media (max-width: 820px) { .legal-shell { grid-template-columns: 1fr; } .legal-toc { position: static; } }
@media (max-width: 520px) { .legal-shell { width: min(100% - 28px, 760px); margin-top: 24px; } .legal-header { padding: 14px; } .legal-table { grid-template-columns: 1fr; } .requisites-list { grid-template-columns: 1fr; } .requisites-list dt { padding-bottom: 2px; border-bottom: 0; } .requisites-list dd { padding-top: 3px; } }

/* =========================
   ADMIN
========================= */

body.modal-open { overflow: hidden; }

[data-admin-only][hidden],
[data-hide-for-admin][hidden] {
    display: none !important;
}

body[data-role-guard="admin-excluded"]:not([data-app-access="allowed"]) .app-layout {
    visibility: hidden;
}

.credit-value--loading {
    min-width: 2.5ch;
    border-radius: 5px;
    background: linear-gradient(100deg, #20212a 25%, #30323d 45%, #20212a 65%);
    background-size: 220% 100%;
    color: transparent !important;
    animation: credit-value-shimmer 1.1s ease-in-out infinite;
}

@keyframes credit-value-shimmer {
    to { background-position-x: -220%; }
}

@media (prefers-reduced-motion: reduce) {
    .credit-value--loading { animation: none; }
}

.account-modal {
    position: fixed;
    inset: 0;
    z-index: 950;
    display: grid;
    place-items: center;
    padding: 20px;
}

.account-modal[hidden] { display: none; }
.account-modal__backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(4, 5, 8, 0.82); backdrop-filter: blur(8px); cursor: pointer; }
.account-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    max-height: min(88vh, 780px);
    overflow-y: auto;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    background: #111219;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}
.account-modal__dialog h2 { margin-top: 5px; font-size: 27px; }
.account-modal__close { position: absolute; top: 14px; right: 16px; padding: 4px 8px; border: 0; background: transparent; color: #777985; font-size: 24px; cursor: pointer; }
.account-form { margin-top: 22px; display: grid; gap: 9px; }
.account-form + .account-form { padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.account-form h3 { margin-bottom: 4px; font-size: 14px; }
.account-form label { color: #8c8e99; font-size: 11px; }
.account-form input,
.account-form select,
.account-form textarea {
    width: 100%;
    min-width: 0;
    padding: 12px 13px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 11px;
    outline: none;
    background: #0b0c11;
    color: #e8e8ed;
    resize: vertical;
}
.account-form input:focus,
.account-form select:focus,
.account-form textarea:focus { border-color: rgba(145, 111, 255, 0.58); }
.account-form input[readonly] { color: #777985; cursor: default; }
.account-form .btn { margin-top: 4px; }
.account-form__message { min-height: 17px; color: #d79797; font-size: 10px; }
.account-form__message--success { color: #78d9a5; }

@media (max-width: 560px) {
    .account-modal { align-items: end; padding: 10px; }
    .account-modal__dialog { max-height: 92vh; padding: 24px 17px; border-radius: 18px; }
    .account-modal__dialog h2 { font-size: 24px; }
}

.admin-page {
    min-height: 100vh;
    background: #090a0f;
}

.sidebar__link--account-mobile {
    display: none;
}

.admin-header {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 72px;
    padding: 14px max(20px, calc((100vw - 1320px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(9, 10, 15, 0.9);
    backdrop-filter: blur(18px);
}

.admin-header__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #9b9da8;
    font-size: 12px;
}

.admin-shell {
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 80px;
}

.admin-verification {
    width: min(100%, 520px);
    margin: 8vh auto 0;
    padding: 34px;
    border: 1px solid rgba(151, 116, 255, 0.2);
    border-radius: 20px;
    background: radial-gradient(circle at 50% 0, rgba(116, 87, 255, 0.13), transparent 52%), #101117;
    text-align: center;
}

.admin-verification h1,
.admin-heading h1 {
    margin-top: 8px;
    font-size: clamp(27px, 4vw, 38px);
    letter-spacing: -0.035em;
}

.admin-verification > p {
    margin: 12px auto 22px;
    color: #858793;
    font-size: 13px;
}

.admin-otp-form {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    text-align: left;
}

.admin-otp-form[hidden] { display: none; }
.admin-otp-form label { grid-column: 1 / -1; color: #a8a9b3; font-size: 11px; }
.admin-otp-form input {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 11px;
    outline: none;
    background: #0b0c11;
    color: white;
    letter-spacing: 0.18em;
}
.admin-otp-form input:focus { border-color: rgba(145, 111, 255, 0.58); }

.admin-message {
    min-height: 20px;
    margin-top: 14px;
    color: #d79898;
    font-size: 11px;
}

.admin-dashboard[hidden],
.admin-verification[hidden] { display: none; }

.admin-heading {
    margin-bottom: 28px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.admin-stats article,
.admin-panel {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
}

.admin-stats span { display: block; color: #6f717d; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.admin-stats strong { display: block; margin-top: 10px; color: #c8baff; font-size: 25px; letter-spacing: -0.03em; }
.admin-stat--action { cursor: pointer; transition: border-color .2s, transform .2s; }
.admin-stat--action:hover, .admin-stat--action:focus { transform: translateY(-2px); border-color: rgba(151, 116, 255, .35); outline: none; }

.admin-panels {
    margin-top: 18px;
    display: grid;
    grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
    gap: 14px;
}

.admin-panel--wide { grid-column: 1 / -1; }
.admin-panel h2 { margin-bottom: 16px; font-size: 15px; }
.admin-plan-list { display: grid; gap: 9px; }
.admin-plan-list div { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.025); color: #858793; font-size: 12px; }
.admin-plan-list strong { color: #c8baff; }

.admin-table-wrap { max-width: 100%; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.admin-table th, .admin-table td { padding: 10px 9px; border-bottom: 1px solid rgba(255, 255, 255, 0.055); text-align: left; font-size: 10px; }
.admin-table th { color: #666875; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.admin-table td { color: #aaaab4; }

.admin-support { margin-top: 18px; }
.admin-support__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.admin-support__heading h2 { margin: 0; font-size: 21px; }
.admin-support__filters { display: flex; gap: 8px; }
.admin-support__filters input,
.admin-support__filters select,
.admin-ticket__controls input,
.admin-ticket__controls select,
.admin-ticket__controls textarea {
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    outline: none;
    background: #0b0c11;
    color: #d2d2d8;
    font: inherit;
    font-size: 10px;
}
.admin-ticket-list { margin-top: 18px; display: grid; gap: 10px; }
.admin-ticket { padding: 16px; border: 1px solid rgba(255, 255, 255, .065); border-radius: 13px; background: rgba(255,255,255,.018); }
.admin-ticket__heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.admin-ticket__heading > div { min-width: 0; display: grid; gap: 3px; }
.admin-ticket__heading strong { font-size: 12px; }
.admin-ticket__heading span { color: #70727e; font-size: 9px; overflow-wrap: anywhere; }
.admin-ticket__category { flex-shrink: 0; padding: 5px 8px; border-radius: 999px; background: rgba(126,91,255,.1); color: #ae9aff !important; }
.admin-ticket__message { margin-top: 13px; color: #b2b3bc; font-size: 11px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-ticket__controls { margin-top: 14px; display: grid; grid-template-columns: 130px 130px minmax(180px, 1fr) auto; align-items: start; gap: 8px; }
.admin-ticket__controls textarea { resize: vertical; }
.admin-ticket__state { grid-column: 1 / -1; min-height: 14px; color: #8d8f9a; font-size: 9px; }
.admin-ticket-empty { padding: 24px 0; color: #737580; font-size: 11px; text-align: center; }

@media (max-width: 900px) {
    .sidebar__link--account-mobile { display: flex; }
    .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-panels { grid-template-columns: 1fr; }
    .admin-panel--wide { grid-column: auto; }
    .admin-support__heading { align-items: flex-start; flex-direction: column; }
    .admin-ticket__controls { grid-template-columns: 1fr 1fr; }
    .admin-ticket__controls textarea { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .admin-header { padding: 12px 14px; }
    .admin-header__actions [data-user-name] { display: none; }
    .admin-shell { width: min(100% - 28px, 1320px); padding-top: 28px; }
    .admin-verification { margin-top: 3vh; padding: 25px 18px; }
    .admin-otp-form { grid-template-columns: 1fr; }
    .admin-otp-form label { grid-column: auto; }
    .admin-heading { align-items: flex-start; flex-direction: column; }
    .admin-stats { grid-template-columns: 1fr; }
    .admin-support__filters { width: 100%; flex-direction: column; }
    .admin-ticket__heading { flex-direction: column; }
    .admin-ticket__controls { grid-template-columns: 1fr; }
    .admin-ticket__controls textarea, .admin-ticket__state { grid-column: auto; }
}

/* =========================
   MODAL DESIGN SYSTEM
========================= */

.account-modal,
.billing-modal {
    display: grid;
    place-items: center;
    padding: 22px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.account-modal[hidden],
.billing-modal[hidden] {
    display: none !important;
}

.account-modal.active,
.billing-modal.active {
    display: grid;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.account-modal__backdrop,
.billing-modal__backdrop {
    opacity: 0;
    background: rgba(3, 4, 9, 0.82);
    transition: opacity 180ms ease;
}

.account-modal.active .account-modal__backdrop,
.billing-modal.active .billing-modal__backdrop {
    opacity: 1;
}

.account-modal__dialog,
.billing-modal__dialog {
    z-index: 1;
    color: #ececf2;
    background:
        radial-gradient(circle at 50% 0, rgba(120, 82, 225, 0.12), transparent 38%),
        #111219;
    border: 1px solid rgba(174, 147, 255, 0.16);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.62);
    opacity: 0;
    transform: translateY(12px) scale(0.975);
    transition: opacity 190ms ease, transform 190ms ease;
}

.account-modal.active .account-modal__dialog,
.billing-modal.active .billing-modal__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.account-modal__dialog,
.billing-modal__dialog {
    width: min(100%, 760px);
    max-height: min(88dvh, 790px);
    padding: 30px;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 20px;
    scrollbar-color: #454052 #111219;
}

.account-modal__close,
.billing-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    width: 40px;
    height: 40px;
    min-height: 40px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #858793;
    background: rgba(255, 255, 255, 0.025);
    font-family: Arial, sans-serif;
    font-size: 24px;
    line-height: 1;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 120ms ease;
}

.account-modal__dialog > .section-heading__eyebrow,
.account-modal__dialog > h2 {
    padding-right: 52px;
}

.account-modal__dialog > h2 {
    margin-top: 7px;
}

.billing-modal__heading {
    margin-bottom: 24px;
    padding-inline: 48px;
}

.billing-modal__heading p {
    font-size: 13px;
    line-height: 1.5;
}

.billing-modal__legal {
    margin-top: 16px;
    color: #999ba7;
    font-size: 13px;
    line-height: 1.6;
}

.billing-modal__legal a {
    font-size: inherit;
}

.account-modal__close:hover,
.billing-modal__close:hover {
    color: #f0eef8;
    background: rgba(145, 105, 232, 0.12);
    border-color: rgba(164, 132, 244, 0.18);
}

.account-modal__close:active,
.billing-modal__close:active {
    transform: scale(0.94);
}

.account-form {
    gap: 10px;
}

.account-form label {
    color: #a2a3af;
    font-size: 11px;
    font-weight: 600;
}

.account-form input,
.account-form select,
.account-form textarea {
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: #0b0c12;
    color: #ededf2;
    caret-color: #a98be9;
    font: inherit;
    font-size: 13px;
    line-height: 1.45;
    color-scheme: dark;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.account-form textarea {
    min-height: 140px;
}

.account-form select {
    cursor: pointer;
}

.account-form select option {
    color: #ededf2;
    background: #111219;
}

.account-form input:hover,
.account-form select:hover,
.account-form textarea:hover {
    border-color: rgba(169, 139, 233, 0.26);
    background: #0d0e15;
}

.account-form input:focus,
.account-form select:focus,
.account-form textarea:focus {
    border-color: rgba(157, 119, 239, 0.72);
    box-shadow: 0 0 0 3px rgba(132, 91, 225, 0.13);
}

.account-form input[readonly] {
    color: #8f909b;
    background: #0d0e14;
}

.account-form .btn,
.billing-plan button {
    min-height: 44px;
    border: 1px solid rgba(177, 148, 255, 0.18);
    box-shadow: 0 9px 24px rgba(73, 42, 145, 0.18);
    transition: filter 160ms ease, transform 120ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.account-form .btn:hover:not(:disabled),
.billing-plan button:hover:not(:disabled) {
    filter: brightness(1.1);
    box-shadow: 0 12px 30px rgba(87, 51, 168, 0.28);
}

.account-form .btn:active:not(:disabled),
.billing-plan button:active:not(:disabled) {
    transform: translateY(1px) scale(0.99);
}

.account-form .btn:disabled,
.billing-plan button:disabled {
    cursor: wait;
    opacity: 0.58;
    filter: saturate(0.7);
}

.account-form__message,
.billing-modal__status {
    min-height: 22px;
    margin-top: 7px;
    color: #a7a8b2;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.account-form__message--error {
    color: #ff7c88;
}

.account-form__message--success {
    color: #72d89b;
}

.billing-plan {
    overflow: hidden;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)), #14151c;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.billing-plan:hover {
    transform: translateY(-2px);
    border-color: rgba(169, 139, 233, 0.3);
    background: linear-gradient(155deg, rgba(135, 92, 230, 0.08), rgba(255, 255, 255, 0.012)), #14151c;
}

.billing-plan--featured {
    background: linear-gradient(155deg, rgba(126, 84, 224, 0.13), rgba(255, 255, 255, 0.015)), #15151e;
}

.sidebar__credits a,
.sidebar__nav--bottom .sidebar__link {
    appearance: none;
    -webkit-appearance: none;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 10px;
    background: #111219;
    color: #92949f;
    font: inherit;
    font-size: var(--sidebar-profile-label-size);
    font-weight: 500;
    line-height: 1;
    box-shadow: none;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease, filter 160ms ease, transform 120ms ease;
}

.sidebar__credits a {
    width: 100%;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar__credits a:hover,
.sidebar__nav--bottom .sidebar__link:hover {
    border-color: rgba(151, 116, 255, 0.24);
    background: rgba(126, 91, 255, 0.1);
    color: #ded6ff;
    filter: brightness(1.1);
}

.sidebar__credits a:active,
.sidebar__nav--bottom .sidebar__link:active {
    transform: translateY(1px);
}

.sidebar__credits a:focus-visible,
.sidebar__nav--bottom .sidebar__link:focus-visible,
.account-modal__close:focus-visible,
.billing-modal__close:focus-visible,
.account-form :is(input, select, textarea, button):focus-visible,
.billing-plan button:focus-visible {
    outline: 2px solid rgba(171, 139, 247, 0.82);
    outline-offset: 2px;
}

@media (max-width: 720px) {
    .account-modal,
    .billing-modal {
        place-items: center;
        padding: 14px;
    }

    .account-modal__dialog,
    .billing-modal__dialog {
        width: 100%;
        max-height: calc(100dvh - 28px);
        padding: 26px 18px;
        border-radius: 18px;
    }

    .billing-modal__heading {
        padding-inline: 38px;
    }

    .billing-modal__heading h2,
    .account-modal__dialog h2 {
        font-size: 23px;
    }

    .billing-plans {
        grid-template-columns: 1fr;
    }

    .billing-plan {
        padding: 20px;
    }

    .account-form .btn,
    .billing-plan button {
        min-height: 44px;
    }

    .account-modal__close,
    .billing-modal__close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        min-height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .account-modal,
    .billing-modal,
    .account-modal__backdrop,
    .billing-modal__backdrop,
    .account-modal__dialog,
    .billing-modal__dialog,
    .billing-plan,
    .sidebar__credits a,
    .sidebar__nav--bottom .sidebar__link,
    .account-form .btn,
    .billing-plan button {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* =========================
   LEGAL DOCUMENTS — READABILITY
========================= */

.legal-header > a:last-child {
    min-height: 44px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    color: #b0b1bb;
    font-size: 14px;
    line-height: 1.4;
}

.legal-shell {
    width: min(1240px, calc(100% - 48px));
    margin: 48px auto 76px;
    grid-template-columns: 260px minmax(0, 820px);
    gap: 56px;
}

.legal-shell--single {
    grid-template-columns: minmax(0, 820px);
}

.legal-toc {
    top: 98px;
    gap: 4px;
    padding: 20px;
}

.legal-toc strong {
    margin: 0 10px 10px;
    color: #ececf1;
    font-size: 15px;
    line-height: 1.4;
}

.legal-toc a {
    min-height: 42px;
    padding: 9px 10px;
    display: flex;
    align-items: center;
    border-radius: 9px;
    color: #aeb0ba;
    font-size: 14.5px;
    line-height: 1.45;
    transition: color 160ms ease, background 160ms ease;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
    color: #e2d9ff;
    background: rgba(126, 91, 255, 0.1);
}

.legal-document {
    min-width: 0;
}

.legal-document__head {
    margin-bottom: 42px;
    padding-bottom: 32px;
}

.legal-document__head > span {
    color: #a989f0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.legal-document h1 {
    max-width: 820px;
    margin-top: 12px;
    font-size: clamp(34px, 4.4vw, 48px);
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.legal-document__head p {
    margin-top: 17px;
    color: #a2a4ae;
    font-size: 14px;
    line-height: 1.55;
}

.legal-document section {
    margin-top: 42px;
}

.legal-document h2 {
    margin-bottom: 16px;
    color: #f0f0f4;
    font-size: 20px;
    line-height: 1.35;
}

.legal-document h3 {
    margin: 26px 0 12px;
    color: #dedee5;
    font-size: 18px;
    line-height: 1.4;
}

.legal-document p,
.legal-document li,
.legal-document dd {
    color: #b9bbc5;
    font-size: 16px;
    line-height: 1.7;
}

.legal-document p + p {
    margin-top: 18px;
}

.legal-document ul,
.legal-document ol {
    gap: 10px;
    padding-left: 24px;
}

.legal-document a {
    color: #b89cff;
    font-size: inherit;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(184, 156, 255, 0.5);
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.legal-document a:hover {
    color: #d1c0ff;
    text-decoration-color: currentColor;
}

.legal-note {
    margin-top: 42px;
    padding: 19px 21px;
    color: #aaacb6;
    font-size: 14px;
    line-height: 1.65;
}

.legal-table {
    margin: 20px 0 24px;
}

.legal-table > div {
    padding: 14px;
    color: #c4c5cc;
    font-size: 15px;
    line-height: 1.5;
}

.requisites-list {
    grid-template-columns: 200px minmax(0, 1fr);
    margin: 22px 0 32px;
}

.requisites-list dt,
.requisites-list dd {
    padding: 16px 0;
}

.requisites-list dt {
    color: #9698a3;
    font-size: 14px;
    line-height: 1.55;
}

.requisites-list dd {
    overflow-wrap: anywhere;
}

.legal-footer {
    gap: 12px 22px;
    padding: 28px 20px;
}

.legal-footer a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    color: #999ba6;
    font-size: 14px;
    line-height: 1.4;
}

.legal-footer a:hover {
    color: #c7b7ed;
}

@media (max-width: 820px) {
    .legal-shell,
    .legal-shell--single {
        width: min(100% - 32px, 820px);
        margin: 26px auto 54px;
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .legal-toc {
        position: static;
        padding: 16px;
    }

    .legal-toc strong {
        font-size: 15px;
    }

    .legal-toc a {
        min-height: 44px;
        font-size: 14.5px;
    }

    .legal-document__head {
        margin-bottom: 34px;
        padding-bottom: 26px;
    }

    .legal-document h1 {
        font-size: clamp(30px, 9vw, 38px);
        line-height: 1.15;
    }

    .legal-document section {
        margin-top: 34px;
    }

    .legal-document h2 {
        font-size: 19px;
    }

    .legal-document h3 {
        font-size: 17px;
    }

    .legal-document p,
    .legal-document li,
    .legal-document dd {
        font-size: 15.5px;
        line-height: 1.7;
    }

    .legal-document p + p {
        margin-top: 16px;
    }

    .legal-table {
        grid-template-columns: 1fr;
    }

    .requisites-list {
        grid-template-columns: 1fr;
    }

    .requisites-list dt {
        padding: 15px 0 3px;
        border-bottom: 0;
    }

    .requisites-list dd {
        padding: 3px 0 15px;
    }

    .legal-note {
        margin-top: 34px;
        font-size: 14px;
    }

    .legal-footer {
        padding-inline: 16px;
    }
}

@media (max-width: 420px) {
    .legal-header {
        padding: 12px 14px;
    }

    .legal-shell,
    .legal-shell--single {
        width: calc(100% - 28px);
    }

    .legal-document__head > span,
    .legal-document__head p {
        font-size: 14px;
    }
}

/* =========================
   AUTH FOOTER READABILITY
========================= */

.auth-card__footer {
    margin-top: 32px;
    padding-top: 27px;
}

.auth-card__footer p {
    color: #a0a2ad;
    font-size: 16px;
    line-height: 1.55;
}

.auth-card__footer a {
    color: #b49cff;
    font-size: inherit;
    font-weight: 700;
    text-decoration: none;
    text-underline-offset: 3px;
}

.auth-card__footer a:hover,
.auth-card__footer a:focus-visible {
    color: #d0c1ff;
    text-decoration: underline;
}

.auth-legal-links {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
}

.auth-legal-links a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    color: #999ba7;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    text-decoration: none;
}

.auth-legal-links a:hover,
.auth-legal-links a:focus-visible {
    color: #baa5ee;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-bottom-text {
    max-width: 470px;
    margin-top: 30px;
    padding-inline: 12px;
    color: #82848f;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .auth-card__footer {
        margin-top: 29px;
        padding-top: 24px;
    }

    .auth-card__footer p {
        font-size: 15.5px;
    }

    .auth-legal-links {
        margin-top: 20px;
        gap: 8px 16px;
    }

    .auth-legal-links a {
        min-height: 38px;
        font-size: 13.5px;
    }

    .auth-bottom-text {
        margin-top: 26px;
        font-size: 13.5px;
    }
}

/* =========================
   ADMIN READABILITY & SESSION UX
========================= */

.admin-shell {
    width: min(1440px, calc(100% - 48px));
}

.admin-bootstrap {
    width: min(100%, 520px);
    min-height: 210px;
    margin: 10vh auto 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 18px;
    color: #a4a5af;
    font-size: 15px;
    line-height: 1.5;
}

.admin-bootstrap[hidden] {
    display: none;
}

#requestAdminOtp[hidden] {
    display: none;
}

.admin-bootstrap__spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(157, 119, 239, 0.18);
    border-top-color: #9d77ef;
    border-radius: 50%;
    animation: admin-spin 800ms linear infinite;
}

@keyframes admin-spin {
    to { transform: rotate(360deg); }
}

.admin-header__actions {
    font-size: 14px;
}

.admin-page .btn {
    min-height: 42px;
    font-size: 14px;
}

.admin-verification > p {
    font-size: 15px;
    line-height: 1.6;
}

.admin-otp-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.admin-otp-form__sent {
    margin: 0;
    color: #75d99e;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}

.admin-otp-form label {
    grid-column: auto;
    font-size: 14px;
}

.admin-otp-form input {
    min-height: 48px;
    font-size: 17px;
}

.admin-otp-form__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 1fr);
    gap: 10px;
}

.admin-otp-form__actions .btn {
    white-space: nowrap;
}

.admin-message {
    font-size: 14px;
    line-height: 1.55;
}

.admin-stats {
    gap: 16px;
}

.admin-stats article,
.admin-panel {
    padding: 22px;
}

.admin-panel {
    min-width: 0;
}

.admin-stats span {
    color: #92949f;
    font-size: 13.5px;
    line-height: 1.45;
}

.admin-stats strong {
    margin-top: 12px;
    font-size: 30px;
    line-height: 1.15;
}

.admin-panels,
.admin-support {
    margin-top: 22px;
}

.admin-panels {
    gap: 16px;
}

.admin-panel h2,
.admin-support__heading h2 {
    margin-bottom: 18px;
    font-size: 20px;
    line-height: 1.35;
}

.admin-support__heading h2 {
    margin-bottom: 0;
}

.admin-plan-list {
    gap: 10px;
}

.admin-plan-list div {
    padding: 13px 14px;
    font-size: 14.5px;
    line-height: 1.5;
}

.admin-table th,
.admin-table td {
    padding: 14px 12px;
    line-height: 1.5;
}

.admin-table th {
    font-size: 13px;
}

.admin-table td {
    font-size: 14.5px;
}

.admin-support__filters {
    gap: 10px;
}

.admin-support__filters input,
.admin-support__filters select,
.admin-ticket__controls input,
.admin-ticket__controls select,
.admin-ticket__controls textarea {
    min-height: 44px;
    padding: 11px 12px;
    font-size: 14px;
    line-height: 1.5;
}

.admin-ticket-list {
    margin-top: 22px;
    gap: 14px;
}

.admin-ticket {
    padding: 20px;
}

.admin-ticket__heading > div {
    gap: 5px;
}

.admin-ticket__heading strong {
    font-size: 15px;
    line-height: 1.45;
}

.admin-ticket__heading span {
    font-size: 14px;
    line-height: 1.45;
}

.admin-ticket__category {
    padding: 7px 10px;
    font-size: 13px !important;
}

.admin-ticket__message {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.65;
}

.admin-ticket__controls {
    margin-top: 17px;
    grid-template-columns: 150px 150px minmax(220px, 1fr) auto;
    gap: 10px;
}

.admin-ticket__controls textarea {
    min-height: 74px;
}

.admin-ticket__state,
.admin-ticket-empty {
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .admin-ticket__controls {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .admin-shell {
        width: min(100% - 28px, 1440px);
    }

    .admin-stats article,
    .admin-panel {
        padding: 18px;
    }

    .admin-stats span {
        font-size: 13px;
    }

    .admin-stats strong {
        font-size: 27px;
    }

    .admin-panel h2,
    .admin-support__heading h2 {
        font-size: 18px;
    }

    .admin-table th {
        font-size: 12.5px;
    }

    .admin-table td {
        font-size: 14px;
    }

    .admin-ticket {
        padding: 17px;
    }

    .admin-ticket__message {
        font-size: 14.5px;
    }

    .admin-ticket__controls,
    .admin-otp-form__actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .admin-bootstrap__spinner {
        animation-duration: 1.8s;
    }
}

.auth-recovery-state {
    position: fixed;
    z-index: 1200;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 520px);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: #171821;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    text-align: center;
}

.auth-recovery-state[hidden] { display: none; }
.auth-recovery-state p { margin: 0 0 18px; }
.auth-recovery-state .btn + .btn { margin-left: 10px; }