﻿@import url('/fonts/aegis-fonts.css');

/* AtakRust design system */
:root {
    --bg: #07090d;
    --bg-2: #0a0e14;
    --surface: #0f141b;
    --surface-2: #141b23;
    --surface-3: #1a222c;
    --border: rgba(246, 241, 232, 0.08);
    --border-strong: rgba(246, 241, 232, 0.16);
    --text: #f6f1e8;
    --text-soft: #d9d1c4;
    --text-dim: #9d978f;
    --accent: #f3a524;
    --accent-2: #ffd07a;
    --accent-soft: rgba(243, 165, 36, 0.12);
    --brand: #63b8ff;
    --brand-soft: rgba(99, 184, 255, 0.14);
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #facc15;
    --discord: #5865f2;
    --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 32px 64px rgba(0, 0, 0, 0.5);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-sm: 6px;
    --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

body {
    background:
        radial-gradient(900px 520px at 76% 18%, rgba(243, 165, 36, 0.10), transparent 58%),
        linear-gradient(180deg, #07090d 0%, #0a0e14 48%, #07090d 100%);
    background-attachment: fixed;
}

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

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

html:not(.i18n-ready) [data-i18n],
html:not(.i18n-ready) [data-i18n-html],
html:not(.i18n-ready) [data-home],
html:not(.i18n-ready) [data-page-copy] {
    visibility: hidden;
}

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

.section { padding: 56px 0; }
.section-tight { padding: 32px 0; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 12px 0;
}

h1 { font-size: clamp(36px, 6vw, 72px); line-height: 1.05; }
h2 { font-size: clamp(24px, 3vw, 36px); }
h3 { font-size: 20px; }

p { color: var(--text-soft); margin: 0 0 10px 0; }
.muted { color: var(--text-dim); }
.section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.section-title h2 { margin: 0; }
.section-title .tag {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em;
    color: var(--accent); background: var(--accent-soft);
    padding: 6px 12px; border-radius: 999px; font-weight: 600;
}

/* ---------- Navbar ---------- */
.navbar {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(7, 9, 13, 0.88);
    border-bottom: 1px solid var(--border);
}
.navbar-inner {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 0;
}
.brand {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-display); font-weight: 800; font-size: 18px;
    letter-spacing: -0.01em;
    margin-right: 8px;
}
.brand-mark {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.35);
    font-weight: 900;
    color: #1a0d00;
}
.brand-logo {
    background: url('/logo.png?v=20260514n') center/contain no-repeat !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    width: 44px !important;
    height: 44px !important;
}
.brand-text .accent { color: var(--accent); }

.campaign-banner {
    border-bottom: 1px solid rgba(255, 208, 122, 0.18);
    background:
        linear-gradient(90deg, rgba(243, 165, 36, 0.18), rgba(34, 197, 94, 0.10) 48%, rgba(239, 68, 68, 0.10)),
        rgba(10, 14, 20, 0.94);
}
.campaign-banner-inner {
    min-height: 72px;
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) auto auto;
    gap: 16px;
    align-items: center;
    padding-top: 12px;
    padding-bottom: 12px;
}
.campaign-badge,
.campaign-proof,
.campaign-cta {
    border: 1px solid rgba(255, 208, 122, 0.24);
    background: rgba(7, 9, 13, 0.48);
    border-radius: 8px;
}
.campaign-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffd07a;
    padding: 9px 12px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.campaign-badge svg {
    width: 18px;
    height: 18px;
}
.campaign-copy {
    display: grid;
    gap: 2px;
}
.campaign-copy strong {
    color: var(--text);
    font-size: 18px;
    line-height: 1.15;
}
.campaign-copy span {
    color: var(--text-soft);
    font-size: 14px;
}
.campaign-proof {
    display: grid;
    gap: 1px;
    padding: 8px 12px;
    min-width: 150px;
}
.campaign-proof span {
    color: #86efac;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.campaign-proof strong {
    color: var(--text);
    font-size: 14px;
}
.campaign-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    color: #171006;
    font-weight: 900;
    background: linear-gradient(180deg, #ffd07a, #f3a524);
    border-color: transparent;
    white-space: nowrap;
}
.campaign-cta:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}
@media (max-width: 980px) {
    .campaign-banner-inner {
        grid-template-columns: 1fr;
        gap: 10px;
        align-items: stretch;
    }
    .campaign-badge,
    .campaign-proof,
    .campaign-cta {
        width: 100%;
    }
    .campaign-badge,
    .campaign-cta {
        justify-content: center;
    }
    .campaign-copy {
        text-align: center;
    }
}

.nav-links {
    display: flex; align-items: center; gap: 4px;
    flex: 1;
    flex-wrap: wrap;
}
.nav-link-wrap {
    position: relative;
    display: inline-flex;
}
.nav-link {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 14px;
    border-radius: 8px;
    font-weight: 500;
    color: var(--text-soft);
    font-size: 14px;
    transition: background 0.15s, color 0.15s;
    border: 1px solid transparent;
}
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link.active { color: var(--text); background: var(--surface-2); border-color: var(--border); }
.nav-link svg, .nav-link .ico { width: 16px; height: 16px; flex-shrink: 0; }
.nav-caret {
    color: var(--text-dim);
    font-size: 10px;
    margin-left: 1px;
}
.nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 190px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(14, 18, 27, 0.96);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
    z-index: 60;
}
.nav-link-wrap:hover .nav-dropdown,
.nav-link-wrap:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.nav-dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
}
.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 800;
}
.nav-dropdown-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: var(--accent);
    background: rgba(243, 165, 36, 0.1);
    border: 1px solid rgba(243, 165, 36, 0.18);
}
.nav-dropdown-icon svg {
    width: 16px;
    height: 16px;
}
.nav-dropdown-copy {
    display: grid;
    gap: 1px;
    min-width: 0;
}
.nav-dropdown-copy small {
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.nav-dropdown-item:hover {
    color: var(--text);
    background: rgba(246, 241, 232, 0.07);
}
.nav-dropdown-item.disabled {
    cursor: default;
    opacity: 0.62;
}
.nav-dropdown-item.disabled:hover {
    color: var(--text-soft);
    background: transparent;
}

.nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.user-chip {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 14px 6px 6px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: background 0.15s;
}
.user-chip:hover { background: var(--surface-3); }
.user-chip img {
    width: 32px; height: 32px; border-radius: 8px; object-fit: cover;
}
.user-chip .name {
    font-weight: 600; color: var(--text); font-size: 14px;
    line-height: 1.1;
}
.user-chip .role {
    font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em;
}
.user-chip.admin .role { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.12s, background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    border-color: transparent;
    color: #1a0d00;
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.25);
}
.btn-primary:hover { filter: brightness(1.05); background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); }
.btn-brand {
    background: linear-gradient(135deg, #4f6df5 0%, #6c4cf0 100%);
    border-color: transparent;
    color: #fff;
}
.btn-discord {
    background: var(--discord);
    border-color: transparent; color: #fff;
}
.btn-steam {
    background: #171a21;
    border-color: #2a2f3a;
    color: #fff;
}
.btn-steam:hover { background: #1f242e; }
.btn-ghost { background: transparent; border-color: var(--border-strong); }
.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #d93535 100%);
    border-color: transparent; color: #fff;
}
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Cards ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-md);
}
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.flex { display: flex; gap: 14px; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.flex-col { flex-direction: column; align-items: stretch; }
.gap-sm { gap: 8px; }
.gap-lg { gap: 24px; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 10vw, 120px);
    text-align: center;
    isolation: isolate;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(800px 500px at 50% 80%, rgba(245, 158, 11, 0.18), transparent 60%),
        url("/assets/hero.svg") center/cover no-repeat;
    opacity: 0.85;
    z-index: -2;
}
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(7, 10, 18, 0.4) 0%, rgba(7, 10, 18, 0.9) 60%, var(--bg) 100%);
    z-index: -1;
}
.hero-eyebrow {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: 8px;
    margin-bottom: 22px;
    font-weight: 700;
    animation: riseIn 0.55s ease both;
}
.hero h1 { font-family: var(--font-display); }
.hero h1 .accent { color: var(--accent); }
.hero h1 { animation: riseIn 0.65s ease 0.06s both; }
.hero p { font-size: clamp(15px, 1.4vw, 18px); max-width: 620px; margin: 18px auto 30px; animation: riseIn 0.65s ease 0.12s both; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; animation: riseIn 0.65s ease 0.18s both; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 60px;
    background: rgba(11, 15, 25, 0.65);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    animation: riseIn 0.7s ease 0.26s both;
}
.hero-stat { text-align: center; padding: 8px; }
.hero-stat .val {
    font-family: var(--font-display);
    font-weight: 800; font-size: 32px;
    color: var(--text);
    letter-spacing: -0.02em;
}
.hero-stat .val .plus { color: var(--accent); }
.hero-stat .lbl {
    text-transform: uppercase; letter-spacing: 0.18em;
    font-size: 11px; color: var(--text-dim);
    margin-top: 6px; font-weight: 600;
}
.hero-stat .dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: var(--success); box-shadow: 0 0 12px var(--success);
    margin-right: 6px; vertical-align: middle;
}

/* ---------- Server card ---------- */
.server-card {
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}
.server-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.server-card .status-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    margin-right: 8px;
}
.server-card .status-dot.on { background: var(--success); box-shadow: 0 0 10px rgba(34, 197, 94, 0.6); }
.server-card .status-dot.off { background: var(--danger); }
.server-card h3 { display: flex; align-items: center; margin-bottom: 4px; }
.server-card .tag { color: var(--text-dim); font-size: 13px; margin-bottom: 14px; }
.server-card .meta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.server-card .meta div { font-size: 13px; color: var(--text-soft); }
.server-card .meta strong { color: var(--text); font-weight: 600; }
.server-card .progress {
    height: 6px; background: var(--surface-3); border-radius: 999px; overflow: hidden; margin-bottom: 16px;
}
.server-card .progress > span {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
    transition: width 0.4s;
}

