:root {
    color-scheme: dark;
    --bg: #07111f;
    --bg-soft: #0f1f33;
    --panel: rgba(13, 27, 45, 0.82);
    --panel-strong: rgba(8, 18, 31, 0.92);
    --line: rgba(156, 177, 205, 0.2);
    --text: #f6fbff;
    --muted: #9fb0c9;
    --faint: #6f8099;
    --cyan: #46d5e6;
    --cyan-strong: #9af3ff;
    --mint: #65e4a8;
    --rose: #fb7185;
    --violet: #c5a7ff;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 14% 6%, rgba(70, 213, 230, 0.2), transparent 28rem),
        radial-gradient(circle at 85% 8%, rgba(197, 167, 255, 0.16), transparent 26rem),
        linear-gradient(135deg, var(--bg) 0%, #0a1322 48%, #06101c 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background-image:
        linear-gradient(rgba(156, 177, 205, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(156, 177, 205, 0.055) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

.site-header,
.hero,
.products-section,
.payment-section,
.trust-section,
.faq-section,
.site-footer,
.detail-page,
.form-page,
.admin-page {
    width: min(100% - 32px, 1180px);
    margin-inline: auto;
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-logo-frame {
    display: inline-grid;
    width: 92px;
    height: 54px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(70, 213, 230, 0.38);
    border-radius: var(--radius);
    background: rgba(4, 12, 22, 0.48);
    box-shadow: 0 0 32px rgba(70, 213, 230, 0.18);
    overflow: hidden;
}

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

.brand-copy {
    display: grid;
    min-width: 0;
}

.brand-name {
    font-size: 0.96rem;
    font-weight: 800;
    white-space: nowrap;
}

.brand-domain,
.product-key,
.package-row span,
.more-packages,
.site-footer {
    color: var(--muted);
}

.brand-domain,
.product-key {
    font-size: 0.78rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #d9e5f5;
    font-size: 0.92rem;
}

.site-nav a,
.support-link,
.site-footer a {
    transition: color 160ms ease;
}

.site-nav a:hover,
.support-link:hover,
.site-footer a:hover {
    color: var(--cyan-strong);
}

.hero {
    padding: 64px 0 72px;
    text-align: center;
}

.hero-inner {
    max-width: 820px;
    margin: 0 auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    margin: 0 0 24px;
    padding: 9px 14px;
    border: 1px solid rgba(70, 213, 230, 0.22);
    border-radius: 999px;
    background: rgba(70, 213, 230, 0.1);
    color: #d8fbff;
    font-size: 0.88rem;
}

.eyebrow span {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--cyan);
    box-shadow: 0 0 18px rgba(70, 213, 230, 0.85);
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    max-width: 920px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.5rem, 7vw, 4.9rem);
    font-weight: 950;
    line-height: 1.02;
}

.hero-copy {
    max-width: 680px;
    margin: 24px auto 0;
    color: #c3d0e2;
    font-size: 1.05rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: var(--radius);
    padding: 12px 20px;
    font-size: 0.92rem;
    font-weight: 850;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--cyan);
    color: #03111c;
    box-shadow: 0 0 36px rgba(70, 213, 230, 0.22);
}

.button-primary:hover {
    background: var(--cyan-strong);
}

.button-secondary {
    border: 1px solid rgba(197, 167, 255, 0.34);
    background: rgba(197, 167, 255, 0.1);
    color: #efe8ff;
}

.button-secondary:hover {
    border-color: rgba(197, 167, 255, 0.54);
    background: rgba(197, 167, 255, 0.16);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 900px;
    margin: 48px auto 0;
    text-align: left;
}

.stats div,
.product-card,
.empty-state {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--panel), rgba(13, 27, 45, 0.55));
    box-shadow: var(--shadow);
}

.stats div {
    padding: 22px;
}

.stats strong {
    display: block;
    font-size: 1.85rem;
    line-height: 1;
}

