/* ==========================================
   CS2 PROJECT
   MAIN STYLESHEET
   ========================================== */


/* 1. VARIABLES */

:root {
    --bg: #071321;
    --panel: rgba(5, 19, 32, 0.78);
    --orange: #ff9200;
    --purple: #7040a8;
    --text: #ffffff;
    --muted: #a6b8cc;
    --border: rgba(66, 163, 211, 0.28);
}


/* 2. RESET */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}


body {
    margin: 0;
    min-height: 100vh;

    background: #020611;

    color: var(--text);
    font-family: Arial, sans-serif;
}


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

button {
    font-family: inherit;
}


/* 3. PAGE CONTAINER */

.site-wrapper {
    width: min(1800px, calc(100% - 48px));
    min-height: 100vh;

    margin: 0 auto;

    display: flex;
    flex-direction: column;
}


/* 4. HEADER */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    flex-shrink: 0;

    margin-top: 10px;
    padding: 12px 20px;

    background: transparent;
    border: none;
    box-shadow: none;
}


/* 5. LOGO */

.logo {
    display: flex;
    flex-direction: column;

    font-size: 32px;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -2px;
}

.logo-accent {
    color: var(--orange);
}

.logo small {
    margin-top: 7px;

    font-size: 10px;
    letter-spacing: 5px;
}


/* 6. NAVIGATION */

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav .nav-link {
    position: relative;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 10px 12px;
    border-radius: 8px;

    color: var(--text);

    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;

    transition: background 0.25s ease;
}


/* NAVIGATION COLORS */

.main-nav .nav-link:visited,
.main-nav .nav-link:hover,
.main-nav .nav-link:focus,
.main-nav .nav-link:active {
    color: var(--text);
}


/* NAVIGATION ICONS */

.main-nav .nav-link svg {
    width: 18px;
    height: 18px;

    flex-shrink: 0;

    stroke: currentColor;
    stroke-width: 2;
}


/* NAVIGATION HOVER BACKGROUND */

.main-nav .nav-link:hover,
.main-nav .nav-link:focus-visible {
    background: rgba(112, 64, 168, 0.10);
}


/* THIN PURPLE UNDERLINE */

.main-nav .nav-link::after {
    content: "";

    position: absolute;

    bottom: 2px;
    left: 12px;
    right: 12px;

    height: 1px;
    border-radius: 2px;

    background: var(--purple);

    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.3s ease;
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link:focus-visible::after {
    transform: scaleX(1);
}


/* DONATE ALWAYS ORANGE */

.main-nav .donate-link,
.main-nav .donate-link:visited,
.main-nav .donate-link:hover,
.main-nav .donate-link:focus,
.main-nav .donate-link:active {
    color: var(--orange);
}

.main-nav .donate-link:hover,
.main-nav .donate-link:focus-visible {
    background: rgba(255, 146, 0, 0.10);
}


/* ==========================================
   ACTIVE NAVIGATION
   ========================================== */

/* Активный раздел — тёмно-фиолетовый */
.main-nav .nav-link.active,
.main-nav .nav-link.active:visited,
.main-nav .nav-link.active:hover,
.main-nav .nav-link.active:focus {
    color: var(--purple);
}

/* Постоянная линия под активным разделом */
.main-nav .nav-link.active::after {
    background: var(--purple);
    transform: scaleX(1);
}

.main-nav .nav-link.active:hover,
.main-nav .nav-link.active:focus-visible {
    background: rgba(112, 64, 168, 0.10);
}

/* Донат всегда оранжевый, включая активное состояние */
.main-nav .donate-link.active,
.main-nav .donate-link.active:visited,
.main-nav .donate-link.active:hover,
.main-nav .donate-link.active:focus {
    color: var(--orange);
}

/* Линия у активного Доната — оранжевая */
.main-nav .donate-link.active::after {
    background: var(--orange);
}

.main-nav .donate-link.active:hover,
.main-nav .donate-link.active:focus-visible {
    background: rgba(255, 146, 0, 0.10);
}


/* 7. STEAM BUTTON */

.steam-button {
    padding: 12px 18px;

    background: rgba(0, 79, 130, 0.35);
    border: 1px solid #126b9b;
    border-radius: 8px;

    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.steam-button:hover {
    background: rgba(0, 100, 160, 0.5);
    border-color: var(--purple);
}

.steam-button:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 3px;
}


/* 8. MAIN CONTENT */

.site-main {
    flex: 1;
    min-height: 0;
    padding: 0;
}


/* 9. SERVER SECTION */

.servers-section {
    padding: 125px 0 25px;
}

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

.server-column {
    display: flex;
    flex-direction: column;
    gap: 12px;

    min-width: 0;
}


/* 10. SERVER CARDS */

.server-card {
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: rgba(7, 20, 34, 0.85);

    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.server-card:hover {
    transform: translateY(-4px);
    border-color: var(--orange);
}


/* 11. SERVER IMAGE */

.server-image {
    position: relative;

    height: 220px;
    min-height: 220px;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #14283c;
}


/* IMAGE GRADIENT */

.server-image::before {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(2, 9, 18, 0.15) 50%,
        rgba(2, 9, 18, 0.55) 100%
    );

    pointer-events: none;
}


/* 12. SERVER STATUS */

.server-status,
.server-players {
    position: absolute;
    z-index: 3;
    top: 12px;

    padding: 7px 10px;

    border-radius: 8px;
    background: rgba(0, 0, 0, 0.65);

    font-size: 11px;
    font-weight: 700;
}

.server-status {
    left: 12px;
    color: var(--orange);
}

.server-players {
    right: 12px;
}

.status-dot {
    display: inline-block;

    width: 7px;
    height: 7px;

    margin-right: 5px;

    border-radius: 50%;
    background: var(--orange);
}


/* 13. SERVER INFO */

.server-info {
    position: absolute;
    z-index: 2;
    inset: 0;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;

    padding: 16px;

    pointer-events: none;
}


/* MAP NAME — BOTTOM LEFT */

.server-map {
    display: block;

    min-width: 0;

    color: #ffffff;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;

    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}


/* 14. COPY IP BUTTON — BOTTOM RIGHT */

.copy-ip-button {
    position: static;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 42px;
    height: 42px;
    padding: 0;

    background: rgba(5, 19, 32, 0.85);
    border: 1px solid rgba(255, 146, 0, 0.6);
    border-radius: 10px;

    color: var(--orange);

    cursor: pointer;
    pointer-events: auto;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease;
}

.copy-ip-button:hover {
    background: rgba(255, 146, 0, 0.20);
    transform: translateY(-2px);
}

.copy-ip-button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.copy-icon {
    width: 22px;
    height: 22px;
}

.copy-ip-button.copied {
    background: rgba(46, 204, 113, 0.25);
    border-color: #2ecc71;
    color: #2ecc71;
}


/* 15. LEADERBOARD */

.leaderboard {
    padding: 14px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: rgba(5, 19, 32, 0.68);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.leaderboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-bottom: 6px;
}

.leaderboard-header h3 {
    margin: 0;

    font-size: 16px;
    font-weight: 800;
}


/* 16. EMPTY LEADERBOARD */

.leaderboard-empty {
    padding: 16px 10px;
    text-align: center;
}

.leaderboard-empty p {
    margin: 0 0 10px;

    color: var(--text);
    font-size: 16px;
    font-weight: 700;
}

.leaderboard-empty span {
    color: var(--muted);
    font-size: 12px;
}


/* ==========================================
   PROJECT STATISTICS
   ========================================== */

.project-stats {
    margin-top: 45px;
    padding-bottom: 35px;
}

.project-stats-title {
    margin: 0 0 20px;

    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    text-align: center;
}

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

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 150px;
    padding: 20px;

    background: rgba(5, 19, 32, 0.68);
    border: 1px solid rgba(112, 64, 168, 0.35);
    border-radius: 16px;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--purple);
}

