@import url("https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600;700;800&family=Russo+One&display=swap");

:root {
    --bg-1: #070b19;
    --bg-2: #0f1731;
    --panel: rgba(11, 18, 41, 0.78);
    --line: rgba(84, 130, 247, 0.28);
    --text: #f4f7ff;
    --muted: #9cb2e7;
    --accent: #ff7a3c;
    --accent-2: #ff5f39;
    --ok: #4fd78a;
    --danger: #ff7e7e;
    --site-max-width: 1140px;
}

* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(112, 166, 255, 0.8) rgba(8, 16, 40, 0.88);
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(10, 20, 44, 0.92), rgba(8, 16, 36, 0.92));
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(82, 140, 255, 0.95), rgba(67, 206, 255, 0.95));
    border-radius: 999px;
    border: 2px solid rgba(8, 16, 40, 0.96);
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(127, 176, 255, 0.98), rgba(95, 231, 255, 0.98));
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    position: relative;
    font-family: "Exo 2", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 16% 8%, rgba(37, 89, 199, 0.28), transparent 38%),
        radial-gradient(circle at 86% 12%, rgba(30, 168, 221, 0.2), transparent 42%),
        linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 100%);
}

.site-overlay {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.page-wrap {
    position: relative;
    z-index: 10;
    pointer-events: auto;
    isolation: isolate;
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 18px;
}

body > :not(.page-wrap) {
    pointer-events: none !important;
}

.page-wrap,
.page-wrap * {
    pointer-events: auto;
}

.panel::before,
.panel::after {
    pointer-events: none;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(0, 5, 20, 0.46);
    backdrop-filter: blur(9px);
}

.profile-panel.profile-menu-panel {
    margin-top: 12px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
}

.profile-menu-item {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 14px;
    border-right: 1px solid rgba(120, 160, 248, 0.3);
}

.profile-menu-item:last-child {
    border-right: 0;
}

.profile-menu-item span {
    color: #9eb5e8;
    font-size: 14px;
}

.profile-menu-item b {
    color: #f5f9ff;
    font-size: 18px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-menu-item:nth-child(3) b,
.profile-menu-item:nth-child(4) b {
    font-family: "Russo One", "Exo 2", sans-serif;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
}

@media (max-width: 1120px) {
    .profile-panel.profile-menu-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .profile-menu-item {
        border-right: 0;
        border-bottom: 1px solid rgba(120, 160, 248, 0.3);
        padding-bottom: 8px;
    }

    .profile-menu-item:nth-child(3),
    .profile-menu-item:nth-child(4) {
        border-bottom: 0;
        padding-bottom: 0;
    }
}

@media (max-width: 660px) {
    .profile-panel.profile-menu-panel {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .profile-menu-item {
        border-bottom: 1px solid rgba(120, 160, 248, 0.3);
        padding: 0 0 8px;
    }

    .profile-menu-item:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    width: 198px;
    max-width: 100%;
    height: auto;
    display: block;
}

.menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 21;
}

.menu .menu-link {
    text-decoration: none;
    color: #d9e4ff;
    font-size: 15px;
    font-weight: 700;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    pointer-events: auto;
}

.menu .menu-link:hover {
    border-color: rgba(105, 148, 255, 0.45);
    background: rgba(23, 35, 71, 0.7);
}

.menu .menu-link.active {
    color: #fff;
    border-color: rgba(255, 149, 111, 0.44);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.menu .lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    border: 1px solid rgba(103, 151, 255, 0.44);
    background: rgba(10, 18, 40, 0.8);
    padding: 3px;
}

.menu .lang-switch a {
    text-decoration: none;
    color: #c4d8ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 7px 10px;
    line-height: 1;
    transition: all 0.2s ease;
    cursor: pointer;
    pointer-events: auto;
}

.menu .lang-switch a:hover {
    color: #ffffff;
    background: rgba(47, 77, 145, 0.6);
}

.menu .lang-switch a.active {
    color: #ffffff;
    background: linear-gradient(135deg, #3f8fff, #31c7ff);
    border-color: rgba(182, 224, 255, 0.35);
}

.download-btn,
button {
    appearance: none;
    border: 0;
    text-decoration: none;
    color: #fff;
    font-family: "Russo One", "Exo 2", sans-serif;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 11px 15px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border: 1px solid rgba(255, 190, 161, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    pointer-events: auto;
}

.download-btn:hover,
button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(255, 103, 58, 0.38);
}

.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #cfe0ff;
    font-weight: 700;
    padding: 11px 15px;
    border-radius: 10px;
    border: 1px solid rgba(113, 153, 255, 0.42);
    background: rgba(14, 26, 55, 0.72);
    transition: all 0.2s ease;
    pointer-events: auto;
    cursor: pointer;
}

.ghost-btn:hover {
    color: #fff;
    border-color: rgba(151, 183, 255, 0.7);
    background: rgba(28, 42, 80, 0.86);
}

.hero {
    margin-top: 18px;
    padding: 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 286px;
    gap: 14px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 84% -10%, rgba(120, 176, 255, 0.22), transparent 44%),
        radial-gradient(circle at 4% 112%, rgba(86, 147, 255, 0.18), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-tag {
    margin: 0;
    color: #87b8ff;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 13px;
}

.hero h1 {
    margin: 8px 0 10px;
    font-family: "Russo One", "Exo 2", sans-serif;
    font-weight: 400;
    font-size: 46px;
    letter-spacing: 0.03em;
}

.hero p {
    margin: 0;
    max-width: 600px;
    color: var(--muted);
    line-height: 1.55;
    font-size: 17px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.hero-badges {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(138, 177, 255, 0.42);
    background: rgba(11, 22, 49, 0.7);
    color: #cde0ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 10px;
}

.hero-side {
    display: grid;
    gap: 10px;
}

.hero-box {
    border: 1px solid rgba(107, 151, 255, 0.38);
    background: rgba(12, 21, 46, 0.8);
    padding: 14px;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(210, 226, 255, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-box:hover {
    transform: translateY(-1px);
    border-color: rgba(145, 184, 255, 0.64);
    background: rgba(19, 34, 72, 0.86);
}

.hero-box span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 4px;
}

.hero-box b {
    font-family: "Russo One", "Exo 2", sans-serif;
    font-weight: 400;
    font-size: 22px;
}

.portal-highlights {
    margin-top: 14px;
    padding: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 16px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.portal-highlights::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 95% 10%, rgba(114, 168, 255, 0.24), transparent 44%);
    pointer-events: none;
    z-index: 0;
}

.portal-highlights > * {
    position: relative;
    z-index: 1;
}

.portal-highlights-intro h2 {
    margin: 8px 0 10px;
    font-family: "Russo One", "Exo 2", sans-serif;
    font-weight: 400;
    font-size: 34px;
    line-height: 1.1;
}

.portal-highlights-tag {
    margin: 0;
    color: #8eb8ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.portal-highlights-intro p {
    margin: 0;
    color: #b8cdf0;
    font-size: 16px;
    line-height: 1.5;
    max-width: 520px;
}

.portal-highlights-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.portal-highlights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.portal-feature-card {
    border-radius: 12px;
    border: 1px solid rgba(120, 163, 255, 0.34);
    background: linear-gradient(160deg, rgba(18, 33, 72, 0.82), rgba(10, 18, 40, 0.88));
    padding: 12px 13px;
    box-shadow: inset 0 0 0 1px rgba(218, 232, 255, 0.06);
}

.portal-feature-card h3 {
    margin: 0;
    color: #f1f7ff;
    font-size: 18px;
    line-height: 1.2;
}

.portal-feature-card p {
    margin: 6px 0 0;
    color: #adbfdf;
    font-size: 14px;
    line-height: 1.45;
}

.game-activities {
    margin-top: 14px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.game-activities::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 6% 0%, rgba(109, 165, 255, 0.2), transparent 36%),
        radial-gradient(circle at 100% 100%, rgba(63, 126, 255, 0.16), transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.game-activities > * {
    position: relative;
    z-index: 1;
}

.game-activities-head h2 {
    margin: 8px 0 10px;
    font-family: "Russo One", "Exo 2", sans-serif;
    font-weight: 400;
    font-size: 36px;
    line-height: 1.1;
}

.game-activities-tag {
    margin: 0;
    color: #8eb8ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.game-activities-head p {
    margin: 0;
    color: #b8cdf0;
    font-size: 15px;
    line-height: 1.5;
    max-width: 760px;
}

.game-activities-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.game-activity-card {
    border-radius: 14px;
    border: 1px solid rgba(114, 159, 253, 0.36);
    background: linear-gradient(165deg, rgba(16, 31, 67, 0.9), rgba(10, 18, 42, 0.9));
    box-shadow: inset 0 0 0 1px rgba(216, 231, 255, 0.06);
    padding: 14px;
    display: grid;
    gap: 10px;
}

.game-activity-card h3 {
    margin: 0;
    color: #f2f8ff;
    font-size: 22px;
    line-height: 1.18;
}

.game-activity-card p {
    margin: 0;
    color: #afc4e4;
    font-size: 14px;
    line-height: 1.45;
}

.game-activity-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 7px;
}

.game-activity-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e0ebff;
    font-size: 14px;
    line-height: 1.3;
}

.game-activity-list li::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffb56d, #54b6ff);
    box-shadow: 0 0 12px rgba(106, 170, 255, 0.48);
    flex: 0 0 auto;
}

.game-activity-list-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
}

.game-activity-note {
    margin-top: 2px;
    color: #8eb0dd;
    font-size: 13px;
    font-style: italic;
}

.arena-card {
    border-color: rgba(255, 165, 112, 0.4);
    background: linear-gradient(165deg, rgba(43, 24, 48, 0.7), rgba(11, 18, 42, 0.92));
}

.arena-points {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.arena-points li {
    border-radius: 10px;
    border: 1px solid rgba(121, 164, 255, 0.28);
    background: rgba(11, 21, 47, 0.7);
    color: #d7e6ff;
    font-size: 13px;
    line-height: 1.4;
    padding: 8px 10px;
}

.notice {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid transparent;
    font-weight: 600;
}

.notice.success {
    color: #d8ffea;
    border-color: rgba(92, 215, 147, 0.42);
    background: rgba(22, 73, 51, 0.55);
}

.notice.error {
    color: #ffe1e1;
    border-color: rgba(255, 126, 126, 0.44);
    background: rgba(95, 22, 36, 0.58);
}

.news-section,
.support-section,
.form-panel,
.profile-panel,
.no-rights {
    margin-top: 16px;
    padding: 16px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.section-head h2,
.support-section h2,
.form-panel h2,
.profile-panel h2,
.no-rights h2 {
    margin: 0;
    font-family: "Russo One", "Exo 2", sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.section-head a {
    color: #86b3ff;
    text-decoration: none;
    font-weight: 700;
}

.section-head a:hover {
    text-decoration: underline;
}

.empty-news {
    border: 1px dashed rgba(126, 165, 255, 0.4);
    padding: 15px;
    color: #c7d7ff;
    background: rgba(14, 22, 46, 0.7);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.news-card {
    position: relative;
    overflow: hidden;
    border-radius: 13px;
    border: 1px solid rgba(105, 148, 255, 0.34);
    background: linear-gradient(160deg, rgba(20, 32, 70, 0.85), rgba(11, 18, 39, 0.88));
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.news-card[data-news-open] {
    cursor: pointer;
}

.news-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 92% -8%, rgba(108, 167, 255, 0.22), transparent 40%);
    pointer-events: none;
}

.news-card > * {
    position: relative;
    z-index: 1;
}

.news-card:hover {
    transform: translateY(-2px);
    border-color: rgba(143, 182, 255, 0.64);
    box-shadow: 0 14px 26px rgba(2, 10, 30, 0.42);
}

.news-card[data-news-open]:focus-visible {
    outline: none;
    border-color: rgba(171, 205, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(96, 155, 255, 0.3), 0 16px 28px rgba(3, 11, 31, 0.45);
}

.news-card h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    color: #f6fbff;
}

.news-card p {
    margin: 0;
    color: #d2ddff;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    color: #94abd9;
    font-size: 13px;
    padding-top: 8px;
    border-top: 1px solid rgba(106, 146, 233, 0.22);
}

.news-modal {
    position: fixed;
    inset: 0;
    z-index: 1550;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.news-modal.is-open {
    display: flex;
}

body.news-modal-open {
    overflow: hidden;
}

.news-modal-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 14%, rgba(93, 150, 255, 0.2), rgba(6, 12, 31, 0.9) 58%), rgba(5, 10, 26, 0.8);
    backdrop-filter: blur(7px);
}

.news-modal-dialog {
    position: relative;
    width: min(820px, 100%);
    max-height: calc(100vh - 38px);
    margin: 0;
    padding: 16px;
    display: grid;
    gap: 10px;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(122, 166, 252, 0.48);
    background: linear-gradient(165deg, rgba(11, 24, 54, 0.96), rgba(7, 14, 34, 0.95));
    box-shadow: 0 24px 58px rgba(1, 7, 22, 0.7), inset 0 0 0 1px rgba(202, 223, 255, 0.1);
}

.news-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.news-modal-head h2 {
    margin: 0;
    font-family: "Russo One", "Exo 2", sans-serif;
    font-weight: 400;
    font-size: clamp(24px, 3.2vw, 34px);
    line-height: 1.1;
    color: #f4f9ff;
    text-shadow: 0 6px 20px rgba(88, 145, 255, 0.24);
    word-break: break-word;
}

.news-modal-close {
    width: 40px;
    min-width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(162, 198, 255, 0.58);
    background: linear-gradient(155deg, rgba(25, 43, 88, 0.96), rgba(12, 22, 53, 0.95));
    color: #e8f2ff;
    font-size: 24px;
    line-height: 1;
    padding: 0;
}

.news-modal-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    color: #9db8ea;
    font-size: 13px;
    padding: 4px 0 8px;
    border-bottom: 1px solid rgba(108, 149, 235, 0.26);
}

.news-modal-body {
    min-height: 0;
    overflow: auto;
    color: #d7e4ff;
    line-height: 1.6;
    font-size: 15px;
    padding-right: 4px;
}

.support-section p {
    margin: 12px 0;
    color: #d4e0ff;
}

.support-section ul {
    margin: 0;
    padding-left: 18px;
    color: #c0d2ff;
    line-height: 1.7;
}

.cabinet-layout {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 14px;
}

.cabinet-shell {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 14px;
    position: relative;
    z-index: 15;
    pointer-events: auto;
    align-items: start;
}

.cabinet-shell.cabinet-shell-auth {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 24px;
}

.cabinet-shell.cabinet-shell-auth .cabinet-main {
    width: 100%;
}

.cabinet-shell.cabinet-shell-auth .cabinet-layout {
    margin-top: 0;
    grid-template-columns: minmax(0, 1fr);
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.cabinet-shell.cabinet-shell-auth .form-panel {
    margin-top: 0;
}

.auth-panel {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid rgba(122, 168, 255, 0.46);
    background: linear-gradient(168deg, rgba(14, 27, 62, 0.96), rgba(8, 15, 34, 0.96));
    box-shadow: 0 24px 46px rgba(1, 7, 21, 0.55), inset 0 0 0 1px rgba(210, 228, 255, 0.08);
}

.auth-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 88% -6%, rgba(124, 178, 255, 0.28), transparent 44%),
        radial-gradient(circle at -10% 105%, rgba(76, 143, 255, 0.2), transparent 42%);
    pointer-events: none;
}

.auth-panel > * {
    position: relative;
    z-index: 1;
}

.auth-panel-intro {
    margin-bottom: 18px;
}

.auth-panel-kicker {
    margin: 0 0 6px;
    color: #91baff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.19em;
    text-transform: uppercase;
}

.auth-panel h2 {
    margin: 0;
    font-size: 38px;
    line-height: 1.05;
}

.auth-panel-note {
    margin: 10px 0 0;
    color: #b7cbee;
    font-size: 14px;
    line-height: 1.45;
    max-width: 660px;
}

.auth-panel-body {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.8fr);
    gap: 16px;
    align-items: start;
}

