/* RubinRust — Premium gaming design */
/* Тёмная красная тема, тёмные прозрачные поверхности */

:root {
    --color-bg: #0a0808;
    --color-bg-card: rgba(0, 0, 0, 0.42);
    --color-bg-card-solid: rgba(12, 10, 10, 0.92);
    --color-bg-card-hover: rgba(0, 0, 0, 0.55);
    --color-bg-input: rgba(0, 0, 0, 0.5);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-accent: rgba(220, 80, 80, 0.5);
    --color-text: #f5f0f0;
    --color-text-muted: #a8a0a0;
    --color-accent: #d84a4a;
    --color-accent-dim: #b83a3a;
    --color-accent-hover: #e86a6a;
    --color-accent-light: #e8a8a8;
    --color-accent-glow: rgba(216, 74, 74, 0.35);
    --color-success: #22c55e;
    --color-danger: #ef4444;
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 12px;
    --radius-md: 12px;
    --radius-lg: 12px;
    --radius-xl: 12px;
    --radius-pill: 24px;
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 20px;
    --space-2xl: 24px;
    --space-3xl: 32px;
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 24px var(--color-accent-glow);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}
::selection { background: rgba(216, 74, 74, 0.28); color: var(--color-text); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); border-radius: 4px; }
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: background var(--transition);
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.18); }
body {
    margin: 0;
    font-family: var(--font-main);
    font-size: 14px;
    line-height: 1.55;
    color: var(--color-text);
    background: var(--color-bg);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}
/* Фон: тёмный + мягкие засветы */
body::before {
    content: '';
    position: fixed;
    inset: -20px;
    background:
        radial-gradient(ellipse 80% 50% at 15% 25%, rgba(255, 255, 255, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 85% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 50% 60% at 50% 90%, rgba(216, 74, 74, 0.04) 0%, transparent 60%),
        radial-gradient(circle at 12% 20%, rgba(0, 0, 0, 0.25) 0 1px, transparent 2px),
        radial-gradient(circle at 25% 70%, rgba(0, 0, 0, 0.2) 0 1px, transparent 2px),
        radial-gradient(circle at 55% 15%, rgba(0, 0, 0, 0.22) 0 1px, transparent 2px),
        radial-gradient(circle at 78% 34%, rgba(0, 0, 0, 0.24) 0 1px, transparent 2px),
        radial-gradient(circle at 90% 65%, rgba(0, 0, 0, 0.2) 0 1px, transparent 2px),
        linear-gradient(180deg, #0c0808 0%, #080606 45%, #060404 100%);
    background-size: auto, auto, auto, auto, auto, auto, auto, auto, cover;
    filter: blur(0.5px) saturate(1);
    z-index: 0;
    pointer-events: none;
    animation: bgGlowPulse 12s ease-in-out infinite;
}
@keyframes bgGlowPulse {
    0%, 100% { opacity: 1; filter: blur(0.5px) saturate(1); }
    50% { opacity: 0.92; filter: blur(1px) saturate(1.05); }
}
/* Оверлеи: виньетка + анимированное дыхание */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 60% at 50% -15%, rgba(255, 255, 255, 0.04) 0%, transparent 52%),
        radial-gradient(ellipse 50% 30% at 100% 80%, rgba(0, 0, 0, 0.15) 0%, transparent 45%),
        radial-gradient(ellipse 130% 90% at 50% 50%, transparent 35%, rgba(0, 0, 0, 0.55) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
    pointer-events: none;
    animation: bgOverlayShift 14s ease-in-out infinite;
}
@keyframes bgOverlayShift {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.82; transform: scale(1.02); }
}

/* Частицы: поверх фона, под контентом */
.bg-particles {
    position: fixed;
    inset: 0;
    z-index: 1.5;
    pointer-events: none;
    overflow: hidden;
}
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
    border-radius: 50%;
    opacity: 0.65;
    animation: particleFloat 18s ease-in-out infinite;
}
.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 25%; top: 60%; animation-delay: -2s; animation-duration: 18s; width: 4px; height: 4px; opacity: 0.8; }
.particle:nth-child(3) { left: 45%; top: 15%; animation-delay: -4s; animation-duration: 14s; }
.particle:nth-child(4) { left: 70%; top: 40%; animation-delay: -1s; animation-duration: 20s; width: 3px; height: 3px; opacity: 0.6; }
.particle:nth-child(5) { left: 85%; top: 70%; animation-delay: -3s; animation-duration: 16s; }
.particle:nth-child(6) { left: 15%; top: 80%; animation-delay: -5s; animation-duration: 13s; opacity: 0.75; }
.particle:nth-child(7) { left: 55%; top: 85%; animation-delay: -2.5s; animation-duration: 17s; width: 4px; height: 4px; }
.particle:nth-child(8) { left: 90%; top: 25%; animation-delay: -6s; animation-duration: 11s; opacity: 0.6; }
.particle:nth-child(9) { left: 35%; top: 45%; animation-delay: -1.5s; animation-duration: 19s; }
.particle:nth-child(10) { left: 60%; top: 55%; animation-delay: -4.5s; animation-duration: 15s; width: 3px; height: 3px; }
.particle:nth-child(11) { left: 5%; top: 35%; animation-delay: -7s; animation-duration: 14s; opacity: 0.75; }
.particle:nth-child(12) { left: 75%; top: 10%; animation-delay: -3.5s; animation-duration: 22s; }
.particle:nth-child(13) { left: 40%; top: 75%; animation-delay: -0.5s; animation-duration: 13s; width: 4px; height: 4px; opacity: 0.6; }
.particle:nth-child(14) { left: 95%; top: 50%; animation-delay: -5.5s; animation-duration: 16s; }
.particle:nth-child(15) { left: 20%; top: 5%; animation-delay: -2.2s; animation-duration: 18s; opacity: 0.8; }
.particle:nth-child(16) { left: 50%; top: 30%; animation-delay: -8s; animation-duration: 21s; width: 3px; height: 3px; }
@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(45px, -60px) scale(1.12); }
    50% { transform: translate(-35px, -80px) scale(0.95); }
    75% { transform: translate(-45px, -40px) scale(1.08); }
}

