:root {
    --bg: #040208;
    --bg-soft: #08040f;
    --panel: rgba(14, 14, 22, 0.72);
    --panel-strong: rgba(15, 15, 24, 0.92);
    --panel-soft: rgba(255, 255, 255, 0.035);
    --text: #f5f2f8;
    --muted: #aaa2b5;
    --muted-2: #70687c;
    --pink: #d57cff;
    --pink-soft: #f0a2ff;
    --pink-dark: #3b164d;
    --violet: #7352ff;
    --cyan: #58cfff;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --side-width: 88px;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 15px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 14px;
    background:
        radial-gradient(circle at -8% 14%, rgba(213, 124, 255, 0.16), transparent 32%),
        radial-gradient(circle at 104% 18%, rgba(213, 124, 255, 0.11), transparent 28%),
        radial-gradient(circle at 96% 92%, rgba(115, 82, 255, 0.11), transparent 32%),
        linear-gradient(180deg, #05020a 0%, #020106 100%);
    overflow-x: hidden;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

.cursor-glow {
    position: fixed;
    left: 0;
    top: 0;
    z-index: -1;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    pointer-events: none;
    transform: translate3d(-999px, -999px, 0);
    background: radial-gradient(circle, rgba(213, 124, 255, 0.13), rgba(213, 124, 255, 0.045) 34%, transparent 68%);
    filter: blur(10px);
    margin: -210px 0 0 -210px;
    transition: opacity 0.25s ease;
}

.page-gradient {
    position: fixed;
    inset: 0;
    z-index: -5;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(213, 124, 255, 0.08), transparent 18%, transparent 82%, rgba(213, 124, 255, 0.06)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 35%);
}

.grid-layer {
    position: fixed;
    inset: 0;
    z-index: -4;
    pointer-events: none;
    opacity: 0.34;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(90deg, transparent 0%, black 9%, black 91%, transparent 100%);
}

.noise-layer {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    opacity: 0.16;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px);
    background-size: 4px 4px, 6px 6px;
}

/* left nav */

.side-nav {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: var(--side-width);
    padding: 16px 14px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.side-logo,
.side-link {
    pointer-events: auto;
}

.side-logo {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    text-decoration: none;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(213, 124, 255, 0.66), rgba(151, 102, 255, 0.38));
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow:
        0 0 32px rgba(213, 124, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: 0.2s ease;
}

.side-logo span {
    color: #09030d;
    font-size: 27px;
    font-weight: 950;
}

.side-menu {
    margin-top: 236px;
    display: grid;
    gap: 14px;
}

.side-socials {
    margin-top: auto;
    display: grid;
    gap: 13px;
}

.side-link {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    text-decoration: none;
    border-radius: 18px;
    color: #cfc7dc;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.075);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(14px);
    transition: 0.2s ease;
}

.side-link svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.side-link:hover,
.side-link.active {
    color: #0d0613;
    background: linear-gradient(135deg, var(--pink), var(--pink-soft));
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 28px rgba(213, 124, 255, 0.25);
}

/* top */

.top-header {
    position: fixed;
    top: 0;
    left: var(--side-width);
    right: 0;
    z-index: 55;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: transparent;
    border: 0;
    backdrop-filter: none;
    transition: transform 0.28s ease;
}

.top-header::before,
.top-header::after {
    display: none;
}

.top-header.is-hidden {
    transform: translateY(-110%);
}

.top-header.is-scrolled {
    background: transparent;
    border: 0;
    backdrop-filter: none;
}

.top-brand,
.top-auth {
    pointer-events: auto;
}

.top-brand {
    position: absolute;
    left: 50%;
    top: 18px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    text-decoration: none;
    letter-spacing: 0.075em;
}

.top-brand-main {
    color: #fff;
    font-size: 31px;
    line-height: 1;
    font-weight: 950;
}

.top-brand-sub {
    color: var(--pink);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.22em;
}

.top-auth {
    position: absolute;
    right: 28px;
    top: 14px;
}

.steam-login-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    color: #120818;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pink), var(--pink-soft));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 14px 34px rgba(213, 124, 255, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: box-shadow 0.2s ease, filter 0.2s ease;
}

.steam-login-button:hover {
    filter: brightness(1.03);
    box-shadow:
        0 18px 42px rgba(213, 124, 255, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* account */

.account-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wallet-button,
.wallet-add-button,
.account-avatar-button {
    height: 48px;
    display: inline-grid;
    place-items: center;
    text-decoration: none;
    border-radius: 15px;
    color: #fff;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.085);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(16px);
}

.wallet-button {
    min-width: 82px;
    padding: 0 18px;
    font-weight: 950;
}

.wallet-add-button {
    width: 48px;
    color: #100716;
    font-size: 24px;
    font-weight: 950;
    background: linear-gradient(135deg, var(--pink), var(--violet));
    border-color: rgba(255, 255, 255, 0.16);
}

.account-menu {
    position: relative;
}

.account-avatar-button {
    width: 48px;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: filter 0.18s ease, border 0.18s ease;
}

.account-avatar-button:hover {
    filter: brightness(1.08);
    border-color: rgba(213, 124, 255, 0.26);
}

.account-avatar-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-avatar-button span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #0b0410;
    font-weight: 950;
    background: linear-gradient(135deg, var(--pink), var(--violet));
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 268px;
    padding: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    border-radius: 18px;
    background: rgba(12, 13, 22, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px);
    transition: 0.18s ease;
}

.account-menu.is-open .account-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.account-dropdown-head {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px 8px 14px;
}

.account-dropdown-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pink), var(--violet));
}