.auth-panel-forms {
    min-width: 0;
}

.auth-panel-aside {
    border-radius: 14px;
    border: 1px solid rgba(121, 165, 255, 0.36);
    background: linear-gradient(170deg, rgba(18, 33, 74, 0.82), rgba(10, 18, 44, 0.86));
    box-shadow: inset 0 0 0 1px rgba(202, 223, 255, 0.08);
    padding: 14px;
    display: grid;
    gap: 11px;
    position: relative;
    overflow: hidden;
}

.auth-panel-aside::before {
    content: "";
    position: absolute;
    inset: -30% -10% auto;
    height: 58%;
    background: radial-gradient(circle at 50% 0%, rgba(120, 176, 255, 0.25), rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.auth-panel-aside > * {
    position: relative;
    z-index: 1;
}

.auth-panel-aside h3 {
    margin: 0;
    color: #eff5ff;
    font-family: "Russo One", "Exo 2", sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.1;
}

.auth-panel-aside p {
    margin: 0;
    color: #b4c8ec;
    font-size: 13px;
    line-height: 1.45;
}

.auth-feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.auth-feature-list li {
    border-radius: 10px;
    border: 1px solid rgba(118, 160, 250, 0.28);
    background: rgba(9, 17, 39, 0.7);
    padding: 10px;
    display: grid;
    gap: 4px;
}

.auth-feature-list li b {
    color: #ebf4ff;
    font-size: 13px;
}

.auth-feature-list li span {
    color: #a9bfdf;
    font-size: 12px;
    line-height: 1.35;
}

.auth-panel-tip {
    border-radius: 10px;
    border: 1px dashed rgba(141, 181, 255, 0.5);
    background: rgba(12, 22, 51, 0.68);
    padding: 10px 11px;
    display: grid;
    gap: 3px;
}

.auth-panel-tip b {
    color: #dcedff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-panel-tip span {
    color: #b6cced;
    font-size: 12px;
    line-height: 1.35;
}

.auth-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(117, 159, 248, 0.36);
    background: rgba(8, 15, 33, 0.86);
    margin-bottom: 14px;
}

.auth-switch-btn {
    min-width: 0;
    border-radius: 10px;
    border: 1px solid rgba(137, 175, 255, 0.18);
    background: rgba(20, 35, 74, 0.34);
    color: #c8dbff;
    font-family: "Exo 2", "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    padding: 10px 12px;
    box-shadow: none;
}

.auth-switch-btn:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(155, 192, 255, 0.52);
    background: rgba(30, 48, 92, 0.7);
    color: #f0f6ff;
}

.auth-switch-btn.is-active {
    border-color: rgba(255, 181, 145, 0.58);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #ffffff;
}

.auth-form {
    display: none;
    gap: 10px;
    opacity: 0;
    transform: translateY(6px);
}

.auth-form.is-active {
    display: grid;
    animation: authFadeIn 0.28s ease forwards;
}

.auth-form input {
    background: rgba(10, 18, 40, 0.92);
}

.auth-form button[type="submit"] {
    margin-top: 4px;
}

.auth-captcha-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.auth-captcha-image {
    width: 100%;
    max-width: 210px;
    height: 52px;
    border-radius: 10px;
    border: 1px solid rgba(114, 156, 244, 0.48);
    background: rgba(8, 16, 35, 0.9);
}

.auth-captcha-refresh {
    min-width: 116px;
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(128, 168, 255, 0.46);
    background: rgba(20, 35, 73, 0.74);
    color: #d5e6ff;
    font-family: "Exo 2", "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    cursor: pointer;
}

.auth-captcha-refresh:hover {
    border-color: rgba(167, 201, 255, 0.76);
    background: rgba(30, 52, 103, 0.86);
    color: #f2f8ff;
}

.auth-form input[name="login_captcha"],
.auth-form input[name="register_captcha"] {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 700;
}

.auth-alt-btn {
    min-width: 0;
    width: 100%;
    border-radius: 10px;
    border: 1px dashed rgba(126, 170, 255, 0.56);
    background: rgba(14, 26, 57, 0.72);
    color: #b7cefb;
    font-family: "Exo 2", "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
    padding: 10px 12px;
    box-shadow: none;
}

.auth-alt-btn:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(156, 196, 255, 0.76);
    background: rgba(20, 37, 76, 0.88);
    color: #f3f8ff;
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cabinet-sidebar {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 16;
    pointer-events: auto;
    align-self: start;
}

.cabinet-side-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 10px 8px 14px;
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid rgba(110, 153, 255, 0.24);
    background: linear-gradient(170deg, rgba(14, 25, 53, 0.92), rgba(9, 18, 39, 0.84));
    box-shadow: inset 0 0 0 1px rgba(181, 210, 255, 0.08);
}

.cabinet-side-logo:hover {
    border-color: rgba(138, 178, 255, 0.56);
    background: linear-gradient(170deg, rgba(19, 35, 74, 0.95), rgba(11, 22, 47, 0.9));
}

.cabinet-side-logo-mark {
    color: #9fc0ff;
    font-family: "Russo One", "Exo 2", sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.24em;
    line-height: 1;
    text-transform: uppercase;
}

.cabinet-side-logo-name {
    color: #f7fbff;
    font-family: "Russo One", "Exo 2", sans-serif;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 0 16px rgba(124, 178, 255, 0.48);
    white-space: nowrap;
}

.cabinet-side-menu {
    display: grid;
    gap: 8px;
}

.cabinet-side-menu a {
    display: block;
    text-decoration: none;
    color: #dbe6ff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    border: 1px solid rgba(110, 153, 255, 0.25);
    background: rgba(10, 20, 45, 0.78);
    padding: 10px 11px;
    transition: all 0.2s ease;
    pointer-events: auto;
    cursor: pointer;
}

.cabinet-side-menu a:hover {
    border-color: rgba(127, 168, 255, 0.6);
    background: rgba(22, 35, 73, 0.85);
}

.cabinet-side-menu a.active {
    color: #fff;
    border-color: rgba(255, 169, 128, 0.5);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.cabinet-side-balance {
    margin-top: auto;
    border: 1px solid rgba(89, 214, 142, 0.35);
    background: rgba(17, 70, 51, 0.42);
    padding: 12px;
}

.cabinet-side-balance span {
    display: block;
    color: #bdebd1;
    font-size: 13px;
    margin-bottom: 6px;
}

.cabinet-side-balance b {
    color: #e7fff2;
    font-family: "Russo One", "Exo 2", sans-serif;
    font-weight: 400;
    font-size: 26px;
}

.cabinet-side-actions {
    display: grid;
    gap: 8px;
}

.cabinet-side-action {
    display: block;
    text-decoration: none;
    text-align: center;
    color: #eef4ff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    border: 1px solid rgba(130, 167, 255, 0.32);
    background: rgba(16, 27, 56, 0.8);
    padding: 10px 12px;
    transition: all 0.2s ease;
    pointer-events: auto;
    cursor: pointer;
}

.cabinet-side-action:hover {
    border-color: rgba(158, 190, 255, 0.65);
    background: rgba(27, 42, 84, 0.88);
}

.cabinet-side-action.create-news {
    border-color: rgba(255, 171, 131, 0.44);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
}

.cabinet-side-action.logout {
    border-color: rgba(255, 128, 128, 0.42);
    background: rgba(99, 27, 40, 0.58);
}

.cabinet-main .cabinet-layout {
    margin-top: 0;
}

.form-panel form {
    display: grid;
    gap: 10px;
}

.auth-panel .auth-form {
    display: none;
}

.auth-panel .auth-form.is-active {
    display: grid;
}

.news-editor-panel {
    grid-column: 1 / -1;
}

label {
    color: #bdd0ff;
    font-size: 14px;
    font-weight: 600;
}

input,
textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(112, 149, 244, 0.4);
    background: rgba(8, 15, 34, 0.8);
    color: #f2f6ff;
    font: inherit;
    padding: 11px 12px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: rgba(141, 177, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(95, 142, 255, 0.2);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

.profile-panel p,
.no-rights p {
    margin: 8px 0;
    color: #d9e4ff;
}

.coin-inline-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: -4px;
    margin-right: 6px;
}

.character-panel {
    margin-top: 16px;
    padding: 22px;
    grid-column: 1 / -1;
    width: 100%;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 82% -18%, rgba(98, 162, 255, 0.22), transparent 44%),
        radial-gradient(circle at -16% 112%, rgba(48, 118, 255, 0.12), transparent 50%),
        linear-gradient(160deg, rgba(18, 35, 78, 0.95), rgba(8, 16, 38, 0.96));
}

.character-panel::before {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    right: -220px;
    top: -270px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(107, 176, 255, 0.28), transparent 72%);
    pointer-events: none;
}

.character-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(140deg, rgba(255, 255, 255, 0.07), transparent 24%),
        repeating-linear-gradient(128deg, rgba(255, 255, 255, 0.015) 0 10px, transparent 10px 22px);
    pointer-events: none;
}

