/* SecretRust — Premium gaming design */
/* Тёмная тема, огненные акценты, glassmorphism */

:root {
    --color-bg: #08080a;
    --color-bg-card: rgba(18, 18, 22, 0.85);
    --color-bg-card-solid: #121216;
    --color-bg-card-hover: rgba(28, 28, 34, 0.9);
    --color-bg-input: rgba(26, 26, 32, 0.8);
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-accent: rgba(249, 115, 22, 0.5);
    --color-text: #f4f4f5;
    --color-text-muted: #a1a1aa;
    --color-accent: #f97316;
    --color-accent-dim: #ea580c;
    --color-accent-hover: #fb923c;
    --color-accent-light: #fdba74;
    --color-accent-glow: rgba(249, 115, 22, 0.35);
    --color-success: #22c55e;
    --color-danger: #ef4444;
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --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.25);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 40px rgba(249, 115, 22, 0.04);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
    --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; }
::selection { background: rgba(249, 115, 22, 0.3); 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(249, 115, 22, 0.3); }
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;
}
/* Фоновое изображение: затемнённое и слегка размытое */
body::before {
    content: '';
    position: fixed;
    inset: -20px;
    background: url('https://files.facepunch.com/ashcoook/1b0311b1/dec2025_naval_update_ghost_ships_3_1080.jpg') center/cover no-repeat;
    filter: blur(12px) brightness(0.35) saturate(0.9);
    z-index: 0;
    pointer-events: none;
}
/* Оверлеи: градиенты и виньетка */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse 90% 60% at 50% -15%, rgba(249, 115, 22, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 100% 80%, rgba(249, 115, 22, 0.04) 0%, transparent 45%),
        radial-gradient(ellipse 130% 90% at 50% 50%, transparent 35%, rgba(0, 0, 0, 0.5) 100%),
        linear-gradient(180deg, rgba(8, 8, 10, 0.7) 0%, transparent 20%, transparent 80%, rgba(8, 8, 10, 0.8) 100%);
    z-index: 1;
    pointer-events: none;
    animation: bgOverlayShift 14s ease-in-out infinite;
}
@keyframes bgOverlayShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.88; }
}

/* Частицы: поверх фона, под контентом */
.bg-particles {
    position: fixed;
    inset: 0;
    z-index: 1.5;
    pointer-events: none;
    overflow: hidden;
}
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.5) 0%, rgba(249, 115, 22, 0.1) 70%);
    border-radius: 50%;
    opacity: 0.5;
    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: 3px; height: 3px; opacity: 0.7; }
.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: 2px; height: 2px; opacity: 0.5; }
.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.6; }
.particle:nth-child(7) { left: 55%; top: 85%; animation-delay: -2.5s; animation-duration: 17s; width: 3px; height: 3px; }
.particle:nth-child(8) { left: 90%; top: 25%; animation-delay: -6s; animation-duration: 11s; opacity: 0.5; }
.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: 2px; height: 2px; }
.particle:nth-child(11) { left: 5%; top: 35%; animation-delay: -7s; animation-duration: 14s; opacity: 0.6; }
.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: 3px; height: 3px; opacity: 0.5; }
.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.7; }
.particle:nth-child(16) { left: 50%; top: 30%; animation-delay: -8s; animation-duration: 21s; width: 2px; height: 2px; }
@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(30px, -50px); }
    50% { transform: translate(-25px, -70px); }
    75% { transform: translate(-35px, -30px); }
}

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(12, 12, 16, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: var(--space-2xl);
}
.header__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    color: var(--color-text) !important;
    letter-spacing: -0.03em;
    transition: color var(--transition);
}
.header__logo:hover { color: var(--color-accent) !important; }
.header__logo-icon { font-size: 30px; filter: drop-shadow(0 0 8px var(--color-accent-glow)); }
.header__logo-text { letter-spacing: -0.03em; }

.header__right {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}
.header__social {
    display: flex;
    gap: var(--space-sm);
}
.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: all var(--transition);
}
.header__social-btn:hover {
    color: var(--color-accent) !important;
    border-color: var(--color-border-accent);
    background: rgba(249, 115, 22, 0.08);
}

.header__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dim) 100%);
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--color-accent-glow);
    transition: all var(--transition);
}
.header__btn:hover {
    background: linear-gradient(135deg, var(--color-accent-hover) 0%, var(--color-accent) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--color-accent-glow);
}
.header__btn:focus-visible { outline: 2px solid var(--color-accent-light); outline-offset: 2px; }
.header__btn--secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--color-border);
    box-shadow: none;
}
.header__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--color-border-accent);
}
.header__user {
    font-size: 13px;
    color: var(--color-text-muted);
    padding: 0 var(--space-md);
}

.main-content { position: relative; z-index: 2; }
.main-content--with-offset { padding-top: 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(249, 115, 22, 0.06);
}
.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(249, 115, 22, 0.15);
    color: var(--color-accent-light);
    border-radius: var(--radius-sm);
    font-size: 12px;
    border: 1px solid rgba(249, 115, 22, 0.25);
}