a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-hover); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-xl); position: relative; z-index: 2; }
.container--wide { max-width: 1400px; }

/* ========== HEADER ========== */
.header {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.4);
}
.header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 74, 74, 0.4), transparent);
    pointer-events: none;
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: var(--space-2xl);
}
.header__left {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}
.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text) !important;
    letter-spacing: -0.03em;
    transition: transform var(--transition), color var(--transition);
}
.header__logo:hover { color: var(--color-accent) !important; transform: translateY(-1px); }
.header__logo-gem {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e8b0b0;
    background: linear-gradient(155deg, rgba(0, 0, 0, 0.4), rgba(80, 30, 30, 0.25));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 20px rgba(0, 0, 0, 0.2);
}
.header__logo-gem-img {
    width: 70%;
    height: 70%;
    max-width: 28px;
    max-height: 28px;
    object-fit: contain;
    display: block;
}
.header__logo-group {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}
.header__logo-text {
    letter-spacing: -0.03em;
    font-weight: 800;
}
.header__logo-tagline {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.header__right {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}
.header__social {
    display: flex;
    gap: var(--space-sm);
}
.header__chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.header__social-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-muted) !important;
    font-size: 12px;
    font-weight: 600;
    transition: transform var(--transition), border-color var(--transition), background-color var(--transition), color var(--transition), box-shadow var(--transition);
}
.header__social-btn:hover {
    color: var(--color-accent) !important;
    border-color: var(--color-border-accent);
    background: rgba(216, 74, 74, 0.12);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.header__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 100%);
    color: #f4f4f5 !important;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.14);
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 8px rgba(0, 0, 0, 0.35);
    transition: transform var(--transition), border-color var(--transition), background-color var(--transition), box-shadow var(--transition), color var(--transition);
    position: relative;
    overflow: hidden;
}
.header__btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
}
.header__btn-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}
.header__btn--login {
    gap: 10px;
}
.header__btn::after {
    content: '';
    position: absolute;
    inset: -120% auto -120% -35%;
    width: 32%;
    transform: rotate(18deg) translateX(-220%);
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.22) 50%, transparent 100%);
    pointer-events: none;
    transition: transform 0.55s ease;
}
.header__btn:hover {
    background: linear-gradient(180deg, rgba(216, 74, 74, 0.18) 0%, rgba(216, 74, 74, 0.08) 100%);
    border-color: rgba(216, 74, 74, 0.45);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 18px rgba(0, 0, 0, 0.36);
}
.header__btn:hover::after {
    transform: rotate(18deg) translateX(320%);
}
.header__btn:focus-visible { outline: 2px solid var(--color-accent-light); outline-offset: 2px; }
.header__btn--secondary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 8px rgba(0, 0, 0, 0.35);
}
.header__btn--secondary:hover {
    background: linear-gradient(180deg, rgba(216, 74, 74, 0.18) 0%, rgba(216, 74, 74, 0.08) 100%);
    border-color: rgba(216, 74, 74, 0.45);
}
.header__user {
    font-size: 13px;
    color: var(--color-text-muted);
    padding: 0 var(--space-md);
}
.header__balance {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.header__balance:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-border-accent);
}
.header__balance-value {
    color: var(--color-accent);
}
.header__btn--profile {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 8px rgba(0, 0, 0, 0.35);
}
.header__btn--profile:hover {
    background: linear-gradient(180deg, rgba(216, 74, 74, 0.18) 0%, rgba(216, 74, 74, 0.08) 100%);
    border-color: rgba(216, 74, 74, 0.45);
}

.main-content { position: relative; z-index: 2; flex: 1 0 auto; }
.main-content--with-offset {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}