.character-panel h2 {
    margin: 0;
    font-family: "Russo One", "Exo 2", sans-serif;
    font-weight: 400;
    font-size: clamp(34px, 4vw, 52px);
    letter-spacing: 0.015em;
    line-height: 0.92;
    color: #f6f9ff;
    text-shadow: 0 10px 30px rgba(48, 118, 255, 0.28);
    position: relative;
}

.character-panel h2::after {
    content: "";
    display: block;
    width: 92px;
    height: 3px;
    border-radius: 999px;
    margin-top: 10px;
    background: linear-gradient(90deg, #ff8e4c 0%, #69bfff 100%);
    box-shadow: 0 0 20px rgba(92, 165, 255, 0.42);
}

.character-panel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.character-picker {
    min-width: 250px;
    display: grid;
    gap: 6px;
    justify-items: end;
}

.character-picker label {
    color: #9ec3ff;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.character-picker select {
    min-width: 250px;
    border-radius: 12px;
    border: 1px solid rgba(122, 170, 255, 0.54);
    background: linear-gradient(160deg, rgba(12, 21, 48, 0.92), rgba(7, 13, 31, 0.92));
    color: #edf3ff;
    font: inherit;
    padding: 10px 13px;
    box-shadow: inset 0 1px 0 rgba(197, 219, 255, 0.14);
}

.character-picker select:focus {
    outline: none;
    border-color: rgba(161, 197, 255, 0.92);
    box-shadow: 0 0 0 3px rgba(95, 142, 255, 0.2), inset 0 1px 0 rgba(215, 232, 255, 0.2);
}

.character-picker noscript button {
    margin-top: 6px;
}

.characters-empty {
    margin: 16px 0 0;
    color: #cfe0ff;
}

.character-spotlight {
    margin-top: 18px;
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 16px;
    position: relative;
    z-index: 1;
}

.character-main-card {
    border-radius: 20px;
    border: 1px solid rgba(140, 186, 255, 0.46);
    background:
        radial-gradient(circle at 88% 9%, rgba(130, 178, 255, 0.2), transparent 48%),
        linear-gradient(156deg, rgba(35, 59, 113, 0.94), rgba(15, 27, 61, 0.96));
    padding: 18px;
    display: grid;
    gap: 11px;
    align-content: start;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 18px 34px rgba(3, 11, 33, 0.46), inset 0 0 0 1px rgba(211, 228, 255, 0.08);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.character-main-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 38%);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

.character-main-card::after {
    content: "";
    position: absolute;
    inset: auto 16px 0 16px;
    height: 1px;
    background: linear-gradient(90deg, rgba(130, 178, 255, 0), rgba(130, 178, 255, 0.75), rgba(130, 178, 255, 0));
    pointer-events: none;
    z-index: 0;
}

.character-main-card:hover {
    transform: translateY(-1px);
    border-color: rgba(183, 214, 255, 0.75);
    box-shadow: 0 22px 40px rgba(3, 12, 35, 0.5), inset 0 0 0 1px rgba(214, 232, 255, 0.14);
}

.character-main-card > * {
    position: relative;
    z-index: 1;
}

.character-main-label {
    margin: 0;
    color: #bdd5ff;
    font-size: 11px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    font-weight: 700;
}

.character-main-card h3 {
    margin: 0;
    font-family: "Exo 2", "Russo One", sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: 0.015em;
    line-height: 0.94;
    color: #f7fbff;
    text-shadow: 0 10px 26px rgba(98, 152, 255, 0.28);
    word-break: break-word;
}

.character-main-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 2px solid rgba(255, 173, 110, 0.92);
    background: radial-gradient(circle at 28% 24%, rgba(151, 190, 255, 0.86), rgba(30, 47, 98, 0.98));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 28px rgba(4, 10, 30, 0.48), 0 0 26px rgba(95, 151, 255, 0.34), inset 0 0 0 3px rgba(255, 255, 255, 0.09);
}

.character-main-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.character-main-avatar span {
    font-family: "Exo 2", "Russo One", sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    color: #ffffff;
}

.character-avatar-upload {
    display: grid;
    gap: 7px;
}

.character-avatar-upload label {
    color: #b2c8f0;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.character-avatar-upload input[type="file"] {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(112, 160, 248, 0.34);
    background: linear-gradient(155deg, rgba(13, 25, 56, 0.84), rgba(8, 15, 34, 0.88));
    color: #d7e6ff;
    font-size: 11px;
    padding: 7px 9px;
    box-shadow: inset 0 1px 0 rgba(186, 213, 255, 0.09);
}

.character-avatar-upload input[type="file"]::file-selector-button {
    border: 1px solid rgba(255, 191, 152, 0.42);
    border-radius: 8px;
    background: linear-gradient(135deg, #ff7d43, #ff5f3b);
    color: #fff;
    font-family: "Russo One", "Exo 2", sans-serif;
    font-size: 10px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 6px 10px;
    margin-right: 10px;
    cursor: pointer;
}

.character-main-meta {
    margin: 0;
    display: grid;
    gap: 7px;
}

.character-main-meta div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 11px;
    border: 1px solid rgba(117, 162, 252, 0.28);
    border-radius: 10px;
    background: linear-gradient(160deg, rgba(15, 28, 60, 0.86), rgba(9, 17, 39, 0.8));
    box-shadow: inset 0 1px 0 rgba(192, 218, 255, 0.08);
}

.character-main-meta dt {
    margin: 0;
    color: #b4caef;
    font-size: 11px;
}

.character-main-meta dd {
    margin: 0;
    color: #f8fbff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.01em;
    text-align: right;
    text-shadow: 0 2px 8px rgba(85, 145, 255, 0.14);
}

.character-premium-value {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.premium-inline-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex: 0 0 auto;
}

.character-metric-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-content: start;
}

.character-metric {
    --metric-tint: 130, 178, 255;
    min-height: 68px;
    border-radius: 12px;
    border: 1px solid rgba(var(--metric-tint), 0.54);
    background:
        radial-gradient(circle at 104% 50%, rgba(var(--metric-tint), 0.18), transparent 46%),
        linear-gradient(162deg, rgba(14, 24, 52, 0.96), rgba(8, 14, 34, 0.95));
    padding: 11px 13px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 10px 18px rgba(2, 10, 30, 0.34), inset 0 0 0 1px rgba(218, 233, 255, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.character-metric::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 6px;
    background: rgba(var(--metric-tint), 0.95);
    box-shadow: 0 0 16px rgba(var(--metric-tint), 0.52);
    z-index: 0;
}

.character-metric::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 44%);
    pointer-events: none;
    z-index: 0;
}

.character-metric:hover {
    transform: translateY(-1px);
    border-color: rgba(var(--metric-tint), 0.8);
    box-shadow: 0 14px 24px rgba(2, 10, 32, 0.4), inset 0 0 0 1px rgba(224, 238, 255, 0.1);
}

.metric-title,
.metric-value {
    position: relative;
    z-index: 1;
}

.metric-title {
    color: #bdd2f8;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
    max-width: 52%;
    text-transform: none;
}

.metric-value {
    color: #f6fbff;
    font-family: "Exo 2", "Russo One", sans-serif;
    font-weight: 800;
    font-size: clamp(26px, 2.6vw, 38px);
    letter-spacing: 0.01em;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 6px 16px rgba(0, 0, 0, 0.34);
    white-space: nowrap;
    text-align: right;
}

.character-metric .coin-inline-icon {
    width: 17px;
    height: 17px;
    margin-right: 4px;
    vertical-align: -2px;
}

.metric-level {
    --metric-tint: 246, 189, 84;
    background:
        radial-gradient(circle at 92% -12%, rgba(246, 189, 84, 0.22), transparent 42%),
        linear-gradient(162deg, rgba(64, 43, 9, 0.82), rgba(22, 17, 8, 0.93));
}

.metric-gold {
    --metric-tint: 102, 226, 113;
    background:
        radial-gradient(circle at 92% -12%, rgba(102, 226, 113, 0.22), transparent 42%),
        linear-gradient(162deg, rgba(16, 58, 31, 0.84), rgba(9, 23, 14, 0.92));
}

.metric-silver {
    --metric-tint: 103, 199, 255;
    background:
        radial-gradient(circle at 92% -12%, rgba(103, 199, 255, 0.2), transparent 42%),
        linear-gradient(162deg, rgba(13, 43, 72, 0.84), rgba(8, 16, 34, 0.92));
}

.metric-coins {
    --metric-tint: 165, 122, 255;
    background:
        radial-gradient(circle at 92% -12%, rgba(165, 122, 255, 0.2), transparent 42%),
        linear-gradient(162deg, rgba(35, 21, 74, 0.86), rgba(10, 14, 34, 0.92));
}

.metric-coupons {
    --metric-tint: 240, 105, 210;
    background:
        radial-gradient(circle at 92% -12%, rgba(240, 105, 210, 0.2), transparent 42%),
        linear-gradient(162deg, rgba(58, 20, 78, 0.84), rgba(16, 11, 32, 0.92));
}

.metric-holiness {
    --metric-tint: 255, 116, 165;
    background:
        radial-gradient(circle at 92% -12%, rgba(255, 116, 165, 0.2), transparent 42%),
        linear-gradient(162deg, rgba(63, 20, 45, 0.84), rgba(20, 11, 27, 0.92));
}

.metric-faith {
    --metric-tint: 120, 231, 205;
    background:
        radial-gradient(circle at 92% -12%, rgba(120, 231, 205, 0.2), transparent 42%),
        linear-gradient(162deg, rgba(17, 62, 51, 0.84), rgba(9, 21, 19, 0.92));
}

.character-stats-panel {
    margin-top: 14px;
    padding: 20px 22px;
    grid-column: 1 / -1;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 94% 112%, rgba(98, 176, 255, 0.16), transparent 42%),
        linear-gradient(160deg, rgba(13, 26, 58, 0.95), rgba(8, 15, 36, 0.96));
}

.character-stats-panel::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -120px;
    bottom: -140px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(104, 173, 255, 0.24), transparent 72%);
    pointer-events: none;
}

.character-stats-panel h2 {
    margin: 0;
    font-family: "Russo One", "Exo 2", sans-serif;
    font-weight: 400;
    font-size: clamp(32px, 3.6vw, 50px);
    letter-spacing: 0.015em;
    color: #f4f9ff;
    text-shadow: 0 10px 24px rgba(52, 116, 255, 0.24);
    position: relative;
    z-index: 1;
}

.character-stats-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    position: relative;
    z-index: 1;
}

.character-stat-card {
    --stat-tint: 134, 178, 255;
    border-radius: 14px;
    border: 1px solid rgba(var(--stat-tint), 0.56);
    background:
        radial-gradient(circle at 95% 0%, rgba(var(--stat-tint), 0.22), transparent 48%),
        linear-gradient(162deg, rgba(13, 26, 56, 0.93), rgba(7, 14, 34, 0.93));
    padding: 13px 14px;
    display: grid;
    gap: 8px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 14px 24px rgba(2, 9, 28, 0.37), inset 0 0 0 1px rgba(207, 226, 255, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.character-stat-card::before {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -24px;
    top: -30px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(var(--stat-tint), 0.22), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.character-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--stat-tint), 0.78);
    box-shadow: 0 18px 28px rgba(2, 10, 31, 0.44), inset 0 0 0 1px rgba(218, 234, 255, 0.1);
}

.character-stat-card span {
    color: #c0d4f8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.character-stat-card b {
    color: #f4f9ff;
    font-family: "Exo 2", "Russo One", sans-serif;
    font-weight: 800;
    font-size: clamp(30px, 3vw, 44px);
    letter-spacing: 0.01em;
    line-height: 1.02;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 5px 16px rgba(0, 0, 0, 0.36);
    position: relative;
    z-index: 1;
}

.stat-player-kills {
    --stat-tint: 255, 126, 170;
    background:
        radial-gradient(circle at 95% 0%, rgba(255, 126, 170, 0.22), transparent 48%),
        linear-gradient(162deg, rgba(69, 22, 46, 0.82), rgba(18, 10, 24, 0.94));
}

.stat-monster-kills {
    --stat-tint: 93, 223, 139;
    background:
        radial-gradient(circle at 95% 0%, rgba(93, 223, 139, 0.22), transparent 48%),
        linear-gradient(162deg, rgba(18, 58, 37, 0.83), rgba(9, 20, 13, 0.93));
}