.account-dropdown-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-dropdown-avatar span {
    color: #0b0410;
    font-size: 22px;
    font-weight: 950;
}

.account-dropdown-head strong {
    display: block;
    max-width: 168px;
    overflow: hidden;
    color: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-dropdown-head small {
    display: block;
    max-width: 168px;
    margin-top: 4px;
    overflow: hidden;
    color: var(--muted-2);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-dropdown a {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px;
    color: #e7e1ee;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 850;
    transition: background 0.16s ease, color 0.16s ease;
}

.account-dropdown a:hover {
    background: rgba(255, 255, 255, 0.055);
}

.account-dropdown a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    color: var(--pink);
    flex: 0 0 auto;
}

.account-dropdown a.admin-link {
    color: #f0dcff;
}

.account-dropdown a.admin-link svg {
    color: #c891ff;
}

.account-dropdown-line {
    height: 1px;
    margin: 8px -12px;
    background: rgba(255, 255, 255, 0.075);
}

.account-dropdown a.danger {
    color: #ff6f89;
}

/* main */

.site-main {
    min-height: calc(100vh - 130px);
    margin-left: var(--side-width);
    padding-top: 88px;
}

.home-hero,
.home-servers,
.home-news,
.site-footer {
    width: min(1270px, calc(100vw - var(--side-width) - 82px));
    margin-left: auto;
    margin-right: auto;
}

.home-hero {
    min-height: 500px;
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 66px;
    align-items: center;
    padding-top: 0;
}

.project-pill {
    width: fit-content;
    padding: 11px 18px;
    color: #f3eafa;
    font-size: 12px;
    font-weight: 950;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.105);
    background: rgba(213, 124, 255, 0.105);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.home-hero h1 {
    max-width: 740px;
    margin: 22px 0 20px;
    color: #f6f3f8;
    font-size: clamp(46px, 4.7vw, 78px);
    line-height: 0.96;
    letter-spacing: -0.07em;
    font-weight: 950;
}

.home-hero h1 span {
    color: var(--pink);
    text-shadow: 0 0 22px rgba(213, 124, 255, 0.18);
}

.hero-text {
    max-width: 720px;
    margin: 0;
    color: #b8b1c2;
    font-size: 14px;
    line-height: 1.72;
}

.hero-text.second {
    margin-top: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.main-button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 25px;
    text-decoration: none;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 950;
    transition: 0.2s ease;
}

.main-button.primary {
    color: #110716;
    background: linear-gradient(135deg, var(--pink), var(--pink-soft));
    box-shadow: 0 14px 32px rgba(213, 124, 255, 0.16);
}

.main-button.dark {
    color: #f2edf8;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.075);
}

.main-button:hover {
    transform: translateY(-2px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 595px;
    margin-top: 26px;
}

.mini-stat {
    position: relative;
    min-height: 90px;
    padding: 18px;
    overflow: hidden;
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.075);
    box-shadow: 0 15px 42px rgba(0, 0, 0, 0.20);
    transform: perspective(700px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform 0.16s ease, border 0.16s ease;
}

.mini-stat::after,
.product-mini-card::after,
.server-mode-card::after,
.news-card::after,
.server-preview-window::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(213, 124, 255, 0.18), transparent 38%);
    transition: opacity 0.2s ease;
}

.mini-stat.is-tilting::after,
.product-mini-card.is-tilting::after,
.server-mode-card.is-tilting::after,
.news-card.is-tilting::after,
.server-preview-window.is-tilting::after {
    opacity: 1;
}

.mini-stat strong {
    display: block;
    margin-bottom: 10px;
    color: var(--pink);
    font-size: 23px;
    line-height: 1;
    font-weight: 950;
}

.mini-stat span {
    color: #bbb4c5;
    font-size: 13px;
}

/* server preview */

.hero-right {
    display: flex;
    justify-content: center;
}

.server-preview-window {
    position: relative;
    width: min(500px, 100%);
    padding: 21px;
    overflow: hidden;
    border-radius: 23px;
    background: rgba(16, 23, 31, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 28px 86px rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(20px);
    transform: perspective(800px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform 0.18s ease;
    animation: softFloat 6s ease-in-out infinite;
}

@keyframes softFloat {
    0%, 100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -8px;
    }
}

.window-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 17px;
}

.window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.server-preview-card {
    min-height: 96px;
    padding: 17px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.server-preview-card h3 {
    margin: 0 0 7px;
    font-size: 20px;
    line-height: 1;
}

.server-preview-card p {
    margin: 0 0 11px;
    color: #8b93a0;
    font-size: 12px;
    font-weight: 800;
}

.server-preview-card strong {
    color: #d5d8df;
    font-size: 13px;
}

.soon-badge {
    padding: 9px 16px;
    color: #61dcff;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.17em;
    border-radius: 999px;
    border: 1px solid rgba(88, 207, 255, 0.38);
    background: rgba(88, 207, 255, 0.065);
}

.server-preview-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 13px;
}

