/* === Simple Solution — blue theme === */

:root {
    --bg:        #071018;
    --bg-2:      #0c1824;
    --panel:     #10202e;
    --panel-2:   #163044;
    --border:    #24506c;
    --text:      #e7f4ff;
    --text-dim:  #8eb4cc;
    --accent:    #2f9bff;
    --accent-2:  #7fd4ff;
    --ok:        #3cdc78;
    --warn:      #ffbe50;
    --error:     #ff5a5a;
    --radius:    12px;
    --shadow:    0 8px 32px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    background: radial-gradient(1200px 600px at 20% -10%, rgba(47,155,255,0.20), transparent 60%) ,
                radial-gradient(900px 600px at 100% 100%, rgba(80,200,255,0.16), transparent 60%) ,
                var(--bg);
    color: var(--text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    min-height: 100vh;
}

.mono, code, pre { font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; }
.small  { font-size: 12px; }
.muted  { color: var(--text-dim); }
.center { text-align: center; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #b7e6ff; }

/* ---------- layout ---------- */

.layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: linear-gradient(180deg, rgba(26,29,42,0.95), rgba(16,18,28,0.95));
    border-right: 1px solid var(--border);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}
.brand-mark {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 6px 18px rgba(47,155,255,0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    line-height: 1;
    flex: 0 0 auto;
}
.brand-mark::before {
    content: "SS";
}
.brand-mark.big { width: 52px; height: 52px; border-radius: 14px; font-size: 18px; }

.brand-name {
    font-weight: 700;
    letter-spacing: 0.06em;
    font-size: 14px;
}
.brand-sub {
    color: var(--text-dim);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.nav {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--text-dim);
    font-weight: 500;
    transition: all .15s ease;
}
.nav:hover {
    background: rgba(47,155,255,0.10);
    color: var(--text);
}
.nav.active {
    background: linear-gradient(90deg, rgba(47,155,255,0.25), rgba(47,155,255,0.05));
    color: #fff;
    box-shadow: inset 2px 0 0 var(--accent);
}

.sidebar-foot {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.logout {
    color: var(--text-dim);
    font-size: 12px;
}
.logout-button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}
.logout-button:hover { color: var(--text); }

.content { padding: 28px 36px 60px; }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.topbar h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

/* ---------- cards / grids ---------- */

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: var(--shadow);
}
.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.card-head h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.grid { display: grid; gap: 18px; }
.grid.two   { grid-template-columns: 1fr 1fr; }
.grid.stats { grid-template-columns: repeat(6, 1fr); margin-bottom: 22px; }

.stat {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
}
.stat::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(47,155,255,0.10), transparent 60%);
    pointer-events: none;
}
.stat-label { color: var(--text-dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; }
.stat-value { font-size: 28px; font-weight: 700; margin-top: 6px; }
.stat.ok     .stat-value { color: var(--ok); }
.stat.warn   .stat-value { color: var(--warn); }
.stat.accent .stat-value { color: var(--accent-2); }

/* ---------- tables ---------- */

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.table th {
    text-align: left;
    color: var(--text-dim);
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    background: var(--panel-2);
}
.table th:first-child { border-top-left-radius: 8px; }
.table th:last-child  { border-top-right-radius: 8px; }
.table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: middle;
}
.table.compact td { padding: 8px 12px; }
.table.wide td.actions { white-space: nowrap; }
.table tr:hover td { background: rgba(47,155,255,0.05); }

.row-banned  td { background: rgba(255, 90, 90, 0.05); }
.row-expired td { background: rgba(255, 190, 80, 0.05); }

.key {
    background: rgba(47,155,255,0.10);
    border: 1px solid rgba(47,155,255,0.3);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    letter-spacing: 0.05em;
}
.key-with-promo { white-space: nowrap; }
.key-with-promo .promo-mark { margin-left: 8px; }
.key.clickable { cursor: pointer; transition: all .15s; }
.key.clickable:hover { background: rgba(47,155,255,0.20); }

/* ---------- chips / buttons ---------- */