@media (max-width: 1120px) {
    .character-spotlight {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .character-panel,
    .character-stats-panel {
        padding: 16px;
    }

    .character-panel h2 {
        font-size: clamp(30px, 7.2vw, 42px);
    }

    .character-stats-panel h2 {
        font-size: clamp(28px, 6.4vw, 40px);
    }
}

@media (max-width: 660px) {
    .character-panel-head {
        align-items: stretch;
    }

    .character-picker {
        min-width: 0;
        width: 100%;
        justify-items: stretch;
    }

    .character-picker select {
        min-width: 0;
        width: 100%;
    }

    .character-main-card h3 {
        font-size: 32px;
    }

    .character-metric-grid,
    .character-stats-grid {
        grid-template-columns: 1fr;
    }

    .character-metric {
        min-height: 62px;
    }

    .metric-value {
        font-size: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .character-main-card,
    .character-metric,
    .character-stat-card {
        transition: none;
    }
}

.rating-panel {
    margin-top: 18px;
    padding: 26px;
    position: relative;
    overflow: hidden;
    grid-column: 1 / -1;
    width: 100%;
    background:
        radial-gradient(circle at 86% -12%, rgba(71, 134, 255, 0.24) 0%, rgba(71, 134, 255, 0) 46%),
        linear-gradient(145deg, rgba(13, 25, 58, 0.96), rgba(7, 15, 36, 0.96));
}

.rating-panel h2 {
    margin: 0 0 2px;
    font-family: "Russo One", "Exo 2", sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.rating-panel h2::before {
    content: "";
    width: 8px;
    height: 24px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff9a5c 0%, #4cb5ff 100%);
    box-shadow: 0 0 16px rgba(105, 169, 255, 0.45);
}

.rating-panel::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    top: -140px;
    right: -110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(64, 136, 255, 0.32), rgba(64, 136, 255, 0) 70%);
    pointer-events: none;
}

.rating-panel::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    left: -140px;
    bottom: -180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 202, 255, 0.2), rgba(47, 202, 255, 0) 70%);
    pointer-events: none;
}

.rating-table-wrap {
    margin-top: 16px;
    border-radius: 18px;
    border: 1px solid rgba(129, 171, 255, 0.38);
    background:
        linear-gradient(180deg, rgba(27, 48, 93, 0.48), rgba(12, 22, 48, 0.52)),
        linear-gradient(180deg, rgba(13, 24, 51, 0.94), rgba(7, 15, 33, 0.95));
    box-shadow:
        inset 0 1px 0 rgba(188, 213, 255, 0.16),
        inset 0 -1px 0 rgba(66, 110, 185, 0.28),
        0 24px 40px rgba(2, 8, 24, 0.42);
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    z-index: 1;
}

.rating-table-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(88, 151, 255, 0.08), rgba(88, 151, 255, 0) 16%, rgba(88, 151, 255, 0) 84%, rgba(88, 151, 255, 0.08));
}

.rating-table {
    width: 100%;
    min-width: 680px;
    border-collapse: separate;
    border-spacing: 0;
}

.rating-table th,
.rating-table td {
    padding: 13px 16px;
    text-align: left;
    white-space: nowrap;
}

.rating-table th:not(:last-child),
.rating-table td:not(:last-child) {
    border-right: 1px solid rgba(120, 157, 231, 0.16);
}

.rating-table th {
    color: #b1cbff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    background: linear-gradient(180deg, rgba(55, 93, 175, 0.52), rgba(27, 51, 104, 0.4));
    border-bottom: 1px solid rgba(139, 176, 255, 0.38);
    text-shadow: 0 0 8px rgba(115, 166, 255, 0.25);
}

.rating-table thead th:first-child {
    border-top-left-radius: 14px;
}

.rating-table thead th:last-child {
    border-top-right-radius: 14px;
}

.rating-table td {
    color: #eef4ff;
    font-weight: 600;
    border-bottom: 1px solid rgba(106, 145, 225, 0.2);
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.rating-table thead th:first-child,
.rating-table tbody td:first-child {
    width: 92px;
    text-align: center;
}

.rating-table tbody td:first-child {
    font-family: "Russo One", "Exo 2", sans-serif;
    font-size: 20px;
    letter-spacing: 0.03em;
    color: #dceaff;
    text-shadow: 0 0 12px rgba(126, 168, 255, 0.26);
    font-variant-numeric: tabular-nums;
    position: relative;
    isolation: isolate;
    z-index: 0;
}

.rating-table tbody td:first-child::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
    border-radius: 14px;
    border: 1px solid rgba(137, 176, 255, 0.46);
    background: linear-gradient(160deg, rgba(74, 116, 199, 0.6), rgba(31, 54, 103, 0.48));
    box-shadow: inset 0 1px 0 rgba(224, 238, 255, 0.14), 0 10px 18px rgba(5, 13, 34, 0.45);
    z-index: -1;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rating-table tbody td:nth-child(2) {
    font-weight: 700;
    color: #f5f9ff;
}

.rating-table tbody td:nth-child(3),
.rating-table tbody td:nth-child(4),
.rating-table tbody td:nth-child(5) {
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.rating-table tbody tr:nth-child(odd) td {
    background: rgba(29, 50, 96, 0.3);
}

.rating-table tbody tr:nth-child(even) td {
    background: rgba(16, 31, 65, 0.35);
}

.rating-table tbody tr:hover td {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(75, 123, 224, 0.3), rgba(50, 95, 186, 0.25));
    box-shadow: inset 0 1px 0 rgba(180, 212, 255, 0.2);
}

.rating-table tbody tr:hover td:first-child::before {
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: inset 0 1px 0 rgba(232, 242, 255, 0.2), 0 12px 22px rgba(7, 17, 41, 0.52);
}

.rating-table tbody tr:nth-child(1) td {
    background: linear-gradient(90deg, rgba(150, 114, 22, 0.26), rgba(66, 49, 14, 0.17));
}

.rating-table tbody tr:nth-child(2) td {
    background: linear-gradient(90deg, rgba(146, 161, 186, 0.21), rgba(52, 67, 96, 0.17));
}

.rating-table tbody tr:nth-child(3) td {
    background: linear-gradient(90deg, rgba(155, 103, 60, 0.24), rgba(63, 38, 24, 0.16));
}

.rating-table tbody tr:nth-child(1) td:first-child {
    color: #ffd76c;
    text-shadow: 0 0 16px rgba(255, 206, 84, 0.5);
}

.rating-table tbody tr:nth-child(1) td:first-child::before {
    border-color: rgba(255, 210, 96, 0.62);
    background: linear-gradient(160deg, rgba(196, 144, 32, 0.68), rgba(95, 67, 19, 0.54));
}

.rating-table tbody tr:nth-child(2) td:first-child {
    color: #d0dcf1;
    text-shadow: 0 0 14px rgba(215, 225, 243, 0.46);
}

.rating-table tbody tr:nth-child(2) td:first-child::before {
    border-color: rgba(203, 218, 238, 0.62);
    background: linear-gradient(160deg, rgba(143, 160, 188, 0.62), rgba(66, 84, 118, 0.52));
}

.rating-table tbody tr:nth-child(3) td:first-child {
    color: #e9b17c;
    text-shadow: 0 0 14px rgba(225, 169, 116, 0.42);
}

.rating-table tbody tr:nth-child(3) td:first-child::before {
    border-color: rgba(229, 169, 120, 0.64);
    background: linear-gradient(160deg, rgba(167, 106, 59, 0.66), rgba(84, 52, 32, 0.52));
}

.rating-table tbody tr:last-child td {
    border-bottom: 0;
}

.footer {
    margin: 18px 0 0;
    text-align: center;
    color: #89a1d4;
    font-size: 14px;
}

@media (max-width: 1120px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .portal-highlights {
        grid-template-columns: 1fr;
    }

    .game-activities-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cabinet-layout {
        grid-template-columns: 1fr;
    }

    .cabinet-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .cabinet-shell.cabinet-shell-auth .cabinet-layout {
        max-width: 760px;
    }

    .auth-panel-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 840px) {
    .top-header {
        flex-direction: column;
        align-items: stretch;
    }

    .logo {
        justify-content: center;
    }

    .menu {
        justify-content: center;
    }

    .download-btn {
        text-align: center;
    }

    .rating-panel {
        padding: 16px;
    }

    .rating-table {
        min-width: 560px;
    }
}

@media (max-width: 660px) {
    .page-wrap {
        padding: 12px;
    }

    .cabinet-shell.cabinet-shell-auth {
        margin-top: 16px;
    }

    .auth-panel {
        padding: 16px;
        border-radius: 16px;
    }

    .auth-panel h2 {
        font-size: 31px;
    }

    .auth-panel-note {
        font-size: 13px;
    }

    .auth-panel-aside {
        padding: 12px;
        gap: 10px;
    }

    .auth-panel-aside h3 {
        font-size: 18px;
    }

    .auth-switch-btn {
        font-size: 14px;
        padding: 9px 10px;
    }

    .auth-alt-btn {
        font-size: 13px;
    }

    .auth-captcha-row {
        grid-template-columns: 1fr;
    }

    .auth-captcha-image {
        max-width: none;
    }

    .auth-captcha-refresh {
        width: 100%;
    }

    .hero {
        padding: 18px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 17px;
    }

    .hero-badges {
        gap: 6px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 5px 9px;
    }

    .portal-highlights {
        padding: 16px;
        gap: 12px;
    }

    .portal-highlights-intro h2 {
        font-size: 28px;
    }

    .portal-highlights-intro p {
        font-size: 14px;
    }

    .portal-feature-card h3 {
        font-size: 16px;
    }

    .portal-feature-card p {
        font-size: 13px;
    }

    .game-activities {
        padding: 16px;
        gap: 12px;
    }

    .game-activities-head h2 {
        font-size: 30px;
    }

    .game-activities-head p {
        font-size: 14px;
    }

    .game-activity-card {
        padding: 12px;
    }

    .game-activity-card h3 {
        font-size: 19px;
    }

    .game-activity-list-cols {
        grid-template-columns: 1fr;
    }

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

    .news-modal {
        padding: 10px;
    }

    .news-modal-dialog {
        max-height: calc(100vh - 20px);
        padding: 12px;
    }

    .news-modal-close {
        width: 36px;
        min-width: 36px;
        height: 36px;
    }

    .rating-table {
        min-width: 460px;
    }

    .rating-table th,
    .rating-table td {
        padding: 10px 9px;
    }

    .rating-table th {
        font-size: 11px;
    }

    .rating-table td {
        font-size: 13px;
    }

    .rating-table tbody td:first-child {
        font-size: 16px;
    }

    .rating-table tbody td:first-child::before {
        width: 34px;
        height: 34px;
        border-radius: 11px;
    }
}

.promo-layout {
    grid-column: 1 / -1;
    margin-top: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.promo-layout > article {
    margin-top: 0;
    width: 100%;
}

.promo-layout .promo-activate-panel,
.promo-layout .promo-info-panel,
.promo-layout .promo-create-panel {
    grid-column: 1 / -1;
}

.promo-activate-panel {
    position: relative;
    overflow: hidden;
}

.promo-activate-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 92% 0, rgba(96, 162, 255, 0.2), transparent 42%);
    pointer-events: none;
}

.promo-activate-panel > * {
    position: relative;
    z-index: 1;
}

.promo-info-panel {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(122, 168, 255, 0.38);
    background: linear-gradient(160deg, rgba(17, 31, 67, 0.92), rgba(10, 18, 40, 0.92));
    box-shadow: 0 14px 24px rgba(2, 9, 28, 0.34), inset 0 1px 0 rgba(190, 216, 255, 0.08);
}

.promo-info-panel h3 {
    margin: 0;
    font-family: "Russo One", "Exo 2", sans-serif;
    font-weight: 400;
    font-size: 25px;
    letter-spacing: 0.01em;
    color: #f5f9ff;
}

.promo-info-panel p {
    margin: 10px 0 0;
    color: #c6d8fb;
    line-height: 1.45;
}

