:root {
    --dark-950: #061800;
    --dark-900: #092100;
    --dark-800: #123000;
    --dark-700: #1b3d0d;
    --glass: rgba(16, 45, 9, 0.62);
    --glass-strong: rgba(22, 58, 13, 0.82);
    --border: rgba(170, 255, 84, 0.22);
    --lime: #9dff3f;
    --lime-2: #6eea19;
    --yellow: #ffd900;
    --gold: #d99b00;
    --white: #ffffff;
    --muted: rgba(255, 255, 255, 0.62);
    --soft: rgba(255, 255, 255, 0.12);
    --danger: #ff6b6b;
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--dark-950);
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--white);
    background:
        radial-gradient(circle at 15% 8%, rgba(157, 255, 63, 0.17), transparent 24rem),
        radial-gradient(circle at 85% 20%, rgba(255, 217, 0, 0.09), transparent 24rem),
        linear-gradient(135deg, var(--dark-950), var(--dark-900) 48%, #041100);
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: -20%;
    z-index: -2;
    pointer-events: none;
}

body::before {
    background:
        linear-gradient(110deg, transparent 14%, rgba(121, 255, 42, 0.18) 18%, transparent 25%),
        linear-gradient(118deg, transparent 36%, rgba(70, 255, 79, 0.13) 41%, transparent 47%),
        linear-gradient(128deg, transparent 58%, rgba(255, 217, 0, 0.08) 62%, transparent 68%);
    filter: blur(16px);
    animation: auroraFlow 13s ease-in-out infinite alternate;
}

body::after {
    z-index: -3;
    opacity: 0.45;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px),
        radial-gradient(circle, rgba(157,255,63,0.08) 1px, transparent 1px);
    background-position: 0 0, 28px 28px;
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, transparent, black 12%, black 80%, transparent);
}

@keyframes auroraFlow {
    from { transform: translate3d(-3%, -2%, 0) rotate(-1deg) scale(1.02); }
    to { transform: translate3d(4%, 3%, 0) rotate(1deg) scale(1.08); }
}

