:root {
    --bg: #070708;
    --panel: #121214;
    --panel-soft: rgba(18, 18, 20, .9);
    --text: #fbf7ff;
    --muted: #c8bdd3;
    --orange: #ad72ff;
    --orange-dark: #6530c9;
    --line: rgba(255, 255, 255, .14);
}

/* Admin panel */
.admin-page { display: block; width: min(1500px, calc(100% - 40px)); min-height: auto; margin: 30px auto 80px; position: relative; z-index: 2; }
.admin-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 28px 4px; }
.admin-heading span, .admin-form header span, .admin-list header span { color: #a65cff; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.admin-heading h1 { margin: 7px 0; font: 400 clamp(30px, 4vw, 52px)/1 'Russo One', sans-serif; }
.admin-heading p { margin: 0; color: #9294a2; }
.admin-heading > a, .account-admin-link { color: #fff; text-decoration: none; border: 1px solid rgba(129, 229, 151, .32); background: rgba(54, 173, 91, .1); border-radius: 10px; padding: 13px 18px; font-weight: 700; }
.account-overview > .account-admin-link { align-self: center; white-space: nowrap; }
.admin-tabs { width: 100%; max-width: 100%; overflow-x: auto; margin-bottom: 22px; }
.admin-tabs .account-tab { min-width: max-content; }
.admin-panel { animation: admin-in .22s ease both; }
.admin-panel[hidden] { display: none !important; }
@keyframes admin-in { from { opacity: 0; transform: translateY(5px); } }
.admin-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid #30313d; border-radius: 16px; overflow: hidden; background: rgba(27, 28, 36, .9); }
.admin-metrics article { min-height: 118px; padding: 23px; border-right: 1px solid #30313d; display: flex; flex-direction: column; justify-content: space-between; }
.admin-metrics article:last-child { border: 0; }
.admin-metrics span { color: #858796; font-size: 12px; }
.admin-metrics strong { font: 400 28px/1 'Russo One', sans-serif; color: #fff; }
.admin-security-note { display: none !important; }
.admin-discount-settings { margin-top: 18px; }
.admin-revenue { margin-bottom: 18px; }
.admin-revenue-filter { display: flex; align-items: end; gap: 13px; }
.admin-revenue-filter label { display: flex; flex-direction: column; gap: 8px; color: #a7a9b4; font-size: 12px; font-weight: 700; }
.admin-revenue-filter .admin-submit { margin-top: 0; }
.admin-revenue-filter [data-admin-status] { flex: 1; margin: 0; }
.admin-revenue-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 22px; border: 1px solid #30313d; border-radius: 11px; overflow: hidden; }
.admin-revenue-metrics article { padding: 17px; border-right: 1px solid #30313d; display: flex; flex-direction: column; gap: 9px; }
.admin-revenue-metrics article:last-child { border: 0; }
.admin-revenue-metrics span { color: #858796; font-size: 11px; }
.admin-revenue-metrics strong { font: 400 21px/1 'Russo One', sans-serif; }
.admin-revenue-table { margin-top: 18px; overflow-x: auto; }
.admin-revenue-row { min-width: 680px; display: grid; grid-template-columns: minmax(180px, 1.6fr) repeat(4, minmax(90px, .7fr)); gap: 14px; align-items: center; padding: 12px 4px; border-top: 1px solid #30313d; color: #b5b7c1; font-size: 13px; }
.admin-revenue-row--head { border-top: 0; color: #777987; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.admin-promo-analytics { margin-bottom: 18px; }
.admin-promo-filter label:nth-child(3) { min-width: 190px; }
.admin-promo-metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.admin-promo-grid { display: grid; grid-template-columns: minmax(340px, .7fr) minmax(680px, 1.3fr); gap: 22px; margin-top: 22px; }
.admin-promo-grid > section { min-width: 0; }
.admin-promo-grid h3 { margin: 0 0 8px; color: #d9d9e0; font-size: 14px; }
.admin-promo-product-row, .admin-promo-use-row { display: grid; gap: 14px; align-items: center; padding: 12px 4px; border-top: 1px solid #30313d; color: #b5b7c1; font-size: 12px; }
.admin-promo-product-row { min-width: 360px; grid-template-columns: minmax(170px, 1.5fr) minmax(70px, .6fr) minmax(95px, .7fr); }
.admin-promo-use-row { min-width: 720px; grid-template-columns: minmax(120px, .8fr) minmax(95px, .65fr) minmax(120px, .8fr) minmax(220px, 1.5fr) minmax(95px, .65fr); }
.admin-promo-product-row.admin-revenue-row--head, .admin-promo-use-row.admin-revenue-row--head { border-top: 0; }
.admin-promo-use-row time { color: #858796; }
.admin-promo-use-row span { overflow-wrap: anywhere; }
.admin-discount-settings .admin-fields { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.admin-security-note strong { color: #6fe491; }
.admin-security-note p { color: #a7a9b4; max-width: 1000px; margin: 8px 0 0; line-height: 1.65; }
.admin-split { display: grid; grid-template-columns: minmax(520px, .9fr) minmax(460px, 1.1fr); gap: 18px; align-items: start; }
.admin-split--product { grid-template-columns: minmax(620px, 1.2fr) minmax(420px, .8fr); }
.admin-form, .admin-list, .admin-player-result { border: 1px solid #30313d; border-radius: 16px; padding: 25px; background: rgba(27, 28, 36, .94); }
.admin-form header, .admin-list header { margin-bottom: 21px; }
.admin-form h2, .admin-list h2 { margin: 6px 0 0; font: 400 23px/1.2 'Russo One', sans-serif; }
.admin-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.admin-fields label, .admin-player-search > label, .admin-type-fields label { display: flex; flex-direction: column; gap: 8px; color: #a7a9b4; font-size: 12px; font-weight: 700; }
.admin-fields .wide { grid-column: 1 / -1; }
.admin-form input, .admin-form select, .admin-form textarea { width: 100%; color: #f7f7fb; background: #15161d; border: 1px solid #353744; border-radius: 9px; padding: 12px 13px; font: inherit; outline: none; box-sizing: border-box; }
.admin-form textarea { resize: vertical; min-height: 82px; line-height: 1.5; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { border-color: #a45cff; box-shadow: 0 0 0 3px rgba(164, 92, 255, .1); }
.admin-fields small { color: #737584; font-weight: 500; line-height: 1.4; }
.admin-fields .check { flex-direction: row; align-items: center; align-self: end; min-height: 42px; }
.admin-fields .check input { width: 18px; height: 18px; accent-color: #a45cff; }
.admin-type-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; padding: 16px; border: 1px dashed #3b3d4a; border-radius: 10px; }
.admin-type-fields[hidden] { display: none; }
.admin-submit { margin-top: 19px; border: 0; border-radius: 10px; padding: 13px 20px; background: linear-gradient(135deg, #a854ed, #783bd0); color: #fff; font-weight: 800; cursor: pointer; }
.admin-submit:disabled { opacity: .55; cursor: wait; }
.admin-form [data-admin-status] { min-height: 19px; margin: 12px 0 0; color: #8e909e; font-size: 13px; }
.admin-form [data-admin-status].is-error { color: #ff7079; }
.admin-form [data-admin-status].is-success { color: #72e595; }
.admin-list-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 0; border-top: 1px solid #30313d; }
.admin-list-row:first-of-type { border-top: 0; }
.admin-list-row > div:first-child { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.admin-list-row strong { color: #f5f5f9; overflow-wrap: anywhere; }
.admin-list-row span, .admin-list-row time { color: #858796; font-size: 12px; line-height: 1.45; }
.admin-list-row > div:last-child { display: flex; gap: 7px; flex-shrink: 0; }
.admin-list-row button { border: 1px solid #3a3c49; border-radius: 8px; padding: 8px 10px; color: #cacbd3; background: #20212a; cursor: pointer; }
.admin-list-row button:hover { color: #fff; border-color: #8650bd; }
.admin-player-tools { display: grid; grid-template-columns: .75fr 1.25fr; gap: 18px; align-items: stretch; }
.admin-player-search > label { margin-bottom: 15px; }
.admin-player-result { margin-top: 18px; }
.admin-player-result > p { color: #858796; }
.admin-player-card h2 { margin: 0 0 20px; font: 400 27px/1 'Russo One', sans-serif; }
.admin-player-card dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: #30313d; border: 1px solid #30313d; border-radius: 10px; overflow: hidden; }
.admin-player-card dl div { background: #1d1e26; padding: 14px; min-width: 0; }
.admin-player-card dt { color: #7e808e; font-size: 11px; margin-bottom: 6px; }
.admin-player-card dd { margin: 0; color: #f3f3f7; font-size: 13px; overflow-wrap: anywhere; }
.admin-player-history { margin-top: 22px; }
.admin-player-history h3 { margin: 0 0 10px; font-size: 15px; }
.admin-player-history div { padding: 11px 0; border-top: 1px solid #30313d; color: #a5a7b2; font-size: 13px; }
.admin-player-history p { color: #777987; }
.admin-audit { width: 100%; }
@media (max-width: 1180px) { .admin-metrics, .admin-promo-metrics { grid-template-columns: repeat(3, 1fr); } .admin-metrics article:nth-child(3), .admin-promo-metrics article:nth-child(3) { border-right: 0; } .admin-promo-grid, .admin-split, .admin-split--product { grid-template-columns: 1fr; } .admin-discount-settings .admin-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .admin-page { width: min(100% - 22px, 1500px); } .admin-heading { align-items: flex-start; flex-direction: column; } .admin-metrics, .admin-revenue-metrics, .admin-promo-metrics { grid-template-columns: repeat(2, 1fr); } .admin-metrics article:nth-child(3), .admin-promo-metrics article:nth-child(3) { border-right: 1px solid #30313d; } .admin-metrics article:nth-child(even), .admin-revenue-metrics article:nth-child(even), .admin-promo-metrics article:nth-child(even) { border-right: 0; } .admin-fields, .admin-player-tools, .admin-discount-settings .admin-fields { grid-template-columns: 1fr; } .admin-fields .wide { grid-column: auto; } .admin-type-fields { grid-template-columns: 1fr; } .admin-form, .admin-list, .admin-player-result { padding: 18px; } .admin-player-card dl { grid-template-columns: repeat(2, 1fr); } .admin-list-row { align-items: flex-start; flex-direction: column; } .admin-revenue-filter { align-items: stretch; flex-direction: column; } }

/* Account, wallet and server-priced discounts */
.auth-agreement {
    margin: 18px 0 0;
    color: #858793;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.auth-agreement a {
    color: #b786ff;
    text-decoration: none;
}

.telegram-pending {
    display: grid;
    justify-items: center;
    padding: 26px 0 8px;
    text-align: center;
}

.telegram-pending__icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(83, 178, 255, .45);
    border-radius: 18px;
    background: rgba(83, 178, 255, .12);
    color: #62baff;
    font-size: 27px;
    font-weight: 900;
}

.telegram-pending h2 { margin: 20px 0 8px; font-size: 22px; }
.telegram-pending p { max-width: 420px; margin: 0; color: #9496a2; font-size: 14px; line-height: 1.6; }
.telegram-pending p strong { color: #fff; }
.telegram-pending__status { margin-top: 14px; color: #aeb0bb; font-size: 13px; }
.telegram-pending.is-error .telegram-pending__status { color: #ff7a88; }
.telegram-pending__loader { display: flex; gap: 6px; margin-top: 24px; }
.telegram-pending__loader i { width: 7px; height: 7px; border-radius: 50%; background: #9c5cff; animation: telegram-pulse 1.1s ease-in-out infinite; }
.telegram-pending__loader i:nth-child(2) { animation-delay: .15s; }
.telegram-pending__loader i:nth-child(3) { animation-delay: .3s; }
@keyframes telegram-pulse { 0%, 70%, 100% { opacity: .25; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-5px); } }

.product__discount { position: absolute; top: 18px; right: 18px; z-index: 2; padding: 7px 10px; border: 1px solid rgba(105, 235, 147, .45); border-radius: 9px; background: rgba(30, 93, 53, .72); color: #79f29e; font-size: 12px; font-weight: 900; box-shadow: 0 6px 24px rgba(50, 220, 105, .13); }
.product__footer del { display: block; margin: 0 0 2px; color: #747681; font-size: 12px; }

.payment-strategies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.payment-strategies label { cursor: pointer; }
.payment-strategies input { position: absolute; opacity: 0; pointer-events: none; }
.payment-strategies label > span { display: grid; min-height: 76px; padding: 14px 16px; align-content: center; gap: 5px; border: 1px solid #32333e; border-radius: 13px; background: #1b1c24; transition: .2s ease; }
.payment-strategies b { color: #f4f4f7; font-size: 13px; }
.payment-strategies small { color: #777986; font-size: 11px; line-height: 1.4; }
.payment-strategies input:checked + span { border-color: #985cff; background: rgba(139, 77, 245, .11); box-shadow: inset 0 0 0 1px rgba(152, 92, 255, .18); }
.payment-strategies input:disabled + span { cursor: not-allowed; opacity: .48; }
.payment-breakdown { display: flex; margin: 0 0 15px; padding: 12px 14px; justify-content: space-between; gap: 12px; border-radius: 11px; background: #15161d; color: #888a95; font-size: 12px; }
.payment-breakdown strong { display: block; margin-top: 3px; color: #fff; font-size: 13px; }

.account-shell { min-height: 100vh; height: auto; overflow: visible; }
.account-dashboard { display: block; width: min(1180px, calc(100% - 40px)); min-height: auto; margin: 0 auto; padding: 38px 0 80px; }
.account-top-actions { display: flex; align-items: center; gap: 12px; }
.account-home { color: #a0a2ad; font-size: 13px; font-weight: 700; text-decoration: none; }
.account-home:hover { color: #fff; }
.account-hero-card { position: relative; display: flex; min-height: 170px; padding: 32px 36px; align-items: center; justify-content: space-between; gap: 28px; overflow: hidden; border: 1px solid #30313c; border-radius: 22px; background: linear-gradient(110deg, rgba(32, 33, 43, .97), rgba(24, 25, 33, .97)); box-shadow: 0 24px 70px rgba(0, 0, 0, .22); }
.account-hero-card::after { position: absolute; width: 300px; height: 300px; right: -80px; bottom: -180px; border-radius: 50%; background: rgba(144, 74, 244, .16); filter: blur(18px); content: ''; }
.wallet-balance { position: relative; z-index: 1; display: grid; min-width: 290px; padding: 22px 26px; gap: 5px; border: 1px solid rgba(160, 96, 255, .28); border-radius: 17px; background: rgba(129, 66, 220, .09); }
.wallet-balance small { color: #9e6df0; font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.wallet-balance strong { color: #fff; font-family: "Russo One", sans-serif; font-size: clamp(28px, 4vw, 40px); font-weight: 400; }
.wallet-balance span { color: #7f818d; font-size: 11px; }
.account-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 18px; margin-top: 18px; }
.dashboard-card { position: relative; padding: 24px; border: 1px solid #2e2f39; border-radius: 19px; background: rgba(27, 28, 37, .94); box-shadow: 0 18px 55px rgba(0, 0, 0, .16); }
.dashboard-card__head span { color: #9560e9; font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.dashboard-card__head h2 { margin: 5px 0 0; color: #fff; font-size: 19px; }
.profile-list { display: grid; margin: 20px 0 0; }
.profile-list div { display: flex; min-height: 40px; padding: 10px 0; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid #2b2c35; }
.profile-list dt { color: #7f818c; font-size: 12px; }
.profile-list dd { margin: 0; color: #e9e9ed; font-size: 12px; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.account-action-form { display: grid; gap: 12px; margin-top: 20px; }
.account-action-form label { display: grid; gap: 7px; }
.account-action-form label span { color: #8b8d98; font-size: 11px; font-weight: 700; }
.account-action-form input { width: 100%; height: 45px; padding: 0 13px; border: 1px solid #353641; border-radius: 11px; outline: 0; background: #15161d; color: #fff; font: inherit; font-size: 13px; }
.account-action-form input:focus { border-color: #8e55e7; box-shadow: 0 0 0 3px rgba(142, 85, 231, .11); }
.account-action-form button { display: flex; height: 45px; padding: 0 15px; align-items: center; justify-content: space-between; border: 0; border-radius: 11px; background: linear-gradient(105deg, #7540cd, #9957ef); color: #fff; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.account-action-form button:disabled { cursor: wait; opacity: .6; }
.account-action-form p { min-height: 18px; margin: 0; color: #888a95; font-size: 11px; line-height: 1.5; }
.account-action-form p.is-error { color: #ff7b88; }
.account-action-form p.is-success { color: #6ee794; }
.history-card { margin-top: 18px; padding: 0; overflow: hidden; }
.history-card .dashboard-card__head { padding: 22px 24px 18px; }
.history-table { overflow-x: auto; }
.history-row { display: grid; min-width: 760px; grid-template-columns: 1.5fr .75fr .9fr 1fr .75fr; min-height: 58px; padding: 0 24px; align-items: center; gap: 16px; border-top: 1px solid #2b2c35; color: #b7b8c0; font-size: 12px; }
.history-table--payments .history-row { min-width: 620px; grid-template-columns: 1fr 1fr 1fr 1fr; }
.history-row--head { min-height: 40px; color: #666874; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.history-row > span:first-child { display: grid; gap: 3px; }
.history-row strong { color: #f0f0f4; font-size: 12px; }
.history-row small { color: #70727d; font-size: 10px; }
.history-status { width: fit-content; padding: 5px 8px; border-radius: 7px; font-size: 10px; font-weight: 800; }
.history-status--success { background: rgba(75, 213, 116, .1); color: #6ee794; }
.history-status--failed, .history-status--error { background: rgba(255, 96, 112, .1); color: #ff7b88; }
.history-status--pending { background: rgba(255, 193, 83, .1); color: #ffc963; }
.history-empty { margin: 0; padding: 24px; border-top: 1px solid #2b2c35; color: #777985; font-size: 12px; }
.account-notice { margin-bottom: 16px; padding: 14px 18px; border: 1px solid; border-radius: 12px; font-size: 12px; font-weight: 700; }
.account-notice--success { border-color: rgba(77, 220, 121, .25); background: rgba(77, 220, 121, .08); color: #72eb98; }
.account-notice--error { border-color: rgba(255, 92, 110, .25); background: rgba(255, 92, 110, .08); color: #ff7c8b; }

@media (max-width: 960px) {
    .account-grid { grid-template-columns: 1fr 1fr; }
    .profile-card { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    .payment-strategies { grid-template-columns: 1fr; }
    .account-dashboard { width: min(100% - 28px, 1180px); padding-top: 24px; }
    .account-top-actions { gap: 8px; }
    .account-home { display: none; }
    .account-hero-card { padding: 25px 20px; align-items: stretch; flex-direction: column; }
    .wallet-balance { min-width: 0; }
    .account-grid { grid-template-columns: 1fr; }
    .profile-card { grid-column: auto; }
    .dashboard-card { padding: 21px 18px; }
    .history-card { padding: 0; }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background:
        radial-gradient(circle at 50% -20%, #1d1528 0, transparent 38%),
        #050506;
    font-family: Inter, Arial, sans-serif;
}

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

button {
    color: inherit;
    font: inherit;
}

.payment-notice {
    position: fixed;
    z-index: 150;
    top: 18px;
    left: 50%;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 24px;
    width: min(520px, calc(100% - 30px));
    padding: 16px 50px 16px 18px;
    transform: translateX(-50%);
    border: 1px solid rgba(166, 101, 255, .48);
    border-radius: 9px;
    background: rgba(16, 16, 18, .97);
    box-shadow: 0 20px 55px rgba(0, 0, 0, .5);
    backdrop-filter: blur(15px);
    animation: notice-in .4s ease both;
}

.payment-notice strong,
.payment-notice span {
    grid-column: 1;
}

.payment-notice strong {
    font-size: 13px;
}

.payment-notice span {
    color: #b9acc5;
    font-size: 10px;
    line-height: 1.5;
}

.payment-notice button {
    position: absolute;
    top: 50%;
    right: 15px;
    border: 0;
    transform: translateY(-50%);
    background: transparent;
    color: #c2b0d1;
    cursor: pointer;
    font-size: 22px;
}

.payment-notice--success {
    border-color: rgba(92, 216, 113, .5);
}

.payment-notice--pending {
    border-color: rgba(241, 170, 65, .5);
}

@keyframes notice-in {
    from { opacity: 0; transform: translate(-50%, -20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.site-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(180deg, rgba(9, 9, 11, .06), #0d0d0f 78%, #070708);
}

.site-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 20%), rgba(151, 91, 223, .11), transparent 27%),
        linear-gradient(90deg, rgba(6, 4, 9, .72), transparent 25%, transparent 75%, rgba(6, 4, 9, .7));
}

.particles {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.header {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 270px 1fr 390px;
    align-items: center;
    width: min(1380px, calc(100% - 64px));
    height: 98px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: max-content;
}

.brand__logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 7px 18px rgba(145, 72, 255, .34));
}

.brand {
    display: flex;
    align-items: center;
    gap: 1px;
}

.brand__photo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 2px solid #aa6cff;
    border-radius: 14px 4px 14px 4px;
    background:
        linear-gradient(145deg, rgba(174, 112, 255, .3), rgba(61, 22, 103, .78)),
        #130b1d;
    color: #fbf7ff;
    font-family: "Russo One", sans-serif;
    font-size: 28px;
    line-height: 1;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .2),
        0 7px 18px rgba(145, 72, 255, .34);
    transform: skew(-5deg);
}

.brand__name {
    font-family: "Russo One", sans-serif;
    color: #fbf7ff;
    font-size: 15px;
    line-height: 1;
    letter-spacing: .08em;
    white-space: nowrap;
}

.nav {
    display: flex;
    justify-content: center;
    gap: clamp(18px, 2vw, 34px);
}

.nav__link {
    position: relative;
    padding: 16px 0;
    color: #d4c7c0;
    font-size: 13px;
    font-weight: 600;
    transition: color .25s ease;
}

.nav__link::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: 7px;
    left: 50%;
    height: 2px;
    background: var(--orange);
    transition: inset .25s ease;
}

.nav__link:hover {
    color: white;
}

.nav__link:hover::after,
.nav__link:first-child::after {
    right: 0;
    left: 0;
}

.header__actions,
.socials {
    display: flex;
    align-items: center;
}

.header__actions {
    justify-content: flex-end;
    gap: 12px;
}

.socials {
    gap: 11px;
}

.socials a {
    color: #c5b8d0;
    font-size: 9px;
    font-weight: 900;
}

.socials a:hover {
    color: var(--orange);
}

.online {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 11px;
    border: 1px solid rgba(97, 220, 114, .2);
    border-radius: 5px;
    background: rgba(12, 34, 17, .42);
}

.online__pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #61dc72;
    box-shadow: 0 0 12px #61dc72;
    animation: online-pulse 1.8s ease-in-out infinite;
}

.online > span:last-child {
    display: grid;
    text-align: left;
}

.online small {
    color: #789c7e;
    font-size: 7px;
    letter-spacing: .14em;
}

.online strong {
    margin-top: 2px;
    font-size: 10px;
}

.online.is-loading .online__pulse {
    background: #a47cff;
    box-shadow: 0 0 12px #a47cff;
}

.online.is-offline {
    border-color: rgba(224, 73, 73, .25);
    background: rgba(52, 13, 13, .42);
}

.online.is-offline .online__pulse {
    background: #e04b4b;
    box-shadow: 0 0 10px #e04b4b;
    animation: none;
}

.online.is-offline small {
    color: #a66868;
}

.header-ip {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 13px;
    border: 1px solid rgba(166, 103, 255, .5);
    border-radius: 5px;
    background: rgba(20, 20, 23, .88);
    cursor: pointer;
    transition: .25s ease;
}

.header-ip:hover {
    border-color: var(--orange);
    background: rgba(37, 31, 44, .94);
}

.header-ip__status {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #61dc72;
    box-shadow: 0 0 10px #61dc72;
}

.header-ip > span:nth-child(2) {
    display: grid;
    text-align: left;
}

.header-ip small {
    color: #a58eb7;
    font-size: 7px;
    letter-spacing: .14em;
}

.header-ip strong {
    margin-top: 2px;
    font-size: 10px;
}

.header-ip i {
    position: absolute;
    top: calc(100% + 7px);
    left: 50%;
    padding: 5px 8px;
    transform: translate(-50%, 4px);
    border-radius: 4px;
    opacity: 0;
    background: #17151a;
    color: #d4b8ec;
    font-size: 9px;
    font-style: normal;
    pointer-events: none;
    transition: .2s ease;
}

.header-ip:hover i,
.header-ip.is-copied i {
    opacity: 1;
    transform: translate(-50%, 0);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: rgba(18, 18, 21, .94);
}

.menu-toggle i {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: white;
    transition: .25s ease;
}

.hero {
    position: relative;
    z-index: 4;
    min-height: calc(100vh - 138px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 200px 32px 50px;
}

.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: 0;
    bottom: 0;
    left: 0;
    height: 68%;
    background:
        linear-gradient(180deg, transparent, rgba(10, 10, 12, .76) 19%, #0d0d0f 52%, #070708 100%);
}

.hero__art {
    position: absolute;
    z-index: -2;
    inset: -98px 0 auto;
    height: min(790px, 74vh);
    overflow: hidden;
}

.hero__art::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 5, 6, .03), transparent 58%, #0d0d0f 98%),
        linear-gradient(90deg, rgba(7, 5, 10, .5), transparent 28%, transparent 72%, rgba(7, 5, 10, .52));
}

.hero__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    filter: saturate(.72) contrast(1.08) brightness(.78);
    transform: scale(1.04);
    animation: hero-in 1.2s cubic-bezier(.2, .7, .2, 1) both;
}

.hero__flare {
    position: absolute;
    z-index: 2;
    top: 25%;
    left: 50%;
    width: 52vw;
    height: 20vw;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(154, 91, 232, .13);
    filter: blur(85px);
}

.hero__content {
    width: min(1020px, 100%);
    text-align: center;
}

.hero__eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 0 11px;
    color: #c89dff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .36em;
}

.hero__eyebrow span {
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #9d58ff);
}

.hero__eyebrow span:last-child {
    transform: rotate(180deg);
}

h1 {
    position: relative;
    margin: 0;
    font-family: "Russo One", Impact, sans-serif;
    font-size: clamp(62px, 8.1vw, 128px);
    line-height: .85;
    letter-spacing: -.055em;
    color: #fcf9ff;
    text-shadow:
        0 7px 0 #c5c8c9,
        0 14px 0 #777a7d,
        0 28px 60px rgba(0, 0, 0, .8);
}

h1::after {
    content: attr(data-title);
    position: absolute;
    inset: 0;
    z-index: -1;
    color: transparent;
    -webkit-text-stroke: 8px rgba(0, 0, 0, .35);
}

h2 {
    margin: 28px 0 9px;
    font-size: clamp(19px, 2.1vw, 28px);
    font-weight: 900;
}

.hero__description {
    max-width: 760px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 32px auto 27px;
}

.stat {
    position: relative;
    min-height: 108px;
    padding: 22px 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(30, 29, 33, .94), rgba(15, 15, 17, .94));
    text-align: left;
    backdrop-filter: blur(13px);
    transition: transform .3s ease, border-color .3s ease;
}

.stat::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -50px;
    width: 110px;
    height: 90px;
    border-radius: 50%;
    background: rgba(151, 76, 255, .16);
    filter: blur(23px);
}

.stat:hover {
    transform: translateY(-5px);
    border-color: rgba(170, 107, 255, .65);
}

.stat strong,
.stat span {
    display: block;
}

.stat strong {
    margin-bottom: 10px;
    font-size: 25px;
    font-weight: 900;
}

.stat span {
    max-width: 150px;
    color: #c7bbd1;
    font-size: 11px;
    line-height: 1.35;
}

.hero__actions {
    display: flex;
    justify-content: center;
    gap: 17px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 250px;
    padding: 16px 23px;
    border: 1px solid rgba(185, 132, 255, .68);
    border-radius: 7px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 12px 30px rgba(0, 0, 0, .34);
    transition: transform .25s ease, filter .25s ease;
}

.button:hover {
    transform: translateY(-3px);
    filter: brightness(1.16);
}

.button span {
    margin-right: 10px;
    font-size: 15px;
}

.button--primary {
    background: linear-gradient(180deg, #b77aff, #7139d3);
}

.button--secondary {
    background: linear-gradient(180deg, #8049b8, #3c1e59);
}

.server {
    display: flex;
    justify-content: center;
    gap: 36px;
    margin-top: 20px;
    color: #b9adc4;
    font-size: 13px;
}

.server strong {
    margin-left: 8px;
    color: white;
}

.scroll-hint {
    position: absolute;
    right: 34px;
    bottom: 36px;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: rotate(90deg) translateX(100%);
    transform-origin: right bottom;
    color: #82778a;
    font-size: 9px;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.scroll-hint span {
    width: 35px;
    height: 1px;
    background: #65408a;
}

@keyframes hero-in {
    from {
        opacity: 0;
        transform: scale(1.13);
    }
    to {
        opacity: 1;
        transform: scale(1.04);
    }
}

@keyframes online-pulse {
    50% {
        opacity: .45;
        box-shadow: 0 0 4px #61dc72;
    }
}

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

    .nav {
        gap: 16px;
    }

    .online {
        display: none;
    }
}

@media (max-width: 820px) {
    .header {
        grid-template-columns: 1fr auto;
        width: min(100% - 34px, 720px);
        height: 80px;
    }

    .nav {
        position: absolute;
        top: 68px;
        right: 0;
        left: 0;
        display: grid;
        gap: 0;
        padding: 12px 20px;
        transform: translateY(-12px);
        visibility: hidden;
        opacity: 0;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(13, 13, 15, .98);
        backdrop-filter: blur(18px);
        transition: .25s ease;
    }

    .nav.is-open {
        transform: translateY(0);
        visibility: visible;
        opacity: 1;
    }

    .nav__link {
        border-bottom: 1px solid rgba(255, 255, 255, .06);
    }

    .nav__link::after {
        display: none;
    }

    .header-ip {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle.is-open i:first-child {
        transform: translateY(3.5px) rotate(45deg);
    }

    .menu-toggle.is-open i:last-child {
        transform: translateY(-3.5px) rotate(-45deg);
    }

    .hero {
        min-height: calc(100vh - 100px);
        padding: 180px 18px 44px;
    }

    .hero__art {
        inset: -80px 0 auto;
        height: 620px;
    }

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

    .scroll-hint {
        display: none;
    }
}

.shop {
    position: relative;
    overflow: hidden;
    padding: 110px max(32px, calc((100vw - 1380px) / 2)) 130px;
    background:
        radial-gradient(circle at 50% 5%, rgba(157, 94, 225, .09), transparent 28%),
        linear-gradient(180deg, #080809, #101012 48%, #080809);
}

.shop::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .14;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: linear-gradient(transparent, black 20%, black 80%, transparent);
}

.section-heading {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto 52px;
    text-align: center;
}

.section-heading p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 0 0 14px;
    color: #b982ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .32em;
}

.section-heading p span {
    width: 34px;
    height: 1px;
    background: #7440b7;
}

.section-heading h2 {
    margin: 0 0 13px;
    font-family: "Russo One", sans-serif;
    font-size: clamp(36px, 5vw, 68px);
    line-height: 1;
}

.section-heading > span {
    color: #a092aa;
    font-size: 14px;
}

.server-tabs {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 500px);
    justify-content: center;
    gap: 14px;
    max-width: 1380px;
    margin: 0 auto 22px;
}

.server-tab {
    display: grid;
    gap: 5px;
    padding: 18px 20px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 9px;
    background: rgba(23,23,26,.94);
    cursor: pointer;
    text-align: left;
    transition: .25s ease;
}

.server-tab strong {
    font-family: "Russo One", sans-serif;
    font-size: 17px;
}

.server-tab span {
    color: #94869d;
    font-size: 10px;
}

.server-tab:hover,
.server-tab.is-active {
    border-color: var(--orange);
    background: linear-gradient(135deg, rgba(43,39,48,.96), rgba(20,20,23,.96));
    box-shadow: 0 12px 35px rgba(0,0,0,.3);
}

.category-tabs {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 30px;
}

.category-tab {
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 5px;
    background: rgba(18,18,21,.94);
    color: #aa9bb4;
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
    transition: .2s ease;
}

.category-tab:hover,
.category-tab.is-active {
    border-color: rgba(169,101,255,.68);
    background: #26212c;
    color: white;
}

.product-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    max-width: 1380px;
    margin: 0 auto;
}

.product[hidden] {
    display: none;
}

.catalog-empty {
    position: relative;
    z-index: 1;
    display: none;
    padding: 55px 20px;
    color: #94869d;
    text-align: center;
}

.catalog-empty.is-visible {
    display: block;
}

.product {
    --accent: #9e48ff;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 13px;
    background: #111113;
    box-shadow: 0 25px 70px rgba(0,0,0,.35);
    transition: transform .35s ease, border-color .35s ease;
}

.product--red { --accent: #c25cff; }
.product--green { --accent: #8d6cff; }
.product--blue { --accent: #7157ff; }

.product:hover {
    transform: translateY(-10px);
    border-color: color-mix(in srgb, var(--accent), white 20%);
}

.product__visual {
    position: relative;
    height: 300px;
    overflow: hidden;
    background-image: var(--product-image, url("../images/store-ranks.png"));
    background-size: var(--product-size, 200% 200%);
    background-position: var(--product-position);
}

.product__visual::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(transparent, #111113);
}

.product__badge {
    position: absolute;
    z-index: 2;
    top: 16px;
    left: 16px;
    padding: 7px 10px;
    border: 1px solid color-mix(in srgb, var(--accent), white 25%);
    border-radius: 4px;
    background: rgba(5,5,5,.65);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
    backdrop-filter: blur(7px);
}

.product__shine {
    position: absolute;
    z-index: 1;
    inset: auto 10% -80px;
    height: 140px;
    border-radius: 50%;
    background: var(--accent);
    opacity: .22;
    filter: blur(45px);
}

.product__body {
    position: relative;
    padding: 0 23px 23px;
}

.product__body > p {
    margin: 0 0 7px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 900;
}

.product h3 {
    margin: 0;
    font-family: "Russo One", sans-serif;
    font-size: 25px;
    letter-spacing: .02em;
}

.product__subtitle {
    display: block;
    margin-top: 7px;
    color: #91869a;
    font-size: 11px;
}

.product__footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.product__footer div {
    display: grid;
}

.product__footer small {
    color: #91869a;
    font-size: 9px;
}

.product__footer strong {
    margin-top: 2px;
    font-size: 19px;
}

.product__footer button {
    padding: 11px 15px;
    border: 1px solid color-mix(in srgb, var(--accent), white 15%);
    border-radius: 5px;
    background: color-mix(in srgb, var(--accent), #160b21 60%);
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    transition: .25s ease;
}

.product__footer button:hover {
    transform: translateX(3px);
    filter: brightness(1.25);
}

.product__footer button span {
    margin-left: 8px;
}

.purchase-modal {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s ease, visibility .3s ease;
}

.purchase-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.purchase-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3,2,2,.82);
    backdrop-filter: blur(13px);
}

.purchase-modal__dialog {
    position: relative;
    width: min(1050px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    transform: translateY(30px) scale(.97);
    border: 1px solid rgba(166,101,255,.3);
    border-radius: 15px;
    background: #101012;
    box-shadow: 0 40px 100px rgba(0,0,0,.65);
    transition: transform .35s cubic-bezier(.2,.8,.2,1);
}

.purchase-modal.is-open .purchase-modal__dialog {
    transform: translateY(0) scale(1);
}

.purchase-modal__close {
    position: absolute;
    z-index: 5;
    top: 15px;
    right: 17px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
    background: rgba(8,5,12,.7);
    cursor: pointer;
    font-size: 24px;
}

.purchase-flow {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    min-height: 620px;
}

.purchase-main {
    padding: 55px;
}

.purchase-step {
    display: none;
}

.purchase-step.is-active {
    display: block;
    animation: step-in .35s ease both;
}

.step-label {
    color: var(--orange);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .18em;
}

.purchase-step h2 {
    margin: 9px 0 6px;
    font-family: "Russo One", sans-serif;
    font-size: 35px;
}

.purchase-step > p {
    margin: 0 0 28px;
    color: #988ba1;
    font-size: 13px;
}

.period-list {
    display: grid;
    gap: 11px;
}

.period-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 17px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    background: #19191c;
    cursor: pointer;
    transition: .25s ease;
}

.period-option:hover,
.period-option.is-selected {
    border-color: var(--orange);
    background: #29252e;
}

.period-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--orange);
}

.period-option span {
    display: grid;
}

.period-option strong {
    font-size: 15px;
}

.period-option small {
    margin-top: 3px;
    color: #bba6ca;
}

.purchase-next {
    width: 100%;
    margin-top: 24px;
    padding: 15px 20px;
    border: 1px solid #ae72ff;
    border-radius: 6px;
    background: linear-gradient(180deg, #b77aff, #7139d3);
    cursor: pointer;
    font-weight: 800;
    box-shadow: inset 0 1px rgba(255,255,255,.25), 0 15px 34px rgba(80,35,142,.34);
}

.purchase-next:hover {
    filter: brightness(1.15);
}

.purchase-next span {
    margin-left: 10px;
}

.purchase-summary {
    display: flex;
    flex-direction: column;
    padding: 55px 48px;
    background:
        radial-gradient(circle at 65% 18%, rgba(169,104,235,.11), transparent 28%),
        #161619;
}

.purchase-summary__head {
    display: flex;
    align-items: center;
    gap: 18px;
}

.purchase-summary__image {
    flex: 0 0 96px;
    height: 96px;
    border: 2px solid var(--orange);
    border-radius: 10px;
    background-image: url("../images/store-ranks.png");
    background-size: 200% 200%;
}

.purchase-summary__head small {
    color: #a88db8;
    font-size: 8px;
    letter-spacing: .14em;
}

.purchase-summary__head h3 {
    margin: 7px 0 4px;
    font-family: "Russo One", sans-serif;
    font-size: 25px;
}

.purchase-summary__head strong {
    color: #bd88ff;
    font-size: 13px;
}

.purchase-summary__price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 30px 0 18px;
    padding: 17px 0;
    border-top: 1px solid rgba(255,255,255,.1);
    border-bottom: 1px solid rgba(255,255,255,.1);
    color: #b3a3bd;
    font-size: 12px;
}

.purchase-summary__price strong {
    color: white;
    font-size: 21px;
}

.purchase-summary__features {
    flex: 1;
    padding: 20px;
    border: 1px solid rgba(166,101,255,.32);
    border-radius: 8px;
    background: rgba(8,8,10,.58);
}

.purchase-summary__features > span {
    color: #b979ff;
    font-size: 12px;
    font-weight: 800;
}

.purchase-summary__features ul {
    display: grid;
    gap: 12px;
    margin: 17px 0 0;
    padding: 0;
    list-style: none;
}

.purchase-summary__features li {
    position: relative;
    padding-left: 18px;
    color: #c5b8cd;
    font-size: 12px;
    line-height: 1.4;
}

.purchase-summary__features li::before {
    content: "◆";
    position: absolute;
    left: 0;
    color: var(--orange);
    font-size: 7px;
    top: 4px;
}

.purchase-summary > p {
    margin: 18px 0 0;
    color: #7d7087;
    font-size: 9px;
    text-align: center;
}

.field {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.field span {
    color: #c0b0ca;
    font-size: 11px;
    font-weight: 700;
}

.field input {
    width: 100%;
    padding: 15px 16px;
    outline: none;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 6px;
    background: #19191c;
    color: white;
    transition: .2s ease;
}

.field input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(159,92,255,.14);
}

.field input.is-invalid {
    border-color: #ff4261;
}

.payment-title {
    margin: 24px 0 12px;
    font-size: 14px;
}

.payment-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
}

.order-number {
    display: block;
    margin: 20px 0 5px;
    color: #bd8aff;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.payment-list input {
    position: absolute;
    opacity: 0;
}

.payment-list span {
    display: grid;
    place-items: center;
    min-height: 72px;
    padding: 11px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 7px;
    background: #18181b;
    cursor: pointer;
    color: #b77dff;
    font-size: 18px;
}

.payment-list small {
    margin-top: 7px;
    color: #c5b7cd;
    font-size: 9px;
}

.payment-list input:checked + span {
    border-color: var(--orange);
    background: #29252e;
}

.form-error {
    min-height: 18px;
    margin-top: 13px;
    color: #ff6a80;
    font-size: 11px;
}

.purchase-buttons {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px;
}

.purchase-buttons.is-single {
    grid-template-columns: 1fr;
}

.purchase-buttons > button:first-child {
    margin-top: 24px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
}

.purchase-success {
    padding-top: 100px;
    text-align: center;
}

.success-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border: 1px solid #62cf76;
    border-radius: 50%;
    background: rgba(52,180,77,.12);
    color: #72e388;
    font-size: 30px;
}

.footer {
    padding: 0 max(32px, calc((100vw - 1380px) / 2));
    background: #070708;
    color: #91869a;
}

.footer__top {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    align-items: center;
    gap: 30px;
    padding: 45px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.recent-purchases {
    min-width: 0;
}

.recent-purchases__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 9px;
}

.recent-purchases__heading > span {
    color: #eee7f5;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.recent-purchases__heading small {
    color: #77717f;
    font-size: 9px;
}

.recent-purchases__viewport {
    min-width: 0;
    overflow: hidden;
}

.recent-purchases__track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
}

.recent-purchases__track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
}

.recent-purchases__track::-webkit-scrollbar {
    display: none;
}

.recent-purchase,
.recent-purchases__empty {
    flex: 0 0 clamp(190px, 24%, 255px);
    min-width: 0;
    min-height: 190px;
    padding: 14px 16px 16px;
}

.recent-purchase {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    background:
        radial-gradient(circle at 50% 34%, rgba(161, 92, 235, .13), transparent 42%),
        #111113;
    scroll-snap-align: start;
}

.recent-purchase__time {
    position: absolute;
    z-index: 2;
    top: 11px;
    right: 11px;
    padding: 5px 9px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    background: #26242a;
    color: #c8bdcf;
    font-size: 9px;
    font-weight: 700;
}

.recent-purchase__image {
    position: absolute;
    inset: 13px 18px 52px;
    background-image: url("../images/store-ranks.png");
    background-repeat: no-repeat;
    background-size: 200% 200%;
    filter: drop-shadow(0 14px 20px rgba(0,0,0,.5));
}

.recent-purchase strong {
    overflow: hidden;
    color: #f7f1ff;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-purchase small {
    overflow: hidden;
    margin-top: 4px;
    color: #a99bb3;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-purchase small span {
    margin-right: 3px;
    color: #b879ff;
}

.recent-purchases__empty {
    display: grid;
    place-items: center;
    flex-basis: 100%;
    min-height: 190px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    background: #101012;
    color: #8f8298;
    font-size: 10px;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 35px;
    padding: 27px 0 40px;
    font-size: 10px;
    line-height: 1.7;
}

.footer__bottom div {
    display: grid;
}

.footer__bottom strong {
    color: #bdb0c5;
}

.footer__bottom a {
    color: #ad72f2;
    text-decoration: underline;
}

.footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 18px;
    margin-top: 14px;
}

.legal-body {
    background:
        radial-gradient(circle at 50% -10%, rgba(157, 94, 225, .1), transparent 34%),
        #070708;
}

.legal-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
    min-height: 98px;
    margin: 0;
    padding-inline: max(24px, calc((100% - 1180px) / 2));
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.legal-header__back {
    color: #cbbdd4;
    font-size: 12px;
    font-weight: 700;
    transition: color .2s ease;
}

.legal-header__back:hover {
    color: var(--orange);
}

.legal-page {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    padding: 74px 24px 110px;
}

.legal-page__glow {
    position: absolute;
    top: 70px;
    left: 50%;
    width: 620px;
    height: 230px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(159, 96, 225, .1);
    filter: blur(90px);
    pointer-events: none;
}

.legal-document {
    position: relative;
    width: min(980px, 100%);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 64px);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(28, 28, 31, .98), rgba(13, 13, 15, .99));
    box-shadow: 0 30px 90px rgba(0, 0, 0, .42);
}

.legal-document__eyebrow {
    margin: 0 0 13px;
    color: #b982ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .26em;
}

.legal-document h1 {
    margin: 0 0 48px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.02;
    letter-spacing: -.04em;
    text-shadow: none;
}

.legal-document h1::after {
    display: none;
}

.legal-document__content h2 {
    margin: 42px 0 14px;
    color: #fbf7ff;
    font-size: clamp(18px, 2.5vw, 24px);
    line-height: 1.35;
}

.legal-document__content h2:first-child {
    margin-top: 0;
}

.legal-document__content p {
    margin: 0 0 15px;
    color: #c6b9cf;
    font-size: 14px;
    line-height: 1.8;
}

.legal-document__content a {
    color: #b879ff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 620px) {
    .legal-header {
        width: 100%;
        min-height: 80px;
        padding-inline: 16px;
    }

    .legal-header .brand__name {
        display: none;
    }

    .legal-page {
        padding: 38px 14px 70px;
    }

    .legal-document h1 {
        margin-bottom: 34px;
    }

    .legal-document__content p {
        font-size: 13px;
        line-height: 1.7;
    }
}

/* Support tickets */
.ticket-workspace {
    display: grid;
    grid-template-columns: minmax(330px, .72fr) minmax(0, 1.28fr);
    min-height: 640px;
    border-bottom: 1px solid rgba(255,255,255,.09);
    background: rgba(20,21,28,.38);
}

.ticket-workspace--admin {
    overflow: visible;
    border: 1px solid #30313d;
    border-radius: 16px;
    background: rgba(27,28,36,.94);
}

.ticket-sidebar {
    min-width: 0;
    border-right: 1px solid rgba(255,255,255,.09);
}

.ticket-create,
.ticket-queue-heading {
    display: grid;
    padding: 25px;
    gap: 14px;
    border-bottom: 1px solid rgba(255,255,255,.09);
}

.ticket-create header,
.ticket-list > header,
.ticket-queue-heading {
    margin: 0;
}

.ticket-create header > span,
.ticket-list > header > span,
.ticket-queue-heading > span,
.ticket-thread-header > div:first-child > span,
.ticket-thread-empty > span {
    color: #aa69f4;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
}

.ticket-create h2,
.ticket-list h2,
.ticket-queue-heading h2,
.ticket-thread-header h2,
.ticket-thread-empty h2 {
    margin: 5px 0 0;
    color: #f7f7fa;
    font: 400 20px/1.25 "Russo One", sans-serif;
}

.ticket-create label,
.ticket-reply label {
    display: grid;
    gap: 7px;
    color: #8b8d98;
    font-size: 10px;
    font-weight: 700;
}

.ticket-create input,
.ticket-create select,
.ticket-create textarea,
.ticket-reply textarea,
.ticket-reply input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 9px;
    outline: 0;
    background: #202129;
    color: #fff;
    font: 600 12px/1.5 Inter, sans-serif;
}

.ticket-create input,
.ticket-create select {
    min-height: 44px;
    padding: 0 13px;
}

.ticket-create textarea,
.ticket-reply textarea {
    min-height: 104px;
    padding: 12px 13px;
    resize: vertical;
}

.ticket-create input:focus,
.ticket-create select:focus,
.ticket-create textarea:focus,
.ticket-reply textarea:focus,
.ticket-reply input[type="file"]:focus {
    border-color: #995eea;
    box-shadow: 0 0 0 3px rgba(153,94,234,.11);
}

.ticket-file-field input[type="file"] {
    padding: 9px;
}

.ticket-file-field input[type="file"]::file-selector-button {
    margin-right: 11px;
    border: 0;
    border-radius: 6px;
    padding: 7px 10px;
    background: #353040;
    color: #ded3eb;
    font: 700 10px Inter, sans-serif;
    cursor: pointer;
}

.ticket-file-field small {
    color: #70727e;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.45;
}

.ticket-create > button,
.ticket-reply button,
.ticket-close button {
    min-height: 42px;
    border: 1px solid #985adc;
    border-radius: 8px;
    padding: 0 15px;
    background: linear-gradient(135deg,#9150d8,#713db6);
    color: #fff;
    font: 800 11px Inter, sans-serif;
    cursor: pointer;
}

.ticket-create button:disabled,
.ticket-reply button:disabled,
.ticket-close button:disabled {
    cursor: wait;
    opacity: .58;
}

[data-ticket-status] {
    min-height: 16px;
    margin: 0;
    color: #878995;
    font-size: 11px;
}

[data-ticket-status]:empty { display: none; }
[data-ticket-status].is-error { color: #ff7b88; }
[data-ticket-status].is-success { color: #6ee794; }

.ticket-list > header {
    padding: 22px 25px 16px;
}

.ticket-list-item {
    display: grid;
    gap: 7px;
    padding: 15px 25px;
    border-top: 1px solid rgba(255,255,255,.07);
    color: inherit;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease;
}

.ticket-list-item:hover,
.ticket-list-item.is-active {
    background: rgba(159,91,236,.08);
    border-top-color: rgba(174,107,246,.2);
}

.ticket-list-item__top {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ticket-list-item strong {
    overflow: hidden;
    color: #ededf1;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-list-item > small,
.ticket-queue-heading > div {
    color: #747681;
    font-size: 10px;
    line-height: 1.45;
}

.ticket-queue-heading > div b { color: #d9d9df; }
.ticket-empty { margin: 0; padding: 20px 25px; color: #797b87; font-size: 12px; }

.ticket-status {
    display: inline-flex;
    width: max-content;
    padding: 5px 8px;
    align-items: center;
    border-radius: 7px;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.ticket-status--waiting { background: rgba(255,193,83,.1); color: #ffc963; }
.ticket-status--answered { background: rgba(75,213,116,.1); color: #70e795; }
.ticket-status--closed { background: rgba(139,141,153,.11); color: #9698a3; }

.ticket-thread {
    min-width: 0;
    padding: 0 27px 28px;
}

.ticket-thread-empty {
    display: grid;
    min-height: 520px;
    place-content: center;
    text-align: center;
}

.ticket-thread-empty p {
    max-width: 430px;
    margin: 10px auto 0;
    color: #7d7f8b;
    font-size: 12px;
    line-height: 1.6;
}

.ticket-thread-header {
    display: flex;
    min-height: 100px;
    padding: 21px 0;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,.09);
}

.ticket-thread-header p {
    margin: 7px 0 0;
    color: #7d7f8b;
    font-size: 10px;
}

.ticket-thread-tools {
    display: flex;
    align-items: center;
    gap: 9px;
}

.ticket-messages {
    border-bottom: 1px solid rgba(255,255,255,.09);
}

.ticket-message {
    display: grid;
    padding: 20px 2px;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,.07);
}

.ticket-message:first-child { border-top: 0; }
.ticket-message--admin { padding-left: 16px; border-left: 2px solid rgba(111,225,148,.55); }

.ticket-message header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.ticket-message strong { color: #e9e9ee; font-size: 11px; }
.ticket-message--admin strong { color: #75e498; }
.ticket-message time { color: #696b77; font-size: 9px; }
.ticket-message > p { margin: 0; color: #b6b7c0; font-size: 12px; line-height: 1.72; overflow-wrap: anywhere; }

.ticket-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.ticket-attachments a {
    display: inline-flex;
    padding: 8px 10px;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 7px;
    background: rgba(255,255,255,.035);
    color: #cba9f7;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.ticket-attachments a:hover { border-color: rgba(169,99,244,.45); }
.ticket-attachments small { color: #70727e; font-size: 9px; }

.ticket-reply {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(220px,.45fr);
    padding: 23px 0 0;
    gap: 14px;
}

.ticket-reply > div {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 13px;
}

.ticket-reply > div [data-ticket-status] { flex: 1; }

.ticket-close {
    display: flex;
    margin-top: 14px;
    align-items: center;
    gap: 12px;
}

.ticket-close button {
    border-color: rgba(255,101,116,.35);
    background: rgba(177,45,58,.12);
    color: #ff8994;
}

.ticket-closed-note {
    margin: 22px 0 0;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    color: #888a95;
    font-size: 11px;
}

.ticket-player-popover {
    position: relative;
    display: inline-flex;
}

.ticket-player-popover > button {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(167,100,250,.35);
    border-radius: 50%;
    background: rgba(167,100,250,.09);
    color: #caa4f7;
    font: 800 13px Inter, sans-serif;
    cursor: help;
}

.ticket-player-card {
    position: absolute;
    z-index: 30;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    width: 390px;
    padding: 18px;
    gap: 14px;
    border: 1px solid #3b3d49;
    border-radius: 12px;
    background: #1b1c24;
    box-shadow: 0 20px 55px rgba(0,0,0,.48);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: .18s ease;
    visibility: hidden;
}

.ticket-player-popover:hover .ticket-player-card,
.ticket-player-popover:focus-within .ticket-player-card {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
}

.ticket-player-card > strong { color: #fff; font-size: 14px; }
.ticket-player-card > small { color: #858793; font-size: 10px; overflow-wrap: anywhere; }
.ticket-player-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; overflow: hidden; border: 1px solid #30313d; border-radius: 8px; background: #30313d; }
.ticket-player-facts > span { display: grid; min-width: 0; padding: 10px; gap: 5px; background: #20212a; }
.ticket-player-facts small { color: #777986; font-size: 8px; }
.ticket-player-facts b { overflow: hidden; color: #e6e6eb; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 950px) {
    .ticket-workspace { grid-template-columns: 1fr; }
    .ticket-sidebar { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.09); }
    .ticket-thread { padding-inline: 20px; }
    .ticket-reply { grid-template-columns: 1fr; }
    .ticket-reply > div { grid-column: auto; }
}

@media (max-width: 560px) {
    .ticket-create,
    .ticket-queue-heading,
    .ticket-list-item { padding-inline: 15px; }
    .ticket-list > header { padding-inline: 15px; }
    .ticket-thread { padding-inline: 14px; }
    .ticket-thread-header { align-items: flex-start; flex-direction: column; }
    .ticket-thread-tools { width: 100%; justify-content: space-between; }
    .ticket-list-item__top { align-items: flex-start; flex-direction: column; }
    .ticket-player-card { right: auto; left: 0; width: min(330px,calc(100vw - 58px)); }
    .ticket-player-facts { grid-template-columns: 1fr; }
    .ticket-reply > div,
    .ticket-close { align-items: stretch; flex-direction: column; }
}

body.admin-body { overflow-x: hidden; }
.account-page.admin-page { width: min(1500px, calc(100% - 64px)); padding: 0; }
@media (max-width: 820px) { .account-page.admin-page { width: min(100% - 28px, 1500px); } }

.footer__bottom p {
    margin: 0;
    text-align: right;
}

body.modal-open {
    overflow: hidden;
}

@keyframes step-in {
    from { opacity: 0; transform: translateX(15px); }
    to { opacity: 1; transform: translateX(0); }
}

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

    .product__visual {
        height: 360px;
    }
}

@media (max-width: 760px) {
    .shop {
        padding: 80px 18px;
    }

    .purchase-modal {
        padding: 10px;
    }

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

    .purchase-main,
    .purchase-summary {
        padding: 38px 24px;
    }

    .purchase-summary {
        min-height: 460px;
    }

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

    .category-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .category-tab {
        flex: 0 0 auto;
    }

    .footer {
        padding-inline: 20px;
    }

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

    .footer__bottom {
        flex-direction: column;
    }

    .footer__bottom p {
        text-align: left;
    }
}

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

    .product__visual {
        height: 390px;
    }

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

    .payment-list span {
        grid-template-columns: auto 1fr;
        min-height: 55px;
    }

    .payment-list small {
        margin: 0 0 0 8px;
    }

    .purchase-summary__image {
        flex-basis: 76px;
        height: 76px;
    }
}

@media (max-width: 560px) {
    .brand__logo {
        width: 45px;
        height: 45px;
    }

    .brand__mark {
        width: 45px;
        height: 45px;
        font-size: 23px;
    }

    .brand__name {
        font-size: 12px;
    }

    .hero {
        padding-top: 145px;
    }

    .hero__art {
        height: 490px;
    }

    h1 {
        font-size: clamp(43px, 14.3vw, 72px);
        text-shadow: 0 4px 0 #c5c8c9, 0 8px 0 #777a7d, 0 20px 50px rgba(0, 0, 0, .9);
    }

    h2 {
        margin-top: 22px;
    }

    .hero__description {
        font-size: 12px;
    }

    .stats {
        gap: 9px;
        margin-top: 24px;
    }

    .stat {
        min-height: 95px;
        padding: 17px 14px;
    }

    .stat strong {
        font-size: 21px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .server {
        flex-direction: column;
        gap: 9px;
    }
}

/* Graphite interface refresh */
body {
    background:
        radial-gradient(circle at 50% -15%, rgba(141, 80, 211, .1), transparent 32%),
        #17181f;
}

.site-shell {
    background: #17181f;
}

.header {
    margin-top: 18px;
    padding-inline: 22px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 15px;
    background: rgba(28, 29, 37, .9);
    box-shadow: 0 18px 45px rgba(0,0,0,.2);
    backdrop-filter: blur(18px);
}

.site-shell::before {
    background:
        radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 20%), rgba(151, 91, 223, .08), transparent 28%);
}

.nav__link {
    color: #b9b8c3;
}

.online,
.header-ip {
    border-color: rgba(255,255,255,.08);
    background: #23242d;
}

.header-ip:hover {
    border-color: rgba(174, 112, 255, .6);
    background: #2b2735;
}

.hero__art {
    inset-inline: max(24px, calc((100vw - 1440px) / 2));
    border-radius: 28px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
    background:
        radial-gradient(circle at 50% 32%, rgba(151, 91, 223, .1), transparent 32%),
        #1d1e26;
}

.hero::after {
    background: linear-gradient(180deg, transparent, rgba(23, 24, 31, .38) 28%, #17181f 100%);
}

.hero__art::after {
    background: linear-gradient(180deg, rgba(23, 24, 31, .02), transparent 66%, #17181f 100%);
}

.hero__art img {
    filter: saturate(.72) contrast(1.04) brightness(.84);
}

.stat {
    border-color: rgba(255,255,255,.08);
    border-radius: 14px;
    background: rgba(31, 32, 41, .88);
    box-shadow: 0 14px 32px rgba(0,0,0,.16);
}

.stat:hover {
    border-color: rgba(174, 112, 255, .5);
}

.button {
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0,0,0,.25);
}

.button--primary,
.purchase-next,
.payment-result__button {
    border-color: #ae72ff;
    background: linear-gradient(135deg, #9e55e8, #7441be);
}

.button--secondary {
    border-color: rgba(255,255,255,.1);
    background: #24252e;
}

.shop {
    background: #17181f;
}

.shop::before {
    opacity: .06;
}

.server-tab,
.category-tab {
    border-color: rgba(255,255,255,.07);
    background: #1f2028;
}

.server-tab:hover,
.server-tab.is-active,
.category-tab:hover,
.category-tab.is-active {
    border-color: rgba(174, 112, 255, .45);
    background: #292633;
    box-shadow: none;
}

.product {
    border-color: rgba(255,255,255,.06);
    border-radius: 18px;
    background: #1e1f27;
    box-shadow: 0 16px 38px rgba(0,0,0,.2);
}

.product__visual::after {
    background: linear-gradient(transparent, #1e1f27);
}

.product__footer button {
    border-color: rgba(174, 112, 255, .45);
    border-radius: 9px;
    background: #8d50d4;
}

.purchase-modal__dialog {
    border-color: rgba(255,255,255,.08);
    background: #1c1d25;
}

.purchase-main,
.purchase-summary {
    background-color: #1c1d25;
}

.period-option,
.field input,
.payment-list span {
    border-color: rgba(255,255,255,.08);
    background: #24252e;
}

.period-option:hover,
.period-option.is-selected,
.payment-list input:checked + span {
    background: #2d2938;
}

.footer {
    background: #14151b;
}

.footer__top {
    border-color: rgba(255,255,255,.07);
}

.recent-purchase,
.recent-purchases__empty {
    border-color: rgba(255,255,255,.07);
    background:
        radial-gradient(circle at 50% 34%, rgba(157, 89, 229, .12), transparent 42%),
        #1d1e26;
}

.legal-body,
.legal-page {
    background: #17181f;
}

.legal-document {
    border-color: rgba(255,255,255,.07);
    background: #1e1f27;
}

.payment-result {
    position: fixed;
    z-index: 220;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: opacity .25s ease, visibility .25s ease;
}

.payment-result.is-open {
    visibility: visible;
    opacity: 1;
}

.payment-result__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 8, .82);
    backdrop-filter: blur(12px);
}

.payment-result__dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(520px, 100%);
    padding: 26px 42px 34px;
    transform: translateY(18px) scale(.98);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 24px;
    background: #20212a;
    box-shadow: 0 35px 90px rgba(0,0,0,.55);
    text-align: center;
    transition: transform .28s ease;
}

.payment-result.is-open .payment-result__dialog {
    transform: translateY(0) scale(1);
}

.payment-result__close {
    position: absolute;
    top: 18px;
    right: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #85838d;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}

.payment-result__label {
    width: min(270px, calc(100% - 65px));
    padding: 9px 18px;
    border-radius: 9px;
    background: linear-gradient(135deg, #9e55e8, #7441be);
    color: white;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(130, 67, 196, .28);
}

.payment-result h2 {
    margin: 24px 0 5px;
    font-family: Inter, sans-serif;
    font-size: clamp(26px, 5vw, 36px);
    line-height: 1.1;
}

.payment-result__description {
    margin: 0;
    color: #a9a5b1;
    font-size: 12px;
}

.payment-result__icon {
    width: 164px;
    height: 164px;
    margin: 20px 0 10px;
    object-fit: contain;
}

.payment-result__price {
    color: #faf7ff;
    font-size: 31px;
    line-height: 1;
}

.payment-result__product {
    max-width: 100%;
    margin-top: 7px;
    overflow: hidden;
    color: #c3bdca;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.payment-result__button {
    width: min(290px, 100%);
    margin-top: 30px;
    padding: 15px 22px;
    border: 1px solid #ae72ff;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    font-weight: 800;
}

.promo-field {
    display: grid;
    grid-template-columns: 1fr 118px;
    align-items: end;
    gap: 9px;
}

.promo-field .field {
    margin-bottom: 0;
}

.promo-field button {
    height: 48px;
    border: 1px solid rgba(174, 112, 255, .45);
    border-radius: 8px;
    background: #29252e;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
}

.promo-field button:hover:not(:disabled) {
    border-color: var(--orange);
    background: #352d40;
}

.promo-field button:disabled {
    cursor: wait;
    opacity: .65;
}

.promo-status {
    min-height: 20px;
    padding-top: 6px;
    font-size: 10px;
}

.promo-status.is-success {
    color: #72e388;
}

.promo-status.is-error {
    color: #ff6a80;
}

.terms-consent {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: start;
    gap: 13px;
    margin-top: 22px;
    padding: 15px 16px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    background: #22232b;
    cursor: pointer;
    color: #c7bfce;
    font-size: 13px;
    line-height: 1.6;
}

.terms-consent input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.terms-consent__check {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 6px;
    background: #24252e;
    color: transparent;
    font-size: 16px;
    font-weight: 900;
    transition: .2s ease;
}

.terms-consent input:checked + .terms-consent__check {
    border-color: #ad72ff;
    background: #8d50d4;
    color: white;
}

.terms-consent a {
    color: #bd88ff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.purchase-summary__price > div {
    display: grid;
    justify-items: end;
}

.purchase-summary__price del {
    margin-bottom: 3px;
    color: #817987;
    font-size: 11px;
}

@media (max-width: 760px) {
    .header {
        margin-top: 10px;
        padding-inline: 12px;
    }

    .hero__art {
        inset-inline: 10px;
        border-radius: 18px;
    }

    .payment-result__dialog {
        padding: 24px 20px 28px;
        border-radius: 18px;
    }

    .payment-result__icon {
        width: 138px;
        height: 138px;
    }
}

@media (max-width: 520px) {
    .promo-field {
        grid-template-columns: 1fr;
    }

    .promo-field button {
        width: 100%;
    }
}

/* Server-side account and authentication */
.header {
    grid-template-columns: 230px minmax(230px, 1fr) auto;
}

.account-link {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 7px 11px;
    border: 1px solid rgba(174, 112, 255, .32);
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(145, 76, 211, .18), rgba(35, 36, 45, .96));
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.account-link:hover {
    border-color: rgba(190, 137, 255, .72);
    background: linear-gradient(135deg, rgba(145, 76, 211, .28), rgba(42, 40, 51, .98));
    transform: translateY(-1px);
}

.account-link__icon {
    position: relative;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    border: 1px solid rgba(191, 143, 255, .45);
    border-radius: 8px;
    background: rgba(174, 112, 255, .12);
}

.account-link__icon::before,
.account-link__icon::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: #c7a0f8;
}

.account-link__icon::before {
    top: 5px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.account-link__icon::after {
    bottom: 4px;
    width: 13px;
    height: 7px;
    border-radius: 8px 8px 4px 4px;
}

.account-link > span:last-child {
    display: grid;
    min-width: 0;
}

.account-link small {
    color: #9d8baa;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .11em;
    white-space: nowrap;
}

.account-link strong {
    max-width: 110px;
    margin-top: 3px;
    overflow: hidden;
    color: #f5ebff;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-link.is-authenticated {
    border-color: rgba(104, 221, 129, .3);
    background: linear-gradient(135deg, rgba(50, 138, 72, .13), rgba(35, 36, 45, .96));
}

.account-link.is-authenticated .account-link__icon {
    border-color: rgba(104, 221, 129, .42);
    background: rgba(72, 180, 95, .11);
}

.account-link.is-authenticated .account-link__icon::before,
.account-link.is-authenticated .account-link__icon::after {
    background: #79db8f;
}

.auth-body {
    min-height: 100vh;
    background: #121319;
}

.auth-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 50% 15%, rgba(153, 88, 225, .17), transparent 33%),
        linear-gradient(145deg, #171820, #101116 70%);
}

.auth-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .22;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.auth-shell .particles {
    z-index: 0;
    opacity: .58;
}

.auth-topbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 48px));
    height: 94px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.auth-back,
.auth-logout,
.legal-header__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 15px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 9px;
    background: rgba(34, 35, 44, .72);
    color: #d5cbdc;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: .2s ease;
}

.auth-back:hover,
.auth-logout:hover {
    border-color: rgba(174, 112, 255, .5);
    background: #292733;
    color: white;
}

.auth-page,
.account-page {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-height: calc(100vh - 94px);
    padding: 50px 24px 80px;
}

.auth-card {
    position: relative;
    width: min(470px, 100%);
    padding: 42px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 24px;
    background: rgba(29, 30, 39, .94);
    box-shadow: 0 38px 90px rgba(0,0,0,.38);
    backdrop-filter: blur(20px);
}

.auth-card__glow {
    position: absolute;
    top: -120px;
    left: 50%;
    width: 330px;
    height: 220px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(151, 79, 226, .2);
    filter: blur(55px);
    pointer-events: none;
}

.auth-card__eyebrow,
.account-profile > div > span {
    position: relative;
    color: #b981ff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .2em;
}

.auth-card h1 {
    position: relative;
    margin: 10px 0 10px;
    font-family: "Russo One", sans-serif;
    font-size: clamp(28px, 6vw, 39px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -.02em;
    text-shadow: none;
}

.auth-card h1::after,
.account-profile h1::after {
    display: none;
}

.auth-card__lead {
    position: relative;
    margin: 0 0 27px;
    color: #aaa4b1;
    font-size: 13px;
    line-height: 1.65;
}

.auth-alert {
    margin: -5px 0 20px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 104, 128, .28);
    border-radius: 9px;
    background: rgba(98, 31, 43, .2);
    color: #ffb0bd;
    font-size: 11px;
    line-height: 1.5;
}

.auth-alert--warning {
    border-color: rgba(255, 187, 87, .3);
    background: rgba(112, 74, 20, .18);
    color: #ffd296;
}

.auth-alert--success {
    border-color: rgba(105, 220, 130, .3);
    background: rgba(37, 99, 51, .18);
    color: #a8edb7;
}

.auth-form {
    display: grid;
    gap: 17px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field > span {
    color: #c8c1ce;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
}

.auth-field input {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    border: 1px solid rgba(255,255,255,.1);
    outline: none;
    border-radius: 10px;
    background: #24252e;
    color: white;
    font: 600 14px Inter, sans-serif;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.auth-field input:hover {
    border-color: rgba(255,255,255,.17);
}

.auth-field input:focus {
    border-color: #9e61e8;
    background: #272630;
    box-shadow: 0 0 0 4px rgba(158, 97, 232, .11);
}

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 54px;
    margin-top: 4px;
    padding: 0 18px;
    border: 1px solid #ae72ff;
    border-radius: 10px;
    background: linear-gradient(135deg, #9e55e8, #7441be);
    box-shadow: 0 14px 30px rgba(107, 55, 165, .28);
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    transition: transform .2s ease, filter .2s ease;
}

.auth-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.auth-submit i {
    font-size: 18px;
    font-style: normal;
}

.auth-security {
    display: grid;
    grid-template-columns: 31px 1fr;
    gap: 12px;
    align-items: center;
    margin-top: 25px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.07);
}

.auth-security__mark {
    position: relative;
    width: 28px;
    height: 24px;
    border: 1px solid rgba(109, 220, 133, .45);
    border-radius: 6px;
    background: rgba(75, 179, 98, .1);
}

.auth-security__mark::before {
    content: "";
    position: absolute;
    bottom: calc(100% - 3px);
    left: 6px;
    width: 14px;
    height: 11px;
    border: 2px solid #72d989;
    border-bottom: 0;
    border-radius: 9px 9px 0 0;
}

.auth-security p {
    display: grid;
    gap: 3px;
    margin: 0;
}

.auth-security strong {
    color: #dfe6e1;
    font-size: 10px;
}

.auth-security small {
    color: #85848d;
    font-size: 9px;
    line-height: 1.45;
}

.account-card {
    width: min(820px, 100%);
    padding: 38px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 24px;
    background: rgba(29, 30, 39, .94);
    box-shadow: 0 38px 90px rgba(0,0,0,.34);
}

.account-profile {
    display: flex;
    align-items: center;
    gap: 17px;
    padding-bottom: 27px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.account-avatar {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border: 1px solid rgba(180, 119, 255, .55);
    border-radius: 18px;
    background: linear-gradient(145deg, #9350d7, #59318d);
    box-shadow: 0 12px 30px rgba(117, 62, 173, .26);
    font-family: "Russo One", sans-serif;
    font-size: 27px;
}

.account-profile h1 {
    margin: 5px 0 0;
    font-family: "Russo One", sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0;
    text-shadow: none;
}

.account-empty {
    display: grid;
    justify-items: center;
    min-height: 310px;
    padding: 66px 20px 40px;
    text-align: center;
}

.account-empty__icon {
    position: relative;
    width: 58px;
    height: 48px;
    margin-bottom: 20px;
    border: 1px solid rgba(174, 112, 255, .35);
    border-radius: 11px;
    background: rgba(174, 112, 255, .08);
}

.account-empty__icon::before {
    content: "";
    position: absolute;
    top: -9px;
    left: 9px;
    width: 23px;
    height: 12px;
    border: 1px solid rgba(174, 112, 255, .35);
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
    background: #22232b;
}

.account-empty h2 {
    margin: 0 0 8px;
    font-size: 16px;
}

.account-empty p {
    margin: 0;
    color: #8f8996;
    font-size: 12px;
}

.account-back {
    display: inline-flex;
    padding: 12px 15px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 9px;
    background: #24252e;
    color: #d7cfdd;
    font-size: 11px;
    font-weight: 800;
    transition: .2s ease;
}

.account-back:hover {
    border-color: rgba(174, 112, 255, .48);
    color: white;
}

@media (max-width: 1240px) {
    .header .online {
        display: none;
    }
}

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

    .auth-topbar {
        width: min(100% - 28px, 720px);
        height: 80px;
    }

    .auth-page,
    .account-page {
        min-height: calc(100vh - 80px);
        padding: 35px 16px 55px;
    }
}

@media (max-width: 560px) {
    .account-link {
        width: 42px;
        min-height: 42px;
        padding: 7px;
    }

    .account-link > span:last-child {
        display: none;
    }

    .account-link__icon {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }

    .auth-topbar .brand__photo {
        width: 62px;
        height: 62px;
    }

    .auth-topbar .brand__name {
        display: none;
    }

    .auth-card,
    .account-card {
        padding: 28px 22px;
        border-radius: 19px;
    }

    .account-profile h1 {
        max-width: 185px;
        overflow: hidden;
        font-size: 22px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .account-empty {
        min-height: 280px;
        padding-inline: 0;
    }
}

.auth-shell.account-shell {
    height: auto;
    overflow: visible;
}

.account-page.account-dashboard {
    display: block;
    min-height: auto;
    padding: 38px 0 80px;
}

.account-hero-card .account-profile {
    padding-bottom: 0;
    border-bottom: 0;
}

@media (max-width: 820px) {
    .account-page.account-dashboard {
        min-height: auto;
        padding: 28px 0 70px;
    }
}

@media (max-width: 680px) {
    .account-page.account-dashboard {
        width: min(100% - 28px, 1180px);
        padding-top: 24px;
    }

    .account-hero-card .account-profile h1 {
        max-width: 210px;
    }
}

/* Unified account workspace */
.account-body {
    background: #17181f;
}

.account-shell .header {
    width: min(1380px, calc(100% - 64px));
}

.account-page.account-dashboard {
    width: min(1380px, calc(100% - 64px));
    padding: 34px 0 90px;
}

.account-overview {
    display: grid;
    grid-template-columns: minmax(290px, 1fr) auto auto;
    min-height: 138px;
    padding: 24px 4px;
    align-items: center;
    gap: 34px;
    border-top: 1px solid rgba(255,255,255,.09);
    border-bottom: 1px solid rgba(255,255,255,.09);
}

.account-overview__profile {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 17px;
}

.account-overview__avatar {
    display: grid;
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    place-items: center;
    border: 1px solid rgba(180, 119, 255, .55);
    border-radius: 17px;
    background: linear-gradient(145deg, #9350d7, #59318d);
    box-shadow: 0 12px 30px rgba(117, 62, 173, .25);
    font-family: "Russo One", sans-serif;
    font-size: 26px;
}

.account-overview__profile > div {
    min-width: 0;
}

.account-overview__profile > div > span,
.account-section__title span,
.account-balance-line > small {
    color: #a66cf4;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .18em;
}

.account-overview__profile h1 {
    margin: 5px 0 4px;
    overflow: hidden;
    font-family: "Russo One", sans-serif;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0;
    text-shadow: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-overview__avatar {
    color: #fff;
    font-size: 26px;
    letter-spacing: 0;
}

.account-overview__profile small,
.account-balance-line > span {
    color: #7f818d;
    font-size: 11px;
}

.account-balance-line {
    display: grid;
    min-width: 230px;
    padding: 2px 34px;
    gap: 4px;
    border-left: 1px solid rgba(255,255,255,.09);
}

.account-balance-line strong {
    color: #fff;
    font-family: "Russo One", sans-serif;
    font-size: 34px;
    font-weight: 400;
}

.account-session-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-session-actions a,
.account-session-actions button {
    display: inline-flex;
    min-height: 43px;
    padding: 0 15px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 9px;
    background: #23242d;
    color: #d8d8df;
    font: 700 11px Inter, sans-serif;
    cursor: pointer;
    transition: .2s ease;
}

.account-session-actions a:hover,
.account-session-actions button:hover {
    border-color: rgba(174,112,255,.55);
    color: #fff;
}

.account-section,
.account-tool {
    border-bottom: 1px solid rgba(255,255,255,.09);
}

.account-profile-line,
.account-tool {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: center;
}

.account-profile-line {
    min-height: 126px;
    padding: 25px 4px;
}

.account-section__title h2 {
    margin: 5px 0 0;
    color: #f7f7fa;
    font-size: 18px;
}

.account-facts {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 0;
}

.account-facts div {
    display: grid;
    min-width: 0;
    min-height: 62px;
    padding: 6px 17px;
    align-content: center;
    gap: 8px;
    border-left: 1px solid rgba(255,255,255,.08);
}

.account-facts dt {
    color: #747681;
    font-size: 10px;
}

.account-facts dd {
    margin: 0;
    overflow: hidden;
    color: #e8e8ed;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-tool {
    min-height: 126px;
    padding: 24px 4px;
}

.account-inline-form {
    display: grid;
    align-items: end;
    gap: 12px;
}

.account-inline-form--topup {
    grid-template-columns: minmax(150px, .55fr) minmax(240px, 1fr) auto;
}

.account-inline-form--promo {
    grid-template-columns: minmax(260px, 1fr) auto;
}

.account-inline-form label {
    display: grid;
    gap: 7px;
}

.account-inline-form label > span {
    color: #888a96;
    font-size: 10px;
    font-weight: 700;
}

.account-inline-form input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 9px;
    outline: 0;
    background: #202129;
    color: #fff;
    font: 600 13px Inter, sans-serif;
}

.account-inline-form input:focus {
    border-color: #995eea;
    box-shadow: 0 0 0 3px rgba(153,94,234,.11);
}

.account-inline-form button {
    display: flex;
    min-width: 180px;
    height: 46px;
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid #9d61e8;
    border-radius: 9px;
    background: linear-gradient(135deg, #9250dc, #713db9);
    color: #fff;
    font: 800 11px Inter, sans-serif;
    cursor: pointer;
}

.account-inline-form button:disabled {
    cursor: wait;
    opacity: .6;
}

.account-inline-form button i {
    font-size: 17px;
    font-style: normal;
}

.account-inline-form p {
    grid-column: 1 / -1;
    min-height: 0;
    margin: 0;
    color: #888a95;
    font-size: 11px;
}

.account-inline-form p:empty {
    display: none;
}

.account-inline-form p.is-error { color: #ff7b88; }
.account-inline-form p.is-success { color: #6ee794; }

.account-history {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    padding: 28px 4px;
    align-items: start;
}

.account-history .history-table {
    border-top: 1px solid rgba(255,255,255,.04);
}

.account-history .history-row {
    padding-inline: 18px 4px;
    border-top-color: rgba(255,255,255,.07);
}

.account-history .history-row--head {
    border-top: 0;
}

.account-history .history-empty {
    padding: 20px 18px;
    border-top: 0;
}

@media (max-width: 1120px) {
    .account-overview {
        grid-template-columns: minmax(280px, 1fr) auto;
    }

    .account-session-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

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

    .account-facts div:nth-child(n + 4) {
        border-top: 1px solid rgba(255,255,255,.08);
    }
}

@media (max-width: 820px) {
    .account-shell .header,
    .account-page.account-dashboard {
        width: min(100% - 28px, 1380px);
    }

    .account-page.account-dashboard {
        padding: 24px 0 65px;
    }

    .account-profile-line,
    .account-tool,
    .account-history {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .account-profile-line,
    .account-tool,
    .account-history {
        padding-block: 24px;
    }
}

@media (max-width: 620px) {
    .account-overview {
        grid-template-columns: 1fr;
        gap: 22px;
        padding-block: 24px;
    }

    .account-balance-line {
        min-width: 0;
        padding: 18px 0 0;
        border-top: 1px solid rgba(255,255,255,.08);
        border-left: 0;
    }

    .account-session-actions {
        grid-column: auto;
        justify-content: stretch;
    }

    .account-session-actions a,
    .account-session-actions form,
    .account-session-actions button {
        width: 100%;
    }

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

    .account-facts div,
    .account-facts div:nth-child(n + 4) {
        padding-inline: 12px;
        border-top: 1px solid rgba(255,255,255,.08);
    }

    .account-inline-form--topup,
    .account-inline-form--promo {
        grid-template-columns: 1fr;
    }

    .account-inline-form button {
        width: 100%;
    }
}

/* Account tabs */
.account-workspace {
    width: 100%;
    max-width: 100%;
    min-height: 560px;
}

.account-tabs {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 34px;
    overflow-x: auto;
    border-bottom: 1px solid rgba(255,255,255,.09);
    scrollbar-width: none;
}

.account-tabs::-webkit-scrollbar {
    display: none;
}

.account-tab {
    position: relative;
    display: inline-flex;
    min-height: 62px;
    padding: 0 2px;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    border: 0;
    outline: 0;
    background: transparent;
    color: #858792;
    font: 800 12px Inter, sans-serif;
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s ease;
}

.account-tab::after {
    position: absolute;
    right: 50%;
    bottom: -1px;
    left: 50%;
    height: 2px;
    background: #a764fa;
    box-shadow: 0 0 16px rgba(167,100,250,.55);
    content: '';
    transition: inset .2s ease;
}

.account-tab > span {
    color: #5f606a;
    font-size: 9px;
    letter-spacing: .08em;
    transition: color .2s ease;
}

.account-tab:hover,
.account-tab.is-active {
    color: #fff;
}

.account-tab.is-active::after {
    right: 0;
    left: 0;
}

.account-tab.is-active > span {
    color: #b87cff;
}

.account-tab:focus-visible {
    color: #fff;
}

.account-tab-panel {
    animation: account-tab-in .22s ease both;
}

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

.account-tab-panel > .account-notice {
    margin: 22px 0 0;
}

@keyframes account-tab-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 620px) {
    .account-workspace {
        min-height: 0;
    }

    .account-tabs {
        gap: 24px;
    }

    .account-tab {
        min-height: 56px;
        font-size: 11px;
    }
}

/* NDAZ Atlas redesign — warm graphite, server-first layout */
:root {
    --bg: #10100f;
    --panel: #20201e;
    --panel-soft: rgba(31, 31, 29, .96);
    --panel-raised: #272725;
    --text: #f4f2ec;
    --muted: #9b988f;
    --orange: #d0ad61;
    --orange-dark: #8f7137;
    --accent: #d0ad61;
    --accent-strong: #f0ce7b;
    --accent-soft: rgba(208, 173, 97, .12);
    --line: #363530;
    --line-soft: rgba(255, 255, 255, .075);
    --danger: #e66767;
    --success: #78c992;
}

body,
.account-body,
.admin-body,
.legal-body,
.auth-body {
    color: var(--text);
    background:
        radial-gradient(circle at 50% -12%, rgba(208, 173, 97, .075), transparent 28%),
        #111110;
    font-family: Inter, Arial, sans-serif;
}

::selection {
    background: rgba(208, 173, 97, .32);
    color: #fff;
}

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

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.site-shell {
    min-height: auto;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 18% 31%, rgba(208, 173, 97, .12) 0 2px, transparent 3px),
        radial-gradient(circle at 64% 18%, rgba(208, 173, 97, .1) 0 1px, transparent 2px),
        radial-gradient(circle at 79% 57%, rgba(208, 173, 97, .1) 0 2px, transparent 3px),
        linear-gradient(135deg, transparent 0 47%, rgba(208, 173, 97, .025) 48% 49%, transparent 50%),
        #151514;
    background-size: 280px 230px, 350px 270px, 410px 340px, 90px 90px, auto;
}

.site-shell::before {
    z-index: 1;
    background:
        radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 24%), rgba(208, 173, 97, .065), transparent 24%),
        linear-gradient(180deg, transparent 45%, rgba(8, 8, 7, .35));
}

.particles {
    z-index: 2;
    opacity: .28;
}

.header,
.account-shell .header {
    width: min(1380px, calc(100% - 64px));
    height: 88px;
    grid-template-columns: 330px minmax(260px, 1fr) auto;
    overflow: hidden;
    border: 1px solid rgba(208, 173, 97, .3);
    border-radius: 14px;
    background:
        linear-gradient(105deg, rgba(48, 43, 31, .98), rgba(28, 28, 25, .98) 44%, rgba(35, 31, 23, .98));
    box-shadow:
        inset 0 1px 0 rgba(255, 235, 181, .08),
        0 18px 45px rgba(0, 0, 0, .28),
        0 0 35px rgba(208, 173, 97, .035);
    backdrop-filter: blur(18px);
}

.brand {
    gap: 12px;
}

.brand__photo {
    width: 54px;
    height: 54px;
    border-radius: 0;
    object-fit: contain;
    filter: none;
}

.brand__copy {
    display: grid;
    gap: 5px;
}

.brand__name {
    color: #fff;
    font-family: Inter, Arial, sans-serif;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: .035em;
}

.brand__copy small {
    color: #77746d;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .11em;
    white-space: nowrap;
}

.nav {
    justify-content: flex-start;
    gap: 8px;
}

.nav__link {
    padding: 11px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #b9b5aa;
    font-size: 13px;
    font-weight: 700;
    transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.nav__link::after {
    display: none;
}

.nav__link:hover {
    border-color: rgba(208, 173, 97, .28);
    background: rgba(208, 173, 97, .08);
    color: var(--accent-strong);
    transform: translateY(-1px);
}

.nav__link:first-child {
    border-color: rgba(208, 173, 97, .48);
    background: linear-gradient(135deg, rgba(208, 173, 97, .22), rgba(208, 173, 97, .1));
    color: #f6d986;
    box-shadow: inset 0 0 0 1px rgba(255, 232, 169, .025);
}

.header__actions {
    gap: 9px;
}

.online,
.header-ip,
.account-link {
    border-color: rgba(208, 173, 97, .28);
    border-radius: 8px;
    background: rgba(18, 18, 16, .48);
    box-shadow: none;
}

.header-ip:hover,
.account-link:hover {
    border-color: rgba(208, 173, 97, .55);
    background: #262623;
}

.header-ip small,
.account-link small,
.online small {
    color: #77746c;
}

.account-link {
    min-width: 138px;
    min-height: 46px;
    padding: 7px 12px;
}

.account-link__icon {
    border-color: rgba(208, 173, 97, .42);
    background: var(--accent-soft);
}

.account-link__icon::before,
.account-link__icon::after,
.account-link.is-authenticated .account-link__icon::before,
.account-link.is-authenticated .account-link__icon::after {
    background: var(--accent-strong);
}

.account-link.is-authenticated,
.account-link.is-authenticated .account-link__icon {
    border-color: rgba(120, 201, 146, .35);
    background: rgba(63, 125, 82, .1);
}

.account-link.is-authenticated .account-link__icon::before,
.account-link.is-authenticated .account-link__icon::after {
    background: var(--success);
}

.menu-toggle {
    border-color: var(--line);
    border-radius: 8px;
    background: #20201f;
}

.hero {
    display: grid;
    width: min(1380px, calc(100% - 64px));
    min-height: 0;
    margin: 0 auto;
    padding: 42px 0 28px;
    align-items: stretch;
    justify-content: stretch;
}

.hero::after {
    display: none;
}

.hero__connect {
    position: relative;
    padding: 0;
}

.hero__connect-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 25px;
}

.hero__connect-heading p,
.hero__eyebrow,
.section-heading > p,
.auth-card__eyebrow,
.legal-document__eyebrow,
.account-overview__profile > div > span,
.account-section__title span,
.admin-heading > div > span,
.admin-form header span,
.admin-list header span {
    margin: 0 0 9px;
    color: var(--accent);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .2em;
}

.hero__connect-heading h2 {
    margin: 0 0 7px;
    font-size: clamp(27px, 3vw, 40px);
    letter-spacing: -.035em;
}

.hero__connect-heading > div > span {
    color: var(--muted);
    font-size: 13px;
}

.hero__online {
    display: grid;
    min-width: 145px;
    justify-items: end;
    gap: 7px;
}

.hero__online > strong {
    color: #fff;
    font-size: clamp(30px, 3.4vw, 48px);
    font-weight: 850;
    line-height: .9;
    letter-spacing: -.04em;
}

.hero__online > span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero__online small {
    color: #76736c;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .17em;
}

.hero__online.is-offline > strong,
.hero__online.is-offline small {
    color: #b86464;
}

.hero__servers {
    display: grid;
    grid-template-columns: 1.05fr 1.05fr .9fr .9fr;
    gap: 12px;
}

.hero-server-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    min-width: 0;
    min-height: 80px;
    padding: 15px 17px;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(34, 34, 32, .92);
    color: var(--text);
    text-align: left;
    box-shadow: none;
}

button.hero-server-card {
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

button.hero-server-card:hover {
    transform: translateY(-2px);
    border-color: rgba(208, 173, 97, .54);
    background: #282824;
}

.hero-server-card__tag {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(208, 173, 97, .16);
    border-radius: 8px;
    background: rgba(208, 173, 97, .06);
    color: var(--accent-strong);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .04em;
}

.hero-server-card > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.hero-server-card small {
    color: #716e67;
    font-size: 7px;
    font-weight: 850;
    letter-spacing: .13em;
}

.hero-server-card strong {
    overflow: hidden;
    color: #f4f2ed;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-server-card:not(button) strong {
    font-size: 13px;
    line-height: 1.25;
    white-space: normal;
}

.hero-server-card > i {
    color: #858178;
    font-size: 10px;
    font-style: normal;
}

.hero__content {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(330px, .86fr) minmax(520px, 1.14fr);
    gap: clamp(55px, 7vw, 105px);
    padding: clamp(38px, 5vw, 68px);
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 26px;
    background:
        linear-gradient(120deg, rgba(208, 173, 97, .035), transparent 38%),
        #222220;
    text-align: left;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .2);
}

.hero__eyebrow {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

.hero__eyebrow span {
    width: 24px;
    background: var(--accent);
}

.hero h1 {
    margin: 0;
    color: #fff;
    font-family: Inter, Arial, sans-serif;
    font-size: clamp(55px, 7vw, 94px);
    font-weight: 950;
    line-height: .9;
    letter-spacing: -.075em;
    text-shadow: none;
}

.hero h1::after {
    display: none;
}

.hero__content h2 {
    margin: 24px 0 10px;
    font-size: clamp(21px, 2.2vw, 31px);
    letter-spacing: -.035em;
}

.hero__description {
    max-width: 610px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--line);
}

.stat {
    min-height: 126px;
    padding: 26px;
    border: 0;
    border-radius: 0;
    background: #1b1b1a;
    backdrop-filter: none;
}

.stat::after {
    right: -45px;
    bottom: -60px;
    background: rgba(208, 173, 97, .08);
}

.stat:hover {
    z-index: 1;
    transform: none;
    background: #20201e;
}

.stat strong {
    margin-bottom: 12px;
    color: #fff;
    font-size: 26px;
    letter-spacing: -.03em;
}

.stat span {
    color: #8f8b82;
    font-size: 11px;
    line-height: 1.55;
}

.hero__actions {
    justify-content: flex-start;
    gap: 10px;
    margin-top: 28px;
}

.button {
    min-width: 0;
    min-height: 48px;
    padding: 0 18px;
    gap: 20px;
    border-radius: 9px;
    box-shadow: none;
    font-size: 12px;
}

.button span {
    order: 2;
    margin: 0;
}

.button--primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #18150f;
}

.button--secondary {
    border-color: var(--line);
    background: #2a2a27;
    color: #d8d5ce;
}

.button:hover {
    transform: translateY(-2px);
    filter: brightness(1.07);
}

.server,
.scroll-hint {
    display: none;
}

.shop {
    padding: 56px 32px 110px;
    background:
        linear-gradient(rgba(255,255,255,.014) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px),
        #121211;
    background-size: 70px 70px;
}

.section-heading {
    width: min(1380px, 100%);
    max-width: 1380px;
    margin: 0 auto 34px;
    text-align: left;
}

.section-heading > p {
    justify-content: flex-start;
    margin-bottom: 12px;
    color: var(--accent);
}

.section-heading > p span:first-child {
    background: var(--accent);
}

.section-heading > p span:last-child {
    display: none;
}

.section-heading h2 {
    margin: 0 0 10px;
    font-family: Inter, Arial, sans-serif;
    font-size: clamp(36px, 5vw, 62px);
    font-weight: 900;
    letter-spacing: -.055em;
}

.section-heading > span {
    color: var(--muted);
    font-size: 13px;
}

.server-tabs,
.category-tabs,
.product-grid,
.catalog-empty {
    width: min(1380px, 100%);
    max-width: 1380px;
}

.server-tabs {
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 500px));
    justify-content: flex-start;
    gap: 12px;
    margin: 0 auto 18px;
}

.server-tab {
    flex: 0 1 520px;
}

.server-tab {
    min-height: 82px;
    padding: 17px 20px;
    border-color: var(--line);
    border-radius: 13px;
    background: #20201e;
    box-shadow: none;
}

.server-tab::before {
    background: var(--accent);
}

.server-tab:hover,
.server-tab.is-active {
    transform: none;
    border-color: rgba(208, 173, 97, .52);
    background: #272724;
    box-shadow: inset 3px 0 0 var(--accent);
}

.server-tab strong {
    color: #f4f2ec;
}

.server-tab span {
    color: #817e76;
}

.category-tabs {
    justify-content: flex-start;
    margin: 0 auto 30px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.category-tab {
    border-color: var(--line);
    border-radius: 8px;
    background: #1c1c1a;
    color: #8f8c84;
}

.category-tab:hover,
.category-tab.is-active {
    border-color: rgba(208, 173, 97, .55);
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.product-grid {
    width: min(1380px, 100%);
    max-width: 1380px;
    grid-template-columns: repeat(4, minmax(0, 298px));
    justify-content: start;
    gap: 16px;
    margin: 0 auto;
}

.product {
    --accent: #d0ad61;
    overflow: hidden;
    border-color: var(--line);
    border-radius: 18px;
    background: #1f1f1d;
    box-shadow: 0 24px 55px rgba(0, 0, 0, .18);
}

.product:hover {
    transform: translateY(-5px);
    border-color: rgba(208, 173, 97, .5);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .32);
}

.product__visual {
    height: 260px;
    border-bottom: 1px solid var(--line);
}

.product__visual::after {
    background: linear-gradient(180deg, transparent 56%, rgba(13, 13, 12, .76));
}

.product__badge {
    top: 13px;
    left: 13px;
    padding: 6px 9px;
    border-color: rgba(208, 173, 97, .62);
    border-radius: 6px;
    background: rgba(15, 15, 14, .78);
    color: var(--accent-strong);
}

.product__shine {
    background: var(--accent);
}

.product__body > p {
    color: var(--accent);
}

.product__discount {
    top: 13px;
    right: 13px;
    border-color: rgba(120, 201, 146, .35);
    background: rgba(32, 83, 50, .78);
    color: #91dca8;
    box-shadow: none;
}

.product__body {
    padding: 0 18px 18px;
    background: #1f1f1d;
}

.product__body h3 {
    margin-top: 15px;
    color: #f5f3ed;
    font-family: Inter, Arial, sans-serif;
    font-size: 22px;
    font-weight: 850;
    letter-spacing: -.025em;
}

.product__footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top-color: var(--line);
}

.product__footer strong {
    font-size: 17px;
}

.product__footer button {
    padding: 10px 13px;
}

.product__footer button,
.purchase-next,
.payment-result__button,
.auth-submit,
.account-inline-form button,
.account-action-form button,
.ticket-create button,
.ticket-reply button,
.admin-submit {
    border-color: var(--orange);
    border-radius: 8px;
    background: var(--orange);
    color: #17140e;
    box-shadow: none;
}

.product__footer button:hover,
.purchase-next:hover,
.payment-result__button:hover,
.auth-submit:hover,
.account-inline-form button:hover,
.ticket-create button:hover,
.ticket-reply button:hover,
.admin-submit:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.purchase-modal__backdrop,
.payment-result__backdrop {
    background: rgba(7, 7, 6, .82);
    backdrop-filter: blur(7px);
}

.purchase-modal__dialog,
.payment-result__dialog {
    border-color: var(--line);
    border-radius: 20px;
    background: #20201e;
    box-shadow: 0 45px 100px rgba(0, 0, 0, .55);
}

.purchase-main,
.purchase-summary {
    background: #20201e;
}

.purchase-summary {
    border-left-color: var(--line);
}

.purchase-step > p,
.period-option small,
.purchase-summary__head small,
.purchase-summary__price,
.purchase-summary > p,
.field span {
    color: #8f8b82;
}

.purchase-summary__head strong,
.purchase-summary__features > span {
    color: var(--accent);
}

.purchase-summary__features {
    border-color: rgba(208, 173, 97, .34);
    background: #171716;
}

.purchase-summary__features li {
    color: #c1beb7;
}

.purchase-step h2,
.purchase-summary h3,
.payment-result__dialog h2 {
    font-family: Inter, Arial, sans-serif;
    font-weight: 900;
    letter-spacing: -.035em;
}

.period-option,
.payment-strategies label > span,
.payment-breakdown,
.field input,
.promo-field button {
    border-color: var(--line);
    border-radius: 9px;
    background: #171716;
}

.period-option:hover,
.period-option.is-selected,
.payment-strategies input:checked + span {
    border-color: rgba(208, 173, 97, .62);
    background: var(--accent-soft);
    box-shadow: none;
}

.period-option input {
    accent-color: var(--accent);
}

.terms-consent {
    border-color: var(--line);
    background: #171716;
    color: #c1beb7;
    transition: border-color .2s ease, background .2s ease;
}

.terms-consent:hover,
.terms-consent:has(input:checked) {
    border-color: rgba(208, 173, 97, .5);
    background: rgba(208, 173, 97, .085);
}

.terms-consent__check {
    border-color: rgba(208, 173, 97, .28);
    background: #22221f;
}

.field input:focus,
.auth-field input:focus,
.account-inline-form input:focus,
.account-action-form input:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.ticket-create input:focus,
.ticket-create select:focus,
.ticket-create textarea:focus,
.ticket-reply textarea:focus {
    border-color: var(--accent);
    background: #1b1b19;
    box-shadow: 0 0 0 3px rgba(208, 173, 97, .1);
}

.terms-consent input:checked + .terms-consent__check {
    border-color: var(--accent);
    background: var(--accent);
    color: #17140e;
}

.payment-result__label {
    background: var(--accent);
    color: #17140e;
}

.footer {
    padding: 54px max(32px, calc((100% - 1380px) / 2)) 30px;
    border-top: 1px solid var(--line);
    background: #0e0e0d;
}

.footer__top,
.footer__bottom {
    width: 100%;
}

.recent-purchases {
    border-color: var(--line);
    border-radius: 13px;
    background: #191918;
}

.recent-purchases__heading,
.recent-purchases__viewport,
.footer__bottom,
.footer__legal {
    border-color: var(--line);
}

.purchase-item,
.recent-purchase,
.recent-purchases__empty {
    border-color: var(--line);
    background: #20201e;
}

.recent-purchases__heading > span,
.footer__bottom strong {
    color: #f1eee6;
}

.recent-purchases__heading small,
.recent-purchase small,
.footer__bottom,
.footer__bottom p {
    color: #8f8b82;
}

.recent-purchase small span,
.footer__bottom a,
.footer__legal a,
.footer a {
    color: var(--accent);
}

.footer__legal a:hover,
.footer a:hover {
    color: var(--accent-strong);
}

.auth-shell,
.account-shell {
    background:
        radial-gradient(circle at 50% 8%, rgba(208, 173, 97, .085), transparent 30%),
        linear-gradient(rgba(255,255,255,.014) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px),
        #121211;
    background-size: auto, 70px 70px, 70px 70px, auto;
}

.auth-shell::before {
    opacity: .15;
    background-image: linear-gradient(135deg, transparent 45%, rgba(208,173,97,.05) 46% 47%, transparent 48%);
    background-size: 110px 110px;
}

.auth-topbar {
    width: min(1320px, calc(100% - 48px));
    height: 88px;
    border-bottom-color: var(--line);
}

.auth-back,
.auth-logout,
.legal-header__back {
    border-color: var(--line);
    border-radius: 8px;
    background: #20201e;
    color: #aaa79f;
}

.auth-back:hover,
.auth-logout:hover,
.legal-header__back:hover {
    border-color: rgba(208, 173, 97, .55);
    background: #272724;
    color: #fff;
}

.auth-card {
    width: min(510px, 100%);
    padding: 44px;
    border-color: var(--line);
    border-radius: 20px;
    background: #20201e;
    box-shadow: 0 38px 85px rgba(0, 0, 0, .32);
    backdrop-filter: none;
}

.auth-card__glow {
    top: -150px;
    width: 360px;
    background: rgba(208, 173, 97, .12);
}

.auth-card h1 {
    color: #fff;
    font-family: Inter, Arial, sans-serif;
    font-size: clamp(31px, 6vw, 43px);
    font-weight: 900;
    letter-spacing: -.045em;
}

.auth-card__lead,
.auth-agreement,
.telegram-pending p {
    color: var(--muted);
}

.auth-agreement a,
.terms-consent a {
    color: var(--accent-strong);
}

.auth-field > span {
    color: #aaa79f;
}

.auth-field input {
    border-color: var(--line);
    border-radius: 9px;
    background: #171716;
}

.telegram-pending__icon {
    border-color: rgba(208, 173, 97, .42);
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.telegram-pending__loader i {
    background: var(--accent);
}

.account-page.account-dashboard,
.admin-page {
    width: min(1380px, calc(100% - 64px));
}

.account-overview {
    border-color: var(--line);
}

.account-overview__avatar,
.account-avatar {
    border-color: rgba(208, 173, 97, .46);
    border-radius: 13px;
    background: linear-gradient(145deg, #85692f, #3c321f);
    box-shadow: 0 14px 35px rgba(0, 0, 0, .24);
}

.account-overview__profile h1,
.account-profile h1,
.account-balance-line strong,
.admin-heading h1,
.admin-metrics strong,
.admin-player-card h2 {
    font-family: Inter, Arial, sans-serif;
    font-weight: 900;
    letter-spacing: -.04em;
}

.account-balance-line,
.account-facts div,
.account-tabs,
.account-section,
.account-tool,
.history-row,
.history-empty {
    border-color: var(--line);
}

.account-tab {
    color: #858179;
}

.account-tab::after {
    height: 1px;
    background: var(--accent);
    box-shadow: none;
}

.account-tab.is-active > span,
.account-overview__profile > div > span,
.account-section__title span,
.account-balance-line > small {
    color: var(--accent);
}

.account-session-actions a,
.account-session-actions button,
.account-admin-link {
    border-color: var(--line);
    border-radius: 8px;
    background: #20201e;
    color: #c1beb7;
}

.account-session-actions a:hover,
.account-session-actions button:hover,
.account-admin-link:hover {
    border-color: rgba(208, 173, 97, .54);
    background: #272724;
}

.account-inline-form input,
.account-action-form input {
    border-color: var(--line);
    border-radius: 8px;
    background: #181817;
}

.account-facts dt,
.account-overview__profile small,
.account-balance-line > span,
.history-row--head {
    color: #7d7971;
}

.history-status--success {
    background: rgba(120, 201, 146, .1);
    color: #8ed9a6;
}

.history-status--pending {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.account-notice,
.auth-alert {
    border-radius: 9px;
}

.admin-heading {
    border-bottom: 1px solid var(--line);
}

.admin-heading span,
.admin-form header span,
.admin-list header span {
    color: var(--accent);
}

.admin-tabs {
    border-bottom-color: var(--line);
}

.admin-metrics,
.admin-form,
.admin-list,
.admin-player-result,
.admin-revenue-metrics,
.admin-player-card dl {
    border-color: var(--line);
    border-radius: 13px;
    background: #1d1d1b;
}

.admin-metrics article,
.admin-revenue-metrics article,
.admin-list-row,
.admin-revenue-row,
.admin-promo-product-row,
.admin-promo-use-row,
.admin-player-history div {
    border-color: var(--line);
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-player-card dl div {
    border-color: var(--line);
    border-radius: 8px;
    background: #151514;
}

.admin-fields .check input {
    accent-color: var(--accent);
}

.admin-type-fields {
    border-color: #4a473e;
    border-radius: 9px;
}

.admin-list-row button {
    border-color: var(--line);
    border-radius: 7px;
    background: #282825;
}

.admin-list-row button:hover {
    border-color: rgba(208, 173, 97, .55);
}

.ticket-workspace,
.ticket-sidebar,
.ticket-thread,
.ticket-create,
.ticket-list,
.ticket-thread-empty,
.ticket-message,
.ticket-player-popover {
    border-color: var(--line);
    background: #1d1d1b;
}

.ticket-create header > span,
.ticket-list > header > span,
.ticket-queue-heading > span,
.ticket-thread-header > div:first-child > span,
.ticket-thread-empty > span {
    color: var(--accent);
}

.ticket-create label,
.ticket-reply label,
.ticket-file-field small,
.ticket-list-item > small,
.ticket-queue-heading > div,
.ticket-thread-empty p {
    color: #858178;
}

.ticket-queue-heading > div b {
    color: var(--accent-strong);
}

.ticket-list-item,
.ticket-thread-header,
.ticket-message header,
.ticket-reply,
.ticket-close,
.ticket-attachments a {
    border-color: var(--line);
}

.ticket-list-item:hover,
.ticket-list-item.is-active {
    border-color: rgba(208, 173, 97, .42);
    background: var(--accent-soft);
}

.ticket-create input,
.ticket-create select,
.ticket-create textarea,
.ticket-reply textarea,
.ticket-reply input[type="file"] {
    border-color: var(--line);
    background: #141413;
}

.ticket-file-field input[type="file"]::file-selector-button,
.ticket-reply input[type="file"]::file-selector-button {
    border: 1px solid rgba(208, 173, 97, .34);
    background: rgba(208, 173, 97, .12);
    color: var(--accent-strong);
}

.ticket-file-field input[type="file"]::file-selector-button:hover,
.ticket-reply input[type="file"]::file-selector-button:hover {
    border-color: rgba(208, 173, 97, .62);
    background: rgba(208, 173, 97, .2);
}

.ticket-attachments a {
    border-color: var(--line);
    background: #242421;
    color: var(--accent-strong);
}

.ticket-attachments a:hover {
    border-color: rgba(208, 173, 97, .5);
}

.ticket-player-popover > button {
    border-color: rgba(208, 173, 97, .38);
    background: rgba(208, 173, 97, .1);
    color: var(--accent-strong);
}

.ticket-player-card {
    border-color: var(--line);
    background: #1d1d1b;
}

.ticket-player-card > small,
.ticket-player-facts small {
    color: #858178;
}

.ticket-player-facts {
    border-color: var(--line);
    background: var(--line);
}

.ticket-player-facts > span {
    background: #242421;
}

.ticket-player-facts b {
    color: #f2efe8;
}

.admin-category-manager {
    margin-bottom: 18px;
}

.admin-list-row button.admin-delete {
    border-color: rgba(190, 74, 74, .38);
    background: rgba(190, 74, 74, .09);
    color: #e49a9a;
}

.admin-list-row button.admin-delete:hover {
    border-color: rgba(220, 91, 91, .68);
    background: rgba(190, 74, 74, .17);
}

.admin-form input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 9px 12px;
    border: 1px solid rgba(208, 173, 97, .34);
    border-radius: 6px;
    background: rgba(208, 173, 97, .12);
    color: var(--accent-strong);
    cursor: pointer;
}

.admin-player-ticket {
    display: block;
    width: 100%;
    padding: 13px 0;
    border: 0;
    border-top: 1px solid var(--line);
    background: transparent;
    color: #aaa69d;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: color .2s ease, padding-left .2s ease;
}

.admin-player-ticket:hover {
    padding-left: 8px;
    color: var(--accent-strong);
}

.admin-modal-open { overflow: hidden; }

.admin-ticket-modal {
    position: fixed;
    z-index: 120;
    inset: 0;
    display: none;
    place-items: center;
    padding: 24px;
}

.admin-ticket-modal.is-open { display: grid; }
.admin-ticket-modal__backdrop { position: absolute; inset: 0; background: rgba(6, 6, 5, .82); backdrop-filter: blur(8px); }
.admin-ticket-modal__dialog { position: relative; width: min(900px, 100%); max-height: min(820px, calc(100vh - 48px)); padding: 34px; overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: #1d1d1b; box-shadow: 0 35px 90px rgba(0,0,0,.55); }
.admin-ticket-modal__close { position: absolute; z-index: 2; top: 15px; right: 15px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: #242421; color: #ddd8ce; font-size: 24px; cursor: pointer; }
.admin-ticket-view__header { padding: 0 55px 24px 0; border-bottom: 1px solid var(--line); }
.admin-ticket-view__header > span { color: var(--accent); font-size: 9px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.admin-ticket-view__header h2 { margin: 9px 0; color: #f4f2ec; font-size: clamp(21px, 4vw, 30px); }
.admin-ticket-view__header p { margin: 0; color: #858178; font-size: 12px; }
.admin-ticket-view__messages { display: grid; gap: 0; margin-top: 12px; }
.admin-ticket-view__messages .ticket-message { padding-block: 18px; }
.admin-ticket-error { color: #e49a9a; }

@media (max-width: 620px) {
    .admin-ticket-modal { padding: 10px; }
    .admin-ticket-modal__dialog { max-height: calc(100vh - 20px); padding: 24px 18px; border-radius: 12px; }
}

.ticket-message--admin {
    border-color: rgba(208, 173, 97, .36);
    background: rgba(208, 173, 97, .07);
}

.ticket-status--answered {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.legal-header {
    border-bottom-color: var(--line);
    background: #111110;
}

.legal-page {
    background:
        radial-gradient(circle at 50% 0, rgba(208, 173, 97, .07), transparent 31%),
        #141413;
}

.legal-page__glow {
    background: rgba(208, 173, 97, .08);
}

.legal-document {
    border-color: var(--line);
    border-radius: 18px;
    background: #20201e;
    box-shadow: 0 30px 75px rgba(0,0,0,.2);
}

.legal-document h1,
.legal-document h2 {
    color: #f4f2ec;
    font-family: Inter, Arial, sans-serif;
    font-weight: 900;
    letter-spacing: -.035em;
}

.legal-document__content p {
    color: #a19d95;
}

.legal-document__content a {
    color: var(--accent-strong);
}

@media (max-width: 1340px) {
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .header,
    .account-shell .header {
        grid-template-columns: 275px minmax(220px, 1fr) auto;
    }

    .brand__copy small {
        display: none;
    }

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

    .stats {
        width: 100%;
    }

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

    .hero-server-card--primary {
        grid-column: 1 / -1;
    }

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

@media (max-width: 820px) {
    .header,
    .account-shell .header,
    .account-page.account-dashboard,
    .admin-page {
        width: min(100% - 28px, 1380px);
    }

    .header,
    .account-shell .header {
        overflow: visible;
    }

    .header {
        grid-template-columns: 1fr auto;
        height: 78px;
    }

    .brand__photo {
        width: 48px;
        height: 48px;
    }

    .nav {
        z-index: 30;
        top: 78px;
        right: 14px;
        left: 14px;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #20201f;
        box-shadow: 0 25px 55px rgba(0,0,0,.38);
    }

    .nav__link {
        padding: 14px 12px;
        border-bottom: 1px solid var(--line);
    }

    .nav__link:last-child {
        border-bottom: 0;
    }

    .hero {
        width: min(100% - 28px, 1380px);
        padding: 34px 0 62px;
    }

    .hero__content {
        padding: 38px 30px;
        border-radius: 18px;
    }

    .shop {
        padding: 68px 20px 80px;
    }

    .footer {
        padding-inline: 20px;
    }
}

@media (max-width: 620px) {
    .brand__name {
        font-size: 15px;
    }

    .header .account-link {
        width: 42px;
        min-width: 42px;
    }

    .hero__connect-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero__online {
        width: 100%;
        min-width: 0;
        justify-items: center;
        text-align: center;
    }

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

    .hero-server-card--primary {
        grid-column: auto;
    }

    .hero-server-card > i {
        display: none;
    }

    .hero__content {
        padding: 31px 22px;
        gap: 38px;
    }

    .hero h1 {
        font-size: clamp(48px, 17vw, 70px);
    }

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

    .button {
        width: 100%;
        justify-content: space-between;
    }

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

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

    .stat {
        min-height: 104px;
    }

    .auth-card {
        padding: 30px 22px;
        border-radius: 16px;
    }

    .purchase-modal__dialog,
    .payment-result__dialog {
        border-radius: 16px;
    }

    .account-overview__avatar,
    .account-avatar {
        border-radius: 11px;
    }
}