.promo-info-panel ul {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.promo-info-panel li {
    border-radius: 10px;
    border: 1px solid rgba(118, 163, 255, 0.28);
    background: rgba(10, 19, 44, 0.72);
    color: #dbe8ff;
    font-size: 14px;
    line-height: 1.4;
    padding: 8px 10px;
}

.promo-info-note {
    margin-top: 12px;
    border: 1px dashed rgba(139, 181, 255, 0.46);
    border-radius: 10px;
    background: rgba(12, 24, 54, 0.72);
    color: #aecdff;
    font-size: 13px;
    line-height: 1.35;
    padding: 9px 10px;
}

.promo-usage-open {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(121, 166, 255, 0.44);
    background: linear-gradient(160deg, rgba(17, 31, 67, 0.86), rgba(10, 18, 40, 0.86));
    color: #d9e8ff;
    box-shadow: inset 0 1px 0 rgba(187, 215, 255, 0.08);
}

.promo-usage-open:hover {
    box-shadow: 0 10px 24px rgba(60, 126, 255, 0.25);
}

.promo-usage-modal {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(2, 6, 18, 0.74);
    backdrop-filter: blur(6px);
}

.promo-usage-modal.is-open {
    display: flex;
}

body.promo-modal-open {
    overflow: hidden;
}

.promo-usage-dialog {
    width: min(980px, 100%);
    margin: 0;
    padding: 16px;
    max-height: calc(100vh - 36px);
    display: grid;
    gap: 12px;
}

.promo-usage-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.promo-usage-modal-head h2 {
    margin: 0;
}

.promo-usage-close {
    width: 40px;
    min-width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(122, 166, 252, 0.48);
    background: rgba(17, 31, 67, 0.82);
    color: #d7e8ff;
    font-size: 24px;
    line-height: 1;
    padding: 0;
}

.promo-usage-modal-body {
    min-height: 0;
    overflow: auto;
    padding-right: 2px;
}

.promo-panel {
    grid-column: 1 / -1;
}

.promo-table {
    width: 100%;
    min-width: 760px;
}

.promo-table thead th:first-child,
.promo-table tbody td:first-child {
    width: auto;
    text-align: left;
    font-family: "Exo 2", "Segoe UI", sans-serif;
    font-size: 14px;
    letter-spacing: normal;
    color: #eef4ff;
    text-shadow: none;
}

.promo-table tbody td:nth-child(2),
.promo-table tbody td:nth-child(3),
.promo-table tbody td:nth-child(4),
.promo-table tbody td:nth-child(5),
.promo-table tbody td:nth-child(6) {
    text-align: center;
}

@media (max-width: 660px) {
    .promo-info-panel h3 {
        font-size: 21px;
    }

    .promo-info-panel li {
        font-size: 13px;
    }

    .promo-usage-modal {
        padding: 10px;
    }

    .promo-usage-dialog {
        max-height: calc(100vh - 20px);
        padding: 12px;
    }

    .promo-usage-close {
        width: 36px;
        min-width: 36px;
        height: 36px;
    }
}
select {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(112, 149, 244, 0.4);
    background: rgba(8, 15, 34, 0.8);
    color: #f2f6ff;
    font: inherit;
    padding: 11px 12px;
}

select:focus {
    outline: none;
    border-color: rgba(141, 177, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(95, 142, 255, 0.2);
}

.settings-shell {
    margin-top: 18px;
    grid-column: 1 / -1;
    width: 100%;
    display: grid;
    gap: 14px;
    align-items: stretch;
}

.settings-nav-panel {
    padding: 16px 18px;
    display: grid;
    gap: 12px;
}

.settings-nav-panel h2 {
    margin: 0;
    font-family: "Russo One", "Exo 2", sans-serif;
    font-weight: 400;
}

.settings-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.settings-nav-btn {
    flex: 1 1 190px;
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(118, 159, 245, 0.36);
    background: rgba(11, 22, 49, 0.82);
    color: #d7e6ff;
    text-align: center;
    font-family: "Exo 2", "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    padding: 11px 14px;
    box-shadow: inset 0 1px 0 rgba(190, 217, 255, 0.08);
}

.settings-nav-btn:hover {
    box-shadow: 0 10px 24px rgba(63, 126, 255, 0.24);
}

.settings-nav-btn.is-active {
    color: #ffffff;
    border-color: rgba(255, 163, 125, 0.52);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.settings-tab-content {
    grid-column: 1 / -1;
    display: none;
    gap: 12px;
}

.settings-tab-content.is-active {
    display: grid;
}

.settings-panel {
    margin-top: 0;
    grid-column: 1 / -1;
}

.settings-description-panel {
    border-radius: 12px;
    border: 1px solid rgba(113, 153, 241, 0.3);
    background: linear-gradient(160deg, rgba(14, 27, 58, 0.84), rgba(9, 17, 38, 0.84));
    padding: 14px 16px;
    display: grid;
    gap: 8px;
}

.settings-description-panel h3 {
    margin: 0;
    color: #eef4ff;
    font-size: 19px;
    line-height: 1.2;
}

.settings-description-panel p {
    margin: 0;
    color: #b9cef7;
    line-height: 1.45;
    font-size: 14px;
}

@media (max-width: 980px) {
    .settings-nav-btn {
        flex: 1 1 calc(50% - 10px);
    }
}

@media (max-width: 640px) {
    .settings-nav-btn {
        flex: 1 1 100%;
    }
}

body.cab-font-size-small .cabinet-shell,
body.cab-font-size-small .profile-panel.profile-menu-panel {
    font-size: 14px;
}

body.cab-font-size-normal .cabinet-shell,
body.cab-font-size-normal .profile-panel.profile-menu-panel {
    font-size: 16px;
}

body.cab-font-size-large .cabinet-shell,
body.cab-font-size-large .profile-panel.profile-menu-panel {
    font-size: 18px;
}

body.cab-font-family-exo .cabinet-shell,
body.cab-font-family-exo .cabinet-shell *,
body.cab-font-family-exo .profile-panel.profile-menu-panel,
body.cab-font-family-exo .profile-panel.profile-menu-panel * {
    font-family: "Exo 2", "Segoe UI", sans-serif;
}

body.cab-font-family-segoe .cabinet-shell,
body.cab-font-family-segoe .cabinet-shell *,
body.cab-font-family-segoe .profile-panel.profile-menu-panel,
body.cab-font-family-segoe .profile-panel.profile-menu-panel * {
    font-family: "Segoe UI", "Tahoma", sans-serif;
}

body.cab-font-family-verdana .cabinet-shell,
body.cab-font-family-verdana .cabinet-shell *,
body.cab-font-family-verdana .profile-panel.profile-menu-panel,
body.cab-font-family-verdana .profile-panel.profile-menu-panel * {
    font-family: "Verdana", "Tahoma", sans-serif;
}

body.cab-theme-ember {
    --bg-1: #1a0b07;
    --bg-2: #2f120b;
    --panel: rgba(37, 16, 10, 0.8);
    --line: rgba(255, 138, 96, 0.3);
    --accent: #ff7d45;
    --accent-2: #ffb23f;
    --muted: #f3c2a5;
}

body.cab-theme-emerald {
    --bg-1: #051611;
    --bg-2: #0b2b22;
    --panel: rgba(8, 36, 29, 0.8);
    --line: rgba(99, 212, 167, 0.3);
    --accent: #2cb975;
    --accent-2: #50dc9a;
    --muted: #a7e3cb;
}

.roulette-feed-panel {
    margin-top: 18px;
    padding: 16px 18px;
    grid-column: 1 / -1;
}

.roulette-feed-head h2 {
    margin: 0;
    font-family: "Russo One", "Exo 2", sans-serif;
    font-weight: 400;
    text-align: center;
}

.roulette-feed-row {
    margin-top: 12px;
    display: flex;
    align-items: stretch;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.roulette-feed-row::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.roulette-feed-item {
    --rarity-color: rgba(137, 161, 215, 0.5);
    --rarity-soft: rgba(45, 69, 128, 0.32);
    --rarity-glow: rgba(145, 176, 255, 0.35);
    min-width: 0;
    flex: 0 0 calc((100% - 30px) / 6);
    border-radius: 9px;
    border: 1px solid var(--rarity-color);
    background: linear-gradient(165deg, rgba(17, 30, 63, 0.94), rgba(8, 15, 34, 0.94));
    box-shadow: inset 0 0 0 1px rgba(209, 224, 255, 0.08), 0 12px 24px rgba(0, 0, 0, 0.3), 0 0 26px -10px var(--rarity-glow);
    padding: 7px 8px;
    display: grid;
    gap: 5px;
}

.roulette-feed-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.roulette-feed-account {
    color: #d8e5ff;
    font-size: 12px;
    font-weight: 700;
    max-width: calc(100% - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.roulette-feed-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35));
}

.roulette-feed-name {
    color: #f6fbff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    min-height: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.roulette-feed-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    color: #d0e1ff;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

@media (max-width: 760px) {
    .roulette-feed-item {
        flex-basis: calc((100% - 12px) / 3);
    }
}

.roulette-drop-panel {
    margin-top: 0;
    padding: 16px 18px;
    grid-column: 1 / -1;
}

.roulette-drop-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.roulette-drop-head h2 {
    margin: 0;
    font-family: "Russo One", "Exo 2", sans-serif;
    font-weight: 400;
}

.roulette-drop-head p {
    margin: 0;
    color: #9ab4e8;
    font-size: 13px;
}

.roulette-drop-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.roulette-drop-item {
    --rarity-color: rgba(137, 161, 215, 0.5);
    --rarity-soft: rgba(45, 69, 128, 0.32);
    --rarity-glow: rgba(145, 176, 255, 0.35);
    border-radius: 12px;
    border: 1px solid var(--rarity-color);
    background: linear-gradient(165deg, rgba(17, 30, 63, 0.94), rgba(8, 15, 34, 0.94));
    box-shadow: inset 0 0 0 1px rgba(209, 224, 255, 0.08), 0 12px 24px rgba(0, 0, 0, 0.3), 0 0 26px -10px var(--rarity-glow);
    padding: 10px 12px;
    display: grid;
    gap: 8px;
}

.roulette-drop-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.roulette-drop-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 9px;
    border: 1px solid rgba(163, 188, 250, 0.28);
    background: radial-gradient(circle at 50% 34%, var(--rarity-soft) 0%, rgba(7, 14, 32, 0.4) 66%);
    box-shadow: inset 0 0 0 1px rgba(205, 222, 255, 0.08), 0 8px 17px rgba(0, 0, 0, 0.24);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.roulette-drop-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35));
}

.roulette-drop-chance {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--rarity-color);
    background: rgba(6, 12, 28, 0.76);
    color: #eff6ff;
    font-family: "Russo One", "Exo 2", sans-serif;
    font-size: 14px;
    letter-spacing: 0.03em;
    line-height: 1;
    padding: 6px 9px;
    white-space: nowrap;
}

.roulette-drop-name {
    color: #f6fbff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.28;
    min-height: 36px;
}

.roulette-drop-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #d0e1ff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.roulette-panel {
    margin-top: 18px;
    padding: 18px;
    grid-column: 1 / -1;
}

.roulette-header h2 {
    margin: 0;
    font-family: "Russo One", "Exo 2", sans-serif;
    font-weight: 400;
    text-align: center;
}

.roulette-header p {
    margin: 8px 0 0;
    color: var(--muted);
}

.roulette-box {
    margin-top: 14px;
    position: relative;
    border-radius: 14px;
    border: 1px solid rgba(119, 161, 255, 0.35);
    background: linear-gradient(180deg, rgba(16, 29, 62, 0.96), rgba(9, 16, 36, 0.94));
    box-shadow: inset 0 0 0 1px rgba(174, 205, 255, 0.08), 0 18px 34px rgba(0, 0, 0, 0.35);
    padding: 12px;
}

.roulette-box::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 10px;
    border: 1px solid rgba(145, 182, 255, 0.18);
    pointer-events: none;
}

.roulette-window {
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(7, 13, 29, 0.88), rgba(8, 15, 34, 0.9));
}

.roulette-track {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: max-content;
    padding: 4px;
    transform: translateX(0px);
    will-change: transform;
}

.roulette-item,
.roulette-winner,
.roulette-feed-item,
.roulette-drop-item,
.roulette-reward-card {
    --rarity-color: rgba(137, 161, 215, 0.5);
    --rarity-soft: rgba(45, 69, 128, 0.32);
    --rarity-glow: rgba(145, 176, 255, 0.35);
}

.roulette-item {
    position: relative;
    overflow: hidden;
    width: 122px;
    min-width: 122px;
    border: 1px solid var(--rarity-color);
    background: linear-gradient(165deg, rgba(17, 30, 63, 0.94), rgba(8, 15, 34, 0.94));
    box-shadow: inset 0 0 0 1px rgba(209, 224, 255, 0.08), 0 14px 24px rgba(0, 0, 0, 0.34), 0 0 28px -11px var(--rarity-glow);
    padding: 8px;
    display: grid;
    gap: 6px;
}

.roulette-item::before {
    content: "";
    position: absolute;
    inset: -42% -14% auto;
    height: 72%;
    background: radial-gradient(circle at 50% 0%, var(--rarity-glow) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0.9;
    pointer-events: none;
}

.roulette-item::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--rarity-color), rgba(255, 255, 255, 0));
    opacity: 0.9;
    pointer-events: none;
}

.roulette-item-name {
    color: #f3f7ff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    min-height: 32px;
}