.chip {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 999px;
    background: rgba(47,155,255,0.15);
    color: var(--accent-2);
    border: 1px solid rgba(47,155,255,0.4);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.chip.ok   { color: var(--ok);    background: rgba(60,220,120,0.13); border-color: rgba(60,220,120,0.45); }
.chip.warn { color: var(--warn);  background: rgba(255,190,80,0.13);  border-color: rgba(255,190,80,0.45); }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--panel-2);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s ease;
}
.btn:hover  { background: #262a3d; border-color: #3b4060; }
.btn.small  { padding: 6px 10px; font-size: 12px; }
.btn.xs     { padding: 4px 8px; font-size: 11px; }
.btn.block  { width: 100%; justify-content: center; }
.btn.ghost  { background: transparent; }
.btn.danger { color: var(--error); border-color: rgba(255,90,90,0.4); }
.btn.danger:hover { background: rgba(255,90,90,0.10); }
.btn.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border: none;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(47,155,255,0.35);
}
.btn.primary:hover {
    box-shadow: 0 8px 24px rgba(47,155,255,0.5);
    transform: translateY(-1px);
}

.inline { display: inline-block; margin: 0; }
.actions form + form { margin-left: 4px; }

/* ---------- forms ---------- */

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.field span {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.field input,
.field select,
.field textarea {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    transition: all .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(47,155,255,0.2);
}
.field textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.55;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    align-items: end;
}
.form-grid .wide { grid-column: span 4; }
.actions-row { grid-column: span 4; display: flex; justify-content: flex-end; }

.search { display: flex; gap: 6px; }
.search input {
    background: var(--bg-2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 12px;
    min-width: 240px;
}

select {
    background: var(--bg-2);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
}

/* ---------- alerts ---------- */

.alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 12px;
}
.alert.error {
    background: rgba(255,90,90,0.10);
    border: 1px solid rgba(255,90,90,0.4);
    color: #ffb1b1;
}
.alert.ok {
    background: rgba(60,220,120,0.10);
    border: 1px solid rgba(60,220,120,0.4);
    color: #9fe6b0;
}

/* ---------- login ---------- */

.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.login-card {
    width: 100%;
    max-width: 380px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.extend-days {
    display: inline-block;
    min-width: 52px;
    margin-right: 6px;
    color: var(--text-dim);
    font-size: 12px;
}
.modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(4, 10, 16, 0.72);
}
.modal[hidden] { display: none !important; }
.modal-card {
    width: min(420px, 100%);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    box-shadow: var(--shadow);
}
.modal-card h2 { margin: 0 0 6px; }
.extend-choices { display: flex; gap: 8px; margin: 14px 0; }
.extend-choice.is-selected {
    border-color: var(--accent);
    color: #fff;
    background: rgba(47, 155, 255, 0.18);
}
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