.ops-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.55fr);
    gap: clamp(24px, 5vw, 56px);
    align-items: center;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid var(--border);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(15, 20, 27, 0.96), rgba(7, 9, 13, 0.96)),
        var(--surface);
    box-shadow: var(--shadow-lg);
}
.ops-panel h1 {
    font-size: clamp(36px, 6vw, 76px);
    line-height: 0.95;
    max-width: 9ch;
}
.ops-terminal {
    padding: 18px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: #0a0e14;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: var(--text-soft);
}
.ops-terminal div {
    padding: 10px 0;
    border-bottom: 1px solid rgba(246, 241, 232, 0.07);
}
.ops-terminal div:last-child { border-bottom: 0; }
.ops-terminal span {
    color: var(--accent);
    margin-right: 12px;
}

@keyframes riseIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
.server-card .ip-row { display: flex; gap: 8px; align-items: center; }
.server-card code {
    background: var(--bg-2); border: 1px solid var(--border);
    padding: 6px 12px; border-radius: 8px; font-size: 13px;
    color: var(--text);
}

/* ---------- Package card ---------- */
.pkg-card {
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform 0.18s, border-color 0.18s;
}
.pkg-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.pkg-card.tone-vip { --pkg-accent: #f5a60a; --pkg-soft: rgba(245, 166, 10, 0.14); }
.pkg-card.tone-premium { --pkg-accent: #60a5fa; --pkg-soft: rgba(96, 165, 250, 0.14); }
.pkg-card.tone-elite { --pkg-accent: #ef4444; --pkg-soft: rgba(239, 68, 68, 0.14); }
.pkg-card.tone-supporter { --pkg-accent: #22c55e; --pkg-soft: rgba(34, 197, 94, 0.14); }
.pkg-card.tone-sponsor { --pkg-accent: #a78bfa; --pkg-soft: rgba(167, 139, 250, 0.14); }
.pkg-card.tone-currency { --pkg-accent: #facc15; --pkg-soft: rgba(250, 204, 21, 0.14); }
.pkg-card[class*="tone-"] {
    border-color: color-mix(in srgb, var(--pkg-accent) 30%, var(--border));
}
.pkg-card[class*="tone-"] .section-kicker,
.pkg-card[class*="tone-"] .price { color: var(--pkg-accent); }
.pkg-card[class*="tone-"] .pkg-chip-row span {
    background: var(--pkg-soft);
    border-color: color-mix(in srgb, var(--pkg-accent) 28%, transparent);
}
.pkg-card .img {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--bg-2) center/cover no-repeat;
    border-bottom: 1px solid var(--border);
}
.pkg-card .img::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 0 40%, rgba(255,255,255,0.08) 50%, transparent 60%),
        radial-gradient(circle at 74% 18%, rgba(255, 208, 122, 0.18), transparent 36%);
    mix-blend-mode: screen;
    opacity: 0.72;
    pointer-events: none;
}
.pkg-card .body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.pkg-card .body h3 { font-size: 17px; margin-bottom: 6px; }
.pkg-card .body p { font-size: 13px; flex: 1; }
.pkg-desc {
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.58;
    flex: 1;
}
.pkg-card .pkg-desc {
    flex: 0 0 auto;
    min-height: 42px;
}
.pkg-card .pkg-desc p {
    flex: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pkg-desc p { margin: 0 0 8px; }
.pkg-desc p:last-child { margin-bottom: 0; }
.pkg-desc strong { color: var(--text); font-weight: 800; }
.pkg-desc ul {
    margin: 8px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
}
.pkg-desc li { padding-left: 2px; }
.pkg-card .price-row {
    display: flex; align-items: center; justify-content: space-between; margin-top: 14px;
}
.pkg-card .price {
    font-family: var(--font-display); font-weight: 800; font-size: 22px;
    color: var(--accent);
}

/* ---------- Forms ---------- */
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-row label { font-size: 13px; color: var(--text-soft); font-weight: 500; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number],
input[type=url], textarea, select {
    width: 100%;
    color-scheme: dark;
    appearance: none;
    background: var(--bg-2) !important;
    background-color: var(--bg-2) !important;
    border: 1px solid var(--border);
    color: var(--text) !important;
    padding: 11px 14px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    box-shadow: inset 0 0 0 9999px transparent;
    transition: border-color 0.15s;
}
input::placeholder, textarea::placeholder { color: var(--text-dim); opacity: 1; }
select {
    background-image: linear-gradient(45deg, transparent 50%, var(--text-soft) 50%), linear-gradient(135deg, var(--text-soft) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 36px;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);
    box-shadow: 0 0 0 1000px var(--bg-2) inset;
    caret-color: var(--text);
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 110px; }
.form-row.compact { margin-bottom: 10px; }
.req { color: var(--accent); font-weight: 900; }
.file-picker {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px;
    border: 1px dashed rgba(245, 158, 11, 0.35);
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.05);
    cursor: pointer;
}
.file-picker input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
}
.file-picker span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 9px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    color: #1d1204;
    font-size: 13px;
    font-weight: 900;
}
.file-picker strong {
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.command-toolbar,
.pkg-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.webhook-test-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}
.pkg-chip-row span {
    border: 1px solid rgba(246, 241, 232, 0.1);
    border-radius: 999px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.025);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 8px;
}
.wipe-strip {
    display: grid;
    gap: 5px;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.07);
}
.wipe-strip span {
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.wipe-strip strong { color: var(--text); }
.wipe-strip small { color: var(--text-dim); line-height: 1.45; }
.wipe-panel {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin: 16px 0;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(245, 158, 11, 0.26);
    background:
        radial-gradient(circle at 18px 18px, rgba(245, 158, 11, 0.18), transparent 34px),
        linear-gradient(135deg, rgba(245, 158, 11, 0.09), rgba(79, 109, 245, 0.055));
    overflow: hidden;
}
.wipe-panel::after {
    content: "";
    position: absolute;
    inset: auto 14px 8px 58px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), rgba(245, 158, 11, 0.12));
}
.wipe-panel.full {
    border-color: rgba(239, 68, 68, 0.28);
    background:
        radial-gradient(circle at 18px 18px, rgba(239, 68, 68, 0.16), transparent 34px),
        linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(245, 158, 11, 0.06));
}
.wipe-panel.full::after { background: linear-gradient(90deg, #f87171, rgba(245, 158, 11, 0.28)); }
.wipe-pulse {
    width: 12px;
    height: 12px;
    margin: 0 auto;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45);
    animation: wipePulse 1.8s ease-out infinite;
}
.wipe-panel.full .wipe-pulse {
    background: #f87171;
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.45);
}
.wipe-panel span {
    display: block;
    color: var(--accent);
    font: 900 10px var(--font-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.wipe-panel.full span { color: #fca5a5; }
.wipe-panel strong {
    display: block;
    margin-top: 4px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.35;
}
.wipe-panel small {
    display: block;
    margin-top: 5px;
    color: var(--text-soft);
    line-height: 1.45;
}
@keyframes wipePulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45); transform: scale(0.92); }
    70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); transform: scale(1); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); transform: scale(0.92); }
}
.order-countdown {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    margin-top: 5px;
}
.ticket-attachment {
    display: block;
    max-width: min(100%, 420px);
    max-height: 260px;
    object-fit: contain;
    margin-top: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-2);
}
.ticket-attachment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 220px));
    gap: 10px;
    margin-top: 10px;
}
.ticket-attachment-grid .ticket-attachment {
    width: 100%;
    height: 140px;
    max-width: none;
    max-height: none;
    margin-top: 0;
    object-fit: cover;
}
.ticket-video {
    background: #000;
}

/* ---------- Alerts ---------- */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 14px;
    border: 1px solid;
}
.alert-error { background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.3); color: #fca5a5; }
.alert-success { background: rgba(34, 197, 94, 0.08); border-color: rgba(34, 197, 94, 0.3); color: #86efac; }
.alert-info { background: rgba(79, 109, 245, 0.08); border-color: rgba(79, 109, 245, 0.3); color: #c7d2fe; }
.alert-warn { background: rgba(250, 204, 21, 0.08); border-color: rgba(250, 204, 21, 0.3); color: #fde047; }
.upload-progress-alert {
    display: grid;
    gap: 8px;
}
.upload-progress-alert strong {
    color: var(--text);
}
.upload-progress-alert span {
    color: var(--text-soft);
    font-size: 13px;
}
.upload-progress {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}
.upload-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 0.18s ease;
}

/* ---------- Badges & pills ---------- */
.badge {
    display: inline-flex; align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.badge-success { background: rgba(34, 197, 94, 0.15); color: #86efac; }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.badge-warn { background: rgba(250, 204, 21, 0.15); color: #fde047; }
.badge-info { background: rgba(79, 109, 245, 0.15); color: #c7d2fe; }
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.priority-badge {
    display: inline-flex;
    align-items: center;
    margin-right: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.14);
    color: var(--accent);
    border: 1px solid rgba(245, 158, 11, 0.26);
    font-size: 11px;
    font-weight: 900;
}
.ticket-unread {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(79, 109, 245, 0.18);
    color: #c7d2fe;
    font-size: 11px;
    font-weight: 900;
}
.rating-mini { color: var(--accent); font-size: 12px; white-space: nowrap; }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.table th, .table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.table th {
    color: var(--text-dim); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px;
}
.table tr:hover td { background: rgba(255, 255, 255, 0.02); }
.ticket-row { cursor: pointer; }
.ticket-row:focus-visible td {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
    background: rgba(245, 158, 11, 0.06);
}
.ticket-list-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.ticket-list-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255,255,255,0.035);
}
.ticket-list-tabs button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
    font: 800 12px var(--font);
    padding: 7px 12px;
}
.ticket-list-tabs button.active {
    background: rgba(245, 158, 11, 0.16);
    color: var(--accent);
}

/* ---------- Modal ---------- */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(3, 5, 10, 0.78);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 24px;
}
.modal-backdrop.open { display: flex; }
.modal-backdrop.admin-product-backdrop {
    align-items: flex-start;
    overflow-y: auto;
    padding: 12px;
}
.modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    width: 100%; max-width: 460px;
    box-shadow: var(--shadow-lg);
}
.admin-product-modal {
    width: min(860px, calc(100vw - 24px));
    max-width: 860px;
    max-height: calc(100svh - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: auto 0;
}
.admin-product-modal textarea {
    min-height: 78px;
    max-height: 140px;
    resize: vertical;
}
.admin-product-modal .command-toolbar {
    flex-wrap: wrap;
}
.modal-wide { max-width: 760px; }
.store-buy-modal {
    display: flex;
    flex-direction: column;
    max-height: min(860px, calc(100svh - 28px));
    overflow: hidden;
}
.store-buy-scroll {
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
}
.store-buy-actions {
    flex-shrink: 0;
    margin: 14px -2px -2px;
    padding: 14px 2px 2px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(15, 20, 27, 0.86), var(--surface) 42%);
}
.modal h3 { margin-bottom: 8px; }
.modal-close { float: right; cursor: pointer; color: var(--text-dim); font-size: 22px; line-height: 1; background: none; border: none; }