.stats span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.products-section {
    padding: 56px 0 76px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.section-kicker {
    margin: 0 0 8px;
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.12;
}

.section-heading p:not(.section-kicker) {
    max-width: 660px;
    margin: 12px 0 0;
    color: var(--muted);
}

.support-link {
    flex: 0 0 auto;
    color: var(--cyan-strong);
    font-weight: 800;
}

.notice {
    margin-bottom: 24px;
    border-radius: var(--radius);
    padding: 16px 18px;
}

.notice-error {
    border: 1px solid rgba(251, 113, 133, 0.34);
    background: rgba(251, 113, 133, 0.12);
    color: #ffe4e8;
}

.catalog-filters {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 260px) auto auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(4, 12, 22, 0.38);
    padding: 14px;
}

.catalog-filters label,
.order-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(156, 177, 205, 0.24);
    border-radius: var(--radius);
    background: rgba(5, 13, 24, 0.72);
    color: var(--text);
    font: inherit;
    padding: 12px 13px;
}

textarea {
    resize: vertical;
}

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

.product-card {
    display: flex;
    min-height: 390px;
    flex-direction: column;
    padding: 22px;
}

.product-image {
    display: block;
    width: 100%;
    height: 150px;
    margin-bottom: 16px;
    border: 1px solid rgba(156, 177, 205, 0.16);
    border-radius: var(--radius);
    background: rgba(4, 12, 22, 0.42);
    object-fit: cover;
}

.product-image-fallback {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    place-items: center;
    color: var(--cyan-strong);
    font-weight: 950;
    background:
        radial-gradient(circle at 30% 25%, rgba(70, 213, 230, 0.28), transparent 13rem),
        linear-gradient(135deg, rgba(10, 28, 48, 0.92), rgba(19, 34, 58, 0.72));
}

.product-image-fallback span {
    font-size: 2.2rem;
    line-height: 1;
}

.product-image-fallback small {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.product-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.category,
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 850;
}

.category {
    margin: 0 0 12px;
    border: 1px solid rgba(70, 213, 230, 0.22);
    background: rgba(70, 213, 230, 0.1);
    color: #d8fbff;
}

h3 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.2;
}

.product-key {
    margin: 5px 0 0;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.badge {
    flex: 0 0 auto;
    white-space: nowrap;
}

.badge-instant {
    border: 1px solid rgba(101, 228, 168, 0.26);
    background: rgba(101, 228, 168, 0.12);
    color: #d7ffe8;
}

.badge-email {
    border: 1px solid rgba(197, 167, 255, 0.26);
    background: rgba(197, 167, 255, 0.12);
    color: #efe8ff;
}

.badge-manual {
    border: 1px solid rgba(217, 229, 245, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #eef5ff;
}

.description {
    margin: 18px 0 0;
    color: #d7e3f3;
    font-size: 0.93rem;
    line-height: 1.7;
    max-height: 13.6em;
    overflow: hidden;
}

.summary-description {
    min-height: 5.1em;
    max-height: 5.1em;
}

.description strong {
    color: #ffffff;
    font-weight: 900;
}

.description em {
    color: #d8fbff;
    font-style: normal;
    font-weight: 750;
}

.description code {
    border: 1px solid rgba(156, 177, 205, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 5px;
    color: #ffffff;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 0.86em;
}

.price-panel {
    display: grid;
    gap: 12px;
    margin-top: 20px;
    border: 1px solid rgba(156, 177, 205, 0.18);
    border-radius: var(--radius);
    background: rgba(4, 12, 22, 0.42);
    padding: 14px;
}

.price-panel > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.price-panel span {
    color: var(--muted);
    font-size: 0.84rem;
}

.price-panel div:first-child span {
    color: var(--faint);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.price-panel strong {
    color: var(--cyan-strong);
}

.package-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.package-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    padding: 12px 13px;
}

.package-row p {
    margin: 0;
    color: #f3f8ff;
    font-size: 0.92rem;
    font-weight: 800;
}

.package-row span {
    display: block;
    margin-top: 2px;
    font-size: 0.78rem;
}

.package-row strong {
    flex: 0 0 auto;
    color: var(--cyan-strong);
    font-size: 0.9rem;
}

.more-packages {
    margin: 0;
    font-size: 0.8rem;
}

.empty-packages {
    margin-top: 16px;
    border: 1px dashed rgba(156, 177, 205, 0.26);
    border-radius: var(--radius);
    padding: 14px;
    color: var(--muted);
    font-size: 0.9rem;
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
}

.payment-section,
.trust-section,
.faq-section {
    padding: 42px 0 68px;
}

.payment-grid,
.trust-grid,
.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.payment-grid article,
.trust-grid article,
.faq-grid details {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--panel), rgba(13, 27, 45, 0.52));
    box-shadow: var(--shadow);
    padding: 22px;
}

.payment-grid span {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--cyan);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.payment-grid strong {
    display: block;
    color: var(--text);
    font-size: 1.08rem;
}

.payment-grid p {
    margin: 10px 0 0;
    color: var(--muted);
}

.trust-grid strong {
    color: var(--cyan);
    font-size: 0.85rem;
    letter-spacing: 0.16em;
}

.trust-grid h3,
.faq-grid summary {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 900;
}

.trust-grid p,
.faq-grid p {
    margin: 10px 0 0;
    color: var(--muted);
}

.faq-grid summary {
    cursor: pointer;
}

.order-button {
    background: #ffffff;
    color: #06101c;
}

.order-button:hover {
    background: #d8fbff;
}

.empty-state {
    padding: 38px;
    text-align: center;
}

.empty-state h3 {
    font-size: 1.55rem;
}

.empty-state p {
    max-width: 600px;
    margin: 12px auto 22px;
    color: var(--muted);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    font-size: 0.9rem;
}

.site-footer p {
    margin: 0;
}

.site-footer div {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.detail-page,
.form-page,
.admin-page {
    padding: 42px 0 76px;
}

.detail-hero,
.form-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--panel), rgba(13, 27, 45, 0.55));
    box-shadow: var(--shadow);
}

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
    padding: 26px;
}