.status-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 0 14px rgba(213, 124, 255, 0.58);
}

.server-preview-status p {
    margin: 0;
    color: #bac0ca;
    font-size: 14px;
}

/* sections */

.home-servers,
.home-news {
    margin-top: 24px;
    padding: 31px 0 24px;
}

.home-shop {
    min-height: auto;
    padding: 0;
    background: transparent;
}

.section-kicker {
    margin-bottom: 9px;
    color: var(--pink);
    font-size: 13px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0.24em;
}

.home-shop h2,
.home-servers h2,
.home-news h2 {
    margin: 0;
    color: #f7f4fa;
    font-size: clamp(31px, 2.9vw, 44px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.section-description {
    max-width: 740px;
    margin: 16px 0 0;
    color: #b7afc0;
    line-height: 1.62;
}

.shop-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 14px;
    max-width: 740px;
    margin-top: 31px;
}

.product-mini-card {
    position: relative;
    min-height: 60px;
    display: grid;
    align-content: center;
    overflow: hidden;
    padding: 13px 17px;
    text-decoration: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.075);
    transform: perspective(700px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: 0.18s ease;
}

.product-mini-card:hover {
    border-color: rgba(213, 124, 255, 0.28);
}

.product-mini-card strong {
    color: #fff;
    font-size: 14px;
}

.product-mini-card span {
    margin-top: 3px;
    color: #d2c9da;
    font-size: 12px;
    font-weight: 850;
}

.server-cards-grid,
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 31px;
}

.server-mode-card,
.news-card {
    position: relative;
    min-height: 158px;
    overflow: hidden;
    padding: 21px;
    text-decoration: none;
    border-radius: 21px;
    background: rgba(255, 255, 255, 0.032);
    border: 1px solid rgba(255, 255, 255, 0.075);
    box-shadow: 0 16px 54px rgba(0, 0, 0, 0.17);
    transform: perspective(700px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: 0.18s ease;
}

.server-mode-card {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.server-mode-card:hover,
.news-card:hover {
    border-color: rgba(213, 124, 255, 0.28);
}

.server-mode-card span,
.news-card span {
    display: block;
    margin-bottom: 13px;
    color: var(--pink);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.server-mode-card h3,
.news-card h3 {
    margin: 0;
    color: #f8f5fb;
    font-size: 22px;
    line-height: 1.05;
}

.server-mode-card p,
.news-card p {
    margin: 13px 0 0;
    color: #b8b0c2;
    line-height: 1.55;
}

.server-mode-card b {
    height: fit-content;
    padding: 8px 12px;
    color: #110716;
    font-size: 11px;
    border-radius: 999px;
    background: var(--pink);
}

/* fallback pages */

.page-wrap,
.content-section,
.section-grid {
    width: min(1180px, calc(100vw - var(--side-width) - 82px));
    margin: 46px auto;
}

.page-wrap h1 {
    margin: 0 0 22px;
    color: #f7f4fa;
    font-size: 43px;
    line-height: 1;
    letter-spacing: -0.05em;
}

.glass-card,
.wide-card,
.feature-card,
.profile-panel,
.rules-section {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.075);
    box-shadow: 0 16px 54px rgba(0, 0, 0, 0.17);
}

.glass-card,
.feature-card,
.rules-section {
    padding: 22px;
}

.wide-card {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 20px;
    align-items: center;
    padding: 22px;
    text-decoration: none;
}

.cards-3,
.section-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.cards-list {
    display: grid;
    gap: 16px;
}

.btn,
.btn-primary,
.btn-secondary,
.btn-ghost {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
}

.btn-primary {
    color: #110716;
    background: linear-gradient(135deg, var(--pink), var(--pink-soft));
}

.btn-secondary,
.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.075);
}

.profile-panel {
    display: flex;
    gap: 20px;
    padding: 22px;
}

.profile-avatar {
    width: 108px;
    height: 108px;
    object-fit: cover;
    border-radius: 24px;
}