.roulette-item-rarity {
    align-self: start;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--rarity-color);
    background: rgba(6, 12, 28, 0.76);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 0 18px -9px var(--rarity-glow);
    color: #e5efff;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 3px 7px;
}

.roulette-item-icon-wrap {
    position: relative;
    min-height: 50px;
    border-radius: 9px;
    border: 1px solid rgba(163, 188, 250, 0.28);
    background: radial-gradient(circle at 50% 34%, var(--rarity-soft) 0%, rgba(7, 14, 32, 0.4) 66%);
    box-shadow: inset 0 0 0 1px rgba(205, 222, 255, 0.08), 0 8px 17px rgba(0, 0, 0, 0.24);
    display: flex;
    align-items: center;
    justify-content: center;
}

.roulette-item-icon {
    width: 46px;
    height: 46px;
    object-fit: contain;
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.36));
}

.roulette-item-amount {
    position: absolute;
    right: 4px;
    bottom: 3px;
    border-radius: 999px;
    background: rgba(9, 16, 35, 0.9);
    border: 1px solid rgba(158, 187, 252, 0.48);
    color: #eef5ff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
}

.roulette-pointer {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 50%;
    width: 6px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(180deg, #ffd98a 0%, #ff8748 100%);
    box-shadow: 0 0 20px rgba(255, 165, 93, 0.78);
    z-index: 5;
    pointer-events: none;
}

.roulette-pointer::before,
.roulette-pointer::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid rgba(255, 255, 255, 0);
    border-right: 8px solid rgba(255, 255, 255, 0);
}

.roulette-pointer::before {
    top: -8px;
    border-top: 8px solid #ffc273;
}

.roulette-pointer::after {
    bottom: -8px;
    border-bottom: 8px solid #ffc273;
}

.roulette-actions {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.roulette-wallet {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #b8caf3;
    font-size: 14px;
}

.roulette-wallet b {
    color: #f6f9ff;
}

.roulette-spin-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.roulette-actions-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.roulette-spin-form button {
    min-width: 200px;
}

.roulette-history-link-row {
    margin: 14px 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    grid-column: 1 / -1;
    padding-right: 362px;
}

.roulette-history-link {
    display: inline-block;
    color: #9cc6ff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    border-bottom: 1px dashed rgba(156, 198, 255, 0.6);
    padding: 2px 2px 3px;
    transition: color 0.2s ease, border-color 0.2s ease, text-shadow 0.2s ease;
}

.roulette-history-link:hover {
    color: #dff0ff;
    border-bottom-color: rgba(223, 240, 255, 0.9);
    text-shadow: 0 0 16px rgba(112, 181, 255, 0.62);
}

.roulette-spin-form button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.roulette-winner {
    margin-top: 14px;
    position: relative;
    overflow: hidden;
    padding: 11px 13px;
    border: 1px solid var(--rarity-color);
    background: linear-gradient(170deg, rgba(16, 29, 62, 0.92), rgba(8, 15, 35, 0.96));
    box-shadow: inset 0 0 0 1px rgba(220, 233, 255, 0.07), 0 16px 30px rgba(0, 0, 0, 0.32), 0 0 26px -10px var(--rarity-glow);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.roulette-winner::before {
    content: "";
    position: absolute;
    inset: -42% -14% auto;
    height: 80%;
    background: radial-gradient(circle at 50% 0%, var(--rarity-glow) 0%, rgba(255, 255, 255, 0) 72%);
    opacity: 0.9;
    pointer-events: none;
}

.roulette-winner span {
    color: #d4e2ff;
}

.roulette-winner b {
    color: #ffffff;
}

.roulette-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: none;
}

.roulette-modal.is-open {
    display: block;
}

.roulette-modal,
.roulette-modal * {
    pointer-events: auto;
}

.roulette-modal-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 16%, rgba(82, 136, 255, 0.18), rgba(5, 10, 27, 0.92) 58%), rgba(4, 10, 26, 0.8);
    backdrop-filter: blur(8px) saturate(115%);
}

.roulette-modal-dialog {
    position: relative;
    width: min(600px, calc(100vw - 28px));
    max-height: min(760px, calc(100vh - 110px));
    margin: 110px auto 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(113, 162, 255, 0.5);
    background: linear-gradient(165deg, rgba(11, 23, 52, 0.96), rgba(7, 14, 34, 0.95));
    box-shadow: 0 28px 76px rgba(1, 7, 21, 0.74), inset 0 0 0 1px rgba(196, 219, 255, 0.1), 0 0 46px rgba(68, 128, 255, 0.2);
    transform: translateY(10px) scale(0.985);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.roulette-modal.is-open .roulette-modal-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.roulette-modal-dialog::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 95% -8%, rgba(123, 174, 255, 0.2), transparent 43%), radial-gradient(circle at -8% 112%, rgba(91, 141, 255, 0.16), transparent 38%);
    pointer-events: none;
}

.roulette-modal-dialog::after {
    content: "";
    position: absolute;
    top: 0;
    left: 22px;
    right: 22px;
    height: 2px;
    background: linear-gradient(90deg, rgba(134, 183, 255, 0), rgba(134, 183, 255, 0.86), rgba(134, 183, 255, 0));
    pointer-events: none;
}

.roulette-modal-dialog > * {
    position: relative;
    z-index: 1;
}

.roulette-modal-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(113, 154, 242, 0.26);
    background: linear-gradient(180deg, rgba(18, 33, 73, 0.76), rgba(11, 20, 47, 0.42));
}

.roulette-modal-head h2 {
    margin: 0;
    font-family: "Russo One", "Exo 2", sans-serif;
    font-weight: 400;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: 0.01em;
    color: #f3f8ff;
    text-shadow: 0 6px 24px rgba(88, 145, 255, 0.28);
    max-width: 100%;
    word-break: break-word;
}

#rouletteRewardTitle {
    font-size: clamp(30px, 4.9vw, 40px);
}

#rouletteHistoryTitle {
    font-size: clamp(28px, 4.2vw, 38px);
}

.roulette-modal-close {
    min-width: auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    padding: 0;
    border: 1px solid rgba(162, 198, 255, 0.58);
    background: linear-gradient(155deg, rgba(25, 43, 88, 0.96), rgba(12, 22, 53, 0.95));
    color: #e8f2ff;
    font-family: "Exo 2", "Segoe UI", sans-serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: inset 0 0 0 1px rgba(223, 236, 255, 0.12), 0 8px 18px rgba(8, 21, 52, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.roulette-modal-close:hover {
    background: linear-gradient(155deg, rgba(39, 63, 120, 0.98), rgba(17, 30, 66, 0.96));
    border-color: rgba(195, 225, 255, 0.85);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(236, 245, 255, 0.2), 0 14px 28px rgba(17, 40, 98, 0.54);
    transform: translateY(-1px);
}

.roulette-reward-dialog .roulette-modal-close {
    display: none;
}

.roulette-modal-body {
    min-height: 0;
    overflow: auto;
    padding: 16px 20px 20px;
    display: grid;
    gap: 14px;
}

.roulette-modal-body .rating-table-wrap {
    margin-top: 0;
    border-radius: 12px;
    border: 1px solid rgba(103, 147, 240, 0.28);
    background: rgba(10, 18, 40, 0.46);
    padding: 6px;
}

.roulette-reward-dialog {
    width: min(520px, calc(100vw - 24px));
    max-height: min(720px, calc(100vh - 90px));
}

.roulette-reward-card {
    border-radius: 16px;
    border: 1px solid var(--rarity-color);
    background: linear-gradient(166deg, rgba(16, 30, 66, 0.95), rgba(7, 13, 32, 0.95));
    box-shadow: inset 0 0 0 1px rgba(214, 227, 255, 0.1), 0 18px 34px rgba(0, 0, 0, 0.35), 0 0 34px -10px var(--rarity-glow);
    padding: 16px;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px 12px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    align-items: center;
}

.roulette-reward-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 88% -8%, var(--rarity-glow) 0%, rgba(255, 255, 255, 0) 55%);
    opacity: 0.5;
    pointer-events: none;
}

.roulette-reward-card > * {
    position: relative;
    z-index: 1;
}

.roulette-reward-icon-wrap {
    grid-column: 1;
    grid-row: 1;
    width: 78px;
    height: 78px;
    border-radius: 14px;
    border: 1px solid rgba(173, 199, 255, 0.34);
    background: radial-gradient(circle at 46% 30%, rgba(174, 204, 255, 0.24), var(--rarity-soft) 45%, rgba(8, 14, 32, 0.55) 100%);
    box-shadow: inset 0 0 0 1px rgba(220, 232, 255, 0.1), 0 12px 24px rgba(0, 0, 0, 0.3), 0 0 20px -6px var(--rarity-glow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.roulette-reward-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.4));
}

.roulette-reward-title {
    grid-column: 2;
    grid-row: 1;
    color: #f4f9ff;
    font-family: "Russo One", "Exo 2", sans-serif;
    font-weight: 400;
    font-size: clamp(24px, 3.8vw, 34px);
    line-height: 1.12;
    letter-spacing: 0.01em;
    text-shadow: 0 8px 22px rgba(93, 151, 255, 0.28);
}

.roulette-reward-meta {
    grid-column: 1 / -1;
    color: #d7e6ff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(109, 149, 236, 0.24);
    background: linear-gradient(160deg, rgba(18, 31, 66, 0.72), rgba(10, 18, 42, 0.64));
}

.roulette-reward-price {
    grid-column: 1 / -1;
    color: #f2fbff;
    font-family: "Exo 2", "Russo One", sans-serif;
    font-weight: 800;
    font-size: clamp(22px, 3.8vw, 32px);
    line-height: 1.08;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 6px 18px rgba(73, 138, 255, 0.24);
}

.roulette-reward-price .coin-inline-icon {
    width: 28px;
    height: 28px;
    margin-right: 0;
    vertical-align: middle;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

.roulette-reward-actions {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.roulette-reward-actions button {
    min-width: 0;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
    letter-spacing: 0.03em;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.roulette-reward-actions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.36), inset 0 0 0 1px rgba(255, 255, 255, 0.13);
}

.roulette-reward-sell-btn {
    background: linear-gradient(135deg, #2f7cff, #36c8ff);
    border-color: rgba(176, 222, 255, 0.42);
    box-shadow: 0 12px 20px rgba(31, 108, 255, 0.3), inset 0 0 0 1px rgba(214, 239, 255, 0.12);
}

.roulette-reward-sell-btn:hover {
    box-shadow: 0 16px 30px rgba(29, 123, 255, 0.42), inset 0 0 0 1px rgba(227, 245, 255, 0.2);
}

body.roulette-modal-open {
    overflow: hidden;
}

.roulette-history-panel {
    margin-top: 18px;
    grid-column: 1 / -1;
}

.roulette-history-table th,
.roulette-history-table td {
    white-space: nowrap;
}

.roulette-item.rarity-common,
.roulette-winner.rarity-common,
.roulette-feed-item.rarity-common,
.roulette-drop-item.rarity-common,
.roulette-reward-card.rarity-common {
    --rarity-color: rgba(137, 161, 215, 0.46);
    --rarity-soft: rgba(66, 90, 150, 0.3);
    --rarity-glow: rgba(160, 184, 243, 0.28);
}

.roulette-item.rarity-rare,
.roulette-winner.rarity-rare,
.roulette-feed-item.rarity-rare,
.roulette-drop-item.rarity-rare,
.roulette-reward-card.rarity-rare {
    --rarity-color: rgba(76, 150, 255, 0.58);
    --rarity-soft: rgba(41, 96, 190, 0.33);
    --rarity-glow: rgba(72, 163, 255, 0.45);
}

.roulette-item.rarity-epic,
.roulette-winner.rarity-epic,
.roulette-feed-item.rarity-epic,
.roulette-drop-item.rarity-epic,
.roulette-reward-card.rarity-epic {
    --rarity-color: rgba(179, 107, 255, 0.62);
    --rarity-soft: rgba(103, 49, 166, 0.35);
    --rarity-glow: rgba(191, 120, 255, 0.52);
}

.roulette-item.rarity-legendary,
.roulette-winner.rarity-legendary,
.roulette-feed-item.rarity-legendary,
.roulette-drop-item.rarity-legendary,
.roulette-reward-card.rarity-legendary {
    --rarity-color: rgba(255, 166, 90, 0.68);
    --rarity-soft: rgba(160, 83, 31, 0.36);
    --rarity-glow: rgba(255, 171, 90, 0.54);
}

.roulette-item.rarity-mythic,
.roulette-winner.rarity-mythic,
.roulette-feed-item.rarity-mythic,
.roulette-drop-item.rarity-mythic,
.roulette-reward-card.rarity-mythic {
    --rarity-color: rgba(255, 104, 144, 0.72);
    --rarity-soft: rgba(154, 42, 84, 0.37);
    --rarity-glow: rgba(255, 103, 156, 0.58);
}

.roulette-history-table tbody tr.rarity-common td {
    background: rgba(34, 54, 98, 0.28);
}

.roulette-history-table tbody tr.rarity-rare td {
    background: rgba(22, 64, 130, 0.3);
}

.roulette-history-table tbody tr.rarity-epic td {
    background: rgba(62, 35, 112, 0.3);
}

.roulette-history-table tbody tr.rarity-legendary td {
    background: rgba(101, 58, 28, 0.32);
}

.roulette-history-table tbody tr.rarity-mythic td {
    background: rgba(102, 26, 58, 0.34);
}

@media (max-width: 900px) {
    .roulette-item {
        width: 122px;
        min-width: 122px;
    }

    .roulette-spin-form button {
        min-width: 170px;
    }
}
.roulette-winner-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.roulette-winner em {
    font-style: normal;
    color: #dce9ff;
    font-weight: 700;
}

.roulette-history-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.roulette-history-table thead th:first-child,
.roulette-history-table tbody td:first-child {
    width: 74px;
    text-align: center;
    font-family: "Exo 2", "Segoe UI", sans-serif;
    font-size: 14px;
    letter-spacing: normal;
    color: #eef4ff;
    text-shadow: none;
}

.roulette-history-table tbody td:nth-child(3),
.roulette-history-table tbody td:nth-child(4),
.roulette-history-table tbody td:nth-child(5) {
    text-align: center;
}

@media (max-width: 660px) {
    .roulette-modal-dialog {
        width: calc(100vw - 18px);
        max-height: calc(100vh - 132px);
        margin: 90px auto 12px;
        border-radius: 16px;
    }

    .roulette-modal-head {
        padding: 14px 14px 12px;
    }

    .roulette-modal-head h2 {
        font-size: 24px;
    }

    #rouletteRewardTitle {
        font-size: clamp(24px, 7.8vw, 32px);
    }

    #rouletteHistoryTitle {
        font-size: clamp(22px, 7vw, 30px);
    }

    .roulette-modal-body {
        padding: 12px 14px 14px;
        gap: 10px;
    }

    .roulette-reward-title {
        font-size: clamp(20px, 6.8vw, 28px);
    }

    .roulette-reward-meta {
        font-size: 14px;
        padding: 7px 8px;
    }

    .roulette-reward-price {
        font-size: clamp(20px, 6.4vw, 26px);
    }

    .roulette-reward-price .coin-inline-icon {
        width: 22px;
        height: 22px;
    }

    .roulette-reward-actions button {
        font-size: 14px;
        padding: 11px 13px;
    }

    .roulette-modal-close {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }
}

