@import url('https://fonts.googleapis.com/css2?family=Jura:wght@400;500;600;700&display=swap');

/*
    FragZone custom redesign
    CS2 / CS 1.6 inspired
    Drop-in replacement for public/assets/css/fragzone.css
*/

:root {
    --bg: #050608;
    --bg-2: #090b10;
    --bg-3: #10131a;
    --panel: rgba(15, 18, 25, 0.92);
    --panel-2: rgba(19, 23, 32, 0.94);
    --panel-3: rgba(255, 255, 255, 0.055);
    --panel-soft: rgba(255, 255, 255, 0.045);
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 154, 46, 0.34);
    --text: #f4f6fb;
    --text-soft: #c7d0dd;
    --muted: #8591a3;
    --accent: #de9b35;
    --accent-2: #b96f1f;
    --blue: #3da8ff;
    --blue-2: #1677d2;
    --amber: #de9b35;
    --green: #35d07f;
    --red: #ff4d5d;
    --yellow: #f9d65c;
    --purple: #8b5cf6;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
    --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.30);
    --radius: 20px;
    --radius-sm: 14px;
    --ring: 0 0 0 3px rgba(255, 154, 46, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text);
    font-family: "Jura", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.55;
    background:
        radial-gradient(circle at 12% -10%, rgba(255, 116, 26, 0.24), transparent 28%),
        radial-gradient(circle at 88% 8%, rgba(61, 168, 255, 0.18), transparent 30%),
        linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 28px),
        linear-gradient(180deg, #050608 0%, #080a0e 48%, #0c1017 100%);
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 72%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

img {
    max-width: 100%;
}

::selection {
    color: #111318;
    background: var(--accent);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5000;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    padding: 14px 32px;
    background: rgba(5, 6, 8, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.085);
    backdrop-filter: blur(18px) saturate(130%);
}

.site-header::after {
    content: "";
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 154, 46, 0.62), rgba(61, 168, 255, 0.42), transparent);
    pointer-events: none;
}

.logo {
    justify-self: start;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main,
.footer-logo {
    font-family: "Jura", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
}

.logo-main {
    font-size: 27px;
    text-shadow: 0 0 26px rgba(255, 154, 46, 0.20);
}

.logo-sub {
    margin-top: 5px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav {
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.nav a,
.nav-dropdown-toggle,
.nav-login-btn {
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--text-soft);
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}

.nav a:hover,
.nav a.active,
.nav-dropdown-toggle:hover,
.nav-dropdown.is-open .nav-dropdown-toggle,
.nav-login-btn:hover {
    color: #fff;
    background: linear-gradient(180deg, rgba(255, 154, 46, 0.16), rgba(255, 255, 255, 0.055));
    border-color: rgba(255, 154, 46, 0.24);
}

.nav i,
.nav-login-btn i {
    width: 16px;
    color: var(--accent);
    text-align: center;
    font-size: 13px;
}

.nav-dropdown {
    position: relative;
}

.nav-chevron {
    margin-left: 2px;
    font-size: 10px !important;
    transition: transform .16s ease;
}

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

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    z-index: 90;
    display: none;
    min-width: 210px;
    padding: 8px;
    border-radius: 16px;
    background: rgba(9, 11, 16, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: var(--shadow);
    transform: translateX(-50%);
}

.nav-dropdown.is-open .nav-dropdown-menu {
    display: grid;
    gap: 4px;
}

.nav-dropdown-menu a {
    width: 100%;
    justify-content: flex-start;
}

.nav-toggle {
    display: none;
    justify-self: end;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 154, 46, 0.18);
    border-radius: 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.055);
    cursor: pointer;
}

/* User dropdown */
.user-menu {
    position: relative;
}

.user-menu-toggle {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 12px 6px 6px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.055);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: .16s ease;
}

.user-menu-toggle:hover,
.user-menu.is-open .user-menu-toggle {
    color: #fff;
    border-color: rgba(255, 154, 46, 0.26);
    background: rgba(255, 154, 46, 0.12);
}

.user-avatar {
    width: 29px;
    height: 29px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 999px;
    color: #101318;
    background: linear-gradient(135deg, var(--accent), #efd39a);
    border: 1px solid rgba(255, 255, 255, 0.20);
    box-shadow: 0 0 0 3px rgba(255, 154, 46, 0.12);
}

.user-avatar i {
    font-size: 12px;
}

.user-avatar-large {
    width: 62px;
    height: 62px;
    margin: 0 auto 9px;
    box-shadow: 0 0 0 5px rgba(255, 154, 46, 0.12);
}

.user-avatar-large i {
    font-size: 23px;
}

.user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-chevron {
    font-size: 10px !important;
    transition: transform .16s ease;
}

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

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 11px);
    right: 0;
    z-index: 95;
    display: none;
    width: 285px;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(9, 11, 16, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.105);
    box-shadow: var(--shadow);
}

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

.user-menu-head {
    padding: 20px 16px 15px;
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(255, 154, 46, 0.22), transparent 58%),
        linear-gradient(135deg, rgba(255, 154, 46, 0.10), rgba(61, 168, 255, 0.08));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.user-menu-head strong {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.user-menu-head span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.user-menu-dropdown a,
.user-menu-logout button {
    width: 100%;
    min-height: 45px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 15px;
    border: 0;
    color: var(--text-soft);
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: .16s ease;
}

.user-menu-dropdown a:hover,
.user-menu-logout button:hover {
    color: #fff;
    background: rgba(255, 154, 46, 0.10);
}

.user-menu-dropdown a i,
.user-menu-logout button i {
    width: 18px;
    color: var(--accent);
    text-align: center;
}

.user-menu-logout {
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-menu-logout button:hover {
    background: rgba(255, 77, 93, 0.13);
}

.user-menu-logout button:hover i {
    color: #ffb5be;
}

/* Layout */
.page {
    width: min(1280px, calc(100% - 32px));
    flex: 1;
    margin: 0 auto;
    padding: 34px 0;
}

.page-title,
.hero-title,
.section-title,
.section-head h2,
.profile-card h2,
.admin-card h2,
.shop-card h3,
.server-modal-title,
.login-modal-card h2,
.empty-state h2 {
    font-family: "Jura", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: .2px;
}

.page-title {
    margin: 0 0 7px;
    color: #fff;
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
}

.page-subtitle {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 14px;
}

.grid {
    display: grid;
    gap: 18px;
}

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

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-gap {
    margin-top: 24px;
}

.eyebrow {
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.section-head h2,
.section-title {
    margin: 0;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.05;
}

.section-head p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.section-count {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 700;
}

/* Buttons */
.btn {
    min-height: 41px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 154, 46, 0.34);
    border-radius: 13px;
    color: #111318;
    background:
        linear-gradient(180deg, #e3b15d, var(--accent) 55%, #b96f1f);
    box-shadow: 0 12px 26px rgba(255, 116, 26, 0.18);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: transform .16s ease, filter .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 16px 34px rgba(255, 116, 26, 0.24);
}

.btn:focus-visible,
.icon-btn:focus-visible,
.play-btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

.btn i {
    margin-right: 0;
}

.btn-muted {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.btn-muted:hover {
    background: rgba(255, 255, 255, 0.10);
}

.btn-danger {
    color: #fff;
    background: linear-gradient(180deg, #ff6b78, #d92838);
    border-color: rgba(255, 77, 93, 0.40);
    box-shadow: 0 12px 26px rgba(255, 77, 93, 0.16);
}

.btn-danger:hover {
    box-shadow: 0 16px 34px rgba(255, 77, 93, 0.22);
}

.discord-login-btn {
    color: #fff;
    background: linear-gradient(180deg, rgba(88, 101, 242, 0.92), rgba(74, 84, 210, 0.92));
    border-color: rgba(132, 145, 255, 0.34);
}

.hidden-form {
    display: none;
}

/* Hero */
.hero-card,
.profile-hero,
.auth-card,
.login-modal-card,
.filter-card,
.table-card,
.admin-card,
.settings-card,
.shop-card,
.shop-server-block,
.order-card,
.legend-card,
.empty-state {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.028)),
        var(--panel);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.hero-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.55fr 0.82fr;
    gap: 22px;
    align-items: stretch;
    padding: 28px;
    border-radius: 28px;
}

.hero-card::before,
.profile-hero::before,
.shop-server-block::before,
.admin-card::before,
.settings-card::before,
.auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 16% 0%, rgba(255, 154, 46, 0.18), transparent 34%),
        radial-gradient(circle at 96% 14%, rgba(61, 168, 255, 0.12), transparent 36%);
    opacity: .95;
}

.hero-card > *,
.profile-hero > *,
.shop-server-block > *,
.admin-card > *,
.settings-card > *,
.auth-card > * {
    position: relative;
    z-index: 1;
}

.hero-title {
    margin: 0;
    max-width: 760px;
    color: #fff;
    font-size: clamp(46px, 7vw, 84px);
    font-weight: 800;
    line-height: .92;
    text-transform: uppercase;
}

.hero-text {
    max-width: 640px;
    margin: 16px 0 0;
    color: var(--text-soft);
    font-size: 16px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-panel {
    display: grid;
    gap: 12px;
    align-content: center;
    padding: 16px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.23);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.hero-panel-title {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.hero-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-stat span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 700;
}

.hero-stat span i {
    width: 14px;
    color: var(--accent);
    font-size: 12px;
    text-align: center;
}

.hero-stat span .hero-status-dot {
    color: #29d17d;
    font-size: 8px;
}


.hero-stat strong {
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .2px;
}

/* Server cards */
.game-server-card {
    position: relative;
    isolation: isolate;
    min-height: 138px;
    overflow: hidden;
    border-radius: 22px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: var(--shadow-soft);
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.game-server-card:hover {
    transform: translateY(-3px);
    filter: brightness(1.08) saturate(1.05);
    border-color: rgba(255, 154, 46, 0.32);
    box-shadow: 0 26px 78px rgba(0, 0, 0, 0.46);
}

.game-server-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 6, 8, 0.84) 0%, rgba(5, 6, 8, 0.58) 50%, rgba(5, 6, 8, 0.22) 100%),
        linear-gradient(180deg, rgba(255, 154, 46, 0.08), rgba(0, 0, 0, 0.38));
    z-index: 0;
}

.game-server-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(5, 6, 8, 0.82), rgba(5, 6, 8, 0.28)),
        linear-gradient(180deg, transparent, rgba(5, 6, 8, 0.60));
}

.game-server-content {
    position: relative;
    z-index: 1;
    min-height: 138px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
}

.server-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.game-server-content h2 {
    max-width: 78%;
    margin: 0;
    color: #fff;
    font-family: "Jura", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.02;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.76);
}

.server-state {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    backdrop-filter: blur(7px);
}

.server-state.online {
    color: #bfffdc;
    background: rgba(53, 208, 127, 0.16);
    border: 1px solid rgba(53, 208, 127, 0.28);
}

.server-state.offline {
    color: #ffd1d6;
    background: rgba(255, 77, 93, 0.16);
    border: 1px solid rgba(255, 77, 93, 0.28);
}

.map-pill {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.13);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.map-pill svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.server-bottom {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-top: 12px;
}

.players-box {
    height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.player-ring {
    --fill: 0;
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 32px;
    border-radius: 999px;
    background:
        conic-gradient(var(--green) calc(var(--fill) * 1%), rgba(255, 255, 255, 0.20) 0);
    position: relative;
}

.player-ring::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: inherit;
    background: rgba(6, 8, 12, 0.96);
}

.player-ring span {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.players-max {
    color: rgba(244, 246, 251, 0.90);
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 2px 10px #000;
}

.server-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn,
.play-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    cursor: pointer;
    transition: transform .16s ease, filter .16s ease, background .16s ease;
}

.icon-btn {
    color: #fff;
    background: rgba(255, 154, 46, 0.84);
}

.play-btn {
    color: #111318;
    background: #fff;
}

.icon-btn:hover,
.play-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.icon-btn svg,
.play-btn svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
}

.play-btn svg {
    margin-left: 2px;
}

/* Tables */
.table-card {
    border-radius: 20px;
    overflow: hidden;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    text-align: left;
    font-size: 13px;
}