.rule-item {
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.rule-item small,
.tag {
    color: var(--pink);
}

.article-body,
.lead,
.glass-card p,
.wide-card p,
.feature-card p {
    color: #b8b0c2;
    line-height: 1.62;
}

.errorlist {
    color: #ff7e9b;
}

/* footer */

.site-footer {
    margin-top: 64px;
    margin-bottom: 28px;
    padding: 26px 0 0;
    display: flex;
    justify-content: space-between;
    gap: 28px;
    color: #847c91;
    border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.site-footer strong {
    display: block;
    color: #f6f3f9;
    font-size: 24px;
    letter-spacing: 0.04em;
}

.site-footer p {
    max-width: 520px;
    margin: 12px 0 0;
    line-height: 1.55;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a {
    color: #a99fb6;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

/* responsive */

@media (max-width: 1200px) {
    .home-hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-right {
        justify-content: flex-start;
    }

    .side-menu {
        margin-top: 180px;
    }
}

@media (max-width: 900px) {
    :root {
        --side-width: 0px;
    }

    .side-nav {
        display: none;
    }

    .top-header {
        left: 0;
        height: 74px;
        padding: 0 16px;
        justify-content: space-between;
        background: transparent;
        border: 0;
        backdrop-filter: none;
    }

    .top-brand {
        position: static;
        transform: none;
    }

    .top-brand-main {
        font-size: 24px;
    }

    .top-auth {
        position: static;
    }

    .steam-login-button {
        min-height: 42px;
        padding: 0 15px;
        font-size: 12px;
    }

    .wallet-button {
        min-width: 64px;
        height: 42px;
        padding: 0 12px;
        font-size: 12px;
    }

    .wallet-add-button,
    .account-avatar-button {
        width: 42px;
        height: 42px;
    }

    .account-dropdown {
        right: -6px;
    }

    .site-main {
        margin-left: 0;
        padding-top: 88px;
    }

    .home-hero,
    .home-shop,
    .home-servers,
    .home-news,
    .site-footer,
    .page-wrap,
    .content-section,
    .section-grid {
        width: min(100% - 32px, 1180px);
    }

    .home-hero h1 {
        font-size: 43px;
    }

    .hero-stats,
    .server-cards-grid,
    .news-grid,
    .cards-3,
    .section-grid,
    .shop-preview-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        display: grid;
    }
}
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.62);
    opacity: 0;
    backdrop-filter: blur(8px);
    transition: opacity 0.18s ease;
}

.modal-backdrop.is-visible {
    opacity: 1;
}

body.modal-open {
    overflow: hidden;
}

.topup-modal {
    position: relative;
    width: min(460px, 100%);
    padding: 30px;
    border-radius: 24px;
    background: rgba(12, 13, 22, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
    transform: translateY(10px) scale(0.98);
    transition: transform 0.18s ease;
}

.modal-backdrop.is-visible .topup-modal {
    transform: translateY(0) scale(1);
}

.topup-modal h2 {
    margin: 12px 0;
    font-size: 30px;
    letter-spacing: -0.04em;
}

.topup-modal p {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.6;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    color: #fff;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 24px;
}

.panel-page {
    width: min(1270px, calc(100vw - var(--side-width) - 82px));
    margin: 0 auto;
    padding: 20px 0 70px;
}

.panel-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 26px;
}

.panel-hero h1 {
    margin: 10px 0;
    font-size: 46px;
    line-height: 1;
    letter-spacing: -0.06em;
}

.panel-hero p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.panel-user-card {
    min-width: 260px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.075);
}

.panel-user-card img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 15px;
}

.panel-user-card strong {
    display: block;
}

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

.panel-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.panel-stat-card,
.panel-card,
.panel-empty,
.panel-table {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.075);
    box-shadow: 0 16px 54px rgba(0, 0, 0, 0.17);
}

.panel-stat-card {
    padding: 20px;
}

.panel-stat-card span {
    color: var(--muted);
}

.panel-stat-card strong {
    display: block;
    margin-top: 10px;
    color: var(--pink);
    font-size: 30px;
}

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

.panel-card {
    min-height: 150px;
    display: flex;
    gap: 16px;
    padding: 22px;
    text-decoration: none;
    transition: 0.18s ease;
}

.panel-card:hover {
    transform: translateY(-3px);
    border-color: rgba(213, 124, 255, 0.26);
}

.panel-card-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #110716;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--pink), var(--violet));
    font-weight: 950;
}

.panel-card h3 {
    margin: 0;
    font-size: 21px;
}

.panel-card p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.panel-empty {
    padding: 26px;
}

.panel-empty h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.panel-empty p {
    color: var(--muted);
    line-height: 1.6;
}

.panel-table {
    overflow: hidden;
}

.panel-table-head,
.panel-table-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 0.7fr 1fr;
    gap: 14px;
    padding: 15px 18px;
}

.panel-table-head {
    color: var(--muted);
    font-weight: 900;
    background: rgba(255, 255, 255, 0.035);
}

.panel-table-row {
    border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.account-page {
    width: min(1270px, calc(100vw - var(--side-width) - 82px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
    padding: 20px 0 70px;
}

.account-sidebar,
.account-content {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.075);
    box-shadow: 0 16px 54px rgba(0, 0, 0, 0.17);
}

.account-sidebar {
    padding: 22px;
    text-align: center;
}

.account-big-avatar {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin: 0 auto 16px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--pink), var(--violet));
}

.account-big-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-big-avatar span {
    color: #0b0410;
    font-size: 38px;
    font-weight: 950;
}

.account-sidebar strong {
    display: block;
    font-size: 18px;
}

.account-sidebar small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
}

.account-sidebar nav {
    display: grid;
    gap: 10px;
    margin-top: 24px;
    text-align: left;
}

.account-sidebar nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    color: #e9e2ef;
    text-decoration: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-weight: 850;
}

.account-sidebar nav a.active {
    background: rgba(213, 124, 255, 0.18);
    border-color: rgba(213, 124, 255, 0.38);
}

.account-sidebar nav a.danger {
    color: #ff6f89;
}

.account-content {
    padding: 26px;
}

.account-content h1 {
    margin: 0 0 24px;
    font-size: 42px;
    line-height: 1;
    letter-spacing: -0.06em;
}

