.header-admin-manage-block {
    margin-top: 8px;
    padding: 10px;
    border: 1px solid rgba(138, 160, 255, 0.28);
    border-radius: 12px;
    background: rgba(21, 24, 38, 0.92);
    max-height: 58vh;
    overflow-y: auto;
}

.header-admin-manage-title {
    font-size: 13px;
    font-weight: 700;
    color: #c8d2ff;
    margin-bottom: 8px;
}

.header-admin-manage-counters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.header-admin-counter {
    border: 1px solid rgba(127, 145, 255, 0.28);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    color: #cfd8ff;
    background: rgba(27, 32, 52, 0.75);
}

.header-admin-manage-tools {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.header-admin-manage-tools input,
.header-admin-manage-tools select {
    width: 100%;
    border: 1px solid rgba(127, 145, 255, 0.35);
    border-radius: 8px;
    background: rgba(18, 21, 34, 0.92);
    color: #e9eeff;
    font-size: 12px;
    padding: 8px 10px;
}

.header-admin-manage-empty {
    margin: 0;
    color: #a8b2d1;
    font-size: 13px;
}

.header-admin-manage-list {
    display: grid;
    gap: 10px;
}

.players-history-block {
    margin-top: 8px;
    padding: 10px;
    border: 1px solid rgba(138, 160, 255, 0.28);
    border-radius: 12px;
    background: rgba(21, 24, 38, 0.92);
    max-height: 62vh;
    overflow-y: auto;
}

.players-history-title {
    font-size: 13px;
    font-weight: 700;
    color: #c8d2ff;
    margin-bottom: 8px;
}

.players-history-tools {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

#players-history-search-input {
    flex: 1 1 320px;
    border: 1px solid rgba(127, 145, 255, 0.35);
    border-radius: 8px;
    background: rgba(18, 21, 34, 0.92);
    color: #e9eeff;
    font-size: 12px;
    padding: 8px 10px;
}

.players-history-count {
    color: #a8b2d1;
    font-size: 12px;
}

.players-history-list {
    display: grid;
    gap: 8px;
}

.players-history-card {
    border: 1px solid rgba(130, 145, 255, 0.26);
    border-radius: 10px;
    padding: 10px;
    background: rgba(11, 13, 24, 0.88);
}

.players-history-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 6px;
}

.players-history-name {
    font-size: 14px;
    font-weight: 700;
    color: #edf1ff;
}

a.players-history-name-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(237, 241, 255, 0.35);
}
a.players-history-name-link:hover {
    color: #fff;
    border-bottom-color: rgba(248, 250, 252, 0.75);
}

.players-history-meta code {
    color: #c8d2ff;
    font-size: 11px;
}

.players-history-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #a8b2d1;
    font-size: 12px;
}

.players-history-empty {
    margin: 0;
    color: #a8b2d1;
    font-size: 13px;
}

.header-admin-card {
    border: 1px solid rgba(130, 145, 255, 0.26);
    border-radius: 10px;
    padding: 10px;
    background: rgba(11, 13, 24, 0.88);
}

.header-admin-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #edf1ff;
}

.header-admin-card-meta {
    margin-top: 3px;
    color: #a8b2d1;
    font-size: 12px;
}

.header-admin-card-status {
    margin-top: 6px;
    color: #cfd8ff;
    font-size: 12px;
}

.header-admin-card-actions {
    margin-top: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.header-admin-action-btn {
    border: 1px solid rgba(127, 145, 255, 0.35);
    border-radius: 8px;
    background: rgba(91, 106, 208, 0.22);
    color: #e9eeff;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.header-admin-action-btn.warn {
    background: rgba(176, 132, 29, 0.25);
    border-color: rgba(215, 168, 52, 0.44);
}

.header-admin-action-btn.danger {
    background: rgba(179, 49, 49, 0.22);
    border-color: rgba(216, 84, 84, 0.45);
}

.header-admin-action-btn.unfreeze {
    background: rgba(54, 154, 127, 0.22);
    border-color: rgba(90, 194, 166, 0.45);
}

.header-admin-action-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
/* ============================================ */
/* Портал: тёмная тема + фиолетовый акцент      */
/* (фон body, светлая тема, cursor-glow — без изменений) */
/* ============================================ */

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    margin: 0;
    padding: 0;
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
    background: #1a1a24;
    color: #e8e8f0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* Светлая серая тема */
body.light-theme {
    background: #e5e7eb;
    color: #111827;
}

body.light-theme h1,
body.light-theme h2,
body.light-theme h3 {
    color: #111827;
    text-shadow: none;
}

body.light-theme .main-content {
    background: #f7faff;
}

body.light-theme .page-content p,
body.light-theme .page-content li {
    color: #111827;
}

body.light-theme a {
    color: #1d4ed8;
}
body.light-theme a:hover {
    color: #1e40af;
}

/* Главная: заголовок «Главная» и блок ввода */
#home-content.home-page .home-page-title {
    border-bottom: none;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 8px;
    animation: none;
    text-shadow: none;
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(28px, 3.2vw, 36px);
    font-weight: 700;
}
#home-content.home-page .home-greeting-line {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: rgba(216, 180, 254, 0.95);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 14px;
    max-width: 640px;
}
#home-content.home-page .home-intro .home-lead {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: rgba(243, 243, 255, 0.92);
    text-shadow: none;
    font-size: 1.05rem;
    line-height: 1.55;
    margin-top: 0;
}
body.light-theme #home-content.home-page .home-greeting-line {
    color: #5b21b6;
}
body.light-theme #home-content.home-page .home-page-title {
    color: #111827;
}

body.light-theme .home-intro {
    background: linear-gradient(145deg, rgba(249, 250, 251, 0.98), rgba(243, 232, 255, 0.95));
    border-color: rgba(99, 102, 241, 0.15);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

body.light-theme .home-intro .home-lead {
    color: #374151;
}

/* Затемнённое размытое пятно света за курсором */
.cursor-glow {
    position: fixed;
    width: min(42vmax, 280px);
    height: min(42vmax, 280px);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(
        circle at center,
        rgba(139, 92, 246, 0.35) 0%,
        rgba(139, 92, 246, 0.2) 20%,
        rgba(139, 92, 246, 0.12) 40%,
        rgba(139, 92, 246, 0.05) 60%,
        transparent 80%
    );
    filter: blur(18px);
    pointer-events: none;
    z-index: 0;
    will-change: left, top;
}

.app-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 100vh;
    overflow-x: hidden;
}

.app-main-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.yooma-left-rail {
    position: fixed;
    left: 12px;
    top: 77%;
    transform: translateY(-50%);
    z-index: 1005;
    width: 56px;
    padding: 10px 8px;
    border-radius: 16px;
    background: rgba(8, 10, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    overflow: visible;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .yooma-left-rail {
        top: 74%;
    }
}

.yooma-rail-btn {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #a3a3a3;
    font-size: 18px;
    cursor: pointer;
}

.yooma-rail-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    color: #e9d5ff;
}

