/* ============================================
   NightParadise — Night Oasis
   Чернила · бирюза · янтарь (без фиолетового неона)
   ============================================ */

:root {
    --bg-dark: #070b10;
    --bg-elevated: #0d141c;
    --bg-card: rgba(13, 20, 28, 0.88);
    --accent: #3ecfbe;
    --accent-warm: #e4a14a;
    --neon: #3ecfbe;
    --neon-green: #5dce7a;
    --neon-glow: 0 0 0 transparent;
    --glass-border: rgba(120, 170, 190, 0.16);
    --text-muted: #8b97a8;
    --text-primary: #e8eef4;
    --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
    --font-display: "Syne", "Segoe UI", sans-serif;
    --font-pixel: "Syne", "Figtree", sans-serif;
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1.25rem;
    --space-lg: 2rem;
    --space-xl: 2.5rem;
    --radius-card: 14px;
    --radius-sm: 8px;
    --fs-body: 1rem;
    --fs-small: 0.9rem;
    --fs-label: 0.875rem;
    --fs-hint: 0.8125rem;
    --fs-btn: 0.9rem;
    --fs-btn-sm: 0.85rem;
    --fs-table: 0.875rem;
    --fs-pixel-title: clamp(1.35rem, 2.4vw, 1.85rem);
    --fs-pixel-hero: clamp(1.6rem, 3.2vw, 2.35rem);
    --page-max: 1120px;
}

/* Сброс и базовые стили */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(62, 207, 190, 0.09), transparent 55%),
        radial-gradient(ellipse 60% 40% at 95% 0%, rgba(228, 161, 74, 0.06), transparent 50%),
        linear-gradient(180deg, #0a1018 0%, var(--bg-dark) 40%, #05080c 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.65;
    font-size: var(--fs-body);
}

.font-pixel,
.neon-title,
.section-title,
.page-hero__title,
.site-logo__title,
h1.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    font-size: var(--fs-pixel-title);
    text-shadow: none;
    background: none;
    color: var(--text-primary);
    -webkit-text-fill-color: unset;
}

.page-hero__title,
h1.section-title {
    font-size: var(--fs-pixel-hero);
}

/* Three.js фон */
#three-bg {
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Плавающие частицы */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--neon);
    border-radius: 50%;
    animation: float 6s infinite;
    box-shadow: 0 0 6px var(--neon);
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Навигация */
.nav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(10, 10, 20, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(62, 207, 190, 0.22);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
    background: rgba(10, 10, 20, 0.96);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 24px rgba(62, 207, 190, 0.08);
}

.nav-bar {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0.65rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 58px;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 0.25rem;
}

.nav-logo-icon {
    font-size: 1.1rem;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(62, 207, 190, 0.6));
}

.nav-logo-text {
    font-size: 0.72rem;
    color: var(--neon);
    text-shadow: var(--neon-glow);
    transition: text-shadow 0.3s;
}

.nav-logo:hover .nav-logo-text {
    text-shadow: 0 0 20px #3ecfbe, 0 0 40px #2a9f92;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: rgba(20, 20, 35, 0.8);
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: border-color 0.25s, background 0.25s;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--neon);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.nav-menu-spacer {
    flex: 1;
    min-width: 0.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
}

.nav-link,
.nav-dropdown-btn,
.nav-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    font-size: 0.58rem;
    line-height: 1.2;
    color: var(--text-muted);
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.nav-link i,
.nav-dropdown-btn i:first-child,
.nav-dropdown-link i {
    width: 14px;
    text-align: center;
    opacity: 0.85;
    font-size: 0.62rem;
}

.nav-link:hover,
.nav-dropdown-btn:hover,
.nav-user-btn:hover {
    color: var(--text-primary);
    background: rgba(62, 207, 190, 0.08);
    border-color: rgba(62, 207, 190, 0.18);
}

.nav-link.is-active,
.nav-dropdown.is-active > .nav-dropdown-btn,
.nav-user.is-active > .nav-user-btn {
    color: var(--neon);
    background: rgba(62, 207, 190, 0.1);
    border-color: rgba(62, 207, 190, 0.28);
    box-shadow: inset 0 0 12px rgba(62, 207, 190, 0.08);
}

.nav-chevron {
    font-size: 0.45rem !important;
    width: auto !important;
    opacity: 0.7;
    transition: transform 0.25s;
}

.nav-dropdown.is-open .nav-chevron,
.nav-user.is-open .nav-chevron {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-list,
.nav-user-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    min-width: 210px;
    list-style: none;
    margin: 0;
    padding: 0.4rem;
    background: rgba(14, 14, 28, 0.98);
    border: 1px solid rgba(62, 207, 190, 0.22);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 20px rgba(62, 207, 190, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 300;
}

.nav-user-menu {
    right: 0;
    left: auto;
    min-width: 220px;
}

.nav-dropdown.is-open .nav-dropdown-list,
.nav-user.is-open .nav-user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (min-width: 769px) {
    .nav-dropdown:hover .nav-dropdown-list,
    .nav-user:hover .nav-user-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-dropdown:hover .nav-chevron,
    .nav-user:hover .nav-chevron {
        transform: rotate(180deg);
    }
}

.nav-dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.56rem;
    transition: background 0.2s, color 0.2s;
}

.nav-dropdown-link:hover {
    background: rgba(62, 207, 190, 0.1);
    color: var(--text-primary);
}

.nav-dropdown-link.is-active {
    color: var(--neon);
    background: rgba(62, 207, 190, 0.14);
}

.nav-admin-link.is-active {
    box-shadow: inset 0 0 0 1px rgba(62, 207, 190, 0.18);
}

.nav-logout-link:hover {
    background: rgba(231, 76, 60, 0.12);
    color: #ff8a80;
}

.nav-menu-divider {
    height: 1px;
    margin: 0.35rem 0.5rem;
    background: rgba(62, 207, 190, 0.15);
}

.nav-user {
    position: relative;
    flex-shrink: 0;
}

.nav-user-btn {
    padding: 0.35rem 0.55rem 0.35rem 0.35rem;
    max-width: 220px;
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    image-rendering: pixelated;
    border: 1px solid rgba(62, 207, 190, 0.28);
    flex-shrink: 0;
}

.nav-user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    min-width: 0;
}

.nav-user-name {
    font-size: 0.56rem;
    color: var(--text-primary);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-user-tag {
    font-size: 0.45rem !important;
    padding: 0.12rem 0.35rem !important;
}

.nav-login {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.35rem;
    background: #e74c3c;
    color: #fff;
    font-size: 0.45rem;
    border-radius: 999px;
    margin-left: auto;
    animation: pulse-badge 1.5s infinite;
}

.nav-backdrop {
    display: none;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Плашки групп */
.group-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
}

.group-tag.creator {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #1a1200;
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.45);
}

.group-tag.admin,
.group-tag.texadmin {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fff;
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.group-tag.moderator,
.group-tag.helper,
.group-tag.trainee {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.35);
}

.group-tag.vip,
.group-tag.premium,
.group-tag.elite {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #fff;
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.35);
}