.wallet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.wallet-card {
    min-height: 110px;
    padding: 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.032);
    border: 1px solid rgba(255, 255, 255, 0.075);
}

.wallet-card.active {
    border-color: rgba(213, 124, 255, 0.36);
}

.wallet-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 28px;
}

.wallet-card span {
    color: var(--muted);
}

@media (max-width: 900px) {
    .panel-page,
    .account-page {
        width: min(100% - 32px, 1180px);
    }

    .panel-hero,
    .site-footer {
        display: grid;
    }

    .panel-stats,
    .panel-grid,
    .wallet-grid {
        grid-template-columns: 1fr;
    }

    .account-page {
        grid-template-columns: 1fr;
    }

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

    .panel-table-head,
    .panel-table-row {
        min-width: 760px;
    }
}
.modal-backdrop[hidden] {
    display: none !important;
    pointer-events: none !important;
}

.modal-backdrop {
    pointer-events: none;
}

.modal-backdrop.is-visible {
    pointer-events: auto;
}

.home-shop::before,
.home-shop::after,
.home-servers::before,
.home-servers::after {
    display: none !important;
}
.shop-page {
    width: min(1270px, calc(100vw - var(--side-width) - 82px));
    margin: 0 auto;
    padding: 20px 0 80px;
}

.shop-head {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 24px;
}

.shop-head h1 {
    margin: 10px 0;
    font-size: 48px;
    line-height: 1;
    letter-spacing: -0.06em;
}

.shop-head p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.shop-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.shop-tabs a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    color: #d9d2e2;
    text-decoration: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.075);
    font-weight: 850;
}

.shop-tabs a.active {
    color: #110716;
    background: linear-gradient(135deg, var(--pink), var(--pink-soft));
}

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

.shop-product-card {
    position: relative;
    min-height: 310px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    text-align: left;
    color: #fff;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.075);
    box-shadow: 0 16px 54px rgba(0, 0, 0, 0.17);
    transition: 0.18s ease;
}

.shop-product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(213, 124, 255, 0.30);
}

.discount-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 8px 10px;
    color: #110716;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--pink-soft));
    font-size: 12px;
    font-weight: 950;
}

.shop-product-image {
    height: 160px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle, rgba(213, 124, 255, 0.18), transparent 58%),
        rgba(255, 255, 255, 0.025);
}

.shop-product-image img {
    max-width: 78%;
    max-height: 130px;
    object-fit: contain;
}

.shop-product-image span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    color: #0b0410;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--pink), var(--violet));
    font-size: 38px;
    font-weight: 950;
}

.shop-product-body {
    padding: 18px;
}

.shop-product-body h3 {
    margin: 0;
    font-size: 21px;
}

.shop-product-body p {
    min-height: 42px;
    margin: 10px 0 16px;
    color: var(--muted);
    line-height: 1.5;
}

.shop-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.shop-price del {
    color: #786f84;
    font-weight: 850;
}

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

.shop-price.big strong {
    font-size: 32px;
}

.shop-empty {
    grid-column: 1 / -1;
    padding: 28px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.075);
}

.shop-empty h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

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

.product-modal {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: grid;
    place-items: center;
    padding: 26px;
    opacity: 0;
    background: rgba(0, 0, 0, 0.64);
    backdrop-filter: blur(9px);
    transition: opacity 0.16s ease;
}

.product-modal[hidden] {
    display: none !important;
}

.product-modal.is-visible {
    opacity: 1;
}

.product-modal-card {
    position: relative;
    width: min(920px, 100%);
    display: grid;
    grid-template-columns: 360px 1fr;
    overflow: hidden;
    border-radius: 26px;
    background: rgba(12, 13, 22, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.56);
    transform: translateY(10px) scale(0.98);
    transition: transform 0.16s ease;
}

.product-modal.is-visible .product-modal-card {
    transform: translateY(0) scale(1);
}

.product-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 38px;
    height: 38px;
    cursor: pointer;
    color: #fff;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 24px;
}

.product-modal-image {
    min-height: 480px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle, rgba(213, 124, 255, 0.20), transparent 58%),
        rgba(255, 255, 255, 0.025);
}

.product-modal-image img {
    max-width: 82%;
    max-height: 360px;
    object-fit: contain;
}

.product-modal-image span {
    width: 140px;
    height: 140px;
    display: grid;
    place-items: center;
    color: #0b0410;
    border-radius: 34px;
    background: linear-gradient(135deg, var(--pink), var(--violet));
    font-size: 64px;
    font-weight: 950;
}

.product-modal-content {
    padding: 30px;
}

.product-modal-content h2 {
    margin: 10px 0 20px;
    font-size: 36px;
    line-height: 1;
    letter-spacing: -0.05em;
}

.product-modal-items {
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.075);
}

.product-modal-items h3 {
    margin: 0 0 12px;
    font-size: 18px;
}

.product-item-row {
    min-height: 38px;
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 10px;
    color: #e9e3ef;
}

.product-item-row img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.product-item-icon {
    color: var(--pink);
    font-size: 24px;
}

.product-item-row b {
    color: var(--pink);
}

.product-description {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.62;
}