.yooma-rail-btn.active {
    background: linear-gradient(135deg, #343f91, #5b21b6);
    color: #c4b5fd;
}

/* Рельс: не применять глобальный .nav-criteria (зелёный + translateX) — иначе кнопка «вылезает» вбок */
.yooma-left-rail .yooma-rail-btn.nav-criteria,
.yooma-left-rail .yooma-rail-btn.nav-criteria:hover,
.yooma-left-rail .yooma-rail-btn.nav-criteria.active {
    transform: none !important;
}
.yooma-left-rail .yooma-rail-btn.nav-criteria {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}
.yooma-left-rail .yooma-rail-btn.nav-criteria:hover {
    background: rgba(139, 92, 246, 0.15) !important;
    color: #e9d5ff !important;
}
.yooma-left-rail .yooma-rail-btn.nav-criteria.active {
    background: linear-gradient(135deg, #343f91, #5b21b6) !important;
    color: #c4b5fd !important;
    box-shadow: none !important;
}

/* Подсказка у «Тикетов»: выезжает вправо при наведении */
.yooma-rail-btn-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.yooma-rail-btn-wrap .yooma-rail-btn {
    flex-shrink: 0;
}

.yooma-rail-tooltip {
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    z-index: 1006;
    margin: 0;
    padding: 12px 16px;
    max-width: min(240px, calc(100vw - 100px));
    border-radius: 10px;
    background: rgba(12, 14, 24, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    color: #f3f4f6;
    text-align: left;
    white-space: normal;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(-8px);
    transition:
        opacity 0.2s ease,
        transform 0.22s cubic-bezier(0.25, 0.8, 0.25, 1),
        visibility 0.2s;
}

.yooma-rail-btn-wrap:hover .yooma-rail-tooltip,
.yooma-rail-btn-wrap:focus-within .yooma-rail-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

body.light-theme .yooma-rail-tooltip {
    background: rgba(249, 250, 251, 0.98);
    border-color: rgba(15, 23, 42, 0.12);
    color: #111827;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.15);
}

.menu-trigger-mobile {
    display: none;
}

@media (max-width: 1199px) {
    .yooma-left-rail {
        display: flex;
        left: 8px;
        width: 50px;
        padding: 8px 6px;
    }
    .yooma-rail-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .menu-trigger-mobile {
        display: inline-flex !important;
    }
    .header-brand-mobile {
        display: inline-flex !important;
    }
    .header-yooma-menu-btn {
        display: none;
    }
}

@media (min-width: 992px) {
    .menu-trigger-mobile {
        display: none !important;
    }
    .header-brand-mobile {
        display: none !important;
    }
}

/* Сайт-меню «Меню ▼» (как yooma.su) */
.header-site-menu-wrap {
    position: relative;
}

.header-yooma-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #e8e8f0;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.header-yooma-menu-btn:hover {
    background: rgba(139, 92, 246, 0.18);
    border-color: rgba(139, 92, 246, 0.35);
    color: #f5f3ff;
}

.header-yooma-menu-btn.is-open {
    background: rgba(139, 92, 246, 0.22);
    border-color: rgba(139, 92, 246, 0.4);
}

.header-chev-down {
    display: block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    opacity: 0.8;
    margin-top: 2px;
    transition: transform 0.2s ease;
}

.header-yooma-menu-btn.is-open .header-chev-down,
.header-user-block.is-open .header-chev-down {
    transform: rotate(180deg);
}

.header-menu-scrim {
    display: none;
}

body.site-menu-open .header-menu-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1002;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

/* Шапка над скримом: кнопка ☰ и тема остаются кликабельными */
body.site-menu-open .top-header {
    z-index: 1008;
}

.header-yooma-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 268px;
    max-width: min(360px, calc(100vw - 48px));
    max-height: min(72vh, 520px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 6px;
    margin: 0;
    background: rgba(24, 24, 36, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    z-index: 1004;
    display: none;
}

.header-yooma-dropdown.is-open {
    display: block;
}

.yooma-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 11px 18px;
    text-align: left;
    font-size: 15px;
    font-family: inherit;
    color: #e8e8f0;
    border: none;
    background: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    transition: background 0.2s ease, color 0.2s ease, transform 0.25s ease-out, border-radius 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    text-decoration: none;
}

/* Глобальные .nav-news / .nav-mystatus и т.д. задают border-color — без рамки в дропдауне */
.header-yooma-dropdown .yooma-dropdown-item {
    border: none !important;
}

/* Как .nav-dropdown .nav-dropdown-item в yooma-референсе */
.yooma-dropdown-item:hover {
    background: rgba(139, 92, 246, 0.15);
    color: #e9d5ff;
    transform: translateX(8px);
}

.yooma-dropdown-item.nav-btn.active {
    background: rgba(139, 92, 246, 0.2);
    color: #e9d5ff;
    transform: translateX(6px);
    border-radius: 10px;
}

.yooma-dropdown-item:active:not(.nav-news):not(.nav-tickets) {
    background: rgba(139, 92, 246, 0.22);
    color: #e9d5ff;
    transform: translateX(6px);
    border-radius: 10px;
}

/* «Тикеты» — фиолетовый акцент (как .nav-dropdown .nav-tickets) */
.yooma-dropdown-item.nav-tickets {
    background: rgba(192, 132, 252, 0.32);
}

.yooma-dropdown-item.nav-tickets:hover {
    background: rgba(192, 132, 252, 0.45);
    color: #e9d5ff;
    transform: translateX(8px);
}

.yooma-dropdown-item.nav-tickets.active {
    background: rgba(192, 132, 252, 0.4);
    color: #e9d5ff;
    border-radius: 10px;
    transform: translateX(6px);
}

/* «Новости» — жёлто-оранжевый акцент (как .nav-news в референсе), сильнее общего .nav-btn.active */
.yooma-dropdown-item.nav-news.active {
    background: linear-gradient(90deg, #e67e22, #f39c12) !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.45) !important;
    transform: translateX(15px);
    border-radius: 10px;
}

.yooma-dropdown-item.nav-news.active:hover {
    background: linear-gradient(90deg, #e67e22, #f39c12) !important;
    color: #fff !important;
    transform: translateX(15px);
}

.yooma-dropdown-link.yooma-dropdown-item:hover {
    background: rgba(139, 92, 246, 0.15);
    color: #e9d5ff;
    transform: translateX(8px);
}

.yooma-dropdown-link {
    color: inherit;
}

.yooma-dropdown-divider {
    height: 1px;
    margin: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    padding: 0;
}

.yooma-dropdown-item .btn-icon {
    font-size: 18px;
    flex-shrink: 0;
}

body.light-theme .header-yooma-dropdown {
    background: rgba(250, 250, 252, 0.98);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15);
}

body.light-theme .yooma-dropdown-item {
    color: #1e1b2e;
}

body.light-theme .yooma-dropdown-item:hover {
    background: rgba(99, 102, 241, 0.12);
    color: #4338ca;
}

body.light-theme .yooma-dropdown-item.nav-btn.active {
    background: rgba(99, 102, 241, 0.18);
    color: #3730a3;
}

body.light-theme .yooma-dropdown-item.nav-tickets {
    background: rgba(192, 132, 252, 0.22);
}

body.light-theme .yooma-dropdown-item.nav-tickets:hover {
    background: rgba(192, 132, 252, 0.35);
    color: #312e81;
}

body.light-theme .yooma-dropdown-item.nav-tickets.active {
    background: rgba(192, 132, 252, 0.38);
    color: #312e81;
}

body.light-theme .yooma-dropdown-item.nav-news.active {
    background: linear-gradient(90deg, #ea580c, #f59e0b) !important;
    color: #fff !important;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.35) !important;
}

body.light-theme .yooma-dropdown-divider {
    background: rgba(15, 23, 42, 0.1);
}

@media (max-width: 991px) {
    /* Панель не перекрывает шапку (иначе ☰ под слоем меню) */
    .header-yooma-dropdown {
        position: fixed;
        top: var(--hdr-h, 56px);
        left: 0;
        bottom: 0;
        width: min(252px, min(82vw, calc(100vw - 64px)));
        max-width: 280px;
        max-height: none;
        border-radius: 0;
        border-right: 1px solid rgba(139, 92, 246, 0.2);
        border-top: none;
        border-bottom: none;
        border-left: none;
        padding-top: 10px;
        padding-bottom: env(safe-area-inset-bottom, 0);
        box-shadow: 16px 0 48px rgba(0, 0, 0, 0.55);
        transform: translateX(-105%);
        transition: transform 0.28s ease;
        display: block;
        visibility: hidden;
        pointer-events: none;
        z-index: 1006;
        -webkit-overflow-scrolling: touch;
    }

    .header-yooma-dropdown.is-open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .header-yooma-dropdown .yooma-dropdown-item {
        min-height: 44px;
        padding-top: 10px;
        padding-bottom: 10px;
        font-size: 14px;
    }

    body.site-menu-open {
        overflow: hidden;
    }

    body.site-menu-open .header-menu-scrim {
        z-index: 1004;
    }

    .top-header {
        padding-left: max(12px, env(safe-area-inset-left, 0));
        padding-right: max(12px, env(safe-area-inset-right, 0));
        padding-top: env(safe-area-inset-top, 0);
    }
}

.btn-login-steam {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border: none;
    color: #ffffff;
    border-radius: 9999px;
    padding: 13px 36px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 16px;
    justify-content: center;
}
.btn-login-steam::before {
    content: none;
}
.btn-login-steam::after {
    content: '';
    display: inline-block;
    width: 34px;
    height: 34px;
    background-image: url('https://community.cloudflare.steamstatic.com/public/shared/images/header/logo_steam.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(2.2) contrast(1.35) drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
    transform: scale(1.85);
    transform-origin: center;
    flex-shrink: 0;
}
.btn-login-steam:hover {
    filter: brightness(1.06);
}

.steam-login-btn {
    background: #5865F2 !important;
    color: #ffffff !important;
    border: none !important;
}

.discord-auth-choice {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.giveaway-auth-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.tickets-steam-hint {
    margin: 8px 0 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 420px;
    line-height: 1.45;
}

body.light-theme .tickets-steam-hint {
    color: rgba(17, 24, 39, 0.75);
}

/* Узкая боковая панель (иконки) */
.sidebar {
    width: 72px;
    min-width: 72px;
    background: rgba(18, 18, 28, 0.98);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-inner {
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.sidebar-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sidebar-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
}

.sidebar-btn.active {
    background: rgba(139, 92, 246, 0.35);
    color: #e9d5ff;
}

.sidebar-icon {
    font-size: 22px;
}

/* Основная область: хедер + контент */
.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #1a1a24;
}

/* Хедер: градиент тёмно-синий / фиолетовый (как у крупных CS2-порталов) */
.top-header {
    --hdr-h: 56px;
    height: var(--hdr-h);
    min-height: var(--hdr-h);
    width: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, rgba(22, 24, 48, 0.98) 0%, rgba(30, 22, 52, 0.98) 42%, rgba(18, 18, 32, 0.98) 100%);
    border-bottom: 1px solid rgba(139, 92, 246, 0.12);
    box-shadow: 0 1px 0 rgba(99, 102, 241, 0.08);
    box-sizing: border-box;
    position: relative;
}

.header-left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

/* Логотип в шапке (стиль игрового портала) */
.header-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #f5f3ff;
    flex-shrink: 0;
    padding: 4px 2px;
    border-radius: 10px;
    transition: opacity 0.2s ease, transform 0.15s ease;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}
.header-brand:hover {
    opacity: 0.92;
    transform: translateX(-50%) translateY(-1px);
}
.header-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 17px;
    font-family: 'Inter', sans-serif;
    color: #fff;
    background: linear-gradient(145deg, #6366f1 0%, #7c3aed 45%, #a855f7 100%);
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.header-brand-word {
    display: flex;
    align-items: baseline;
    gap: 0;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}
.header-brand-text {
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: lowercase;
    color: #ede9fe;
}
.header-brand-tld {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(196, 181, 253, 0.85);
}

@media (max-width: 480px) {
    .header-brand-mobile .header-brand-word {
        display: none;
    }
    .header-brand-mobile {
        padding: 2px;
    }
}

.header-right {
    flex: 0 0 auto;
    margin-left: auto;
}

/* Кнопка «Меню» и выпадающий список навигации (как на yooma.su) */
.header-nav-wrap {
    position: relative;
}
.menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #e8e8f0;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    position: relative;
    z-index: 6;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(139, 92, 246, 0.2);
}
.menu-trigger-icon {
    display: block;
}
.menu-trigger:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
    color: #e9d5ff;
}
.menu-trigger[aria-expanded="true"] {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.4);
}
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    min-width: 280px;
    width: max-content;
    max-width: min(360px, calc(100vw - 24px));
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 0;
    background: rgba(24, 24, 36, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
}
.nav-dropdown.is-open {
    display: block;
}
.nav-dropdown .nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 12px 20px;
    text-align: left;
    font-size: 15px;
    color: #e8e8f0;
    border: none;
    background: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.25s ease-out;
    border-radius: 0;
    box-sizing: border-box;
}
.nav-dropdown .nav-dropdown-item:hover {
    background: rgba(139, 92, 246, 0.15);
    color: #e9d5ff;
    transform: translateX(8px);
}
.nav-dropdown .nav-dropdown-item.active {
    background: rgba(139, 92, 246, 0.2);
    color: #e9d5ff;
    transform: translateX(6px);
    border-radius: 10px;
}
.nav-dropdown .nav-tickets {
    background: rgba(192, 132, 252, 0.32);
}
.nav-dropdown .nav-tickets:hover {
    background: rgba(192, 132, 252, 0.45);
    color: #e9d5ff;
    transform: translateX(8px);
}
.nav-dropdown .nav-tickets.active {
    background: rgba(192, 132, 252, 0.4);
    color: #e9d5ff;
}
.nav-dropdown .nav-dropdown-link {
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease, color 0.2s ease, transform 0.25s ease-out;
}
.nav-dropdown .nav-dropdown-link:hover {
    background: rgba(139, 92, 246, 0.15);
    color: #e9d5ff;
    transform: translateX(8px);
}
.nav-dropdown .nav-dropdown-clan {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Внешняя ссылка проекта: контраст в светлой теме (выпадающее меню тёмное) */
body.light-theme .nav-dropdown .nav-dropdown-clan {
    color: #ffffff;
}
body.light-theme .nav-dropdown .nav-dropdown-clan:hover {
    color: rgba(255, 255, 255, 0.78);
}
.nav-dropdown .btn-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
    position: relative;
    z-index: 3;
}

.header-site-menu-wrap {
    position: relative;
    z-index: 3;
}

.theme-toggle {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.35);
    color: #f9fafb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, color 0.2s ease;
}
.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}
.theme-toggle:active {
    transform: translateY(0);
    box-shadow: none;
}

body.light-theme .theme-toggle {
    background: #f9fafb;
    color: #111827;
    border-color: rgba(15, 23, 42, 0.18);
    box-shadow: 0 0 8px rgba(148, 163, 184, 0.45);
}

.header-user-wrap {
    position: relative;
    margin-left: 10px;
}

.header-user-block {
    font-size: 14px;
    color: #d1d5db;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: default;
}

.header-user-block.header-user-clickable {
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 10px;
    transition: background 0.2s;
}
.header-user-block.header-user-clickable:hover {
    background: rgba(255, 255, 255, 0.06);
}

.header-user-avatar-wrap {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.header-user-block .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.header-username {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-synthesis: none;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

.header-user-chev {
    flex-shrink: 0;
    opacity: 0.85;
}

.header-user-block .btn-login {
    padding: 8px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
}
.header-user-block .btn-login-steam {
    padding: 10px 22px;
    font-size: 15px;
    gap: 22px;
}
.header-user-block .btn-login:hover {
    filter: brightness(1.12);
}


.header-user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    min-width: 180px;
    padding: 8px 6px;
    background: rgba(24, 24, 36, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    overflow: hidden;
}
.header-user-dropdown.is-open {
    display: block;
}
.header-dropdown-item {
    display: block;
    width: auto;
    max-width: 100%;
    margin: 2px 6px;
    padding: 8px 14px;
    text-align: left;
    font-size: 14px;
    color: #e8e8f0;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border-radius: 999px;
    box-sizing: border-box;
}
.header-dropdown-item:hover {
    background: rgba(139, 92, 246, 0.15);
    color: #e9d5ff;
}
.header-dropdown-logout {
    color: #f87171;
}
.header-dropdown-logout:hover {
    background: rgba(248, 113, 113, 0.12);
    color: #e74f4f;
}

/* В светлой теме для дропдауна аккаунта оставляем тот же "фиолетовый pill"-стиль */
body.light-theme .header-user-dropdown {
    background: rgba(24, 24, 36, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
body.light-theme .header-user-dropdown .header-dropdown-item {
    color: #e8e8f0;
    background: none;
}
body.light-theme .header-user-dropdown .header-dropdown-item:hover {
    color: #f3e8ff;
    background: rgba(91, 53, 153, 0.72);
}
body.light-theme .header-user-dropdown .header-dropdown-item.header-dropdown-logout {
    color: #fecaca;
}
body.light-theme .header-user-dropdown .header-dropdown-item.header-dropdown-logout:hover {
    color: #fee2e2;
    background: rgba(185, 28, 28, 0.45);
}

.main-content {
    flex: 1;
    min-width: 0;
    min-height: calc(100vh - 56px);
    padding: 24px 28px 40px 84px;
    overflow-y: auto;
}

/* Страницы: по умолчанию скрыты, активная — видна */
.main-content .page-content {
    display: none;
    padding: 40px 20px;
    max-width: 1100px;
    margin: 0 auto;
}
.main-content .page-content.active {
    display: block !important;
}

/* Блок ввода внешней ссылки клана */
.clan-link-block {
    margin: 24px 0 20px;
    padding: 20px 24px;
    background: linear-gradient(145deg, rgba(28, 26, 48, 0.95), rgba(36, 32, 56, 0.9));
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.clan-link-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin-bottom: 10px;
}

.clan-link-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.clan-link-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 14px;
}

.clan-link-input::placeholder {
    color: #6b7280;
}

.clan-link-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.25);
}

.clan-open-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
    font-weight: 600;
}