.stat-icon {
    color: #a98be5;
    font-size: 26px;
    line-height: 1;
}

.vip-icon {
    color: var(--orange);
}

.stat-number {
    color: #ffffff;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.stat-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 650px) {
    .project-stats {
        margin-top: 25px;
    }

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

    .stat-card {
        min-height: 125px;
    }
}


/* 17. FOOTER */

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    flex-shrink: 0;

    padding: 12px 20px;

    margin-top: auto;
    margin-bottom: 0;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: rgba(5, 19, 32, 0.35);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.site-footer p {
    margin: 0;

    color: var(--muted);
    font-size: 13px;
}


/* 18. TABLET */

@media (max-width: 1000px) {

    .site-header {
        flex-wrap: wrap;
    }

    .main-nav {
        order: 3;
        width: 100%;

        flex-wrap: wrap;
        gap: 16px;
    }

    .servers-section {
        padding-top: 30px;
    }

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


/* 19. MOBILE */

@media (max-width: 650px) {

    .site-wrapper {
        width: calc(100% - 24px);
    }

    .site-header {
        padding: 12px 4px;
    }

    .main-nav {
        gap: 12px;
    }

    .servers-section {
        padding-top: 20px;
    }

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

    .server-image {
        height: 250px;
        min-height: 250px;
    }

    .site-footer {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}


/* 20. SHORT DESKTOP SCREENS */

@media (min-width: 1001px) and (max-height: 750px) {

    .servers-section {
        padding-top: 55px;
        padding-bottom: 15px;
    }

    .server-image {
        height: 200px;
        min-height: 200px;
    }

    .leaderboard-empty {
        padding: 10px;
    }
}


/* 21. REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .main-nav .nav-link,
    .main-nav .nav-link::after,
    .server-card,
    .copy-ip-button,
    .steam-button {
        transition: none;
    }
}


/* ==========================================
   TOP 3 PLAYERS
   ========================================== */

.top-players {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 14px;
}

.top-player {
    display: flex;
    align-items: center;
    gap: 12px;

    min-height: 40px;
    padding: 9px 12px;

    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9px;
}

.top-player-rank {
    width: 24px;
    flex-shrink: 0;

    text-align: center;
    font-size: 18px;
}

.top-player-name {
    flex: 1;
    min-width: 0;

    color: #ffffff;
    font-size: 13px;
    font-weight: 600;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-player-score {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}


/* ==========================================
   TOP 1 — GOLDEN HIGHLIGHT
   ========================================== */

/* Первое место в каждом рейтинге */

.top-player:first-child {
    position: relative;

    background: linear-gradient(
        110deg,
        rgba(90, 57, 8, 0.85) 0%,
        rgba(48, 35, 17, 0.90) 55%,
        rgba(72, 44, 8, 0.85) 100%
    );

    border: 1px solid #ffbd36;
    border-radius: 10px;

    box-shadow:
        0 0 8px rgba(255, 174, 0, 0.35),
        inset 0 0 12px rgba(255, 174, 0, 0.10);

    transition:
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

/* Золотая линия слева */

.top-player:first-child::before {
    content: "";

    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 0;

    width: 3px;
    border-radius: 3px;

    background: #ffd36b;

    box-shadow: 0 0 10px rgba(255, 193, 7, 0.8);
}

/* Имя лидера */

.top-player:first-child .top-player-name {
    color: #fff5dc;
    font-weight: 800;
}

/* Очки лидера */

.top-player:first-child .top-player-score {
    color: #ffd36b;
}

/* Дополнительное свечение при наведении */

.top-player:first-child:hover {
    border-color: #ffe18a;

    box-shadow:
        0 0 16px rgba(255, 174, 0, 0.55),
        inset 0 0 16px rgba(255, 174, 0, 0.15);
}



/* ==========================================
   DONATE PAGE
   ========================================== */

.donate-section {
    padding: 75px 0 100px;
}

.donate-heading {
    text-align: center;
    margin-bottom: 40px;
}

.donate-heading h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 900;
}

/* TWO-COLUMN LAYOUT */

.donate-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
    max-width: 1300px;
    margin: 0 auto;
    align-items: stretch;
}

/* LEFT SIDEBAR */

.donate-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* PRIVILEGE CARDS */

.donate-sidebar .donate-card {
    --card-accent: #46cdff;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;

    width: 100%;
    min-height: 105px;
    padding: 20px 22px;

    text-align: left;

    background: rgba(5, 19, 32, 0.82);
    border: 1px solid rgba(66, 163, 211, 0.28);
    border-radius: 16px;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    cursor: pointer;
    opacity: 1;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.donate-card.bhop,
.donate-detail-panel.bhop {
    --card-accent: #46cdff;
}

.donate-card.vip,
.donate-detail-panel.vip {
    --card-accent: #ff9200;
}

.donate-card.admin,
.donate-detail-panel.admin {
    --card-accent: #bd8cff;
}

.donate-card.sponsor,
.donate-detail-panel.sponsor {
    --card-accent: #ffd700;
}

.donate-sidebar .donate-card:hover {
    transform: translateX(4px);
    border-color: var(--card-accent);
}

.donate-sidebar .donate-card.active {
    border-color: var(--card-accent);

    background: rgba(12, 31, 48, 0.92);

    box-shadow:
        0 0 20px color-mix(
            in srgb,
            var(--card-accent) 18%,
            transparent
        ),
        inset 3px 0 0 var(--card-accent);
}

/* CARD ICON */

.donate-sidebar .donate-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 54px;
    height: 54px;

    color: var(--card-accent);
}

.donate-sidebar .donate-icon svg {
    width: 35px;
    height: 35px;
    stroke-width: 1.8;
}

/* CARD TEXT */

.donate-card-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.donate-card-name {
    color: var(--card-accent);
    font-size: 23px;
    font-weight: 900;
    letter-spacing: 1px;
}

.donate-card-price {
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
}

/* RIGHT DETAILS AREA */

.donate-details {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* IMPORTANT: HIDE INACTIVE PANELS */

.donate-detail-panel[hidden] {
    display: none !important;
}

.donate-detail-panel {
    --card-accent: #46cdff;

    display: flex;
    flex-direction: column;
    gap: 25px;

    width: 100%;
    min-height: 462px;
    padding: 38px 42px;

    background: rgba(5, 19, 32, 0.85);
    border: 1px solid rgba(66, 163, 211, 0.28);
    border-radius: 18px;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

/* DETAILS HEADER */

.donate-detail-header {
    display: flex;
    align-items: center;
    gap: 18px;
}

.donate-detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    color: var(--card-accent);
}

.donate-detail-icon svg {
    width: 43px;
    height: 43px;
    stroke-width: 1.8;
}

.donate-detail-header h2 {
    margin: 0;
    color: var(--card-accent);
    font-size: 38px;
    font-weight: 900;
    letter-spacing: 2px;
}

/* DESCRIPTION */

.donate-description {
    max-width: 680px;
    margin: 0;

    color: #d4e1ee;
    font-size: 16px;
    line-height: 1.7;
}

/* FEATURES */

.donate-features {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.donate-features h3 {
    margin: 0;

    color: #ffffff;
    font-size: 21px;
    font-weight: 800;
}

.donate-features ul {
    display: flex;
    flex-direction: column;
    gap: 14px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.donate-features li {
    display: flex;
    align-items: center;
    gap: 12px;

    color: #e5edf5;
    font-size: 15px;
    line-height: 1.5;
}

.donate-features li svg {
    flex-shrink: 0;

    width: 20px;
    height: 20px;

    color: var(--card-accent);
    stroke-width: 2.5;
}

/* PURCHASE OPTIONS */

.donate-purchase {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;

    margin-top: auto;
}

.donate-purchase button {
    width: 100%;
    min-height: 58px;
    padding: 14px 18px;

    color: var(--card-accent);

    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--card-accent);
    border-radius: 12px;

    font-size: 16px;
    font-weight: 800;

    cursor: not-allowed;
    opacity: 0.75;
}

/* COMING SOON */

.donate-coming-soon {
    margin: 0;

    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

/* TABLET */

@media (max-width: 1000px) {
    .donate-layout {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 18px;
    }

    .donate-detail-panel {
        padding: 30px;
    }

    .donate-sidebar .donate-card {
        padding: 18px;
    }
}

/* MOBILE */

@media (max-width: 750px) {
    .donate-section {
        padding: 45px 0 65px;
    }

    .donate-heading {
        margin-bottom: 28px;
    }

    .donate-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .donate-sidebar .donate-card {
        min-height: 95px;
        padding: 15px 12px;
        gap: 10px;
    }

    .donate-sidebar .donate-card:hover {
        transform: translateY(-2px);
    }

    .donate-sidebar .donate-icon {
        width: 35px;
        height: 35px;
    }

    .donate-sidebar .donate-icon svg {
        width: 28px;
        height: 28px;
    }

    .donate-card-name {
        font-size: 18px;
    }

    .donate-card-price {
        font-size: 13px;
    }

    .donate-detail-panel {
        min-height: 0;
        padding: 25px 20px;
        gap: 22px;
    }

    .donate-detail-header h2 {
        font-size: 30px;
    }

    .donate-purchase {
        grid-template-columns: 1fr;
    }
}

/* SMALL PHONES */

@media (max-width: 380px) {
    .donate-sidebar {
        grid-template-columns: 1fr;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .donate-sidebar .donate-card {
        transition: none;
    }
}


/* ==========================================
   DONATE SERVER SELECTOR
   ========================================== */

.donate-server-selector {
    max-width: 1300px;
    margin: 0 auto 35px;
    text-align: center;
}

.donate-server-selector h2 {
    margin: 0 0 22px;
    color: #ffffff;
    font-size: 26px;
    font-weight: 900;
}

.donate-server-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.donate-server-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-width: 210px;
    min-height: 55px;
    padding: 14px 22px;

    color: #d4e1ee;
    background: rgba(5, 19, 32, 0.82);
    border: 1px solid rgba(66, 163, 211, 0.28);
    border-radius: 12px;

    font-size: 14px;
    font-weight: 800;

    cursor: pointer;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.donate-server-button svg {
    width: 19px;
    height: 19px;
}

.donate-server-button:hover {
    transform: translateY(-2px);
    border-color: var(--purple);
    background: rgba(112, 64, 168, 0.14);
}

.donate-server-button.active {
    color: #ffffff;
    border-color: var(--purple);
    background: rgba(112, 64, 168, 0.25);
    box-shadow: 0 0 18px rgba(112, 64, 168, 0.25);
}

.donate-server-button:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 3px;
}

@media (max-width: 650px) {
    .donate-server-selector {
        margin-bottom: 25px;
    }

    .donate-server-selector h2 {
        font-size: 22px;
    }

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

    .donate-server-button {
        width: 100%;
    }
}


/* ==========================================
   DONATE — THREE COLUMN LAYOUT
   ========================================== */

/* Основная сетка */

.donate-layout {
    display: grid;
    grid-template-columns:
        minmax(220px, 0.95fr)
        minmax(0, 1.45fr)
        minmax(270px, 1fr);

    gap: 20px;
    max-width: 1500px;
    margin: 0 auto;
    align-items: stretch;
}

/* Левая колонка */

.donate-sidebar {
    min-width: 0;
}

/* Центральная колонка */

.donate-details {
    min-width: 0;
}

.donate-detail-panel {
    min-height: 0;
    height: 100%;
    padding: 30px 28px;
    gap: 25px;
}

.donate-detail-header {
    gap: 12px;
}

.donate-detail-header h2 {
    font-size: 32px;
}

.donate-detail-icon {
    width: 44px;
    height: 44px;
}

.donate-detail-icon svg {
    width: 35px;
    height: 35px;
}

.donate-description {
    font-size: 15px;
    line-height: 1.6;
}

.donate-features {
    gap: 16px;
}

.donate-features h3 {
    font-size: 19px;
}

.donate-features li {
    font-size: 14px;
}

/* ==========================================
   RIGHT CHECKOUT PANEL
   ========================================== */

.donate-checkout {
    display: flex;
    flex-direction: column;
    gap: 22px;

    min-width: 0;
    padding: 28px 24px;

    background: rgba(5, 19, 32, 0.88);
    border: 1px solid var(--checkout-accent, #46cdff);
    border-radius: 18px;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.25),
    0 0 24px color-mix(
        in srgb,
        var(--checkout-accent, #46cdff) 15%,
        transparent
    );

    transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.donate-checkout h2 {
    margin: 0;
    color: #ffffff;
    font-size: 25px;
    font-weight: 900;
}

.donate-summary {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.donate-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;

    padding-bottom: 14px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.donate-summary-row span {
    color: var(--muted);
    font-size: 13px;
}

.donate-summary-row strong {
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    text-align: right;
}

/* Выбор срока */

.donate-duration-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.donate-duration-section h3 {
    margin: 0;
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
}

.donate-checkout .donate-purchase {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.donate-checkout .donate-duration-button {
    min-height: 50px;
    padding: 10px 8px;

    color: #d4e1ee;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(66, 163, 211, 0.28);
    border-radius: 10px;

    font-size: 13px;
    font-weight: 800;

    cursor: pointer;
    opacity: 1;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

.donate-checkout .donate-duration-button:hover {
    border-color: var(--purple);
    background: rgba(112, 64, 168, 0.12);
}

.donate-checkout .donate-duration-button.active {
    color: #ffffff;
    border-color: var(--purple);
    background: rgba(112, 64, 168, 0.28);
}

.donate-checkout .donate-duration-button:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 3px;
}

/* Итоговая стоимость */

.donate-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-top: auto;
    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.donate-summary-total span {
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
}

.donate-summary-total strong {
    color: var(--orange);
    font-size: 29px;
    font-weight: 900;
    white-space: nowrap;
}

/* Кнопка покупки */

.donate-checkout .donate-buy-button {
    width: 100%;
    min-height: 54px;
    padding: 14px;

    color: var(--orange);
    background: rgba(255, 146, 0, 0.08);
    border: 1px solid var(--orange);
    border-radius: 11px;

    font-size: 14px;
    font-weight: 800;

    cursor: not-allowed;
    opacity: 0.75;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

/* Планшеты */

@media (max-width: 1150px) {
    .donate-layout {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 18px;
    }

    .donate-checkout {
        grid-column: 1 / -1;
    }
}

/* Телефоны */

@media (max-width: 750px) {
    .donate-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

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

    .donate-detail-panel {
        padding: 25px 20px;
    }

    .donate-checkout {
        grid-column: auto;
        padding: 25px 20px;
    }
}

@media (max-width: 380px) {
    .donate-sidebar {
        grid-template-columns: 1fr;
    }
}


/* ==========================================
   CHECKOUT PRIVILEGE THEMES
   ========================================== */

.donate-checkout.bhop {
    --checkout-accent: #46cdff;
}

.donate-checkout.vip {
    --checkout-accent: #ff9200;
}

.donate-checkout.admin {
    --checkout-accent: #bd8cff;
}

.donate-checkout.sponsor {
    --checkout-accent: #ffd700;
}

/* Иконка и заголовок */

.donate-checkout-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.donate-checkout-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 36px;
    height: 36px;

    color: var(--checkout-accent);
}

.donate-checkout-icon svg {
    width: 30px;
    height: 30px;
    stroke-width: 2;
}

/* Название выбранной привилегии */

.donate-checkout [data-summary-privilege] {
    color: var(--checkout-accent);
}

/* Активный срок */

.donate-checkout .donate-duration-button.active {
    color: var(--checkout-accent);
    border-color: var(--checkout-accent);

    background: color-mix(
        in srgb,
        var(--checkout-accent) 15%,
        transparent
    );

    box-shadow: 0 0 12px color-mix(
        in srgb,
        var(--checkout-accent) 12%,
        transparent
    );
}

/* Итоговая стоимость */

.donate-checkout .donate-summary-total strong {
    color: var(--checkout-accent);
}

/* Кнопка покупки */

.donate-checkout .donate-buy-button {
    color: var(--checkout-accent);
    border-color: var(--checkout-accent);
}



/* ==========================================
   RULES PAGE — DOCUMENT LAYOUT
   ========================================== */

.rules-section {
    padding: 65px 0 100px;
}

.rules-heading {
    max-width: 1300px;
    margin: 0 auto 36px;
    text-align: center;
}

.rules-heading h1 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 900;
}

.rules-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

/* TWO COLUMNS */

.rules-layout {
    display: grid;
    grid-template-columns: 275px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    max-width: 1300px;
    margin: 0 auto;
}

/* LEFT NAVIGATION */

.rules-sidebar {
    min-width: 0;
    align-self: stretch;
}

.rules-sidebar-inner {
    position: sticky;
    top: 100px;
    padding: 22px 14px;

    background: rgba(5, 19, 32, 0.88);
    border: 1px solid rgba(112, 64, 168, 0.35);
    border-radius: 18px;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.rules-sidebar-title {
    margin: 0 10px 18px;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
}

.rules-navigation {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rules-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;

    min-height: 43px;
    padding: 10px 12px;

    color: #b9c9d8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;

    border: 1px solid transparent;
    border-radius: 9px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.rules-nav-number {
    flex-shrink: 0;
    color: #8596a9;
    font-size: 11px;
    font-weight: 900;
}

.rules-nav-name {
    min-width: 0;
}

.rules-nav-link:hover {
    color: #fff;
    background: rgba(112, 64, 168, 0.14);
}

.rules-nav-link.active {
    color: #d6b1ff;
    background: rgba(112, 64, 168, 0.22);
    border-color: rgba(189, 140, 255, 0.45);
}

.rules-nav-link.active .rules-nav-number {
    color: #bd8cff;
}

.rules-nav-link:focus-visible {
    outline: 2px solid #bd8cff;
    outline-offset: 2px;
}

/* RIGHT DOCUMENT */

.rules-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.rules-document-section {
    padding: 30px 34px;

    background: rgba(5, 19, 32, 0.88);
    border: 1px solid rgba(112, 64, 168, 0.35);
    border-radius: 18px;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);

    scroll-margin-top: 100px;
}

.rules-document-header {
    display: flex;
    align-items: center;
    gap: 16px;

    margin-bottom: 26px;
    padding-bottom: 22px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.rules-document-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 48px;
    height: 48px;

    color: #bd8cff;
    background: rgba(112, 64, 168, 0.16);
    border: 1px solid rgba(189, 140, 255, 0.25);
    border-radius: 12px;
}

.rules-document-icon svg {
    width: 26px;
    height: 26px;
    stroke-width: 1.8;
}

.rules-document-heading {
    min-width: 0;
}

.rules-document-label {
    display: block;
    margin-bottom: 5px;

    color: #bd8cff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.rules-document-heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(19px, 2vw, 25px);
    font-weight: 900;
}

/* RULE ITEMS */

.rules-document-list {
    display: flex;
    flex-direction: column;
    gap: 0;

    margin: 0;
    padding: 0;
    list-style: none;
}

.rules-document-list li {
    display: flex;
    align-items: flex-start;
    gap: 18px;

    padding: 14px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.rules-document-list li:first-child {
    padding-top: 0;
}

.rules-document-list li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.rules-document-number {
    flex-shrink: 0;
    min-width: 36px;

    color: #bd8cff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.7;
}

.rules-document-text {
    min-width: 0;
    color: #dce5ee;
    font-size: 14px;
    line-height: 1.7;
}

/* FOOTER NOTE */

.rules-document-footer {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    padding: 20px 24px;

    background: rgba(112, 64, 168, 0.12);
    border: 1px solid rgba(189, 140, 255, 0.3);
    border-radius: 14px;
}

.rules-document-footer svg {
    flex-shrink: 0;
    width: 21px;
    height: 21px;
    color: #bd8cff;
}

.rules-document-footer p {
    margin: 0;
    color: #c9d5e2;
    font-size: 13px;
    line-height: 1.6;
}

/* SMOOTH SCROLL */

html {
    scroll-behavior: smooth;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .rules-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 16px;
    }

    .rules-document-section {
        padding: 25px 22px;
    }
}

@media (max-width: 650px) {
    .rules-section {
        padding: 40px 0 65px;
    }

    .rules-layout {
        grid-template-columns: 1fr;
    }

    .rules-sidebar {
        align-self: auto;
    }

    .rules-sidebar-inner {
        position: static;
        padding: 18px 14px;
    }

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

    .rules-nav-link {
        padding: 10px 8px;
        gap: 8px;
        font-size: 12px;
    }

    .rules-document-section {
        padding: 22px 18px;
    }

    .rules-document-header {
        gap: 12px;
    }

    .rules-document-icon {
        width: 42px;
        height: 42px;
    }

    .rules-document-heading h2 {
        font-size: 20px;
    }

    .rules-document-list li {
        gap: 10px;
    }

    .rules-document-text {
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .rules-navigation {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .rules-nav-link {
        transition: none;
    }
}


/* ==========================================
   RULES — FIXED PANELS
   ========================================== */

@media (min-width: 901px) {

    .rules-section {
        height: calc(100dvh - 100px);
        min-height: 500px;
        padding: 20px 0 24px;

        display: flex;
        flex-direction: column;
    }

    .rules-heading {
        flex-shrink: 0;
        margin-bottom: 22px;
    }

    .rules-layout {
        flex: 1;
        min-height: 0;
        width: 100%;
        align-items: stretch;
    }

    /* Левая панель */

    .rules-sidebar {
        min-height: 0;
    }

    .rules-sidebar-inner {
        position: static;
        height: 100%;
        overflow-y: auto;
    }

    /* Правая панель */

    .rules-content {
        height: 100%;
        min-height: 0;

        overflow-y: auto;
        overscroll-behavior: contain;

        padding-right: 8px;

        scrollbar-width: thin;
        scrollbar-color: #7040a8 transparent;
    }

    .rules-document-section {
        scroll-margin-top: 12px;
    }

    .rules-content::-webkit-scrollbar {
        width: 6px;
    }

    .rules-content::-webkit-scrollbar-track {
        background: transparent;
    }

    .rules-content::-webkit-scrollbar-thumb {
        background: #7040a8;
        border-radius: 10px;
    }
}


/* ==========================================
   RULES — HIDE SIDEBAR SCROLLBAR
   ========================================== */

.rules-sidebar-inner {
    overflow-y: auto;

    /* Firefox */
    scrollbar-width: none;

    /* Старый Edge / IE */
    -ms-overflow-style: none;
}

/* Chrome, Edge, Safari */
.rules-sidebar-inner::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}



/* ==========================================
   GLOBAL SPACE BACKGROUND
   ========================================== */

html,
body {
    background-color: #020611;
}

#space-background {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    display: block;
    pointer-events: none;

    z-index: 0;
    background: #020611;
}

/* Основной интерфейс */

.site-wrapper {
    position: relative;
    z-index: 1;

    background: transparent;
}


/* ==========================================
   DOBEGAEM — STEAM PLAYER PROFILE
   ========================================== */

.player-profile {
    width: 100%;
    max-width: 1100px;
    margin: 65px auto 40px;
    padding: 0 20px;
    box-sizing: border-box;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 36px;

    padding: 42px;

    background: rgba(10, 22, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.profile-avatar {
    width: 150px;
    height: 150px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 146, 0, 0.08);
    border: 2px solid rgba(255, 146, 0, 0.5);
    border-radius: 22px;

    color: #ff9200;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.profile-avatar svg {
    width: 65px;
    height: 65px;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-label {
    display: inline-block;
    margin-bottom: 12px;

    color: #ff9200;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.profile-info h1 {
    margin: 0 0 22px;

    color: #ffffff;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.profile-steamid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;

    margin-bottom: 26px;
    color: #a6b8cc;
}

.profile-steamid code {
    padding: 8px 12px;

    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;

    color: #ffffff;
    font-size: 13px;
}

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

.profile-steam-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 12px 20px;

    background: rgba(255, 146, 0, 0.12);
    border: 1px solid rgba(255, 146, 0, 0.35);
    border-radius: 10px;

    color: #ff9200;
    font-weight: 700;
    text-decoration: none;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.profile-steam-link:hover {
    background: rgba(255, 146, 0, 0.2);
    border-color: #ff9200;
    transform: translateY(-2px);
}

.profile-steam-link svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 650px) {
    .player-profile {
        margin-top: 30px;
        padding: 0 14px;
    }

    .profile-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 26px;
    }

    .profile-avatar {
        width: 110px;
        height: 110px;
    }

    .profile-info h1 {
        font-size: 26px;
    }
}



/* ========================================
   STEAM PROFILE — HEADER
======================================== */

.header-player {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    max-width: 220px;
    padding: 7px 12px;

    background: rgba(15, 28, 48, 0.65);
    border: 1px solid rgba(255, 146, 0, 0.35);
    border-radius: 12px;

    color: #ffffff;
    text-decoration: none;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition: background 0.2s ease, border-color 0.2s ease;
}

.header-player:hover {
    background: rgba(255, 146, 0, 0.12);
    border-color: #ff9200;
}

.header-player-avatar {
    width: 34px;
    height: 34px;
    flex-shrink: 0;

    border-radius: 9px;
    object-fit: cover;
}

.header-player-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 13px;
    font-weight: 600;
}

.header-player > svg {
    width: 24px;
    height: 24px;
    color: #ff9200;
    flex-shrink: 0;
}


/* ========================================
   STEAM ACCOUNT DROPDOWN
======================================== */

.header-account {
    position: relative;
    flex-shrink: 0;
}

.header-account .header-player {
    cursor: pointer;
    font-family: inherit;
}

.header-account .header-player > svg {
    width: 16px;
    height: 16px;
    color: #ff9200;
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 1000;

    width: 220px;
    padding: 8px;

    background: rgba(10, 20, 36, 0.96);
    border: 1px solid rgba(255, 146, 0, 0.25);
    border-radius: 14px;

    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.account-dropdown[hidden] {
    display: none !important;
}

.account-dropdown a,
.account-dropdown .account-logout {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;
    padding: 12px;

    background: transparent;
    border: none;
    border-radius: 9px;

    color: #e8edf5;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;

    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.account-dropdown a:hover,
.account-dropdown .account-logout:hover {
    background: rgba(255, 146, 0, 0.12);
    color: #ff9200;
}

.account-dropdown a svg,
.account-dropdown .account-logout svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.account-dropdown form {
    margin: 0;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.account-dropdown .account-logout {
    color: #ff7777;
}

.account-dropdown .account-logout:hover {
    color: #ff5555;
    background: rgba(255, 85, 85, 0.1);
}


/* ========================================
   DOBEGAEM — PREMIUM PLAYER PROFILE
======================================== */

.premium-profile {
    width: 100%;
    max-width: 1600px;
    margin: 35px auto 60px;
}

/* Верхняя карточка */

.premium-profile-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 255px;
    padding: 32px;
    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(5, 15, 29, 0.96) 0%,
            rgba(5, 15, 29, 0.88) 48%,
            rgba(12, 25, 43, 0.82) 100%
        );

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.premium-profile-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        radial-gradient(
            circle at 75% 50%,
            rgba(255, 146, 0, 0.14),
            transparent 48%
        );
}

.premium-profile-identity,
.premium-profile-vip {
    position: relative;
    z-index: 1;
}

/* Информация игрока */

.premium-profile-identity {
    display: flex;
    align-items: center;
    gap: 25px;
    min-width: 0;
}

.premium-profile-avatar {
    width: 145px;
    height: 145px;
    flex-shrink: 0;
    overflow: hidden;

    border: 2px solid rgba(255, 146, 0, 0.75);
    border-radius: 16px;
    background: #101c2e;
}

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

.premium-profile-avatar > svg {
    width: 100%;
    height: 100%;
    padding: 30px;
    color: #ff9200;
}

.premium-profile-details {
    min-width: 0;
}

.premium-profile-label {
    display: block;
    margin-bottom: 10px;
    color: #ff9200;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.premium-profile-details h1 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: clamp(22px, 2.5vw, 32px);
    overflow-wrap: anywhere;
}

.premium-profile-steamid {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: #a6b8cc;
    font-size: 13px;
}

.premium-profile-steamid svg {
    width: 18px;
    height: 18px;
    color: #ff9200;
}

.premium-profile-steamid code {
    padding: 6px 10px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    font-size: 12px;
}

.premium-profile-steam-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 16px;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9px;
    background: rgba(15, 30, 50, 0.75);

    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

.premium-profile-steam-link:hover {
    border-color: #ff9200;
    color: #ff9200;
}

.premium-profile-steam-link svg {
    width: 17px;
    height: 17px;
}

/* VIP-панель */

.premium-profile-vip {
    width: 255px;
    flex-shrink: 0;
    padding: 22px;

    background: rgba(7, 16, 29, 0.82);
    border: 1px solid rgba(255, 146, 0, 0.3);
    border-radius: 14px;
    backdrop-filter: blur(14px);
}

.premium-vip-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffb347;
    font-size: 25px;
    font-weight: 800;
}

.premium-vip-heading svg {
    width: 30px;
    height: 30px;
}

.premium-vip-status {
    margin: 12px 0 20px;
    color: #a6b8cc;
    font-size: 13px;
}

.premium-vip-button {
    display: block;
    padding: 12px;
    border: 1px solid #ff9200;
    border-radius: 9px;
    background: rgba(255, 146, 0, 0.12);
    color: #ffb347;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.premium-vip-button:hover {
    background: rgba(255, 146, 0, 0.24);
}

/* Вкладки */

.premium-profile-tabs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding: 8px;

    background: rgba(7, 18, 33, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
}

.premium-profile-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;

    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #a6b8cc;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.premium-profile-tab svg {
    width: 18px;
    height: 18px;
}

.premium-profile-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.premium-profile-tab.active {
    color: #ffb347;
    background: rgba(255, 146, 0, 0.14);
    border-color: rgba(255, 146, 0, 0.35);
}

/* Адаптивность */

@media (max-width: 800px) {
    .premium-profile-hero {
        flex-direction: column;
        align-items: stretch;
        padding: 22px;
    }

    .premium-profile-vip {
        width: 100%;
    }

    .premium-profile-avatar {
        width: 100px;
        height: 100px;
    }

    .premium-profile-identity {
        gap: 15px;
    }

    .premium-profile-tabs {
        overflow-x: auto;
    }

    .premium-profile-tab {
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .premium-profile-identity {
        flex-direction: column;
        align-items: flex-start;
    }

    .premium-profile-steamid code {
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}


/* PREMIUM PROFILE — COMPACT HEADER */

.premium-profile-hero {
    min-height: 205px;
    padding: 22px 26px;
    gap: 22px;
}

.premium-profile-avatar {
    width: 112px;
    height: 112px;
}

.premium-profile-identity {
    gap: 20px;
}

.premium-profile-vip {
    width: 235px;
    padding: 18px;
}

.premium-profile-details h1 {
    margin-bottom: 10px;
}


/* ========================================
   PREMIUM PROFILE — SOCIAL ICONS
======================================== */

.premium-profile-socials {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.premium-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    background: rgba(8, 22, 39, 0.85);
    border: 1px solid rgba(115, 153, 190, 0.35);
    border-radius: 11px;

    color: #eaf2ff;
    text-decoration: none;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.premium-social-link svg {
    width: 23px;
    height: 23px;
}

.premium-social-link:hover {
    transform: translateY(-3px);
    background: rgba(255, 146, 0, 0.12);
    border-color: #ff9200;
    color: #ff9200;
}

.premium-social-link:focus-visible {
    outline: 2px solid #ff9200;
    outline-offset: 3px;
}

/* FACEIT */

.premium-social-faceit {
    border-color: rgba(255, 146, 0, 0.45);
    color: #ff9200;
}

.premium-social-faceit span {
    font-size: 25px;
    font-weight: 900;
    font-style: italic;
    line-height: 1;
}

@media (max-width: 480px) {
    .premium-social-link {
        width: 44px;
        height: 44px;
    }

    .premium-profile-socials {
        gap: 9px;
    }
}


/* ========================================
   PREMIUM PROFILE — OVERVIEW
======================================== */

.premium-overview {
    margin-top: 24px;
    padding: 26px;

    background: rgba(8, 22, 39, 0.78);
    border: 1px solid rgba(115, 153, 190, 0.2);
    border-radius: 18px;

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Заголовок */

.premium-overview-heading h2 {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
}

.premium-overview-heading p {
    margin: 0;
    color: #a6b8cc;
    font-size: 14px;
}

/* Переключатель серверов */

.premium-server-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.premium-server-button {
    padding: 13px 22px;

    background: rgba(12, 29, 49, 0.9);
    border: 1px solid rgba(115, 153, 190, 0.25);
    border-radius: 10px;

    color: #c5d3e2;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.premium-server-button:hover {
    border-color: #ff9200;
    color: #ffffff;
}

.premium-server-button.active {
    background: rgba(255, 146, 0, 0.15);
    border-color: #ff9200;
    color: #ff9200;
}

/* Контейнер статистики */

.premium-overview-content {
    margin-top: 22px;
    padding: 28px;

    background: rgba(5, 16, 29, 0.65);
    border: 1px solid rgba(115, 153, 190, 0.15);
    border-radius: 12px;
}

.premium-overview-content p {
    margin: 0;
    color: #a6b8cc;
    font-size: 14px;
}

/* Адаптивность */

@media (max-width: 600px) {
    .premium-overview {
        padding: 18px;
    }

    .premium-server-selector {
        gap: 8px;
    }

    .premium-server-button {
        flex: 1 1 100%;
        padding: 12px;
    }

    .premium-overview-content {
        padding: 18px;
    }
}


/* ========================================
   PREMIUM PROFILE — STATS CARDS
======================================== */

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

.premium-stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;

    min-height: 120px;
    padding: 22px;

    background: rgba(12, 29, 49, 0.75);
    border: 1px solid rgba(115, 153, 190, 0.2);
    border-radius: 12px;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.premium-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 146, 0, 0.6);
    background: rgba(18, 36, 56, 0.9);
}

.premium-stat-card span {
    color: #a6b8cc;
    font-size: 13px;
    font-weight: 500;
}

.premium-stat-card strong {
    color: #ffffff;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
}

/* Адаптивность */

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

    .premium-stat-card {
        min-height: 105px;
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .premium-stats-grid {
        grid-template-columns: 1fr;
    }
}



/* ========================================
   PREMIUM PROFILE — FACEIT
======================================== */

.premium-faceit {
    flex: 0 1 270px;
    min-width: 210px;
    padding: 18px 20px;

    background: rgba(9, 20, 35, 0.75);
    border: 1px solid rgba(255, 146, 0, 0.25);
    border-radius: 14px;
}

.premium-faceit-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;

    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.premium-faceit-logo {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    color: #ff9200;
    font-size: 27px;
    font-weight: 900;
    font-style: italic;
}

.premium-faceit-info {
    display: grid;
    gap: 11px;
}

.premium-faceit-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.premium-faceit-item span {
    color: #a6b8cc;
    font-size: 13px;
}

.premium-faceit-item strong {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

/* Расположение внутри верхней карточки */

.premium-profile-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.premium-profile-identity {
    flex: 1 1 360px;
    min-width: 0;
}

.premium-profile-vip {
    flex: 0 0 235px;
}

/* Адаптивность */

@media (max-width: 900px) {
    .premium-faceit {
        flex: 1 1 220px;
    }
}

@media (max-width: 600px) {
    .premium-faceit {
        flex: 1 1 100%;
    }

    .premium-profile-vip {
        flex: 1 1 100%;
    }
}


