:root {
    --primary: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.6);
    --accent: #fbbf24;
    --accent-glow: rgba(251, 191, 36, 0.6);
    --bg-dark: #05040a;
    --glass: rgba(20, 18, 30, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* --------------------------------------------------------------------
       Единая карточная система (ЛК + админка).
       Раньше кабинет и админка рисовались по разным правилам: свои радиусы,
       свои границы, свои цвета таблиц — и выглядели как два разных продукта.
       Теперь обе части берут значения отсюда.
       -------------------------------------------------------------------- */
    --surface: #17131f;          /* фон карточки */
    --surface-sunken: rgba(0, 0, 0, 0.25); /* вложенные блоки, поля ввода */
    --line: rgba(255, 255, 255, 0.09);     /* граница карточки и шапки таблицы */
    --line-soft: rgba(255, 255, 255, 0.05);/* разделители строк таблицы */
    --radius: 12px;              /* карточка */
    --radius-sm: 8px;            /* вложенный элемент, кнопка, чип */
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
    --cell-y: 13px;              /* вертикальный ритм ячейки таблицы */

    /* Семантика статусов — отдельно от акцентного золота */
    --good: #2fbf62;
    --warn: var(--accent);
    --bad: #ff6b6b;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: #e0e0e0;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 0%, #1a1625 0%, #05040a 80%);
    min-height: 100vh;
}

h1, h2, h3, h4, .cinzel-font { font-family: 'Cinzel', serif; letter-spacing: 1px; }
.text-gold { color: var(--accent) !important; text-shadow: 0 0 15px var(--accent-glow); }
.text-neon { color: var(--primary) !important; text-shadow: 0 0 15px var(--primary-glow); }