/* ========== SERVER BLOCK ========== */
.server-block {
    background: var(--color-bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}
.server-block:hover {
    border-color: var(--color-border-accent);
    box-shadow: var(--shadow), 0 0 30px rgba(0, 0, 0, 0.2);
}
.server-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
}
.server-block__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.server-block__header .server-block__count { margin-left: auto; }
.server-block__name { font-size: 20px; font-weight: 700; margin: 0; }
.server-block__count {
    background: rgba(34, 197, 94, 0.2);
    color: var(--color-success);
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-weight: 600;
}
.server-block__connect {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.server-block__connect input {
    flex: 1;
    padding: 10px 14px;
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-family: monospace;
    font-size: 13px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.server-block__connect input:focus {
    outline: none;
    border-color: var(--color-accent);
}
.server-block__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.server-block__tag {
    padding: 5px 12px;
    background: rgba(216, 74, 74, 0.18);
    color: var(--color-accent-light);
    border-radius: var(--radius-sm);
    font-size: 12px;
    border: 1px solid rgba(216, 74, 74, 0.32);
}

/* ========== BANNERS ========== */
.banners {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}
.banner {
    background: var(--color-bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 22px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}
.banner:hover {
    border-color: var(--color-border-accent);
    box-shadow: var(--shadow), 0 0 25px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
}
.banner:hover::before { opacity: 1; }
.banner__badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dim) 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px var(--color-accent-glow);
}
.banner__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.banner__title { font-size: 17px; font-weight: 700; margin: 0 0 10px; letter-spacing: -0.02em; }
.banner__desc { color: var(--color-text-muted); font-size: 13px; margin: 0 0 18px; line-height: 1.55; }
.banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.banner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dim) 100%);
    color: #fff !important;
    font-weight: 600;
    border-radius: var(--radius-md);
    font-size: 13px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 2px 10px var(--color-accent-glow);
    white-space: nowrap;
}
.banner__btn:hover {
    background: linear-gradient(135deg, var(--color-accent-hover) 0%, var(--color-accent) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px var(--color-accent-glow);
}
.banner__btn--secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--color-border);
    color: var(--color-text) !important;
    box-shadow: none;
}
.banner__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--color-border-accent);
}

/* ========== АКЦИЯ ПОВСЕДНЕВНОСТИ ========== */
.daily-promo {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.18) 0%, var(--color-bg-card) 50%);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-border-accent);
    border-radius: var(--radius-xl);
    padding: var(--space-lg) var(--space-xl);
    margin-bottom: var(--space-2xl);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: all var(--transition);
}
.daily-promo:hover {
    box-shadow: var(--shadow), 0 0 30px rgba(216, 74, 74, 0.18);
    border-color: rgba(216, 74, 74, 0.5);
}
.daily-promo__title {
    font-size: 15px;
    font-weight: 800;
    margin: 0;
    color: var(--color-accent-light);
    flex-shrink: 0;
    letter-spacing: -0.02em;
}
.daily-promo__desc {
    flex: 1;
    min-width: 200px;
    margin: 0;
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
}
.daily-promo__btn {
    flex-shrink: 0;
    padding: 10px 20px;
    font-size: 13px;
}

.section-title { font-size: 22px; font-weight: 800; margin: 0 0 var(--space-xl); letter-spacing: -0.02em; }

/* ========== SHOP ========== */
.shop-section {
    margin-bottom: var(--space-3xl);
    /* Колонки сетки на широком экране; переопределяется из настроек (shop.products_per_row) */
    --shop-products-cols: 4;
}

/* Выбор сервера — отдельный блок */
.shop-server {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    max-width: fit-content;
    /* Сосед .shop-categories ниже в DOM рисуется поверх при z-index:auto; при открытом меню поднимаем весь блок */
    position: relative;
    z-index: 0;
}
.shop-server:has(.shop-server__dropdown.is-open) {
    z-index: 120;
}
.shop-server__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    white-space: nowrap;
}
.shop-server__dropdown {
    position: relative;
    display: inline-block;
}
.shop-server__trigger {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    display: block;
    width: 100%;
    margin: 0;
    padding: 10px 18px;
    padding-right: 44px;
    background: var(--color-bg-input);
    background-image:
        linear-gradient(45deg, transparent 50%, var(--color-text-muted) 50%),
        linear-gradient(135deg, var(--color-text-muted) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 14px;
    font-family: var(--font-main);
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}
.shop-server__trigger-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.shop-server__dropdown.is-open .shop-server__trigger {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(216, 74, 74, 0.25);
}
.shop-server__trigger:hover {
    border-color: var(--color-border-accent);
}
.shop-server__trigger:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(216, 74, 74, 0.25);
}
.shop-server__menu {
    position: absolute;
    z-index: 2;
    top: calc(100% + 6px);
    left: 0;
    min-width: 100%;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: rgba(18, 18, 22, 0.98);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
}
.shop-server__menu[hidden] {
    display: none !important;
}
.shop-server__menu li {
    margin: 0;
    padding: 0;
}
.shop-server__menu-item {
    display: block;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-text);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition);
}
.shop-server__menu-item:hover,
.shop-server__menu-item:focus {
    outline: none;
    background: rgba(216, 74, 74, 0.18);
    color: #fff;
}
.shop-server__menu-item.is-selected {
    background: rgba(216, 74, 74, 0.28);
    color: #fff;
}

/* Категории — отдельно от сервера (явный слой ниже открытого .shop-server) */
.shop-categories {
    margin-bottom: 24px;
    position: relative;
    z-index: 0;
}
.shop-categories__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.shop-categories__btn {
    min-height: 42px;
    padding: 10px 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    color: #f4f4f5;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition), background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}
.shop-categories__btn::after {
    content: '';
    position: absolute;
    inset: -120% auto -120% -35%;
    width: 32%;
    transform: rotate(18deg) translateX(-220%);
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.22) 50%, transparent 100%);
    pointer-events: none;
    transition: transform 0.55s ease;
}
.shop-categories__btn:hover {
    background: linear-gradient(180deg, rgba(216, 74, 74, 0.18) 0%, rgba(216, 74, 74, 0.08) 100%);
    border-color: rgba(216, 74, 74, 0.45);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}