.pkg-detail-head {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}
.pkg-detail-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-2) center/cover no-repeat;
}
.pkg-detail-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0;
}
.pkg-detail-meta div {
    padding: 12px;
    border-radius: 12px;
    background: rgba(246, 241, 232, 0.035);
    border: 1px solid var(--border);
}
.pkg-detail-meta span {
    display: block;
    color: var(--text-dim);
    font: 900 10px var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.pkg-detail-meta strong {
    display: block;
    margin-top: 5px;
    color: var(--text);
}
.pkg-detail-benefits {
    margin: 14px 0;
    color: var(--text-soft);
    line-height: 1.65;
}
.pkg-detail-benefits p { margin: 0 0 8px; }

/* ---------- Support ---------- */
.ticket-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.42fr) 1fr;
    gap: 24px;
}
.support-form-card {
    position: relative;
    overflow: hidden;
}
.support-form-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #60a5fa, #22c55e);
}
.support-required-note,
.support-fieldset {
    margin: 14px 0;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(245, 158, 11, 0.22);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(96, 165, 250, 0.045));
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.55;
}
.support-required-note strong,
.support-fieldset-head strong {
    display: block;
    color: var(--text);
    margin-bottom: 3px;
}
.support-fieldset-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.support-fieldset-head small { color: var(--text-dim); }
.field-required-badge,
.field-optional-badge {
    margin-left: 6px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}
.field-required-badge { background: rgba(245, 158, 11, 0.16); color: var(--accent); }
.field-optional-badge { background: rgba(255,255,255,0.055); color: var(--text-dim); }
.support-note {
    margin-top: 18px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.22);
    background: rgba(245, 158, 11, 0.07);
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.55;
}
.support-note strong {
    display: block;
    color: var(--text);
    margin-bottom: 3px;
}
.support-server-head {
    margin: 18px 0 14px;
}
.support-server-head h4 {
    margin: 6px 0 4px;
    font-size: 18px;
}
.support-server-head p {
    color: var(--text-soft);
    margin: 0;
    line-height: 1.55;
}
.support-server-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.support-server-card {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    position: relative;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 18px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(246, 241, 232, 0.06), rgba(246, 241, 232, 0.025)),
        var(--surface-2);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.support-server-card:hover,
.support-server-card.active {
    border-color: var(--accent);
    background:
        linear-gradient(180deg, rgba(245, 158, 11, 0.16), rgba(245, 158, 11, 0.055)),
        var(--surface-2);
    box-shadow: 0 18px 42px rgba(245, 158, 11, 0.08);
    transform: translateY(-2px);
}
.support-server-card:focus-visible {
    outline: 2px solid rgba(245, 158, 11, 0.65);
    outline-offset: 3px;
}
.support-server-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.14);
    font: 900 11px var(--font-mono);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.support-server-card strong {
    font-size: 17px;
    line-height: 1.25;
}
.support-server-card small {
    color: var(--text-soft);
    line-height: 1.45;
}
.support-form-card.server-required .ticket-form-fields {
    display: none;
}
.support-form-card.ticket-banned #support-server-picker,
.support-form-card.ticket-banned .ticket-form-fields,
.support-form-card.ticket-banned .support-required-note {
    display: none;
}
.support-form-card.server-required .support-required-note {
    margin-bottom: 0;
}
.support-form-card:not(.server-required) #support-server-picker {
    display: none;
}
.support-selected-server {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    margin: 4px 0 16px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.08);
}
.support-selected-server span {
    display: block;
    color: var(--text-dim);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
}
.support-selected-server strong {
    display: block;
    color: var(--text);
    font-size: 16px;
}
.support-back {
    display: inline-flex;
    margin-bottom: 10px;
    font-size: 13px;
}
.support-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-dim);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}
.support-meta span {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.045);
    border: 1px solid var(--border);
}
.ticket-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}
.ticket-detail-head h2 { margin: 0; }
.ticket-close-reason {
    margin: 10px 0 0;
    color: var(--text-soft);
    font-size: 13px;
}
.ticket-close-panel {
    display: grid;
    gap: 10px;
    margin: 12px 0;
    padding: 14px;
    border: 1px solid rgba(239, 68, 68, 0.22);
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.055);
}
.ticket-close-panel label {
    color: var(--text);
    font-weight: 900;
}
.msg {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.msg:last-child { border-bottom: none; }
.msg img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}
.msg .body { flex: 1; min-width: 0; }
.msg .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 13px;
}
.msg .meta .name { color: var(--text); font-weight: 800; }
.msg .meta .time { color: var(--text-dim); }
.msg .text {
    color: var(--text-soft);
    margin-top: 6px;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.65;
}
.msg.staff {
    margin: 12px 0;
    padding: 16px;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-left: 3px solid var(--accent);
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.045);
}
.rating-stars {
    display: flex;
    gap: 6px;
    color: var(--text-dim);
    font-size: 28px;
    margin: 8px 0 12px;
}
.rating-stars button {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255,255,255,0.035);
    color: var(--text-dim);
    cursor: pointer;
}
.rating-stars button.active,
.rating-stars button:hover { color: var(--accent); border-color: rgba(245, 158, 11, 0.5); }
.rating-stars.readonly { color: var(--accent); }
.admin-stat {
    position: relative;
    overflow: hidden;
}
.admin-stat::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.08);
}
.admin-stat.hot::after { background: rgba(239, 68, 68, 0.1); }
.admin-stat.good::after { background: rgba(34, 197, 94, 0.1); }
.admin-stat span {
    display: block;
    color: var(--text-dim);
    font: 900 11px var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.admin-stat strong {
    display: block;
    margin-top: 8px;
    color: var(--text);
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 900;
}
.admin-stat small { color: var(--text-soft); }
.legal-page {
    padding: clamp(26px, 5vw, 48px);
}
.legal-section {
    padding: 22px 0;
    border-top: 1px solid var(--border);
}
.legal-section h2 {
    margin: 0 0 8px;
    font-size: 22px;
}
.legal-section p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.75;
    max-width: 76ch;
}

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg) 0%, #04060c 100%);
    padding: 56px 0 28px;
    margin-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
    gap: 32px;
}
.footer h4 {
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--text);
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.footer a { color: var(--text-soft); font-size: 14px; display: block; padding: 6px 0; }
.footer a:hover { color: var(--accent); }
.footer-bottom {
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    color: var(--text-dim); font-size: 13px;
    flex-wrap: wrap; gap: 16px;
}
.footer-credit a { color: var(--text-dim); display: inline; }
.footer-credit a:hover { color: var(--accent); }
.footer-credit strong { color: var(--accent); font-weight: 900; }