.clan-open-btn:hover {
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5);
    filter: brightness(1.05);
}

/* Мобильное меню: кнопка гамбургер в хедере (показывается на узких экранах) */
.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -72px;
        top: 0;
        bottom: 0;
        z-index: 1000;
        transition: left 0.25s ease;
    }
    .sidebar.open {
        left: 0;
    }
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: none;
        border-radius: 8px;
        background: rgba(139, 92, 246, 0.2);
        color: #e9d5ff;
        font-size: 20px;
        cursor: pointer;
    }
}
.criteria-font h1,
.criteria-font h2 {
    font-family: 'Times New Roman', serif;
}



        .a {
            text-align: center;
            font-family: "Times New Roman", Times, serif;
            font-size: large;
            padding: 1rem;
            margin-top: 15px;
            color: #d14040;
            text-shadow: 0 0 5px rgba(209, 64, 64, 0.4);
            animation: slide-spin 2s cubic-bezier(0.34, 1.56, 0.64, 1) 1, header-red-flow 5s ease-in-out 2s infinite;
            font-weight: bold;
        }

        @keyframes slide-spin {
            0% {
                opacity: 0;
                transform: translateY(300vh) rotateX(90deg) scale(0);
            }
            50% {
                opacity: 0.7;
                transform: translateY(50px) rotateX(45deg) scale(0.8);
            }
            100% {
                opacity: 1;
                transform: translateY(0) rotateX(0deg) scale(1);
            }
        }

        /* Плавное переливание от глубокого красного к светло-красному (без мигания) */
        @keyframes header-red-flow {
            0%, 100% {
                color: #4a1515;
                text-shadow: 0 0 6px rgba(74, 21, 21, 0.5), 0 0 12px rgba(120, 30, 30, 0.3);
            }
            50% {
                color: #e85c5c;
                text-shadow: 0 0 8px rgba(232, 92, 92, 0.5), 0 0 16px rgba(232, 92, 92, 0.25);
            }
        }

        .nav-discord {
            border-color: #5865F2 !important;
            background: linear-gradient(90deg, rgba(88, 101, 242, 0.15), rgba(88, 101, 242, 0.1)) !important;
        }

        .nav-discord:hover {
            background: linear-gradient(90deg, rgba(88, 101, 242, 0.3), rgba(88, 101, 242, 0.25)) !important;
            box-shadow: 0 0 15px rgba(88, 101, 242, 0.4) !important;
        }

        .nav-discord.active {
            background: linear-gradient(90deg, #5865F2, #7289DA) !important;
            box-shadow: 0 0 20px rgba(88, 101, 242, 0.6) !important;
        }
 
        .nav-telegram {
            border-color: #0088cc !important;
            background: linear-gradient(90deg, rgba(0, 136, 204, 0.15), rgba(0, 136, 204, 0.1)) !important;
        }

        .nav-telegram:hover {
            background: linear-gradient(90deg, rgba(0, 136, 204, 0.3), rgba(0, 136, 204, 0.25)) !important;
            box-shadow: 0 0 15px rgba(0, 136, 204, 0.4) !important;
        }

        .nav-telegram.active {
            background: linear-gradient(90deg, #0088cc, #00a8e8) !important;
            box-shadow: 0 0 20px rgba(0, 136, 204, 0.6) !important;
        }

        /* Green theme for the Criteria nav button */
        .nav-criteria {
            border-color: #2ecc71 !important;
            background: linear-gradient(90deg, rgba(46, 204, 113, 0.15), rgba(46, 204, 113, 0.08)) !important;
        }

        .nav-criteria:hover {
            background: linear-gradient(90deg, rgba(46, 204, 113, 0.3), rgba(46, 204, 113, 0.2)) !important;
            box-shadow: 0 0 15px rgba(46, 204, 113, 0.25) !important;
        }

        .nav-criteria.active {
            background: linear-gradient(90deg, #27ae60, #2ecc71) !important;
            box-shadow: 0 0 20px rgba(46, 204, 113, 0.45) !important;
            transform: translateX(15px);
        }

        .btn-icon {
            font-size: 24px;
            min-width: 30px;
        }

        .btn-text {
            flex: 1;
        }

.page-content {
            display: none;
            padding: 40px 20px;
            max-width: 1100px;
            margin: 0 auto;
            animation: fadeIn 0.5s ease-in-out;
        }

        .page-content.active {
            display: block !important;
        }

        /* ============================================ */
        /* HOME PAGE (hero как у CS2-порталов)          */
        /* ============================================ */

        .home-page {
            padding-top: 28px;
            max-width: 1160px;
        }

        .home-intro {
            background: linear-gradient(145deg, rgba(12, 12, 20, 0.92), rgba(40, 18, 40, 0.96));
            border-radius: 22px;
            padding: 28px 28px 26px;
            box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
            border: 1px solid rgba(255, 255, 255, 0.06);
            position: relative;
            overflow: hidden;
            margin-bottom: 28px;
        }

        .home-intro::before {
            content: '';
            position: absolute;
            inset: 0;
            background:
                radial-gradient(circle at 10% 0%, rgba(99, 102, 241, 0.35), transparent 55%),
                radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.28), transparent 55%);
            opacity: 0.65;
            pointer-events: none;
        }

        .home-intro > * {
            position: relative;
            z-index: 1;
        }

        .home-tag {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 4px 10px;
            border-radius: 999px;
            background: rgba(0, 0, 0, 0.55);
            border: 1px solid rgba(167, 139, 250, 0.35);
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: #d8b4fe;
            margin-bottom: 14px;
        }

        .home-page-title {
            font-size: clamp(28px, 3vw, 34px);
            margin: 0 0 10px;
        }

        .home-lead {
            margin: 0 0 20px;
            max-width: 620px;
            color: #f3f3f3;
            opacity: 0.9;
        }

        .home-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 6px;
        }

        .home-live-strip {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin: 0 0 16px;
        }

        .home-live-chip {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 10px;
            border-radius: 999px;
            font-size: 12px;
            color: #e5e7eb;
            background: rgba(0, 0, 0, 0.32);
            border: 1px solid rgba(255, 255, 255, 0.09);
        }

        .home-live-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #22c55e;
            box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
        }

        .home-primary-btn,
        .home-secondary-btn,
        .home-ghost-btn {
            border-radius: 999px;
            padding: 10px 18px;
            font-size: 14px;
            font-weight: 600;
            border: none;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            text-decoration: none;
            transition: all 0.2s ease;
            white-space: nowrap;
        }

        .home-primary-btn {
            background: linear-gradient(135deg, #6366f1, #9333ea);
            color: #fff;
            box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4);
        }

        .home-primary-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 16px 40px rgba(147, 51, 234, 0.45);
        }

        .home-secondary-btn {
            background: rgba(255, 255, 255, 0.05);
            color: #fff;
            border: 1px solid rgba(255, 255, 255, 0.22);
        }

        .home-secondary-btn:hover {
            background: rgba(255, 255, 255, 0.12);
        }

        .home-ghost-btn {
            background: transparent;
            color: #c4c4ff;
            border: 1px dashed rgba(163, 163, 255, 0.6);
        }

        .home-ghost-btn:hover {
            background: rgba(163, 163, 255, 0.08);
        }

        /* Верхняя линия режимов и баннер как на yooma */
        .home-yooma-topbar {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 12px;
        }

        .home-yooma-mode {
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(255, 255, 255, 0.03);
            color: #d1d5db;
            border-radius: 8px;
            padding: 8px 12px;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.05em;
            cursor: default;
        }

        .home-yooma-mode span {
            color: #93c5fd;
            margin-left: 6px;
            font-weight: 600;
        }

        .home-yooma-mode.is-active {
            background: rgba(34, 197, 94, 0.14);
            border-color: rgba(34, 197, 94, 0.4);
            color: #dcfce7;
        }

        .home-yooma-hero {
            position: relative;
            border-radius: 14px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.08);
            min-height: 250px;
            margin-bottom: 22px;
            background:
                linear-gradient(90deg, rgba(8, 8, 14, 0.92) 0%, rgba(8, 8, 14, 0.74) 42%, rgba(8, 8, 14, 0.38) 100%),
                url('https://images.unsplash.com/photo-1542751371-adc38448a05e?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
        }

        .home-yooma-hero-overlay {
            position: absolute;
            inset: 0;
            pointer-events: none;
            background: radial-gradient(circle at 90% 50%, rgba(59, 130, 246, 0.2), transparent 40%);
        }

        .home-yooma-hero-content {
            position: relative;
            z-index: 1;
            max-width: 620px;
            padding: 24px 24px 20px;
        }

        /* Список серверов (как на игровых хабах / yooma) */
        .home-servers {
            margin-bottom: 36px;
        }

.home-side-yooma {
    margin: 8px 0 24px;
}

.home-side-yooma-inner {
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
}

.home-side-yooma-btn {
    min-width: 180px;
    text-align: left;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #e5e7eb;
    padding: 10px 12px;
    font-family: inherit;
    cursor: pointer;
}

.home-side-yooma-btn:hover {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.14);
}