.shop-categories__btn:hover::after {
    transform: rotate(18deg) translateX(320%);
}
.shop-categories__btn.active {
    background: linear-gradient(180deg, rgba(216, 74, 74, 0.28) 0%, rgba(216, 74, 74, 0.14) 100%);
    border-color: rgba(216, 74, 74, 0.6);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(var(--shop-products-cols, 4), minmax(0, 1fr));
    gap: var(--space-lg);
}
@media (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(min(3, var(--shop-products-cols, 4)), minmax(0, 1fr));
    }
}
.product-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 14px;
    transition: opacity var(--transition-slow), transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    position: relative;
}
.product-card.is-hidden {
    display: none;
}
.product-card:hover {
    border-color: var(--color-border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow), 0 0 30px rgba(0, 0, 0, 0.25);
}
.product-card__img {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(145deg, var(--color-bg-input) 0%, rgba(20, 20, 26, 0.9) 100%);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    font-size: 32px;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    flex-shrink: 0;
    overflow: hidden;
    transition: border-color var(--transition), color var(--transition);
}
.product-card__img-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.product-card__img-fallback {
    font-size: 32px;
    color: var(--color-text-muted);
    font-weight: 700;
}
.product-card:hover .product-card__img {
    border-color: rgba(216, 74, 74, 0.3);
}
.product-card__discount {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: linear-gradient(135deg, var(--color-danger), #dc2626);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}
.product-card__name { font-size: 13px; font-weight: 700; margin: 0 0 4px; line-height: 1.3; letter-spacing: -0.01em; }
.product-card__desc { font-size: 11px; color: var(--color-text-muted); margin: 0 0 10px; line-height: 1.4; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.product-card__price { font-size: 20px; font-weight: 800; color: var(--color-accent-light); letter-spacing: -0.02em; text-shadow: 0 0 20px var(--color-accent-glow); }
.product-card__price-old { font-size: 13px; color: var(--color-text-muted); text-decoration: line-through; }
.product-card__btn {
    width: 100%;
    margin-top: auto;
    min-height: 42px;
    padding: 10px 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: transform var(--transition), background-color var(--transition), border-color var(--transition), box-shadow var(--transition), color var(--transition);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 8px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}
.product-card__btn::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 140%;
    transform: translateX(-120%) skewX(-22deg);
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.32) 48%, transparent 100%);
    pointer-events: none;
    transition: transform 0.55s ease;
}
.product-card__btn:hover {
    background: linear-gradient(180deg, rgba(216, 74, 74, 0.18) 0%, rgba(216, 74, 74, 0.08) 100%);
    border-color: rgba(216, 74, 74, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.36);
}
.product-card__btn:hover::after {
    transform: translateX(120%) skewX(-22deg);
}
.product-card__buy-form {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}
.product-card__qty-control {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}
.product-card__qty-input {
    width: 56px;
    padding: 8px 10px;
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    appearance: textfield;
    -moz-appearance: textfield;
}
.product-card__qty-input::-webkit-outer-spin-button,
.product-card__qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.product-card__buy-form .product-card__btn {
    width: auto;
    margin-top: 0;
    flex: 1 1 auto;
}
.product-card__qty-btn {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text);
    border-radius: 10px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: all var(--transition);
}
.product-card__qty-btn:hover {
    border-color: var(--color-border-accent);
    background: rgba(216, 74, 74, 0.14);
    color: var(--color-accent-light);
}
.product-card__qty-btn:active {
    transform: translateY(1px);
}
.product-card__qty-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(216, 74, 74, 0.2);
}

/* ========== FOOTER ========== */
.footer {
    margin-top: auto;
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--color-border);
    background: rgba(12, 12, 16, 0.8);
    backdrop-filter: blur(16px);
    position: relative;
    z-index: 2;
}
.footer__disclaimer {
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin: 0 0 20px;
    max-width: 800px;
}
.footer__links { display: flex; gap: 24px; margin-bottom: 12px; }
.footer__links a { color: var(--color-text-muted); transition: color var(--transition); }
.footer__links a:hover { color: var(--color-accent); }
.footer__email { font-size: 13px; color: var(--color-text-muted); margin: 0; }