.btn-epic {
    position: relative;
    padding: 12px 35px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    transition: 0.3s;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);

    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-epic:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    background: rgba(139, 92, 246, 0.1);
    color: #fff;
    transform: translateY(-2px);

    text-decoration: none !important;
}
.btn-gold { border-color: var(--accent); color: var(--accent); }
.btn-gold:hover { background: rgba(251, 191, 36, 0.1); border-color: var(--accent); box-shadow: 0 0 20px var(--accent-glow); color: #fff; }

header { background: rgba(5, 4, 10, 0.6); backdrop-filter: blur(12px); border-bottom: 1px solid var(--glass-border); padding: 15px 0; transition: 0.3s; }
header.scrolled { padding: 10px 0; background: rgba(5, 4, 10, 0.95); }
.nav-link { font-size: 13px; font-weight: 600; color: #aaa !important; margin: 0 10px; text-transform: uppercase; }
.nav-link:hover { color: #fff !important; text-shadow: 0 0 8px rgba(255,255,255,0.5); }

.hero-section {
    min-height: 100vh; background: url('https://w.wallhaven.cc/full/wq/wallhaven-wq8pm6.jpg') no-repeat center center;
    background-size: cover; position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, rgba(5,4,10,0.3) 0%, rgba(5,4,10,0.9) 90%); }
.hero-content { position: relative; z-index: 2; }

.feature-card { background: var(--glass); border: 1px solid var(--glass-border); padding: 40px 20px; border-radius: 4px; transition: 0.3s; height: 100%; }
.feature-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 10px 40px rgba(0,0,0,0.5); }

.classes-wrapper { display: flex; gap: 10px; height: 500px; }
.class-card { flex: 1; position: relative; border-radius: 4px; overflow: hidden; cursor: pointer; transition: 0.6s cubic-bezier(0.25, 1, 0.5, 1); border: 1px solid #333; }
.class-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; filter: brightness(0.5) grayscale(0.8); }
.class-info { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px; background: linear-gradient(to top, #000 0%, transparent 100%); transform: translateY(100%); transition: 0.6s; opacity: 0; }
.class-card:hover { flex: 4; border-color: var(--accent); }
.class-card:hover img { filter: brightness(1.1) grayscale(0); transform: scale(1.05); }
.class-card:hover .class-info { transform: translateY(0); opacity: 1; }

.ucp-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    height: 100%;
}

/* --------------------------------------------------------------------------
   Таблицы: единая сетка для кабинета и админки.
   Одинаковая высота строк, общая шапка, разделители из токенов.
   -------------------------------------------------------------------------- */
.table-glass { --bs-table-bg: transparent; --bs-table-color: #ccc; }

.table-glass th {
    padding: 0 10px var(--cell-y);
    border-bottom: 1px solid var(--line);
    color: var(--accent);
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 600;
    font-size: 12.5px;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* GridView рисует шапку ссылками сортировки, и они забирали синий цвет
   ссылок Bootstrap — из-за этого админские таблицы игнорировали общий стиль */
.table-glass th a,
.table-glass th a:hover,
.table-glass th a:focus {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted rgba(251, 191, 36, 0.45);
}

.table-glass th a:hover { border-bottom-color: var(--accent); }

/* Активная сортировка: стрелку рисует Yii через .asc/.desc */
.table-glass th.asc a,
.table-glass th.desc a { color: #fff; border-bottom-color: var(--accent); }

.table-glass td {
    padding: var(--cell-y) 10px;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: middle;
}

.table-glass tbody tr:last-child td { border-bottom: 0; }

/* Колонки с числами, датами и IP: выключка по разрядам, чтобы цифры
   выстраивались в столбик, а не «плавали» из-за разной ширины глифов */
.table-glass .col-date,
.table-glass .col-num,
.table-glass .font-monospace,
.num { font-variant-numeric: tabular-nums; }

.col-num { text-align: right; }

/* Дата — одной строкой: перенос «01.09.2026 / 22:38:54» ломал ритм строк */
.table-glass .col-date { white-space: nowrap; }

/* text-muted на тёмном фоне почти сливается — IP должен читаться */
.table-glass td.font-monospace,
.table-glass .font-monospace.text-muted { color: #8f88a3 !important; }

/* --------------------------------------------------------------------------
   Чипы статусов — один набор на весь проект.
   Bootstrap-бейджи (bg-success / bg-danger / …) переопределяются здесь,
   чтобы «в игре», «активен», «скрыт» выглядели одинаково в ЛК и в админке
   и не спорили с золотым акцентом темы.
   -------------------------------------------------------------------------- */
.badge.bg-success,
.badge.bg-danger,
.badge.bg-secondary,
.badge.bg-warning,
.badge.bg-dark {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    border: 1px solid;
    font-weight: 600;
    font-size: 11.5px;
    letter-spacing: 0.01em;
}

.badge.bg-success {
    color: var(--good) !important;
    background: rgba(47, 191, 98, 0.13) !important;
    border-color: rgba(47, 191, 98, 0.45);
}

.badge.bg-danger {
    color: var(--bad) !important;
    background: rgba(255, 107, 107, 0.13) !important;
    border-color: rgba(255, 107, 107, 0.42);
}

.badge.bg-warning {
    color: var(--accent) !important;
    background: rgba(251, 191, 36, 0.13) !important;
    border-color: rgba(251, 191, 36, 0.45);
}

.badge.bg-secondary,
.badge.bg-dark {
    color: #9a92ae !important;
    background: var(--surface-sunken) !important;
    border-color: var(--line);
}

/* --------------------------------------------------------------------------
   Скелетоны загрузки.
   Раньше при обновлении таблица гасла через opacity — контент дёргался и
   было неясно, идёт загрузка или данные закончились.
   -------------------------------------------------------------------------- */
.skel {
    display: block;
    height: 13px;
    border-radius: 5px;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(139, 92, 246, 0.18) 37%,
        rgba(255, 255, 255, 0.05) 63%);
    background-size: 400% 100%;
    animation: skelSweep 1.5s ease-in-out infinite;
}

.skel.w-70 { width: 70%; }
.skel.w-45 { width: 45%; }
.skel.w-30 { width: 30%; }

@keyframes skelSweep {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
    .skel { animation: none; }
}

.nav-pills .nav-link { color: #aaa; padding: 14px 20px; text-align: left; border-radius: 6px; margin-bottom: 5px; display: flex; align-items: center; border: 1px solid transparent; transition: 0.3s; }
.nav-pills .nav-link:hover { background: rgba(255,255,255,0.05); color: #fff; }
.nav-pills .nav-link.active { background: linear-gradient(90deg, rgba(139,92,246,0.2), transparent); border-left: 3px solid var(--primary); color: #fff; }

.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 10px; }
.inv-slot { height: 60px; background: rgba(0,0,0,0.3); border: 1px solid #333; display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; transition: 0.2s; }
.inv-slot.selected { border-color: var(--accent); box-shadow: inset 0 0 10px var(--accent-glow); }
.char-select-box { background: rgba(139, 92, 246, 0.1); border: 1px solid var(--primary); padding: 15px; border-radius: 8px; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; }
.pay-method { border: 1px solid #333; background: rgba(0,0,0,0.3); padding: 15px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: 0.2s; }
.pay-method.active { border-color: var(--accent); background: rgba(251, 191, 36, 0.1); }

.form-control, .form-select { background: rgba(0,0,0,0.4); border: 1px solid #444; color: #fff; }
.form-control:focus, .form-select:focus { background: rgba(0,0,0,0.6); border-color: var(--primary); color: #fff; box-shadow: none; }
.modal-content { background: #15121e; border: 1px solid var(--glass-border); border-radius: 12px; }
.modal-header { border-bottom: 1px solid rgba(255,255,255,0.1); }
.btn-close { filter: invert(1); }

.animate-up { animation: fadeInUp 1s ease forwards; opacity: 0; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.classes-container {
    display: flex;
    gap: 10px;
    height: 600px;
    width: 100%;
    margin-bottom: 40px;
}


.class-item {
    flex: 1;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s;
    background: #000;
}


.class-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    object-position: top center;

    filter: brightness(0.6) grayscale(0.8);
    transition: all 0.6s ease;
    transform: scale(1.0);
}


.class-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 1;
}


.class-content {
    width: 100%;
    transform: translateY(20px);
    opacity: 0.7;
    transition: all 0.5s 0.1s;
}

.class-role,
.class-desc,
.btn-class {
    opacity: 0;
    max-height: 0;
    transition: all 0.5s ease;
    overflow: hidden;
}

.class-item h3 {
    margin: 0;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    transform-origin: left bottom;
    transition: 0.3s;
}


.class-item:hover {
    flex: 4;
    border-color: var(--accent);
    z-index: 2;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.class-item:hover img {
    filter: brightness(1.1) grayscale(0);
    transform: scale(1.1);
}

.class-item:hover .class-content {
    transform: translateY(0);
    opacity: 1;
}

.class-item:hover h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--accent) !important;
}

.class-item:hover .class-role,
.class-item:hover .class-desc,
.class-item:hover .btn-class {
    opacity: 1;
    max-height: 200px;
}

.class-role {
    display: block;
    color: var(--primary);
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.class-desc {
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}


.btn-class {
    display: inline-block;
    padding: 8px 25px;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    background: rgba(0,0,0,0.6);
    transition: 0.3s;
}

.btn-class:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 15px var(--accent-glow);
}

@media (max-width: 991px) {
    .classes-container {
        flex-direction: column;
        height: auto;
    }
    .class-item {
        height: 120px;
        flex: none;
        width: 100%;
    }
    .class-item:hover {
        height: 400px;
        flex: none;
    }
    .class-item img {
        object-position: center 20%;
    }
}

.class-modal-bg {
    background: #0b0912;
    border: 1px solid var(--accent);
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    overflow: hidden;
}

.class-modal-img-wrapper {
    width: 100%;
    height: 100%;
    background: #000;
}

.class-modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.img-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 50%, #0b0912 100%);
    z-index: 1;
}

.class-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.spec-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.custom-pills .nav-link {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    margin-right: 10px;
    border-radius: 4px;
    padding: 8px 20px;
    font-size: 13px;
    text-transform: uppercase;
}

.custom-pills .nav-link.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    font-weight: bold;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.tree-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.tree-title {
    color: var(--primary);
    font-family: 'Cinzel', serif;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

@media (max-width: 991px) {
    .img-gradient-overlay {
        background: linear-gradient(to bottom, transparent 0%, #0b0912 100%);
    }
    .class-modal-img-wrapper {
        height: 300px;
    }
}

.login-separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: #6c757d;
    font-size: 0.75em;
    text-transform: uppercase;
    margin: 20px 0;
    font-family: 'Montserrat', sans-serif;
}
.login-separator::before,
.login-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.login-separator:not(:empty)::before { margin-right: .5em; }
.login-separator:not(:empty)::after { margin-left: .5em; }

.telegram-login-container {
    position: relative;
    margin-bottom: 1rem;
}

.btn-telegram {
    border-color: #0088cc;
    color: #33a9e1;
    background: rgba(0, 136, 204, 0.1);
    transition: all 0.3s ease;
}

.btn-telegram:hover {
    border-color: #33a9e1;
    background: rgba(0, 136, 204, 0.2);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 136, 204, 0.4);
}

.telegram-widget-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    overflow: hidden;
    cursor: pointer;
}

.telegram-widget-overlay iframe {
    width: 100% !important;
    height: 100% !important;
}

.form-control.text-center.is-invalid {
    background-image: none;
    padding-right: 0.75rem;
}
#header-avatar-link:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--primary-glow);
    border-color: var(--accent);
}

.char-card {
    transition: all 0.3s ease;
}
.char-card.offline {
    opacity: 0.6;
}
.char-card.offline img {
    filter: grayscale(1);
}
.char-card:hover {
    opacity: 1;
    transform: translateY(-5px);
    border-color: var(--primary) !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.server-status-wrapper {
    background: linear-gradient(90deg, #05040a 0%, #0f0b15 50%, #05040a 100%);
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 10;
}

@media (min-width: 992px) {
    .border-end-lg {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.version-timeline {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    margin-top: 10px;
}

.timeline-line {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 3px;
}

.timeline-progress {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: width 1s ease;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: #333;
    border-radius: 50%;
    border: 2px solid #111;
    cursor: pointer;
    transition: 0.3s;
    margin-top: -3px;
}

.timeline-dot.past {
    background: var(--primary);
    border-color: var(--primary);
}

.timeline-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent-glow);
    transform: scale(1.3);
}

.timeline-dot:hover {
    transform: scale(1.5);
}

#server-clock {
    font-variant-numeric: tabular-nums;
}

.inv-page-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: rgba(255,255,255,0.1);
    color: #aaa;
}
.inv-page-btn:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}
.pw-tooltip-close {
    display: none;
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border-radius: 50%;
    font-size: 20px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
}
.pw-tooltip-close:hover {
    background: #c0392b;
    border-color: #c0392b;
}

.tt-desc-content {
    max-height: 60vh;
}
@media (max-width: 768px) {
    .pw-tooltip {
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%);

        width: 90% !important;
        max-width: 350px;
        max-height: 80vh;
        overflow-y: auto;

        box-shadow: 0 0 0 1000px rgba(0,0,0,0.7);
        pointer-events: auto;
        padding-top: 40px;
    }
    .pw-tooltip-close {
        display: block;
    }

    .tt-desc-content {
        font-size: 14px;
    }
}

.legal-text h4 {
    color: var(--primary);
    margin-top: 25px;
    margin-bottom: 15px;
    font-family: 'Cinzel', serif;
}
.legal-text p, .legal-text li {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
}
.legal-text ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.hover-white:hover {
    color: #fff !important;
    text-decoration: underline !important;
}
.footer-disclaimer {
    display: inline-block;
    max-width: 700px;
    text-align: justify;
    text-align-last: center;
}
@media (max-width: 768px) {
    .footer-disclaimer {
        text-align: center;
        text-align-last: center;
    }
}

.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}
.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(251, 191, 36, 0.25);
}

.legal-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}
.legal-header h1 {
    font-size: 2.5rem;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}
.legal-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 20px auto 0;
    box-shadow: 0 0 15px var(--primary);
}

.custom-accordion .accordion-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    border-radius: 8px !important;
    overflow: hidden;
    transition: 0.3s;
}
.custom-accordion .accordion-item:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}
.custom-accordion .accordion-button {
    background: transparent;
    color: #fff;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: none;
    padding: 20px;
}
.custom-accordion .accordion-button:not(.collapsed) {
    color: var(--accent);
    background: rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}