.product-buy-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.quantity-control {
    height: 44px;
    display: inline-flex;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.quantity-control button,
.quantity-control input {
    width: 44px;
    height: 44px;
    color: #fff;
    border: 0;
    background: rgba(255, 255, 255, 0.04);
    text-align: center;
}

.quantity-control button {
    cursor: pointer;
    font-size: 20px;
    font-weight: 950;
}

.quantity-control input {
    width: 56px;
    outline: none;
}

.product-modal-actions {
    display: flex;
    gap: 12px;
}

.muted {
    color: var(--muted);
}

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

    .product-modal-card {
        grid-template-columns: 1fr;
        max-height: calc(100vh - 52px);
        overflow-y: auto;
    }

    .product-modal-image {
        min-height: 260px;
    }
}

@media (max-width: 900px) {
    .shop-page {
        width: min(100% - 32px, 1180px);
    }

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

    .product-buy-line,
    .product-modal-actions {
        display: grid;
    }
}
.panel-search {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.panel-search input {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    color: #fff;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.075);
    outline: none;
}

.panel-search input:focus {
    border-color: rgba(213, 124, 255, 0.35);
}

.panel-block {
    margin-top: 24px;
}

.panel-block-head {
    margin-bottom: 14px;
}

.panel-block-head h2 {
    margin: 0 0 8px;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.panel-block-head p {
    margin: 0;
    color: var(--muted);
}

.panel-highlight {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.panel-highlight > div {
    padding: 20px;
    border-radius: 20px;
    background: rgba(213, 124, 255, 0.075);
    border: 1px solid rgba(213, 124, 255, 0.22);
}

.panel-highlight span {
    color: var(--muted);
}

.panel-highlight h3 {
    margin: 10px 0 6px;
    font-size: 24px;
}

.panel-highlight p {
    margin: 0;
    color: var(--muted);
}

.panel-table-empty {
    padding: 18px;
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.player-check-table {
    grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
}

.shop-table {
    grid-template-columns: 1.3fr 1fr 1fr 0.7fr 0.7fr;
}

.server-table {
    grid-template-columns: 1.2fr 1.1fr 0.8fr 0.6fr 0.7fr;
}

.simple-4 {
    grid-template-columns: 1.3fr 1fr 0.7fr 0.7fr;
}

.panel-grid.compact {
    margin-bottom: 24px;
}

.panel-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .panel-search {
        display: grid;
    }

    .panel-highlight {
        grid-template-columns: 1fr;
    }

    .player-check-table,
    .shop-table,
    .server-table,
    .simple-4 {
        min-width: 760px;
    }
}
.panel-forms-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 18px;
    margin-bottom: 28px;
}

.panel-form-card {
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.075);
    box-shadow: 0 16px 54px rgba(0, 0, 0, 0.17);
}

.panel-form-card.single {
    max-width: 920px;
    margin-bottom: 28px;
}

.panel-form-card h2 {
    margin: 0 0 8px;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.panel-form-card p {
    margin: 0 0 18px;
    color: var(--muted);
}

.panel-form-grid p {
    display: grid;
    gap: 7px;
    margin: 0 0 13px;
}

.panel-form-grid label {
    color: #e8e1ee;
    font-weight: 850;
}

.panel-form-grid input,
.panel-form-grid select,
.panel-form-grid textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    color: #fff;
    border-radius: 13px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.09);
    outline: none;
}

.panel-form-grid input:focus,
.panel-form-grid select:focus,
.panel-form-grid textarea:focus {
    border-color: rgba(213, 124, 255, 0.38);
}

.panel-form-grid .helptext {
    color: var(--muted-2);
    font-size: 12px;
}

.panel-small-danger {
    min-height: 32px;
    padding: 0 10px;
    cursor: pointer;
    color: #ff7c92;
    border-radius: 10px;
    background: rgba(255, 70, 110, 0.08);
    border: 1px solid rgba(255, 70, 110, 0.18);
    font-weight: 850;
}

.simple-5 {
    grid-template-columns: 1.1fr 1fr 0.6fr 0.6fr 0.7fr;
}

.server-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 420px));
    gap: 16px;
}

.server-admin-card {
    display: grid;
    gap: 18px;
    align-content: space-between;
    min-height: 240px;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.075);
    box-shadow: 0 16px 54px rgba(0, 0, 0, 0.17);
}

.server-admin-card span {
    color: var(--pink);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.server-admin-card h3 {
    margin: 10px 0 8px;
    font-size: 26px;
    letter-spacing: -0.04em;
}

.server-admin-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.server-admin-meta {
    display: grid;
    gap: 5px;
}

.server-admin-meta b {
    font-family: Consolas, monospace;
}

.server-admin-meta small {
    color: var(--muted);
}

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

.shop-product-image img,
.product-modal-image img,
.product-item-row img {
    border-radius: 14px;
}

@media (max-width: 900px) {
    .panel-forms-grid {
        grid-template-columns: 1fr;
    }

    .simple-5 {
        min-width: 760px;
    }

    .server-admin-grid {
        grid-template-columns: 1fr;
    }
}
.servers-page {
    width: min(1270px, calc(100vw - var(--side-width) - 82px));
    margin: 0 auto;
    padding: 20px 0 80px;
}

.servers-head {
    margin-bottom: 28px;
}

.servers-head h1 {
    margin: 10px 0;
    font-size: 48px;
    line-height: 1;
    letter-spacing: -0.06em;
}

.servers-head p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.public-server-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 430px));
}

