@import url("https://fonts.googleapis.com/css2?family=Geologica:wght@300;400&display=swap");

:root {
    color-scheme: dark;
    --bg: #060606;
    --shell: #080d20;
    --panel: #0f1530;
    --line: #4c4c4c;
    --text: #f2f5ff;
    --muted: #99a5cc;
    --accent: #b03aff;
    --accent2: #4e8cff;
    --pink: #ff4ca0;
    --green: #46c978;
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
    overscroll-behavior-y: none;
}

body {
    margin: 0;
    min-height: 100vh;
    height: 100%;
    font-family: "Geologica", "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 60px 10px 20px;
    overflow-x: hidden;
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation;
    position: relative;
    isolation: isolate;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: -35%;
    pointer-events: none;
    z-index: 0;
}

body::before {
    background:
        radial-gradient(52% 42% at 12% 22%, rgba(255, 0, 132, 0.32) 0%, rgba(6, 6, 6, 0) 74%),
        radial-gradient(46% 36% at 88% 28%, rgba(242, 0, 255, 0.24) 0%, rgba(6, 6, 6, 0) 76%);
    background-repeat: no-repeat;
    background-size: 150% 150%, 150% 150%;
    background-position: 0% 0%, 100% 10%;
    animation: orbFlowOne 6.8s ease-in-out infinite alternate;
}

body::after {
    background:
        radial-gradient(58% 45% at 50% 82%, rgba(255, 0, 132, 0.28) 0%, rgba(6, 6, 6, 0) 78%),
        radial-gradient(42% 34% at 76% 70%, rgba(242, 0, 255, 0.2) 0%, rgba(6, 6, 6, 0) 80%);
    background-repeat: no-repeat;
    background-size: 155% 155%, 145% 145%;
    background-position: 50% 100%, 90% 70%;
    animation: orbFlowTwo 7.6s ease-in-out infinite alternate;
}

main {
    position: relative;
    z-index: 1;
}

@keyframes orbFlowOne {
    0% {
        background-position: 0% 0%, 100% 10%;
        opacity: 0.65;
    }
    100% {
        background-position: 17% 11%, 84% 26%;
        opacity: 0.92;
    }
}

@keyframes orbFlowTwo {
    0% {
        background-position: 50% 100%, 90% 70%;
        opacity: 0.6;
    }
    100% {
        background-position: 38% 80%, 76% 56%;
        opacity: 0.88;
    }
}

.topbar {
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.topbar-title {
    text-align: center;
    display: grid;
}

.topbar-title strong {
    font-size: 18px;
}

.topbar-title span {
    font-size: 12px;
    color: var(--muted);
}

.icon-btn {
    height: 36px;
    width: 36px;
    border-radius: 11px;
    border: 1px solid var(--line);
    color: var(--text);
    display: grid;
    place-items: center;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.02);
}

.hero {
    text-align: center;
    padding: 10px 6px 2px;
}