.page-shell {
    width: min(1180px, calc(100% - 36px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 38px 0 52px;
    display: flex;
    flex-direction: column;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
    letter-spacing: -0.06em;
}

.brand-logo {
    width: 100%;
    height: 80px;
    object-fit: contain;
    display: block;
}

.header-link,
.header-email {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-weight: 700;
    transition: color .25s ease, transform .25s ease;
}

.header-link:hover,
.header-email:hover {
    color: var(--lime);
    transform: translateY(-1px);
}

.hero {
    flex: 1;
    width: 100%;
    display: grid;
    place-items: center;
    padding: 54px 0 34px;
}

.hero-inner {
    width: min(720px, 100%);
    text-align: center;
    animation: riseIn .8s ease both;
}

.hero-inner.wide {
    width: min(1040px, 100%);
}

@keyframes riseIn {
    from { opacity: 0; transform: translateY(20px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    margin: 0 0 18px;
    border: 1px solid rgba(157,255,63,.2);
    border-radius: 999px;
    background: rgba(157,255,63,.08);
    color: var(--lime);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 14px var(--lime);
}

h1 {
    margin: 0;
    font-size: clamp(2.55rem, 6vw, 4.8rem);
    line-height: .92;
    letter-spacing: -0.085em;
    font-weight: 1000;
    text-shadow: 0 14px 40px rgba(0,0,0,.45);
}

.subtitle {
    margin: 18px auto 0;
    max-width: 560px;
    color: var(--muted);
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.65;
}

.form-card,
.payment-card {
    position: relative;
    width: min(540px, 100%);
    margin: 44px auto 0;
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(28,67,14,.64), rgba(5,21,0,.72));
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.form-card::before,
.payment-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(110deg, transparent 22%, rgba(157,255,63,.35), transparent 42%);
    opacity: .26;
    animation: borderSweep 4s linear infinite;
    z-index: -1;
}

@keyframes borderSweep {
    from { transform: translateX(-70%); }
    to { transform: translateX(70%); }
}

.field {
    position: relative;
    text-align: left;
    margin-bottom: 24px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255,255,255,.6);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .22em;
}

.field input {
    width: 100%;
    border: 0;
    border-bottom: 2px solid rgba(255,255,255,.17);
    outline: 0;
    color: var(--white);
    background: transparent;
    padding: 11px 0 14px;
    font-size: 1.05rem;
    letter-spacing: -.02em;
    transition: border-color .25s ease, filter .25s ease;
}

.field input::placeholder {
    color: rgba(255,255,255,.32);
}

.field input:focus {
    border-color: var(--lime);
    filter: drop-shadow(0 8px 18px rgba(157,255,63,.15));
}

.cta-btn,
.select-btn,
.modal-btn,
.btn-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 1000;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .08em;
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.cta-btn {
    min-height: 64px;
    margin-top: 10px;
    color: #102400;
    background: linear-gradient(135deg, var(--lime), #b8ff59 45%, #72ee1b);
    box-shadow: 0 18px 45px rgba(121,255,42,.25);
    font-size: .95rem;
    animation: softPulse 2.6s ease-in-out infinite;
}

.cta-btn:hover,
.select-btn:hover,
.modal-btn:hover,
.btn-close:hover {
    transform: translateY(-3px);
    filter: saturate(1.1);
}

.cta-btn:active,
.select-btn:active,
.modal-btn:active,
.btn-close:active {
    transform: translateY(0) scale(.99);
}

.cta-btn:disabled,
.modal-btn:disabled {
    cursor: wait;
    opacity: .7;
    transform: none;
}

@keyframes softPulse {
    0%, 100% { box-shadow: 0 18px 45px rgba(121,255,42,.22); }
    50% { box-shadow: 0 20px 62px rgba(121,255,42,.38); }
}

.arrow {
    font-size: 1.45rem;
    line-height: 1;
    transition: transform .25s ease;
}

.cta-btn:hover .arrow,
.select-btn:hover .arrow {
    transform: translateX(5px);
}

.helper-row {
    margin-top: 26px;
    color: rgba(255,255,255,.57);
    font-size: .95rem;
}

.helper-row a,
.text-link,
.support-text a {
    color: var(--lime);
    font-weight: 900;
    text-decoration: none;
    border-bottom: 1px solid rgba(157,255,63,.35);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-top: 24px;
    color: rgba(255,255,255,.34);
    font-size: .88rem;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--lime);
}

.support-text {
    margin-top: auto;
    padding: 18px 20px;
    border-radius: 12px;
    background: rgba(0,0,0,.22);
    color: rgba(255,255,255,.58);
    text-align: center;
    font-size: .95rem;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 44px;
    text-align: left;
}

.package-card {
    position: relative;
    min-height: 500px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: var(--radius-lg);
    background: rgba(31, 61, 20, .74);
    overflow: hidden;
    box-shadow: 0 24px 65px rgba(0,0,0,.32);
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.package-card:hover {
    transform: translateY(-8px);
    border-color: rgba(157,255,63,.45);
    box-shadow: 0 34px 90px rgba(0,0,0,.46), 0 0 0 1px rgba(157,255,63,.16);
}

.package-card.featured {
    border-color: rgba(255,217,0,.88);
    box-shadow: 0 34px 90px rgba(0,0,0,.45), 0 0 32px rgba(255,217,0,.08);
}

.package-card.featured::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    border: 2px solid rgba(255,217,0,.7);
}

.package-top {
    position: relative;
    padding: 31px 30px 27px;
    text-align: center;
    min-height: 155px;
    background: rgba(255,255,255,.05);
}

.featured .package-top {
    color: var(--dark-900);
    background: linear-gradient(135deg, #ffe100, #ffbc23 46%, #cb8900);
}

.badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 7px 11px;
    border-radius: 7px;
    color: #ffe100;
    background: #061300;
    font-size: .65rem;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.package-name {
    margin: 0 0 14px;
    font-size: clamp(1.18rem, 2vw, 1.55rem);
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.package-price {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 2.85rem);
    line-height: 1;
    letter-spacing: -.06em;
    font-weight: 1000;
}

.package-type {
    margin: 20px 0 0;
    font-weight: 800;
    color: rgba(255,255,255,.74);
}

.featured .package-type {
    color: #163000;
}

.package-body {
    padding: 28px 28px 34px;
}

.feature-list {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: rgba(255,255,255,.82);
    font-size: .98rem;
}

.feature-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-dot {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    color: #0b2300;
    background: var(--lime);
    font-size: .78rem;
    font-weight: 1000;
    box-shadow: 0 0 14px rgba(157,255,63,.25);
}

.featured .icon-dot {
    background: var(--yellow);
}

.feature-value {
    white-space: nowrap;
    color: rgba(255,255,255,.88);
    font-weight: 1000;
}

.locked {
    opacity: .48;
}

.package-bottom {
    margin-top: 28px;
    padding-top: 26px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.select-btn {
    min-height: 57px;
    color: #102400;
    background: var(--white);
    box-shadow: 0 17px 36px rgba(0,0,0,.18);
}

.featured .select-btn {
    background: linear-gradient(135deg, var(--yellow), #ffbd24 50%, #d79300);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    color: rgba(255,255,255,.62);
    text-decoration: none;
    font-weight: 800;
}

.back-link:hover {
    color: var(--lime);
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
}

.modal-content {
    width: min(440px, 100%);
    position: relative;
    padding: 30px;
    border: 1px solid rgba(157,255,63,.28);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(27,61,13,.96), rgba(5,22,0,.98));
    box-shadow: 0 34px 100px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.1);
    text-align: center;
    animation: modalPop .25s ease both;
}

@keyframes modalPop {
    from { opacity: 0; transform: translateY(18px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-title {
    margin: 0 0 10px;
    font-size: 1.6rem;
    letter-spacing: -.04em;
}

.modal-body-text {
    margin: 0 0 20px;
    color: rgba(255,255,255,.72);
    line-height: 1.65;
}

.modal-btn {
    min-height: 50px;
    margin-top: 12px;
    color: #102400;
    background: var(--lime);
}

.btn-pay-now {
    background: linear-gradient(135deg, var(--lime), #b9ff61);
}

.btn-telegram {
    color: #fff;
    background: #229ed9;
}

.btn-email {
    color: var(--lime);
    border: 1px solid rgba(157,255,63,.45);
    background: transparent;
}

.btn-close {
    min-height: 47px;
    margin-top: 12px;
    color: rgba(255,255,255,.72);
    background: rgba(255,255,255,.08);
}

.logo-showcase {
    width: min(250px, 56vw);
    height: auto;
    display: block;
    margin: 0 auto 24px;
    border-radius: 30px;
    box-shadow: 0 26px 75px rgba(0,0,0,.38), 0 0 55px rgba(157,255,63,.12);
    opacity: .88;
}

@media (max-width: 860px) {
    .page-shell {
        width: min(100% - 26px, 620px);
        padding-top: 24px;
    }

    .site-header {
        align-items: flex-start;
    }

    .header-email {
        display: none;
    }

    .packages-grid {
        grid-template-columns: 1fr;
    }

    .package-card {
        min-height: auto;
    }
}

@media (max-width: 520px) {
    .brand {
        font-size: 1.38rem;
    }

    .brand-logo {
        width: 36px;
        height: 36px;
    }

    .hero {
        padding-top: 36px;
    }

    .form-card,
    .payment-card {
        padding: 26px 20px;
        border-radius: 26px;
    }

    .package-top,
    .package-body {
        padding-left: 22px;
        padding-right: 22px;
    }

    .support-text {
        font-size: .85rem;
        line-height: 1.6;
    }
}