.custom-accordion .accordion-button::after {
    filter: invert(1);
    opacity: 0.5;
}
.custom-accordion .accordion-button:not(.collapsed)::after {
    filter: invert(1) sepia(1) saturate(5) hue-rotate(0deg);
}
.custom-accordion .accordion-body {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 25px;
    background: rgba(0, 0, 0, 0.2);
}
.legal-icon {
    width: 40px;
    text-align: center;
    margin-right: 15px;
    color: var(--primary);
    font-size: 1.2rem;
}

.modern-footer {
    background: linear-gradient(to top, #05040a, #0f0b15);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 60px;
    padding-bottom: 30px;
    font-size: 0.9rem;
    color: #888;
}
.footer-logo {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
    display: inline-block;
}
.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
    display: block;
    margin-bottom: 8px;
}
.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}
.footer-disclaimer-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    font-size: 0.85rem;
    line-height: 1.5;
}
.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.8rem;
}

.page-content-wrapper {
    padding-top: 120px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

@media (max-width: 991px) {
    .page-content-wrapper {
        padding-top: 100px;
    }
}

.nav-pills .nav-link i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

div:where(.swal2-container) div:where(.swal2-popup) {
    background: #15121e !important;
    border: 1px solid rgba(251, 191, 36, 0.3); /* Gold border */
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    border-radius: 8px;
}

div:where(.swal2-container) h2:where(.swal2-title) {
    font-family: 'Cinzel', serif;
    color: #fbbf24 !important; /* Gold text */
    letter-spacing: 1px;
}

div:where(.swal2-container) div:where(.swal2-html-container) {
    font-family: 'Montserrat', sans-serif;
    color: #ccc !important;
}

div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm {
    background-color: #8b5cf6 !important; /* Primary Purple */
    font-family: 'Cinzel', serif;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm:focus {
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.5) !important;
}

div:where(.swal2-icon).swal2-success {
    border-color: #28a745;
    color: #28a745;
}

.swal-item-list {
    max-height: 220px;
    overflow-y: auto;
    text-align: left;
    padding: 10px;
    margin: 20px 0;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    background: rgba(0,0,0,0.3);
}

.swal-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.swal-item:last-child {
    border-bottom: none;
}

.swal-item-icon {
    font-size: 1.8rem;
    width: 45px;
    text-align: center;
}

.swal-item-info {
    margin-left: 15px;
}

.swal-item-name {
    color: #fff;
    font-weight: bold;
}

.swal-item-count {
    color: #999;
}
.list-group-item-action:hover {
    background-color: #2a2535 !important;
    color: #fbbf24 !important; /* Gold hover */
    border-color: #444 !important;
}

.list-group {
    max-height: 250px;
    overflow-y: auto;
}
.list-group::-webkit-scrollbar { width: 5px; }
.list-group::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }

/* ==========================================================================
   Переиспользуемый тёмный инпут (замена повторяющегося inline-style
   background: rgba(0,0,0,0.4); border-color:#444; color:#fff в модалках)
   ========================================================================== */
.input-dark {
    background: rgba(0, 0, 0, 0.4);
    border-color: #444;
    color: #fff;
}

/* ==========================================================================
   Правила из web/css/site.css (файл не подключался; сохранены живые правила
   стилизации ошибок формы входа)
   ========================================================================== */
#ajax-login-form .invalid-feedback {
    color: #ff6b6b;
    font-size: 0.85em;
    margin-top: -10px;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}
#ajax-login-form .form-control.is-invalid {
    border-color: #ff6b6b;
    background-image: none;
}

/* ==========================================================================
   Личный кабинет — Обзор / Журнал (перенесено из views/api/info.php)
   ========================================================================== */
.circular-chart { display: block; margin: 0 auto; max-width: 80%; max-height: 250px; }
.circle-bg { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 3.8; }
.circle { fill: none; stroke-width: 2.8; stroke-linecap: round; animation: progress 1s ease-out forwards; }
@keyframes progress { 0% { stroke-dasharray: 0 100; } }
.circular-chart.green .circle { stroke: #28a745; }
.circular-chart.orange .circle { stroke: #ffc107; }
.circular-chart.red .circle { stroke: #dc3545; }

.shimmer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    transform: skewX(-20deg) translateX(-150%);
    animation: shimmer 3s infinite; pointer-events: none;
}
@keyframes shimmer {
    0% { transform: skewX(-20deg) translateX(-150%); }
    20% { transform: skewX(-20deg) translateX(150%); }
    100% { transform: skewX(-20deg) translateX(150%); }
}

.shadow-gold { box-shadow: 0 0 15px rgba(251, 191, 36, 0.4); }
.btn-xs { padding: 2px 8px; font-size: 11px; }
.text-shadow-gold { text-shadow: 0 0 10px rgba(251, 191, 36, 0.4); }
.text-shadow-neon { text-shadow: 0 0 10px rgba(139, 92, 246, 0.4); }

#logs-table tbody tr { transition: background-color 0.2s; }
#logs-table tbody tr:hover { background-color: rgba(255, 255, 255, 0.03); }
#logs-body i { opacity: 0.9; width: 20px; text-align: center; display: inline-block; }

/* ==========================================================================
   Личный кабинет — Инвентарь / Веб-склад (перенесено из views/api/inventory.php)
   ========================================================================== */
.inv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}
.inv-slot {
    height: 60px;
    background: rgba(0,0,0,0.3);
    border: 1px solid #333;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: 0.2s;
}
.inv-slot.empty { opacity: 0.5; cursor: default; }
.inv-slot.has-item:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
    z-index: 2;
}
.inv-slot.selected {
    border-color: var(--accent);
    box-shadow: inset 0 0 10px var(--accent-glow);
    background: rgba(251, 191, 36, 0.1);
}
.inv-slot i {
    font-size: 1.8rem;
    color: var(--accent);
    filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.5));
}
.inv-count {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000;
    pointer-events: none;
}
.pw-tooltip {
    position: fixed;
    z-index: 9999;
    background: rgba(13, 13, 18, 0.98);
    border: 1px solid #666;
    padding: 15px;
    width: 320px;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.9);
    pointer-events: none;
}
.tt-desc-content {
    font-size: 13px;
    color: #ccc;
    line-height: 1.5;
}