@media (max-width: 720px) {
    .nav-links { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero { padding-top: 60px; }
    .ticket-layout { grid-template-columns: 1fr; }
}

/* ---------- Utility ---------- */
.skeleton {
    background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.4s linear infinite;
    border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.empty-state { padding: 60px 20px; text-align: center; color: var(--text-dim); }
.empty-state svg { width: 48px; height: 48px; margin-bottom: 12px; opacity: 0.5; }
.soft-empty {
    padding: 22px;
    border: 1px dashed var(--border);
    border-radius: 14px;
    background: rgba(255,255,255,0.025);
}

.spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid var(--surface-3);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.tabs .tab {
    padding: 10px 16px;
    color: var(--text-dim);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    transition: color 0.15s, border-color 0.15s;
}
.tabs .tab:hover { color: var(--text-soft); }
.tabs .tab.active { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- Language switcher ---------- */
.lang-switcher { position: relative; }
.btn-icon {
    width: 38px; height: 38px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-icon:hover { background: var(--surface-3); }
.btn-icon svg { width: 18px; height: 18px; }
.lang-menu {
    position: absolute; right: 0; top: 100%; margin-top: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 6px;
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    z-index: 200;
    display: none;
}
.lang-menu.open { display: block; }
.lang-option {
    width: 100%; background: transparent; border: none;
    color: var(--text-soft); text-align: left;
    padding: 9px 12px; border-radius: 8px; font-size: 14px;
    cursor: pointer; display: flex; align-items: center; gap: 10px;
    font-family: inherit;
}
.lang-option:hover { background: var(--surface-2); color: var(--text); }
.lang-option.active { background: var(--surface-2); color: var(--accent); }

.language-gate {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(7, 9, 13, 0.88);
    backdrop-filter: blur(14px);
}
.language-card {
    width: min(520px, 100%);
    padding: 32px;
    border: 1px solid rgba(243, 165, 36, 0.22);
    border-radius: 8px;
    background: #0f141b;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.language-mark {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--accent);
    color: #080b10;
    font-family: var(--font-display);
    font-weight: 900;
}
.language-card h2 { margin: 0 0 8px; }
.language-card p { margin: 0 0 22px; color: var(--muted); }
.language-actions { display: grid; gap: 10px; }

.store-choice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 22px;
}
.store-choice-item {
    display: block;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(15, 20, 27, 0.82);
    color: var(--text);
    text-decoration: none;
}
.store-choice-item strong {
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-display);
    color: var(--heading);
}
.store-choice-item span {
    color: var(--muted);
    font-size: 13px;
}
.store-choice-item.active {
    border-color: rgba(243, 165, 36, 0.55);
    background: rgba(243, 165, 36, 0.08);
}

/* ---------- Admin layout (sidebar shell) ---------- */
.admin-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 64px);
}
.admin-side {
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 18px 14px;
}
.admin-side h5 {
    font-size: 11px; color: var(--text-dim);
    text-transform: uppercase; letter-spacing: 0.15em;
    margin: 0 8px 12px;
    font-weight: 600;
    font-family: var(--font-display);
}
.admin-side .side-link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-soft);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    margin-bottom: 2px;
}
.admin-side .side-link:hover { background: var(--surface-2); color: var(--text); }
.admin-side .side-link.active {
    background: var(--surface-2); color: var(--text);
    box-shadow: inset 2px 0 0 var(--accent);
}
.admin-side .side-link svg { width: 18px; height: 18px; opacity: 0.85; flex-shrink: 0; }

.admin-main { padding: 28px; }
.ticket-only-admin .admin-shell {
    grid-template-columns: minmax(190px, 220px) 1fr;
}
.admin-ticket-filters {
    flex-wrap: wrap;
    justify-content: flex-end;
}
.admin-ticket-filters input,
.admin-ticket-filters select {
    width: auto;
}
.ticket-load-more {
    display: flex;
    justify-content: center;
    padding: 18px 0 4px;
}
#ticket-table td small {
    display: block;
    margin-top: 2px;
    color: var(--text-dim);
    font-size: 11px;
    word-break: break-all;
}
.admin-bread {
    display: flex; align-items: center; gap: 10px;
    color: var(--text-dim); font-size: 13px; margin-bottom: 18px;
}
.admin-bread .sep { opacity: 0.4; }
.admin-bread .current { color: var(--text); font-weight: 600; }

/* ---------- Tree (categories + packages) ---------- */
.tree-row {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 8px;
    display: flex; align-items: center; gap: 12px;
}
.tree-row.cat { background: var(--surface-2); }
.tree-row .grip { color: var(--text-dim); cursor: grab; user-select: none; font-size: 16px; }
.tree-row .label { flex: 1; font-weight: 600; }
.tree-row .label small { font-weight: 400; color: var(--text-dim); margin-left: 8px; }
.tree-row .price { color: var(--accent); font-weight: 700; }
.tree-row .menu-btn { color: var(--text-dim); cursor: pointer; padding: 4px 8px; }
.tree-children { margin-left: 28px; }
.tree-children .tree-row { background: var(--surface); }

.tree-empty { padding: 28px; text-align: center; color: var(--text-dim); }

/* ---------- Store sidebar (category tree on /magaza) ---------- */
.store-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
}
.store-server-picker {
    margin-bottom: 28px;
    padding: 28px;
    border: 1px solid rgba(246, 241, 232, 0.1);
    border-radius: 24px;
    background:
        radial-gradient(circle at 78% 20%, rgba(243, 165, 36, 0.16), transparent 34%),
        linear-gradient(145deg, rgba(15, 20, 27, 0.95), rgba(7, 9, 13, 0.95));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}
.store-server-head {
    max-width: 720px;
    margin-bottom: 22px;
}
.store-server-head h2 {
    margin: 0 0 10px;
    font-size: clamp(26px, 3vw, 40px);
}
.store-server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.store-server-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 22px;
    text-align: left;
    border: 1px solid rgba(246, 241, 232, 0.12);
    border-radius: 18px;
    color: var(--text);
    background:
        radial-gradient(circle at 85% 18%, rgba(99, 184, 255, 0.16), transparent 34%),
        linear-gradient(155deg, rgba(20, 27, 35, 0.98), rgba(8, 11, 16, 0.98));
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.store-server-card::before {
    content: "";
    position: absolute;
    inset: auto -40px -70px auto;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 1px solid rgba(243, 165, 36, 0.18);
}
.store-server-card:hover {
    transform: translateY(-4px);
    border-color: rgba(243, 165, 36, 0.55);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
}
.store-server-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    font: 900 15px var(--font-mono);
    text-transform: uppercase;
}
.store-server-card strong {
    display: block;
    margin-top: 22px;
    font-size: 24px;
}
.store-server-card small,
.store-server-card em {
    display: block;
    color: var(--text-soft);
    font-style: normal;
}
.store-server-card b {
    display: inline-flex;
    margin-top: 16px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(246, 241, 232, 0.07);
    color: var(--text);
    font-size: 12px;
}
.store-change-server {
    width: 100%;
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text-soft);
    font: 800 13px var(--font);
    cursor: pointer;
}
.store-change-server:hover {
    color: var(--text);
    border-color: rgba(243, 165, 36, 0.4);
}
.store-side {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    align-self: start;
    position: sticky;
    top: 80px;
}
.store-side h4 {
    font-family: var(--font-display);
    font-size: 13px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0 0 12px;
}
.store-cat {
    display: block;
    padding: 9px 12px;
    border-radius: 9px;
    color: var(--text-soft);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    margin-bottom: 2px;
}
.store-cat:hover { background: var(--surface-2); color: var(--text); }
.store-cat.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.store-cat-children { padding-left: 14px; border-left: 1px solid var(--border); margin-left: 4px; }

@media (max-width: 900px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-side { border-right: none; border-bottom: 1px solid var(--border); }
    .admin-main { padding: 18px; }
    .admin-side {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 12px;
    }
    .admin-side h5 { display: none; }
    .admin-side .side-link {
        flex: 0 0 auto;
        margin: 0;
        white-space: nowrap;
    }
    .admin-ticket-heading {
        align-items: stretch;
        gap: 14px;
    }
    .admin-ticket-filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }
    .admin-ticket-filters input,
    .admin-ticket-filters select {
        width: 100%;
        max-width: none !important;
        min-width: 0 !important;
    }
    .store-layout { grid-template-columns: 1fr; }
    .store-side { position: static; }
    .store-choice { grid-template-columns: 1fr; }
    .ops-panel { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    #ticket-table {
        min-width: 0;
        border-spacing: 0 10px;
    }
    #ticket-table thead { display: none; }
    #ticket-table tbody,
    #ticket-table tr,
    #ticket-table td {
        display: block;
        width: 100%;
    }
    #ticket-table tr {
        background: rgba(15, 20, 27, 0.92);
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 10px 12px;
    }
    #ticket-table td {
        border: 0;
        padding: 7px 0;
    }
    #ticket-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        color: var(--text-dim);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }
    #ticket-table td[data-label=""]::before { display: none; }
    #ticket-table .btn {
        width: 100%;
        justify-content: center;
    }
    .admin-ticket-filters {
        grid-template-columns: 1fr;
    }
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-end { text-align: right; }
.hidden { display: none !important; }

/* ---------- 2026 AtakRust premium shell ---------- */
:root {
    --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 74% 16%, rgba(243, 165, 36, 0.12), transparent 28%),
        radial-gradient(circle at 18% 78%, rgba(99, 184, 255, 0.08), transparent 24%),
        linear-gradient(180deg, #07090d 0%, #0a0e14 48%, #07090d 100%);
}
h1, h2, h3, h4 { letter-spacing: 0; }
.container { max-width: 1508px; padding: 0 clamp(20px, 5vw, 54px); }

