@font-face {
    font-family: "JetBrains Sans";
    src: url("public/fonts/JetBrainsSans-Regular.woff2");
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("public/fonts/JetBrainsMono-Regular.woff2");
    font-display: swap;
}

:root {
    --bg-0: #0a0514;
    --bg-1: #14092b;
    --bg-2: #1d0f3d;

    --violet-50: #f5f3ff;
    --violet-200: #e9d5ff;
    --violet-300: #d8b4fe;
    --violet-400: #c084fc;
    --violet-500: #a855f7;
    --violet-600: #9333ea;
    --violet-700: #7c3aed;
    --violet-800: #6d28d9;
    --violet-900: #4c1d95;

    --text: #ece4ff;
    --text-dim: #b9a8d8;
    --text-muted: #8a7aac;

    --border: rgba(168, 85, 247, 0.18);
    --border-strong: rgba(192, 132, 252, 0.45);

    --card: rgba(30, 14, 56, 0.55);
    --card-hover: rgba(45, 21, 82, 0.65);

    --shadow-glow: 0 0 60px rgba(168, 85, 247, 0.35);
    --shadow-card: 0 14px 40px rgba(0, 0, 0, 0.45);

    --radius: 16px;
    --radius-sm: 10px;

    color-scheme: dark;
    font-family: "JetBrains Sans", Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
    font-weight: 400;
    color: var(--text);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    min-height: 100vh;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(168, 85, 247, 0.18), transparent 60%),
        radial-gradient(900px 500px at -10% 20%, rgba(124, 58, 237, 0.20), transparent 60%),
        linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 60%, var(--bg-0) 100%);
    overflow-x: hidden;
    line-height: 1.5;
}

a { color: var(--violet-300); text-decoration: none; }
a:hover { color: var(--violet-200); }

img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* === Декоративный фон === */
.bg-grid {
    position: fixed; inset: 0;
    background-image:
        linear-gradient(rgba(168, 85, 247, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}
.bg-glow {
    position: fixed;
    width: 520px; height: 520px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}
.bg-glow--1 { background: #7c3aed; top: -120px; left: -100px; }
.bg-glow--2 { background: #a855f7; top: 30vh; right: -160px; }
.bg-glow--3 { background: #4c1d95; bottom: -200px; left: 30%; }

main, .site-header, .site-footer { position: relative; z-index: 1; }

/* === Шапка === */
.site-header {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    background: rgba(10, 5, 20, 0.55);
    position: sticky;
    top: 0;
    z-index: 50;
}
.site-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.5px;
}
.brand__mark {
    display: inline-grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(76, 29, 149, 0.4));
    border: 1px solid var(--border-strong);
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.3);
}
.brand__text {
    background: linear-gradient(90deg, #e9d5ff, #c084fc 60%, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav {
    display: flex;
    gap: 6px;
    margin-left: 28px;
    flex: 1;
}
.nav__link {
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--text-dim);
    font-weight: 500;
    transition: 0.2s;
}
.nav__link:hover {
    color: var(--text);
    background: rgba(168, 85, 247, 0.10);
}

.server-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(20, 9, 43, 0.65);
}
.server-status__dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse 1.8s infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.server-status__text { display: flex; flex-direction: column; line-height: 1.1; }
.server-status__ip { font-family: "JetBrains Mono", monospace; font-size: 14px; color: var(--text); }
.server-status__online { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.server-status__online b { color: var(--violet-300); }

.btn-copy {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-dim);
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}
.btn-copy:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: rgba(168, 85, 247, 0.12);
}