/* ==========================================================================
   Личный кабинет — Магазин активности (перенесено из views/api/shop.php)
   ========================================================================== */
.custom-shop-tabs .nav-link {
    color: #888;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-family: 'Cinzel', serif;
    transition: 0.3s;
}
.custom-shop-tabs .nav-link:hover { color: #fff; }
.custom-shop-tabs .nav-link.active {
    color: var(--accent);
    background: transparent;
    border-bottom: 2px solid var(--accent);
}
.shop-item-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}
.shop-item-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.05);
}
.shop-item-icon-wrapper {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(251,191,36,0.1) 0%, rgba(0,0,0,0) 70%);
    position: relative;
}
.shop-item-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
    transition: 0.3s;
}
.shop-item-card:hover .shop-item-img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(251,191,36,0.4));
}
.shop-item-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 0 10px var(--primary-glow);
}
.shop-item-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc3545;
    color: white;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: bold;
}
.shop-item-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.shop-item-title {
    color: #fff;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}
.shop-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.shop-price-box { display: flex; flex-direction: column; }
.shop-price { color: var(--accent); font-weight: bold; font-size: 1.1rem; }
.shop-old-price { text-decoration: line-through; color: #666; font-size: 0.8rem; }
.btn-shop-buy {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.2s;
}
.btn-shop-buy:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* ==========================================================================
   Личный кабинет — Промокоды (перенесено из views/api/promo.php)
   ========================================================================== */
.promo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, rgba(0,0,0,0) 70%);
    z-index: 0;
    pointer-events: none;
    animation: pulseGlow 4s infinite alternate;
}
@keyframes pulseGlow {
    0% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.9); }
    100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}
