﻿:root {
    --bg: #04070d;
    --bg-soft: #0b1019;
    --panel: #101623;
    --panel-2: #141c2b;
    --line: #253047;
    --line-soft: #2f3f5f;
    --text: #f4f8ff;
    --muted: #a7b2c8;
    --accent: #6397f7;
    --accent-strong: #4e83e8;
    --accent-dark: #355faf;
    --ok: #37d999;
    --danger: #ff6868;
    --danger-soft: rgba(255, 104, 104, 0.14);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Montserrat", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    -webkit-tap-highlight-color: transparent;
    background:
        radial-gradient(1300px 600px at 75% -10%, rgba(99, 151, 247, 0.16), transparent 65%),
        radial-gradient(1000px 500px at -5% 15%, rgba(99, 151, 247, 0.1), transparent 70%),
        linear-gradient(180deg, #02050b 0%, #050912 100%);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -48px;
    z-index: 2000;
    padding: 10px 14px;
    border-radius: 10px;
    background: #7ea9ff;
    color: #081022;
    font-weight: 700;
    text-decoration: none;
    transition: top 0.16s ease;
}

.skip-link:focus-visible {
    top: 12px;
}

.bg-layer {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(99, 151, 247, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 151, 247, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(180deg, black, transparent 90%);
}

.wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.page-content {
    padding: 28px 0 48px;
}

/* Public header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(99, 151, 247, 0.2);
    background: rgba(4, 7, 13, 0.82);
    backdrop-filter: blur(12px);
}

.header-shell {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
    letter-spacing: 0.4px;
}

.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 2px 14px rgba(99, 151, 247, 0.4));
}

.brand-text {
    font-size: 22px;
    font-weight: 800;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-menu {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 16px;
    background: rgba(96, 115, 156, 0.34);
    border: 1px solid rgba(124, 145, 189, 0.5);
}

.social-menu {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 16px;
    background: rgba(96, 115, 156, 0.34);
    border: 1px solid rgba(124, 145, 189, 0.5);
}

.site-menu a {
    color: #edf3ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 15px;
    border-radius: 11px;
    transition: 0.2s ease;
}

.site-menu a:hover {
    background: rgba(255, 255, 255, 0.11);
}

.social-link {
    text-decoration: none;
    color: #f6f9ff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 14px;
    padding: 11px 24px;
    border: 1px solid #7fa7f8;
    background: linear-gradient(135deg, #77a4ff 0%, #5b8fec 100%);
    box-shadow: 0 8px 22px rgba(99, 151, 247, 0.25);
    transition: 0.2s ease;
}

.social-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(99, 151, 247, 0.34);
}

/* Common public components */
.btn {
    border-radius: 14px;
    padding: 12px 16px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s ease;
    display: inline-block;
    text-align: center;
    touch-action: manipulation;
}

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

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.site-menu a:focus-visible,
.social-link:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(126, 169, 255, 0.95);
    outline-offset: 2px;
}

.btn-main {
    background: linear-gradient(135deg, var(--accent) 0%, #82aefe 100%);
    color: #081022;
    border-color: rgba(147, 179, 255, 0.6);
    box-shadow: 0 10px 20px rgba(99, 151, 247, 0.2);
}

.btn-ghost {
    color: var(--text);
    border-color: var(--line-soft);
    background: rgba(17, 24, 37, 0.65);
}

.btn-inline {
    width: auto;
}

.flash-list {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.flash-item {
    border: 1px solid #2f5fa6;
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(99, 151, 247, 0.14);
}

.panel,
.product-page-card,
.checkout-card {
    border: 1px solid rgba(99, 151, 247, 0.22);
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(14, 21, 34, 0.95), rgba(8, 13, 23, 0.95));
    box-shadow: 0 26px 44px rgba(0, 0, 0, 0.3);
}

.panel {
    padding: 22px;
}

.form-panel {
    max-width: 650px;
    margin: 0 auto;
}

.form-panel-wide {
    max-width: 900px;
    margin: 0 auto;
}

.muted {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.hint {
    margin: 0;
    color: #8f9ebb;
    font-size: 12px;
}

.promo-feedback {
    margin: 2px 0 0;
    font-size: 13px;
    font-weight: 600;
}

.promo-feedback--ok {
    color: #8ff0bc;
}

.promo-feedback--error {
    color: #ffb3b3;
}

.alert {
    border: 1px solid rgba(255, 131, 131, 0.56);
    border-radius: 12px;
    padding: 10px 12px;
    background: var(--danger-soft);
    color: #ffe4e4;
}

.summary-box {
    border: 1px solid rgba(99, 151, 247, 0.3);
    border-radius: 14px;
    background: rgba(13, 19, 31, 0.75);
    padding: 12px;
    display: grid;
    gap: 8px;
}

.summary-total {
    font-size: 25px;
    font-weight: 800;
    color: #f9fbff;
}

.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-row span {
    font-size: 11px;
    border: 1px solid #41557d;
    border-radius: 999px;
    padding: 5px 10px;
    font-weight: 700;
    color: #ecf2ff;
    letter-spacing: 0.2px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 11px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.status-on {
    color: #b8ffe4;
    border-color: rgba(55, 217, 153, 0.55);
    background: rgba(55, 217, 153, 0.14);
}

.status-off {
    color: #ffd2d2;
    border-color: rgba(255, 104, 104, 0.55);
    background: rgba(255, 104, 104, 0.14);
}

/* Home */
.hero-showcase {
    min-height: 470px;
    border-radius: 24px;
    border: 1px solid rgba(99, 151, 247, 0.24);
    background:
        linear-gradient(110deg, rgba(4, 9, 18, 0.92), rgba(7, 13, 24, 0.7)),
        url("https://static.tildacdn.com/tild3137-3066-4630-b063-306565623439/photo.jpg") center/cover no-repeat;
    overflow: hidden;
    margin-bottom: 20px;
}

.hero-overlay {
    max-width: 650px;
    padding: 54px 28px;
}

.hero-kicker {
    margin: 0 0 12px;
    color: #a6c2ff;
    font-weight: 700;
    letter-spacing: 0.32em;
    font-size: 12px;
    text-transform: uppercase;
}

.hero-showcase h1 {
    margin: 0;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 0.95;
    text-transform: uppercase;
}

.hero-showcase p {
    margin: 16px 0 0;
    max-width: 620px;
    color: #d4def0;
    font-size: 18px;
    line-height: 1.45;
}

.hero-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.section-headline {
    margin: 8px 0 16px;
}

.section-headline h2 {
    margin: 0;
    font-size: clamp(27px, 4vw, 42px);
    line-height: 1.05;
}

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

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.product-card {
    border: 1px solid rgba(99, 151, 247, 0.22);
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(165deg, rgba(14, 22, 34, 0.95), rgba(9, 14, 23, 0.95));
}

.product-preview {
    height: 170px;
    border-bottom: 1px solid rgba(99, 151, 247, 0.24);
    background:
        linear-gradient(120deg, rgba(10, 18, 31, 0.45), rgba(10, 20, 37, 0.88)),
        url("https://images.unsplash.com/photo-1511512578047-dfb367046420?auto=format&fit=crop&w=1100&q=80") center/cover no-repeat;
}

.product-body {
    padding: 16px;
    display: grid;
    gap: 10px;
}

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

.product-head h3 {
    margin: 0;
    font-size: 34px;
    line-height: 1;
    word-break: break-word;
}

.product-desc {
    margin: 0;
    color: var(--muted);
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.old-price {
    color: #90a0bf;
    text-decoration: line-through;
    font-size: 24px;
}

.new-price {
    color: #fff;
    font-size: 46px;
    font-weight: 800;
    line-height: 1;
}

.meta-row {
    color: var(--muted);
    font-size: 14px;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.empty-box {
    border: 1px dashed rgba(110, 145, 211, 0.6);
    border-radius: 16px;
    padding: 22px;
    color: var(--muted);
}

/* Product page */
.product-page-card {
    overflow: hidden;
}

.product-page-banner {
    height: 220px;
    border-bottom: 1px solid rgba(99, 151, 247, 0.24);
    background:
        linear-gradient(120deg, rgba(5, 11, 20, 0.4), rgba(6, 12, 22, 0.9)),
        url("https://images.unsplash.com/photo-1560253023-3ec5d502959f?auto=format&fit=crop&w=1400&q=80") center/cover no-repeat;
}

.product-page-body {
    padding: 20px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.panel-head h1 {
    margin: 0;
    font-size: clamp(30px, 5vw, 50px);
    line-height: 1;
}

.summary-grid {
    margin-top: 12px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.summary-grid > div,
.legal-text {
    border: 1px solid rgba(99, 151, 247, 0.22);
    border-radius: 12px;
    background: rgba(12, 18, 29, 0.82);
    padding: 10px;
}

.summary-grid span {
    color: #9dafd1;
}

.mt-20 {
    margin-top: 20px;
}

/* Checkout */
.checkout-shell {
    display: grid;
    place-items: center;
}

.checkout-card {
    width: min(760px, 100%);
    padding: 22px;
}

.checkout-card h1 {
    margin: 0;
    font-size: clamp(30px, 5vw, 50px);
    line-height: 1;
}

.checkout-meta {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.checkout-meta > div {
    border: 1px solid rgba(99, 151, 247, 0.28);
    border-radius: 12px;
    background: rgba(13, 19, 32, 0.78);
    padding: 10px;
    display: grid;
    gap: 4px;
}

.checkout-meta span {
    color: #93a5c9;
    font-size: 12px;
}

.checkout-meta strong {
    font-size: 16px;
}

.checkout-form {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.checkout-compact {
    gap: 10px;
}

.checkout-paybox {
    margin-top: 2px;
}

label {
    color: #b7c4dd;
    font-size: 13px;
}

input[type="email"],
input[type="password"],
input[type="number"],
input[type="text"],
input[type="url"],
input[type="date"],
input[type="month"],
select,
textarea {
    width: 100%;
    border: 1px solid #354a74;
    border-radius: 12px;
    padding: 12px;
    color: var(--text);
    background: linear-gradient(130deg, #0f1524 0%, #0b1220 100%);
    font-family: inherit;
    outline: none;
}

input,
select,
textarea,
button {
    font-size: 16px;
}

input[type="number"] {
    appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #7ea9ff;
    box-shadow: 0 0 0 3px rgba(99, 151, 247, 0.14);
}

select {
    color-scheme: light;
}

select option {
    color: #0f1830;
    background: #f5f8ff;
}

select option:checked {
    color: #ffffff;
    background: #2f76dd;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

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

.methods-list {
    border: 1px solid rgba(84, 109, 158, 0.58);
    border-radius: 16px;
    background: linear-gradient(175deg, rgba(11, 17, 29, 0.94), rgba(8, 12, 21, 0.94));
    overflow: hidden;
}

.crypto-variant-wrap {
    display: grid;
    gap: 6px;
}

.crypto-variant-wrap[hidden] {
    display: none !important;
}

.method-row {
    position: relative;
    display: block;
    min-height: 66px;
    padding: 0 14px;
    cursor: pointer;
    border-bottom: 1px solid rgba(80, 104, 145, 0.38);
    transition: 0.16s ease;
}

.method-row:last-of-type {
    border-bottom: none;
}

.method-row:hover {
    background: rgba(78, 109, 167, 0.14);
}

.method-row input {
    position: absolute;
    opacity: 0;
    inline-size: 1px;
    block-size: 1px;
}

.method-row-main {
    min-height: 66px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.method-row:focus-within {
    outline: 2px solid rgba(99, 151, 247, 0.95);
    outline-offset: 2px;
    background: rgba(78, 109, 167, 0.18);
}

.method-row-left {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #3a507b;
    border-radius: 12px;
    padding: 11px;
    background: rgba(14, 22, 36, 0.9);
}

.method-item input {
    margin: 0;
}

.method-item-rich {
    position: relative;
    min-height: 52px;
    cursor: pointer;
    transition: 0.18s ease;
}

.method-item-rich:hover {
    border-color: #7ea9ff;
}

.method-item-rich input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.method-content {
    width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.method-icon-wrap {
    width: 36px;
    height: 36px;
    padding: 4px;
    border-radius: 10px;
    border: 1px solid #4a68a5;
    background: linear-gradient(160deg, #18253f, #122039);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
    line-height: 0;
}

.method-icon {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.method-icon-wrap--paypal {
    width: 56px;
    height: 30px;
    padding: 4px 6px;
    border-radius: 9px;
    background: #f7fbff;
    border-color: rgba(138, 171, 232, 0.7);
}

.method-icon-wrap--sbp {
    background: #f7fbff;
    border-color: rgba(138, 171, 232, 0.7);
    padding: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.method-icon--sbp {
    width: 84%;
    height: 84%;
    margin: 0 auto;
    object-position: center;
    transform: none;
}

.method-title {
    line-height: 1.3;
    font-weight: 700;
    font-size: 15px;
    color: #e9f1ff;
}

.method-check {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 2px solid #4e5a70;
    background: #4e5a70;
    flex: 0 0 auto;
    position: relative;
}

.method-row.is-selected {
    background: rgba(52, 92, 169, 0.2);
}

.method-row.is-selected .method-check {
    border-color: #3e7cff;
    background: #3e7cff;
}

.method-row.is-selected .method-check::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -56%);
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
}

.method-sheet-note {
    margin: 0;
    padding: 11px 14px 13px;
    color: #98a6c2;
    font-size: 13px;
    border-top: 1px solid rgba(80, 104, 145, 0.38);
}

.crypto-variant-wrap.is-invalid select {
    border-color: #ff6f7d;
    box-shadow: 0 0 0 3px rgba(255, 111, 125, 0.16);
}

.promo-row {
    display: grid;
    grid-template-columns: 1fr 140px;
    gap: 8px;
}

.promo-apply {
    border-radius: 12px;
    border: 1px solid #364f7b;
    background: rgba(17, 24, 37, 0.8);
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}

.qty-row {
    display: grid;
    grid-template-columns: 56px 1fr 56px;
    gap: 8px;
    align-items: center;
}

#qty-input {
    text-align: center;
    font-weight: 700;
}

.qty-btn {
    height: 46px;
    border-radius: 12px;
    border: 1px solid #638cd8;
    background: #0f182b;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.qty-btn:hover {
    background: #132243;
}

.agree-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 4px;
    color: #c4d2eb;
}

.agree-line input {
    margin-top: 3px;
}

.agree-line a,
a {
    color: #8bb3ff;
}

.success-box {
    margin-top: 10px;
    border: 1px solid rgba(55, 217, 153, 0.5);
    border-radius: 14px;
    padding: 12px;
    background: rgba(55, 217, 153, 0.1);
}

.key-block,
.success-box pre,
code {
    background: #0a1020;
    border: 1px solid #30446b;
    border-radius: 10px;
    padding: 9px;
    color: #e4f0ff;
    white-space: pre-wrap;
    word-break: break-word;
}

hr {
    border: none;
    border-top: 1px solid rgba(55, 217, 153, 0.45);
    margin: 12px 0;
}

.success-review {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(99, 151, 247, 0.24);
}

.success-review h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

.success-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Footer */
.site-footer {
    border-top: 1px solid rgba(99, 151, 247, 0.24);
    margin-top: 20px;
    padding: 22px 0 28px;
    background: rgba(4, 8, 14, 0.7);
}

.checkout-submit {
    width: 100%;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.footer-row p {
    margin: 6px 0 0;
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
    text-align: right;
}

.footer-links a {
    display: inline-flex;
    text-decoration: none;
}

.footer-copy {
    color: #88a0c9;
    margin-top: 14px;
    font-size: 12px;
}

/* Admin layout */
.admin-header {
    background: rgba(8, 12, 20, 0.9);
}

.admin-header .brand {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #83afff 0%, #5f90ee 100%);
    color: #071124;
    font-size: 14px;
    font-weight: 800;
}

.header-row {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.main-nav a {
    color: #d8e4ff;
    text-decoration: none;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
}

.main-nav a:hover {
    border-color: #4d6799;
    background: rgba(99, 151, 247, 0.1);
}

.main-nav a.active {
    border-color: rgba(131, 175, 255, 0.65);
    background: rgba(99, 151, 247, 0.22);
    color: #f3f7ff;
}

.admin-login {
    margin-top: 26px;
}

.admin-2fa-resend {
    margin-top: 8px;
}

.admin-2fa-resend .btn {
    width: 100%;
}

.admin-panel h1 {
    margin: 0;
    font-size: 32px;
}

.admin-panel h2 {
    margin: 22px 0 10px;
    font-size: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.dashboard-actions {
    margin-top: 8px;
}

.dashboard-actions input[type="email"] {
    width: 240px;
    max-width: 100%;
}

.dashboard-statuses {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.stat-box {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #0d1423;
    padding: 12px;
}

.stat-label {
    color: var(--muted);
    font-size: 12px;
}

.stat-value {
    margin-top: 8px;
    font-size: 24px;
    font-weight: 800;
}

.period-switch {
    display: inline-flex;
    gap: 8px;
}

.period-btn {
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid var(--line-soft);
    color: var(--muted);
    font-size: 12px;
}

.period-btn.active {
    color: #071124;
    background: linear-gradient(135deg, var(--accent), #8ab3ff);
    border-color: transparent;
}

.chart-wrap {
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #0d1423;
    height: 220px;
    padding: 12px 10px 8px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(24px, 1fr);
    align-items: end;
    gap: 6px;
    overflow-x: auto;
}

.chart-col {
    display: grid;
    gap: 6px;
    justify-items: center;
    min-width: 24px;
}

.chart-bar {
    width: 100%;
    border-radius: 6px 6px 4px 4px;
    background: linear-gradient(180deg, #8ab3ff, var(--accent));
    min-height: 4px;
}

.chart-label {
    font-size: 10px;
    color: #90a6cb;
    white-space: nowrap;
}

.table-wrap {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: auto;
    margin-top: 10px;
}

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

.table th,
.table td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #1f2a40;
    vertical-align: top;
    font-size: 13px;
}

.table th {
    color: #d6e2ff;
    background: #111b2d;
    position: sticky;
    top: 0;
}

.table tbody tr:hover {
    background: rgba(99, 151, 247, 0.08);
}

.row-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.link-btn {
    border: none;
    background: transparent;
    color: #90b5ff;
    padding: 0;
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
}

.filters-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    align-items: end;
}

.filters-inline {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.filters-inline form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
}

.filters-inline form input[type="email"] {
    width: 260px;
    max-width: 100%;
    margin: 0;
}

.promo-delete-inline {
    margin-top: 8px;
}

.promo-delete-inline input[type="text"] {
    width: 320px;
    max-width: 100%;
    margin: 0;
}

.filter-actions {
    display: flex;
    gap: 8px;
}

.split-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 980px) {
    .header-shell {
        min-height: auto;
        padding: 10px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .header-right {
        width: 100%;
        justify-content: flex-start;
    }

    .site-menu {
        order: 2;
        width: 100%;
        justify-content: flex-start;
    }

    .social-menu {
        order: 1;
        width: 100%;
        justify-content: flex-start;
    }

    .social-link {
        padding: 10px 16px;
    }

    .hero-showcase {
        min-height: 390px;
    }

    .hero-overlay {
        padding: 30px 18px;
    }

    .hero-showcase p {
        font-size: 15px;
    }

    .product-head h3 {
        font-size: 28px;
    }

    .new-price {
        font-size: 38px;
    }

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

    .methods-rich {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-actions {
        flex-direction: column;
    }

    .summary-grid,
    .checkout-meta,
    .split-2 {
        grid-template-columns: 1fr;
    }

    .promo-row {
        grid-template-columns: 1fr;
    }

    .qty-row {
        grid-template-columns: 48px 1fr 48px;
    }

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

    .footer-links {
        text-align: left;
        align-items: flex-start;
    }

    .header-row {
        min-height: auto;
        padding: 10px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .main-nav {
        justify-content: flex-start;
    }

    .filters-inline form {
        width: 100%;
    }

    .filters-inline form input[type="email"] {
        width: 100%;
    }

    .chart-wrap {
        height: 190px;
    }
}

@media (max-width: 760px) {
    .wrap {
        width: min(1180px, calc(100% - 20px));
    }

    .page-content {
        padding: 18px 0 32px;
    }

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

    .brand-text {
        font-size: 19px;
    }

    .site-menu {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        padding: 6px;
    }

    .site-menu a {
        width: 100%;
        min-height: 40px;
        padding: 8px 6px;
        font-size: 13px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }

    .social-menu {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        padding: 6px;
    }

    .social-link {
        width: 100%;
        min-height: 40px;
        text-align: center;
        padding: 8px 6px;
        font-size: 13px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }

    .hero-showcase {
        min-height: 360px;
        border-radius: 18px;
    }

    .hero-overlay {
        padding: 24px 14px;
    }

    .hero-showcase h1 {
        font-size: clamp(32px, 11vw, 48px);
    }

    .hero-actions {
        gap: 8px;
    }

    .hero-actions .btn {
        width: 100%;
    }

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

    .product-preview {
        height: 150px;
    }

    .product-head h3 {
        font-size: 30px;
    }

    .new-price {
        font-size: 40px;
    }

    .checkout-card {
        border-radius: 16px;
        padding: 14px;
    }

    .checkout-card h1 {
        font-size: clamp(30px, 9vw, 40px);
    }

    .checkout-meta > div {
        padding: 9px;
    }

    .method-item {
        padding: 11px 10px;
    }

    .method-title {
        font-size: 17px;
    }

    .method-row {
        min-height: 60px;
        padding: 0 11px;
    }

    .method-row-main {
        min-height: 60px;
    }

    .method-check {
        width: 22px;
        height: 22px;
    }

    .summary-box {
        border-radius: 12px;
        padding: 10px;
    }

    .summary-total {
        font-size: 22px;
    }

    .checkout-submit {
        position: sticky;
        bottom: 10px;
        z-index: 4;
        box-shadow: 0 10px 24px rgba(99, 151, 247, 0.4);
    }

    .site-footer {
        padding-bottom: calc(26px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 520px) {
    .header-shell {
        gap: 9px;
    }

    .header-right {
        gap: 8px;
    }

    .brand-text {
        font-size: 17px;
    }

    .hero-showcase {
        min-height: 330px;
    }

    .hero-kicker {
        letter-spacing: 0.22em;
        font-size: 11px;
    }

    .hero-showcase p {
        font-size: 14px;
    }

    .section-headline h2 {
        font-size: 30px;
    }

    .product-body {
        padding: 13px;
    }

    .old-price {
        font-size: 19px;
    }

    .new-price {
        font-size: 34px;
    }

    .promo-row {
        grid-template-columns: 1fr;
    }

    .promo-apply {
        height: 44px;
    }

    .qty-row {
        grid-template-columns: 44px 1fr 44px;
    }

    .qty-btn {
        height: 44px;
        font-size: 20px;
    }

    .agree-line {
        font-size: 12px;
    }

    .method-sheet-note {
        font-size: 12px;
        padding: 9px 11px 11px;
    }
}

@media (max-width: 390px) {
    .methods-rich {
        grid-template-columns: 1fr;
    }
}