.group-tag.shadow {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: #f3f4f6;
    border-color: rgba(107, 114, 128, 0.5);
}
.group-tag.phantom {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    color: #111;
    border-color: rgba(156, 163, 175, 0.45);
}
.group-tag.eclipse {
    background: linear-gradient(135deg, #c084fc, #7e22ce);
    color: #fff;
    border-color: rgba(192, 132, 252, 0.5);
}
.group-tag.nebula {
    background: linear-gradient(135deg, #f472b6, #db2777);
    color: #fff;
    border-color: rgba(244, 114, 182, 0.5);
}
.group-tag.pulsar {
    background: linear-gradient(135deg, #22d3ee, #0891b2);
    color: #042f2e;
    border-color: rgba(34, 211, 238, 0.5);
}

.group-tag.player {
    background: rgba(46, 204, 113, 0.15);
    color: #6ee7a0;
    border-color: rgba(46, 204, 113, 0.35);
}

.group-tag.nova { background: linear-gradient(135deg, #f59e0b, #d97706); color: #1a1200; box-shadow: 0 0 8px #fbbf24; }
.group-tag.overlord { background: linear-gradient(135deg, #dc2626, #991b1b); color: #fff; box-shadow: 0 0 10px #ef4444; }
.group-tag.sponsor {
    background: linear-gradient(135deg, #eab308, #ca8a04);
    color: #1a1200;
    border-color: rgba(234, 179, 8, 0.55);
}
.group-tag.builder { background: #16a34a; color: #fff; }
.group-tag.contentmaker { background: #ca8a04; color: #111; }
.group-tag.betatester {
    background: linear-gradient(135deg, #22d3ee, #0284c7);
    color: #041016;
    border-color: rgba(34, 211, 238, 0.55);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
}

.pay-card-number {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--neon);
}

.pay-order-summary p {
    font-size: 0.9rem;
    margin: 0.4rem 0;
}

/* Типографика */
.neon-title {
    font-size: 3.5rem;
    text-align: center;
    text-shadow: 0 0 10px #3ecfbe, 0 0 25px #3ecfbe, 0 0 50px #2a9f92;
    margin-bottom: 1rem;
    line-height: 1.3;
}

@media (prefers-reduced-motion: reduce) {
    .particle,
    .online-badge {
        animation: none !important;
    }
}

.highlight {
    color: var(--neon);
}

.section-title {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(62, 207, 190, 0.5);
}

.hero {
    text-align: center;
    padding: 3rem 0;
}

.hero-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.server-ip {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--neon);
    color: var(--neon);
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.6rem;
    transition: all 0.3s;
}

.copy-btn:hover {
    background: rgba(62, 207, 190, 0.16);
}

/* Стеклянные карточки */
.status-card,
.dev-card,
.complaint-form,
.content-card,
.admin-card,
.news-card,
.profile-card,
.login-card,
.rules-card {
    background: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(62, 207, 190, 0.1);
    padding: var(--space-md);
    transition: all 0.3s ease;
}

.page-hero {
    text-align: center;
    padding: var(--space-xl) 0 var(--space-lg);
    margin-bottom: var(--space-md);
}

.page-hero__title {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
    text-shadow: 0 0 10px rgba(62, 207, 190, 0.5);
}

.page-hero__desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 640px;
    margin: 0 auto;
}

.list-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-tile {
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.empty-state {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    color: var(--text-muted);
}

.empty-state__icon {
    font-size: 2.5rem;
    color: var(--neon);
    opacity: 0.65;
    margin-bottom: var(--space-sm);
}

.empty-state__title {
    font-family: var(--font-pixel);
    font-size: 0.75rem;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.empty-state__text {
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state--compact {
    padding: var(--space-md);
}

.empty-state--compact .empty-state__icon {
    font-size: 1.75rem;
}

.empty-state--inline {
    padding: var(--space-sm) 0 0;
    text-align: left;
}

.empty-state--inline .empty-state__text {
    margin-bottom: var(--space-sm);
    margin-left: 0;
}

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.breadcrumbs a {
    color: var(--neon-green);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Toast-уведомления */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: min(360px, calc(100vw - 2rem));
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(12, 12, 24, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.45;
    animation: toast-in 0.35s ease;
    transition: opacity 0.3s, transform 0.3s;
}

.toast.is-hiding {
    opacity: 0;
    transform: translateX(12px);
}

.toast--success { border-color: rgba(46, 204, 113, 0.45); }
.toast--error { border-color: rgba(231, 76, 60, 0.45); }
.toast--info { border-color: rgba(52, 152, 219, 0.45); }

.toast__icon {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.toast--success .toast__icon { color: var(--neon-green); }
.toast--error .toast__icon { color: #e74c3c; }
.toast--info .toast__icon { color: #3498db; }

@keyframes toast-in {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Таблицы → карточки на мобилке */
@media (max-width: 767px) {
    .responsive-table thead {
        display: none;
    }

    .responsive-table tbody tr {
        display: block;
        margin-bottom: var(--space-sm);
        padding: var(--space-sm);
        background: rgba(10, 10, 20, 0.65);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--radius-sm);
    }

    .responsive-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: var(--space-sm);
        padding: 0.4rem 0;
        border: none;
        font-size: 0.875rem;
    }

    .responsive-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        flex-shrink: 0;
        min-width: 5.5rem;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

    .responsive-table tbody td.td-actions {
        justify-content: flex-end;
        padding-top: 0.65rem;
    }

    .responsive-table tbody td.td-actions::before {
        display: none;
    }

    .responsive-table tbody td.td-primary {
        font-weight: 600;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        margin-bottom: 0.25rem;
    }

    .responsive-table tbody td.td-primary::before {
        display: none;
    }
}

.status-card:hover,
.news-card:hover,
.content-card:hover,
.admin-card:hover {
    border-color: rgba(62, 207, 190, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(62, 207, 190, 0.15);
}

/* Статус сервера */
.status-section {
    margin: 2rem 0;
}

.status-header {
    margin-bottom: 1.5rem;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.6rem;
    display: inline-block;
}

.online-badge {
    background: rgba(46, 204, 113, 0.2);
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.3);
}

.offline-badge {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
}

.status-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.stat-item {
    flex: 1;
    min-width: 150px;
}

.stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.6rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 0.9rem;
    color: var(--neon);
    text-shadow: 0 0 5px rgba(62, 207, 190, 0.5);
}

/* Прогресс-бар онлайна */
.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(42, 42, 62, 0.8);
    border-radius: 4px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--neon), var(--neon-green));
    border-radius: 4px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(62, 207, 190, 0.5);
}

.players-online h3 {
    font-size: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.players-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.players-list li {
    background: rgba(62, 207, 190, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    font-size: 0.6rem;
}

.offline-message,
.no-players,
.no-news,
.no-complaints {
    text-align: center;
    color: var(--text-muted);
    padding: 1rem;
}

/* Новости */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.news-title {
    font-size: 0.85rem;
    color: var(--neon);
    margin-bottom: 0.8rem;
}

.news-meta {
    font-size: 0.55rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.news-content {
    font-size: 0.6rem;
    color: var(--text-primary);
    line-height: 1.9;
}

.news-content-full {
    font-size: 0.65rem;
    line-height: 2;
    white-space: pre-wrap;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.text-center {
    text-align: center;
}

/* Карточки разработчиков */
.dev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.dev-card {
    cursor: pointer;
    perspective: 1000px;
    height: 320px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.dev-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.dev-card.flipped .dev-card-inner {
    transform: rotateY(180deg);
}

.dev-front,
.dev-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(62, 207, 190, 0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
}

.dev-card:not(.flipped):hover .dev-front {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(62, 207, 190, 0.3);
}

.dev-back {
    transform: rotateY(180deg);
}

.dev-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--neon);
    box-shadow: 0 0 15px rgba(62, 207, 190, 0.4);
    margin-bottom: 1rem;
    object-fit: cover;
}

.dev-avatar-sm {
    width: 60px;
    height: 60px;
}

.dev-name {
    font-size: 0.9rem;
    color: var(--neon);
    margin-bottom: 0.5rem;
}

.dev-role {
    font-size: 0.6rem;
    color: var(--neon-green);
    margin-bottom: 1rem;
    padding: 0.2rem 0.6rem;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 4px;
}

.dev-description {
    font-size: 0.55rem;
    color: var(--text-muted);
    line-height: 1.9;
}

.dev-back-info {
    font-size: 0.55rem;
    color: var(--text-muted);
    line-height: 2;
}

/* Кнопки */
.neon-btn {
    background: transparent;
    border: 2px solid var(--neon);
    color: var(--neon);
    padding: 0.7rem 1.4rem;
    font-family: var(--font-body);
    font-size: var(--fs-btn);
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(62, 207, 190, 0.3);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    line-height: 1.3;
}

.neon-btn:hover {
    background: rgba(62, 207, 190, 0.16);
    box-shadow: 0 0 25px rgba(62, 207, 190, 0.6);
    color: var(--neon);
}

.neon-btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: var(--fs-btn-sm);
}

.neon-btn-danger {
    border-color: #e74c3c;
    color: #e74c3c;
}

.neon-btn-danger:hover {
    background: rgba(231, 76, 60, 0.2);
    box-shadow: 0 0 25px rgba(231, 76, 60, 0.4);
}

/* Ripple-эффект */
.neon-btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-anim 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-anim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Формы */
.form-group {
    margin-bottom: 0.9rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text-muted);
    font-size: var(--fs-label);
    font-family: var(--font-body);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    background: rgba(15, 15, 30, 0.8);
    border: 1px solid #2a2a3e;
    border-radius: 8px;
    color: #e0e0e0;
    font-family: var(--font-body);
    font-size: var(--fs-body);
    transition: all 0.3s;
    resize: vertical;
    line-height: 1.4;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--neon);
    box-shadow: 0 0 15px rgba(62, 207, 190, 0.4);
    outline: none;
}

.form-group select option {
    background: #0a0a14;
}

.complaint-form {
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Алерты */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: var(--fs-small);
    text-align: center;
    font-family: var(--font-body);
}

.alert-error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

.alert-success {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
}

/* Таблицы */
.table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.complaints-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-table);
    font-family: var(--font-body);
}

.complaints-table th {
    background: var(--neon);
    color: #0a0a14;
    padding: 0.8rem;
    text-align: left;
    font-size: 0.55rem;
}

.complaints-table td {
    padding: 0.8rem;
    border-bottom: 1px solid rgba(62, 207, 190, 0.1);
}

.complaints-table tr:hover {
    background: rgba(62, 207, 190, 0.05);
}

.complaints-table tr:last-child td {
    border-bottom: none;
}

/* Статусы жалоб */
.status-badge.pending {
    background: #f39c12;
    color: #000;
}

.status-badge.in_progress {
    background: #3498db;
    color: #fff;
}

.status-badge.resolved {
    background: #2ecc71;
    color: #000;
}

.status-badge.rejected {
    background: #e74c3c;
    color: #fff;
}

.status-badge.accepted {
    background: #2ecc71;
    color: #000;
}

/* Логин */
.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.login-card {
    width: 100%;
    max-width: 480px;
    padding: 1.75rem 1.5rem;
}

.login-card__head {
    text-align: center;
    margin-bottom: 1.25rem;
}

.login-card__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.25rem;
    color: #3ecfbe;
    background: rgba(62, 207, 190, 0.1);
    border: 1px solid rgba(62, 207, 190, 0.28);
    box-shadow: 0 0 20px rgba(62, 207, 190, 0.15);
}

.login-card__title {
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.login-card__subtitle {
    font-size: 0.55rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.login-form .form-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.login-submit {
    width: 100%;
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-steps {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--glass-border);
}

.login-steps__title {
    font-size: 0.6rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-align: center;
}

.login-steps__list {
    margin: 0 0 0.85rem 1.1rem;
    padding: 0;
    font-size: 0.52rem;
    color: var(--text-muted);
    line-height: 1.9;
}

.login-steps__list code {
    color: #c9a0ff;
    font-size: 0.5rem;
}

.login-steps__note {
    font-size: 0.5rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.8;
}

.login-hint {
    display: none;
}

/* Профиль */
.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    border: 3px solid var(--neon);
    box-shadow: 0 0 15px rgba(62, 207, 190, 0.4);
    image-rendering: pixelated;
}

.profile-name {
    font-size: 1.2rem;
    color: var(--neon);
    margin-bottom: 0.5rem;
}

.profile-date {
    font-size: 0.55rem;
    color: var(--text-muted);
    margin-top: 0.8rem;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.profile-stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(62, 207, 190, 0.18);
    border-radius: 8px;
    padding: 1.2rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.profile-stat-label {
    font-size: 0.55rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-stat-value {
    font-size: 0.75rem;
    color: var(--text);
}

.vk-btn {
    background: linear-gradient(135deg, #4c75a3, #5181b8) !important;
    border-color: #5181b8 !important;
}

.vk-btn:hover {
    box-shadow: 0 0 15px rgba(76, 117, 163, 0.5) !important;
}

/* Админ-панель */
.admin-layout {
    display: flex;
    gap: 2rem;
}

.admin-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
}

.admin-sidebar h3 {
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--neon);
}

.sidebar-stats {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.sidebar-stat {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.stat-counter {
    font-size: 2rem;
    color: var(--neon);
    text-shadow: var(--neon-glow);
}

.admin-main {
    flex: 1;
    min-width: 0;
}

.admin-filters {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    font-size: var(--fs-label);
}

.filter-btn {
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: var(--fs-btn-sm);
    font-family: var(--font-body);
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--neon);
    color: var(--neon);
    background: rgba(62, 207, 190, 0.1);
}

.complaints-admin-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.complaint-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--glass-border);
}

.complaint-id {
    color: var(--neon);
    font-size: 0.7rem;
}

.complaint-body p {
    font-size: 0.55rem;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
}

.complaint-body strong {
    color: var(--text-primary);
}

.complaint-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--glass-border);
}

/* Жалобы — улучшенный UI */
.complaints-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto 2rem;
}

.complaints-info-card {
    padding: 1.2rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.complaints-info-card h3 { font-size: 0.65rem; margin-bottom: 0.8rem; }
.complaints-info-card ul { list-style: none; padding: 0; margin: 0; }
.complaints-info-card li {
    font-size: 0.55rem;
    line-height: 2;
    padding-left: 1rem;
    position: relative;
}

.complaints-info-ok {
    border-left: 3px solid #4ade80;
    background: rgba(74, 222, 128, 0.05);
}
.complaints-info-ok li::before { content: "✓"; position: absolute; left: 0; color: #4ade80; }

.complaints-info-no {
    border-left: 3px solid #f87171;
    background: rgba(248, 113, 113, 0.05);
}
.complaints-info-no li::before { content: "✗"; position: absolute; left: 0; color: #f87171; }

.complaint-submit-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.verdict-cell { font-size: 0.5rem; max-width: 200px; }

.complaint-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.priority-badge { color: #fbbf24; font-size: 0.55rem; }
.source-badge {
    font-size: 0.45rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: rgba(62, 207, 190, 0.15);
}
.source-ingame { color: #4ade80; }
.source-web { color: #60a5fa; }

.scope-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.45rem;
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.scope-anarchy {
    color: #fb7185;
    background: rgba(251, 113, 133, 0.12);
}
.scope-minigames {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
}

.su-scope-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.su-scope-opt {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
}
.su-scope-opt:has(input:checked) {
    border-color: rgba(62, 207, 190, 0.55);
    background: rgba(62, 207, 190, 0.12);
}
.su-scope-opt input {
    margin: 0;
}

.complaint-players {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
    font-size: 0.6rem;
}
.complaint-arrow { color: var(--text-muted); font-size: 0.5rem; }
.complaint-target { color: #f87171; }
.complaint-reason-line { font-size: 0.58rem; margin-bottom: 0.4rem; }
.complaint-details-preview {
    font-size: 0.52rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 0.5rem;
    padding: 0.6rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}
.complaint-meta { font-size: 0.5rem; color: var(--text-muted); }
.complaint-admin-note {
    font-size: 0.52rem;
    color: #fbbf24;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(251, 191, 36, 0.08);
    border-radius: 4px;
}
.complaint-verdict { font-size: 0.55rem; margin-top: 0.5rem; color: #4ade80; }
.complaint-priority-5 { border-left: 3px solid #f87171; }
.complaint-priority-4 { border-left: 3px solid #fbbf24; }
.quick-reject-group { display: inline-flex; gap: 0.3rem; }

.neon-btn-success {
    background: rgba(74, 222, 128, 0.15) !important;
    border-color: #4ade80 !important;
    color: #4ade80 !important;
}

.complaint-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.detail-block {
    padding: 0.8rem;
    background: rgba(62, 207, 190, 0.05);
    border-radius: 8px;
    margin-bottom: 0.8rem;
}
.detail-block h4 { font-size: 0.6rem; color: var(--neon); margin-bottom: 0.5rem; }
.detail-block p { font-size: 0.55rem; line-height: 1.9; margin: 0.2rem 0; }
.complaint-details-full { white-space: pre-wrap; word-break: break-word; }
.detail-recent { list-style: none; padding: 0; margin: 0.5rem 0 0; font-size: 0.5rem; }
.verdict-quick-btns { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.5rem; }

/* Капча на форме жалоб */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.captcha-group {
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(62, 207, 190, 0.06);
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.captcha-question {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 8px;
    border: 1px dashed var(--neon);
    font-size: 0.65rem;
    min-width: 160px;
}

.captcha-question strong {
    color: var(--neon);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.captcha-label,
.captcha-eq {
    color: var(--text-muted);
    font-size: 0.55rem;
}

.captcha-input {
    width: 90px !important;
    text-align: center;
    font-size: 0.75rem !important;
}

.captcha-refresh {
    min-width: 40px;
    padding: 0.5rem !important;
}

@media (max-width: 768px) {
    .complaints-info-grid,
    .complaint-detail-grid { grid-template-columns: 1fr; }
}

/* Правила */
.rules-card {
    max-width: 960px;
    margin: 0 auto;
}

.rules-intro {
    margin-bottom: 2rem;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
}

.rules-list {
    list-style: none;
    counter-reset: rules;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding: 1rem;
    background: rgba(62, 207, 190, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--neon);
    transition: all 0.3s;
}

.rule-item:hover {
    background: rgba(62, 207, 190, 0.1);
    transform: translateX(5px);
}

.rule-number {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: var(--neon);
    color: #0a0a14;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
}

.rule-text {
    font-size: 0.6rem;
    line-height: 2;
    color: var(--text-primary);
}

.rules-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.55rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 2.2;
}

.rules-footer a {
    text-decoration: none;
}

.rules-footer a:hover {
    text-shadow: var(--neon-glow);
}

.rules-mode-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
  margin: 0 0 1.5rem;
  padding: 0.35rem;
  background: rgba(13, 20, 28, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  max-width: 420px;
}

.rules-mode-link {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.rules-mode-link:hover {
  color: #fff;
  background: rgba(62, 207, 190, 0.08);
}

.rules-mode-link.is-active {
  color: #07201c;
  background: var(--accent);
  border-color: transparent;
}

.rules-subheading {
  margin: 1rem 0 0.45rem;
  font-size: 1.05rem;
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.rules-lead {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.rules-tagline {
    text-align: left;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0 0 1.25rem;
    text-shadow: none;
}

.rules-block {
    margin-bottom: 1.5rem;
    padding: 1.35rem 1.4rem;
    background: rgba(13, 20, 28, 0.72);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.rules-block-allowed {
    border-left: 4px solid #4ade80;
    background: rgba(74, 222, 128, 0.05);
}

.rules-block-forbidden {
    border-left: 4px solid #f87171;
    background: rgba(248, 113, 113, 0.05);
}

.rules-block-golden {
    border-left: 4px solid #e4a14a;
    background: rgba(228, 161, 74, 0.06);
}

.rules-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.rules-heading-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--neon);
    color: #06201c;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 750;
    flex-shrink: 0;
}

.rules-ban-label {
    font-size: 0.7rem;
    color: #f87171;
    background: rgba(248, 113, 113, 0.15);
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-weight: 600;
}

.rules-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rules-bullets li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.8rem;
    font-size: 0.6rem;
    line-height: 1.9;
    color: var(--text-primary);
}

.rules-bullets li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--neon);
}

.rules-table-wrap {
    overflow-x: auto;
    margin-top: 0.5rem;
}

.rules-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.55rem;
}

.rules-table th,
.rules-table td {
    padding: 0.7rem 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
    vertical-align: top;
    line-height: 1.8;
}

.rules-table th {
    color: var(--neon);
    font-weight: normal;
    background: rgba(62, 207, 190, 0.08);
}

.rules-table td:first-child {
    color: var(--neon);
    white-space: nowrap;
    width: 2rem;
}

.rules-table td:nth-child(2) {
    font-weight: bold;
    min-width: 140px;
}

.rules-quote {
    margin: 0 0 1rem;
    padding: 1rem 1.2rem;
    border-left: 3px solid #fbbf24;
    background: rgba(251, 191, 36, 0.08);
    font-size: 0.65rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 2;
}

.rules-outro {
    font-size: 0.6rem;
    line-height: 2;
    color: var(--text-muted);
    margin: 0;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.pagination-info {
    font-size: 0.6rem;
    color: var(--text-muted);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--neon);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    animation: modalSlideIn 0.3s ease;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--neon);
}

.modal-content h3 {
    margin-bottom: 1.5rem;
    color: var(--neon);
    font-size: 0.85rem;
}

#log-content {
    max-height: 300px;
    overflow-y: auto;
}

.log-entry {
    padding: 0.8rem;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.55rem;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-entry .log-action {
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.log-entry .log-meta {
    color: var(--text-muted);
    font-size: 0.5rem;
}

/* Футер */
.footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.footer p {
    font-size: 0.55rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--neon);
    text-shadow: var(--neon-glow);
    transform: translateY(-3px);
}

/* Анимации появления */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Прогресс-кольцо (SVG) */
.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.5s;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .nav-menu-spacer {
        display: none;
    }

    .nav-link span,
    .nav-dropdown-btn > span {
        display: none;
    }

    .nav-link,
    .nav-dropdown-btn {
        padding: 0.55rem 0.65rem;
    }

    .nav-user-name {
        display: none;
    }

    .nav-user-btn {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .nav-bar {
        flex-wrap: wrap;
        padding: 0.65rem 1rem;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-menu {
        position: fixed;
        top: 58px;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem 1rem 2rem;
        background: rgba(8, 8, 18, 0.98);
        border-top: 1px solid rgba(62, 207, 190, 0.16);
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
        z-index: 250;
    }

    .nav-menu.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 58px 0 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 240;
    }

    .nav-backdrop:not([hidden]) {
        display: block;
    }

    body.nav-open {
        overflow: hidden;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.25rem;
        margin-bottom: 0.5rem;
    }

    .nav-links li,
    .nav-dropdown,
    .nav-user {
        width: 100%;
    }

    .nav-link span,
    .nav-dropdown-btn > span,
    .nav-user-name {
        display: inline;
    }

    .nav-link,
    .nav-dropdown-btn,
    .nav-user-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 0.85rem 1rem;
        font-size: 0.62rem;
    }

    .nav-dropdown-list,
    .nav-user-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(62, 207, 190, 0.04);
        margin-top: 0.25rem;
        margin-bottom: 0.5rem;
        display: none;
        min-width: 0;
    }

    .nav-dropdown.is-open .nav-dropdown-list,
    .nav-user.is-open .nav-user-menu {
        display: block;
    }

    .nav-user-menu {
        right: auto;
    }

    .nav-login {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .nav-user-meta {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }

    .neon-title {
        font-size: 2rem;
    }

    .status-stats {
        flex-direction: column;
    }

    .dev-grid {
        grid-template-columns: 1fr;
    }

    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .section-title {
        font-size: clamp(0.95rem, 4vw, 1.15rem);
    }

    .container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .neon-title {
        font-size: 1.35rem;
    }

    .neon-btn {
        padding: 0.65rem 1.1rem;
        font-size: var(--fs-btn);
    }

    .complaint-actions {
        flex-direction: column;
    }

    .complaint-actions .neon-btn {
        width: 100%;
    }
}

/* ============================================
   Новые разделы: База знаний, Апелляции, Магазин
   ============================================ */

.section-desc, .kb-intro {
    text-align: center;
    color: var(--text-muted);
    font-size: var(--fs-small);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.form-hint {
    font-size: var(--fs-hint);
    color: var(--text-muted);
    margin-top: 0.35rem;
    line-height: 1.45;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
}

.checkbox-group label {
    font-size: var(--fs-label);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
}

.checkbox-group input[type="checkbox"] {
    accent-color: var(--neon);
}

.file-input {
    padding: 0.8rem !important;
    cursor: pointer;
}

.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.preview-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--glass-border);
}

/* База знаний */
.kb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.kb-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.kb-category {
    font-size: 0.55rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

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

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

.severity-badge {
    font-size: 0.5rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(62, 207, 190, 0.15);
    color: var(--neon);
}

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

.kb-title {
    font-size: 0.8rem;
    color: var(--neon);
    margin-bottom: 0.5rem;
}

.kb-violation, .kb-days {
    font-size: 0.55rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.kb-content {
    font-size: 0.55rem;
    color: var(--text-primary);
    line-height: 2;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 3px solid var(--neon);
}

.kb-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.no-data {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
    grid-column: 1 / -1;
}

/* Шкала наказаний */
.punishment-suggestion {
    background: rgba(62, 207, 190, 0.1);
    border: 1px solid var(--neon);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.punishment-suggestion h4 {
    font-size: 0.65rem;
    color: var(--neon);
    margin-bottom: 0.5rem;
}

.punishment-suggestion p {
    font-size: 0.55rem;
    color: var(--text-primary);
    line-height: 2;
}

/* Стена позора */
.shame-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.shame-card {
    border-left: 4px solid #e74c3c !important;
}

.shame-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.shame-avatar {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    image-rendering: pixelated;
    border: 2px solid #e74c3c;
}

.shame-player-info {
    flex: 1;
}

.shame-name {
    font-size: 0.8rem;
    color: #e74c3c;
}

.shame-date {
    font-size: 0.5rem;
    color: var(--text-muted);
}

.ban-duration {
    font-size: 0.55rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
    border: 1px solid #f39c12;
}

.ban-duration.permanent {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border-color: #e74c3c;
}

.shame-reason {
    font-size: 0.55rem;
    line-height: 2;
    margin-bottom: 0.5rem;
}

.shame-expires, .shame-mod {
    font-size: 0.5rem;
    color: var(--text-muted);
}

/* Донат-магазин */
.shop-hero {
    max-width: 720px;
    margin: 0 auto var(--space-lg);
}

.shop-section-head {
    text-align: center;
    margin-bottom: var(--space-md);
}

.shop-section-head__title {
    font-family: var(--font-pixel);
    font-size: 0.85rem;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.shop-section-head__title--sm {
    font-size: 0.72rem;
    margin-bottom: var(--space-md);
}

.shop-section-head__desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
    max-width: 640px;
    margin: 0 auto;
}

.shop-tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.shop-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(10, 10, 20, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: var(--space-md);
    text-align: left;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    overflow: hidden;
}

.shop-tier-card {
    border-top: 3px solid rgba(62, 207, 190, 0.28);
}

.shop-tier-card--shadow { border-top-color: #6b7280; }
.shop-tier-card--phantom { border-top-color: #9ca3af; }
.shop-tier-card--eclipse { border-top-color: #a855f7; }
.shop-tier-card--nebula { border-top-color: #ec4899; }
.shop-tier-card--pulsar { border-top-color: #22d3ee; }
.shop-tier-card--nova { border-top-color: #fbbf24; }
.shop-tier-card--overlord { border-top-color: #ef4444; }
.shop-tier-card--donate { border-top-color: #3ecfbe; }
.shop-tier-card--rabbit { border-top-color: #d4a574; }
.shop-tier-card--owl { border-top-color: #8b9dc3; }
.shop-tier-card--fox { border-top-color: #e67e22; }
.shop-tier-card--wolf { border-top-color: #7f8c8d; }
.shop-tier-card--bear { border-top-color: #8b4513; }

.group-tag.rabbit {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.35), rgba(180, 120, 60, 0.45));
    color: #f5d0a9;
    border-color: rgba(212, 165, 116, 0.55);
}
.group-tag.owl {
    background: linear-gradient(135deg, rgba(139, 157, 195, 0.4), rgba(90, 110, 160, 0.5));
    color: #d6def0;
    border-color: rgba(139, 157, 195, 0.55);
}
.group-tag.fox {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.45), rgba(180, 80, 20, 0.55));
    color: #ffe0c2;
    border-color: rgba(230, 126, 34, 0.55);
}
.group-tag.wolf {
    background: linear-gradient(135deg, rgba(127, 140, 141, 0.45), rgba(80, 90, 95, 0.55));
    color: #e8ecef;
    border-color: rgba(189, 195, 199, 0.45);
}
.group-tag.bear {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.55), rgba(90, 40, 10, 0.65));
    color: #f0d2a8;
    border-color: rgba(205, 133, 63, 0.55);
}

.shop-category-tag.minigames {
    background: rgba(46, 204, 113, 0.16);
    color: #6ee7a0;
}

.shop-card:hover {
    transform: translateY(-4px);
    border-color: rgba(62, 207, 190, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 24px rgba(62, 207, 190, 0.1);
}

.shop-card-glow {
    position: absolute;
    top: -40%;
    right: -30%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(62, 207, 190, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.shop-tier-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.shop-tier-emoji {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.shop-tier-title {
    flex: 1;
    min-width: 0;
}

.shop-tier-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.45rem;
}

.shop-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}

.shop-meta-pill i {
    font-size: 0.65rem;
    opacity: 0.8;
}

.shop-tagline {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: var(--space-sm);
}

.shop-highlight {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.75rem 0.85rem;
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, rgba(62, 207, 190, 0.1), rgba(46, 204, 113, 0.06));
    border: 1px solid rgba(62, 207, 190, 0.18);
    border-radius: var(--radius-sm);
}

.shop-highlight__icon {
    flex-shrink: 0;
    color: #fbbf24;
    margin-top: 0.15rem;
}

.shop-highlight__text {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

.shop-block {
    margin-bottom: var(--space-sm);
}

.shop-block--muted {
    padding: 0.65rem 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.shop-block__title {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
}

.shop-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
}

.shop-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    line-height: 1.45;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.shop-benefits li:last-child {
    border-bottom: none;
}

.shop-benefits li i {
    flex-shrink: 0;
    color: var(--neon-green);
    margin-top: 0.2rem;
    font-size: 0.7rem;
}

.shop-cmd-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.shop-cmd-chip {
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 0.78rem;
    color: #c4b5fd;
    background: rgba(62, 207, 190, 0.1);
    border: 1px solid rgba(62, 207, 190, 0.22);
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
}

.shop-inline-code {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.85em;
    color: #c4b5fd;
    background: rgba(62, 207, 190, 0.1);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.shop-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
    margin-top: auto;
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.shop-price {
    font-family: var(--font-pixel);
    font-size: 1rem;
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.35);
}

.shop-price small {
    font-size: 0.55rem;
}

.shop-icon-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    margin-right: 0.35rem;
}

.shop-key-top {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.shop-category-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.shop-category-tag.privilege {
    background: rgba(243, 156, 18, 0.18);
    color: #f39c12;
}

.shop-category-tag.key {
    background: rgba(52, 152, 219, 0.18);
    color: #3498db;
}

.shop-category-tag.minigames {
    background: rgba(46, 204, 113, 0.16);
    color: #6ee7a0;
}

.shop-name {
    display: inline-block;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.shop-key-price-ingame {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    padding: 0.45rem 0.65rem;
    background: rgba(251, 191, 36, 0.08);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.shop-key-price-ingame i {
    color: #fbbf24;
    margin-right: 0.25rem;
}

.shop-rewards-hint {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.shop-compare-wrap {
    margin: var(--space-lg) 0;
}

.shop-compare {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: 640px;
}

.shop-compare th,
.shop-compare td {
    padding: 0.65rem 0.55rem;
    border: 1px solid rgba(62, 207, 190, 0.15);
    text-align: center;
    vertical-align: middle;
}

.shop-compare th:first-child,
.shop-compare td:first-child {
    text-align: left;
    font-weight: 600;
}

.shop-compare-yes {
    color: #4ade80;
    font-weight: 700;
    font-size: 1rem;
}

.shop-compare-no {
    color: #64748b;
}

.shop-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.shop-staff-card {
    border-left: 3px solid var(--neon);
}

.shop-inherits-line {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.shop-staff-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: var(--space-md);
    text-align: center;
}

.shop-info {
    max-width: 560px;
    margin: var(--space-xl) auto 0;
}

.shop-howto-steps {
    margin: 0 0 var(--space-sm);
    padding-left: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.shop-howto-steps li {
    margin-bottom: 0.35rem;
}

.shop-howto-steps code {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.85em;
    color: #c4b5fd;
}

@media (max-width: 767px) {
    .shop-tier-grid,
    .shop-grid {
        grid-template-columns: 1fr;
    }

    .shop-cmd-chip {
        white-space: normal;
        word-break: break-word;
    }

    .shop-compare-wrap .table-wrapper {
        margin: 0 -0.5rem;
    }
}


/* Админ-вкладки */
.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.tab-btn {
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.55rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.tab-btn:hover, .tab-btn.active {
    border-color: var(--neon);
    color: var(--neon);
    background: rgba(62, 207, 190, 0.1);
    box-shadow: 0 0 15px rgba(62, 207, 190, 0.16);
}

.modal-content-wide {
    max-width: 700px;
}

.setting-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
}

.setting-row strong {
    font-size: 0.7rem;
}

.evidence-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.evidence-gallery img {
    width: 100%;
    border-radius: 8px;
    border: 2px solid var(--glass-border);
    cursor: pointer;
    transition: transform 0.3s;
}

.evidence-gallery img:hover {
    transform: scale(1.05);
    border-color: var(--neon);
}

.status-badge.approved {
    background: #2ecc71;
    color: #000;
}

@media (max-width: 768px) {
    .shop-grid, .shame-grid, .kb-grid {
        grid-template-columns: 1fr;
    }

    .admin-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
        justify-content: center;
    }

    .setting-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Технические метрики LiveDashboard */
.metrics-section {
    margin: 2rem 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.metric-item {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.metric-label {
    display: block;
    font-size: 0.55rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 0.9rem;
    color: var(--neon-green);
    text-shadow: 0 0 8px rgba(46, 204, 113, 0.4);
}

.tps-bar {
    width: 100%;
    height: 6px;
    background: rgba(42, 42, 62, 0.8);
    border-radius: 3px;
    margin-top: 0.8rem;
    overflow: hidden;
}

.tps-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-green), #27ae60);
    border-radius: 3px;
    transition: width 0.5s ease, background 0.3s;
}

.tps-fill.tps-medium {
    background: linear-gradient(90deg, #f39c12, #e67e22);
}

.tps-fill.tps-low {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

/* ——— Как начать ——— */
.start-hero {
    text-align: center;
    margin-bottom: 2.5rem;
}
.start-steps {
    display: grid;
    gap: 1.25rem;
    max-width: 720px;
    margin: 0 auto 2rem;
}
.start-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 136, 0.15);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}
.start-step-num,
.start-step__num {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--neon-green);
    color: #0a0a0f;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.start-step h2,
.start-step h3 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
}
.start-step p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
}
.start-copy,
.start-ip code {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.25);
    border-radius: 6px;
    padding: 0.25rem 0.6rem;
    font-family: monospace;
    font-size: 0.95rem;
    color: var(--neon-green);
    cursor: pointer;
}
.start-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* ——— Поддержка / тикеты ——— */
.support-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}
@media (min-width: 900px) {
    .support-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.support-form textarea,
.admin-card textarea {
    width: 100%;
    min-height: 120px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 0.75rem;
    font-family: inherit;
    resize: vertical;
}
.ticket-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ticket-item {
    display: block;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, background 0.2s;
}
.ticket-item:hover {
    border-color: rgba(0, 255, 136, 0.35);
    background: rgba(0, 255, 136, 0.04);
}
.ticket-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}
.ticket-thread {
    max-width: 800px;
    margin: 0 auto;
}
.ticket-message {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 1.25rem;
    margin: 1rem 0;
    white-space: pre-wrap;
    word-break: break-word;
}
.ticket-reply {
    border-left: 3px solid var(--neon-green);
    background: rgba(0, 255, 136, 0.06);
}

/* ——— Форум ——— */
.forum-categories {
    display: grid;
    gap: 1rem;
}
.forum-category-card,
.forum-cat-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.forum-cat-card__icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--neon-green);
    background: rgba(0, 255, 136, 0.08);
    border-radius: 10px;
}
.forum-cat-card__body {
    flex: 1;
    min-width: 0;
    text-align: left;
}
.forum-cat-card__title,
.forum-category-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    line-height: 1.3;
}
.forum-cat-card__desc,
.forum-category-card p {
    margin: 0 0 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}
.forum-cat-card__stats {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.85;
}

.forum-cat-card__stats--empty {
    font-style: italic;
    opacity: 0.75;
}

.content-card__heading {
    font-family: var(--font-pixel);
    font-size: 0.72rem;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.start-step h2 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
}

.neon-btn,
.form-group label,
.form-group input,
.form-group select,
.form-group textarea,
.complaints-table,
.profile-date,
.section-desc {
    font-family: var(--font-body);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-size: 0.9rem;
}

.forum-post__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--space-sm);
}

.forum-post__head strong {
    font-weight: 600;
}

.forum-category-card:hover,
.forum-cat-card:hover {
    border-color: rgba(0, 255, 136, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.forum-stats {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}
.forum-thread-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.forum-thread-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.forum-thread-row a {
    color: inherit;
    text-decoration: none;
    flex: 1;
}
.forum-thread-row a:hover {
    color: var(--neon-green);
}
.forum-thread-row .pinned {
    color: #f1c40f;
}
.forum-post {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.forum-post-avatar img {
    border-radius: 8px;
    image-rendering: pixelated;
}
.forum-post-body {
    flex: 1;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.55;
}
.forum-post-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.forum-breadcrumb {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.forum-breadcrumb a {
    color: var(--neon-green);
    text-decoration: none;
}
.forum-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}
.status-badge.open { background: rgba(52, 152, 219, 0.2); color: #3498db; }
.status-badge.in_progress { background: rgba(241, 196, 15, 0.2); color: #f1c40f; }
.status-badge.answered { background: rgba(0, 255, 136, 0.15); color: var(--neon-green); }
.status-badge.closed { background: rgba(127, 140, 141, 0.2); color: #95a5a6; }

/* Заявки в команду */
.team-apply-section {
    max-width: 1100px;
    margin: 0 auto;
}
.apply-type-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: var(--space-md);
}
.apply-intro {
    margin-bottom: var(--space-md);
    line-height: 1.55;
}
.apply-role-hint {
    margin-bottom: var(--space-md);
}
.apply-roles-mini {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.apply-role-pill {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(62, 207, 190, 0.1);
    font-size: 0.88rem;
    color: var(--text-muted);
}
.apply-detail-grid p {
    margin-bottom: 0.35rem;
}

/* ─── Обучение модерации ─── */
.mod-guide {
    padding-bottom: var(--space-xl);
}
.mod-guide__toc {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    position: sticky;
    top: 4.5rem;
    z-index: 20;
    padding: 0.65rem 0;
    background: linear-gradient(180deg, rgba(10, 10, 20, 0.95), rgba(10, 10, 20, 0.85));
    backdrop-filter: blur(8px);
}
.mod-guide__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}
.mod-guide__block {
    margin-bottom: 1.25rem;
    scroll-margin-top: 6.5rem;
}
.mod-guide__h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-pixel);
    font-size: 0.78rem;
    margin: 0 0 1rem;
    color: var(--text-primary);
}
.mod-guide__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 8px;
    background: rgba(62, 207, 190, 0.18);
    border: 1px solid rgba(62, 207, 190, 0.28);
    color: var(--neon);
    font-size: 0.85rem;
    flex-shrink: 0;
}
.mod-guide__h3 {
    font-size: 1rem;
    margin: 1.25rem 0 0.65rem;
    color: var(--text-primary);
}
.mod-guide__grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}
.mod-guide__callout {
    padding: 1rem 1.1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
}
.mod-guide__callout h3 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
}
.mod-guide__callout ul,
.mod-guide__list {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
}
.mod-guide__callout--ok {
    border-color: rgba(46, 204, 113, 0.35);
    background: rgba(46, 204, 113, 0.06);
}
.mod-guide__callout--bad {
    border-color: rgba(248, 113, 113, 0.35);
    background: rgba(248, 113, 113, 0.06);
}
.mod-guide__list--warn li {
    margin-bottom: 0.45rem;
}
.mod-guide__roles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.85rem;
    margin: 1rem 0;
}
.mod-guide__role {
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(62, 207, 190, 0.15);
}
.mod-guide__role-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}
.mod-guide__role p {
    margin: 0 0 0.5rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.mod-guide__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--neon);
    margin: 0.55rem 0 0.25rem !important;
}
.mod-guide__cmds {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.mod-guide__cmds code,
.mod-guide__table code {
    font-size: 0.82rem;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    background: rgba(62, 207, 190, 0.1);
    color: #e8c8ff;
}
.mod-guide__cmds--lg {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.4rem 0.75rem;
    align-items: center;
    max-width: 280px;
    margin: 0.75rem 0;
    color: var(--text-muted);
}
.mod-guide__steps {
    margin: 0.5rem 0 1rem;
    padding-left: 1.25rem;
    color: var(--text-muted);
    line-height: 1.85;
}
.mod-guide__steps strong {
    color: var(--text-primary);
}
.mod-guide__footer-note {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(62, 207, 190, 0.15);
    color: var(--text-muted);
    font-size: 0.9rem;
}
.mod-guide__table td:first-child {
    white-space: nowrap;
}
@media (max-width: 768px) {
    .mod-guide__grid2 {
        grid-template-columns: 1fr;
    }
    .mod-guide__table td:first-child {
        white-space: normal;
    }
    .mod-guide__toc {
        top: 3.5rem;
    }
}

/* ─── Жалобы + стафф-панель ─── */
.complaint-flow-steps {
    margin: 0 0 1rem;
    padding-left: 1.15rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.65;
}
.complaint-flow-steps strong { color: var(--text-primary); }
.complaint-step-badge {
    font-size: 0.72rem;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.35);
    color: #7dffa8;
}
.complaint-step-badge--work {
    background: rgba(62, 207, 190, 0.15);
    border-color: rgba(62, 207, 190, 0.4);
    color: #e0b3ff;
}
.quick-reject-group {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}
.quick-reject-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.staff-online-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.65rem;
    margin-top: 0.75rem;
}
.staff-online-card {
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(62, 207, 190, 0.15);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.staff-online-card--on {
    border-color: rgba(46, 204, 113, 0.4);
    background: rgba(46, 204, 113, 0.06);
}
.staff-online-card--off { opacity: 0.7; }
.staff-feed {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-height: 480px;
    overflow-y: auto;
}
.staff-feed-item {
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(62, 207, 190, 0.1);
    background: rgba(255,255,255,0.02);
}
.staff-feed-item--new {
    border-color: rgba(62, 207, 190, 0.45);
    background: rgba(62, 207, 190, 0.08);
}
.staff-feed-item p {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}
.staff-feed-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

/* ─── Консоль банов/мутов ─── */
.punish-toolbar__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}
.punish-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(62, 207, 190, 0.15);
}
.punish-presets__label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-right: 0.25rem;
}
.punish-mode-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 1rem 0 0.75rem;
}
.punish-panel h3 { margin-top: 0; }
.punish-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.duration-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}
.duration-chip {
    appearance: none;
    border: 1px solid rgba(62, 207, 190, 0.3);
    background: rgba(62, 207, 190, 0.08);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 0.35rem 0.7rem;
    cursor: pointer;
    font-size: 0.85rem;
}
.duration-chip:hover,
.duration-chip.active {
    background: rgba(62, 207, 190, 0.18);
    border-color: rgba(62, 207, 190, 0.6);
    color: #fff;
}
.duration-chip--perm.active {
    background: rgba(248, 113, 113, 0.25);
    border-color: rgba(248, 113, 113, 0.55);
}
.duration-input {
    max-width: 120px;
}
.punish-advanced {
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.punish-advanced summary {
    cursor: pointer;
    color: var(--neon);
}
.punish-list-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}
.punish-subh {
    margin: 0.5rem 0 0.5rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}
.punish-row--off { opacity: 0.55; }
.punish-table td { vertical-align: middle; }
@media (max-width: 768px) {
    .punish-toolbar__row { flex-direction: column; align-items: stretch; }
}

/* ═══════════════════════════════════════════
   Readability lock — финальная доводка сайта
   ═══════════════════════════════════════════ */
.page-hero__desc,
.rules-tagline,
.rules-bullets li,
.rule-text,
.rules-outro,
.rules-quote,
.news-content,
.news-meta,
.profile-date,
.complaint-meta,
.complaint-reason-line,
.complaint-details-preview,
.complaint-verdict,
.complaint-admin-note,
.kb-content,
.kb-violation,
.kb-days,
.kb-intro,
.start-step p,
.mod-guide__block,
.mod-guide__list,
.alert,
.stat-label,
.sidebar-stat,
.tab-btn,
.admin-tabs,
.login-card__subtitle,
.toast,
.status-badge,
.source-badge,
.priority-badge,
.kb-category,
.severity-badge {
    font-family: var(--font-body) !important;
    font-size: max(0.8125rem, var(--fs-small)) !important;
    line-height: 1.55 !important;
}

.complaint-meta,
.news-meta,
.profile-date,
.form-hint,
.stat-label {
    font-size: var(--fs-hint) !important;
}

.rules-table,
.complaints-table,
.punish-table,
.rules-table th,
.rules-table td,
.complaints-table th,
.complaints-table td {
    font-family: var(--font-body) !important;
    font-size: var(--fs-table) !important;
}

.tab-btn {
    font-size: var(--fs-btn-sm) !important;
    padding: 0.55rem 0.95rem !important;
}

.complaint-id,
.detail-block h4,
.detail-recent,
.verdict-cell,
.complaint-arrow {
    font-size: var(--fs-hint) !important;
}

.content-card__heading,
.shop-section-head__title--sm {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
}

/* Бан/мут — близость подписи и кнопки */
.punish-toolbar__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
}
.punish-toolbar__nick {
    flex: 1 1 220px;
    margin: 0 !important;
}
.punish-toolbar__card {
    flex: 0 0 auto;
    margin-bottom: 0;
    align-self: flex-end;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.punish-panel .form-group {
    margin-bottom: 0.75rem;
}
.punish-panel .punish-actions {
    margin-top: 0.65rem;
    gap: 0.6rem;
    align-items: center;
}
.punish-presets__label {
    font-size: var(--fs-label) !important;
}
.duration-chips {
    margin: 0.3rem 0 0.45rem;
}
.duration-chip {
    font-family: var(--font-body);
    font-size: var(--fs-btn-sm);
    padding: 0.4rem 0.75rem;
}
.duration-input {
    max-width: 140px;
    margin-top: 0.15rem;
}
.punish-mode-tabs {
    margin: 0.85rem 0 0.65rem;
}
.punish-subh {
    font-size: 1rem !important;
}
.punish-jump .neon-btn {
    width: 100%;
}

/* Общие карточки — чуть воздуха */
.admin-card,
.rules-card,
.kb-card,
.profile-card,
.content-card {
    font-size: var(--fs-body);
}
.admin-card p,
.rules-card p,
.kb-card p {
    font-size: var(--fs-small);
    line-height: 1.6;
}

/* Модалки */
.modal-content h3 {
    font-size: 1.05rem !important;
    font-family: var(--font-body) !important;
}
.modal-content,
.modal-content label,
.modal-content textarea,
.modal-content select,
.modal-content input {
    font-family: var(--font-body) !important;
    font-size: var(--fs-body) !important;
}

/* Не даём mobile снова ужать текст */
@media (max-width: 768px) {
    body { font-size: var(--fs-body) !important; }
    .neon-btn, .neon-btn-sm { font-size: var(--fs-btn-sm) !important; }
}

.duration-custom {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}
.duration-custom__hint {
    font-size: var(--fs-hint);
    color: var(--text-muted);
}

/* Панель управления аккаунтом / VK (профиль) */
.acct-panel {
    max-width: 520px;
    margin: 0 auto 2rem;
    padding: 1rem 1.1rem 1.15rem;
    background: linear-gradient(160deg, rgba(22, 18, 40, 0.92), rgba(12, 14, 28, 0.95));
    border: 1px solid rgba(62, 207, 190, 0.22);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.acct-panel__selected {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 0.7rem 0.9rem;
    margin-bottom: 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}
.acct-panel__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(46, 204, 113, 0.45);
}
.acct-panel__selected-text {
    flex: 1 1 140px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.acct-panel__label {
    font-size: var(--fs-hint);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.acct-panel__nick {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}
.acct-panel__meta {
    font-size: var(--fs-small);
    color: var(--text-muted);
    line-height: 1.35;
}
.acct-panel__meta--warn {
    color: #f0b429;
}
.acct-panel__pick {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: var(--fs-hint);
    color: var(--text-muted);
    margin-left: auto;
}
.acct-panel__select {
    min-width: 160px;
    max-width: 220px;
    padding: 0.45rem 0.65rem;
    font-family: var(--font-body);
    font-size: var(--fs-btn-sm);
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    opacity: 0.85;
}
.acct-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}
.acct-actions__form {
    display: contents;
}
.acct-actions__form--full {
    display: block;
    grid-column: 1 / -1;
}
.acct-actions__form--full .acct-btn {
    width: 100%;
}
.acct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 0.85rem;
    border: none;
    border-radius: 9px;
    font-family: var(--font-body);
    font-size: var(--fs-btn);
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
    line-height: 1.25;
}
.acct-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.06);
}
.acct-btn:active:not(:disabled) {
    transform: translateY(0);
}
.acct-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}
.acct-btn--ok {
    color: #fff;
    background: linear-gradient(180deg, #3dd87a 0%, #1f9d52 100%);
    box-shadow: 0 4px 14px rgba(46, 204, 113, 0.28);
}
.acct-btn--warn {
    color: #fff;
    background: linear-gradient(180deg, #ff6b5c 0%, #c0392b 100%);
    box-shadow: 0 4px 14px rgba(231, 76, 60, 0.28);
}
.acct-btn--mute {
    color: #1a1a22;
    background: linear-gradient(180deg, #e8e8ef 0%, #b8b8c4 100%);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}
.acct-btn--full {
    grid-column: 1 / -1;
}
.acct-pass {
    margin-top: 0.85rem;
    padding: 0.9rem;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}
.acct-pass__title {
    margin: 0 0 0.75rem;
    font-size: var(--fs-body);
    color: var(--text-primary);
}
.acct-pass__grid {
    display: grid;
    gap: 0.65rem;
}
.acct-pass__grid label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: var(--fs-label);
    color: var(--text-muted);
}
.acct-pass__grid input {
    padding: 0.55rem 0.7rem;
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--text-primary);
    background: rgba(10, 10, 20, 0.75);
    border: 1px solid rgba(62, 207, 190, 0.18);
    border-radius: 8px;
}
.acct-pass__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.85rem;
}
.acct-pass__actions .acct-btn {
    width: auto;
    min-width: 9rem;
    flex: 1 1 auto;
}
.acct-pass__hint,
.acct-panel__hint {
    margin: 0.75rem 0 0;
    font-size: var(--fs-hint);
    color: var(--text-muted);
    line-height: 1.5;
}
.acct-panel__hint code,
.acct-pass__hint code {
    font-size: 0.9em;
}
@media (max-width: 480px) {
    .acct-panel {
        padding: 0.85rem;
    }
    .acct-panel__pick {
        width: 100%;
        margin-left: 0;
    }
    .acct-panel__select {
        max-width: none;
        width: 100%;
    }
    .acct-actions {
        gap: 0.55rem;
    }
    .acct-btn {
        min-height: 2.6rem;
        font-size: var(--fs-btn-sm);
        padding: 0.55rem 0.65rem;
    }
}