td {
    color: var(--text-soft);
    font-weight: 800;
}

th {
    color: var(--accent);
    background: rgba(0, 0, 0, 0.22);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .65px;
}

tr:hover td {
    color: #fff;
    background: rgba(255, 154, 46, 0.055);
}

.player-link {
    color: #fff;
    font-weight: 800;
}

.player-link:hover {
    color: var(--accent);
}

/* Badges and small status */
.badge,
.rank-level,
.stat-kd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    line-height: 1.2;
}

.badge {
    min-width: 86px;
    padding: 6px 10px;
    font-size: 11px;
    text-transform: capitalize;
}

.badge-active {
    color: #bfffdc;
    background: rgba(53, 208, 127, 0.14);
    border: 1px solid rgba(53, 208, 127, 0.26);
}

.badge-expired {
    color: #efd39a;
    background: rgba(249, 214, 92, 0.13);
    border: 1px solid rgba(249, 214, 92, 0.24);
}

.badge-removed {
    color: #cfe6ff;
    background: rgba(61, 168, 255, 0.13);
    border: 1px solid rgba(61, 168, 255, 0.24);
}

.badge-permanent {
    color: #ffd1d6;
    background: rgba(255, 77, 93, 0.13);
    border: 1px solid rgba(255, 77, 93, 0.24);
}

.badge-unknown {
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.11);
}

.rank-level {
    min-width: 36px;
    height: 29px;
    padding: 0 10px;
    color: #111318;
    background: linear-gradient(180deg, #e8c17b, var(--accent));
    border: 1px solid rgba(255, 154, 46, 0.32);
    font-size: 12px;
}

.stat-kd {
    min-width: 46px;
    height: 27px;
    padding: 0 9px;
    color: #dcecff;
    background: rgba(61, 168, 255, 0.12);
    border: 1px solid rgba(61, 168, 255, 0.22);
    font-size: 12px;
}

.rank-progress {
    width: 120px;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.085);
}

.rank-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--blue));
}

.rank-progress-text {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

/* Forms and filters */
.filter-card,
.settings-card,
.auth-card {
    position: relative;
    padding: 18px;
    border-radius: 22px;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr 1fr auto;
    gap: 12px;
    align-items: end;
}

.filter-grid-ranks {
    grid-template-columns: 1fr auto;
}

.filter-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .55px;
}

.filter-field input,
.filter-field select,
.filter-field textarea {
    width: 100%;
    color: var(--text);
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.filter-field input,
.filter-field select {
    height: 42px;
    padding: 0 13px;
}

.filter-field textarea {
    min-height: 96px;
    padding: 12px 13px;
    resize: vertical;
}

.filter-field input:focus,
.filter-field select:focus,
.filter-field textarea:focus {
    border-color: rgba(255, 154, 46, 0.56);
    background: rgba(0, 0, 0, 0.30);
}

.filter-field input[readonly] {
    opacity: .75;
    cursor: not-allowed;
}

.filter-actions {
    display: flex;
    gap: 8px;
}

.field-error {
    display: block;
    margin-top: 6px;
    color: #ffb7be;
    font-size: 12px;
    font-weight: 700;
}

.auth-form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-size: 13px;
}

.auth-error,
.admin-alert {
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 800;
}

.auth-error,
.admin-alert-error {
    color: #ffd1d6;
    background: rgba(255, 77, 93, 0.12);
    border: 1px solid rgba(255, 77, 93, 0.22);
}

.admin-alert-success {
    color: #bfffdc;
    background: rgba(53, 208, 127, 0.12);
    border: 1px solid rgba(53, 208, 127, 0.22);
}

/* Pagination */
.pagination-wrap {
    margin-top: 20px;
}

.fz-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 15px;
    border-radius: 18px;
    background: var(--panel);
    border: 1px solid var(--border);
}

.fz-pagination-info {
    color: var(--muted);
    font-size: 13px;
}

.fz-pagination-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.fz-page {
    min-width: 37px;
    height: 37px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border-radius: 12px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 13px;
    font-weight: 800;
}

.fz-page:hover,
.fz-page.active {
    color: #111318;
    background: var(--accent);
    border-color: rgba(255, 154, 46, 0.42);
}

.fz-page.disabled {
    opacity: .38;
    cursor: not-allowed;
}

/* Profile, account, player */
.profile-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 18px;
    align-items: stretch;
    padding: 24px;
    border-radius: 26px;
}

.profile-hero .btn {
    gap: 8px;
}

.hero-inline-action {
    margin-top: 14px;
}

.profile-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.profile-summary div,
.profile-card,
.profile-stats div,
.profile-status-list div,
.shop-meta div,
.shop-request-summary div {
    background: rgba(255, 255, 255, 0.052);
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 16px;
}

.profile-summary div {
    padding: 14px;
}

.profile-summary span,
.profile-stats span,
.shop-meta span,
.shop-request-summary span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.profile-summary strong,
.profile-stats strong,
.shop-meta strong,
.shop-request-summary strong {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

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

.profile-card {
    padding: 17px;
    background: var(--panel);
    box-shadow: var(--shadow-soft);
}

.profile-card-wide {
    grid-column: 1 / -1;
}

.profile-card h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 25px;
    font-weight: 700;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.profile-stats div {
    padding: 12px;
}

.profile-muted,
.profile-empty {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.profile-rank-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.profile-rank-line strong {
    color: #fff;
    font-weight: 800;
}

.profile-rank-line p {
    margin: 3px 0 0;
    color: var(--muted);
}

.profile-tabs {
    display: grid;
    gap: 16px;
}

.profile-tab-nav {
    display: flex;
    gap: 8px;
    padding: 8px;
    overflow-x: auto;
    border-radius: 20px;
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.profile-tab-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: var(--text-soft);
    background: transparent;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: .16s ease;
}

.profile-tab-btn:hover,
.profile-tab-btn.is-active {
    color: #111318;
    background: var(--accent);
}

.profile-tab-btn i {
    color: currentColor;
}

.profile-tab-panel {
    display: none;
}

.profile-tab-panel.is-active {
    display: block;
}

.profile-status-list {
    display: grid;
    gap: 10px;
}

.profile-status-list div {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    color: var(--text-soft);
}

.profile-status-list i {
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 11px;
}

.profile-status-list .is-found i {
    color: #bfffdc;
    background: rgba(53, 208, 127, 0.16);
}

.profile-status-list .is-missing i {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.08);
}

.profile-copy-btn {
    margin-top: 14px;
}

.profile-ban-table {
    box-shadow: none;
}

.profile-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-actions .btn,
.profile-hero > .btn,
.profile-hero > a.btn,
.profile-hero .btn-muted {
    width: auto;
    max-width: fit-content;
    flex: 0 0 auto;
    white-space: nowrap;
}

/* Account */
.account-discord {
    display: flex;
    align-items: center;
    gap: 14px;
}

.account-discord img,
.account-discord-fallback {
    width: 70px;
    height: 70px;
    border-radius: 20px;
}

.account-discord img {
    object-fit: cover;
}

.account-discord-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(88, 101, 242, 0.18);
    border: 1px solid rgba(88, 101, 242, 0.28);
    font-size: 28px;
}

.account-discord strong {
    display: block;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.account-discord span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

/* Admin */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.admin-card {
    position: relative;
    overflow: hidden;
    padding: 19px;
    border-radius: 20px;
    transition: transform .16s ease, border-color .16s ease;
}

.admin-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 154, 46, 0.26);
}

.admin-card i {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 15px;
    color: #111318;
    background: linear-gradient(180deg, #e8c17b, var(--accent));
}

.admin-card h2 {
    margin: 0;
    color: #fff;
    font-size: 25px;
    font-weight: 700;
}

.admin-card p {
    margin: 8px 0 17px;
    color: var(--muted);
    font-size: 13px;
}

.admin-user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-user-cell img,
.admin-user-cell > span {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    border-radius: 13px;
}

.admin-user-cell img {
    object-fit: cover;
}

.admin-user-cell > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.07);
}

.admin-user-cell strong {
    display: block;
    color: #fff;
    font-weight: 800;
}

.admin-user-cell small {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.admin-server-list {
    display: grid;
    gap: 18px;
}

.admin-server-card {
    margin: 0;
}

.admin-server-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.admin-server-head h2 {
    margin: 0;
    color: #fff;
    font-family: "Jura", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 27px;
    font-weight: 700;
}

.admin-server-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.admin-server-toggle {
    grid-column: auto;
    min-width: 180px;
    margin: 0;
}

.admin-server-actions,
.settings-actions {
    display: flex;
    gap: 10px;
}

.settings-actions {
    justify-content: flex-end;
    margin-top: 16px;
}

.order-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Settings */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.settings-wide {
    grid-column: 1 / -1;
}

.settings-toggle {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.052);
    border: 1px solid rgba(255, 255, 255, 0.075);
    cursor: pointer;
}

.settings-toggle input {
    width: 18px;
    height: 18px;
}

.settings-toggle strong {
    display: block;
    color: #fff;
    font-weight: 800;
}

.settings-toggle small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}

/* Shop */
.shop-server-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 1180px;
    margin-inline: auto;
}

.shop-server-block {
    position: relative;
    overflow: hidden;
    min-width: 0;
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: 26px;
}

.shop-server-block .section-head {
    align-items: flex-start;
    margin-bottom: 4px;
}

.shop-server-host {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.shop-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.shop-card {
    width: 100%;
    display: grid;
    gap: 15px;
    padding: 19px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.028)),
        rgba(15, 18, 25, 0.94);
}

.shop-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.shop-card h3 {
    margin: 0;
    color: #fff;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.05;
}

.shop-card p {
    margin: 7px 0 0;
    color: var(--text-soft);
    font-size: 13px;
}

.shop-price {
    text-align: right;
    white-space: nowrap;
}

.shop-price strong {
    display: block;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
}

.shop-price span {
    color: var(--muted);
    font-size: 13px;
}

.shop-meta,
.shop-request-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.shop-meta div,
.shop-request-summary div {
    padding: 12px;
}

.shop-meta strong,
.shop-request-summary strong {
    font-size: 13px;
    word-break: break-word;
}

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

.shop-request-form {
    max-width: 900px;
    margin-inline: auto;
}

.shop-request-summary {
    margin-top: 18px;
}

.add-product-panel {
    display: none;
}

.add-product-panel.is-open {
    display: block;
}

.empty-state {
    display: grid;
    place-items: center;
    text-align: center;
    gap: 10px;
    padding: 50px 20px;
    border-radius: 24px;
}

.empty-state i {
    color: var(--accent);
    font-size: 36px;
}

.empty-state h2 {
    margin: 0;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
}

/* Orders */
.orders-list {
    display: grid;
    gap: 14px;
}

.order-card {
    display: grid;
    gap: 14px;
    padding: 17px;
    border-radius: 20px;
}

.order-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.order-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.095);
    font-size: 12px;
    font-weight: 800;
}

/* Legends */
.legends-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.legend-card {
    padding: 17px;
    border-radius: 20px;
}

.legend-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.legend-card-head h2 {
    margin: 0;
    color: #fff;
    font-family: "Jura", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 23px;
    font-weight: 700;
}

.legend-card-head span {
    padding: 6px 9px;
    border-radius: 999px;
    color: #111318;
    background: var(--accent);
    font-size: 11px;
    font-weight: 800;
}

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

.legend-row {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.052);
    border: 1px solid rgba(255, 255, 255, 0.075);
}

.legend-pos {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
}

.legend-name {
    color: var(--text-soft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.legend-row strong {
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

/* Server modal */
.server-modal,
.login-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(3, 4, 6, 0.78);
    backdrop-filter: blur(12px);
}

.server-modal.is-open,
.login-modal.is-open {
    display: flex;
}

.server-modal-card {
    width: min(940px, 100%);
    max-height: min(730px, calc(100vh - 40px));
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    overflow: hidden;
    border-radius: 26px;
    background: #090b10;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 30px 110px rgba(0, 0, 0, 0.62);
}

.server-modal-info {
    position: relative;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 24px;
    background-size: cover;
    background-position: center;
}

.server-modal-info::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 6, 8, 0.08) 0%, rgba(5, 6, 8, 0.90) 100%),
        linear-gradient(90deg, rgba(5, 6, 8, 0.62), rgba(5, 6, 8, 0.18));
}