.site-header,
.navbar {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(7, 9, 13, 0.9);
    border-bottom: 1px solid rgba(246, 241, 232, 0.075);
    backdrop-filter: blur(18px);
}
.navbar-inner {
    min-height: 84px;
    padding: 0;
}
.brand {
    min-width: 190px;
    font-size: 20px;
}
.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background:
        radial-gradient(circle at 48% 40%, #f6f1e8 0 10%, transparent 11%),
        conic-gradient(from 40deg, #f3a524, #ffd07a, #6f4310, #f3a524);
    box-shadow: inset 0 0 0 10px #15110a, 0 16px 36px rgba(243, 165, 36, 0.22);
    color: transparent;
}
.brand-logo {
    background: url('/logo.png?v=20260514n') center/contain no-repeat;
    box-shadow: none;
}
.nav-links {
    justify-content: center;
    gap: 8px;
}
.nav-link {
    min-height: 44px;
    padding: 0 14px;
    color: rgba(217, 209, 196, 0.82);
    font-size: 15px;
    font-weight: 800;
}
.nav-link:hover,
.nav-link.active {
    background: rgba(246, 241, 232, 0.055);
    border-color: rgba(246, 241, 232, 0.11);
}
.nav-right { gap: 12px; }
.btn, .btn-icon, .user-chip, input, textarea, select {
    border-radius: 12px;
    font-family: var(--font);
}
.btn {
    min-height: 44px;
    font-weight: 900;
}
.btn-primary {
    background: linear-gradient(180deg, #ffd07a, #f3a524);
    color: #171006;
    box-shadow: 0 18px 36px rgba(243, 165, 36, 0.18);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-steam {
    background: #171a21;
    border-color: rgba(246, 241, 232, 0.15);
}
.btn-discord, .btn-brand {
    background: #5865f2;
    color: #fff;
}

.lang-switcher { position: relative; }
.lang-switcher .btn-icon {
    width: auto;
    min-width: 58px;
    padding: 0 10px;
    gap: 7px;
}
.flag {
    position: relative;
    width: 22px;
    height: 15px;
    display: inline-block;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 3px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.flag-tr { background-image: url("/assets/flags/tr.svg"); }
.flag-en { background-image: url("/assets/flags/en.svg"); }
.flag-ru { background-image: url("/assets/flags/ru.svg"); }
.flag-lg { width: 30px; height: 20px; }
.flag-xl { width: 64px; height: 43px; border-radius: 6px; }

/* ---------- Store chooser (/magaza) ---------- */
.store-chooser-shell { padding: 80px 0 120px; }
.store-chooser-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.store-chooser {
    display: grid; gap: 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 920px; margin: 0 auto;
}
@media (max-width: 720px) { .store-chooser { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
    .support-server-grid { grid-template-columns: 1fr; }
    .support-server-card { min-height: 112px; }
    .support-selected-server {
        align-items: stretch;
        flex-direction: column;
    }
    .support-selected-server .btn {
        width: 100%;
    }
}
.store-chooser-card {
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 30px 32px;
    display: flex; flex-direction: column; align-items: flex-start;
    gap: 14px; cursor: pointer; transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
    color: inherit;
    position: relative; overflow: hidden;
}
.store-chooser-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 24px 60px rgba(245,158,11,0.10); }
.store-chooser-card .flag-xl { box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.store-chooser-card h2 { margin: 4px 0 0; font-size: 24px; }
.store-chooser-card p { margin: 0; color: var(--text-soft); }
.store-chooser-badge {
    position: absolute; top: 18px; right: 18px;
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em;
    background: var(--surface-3); color: var(--text-soft);
    padding: 5px 10px; border-radius: 999px; font-weight: 600;
}
.store-chooser-cta {
    margin-top: 14px; display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #1a0d00; font-weight: 700; padding: 11px 22px;
    border-radius: 12px; font-size: 14px;
}
.store-chooser-cta::after {
    content: '→'; transition: transform 0.18s;
}
.store-chooser-card:hover .store-chooser-cta::after { transform: translateX(3px); }
.store-chooser-note {
    text-align: center; color: var(--text-dim);
    font-size: 13px; margin-top: 36px;
}

/* ---------- Store mode toggle (inside actual store pages) ---------- */
.store-mode-row {
    display: inline-flex; gap: 6px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px; margin-bottom: 18px;
    align-items: center; flex-wrap: wrap;
}
.store-mode {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: 999px;
    color: var(--text-soft); font-weight: 600; font-size: 13px;
    transition: background 0.15s, color 0.15s;
}
.store-mode:hover { color: var(--text); }
.store-mode.active { background: var(--surface); color: var(--text); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.store-mode .flag { width: 18px; height: 12px; }
.store-mode-switch {
    margin-left: 8px;
    font-size: 12px; color: var(--text-dim); padding: 7px 12px;
    text-decoration: underline; text-underline-offset: 3px;
}
.store-mode-switch:hover { color: var(--accent); }

/* ---------- Category tree row (chevron + label) ---------- */
.store-cat-row {
    display: flex; align-items: center; gap: 4px; margin-bottom: 2px;
}
.cat-spacer { width: 22px; flex: 0 0 22px; }
.cat-toggle {
    width: 22px; height: 22px; flex: 0 0 22px;
    background: transparent; border: none; color: var(--text-dim);
    cursor: pointer; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 5px;
    transition: background 0.12s, color 0.12s, transform 0.18s;
}
.cat-toggle:hover { background: var(--surface-2); color: var(--text); }
.cat-toggle .cat-chev { transition: transform 0.18s; }
.cat-toggle.collapsed .cat-chev { transform: rotate(-90deg); }
.store-cat-children { padding-left: 22px; border-left: 1px solid var(--border); margin-left: 11px; }
.store-cat-row .store-cat { flex: 1; }
.lang-code {
    font: 900 12px var(--font-mono);
    color: #ffd07a;
}
.lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 190px;
    padding: 8px;
    border: 1px solid rgba(246, 241, 232, 0.12);
    border-radius: 14px;
    background: #0f141b;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
    display: none;
}
.lang-menu.open { display: grid; gap: 6px; }
.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #d9d1c4;
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
    font: 800 13px var(--font);
}
.lang-option:hover,
.lang-option.active {
    background: rgba(243, 165, 36, 0.12);
    color: #f6f1e8;
}

.home-hero {
    position: relative;
    isolation: isolate;
    min-height: calc(100svh - 84px);
    display: flex;
    align-items: center;
    padding: clamp(70px, 9vw, 118px) 0;
    overflow: hidden;
}
.hero-bg-video {
    position: absolute;
    inset: -2%;
    z-index: 0;
    width: 104%;
    height: 104%;
    object-fit: cover;
    opacity: 0.58;
    filter: saturate(1.22) contrast(1.16) brightness(0.82) blur(0.2px);
    transform: scale(1.02);
}
.hero-bg-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 68% 36%, rgba(243, 165, 36, 0.12), transparent 34%),
        linear-gradient(90deg, rgba(7, 9, 13, 0.9) 0%, rgba(7, 9, 13, 0.58) 48%, rgba(7, 9, 13, 0.82) 100%),
        linear-gradient(180deg, rgba(7, 9, 13, 0.32), rgba(7, 9, 13, 0.88) 100%);
    pointer-events: none;
}
.home-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.75fr);
    gap: clamp(42px, 7vw, 104px);
    align-items: center;
}
.hero-copy { max-width: 680px; }
.hero-kicker,
.section-kicker {
    display: block;
    margin-bottom: 22px;
    color: #f3a524;
    font: 900 13px var(--font-mono);
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.home-title {
    max-width: 13ch;
    font: 800 clamp(56px, 6.5vw, 104px)/0.95 var(--font-display);
    margin: 0;
    color: #f6f1e8;
}
.home-title span { color: #f3a524; }
.hero-lead {
    max-width: 58ch;
    margin: 28px 0 0;
    color: rgba(217, 209, 196, 0.9);
    font-size: clamp(18px, 1.45vw, 24px);
    line-height: 1.55;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.server-hub {
    position: relative;
    min-height: 620px;
    border: 1px solid rgba(246, 241, 232, 0.12);
    border-radius: 28px;
    padding: 28px;
    background:
        radial-gradient(circle at 78% 18%, rgba(243, 165, 36, 0.25), transparent 35%),
        linear-gradient(145deg, rgba(15, 20, 27, 0.98), rgba(7, 9, 13, 0.98));
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.42);
    overflow: hidden;
}

.rust-hero-panel {
    position: relative;
    min-height: 560px;
    border: 1px solid rgba(246, 241, 232, 0.12);
    border-radius: 28px;
    padding: 28px;
    background:
        radial-gradient(circle at 74% 20%, rgba(243, 165, 36, 0.22), transparent 34%),
        linear-gradient(145deg, rgba(15, 20, 27, 0.98), rgba(7, 9, 13, 0.98));
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.42);
    overflow: hidden;
}
.rust-hero-panel::before {
    content: "";
    position: absolute;
    inset: 92px 54px auto auto;
    width: 390px;
    height: 390px;
    border-radius: 50%;
    border: 1px solid rgba(246, 241, 232, 0.08);
    animation: radarGlow 4.8s ease-in-out infinite;
}
.live-server-radar::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 27px;
    background:
        linear-gradient(120deg, transparent 0 38%, rgba(255, 208, 122, 0.08) 48%, transparent 58%),
        radial-gradient(circle at 74% 22%, rgba(125, 240, 189, 0.08), transparent 34%);
    pointer-events: none;
    z-index: 1;
}
.radar-orbit {
    position: absolute;
    z-index: 0;
    right: 56px;
    top: 92px;
    border: 1px solid rgba(246, 241, 232, 0.075);
    border-radius: 50%;
    pointer-events: none;
}
.radar-orbit-a {
    width: 390px;
    height: 390px;
    animation: slowSpin 24s linear infinite;
}
.radar-orbit-b {
    right: 112px;
    top: 148px;
    width: 278px;
    height: 278px;
    animation: slowSpin 18s linear reverse infinite;
}
.radar-sweep {
    position: absolute;
    z-index: 0;
    right: 250px;
    top: 286px;
    width: 210px;
    height: 210px;
    transform-origin: 100% 100%;
    background: conic-gradient(from 18deg, rgba(125, 240, 189, 0.28), rgba(243, 165, 36, 0.02) 28deg, transparent 55deg);
    border-radius: 100% 0 0 0;
    opacity: 0.7;
    animation: radarSweep 5.2s linear infinite;
}
.rust-map-card {
    position: relative;
    z-index: 2;
    margin: 26px 0 18px;
    min-height: 145px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px;
    border: 1px solid rgba(246, 241, 232, 0.11);
    border-radius: 22px;
    background: rgba(7, 9, 13, 0.78);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02), 0 18px 55px rgba(0,0,0,0.28);
}
.rust-map-card img {
    width: 92px;
    height: 92px;
    border-radius: 22px;
    object-fit: cover;
}
.rust-map-card span,
.rust-connect-note span {
    display: block;
    color: #9d978f;
    font: 900 11px var(--font-mono);
    letter-spacing: 0.13em;
    text-transform: uppercase;
}
.rust-map-card strong {
    display: block;
    margin-top: 8px;
    color: #f6f1e8;
    font-size: 34px;
}
.rust-server-list {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 10px;
}
.hero-server-card {
    position: relative;
    overflow: hidden;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(246, 241, 232, 0.09);
    background:
        linear-gradient(135deg, rgba(246, 241, 232, 0.06), rgba(246, 241, 232, 0.025)),
        rgba(7, 9, 13, 0.68);
    box-shadow: 0 16px 40px rgba(0,0,0,0.22);
    animation: liveCardIn 0.45s ease both;
}
.hero-server-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 208, 122, 0.08), transparent);
    transform: translateX(-110%);
    animation: cardScan 5.8s ease-in-out infinite;
    pointer-events: none;
}
.hero-server-card:nth-child(2) { animation-delay: 0.08s; }
.hero-server-top,
.hero-server-meta,
.hero-countdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.hero-server-slug {
    color: #f3a524;
    font: 900 12px var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.hero-online-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}