.promo-input-wrapper .form-control {
    letter-spacing: 3px;
    font-size: 1.4rem;
    background: rgba(0,0,0,0.4) !important;
    border-color: #444;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
    height: 60px;
}
.promo-input-wrapper .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}
.promo-code-badge {
    font-family: 'Courier New', monospace;
    background: rgba(255,255,255,0.05);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px dashed #555;
    color: var(--accent);
    font-weight: bold;
    font-size: 0.9rem;
}
.reward-text { font-weight: 500; color: #fff; }

/* ==========================================================================
   Мобильная адаптивность личного кабинета и админки (sidebar-табы)
   ========================================================================== */
@media (max-width: 991px) {
    /* Sidebar не должен липнуть на весь экран на мобильном */
    .ucp-card.sticky-top {
        position: static !important;
        top: auto !important;
    }
    /* Горизонтальная прокрутка табов ЛК на узких экранах */
    #v-pills-tab,
    .custom-admin-nav {
        flex-direction: row !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        -webkit-overflow-scrolling: touch;
    }
    #v-pills-tab .nav-link,
    .custom-admin-nav .nav-link {
        white-space: nowrap;
        margin-bottom: 0;
    }
    #v-pills-tab .nav-link.text-danger {
        /* Кнопка выхода остаётся в ряду */
        margin-left: auto;
    }
}
/* ---- Мировой чат ---- */
.chat-feed { height: 520px; overflow-y: auto; padding: 8px 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line, #2a2535); border-radius: 12px; font-size: 13.5px; }
.chat-msg { padding: 4px 0; border-bottom: 1px dashed rgba(255, 255, 255, .05); line-height: 1.45; word-break: break-word; }
.chat-msg:last-child { border-bottom: 0; }
.chat-time { color: #6f6a85; font-variant-numeric: tabular-nums; font-size: 11.5px; margin-right: 8px; }
.chat-name { color: #fbbf24; font-weight: 600; margin-right: 6px; text-decoration: none; }
a.chat-name:hover { color: #fff; text-decoration: underline; }
.chat-text { color: #e6e1ff; }
.chat-msg.is-admin { cursor: pointer; border-radius: 8px; padding-left: 6px; padding-right: 30px; position: relative; }
.chat-msg.is-admin:hover { background: rgba(255, 255, 255, .04); }
.chat-msg.is-admin.is-open { background: rgba(139, 92, 246, .12); border: 1px solid rgba(139, 92, 246, .35); border-bottom: 1px solid rgba(139, 92, 246, .35); margin: 4px 0; padding-top: 8px; padding-bottom: 8px; }
.chat-hint { position: absolute; right: 10px; top: 6px; color: #5c5773; font-size: 12px; }
.chat-msg.is-open .chat-hint { display: none; }
.chat-actionbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(255, 255, 255, .12); cursor: default; }
.chat-actionbar .who { color: #fff; font-weight: 600; margin-right: 6px; }
.chat-actionbar .who .s { color: #9a92ae; font-weight: 400; font-size: 11.5px; }
.chat-actionbar .btn-xs { padding: 3px 10px; font-size: 12px; }
.chat-channel { color: #7dd3fc; margin-right: 6px; font-size: 12px; }
.chat-day { display: flex; align-items: center; gap: 10px; margin: 10px 0 6px; color: #9a92ae; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.chat-day::before, .chat-day::after { content: ''; flex: 1; border-top: 1px solid rgba(255, 255, 255, .08); }
.chat-day span { white-space: nowrap; }
.chat-msg.is-system .chat-channel { color: #a78bfa; }
.chat-msg.is-system .chat-name { color: #c4b5fd; }
.chat-msg.is-system .chat-text { color: #b8b3cf; font-style: italic; }
.chat-toggle { display: inline-flex; align-items: center; gap: 6px; color: #b8b3cf; font-size: 12.5px; cursor: pointer; user-select: none; margin: 0; white-space: nowrap; }
.chat-toggle input { margin: 0; cursor: pointer; }
.chat-announce { padding: 10px 12px; border: 1px dashed rgba(251, 191, 36, .35); border-radius: 12px; background: rgba(251, 191, 36, .04); }
.chat-announce .form-control, .chat-announce .form-select { background: rgba(0, 0, 0, .35); color: #fff; border-color: #444; }
.chat-announce .form-control:focus, .chat-announce .form-select:focus { border-color: #fbbf24; box-shadow: none; }
.chat-announce .form-select option { background: #1d1a26; color: #fff; }
.hero-online { position: relative; min-width: 160px; }
.hero-spark { display: block; width: 160px; height: 34px; margin: 6px auto 0; opacity: .9; }
.online-chart { padding: 12px 14px; border: 1px solid var(--line, #2a2535); border-radius: 12px; background: rgba(0, 0, 0, .25); }
.auction-filters .form-control, .auction-filters .form-select { background: rgba(0, 0, 0, .35); color: #fff; border-color: #444; }
.auction-filters .form-select option { background: #1d1a26; color: #fff; }
.auction-item { display: inline-flex; align-items: center; gap: 8px; cursor: help; }
.auction-item img { width: 28px; height: 28px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .12); object-fit: contain; background: rgba(0, 0, 0, .3); }
.auction-table td { font-size: 13.5px; }
.rating-nav { padding: 12px; position: sticky; top: 100px; }
.rating-tab { display: block; width: 100%; text-align: left; background: transparent; border: 0; color: #b8b3cf; padding: 7px 10px; border-radius: 8px; font-size: 13.5px; }
.rating-tab:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.rating-tab.active { background: rgba(251, 191, 36, .14); color: #fbbf24; font-weight: 600; }
.rating-table td, .rating-table th { vertical-align: middle; }
.rating-rank { font-variant-numeric: tabular-nums; color: #b8b3cf; white-space: nowrap; }
.rating-top-1 .rating-rank { color: #ffd700; } .rating-top-2 .rating-rank { color: #c0c0c0; } .rating-top-3 .rating-rank { color: #cd7f32; }
.rating-table tr.rating-me td { background: rgba(251, 191, 36, .10); box-shadow: inset 3px 0 0 #fbbf24; }
.rating-delta { font-size: 11px; margin-left: 4px; padding: 1px 5px; border-radius: 6px; background: rgba(255, 255, 255, .06); }
.rating-delta.up { color: #4ade80; } .rating-delta.down { color: #f87171; } .rating-delta.new { color: #7dd3fc; } .rating-delta.same { color: #6f6a85; }
.rating-value { font-variant-numeric: tabular-nums; color: #fff; }
.rating-value .coin { margin-left: 6px; }
.server-status { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line, #2a2535); background: rgba(0, 0, 0, .25); }
.server-status.is-countdown { border-color: rgba(251, 191, 36, .5); background: rgba(251, 191, 36, .06); }
.server-status.is-restarting { border-color: rgba(220, 53, 69, .5); background: rgba(220, 53, 69, .08); }
.server-steps li { margin-bottom: 6px; }
#restart-form .form-control { background: rgba(0, 0, 0, .35); color: #fff; border-color: #444; }
#restart-form .input-group-text { background: rgba(0, 0, 0, .35); color: #9a92ae; border-color: #444; }
#restart-presets .btn.active { background: #fbbf24; color: #1d1a26; border-color: #fbbf24; }

/* ============================== НОВОСТИ ============================== */
.news-card { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; transition: .3s; }
.news-card:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.news-cover { position: relative; display: block; aspect-ratio: 16 / 9; background: rgba(0,0,0,.35); overflow: hidden; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.news-card:hover .news-cover img { transform: scale(1.04); }
.news-cover-empty { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(251,191,36,.08), rgba(56,189,248,.08)); }
.news-pin { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fbbf24; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.news-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.news-category { font-weight: 600; text-transform: uppercase; letter-spacing: .5px; font-size: 11px; }
.news-title { line-height: 1.35; }
.news-title a:hover { color: var(--primary) !important; }
.news-article-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: 6px; border: 1px solid var(--glass-border); }
.news-body { color: #d7d3e2; line-height: 1.7; font-size: 1.02rem; }
.news-body h1, .news-body h2, .news-body h3, .news-body h4 { color: #fff; margin: 1.6em 0 .6em; font-family: 'Cinzel', serif; }
.news-body h1 { font-size: 1.6rem; } .news-body h2 { font-size: 1.35rem; } .news-body h3 { font-size: 1.15rem; }
.news-body p { margin-bottom: 1em; }
.news-body a { color: #fbbf24; }
.news-body ul, .news-body ol { padding-left: 1.4em; margin-bottom: 1em; }
.news-body li { margin-bottom: .3em; }
.news-body img { max-width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--glass-border); margin: .5em 0; }
.news-body blockquote { border-left: 3px solid var(--primary); padding: .4em 1em; margin: 1em 0; color: #bfb9cc; background: rgba(255,255,255,.03); }
.news-body code { background: rgba(255,255,255,.08); padding: .1em .35em; border-radius: 3px; font-size: .92em; }
.news-body pre { background: rgba(0,0,0,.4); padding: 12px 14px; border-radius: 6px; overflow-x: auto; }
.news-body pre code { background: none; padding: 0; }
.news-body table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95em; }
.news-body th, .news-body td { border: 1px solid var(--glass-border); padding: 6px 10px; }
.news-body th { background: rgba(255,255,255,.05); color: #fff; }
.news-body hr { border-color: var(--glass-border); }
.news-preview { background: rgba(0,0,0,.25); max-height: 420px; overflow-y: auto; font-size: .95rem; }
#news .news-card { height: 100%; }