.hero h1 {
    margin: 0;
    font-size: 56px;
    line-height: 1;
    letter-spacing: 0.3px;
    background: linear-gradient(90deg, #4c8bff, #8548ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    margin: 10px auto 0;
    max-width: 290px;
    color: var(--muted);
}

.badge {
    margin-top: 10px;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(103, 137, 255, 0.16);
    border: 1px solid #4f74ef;
    font-size: 12px;
}

.feature-row {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.feature-chip {
    border: 1px solid #2b3560;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 9px 7px;
    font-size: 12px;
}

.panel {
    margin-top: 14px;
    border: 1px solid #2a3361;
    border-radius: 20px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(20, 29, 60, 0.96) 0%, rgba(11, 17, 39, 0.96) 100%);
}

.panel h1,
.panel h2,
.panel h4 {
    margin-top: 0;
}

.panel h2 {
    margin-bottom: 12px;
    font-size: 26px;
}

.cards {
    display: grid;
    gap: 10px;
}

.product-row {
    border: 1px solid #2a325b;
    border-radius: 16px;
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    background: rgba(10, 15, 34, 0.92);
}

.product-row-main {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 10px;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 1px solid #374370;
    overflow: hidden;
    background: linear-gradient(160deg, #1d2f69, #1f113b);
    display: grid;
    place-items: center;
    font-weight: 700;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-copy h3 {
    margin: 0;
    font-size: 18px;
}

.product-copy p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.3;
}

.product-row-actions {
    text-align: right;
    display: grid;
    gap: 8px;
}

.product-row-actions strong {
    color: #b17cff;
    font-size: 30px;
    line-height: 1;
}

.price-tag {
    color: #b17cff;
    font-size: 30px;
}

.btn {
    text-decoration: none;
    border: none;
    border-radius: 14px;
    padding: 10px 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(94deg, var(--accent) 0%, var(--accent2) 100%);
    box-shadow: 0 8px 20px rgba(100, 74, 255, 0.45);
    text-align: center;
    cursor: pointer;
    touch-action: manipulation;
}

.btn.large {
    width: 100%;
    min-height: 46px;
    display: grid;
    place-items: center;
}

.info-card {
    margin-top: 12px;
    border: 1px solid #2b3460;
    border-radius: 16px;
    padding: 13px 14px;
    background: rgba(12, 18, 42, 0.9);
}

.info-card h4 {
    margin: 0 0 6px;
}

.info-card p {
    margin: 0;
    color: var(--muted);
}

.back-link {
    color: var(--muted);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 8px;
}

.product-title {
    font-size: 34px;
    margin-bottom: 10px;
}

.preview {
    margin-top: 42px;
    width: 100%;
    border-radius: 16px;
    border: 1px solid #2f3a67;
}

.large-preview {
    min-height: 190px;
    object-fit: cover;
    background: linear-gradient(135deg, #1a2345, #0d1535);
}

.preview.placeholder {
    display: grid;
    place-items: center;
    color: var(--muted);
}

.description {
    color: #e6ebff;
    margin-top: 12px;
}

.includes {
    border: 1px solid #2b3663;
    border-radius: 16px;
    padding: 11px;
    margin-top: 10px;
    background: rgba(8, 13, 30, 0.7);
}

.stats {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
    color: #c0cae7;
}

.kpi-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 30px;
}

.kpi {
    border: 1px solid #2b3561;
    border-radius: 14px;
    padding: 10px 8px;
    text-align: center;
    background: rgba(78, 46, 155, 0.2);
}

.kpi strong {
    display: block;
    font-size: 24px;
}

.kpi span {
    color: var(--muted);
    font-size: 13px;
}

.bottom-buy {
    margin-top: 12px;
    border: 1px solid #2d3664;
    border-radius: 18px;
    padding: 12px;
    background: rgba(10, 14, 31, 0.95);
}

.price-box {
    margin-bottom: 10px;
}

.old {
    color: var(--muted);
    text-decoration: line-through;
    font-size: 22px;
    margin-right: 8px;
}

.new {
    color: var(--pink);
    font-size: 44px;
    font-weight: 500;
    line-height: 1;
}

.checkout-form {
    margin-top: 14px;
    display: grid;
    gap: 14px;
}

.checkout-form label {
    display: grid;
    gap: 8px;
    color: #d4dbf4;
    font-size: 18px;
}

.checkout-form label > span {
    font-size: 18px;
    font-weight: 400;
}

input,
select {
    width: 100%;
    border: 1px solid #2a3562;
    border-radius: 12px;
    background: #090f24;
    color: #fff;
    padding: 14px;
    min-height: 56px;
    font-size: 20px;
}

.promo-field {
    gap: 8px;
}

.promo-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
}

.promo-row input {
    min-width: 0;
}

.promo-apply-btn {
    min-height: 56px;
    font-size: 18px;
    padding: 0 18px;
}

.promo-status {
    margin: -4px 0 0;
    min-height: 20px;
    font-size: 14px;
    color: #d5d8e8;
}

.promo-status.ok {
    color: #6be091;
}

.promo-status.error {
    color: #ff7bb2;
}

.checkout-form .btn.large {
    min-height: 58px;
    font-size: 22px;
    font-weight: 600;
}

.messages {
    margin-top: 8px;
    margin-bottom: 8px;
}

.message {
    border-radius: 11px;
    padding: 10px 11px;
    font-size: 13px;
    border: 1px solid transparent;
}

.message.success {
    background: rgba(70, 201, 120, 0.15);
    border-color: rgba(70, 201, 120, 0.6);
}

.message.error {
    background: rgba(255, 76, 160, 0.13);
    border-color: rgba(255, 76, 160, 0.58);
}

.status-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 28px;
    margin: 0 auto 12px;
}