.hero-online-dot.on {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12), 0 0 20px rgba(34, 197, 94, 0.38);
    animation: livePulse 1.8s ease-out infinite;
}
.hero-server-card strong {
    display: block;
    margin: 8px 0 8px;
    font-size: 15px;
    line-height: 1.32;
    color: #f6f1e8;
}
.hero-server-meta {
    color: rgba(217, 209, 196, 0.82);
    font-size: 12px;
    font-weight: 800;
}
.hero-fill {
    height: 7px;
    margin: 12px 0 10px;
    border-radius: 999px;
    background: rgba(246, 241, 232, 0.08);
    overflow: hidden;
}
.hero-fill span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f3a524, #7df0bd);
    box-shadow: 0 0 20px rgba(243, 165, 36, 0.24);
    transition: width 0.5s ease;
}
.hero-countdown small {
    color: #9d978f;
    font: 900 10px var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.hero-countdown b {
    color: #ffd07a;
    font: 900 16px var(--font-display);
}
.hero-wipe-strip {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.hero-wipe-strip > div,
.hero-wipe-strip > span {
    min-height: 66px;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid rgba(243, 165, 36, 0.2);
    background: rgba(243, 165, 36, 0.075);
}
.hero-wipe-strip span {
    color: #9d978f;
    font: 900 10px var(--font-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.hero-wipe-strip strong {
    display: block;
    margin-top: 5px;
    color: #f6f1e8;
    font-size: 20px;
}
.rust-connect-note {
    position: relative;
    z-index: 2;
    margin-top: 18px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(243, 165, 36, 0.18);
    background: rgba(243, 165, 36, 0.08);
}
.rust-connect-note strong {
    display: block;
    margin-top: 8px;
}
.server-hub::before,
.server-hub::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(246, 241, 232, 0.075);
    animation: slowSpin 24s linear infinite;
}
.server-hub::before { width: 410px; height: 410px; right: 86px; top: 116px; }
.server-hub::after { width: 270px; height: 270px; right: 156px; top: 186px; animation-duration: 18s; }
.hub-top,
.console-head,
.store-hero-grid,
.page-hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.hub-top { position: relative; z-index: 2; }
.hub-top strong {
    display: block;
    margin-top: 6px;
    font-size: 26px;
}
.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(73, 211, 154, 0.3);
    border-radius: 999px;
    background: rgba(73, 211, 154, 0.14);
    color: #7df0bd;
    font: 900 12px var(--font-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.hub-core {
    position: absolute;
    right: 228px;
    top: 275px;
    z-index: 2;
    width: 130px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 28px;
    background: #0a0e14;
    box-shadow: 0 0 0 1px rgba(243, 165, 36, 0.32), 0 0 70px rgba(243, 165, 36, 0.16);
}
.hub-core img { width: 58px; height: 58px; border-radius: 14px; object-fit: cover; }
.hub-node,
.hub-card,
.hub-console {
    position: absolute;
    z-index: 3;
    border: 1px solid rgba(246, 241, 232, 0.11);
    background: rgba(15, 20, 27, 0.88);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.32);
}
.hub-node {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 20px;
}
.hub-node img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
.node-1 { right: 90px; top: 255px; }
.node-2 { left: 78px; top: 300px; }
.node-3 { right: 175px; bottom: 178px; }
.hub-card {
    width: 200px;
    padding: 18px;
    border-radius: 18px;
}
.hub-card span,
.console-head strong,
.stat-card span,
.server-meta span {
    color: #9d978f;
    font: 900 11px var(--font-mono);
    letter-spacing: 0.13em;
    text-transform: uppercase;
}
.hub-card strong { display: block; margin-top: 8px; font-size: 21px; }
.card-players { left: 56px; top: 205px; }
.card-store { right: 42px; bottom: 250px; }
.hub-console {
    left: 28px;
    right: 28px;
    bottom: 26px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(7, 9, 13, 0.96);
}
.console-dots { display: flex; gap: 8px; }
.console-dots span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}
.console-dots span:nth-child(1) { background: #ff6f6f; }
.console-dots span:nth-child(2) { background: #ffd07a; }
.console-dots span:nth-child(3) { background: #49d39a; }
.console-log {
    margin-top: 10px;
    padding: 13px 14px;
    border-radius: 12px;
    background: rgba(246, 241, 232, 0.035);
    color: #d9d1c4;
    font-weight: 800;
}
.console-log b { color: #f3a524; }

@keyframes radarSweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes radarGlow {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.035); }
}
@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.36), 0 0 20px rgba(34, 197, 94, 0.32); }
    100% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0), 0 0 20px rgba(34, 197, 94, 0.32); }
}
@keyframes cardScan {
    0%, 45% { transform: translateX(-110%); }
    75%, 100% { transform: translateX(110%); }
}
@keyframes liveCardIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-premium {
    padding: clamp(72px, 9vw, 130px) 0;
}
.section-head {
    max-width: 760px;
    margin-bottom: 34px;
}
.section-head h2,
.page-title {
    font: 650 clamp(38px, 5.4vw, 82px)/0.98 var(--font-display);
    margin: 0 0 18px;
}
.section-head p,
.page-lead {
    color: rgba(217, 209, 196, 0.86);
    font-size: 18px;
    line-height: 1.7;
}
.ops-grid,
.store-choice,
.server-grid-premium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.ops-card,
.store-choice-item,
.server-card,
.pkg-card,
.ticket-card,
.profile-panel,
.card {
    border: 1px solid rgba(246, 241, 232, 0.095);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(15, 20, 27, 0.98), rgba(10, 14, 20, 0.98));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}
.ops-card {
    min-height: 260px;
    padding: 24px;
}
.ops-card .num {
    display: block;
    margin-bottom: 70px;
    color: rgba(243, 165, 36, 0.78);
    font: 900 13px var(--font-mono);
}
.ops-card h3 { font-size: 27px; margin-bottom: 12px; }

.store-choice {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 28px;
}
.store-choice-item {
    position: relative;
    min-height: 170px;
    padding: 26px;
    overflow: hidden;
}
.store-choice-item::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    right: -70px;
    top: -70px;
    border-radius: 50%;
    background: rgba(243, 165, 36, 0.13);
}
.store-choice-item strong { display: block; font-size: 30px; margin-bottom: 10px; }
.store-choice-item span { color: #d9d1c4; font-size: 16px; }
.store-choice-item.active { border-color: rgba(243, 165, 36, 0.42); }
.store-layout {
    grid-template-columns: 310px 1fr;
    align-items: start;
}
.store-side {
    border-radius: 18px;
    background: rgba(15, 20, 27, 0.9);
}
.pkg-card {
    overflow: hidden;
    padding: 0;
}
.pkg-card .img {
    height: 174px;
    background-size: cover;
    background-position: center;
    background-color: #0a0e14;
}
.pkg-card .body { padding: 22px; }
.price {
    color: #ffd07a;
    font: 900 22px var(--font-mono);
}
.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.page-hero {
    padding: clamp(66px, 8vw, 110px) 0 38px;
    border-bottom: 1px solid rgba(246, 241, 232, 0.07);
}
.page-shell { padding: 42px 0 92px; }
.server-card {
    padding: 24px;
}
.server-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
}
.status-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: #ff6f6f;
    box-shadow: 0 0 0 6px rgba(255, 111, 111, 0.1);
}
.status-dot.on {
    background: #49d39a;
    box-shadow: 0 0 0 6px rgba(73, 211, 154, 0.12);
}
.server-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0;
}
.server-meta div {
    padding: 14px;
    border-radius: 12px;
    background: rgba(246, 241, 232, 0.035);
}
.server-meta strong {
    display: block;
    margin-top: 6px;
    color: #f6f1e8;
    font-size: 20px;
}
.ip-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: #07090d;
}
code {
    color: #ffd07a;
    font-family: var(--font-mono);
    overflow-wrap: anywhere;
}
.progress {
    width: 100%;
    height: 9px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(246, 241, 232, 0.08);
    margin: 16px 0;
}
.progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #49d39a, #f3a524);
}

.language-gate {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(7, 9, 13, 0.78);
    backdrop-filter: blur(16px);
}
.language-card {
    width: min(560px, 100%);
    padding: 34px;
    border: 1px solid rgba(246, 241, 232, 0.14);
    border-radius: 24px;
    background: linear-gradient(180deg, #141b23, #0a0e14);
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.5);
    text-align: center;
}
.language-mark {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffd07a, #f3a524);
    color: #171006;
    font-weight: 1000;
}
.language-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 22px;
}
.language-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@keyframes slowSpin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: no-preference) {
    .hero-copy, .server-hub, .ops-card, .store-choice-item, .server-card, .pkg-card {
        animation: riseIn 0.7s ease both;
    }
}