.server-modal-info > * {
    position: relative;
    z-index: 1;
}

.server-modal-close,
.login-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 39px;
    height: 39px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: rgba(0, 0, 0, 0.42);
    cursor: pointer;
}

.login-modal-close {
    font-size: 22px;
}

.server-modal-title {
    margin: 0;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.server-modal-map {
    margin-top: 8px;
    color: var(--text-soft);
    font-weight: 800;
    text-transform: uppercase;
}

.server-modal-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.server-modal-ip {
    width: fit-content;
    margin-top: 14px;
    padding: 10px 13px;
    border-radius: 999px;
    color: #f3f4f6;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 13px;
    font-weight: 800;
}

.server-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.server-modal-actions .btn {
    flex: 1;
}

.server-modal-players {
    min-height: 520px;
    background: rgba(10, 12, 17, 0.98);
    overflow: hidden;
}

.server-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.045);
}

.server-modal-head h3 {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.server-modal-count {
    min-width: 27px;
    height: 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 800;
}

.server-modal-search {
    width: 195px;
    height: 39px;
    padding: 0 12px;
    border-radius: 13px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.11);
    outline: none;
}

.server-player-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
}

.server-player-table th,
.server-player-table td {
    padding: 12px 14px;
    font-size: 13px;
}

.server-player-table th {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
}

.server-player-table td {
    color: var(--text-soft);
}

.server-player-scroll {
    max-height: 450px;
    overflow-y: auto;
}

.server-empty {
    padding: 22px;
    color: var(--muted);
}

/* Login modal */
.login-modal-card {
    position: relative;
    width: min(430px, 100%);
    padding: 24px;
    border-radius: 24px;
}

.login-modal-card h2 {
    margin: 0;
    color: #fff;
    font-size: 35px;
    font-weight: 700;
}

.login-modal-card p {
    margin: 6px 0 18px;
    color: var(--muted);
}

.login-modal-link {
    display: inline-flex;
    justify-content: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.login-modal-link:hover {
    color: var(--accent);
}

/* Toast */
.copy-toast {
    position: fixed;
    right: auto;
    bottom: auto;
    z-index: 300;
    max-width: calc(100% - 44px);
    padding: 10px 13px;
    border-radius: 13px;
    color: #eafff3;
    background: rgba(10, 13, 18, 0.96);
    border: 1px solid rgba(53, 208, 127, 0.30);
    box-shadow: var(--shadow);
    font-size: 13px;
    font-weight: 800;
    opacity: 0;
    transform: translate(-50%, -10px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.copy-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, -16px);
}

/* Footer */
.site-footer {
    margin-top: 30px;
    padding: 30px 0 20px;
    background: rgba(5, 6, 8, 0.78);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 28px;
}

.footer-logo {
    font-size: 30px;
}

.footer-brand p {
    max-width: 430px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.footer-links h4 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.footer-links a {
    display: block;
    margin: 7px 0;
    color: var(--muted);
    font-size: 13px;
    transition: .16s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 22px auto 0;
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.075);
    color: rgba(199, 208, 221, 0.72);
    font-size: 12px;
}

/* Responsive */
@media (max-width: 1100px) {
    .grid-3,
    .admin-grid,
    .legends-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-server-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {

    body {
        padding-top: 76px;
    }

    .header-brand-group {
        grid-column: 1 !important;
        justify-self: start !important;
        display: flex !important;
        align-items: center !important;
        gap: 16px !important;
        min-width: 0 !important;
    }

    .nav-discord-link {
        width: 34px !important;
        height: 34px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin-left: 10px !important;
        border: 1px solid rgba(88, 101, 242, 0.34) !important;
        border-radius: 999px !important;
        background: rgba(88, 101, 242, 0.12) !important;
        color: #5865f2 !important;
        text-decoration: none !important;
        box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.07) !important;
    }

    .nav-discord-link i {
        color: #5865f2 !important;
        font-size: 20px !important;
    }

    .nav-discord-link > span:not(.nav-discord-status),
    .nav-discord-status {
        display: none !important;
    }

    .site-header {
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 10px;
        padding: 12px 12px;
    }

    .site-header::after {
        left: 16px;
        right: 16px;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav {
        grid-column: 1 / -1;
        justify-self: stretch;
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding-top: 8px;
        overflow: visible;
    }

    .nav.is-open {
        display: flex;
    }

    .nav a,
    .nav-dropdown-toggle,
    .nav-login-btn,
    .user-menu-toggle {
        width: 100%;
        justify-content: flex-start;
        border-radius: 13px;
    }

    .nav-dropdown-menu,
    .user-menu-dropdown {
        position: static;
        width: 100%;
        min-width: 0;
        margin-top: 6px;
        transform: none;
        box-shadow: none;
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.045);
    }

    .nav-dropdown.is-open .nav-dropdown-menu {
        display: grid;
    }

    .user-menu {
        width: 100%;
    }

    .user-menu-toggle {
        padding: 8px 13px;
        background: transparent;
    }

    .user-menu-head {
        text-align: left;
    }

    .user-avatar-large {
        margin: 0 0 8px;
    }

    .page {
        width: min(100% - 22px, 1280px);
        padding: 24px 0;
    }

    .page-title {
        font-size: 32px;
    }

    .hero-card,
    .profile-hero,
    .grid-2,
    .grid-3,
    .profile-grid,
    .admin-grid,
    .legends-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .hero-card,
    .profile-hero {
        padding: 20px;
    }

    .hero-actions,
    .section-head,
    .admin-server-head {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-grid,
    .filter-grid-ranks {
        grid-template-columns: 1fr;
    }

    .filter-actions,
    .settings-actions,
    .admin-server-actions {
        width: 100%;
    }

    .filter-actions .btn,
    .settings-actions .btn,
    .admin-server-actions .btn,
    .admin-server-toggle {
        width: 100%;
    }

    .profile-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .profile-actions .btn,
    .profile-hero > .btn,
    .profile-hero > a.btn {
        width: auto;
        max-width: fit-content;
    }

    .server-modal-card {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .server-modal-info,
    .server-modal-players {
        min-height: auto;
    }

    .server-modal-info {
        padding-top: 70px;
    }

    .server-modal-head {
        flex-direction: column;
        align-items: stretch;
    }

    .server-modal-search {
        width: 100%;
    }

    .footer-inner,
    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .hero-title {
        font-size: 44px;
    }

    .profile-summary,
    .profile-stats,
    .shop-meta,
    .shop-request-summary {
        grid-template-columns: 1fr;
    }

    .shop-card-head {
        flex-direction: column;
        gap: 9px;
    }

    .shop-price {
        text-align: left;
    }

    .shop-request-btn {
        width: 100%;
        justify-self: stretch;
    }

    .game-server-card,
    .game-server-content {
        min-height: 132px;
    }

    .game-server-content h2 {
        max-width: 100%;
        font-size: 18px;
    }

    .server-title-row {
        gap: 8px;
    }

    .server-state {
        padding: 5px 8px;
    }

    .server-bottom {
        align-items: flex-end;
    }

    .icon-btn,
    .play-btn {
        width: 38px;
        height: 38px;
    }

    .fz-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .fz-pagination-info {
        text-align: center;
    }

    .fz-pagination-links {
        justify-content: center;
    }

    .copy-toast {
        left: 10px !important;
        right: 10px;
        max-width: none;
        text-align: center;
        transform: translateY(10px);
    }

    .copy-toast.is-visible {
        transform: translateY(0);
    }
}

@media (max-width: 520px) {
    .page {
        width: min(100% - 18px, 1280px);
    }

    .hero-card,
    .profile-hero,
    .shop-server-block,
    .settings-card,
    .auth-card,
    .login-modal-card {
        border-radius: 20px;
        padding: 16px;
    }

    .server-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .server-buttons {
        width: 100%;
    }

    .server-buttons .icon-btn,
    .server-buttons .play-btn {
        flex: 1;
    }

    .profile-tab-nav {
        padding: 6px;
    }

    .profile-tab-btn {
        min-height: 38px;
        padding: 8px 11px;
    }

    .order-actions .btn {
        width: 100%;
    }
}

/* Spacing between search/filter blocks and tables */
.filter-card {
    margin-bottom: 20px;
}

.filter-card + .table-card,
.filter-card + .table-wrap,
.filter-card + section,
.filter-card + div {
    margin-top: 20px;
}

/* Server cards visual fix */
.game-server-card {
    border: 0 !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
}

.game-server-overlay {
    background:
        linear-gradient(90deg, rgba(5, 8, 14, 0.44) 0%, rgba(5, 8, 14, 0.24) 52%, rgba(5, 8, 14, 0.10) 100%),
        linear-gradient(180deg, rgba(5, 8, 14, 0.02) 0%, rgba(5, 8, 14, 0.34) 100%) !important;
}

.game-server-card:hover .game-server-overlay {
    background:
        linear-gradient(90deg, rgba(5, 8, 14, 0.34) 0%, rgba(5, 8, 14, 0.18) 52%, rgba(5, 8, 14, 0.06) 100%),
        linear-gradient(180deg, rgba(5, 8, 14, 0.00) 0%, rgba(5, 8, 14, 0.24) 100%) !important;
}

/* Server cards lighter overlay */
.game-server-overlay {
    background:
        linear-gradient(90deg, rgba(5, 8, 14, 0.24) 0%, rgba(5, 8, 14, 0.10) 50%, rgba(5, 8, 14, 0.02) 100%),
        linear-gradient(180deg, rgba(5, 8, 14, 0.00) 0%, rgba(5, 8, 14, 0.16) 100%) !important;
}

.game-server-card:hover .game-server-overlay {
    background:
        linear-gradient(90deg, rgba(5, 8, 14, 0.16) 0%, rgba(5, 8, 14, 0.06) 50%, rgba(5, 8, 14, 0.00) 100%),
        linear-gradient(180deg, rgba(5, 8, 14, 0.00) 0%, rgba(5, 8, 14, 0.10) 100%) !important;
}

.game-server-card {
    filter: brightness(1.14) saturate(1.08);
}

.game-server-card:hover {
    filter: brightness(1.22) saturate(1.12);
}

/* Server status badge polish */
.server-title-row {
    align-items: flex-start;
    gap: 14px;
}

.server-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    height: 26px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    white-space: nowrap;
}

.server-state.online {
    color: #d7ffe5;
    background: rgba(34, 197, 94, 0.24);
    border: 1px solid rgba(34, 197, 94, 0.42);
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.18);
}

.server-state.offline,
.server-state.is-offline,
.server-state.disabled {
    color: #ffe1e7;
    background: rgba(251, 113, 133, 0.24);
    border: 1px solid rgba(251, 113, 133, 0.42);
    box-shadow: 0 0 18px rgba(251, 113, 133, 0.16);
}

.server-state.offline::before,
.server-state.is-offline::before,
.server-state.disabled::before {
    content: "Offline";
}

.server-state:empty::before {
    content: "Offline";
}

/* Server card status badge */
.server-state {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    height: 28px;
    padding: 0 13px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    white-space: nowrap;
}

.server-state.online {
    color: #dcffe8 !important;
    background: rgba(34, 197, 94, 0.26) !important;
    border: 1px solid rgba(34, 197, 94, 0.46) !important;
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.20);
}

.server-state.offline {
    color: #ffe3e8 !important;
    background: rgba(251, 113, 133, 0.26) !important;
    border: 1px solid rgba(251, 113, 133, 0.46) !important;
    box-shadow: 0 0 18px rgba(251, 113, 133, 0.18);
}

/* Wider layout only on desktop */
@media (min-width: 1200px) {
    .page,
    .footer-inner,
    .footer-bottom {
        width: min(1500px, calc(100% - 44px));
    }

    body .shop-server-list {
        max-width: 1500px;
    }
}

/* Why FragZone section */
.why-fragzone {
    position: relative;
}

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

