:root {
    --bg: #040404;
    --panel: rgba(10, 10, 10, 0.88);
    --panel-alt: rgba(22, 22, 22, 0.96);
    --panel-soft: rgba(8, 8, 8, 0.92);
    --primary: #f6da86;
    --primary-strong: #ca8f2d;
    --gold-1: #f6da86;
    --gold-2: #ca8f2d;
    --gold-3: #f4c95d;
    --text: #f8f8f8;
    --muted: rgba(255, 255, 255, 0.74);
    --panel-border: rgba(255, 195, 79, 0.45);
    --panel-border-strong: rgba(255, 202, 96, 0.88);
    --shadow: 0 24px 50px rgba(0, 0, 0, 0.44);
    --radius-xl: 24px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --transition: 160ms ease;
    --font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    --hero-title-size: clamp(1.9rem, 6vw, 2.35rem);
    --plan-title-size: 0.95rem;
    --plan-price-size: 1.7rem;
    --button-title-size: 2rem;
    --background-overlay-opacity: 0.38;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: var(--font-size-base);
    background:
        radial-gradient(circle at 50% -10%, rgba(255, 191, 58, 0.20), transparent 30%),
        radial-gradient(circle at 78% 16%, rgba(255, 179, 50, 0.16), transparent 26%),
        radial-gradient(circle at 18% 22%, rgba(255, 160, 25, 0.12), transparent 22%),
        linear-gradient(180deg, #060606 0%, #000 100%);
    position: relative;
    overflow-x: hidden;
}

.cosmic-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    contain: strict;
}

.cosmic-layer,
.cosmic-canvas {
    position: absolute;
    inset: 0;
}