@media (max-width: 1050px) {
    .home-hero-grid { grid-template-columns: 1fr; }
    .server-hub { min-height: 560px; }
    .ops-grid, .server-grid-premium { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }
}
@media (max-width: 760px) {
    .navbar-inner { min-height: 74px; }
    .brand { min-width: auto; }
    .brand-text { display: none; }
    .home-title { font-size: clamp(52px, 18vw, 78px); }
    .server-hub { min-height: 520px; padding: 20px; }
    .hub-node, .hub-card { display: none; }
    .hub-core { right: 50%; transform: translateX(50%); }
    .store-choice, .ops-grid, .server-grid-premium, .server-meta, .language-actions { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1050px) {
    .navbar-inner { flex-wrap: wrap; padding: 10px 0; }
    .nav-links {
        order: 3;
        display: flex;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
    }
    .nav-link { white-space: nowrap; }
}

/* ---------- Mobile hardening ---------- */
.mobile-nav-toggle,
.mobile-nav-panel {
    display: none;
}
.mobile-tabbar {
    display: none;
}

.mobile-nav-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(246, 241, 232, 0.055);
    color: var(--text);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.mobile-nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.16s ease, opacity 0.16s ease;
}
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav-panel {
    border-top: 1px solid var(--border);
    background: rgba(7, 9, 13, 0.98);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.34);
}
.mobile-nav-inner {
    display: grid;
    gap: 8px;
    padding-top: 12px;
    padding-bottom: 14px;
}
.mobile-nav-panel .nav-link {
    width: 100%;
    justify-content: flex-start;
    min-height: 46px;
}
.mobile-subnav {
    display: grid;
    gap: 6px;
    padding: 4px 0 4px 38px;
}
.mobile-subnav-link {
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 800;
    padding: 8px 10px;
    border-left: 1px solid var(--border);
}
.table-wrap,
.card:has(.table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table {
    min-width: 680px;
}
.ticket-layout,
.store-layout,
.server-grid-premium,
.ops-grid,
.store-choice,
.language-actions,
.server-meta,
.grid,
.footer-grid {
    min-width: 0;
}
input,
textarea,
select,
button,
.btn,
.user-chip,
.store-mode-row,
.pkg-card,
.server-card,
.card {
    max-width: 100%;
}

@media (max-width: 1050px) {
    .navbar-inner {
        flex-wrap: nowrap;
        min-height: 68px;
        padding: 10px 0;
        gap: 10px;
    }
    .brand {
        min-width: 0;
        margin-right: auto;
    }
    .brand-logo {
        width: 42px !important;
        height: 42px !important;
    }
    .nav-links {
        display: none !important;
    }
    .mobile-nav-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }
    .mobile-nav-panel.open {
        display: block;
    }
    .mobile-tabbar {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        z-index: 80;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
        padding: 7px;
        border: 1px solid var(--border);
        border-radius: 18px;
        background: rgba(9, 13, 19, 0.92);
        box-shadow: 0 18px 48px rgba(0,0,0,0.38);
        backdrop-filter: blur(14px);
    }
    .mobile-tabbar a {
        display: grid;
        justify-items: center;
        gap: 4px;
        min-width: 0;
        padding: 7px 4px;
        border-radius: 13px;
        color: var(--text-dim);
        font-size: 10px;
        font-weight: 900;
    }
    .mobile-tabbar a.active {
        color: var(--accent);
        background: rgba(245, 158, 11, 0.12);
    }
    .mobile-tabbar svg {
        width: 18px;
        height: 18px;
    }
    .mobile-tabbar strong {
        font-size: 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
    }
    body {
        padding-bottom: 72px;
    }
    .nav-right {
        margin-left: 0;
        gap: 8px;
        min-width: 0;
    }
    .user-chip {
        padding: 5px;
        gap: 0;
        min-width: 44px;
        flex: 0 1 auto;
    }
    .user-chip img {
        width: 32px;
        height: 32px;
    }
    .user-chip > div {
        display: none;
    }
    .lang-switcher .btn-icon {
        min-width: 48px;
        height: 44px;
    }
    .lang-menu {
        right: -54px;
        max-width: calc(100vw - 24px);
    }
}

@media (max-width: 760px) {
    html, body {
        overflow-x: hidden;
    }
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .section {
        padding: 34px 0;
    }
    .page-hero {
        padding: 38px 0 24px;
    }
    .page-shell {
        padding: 26px 0 58px;
    }
    .page-title,
    .section-head h2 {
        font-size: clamp(32px, 11vw, 46px);
        line-height: 1.05;
        overflow-wrap: anywhere;
    }
    .page-lead,
    .section-head p {
        font-size: 15px;
        line-height: 1.6;
    }
    .grid,
    .grid-3,
    .grid-4,
    .ticket-layout,
    .store-layout,
    .store-choice,
    .ops-grid,
    .server-grid-premium,
    .server-meta,
    .language-actions,
    .footer-grid,
    .grid[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    .store-side {
        position: static;
        padding: 14px;
    }
    .store-mode-row {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        border-radius: 14px;
    }
    .store-mode,
    .store-mode-switch {
        justify-content: center;
        width: 100%;
    }
    .hero-bg-video {
        opacity: 0.42;
        filter: saturate(1.08) contrast(1.1) brightness(0.68) blur(0.45px);
    }
    .rust-hero-panel {
        min-height: auto;
        padding: 20px;
    }
    .rust-map-card {
        margin-top: 30px;
        min-height: 118px;
        padding: 16px;
    }
    .rust-map-card img {
        width: 70px;
        height: 70px;
        border-radius: 18px;
    }
    .rust-map-card strong {
        font-size: 26px;
    }
    .hero-server-meta,
    .hero-countdown {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
    .hero-wipe-strip {
        grid-template-columns: 1fr;
    }
    .radar-orbit,
    .radar-sweep {
        opacity: 0.55;
        transform: scale(0.82);
    }
    .pkg-detail-head,
    .pkg-detail-meta {
        grid-template-columns: 1fr;
    }
    .modal-backdrop {
        align-items: flex-start;
        padding: 14px;
        overflow-y: auto;
    }
    .modal {
        padding: 18px;
        border-radius: 16px;
    }
    .card,
    .server-card,
    .ticket-card,
    .pkg-card {
        border-radius: 14px;
    }
    .card {
        padding: 16px;
    }
    .tabs {
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: thin;
        padding-bottom: 2px;
    }
    .tabs .tab {
        flex: 0 0 auto;
        padding: 10px 12px;
    }
    .ticket-detail-head,
    .flex-between,
    .card-header,
    .footer-bottom,
    .price-row,
    .ip-row {
        align-items: stretch;
        flex-direction: column;
    }
    .price-row .btn,
    .ip-row .btn,
    .text-end .btn,
    .flex .btn {
        width: 100%;
    }
    .ticket-attachment {
        max-height: 260px;
        object-fit: contain;
    }
    .ticket-attachment-grid {
        grid-template-columns: 1fr;
    }
    .ticket-attachment-grid .ticket-attachment {
        height: auto;
        max-height: 260px;
        object-fit: contain;
    }
    .msg {
        gap: 10px;
    }
    .msg img {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    .table {
        min-width: 620px;
        font-size: 13px;
    }
    .table th,
    .table td {
        padding: 10px 12px;
    }
    .btn {
        min-height: 42px;
        padding-left: 14px;
        padding-right: 14px;
    }
    .home-title {
        font-size: clamp(46px, 16vw, 70px);
    }
}

@media (max-width: 420px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .brand-logo {
        width: 38px !important;
        height: 38px !important;
    }
    .nav-right {
        gap: 6px;
    }
    .lang-switcher .btn-icon {
        min-width: 44px;
        padding: 0 8px;
    }
    .lang-code {
        display: none;
    }
    .mobile-nav-toggle {
        width: 42px;
        height: 42px;
    }
    .user-chip {
        min-width: 42px;
    }
    .user-chip img {
        width: 30px;
        height: 30px;
    }
}

/* ---------- Search, notifications, compare, benefits, home story ---------- */
.search-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 72px 16px 24px;
    background: rgba(4, 6, 10, 0.72);
    backdrop-filter: blur(8px);
}
.search-modal-backdrop.open { display: flex; }
.search-modal {
    width: min(680px, 100%);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.search-modal-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}
.search-modal-icon { color: var(--accent); width: 20px; }
.search-modal-head input {
    width: 100%;
    background: transparent;
    border: 0;
    color: var(--text);
    font: inherit;
    outline: none;
}
.search-modal-close {
    background: transparent;
    border: 0;
    color: var(--text-dim);
    font-size: 24px;
    cursor: pointer;
}
.search-modal-hint { padding: 10px 16px 0; font-size: 13px; }
.search-modal-results {
    max-height: min(52vh, 420px);
    overflow: auto;
    padding: 10px;
}
.search-result {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid transparent;
}
.search-result:hover {
    border-color: var(--border);
    background: var(--surface-2);
}
.search-result-kind {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}
.search-empty { padding: 18px; color: var(--text-dim); font-size: 14px; }

.notify-wrap { position: relative; }
.notify-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--accent);
    color: #111;
    font-size: 10px;
    font-weight: 800;
    display: grid;
    place-items: center;
}
.notify-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(320px, 88vw);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: none;
    z-index: 80;
    overflow: hidden;
}
.notify-menu.open { display: block; }
.notify-item {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}
.notify-item:last-child { border-bottom: 0; }
.notify-item:hover { background: var(--surface-2); }
.notify-item-kind {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}
.notify-empty { padding: 16px; color: var(--text-dim); font-size: 14px; }

.benefit-map {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.benefit-chip {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface-2);
}
.benefit-chip-icon { font-size: 16px; line-height: 1.2; }
.benefit-chip-text { font-size: 13px; color: var(--text-soft); line-height: 1.45; }