body.light-theme .home-side-yooma-btn {
    color: #1f2937;
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(15, 23, 42, 0.12);
}

        .home-servers-head {
            margin-bottom: 18px;
        }

        .home-servers-title {
            margin: 0 0 8px;
            font-size: 1.35rem;
            font-weight: 700;
            color: #f5f3ff;
            letter-spacing: -0.02em;
        }

        .home-servers-desc {
            margin: 0;
            font-size: 0.95rem;
            line-height: 1.5;
            color: rgba(200, 200, 220, 0.88);
            max-width: 720px;
        }

        /* Вкладки режимов (как на yooma.su) */
        .home-server-modes {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            margin-bottom: 18px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            padding-bottom: 0;
        }

        .home-server-tab {
            font-family: inherit;
            font-size: 14px;
            font-weight: 600;
            padding: 10px 18px 12px;
            margin-bottom: -1px;
            border: none;
            border-bottom: 2px solid transparent;
            border-radius: 10px 10px 0 0;
            background: transparent;
            color: rgba(200, 200, 220, 0.65);
            cursor: pointer;
            transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
        }

        .home-server-tab:hover {
            color: #e9d5ff;
            background: rgba(139, 92, 246, 0.08);
        }

        .home-server-tab-active {
            color: #f5f3ff;
            border-bottom-color: #a855f7;
            background: rgba(139, 92, 246, 0.12);
        }

        .home-server-panel {
            display: none;
        }

        .home-server-panel-active {
            display: block;
        }

        body.light-theme .home-server-modes {
            border-bottom-color: rgba(15, 23, 42, 0.1);
        }

        body.light-theme .home-server-tab {
            color: #6b7280;
        }

        body.light-theme .home-server-tab:hover {
            color: #4b5563;
            background: rgba(99, 102, 241, 0.08);
        }

        body.light-theme .home-server-tab-active {
            color: #111827;
            border-bottom-color: #7c3aed;
            background: rgba(139, 92, 246, 0.1);
        }

        body.light-theme .home-yooma-mode {
            color: #1f2937;
            background: rgba(255, 255, 255, 0.86);
            border-color: rgba(15, 23, 42, 0.12);
        }

        body.light-theme .home-yooma-mode.is-active {
            color: #14532d;
            background: rgba(34, 197, 94, 0.16);
            border-color: rgba(34, 197, 94, 0.45);
        }

        body.light-theme .home-live-chip {
            color: #374151;
            background: rgba(255, 255, 255, 0.78);
            border-color: rgba(15, 23, 42, 0.1);
        }

        .home-server-list {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 16px;
        }

        .home-server-list-single {
            grid-template-columns: minmax(0, 1fr);
            max-width: 520px;
        }

        .home-server-name-plain {
            margin: 0 0 10px;
        }

        .home-server-card {
            background: linear-gradient(160deg, rgba(18, 18, 28, 0.98), rgba(28, 22, 42, 0.96));
            border: 1px solid rgba(139, 92, 246, 0.18);
            border-radius: 16px;
            padding: 18px 18px 16px;
            box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .home-server-card:hover {
            border-color: rgba(167, 139, 250, 0.45);
            box-shadow: 0 16px 44px rgba(99, 102, 241, 0.15);
        }

        .home-server-card-top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 8px;
        }

        .home-server-name {
            margin: 0;
            font-size: 1.05rem;
            font-weight: 600;
            color: #fff;
            line-height: 1.3;
        }

        #home-public-server .home-server-name-plain {
            font-size: 1.15rem;
        }

        .home-server-badge {
            flex-shrink: 0;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            padding: 4px 8px;
            border-radius: 8px;
            background: rgba(99, 102, 241, 0.35);
            color: #e0e7ff;
            border: 1px solid rgba(129, 140, 248, 0.4);
        }

        .home-server-badge-fun {
            background: rgba(236, 72, 153, 0.25);
            border-color: rgba(244, 114, 182, 0.45);
            color: #fce7f3;
        }

        .home-server-map {
            margin: 0 0 12px;
            font-size: 13px;
            color: rgba(200, 200, 215, 0.9);
        }

        .home-server-players {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 14px;
        }

        .home-server-players-track {
            flex: 1;
            height: 8px;
            border-radius: 999px;
            background: rgba(0, 0, 0, 0.45);
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.06);
        }

        .home-server-players-fill {
            display: block;
            height: 100%;
            border-radius: 999px;
            background: linear-gradient(90deg, #6366f1, #a855f7);
            box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
        }

        .home-server-players-text {
            flex-shrink: 0;
            font-size: 13px;
            font-weight: 600;
            font-variant-numeric: tabular-nums;
            color: #d8b4fe;
        }

        .home-server-connect {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .home-server-ip {
            display: block;
            font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
            font-size: 13px;
            padding: 8px 10px;
            border-radius: 10px;
            background: rgba(0, 0, 0, 0.4);
            color: #c4b5fd;
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        .home-server-btns {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .home-server-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 9px 14px;
            font-size: 13px;
            font-weight: 600;
            font-family: inherit;
            border-radius: 10px;
            border: none;
            cursor: pointer;
            text-decoration: none;
            transition: transform 0.15s ease, filter 0.15s ease;
        }

        .home-server-btn-copy {
            background: rgba(255, 255, 255, 0.08);
            color: #e8e8f0;
            border: 1px solid rgba(255, 255, 255, 0.14);
        }

        .home-server-btn-copy:hover:not(:disabled) {
            background: rgba(255, 255, 255, 0.12);
        }

        .home-server-btn-join {
            background: linear-gradient(135deg, #22c55e, #16a34a);
            color: #fff;
            box-shadow: 0 8px 22px rgba(34, 197, 94, 0.35);
        }

        .home-server-btn-join:hover {
            filter: brightness(1.08);
            transform: translateY(-1px);
        }

        body.light-theme .home-servers-title {
            color: #111827;
        }

        body.light-theme .home-servers-desc {
            color: #4b5563;
        }

        body.light-theme .home-server-card {
            background: linear-gradient(160deg, #fafafa, #f3f4f6);
            border-color: rgba(99, 102, 241, 0.25);
            box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
        }

        body.light-theme .home-server-name {
            color: #111827;
        }

        body.light-theme .home-server-map {
            color: #4b5563;
        }

        body.light-theme .home-server-ip {
            background: #fff;
            color: #4338ca;
            border-color: rgba(99, 102, 241, 0.2);
        }

        body.light-theme .home-server-players-track {
            background: #e5e7eb;
            border-color: rgba(15, 23, 42, 0.08);
        }

        .home-shortcuts {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 16px;
        }

        .home-shortcut-card {
            padding: 16px 16px 14px;
            border-radius: 16px;
            background: linear-gradient(135deg, rgba(16, 16, 26, 0.96), rgba(30, 18, 35, 0.96));
            border: 1px solid rgba(255, 255, 255, 0.06);
            box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .home-shortcut-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
            border-color: rgba(139, 92, 246, 0.55);
        }

        .shortcut-title {
            font-size: 15px;
            font-weight: 600;
            margin-bottom: 4px;
        }

        .shortcut-desc {
            font-size: 13px;
            color: #d3d3dd;
        }

        .page-content h1,
        .page-content h2,
        .page-content h3 {
            font-weight: 600;
            line-height: 1.35;
            letter-spacing: -0.02em;
        }
        .page-content p,
        .page-content li {
            line-height: 1.65;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Links styling */
        a {
            color: #d64040;
            text-decoration: none;
            font-weight: bold;
            transition: all 0.3s ease;
        }

        a:hover {
            color: #c92a2a;
            text-shadow: 0 0 8px rgba(201, 42, 42, 0.3);
        }

        a.link-discord {
            color: #5865F2;
            font-size: 1.2em;
            padding: 10px 15px;
            border: 2px solid #5865F2;
            border-radius: 8px;
            display: inline-block;
            background: rgba(88, 101, 242, 0.1);
            transition: all 0.3s ease;
        }

        a.link-discord:hover {
            color: #7289DA;
            background: rgba(88, 101, 242, 0.3);
            box-shadow: 0 0 15px rgba(88, 101, 242, 0.5);
            transform: scale(1.05);
            text-shadow: 0 0 10px rgba(88, 101, 242, 0.5);
        }

        a.link-telegram {
            color: #0088cc;
            font-size: 1.2em;
            padding: 10px 15px;
            border: 2px solid #0088cc;
            border-radius: 8px;
            display: inline-block;
            background: rgba(0, 136, 204, 0.1);
            transition: all 0.3s ease;
        }

        a.link-telegram:hover {
            color: #00a8e8;
            background: rgba(0, 136, 204, 0.3);
            box-shadow: 0 0 15px rgba(0, 136, 204, 0.5);
            transform: scale(1.05);
            text-shadow: 0 0 10px rgba(0, 136, 204, 0.5);
        }

        .home-contact {
            margin-top: 40px;
            padding-top: 28px;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
        }
        .home-contact-title {
            margin: 0 0 24px 0 !important;
            font-size: 1.1rem !important;
            font-weight: 600 !important;
            color: rgba(255, 255, 255, 0.7) !important;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            border: none !important;
            padding: 0 !important;
        }

        body.light-theme .home-contact-title {
            color: #4b5563 !important;
        }
        .home-links {
            display: grid;
            grid-template-columns: minmax(0, 520px);
            justify-content: center;
            gap: 20px;
            margin-top: 0;
        }
        .home-link-card {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            padding: 28px 26px;
            border-radius: 16px;
            text-decoration: none;
            color: inherit;
            border: 1px solid rgba(255, 255, 255, 0.06);
            background: rgba(26, 26, 34, 0.7);
            transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
            position: relative;
            overflow: hidden;
        }
        .home-link-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            opacity: 0.85;
            transition: opacity 0.25s ease;
        }
        .home-link-discord::before {
            background: linear-gradient(90deg, #5865F2, #7289da);
        }
        .home-link-card:hover {
            transform: translateY(-4px);
            border-color: rgba(255, 255, 255, 0.12);
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
        }
        .home-link-card:hover::before {
            opacity: 1;
        }
        .home-link-icon {
            font-size: 2rem;
            line-height: 1;
            margin-bottom: 14px;
            filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
        }
        .home-link-heading {
            margin: 0 0 10px 0 !important;
            font-size: 1.35rem !important;
            font-weight: 600 !important;
            color: #fff !important;
            border: none !important;
            padding: 0 !important;
        }
        .home-link-discord .home-link-heading { color: #b4baff !important; }
        .home-link-desc {
            margin: 0 0 18px 0;
            font-size: 0.95rem;
            line-height: 1.5;
            color: rgba(255, 255, 255, 0.75);
            flex-grow: 1;
        }
        body.light-theme #home-content .home-link-desc {
            color: rgb(204, 201, 201) !important;
        }
        .home-link-cta {
            font-size: 0.9rem;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: gap 0.2s ease, opacity 0.2s ease;
        }
        .home-link-discord .home-link-cta { color: #7289da; }
        .home-link-card:hover .home-link-cta { gap: 10px; opacity: 1; }

        /* Headings styling */
        h1, h2, h3 {
            color: #ffffff;
            text-shadow: 0 0 8px rgba(201, 42, 42, 0.2);
            font-family: "Arial", sans-serif;
            font-weight: bold;
            margin-top: 30px;
            margin-bottom: 15px;
        }

        h1 {
            font-size: 2.5em;
            border-bottom: 2px solid #c92a2a;
            padding-bottom: 10px;
            animation: header-red-flow 5s ease-in-out infinite;
        }

        h2 {
            font-size: 2em;
            color: #d64040;
        }
        h3 {
            font-size: 1.5em;
            color: #e55c5c;
        }
        p {
            color: #d0d0d0;
            font-size: 1.1em;
            line-height: 1.6;
            margin: 15px 0;
            text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
        }

        /* Criteria card styling */
        .criteria-card {
            margin-top: 20px;
            padding: 18px 20px;
            background: rgba(15, 60, 30, 0.12);
            border: 1px solid rgba(34, 139, 34, 0.18);
            border-left: 6px solid #2ecc71;
            border-radius: 10px;
            box-shadow: 0 8px 30px rgba(34, 139, 34, 0.05);
            max-width: 820px;
            color: #eafff0;
            font-family: "Times New Roman", Times, serif;
        }

        body.light-theme .criteria-card {
            background: #f0fdf4;
            border-color: rgba(22, 163, 74, 0.35);
            color: #14532d;
        }

        .criteria-card h2 {
            margin: 0 0 8px 0;
            color: #e6fff0;
            font-size: 1.4em;
            text-shadow: 0 2px 6px rgba(8, 40, 20, 0.6);
        }

        .criteria-card ul {
            margin: 0;
            padding-left: 1.1em;
            color: #dfffee;
        }

        .criteria-card li {
            margin: 6px 0;
        }

        /* ============================================ */
        /* TICKETS CHANNEL CARD (отдельная вкладка тикетов) */
        /* ============================================ */

        .ticket-channel-card {
            max-width: 720px;
            background: rgba(40, 38, 45, 0.1);
            border-radius: 12px;
            padding: 24px 28px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
        }

        body.light-theme .ticket-channel-card {
            background: #f9fafb;
            border-color: rgba(15, 23, 42, 0.1);
            box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
        }

        .ticket-channel-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 16px;
        }

        .ticket-channel-badge {
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: rgba(255, 255, 255, 0.5);
            background: rgba(255, 255, 255, 0.06);
            padding: 4px 10px;
            border-radius: 4px;
        }

        body.light-theme .ticket-channel-badge {
            color: #111827 !important;
            background: #bfdbfe !important;
        }

        .ticket-channel-title {
            margin: 0;
            font-size: 1.5rem;
            font-weight: 600;
            color: #e0e0e0;
        }

        .ticket-channel-desc {
            color: rgba(255, 255, 255, 0.75);
            line-height: 1.55;
            margin: 0 0 20px 0;
            font-size: 15px;
        }

        .ticket-auth-inline {
            margin-bottom: 16px;
        }

        .ticket-submit-block {
            margin: 20px 0;
        }

        .ticket-submit-block .tickets-instruction {
            color: rgba(255, 255, 255, 0.6);
            font-size: 14px;
            margin-bottom: 12px;
        }

        .ticket-create-btn {
            display: inline-flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 2px;
            padding: 14px 22px;
            background: linear-gradient(135deg, #5865F2, #4752c4);
            color: #fff;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 2px 12px rgba(88, 101, 242, 0.35);
        }

        .ticket-create-btn:hover:not(:disabled) {
            background: linear-gradient(135deg, #6772f5, #5865F2);
            transform: translateY(-1px);
            box-shadow: 0 4px 16px rgba(88, 101, 242, 0.45);
        }

        .ticket-create-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .ticket-create-btn-icon {
            font-size: 20px;
        }

        .ticket-create-btn-text {
            font-size: 16px;
        }

        .ticket-create-btn-sub {
            font-size: 12px;
            font-weight: 400;
            opacity: 0.9;
        }

        .ticket-channel-footer {
            margin-top: 24px;
            padding-top: 16px;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
        }

        .ticket-rules-label {
            color: rgba(255, 255, 255, 0.6);
            font-size: 14px;
            margin: 0 0 4px 0;
        }

        .ticket-rules-link {
            color: #5865F2;
            text-decoration: none;
        }

        .ticket-rules-link:hover {
            text-decoration: underline;
        }

        .ticket-rules-sublabel {
            color: rgba(255, 255, 255, 0.45);
            font-size: 12px;
            margin: 0 0 12px 0;
        }

        .ticket-dev-link {
            display: inline-block;
            color: #0088cc;
            text-decoration: none;
            font-size: 14px;
        }

        .ticket-dev-link:hover {
            text-decoration: underline;
        }

        .ticket-channel-card .tickets-note {
            margin-top: 16px;
            color: rgba(255, 255, 255, 0.5);
            font-size: 13px;
        }

        body.light-theme .ticket-channel-desc {
            color: #374151;
        }
        body.light-theme .ticket-submit-block .tickets-instruction,
        body.light-theme .ticket-channel-card .tickets-note {
            color: #4b5563;
        }

        /* ============================================ */
        /* NEWS NAV BUTTON */
        /* ============================================ */

        .nav-news {
            border-color: #f39c12 !important;
            background: linear-gradient(90deg, rgba(243, 156, 18, 0.15), rgba(243, 156, 18, 0.08)) !important;
        }

        .nav-news:hover {
            background: linear-gradient(90deg, rgba(243, 156, 18, 0.3), rgba(243, 156, 18, 0.2)) !important;
            box-shadow: 0 0 15px rgba(243, 156, 18, 0.25) !important;
        }

        .nav-news.active {
            background: linear-gradient(90deg, #e67e22, #f39c12) !important;
            box-shadow: 0 0 20px rgba(243, 156, 18, 0.45) !important;
            transform: translateX(15px);
        }

        /* ============================================ */
        /* ADMIN NAV BUTTON */
        /* ============================================ */

        .nav-admin {
            border-color: #e74c3c !important;
            background: linear-gradient(90deg, rgba(231, 76, 60, 0.15), rgba(231, 76, 60, 0.08)) !important;
        }

        .nav-admin:hover {
            background: linear-gradient(90deg, rgba(231, 76, 60, 0.3), rgba(231, 76, 60, 0.2)) !important;
            box-shadow: 0 0 15px rgba(231, 76, 60, 0.25) !important;
        }

        .nav-admin.active {
            background: linear-gradient(90deg, #c0392b, #e74c3c) !important;
            box-shadow: 0 0 20px rgba(231, 76, 60, 0.45) !important;
            transform: translateX(15px);
        }

        /* ============================================ */
        /* NEWS SUB-NAV (Новости | Розыгрыши) */
        /* ============================================ */

        .news-sub-nav {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            padding-bottom: 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .news-sub-btn {
            padding: 10px 20px;
            border: 1px solid rgba(243, 156, 18, 0.1);
            background: rgba(50, 40, 10, 0.05);
            color: #a89060;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1em;
            transition: all 0.2s ease;
        }

        .news-sub-btn:hover {
            background: rgba(243, 156, 18, 0.04);
            color: #f5d78e;
        }

        .news-sub-btn.active {
            background: rgba(243, 156, 18, 0.08);
            border-color: rgba(243, 156, 18, 0.28);
            color: #f5d78e;
        }

        /* Светлая тема: яркие и контрастные подвкладки Новостей */
        body.light-theme .news-sub-btn {
            border-color: rgba(245, 158, 11, 0.7);
            background: rgba(254, 243, 199, 0.95);
            color: #92400e;
        }
        body.light-theme .news-sub-btn:hover {
            background: rgba(253, 224, 171, 1);
            color: #78350f;
        }
        body.light-theme .news-sub-btn.active {
            background: linear-gradient(135deg, #fbbf24, #facc15);
            border-color: #d97706;
            color: #111827;
        }

        /* ============================================ */
        /* TICKETS SUB-NAV (Тикеты | Staff) */
        /* ============================================ */
        .tickets-sub-nav {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }
        .tickets-sub-btn {
            padding: 10px 20px;
            border: 1px solid rgba(88, 101, 242, 0.3);
            background: rgba(40, 38, 45, 0.5);
            color: #a0a0b0;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1em;
            transition: all 0.2s ease;
        }
        .tickets-sub-btn:hover {
            background: rgba(88, 101, 242, 0.15);
            color: #c8ccf5;
        }
        .tickets-sub-btn.active {
            background: rgba(88, 101, 242, 0.25);
            border-color: #5865F2;
            color: #c8ccf5;
        }

        /* Светлая тема: яркие подвкладки тикетов */
        body.light-theme .tickets-sub-btn {
            background: rgba(209, 213, 219, 0.95);
            color: #111827;
            border-color: rgba(148, 163, 184, 0.9);
        }
        body.light-theme .tickets-sub-btn:hover {
            background: rgba(191, 219, 254, 1);
            color: #111827;
        }
        body.light-theme .tickets-sub-btn.active {
            background: linear-gradient(135deg, #6366f1, #4f46e5);
            border-color: #4338ca;
            color: #f9fafb;
        }

        /* ============================================ */
        /* NEWS CARDS */
        /* ============================================ */

        .news-card {
            background: transparent;
            border: none;
            border-left: 4px solid rgba(243, 156, 18, 0.35);
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 24px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }
        .news-card:last-child {
            margin-bottom: 20px;
            border-bottom: none;
        }

        body.light-theme .news-card {
            border-top-color: rgba(15, 23, 42, 0.35);
            border-bottom-color: rgba(15, 23, 42, 0.45);
        }

        .news-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 10px;
            flex-wrap: wrap;
            gap: 10px;
        }

        .news-title {
            margin: 0;
            color: #f5d78e;
            font-size: 1.3em;
            flex: 1;
        }

        .news-meta {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .news-date {
            color: #a89060;
            font-size: 0.9em;
        }

        .news-edit-btn {
            background: rgba(52, 152, 219, 0.2);
            border: 1px solid #3498db;
            color: #3498db;
            padding: 5px 10px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 0.9em;
            transition: all 0.3s ease;
        }

        .news-edit-btn:hover {
            background: #3498db;
            color: #fff;
        }

        .news-delete-btn {
            background: rgba(231, 76, 60, 0.2);
            border: 1px solid #e74c3c;
            color: #e74c3c;
            padding: 5px 10px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 0.9em;
            transition: all 0.3s ease;
        }

        .news-delete-btn:hover {
            background: #e74c3c;
            color: #fff;
        }

        .news-thumbnail {
            max-width: 200px;
            max-height: 150px;
            border-radius: 8px;
            margin-bottom: 10px;
            display: block;
        }
        .news-text {
            color: #ddd;
            margin: 0;
            line-height: 1.6;
        }

        body.light-theme .news-text {
            color: #111827;
        }

        body.light-theme .news-title {
            color: #b91c1c;
        }

        body.light-theme .news-text strong {
            color: #b45309;
        }

        body.light-theme .news-date,
        body.light-theme .no-news {
            color: #4b5563;
        }

        .news-text strong { font-weight: 700; color: #f5d78e; }
        .news-text em { font-style: italic; }
        .news-text s { text-decoration: line-through; }
        .news-text code { background: rgba(0,0,0,0.3); padding: 2px 6px; border-radius: 4px; font-family: monospace; }
        .news-text pre { background: rgba(0,0,0,0.3); padding: 12px; border-radius: 8px; overflow-x: auto; margin: 10px 0; }
        .news-text pre code { padding: 0; background: none; }
        .news-text blockquote { border-left: 4px solid #f39c12; padding-left: 12px; margin: 10px 0; color: #bbb; }
        .news-text a { color: #3498db; text-decoration: none; }
        .news-text a:hover { text-decoration: underline; }

        body.light-theme .news-text blockquote {
            border-left-color: #f97316;
            color: #374151;
            background: rgba(249, 250, 251, 0.9);
        }

        .no-news {
            color: #888;
            text-align: center;
            padding: 40px;
        }

        /* ============================================ */
        /* ADMIN PANEL STYLES */
        /* ============================================ */

        .admin-card {
            background: rgba(40, 40, 50, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-left: 5px solid #e74c3c;
            border-radius: 10px;
            padding: 25px;
            max-width: 500px;
        }

        body.light-theme .admin-card {
            background: #f9fafb;
            border-color: rgba(15, 23, 42, 0.1);
            color: #111827;
        }

        .admin-card h2 {
            margin-top: 0;
            margin-bottom: 20px;
            font-size: 1.3em;
            color: #fff;
        }

        .admin-sub-nav {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }
        .admin-sub-btn {
            padding: 10px 20px;
            border: 1px solid rgba(231, 76, 60, 0.3);
            background: rgba(50, 35, 35, 0.5);
            color: #c8a0a0;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1em;
            transition: all 0.2s ease;
        }
        .admin-sub-btn:hover {
            background: rgba(231, 76, 60, 0.15);
            color: #e8b0b0;
        }
        .admin-sub-btn.active {
            background: rgba(231, 76, 60, 0.25);
            color: #fff;
        }

        /* Светлая тема: яркие подвкладки админ‑панели */
        body.light-theme .admin-sub-btn {
            border-color: rgba(248, 113, 113, 0.8);
            background: rgba(254, 226, 226, 0.98);
            color: #7f1d1d;
        }
        body.light-theme .admin-sub-btn:hover {
            background: rgba(254, 202, 202, 1);
            color: #7f1d1d;
        }
        body.light-theme .admin-sub-btn.active {
            background: linear-gradient(135deg, #ef4444, #f97373);
            border-color: #b91c1c;
            color: #111827;
        }
        .active-editors-title {
            font-size: 1.1em;
            letter-spacing: 0.05em;
            color: rgba(255,255,255,0.9);
        }
        .no-active-editors {
            color: #888;
            margin: 0;
        }
        .active-editor-card {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 12px 16px;
            background: rgba(30, 30, 40, 0.8);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 10px;
            margin-bottom: 10px;
        }
        .active-editor-card:last-child {
            margin-bottom: 0;
        }
        .active-editor-avatar-wrap {
            position: relative;
            flex-shrink: 0;
        }
        .active-editor-avatar {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            object-fit: cover;
            background: rgba(60, 60, 70, 0.8);
        }
        .active-editor-online {
            position: absolute;
            bottom: 0;
            right: 0;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #2ecc71;
            border: 2px solid #1a1a24;
        }
        .active-editor-info {
            flex: 1;
            min-width: 0;
        }
        body.light-theme .active-editor-info {
            color: #888 !important;
        }

        body.light-theme .active-editor-name {
            color: #fff !important;
        }
        body.light-theme .active-editor-page {
            color: #e9e9e9 !important;
        }

        .active-editor-name {
            font-weight: 600;
            font-synthesis: none;
            font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
            color: #fff !important;
            margin: 0 0 4px 0;
        }
        .active-editor-page {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.9em;
            color: #888;
            margin: 0;
        }
        .active-editor-page-icon {
            opacity: 0.8;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            color: #ddd;
            font-size: 1em;
            font-weight: bold;
            margin-bottom: 8px;
        }

        body.light-theme .form-group label {
            color: #111827;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 12px 15px;
            font-size: 1em;
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            background: rgba(0, 0, 0, 0.4);
            color: #fff;
            transition: all 0.3s ease;
            box-sizing: border-box;
            font-family: inherit;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #e74c3c;
            box-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: rgba(255, 255, 255, 0.4);
        }

        body.light-theme .form-group input,
        body.light-theme .form-group textarea,
        body.light-theme .form-group select {
            border-color: rgba(148, 163, 184, 0.7);
            background: #f9fafb;
            color: #111827;
        }
        body.light-theme .form-group input::placeholder,
        body.light-theme .form-group textarea::placeholder {
            color: #9ca3af;
        }

        .checkbox-group {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
        }

        .checkbox-group input[type="checkbox"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
        }

        .checkbox-group label {
            color: #ddd;
            cursor: pointer;
        }

        .submit-btn {
            width: 100%;
            padding: 14px 20px;
            font-size: 1.1em;
            font-weight: bold;
            color: #fff;
            background: linear-gradient(135deg, #c0392b, #e74c3c);
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
        }

        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 25px rgba(231, 76, 60, 0.4);
        }

        .submit-btn.secondary {
            background: linear-gradient(135deg, #2c3e50, #34495e);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }

        .submit-btn.secondary:hover {
            box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
        }

        .logout-btn {
            padding: 10px 20px;
            background: rgba(231, 76, 60, 0.2);
            border: 1px solid #e74c3c;
            color: #e74c3c;
            border-radius: 8px;
            cursor: pointer;
            margin-bottom: 20px;
            font-weight: bold;
            transition: all 0.3s ease;
        }

        .logout-btn:hover {
            background: #e74c3c;
            color: #fff;
        }

        .form-note {
            font-size: 0.85em;
            color: #888;
            margin-top: 10px;
        }

        body.light-theme .form-note {
            color: #6b7280;
        }

        /* ============================================ */
        /* MODAL STYLES */
        /* ============================================ */

        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2000;
            backdrop-filter: blur(5px);
        }

        .modal-content {
            background: linear-gradient(180deg, rgba(40, 40, 50, 0.98), rgba(25, 25, 35, 0.98));
            border: 2px solid #3498db;
            border-radius: 15px;
            padding: 30px;
            max-width: 500px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            box-shadow: 0 10px 50px rgba(52, 152, 219, 0.3);
            animation: modalAppear 0.3s ease-out;
        }

        @keyframes modalAppear {
            from {
                opacity: 0;
                transform: scale(0.9) translateY(-20px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .modal-content h2 {
            margin-top: 0;
            margin-bottom: 25px;
            color: #3498db;
            border-bottom: 2px solid #3498db;
            padding-bottom: 10px;
        }
        /* In light theme keep ticket modal title readable on dark modal background. */
        body.light-theme #ticket-detail-title {
            color: #ffffff;
            border-bottom-color: rgba(255, 255, 255, 0.35);
        }

        .modal-close {
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 30px;
            color: #888;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .modal-close:hover {
            color: #e74c3c;
        }

        /* Компактная и центрированная модалка управления администраторами */
        #admin-action-modal {
            align-items: center;
            justify-content: center;
            padding: 16px;
        }
        #admin-action-modal .modal-content {
            width: min(460px, calc(100vw - 28px));
            max-height: min(72vh, 560px);
            padding: 18px 18px 16px;
            border-radius: 12px;
            border-color: rgba(88, 101, 242, 0.6);
            box-shadow: 0 16px 42px rgba(15, 23, 42, 0.55);
        }
        #admin-action-modal .modal-content h2 {
            margin-bottom: 14px;
            font-size: 1.15rem;
            padding-bottom: 8px;
        }
        #admin-action-modal .ticket-ban-user-info {
            margin-bottom: 10px;
            font-size: 0.9rem;
            color: #b9c2df;
        }
        #admin-action-modal .form-group {
            margin-bottom: 10px;
        }
        #admin-action-modal .form-group label {
            font-size: 0.92rem;
        }
        #admin-action-modal #admin-action-duration,
        #admin-action-modal #admin-action-reason {
            border: 1px solid rgba(114, 132, 255, 0.45);
            background: rgba(14, 18, 34, 0.92);
            border-radius: 10px;
            padding: 10px 12px;
            min-height: 42px;
        }
        #admin-action-modal #admin-action-duration {
            -moz-appearance: textfield;
            appearance: textfield;
        }
        #admin-action-modal #admin-action-duration::-webkit-outer-spin-button,
        #admin-action-modal #admin-action-duration::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        #admin-action-modal #admin-action-duration:focus,
        #admin-action-modal #admin-action-reason:focus {
            border-color: #7f91ff;
            box-shadow: 0 0 0 3px rgba(127, 145, 255, 0.2);
        }

        /* Кастомные кнопки пресетов (без нативного вида) */
        #admin-action-modal .ticket-ban-preset-grid {
            margin-top: 8px;
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 8px;
        }
        #admin-action-modal .ticket-ban-preset-btn {
            appearance: none;
            border: 1px solid rgba(116, 135, 255, 0.5);
            background: linear-gradient(180deg, rgba(75, 89, 176, 0.35), rgba(48, 59, 126, 0.35));
            color: #eef2ff;
            border-radius: 9px;
            font-size: 0.84rem;
            font-weight: 600;
            padding: 8px 6px;
            cursor: pointer;
            transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
        }
        #admin-action-modal .ticket-ban-preset-btn:hover {
            border-color: #98abff;
            box-shadow: 0 6px 18px rgba(88, 101, 242, 0.28);
            transform: translateY(-1px);
        }

        #admin-action-modal .modal-actions {
            margin-top: 12px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }
        #admin-action-modal .submit-btn,
        #admin-action-modal .cancel-btn {
            appearance: none;
            width: 100%;
            min-height: 42px;
            padding: 10px 12px;
            border-radius: 10px;
            font-weight: 700;
            font-size: 0.92rem;
            cursor: pointer;
            border: 1px solid transparent;
            transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
        }
        #admin-action-modal .submit-btn {
            background: linear-gradient(135deg, #5865f2, #7f91ff);
            color: #ffffff;
            border-color: rgba(127, 145, 255, 0.75);
        }
        #admin-action-modal .cancel-btn {
            background: rgba(23, 29, 52, 0.88);
            color: #d9e0ff;
            border-color: rgba(129, 146, 255, 0.4);
        }
        #admin-action-modal .submit-btn:hover,
        #admin-action-modal .cancel-btn:hover {
            filter: brightness(1.06);
            box-shadow: 0 8px 22px rgba(31, 43, 102, 0.35);
            transform: translateY(-1px);
        }
        @media (max-width: 560px) {
            #admin-action-modal .modal-content {
                width: min(420px, calc(100vw - 20px));
                max-height: min(70vh, 520px);
                padding: 14px 14px 12px;
            }
            #admin-action-modal .ticket-ban-preset-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        .ticket-modal-content {
            max-width: 560px;
        }
        .ticket-detail-info {
            margin-bottom: 12px;
            padding: 10px;
            background: rgba(0,0,0,0.2);
            border-radius: 8px;
            font-size: 0.9rem;
        }
        .ticket-messages-container {
            max-height: 320px;
            overflow-y: auto;
            margin-bottom: 16px;
            border: 1px solid rgba(52, 152, 219, 0.3);
            border-radius: 8px;
            padding: 12px;
            background: rgba(0,0,0,0.15);
        }
        .ticket-messages-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .ticket-msg {
            padding: 10px 12px;
            border-radius: 8px;
            max-width: 95%;
            word-break: break-word;
        }
        .ticket-msg.user {
            align-self: flex-start;
            background: rgba(52, 152, 219, 0.2);
            border-left: 3px solid #3498db;
            color: #e5f2ff;
        }
        .ticket-msg.staff {
            align-self: flex-end;
            background: rgba(46, 204, 113, 0.2);
            border-right: 3px solid #2ecc71;
            color: #e6ffef;
        }
        .ticket-msg-meta {
            font-size: 0.75rem;
            color: #888;
            margin-bottom: 4px;
        }
        .ticket-msg-attachments {
            margin-top: 8px;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .ticket-attachment-img {
            max-width: 200px;
            max-height: 150px;
            border-radius: 6px;
            object-fit: cover;
        }
        .ticket-attachment-link {
            color: #3498db;
            font-size: 0.9em;
        }
        .ticket-reply-block textarea {
            width: 100%;
            margin-bottom: 10px;
            resize: vertical;
            min-height: 60px;
        }
        .ticket-no-messages {
            color: #888;
            font-size: 0.9rem;
            margin: 0;
        }

        /* ============================================ */
        /* APPLICATION NAV BUTTONS */
        /* ============================================ */

        .nav-apply {
            border-color: #9b59b6 !important;
            background: linear-gradient(90deg, rgba(155, 89, 182, 0.15), rgba(155, 89, 182, 0.08)) !important;
        }

        .nav-apply:hover {
            background: linear-gradient(90deg, rgba(155, 89, 182, 0.3), rgba(155, 89, 182, 0.2)) !important;
            box-shadow: 0 0 15px rgba(155, 89, 182, 0.25) !important;
        }

        .nav-apply.active {
            background: linear-gradient(90deg, #8e44ad, #9b59b6) !important;
            box-shadow: 0 0 20px rgba(155, 89, 182, 0.45) !important;
        }

        .nav-mystatus {
            border-color: #1abc9c !important;
            background: linear-gradient(90deg, rgba(26, 188, 156, 0.15), rgba(26, 188, 156, 0.08)) !important;
        }

        .nav-mystatus:hover {
            background: linear-gradient(90deg, rgba(26, 188, 156, 0.3), rgba(26, 188, 156, 0.2)) !important;
            box-shadow: 0 0 15px rgba(26, 188, 156, 0.25) !important;
        }

        .nav-mystatus.active {
            background: linear-gradient(90deg, #16a085, #1abc9c) !important;
            box-shadow: 0 0 20px rgba(26, 188, 156, 0.45) !important;
        }

        /* ============================================ */
        /* APPLICATION STATUS CARDS */
        /* ============================================ */

        .status-card {
            background: linear-gradient(180deg, rgba(40, 40, 50, 0.95), rgba(30, 30, 40, 0.9));
            border-radius: 15px;
            padding: 25px;
            max-width: 500px;
        }

        body.light-theme .status-card {
            background: #f9fafb;
            border: 1px solid rgba(15, 23, 42, 0.1);
            color: #111827;
        }

        .status-card.status-none {
            border-left: 5px solid #888;
        }

        .status-card.status-pending {
            border-left: 5px solid #f39c12;
        }

        .status-card.status-in_review {
            border-left: 5px solid #3498db;
        }

        .status-card.status-accepted {
            border-left: 5px solid #2ecc71;
        }

        .status-card.status-rejected {
            border-left: 5px solid #e74c3c;
        }

        .status-card.status-discord {
            border-left: 5px solid #5865F2;
        }

        .status-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

        .status-icon {
            font-size: 2em;
        }

        .status-text {
            font-size: 1.5em;
            font-weight: bold;
            color: #fff;
        }

        .status-details p {
            margin: 10px 0;
            color: #ccc;
        }

        .status-details a {
            color: #3498db;
        }

        .admin-message {
            background: rgba(255,255,255,0.05);
            padding: 10px 15px;
            border-radius: 8px;
            margin-top: 15px !important;
        }

        /* ============================================ */
        /* ADMIN APPLICATION CARDS */
        /* ============================================ */

        .admin-application-card {
            background: linear-gradient(180deg, rgba(50, 50, 60, 0.9), rgba(40, 40, 50, 0.85));
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 15px;
        }

        .app-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .app-date {
            color: #888;
            font-size: 0.9em;
        }

        .app-info p {
            margin: 8px 0;
            color: #ccc;
        }

        .app-info a {
            color: #3498db;
        }

        body.light-theme .admin-application-card {
            background: #f9fafb;
            border-color: rgba(15, 23, 42, 0.1);
            color: #111827;
        }
        body.light-theme .app-info p {
            color: #374151;
        }

        .app-actions {
            display: flex;
            gap: 10px;
            margin-top: 15px;
            flex-wrap: wrap;
        }

        .ticket-not-assigned-hint {
            color: #95a5a6;
            font-size: 0.9em;
        }

        .action-btn {
            padding: 8px 15px;
            border-radius: 6px;
            border: none;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s ease;
        }

        .view-btn {
            background: rgba(52, 152, 219, 0.2);
            color: #3498db;
            border: 1px solid #3498db;
        }
        .view-btn:hover {
            background: #3498db;
            color: #fff;
        }

        .accept-btn {
            background: rgba(46, 204, 113, 0.2);
            color: #2ecc71;
            border: 1px solid #2ecc71;
        }

        .accept-btn:hover {
            background: #2ecc71;
            color: #fff;
        }

        .reject-btn {
            background: rgba(231, 76, 60, 0.2);
            color: #e74c3c;
            border: 1px solid #e74c3c;
        }

        .reject-btn:hover {
            background: #e74c3c;
            color: #fff;
        }

        .discord-btn {
            background: rgba(88, 101, 242, 0.2);
            color: #5865F2;
            border: 1px solid #5865F2;
        }

        .discord-btn:hover {
            background: #5865F2;
            color: #fff;
        }

        .review-btn {
            background: rgba(52, 152, 219, 0.2);
            color: #3498db;
            border: 1px solid #3498db;
        }

        .review-btn:hover {
            background: #3498db;
            color: #fff;
        }

        .delete-btn {
            background: rgba(150, 150, 150, 0.2);
            color: #999;
            border: 1px solid #666;
            margin-top: 10px;
        }

        .delete-btn:hover {
            background: #666;
            color: #fff;
        }

        .ban-btn {
            background: rgba(230, 126, 34, 0.2);
            color: #e67e22;
            border: 1px solid #e67e22;
        }
        .ban-btn:hover {
            background: #e67e22;
            color: #fff;
        }
        .ticket-banned-label {
            color: #e67e22;
            font-size: 0.85rem;
            margin: 6px 0 0 0;
        }

        /* Модальное окно запрета тикетов */
        .ticket-ban-user-info {
            margin: 0 0 12px 0;
            color: #b0b0b0;
        }
        #ticket-ban-modal .radio-group {
            display: flex;
            gap: 16px;
            margin: 8px 0;
        }
        #ticket-ban-modal .radio-group label {
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
        }
        .ticket-ban-duration-block select,
        .ticket-ban-datetime {
            margin-top: 8px;
            padding: 8px;
            width: 100%;
            max-width: 280px;
            box-sizing: border-box;
        }
        #ticket-ban-modal .modal-actions {
            display: flex;
            gap: 12px;
            margin-top: 16px;
            flex-wrap: wrap;
        }

        /* Badges */
        .badge {
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 0.85em;
            font-weight: bold;
        }

        .badge-pending {
            background: rgba(243, 156, 18, 0.2);
            color: #f39c12;
        }

        .badge-in_review {
            background: rgba(52, 152, 219, 0.2);
            color: #3498db;
        }

        .badge-accepted {
            background: rgba(46, 204, 113, 0.2);
            color: #2ecc71;
        }

        .badge-rejected {
            background: rgba(231, 76, 60, 0.2);
            color: #e74c3c;
        }

        .badge-discord {
            background: rgba(88, 101, 242, 0.2);
            color: #5865F2;
        }

        .no-applications {
            color: #888;
            text-align: center;
            padding: 20px;
        }

        .error {
            color: #e74c3c;
        }

        /* Form select */
        .form-group select {
            width: 100%;
            padding: 12px 15px;
            font-size: 1em;
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            background: rgba(0, 0, 0, 0.4);
            color: #fff;
            cursor: pointer;
        }

        .form-group select:focus {
            outline: none;
            border-color: #9b59b6;
            box-shadow: 0 0 10px rgba(155, 89, 182, 0.3);
        }

        .form-group select option {
            background: #2a2a3a;
            color: #fff;
        }

        /* ============================================ */
        /* GIVEAWAYS NAV BUTTON */
        /* ============================================ */

        .nav-giveaways {
            border-color: #e91e63 !important;
            background: linear-gradient(90deg, rgba(233, 30, 99, 0.15), rgba(233, 30, 99, 0.08)) !important;
        }

        .nav-giveaways:hover {
            background: linear-gradient(90deg, rgba(233, 30, 99, 0.3), rgba(233, 30, 99, 0.2)) !important;
            box-shadow: 0 0 15px rgba(233, 30, 99, 0.25) !important;
        }

        .nav-giveaways.active {
            background: linear-gradient(90deg, #c2185b, #e91e63) !important;
            box-shadow: 0 0 20px rgba(233, 30, 99, 0.45) !important;
        }

        /* ============================================ */
        /* DISCORD AUTH */
        /* ============================================ */

        .discord-auth-container {
            margin-bottom: 25px;
        }

        .discord-login-btn {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 25px;
            background: #5865F2;
            color: #fff;
            border: none;
            border-radius: 8px;
            font-size: 1em;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .discord-login-btn:hover {
            background: #4752c4;
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(88, 101, 242, 0.4);
        }

        .discord-user {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 15px;
            background: rgba(88, 101, 242, 0.1);
            border: 1px solid rgba(88, 101, 242, 0.3);
            border-radius: 10px;
        }

        .discord-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
        }

        .discord-username {
            font-weight: bold;
            font-synthesis: none;
            font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
            color: #fff;
        }

        body.light-theme .discord-user {
            background: #e5edff;
            border-color: rgba(129, 140, 248, 0.6);
        }
        body.light-theme .discord-username {
            color: #111827;
        }

        .member-badge {
            background: rgba(46, 204, 113, 0.2);
            color: #2ecc71;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 0.85em;
        }

        .not-member-badge {
            background: rgba(231, 76, 60, 0.2);
            color: #e74c3c;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 0.85em;
        }

        .discord-logout-btn {
            margin-left: auto;
            padding: 6px 12px;
            background: transparent;
            border: 1px solid #666;
            color: #888;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .discord-logout-btn:hover {
            background: rgba(255,255,255,0.1);
            color: #fff;
        }

        /* ============================================ */
        /* GIVEAWAY CARDS */
        /* ============================================ */

        .giveaway-card {
            background: transparent;
            border: none;
            border-left: 4px solid rgba(233, 30, 99, 0.35);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 24px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }
        .giveaway-card:last-child {
            margin-bottom: 20px;
            border-bottom: none;
        }

        body.light-theme .giveaway-card {
            background: #f9fafb;
            border-bottom-color: rgba(15, 23, 42, 0.45);
        }

        .giveaway-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }

        .giveaway-prize {
            font-size: 1.4em;
            font-weight: bold;
            color: #fff;
        }

        .giveaway-date {
            color: #888;
            font-size: 0.9em;
        }

        .giveaway-draw-date {
            color: #b0b0b0;
            font-size: 0.95em;
        }

        .giveaway-desc-label {
            color: #999;
            font-size: 0.85em;
            margin: 10px 0 4px 0;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .giveaway-desc {
            color: #bbb;
            margin-bottom: 15px;
        }

        .giveaway-stats {
            display: flex;
            gap: 20px;
            color: #999;
            margin-bottom: 15px;
            font-size: 0.95em;
        }

        .giveaway-action .submit-btn {
            width: auto;
            padding: 10px 25px;
        }

        .giveaway-action .submit-btn.participated {
            background: linear-gradient(135deg, #27ae60, #2ecc71);
            cursor: default;
        }

        .giveaway-action .participated-row {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .giveaway-action .leave-btn {
            background: linear-gradient(135deg, #7f8c8d, #95a5a6);
            font-size: 0.95em;
            padding: 8px 18px;
        }

        .giveaway-action .leave-btn:hover {
            background: linear-gradient(135deg, #95a5a6, #bdc3c7);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .not-member-warning {
            color: #e74c3c;
            margin-bottom: 10px;
        }

        .no-giveaways {
            color: #888;
            text-align: center;
            padding: 40px;
        }

        /* Admin giveaway card */
        .admin-giveaway-card {
            background: rgba(233, 30, 99, 0.1);
            border: 1px solid rgba(233, 30, 99, 0.2);
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 10px;
        }

/* ============================================ */
/* MOBILE ADAPTATION (phones)                  */
/* ============================================ */

@media (max-width: 768px) {
    .home-links {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .home-contact {
        margin-top: 32px;
        padding-top: 24px;
    }
    .home-link-card {
        padding: 22px 20px;
    }
    .top-header {
        --hdr-h: 52px;
        padding-top: env(safe-area-inset-top, 0);
        padding-right: max(12px, env(safe-area-inset-right, 0));
        padding-bottom: 0;
        padding-left: max(16px, env(safe-area-inset-left, 0));
        min-height: var(--hdr-h);
        height: var(--hdr-h);
        gap: 8px;
    }
    .header-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 4;
        pointer-events: auto;
    }
    .header-brand:hover {
        transform: translateX(-50%) translateY(-1px);
    }
    .menu-trigger {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
    .nav-dropdown {
        left: 0;
        right: auto;
        min-width: 260px;
        max-width: calc(100vw - 24px);
        max-height: 80vh;
        padding: 8px 0;
    }
    .nav-dropdown .nav-dropdown-item {
        padding: 14px 18px;
        min-height: 48px;
        font-size: 15px;
    }
    .header-user-block .btn-login {
        padding: 10px 14px;
        font-size: 13px;
    }
    .header-username {
        max-width: 100px;
    }
    .main-content {
        padding: 16px 12px 24px 16px;
        padding-left: calc(16px + env(safe-area-inset-left, 0));
        padding-right: calc(12px + env(safe-area-inset-right, 0));
    }
    .main-content .page-content {
        padding: 20px 0;
        max-width: 100%;
    }
    .page-content h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    .page-content h2 {
        font-size: 1.25rem;
    }
    .header-user-dropdown {
        right: 0;
        min-width: 160px;
        max-width: calc(100vw - 24px);
    }
    .header-dropdown-item {
        padding: 12px 14px;
        min-height: 44px;
    }
    .submit-btn {
        min-height: 48px;
        padding: 12px 20px;
        width: 100%;
        max-width: 100%;
    }
    .form-group input,
    .form-group textarea,
    .form-group select {
        min-height: 48px;
        font-size: 16px;
    }
    .form-group textarea {
        min-height: 100px;
    }
    .modal-content {
        width: calc(100% - 24px);
        max-width: none;
        margin: 12px;
        padding: 20px 16px;
        max-height: calc(100vh - 24px);
        border-radius: 12px;
    }
    .modal-close {
        top: 10px;
        right: 12px;
        font-size: 28px;
    }
    .modal-content h2 {
        font-size: 1.25rem;
        padding-right: 36px;
    }
    .admin-card {
        padding: 16px;
    }
    .criteria-card {
        padding: 16px;
    }
    .home-intro {
        padding: 20px 18px;
        margin-bottom: 22px;
    }
    .home-server-list {
        grid-template-columns: 1fr;
    }
    .home-shortcuts {
        grid-template-columns: 1fr;
    }
    .home-shortcut-card {
        padding: 16px;
    }
    .clan-link-block,
    .clan-hero-card {
        margin-left: 0;
        margin-right: 0;
    }
    .clan-link-row {
        flex-direction: column;
    }
    .clan-link-input {
        min-width: 0;
        width: 100%;
    }
    .tickets-sub-nav {
        flex-wrap: wrap;
        gap: 8px;
    }
    .tickets-sub-btn {
        padding: 10px 14px;
        font-size: 14px;
    }
    .news-sub-nav {
        flex-wrap: wrap;
        gap: 8px;
    }
    .news-sub-btn {
        padding: 10px 14px;
        font-size: 14px;
    }
    .ticket-create-btn {
        padding: 16px;
        flex-direction: column;
        gap: 8px;
    }
    .ticket-channel-card {
        padding: 16px;
    }
}

/* Подача заявки на модерацию */
.apply-mod-page {
    max-width: 560px;
    margin: 0 auto;
    padding: 8px 0 40px;
}
.apply-mod-wrap {
    background: #121212;
    border-radius: 14px;
    padding: 28px 26px 32px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.apply-mod-h1 {
    margin: 0 0 22px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fafafa;
    letter-spacing: -0.02em;
    border: none !important;
    animation: none !important;
    text-shadow: none !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    padding-bottom: 0 !important;
}
.apply-mod-page .apply-mod-subh {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    border: none !important;
    animation: none !important;
    text-shadow: none !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    margin-top: 16px !important;
    margin-bottom: 8px !important;
}
.apply-mod-accordion-panel p.apply-mod-lead {
    font-size: 0.95rem !important;
    color: #a3a3a3 !important;
    text-shadow: none !important;
}
.apply-mod-accordion {
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #161616;
}
.apply-mod-accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: none;
    background: transparent;
    color: #f5f5f5;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
}
.apply-mod-accordion-trigger:hover {
    background: rgba(255, 255, 255, 0.04);
}
.apply-mod-chevron {
    display: inline-flex;
    font-size: 1.1rem;
    line-height: 1;
    color: #a3a3a3;
    transform: rotate(180deg);
    transition: transform 0.2s ease;
}
.apply-mod-accordion-trigger.is-open .apply-mod-chevron {
    transform: rotate(0deg);
}
.apply-mod-accordion-panel {
    padding: 0 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.apply-mod-accordion-panel[hidden] {
    display: none !important;
}
.apply-mod-lead {
    margin: 14px 0 12px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #a3a3a3;
}
.apply-mod-subh {
    margin: 16px 0 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e5e5e5;
}
.apply-mod-criteria-list {
    margin: 0;
    padding-left: 1.1em;
    color: #a3a3a3;
    font-size: 0.95rem;
    line-height: 1.55;
}
.apply-mod-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.apply-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.apply-mod-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fafafa;
}
.apply-req {
    color: #818cf8;
    font-weight: 700;
}
.apply-mod-input,
.apply-mod-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #1e1e1e;
    color: #f5f5f5;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.apply-mod-input::placeholder,
.apply-mod-textarea::placeholder {
    color: #737373;
}
.apply-mod-input:focus,
.apply-mod-textarea:focus {
    outline: none;
    border-color: rgba(129, 140, 248, 0.55);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}
.apply-mod-textarea {
    resize: vertical;
    min-height: 120px;
}
.apply-mod-submit {
    width: 100%;
    margin-top: 4px;
    padding: 14px 16px;
    border: none;
    border-radius: 12px;
    background: #7b89f4;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.15s ease;
}
.apply-mod-submit:hover {
    filter: brightness(1.06);
}
.apply-mod-submit:active {
    transform: translateY(1px);
}

/* Профиль */
.profile-page {
    max-width: 1560px;
    margin: 0 auto;
    width: 100%;
}
.main-content .page-content.profile-page {
    max-width: 1560px;
    padding-left: 8px;
    padding-right: 8px;
}
.profile-layout {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    gap: 18px;
}
/* Чужой /profiles/:id — сайдбар скрыт скриптом; иначе grid оставляет пустую колонку 236px */
.profile-layout.profile-layout--public {
    grid-template-columns: minmax(0, 1fr);
}
.profile-side-nav {
    background: linear-gradient(180deg, rgba(24, 26, 39, 0.98), rgba(13, 14, 22, 0.96));
    border: 1px solid rgba(167, 139, 250, 0.18);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: fit-content;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}
.profile-side-btn {
    border: none;
    background: transparent;
    color: #b3b6c4;
    padding: 11px 12px;
    border-radius: 9px;
    text-align: left;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: default;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.profile-side-ico {
    width: 18px;
    text-align: center;
    opacity: .9;
}
.profile-side-btn.active,
.profile-side-btn.active-emphasis {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.26), rgba(139, 92, 246, 0.22));
    color: #f8fafc;
    transform: translateX(4px);
}
.profile-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.profile-hero-card {
    position: relative;
    background: linear-gradient(160deg, rgba(17, 19, 32, 0.98), rgba(10, 11, 20, 0.98));
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}
.profile-hero-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #f59e0b);
}
.profile-hero-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.profile-hero-user {
    flex: 1;
    min-width: 0;
}
.profile-hero-avatar {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(167, 139, 250, 0.48);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
}
.profile-hero-name {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 700;
    font-synthesis: none;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}
.profile-hero-meta {
    margin: 4px 0 0;
    color: #9ca3af;
    font-size: 0.92rem;
    line-height: 1.45;
    max-width: 100%;
    word-break: normal;
    overflow-wrap: break-word;
}
.profile-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr));
    gap: 10px;
    width: 100%;
    min-width: 0;
}
.profile-game-stats {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr));
    gap: 10px;
    align-items: stretch;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    padding: 10px 0;
    overflow-x: visible;
    min-width: 0;
}
.profile-hero-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.profile-progress-track {
    flex: 1;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.profile-progress-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}
.profile-progress-text {
    font-size: 12px;
    color: #a5b4fc;
    white-space: nowrap;
}
.profile-last-seen {
    margin: 0 0 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.68);
    text-align: right;
}
.profile-hero-stat {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 12px;
    min-width: 0;
    overflow: visible;
    box-sizing: border-box;
}
.profile-hero-stat-val {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #f3f4f6;
    line-height: 1.15;
}
.profile-hero-stat-label {
    display: block;
    margin-top: 2px;
    font-size: 0.78rem;
    color: #9ca3af;
    line-height: 1.35;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
    white-space: normal;
}
.profile-game-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 10px 10px 12px;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: flex-start;
}
.profile-game-stat:first-child {
    padding-left: 10px;
}
.profile-game-stat-val {
    display: block;
    font-size: 1.85rem;
    line-height: 1.2;
    font-weight: 800;
    color: #f8fafc;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
/* Карта / hostname — много текста; без nowrap, иначе в узкой колонке виден один символ */
.profile-game-stat--text .profile-game-stat-val {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: normal;
    overflow-wrap: break-word;
    min-height: 2.7em;
}
.profile-game-stat-label {
    display: block;
    margin-top: 0;
    font-size: 0.78rem;
    color: #9ca3af;
    line-height: 1.35;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
    white-space: normal;
}
.profile-settings-card {
    background: linear-gradient(180deg, rgba(19, 20, 30, 0.98), rgba(17, 18, 26, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}
.profile-settings-card h2 {
    margin: 0 0 12px;
    font-size: 1.02rem;
}
.profile-setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.profile-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.profile-settings-grid-single {
    grid-template-columns: 1fr;
}
.profile-setting-block {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(167, 139, 250, 0.14);
    border-radius: 12px;
    padding: 14px;
}
.profile-setting-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.profile-setting-fields {
    margin-top: 14px;
    display: grid;
    gap: 8px;
}
.profile-field-label {
    font-size: 12px;
    color: #a3a3a3;
    font-weight: 600;
}
.profile-field-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 8px;
    background: rgba(9, 10, 17, 0.62);
    color: #d1d5db;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 13px;
}
.profile-inventory-card {
    background: linear-gradient(180deg, rgba(19, 20, 30, 0.98), rgba(17, 18, 26, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 16px;
}
.profile-setting-title {
    margin: 0;
    font-weight: 600;
}
.profile-setting-note {
    margin: 2px 0 0;
    color: #9ca3af;
    font-size: 0.9rem;
}
@media (max-width: 1200px) {
    .profile-hero-stats {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
    }
}
@media (max-width: 900px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
    .profile-hero-stats {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 148px), 1fr));
    }
    .profile-game-stats {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 148px), 1fr));
    }
    .profile-settings-grid {
        grid-template-columns: 1fr;
    }
}