.why-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 20px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(251, 146, 60, 0.14), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.26);
}

.why-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(251, 146, 60, 0.13), transparent 38%),
        linear-gradient(300deg, rgba(56, 189, 248, 0.10), transparent 45%);
    opacity: 0;
    transition: opacity 0.18s ease;
    pointer-events: none;
}

.why-card:hover::before {
    opacity: 1;
}

.why-card i {
    position: relative;
    z-index: 1;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 16px;
    color: #f3dfb8;
    background: rgba(251, 146, 60, 0.20);
    border: 1px solid rgba(251, 146, 60, 0.34);
    box-shadow: 0 0 24px rgba(251, 146, 60, 0.14);
}

.why-card h3,
.why-card p {
    position: relative;
    z-index: 1;
}

.why-card h3 {
    margin: 0 0 8px;
    font-family: "Jura", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.why-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.55;
}

@media (max-width: 1100px) {
    .why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-card {
        min-height: auto;
    }
}

/* Home top players preview */
.home-leaders-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.home-leader-card {
    padding: 16px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.13), transparent 36%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.26);
}

.home-leader-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.home-leader-head h3 {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Jura", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 21px;
    font-weight: 700;
}

.home-leader-head h3 i {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #f3dfb8;
    background: rgba(251, 146, 60, 0.18);
    border: 1px solid rgba(251, 146, 60, 0.30);
    font-size: 13px;
}

.home-leader-head span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

.home-leader-head .btn {
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 11px;
    font-size: 14px;
    white-space: nowrap;
}

.home-leader-list {
    display: grid;
    gap: 7px;
}

.home-leader-row {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 13px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.075);
    transition: 0.16s ease;
}

.home-leader-row:hover {
    background: rgba(251, 146, 60, 0.12);
    border-color: rgba(251, 146, 60, 0.22);
    transform: translateY(-1px);
}

.home-leader-row strong {
    color: #e3b15d;
    font-size: 13px;
    font-weight: 800;
}

.home-leader-row span {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-leader-row em {
    color: var(--text-soft);
    font-size: 13px;
    font-style: normal;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .home-leaders-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .home-leader-head {
        flex-direction: column;
    }

    .home-leader-head .btn {
        width: 100%;
    }

    .home-leader-row {
        grid-template-columns: 38px 1fr;
    }

    .home-leader-row em {
        grid-column: 2;
    }
}

/* Typography scale down */
.hero-title {
    font-size: clamp(38px, 5.5vw, 62px) !important;
    line-height: 0.98;
}

.page-title {
    font-size: clamp(30px, 3.1vw, 40px) !important;
}

.section-title,
.section-head h2 {
    font-size: clamp(25px, 2.3vw, 32px) !important;
}

.hero-text,
.page-subtitle,
.section-head p {
    font-size: 15px;
}

.why-card h3,
.shop-card h3,
.profile-card h2,
.admin-card h2,
.legend-card-head h2 {
    font-size: 21px !important;
}

.server-modal-title {
    font-size: 26px !important;
}

.logo-main {
    font-size: 23px;
}

@media (max-width: 700px) {
    .hero-title {
        font-size: 36px !important;
    }

    .page-title {
        font-size: 28px !important;
    }

    .section-title,
    .section-head h2 {
        font-size: 24px !important;
    }

    .why-card h3,
    .home-leader-head h3,
    .shop-card h3,
    .profile-card h2,
    .admin-card h2 {
        font-size: 20px !important;
    }
}

/* Server cards compact typography */
.game-server-content h2 {
    font-size: 17px !important;
    line-height: 1.05;
    letter-spacing: 0.1px;
}

.map-pill {
    font-size: 11px !important;
    padding: 5px 8px !important;
    gap: 6px;
}

.map-pill svg {
    width: 13px !important;
    height: 13px !important;
}

.players-max {
    font-size: 14px !important;
}

.player-ring {
    width: 29px !important;
    height: 29px !important;
    flex-basis: 29px !important;
}

.player-ring span {
    font-size: 11px !important;
}

.server-state {
    min-width: 76px !important;
    height: 25px !important;
    padding: 0 11px !important;
    font-size: 10px !important;
    letter-spacing: 0.8px;
}

.icon-btn,
.play-btn {
    width: 35px !important;
    height: 35px !important;
    border-radius: 11px !important;
}

.icon-btn svg,
.play-btn svg {
    width: 18px !important;
    height: 18px !important;
}

/* Shop page polish */
.shop-server-list {
    margin-top: 24px;
}

.profile-hero {
    min-height: auto;
}

.profile-hero .page-title {
    margin-bottom: 8px;
}

.profile-hero .page-subtitle {
    margin-bottom: 0;
}

.profile-hero .profile-actions {
    align-self: center;
}

.shop-server-block {
    padding: 20px !important;
    border-radius: 22px !important;
}

.shop-server-block .section-head {
    margin-bottom: 14px !important;
}

.shop-card {
    padding: 20px !important;
    border-radius: 22px !important;
}

.shop-card h3 {
    font-size: 22px !important;
}

.shop-price strong {
    font-size: 24px !important;
}

.shop-meta div {
    padding: 11px 12px !important;
}

.shop-request-btn {
    min-height: 42px !important;
}

@media (min-width: 1200px) {
    body .shop-server-list {
        gap: 18px;
    }
}

@media (max-width: 800px) {
    .profile-hero .profile-actions {
        align-self: flex-start;
    }
}

/* Account page polish */
.account-discord {
    min-height: 82px;
}

.profile-card {
    min-height: auto;
}

.profile-grid .profile-card {
    padding: 18px !important;
}

.profile-status-list div {
    min-height: 42px;
}

.orders-list {
    gap: 12px;
}

.order-card {
    padding: 18px !important;
    border-radius: 20px !important;
}

.order-card h3,
.order-card h4 {
    margin-bottom: 8px;
}

.order-card p {
    margin-top: 0;
}

.order-meta {
    gap: 8px;
    margin-top: 14px;
}

.order-meta span {
    min-height: 28px;
    padding: 7px 10px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    line-height: 1.1;
}

.hero-inline-action {
    margin-top: 14px;
}

.hero-inline-action .btn {
    min-height: 36px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
}

@media (min-width: 1200px) {
    .profile-hero {
        padding: 20px !important;
    }

    .profile-grid {
        gap: 14px;
    }
}

@media (max-width: 800px) {
    .order-card {
        padding: 16px !important;
    }

    .order-meta {
        align-items: flex-start;
    }
}

/* Account pending payment box */
.order-payment-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 16px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(251, 146, 60, 0.10);
    border: 1px solid rgba(251, 146, 60, 0.24);
}

.order-payment-box strong {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.order-payment-box span {
    display: block;
    margin-top: 3px;
    color: var(--text-soft);
    font-size: 12px;
}

.order-payment-box form {
    flex: 0 0 auto;
    margin: 0;
}

.order-payment-box .btn {
    min-height: 40px !important;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .order-payment-box {
        align-items: stretch;
        flex-direction: column;
    }

    .order-payment-box .btn {
        width: 100%;
    }
}

/* Account orders in 2 columns on desktop */
@media (min-width: 1200px) {
    .orders-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        align-items: start;
    }

    .orders-list .order-card {
        height: 100%;
    }
}

@media (max-width: 1199px) {
    .orders-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* Compact account order cards */
.order-card {
    display: flex !important;
    flex-direction: column;
    gap: 14px;
    min-height: 0 !important;
    padding: 18px !important;
}

.order-card > div:first-child h3 {
    margin: 0 0 6px;
    font-size: 18px !important;
}

.order-card > div:first-child p {
    margin: 0;
    font-size: 13px;
}

.order-meta {
    margin-top: 0 !important;
}

.order-payment-box {
    margin-top: 0 !important;
}

@media (min-width: 1200px) {
    .orders-list .order-card {
        height: auto !important;
    }
}

/* Admin orders page polish */
.admin-grid {
    max-width: 820px;
}

.admin-grid .admin-card {
    padding: 18px !important;
}

.admin-grid .admin-card h2 {
    font-size: 19px !important;
}

.admin-grid .admin-card p {
    min-height: 34px;
}

.admin-grid .admin-card .btn {
    min-height: 34px !important;
    padding: 7px 11px !important;
    font-size: 11px !important;
}

@media (min-width: 1200px) {
    .section-gap > .orders-list {
        grid-template-columns: repeat(2, minmax(360px, 1fr));
        max-width: 1100px;
    }
}

.section-gap > .orders-list .order-card {
    padding: 18px !important;
    min-height: auto !important;
}

.section-gap > .orders-list .order-card h3 {
    font-size: 17px !important;
}

.section-gap > .orders-list .order-card p {
    font-size: 12px;
    color: var(--text-soft);
}

.order-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.order-actions form {
    margin: 0;
}

.order-actions .btn {
    min-height: 34px !important;
    padding: 7px 11px !important;
    font-size: 11px !important;
}

.empty-state {
    min-height: 140px;
    padding: 26px 18px !important;
}

.empty-state h2 {
    font-size: 22px !important;
}

.empty-state p {
    font-size: 12px;
}

@media (max-width: 800px) {
    .admin-grid {
        max-width: none;
    }

    .order-actions .btn {
        width: auto;
    }
}

/* Admin orders full width correction */
.admin-grid {
    max-width: none !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (min-width: 1200px) {
    .section-gap > .orders-list {
        max-width: none !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
}

.section-head {
    max-width: none !important;
}

.section-count {
    margin-left: auto;
}

.empty-state {
    width: 100%;
}

@media (max-width: 900px) {
    .admin-grid {
        grid-template-columns: 1fr !important;
    }

    .section-gap > .orders-list {
        grid-template-columns: 1fr !important;
    }
}

/* Admin orders compact centered layout */
body:has(.profile-hero) .admin-grid,
body:has(.profile-hero) .section-gap > .orders-list {
    max-width: 980px !important;
}

.admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

.section-gap > .orders-list {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
}

.section-head {
    max-width: 980px !important;
}

.section-count {
    margin-left: 0 !important;
}

.section-head {
    align-items: center !important;
}

.section-head > div {
    flex: 0 0 auto;
}

.order-card {
    width: 100%;
}

.empty-state {
    max-width: 980px;
}

@media (max-width: 900px) {
    .admin-grid {
        grid-template-columns: 1fr !important;
    }

    body:has(.profile-hero) .admin-grid,
    body:has(.profile-hero) .section-gap > .orders-list,
    .section-head,
    .empty-state {
        max-width: none !important;
    }
}

/* Admin orders sidebar layout */
.admin-orders-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}

.admin-orders-main {
    display: grid;
    gap: 22px;
}

.admin-orders-main > section {
    min-width: 0;
}

.admin-orders-main .section-head,
.admin-orders-main .orders-list,
.admin-orders-main .empty-state {
    max-width: none !important;
}

.admin-orders-main .orders-list {
    grid-template-columns: 1fr !important;
}

.admin-orders-sidebar {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 14px;
}

.admin-side-card {
    padding: 18px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(222, 155, 53, 0.13), transparent 36%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.admin-side-card h3 {
    margin: 0 0 14px;
    font-family: "Jura", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 21px;
    font-weight: 800;
}

.admin-side-stats {
    display: grid;
    gap: 9px;
}

.admin-side-stats div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.075);
}

.admin-side-stats span {
    color: var(--text-soft);
    font-size: 12px;
}

.admin-side-stats strong {
    color: #fff;
    font-size: 18px;
}

.admin-side-actions {
    display: grid;
    gap: 9px;
}

.admin-side-actions .btn {
    width: 100%;
    justify-content: flex-start;
}

.admin-flow-list {
    display: grid;
    gap: 8px;
}

.admin-flow-list span {
    padding: 10px 12px;
    border-radius: 14px;
    color: var(--text-soft);
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.075);
    font-size: 12px;
}

@media (max-width: 1100px) {
    .admin-orders-layout {
        grid-template-columns: 1fr;
    }

    .admin-orders-sidebar {
        position: static;
    }
}

/* Admin orders final width tuning */
.admin-orders-layout {
    grid-template-columns: minmax(720px, 1fr) 360px !important;
    gap: 22px !important;
}

