/* =========================
   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;
}


/* =========================
   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 .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) {

    .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 {
    display: none;
}

.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-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;
}

.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;

    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: 15px;
}

.sidebar__credits {
    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: 11px;
}

.sidebar__credits-top span {
    color: #7c7e89;
}

.sidebar__credits-top strong {
    color: #c6b8ff;

    font-size: 13px;
}

.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: 10px;
}

.sidebar__credits a {
    display: inline-block;

    margin-top: 10px;

    color: #9b82ff;

    font-size: 11px;
    font-weight: 600;
}

.sidebar__nav--bottom {
    padding-top: 3px;
}

.sidebar__user {
    min-height: 58px;

    padding: 8px;

    display: grid;
    grid-template-columns: auto 1fr auto;

    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: 12px;
}

.sidebar__user-info span {
    margin-top: 1px;

    color: #666875;

    font-size: 10px;
}

.sidebar__user-menu {
    padding: 6px;

    background: transparent;

    color: #656773;

    cursor: pointer;
}


/* =========================
   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: 12px;
}

.dashboard-section__link {
    color: #8f76ec;

    font-size: 11px;
    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: 9px;

    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: 11px;
    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(4, 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: 10px;

    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: 10px;
}


/* =========================
   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: 8px;

    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: 9px;
}


/* =========================
   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: 9px;
}

.project-row__date {
    color: #5d5f6a;

    font-size: 9px;
}

.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);
    }

    .sidebar__top {
        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 20px;
    }

    .sidebar__logo {
        margin: 0;
    }

    .sidebar__nav {
        flex-direction: row;

        overflow-x: auto;
    }

    .sidebar__nav .sidebar__link {
        flex-shrink: 0;
    }

    .sidebar__bottom {
        display: none;
    }

    .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 {
    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: 8px;
    font-weight: 700;
}

.create-panel__heading h2 {
    font-size: 14px;

    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: 13px;
    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: 9px;
}

.prompt-helper {
    padding: 6px 8px;

    border-radius: 7px;

    background:
        rgba(123, 89, 255, 0.08);

    color: #9d84ff;

    font-size: 9px;
    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: 10px;
    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: 8px;
    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: 10px;
}

.ratio-option small {
    color: #5d5f6b;

    font-size: 8px;
}

.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: 11px;
}

.quality-option span {
    color: #626470;

    font-size: 9px;
}

.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: 7px !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: 9px;
    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: 8px;

    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.generation-summary__top strong {
    color: #b8b9c1;

    font-size: 10px;
}

.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: 9px;

    color: #565864;

    text-align: center;

    font-size: 8px;
}

.generation-summary__balance strong {
    color: #898b96;
}


/* =========================
   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: 12px;
}

.upload-zone__empty p {
    margin-top: 5px;

    color: #6c6e79;

    font-size: 10px;
}

.upload-zone__empty > span {
    margin-top: 13px;

    color: #4f515b;

    font-size: 8px;
}

.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: 7px;
    font-weight: 700;
}

.edit-preset strong {
    font-size: 9px;
}


/* =========================
   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: 8px;
    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: 9px;
    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; background: rgba(4, 5, 8, .78); backdrop-filter: blur(8px); }
.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);
}
.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__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; } }