.detail-image {
    width: 100%;
    min-height: 240px;
    border-radius: var(--radius);
    background: rgba(4, 12, 22, 0.42);
    object-fit: cover;
}

.detail-description {
    max-height: none;
}

.detail-copy {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.detail-copy-block {
    border: 1px solid rgba(156, 177, 205, 0.16);
    border-radius: var(--radius);
    background: rgba(4, 12, 22, 0.28);
    padding: 16px;
}

.detail-copy-block h3 {
    margin-bottom: 10px;
    color: var(--cyan-strong);
    font-size: 1rem;
}

.detail-copy-block p {
    margin: 0;
    color: #d7e3f3;
}

.detail-copy-block ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 20px;
}

.detail-copy-block li {
    color: #d7e3f3;
}

.detail-section {
    margin-top: 38px;
}

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

.package-card {
    display: grid;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    padding: 20px;
}

.package-card p {
    margin: 8px 0 0;
    color: var(--muted);
}

.package-card strong {
    color: var(--cyan-strong);
    font-size: 1.3rem;
}

.form-panel {
    max-width: 760px;
    margin: 0 auto;
    padding: 28px;
}

.order-form {
    display: grid;
    gap: 16px;
}

.summary-list {
    display: grid;
    gap: 10px;
    margin: 20px 0;
}

.summary-list div {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 12px;
    border-bottom: 1px solid rgba(156, 177, 205, 0.12);
    padding-bottom: 10px;
}

.summary-list dt {
    color: var(--muted);
    font-weight: 850;
}

.summary-list dd {
    margin: 0;
}

.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid rgba(156, 177, 205, 0.14);
    padding: 13px 14px;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.admin-table small {
    color: var(--muted);
}

.status-pill {
    display: inline-flex;
    border: 1px solid rgba(70, 213, 230, 0.28);
    border-radius: 999px;
    background: rgba(70, 213, 230, 0.1);
    color: #d8fbff;
    padding: 4px 9px;
    font-size: 0.8rem;
    font-weight: 850;
}

@media (max-width: 920px) {
    .section-heading,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-grid,
    .package-grid,
    .payment-grid,
    .trust-grid,
    .faq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-filters,
    .detail-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }

    .hero {
        padding-top: 42px;
    }

    .hero-actions,
    .stats,
    .product-grid,
    .package-grid,
    .payment-grid,
    .trust-grid,
    .faq-grid,
    .card-actions {
        grid-template-columns: 1fr;
    }

    .button,
    .hero-actions .button {
        width: 100%;
    }

    .stats {
        display: grid;
    }

    .catalog-filters,
    .product-card-head,
    .price-panel > div,
    .package-row,
    .summary-list div {
        align-items: flex-start;
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .badge {
        align-self: flex-start;
    }
}