/* === Кнопки === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
    text-decoration: none;
}
.btn--primary {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 60%, #6d28d9 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.45), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 38px rgba(168, 85, 247, 0.55), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn--ghost {
    background: rgba(168, 85, 247, 0.08);
    color: var(--text);
    border-color: var(--border-strong);
}
.btn--ghost:hover { background: rgba(168, 85, 247, 0.15); color: #fff; }
.btn--block { width: 100%; padding: 14px 22px; font-size: 16px; }
.btn--small { padding: 10px 14px; font-size: 14px; background: rgba(168, 85, 247, 0.12); color: var(--text); border-color: var(--border-strong); }
.btn--small:hover { background: rgba(168, 85, 247, 0.22); }

/* === Hero === */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    padding: 80px 24px 60px;
    align-items: center;
}
.hero__badge {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--violet-200);
    background: rgba(168, 85, 247, 0.10);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 18px;
}
.hero__title {
    font-size: 64px;
    line-height: 1.05;
    font-weight: 800;
    margin: 0 0 18px;
    letter-spacing: -1px;
}
.grad {
    background: linear-gradient(90deg, #e9d5ff 0%, #c084fc 30%, #a855f7 60%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero__lead {
    font-size: 18px;
    color: var(--text-dim);
    max-width: 560px;
    margin: 0 0 28px;
}
.hero__lead b { color: var(--violet-200); font-weight: 600; }

.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }

.hero__stats { display: flex; gap: 36px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat b {
    font-family: "JetBrains Mono", monospace;
    font-size: 28px;
    font-weight: 700;
    color: var(--violet-200);
    line-height: 1;
    margin-bottom: 6px;
}
.stat span { font-size: 13px; color: var(--text-muted); }

/* === Hero art (кристалл) === */
.hero__art { position: relative; height: 360px; }
.hero__crystal {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    perspective: 800px;
}
.crystal-shape {
    width: 200px; height: 240px;
    background: linear-gradient(135deg, #c084fc 0%, #7c3aed 50%, #4c1d95 100%);
    clip-path: polygon(50% 0%, 100% 30%, 85% 100%, 15% 100%, 0% 30%);
    box-shadow:
        0 0 60px rgba(168, 85, 247, 0.6),
        inset 0 0 60px rgba(255, 255, 255, 0.15);
    animation: float 6s ease-in-out infinite, spin 20s linear infinite;
    filter: drop-shadow(0 30px 40px rgba(76, 29, 149, 0.6));
}
.crystal-shape--small {
    position: absolute;
    width: 80px; height: 100px;
    top: 20px; right: 30px;
    opacity: 0.7;
    animation: float 4s ease-in-out infinite reverse, spin 14s linear infinite reverse;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes spin  { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }

/* === Секции === */
.section { padding: 70px 24px; }
.section__head { text-align: center; margin-bottom: 48px; }
.section__title {
    font-size: 40px;
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
    background: linear-gradient(180deg, #fff 0%, #c084fc 110%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.section__subtitle { color: var(--text-muted); font-size: 16px; margin: 0; }

/* === Карточки === */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}
.cards--cases { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cards--items { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--card) 0%, rgba(20, 9, 43, 0.4) 100%);
    padding: 24px 22px 22px;
    overflow: hidden;
    transition: 0.25s;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}
.card::before {
    content: "";
    position: absolute;
    top: -1px; left: -1px; right: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--card-accent, #a855f7), transparent);
    opacity: 0.6;
}
.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(400px 200px at 50% -20%, var(--card-accent, #a855f7), transparent 60%);
    opacity: 0.10;
    pointer-events: none;
    transition: 0.25s;
}
.card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    background: linear-gradient(180deg, var(--card-hover) 0%, rgba(20, 9, 43, 0.5) 100%);
    box-shadow: 0 18px 48px rgba(0,0,0,0.55), 0 0 0 1px var(--card-accent, rgba(168, 85, 247, 0.3));
}
.card:hover::after { opacity: 0.22; }

.card__badge {
    position: absolute;
    top: 14px; right: 14px;
    padding: 4px 10px;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 999px;
    text-transform: uppercase;
}
.card__icon {
    width: 64px; height: 64px;
    border-radius: 14px;
    display: grid; place-items: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--card-accent, #a855f7), var(--card-accent-2, #4c1d95));
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.45), inset 0 0 30px rgba(255,255,255,0.08);
    font-size: 32px;
}
.card__title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}
.card__subtitle {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0 0 16px;
}
.card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.card__features li {
    font-size: 14px;
    color: var(--text-dim);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.card__features li::before {
    content: "✦";
    color: var(--card-accent, #c084fc);
    flex-shrink: 0;
    margin-top: 1px;
}
.card__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
}
.card__price-now {
    font-family: "JetBrains Mono", monospace;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
}
.card__price-old {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}
.card__buy {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--card-accent, #7c3aed);
    background: linear-gradient(135deg, var(--card-accent, #a855f7) 0%, var(--card-accent-2, #6d28d9) 100%);
    color: #fff;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.35);
}
.card__buy:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(168, 85, 247, 0.55); }

/* === FAQ === */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card);
    padding: 0 20px;
    transition: 0.2s;
}
.faq__item:hover { border-color: var(--border-strong); }
.faq__item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 0;
    font-weight: 600;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: "+";
    font-size: 22px;
    color: var(--violet-300);
    transition: transform 0.2s;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 0 0 18px; color: var(--text-dim); font-size: 15px; }