.cosmic-layer--void {
    background:
        radial-gradient(circle at 50% 8%, rgba(255, 176, 50, 0.16), transparent 22%),
        radial-gradient(circle at 15% 20%, rgba(94, 55, 255, 0.08), transparent 20%),
        radial-gradient(circle at 85% 18%, rgba(255, 166, 46, 0.12), transparent 24%),
        linear-gradient(180deg, #050607 0%, #030303 44%, #010101 100%);
    transform: translateZ(0);
}

.cosmic-layer--nebula {
    opacity: 0.72;
    background:
        radial-gradient(circle at 20% 14%, rgba(255, 173, 42, 0.24), transparent 16%),
        radial-gradient(circle at 80% 22%, rgba(255, 131, 24, 0.18), transparent 18%),
        radial-gradient(circle at 54% 52%, rgba(255, 194, 88, 0.12), transparent 22%),
        radial-gradient(circle at 12% 72%, rgba(92, 52, 255, 0.10), transparent 20%),
        radial-gradient(circle at 88% 74%, rgba(255, 137, 20, 0.10), transparent 18%);
    filter: blur(34px) saturate(118%);
    animation: cosmic-nebula-pulse 18s ease-in-out infinite alternate;
    will-change: transform, opacity;
}

.cosmic-layer--depth {
    opacity: 0.95;
    background:
        radial-gradient(circle at 25% 16%, rgba(255, 204, 109, 0.95) 0 1px, transparent 1.9px),
        radial-gradient(circle at 74% 18%, rgba(255, 189, 77, 0.92) 0 1.3px, transparent 2px),
        radial-gradient(circle at 61% 31%, rgba(255, 208, 132, 0.68) 0 1.1px, transparent 1.8px),
        radial-gradient(circle at 18% 62%, rgba(255, 193, 88, 0.88) 0 1.2px, transparent 1.9px),
        radial-gradient(circle at 86% 66%, rgba(255, 171, 61, 0.84) 0 1.1px, transparent 1.8px),
        radial-gradient(circle at 44% 84%, rgba(255, 215, 144, 0.72) 0 1px, transparent 1.6px);
    filter: blur(0.2px);
    animation: cosmic-depth-drift 28s linear infinite;
    will-change: transform;
}

.cosmic-canvas {
    opacity: 0.92;
    mix-blend-mode: screen;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body::before {
    opacity: 0.9;
    background-image:
        radial-gradient(circle at 8% 20%, rgba(255, 201, 99, 0.95) 0 1px, transparent 1.6px),
        radial-gradient(circle at 18% 8%, rgba(255, 168, 56, 0.9) 0 1.2px, transparent 1.8px),
        radial-gradient(circle at 32% 16%, rgba(255, 211, 133, 0.84) 0 1px, transparent 1.8px),
        radial-gradient(circle at 56% 10%, rgba(255, 196, 73, 0.88) 0 1.2px, transparent 2px),
        radial-gradient(circle at 72% 14%, rgba(255, 182, 53, 0.85) 0 1px, transparent 1.8px),
        radial-gradient(circle at 85% 26%, rgba(255, 211, 127, 0.8) 0 1px, transparent 1.7px),
        radial-gradient(circle at 14% 40%, rgba(255, 178, 71, 0.78) 0 1px, transparent 1.8px),
        radial-gradient(circle at 26% 52%, rgba(255, 206, 127, 0.9) 0 1.1px, transparent 1.9px),
        radial-gradient(circle at 62% 54%, rgba(255, 199, 90, 0.82) 0 1.2px, transparent 1.8px),
        radial-gradient(circle at 74% 42%, rgba(255, 171, 56, 0.82) 0 1.1px, transparent 1.8px),
        radial-gradient(circle at 88% 64%, rgba(255, 208, 128, 0.7) 0 1px, transparent 1.7px),
        radial-gradient(circle at 12% 78%, rgba(255, 187, 71, 0.65) 0 1.2px, transparent 1.8px),
        radial-gradient(circle at 34% 88%, rgba(255, 208, 128, 0.7) 0 1px, transparent 1.7px),
        radial-gradient(circle at 68% 82%, rgba(255, 193, 77, 0.8) 0 1.1px, transparent 1.8px),
        radial-gradient(circle at 92% 78%, rgba(255, 210, 132, 0.68) 0 1px, transparent 1.6px);
    filter: blur(0.15px);
}

body::after {
    opacity: var(--background-overlay-opacity);
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.44)),
                radial-gradient(circle at top, rgba(255, 201, 99, 0.08), transparent 36%);
    mix-blend-mode: screen;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.shell {
    width: min(100%, 460px);
    margin: 0 auto;
    padding: 22px 10px 34px;
    position: relative;
    z-index: 2;
}

.hero {
    text-align: center;
    margin-bottom: 18px;
}

.hero-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.hero-brand-logo {
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
}

.hero-brand-name {
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hero-card {
    width: min(100%, 312px);
    display: block;
    margin: 0 auto 18px;
    filter: drop-shadow(0 0 14px rgba(241, 181, 67, 0.22)) drop-shadow(0 24px 36px rgba(0, 0, 0, 0.36));
}

.hero-title {
    margin: 0;
    font-size: var(--hero-title-size);
    line-height: 1.06;
    letter-spacing: -0.03em;
    font-weight: 800;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.36);
}

.plans-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 24px;
    margin-bottom: 10px;
}

.plans-scrollbar-label {
    flex: 1;
    text-align: center;
    font-size: 0.78rem;
    color: var(--muted);
}

.plans-nav {
    width: 38px;
    height: 38px;
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--gold-1);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.plans-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    padding-top: 20px;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
}

.plans-viewport::-webkit-scrollbar {
    display: none;
}

.plans {
    display: flex;
    gap: 8px;
    min-width: max-content;
}

.plan-card {
    flex: 0 0 132px;
    position: relative;
    overflow: visible;
    background:
        linear-gradient(180deg, var(--panel-alt), var(--panel-soft)),
        radial-gradient(circle at top, rgba(255, 211, 115, 0.12), transparent 54%);
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    padding: 18px 10px 12px;
    min-height: 156px;
    box-shadow: inset 0 1px 0 rgba(255, 220, 146, 0.12), var(--shadow);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    cursor: pointer;
    scroll-snap-align: start;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.plan-card:hover,
.plan-card.is-selected {
    transform: translateY(-2px);
    border-color: var(--panel-border-strong);
    box-shadow: inset 0 1px 0 rgba(255, 235, 180, 0.18), 0 18px 36px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 203, 106, 0.12);
}