.moderation-layout {
    grid-column: 1 / -1;
    margin-top: 16px;
    display: grid;
    gap: 14px;
}

.moderation-info-panel {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(122, 168, 255, 0.38);
    background: linear-gradient(160deg, rgba(15, 30, 66, 0.94), rgba(8, 16, 38, 0.92));
    box-shadow: 0 16px 28px rgba(2, 9, 28, 0.36), inset 0 1px 0 rgba(190, 216, 255, 0.08);
}

.moderation-info-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 92% -4%, rgba(106, 171, 255, 0.24), transparent 44%);
    pointer-events: none;
}

.moderation-info-panel > * {
    position: relative;
    z-index: 1;
}

.moderation-info-head h2 {
    margin: 0;
    font-family: "Russo One", "Exo 2", sans-serif;
    font-weight: 400;
    font-size: clamp(25px, 3vw, 34px);
    letter-spacing: 0.01em;
}

.moderation-info-head p {
    margin: 10px 0 0;
    color: #c6d8fb;
    line-height: 1.45;
    max-width: 760px;
}

.moderation-summary {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.moderation-mode-switch {
    margin-top: 14px;
    display: inline-flex;
    gap: 8px;
    padding: 5px;
    border-radius: 12px;
    border: 1px solid rgba(122, 168, 255, 0.34);
    background: rgba(9, 18, 42, 0.76);
}

.moderation-mode-switch a {
    min-width: 140px;
    text-align: center;
    padding: 9px 14px;
    border-radius: 9px;
    border: 1px solid rgba(124, 170, 255, 0.26);
    color: #c8dbfb;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    background: linear-gradient(160deg, rgba(16, 31, 67, 0.88), rgba(9, 17, 38, 0.86));
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.moderation-mode-switch a:hover {
    color: #f2f8ff;
    border-color: rgba(161, 197, 255, 0.5);
    transform: translateY(-1px);
}

.moderation-mode-switch a.is-active {
    border-color: rgba(255, 176, 122, 0.66);
    background: linear-gradient(135deg, #ff7f4d, #ff5f3c);
    color: #fff6ee;
    box-shadow: 0 10px 22px rgba(210, 92, 54, 0.3);
}

.moderation-summary-card {
    border-radius: 12px;
    border: 1px solid rgba(119, 165, 255, 0.34);
    background: linear-gradient(165deg, rgba(17, 31, 67, 0.86), rgba(10, 18, 40, 0.86));
    padding: 11px 12px;
    display: grid;
    gap: 6px;
}

.moderation-summary-card span {
    color: #aac5f5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.moderation-summary-card b {
    color: #f5f9ff;
    font-family: "Russo One", "Exo 2", sans-serif;
    font-weight: 400;
    font-size: 26px;
    line-height: 1;
}

.moderation-summary-card.is-pending {
    border-color: rgba(255, 192, 117, 0.4);
}

.moderation-summary-card.is-history {
    border-color: rgba(114, 183, 255, 0.44);
}

.moderation-summary-card.is-banned {
    border-color: rgba(255, 144, 144, 0.44);
}

.moderation-summary-card.is-logs {
    border-color: rgba(139, 210, 255, 0.44);
}

.moderation-logs-intro {
    margin: 0 0 12px;
    color: #c6d8fb;
    line-height: 1.45;
}

.moderation-logs-summary {
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.moderation-logs-controls {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(120px, 160px) minmax(220px, auto);
    gap: 10px;
    align-items: end;
}

.moderation-logs-action-cell {
    display: grid;
    gap: 8px;
}

.moderation-logs-apply-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d5e5ff;
    font-size: 13px;
    font-weight: 700;
}

.moderation-logs-apply-toggle input {
    margin: 0;
    width: 16px;
    height: 16px;
}

.moderation-logs-safe-note {
    margin: 2px 0 0;
    color: #9fbae7;
    font-size: 12px;
}

.moderation-logs-limit-note {
    margin: -3px 0 10px;
    color: #a8c3ee;
    font-size: 13px;
}

.moderation-panel {
    margin-top: 0;
    grid-column: 1 / -1;
    position: relative;
    overflow: hidden;
    padding: 16px;
}

.moderation-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 94% -10%, rgba(106, 167, 255, 0.16), transparent 45%);
    pointer-events: none;
}

.moderation-panel > * {
    position: relative;
    z-index: 1;
}

.moderation-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.moderation-panel-head h2 {
    margin: 0;
    font-family: "Russo One", "Exo 2", sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-size: clamp(22px, 2.5vw, 30px);
}

.moderation-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid rgba(120, 166, 255, 0.45);
    background: linear-gradient(160deg, rgba(18, 34, 72, 0.84), rgba(11, 20, 46, 0.82));
    box-shadow: inset 0 1px 0 rgba(212, 228, 255, 0.08);
    color: #ebf4ff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.moderation-empty-state {
    border-radius: 14px;
    border: 1px dashed rgba(130, 172, 255, 0.44);
    background: linear-gradient(165deg, rgba(14, 27, 58, 0.8), rgba(9, 17, 38, 0.78));
    padding: 18px;
    display: grid;
    gap: 8px;
    align-content: start;
}

.moderation-empty-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(126, 173, 255, 0.42);
    background: radial-gradient(circle at 50% 32%, rgba(124, 188, 255, 0.36), rgba(35, 70, 140, 0.44) 60%, rgba(16, 30, 62, 0.9) 100%);
    box-shadow: inset 0 0 0 1px rgba(216, 232, 255, 0.08);
    position: relative;
}

.moderation-empty-icon::before,
.moderation-empty-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(234, 244, 255, 0.9);
    border-radius: 999px;
}

.moderation-empty-icon::before {
    top: 10px;
    width: 9px;
    height: 9px;
}

.moderation-empty-icon::after {
    top: 21px;
    width: 19px;
    height: 11px;
}

.moderation-empty-title {
    margin: 0;
    color: #ecf4ff;
    font-size: 18px;
    font-weight: 800;
}

.moderation-empty-note {
    margin: 0;
    color: #a7bfeb;
    font-size: 14px;
    line-height: 1.4;
}

.moderation-empty-state.has-note .moderation-empty-title {
    color: #ffdecf;
}

.moderation-table {
    width: 100%;
    min-width: 980px;
}

.moderation-table thead th:first-child,
.moderation-table tbody td:first-child {
    width: auto;
    text-align: left;
    font-family: "Exo 2", "Segoe UI", sans-serif;
    letter-spacing: normal;
}

.moderation-table thead th {
    text-align: left;
    color: #aac7f6;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 12px;
}

.moderation-table tbody td {
    vertical-align: top;
}

.moderation-table tbody tr:hover td {
    background: rgba(35, 63, 122, 0.34);
}

.moderation-action-form {
    display: grid;
    gap: 9px;
}

.moderation-comment-input {
    min-width: 220px;
    font-size: 13px;
    padding: 10px 11px;
    border-radius: 9px;
}

.moderation-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.moderation-action-buttons button {
    min-width: 0;
    flex: 1 1 130px;
    padding: 10px 11px;
    font-size: 12px;
    letter-spacing: 0.03em;
    box-shadow: none;
}