.compare-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.compare-server-tabs {
    display: inline-flex;
    gap: 8px;
    padding: 4px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
}
.compare-server-tabs button {
    border: 0;
    background: transparent;
    color: var(--text-soft);
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
}
.compare-server-tabs button.active {
    background: var(--accent-soft);
    color: var(--accent-2);
}
.compare-diff-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-size: 14px;
}
.compare-table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}
.compare-table th,
.compare-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.compare-table td.yes { color: var(--success); font-weight: 700; text-align: center; }
.compare-table td.no { color: var(--text-dim); text-align: center; }
.compare-table td.is-new { background: rgba(243, 165, 36, 0.06); }
.compare-tier {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.compare-tier-vip { background: rgba(99, 184, 255, 0.12); color: #9fd0ff; }
.compare-tier-premium { background: rgba(243, 165, 36, 0.12); color: var(--accent-2); }
.compare-tier-elite { background: rgba(239, 68, 68, 0.12); color: #fca5a5; }
.compare-tier-supporter { background: rgba(34, 197, 94, 0.12); color: #86efac; }
.compare-tier-sponsor { background: rgba(168, 85, 247, 0.12); color: #d8b4fe; }
.compare-foot {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.home-story { padding: 18px 0 8px; }
.home-story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.home-story-card {
    padding: 22px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent), var(--surface);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.home-story-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.home-story-card h3 { margin-bottom: 8px; }
.home-story-card p { min-height: 72px; }

.split-progress-label { font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.split-payment-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.split-payment-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
}
.split-payment-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}
.split-detail-panel { padding: 4px 0; }
.order-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.store-hero-actions { margin-top: 12px; }

@media (max-width: 900px) {
    .home-story-grid { grid-template-columns: 1fr; }
    .home-story-card p { min-height: 0; }
}

/* ---------- Ticket staff tools ---------- */
.ticket-page-wrap { max-width: 1180px; }
.ticket-staff-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
    align-items: start;
}
.ticket-staff-layout:not(:has(.ticket-context-dock:not(.hidden))) {
    grid-template-columns: 1fr;
}
.ticket-context-dock {
    position: sticky;
    top: 88px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 0;
    max-height: calc(100vh - 110px);
    overflow: auto;
}
.ticket-context-dock.compact {
    position: static;
    max-height: none;
    padding: 0;
}
.ticket-context-card {
    display: grid;
    gap: 0;
}
.ticket-context-profile {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(245,158,11,0.06) 0%, transparent 100%);
}
.ticket-context-avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid var(--border-strong);
    flex-shrink: 0;
}
.ticket-context-profile-body {
    min-width: 0;
    display: grid;
    gap: 4px;
}
.ticket-context-name {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
    word-break: break-word;
}
.ticket-context-steam {
    font-size: 12px;
    color: #93c5fd;
    word-break: break-all;
}
.ticket-context-steam:hover { color: #bfdbfe; }
.ticket-context-ids {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    line-height: 1.35;
}
.ticket-context-ids.inline { display: inline-flex; }
.ticket-context-id-sep { color: var(--text-dim); }
.ticket-context-discord { color: #c7d2fe; word-break: break-word; }
.ticket-role-badge { width: fit-content; margin-top: 2px; }
.ticket-context-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}
.ticket-context-kpi {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}
.ticket-context-kpi span {
    display: block;
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}
.ticket-context-kpi strong {
    display: block;
    font-size: 15px;
}
.ticket-context-kpi small {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: var(--text-dim);
}
.ticket-context-alert {
    margin: 10px 14px 0;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    border: 1px solid var(--border);
}
.ticket-context-alert.warn {
    background: rgba(245,158,11,0.10);
    border-color: rgba(245,158,11,0.28);
    color: #fcd34d;
}
.ticket-context-alert.danger {
    background: rgba(239,68,68,0.12);
    border-color: rgba(239,68,68,0.28);
    color: #fca5a5;
}
.ticket-context-section {
    padding: 12px 14px 14px;
    border-top: 1px solid var(--border);
}
.ticket-context-section h4 {
    margin: 0 0 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}
.ticket-context-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.ticket-context-list li {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}
.ticket-context-line-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}
.ticket-context-line-head strong {
    font-size: 13px;
    min-width: 0;
    word-break: break-word;
}
.ticket-context-list small {
    display: block;
    font-size: 11px;
    color: var(--text-dim);
}
.ticket-order-list li.status-failed {
    border-color: rgba(239,68,68,0.28);
    background: rgba(239,68,68,0.06);
}
.ticket-order-list li.status-delivered,
.ticket-order-list li.status-paid {
    border-color: rgba(34,197,94,0.24);
    background: rgba(34,197,94,0.06);
}
.ticket-context-empty {
    font-size: 13px;
    color: var(--text-dim);
    margin: 0;
}
.ticket-related-strip { margin: 0 0 14px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.ticket-related-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ticket-related-chip {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 13px;
    max-width: 260px;
}
.ticket-related-chip small { color: var(--text-dim); font-size: 11px; }
.ticket-related-chip.active { border-color: var(--accent); }
.ticket-timeline-wrap { margin: 0 0 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); padding: 10px 12px; }
.ticket-timeline { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.ticket-timeline-item { display: grid; grid-template-columns: 12px 1fr; gap: 10px; }
.ticket-timeline-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 6px; }
.ticket-timeline-item small { color: var(--text-dim); margin-left: 6px; }
.ticket-timeline-item p { margin: 4px 0 0; color: var(--text-dim); font-size: 13px; }
.ticket-staff-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; margin: 0 0 14px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.ticket-staff-tags { flex: 1 1 280px; min-width: 0; }
.ticket-tags-block { display: grid; gap: 8px; }
.ticket-tags-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 28px; }
.ticket-tags-empty { font-size: 12px; color: var(--text-dim); }
.ticket-tag-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.ticket-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(245,158,11,0.10);
    border: 1px solid rgba(245,158,11,0.28);
    color: #fcd34d;
    font-size: 12px;
    font-weight: 600;
}
.ticket-tag-chip.inline { margin-right: 4px; }
.ticket-tag-chip button {
    border: 0;
    background: transparent;
    color: rgba(252,211,77,0.75);
    cursor: pointer;
    padding: 0 2px;
    font-size: 14px;
    line-height: 1;
}
.ticket-tag-chip button:hover { color: #fff; }
.ticket-tag-preset {
    padding: 5px 10px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    border-style: dashed !important;
    color: var(--text-dim) !important;
    background: var(--surface) !important;
}
.ticket-tag-preset:hover {
    color: var(--text) !important;
    border-color: rgba(245,158,11,0.35) !important;
    background: rgba(245,158,11,0.08) !important;
}
.ticket-canned-wrap { display: flex; gap: 8px; align-items: center; flex: 0 1 auto; }
.ticket-staff-select,
.ticket-canned-wrap select {
    min-width: 180px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
}
.ticket-staff-select:focus,
.ticket-canned-wrap select:focus {
    border-color: var(--accent);
    outline: none;
}
.ticket-category-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 8px; font-size: 13px; color: var(--text-dim); }
.sla-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.sla-ok { background: rgba(34,197,94,0.12); color: #86efac; }
.sla-notice { background: rgba(245,158,11,0.14); color: #fcd34d; }
.sla-warn { background: rgba(249,115,22,0.16); color: #fdba74; }
.sla-critical { background: rgba(239,68,68,0.18); color: #fca5a5; }
.sla-user { background: rgba(59,130,246,0.14); color: #93c5fd; }
.msg-source-badge { font-size: 10px; padding: 2px 6px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.msg-source-site { background: rgba(59,130,246,0.15); color: #93c5fd; }
.msg-source-discord { background: rgba(88,101,242,0.18); color: #c7d2fe; }
.admin-ticket-split {
    display: grid;
    grid-template-columns: minmax(280px, 36%) minmax(0, 1fr);
    gap: 14px;
    min-height: 520px;
}
.admin-ticket-list-pane { overflow: auto; max-height: calc(100vh - 180px); }
.admin-ticket-detail-pane { overflow: auto; max-height: calc(100vh - 180px); }
.admin-ticket-split-detail { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 12px; margin-top: 12px; }
.admin-ticket-thread { display: grid; gap: 8px; }
.admin-ticket-msg { padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.admin-ticket-msg.staff { border-color: rgba(245,158,11,0.25); }
.admin-ticket-msg .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; }
.admin-ticket-msg p { margin: 0; font-size: 13px; white-space: pre-wrap; }
.admin-ticket-reply textarea { width: 100%; }
.table.compact td, .table.compact th { padding: 8px 10px; font-size: 13px; }
.ticket-row.active { background: rgba(245,158,11,0.08); }
.ticket-row .assignee { display: block; color: var(--accent); }
@media (max-width: 1100px) {
    .ticket-staff-layout { grid-template-columns: 1fr; }
    .ticket-context-dock { position: static; max-height: none; }
    .admin-ticket-split { grid-template-columns: 1fr; }
    .admin-ticket-split-detail { grid-template-columns: 1fr; }
}

.discord-link-modal-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.discord-link-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    color: var(--discord);
}
.discord-link-icon svg { width: 100%; height: 100%; }
.discord-link-perms {
    margin: 12px 0 0;
    padding-left: 18px;
    font-size: 13px;
}
.discord-profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.discord-profile-chip img { border-radius: 50%; object-fit: cover; }
.discord-settings-linked {
    display: flex;
    align-items: center;
    gap: 12px;
}
.discord-settings-linked img {
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border);
}
.discord-inline-hint {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(88, 101, 242, 0.35);
    background: rgba(88, 101, 242, 0.08);
}
.discord-inline-hint-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    min-width: 32px;
    max-width: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--discord);
    overflow: hidden;
}
.discord-inline-hint-icon svg {
    width: 28px !important;
    height: 22px !important;
    max-width: 28px;
    max-height: 22px;
    display: block;
    flex-shrink: 0;
}
.discord-inline-hint-body strong { display: block; margin-bottom: 4px; }
.discord-inline-hint-body p { margin: 0; font-size: 13px; line-height: 1.45; }
.discord-link-perms.hidden { display: none; }