.status-icon.ok {
    background: rgba(70, 201, 120, 0.18);
    border: 1px solid rgba(70, 201, 120, 0.65);
    color: var(--green);
}

.status-icon.wait {
    background: rgba(78, 140, 255, 0.2);
    border: 1px solid rgba(78, 140, 255, 0.65);
    color: #6ea5ff;
}

.order-id {
    color: var(--muted);
    word-break: break-all;
}

.empty-text {
    color: var(--muted);
}

.home-screen {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    min-height: calc(100vh - 20px);
}

.home-topbar {
    min-height: 76px;
    border: none;
    border-radius: 0 0 18px 18px;
    background: rgba(0, 0, 0, 0.75);
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.home-topbar h1 {
    margin: 0;
    font-size: 40px;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.home-cart-btn {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
}

.home-cart-btn img {
    width: 36px;
    height: 36px;
    opacity: 0.95;
}

.bundle-card {
    border: 1px solid #4c4c4c;
    border-radius: 18px;
    min-height: 132px;
    padding: 16px 14px;
    text-decoration: none;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.05)),
        url("./Hero.png") center / cover no-repeat,
        rgba(0, 0, 0, 0.75);

    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    min-width: 0;
    margin-top: 42px;
}

.bundle-copy h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.bundle-copy p {
    margin: 6px 0 0;
    font-size: 18px;
    font-weight: 300;
    opacity: 0.9;
    max-width: 210px;
}

.bundle-price {
    display: grid;
    justify-items: end;
    line-height: 1;
}

.bundle-old {
    color: #f2c5dd;
    font-size: 20px;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.bundle-new {
    color: #ff00a1;
    font-size: 40px;
    font-weight: 500;
    white-space: nowrap;
}

.home-list h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
}

.home-list {
    margin-top: 12px;
    margin-bottom: 14px;
}

.home-cards {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}

.tariff-card {
    border: 1px solid #4c4c4c;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(0, 0, 0, 0.3) 0%, rgba(255, 0, 132, 0.1) 100%);
}

.tariff-main {
    min-height: 100%;
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 7px 7px 8px;
    min-width: 0;
}

.tariff-preview {
    width: 100%;
    aspect-ratio: 16 / 11;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    background: rgba(12, 12, 12, 0.72);
}

.tariff-preview img,
.tariff-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tariff-preview-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 14px;
    color: #cfd2e7;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 0, 132, 0.08));
}

.tariff-copy strong {
    display: block;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    line-height: 1.2;
    margin: 4px 0;
}

.tariff-copy span {
    display: none;
}

.tariff-price {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.tariff-old {
    display: none;
}

.tariff-new {
    font-size: clamp(26px, 7vw, 34px);
    font-weight: 500;
    line-height: 0.94;
    color: #ff00a1;
    white-space: nowrap;
}

.support-card {
    border: 1px solid #4c4c4c;
    border-radius: 18px;
    min-height: 118px;
    padding: 16px 14px;
    text-decoration: none;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.08)),
        url("./Support.png") center / cover no-repeat,
        rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    margin-top: 0;
    margin-bottom: 56px;
}

.support-copy {
    display: grid;
    gap: 5px;
}

.support-copy strong {
    font-size: 22px;
    font-weight: 400;
}

.support-copy span {
    font-size: clamp(20px, 7vw, 30px);
    line-height: 1;
    font-weight: 300;
    overflow-wrap: anywhere;
}

.home-footnote {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 75px;
}