/* ========== AUTH / LOGIN ========== */
.auth-page { padding: 60px 20px; display: flex; align-items: center; justify-content: center; min-height: 400px; }
.auth-box {
    max-width: 400px;
    width: 100%;
    padding: var(--space-3xl);
    background: var(--color-bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    text-align: center;
}
.auth-box__title { font-size: 24px; font-weight: 800; margin: 0 0 var(--space-md); letter-spacing: -0.02em; }
.auth-box__desc { color: var(--color-text-muted); margin: 0 0 var(--space-xl); line-height: 1.5; }
.auth-box__error { color: var(--color-danger); font-size: 13px; margin: 0 0 var(--space-lg); }
.auth-box__steam-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(30, 20, 20, 0.7) 100%);
    color: #fff !important;
    font-weight: 600;
    font-size: 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.auth-box__steam-btn:hover {
    background: linear-gradient(135deg, rgba(40, 25, 25, 0.75) 0%, rgba(0, 0, 0, 0.55) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.auth-box__steam-icon { display: flex; align-items: center; }
.auth-box__steam-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}
.auth-box__back {
    display: inline-block;
    margin-top: var(--space-xl);
    color: var(--color-text-muted);
    font-size: 13px;
    transition: color var(--transition);
}
.auth-box__back:hover { color: var(--color-accent); }

.profile-box {
    max-width: 480px;
    padding: var(--space-3xl);
    background: var(--color-bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}
.profile-box__title { font-size: 24px; font-weight: 800; margin: 0 0 var(--space-2xl); letter-spacing: -0.02em; }
.profile-box__row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
}
.profile-box__row:last-of-type { border-bottom: none; }
.profile-box__label { color: var(--color-text-muted); font-size: 14px; min-width: 80px; }
.profile-box__value { font-weight: 600; flex: 1; }
.profile-box__actions {
    margin-top: var(--space-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.profile-box__actions .header__btn {
    width: 100%;
    min-width: 0;
}
.profile-box__actions .header__btn::after {
    inset: 0;
    width: 140%;
    transform: translateX(-120%) skewX(-22deg);
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.32) 48%, transparent 100%);
}
.profile-box__actions .header__btn:hover::after {
    transform: translateX(120%) skewX(-22deg);
}
.profile-box--history {
    max-width: none;
    margin-top: var(--space-xl);
}
.profile-page__content {
    margin-bottom: var(--space-2xl);
}
.profile-history__empty {
    margin: 0;
    color: var(--color-text-muted);
}
.profile-history {
    overflow-x: auto;
}
.profile-history__table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}
.profile-history__table th,
.profile-history__table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    font-size: 13px;
}
.profile-history__table th {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 600;
}
.profile-history__sum--plus {
    color: var(--color-success);
    font-weight: 700;
}
.profile-history__sum--minus {
    color: #ffb4b8;
    font-weight: 700;
}
.profile-history__pagination {
    margin-top: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
}
.profile-history__page-indicator {
    color: var(--color-text-muted);
    font-size: 13px;
}

/* ========== MODALS ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow), visibility var(--transition), background-color var(--transition);
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal {
    background: var(--color-bg-card-solid);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    transform: scale(0.96) translateY(10px);
    transition: transform var(--transition-slow);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(0, 0, 0, 0.4);
    position: relative;
}
.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.modal-overlay.is-open .modal { transform: scale(1) translateY(0); }
.modal__title { font-size: 20px; font-weight: 800; margin: 0 0 var(--space-xl); letter-spacing: -0.02em; }
.modal__alert {
    margin: 0 0 var(--space-lg);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    font-size: 14px;
}
.modal__alert--success {
    background: rgba(27, 163, 100, 0.14);
    border-color: rgba(27, 163, 100, 0.4);
    color: #9be7c6;
}
.modal__alert--error {
    background: rgba(196, 66, 66, 0.14);
    border-color: rgba(196, 66, 66, 0.4);
    color: #ffb4b4;
}
.modal__body--text { margin: 0; color: var(--color-text-muted); line-height: 1.6; }
.modal__body--text p + p { margin-top: var(--space-md); }
.privilege-modal__features {
    margin: 14px 0;
    padding-left: 20px;
    color: var(--color-text);
}
.privilege-modal__features li + li {
    margin-top: 6px;
}
.privilege-modal__content {
    margin-top: 10px;
}
.privilege-modal__content p {
    margin: 0 0 10px;
    color: var(--color-text-muted);
}
.privilege-modal__content img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    margin: 8px 0 14px;
}
.privilege-modal__qty-title {
    margin: 14px 0 8px;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 600;
}
.news-modal__images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.news-modal__images img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}
.modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    font-size: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}
.modal__close:hover { color: var(--color-text); background: rgba(255, 255, 255, 0.08); }

/* Form elements */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 13px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 14px;
    transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition), color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus,
.form-group input:focus-visible, .form-group select:focus-visible, .form-group textarea:focus-visible {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(216, 74, 74, 0.25);
}
.form-group input::placeholder { color: var(--color-text-muted); }
.modal__submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dim) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all var(--transition);
    box-shadow: 0 4px 14px var(--color-accent-glow);
}
.modal__submit:hover {
    background: linear-gradient(135deg, var(--color-accent-hover) 0%, var(--color-accent) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px var(--color-accent-glow);
}

/* Bonus tiers in top-up modal */
.bonus-tiers { margin: 16px 0; }
.bonus-tier {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--color-bg-input);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-size: 13px;
    transition: background-color var(--transition-slow), border-color var(--transition);
}
.bonus-tier--active { border-color: var(--color-accent); background: rgba(216, 74, 74, 0.15); }

/* Wipe block table */
.wipe-table { width: 100%; border-collapse: collapse; }
.wipe-table th, .wipe-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}
.wipe-table th { font-weight: 600; color: var(--color-text-muted); font-size: 12px; }