/* === Footer === */
.site-footer {
    margin-top: 80px;
    padding: 50px 0 32px;
    border-top: 1px solid var(--border);
    background: rgba(10, 5, 20, 0.6);
}
.site-footer__inner {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 40px;
}
.site-footer__brand p { color: var(--text-muted); font-size: 13px; margin-top: 12px; max-width: 360px; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.site-footer__cols h4 { color: var(--text); margin: 0 0 14px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.6px; }
.site-footer__cols a { display: block; color: var(--text-dim); font-size: 14px; padding: 4px 0; }
.site-footer__cols a:hover { color: var(--violet-200); }

/* === Modal === */
.modal {
    position: fixed; inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
    animation: fade 0.18s ease;
}
.modal[hidden] { display: none; }
.modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(5, 2, 12, 0.78);
    backdrop-filter: blur(8px);
}
.modal__dialog {
    position: relative;
    width: 100%;
    max-width: 540px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: linear-gradient(180deg, #1d0f3d 0%, #14092b 100%);
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(192, 132, 252, 0.1);
    animation: pop 0.22s cubic-bezier(0.2, 0.9, 0.4, 1.2);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop  { from { opacity: 0; transform: translateY(20px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

.modal__close {
    position: absolute;
    top: 14px; right: 14px;
    width: 36px; height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-dim);
    display: grid; place-items: center;
    cursor: pointer;
    transition: 0.2s;
}
.modal__close:hover { color: #fff; border-color: var(--border-strong); background: rgba(168,85,247,0.12); }

.modal__product {
    display: flex;
    gap: 16px;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.modal__icon {
    width: 64px; height: 64px;
    border-radius: 14px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--card-accent, #a855f7), var(--card-accent-2, #4c1d95));
    font-size: 32px;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.45);
    flex-shrink: 0;
}
.modal__kicker {
    display: inline-block;
    font-size: 12px;
    color: var(--violet-300);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.modal h3 { margin: 0 0 4px; font-size: 22px; color: #fff; }
.modal__desc { margin: 0; color: var(--text-muted); font-size: 14px; }

/* === Form === */
.form { display: flex; flex-direction: column; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
    font-size: 13px;
    color: var(--text-dim);
    font-weight: 600;
    letter-spacing: 0.3px;
}
.field__label em { color: #ef4444; font-style: normal; margin-left: 2px; }
.field__opt {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 12px;
    margin-left: 6px;
    text-transform: lowercase;
}
.field__input {
    background: rgba(10, 5, 20, 0.6);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 14px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    transition: 0.2s;
    width: 100%;
}
.field__input::placeholder { color: var(--text-muted); }
.field__input:focus {
    outline: none;
    border-color: var(--violet-500);
    background: rgba(20, 9, 43, 0.85);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.18);
}
.field__input.is-invalid { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15); }
.field__hint { font-size: 12px; color: var(--text-muted); }
.field__hint code {
    font-family: "JetBrains Mono", monospace;
    background: rgba(168, 85, 247, 0.15);
    color: var(--violet-200);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
}
.field__error { font-size: 12px; color: #ef4444; min-height: 0; }
.field__row { display: flex; gap: 8px; }
.field__row .field__input { flex: 1; }

/* === Summary === */
.summary {
    background: rgba(10, 5, 20, 0.55);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.summary__row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-dim);
}
.summary__row--discount { color: #22c55e; }
.summary__row--discount em { font-style: normal; opacity: 0.7; font-size: 12px; margin-left: 4px; }
.summary__row--total {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
}

/* === Pay options === */
.pay { border: none; padding: 0; margin: 0; }
.pay legend { font-size: 13px; color: var(--text-dim); font-weight: 600; margin-bottom: 8px; padding: 0; }
.pay__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.pay__opt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dim);
    background: rgba(10,5,20,0.4);
    transition: 0.2s;
}
.pay__opt input { accent-color: var(--violet-500); }
.pay__opt:hover { color: var(--text); border-color: var(--border-strong); }
.pay__opt:has(input:checked) {
    border-color: var(--violet-500);
    background: rgba(168, 85, 247, 0.12);
    color: #fff;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-dim);
    cursor: pointer;
    line-height: 1.4;
}
.check input { accent-color: var(--violet-500); margin-top: 2px; }

/* === Toast === */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 14px 22px;
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 14px 40px rgba(124, 58, 237, 0.5);
    z-index: 200;
    opacity: 0;
    transition: 0.3s;
}
.toast.is-shown { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.is-error { background: linear-gradient(135deg, #b91c1c, #7f1d1d); }
.toast.is-success { background: linear-gradient(135deg, #16a34a, #166534); }

/* === Header tools (currency + admin) === */
.header-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.currency { position: relative; }
.currency__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    background: rgba(20, 9, 43, 0.65);
    color: var(--text);
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
}
.currency__trigger:hover { border-color: var(--border-strong); background: rgba(168, 85, 247, 0.10); }
.currency__flag { font-size: 18px; line-height: 1; }
.currency__code { letter-spacing: 0.4px; }
.currency__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    list-style: none;
    margin: 0; padding: 6px;
    min-width: 200px;
    background: linear-gradient(180deg, #1d0f3d 0%, #14092b 100%);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    box-shadow: 0 18px 44px rgba(0,0,0,0.55);
    z-index: 60;
    animation: pop 0.18s ease;
}
.currency__menu[hidden] { display: none; }
.currency__menu li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-dim);
    font-size: 14px;
    transition: 0.15s;
}
.currency__menu li:hover { background: rgba(168, 85, 247, 0.14); color: #fff; }
.currency__menu li.is-active { background: rgba(168, 85, 247, 0.20); color: #fff; }
.currency__menu li .flag { font-size: 18px; }
.currency__menu li .name { flex: 1; }
.currency__menu li .code { font-family: "JetBrains Mono", monospace; color: var(--violet-300); font-size: 12px; }

.btn-admin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: rgba(168, 85, 247, 0.10);
    color: var(--text);
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}
.btn-admin:hover { background: rgba(168, 85, 247, 0.20); transform: translateY(-1px); }

/* === Login === */
.login { text-align: center; padding: 6px 4px 0; }
.login__icon {
    width: 64px; height: 64px;
    margin: 0 auto 14px;
    display: grid; place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #a855f7, #4c1d95);
    color: #fff;
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.5);
}
.login h3 { margin: 0 0 8px; font-size: 22px; }
.login .modal__desc { margin-bottom: 18px; }
.login .form { text-align: left; }
.login code {
    font-family: "JetBrains Mono", monospace;
    background: rgba(168, 85, 247, 0.15);
    color: var(--violet-200);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* === Admin panel === */
.admin { padding: 40px 24px 80px; min-height: calc(100vh - 200px); }
.admin__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}
.admin__kicker { font-size: 12px; color: var(--violet-300); text-transform: uppercase; letter-spacing: 1px; }
.admin__title {
    margin: 4px 0 0;
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(180deg, #fff 0%, #c084fc 110%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.admin__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.admin__tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(10, 5, 20, 0.55);
    width: fit-content;
}
.admin__tab {
    padding: 10px 22px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}
.admin__tab:hover { color: var(--text); }
.admin__tab.is-active {
    background: linear-gradient(135deg, #a855f7, #6d28d9);
    color: #fff;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.45);
}

.admin__panel { display: none; animation: fade 0.25s ease; }
.admin__panel.is-active { display: block; }

.admin__subbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 18px;
}
.admin__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.admin__hint { color: var(--text-muted); font-size: 14px; margin: 0; max-width: 580px; }

.chip {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(20, 9, 43, 0.55);
    color: var(--text-dim);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.is-active {
    background: rgba(168, 85, 247, 0.20);
    border-color: var(--violet-500);
    color: #fff;
}

/* Admin table — карточный список */
.admin-table {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    overflow: hidden;
}
.admin-row {
    display: grid;
    grid-template-columns: 60px 1.4fr 1fr 0.8fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    transition: 0.15s;
}
.admin-row:last-child { border-bottom: none; }
.admin-row:hover { background: rgba(168, 85, 247, 0.05); }
.admin-row--head {
    background: rgba(10, 5, 20, 0.6);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
    padding: 12px 18px;
}
.admin-row--head:hover { background: rgba(10, 5, 20, 0.6); }

.admin-row__icon {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 10px;
    font-size: 22px;
    background: linear-gradient(135deg, var(--row-accent, #a855f7), var(--row-accent-2, #4c1d95));
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}
.admin-row__title { font-weight: 600; color: #fff; font-size: 15px; line-height: 1.3; }
.admin-row__sub { color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.admin-row__price { font-family: "JetBrains Mono", monospace; color: var(--violet-200); font-weight: 600; }
.admin-row__price s { color: var(--text-muted); margin-right: 8px; font-weight: 400; }
.admin-row__meta { font-size: 13px; color: var(--text-dim); }
.admin-row__actions { display: flex; gap: 6px; }

.admin-row__empty {
    padding: 50px 20px;
    text-align: center;
    color: var(--text-muted);
}

.icon-btn {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    transition: 0.15s;
}
.icon-btn:hover { color: #fff; border-color: var(--border-strong); background: rgba(168, 85, 247, 0.12); }
.icon-btn--danger:hover { color: #fca5a5; border-color: #ef4444; background: rgba(239, 68, 68, 0.12); }

.toggle {
    position: relative;
    width: 40px; height: 22px;
    background: rgba(10,5,20,0.6);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    transition: 0.2s;
}
.toggle::after {
    content: "";
    position: absolute;
    top: 2px; left: 2px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--text-dim);
    transition: 0.2s;
}
.toggle.is-on { background: rgba(168, 85, 247, 0.30); border-color: var(--violet-500); }
.toggle.is-on::after { left: 20px; background: #fff; }

/* Admin form helpers */
.modal__dialog--narrow { max-width: 420px; }
.form--admin .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form--admin .grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.form__actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }

.form--admin textarea.field__input {
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}
.form--admin input[type="color"].field__input {
    height: 44px;
    padding: 4px;
    cursor: pointer;
}

.btn--danger {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fff;
    box-shadow: 0 8px 22px rgba(239, 68, 68, 0.35);
}
.btn--danger:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(239, 68, 68, 0.5); }

/* Item picker for sales */
.picker { display: flex; flex-direction: column; gap: 8px; }
.picker__body {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    background: rgba(10, 5, 20, 0.55);
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.picker__group { margin: 6px 0 2px; padding: 0 6px; font-size: 11px; color: var(--violet-300); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; }
.picker__group:first-child { margin-top: 0; }
.picker__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dim);
    transition: 0.15s;
}
.picker__item:hover { background: rgba(168, 85, 247, 0.08); color: var(--text); }
.picker__item input { accent-color: var(--violet-500); }
.picker__item .picker__price { margin-left: auto; font-family: "JetBrains Mono", monospace; color: var(--text-muted); font-size: 12px; }

/* Badges in tables */
.tag {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(168, 85, 247, 0.18);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 11px;
    color: var(--violet-200);
    font-weight: 600;
}
.tag--off { background: rgba(100, 100, 100, 0.18); border-color: rgba(255,255,255,0.15); color: var(--text-muted); }
.tag--mono { font-family: "JetBrains Mono", monospace; }

/* Sale-on-card indicator */
.card__sale {
    position: absolute;
    top: 14px; left: 14px;
    padding: 4px 10px;
    background: linear-gradient(90deg, #22c55e, #15803d);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 999px;
    text-transform: uppercase;
    z-index: 2;
}

/* === Картинки в карточках вместо иконки === */
.card__icon--img,
.modal__icon.card__icon--img,
.admin-row__icon.card__icon--img {
    padding: 0;
    overflow: hidden;
    background: rgba(10, 5, 20, 0.55);
    border: 1px solid var(--border-strong);
}
.card__icon--img img,
.modal__icon.card__icon--img img,
.admin-row__icon.card__icon--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* === Загрузка картинки === */
.upload {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px dashed var(--border-strong);
    border-radius: 12px;
    background: rgba(10, 5, 20, 0.4);
}
.upload__preview {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(168,85,247,0.18), rgba(76,29,149,0.25));
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 11px;
    text-align: center;
    padding: 6px;
}
.upload__preview.has-image {
    background: #000;
    padding: 0;
    border-color: var(--border-strong);
}
.upload__preview img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.upload__placeholder { font-size: 11px; line-height: 1.3; }
.upload__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* === Способы оплаты в модалке покупки (динамические) === */
.pay__opt span b {
    display: block;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}
.pay__opt span small {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.2;
}
.pay__opt span { flex: 1; }
.pay__fee {
    margin-left: auto;
    padding: 3px 8px;
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    border: 1px solid rgba(245, 158, 11, 0.35);
}
.summary__row--fee { color: #fbbf24; }
.summary__row--fee em { font-style: normal; opacity: 0.7; font-size: 12px; margin-left: 4px; }

/* === Индикатор курсов в меню валют === */
.currency__menu li .rate {
    display: block;
    width: 100%;
    margin-top: 2px;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    color: var(--text-muted);
    padding-left: 28px;
    margin-top: -2px;
    order: 99;
}
.currency__menu li {
    flex-wrap: wrap;
    row-gap: 0;
}
.currency__foot {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 6px !important;
    padding: 8px 10px !important;
    border-top: 1px solid var(--border) !important;
    cursor: default !important;
}
.currency__foot:hover { background: transparent !important; color: var(--text-muted) !important; }
.currency__age {
    flex: 1;
    font-size: 11px;
    color: var(--text-muted);
}
.btn-refresh {
    width: 28px; height: 28px;
    display: grid; place-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    transition: 0.2s;
}
.btn-refresh:hover { color: #fff; border-color: var(--border-strong); background: rgba(168,85,247,0.12); }
.btn-refresh.is-spinning svg { animation: spin-loop 1s linear infinite; }
@keyframes spin-loop { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* === Статусы заказов === */
.status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    border: 1px solid currentColor;
}
.status--pending { color: #fbbf24; background: rgba(251, 191, 36, 0.12); }
.status--paid    { color: #22c55e; background: rgba(34, 197, 94, 0.14); }
.status--cancel  { color: #ef4444; background: rgba(239, 68, 68, 0.12); }

.admin-row--orders { grid-template-columns: 50px 2fr 1fr 1fr 110px auto; }
.admin-row--orders.admin-row--head { grid-template-columns: 50px 2fr 1fr 1fr 110px auto; }

/* === Order success info === */
.os-id {
    font-family: "JetBrains Mono", monospace;
    color: var(--violet-200);
    font-size: 16px;
    background: rgba(168, 85, 247, 0.16);
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    display: inline-block;
}
.os-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
    padding: 14px;
    background: rgba(10, 5, 20, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: left;
}
.os-info > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}
.os-info > div span { color: var(--text-muted); }
.os-info > div b { color: var(--text); font-weight: 600; word-break: break-all; text-align: right; }

/* === Адаптив === */
@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; padding: 50px 24px 30px; }
    .hero__art { height: 240px; }
    .hero__title { font-size: 48px; }
    .nav { display: none; }
    .site-footer__inner { grid-template-columns: 1fr; }
    .site-footer__cols { grid-template-columns: repeat(3, 1fr); }
    .admin-row { grid-template-columns: 50px 1fr auto; }
    .admin-row__price, .admin-row__meta { display: none; }
}
@media (max-width: 640px) {
    .hero__title { font-size: 36px; }
    .hero__lead { font-size: 16px; }
    .section__title { font-size: 28px; }
    .section { padding: 50px 0; }
    .site-footer__cols { grid-template-columns: repeat(2, 1fr); }
    .pay__list { grid-template-columns: 1fr; }
    .modal__dialog { padding: 20px; }
    .stat b { font-size: 22px; }
    .form--admin .grid-2, .form--admin .grid-3 { grid-template-columns: 1fr; }
    .currency__code { display: none; }
    .btn-admin span { display: none; }
    .admin__title { font-size: 26px; }
}