.public-server-card {
    min-height: 260px;
}

.home-server-preview-card + .home-server-preview-card {
    margin-top: 12px;
}

.server-visibility-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.server-visibility-tags span {
    width: fit-content;
    padding: 7px 10px;
    color: #120818;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--pink-soft));
    font-size: 11px;
    font-weight: 950;
}

.server-visibility-tags .muted-tag {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.055);
}

.server-admin-actions button[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .servers-page {
        width: min(100% - 32px, 1180px);
    }

    .servers-head h1 {
        font-size: 40px;
    }

    .public-server-grid {
        grid-template-columns: 1fr;
    }
}
.product-type-pill {
    width: fit-content;
    margin-bottom: 10px;
    padding: 6px 9px;
    color: var(--pink);
    border-radius: 999px;
    background: rgba(213, 124, 255, 0.08);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-amount-preview {
    color: #fff !important;
    font-size: 20px;
    font-weight: 950;
}

.promo-ending-badge {
    position: absolute;
    top: 52px;
    left: 14px;
    z-index: 2;
    padding: 8px 10px;
    color: #fff;
    border-radius: 999px;
    background: rgba(255, 111, 137, 0.18);
    border: 1px solid rgba(255, 111, 137, 0.35);
    font-size: 11px;
    font-weight: 950;
}

.product-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    color: #ffd9e1;
    border-radius: 14px;
    background: rgba(255, 111, 137, 0.1);
    border: 1px solid rgba(255, 111, 137, 0.24);
    font-weight: 850;
}

.product-info-box {
    margin-bottom: 16px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.075);
}

.product-info-box h3 {
    margin: 0 0 12px;
    font-size: 18px;
}

.product-info-box p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.product-beauty-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-beauty-list li {
    position: relative;
    padding-left: 24px;
    color: #e9e3ef;
    line-height: 1.5;
}

.product-beauty-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--violet));
    box-shadow: 0 0 14px rgba(213, 124, 255, 0.45);
}

.simple-product-info {
    text-align: left;
}

.product-big-amount {
    width: fit-content;
    margin: 10px 0 12px;
    padding: 12px 16px;
    color: #110716;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--pink), var(--pink-soft));
    font-size: 26px;
    font-weight: 950;
}

.panel-inline-badge {
    display: inline-flex;
    margin-left: 7px;
    padding: 4px 7px;
    color: #110716;
    border-radius: 999px;
    background: var(--pink);
    font-size: 10px;
    font-weight: 950;
}

.product-form-grid textarea {
    min-height: 100px;
}
.shop-preview-grid {
    display: none !important;
}

.home-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.home-product-card {
    position: relative;
    min-height: 245px;
    overflow: hidden;
    display: grid;
    grid-template-rows: 145px 1fr;
    color: #fff;
    text-decoration: none;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.075);
    box-shadow: 0 16px 54px rgba(0, 0, 0, 0.17);
    transition: transform 0.18s ease, border 0.18s ease;
}

.home-product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(213, 124, 255, 0.3);
}

.home-product-image {
    display: grid;
    place-items: center;
    padding: 18px;
    background:
        radial-gradient(circle, rgba(213, 124, 255, 0.16), transparent 58%),
        rgba(255, 255, 255, 0.025);
}

.home-product-image img {
    max-width: 100%;
    max-height: 110px;
    object-fit: contain;
    border-radius: 16px;
}

.home-product-image span {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    color: #0b0410;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--pink), var(--violet));
    font-size: 34px;
    font-weight: 950;
}

.home-product-info {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 16px;
}

.home-product-info small {
    width: fit-content;
    padding: 5px 8px;
    color: var(--pink);
    border-radius: 999px;
    background: rgba(213, 124, 255, 0.08);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-product-info strong {
    color: #fff;
    font-size: 17px;
    line-height: 1.15;
}

.home-product-info .shop-price {
    margin-top: 3px;
}

.home-product-info .shop-price b {
    color: #fff;
    font-size: 20px;
    font-weight: 950;
}

.home-product-card.placeholder {
    max-width: 280px;
}

.shop-product-image img,
.product-modal-image img,
.product-item-row img {
    border-radius: 16px;
}

.shop-product-card {
    min-width: 0;
}

.home-shop {
    background: transparent !important;
}

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

@media (max-width: 700px) {
    .home-product-grid {
        grid-template-columns: 1fr;
    }
}
/* home layout alignment fix */

.home-shop,
.home-news {
    width: min(780px, calc(100vw - var(--side-width) - 120px));
    margin-left: calc((100vw - var(--side-width) - min(1270px, calc(100vw - var(--side-width) - 82px))) / 2);
    margin-right: auto;
}

.home-shop {
    margin-top: 34px;
    padding-top: 0;
}

.home-news {
    margin-top: 52px;
}

.home-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(210px, 1fr));
    gap: 14px;
    max-width: 680px;
    margin-top: 26px;
}