.plan-card:active {
    transform: translateY(0) scale(0.985);
}

.plan-selected-pin {
    position: absolute;
    left: 50%;
    top: -40px;
    transform: translateX(-50%) translateY(6px);
    opacity: 0;
    pointer-events: none;
    min-height: 24px;
    max-width: calc(100% - 12px);
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(249, 221, 138, 0.98), rgba(201, 142, 46, 0.98));
    color: #241500;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.26);
    transition: opacity var(--transition), transform var(--transition);
    z-index: 3;
}

.plan-card.is-selected .plan-selected-pin {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.plan-badge {
    position: absolute;
    top: 22px;
    right: 6px;
    padding: 3px 8px;
    border-radius: 12px 12px 4px 12px;
    background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
    color: #2b1800;
    font-size: 0.54rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    transform: rotate(10deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    z-index: 4;
}

.crown {
    width: 18px;
    height: 18px;
    color: var(--gold-1);
    display: block;
    margin: 0 auto 10px;
    filter: drop-shadow(0 0 10px rgba(240, 200, 96, 0.4));
}

.plan-name {
    margin: 0;
    min-height: 38px;
    font-size: var(--plan-title-size);
    line-height: 1.15;
    text-align: center;
    font-weight: 600;
}

.plan-price {
    margin: 8px 0 2px;
    text-align: center;
    color: var(--gold-1);
    font-size: var(--plan-price-size);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.plan-description {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 10px;
    min-height: 20px;
}

.plan-button,
.coupon-button,
.checkout-button {
    background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 100%);
    color: #1a1200;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 18px rgba(161, 108, 12, 0.24);
}

.plan-button {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 10px 8px;
    font-size: 0.85rem;
    font-weight: 800;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.plans-scrollbar {
    position: relative;
    width: 100%;
    height: 7px;
    margin: 10px auto 0;
    border-radius: 999px;
    background: rgba(255, 230, 170, 0.16);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.38);
}

.plans-scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 56px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
    box-shadow: 0 0 16px rgba(241, 187, 76, 0.24);
    transition: transform var(--transition), width var(--transition);
}

.checkout {
    margin-top: 20px;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(13, 13, 13, 0.96), rgba(6, 6, 6, 0.94));
    border: 1px solid rgba(255, 198, 83, 0.22);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-label,
.summary-value {
    font-size: 1rem;
}

.summary-label {
    font-weight: 600;
}

.summary-value {
    font-weight: 900;
    letter-spacing: -0.03em;
}

.coupon-block {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.coupon-head {
    display: block;
    margin-bottom: 12px;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.92);
}

.coupon-form {
    display: flex;
    gap: 10px;
}

.coupon-input {
    min-width: 0;
    flex: 1;
    height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 199, 86, 0.5);
    background: rgba(8, 8, 8, 0.96);
    color: var(--text);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.coupon-input:focus {
    border-color: rgba(255, 212, 120, 0.9);
    box-shadow: 0 0 0 3px rgba(255, 209, 103, 0.14);
}

.coupon-button {
    min-width: 92px;
    border: 0;
    border-radius: 10px;
    padding: 0 14px;
    font-weight: 800;
}

.coupon-message {
    min-height: 18px;
    margin-top: 10px;
    font-size: 0.8rem;
    color: rgba(255, 223, 146, 0.94);
}

.checkout-cta {
    padding: 16px;
}

.checkout-button {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 16px 18px 12px;
    text-align: center;
    font-size: 0.96rem;
    line-height: 1.15;
    font-weight: 800;
}

.checkout-button strong {
    display: block;
    font-size: var(--button-title-size);
    letter-spacing: -0.05em;
    margin-bottom: 2px;
}

.checkout-button small {
    display: block;
    font-size: 0.78rem;
    color: rgba(43, 23, 0, 0.76);
}

.footer {
    padding-top: 14px;
    text-align: center;
}

.footer span {
    display: block;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 8px;
}

.payment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    min-height: 28px;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #1cb4ff, #0282c8);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 20px rgba(0, 71, 114, 0.25);
}

