:root {
    color-scheme: dark;
    --bg: #071315;
    --panel: rgba(255, 255, 255, 0.08);
    --panel-strong: rgba(255, 255, 255, 0.13);
    --line: rgba(255, 255, 255, 0.14);
    --text: #f5fbf8;
    --muted: #a9bbb4;
    --teal: #39d9c8;
    --coral: #ff6d5f;
    --gold: #ffd46a;
    --ink: #0d1f22;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(57, 217, 200, 0.16), transparent 28rem),
        radial-gradient(circle at 90% 10%, rgba(255, 109, 95, 0.18), transparent 24rem),
        linear-gradient(135deg, #071315 0%, #0b2022 52%, #191b27 100%);
    color: var(--text);
}

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

.shop-header,
.shop-footer,
.shop-shell,
.checkout-shell,
.result-shell {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.shop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.brand img {
    display: block;
    width: 150px;
    height: auto;
}

.shop-nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

.shop-nav a {
    min-height: 38px;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 14px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 24px;
    align-items: stretch;
    padding: 28px 0 18px;
}

.hero-copy,
.manual-panel,
.package-card,
.checkout-form,
.order-summary,
.result-card,
.notice {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.hero-copy {
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 5vw, 58px);
    border-radius: 18px;
}

.eyebrow {
    width: max-content;
    max-width: 100%;
    padding: 7px 12px;
    border: 1px solid rgba(57, 217, 200, 0.38);
    border-radius: 999px;
    color: var(--teal);
    font-size: 13px;
    font-weight: 700;
}

h1,
h2,
p {
    margin-top: 0;
}

.hero-copy h1,
.checkout-copy h1,
.result-card h1 {
    max-width: 760px;
    margin: 18px 0 14px;
    font-size: clamp(40px, 7vw, 74px);
    line-height: 0.95;
    letter-spacing: 0;
}

.hero-copy p,
.checkout-copy p,
.result-card p {
    max-width: 650px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.trust-row span {
    padding: 9px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #d9ebe6;
    font-weight: 700;
    font-size: 13px;
}

.hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    transition: border-color 0.2s ease, background 0.2s ease;
}

.store-btn:hover,
.store-btn:focus-visible {
    border-color: rgba(57, 217, 200, 0.5);
    background: linear-gradient(135deg, rgba(57, 217, 200, 0.14), rgba(255, 255, 255, 0.04));
    outline: none;
}

.store-btn-icon {
    width: 21px;
    height: 21px;
    flex: none;
    fill: var(--text);
    transition: fill 0.2s ease;
}

.store-btn:hover .store-btn-icon,
.store-btn:focus-visible .store-btn-icon {
    fill: var(--teal);
}

.store-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
}

.store-btn-text small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.store-btn-text strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

@media (max-width: 560px) {
    .hero-top {
        justify-content: flex-start;
    }
}

.manual-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
    padding: 24px;
    border-radius: 18px;
}

.panel-head,
.total-strip,
.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.panel-head span,
.order-summary > span,
.package-body span,
.result-card > span {
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

label span,
.manual-panel label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

input {
    width: 100%;
    min-height: 48px;
    margin-top: 7px;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
    color: var(--text);
    font: inherit;
    outline: none;
}

input:focus {
    border-color: rgba(57, 217, 200, 0.72);
}

.total-strip {
    padding: 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(57, 217, 200, 0.16), rgba(255, 109, 95, 0.14));
}

.primary-action,
.package-card button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    background: linear-gradient(135deg, var(--teal), var(--coral));
    color: #061112;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.primary-action:disabled,
.package-card button:disabled {
    cursor: not-allowed;
    filter: grayscale(0.8);
    opacity: 0.55;
}

.notice {
    margin: 14px 0;
    padding: 14px 16px;
    border-radius: 8px;
    color: #dcece8;
}

.notice.error {
    border-color: rgba(255, 109, 95, 0.45);
    background: rgba(255, 109, 95, 0.12);
}

.notice.compact {
    margin-top: 0;
}

.packages-section {
    padding: 22px 0 50px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.section-title span {
    font-size: 20px;
    font-weight: 900;
}

.section-title a {
    color: var(--teal);
    font-size: 14px;
    font-weight: 800;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.package-card {
    display: grid;
    grid-template-rows: 150px 1fr auto;
    overflow: hidden;
    border-radius: 16px;
}

.package-media {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(255, 212, 106, 0.18), rgba(57, 217, 200, 0.14));
}

.package-media img {
    width: 92px;
    height: 92px;
    object-fit: contain;
}

.package-body {
    padding: 18px;
}

.package-body h2 {
    margin: 8px 0 6px;
    font-size: 25px;
}

.package-body p {
    margin: 0;
    color: var(--teal);
    font-size: 22px;
    font-weight: 900;
}

.package-card form {
    padding: 0 18px 18px;
}

.package-card button {
    width: 100%;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: var(--muted);
}

.checkout-shell {
    padding: 28px 0 60px;
}

.checkout-copy {
    margin-bottom: 20px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
}

.checkout-form,
.order-summary {
    border-radius: 16px;
    padding: 24px;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.field-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.divider {
    height: 1px;
    margin: 6px 0;
    background: var(--line);
}

.order-summary {
    height: max-content;
}

.order-summary h2 {
    margin: 10px 0 22px;
    font-size: 34px;
}

.summary-line {
    padding: 14px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.summary-line strong {
    color: var(--text);
}

.summary-line.total strong {
    color: var(--gold);
    font-size: 24px;
}

.order-summary a {
    display: inline-flex;
    margin-top: 18px;
    color: var(--teal);
    font-weight: 800;
}

.result-shell {
    display: grid;
    min-height: 70vh;
    place-items: center;
}

.result-card {
    width: min(720px, 100%);
    padding: clamp(28px, 5vw, 54px);
    border-radius: 18px;
    text-align: center;
}

.result-card .primary-action {
    margin-top: 16px;
}

.result-card.failed {
    border-color: rgba(255, 109, 95, 0.44);
}

.shop-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 26px 0 36px;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 900px) {
    .hero-grid,
    .checkout-grid,
    .packages-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        min-height: auto;
    }

    .shop-nav {
        display: none;
    }
}

@media (max-width: 560px) {
    .brand img {
        width: 126px;
    }

    .hero-copy h1,
    .checkout-copy h1,
    .result-card h1 {
        font-size: 40px;
    }

    .field-grid,
    .field-grid.three {
        grid-template-columns: 1fr;
    }

    .shop-footer {
        flex-direction: column;
    }
}