.login-brand {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 8px;
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
    .grid.stats { grid-template-columns: repeat(2, 1fr); }
    .grid.two   { grid-template-columns: 1fr; }
    .form-grid  { grid-template-columns: 1fr 1fr; }
    .form-grid .wide, .actions-row { grid-column: span 2; }
}
.shop {
    max-width: 1080px;
    margin: 0 auto;
    padding: 48px 20px 72px;
}
.shop-head { text-align: center; margin-bottom: 28px; }
.shop-head h1 { margin: 0 0 8px; letter-spacing: 0.04em; }
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}
.plan {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
}
.plan h2 { margin: 0 0 8px; }
.plan p { color: var(--text-dim); min-height: 44px; }
.plan-level {
    color: var(--accent-2);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.shop-form { max-width: 640px; margin: 0 auto; }

.site { min-height: 100vh; display: flex; flex-direction: column; }
.site-nav, .site-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 28px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.04em;
}
.site-links, .site-foot nav { display: flex; gap: 18px; align-items: center; }
.site-links a, .site-foot a { color: var(--text-dim); }
.site-links .site-discord {
    color: #aeb4ff;
    font-weight: 600;
}
.site-links .site-discord:hover { color: #d6d9ff; }
.site-cabinet {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--text) !important;
}
.site-main { flex: 1; width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.hero { text-align: center; padding: 42px 0 18px; }
.shop-hero { padding-top: 4px; }
.hero h1 { margin: 0; font-size: 56px; letter-spacing: -0.03em; }
.eyebrow {
    color: var(--accent-2);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 8px;
}
.hero-lead { color: var(--text-dim); max-width: 520px; margin: 12px auto 0; }
.price-grid {
    display: flex;
    justify-content: center;
    padding-bottom: 48px;
}
.product-card { width: min(340px, 100%); }
.product-card h2 { margin: 0 0 8px; font-size: 22px; }
.product-card .btn.block { margin-top: 8px; border-radius: 12px; }
.term-list { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.term-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.term-row .price-days { margin: 0; font-size: 22px; }
.price-card {
    background: rgba(16, 32, 46, 0.9);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    position: relative;
}
.price-card.featured {
    border-color: var(--accent);
    box-shadow: 0 16px 40px rgba(47, 155, 255, 0.18);
}
.price-flag {
    position: absolute;
    top: 14px;
    right: 14px;
    color: var(--accent-2);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.price-days { font-size: 28px; font-weight: 700; margin: 8px 0; }
.price-card ul { color: var(--text-dim); padding-left: 18px; }
.price-card li { margin: 6px 0; }
.catalog-main { padding-bottom: 64px; }
.catalog-hero {
    text-align: center;
    margin-top: -8px;
    padding: 0 0 28px;
}
.catalog-hero h1 { font-size: 46px; }
.catalog-hero .hero-lead { margin-left: auto; margin-right: auto; }
.catalog-label { margin: 16px 0 0; }
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.catalog-empty {
    grid-column: 1 / -1;
    text-align: center;
}
.catalog-product {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--panel);
    color: var(--text);
    box-shadow: var(--shadow);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.catalog-product:hover {
    color: var(--text);
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 18px 46px rgba(47, 155, 255, .18);
}
.catalog-product-cover,
.product-visual {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 18%, rgba(127, 212, 255, .34), transparent 28%),
        linear-gradient(135deg, #122d43 0%, #0c1c2c 55%, #071018 100%);
}
.catalog-product-cover {
    display: block;
    min-height: 220px;
    border-bottom: 1px solid var(--border);
    color: inherit;
    text-decoration: none;
}
.catalog-product-cover::before,
.product-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(127, 212, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(127, 212, 255, .06) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom right, #000, transparent 78%);
}
.catalog-product-cover::after,
.product-visual::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -65px;
    bottom: -75px;
    border: 34px solid rgba(47, 155, 255, .12);
    border-radius: 38px;
    transform: rotate(18deg);
}
.theme-stalcube .catalog-product-cover,
.theme-stalcube .product-visual {
    background:
        radial-gradient(circle at 78% 18%, rgba(80, 255, 213, .27), transparent 28%),
        linear-gradient(135deg, #123f43 0%, #0b242d 55%, #071018 100%);
}
.theme-stalcube .catalog-cover-mark,
.theme-stalcube .product-visual-logo {
    background: linear-gradient(135deg, #24bfa6, #71e6ff);
    box-shadow: 0 18px 42px rgba(36, 191, 166, .34);
}
.theme-stalzone .catalog-product-cover,
.theme-stalzone .product-visual {
    background:
        radial-gradient(circle at 78% 18%, rgba(190, 118, 255, .32), transparent 28%),
        linear-gradient(135deg, #382150 0%, #21162f 55%, #0c0b16 100%);
}
.theme-stalzone .catalog-cover-mark,
.theme-stalzone .product-visual-logo {
    background: linear-gradient(135deg, #8557e8, #d18cff);
    box-shadow: 0 18px 42px rgba(133, 87, 232, .38);
}
.catalog-status {
    position: absolute;
    z-index: 2;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border: 1px solid rgba(60, 220, 120, .42);
    border-radius: 999px;
    background: rgba(7, 16, 24, .7);
    color: #9fe6b0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.catalog-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 10px var(--ok);
}
.catalog-status.is-soon {
    border-color: rgba(255, 190, 80, .48);
    color: #ffd894;
}
.catalog-status.is-soon i {
    background: var(--warn);
    box-shadow: 0 0 10px var(--warn);
}
.catalog-cover-mark {
    position: absolute;
    z-index: 2;
    left: 24px;
    top: 50px;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 14px 30px rgba(47, 155, 255, .35);
    color: #fff;
    font-size: 24px;
    font-weight: 800;
}
.catalog-cover-copy {
    position: absolute;
    z-index: 2;
    left: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.catalog-cover-copy span {
    color: var(--accent-2);
    font-size: 11px;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.catalog-cover-copy strong { font-size: 22px; }
.catalog-product-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 20px;
}
.catalog-product-topline,
.catalog-product-bottom,
.product-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.catalog-product-body h2 {
    min-height: 2.5em;
    margin: 14px 0 0;
    font-size: 20px;
    line-height: 1.25;
}
.catalog-card-note {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 4px;
    height: 36px;
    margin: 8px 0 0;
    overflow: hidden;
    color: var(--accent-2);
    font-size: 13px;
    line-height: 1.2;
}
.catalog-card-versions {
    font-size: 12px;
    letter-spacing: 0;
    line-height: 1.2;
    white-space: nowrap;
}
.catalog-product-bottom {
    margin-top: auto;
}
.catalog-product-body h2 a {
    color: inherit;
    text-decoration: none;
}
.catalog-product-bottom > .catalog-product-actions {
    display: flex;
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}
.catalog-product-actions .btn { white-space: nowrap; }
.feature-dialog:not([open]) {
    display: none;
}
.feature-dialog[open] {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    height: fit-content;
    width: min(560px, calc(100vw - 32px));
    max-height: min(720px, calc(100vh - 48px));
    margin: auto;
    padding: 22px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--panel);
    color: var(--text);
    color-scheme: dark;
    box-shadow: var(--shadow);
}
.feature-dialog::backdrop {
    background: rgba(4, 10, 16, .72);
}
.feature-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.feature-dialog-head h2 {
    margin: 0;
    font-size: 22px;
}
.feature-dialog-empty {
    margin: 16px 0 0;
}
.catalog-product-bottom {
    flex-wrap: wrap;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.buy-dialog[open] { width: min(640px, calc(100vw - 32px)); }
.buy-dialog .product-order-form h2 {
    margin: 18px 0 12px;
    font-size: 17px;
}
.buy-dialog-error { margin: 16px 0 0; }
.catalog-product-bottom > div:not(.catalog-product-actions) {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.catalog-product-bottom strong { font-size: 24px; }
.product-main { padding-bottom: 64px; }
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 24px 0 18px;
    color: var(--text-dim);
    font-size: 13px;
}
.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs a:hover { color: var(--text); }
.product-alert { margin-bottom: 16px; }
.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
    gap: 24px;
    align-items: start;
}
.product-visual {
    min-height: 500px;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}
.product-visual-grid {
    position: absolute;
    inset: 12% 8%;
    border: 1px solid rgba(127, 212, 255, .14);
    border-radius: 24px;
    transform: rotate(-4deg);
}
.product-visual-logo {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 43%;
    display: grid;
    place-items: center;
    width: 128px;
    height: 128px;
    border-radius: 34px;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 22px 55px rgba(47, 155, 255, .4);
    color: #fff;
    font-size: 40px;
    font-weight: 800;
}
.product-visual-title {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    transform: translateX(-50%);
    white-space: nowrap;
}
.product-function-slot {
    margin-top: 0;
}
.product-function-slot .btn {
    width: 100%;
}
.product-showcase + .product-purchase-card {
    align-self: start;
}
.product-visual-title span {
    color: var(--accent-2);
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.product-visual-title strong { font-size: 28px; }
.product-purchase-card {
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--panel);
    box-shadow: var(--shadow);
}
.product-purchase-card h1 {
    margin: 13px 0 10px;
    font-size: 31px;
    line-height: 1.12;
}
.product-summary {
    margin: 0 0 20px;
    color: var(--text-dim);
    line-height: 1.55;
}
.purchase-divider {
    height: 1px;
    margin: 22px 0;
    background: var(--border);
}
.product-purchase-card h2 { margin: 0 0 12px; font-size: 17px; }
.duration-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
}
.duration-option { cursor: pointer; }
.duration-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.duration-option > span,
.duration-option-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 13px 8px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--bg-2);
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.duration-option:hover > span { border-color: var(--accent); }
.duration-option input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(47, 155, 255, .22);
}
.duration-option input:checked + span {
    border-color: var(--accent);
    background: rgba(47, 155, 255, .13);
    box-shadow: inset 0 0 0 1px rgba(47, 155, 255, .2);
}
.duration-option b,
.duration-option-preview b {
    color: var(--accent-2);
    font-size: 16px;
}
.plan-price {
    flex-direction: row;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
}
.plan-price-original {
    position: relative;
    display: inline-block;
}
.plan-price-original.is-discounted::after {
    content: "";
    position: absolute;
    z-index: 1;
    left: -4px;
    right: -4px;
    top: 50%;
    height: 2px;
    border-radius: 2px;
    background: var(--error);
    box-shadow: 0 0 5px rgba(255, 90, 90, .45);
    transform: rotate(-14deg);
    transform-origin: center;
    pointer-events: none;
}
.plan-price-final {
    color: #8bd9ff;
    font-weight: 800;
}
.duration-options.is-preview { cursor: default; }
.promo-field { margin-top: 16px; }
.promo-preview-status {
    color: var(--text-dim);
    font-size: 12px;
}
.promo-preview-status.is-valid { color: var(--ok); }
.promo-preview-status.is-invalid { color: var(--error); }
.promo-preview-status[hidden] { display: none; }
.product-buy-button {
    margin-top: 14px;
    padding-top: 12px;
    padding-bottom: 12px;
}
.purchase-legal {
    margin: 13px 0 0;
    color: var(--text-dim);
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}
.exe-product-state p {
    color: var(--text-dim);
    line-height: 1.6;
}
.exe-product-state .btn { margin-top: 16px; }
.product-information {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 16px;
}
.product-info-card { margin: 0; }
.product-info-card h2 { margin: 0 0 10px; }
.product-info-card > p:not(.eyebrow) {
    color: var(--text-dim);
    line-height: 1.65;
}
.product-feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px 16px;
    padding: 0;
    margin: 18px 0 0;
    list-style: none;
}
.product-feature-list li {
    position: relative;
    padding-left: 18px;
    color: var(--text-dim);
}
.product-feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(47, 155, 255, .7);
}
.product-feature-list li.feature-group {
    grid-column: 1 / -1;
    margin-top: 10px;
    padding-left: 0;
    color: var(--text);
    font-weight: 700;
}
.product-feature-list li.feature-group:first-child { margin-top: 0; }
.product-feature-list li.feature-group::before { content: none; }
.feature-dialog .product-feature-list,
.ss-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(7, 16, 24, .85);
}
.feature-dialog .product-feature-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding-right: 8px;
}
.feature-dialog .product-feature-list::-webkit-scrollbar,
.ss-scroll::-webkit-scrollbar {
    width: 10px;
}
.feature-dialog .product-feature-list::-webkit-scrollbar-button,
.ss-scroll::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}
.feature-dialog .product-feature-list::-webkit-scrollbar-track,
.ss-scroll::-webkit-scrollbar-track {
    margin: 4px 0;
    border-radius: 999px;
    background: rgba(7, 16, 24, .85);
    box-shadow: inset 0 0 0 1px rgba(36, 80, 108, .7);
}
.feature-dialog .product-feature-list::-webkit-scrollbar-thumb,
.ss-scroll::-webkit-scrollbar-thumb {
    border: 2px solid rgba(7, 16, 24, .85);
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
    box-shadow: 0 0 12px rgba(47, 155, 255, .45);
}
.feature-dialog .product-feature-list::-webkit-scrollbar-thumb:hover,
.ss-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #d7f3ff, var(--accent));
}
.product-editor-title {
    grid-column: 1 / -1;
    margin: 10px 0 0;
    font-size: 16px;
}
.product-editor-title:first-child { margin-top: 0; }
#feature-editor { min-height: 280px; }
.feature-preview {
    max-height: 320px;
    margin-top: 4px;
    padding: 14px 14px 14px 16px;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-2);
}
.feature-preview .product-feature-list { margin-top: 0; }
.requirements-list {
    padding: 0;
    margin: 10px 0 0;
    list-style: none;
}
.requirements-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.requirements-list li:last-child { border-bottom: 0; }
.requirements-list span { color: var(--text-dim); }
.requirements-list strong { text-align: right; }
.product-note {
    margin: 18px 0 0;
    color: var(--text-dim);
    font-size: 12px;
    text-align: center;
}
.admin-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.admin-product-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
}
.admin-product-title {
    display: flex;
    align-items: center;
    gap: 12px;
}
.admin-product-title h2 { margin: 3px 0 0; font-size: 19px; }
.admin-product-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(47, 155, 255, .28);
}
.admin-product-mark.theme-stalcube {
    background: linear-gradient(135deg, #24bfa6, #71e6ff);
}
.admin-product-mark.theme-stalzone {
    background: linear-gradient(135deg, #8557e8, #d18cff);
}
.admin-product-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.admin-toggle {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
    cursor: pointer;
}
.admin-toggle input {
    width: 17px;
    height: 17px;
    accent-color: var(--accent);
}
.admin-price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.admin-product-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}
.product-editor-card { margin-top: 0; }
.product-editor {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.product-editor .wide { grid-column: 1 / -1; }
.product-editor-actions {
    display: flex;
    gap: 8px;
    grid-column: 1 / -1;
}
.product-help {
    margin: 8px 0 0;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.5;
}
.admin-type-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}
.field textarea.compact { min-height: 96px; }
.field input[readonly] { opacity: .75; }
.content input:not([type="checkbox"]):not([type="radio"]),
.content select,
.content textarea {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
}
.content input:focus,
.content select:focus,
.content textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(47,155,255,0.2);
}
.content input[type="file"] {
    padding: 8px 10px;
    color: var(--text-dim);
}
.content input[type="file"]::file-selector-button {
    margin-right: 12px;
    border: 0;
    border-radius: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}