.home-footnote img {
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.home-footnote p {
    margin: 0;
    color: #d8d8d8;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.3;
}

.home-footnote a {
    color: #8488ff;
    text-decoration: none;
}

.inner-topbar {
    min-height: 70px;
    border-radius: 0 0 18px 18px;
    background: rgba(0, 0, 0, 0.75);
    padding: 0 12px;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 8px;
}

.inner-topbar h1 {
    margin: 0;
    text-align: center;
    font-size: 24px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inner-back {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    line-height: 1;
}

.cart-screen,
.product-screen {
    display: grid;
    gap: 16px;
}

.cart-cards {
    display: grid;
    gap: 10px;
}

.cart-cards--bundle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cart-summary {
    border: 2px solid #4c4c4c;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.75);
    padding: 12px;
}

.cart-summary .new {
    font-size: 52px;
    font-weight: 600;
}

.cart-mode {
    margin: 0 0 8px;
    color: #d8d8d8;
    font-size: 12px;
    font-weight: 300;
}

.cart-empty {
    border: 2px solid #4c4c4c;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.75);
    padding: 14px;
    display: grid;
    gap: 10px;
}

.product-media {
    min-height: 220px;
    border: 2px solid #4c4c4c;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.75);
}

.product-hero-copy h2 {
    margin: 0;
    font-size: 26px;
    text-align: center;
}

.product-hero-copy p {
    margin: 4px 0 0;
    text-align: center;
    color: #c7c7c7;
    font-weight: 300;
}

.product-price-row {
    border: 2px solid #4c4c4c;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.75);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.product-price-row .old {
    font-size: 28px;
}

.product-price-row .new {
    font-size: 46px;
}

.discount-chip {
    border-radius: 8px;
    background: #2fcf65;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    padding: 6px 8px;
}

.product-includes {
    margin-top: 0;
}

.product-bottom-buy {
    position: sticky;
    bottom: 2%;
    z-index: 3;
    border: 1px solid #4c4c4c;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.92);
    padding: 8px;
    display: grid;
    grid-template-columns: 0.6fr 1fr;
    gap: 8px;
    align-items: center;
}

.product-archive-cta {
    position: sticky;
    bottom: 2%;
    z-index: 3;
    width: 100%;
}

.product-archive-cta .btn.large {
    width: 100%;
    min-height: 50px;
    border-radius: 12px;
    white-space: nowrap;
}

.product-bottom-price {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.product-bottom-action .btn {
    min-height: 50px;
    border-radius: 12px;
}

.badge,
.empty-text,
.product-copy p,
.description {
    font-weight: 300;
}

h1,
h2,
h3,
h4,
.product-copy h3,
.product-title {
    font-weight: 400;
}

@media (max-width: 480px) {
    body {
        padding: 60px 8px 18px;
    }

    .home-screen {
        gap: 24px;
        min-height: calc(100vh - 18px);
    }

    .home-list {
        margin-top: 16px;
        margin-bottom: 18px;
    }

    .home-topbar {
        min-height: 68px;
        margin: 0;
    }

    .home-topbar h1 {
        font-size: 34px;
    }

    .bundle-card {
        min-height: 112px;
        padding: 12px;
    }

    .tariff-main {
        gap: 6px;
        padding: 7px;
    }

    .tariff-preview {
        border-radius: 10px;
    }

    .tariff-new {
        font-size: clamp(22px, 8vw, 30px);
    }

    .support-card {
        min-height: 98px;
        padding: 12px;
        margin-bottom: 52px;
    }

    .support-copy strong {
        font-size: 20px;
    }

    .support-copy span {
        font-size: 24px;
    }

    .cart-summary .new {
        font-size: 42px;
    }

    .checkout-form label,
    .checkout-form label > span {
        font-size: 16px;
    }

    input,
    select {
        min-height: 52px;
        padding: 12px;
        font-size: 18px;
    }

    .promo-apply-btn {
        min-height: 52px;
        font-size: 16px;
    }

    .checkout-form .btn.large {
        min-height: 54px;
        font-size: 20px;
    }

    .inner-topbar {
        min-height: 62px;
        padding: 0 8px;
    }

    .inner-topbar h1 {
        font-size: 25px;
    }

    .product-media {
        min-height: 170px;
    }

    .product-hero-copy h2 {
        font-size: 24px;
    }

    .product-price-row .old {
        font-size: 20px;
    }

    .product-price-row .new {
        font-size: 34px;
    }

    .discount-chip {
        font-size: 22px;
        padding: 4px 7px;
    }

    .product-bottom-price {
        font-size: 30px;
    }
}