body.light-theme .apply-mod-wrap {
    background: #f9fafb;
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}
body.light-theme .apply-mod-h1,
body.light-theme .apply-mod-label,
body.light-theme .apply-mod-accordion-trigger {
    color: #111827;
}
body.light-theme .apply-mod-h1 {
    color: #0f172a;
}
body.light-theme .apply-mod-lead,
body.light-theme .apply-mod-criteria-list {
    color: #4b5563;
}
body.light-theme .apply-mod-subh {
    color: #1f2937;
}
body.light-theme .apply-mod-accordion {
    border-color: rgba(15, 23, 42, 0.12);
    background: #fff;
}
body.light-theme .apply-mod-accordion-panel {
    border-top-color: rgba(15, 23, 42, 0.08);
}
body.light-theme .apply-mod-input,
body.light-theme .apply-mod-textarea {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.15);
    color: #111827;
}
body.light-theme .apply-mod-submit {
    background: linear-gradient(135deg, #6366f1, #7c3aed);
}

/* Страница «Правила» (в духе yooma.su/rules) */
.rules-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 8px 0 48px;
}
.rules-page-inner {
    background: rgba(14, 14, 22, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px 28px 32px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}
.rules-hero {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.rules-h1 {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 3vw, 2rem);
    font-weight: 700;
    color: #fafafa;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border: none !important;
    animation: none !important;
    text-shadow: none !important;
    padding: 0 !important;
}
.rules-lead {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #a1a1aa;
}
.rules-block {
    margin-bottom: 26px;
}
.rules-block:last-of-type {
    margin-bottom: 0;
}
.rules-h2 {
    margin: 0 0 12px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #e4e4e7;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border: none !important;
    animation: none !important;
    text-shadow: none !important;
}
.rules-list {
    margin: 0;
    padding-left: 1.25em;
    color: #d4d4d8;
    font-size: 0.95rem;
    line-height: 1.65;
}
.rules-list li {
    margin: 8px 0;
}
.rules-p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #d4d4d8;
}
.rules-footnote {
    margin: 28px 0 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    line-height: 1.5;
    color: #71717a;
}