.payment-logo {
    max-height: 28px;
    width: auto;
    display: inline-block;
}

.whatsapp-float {
    position: fixed;
    right: max(18px, calc(env(safe-area-inset-right) + 14px));
    bottom: max(18px, calc(env(safe-area-inset-bottom) + 14px));
    z-index: 30;
    width: 78px;
    height: 78px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28), 0 0 32px rgba(37, 211, 102, 0.18);
    transform: translateZ(0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    will-change: transform;
    animation: whatsapp-float-bob 3.4s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.02);
}

.whatsapp-float-icon {
    position: relative;
    z-index: 2;
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.14));
}

.whatsapp-float-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.whatsapp-float-pulse {
    position: absolute;
    inset: 10px;
    border-radius: 999px;
    background: rgba(37, 211, 102, 0.24);
    animation: whatsapp-float-pulse 2.3s ease-out infinite;
}

@keyframes cosmic-depth-drift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    100% {
        transform: translate3d(-1.5%, 1.2%, 0) scale(1.03);
    }
}

@keyframes cosmic-nebula-pulse {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.62;
    }
    100% {
        transform: translate3d(1.6%, -1.4%, 0) scale(1.08);
        opacity: 0.84;
    }
}

@keyframes whatsapp-float-pulse {
    0% {
        transform: scale(0.94);
        opacity: 0.55;
    }
    70% {
        transform: scale(1.18);
        opacity: 0;
    }
    100% {
        transform: scale(1.18);
        opacity: 0;
    }
}

@keyframes whatsapp-float-bob {
    0% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -5px, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cosmic-layer--nebula,
    .cosmic-layer--depth,
    .whatsapp-float,
    .whatsapp-float-pulse {
        animation: none;
    }
}

@media (max-width: 390px) {
    .whatsapp-float {
        right: max(14px, calc(env(safe-area-inset-right) + 10px));
        bottom: max(14px, calc(env(safe-area-inset-bottom) + 10px));
        width: 70px;
        height: 70px;
    }

    .whatsapp-float-icon {
        width: 62px;
        height: 62px;
    }

    .shell {
        padding-inline: 8px;
    }

    .plan-card {
        flex-basis: 126px;
        padding-inline: 8px;
    }
}

@media (min-width: 768px) {
    .shell {
        width: min(100%, 1080px);
        max-width: 1080px;
        padding-top: 42px;
    }

    .hero-card {
        width: min(100%, 520px);
    }

    .hero-title {
        font-size: clamp(2.6rem, 4.2vw, 3.4rem);
    }

    .plans {
        gap: 14px;
    }

    .plan-card {
        flex-basis: 196px;
        border-radius: 18px;
        min-height: 228px;
        padding: 20px 18px 18px;
    }

    .crown {
        width: 24px;
        height: 24px;
        margin-bottom: 14px;
    }

    .plan-name {
        min-height: 48px;
        font-size: 1.12rem;
    }

    .plan-price {
        font-size: 2.1rem;
    }

    .plan-description {
        font-size: 0.92rem;
        margin-bottom: 14px;
    }

    .plan-button {
        font-size: 0.96rem;
        padding-block: 12px;
    }

    .progress-track {
        width: 124px;
        margin-top: 18px;
    }

    .checkout {
        margin-top: 28px;
        border-radius: 22px;
    }

    .summary-row,
    .coupon-block,
    .checkout-cta {
        padding-left: 22px;
        padding-right: 22px;
    }

    .summary-label,
    .summary-value {
        font-size: 1.18rem;
    }

    .coupon-input {
        height: 48px;
    }

    .coupon-button {
        min-width: 112px;
    }
}