/* ========== COOKIE BANNER ========== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(18, 18, 22, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--color-border);
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    z-index: 1500;
    transform: translateY(100%);
    transition: transform var(--transition-slow);
    transition: transform var(--transition);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner__text { font-size: 14px; color: var(--color-text-muted); margin: 0; }
.cookie-banner__btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dim) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.cookie-banner__btn:hover {
    background: linear-gradient(135deg, var(--color-accent-hover) 0%, var(--color-accent) 100%);
    transform: translateY(-1px);
}

/* ========== AI HELPER WIDGET ========== */
.ai-helper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1400;
}
.ai-helper__toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dim) 100%);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--color-accent-glow);
    transition: all var(--transition);
}
.ai-helper__toggle:hover {
    background: linear-gradient(135deg, var(--color-accent-hover) 0%, var(--color-accent) 100%);
    transform: scale(1.08);
    box-shadow: 0 6px 28px var(--color-accent-glow);
}
.ai-helper__panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 360px;
    max-height: 480px;
    background: var(--color-bg-card-solid);
    backdrop-filter: blur(16px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.ai-helper__panel.is-open { display: flex; }
.ai-helper__header {
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
}
.ai-helper__body {
    padding: 16px;
    flex: 1;
    overflow-y: auto;
}
.ai-helper__msg {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}
.ai-helper__input-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.ai-helper__input {
    flex: 1;
    padding: 10px 14px;
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 14px;
}
.ai-helper__btn {
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dim) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.ai-helper__btn:hover {
    background: linear-gradient(135deg, var(--color-accent-hover) 0%, var(--color-accent) 100%);
    transform: translateY(-1px);
}

/* ========== DISCORD WIDGET ========== */
.discord-widget {
    background: var(--color-bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-bottom: 24px;
}
.discord-widget__title { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.discord-widget__desc { font-size: 13px; color: var(--color-text-muted); margin: 0 0 12px; }
.discord-widget__stats { margin-bottom: 12px; font-weight: 600; }
.discord-widget__btn {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-border-accent);
    color: #fff !important;
    font-weight: 600;
    border-radius: var(--radius-md);
}

/* ========== PROMO MODAL ========== */
.promo-code-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--color-bg-input);
    padding: 12px;
    border-radius: var(--radius-md);
    margin: 16px 0;
}
.promo-code-box__code { font-family: monospace; font-weight: 700; font-size: 16px; }
.promo-code-box__copy {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dim) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition);
}
.promo-code-box__copy:hover {
    background: linear-gradient(135deg, var(--color-accent-hover) 0%, var(--color-accent) 100%);
    transform: translateY(-1px);
}

/* ========== LEFT SIDEBAR ========== */
.left-sidebar {
    width: 300px;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    position: static;
}

.sidebar-menu {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 14px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: all var(--transition);
}
.sidebar-menu:hover { border-color: rgba(255, 255, 255, 0.12); }
.sidebar-menu__header {
    display: none;
}
.sidebar-menu__decor {
    width: 4px;
    height: 18px;
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--color-accent), var(--color-accent-light));
    border-radius: 2px;
}
.sidebar-menu__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-muted);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.sidebar-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar-menu__list li + li { margin-top: 2px; }
.sidebar-menu__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: #e5edff;
    border-radius: 16px;
    transition: all var(--transition);
    position: relative;
    border: 1px solid transparent;
    font-weight: 500;
}
.sidebar-menu__list li:not(:last-child) .sidebar-menu__link {
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
}
.sidebar-menu__link:hover {
    color: #f6f9ff;
    background: rgba(255, 255, 255, 0.05);
}
.sidebar-menu__link.active {
    color: #f7faff;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(216, 74, 74, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.sidebar-menu__icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.95;
    color: #f1f6ff;
}
.sidebar-menu__link.active .sidebar-menu__icon { opacity: 1; color: #ffffff; }
.sidebar-menu__text { flex: 1; font-size: 17px; font-weight: 500; line-height: 1.35; letter-spacing: 0.01em; }
.sidebar-menu__arrow {
    width: 24px;
    min-width: 24px;
    text-align: center;
    font-size: 20px;
    line-height: 1;
    opacity: 0;
    align-self: center;
    margin-left: auto;
    flex-shrink: 0;
    transition: opacity var(--transition), transform var(--transition), color var(--transition);
    color: #f4f8ff;
}
.sidebar-menu__link:hover .sidebar-menu__arrow { opacity: 0.92; transform: translateX(3px); }
.sidebar-menu__link.active .sidebar-menu__arrow { opacity: 1; transform: none; font-size: 0; color: var(--color-accent-light); }
.sidebar-menu__link.active .sidebar-menu__arrow::before {
    content: '✓';
    font-size: 24px;
    line-height: 1;
    font-weight: 600;
}
.sidebar-menu__link--forward .sidebar-menu__arrow { opacity: 0; }
.sidebar-menu__link--forward:hover .sidebar-menu__arrow { transform: translateX(3px); }
.sidebar-menu__link--btn {
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    font: inherit;
    cursor: pointer;
}

.sidebar-servers {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    background: var(--color-bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow);
}
.sidebar-servers__header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
}
.sidebar-servers__decor {
    width: 4px;
    height: 18px;
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--color-success), #2dd4bf);
    border-radius: 2px;
}
.sidebar-servers__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-muted);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.sidebar-server {
    background: rgba(20, 20, 26, 0.6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    transition: all var(--transition);
}
.sidebar-server:hover { border-color: rgba(216, 74, 74, 0.32); }
.sidebar-server::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.sidebar-server { position: relative; overflow: hidden; }
.sidebar-server__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.sidebar-server__name {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: var(--color-text);
}
.sidebar-server__copy {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-bg-input);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition);
}
.sidebar-server__copy:hover {
    color: var(--color-text);
    border-color: var(--color-border-accent);
    background: rgba(216, 74, 74, 0.14);
}
.sidebar-server__copy.is-copied {
    color: var(--color-accent-light);
    border-color: var(--color-border-accent);
}
.sidebar-server__copy:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
.sidebar-server__meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: var(--space-sm);
}
.sidebar-server__label { color: var(--color-text-muted); }
.sidebar-server__count {
    color: var(--color-success);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.sidebar-server__count-sep { opacity: 0.6; font-weight: 500; }
.sidebar-server__progress { margin-bottom: 14px; }
.sidebar-server__progress-track {
    height: 6px;
    background: var(--color-bg-input);
    border-radius: 3px;
    overflow: hidden;
}
.sidebar-server__progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    border-radius: 3px;
    transition: width 0.5s ease;
}
.sidebar-server__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.sidebar-server__tag {
    padding: 5px var(--space-md);
    background: rgba(216, 74, 74, 0.18);
    color: var(--color-accent-light);
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 500;
    border: 1px solid rgba(216, 74, 74, 0.32);
}