.home-product-card {
    min-height: 205px;
    grid-template-rows: 120px 1fr;
    border-radius: 19px;
}

.home-product-image {
    padding: 14px;
}

.home-product-image img {
    max-width: 74%;
    max-height: 84px;
    border-radius: 14px;
}

.home-product-image span {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    font-size: 28px;
}

.home-product-info {
    padding: 13px 15px 15px;
    gap: 7px;
}

.home-product-info small {
    padding: 4px 7px;
    font-size: 9px;
}

.home-product-info strong {
    font-size: 15px;
}

.home-product-info .shop-price b {
    font-size: 18px;
}

.home-product-card .discount-badge {
    top: 12px;
    left: 12px;
    padding: 7px 9px;
    font-size: 11px;
}

@media (max-width: 1200px) {
    .home-shop,
    .home-news {
        width: min(100% - 32px, 780px);
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 700px) {
    .home-product-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .home-product-card {
        min-height: 205px;
    }
}
.player-database-table {
    grid-template-columns: 1.35fr 1fr 1fr 1fr 1.1fr;
}

@media (max-width: 900px) {
    .player-database-table {
        min-width: 780px;
    }
}
.staff-role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.staff-role-card {
    min-height: 105px;
    display: grid;
    align-content: space-between;
    padding: 18px;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.075);
    transition: 0.18s ease;
}

.staff-role-card:hover,
.staff-role-card.active {
    transform: translateY(-2px);
    border-color: rgba(213, 124, 255, 0.32);
    background: rgba(213, 124, 255, 0.08);
}

.staff-role-card span {
    color: var(--muted);
    font-size: 12px;
}

.staff-role-card strong {
    font-size: 18px;
    line-height: 1.15;
}

.staff-table {
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.075);
}

.staff-table-head,
.staff-table-row {
    display: grid;
    grid-template-columns: 1.45fr 1fr 0.75fr 1.1fr 0.8fr;
    gap: 14px;
    align-items: center;
    padding: 15px 18px;
}

.staff-table-head {
    color: var(--muted);
    font-weight: 950;
    background: rgba(255, 255, 255, 0.035);
}

.staff-table-row {
    border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.staff-user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.staff-avatar {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pink), var(--violet));
}

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

.staff-avatar span {
    color: #0b0410;
    font-weight: 950;
}

.staff-user-cell strong,
.staff-user-cell small,
.staff-steam-cell span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.staff-user-cell small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.staff-table select,
.staff-table input {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    color: #fff;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.09);
    outline: none;
}

.staff-role-label {
    color: var(--pink);
    font-weight: 950;
}

.staff-save-button {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
}

.api-flow-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.api-flow-list div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.api-flow-list strong {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #110716;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--pink), var(--violet));
}

.api-flow-list span {
    color: #e8e1ee;
}

.api-token-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 420px));
    gap: 16px;
}

.api-token-card {
    display: grid;
    gap: 14px;
    padding: 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.075);
}

.api-token-card > div > span {
    color: var(--pink);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.api-token-card h3 {
    margin: 8px 0;
    font-size: 22px;
}

.api-token-card p,
.api-token-meta small {
    margin: 0;
    color: var(--muted);
}

.api-token-value {
    max-width: 100%;
    overflow-x: auto;
    padding: 12px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.075);
}

.api-token-value code {
    color: #fff;
    white-space: nowrap;
}

.api-token-meta {
    display: grid;
    gap: 5px;
}

.copy-context-box {
    padding: 18px;
    overflow-x: auto;
    border-radius: 22px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.075);
}

.copy-context-box pre {
    margin: 0;
    color: #dcd4e7;
    white-space: pre-wrap;
    line-height: 1.55;
}

@media (max-width: 1000px) {
    .staff-table {
        overflow-x: auto;
    }

    .staff-table-head,
    .staff-table-row {
        min-width: 920px;
    }
}

@media (max-width: 700px) {
    .api-token-grid {
        grid-template-columns: 1fr;
    }
}
.footer-legal-info {
    margin-top: 18px;
    display: grid;
    gap: 6px;
    max-width: 760px;
}

.footer-legal-info p {
    margin: 0;
    color: #847c91;
    font-size: 12px;
    line-height: 1.5;
}

.footer-legal-info a {
    color: #d57cff;
    text-decoration: none;
}

.footer-legal-info a:hover {
    color: #fff;
}
.document-body {
    margin-top: 24px;
    padding: 28px;
    color: #d8d0e2;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.075);
    line-height: 1.75;
}

.document-body p {
    margin: 0 0 16px;
}

.document-actions {
    margin-top: 22px;
}

.documents-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 420px));
    gap: 16px;
}

.document-admin-card {
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.075);
    box-shadow: 0 16px 54px rgba(0, 0, 0, 0.17);
}

.document-admin-card span {
    color: var(--pink);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.document-admin-card h3 {
    margin: 8px 0;
    font-size: 24px;
    letter-spacing: -0.04em;
}

.document-admin-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.document-admin-card small {
    display: block;
    margin-top: 10px;
    color: var(--muted-2);
    font-family: Consolas, monospace;
}

.document-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.document-edit-form textarea {
    min-height: 360px;
}