/* ========== 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(249, 115, 22, 0.05);
    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__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(249, 115, 22, 0.08) 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(249, 115, 22, 0.08);
    border-color: rgba(249, 115, 22, 0.6);
}
.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-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-server__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    white-space: nowrap;
}
.shop-server__select {
    padding: 10px 18px;
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 14px;
    font-family: var(--font-main);
    cursor: pointer;
    transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}
.shop-server__select:hover {
    border-color: var(--color-border-accent);
}
.shop-server__select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

/* Категории — отдельно от сервера */
.shop-categories {
    margin-bottom: 24px;
}
.shop-categories__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.shop-categories__btn {
    padding: 10px 18px;
    background: var(--color-bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition-slow), border-color var(--transition), color var(--transition-slow), box-shadow var(--transition);
}
.shop-categories__btn:hover {
    background: rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.3);
    color: var(--color-accent-light);
}
.shop-categories__btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    box-shadow: 0 4px 14px var(--color-accent-glow);
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}
@media (max-width: 1100px) {
    .products-grid { grid-template-columns: repeat(3, 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 {
    opacity: 0;
    pointer-events: none;
}
.product-card:hover {
    border-color: var(--color-border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow), 0 0 30px rgba(249, 115, 22, 0.08);
}
.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;
    font-size: 32px;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    flex-shrink: 0;
    transition: border-color var(--transition), color var(--transition);
}
.product-card:hover .product-card__img {
    border-color: rgba(249, 115, 22, 0.2);
}
.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;
    padding: 10px 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;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 2px 10px var(--color-accent-glow);
}
.product-card__btn:hover {
    background: linear-gradient(135deg, var(--color-accent-hover) 0%, var(--color-accent) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--color-accent-glow);
}

/* ========== FOOTER ========== */
.footer {
    margin-top: var(--space-3xl);
    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, #1b2838 0%, #2a475e 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, #2a475e 0%, #1b2838 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.auth-box__steam-icon { display: flex; align-items: center; }
.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); }

/* ========== 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__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(249, 115, 22, 0.15);
}
.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(249, 115, 22, 0.08); }

/* 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: #5865F2;
    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: sticky;
    top: calc(var(--header-height) + var(--space-2xl));
}

.sidebar-menu {
    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);
    transition: all var(--transition);
}
.sidebar-menu:hover { border-color: rgba(255, 255, 255, 0.08); }
.sidebar-menu__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-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: 4px; }
.sidebar-menu__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: var(--color-text-muted);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    position: relative;
}
.sidebar-menu__link:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.05);
}
.sidebar-menu__link.active {
    color: var(--color-accent-light);
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.25);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.05);
}
.sidebar-menu__icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.8;
}
.sidebar-menu__link.active .sidebar-menu__icon { opacity: 1; color: var(--color-accent); }
.sidebar-menu__text { flex: 1; font-size: 14px; font-weight: 500; line-height: 1.4; }
.sidebar-menu__arrow {
    font-size: 14px;
    line-height: 1;
    opacity: 0.4;
    align-self: center;
    transition: transform var(--transition);
}
.sidebar-menu__link:hover .sidebar-menu__arrow { opacity: 0.8; transform: translateX(3px); }

.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(249, 115, 22, 0.2); }
.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;
    gap: 10px;
    margin-bottom: 12px;
}
.sidebar-server__icon { font-size: 20px; }
.sidebar-server__name {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: var(--color-text);
}
.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__connect-wrap { margin-bottom: 12px; }
.sidebar-server__connect {
    width: 100%;
    padding: 10px 12px;
    font-size: 11px;
    font-family: 'Consolas', 'Monaco', monospace;
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.sidebar-server__connect:focus,
.sidebar-server__connect:focus-visible {
    outline: none;
    border-color: var(--color-accent);
}
.sidebar-server__connect-hint {
    display: block;
    font-size: 10px;
    color: var(--color-text-muted);
    margin-top: 4px;
}
.sidebar-server__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.sidebar-server__tag {
    padding: 5px var(--space-md);
    background: rgba(249, 115, 22, 0.12);
    color: var(--color-accent-light);
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 500;
    border: 1px solid rgba(249, 115, 22, 0.25);
}

.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; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .container--wide { max-width: 100%; }
}

@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-icon { font-size: 22px; }
    .header__social { display: none; }
    .header__btn { padding: var(--space-sm) var(--space-lg); font-size: 13px; }
    .main-content--with-offset { padding-top: 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-categories__list { flex-direction: column; }
    .shop-categories__btn { width: 100%; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
    .product-card { padding: var(--space-md); }
    .product-card__img { 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; }
}

@media (max-width: 480px) {
    .container { padding: 0 var(--space-md); }
    .products-grid { grid-template-columns: 1fr; }
    .left-sidebar { flex-direction: column; }
    .sidebar-online { flex: 1 1 100%; }
}