.admin-side-card {
    padding: 20px !important;
}

.admin-side-card h3 {
    font-size: 20px !important;
}

.admin-flow-list span,
.admin-side-stats span {
    font-size: 12px !important;
}

@media (min-width: 1400px) {
    .admin-orders-layout {
        grid-template-columns: minmax(820px, 1fr) 380px !important;
    }
}

@media (max-width: 1100px) {
    .admin-orders-layout {
        grid-template-columns: 1fr !important;
    }
}

/* Move admin orders sidebar higher on desktop */
@media (min-width: 1101px) {
    .admin-orders-sidebar {
        margin-top: -118px;
    }
}

@media (min-width: 1400px) {
    .admin-orders-sidebar {
        margin-top: -126px;
    }
}

@media (max-width: 1100px) {
    .admin-orders-sidebar {
        margin-top: 0;
    }
}

/* Admin dashboard grid */
.admin-dashboard-grid {
    max-width: none !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

.admin-dashboard-grid .admin-card {
    min-height: 190px;
}

.admin-dashboard-grid .admin-card p {
    min-height: 38px;
}

@media (max-width: 1100px) {
    .admin-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 700px) {
    .admin-dashboard-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Admin dashboard larger cards */
.admin-dashboard-grid {
    width: 100%;
    max-width: none !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
}

.admin-dashboard-grid .admin-card {
    min-height: 230px !important;
    padding: 24px !important;
    border-radius: 24px !important;
}

.admin-dashboard-grid .admin-card i {
    width: 54px !important;
    height: 54px !important;
    margin-bottom: 20px !important;
    border-radius: 18px !important;
    font-size: 18px !important;
}

.admin-dashboard-grid .admin-card h2 {
    font-size: 24px !important;
    margin-bottom: 10px !important;
}

.admin-dashboard-grid .admin-card p {
    min-height: 48px;
    margin-bottom: 20px !important;
    font-size: 14px !important;
    line-height: 1.5;
}

.admin-dashboard-grid .admin-card .btn {
    min-height: 42px !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    border-radius: 13px !important;
}

@media (max-width: 1100px) {
    .admin-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 700px) {
    .admin-dashboard-grid {
        grid-template-columns: 1fr !important;
    }

    .admin-dashboard-grid .admin-card {
        min-height: auto !important;
    }
}

/* Admin dashboard full width fix */
body:has(.profile-hero) .admin-dashboard-grid {
    width: 100% !important;
    max-width: none !important;
}

.admin-dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
}

.admin-dashboard-grid .admin-card {
    width: 100% !important;
}

@media (max-width: 1100px) {
    .admin-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 700px) {
    .admin-dashboard-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Server admins page polish */
.admin-server-list {
    gap: 16px;
}

.admin-server-card {
    padding: 20px !important;
    border-radius: 24px !important;
}

.admin-server-head {
    align-items: center !important;
    margin-bottom: 14px !important;
}

.admin-server-head h2 {
    font-size: 26px !important;
}

.admin-server-head .section-count {
    margin-left: 0 !important;
}

.admin-server-card .table-card {
    box-shadow: none !important;
    border-radius: 16px !important;
}

.admin-server-card table {
    min-width: 980px;
}

.admin-server-card th,
.admin-server-card td {
    padding: 11px 14px !important;
    font-size: 12px !important;
}

.admin-server-card th {
    font-size: 11px !important;
    letter-spacing: 0.5px;
}

.admin-server-card td {
    color: var(--text-soft);
}

@media (max-width: 800px) {
    .admin-server-head {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .admin-server-card {
        padding: 16px !important;
    }
}

/* Server admins table polish */
.settings-card .admin-table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    background: rgba(0, 0, 0, 0.16);
}

.settings-card .admin-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.settings-card .admin-table th,
.settings-card .admin-table td {
    padding: 11px 14px !important;
    font-size: 12px !important;
    line-height: 1.35;
}

.settings-card .admin-table th {
    color: #de9b35 !important;
    background: rgba(0, 0, 0, 0.22) !important;
    font-size: 11px !important;
    font-weight: 800;
    letter-spacing: 0.55px;
}

.settings-card .admin-table td {
    color: var(--text-soft);
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.settings-card .admin-table tr:last-child td {
    border-bottom: 0;
}

.settings-card .section-head {
    align-items: center !important;
    margin-bottom: 12px !important;
}

.settings-card .section-title {
    font-size: 28px !important;
}

.settings-card .section-count {
    margin-left: 0 !important;
}

@media (max-width: 800px) {
    .settings-card {
        padding: 16px !important;
    }

    .settings-card .section-head {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .settings-card .admin-table {
        min-width: 860px;
    }
}

/* Admin orders top tool cards */
.admin-orders-tools .admin-card .btn {
    min-height: 38px !important;
    padding: 9px 14px !important;
    font-size: 12px !important;
    border-radius: 12px !important;
}

.admin-orders-tools .admin-card {
    min-height: auto !important;
}

/* Admin shop products polish */
.admin-shop-products .admin-server-list {
    display: grid;
    gap: 16px;
}

.admin-shop-products .settings-card {
    padding: 18px !important;
    border-radius: 22px !important;
}

.admin-shop-products .admin-server-head {
    align-items: flex-start !important;
    margin-bottom: 14px !important;
}

.admin-shop-products .admin-server-head h2 {
    font-size: 22px !important;
    margin: 0 0 4px;
}

.admin-shop-products .admin-server-head p {
    font-size: 12px !important;
}

.admin-shop-products .admin-server-toggle {
    min-width: 132px !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
}

.admin-shop-products .admin-server-toggle strong {
    font-size: 12px !important;
}

.admin-shop-products .admin-server-toggle small {
    font-size: 10px !important;
}

.admin-shop-products .settings-grid {
    gap: 10px !important;
}

.admin-shop-products .filter-field label {
    font-size: 10px !important;
}

.admin-shop-products .filter-field input,
.admin-shop-products .filter-field select {
    height: 36px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
}

.admin-shop-products .filter-field textarea {
    min-height: 72px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
}

.admin-shop-products .settings-actions {
    margin-top: 12px !important;
}

.admin-shop-products .settings-actions .btn {
    min-height: 36px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    border-radius: 11px !important;
}

@media (min-width: 1200px) {
    .admin-shop-products .admin-server-list {
        max-width: 1180px;
    }
}

@media (max-width: 800px) {
    .admin-shop-products .admin-server-head {
        flex-direction: column;
    }

    .admin-shop-products .admin-server-toggle {
        width: 100%;
    }
}

/* Admin shop width correction */
.admin-shop-products .admin-server-list {
    max-width: none !important;
    width: 100% !important;
}

.admin-shop-products .settings-card {
    width: 100% !important;
}

@media (min-width: 1200px) {
    .admin-shop-products .admin-server-list {
        max-width: 1400px !important;
    }
}

/* Fix duplicated Offline text */
.server-state.offline::before,
.server-state.is-offline::before,
.server-state.disabled::before,
.server-state:empty::before {
    content: none !important;
    display: none !important;
}

/* Auto hide alerts */
.admin-alert {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.admin-alert.is-hiding {
    opacity: 0;
    transform: translateY(-6px);
}

/* Confirm modal */
.fz-confirm-modal[hidden] {
    display: none;
}

.fz-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.fz-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 8, 18, 0.74);
    backdrop-filter: blur(7px);
}

.fz-confirm-dialog {
    position: relative;
    width: min(460px, calc(100vw - 32px));
    margin: 10vh auto 0;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at top right, rgba(222, 155, 53, 0.18), transparent 36%),
        linear-gradient(135deg, rgba(31, 38, 50, 0.98), rgba(13, 18, 29, 0.98));
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.fz-confirm-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.fz-confirm-header h3 {
    margin: 4px 0 0;
    color: #fff;
    font-size: 24px;
    line-height: 1.15;
}

.fz-confirm-text {
    margin: 0 0 18px;
    color: var(--text-soft);
    line-height: 1.55;
}

.fz-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.fz-confirm-close {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .fz-confirm-dialog {
        margin-top: 7vh;
        padding: 16px;
    }

    .fz-confirm-actions {
        flex-direction: column;
    }

    .fz-confirm-actions .btn {
        width: 100%;
    }
}

/* Smooth admin card rounded edges */
.profile-hero,
.admin-card,
.settings-card,
.order-card,
.empty-state,
.admin-server-card {
    background-clip: padding-box;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}

.profile-hero::before,
.admin-card::before,
.settings-card::before,
.order-card::before,
.empty-state::before,
.admin-server-card::before {
    border-radius: inherit;
}

/* Discord avatar in user menu */
.user-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}

/* Account password form */
.account-password-form {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.account-password-form .btn {
    width: fit-content;
}

@media (max-width: 640px) {
    .account-password-form .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Compact auth pages */
.auth-card-compact {
    width: min(620px, calc(100% - 24px));
    margin-left: auto;
    margin-right: auto;
    background-clip: padding-box;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}

.auth-card-compact::before {
    border-radius: inherit;
}

.auth-card-compact .auth-form {
    width: 100%;
}

.auth-form-compact {
    display: grid;
    gap: 14px;
    max-width: 420px;
    width: 100%;
    margin-top: 18px;
}

.auth-login-form {
    margin-top: 18px;
}

.auth-card-compact .filter-field {
    width: 100%;
}

.auth-card-compact .filter-field input {
    width: 100%;
}

.auth-card-compact .discord-login-btn {
    width: fit-content;
    min-width: 220px;
    justify-content: center;
}

.auth-card-compact .auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.auth-card-compact .auth-actions .btn {
    width: fit-content;
}

@media (max-width: 640px) {
    .auth-card-compact {
        width: 100%;
    }

    .auth-form-compact,
    .auth-card-compact .discord-login-btn,
    .auth-card-compact .auth-actions .btn {
        width: 100%;
    }

    .auth-card-compact .auth-actions {
        flex-direction: column;
    }
}

/* Login page action buttons */
.auth-card-compact .auth-login-form .auth-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 220px;
}

.auth-card-compact .auth-login-form .auth-actions .btn {
    width: 100%;
    justify-content: center;
}

@media (min-width: 641px) {
    .auth-card-compact .auth-login-form .auth-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 420px;
    }

    .auth-card-compact .auth-login-form .auth-actions .btn:nth-child(3) {
        grid-column: 1 / -1;
        width: 220px;
        justify-self: center;
    }
}

/* Email login modal */
.login-modal-form {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.login-modal-form .btn {
    width: 100%;
    justify-content: center;
}

.login-modal-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.login-modal-divider::before,
.login-modal-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgba(255, 255, 255, 0.09);
}

.login-modal-discord {
    width: 100%;
    justify-content: center;
}

.login-modal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
    margin-top: 14px;
}

.login-modal-links a {
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.login-modal-links a:hover {
    color: var(--accent);
}

/* Softer Discord button hover */
.discord-login-btn:hover,
.login-modal-discord:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.btn-muted.discord-login-btn,
.login-modal-discord {
    background: rgba(88, 101, 242, 0.18) !important;
    border-color: rgba(88, 101, 242, 0.42) !important;
    color: #fff !important;
}

.btn-muted.discord-login-btn:hover,
.login-modal-discord:hover {
    background: rgba(88, 101, 242, 0.28) !important;
    border-color: rgba(88, 101, 242, 0.58) !important;
    color: #fff !important;
}

/* Active navigation */
.nav > a,
.nav-dropdown-toggle {
    position: relative;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.nav > a:hover,
.nav-dropdown-toggle:hover,
.nav > a.is-active,
.nav-dropdown.is-active .nav-dropdown-toggle {
    color: #fff;
    background: rgba(222, 155, 53, 0.12);
    border-color: rgba(222, 155, 53, 0.34);
}

.nav > a.is-active,
.nav-dropdown.is-active .nav-dropdown-toggle {
    box-shadow:
        inset 0 0 0 1px rgba(222, 155, 53, 0.22),
        0 10px 26px rgba(222, 155, 53, 0.10);
}

.nav > a.is-active i,
.nav-dropdown.is-active .nav-dropdown-toggle i,
.nav-dropdown-menu a.is-active i {
    color: var(--accent);
}

.nav-dropdown-menu a.is-active {
    color: #fff;
    background: rgba(222, 155, 53, 0.12);
    border-color: rgba(222, 155, 53, 0.28);
}

/* Hide hero action buttons on mobile */
@media (max-width: 640px) {
    .hero-card .hero-actions {
        display: none !important;
    }
}

/* Latest bans header alignment */
.latest-bans-head {
    width: 100%;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.latest-bans-head .btn {
    flex: 0 0 auto;
    margin-left: auto;
}

@media (max-width: 640px) {
    .latest-bans-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .latest-bans-head .btn {
        margin-left: 0;
    }
}

/* Force Latest Bans header to match table width */
.section-head.latest-bans-head {
    width: 100% !important;
    max-width: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.section-head.latest-bans-head > div {
    flex: 1 1 auto !important;
    max-width: none !important;
}

.section-head.latest-bans-head > .btn {
    flex: 0 0 auto !important;
    margin-left: auto !important;
}

@media (max-width: 640px) {
    .section-head.latest-bans-head {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .section-head.latest-bans-head > .btn {
        margin-left: 0 !important;
    }
}

/* Navbar image logo */
.logo-image-link {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.nav-logo-img {
    display: block;
    width: auto;
    height: 46px;
    max-width: 260px;
    object-fit: contain;
}

@media (max-width: 640px) {
    .nav-logo-img {
        height: 38px;
        max-width: 190px;
    }
}

/* Stable navbar logo, prevent flicker/layout shift */
.logo-image-link {
    width: 200px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
    overflow: hidden;
}

.nav-logo-img {
    width: 200px !important;
    height: 50px !important;
    max-width: 200px !important;
    object-fit: contain;
    display: block;
    opacity: 1;
    transform: translateZ(0);
    backface-visibility: hidden;
}

@media (max-width: 640px) {
    .logo-image-link {
        width: 150px;
        height: 38px;
    }

    .nav-logo-img {
        width: 150px !important;
        height: 38px !important;
        max-width: 150px !important;
    }
}

/* Desktop header layout */
@media (min-width: 901px) {
    body .site-header {
        display: grid !important;
        grid-template-columns: 430px 1fr 430px !important;
        align-items: center !important;
        width: 100% !important;
        max-width: none !important;
        min-height: 82px !important;
        padding-left: 30px !important;
        padding-right: 30px !important;
        box-sizing: border-box !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 5000 !important;
    }

    body .site-header .header-brand-group {
        grid-column: 1 !important;
        justify-self: start !important;
        display: flex !important;
        align-items: center !important;
        gap: 20px !important;
        min-width: 0 !important;
    }

    body .site-header .logo-image-link {
        justify-self: start !important;
        flex: 0 0 auto !important;
    }

    body .site-header .nav-discord-link {
        min-height: 34px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 6px 11px !important;
        border: 1px solid rgba(88, 101, 242, 0.30) !important;
        border-radius: 999px !important;
        background: rgba(88, 101, 242, 0.10) !important;
        color: #dfe4ff !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        text-decoration: none !important;
        white-space: nowrap !important;
    }

    body .site-header .nav-discord-link:hover {
        color: #ffffff !important;
        border-color: rgba(88, 101, 242, 0.55) !important;
        background: rgba(88, 101, 242, 0.18) !important;
    }

    body .site-header .nav-discord-link i {
        color: #5865f2 !important;
        font-size: 15px !important;
    }

    body .site-header .nav-discord-status {
        display: inline-flex !important;
        align-items: center !important;
        gap: 5px !important;
        color: #9fe7b1 !important;
        font-size: 12px !important;
        font-weight: 900 !important;
    }

    body .site-header .nav-discord-dot {
        width: 7px !important;
        height: 7px !important;
        flex: 0 0 7px !important;
        display: inline-block !important;
        border-radius: 999px !important;
        background: #38d66b !important;
        box-shadow: 0 0 0 3px rgba(56, 214, 107, 0.16) !important;
    }

    body .site-header .nav {
        grid-column: 2 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 18px !important;
        width: auto !important;
        max-width: none !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        justify-self: center !important;
    }

    body .site-header .user-menu,
    body .site-header .nav-login-btn {
        position: absolute !important;
        right: 30px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin-left: 0 !important;
        z-index: 50 !important;
    }

    body .site-header .user-menu-dropdown {
        right: 0 !important;
        left: auto !important;
    }

    body:not(.admin-desktop-page) .page {
        margin-top: 82px !important;
    }
}

/* Filter select styling */
.filter-field select {
    width: 100%;
    height: 48px;
    padding: 0 44px 0 16px;
    border: 1px solid rgba(245, 176, 65, 0.45);
    border-radius: 14px;
    background:
        linear-gradient(45deg, transparent 50%, #f5b041 50%) calc(100% - 22px) 20px / 7px 7px no-repeat,
        linear-gradient(135deg, #f5b041 50%, transparent 50%) calc(100% - 16px) 20px / 7px 7px no-repeat,
        rgba(12, 16, 23, 0.92);
    color: #f4f7fb;
    font: inherit;
    font-weight: 700;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.filter-field select:focus {
    border-color: #f5b041;
    box-shadow: 0 0 0 3px rgba(245, 176, 65, 0.16);
}

.filter-field select option {
    background: #151a22;
    color: #f4f7fb;
}


/* Desktop layout and server cards */
@media (min-width: 1200px) {
    body .page,
    body .footer-inner,
    body .footer-bottom {
        width: min(1360px, calc(100% - 56px));
    }

    body .shop-server-list {
        max-width: 1360px;
    }

    body .game-server-card {
        min-height: 118px;
    }

    body .game-server-content {
        min-height: 118px;
        padding: 12px;
    }

    body .game-server-content h2 {
        font-size: 17px;
    }

    body .map-pill {
        margin-top: 6px;
        padding: 5px 9px;
        font-size: 11px;
    }

    body .server-bottom {
        margin-top: 8px;
    }

    body .icon-btn,
    body .play-btn {
        width: 35px;
        height: 35px;
        border-radius: 12px;
    }
}

/* Footer layout tuning */
.site-footer {
    margin-top: 24px;
    padding: 18px 0 12px;
    background: rgba(4, 6, 10, 0.88);
    border-top: 1px solid rgba(245, 176, 65, 0.14);
}

.footer-inner {
    width: min(1360px, calc(100% - 56px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 72px;
    align-items: start;
}

.footer-logo {
    font-size: 28px;
    letter-spacing: 1px;
}

.footer-brand p {
    max-width: 420px;
    margin-top: 10px;
    line-height: 1.55;
}

.footer-links {
    display: grid !important;
    grid-template-columns: 150px 220px 180px !important;
    column-gap: 70px !important;
    max-width: none !important;
    margin-left: auto !important;
    transform: none !important;
}

.footer-links > div {
    min-width: 0 !important;
    margin-right: 0 !important;
}

.footer-links h4,
.footer-links > div h4 {
    margin: 0 0 12px;
    color: #f4f7fb;
    letter-spacing: 0.4px;
    text-align: left !important;
}

.footer-links a,
.footer-links > div a,
.footer-links > div .footer-muted {
    width: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: 8px;
    margin: 6px 0;
    color: #9ca7b8;
    text-align: left !important;
}

.footer-links a:hover {
    color: #f5b041;
    transform: translateX(3px);
}

.footer-links a i {
    width: 18px;
    color: #f5b041;
}

.footer-muted {
    display: block;
    margin: 8px 0;
    color: #7f8a9b;
    font-size: 13px;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    width: 170px;
    height: 43px;
}

.footer-logo-img {
    display: block;
    width: 170px;
    height: 43px;
    max-width: 170px;
    object-fit: contain;
}

.footer-bottom {
    width: min(1360px, calc(100% - 56px));
    margin: 10px auto 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Mobile footer layout */
@media (max-width: 700px) {
    html,
    body {
        overflow-x: hidden;
    }

    .site-footer {
        overflow-x: hidden;
    }

    .footer-inner {
        width: min(100% - 28px, 100%) !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 22px !important;
    }

    .footer-brand,
    .footer-links,
    .footer-links > div {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: none !important;
    }

    .footer-links {
        display: grid !important;
        grid-template-columns: 1fr !important;
        column-gap: 0 !important;
        row-gap: 20px !important;
    }

    .footer-links h4,
    .footer-links > div h4 {
        text-align: left !important;
    }

    .footer-links a,
    .footer-links > div a {
        width: auto !important;
        display: flex !important;
        justify-content: flex-start !important;
        text-align: left !important;
    }

    .footer-bottom {
        width: min(100% - 28px, 100%) !important;
    }
}


/* Language dropdown */
.language-switcher {
    position: relative;
    z-index: 85;
    display: inline-flex;
    align-items: center;
    justify-self: end;
}

.language-current {
    height: 39px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.055);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: color .16s ease, background .16s ease, border-color .16s ease;
}

.language-current:hover,
.language-switcher.is-open .language-current {
    color: #fff;
    border-color: rgba(255, 154, 46, 0.26);
    background: rgba(255, 154, 46, 0.12);
}

.language-current i {
    font-size: 10px;
    color: var(--accent);
    transition: transform .16s ease;
}

.language-switcher.is-open .language-current i {
    transform: rotate(180deg);
}

.language-flag {
    font-size: 15px;
    line-height: 1;
}

.language-code {
    letter-spacing: .4px;
}

.language-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: none;
    min-width: 118px;
    padding: 7px;
    border-radius: 15px;
    background: rgba(9, 11, 16, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: var(--shadow);
}

.language-switcher.is-open .language-menu {
    display: grid;
    gap: 4px;
}

.language-menu a {
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 11px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 900;
}

.language-menu a:hover,
.language-menu a.is-active {
    color: #fff;
    background: rgba(255, 154, 46, 0.13);
}

@media (min-width: 901px) {
    body .site-header .language-switcher {
        position: absolute;
        right: 235px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
    }
}

@media (max-width: 900px) {
    .site-header {
        grid-template-columns: 1fr auto auto;
    }

    .language-switcher {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
    }

    .nav-toggle {
        grid-column: 3;
        grid-row: 1;
    }

    .language-current {
        height: 38px;
        padding: 8px 10px;
    }

    .language-menu {
        right: 0;
    }
}



/* SVG language flags */
.language-flag {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.12);
}

.language-flag img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}


/* Admin desktop layout */
@media (min-width: 1101px) {
    body.admin-desktop-page {
        background: #080b10;
    }

    body.admin-desktop-page .site-header,
    body.admin-desktop-page .site-footer {
        display: none;
    }

    body.admin-desktop-page .page {
        min-height: 100vh;
        margin-left: 260px;
        padding: 28px 34px 44px;
    }

    .admin-desktop-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 1000;
        width: 260px;
        display: flex;
        flex-direction: column;
        padding: 22px 16px;
        background: #11161f;
        border-right: 1px solid rgba(255, 255, 255, 0.07);
    }

    .admin-desktop-brand {
        display: flex;
        align-items: baseline;
        gap: 8px;
        padding: 0 8px 22px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        color: #fff;
        font-weight: 900;
        letter-spacing: .4px;
    }

    .admin-desktop-brand span {
        color: #ffb238;
        font-size: 18px;
    }

    .admin-desktop-brand small {
        color: #ffffff;
        font-size: 14px;
    }

    .admin-desktop-menu {
        display: grid;
        gap: 4px;
        padding-top: 18px;
    }

    .admin-desktop-group {
        margin: 16px 8px 7px;
        color: #718095;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .9px;
    }

    .admin-desktop-menu a,
    .admin-desktop-user a,
    .admin-desktop-user button {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 11px;
        min-height: 42px;
        padding: 11px 12px;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: #aeb8c7;
        font: inherit;
        font-size: 14px;
        font-weight: 800;
        text-align: left;
        cursor: pointer;
    }

    .admin-desktop-menu a:hover,
    .admin-desktop-menu a.is-active,
    .admin-desktop-user a:hover,
    .admin-desktop-user button:hover {
        color: #fff;
        background: rgba(255, 178, 56, 0.15);
    }

    .admin-desktop-menu a.is-active {
        color: #ffb238;
        background: rgba(255, 178, 56, 0.19);
    }

    .admin-desktop-menu i,
    .admin-desktop-user i {
        width: 18px;
        text-align: center;
        color: currentColor;
    }

    .admin-desktop-user {
        display: grid;
        gap: 4px;
        margin-top: auto;
        padding-top: 18px;
    }

    .admin-desktop-user-card {
        display: flex;
        align-items: center;
        gap: 11px;
        margin-bottom: 8px;
        padding: 12px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.04);
    }

    .admin-desktop-avatar {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        overflow: hidden;
        border-radius: 999px;
        background: rgba(255, 178, 56, 0.2);
        color: #ffb238;
    }

    .admin-desktop-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .admin-desktop-user-card strong {
        display: block;
        color: #fff;
        font-size: 13px;
        line-height: 1.1;
    }

    .admin-desktop-user-card small {
        display: block;
        margin-top: 3px;
        color: #ffb238;
        font-size: 10px;
        font-weight: 900;
        text-transform: uppercase;
    }

    body.admin-desktop-page .profile-hero {
        margin-bottom: 22px;
        padding: 24px;
        border-radius: 18px;
        background: #151a23;
        border: 1px solid rgba(255, 255, 255, 0.07);
    }

    body.admin-desktop-page .profile-hero .eyebrow {
        color: #ffb238;
    }

    body.admin-desktop-page .page-title {
        font-size: 30px;
    }

    body.admin-desktop-page .admin-dashboard-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    body.admin-desktop-page .admin-card {
        border-radius: 16px;
        background: #151a23;
        border: 1px solid rgba(255, 255, 255, 0.07);
        box-shadow: none;
    }
}

@media (max-width: 1100px) {
    .admin-desktop-sidebar {
        display: none;
    }
}


/* Admin desktop compact dashboard tuning */
@media (min-width: 1101px) {
    body.admin-desktop-page .page {
        max-width: none;
        padding: 22px 32px 36px;
    }

    body.admin-desktop-page .profile-hero {
        max-width: 1420px;
        margin: 0 0 22px;
        padding: 22px 24px;
        border-radius: 18px;
    }

    body.admin-desktop-page .profile-hero .page-title {
        margin: 6px 0 4px;
        font-size: 34px;
        line-height: 1.05;
    }

    body.admin-desktop-page .profile-hero .page-subtitle {
        margin: 0 0 14px;
        font-size: 15px;
    }

    body.admin-desktop-page .admin-dashboard-grid {
        max-width: 1420px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
        margin: 0;
    }

    body.admin-desktop-page .admin-dashboard-grid .admin-card {
        min-height: 210px;
        padding: 24px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    body.admin-desktop-page .admin-dashboard-grid .admin-card i {
        width: 52px;
        height: 52px;
        margin-bottom: 22px;
        display: grid;
        place-items: center;
        border-radius: 16px;
        background: linear-gradient(180deg, #ffd27a, #e79720);
        color: #11161f;
        font-size: 20px;
    }

    body.admin-desktop-page .admin-dashboard-grid .admin-card h2 {
        margin: 0 0 10px;
        font-size: 24px;
        line-height: 1.1;
    }

    body.admin-desktop-page .admin-dashboard-grid .admin-card p {
        margin: 0 0 14px;
        max-width: 420px;
        font-size: 14px;
        line-height: 1.45;
    }

    body.admin-desktop-page .admin-dashboard-grid .admin-card .btn {
        width: fit-content;
        min-height: 40px;
        margin-top: auto;
        padding: 10px 18px;
        border-radius: 11px;
        font-size: 13px;
    }

    body.admin-desktop-page .admin-desktop-user a span {
        font-size: 13px;
    }
}

/* Admin desktop dashboard v2 */
@media (min-width: 1101px) {
    body.admin-desktop-page .admin-mobile-dashboard {
        display: none;
    }

    body.admin-desktop-page .admin-desktop-dashboard {
        display: block;
        max-width: 1760px;
    }

    body.admin-desktop-page .admin-desktop-dashboard-head {
        margin: 0 0 20px;
    }

    body.admin-desktop-page .admin-desktop-dashboard-head h1 {
        margin: 0;
        color: #ffffff;
        font-size: 23px;
        line-height: 1;
        font-weight: 900;
    }

    body.admin-desktop-page .admin-desktop-dashboard-head h1 span {
        color: #ffb238;
    }

    body.admin-desktop-page .admin-desktop-stat-grid {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 14px;
        margin-bottom: 22px;
    }

    body.admin-desktop-page .admin-desktop-stat-card {
        min-height: 78px;
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 16px 18px;
        border-radius: 13px;
        background: #151a23;
        border: 1px solid rgba(255, 255, 255, 0.07);
        color: #fff;
    }

    body.admin-desktop-page .admin-desktop-stat-card:hover {
        border-color: rgba(255, 178, 56, 0.35);
        transform: translateY(-1px);
    }

    body.admin-desktop-page .admin-desktop-stat-icon {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        flex: 0 0 42px;
        border-radius: 11px;
        background: rgba(255, 178, 56, 0.16);
        color: #ffb238;
        font-size: 17px;
    }

    body.admin-desktop-page .admin-desktop-stat-card strong {
        display: block;
        color: #ffffff;
        font-size: 21px;
        line-height: 1.1;
        font-weight: 900;
    }

    body.admin-desktop-page .admin-desktop-stat-card small {
        display: block;
        margin-top: 3px;
        color: #9aa6b7;
        font-size: 12px;
        font-weight: 800;
    }

    body.admin-desktop-page .admin-desktop-panel-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 18px;
    }

    body.admin-desktop-page .admin-desktop-panel {
        min-height: 260px;
        padding: 20px;
        border-radius: 13px;
        background: #151a23;
        border: 1px solid rgba(255, 255, 255, 0.07);
    }

    body.admin-desktop-page .admin-desktop-panel-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 17px;
    }

    body.admin-desktop-page .admin-desktop-panel-head h2 {
        margin: 0;
        color: #ffffff;
        font-size: 16px;
        font-weight: 900;
    }

    body.admin-desktop-page .admin-desktop-action-table {
        display: grid;
    }

    body.admin-desktop-page .admin-desktop-action-table a {
        min-height: 52px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 14px;
        padding: 12px 10px;
        color: #d6deea;
        border-top: 1px solid rgba(255, 255, 255, 0.055);
    }

    body.admin-desktop-page .admin-desktop-action-table a:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.025);
    }

    body.admin-desktop-page .admin-desktop-action-table span {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
        font-size: 13px;
        font-weight: 900;
    }

    body.admin-desktop-page .admin-desktop-action-table span i {
        width: 20px;
        color: #ffb238;
        text-align: center;
    }

    body.admin-desktop-page .admin-desktop-action-table small {
        color: #8f9bad;
        font-size: 12px;
        font-weight: 800;
        white-space: nowrap;
    }
}

@media (max-width: 1100px) {
    .admin-desktop-dashboard {
        display: none;
    }

    .admin-mobile-dashboard {
        display: block;
    }
}

/* Admin desktop width and overflow tuning */
@media (min-width: 1101px) {
    html,
    body,
    body.admin-desktop-page {
        overflow-x: hidden;
    }

    body.admin-desktop-page .admin-desktop-dashboard,
    body.admin-desktop-page .admin-desktop-stat-grid,
    body.admin-desktop-page .admin-desktop-panel-grid {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    body.admin-desktop-page .admin-desktop-stat-grid {
        grid-template-columns: repeat(6, minmax(150px, 1fr));
    }

    body.admin-desktop-page .admin-desktop-panel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.admin-desktop-page .admin-desktop-panel {
        min-height: 270px;
    }

    body.admin-desktop-page table,
    body.admin-desktop-page form,
    body.admin-desktop-page input,
    body.admin-desktop-page select,
    body.admin-desktop-page textarea {
        max-width: 100%;
        box-sizing: border-box;
    }

    body.admin-desktop-page .table-responsive,
    body.admin-desktop-page .admin-table-wrap,
    body.admin-desktop-page .admin-orders-table,
    body.admin-desktop-page .admin-users-table {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
    }
}

@media (min-width: 1500px) {
    body.admin-desktop-page .admin-desktop-stat-grid {
        grid-template-columns: repeat(6, minmax(170px, 1fr));
    }
}

/* Admin desktop final layout override */
@media (min-width: 1101px) {
    body.admin-desktop-page > .site-header,
    body.admin-desktop-page > .site-footer {
        display: none !important;
    }

    body.admin-desktop-page > .page {
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 0 0 260px !important;
        padding: 22px 32px 36px !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    body.admin-desktop-page > .page > * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.admin-desktop-page .profile-hero,
    body.admin-desktop-page .settings-card,
    body.admin-desktop-page .admin-card,
    body.admin-desktop-page .admin-grid,
    body.admin-desktop-page .admin-dashboard-grid,
    body.admin-desktop-page .admin-orders-layout,
    body.admin-desktop-page .admin-shop-products,
    body.admin-desktop-page .section-gap {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    body.admin-desktop-page .profile-hero {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.admin-desktop-page .settings-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Admin orders exact sidebar fix */
@media (min-width: 1101px) {
    body.admin-desktop-page .admin-orders-layout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 380px !important;
        column-gap: 22px !important;
        row-gap: 0 !important;
        align-items: start !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    body.admin-desktop-page .admin-orders-main {
        grid-column: 1 !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.admin-desktop-page .admin-orders-sidebar {
        grid-column: 2 !important;
        position: sticky !important;
        top: 22px !important;
        width: 100% !important;
        max-width: 380px !important;
        min-width: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    body.admin-desktop-page .admin-orders-sidebar .admin-side-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.admin-desktop-page .admin-orders-tools {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.admin-desktop-page .admin-orders-tools .admin-card {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (min-width: 1101px) and (max-width: 1400px) {
    body.admin-desktop-page .admin-orders-layout {
        grid-template-columns: minmax(0, 1fr) 330px !important;
    }

    body.admin-desktop-page .admin-orders-sidebar {
        max-width: 330px !important;
    }
}

/* Admin delete action buttons */
.admin-user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-user-actions form {
    margin: 0;
}

.admin-table td form {
    margin: 0;
}

/* Legal pages and cookie banner */
.footer-legal-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px auto 0;
    padding: 0 16px 4px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 800;
}

.footer-legal-links a {
    color: var(--text-soft);
}

.footer-legal-links a:hover {
    color: var(--accent);
}


/* Rules page cards */
.rules-page {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.rule-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(24, 29, 39, 0.96), rgba(15, 18, 25, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    line-height: 1.7;
}

.rule-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(245, 176, 65, 0.85), rgba(61, 168, 255, 0.35), transparent);
    pointer-events: none;
}

.rule-card h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 22px;
}

.rule-card p {
    margin: 0 0 12px;
    color: var(--text-soft);
    font-size: 16px;
}

.rule-card p:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .rules-page {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .rule-card {
        padding: 20px;
    }

    .rule-card h2 {
        font-size: 20px;
    }

    .rule-card p {
        font-size: 15px;
    }
}


.legal-page {
    line-height: 1.7;
}

.legal-page h2 {
    margin: 22px 0 8px;
    color: #fff;
    font-size: 21px;
}

.legal-page h2:first-child {
    margin-top: 0;
}

.legal-page p {
    margin: 0 0 12px;
    color: var(--text-soft);
    font-size: 16px;
}

.legal-page code {
    padding: 2px 6px;
    border-radius: 7px;
    background: rgba(255,255,255,.08);
    color: var(--accent);
}

.cookie-consent {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 5000;
    width: min(430px, calc(100vw - 44px));
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(13, 17, 25, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent strong {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-size: 16px;
}

.cookie-consent p {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.5;
}

.cookie-consent a {
    color: var(--accent);
    font-weight: 900;
}

.cookie-consent-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 700px) {
    .cookie-consent {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
    }

    .cookie-consent-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .cookie-consent-actions .btn {
        width: 100%;
    }
}

/* Footer force copyright and legal links on one desktop line */
@media (min-width: 901px) {
    .site-footer .footer-inner .footer-bottom,
    .site-footer .footer-inner .footer-bottom.footer-bottom-legal {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 24px !important;
        margin-top: 34px !important;
        padding-top: 18px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        line-height: 1 !important;
    }

    .site-footer .footer-inner .footer-bottom > span {
        display: inline-flex !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        height: 20px !important;
        line-height: 20px !important;
        white-space: nowrap !important;
    }

    .site-footer .footer-inner .footer-bottom .footer-legal-links {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
        gap: 18px !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        height: 20px !important;
        line-height: 20px !important;
        white-space: nowrap !important;
    }

    .site-footer .footer-inner .footer-bottom .footer-legal-links a {
        display: inline-flex !important;
        align-items: center !important;
        height: 20px !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 20px !important;
        white-space: nowrap !important;
        font-weight: 500 !important;
    }
}

@media (max-width: 900px) {
    .site-footer .footer-inner .footer-bottom.footer-bottom-legal {
        display: grid !important;
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        gap: 12px !important;
        text-align: center !important;
    }

    .site-footer .footer-inner .footer-bottom .footer-legal-links {
        justify-content: center !important;
        flex-wrap: wrap !important;
        height: auto !important;
        line-height: 1.4 !important;
        white-space: normal !important;
    }
}

/* Footer bottom closer to separator */
@media (min-width: 901px) {
    .site-footer .footer-inner .footer-bottom,
    .site-footer .footer-inner .footer-bottom.footer-bottom-legal {
        padding-top: 11px !important;
    }
}

@media (max-width: 900px) {
    .site-footer .footer-inner .footer-bottom.footer-bottom-legal {
        padding-top: 12px !important;
    }
}

/* Site readable text tuning */
@media (min-width: 701px) {
    body:not(.admin-desktop-page) .page-title {
        font-size: clamp(30px, 3.1vw, 40px) !important;
    }

    body:not(.admin-desktop-page) .profile-hero .page-title {
        font-size: clamp(34px, 3.2vw, 42px) !important;
    }

    body:not(.admin-desktop-page) .page-subtitle,
    body:not(.admin-desktop-page) .profile-hero .page-subtitle,
    body:not(.admin-desktop-page) .section-head p,
    body:not(.admin-desktop-page) .hero-text,
    body:not(.admin-desktop-page) .section-text,
    body:not(.admin-desktop-page) .why-card p,
    body:not(.admin-desktop-page) .home-leader-head p,
    body:not(.admin-desktop-page) .latest-bans-head p {
        font-size: 15px !important;
        line-height: 1.65 !important;
    }

    body:not(.admin-desktop-page) .section-title,
    body:not(.admin-desktop-page) .section-head h2,
    body:not(.admin-desktop-page) .settings-card .section-title {
        font-size: clamp(25px, 2.3vw, 32px) !important;
    }
}

@media (min-width: 1101px) {
    body.admin-desktop-page .profile-hero .page-title {
        font-size: 34px !important;
    }

    body.admin-desktop-page .profile-hero .page-subtitle {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    body.admin-desktop-page .section-title,
    body.admin-desktop-page .section-head h2,
    body.admin-desktop-page .settings-card .section-title {
        font-size: 28px !important;
    }

    body.admin-desktop-page .admin-dashboard-grid .admin-card h2 {
        font-size: 25px !important;
    }

    body.admin-desktop-page .admin-dashboard-grid .admin-card p,
    body.admin-desktop-page .settings-card p,
    body.admin-desktop-page .section-head p {
        font-size: 15px !important;
        line-height: 1.55 !important;
    }

    body.admin-desktop-page .admin-desktop-dashboard-head h1 {
        font-size: 25px !important;
    }

    body.admin-desktop-page .admin-desktop-panel-head h2 {
        font-size: 17px !important;
    }

    body.admin-desktop-page .admin-desktop-action-table span {
        font-size: 14px !important;
    }
}

/* Restore original logged user pill and match login button to it */
@media (min-width: 901px) {
    body .site-header .user-menu-toggle {
        min-height: 40px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 9px !important;
        padding: 6px 12px 6px 6px !important;
        border: 1px solid rgba(255, 255, 255, 0.09) !important;
        border-radius: 999px !important;
        color: var(--text-soft) !important;
        background: rgba(255, 255, 255, 0.055) !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        box-shadow: none !important;
    }

    body .site-header .user-menu-toggle:hover,
    body .site-header .user-menu.is-open .user-menu-toggle {
        color: #fff !important;
        border-color: rgba(255, 154, 46, 0.26) !important;
        background: rgba(255, 154, 46, 0.12) !important;
    }

    body .site-header .nav-login-btn {
        min-height: 40px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 9px !important;
        padding: 6px 14px !important;
        border: 1px solid rgba(255, 255, 255, 0.09) !important;
        border-radius: 999px !important;
        color: var(--text-soft) !important;
        background: rgba(255, 255, 255, 0.055) !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        box-shadow: none !important;
    }

    body .site-header .nav-login-btn:hover {
        color: #fff !important;
        border-color: rgba(255, 154, 46, 0.26) !important;
        background: rgba(255, 154, 46, 0.12) !important;
    }

    body .site-header .nav-login-btn i,
    body .site-header .user-menu-toggle i {
        margin-right: 0 !important;
    }

    body .site-header .nav-login-btn .fa-right-to-bracket {
        color: var(--accent) !important;
    }
}

/* Move logged-out login button closer to language switcher */
@media (min-width: 901px) {
    body .site-header .nav > .nav-login-btn {
        margin-left: -28px !important;
    }
}

/* Logged-out desktop header spacing, move language closer to Login */
@media (min-width: 901px) {
    body:has(.nav-login-btn) .site-header .language-switcher {
        right: 135px !important;
    }
}

/* Logged-in desktop header spacing, move language closer to user menu */
@media (min-width: 901px) {
    body:has(.user-menu) .site-header .language-switcher {
        right: 205px !important;
    }
}

/* Logged-in desktop header spacing, match EN to user menu gap with EN to Login gap */
@media (min-width: 901px) {
    body:has(.user-menu):not(:has(.nav-login-btn)) .site-header .language-switcher {
        right: 185px !important;
    }
}

/* Final global font +1px tuning */
body {
    font-size: 15px;
}

.nav a,
.nav button,
.nav-login-btn,
.user-menu-toggle,
.user-menu-dropdown a,
.user-menu-dropdown button,
.language-current,
.language-menu a {
    font-size: 14px !important;
}

.page-subtitle,
.profile-hero .page-subtitle,
.section-head p,
.hero-text,
.section-text,
.card-text,
.why-card p,
.home-leader-head p,
.latest-bans-head p,
.settings-card p,
.admin-card p,
.profile-empty,
.shop-server-host,
.fz-confirm-text,
.login-modal-card p,
.rule-card p,
.legal-page p,
.footer-brand p {
    font-size: 16px !important;
}

@media (min-width: 701px) {
    .page-subtitle,
    .profile-hero .page-subtitle,
    .section-head p,
    .hero-text,
    .section-text,
    .card-text,
    .why-card p,
    .home-leader-head p,
    .latest-bans-head p,
    .settings-card p,
    .admin-card p,
    .footer-brand p,
    .footer-links a,
    .footer-muted,
    .footer-bottom,
    .footer-legal-links a {
        font-weight: 500;
    }
}

.page-title {
    font-size: clamp(32px, 3.2vw, 42px) !important;
}

.profile-hero .page-title {
    font-size: clamp(35px, 3.3vw, 44px) !important;
}

.section-title,
.section-head h2,
.settings-card .section-title,
.admin-card h2 {
    font-size: clamp(26px, 2.4vw, 34px) !important;
}

.eyebrow {
    font-size: 13px !important;
}

table,
.table,
.stats-table,
.bans-table,
.admin-table,
.shop-table {
    font-size: 14px !important;
}

table th,
table td,
.table th,
.table td,
.stats-table th,
.stats-table td,
.bans-table th,
.bans-table td,
.admin-table th,
.admin-table td,
.shop-table th,
.shop-table td {
    font-size: 14px !important;
}

.btn,
button,
input,
select,
textarea,
label,
.filter-field label,
.filter-field input,
.filter-field select {
    font-size: 14px !important;
}

.footer-links h4 {
    font-size: 14px !important;
}

.footer-links a,
.footer-muted,
.footer-bottom,
.footer-legal-links a {
    font-size: 14px !important;
}

body.admin-desktop-page .profile-hero .page-title {
    font-size: 36px !important;
}

body.admin-desktop-page .profile-hero .page-subtitle {
    font-size: 16px !important;
}

body.admin-desktop-page .admin-desktop-menu a,
body.admin-desktop-page .admin-desktop-user a,
body.admin-desktop-page .admin-desktop-user button {
    font-size: 15px !important;
}

body.admin-desktop-page .admin-desktop-group {
    font-size: 12px !important;
}

body.admin-desktop-page .admin-desktop-dashboard-head h1 {
    font-size: 26px !important;
}

body.admin-desktop-page .admin-desktop-panel-head h2 {
    font-size: 18px !important;
}

body.admin-desktop-page .admin-desktop-action-table span,
body.admin-desktop-page .admin-desktop-action-table small,
body.admin-desktop-page .admin-desktop-stat-card small,
body.admin-desktop-page .settings-card p,
body.admin-desktop-page .section-head p {
    font-size: 14px !important;
}

body.admin-desktop-page .admin-desktop-stat-card strong {
    font-size: 22px !important;
}

@media (min-width: 701px) {
    .page-subtitle,
    .profile-hero .page-subtitle,
    .section-head p,
    .hero-text,
    .section-text,
    .card-text,
    .why-card p,
    .home-leader-head p,
    .latest-bans-head p,
    .settings-card p,
    .admin-card p,
    .profile-empty,
    .shop-server-host,
    .fz-confirm-text,
    .login-modal-card p,
    .rule-card p,
    .legal-page p,
    .footer-brand p,
    .footer-links a,
    .footer-muted,
    .footer-bottom,
    .footer-legal-links a {
        font-weight: 500;
    }
}

@media (max-width: 700px) {
    body {
        font-size: 15px;
    }

    .page-title,
    .profile-hero .page-title {
        font-size: clamp(31px, 9vw, 43px) !important;
    }

    .page-subtitle,
    .profile-hero .page-subtitle,
    .section-head p,
    .hero-text,
    .section-text,
    .settings-card p {
        font-size: 15px !important;
    }

    .section-title,
    .section-head h2,
    .settings-card .section-title {
        font-size: 25px !important;
    }
}

.home-leader-empty {
    padding: 14px 16px;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    color: var(--muted);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.profile-rank-card {
    max-width: 520px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.profile-rank-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.profile-rank-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.profile-rank-main strong {
    display: block;
    color: var(--text);
    font-size: 18px;
    margin-bottom: 4px;
}

.profile-rank-main p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.profile-rank-xp {
    text-align: right;
    min-width: 150px;
}

.profile-rank-xp span,
.profile-rank-xp em {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.profile-rank-xp strong {
    display: block;
    margin: 4px 0;
    color: var(--text);
    font-size: 16px;
}

.profile-rank-progress {
    margin-top: 18px;
    width: 100%;
    max-width: none;
}

@media (max-width: 640px) {
    .profile-rank-card {
        max-width: none;
    }

    .profile-rank-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-rank-xp {
        text-align: left;
        min-width: 0;
    }
}

/* Mobile player profile tabs and tables fix */
@media (max-width: 700px) {
    .profile-tabs {
        min-width: 0;
        overflow: visible;
    }

    .profile-tab-nav {
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        scrollbar-width: thin;
    }

    .profile-tab-btn {
        flex: 0 0 auto;
    }

    .profile-tab-panel,
    .profile-card,
    .profile-ban-table {
        min-width: 0;
        max-width: 100%;
        overflow: visible;
    }

    .profile-tab-panel .table-wrap {
        display: block;
        max-width: 100%;
        overflow-x: auto !important;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
    }

    .profile-tab-panel .table-wrap table {
        min-width: 760px;
    }
}