body.light-theme .rules-page-inner {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}
body.light-theme .rules-h1 {
    color: #0f172a;
}
body.light-theme .rules-lead {
    color: #64748b;
}
body.light-theme .rules-h2 {
    color: #1e293b;
}
body.light-theme .rules-list,
body.light-theme .rules-p {
    color: #334155;
}
body.light-theme .rules-footnote {
    color: #94a3b8;
    border-top-color: rgba(15, 23, 42, 0.1);
}
body.light-theme .rules-hero {
    border-bottom-color: rgba(15, 23, 42, 0.1);
}

/* Страница модерации: слева вертикально как на yooma */
.mod-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    margin-top: 10px;
}
/* Если левая колонка удалена, контент должен занимать всю ширину */
.mod-layout > .mod-tab-content-wrap:only-child {
    grid-column: 1 / -1;
}
.mod-side-tabs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mod-side-tab {
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    font-family: inherit;
    cursor: pointer;
}
.mod-side-tab.active {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    color: #f5f3ff;
}
.mod-tab-content { display: none; }
.mod-tab-content.active { display: block; }
.mod-rules-list { margin: 0; padding-left: 18px; line-height: 1.6; }

/* «Мои блокировки» — дашборд как на референсе */
.mod-page .mod-layout {
    margin-top: 0;
}
.mod-dashboard {
    background: rgba(18, 18, 24, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}
.mod-dashboard-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mod-dashboard-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #f9fafb;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.mod-dashboard-title-icon {
    font-size: 1.35rem;
    line-height: 1;
}
.mod-dashboard-subtabs {
    display: inline-flex;
    gap: 8px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 10px;
}
.mod-subtab {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.mod-subtab:hover {
    color: #e5e7eb;
}
.mod-subtab.active {
    background: rgba(55, 65, 81, 0.9);
    color: #f9fafb;
}
.mod-moderation-message {
    padding: 0 18px 12px;
    margin: 0;
}
.mod-moderation-message .form-note {
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
}
.mod-subpanel {
    display: none;
    padding: 0 0 16px;
}
.mod-subpanel.active {
    display: block;
}
.mod-table-scroll {
    overflow-x: auto;
    margin: 0 8px 12px;
}
.mod-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.mod-data-table thead th {
    text-align: left;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}
.mod-data-table tbody td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #e5e7eb;
    vertical-align: middle;
}
.mod-data-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}
.mod-table-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    padding: 28px 12px !important;
}
.mod-id-cell {
    font-size: 0.85rem;
    color: #93c5fd;
    background: rgba(30, 58, 138, 0.25);
    padding: 2px 8px;
    border-radius: 6px;
}
.mod-user-cell {
    font-weight: 500;
    word-break: break-all;
}
.mod-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}
.mod-status-active {
    color: #f87171;
}
.mod-status-expired {
    color: #4ade80;
}
.mod-status-ico {
    font-size: 1rem;
}
.mod-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px 16px;
}
.mod-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    color: #e5e7eb;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.mod-page-btn:hover:not(:disabled) {
    background: rgba(55, 65, 81, 0.85);
}
.mod-page-btn:disabled {
    opacity: 0.35;
    cursor: default;
}
.mod-page-btn.is-active {
    background: rgba(75, 85, 99, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.mod-mutes-body {
    padding: 24px 18px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.55;
}

body.light-theme .mod-dashboard {
    background: #f9fafb;
    border-color: rgba(15, 23, 42, 0.12);
}
body.light-theme .mod-dashboard-toolbar {
    border-bottom-color: rgba(15, 23, 42, 0.1);
}
body.light-theme .mod-dashboard-title {
    color: #111827;
}
body.light-theme .mod-dashboard-subtabs {
    background: #e5e7eb;
}
body.light-theme .mod-subtab {
    color: #4b5563;
}
body.light-theme .mod-subtab.active {
    background: #fff;
    color: #111827;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}
body.light-theme .mod-data-table thead th {
    color: #6b7280;
    border-bottom-color: rgba(15, 23, 42, 0.12);
}
body.light-theme .mod-data-table tbody td {
    color: #111827;
    border-bottom-color: rgba(15, 23, 42, 0.08);
}
body.light-theme .mod-data-table tbody tr:hover td {
    background: rgba(243, 244, 246, 0.9);
}
body.light-theme .mod-page-btn {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.15);
    color: #111827;
}
body.light-theme .mod-page-btn.is-active {
    background: #e5e7eb;
}

@media (max-width: 900px) {
    .mod-layout { grid-template-columns: 1fr; }
    .mod-side-tabs { flex-direction: row; flex-wrap: wrap; }
    .home-side-yooma-inner { width: 100%; }
    .home-side-yooma-btn { width: 100%; min-width: 0; }
}

@media (max-width: 480px) {
    .top-header {
        padding: 0 10px 0 12px;
    }
    .header-user-block .btn-login {
        font-size: 12px;
        padding: 8px 12px;
    }
    .header-username {
        max-width: 72px;
    }
    .main-content {
        padding: 12px 10px 20px 12px;
    }
    .page-content h1 {
        font-size: 1.35rem;
    }
    .nav-dropdown .nav-dropdown-item {
        padding: 12px 16px;
    }
    .modal-content {
        width: calc(100% - 16px);
        margin: 8px;
        padding: 16px 12px;
    }
}