.sidebar-online {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: 18px 20px;
    background: var(--color-bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}
.sidebar-online__icon-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.15);
    border-radius: 12px;
}
.sidebar-online__icon { font-size: 24px; }
.sidebar-online__pulse {
    position: absolute;
    inset: -2px;
    border: 2px solid var(--color-success);
    border-radius: 14px;
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.1; }
}
.sidebar-online__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}
.sidebar-online__value {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-accent-light);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 20px var(--color-accent-glow);
}
.sidebar-online__label { font-size: 13px; color: var(--color-text-muted); }
.sidebar-online__servers { font-size: 11px; color: var(--color-text-muted); opacity: 0.8; }

/* ========== LAYOUT ========== */
.main-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-2xl);
    align-items: start;
}
.main-layout__content { min-width: 0; }
.main-content { min-width: 0; }

/* ========== ADMIN PANEL ========== */
.admin-panel {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}
.admin-panel__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}
.admin-panel__title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.admin-role-badge {
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--color-border-accent);
    background: rgba(0, 0, 0, 0.18);
    color: var(--color-accent-light);
}
.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--space-xl);
}
.admin-nav__link {
    padding: 9px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-muted) !important;
    background: rgba(255, 255, 255, 0.03);
    font-size: 13px;
    font-weight: 600;
}
.admin-nav__link.active,
.admin-nav__link:hover {
    color: var(--color-text) !important;
    border-color: var(--color-border-accent);
    background: rgba(255, 255, 255, 0.04);
}
.admin-alert {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    margin-bottom: var(--space-lg);
    font-size: 13px;
}
.admin-alert--success {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.12);
    color: #baf5cf;
}
.admin-alert--error {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.12);
    color: #ffced0;
}
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}
.admin-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 14px;
}
.admin-stat-card h3 {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 600;
}
.admin-stat-card p {
    margin: 6px 0 0;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
}
.admin-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    align-items: start;
}
.admin-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}
.admin-bulk-form {
    margin-bottom: var(--space-md);
}
.admin-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}
.admin-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}
.admin-card__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}
.admin-card__subtitle {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-accent-light);
}
.admin-sep {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--space-lg) 0;
}
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.admin-inline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.admin-form input:not([type="checkbox"]):not([type="radio"]),
.admin-form select,
.admin-form textarea,
.admin-inline input:not([type="checkbox"]):not([type="radio"]),
.admin-inline select {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
}
.admin-form textarea {
    min-height: 90px;
    resize: vertical;
}
.admin-setting-textarea {
    min-height: 44px;
    width: min(520px, 100%);
}
.admin-setting-textarea--lg {
    min-height: 180px;
    width: 100%;
}
.admin-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-muted);
}
.admin-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #c55adf;
    cursor: pointer;
}
.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.admin-form-grid__full {
    grid-column: 1 / -1;
}
.admin-modal--wide {
    max-width: 860px !important;
}
.admin-table-wrap {
    overflow-x: auto;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--color-border);
    padding: 10px 8px;
    text-align: left;
    vertical-align: middle;
}
.admin-table th {
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 600;
}
.admin-table__value {
    max-width: 420px;
    white-space: pre-wrap;
    word-break: break-word;
}
.admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.admin-btn-link {
    border: none;
    background: transparent;
    color: var(--color-accent);
    cursor: pointer;
    padding: 0;
}
.admin-btn-link--danger {
    color: #ff9aa0;
}
.admin-muted {
    margin: 0;
    color: var(--color-text-muted);
}
.admin-pagination {
    margin-top: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
}
.admin-pagination__indicator {
    color: var(--color-text-muted);
    font-size: 13px;
}