.universal-dll-upload,
.universal-map-row,
.universal-map-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
}
.universal-dll-upload .field,
.universal-map-fields,
.universal-map-fields .field,
.universal-map-add .field { flex: 1 1 220px; margin: 0; }
.universal-map { display: flex; flex-direction: column; gap: 12px; }
.universal-map-row {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(47,155,255,0.04);
}
.universal-map-add { background: transparent; }
.table td .btn,
.table td select,
.table td input {
    vertical-align: middle;
}
.site-alert { max-width: 640px; margin: 0 auto 16px; }
.site-foot {
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 13px;
}
.auth-main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 48px 0 72px;
}
.auth-card {
    width: min(440px, 100%);
    height: auto;
    flex: 0 0 auto;
    align-self: flex-start;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow);
}
.auth-card h1 { margin: 0; }
.auth-switch { color: var(--text-dim); }
.legal-main { padding: 32px 0 56px; }
.legal-card {
    width: min(860px, 100%);
    margin: 0 auto;
    padding: 32px;
}
.legal-head {
    padding-bottom: 22px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.legal-head h1 { margin: 0 0 10px; font-size: 38px; }
.legal-card section { margin: 0 0 28px; }
.legal-card section:last-of-type { margin-bottom: 0; }
.legal-card h2 { margin: 0 0 10px; font-size: 20px; }
.legal-card p, .legal-card li {
    color: var(--text-dim);
    line-height: 1.7;
}
.legal-card p { margin: 8px 0; }
.legal-card ul { margin: 8px 0 0; padding-left: 22px; }
.legal-card li { margin: 6px 0; }
.legal-card strong { color: var(--text); }
.legal-back {
    padding-top: 22px;
    margin-top: 28px !important;
    border-top: 1px solid var(--border);
}
.support-main { padding-bottom: 56px; }
.support-head { padding-bottom: 28px; text-align: left; }
.support-head .hero-lead {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}
.support-create { margin-bottom: 18px; }
.support-login-card {
    width: min(620px, 100%);
    margin: 0 auto;
    padding: 28px;
}
.ticket-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ticket-form-actions {
    display: flex;
    justify-content: flex-end;
}
.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ticket-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(7, 16, 24, .35);
    color: var(--text);
}
.ticket-row:hover {
    color: var(--text);
    border-color: var(--accent);
    background: rgba(47, 155, 255, .08);
}
.ticket-row > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}
.ticket-row strong {
    overflow-wrap: anywhere;
}
.ticket-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 32px 0 22px;
}
.ticket-page-head h1 {
    margin: 0 0 8px;
    font-size: 34px;
    overflow-wrap: anywhere;
}
.ticket-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ticket-thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(860px, 100%);
    margin: 0 auto 18px;
}
.ticket-message {
    width: min(82%, 720px);
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel);
}
.ticket-message.is-buyer { margin-right: auto; }
.ticket-message.is-admin {
    margin-left: auto;
    border-color: rgba(47, 155, 255, .7);
    background: rgba(47, 155, 255, .10);
}
.ticket-message header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}
.ticket-message header span {
    color: var(--text-dim);
    font-size: 11px;
    white-space: nowrap;
}
.ticket-message-body {
    color: var(--text);
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.ticket-reply-card {
    width: min(860px, 100%);
    margin: 0 auto;
}
.ticket-close-form,
.ticket-state-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.ticket-state-actions form { margin: 0; }
.ticket-admin-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}
.ticket-admin-summary h2 { margin: 0 0 8px; }
.admin-ticket-thread { margin-top: 18px; }
.ticket-admin-tools { align-items: flex-start; }
.ticket-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.grid.stats.ticket-stats { grid-template-columns: repeat(3, 1fr); }
.cabinet-head { text-align: left; }
.cabinet-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.seller-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}
.seller-code-card { grid-column: span 2; }
.seller-code {
    margin: 8px 0;
    letter-spacing: 0.08em;
}
@media (max-width: 700px) {
    .seller-code-card { grid-column: auto; }
}
.hwid-reset { white-space: nowrap; }
@media (max-width: 1000px) {
    .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-detail { grid-template-columns: 1fr; }
    .product-visual { min-height: 440px; }
    .admin-product-grid,
    .product-editor { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
    .price-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 40px; }
    .site-nav { flex-wrap: wrap; }
    .legal-card { padding: 22px; }
    .legal-head h1 { font-size: 30px; }
    .ticket-page-head,
    .ticket-admin-summary {
        flex-direction: column;
    }
    .ticket-message { width: 100%; }
    .ticket-row { align-items: flex-start; }
    .ticket-head-actions { flex-wrap: wrap; }
    .catalog-grid,
    .product-information { grid-template-columns: 1fr; }
    .catalog-hero h1 { font-size: 40px; }
    .product-purchase-card h1 { font-size: 27px; }
    .product-visual { min-height: 380px; }
    .product-feature-list { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
    .shop-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar {
        flex-direction: row;
        padding: 14px;
        border-right: none;
        border-bottom: 1px solid var(--border);
        overflow-x: auto;
    }
    .brand { margin: 0 12px 0 0; }
    .sidebar-foot { margin: 0 0 0 auto; padding: 0; border: none; }
    nav { display: flex; gap: 4px; }
    .content { padding: 18px; }
    .grid.stats { grid-template-columns: 1fr 1fr; }
    .grid.stats.ticket-stats { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .wide, .actions-row { grid-column: span 1; }
}

@media (max-width: 560px) {
    .duration-options {
        grid-template-columns: 1fr;
    }
    .product-visual-logo {
        width: 100px;
        height: 100px;
        border-radius: 26px;
        font-size: 32px;
    }
}