.moderation-approve-btn {
    border-color: rgba(136, 229, 182, 0.44);
    background: linear-gradient(135deg, #26b56d, #46d994);
}

.moderation-reject-btn {
    border-color: rgba(255, 167, 167, 0.45);
    background: linear-gradient(135deg, #c74058, #ec6170);
}

.moderation-status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(118, 162, 255, 0.42);
    background: rgba(10, 20, 45, 0.72);
    color: #e8f1ff;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
}

.moderation-status-pill.status-approved {
    border-color: rgba(130, 227, 176, 0.52);
    background: rgba(21, 80, 53, 0.62);
    color: #e4ffe9;
}

.moderation-status-pill.status-rejected {
    border-color: rgba(255, 164, 164, 0.55);
    background: rgba(97, 26, 42, 0.64);
    color: #ffe8ea;
}

.moderation-status-pill.status-pending {
    border-color: rgba(255, 194, 122, 0.5);
    background: rgba(92, 55, 16, 0.62);
    color: #fff3da;
}

.moderation-status-pill.status-banned {
    border-color: rgba(255, 149, 149, 0.56);
    background: rgba(102, 32, 40, 0.64);
    color: #ffe9ec;
}

.moderation-status-pill.status-active {
    border-color: rgba(144, 221, 171, 0.54);
    background: rgba(29, 89, 55, 0.6);
    color: #eaffef;
}

.moderation-ban-search {
    margin-bottom: 13px;
    padding: 11px;
    border-radius: 12px;
    border: 1px solid rgba(120, 165, 255, 0.36);
    background: linear-gradient(165deg, rgba(15, 29, 63, 0.8), rgba(8, 16, 37, 0.76));
    display: grid;
    gap: 8px;
}

.moderation-ban-search label {
    color: #afc8f4;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.moderation-ban-search-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
}

.moderation-ban-search-controls select,
.moderation-ban-search-controls input {
    margin: 0;
}

.moderation-search-btn {
    min-width: 110px;
    border-color: rgba(118, 170, 255, 0.48);
    background: linear-gradient(135deg, #3f7de5, #3ca7ee);
}

.moderation-search-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 41px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(120, 166, 255, 0.42);
    color: #d1e3ff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(11, 22, 48, 0.74);
}

.moderation-search-reset:hover {
    border-color: rgba(162, 197, 255, 0.6);
    color: #f2f8ff;
}

.moderation-table-bans {
    min-width: 0;
    table-layout: fixed;
}

.moderation-table-ban-log {
    min-width: 0;
    table-layout: fixed;
}

.moderation-ban-panel .rating-table-wrap,
.moderation-ban-log-panel .rating-table-wrap {
    border-color: rgba(143, 184, 255, 0.28);
    background:
        linear-gradient(180deg, rgba(27, 50, 95, 0.2), rgba(11, 20, 43, 0.24)),
        linear-gradient(180deg, rgba(10, 20, 45, 0.56), rgba(7, 14, 31, 0.6));
    box-shadow:
        inset 0 1px 0 rgba(201, 224, 255, 0.12),
        inset 0 -1px 0 rgba(78, 126, 201, 0.18),
        0 14px 28px rgba(4, 10, 30, 0.3);
    backdrop-filter: blur(4px);
}

.moderation-table-bans th,
.moderation-table-bans td,
.moderation-table-ban-log th,
.moderation-table-ban-log td {
    white-space: normal;
}

.moderation-table-bans thead th,
.moderation-table-ban-log thead th {
    background: linear-gradient(180deg, rgba(77, 124, 214, 0.45), rgba(26, 50, 102, 0.3));
}

.moderation-table-bans tbody tr:nth-child(odd) td,
.moderation-table-ban-log tbody tr:nth-child(odd) td {
    background: rgba(30, 53, 102, 0.16);
}

.moderation-table-bans tbody tr:nth-child(even) td,
.moderation-table-ban-log tbody tr:nth-child(even) td {
    background: rgba(15, 29, 63, 0.2);
}

.moderation-table-bans tbody td:first-child,
.moderation-table-ban-log tbody td:first-child {
    font-family: "Exo 2", "Segoe UI", sans-serif;
    font-size: 15px;
    text-shadow: none;
}

.moderation-table-bans tbody td:first-child::before,
.moderation-table-ban-log tbody td:first-child::before {
    display: none;
}

.moderation-table-bans th:nth-child(1),
.moderation-table-bans td:nth-child(1) {
    width: 62px;
    text-align: center;
}

.moderation-table-bans th:nth-child(2),
.moderation-table-bans td:nth-child(2) {
    width: 22%;
}

.moderation-table-bans th:nth-child(3),
.moderation-table-bans td:nth-child(3) {
    width: 24%;
}

.moderation-table-bans th:nth-child(4),
.moderation-table-bans td:nth-child(4) {
    width: 122px;
    text-align: center;
}

.moderation-table-bans th:nth-child(5),
.moderation-table-bans td:nth-child(5) {
    width: 34%;
}

.moderation-table-ban-log th:nth-child(1),
.moderation-table-ban-log td:nth-child(1) {
    width: 130px;
}

.moderation-table-ban-log th:nth-child(2),
.moderation-table-ban-log td:nth-child(2) {
    width: 120px;
}

.moderation-table-ban-log th:nth-child(3),
.moderation-table-ban-log td:nth-child(3) {
    width: 18%;
}

.moderation-table-ban-log th:nth-child(4),
.moderation-table-ban-log td:nth-child(4) {
    width: 16%;
}

.moderation-table-ban-log th:nth-child(5),
.moderation-table-ban-log td:nth-child(5) {
    width: 120px;
}

.moderation-table-ban-log th:nth-child(6),
.moderation-table-ban-log td:nth-child(6) {
    width: auto;
}

.moderation-table-logs {
    min-width: 0;
    table-layout: fixed;
}

.moderation-table-logs th,
.moderation-table-logs td {
    white-space: normal;
}

.moderation-table-logs th:nth-child(1),
.moderation-table-logs td:nth-child(1) {
    width: 34%;
}

.moderation-table-logs th:nth-child(2),
.moderation-table-logs td:nth-child(2) {
    width: 92px;
}

.moderation-table-logs th:nth-child(3),
.moderation-table-logs td:nth-child(3) {
    width: 108px;
}

.moderation-table-logs th:nth-child(4),
.moderation-table-logs td:nth-child(4) {
    width: 132px;
}

.moderation-table-logs th:nth-child(5),
.moderation-table-logs td:nth-child(5) {
    width: auto;
}

.moderation-table-logs td:nth-child(5) {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.moderation-ban-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.moderation-action-picker {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.moderation-action-select {
    margin: 0;
    min-width: 0;
    width: 100%;
    border-radius: 9px;
    border: 1px solid rgba(116, 164, 255, 0.42);
    background: rgba(9, 19, 43, 0.86);
    color: #e8f1ff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 10px;
}

.moderation-action-run-btn {
    min-width: 98px;
    min-height: 36px;
    padding: 8px 11px;
    border-radius: 10px;
    border: 1px solid rgba(255, 181, 122, 0.58);
    background: linear-gradient(135deg, #ff7b4a, #ff5f3d);
    color: #fff6ec;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.moderation-ban-actions form {
    min-width: 0;
}

.moderation-ban-actions button {
    width: 100%;
    min-height: 36px;
    padding: 8px 9px;
    font-size: 11px;
    letter-spacing: 0.03em;
}

.moderation-ban-btn {
    border-color: rgba(255, 166, 166, 0.48);
    background: linear-gradient(135deg, #c34a5c, #ea6078);
}

.moderation-ip-ban-btn {
    border-color: rgba(255, 196, 142, 0.5);
    background: linear-gradient(135deg, #d88a40, #f2a74f);
}

.moderation-unban-btn {
    border-color: rgba(132, 220, 178, 0.5);
    background: linear-gradient(135deg, #249c72, #39bf97);
}

.moderation-reason-btn {
    border-color: rgba(132, 176, 255, 0.5);
    background: linear-gradient(135deg, #3f77dd, #4eb3f5);
}

.moderation-ban-btn:disabled {
    opacity: 0.62;
    cursor: not-allowed;
    filter: grayscale(0.24);
}

.moderation-unban-btn:disabled {
    opacity: 0.62;
    cursor: not-allowed;
    filter: grayscale(0.24);
}

.moderation-ban-modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.moderation-ban-modal.is-open {
    display: flex;
}

.moderation-ban-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 8, 24, 0.72);
    backdrop-filter: blur(3px);
}

.moderation-ban-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: min(86vh, 860px);
    overflow: auto;
    padding: 0;
    border-radius: 16px;
}

.moderation-ban-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(118, 162, 255, 0.34);
}

.moderation-ban-modal-head h2 {
    margin: 0;
    font-family: "Russo One", "Exo 2", sans-serif;
    font-size: 23px;
    font-weight: 400;
}

.moderation-ban-modal-close {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 11px;
    border: 1px solid rgba(130, 173, 255, 0.48);
    background: linear-gradient(160deg, rgba(27, 53, 102, 0.9), rgba(14, 29, 63, 0.86));
    color: #d9e8ff;
    font-size: 28px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.moderation-ban-modal-body {
    padding: 15px 16px 16px;
}

.moderation-ban-modal-content {
    display: grid;
    gap: 12px;
}

.moderation-ban-modal-info {
    border-radius: 12px;
    border: 1px solid rgba(121, 168, 255, 0.34);
    background: linear-gradient(160deg, rgba(16, 32, 70, 0.84), rgba(9, 18, 41, 0.86));
    padding: 12px;
}

.moderation-ban-modal-info h3 {
    margin: 0;
    font-family: "Russo One", "Exo 2", sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #f3f8ff;
}

.moderation-ban-modal-meta {
    margin-top: 9px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.moderation-ban-modal-meta span {
    display: block;
    border-radius: 9px;
    border: 1px solid rgba(116, 164, 252, 0.28);
    background: rgba(10, 20, 44, 0.64);
    padding: 8px 10px;
    color: #d2e5ff;
    font-size: 12px;
    line-height: 1.35;
}

.moderation-ban-modal-meta b {
    color: #9fc1f5;
}

.moderation-ban-modal-history {
    border-radius: 12px;
    border: 1px solid rgba(122, 167, 255, 0.32);
    background: linear-gradient(160deg, rgba(14, 28, 63, 0.8), rgba(9, 17, 38, 0.82));
    padding: 12px;
}

.moderation-ban-modal-history h4 {
    margin: 0 0 10px;
    font-size: 14px;
    color: #dbe9ff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.moderation-ban-modal-empty {
    margin: 0;
    color: #aac3eb;
}

.moderation-ban-modal-log-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.moderation-ban-modal-log-list li {
    border-radius: 10px;
    border: 1px solid rgba(113, 157, 236, 0.3);
    background: rgba(10, 19, 42, 0.66);
    padding: 10px;
}

.moderation-ban-modal-log-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
}

.moderation-ban-modal-log-head span {
    color: #eff5ff;
    font-size: 13px;
    font-weight: 800;
}

.moderation-ban-modal-log-head time {
    color: #a8bfe8;
    font-size: 12px;
}

.moderation-ban-modal-log-list p {
    margin: 0;
    color: #d3e3fb;
    font-size: 13px;
    line-height: 1.4;
}

.moderation-ban-modal-log-list small {
    display: block;
    margin-top: 7px;
    color: #98b2db;
    font-size: 12px;
}

.moderation-action-modal {
    position: fixed;
    inset: 0;
    z-index: 2250;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.moderation-action-modal.is-open {
    display: flex;
}

.moderation-action-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 7, 22, 0.74);
    backdrop-filter: blur(4px);
}

.moderation-action-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(133, 180, 255, 0.48);
    background:
        radial-gradient(circle at 95% 0%, rgba(93, 148, 255, 0.28), transparent 46%),
        linear-gradient(160deg, rgba(17, 35, 75, 0.96), rgba(8, 18, 41, 0.95));
    box-shadow: 0 24px 48px rgba(4, 11, 29, 0.58), inset 0 1px 0 rgba(205, 227, 255, 0.1);
}

.moderation-action-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(123, 171, 255, 0.35);
}

.moderation-action-modal-head h2 {
    margin: 0;
    font-family: "Russo One", "Exo 2", sans-serif;
    font-size: 25px;
    font-weight: 400;
    color: #eff6ff;
}

.moderation-action-modal-close {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 11px;
    border: 1px solid rgba(130, 176, 255, 0.5);
    background: linear-gradient(160deg, rgba(25, 53, 103, 0.92), rgba(13, 29, 63, 0.88));
    color: #d8e8ff;
    font-size: 28px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.moderation-action-modal-body {
    padding: 14px 16px 16px;
    display: grid;
    gap: 10px;
}

.moderation-action-modal-subtitle {
    margin: 0;
    color: #b7cdf2;
    font-size: 14px;
}

.moderation-action-modal-body label {
    color: #deebff;
    font-weight: 700;
}

.moderation-action-modal-reason {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    border-radius: 12px;
    border: 1px solid rgba(126, 174, 255, 0.48);
    background: rgba(8, 16, 37, 0.86);
    color: #edf5ff;
    padding: 11px 12px;
    font-size: 14px;
    line-height: 1.42;
    box-sizing: border-box;
}

.moderation-action-modal-reason:focus {
    outline: none;
    border-color: rgba(255, 184, 125, 0.7);
    box-shadow: 0 0 0 2px rgba(255, 158, 88, 0.2);
}

.moderation-action-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.moderation-action-modal-cancel-btn,
.moderation-action-modal-confirm-btn {
    min-width: 120px;
    min-height: 42px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.moderation-action-modal-cancel-btn {
    border: 1px solid rgba(133, 176, 255, 0.5);
    background: linear-gradient(145deg, rgba(35, 67, 126, 0.88), rgba(19, 40, 83, 0.88));
    color: #d7e7ff;
}

.moderation-action-modal-confirm-btn {
    border: 1px solid rgba(255, 181, 123, 0.62);
    background: linear-gradient(135deg, #ff7d4c, #ff6140);
    color: #fff7ef;
    box-shadow: 0 12px 22px rgba(190, 76, 45, 0.34);
}

@media (max-width: 920px) {
    .moderation-summary {
        grid-template-columns: 1fr;
    }

    .moderation-mode-switch {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .moderation-mode-switch a {
        min-width: 0;
    }

    .moderation-ban-search-controls {
        grid-template-columns: 1fr;
    }

    .moderation-ban-actions {
        grid-template-columns: 1fr;
    }

    .moderation-action-picker {
        grid-template-columns: 1fr;
    }

    .moderation-logs-controls {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .moderation-logs-action-cell {
        grid-template-columns: 1fr;
    }

    .moderation-ban-modal-meta {
        grid-template-columns: 1fr;
    }

    .moderation-action-modal-buttons {
        flex-direction: column;
    }

    .moderation-action-modal-cancel-btn,
    .moderation-action-modal-confirm-btn {
        width: 100%;
    }
}

@media (max-width: 740px) {
    .moderation-info-head h2 {
        font-size: 21px;
    }

    .moderation-panel-head {
        flex-wrap: wrap;
    }

    .moderation-action-buttons button {
        flex-basis: 100%;
    }

    .moderation-table {
        min-width: 760px;
    }
}