.legal-page {
    max-width: 960px;
    margin: 0 auto var(--space-2xl);
    padding: var(--space-xl);
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.03);
}
.legal-page__title {
    margin: 0 0 var(--space-lg);
    font-size: 30px;
    font-weight: 800;
}
.legal-page__content {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.75;
    white-space: normal;
}
.legal-page__content--contacts {
    font-size: 16px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .container--wide { max-width: 100%; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .main-layout { grid-template-columns: 1fr; gap: var(--space-xl); }
    .left-sidebar {
        position: static;
        width: 100%;
        min-width: 0;
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-lg);
    }
    .sidebar-menu { flex: 1 1 100%; }
    .sidebar-servers { flex: 1 1 100%; }
    .sidebar-online { flex: 1 1 auto; }
}

@media (max-width: 768px) {
    :root { --header-height: 56px; }
    .container { padding: 0 var(--space-lg); }
    .header__logo { font-size: 18px; }
    .header__logo-gem { width: 34px; height: 34px; border-radius: 10px; }
    .header__logo-tagline { display: none; }
    .header__social { display: none; }
    .header__chip { display: none; }
    .header__btn { padding: var(--space-sm) var(--space-lg); font-size: 13px; }
    .main-content--with-offset {
        padding-top: var(--space-xl);
        padding-bottom: var(--space-xl);
    }
    .banners { grid-template-columns: 1fr; gap: var(--space-lg); margin-bottom: var(--space-xl); }
    .banner { padding: var(--space-lg); }
    .daily-promo { padding: var(--space-md) var(--space-lg); gap: var(--space-md); }
    .daily-promo__desc { min-width: 100%; }
    .shop-section { margin-bottom: var(--space-xl); }
    .shop-server { flex-direction: column; align-items: stretch; max-width: none; }
    .shop-server__dropdown { width: 100%; }
    .shop-categories__list { flex-direction: column; }
    .shop-categories__btn { width: 100%; }
    .products-grid {
        grid-template-columns: repeat(min(2, var(--shop-products-cols, 4)), minmax(0, 1fr));
        gap: var(--space-md);
    }
    .product-card { padding: var(--space-md); }
    .product-card__img-fallback { font-size: 28px; }
    .product-card__name { font-size: 13px; }
    .product-card__price { font-size: 16px; }
    .product-card__btn { padding: var(--space-sm) var(--space-md); font-size: 12px; min-height: 44px; }
    .modal { width: calc(100% - var(--space-xl)); max-width: none; padding: var(--space-xl); }
    .cookie-banner { flex-direction: column; align-items: stretch; padding: var(--space-lg); gap: var(--space-md); }
    .ai-helper { bottom: var(--space-lg); right: var(--space-lg); }
    .ai-helper__toggle { width: 52px; height: 52px; min-width: 52px; min-height: 52px; }
    .ai-helper__panel { width: calc(100vw - var(--space-xl)); max-width: 360px; }
    .sidebar-menu__link { padding: var(--space-lg); min-height: 44px; }
    .sidebar-server { padding: var(--space-lg); }
    .sidebar-online { padding: var(--space-lg); }
    .sidebar-online__value { font-size: 20px; }
    .admin-panel { padding: var(--space-lg); }
    .admin-grid-2 { grid-template-columns: 1fr; }
    .admin-stats { grid-template-columns: 1fr; }
    .admin-form-grid { grid-template-columns: 1fr; }
    .legal-page { padding: var(--space-lg); margin-bottom: var(--space-xl); }
    .legal-page__title { font-size: 24px; }
}

@media (max-width: 480px) {
    .container { padding: 0 var(--space-md); }
    .products-grid { grid-template-columns: minmax(0, 1fr); }
    .left-sidebar { flex-direction: column; }
    .sidebar-online { flex: 1 1 100%; }
}

/* ========== UNIFIED ROUNDING + TOASTS ========== */
.header__btn,
.header__social-btn,
.shop-categories__btn,
.product-card,
.shop-server,
.sidebar-menu,
.sidebar-server,
.sidebar-online,
.profile-box,
.admin-panel,
.admin-card,
.admin-table-wrap,
.admin-btn-link,
.modal,
.auth-box,
.daily-promo,
.banner {
    border-radius: var(--radius-md);
}

input,
select,
textarea,
button {
    border-radius: var(--radius-md);
}

.toast-stack {
    position: fixed;
    top: calc(var(--header-height) + var(--space-lg));
    right: var(--space-lg);
    z-index: 4000;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: min(92vw, 420px);
}

.toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.85);
    box-shadow: var(--shadow);
    transform: translateX(26px);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.toast.is-visible {
    transform: translateX(0);
    opacity: 1;
}

.toast.is-hiding {
    transform: translateX(26px);
    opacity: 0;
}

.toast--success {
    border-color: rgba(33, 197, 94, 0.45);
}

.toast--error {
    border-color: rgba(239, 68, 68, 0.45);
}

.toast__text {
    color: var(--color-text);
    font-size: 13px;
    line-height: 1.35;
}

.toast__close {
    border: 0;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0 2px;
}
