@font-face {
    font-family: "Geist";
    src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Geist Mono";
    src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --app-bg: #eef2f8;
    --app-bg-soft: #e4eaf3;
    --surface: rgba(255, 255, 255, 0.96);
    --surface-solid: #ffffff;
    --surface-muted: #f5f7fb;
    --surface-strong: #edf1f8;
    --text: #152033;
    --text-soft: #34425a;
    --muted: #6c7890;
    --border: #d9e0ec;
    --border-strong: #aeb9ce;
    --brand: #6957e7;
    --brand-hover: #5846d6;
    --accent: #2c83e8;
    --accent-soft: rgba(44, 131, 232, 0.1);
    --success: #15956c;
    --warning: #cf8518;
    --danger: #dc4a5b;
    --shadow: 0 18px 44px rgba(25, 38, 65, 0.12);
    --shadow-soft: 0 8px 24px rgba(25, 38, 65, 0.07);
    --navy: #0b1220;
    --navy-soft: #111b2f;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --primary: var(--brand);
    --primary-dark: var(--brand-hover);
    --secondary: var(--accent);
    --success-color: var(--success);
    --warning-color: var(--warning);
    --danger-color: var(--danger);
    --text-dark: var(--text);
    --text-light: var(--muted);
    --bg-white: var(--surface-solid);
    --bg-light: var(--surface-muted);
}

html[data-theme="dark"] {
    --app-bg: #070b14;
    --app-bg-soft: #0a1020;
    --surface: rgba(14, 22, 38, 0.96);
    --surface-solid: #0f1828;
    --surface-muted: #141f33;
    --surface-strong: #1a2740;
    --text: #edf3ff;
    --text-soft: #c7d2e5;
    --muted: #8997b1;
    --border: #23314a;
    --border-strong: #415170;
    --brand: #8374ff;
    --brand-hover: #9b8fff;
    --accent: #45a3ff;
    --accent-soft: rgba(69, 163, 255, 0.11);
    --success: #37c894;
    --warning: #f0aa3c;
    --danger: #ff6b7d;
    --shadow: 0 22px 56px rgba(0, 0, 0, 0.38);
    --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.24);
    --navy: #080d18;
    --navy-soft: #0d1628;
}

html {
    overflow-x: hidden;
    background: var(--app-bg);
}

body,
button,
input,
select,
textarea {
    font-family: "Geist", "Segoe UI", Arial, sans-serif;
}

body {
    color: var(--text);
    background: var(--app-bg);
}

code,
pre,
.server-address,
.guide-command-code {
    font-family: "Geist Mono", Consolas, monospace;
}

button,
[role="button"],
a.btn,
.hero-action,
.guide-btn,
.theme-toggle {
    transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out), opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}

button:active,
[role="button"]:active,
a.btn:active,
.hero-action:active,
.guide-btn:active,
.theme-toggle:active {
    transform: scale(0.97);
}

input,
select,
textarea {
    transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

::selection {
    color: #ffffff;
    background: var(--brand);
}

/* Public storefront */
.site-shell {
    min-height: 100vh;
    overflow-x: clip;
    color: var(--text);
    background: var(--app-bg);
}

.site-background {
    display: block;
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% -10%, color-mix(in srgb, var(--brand) 11%, transparent), transparent 32rem),
        radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 28rem);
}

.site-background::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image: radial-gradient(circle, color-mix(in srgb, var(--muted) 32%, transparent) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(to bottom, #000, transparent 58%);
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 70;
    width: 100%;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--app-bg) 90%, transparent);
    box-shadow: 0 8px 28px rgba(12, 20, 36, 0.04);
    backdrop-filter: blur(18px);
}

.site-nav-inner {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
    align-items: center;
    width: min(100%, 1260px);
    min-height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    gap: 20px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    min-width: 0;
    gap: 11px;
    color: var(--text);
    font-size: 16px;
    font-weight: 850;
    letter-spacing: -0.02em;
}

.site-brand-mark {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #7563f2, #398eea);
    box-shadow: 0 10px 24px rgba(88, 70, 214, 0.24);
}

.site-nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.site-nav-link {
    padding: 8px 10px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 680;
    white-space: nowrap;
}

.site-actions {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 8px;
}

.mobile-nav-toggle {
    display: none;
    min-width: 78px;
    height: 40px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 11px;
    color: var(--text-soft);
    background: var(--surface-solid);
    font-size: 12px;
    font-weight: 740;
    transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 140ms var(--ease-out);
}

.mobile-nav-toggle[aria-expanded="true"] {
    color: var(--brand);
    border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
    background: color-mix(in srgb, var(--brand) 8%, var(--surface-solid));
}

.mobile-nav-toggle:active {
    transform: scale(0.97);
}

.theme-toggle {
    display: inline-flex;
    min-width: 106px;
    height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 11px;
    color: var(--text-soft);
    background: var(--surface-solid);
    box-shadow: none;
    font-size: 13px;
    font-weight: 720;
}

.hero {
    width: min(100%, 1260px);
    margin: 0 auto;
    padding: 24px 22px 20px;
    overflow: visible;
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(350px, 0.8fr);
    align-items: stretch;
    overflow: hidden;
    min-height: 336px;
    border: 1px solid #243552;
    border-radius: 20px;
    color: #ffffff;
    background:
        linear-gradient(118deg, rgba(104, 81, 231, 0.22), transparent 42%),
        linear-gradient(135deg, #0a1120 0%, #0c1629 54%, #0d1b31 100%);
    box-shadow: 0 18px 38px rgba(6, 12, 24, 0.18);
}

.hero-content::after {
    display: none !important;
}

.hero-content::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.hero-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 38px 42px;
}

.hero-overline {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin: 0 0 13px;
    color: #aebbf1;
    font-size: 12px;
    font-weight: 760;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #39d59b;
    box-shadow: 0 0 0 5px rgba(57, 213, 155, 0.11);
}

.hero-title {
    max-width: 680px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(34px, 4vw, 50px);
    font-weight: 850;
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.hero-title-accent {
    color: #9b8fff;
}

.hero-subtitle {
    max-width: 610px;
    margin: 16px 0 0;
    color: #aab6cd;
    font-size: 16px;
    line-height: 1.6;
}

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

.hero-action {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 780;
    line-height: 1.2;
    white-space: nowrap;
}

.hero-action svg {
    flex: 0 0 auto;
}

.hero-action-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #7563f2, #5d6eed);
    box-shadow: 0 10px 24px rgba(105, 87, 231, 0.28);
}

.hero-action-secondary {
    color: #dce5f6;
    border-color: #34435f;
    background: rgba(255, 255, 255, 0.055);
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
    color: #8f9db6;
    font-size: 12px;
    font-weight: 650;
}

.hero-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-benefits svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: #7f91ff;
    stroke-width: 1.8;
}

.hero-server-panel {
    position: relative;
    z-index: 1;
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 26px 28px;
    border-left: 1px solid #253550;
    background: rgba(5, 11, 22, 0.28);
}

.hero-server-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
}

.hero-server-heading > div > span,
.hero-server-heading > div > strong {
    display: block;
}

.hero-server-heading > div > span {
    margin-bottom: 3px;
    color: #74839e;
    font-size: 11px;
    font-weight: 720;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-server-heading > div > strong {
    color: #ffffff;
    font-size: 17px;
    font-weight: 790;
}

.hero-online-summary {
    padding: 6px 9px;
    border-radius: 8px;
    color: #77e0b7;
    background: rgba(55, 200, 148, 0.1);
    font-size: 11px;
    font-weight: 730;
    white-space: nowrap;
}

.hero-server-list {
    display: grid;
    min-width: 0;
}

.hero-server-row {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    gap: 11px;
    padding: 12px 0;
    border: 0;
    border-top: 1px solid #22314b;
    border-radius: 0;
    color: #ffffff;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.hero-server-map {
    display: flex;
    width: 50px;
    height: 38px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    color: #71809d;
    background: #131e32;
}

.hero-server-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-server-map svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.hero-server-info {
    display: block;
    min-width: 0;
}

.hero-server-info strong,
.hero-server-info small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-server-info strong {
    color: #e9effa;
    font-size: 13px;
    font-weight: 720;
}

.hero-server-info small {
    margin-top: 3px;
    color: #7787a3;
    font-size: 11px;
}

.hero-server-players {
    text-align: right;
}

.hero-server-players > strong {
    display: block;
    color: #ffffff;
    font-size: 15px;
    font-weight: 790;
}

.hero-server-players > strong small {
    color: #71809b;
    font-size: 11px;
}

.hero-server-players > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    color: #7d8ba5;
    font-size: 10px;
}

.hero-server-players i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff6b7d;
}

.hero-server-players i.online {
    background: #37c894;
}

.hero-server-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px solid #22314b;
    color: #9e94ff;
    font-size: 12px;
    font-weight: 720;
}

.site-main {
    width: min(100%, 1260px);
    margin: 0 auto;
    padding: 0 22px 26px;
}

.site-shell .content-flow {
    display: grid !important;
    gap: 20px;
}

.layout-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(330px, 0.88fr);
    align-items: stretch;
    gap: 20px;
}

.layout-stack {
    display: flex;
    flex-direction: column;
    min-width: 0;
    align-items: stretch;
    gap: 20px;
}

.layout-stack > .card:last-child {
    flex: 1 1 auto;
}

.layout-content-main > .announcements-card,
.layout-content-aside > .vk-card {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
}

.site-shell .content-flow .card,
.card {
    min-width: 0;
    margin: 0;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text);
    background: var(--surface-solid);
    box-shadow: var(--shadow-soft);
    backdrop-filter: none;
    transform: none;
    scroll-margin-top: 92px;
}

.site-shell .content-flow .card::before,
.site-shell .card-glow {
    display: none;
}

.site-shell .content-flow .card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-soft);
    transform: none;
}

.site-shell .content-flow .card .card-header,
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--border);
}

.site-shell .content-flow .card .card-header h2,
.site-shell .content-flow .card .card-header h3,
.card-header h2,
.card-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--text);
    font-size: 17px;
    font-weight: 790;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.site-shell .content-flow .card .card-header .icon,
.card-header .icon,
.privilege-description-heading .icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 11%, var(--surface-muted));
}

.card-header .icon svg,
.privilege-description-heading .icon svg {
    width: 18px;
    height: 18px;
}

.purchase-card {
    padding: 0 !important;
    overflow: hidden;
}

.purchase-card > .card-header {
    margin: 0 !important;
    padding: 17px 20px !important;
    background: var(--surface-muted);
}

.purchase-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(330px, 0.72fr);
    align-items: stretch;
    gap: 0;
}

.purchase-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 13px 14px;
    padding: 20px;
}

.purchase-form > .form-group:nth-last-of-type(1),
.purchase-form > button,
.purchase-form > .cyber-button {
    grid-column: 1 / -1;
}

.purchase-form > .purchase-privilege-field,
.purchase-form > .purchase-duration-field {
    grid-column: auto;
}

.purchase-form > .cyber-button {
    position: static;
    width: 100%;
    justify-self: stretch;
    translate: none;
}

.purchase-option-source {
    display: none !important;
}

.purchase-selection-summary {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface-muted);
}

.purchase-selection-summary > span {
    display: grid;
    min-width: 0;
    gap: 3px;
    padding: 10px 12px;
    border-left: 1px solid var(--border);
}

.purchase-selection-summary > span:first-child {
    border-left: 0;
}

.purchase-selection-summary small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 730;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.purchase-selection-summary strong {
    overflow: hidden;
    color: var(--text);
    font-size: 12px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.purchase-selection-summary .purchase-summary-price {
    background: color-mix(in srgb, var(--brand) 7%, var(--surface-muted));
}

.purchase-selection-summary .purchase-summary-price strong {
    color: var(--brand);
    font-size: 15px;
}

.logged-purchase-estimate {
    grid-column: 1 / -1;
    padding: 10px 12px;
    border-left: 3px solid var(--accent);
    color: var(--text-soft);
    background: color-mix(in srgb, var(--accent) 8%, var(--surface-muted));
    font-size: 12px;
    line-height: 1.45;
}

.form-group {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.form-group label,
.admin-content label {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.site-shell .purchase-form .form-group > label {
    display: flex;
    min-height: 0;
    align-items: center;
    gap: 5px;
}

.label-icon {
    display: none !important;
}

.optional,
.form-group small {
    color: var(--muted) !important;
    font-size: 11px;
    line-height: 1.4;
}

.form-group input,
.form-group select,
.form-group textarea,
.purchase-form input,
.purchase-form select,
.purchase-form textarea,
.auth-form input,
.auth-form select,
.banlist-server-select,
.form-control {
    width: 100%;
    min-width: 0;
    min-height: 43px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    background: var(--surface-muted);
    box-shadow: none;
    font-size: 13px;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.purchase-form input:focus,
.purchase-form select:focus,
.auth-form input:focus,
.auth-form select:focus,
.banlist-server-select:focus,
.form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 13%, transparent);
}

.site-shell select {
    padding-right: 35px;
    text-overflow: ellipsis;
}

.privilege-description-panel {
    display: flex;
    height: 100%;
    max-height: 520px;
    min-width: 0;
    flex-direction: column;
    overflow: auto;
    padding: 20px;
    border: 0;
    border-left: 1px solid var(--border);
    border-radius: 0;
    background: color-mix(in srgb, var(--surface-muted) 72%, var(--surface-solid));
}

.privilege-description-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding: 0 0 13px;
    border-bottom: 1px solid var(--border);
}

.privilege-description-eyebrow {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 720;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.privilege-description-heading h3 {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 780;
}

.privilege-description-panel .privilege-description-content {
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.55;
}

.privilege-description-tabs {
    display: flex;
    gap: 4px;
    margin: 0 0 14px;
    padding: 3px;
    border: 0;
    border-radius: 9px;
    background: var(--surface-strong);
}

.privilege-description-tab {
    flex: 1;
    min-height: 34px;
    padding: 6px 9px;
    border-radius: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 690;
}

.privilege-description-tab.active {
    color: var(--text);
    background: var(--surface-solid);
    box-shadow: 0 2px 8px rgba(19, 31, 55, 0.08);
}

.cyber-button,
.btn,
.guide-btn,
.profile-action-btn,
.steam-connect-btn-mini,
.banlist-page-btn {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 740;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
    text-transform: none;
    white-space: nowrap;
}

.button-content {
    display: inline-flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.2;
    white-space: nowrap;
}

.button-content svg,
.cyber-button > svg,
.btn > svg {
    flex: 0 0 auto;
}

.cyber-button,
.btn-primary,
.guide-btn,
.profile-modal-btn-submit {
    color: #ffffff !important;
    border-color: transparent !important;
    background: linear-gradient(135deg, var(--brand), #536be7) !important;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--brand) 20%, transparent);
}

.btn-secondary,
.guide-btn-secondary,
.profile-modal-btn-cancel,
.banlist-page-btn {
    color: var(--text-soft) !important;
    border-color: var(--border) !important;
    background: var(--surface-solid) !important;
    box-shadow: none;
}

.btn-danger,
.profile-action-logout {
    color: var(--danger) !important;
    border-color: color-mix(in srgb, var(--danger) 25%, var(--border)) !important;
    background: color-mix(in srgb, var(--danger) 8%, var(--surface-solid)) !important;
}

.btn-sm {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 12px;
}

.btn-lg {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 14px;
}

.server-list {
    display: grid;
    gap: 0;
}

.server-item {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: visible;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0 !important;
    background: transparent;
    cursor: pointer;
}

.server-item-header {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 0;
}

.server-header-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.server-name {
    color: var(--text);
    font-size: 14px;
    font-weight: 750;
}

.server-header-bottom {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
}

.server-map-container {
    width: 104px;
    height: 66px;
    aspect-ratio: auto;
    overflow: hidden;
    border-radius: 9px;
    background: var(--surface-muted);
}

.server-map-thumb,
.server-map-large {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.server-map-placeholder.compact {
    display: flex;
    min-height: 66px;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: var(--muted);
    background: var(--surface-muted);
}

.server-map-placeholder.compact > span {
    display: none;
}

.server-map-placeholder.compact > strong {
    font-size: 10px;
    line-height: 1.3;
}

.server-info-right {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.server-map,
.server-map-time-mini,
.server-stat {
    color: var(--muted);
    font-size: 12px;
}

.server-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    align-self: end;
    gap: 12px;
    margin-top: 13px;
    padding: 10px 0 0;
    border: 0;
    border-top: 1px dashed var(--border);
    background: transparent;
}

.server-address-group {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}

.server-address {
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 650;
}

.steam-connect-btn-mini {
    min-width: 32px;
    min-height: 32px;
    padding: 6px;
    border-color: var(--border);
    background: var(--surface-muted);
}

.connection-guide-content {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
}

.guide-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
    align-items: center;
    gap: 0 20px;
    padding: 15px;
    border: 0;
    border-radius: 11px;
    background: color-mix(in srgb, var(--accent) 8%, var(--surface-muted));
}

.guide-intro-title {
    grid-column: 1;
    margin: 0 0 7px;
    color: var(--text);
    font-size: 14px;
    font-weight: 760;
}

.guide-intro p {
    grid-column: 1;
    margin: 0;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.55;
}

.guide-intro p + p {
    margin-top: 9px;
}

.guide-intro-note {
    padding-top: 9px;
    border-top: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
    color: var(--muted) !important;
}

.guide-intro-points {
    display: grid;
    grid-column: 2;
    grid-row: 1 / span 3;
    gap: 6px;
    margin-top: 0;
}

.guide-intro-points span {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--text-soft);
    background: transparent;
    font-size: 11px;
    font-weight: 650;
}

.guide-intro-points b {
    color: var(--brand);
    font-size: 10px;
}

.connection-guide-steps {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    counter-reset: guide-step;
}

.connection-guide-steps li {
    display: grid;
    grid-template-columns: 27px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 11px 12px;
    border: 0;
    border-left: 1px solid var(--border);
    border-radius: 0;
    color: var(--text-soft);
    background: transparent;
    font-size: 12px;
    line-height: 1.45;
    counter-increment: guide-step;
}

.connection-guide-steps li:nth-child(-n + 3) {
    grid-column: span 2;
}

.connection-guide-steps li:nth-child(n + 4) {
    grid-column: span 3;
    border-top: 1px solid var(--border);
}

.connection-guide-steps li:nth-child(1),
.connection-guide-steps li:nth-child(4) {
    border-left: 0;
}

.connection-guide-steps li::before {
    content: counter(guide-step);
    display: inline-flex;
    width: 27px;
    height: 27px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #ffffff;
    background: var(--brand);
    font-size: 10px;
    font-weight: 780;
}

.connection-guide-servers {
    display: grid;
    grid-column: 1 / -1;
    align-items: start;
    gap: 12px;
}

.connection-guide-server {
    display: block;
    height: auto !important;
    min-height: 0 !important;
    align-self: start;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 11px !important;
    background: var(--surface-muted);
}

.guide-server-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.guide-server-name {
    min-width: 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 740;
}

.guide-server-address {
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}

.guide-server-actions,
.guide-command-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.guide-command-title {
    margin-top: 11px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 720;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.guide-command-code {
    display: block;
    margin-top: 6px;
    padding: 11px;
    overflow-x: auto;
    border: 1px solid #263550;
    border-radius: 9px;
    color: #d9e5f6;
    background: #0d1628;
    font-size: 11px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

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

.auth-form .cyber-button {
    width: 100%;
}

.announcements-list,
.banlist-list {
    display: grid;
    min-height: 0;
    gap: 0;
    overscroll-behavior: contain;
    scrollbar-color: color-mix(in srgb, var(--brand) 42%, var(--border)) transparent;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}

.announcements-card .announcements-list {
    height: 0;
    min-height: 480px;
    max-height: none !important;
    flex: 1 1 0;
    grid-auto-rows: max-content;
    align-content: start;
    padding-right: 6px;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.announcements-list::-webkit-scrollbar,
.banlist-list::-webkit-scrollbar {
    width: 6px;
}

.announcements-list::-webkit-scrollbar-thumb,
.banlist-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 42%, var(--border));
}

.announcements-list::-webkit-scrollbar-track,
.banlist-list::-webkit-scrollbar-track {
    background: transparent;
}

.announcement-item {
    --announcement-tone: var(--brand);
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px 10px;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0 !important;
    background: transparent;
}

.announcement-item:first-child {
    border-top-color: transparent;
}

.announcement-item::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 0;
    width: 2px;
    border-radius: 999px;
    background: var(--announcement-tone);
}

.announcement-error,
.announcement-red {
    --announcement-tone: var(--danger);
}

.announcement-warning,
.announcement-yellow {
    --announcement-tone: var(--warning);
}

.announcement-success,
.announcement-green {
    --announcement-tone: var(--success);
}

.announcement-index {
    display: inline;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
}

.announcement-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: var(--announcement-tone);
    background: color-mix(in srgb, var(--announcement-tone) 10%, var(--surface-muted));
    font-size: 16px;
}

.announcement-content {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.announcement-meta {
    display: flex;
    align-items: center;
    gap: 7px;
}

.announcement-type {
    display: inline-flex;
    width: fit-content;
    padding: 3px 6px;
    border-radius: 6px;
    color: var(--announcement-tone);
    background: color-mix(in srgb, var(--announcement-tone) 9%, var(--surface-muted));
    font-size: 9px;
    font-weight: 740;
}

.announcement-red .announcement-type,
.announcement-error .announcement-type {
    color: var(--danger);
    background: color-mix(in srgb, var(--danger) 9%, var(--surface-muted));
}

.announcement-yellow .announcement-type,
.announcement-warning .announcement-type {
    color: var(--warning);
    background: color-mix(in srgb, var(--warning) 10%, var(--surface-muted));
}

.announcement-green .announcement-type,
.announcement-success .announcement-type {
    color: var(--success);
    background: color-mix(in srgb, var(--success) 9%, var(--surface-muted));
}

.announcement-title {
    color: var(--text);
    font-size: 13.5px;
    font-weight: 740;
    line-height: 1.35;
}

.announcement-text {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.sales-controls {
    display: flex;
    gap: 5px;
}

.sales-controls button {
    display: inline-flex;
    width: 31px;
    height: 31px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-soft);
    background: var(--surface-muted);
}

.sales-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.sales-list::-webkit-scrollbar {
    display: none;
}

.sales-list > * {
    flex: 0 0 clamp(240px, calc((100% - 36px) / 4), 300px);
    min-width: 0;
    scroll-snap-align: start;
}

.sale-entry {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface-muted);
}

.sale-entry-mark {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: var(--success);
    background: color-mix(in srgb, var(--success) 10%, var(--surface-solid));
    font-size: 18px;
    font-weight: 740;
}

.sale-entry-copy {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.sale-entry-time,
.sale-entry-server {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}

.sale-entry-title {
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.45;
}

.sale-entry-title strong,
.sale-entry-server strong {
    color: var(--text);
}

.highlight-sale {
    color: var(--brand);
    font-weight: 720;
}

.banlist-server-select {
    min-height: 41px;
    margin-bottom: 8px;
}

.banlist-server-select select {
    width: 100%;
    min-height: 39px;
    padding: 8px 11px;
    border: 0;
    color: var(--text);
    background: transparent;
    font-size: 12px;
}

.banlist-server-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.banlist-content {
    display: flex;
    min-height: 0;
    flex-direction: column;
}

#banlist-container {
    min-height: 0;
}

.banlist-list {
    max-height: 360px !important;
    padding-right: 6px;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.banlist-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 7px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 680;
}

.banlist-scroll-hint {
    color: var(--brand);
    white-space: nowrap;
}

.banlist-server-tab {
    display: inline-flex;
    min-width: 0;
    min-height: 36px;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--muted);
    background: var(--surface-muted);
    font-size: 11px;
    font-weight: 690;
    text-align: left;
}

.banlist-server-tab > span {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--muted);
}

.banlist-server-tab.is-active {
    color: var(--brand);
    border-color: color-mix(in srgb, var(--brand) 38%, var(--border));
    background: color-mix(in srgb, var(--brand) 8%, var(--surface-solid));
}

.banlist-server-tab.is-active > span {
    background: var(--success);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 12%, transparent);
}

.banlist-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    gap: 11px;
    padding: 12px 0;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0 !important;
    color: var(--text);
    background: transparent;
    text-align: left;
}

.banlist-item-body,
.banlist-item-meta {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.banlist-item-meta {
    justify-items: end;
}

.banlist-item-player {
    color: var(--text);
    font-size: 13px;
    font-weight: 740;
}

.banlist-item-reason,
.banlist-item-length,
.banlist-item-date {
    color: var(--muted);
    font-size: 11px;
}

.banlist-status-pill {
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 720;
}

.banlist-item-open {
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
}

.banlist-pagination {
    display: flex;
    min-width: 0;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: safe center;
    gap: 6px;
    margin-top: 12px;
    padding: 2px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.banlist-pagination::-webkit-scrollbar {
    display: none;
}

.banlist-page-btn {
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    flex: 0 0 36px;
    padding: 6px;
}

.banlist-page-btn.active {
    color: #fff !important;
    border-color: transparent !important;
    background: linear-gradient(135deg, var(--brand), var(--accent)) !important;
}

.banlist-page-dots {
    flex: 0 0 auto;
    color: var(--muted);
}

.vk-widget-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 560px;
    flex: 1 1 560px;
    margin: 0;
    overflow: hidden;
    border-radius: 11px;
    background: #0a0e27;
}

.vk-widget-wrapper #vk_groups {
    position: relative;
    z-index: 1;
}

.vk-widget-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 12px;
    padding: 24px;
    color: #f8fafc;
    background:
        radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--brand) 28%, transparent), transparent 58%),
        #0a0e27;
    text-align: center;
}

.vk-widget-fallback > span:not(.vk-widget-fallback-mark) {
    color: #a8b4c8;
    font-size: 12px;
    line-height: 1.55;
}

.vk-widget-fallback-mark {
    display: inline-flex;
    width: 48px;
    height: 48px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: #2787f5;
    font-size: 13px;
    font-weight: 800;
}

.vk-widget-wrapper.is-loaded .vk-widget-fallback {
    display: none;
}

.vk-community-link {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text-soft);
    background: var(--surface-muted);
    font-size: 12px;
    font-weight: 720;
}

.vk-community-link:hover {
    color: #fff;
    border-color: #2787f5;
    background: #2787f5;
}

.vk-widget-wrapper #vk_groups,
.vk-widget-wrapper iframe {
    width: 100% !important;
    height: 100% !important;
}

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

.profile-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

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

.profile-card .stat-item {
    min-width: 0;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.profile-card .stat-item:first-child,
.profile-card .stat-item:nth-child(5) {
    grid-column: 1 / -1;
}

.profile-card .stat-value {
    overflow-wrap: anywhere;
}

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

.profile-card .profile-action-btn,
.profile-card .profile-content > form,
.profile-card .profile-logout-bottom {
    width: 100%;
    min-width: 0;
}

.profile-card .profile-action-btn {
    white-space: normal;
}

.privilege-status {
    flex-shrink: 0;
    white-space: nowrap;
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 0;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, 1260px);
    margin: 0 auto;
    padding: 22px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    text-align: left;
}

/* Public dialogs */
.public-modal-open {
    overflow: hidden;
}

.modal,
.profile-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(4, 8, 16, 0.76);
    backdrop-filter: blur(8px);
}

.modal-content,
.profile-modal-content,
.modal-dialog {
    width: min(100%, 820px);
    max-height: calc(100vh - 36px);
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text);
    background: var(--surface-solid);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.public-modal-header,
.modal-header,
.profile-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-muted);
}

.public-modal-title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.public-modal-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 11%, var(--surface-strong));
}

.public-modal-eyebrow {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 720;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.public-modal-title h2 {
    margin: 3px 0 0;
    color: var(--text);
    font-size: 17px;
    font-weight: 780;
}

.modal-close,
.profile-modal-close {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--muted);
    background: var(--surface-solid);
}

.server-modal-content,
.ban-modal-content {
    padding: 0;
}

.server-modal-content {
    width: min(100%, 880px);
}

#modalServerDetails,
#modalPlayerList,
.ban-modal-body {
    padding: 18px;
}

#modalPlayerList {
    padding-top: 0;
}

.server-modal-summary {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    align-items: stretch;
    gap: 22px;
}

.server-modal-map {
    display: grid;
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 11px;
    background: var(--surface-muted);
}

.server-modal-map > *,
.server-modal-map .server-map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 0;
}

.server-modal-overview {
    display: grid;
    min-width: 0;
    grid-template-rows: auto auto auto;
    align-content: start;
    gap: 12px;
}

.server-modal-status {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 6px 9px;
    border-radius: 8px;
    color: var(--success);
    background: color-mix(in srgb, var(--success) 10%, var(--surface-muted));
    font-size: 11px;
    font-weight: 720;
}

.server-modal-status.offline {
    color: var(--danger);
    background: color-mix(in srgb, var(--danger) 9%, var(--surface-muted));
}

.server-modal-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-muted);
}

.server-modal-metrics:has(> .server-modal-metric:nth-child(3):last-child) {
    grid-template-columns: minmax(92px, 0.68fr) minmax(180px, 1.5fr) minmax(105px, 0.82fr);
}

.server-modal-metrics:has(> .server-modal-metric:nth-child(4):last-child) {
    grid-template-columns: minmax(82px, 0.68fr) minmax(155px, 1.35fr) minmax(92px, 0.78fr) minmax(74px, 0.62fr);
}

.server-modal-metric {
    display: grid;
    align-content: center;
    gap: 3px;
    min-width: 0;
    padding: 12px 14px;
    border-left: 1px solid var(--border);
}

.server-modal-metric:first-child {
    border-left: 0;
}

.server-modal-metric span,
.server-modal-address-row span {
    color: var(--muted);
    font-size: 10px;
}

.server-modal-metric strong,
.server-modal-address-row strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 730;
}

.server-modal-address-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    align-self: auto;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-muted);
}

.server-modal-address-row > div:first-child {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.server-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.players-title {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 14px;
    font-weight: 750;
}

.player-list-table {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 11px;
}

.player-header,
.player-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 70px 80px;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-soft);
    font-size: 12px;
}

.player-header {
    color: var(--muted);
    background: var(--surface-muted);
    font-size: 10px;
    font-weight: 720;
    text-transform: uppercase;
}

.player-row {
    border-top: 1px solid var(--border);
}

.ban-modal-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.ban-player-card,
.ban-reason-card {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface-muted);
}

.ban-player-avatar,
.ban-reason-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 11%, var(--surface-strong));
    font-size: 11px;
    font-weight: 780;
}

.ban-player-copy,
.ban-reason-card > span:last-child {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.ban-player-copy small,
.ban-reason-card small {
    color: var(--muted);
    font-size: 10px;
}

.ban-player-copy strong,
.ban-reason-card strong {
    color: var(--text);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.ban-status-badge {
    margin-left: auto;
}

.ban-detail-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.ban-detail-section h3 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 13px;
    font-weight: 750;
}

.ban-detail-list {
    margin: 0;
}

.ban-detail-item {
    display: grid;
    grid-template-columns: minmax(90px, 0.7fr) minmax(0, 1.3fr);
    gap: 10px;
    padding: 9px 0;
    border-top: 1px solid var(--border);
    font-size: 12px;
}

.ban-detail-item dt {
    color: var(--muted);
}

.ban-detail-item dd {
    margin: 0;
    color: var(--text);
    text-align: right;
    overflow-wrap: anywhere;
}

/* Catalog tariff editor */
.tariff-editor {
    gap: 10px;
}

.tariff-editor-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

.tariff-editor-heading > div {
    display: grid;
    gap: 4px;
}

.tariff-editor-heading small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.tariff-editor-columns,
.duration-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
}

.tariff-editor-columns {
    padding: 0 12px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 740;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tariff-editor-rows {
    display: grid;
    gap: 8px;
}

.duration-row {
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-muted);
}

.duration-field {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.duration-field > span {
    display: none;
    color: var(--muted);
    font-size: 10px;
}

.duration-field input {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    background: var(--surface-solid);
}

.duration-remove {
    min-height: 40px;
}

/* Admin application */
.admin-shell {
    min-height: 100vh;
    color: var(--text);
    background: var(--app-bg);
}

.admin-background {
    display: block;
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 8% -10%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 34rem),
        radial-gradient(circle at 90% 12%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 30rem);
}

.admin-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    display: flex;
    height: 66px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 22px 0 266px;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--app-bg) 91%, transparent);
    backdrop-filter: blur(18px);
}

.header-left,
.header-right,
.user-btn {
    display: flex;
    align-items: center;
}

.header-left,
.header-right {
    gap: 10px;
}

.site-title {
    color: var(--text);
    font-size: 15px;
    font-weight: 780;
}

.site-subtitle {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: 244px;
    padding: 12px 12px 20px;
    border-right: 1px solid var(--border);
    color: var(--text);
    background: var(--surface-solid);
    box-shadow: 8px 0 28px rgba(17, 29, 51, 0.04);
    translate: 0 0;
}

.admin-brand {
    display: flex;
    height: 52px;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 0 7px;
}

.admin-brand-mark {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #ffffff;
    background: linear-gradient(135deg, #7563f2, #398eea);
    box-shadow: 0 9px 20px rgba(88, 70, 214, 0.2);
}

.admin-brand-title {
    display: block;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

.admin-brand-subtitle {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 660;
    letter-spacing: 0;
    text-transform: none;
}

.sidebar-label {
    margin: 17px 0 6px;
    padding: 0 10px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 760;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.sidebar-menu {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-menu a {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 10px;
    padding: 6px 9px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 680;
}

.sidebar-menu a.active {
    color: var(--brand);
    border-color: color-mix(in srgb, var(--brand) 18%, var(--border));
    background: color-mix(in srgb, var(--brand) 9%, var(--surface-solid));
    box-shadow: none;
}

.menu-icon {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: inherit;
    background: color-mix(in srgb, currentColor 8%, transparent);
}

.menu-icon svg {
    width: 17px;
    height: 17px;
}

.admin-content {
    position: relative;
    z-index: 10;
    min-height: calc(100vh - 66px);
    margin-left: 244px;
    padding: 88px 22px 36px;
}

.admin-content > h1 {
    margin: 0 0 18px;
    color: var(--text) !important;
    font-size: 26px;
    font-weight: 820;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}

.stat-card {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface-solid);
    box-shadow: var(--shadow-soft);
}

.stat-card:hover {
    border-color: var(--border-strong);
    transform: none;
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    margin: 0 0 10px;
}

.stat-title,
.stat-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 680;
}

.stat-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--surface-muted);
    font-size: 16px;
}

.stat-card .stat-value {
    color: var(--text);
    font-size: 23px;
    font-weight: 820;
}

.admin-content .card {
    margin: 0 0 16px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-solid);
    box-shadow: var(--shadow-soft);
}

.admin-content .card-header {
    margin: 0;
    padding: 14px 17px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-muted);
}

.admin-content .card-header h2,
.admin-content .card-header h3 {
    color: var(--text);
    font-size: 15px;
    font-weight: 770;
}

.admin-content .card-body {
    padding: 17px;
    color: var(--text-soft);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 11px;
}

.table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    color: var(--text-soft);
    font-size: 12px;
}

.table th {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    background: var(--surface-muted);
    font-size: 9px;
    font-weight: 760;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-soft);
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.table tbody tr:hover td,
.table-striped tbody tr:nth-child(even) td {
    background: color-mix(in srgb, var(--surface-muted) 70%, transparent);
}

.admin-content input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.admin-content select,
.admin-content textarea,
.login-container input {
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid var(--border) !important;
    border-radius: 9px;
    color: var(--text) !important;
    background: var(--surface-muted) !important;
    box-shadow: none !important;
    font-size: 12px;
}

.admin-content input:focus,
.admin-content select:focus,
.admin-content textarea:focus,
.login-container input:focus {
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 13%, transparent) !important;
}

.admin-content small {
    color: var(--muted) !important;
}

.admin-footer {
    margin-left: 244px;
    padding: 18px 22px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 11px;
}

.menu-toggle,
.user-btn {
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-soft);
    background: var(--surface-solid);
}

.menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
}

.user-btn {
    gap: 8px;
    min-height: 40px;
    padding: 4px 9px 4px 4px;
    font-size: 12px;
    font-weight: 700;
}

.user-avatar {
    display: inline-flex;
    width: 31px;
    height: 31px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    font-size: 12px;
    font-weight: 780;
}

.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: 11px;
    color: var(--text);
    background: var(--surface-solid);
    box-shadow: var(--shadow);
}

.dropdown-menu a {
    border-radius: 8px;
    color: var(--text-soft);
    font-size: 12px;
}

.admin-shell .modal {
    color: var(--text);
}

.admin-shell .modal-dialog {
    width: min(100%, 760px);
    border-radius: 15px;
    color: var(--text);
    background: var(--surface-solid);
}

.admin-shell .modal-header,
.admin-shell .modal-footer {
    padding: 14px 17px;
    border-color: var(--border) !important;
    color: var(--text);
    background: var(--surface-muted) !important;
}

.admin-shell .modal-body {
    padding: 17px;
    overflow-x: hidden;
    color: var(--text) !important;
    background: var(--surface-solid) !important;
}

.order-detail-hero {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: -17px -17px 16px;
    padding: 16px 17px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    background: color-mix(in srgb, var(--brand) 9%, var(--surface-muted));
}

.order-detail-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 12%, var(--surface-solid));
    font-size: 19px;
}

.order-detail-heading span {
    color: var(--muted);
    font-size: 10px;
}

.order-detail-heading strong {
    color: var(--text);
    font-size: 17px;
}

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

.order-detail-stat {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-left-width: 3px;
    border-radius: 10px;
    color: var(--text);
    background: var(--surface-muted);
}

.order-detail-stat span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 720;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.order-detail-stat strong {
    color: var(--text);
    font-size: 14px;
}

.order-detail-list {
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-solid);
}

.order-detail-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

.order-detail-row:last-child {
    border-bottom: 0;
}

.order-detail-row > span {
    color: var(--muted);
    font-size: 11px;
}

.order-detail-row > strong,
.order-detail-row > code {
    min-width: 0;
    color: var(--text) !important;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.order-detail-row > code {
    padding: 4px 7px;
    border-radius: 6px;
    background: var(--surface-muted);
}

.login-shell {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background: var(--app-bg);
}

.login-page {
    position: relative;
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 8%, color-mix(in srgb, var(--brand) 15%, transparent), transparent 31rem),
        radial-gradient(circle at 88% 90%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 28rem),
        var(--app-bg);
}

.login-page::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.42;
    background-image:
        linear-gradient(color-mix(in srgb, var(--border) 46%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--border) 46%, transparent) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(circle at center, #000 0, transparent 72%);
}

.login-theme-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 20;
}

.login-container {
    position: relative;
    z-index: 1;
    width: min(100%, 440px);
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text);
    background: color-mix(in srgb, var(--surface-solid) 96%, transparent);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.login-header {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    text-align: left;
}

.login-brand {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #7563f2, #398eea);
}

.login-heading-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.login-eyebrow {
    color: var(--brand);
    font-size: 9px;
    font-weight: 760;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-title {
    margin: 0;
    color: var(--text);
    font-size: 22px;
    font-weight: 820;
    letter-spacing: -0.025em;
}

.login-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.login-container label {
    color: var(--text-soft);
}

.login-container input {
    width: 100% !important;
    max-width: 100% !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
    background: var(--surface-muted) !important;
}

.login-container input::placeholder {
    color: var(--muted);
}

.login-form {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 14px;
}

.login-form .form-group {
    min-width: 0;
}

.login-submit {
    width: 100% !important;
    min-width: 0;
    margin-top: 2px;
}

/* Legacy inline styles in admin modules must follow the selected theme. */
.admin-shell [style*="background: white"],
.admin-shell [style*="background:white"],
.admin-shell [style*="background: #fff"],
.admin-shell [style*="background:#fff"],
.admin-shell [style*="background: #ffffff"],
.admin-shell [style*="background:#ffffff"],
.admin-shell [style*="background-color: #fff"],
.admin-shell [style*="background-color:#fff"],
.admin-shell [style*="background: var(--bg-light)"] {
    color: var(--text) !important;
    background: var(--surface-solid) !important;
}

html[data-theme="dark"] .admin-shell [style*="background"][style*="#fff"],
html[data-theme="dark"] .admin-shell [style*="background"][style*="#ffffff"],
html[data-theme="dark"] .admin-shell [style*="background"][style*="#f8f9fa"],
html[data-theme="dark"] .admin-shell [style*="background"][style*="#f8f9ff"],
html[data-theme="dark"] .admin-shell [style*="background"][style*="#f9fbff"],
html[data-theme="dark"] .admin-shell [style*="background"][style*="#f4f7ff"],
html[data-theme="dark"] .admin-shell [style*="background: white"],
html[data-theme="dark"] .admin-shell [style*="background:white"] {
    color: var(--text) !important;
    background: var(--surface-solid) !important;
}

html[data-theme="dark"] .admin-shell [style*="color: #000"],
html[data-theme="dark"] .admin-shell [style*="color:#000"],
html[data-theme="dark"] .admin-shell [style*="color: black"],
html[data-theme="dark"] .admin-shell [style*="color: #111"],
html[data-theme="dark"] .admin-shell [style*="color:#111"],
html[data-theme="dark"] .admin-shell [style*="color: #333"],
html[data-theme="dark"] .admin-shell [style*="color:#333"],
html[data-theme="dark"] .admin-shell [style*="color: #495057"],
html[data-theme="dark"] .admin-shell [style*="color:#495057"],
html[data-theme="dark"] .admin-shell [style*="color: #6c757d"],
html[data-theme="dark"] .admin-shell [style*="color:#6c757d"] {
    color: var(--text-soft) !important;
}

/* Unified admin components. Page-level legacy declarations are intentionally
   overridden here so every section follows the same light/dark design system. */
.admin-shell .alert {
    padding: 11px 13px !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    color: var(--text-soft) !important;
    background: var(--surface-muted) !important;
    box-shadow: none !important;
    font-size: 12px;
    line-height: 1.45;
}

.admin-shell .alert-success {
    border-color: color-mix(in srgb, var(--success) 30%, var(--border)) !important;
    color: var(--success) !important;
    background: color-mix(in srgb, var(--success) 8%, var(--surface-solid)) !important;
}

.admin-shell .alert-danger,
.admin-shell .alert-error {
    border-color: color-mix(in srgb, var(--danger) 30%, var(--border)) !important;
    color: var(--danger) !important;
    background: color-mix(in srgb, var(--danger) 8%, var(--surface-solid)) !important;
}

.admin-shell .alert-warning {
    border-color: color-mix(in srgb, var(--warning) 30%, var(--border)) !important;
    color: var(--warning) !important;
    background: color-mix(in srgb, var(--warning) 8%, var(--surface-solid)) !important;
}

.admin-shell .form-group,
.admin-shell .form-control,
.admin-shell form {
    min-width: 0;
}

.admin-shell .form-group > label,
.admin-shell form > label {
    color: var(--text-soft) !important;
    font-size: 12px;
    font-weight: 680 !important;
}

.admin-shell input[type="checkbox"],
.admin-shell input[type="radio"] {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    accent-color: var(--brand);
}

.admin-shell .modal {
    padding: 18px !important;
    color: var(--text) !important;
    background: rgba(4, 9, 18, 0.72) !important;
    backdrop-filter: blur(8px);
}

.admin-shell .modal > .modal-content,
.admin-shell .modal > .modal-dialog {
    width: min(100%, 760px) !important;
    max-width: 760px !important;
    max-height: calc(100vh - 36px) !important;
    margin: auto !important;
    border: 1px solid var(--border) !important;
    border-radius: 15px !important;
    color: var(--text) !important;
    background: var(--surface-solid) !important;
    box-shadow: var(--shadow) !important;
    overflow: auto !important;
}

.admin-shell .modal > .modal-content {
    padding: 20px !important;
}

.admin-shell .modal > .modal-dialog,
.admin-shell #bruteForceLogModal > .modal-content,
.admin-shell #blacklistModal > .modal-content {
    padding: 0 !important;
}

.admin-shell #bruteForceLogModal > .modal-content {
    width: min(100%, 1080px) !important;
    max-width: 1080px !important;
}

.admin-shell #blacklistModal > .modal-content {
    width: min(100%, 900px) !important;
    max-width: 900px !important;
}

.admin-shell #serverModal > .modal-content,
.admin-shell #privilegeModal > .modal-content,
.admin-shell #editPrivilegeModal > .modal-content {
    max-width: 680px !important;
}

.admin-shell #deleteModal > .modal-content {
    max-width: 430px !important;
}

.admin-shell .modal > .admin-form-modal {
    width: min(100%, 680px) !important;
    max-width: 680px !important;
}

.admin-shell .modal > .admin-confirm-modal {
    width: min(100%, 430px) !important;
    max-width: 430px !important;
}

.admin-shell .modal > .admin-log-modal {
    display: flex;
    min-height: 0;
    flex-direction: column;
    overflow: hidden !important;
}

.admin-shell .log-period-select {
    width: auto;
    min-width: 150px;
    min-height: 34px;
    padding: 6px 32px 6px 9px;
    cursor: pointer;
}

.admin-shell .modal h2,
.admin-shell .modal h3,
.admin-shell .modal h4,
.admin-shell .modal label,
.admin-shell .modal p,
.admin-shell .modal span:not(.btn span) {
    color: inherit;
}

.admin-shell .modal-header {
    flex: 0 0 auto;
    border-radius: 14px 14px 0 0;
}

.admin-shell .modal-body {
    min-height: 0;
}

.admin-shell .modal-footer {
    flex: 0 0 auto;
    border-radius: 0 0 14px 14px;
}

.admin-shell .modal-close,
.admin-shell .close,
.admin-shell [onclick*="closeModal"] {
    color: var(--muted) !important;
}

.admin-shell #customConfirmDialog,
.admin-shell #customAlertDialog {
    padding: 18px;
    backdrop-filter: blur(8px);
}

.admin-shell #customConfirmDialog > div,
.admin-shell #customAlertDialog > div {
    width: min(100%, 430px) !important;
    margin: auto !important;
    border: 1px solid var(--border) !important;
    border-radius: 15px !important;
    color: var(--text) !important;
    background: var(--surface-solid) !important;
    box-shadow: var(--shadow) !important;
}

.admin-shell .ann-sortable,
.admin-shell .privileges-sortable,
.admin-shell .blocks-sortable {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.admin-shell .ann-item {
    display: grid;
    grid-template-columns: 22px 22px 42px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    position: relative;
    padding: 12px 0;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    color: var(--text-soft);
    background: transparent;
    box-shadow: none;
    cursor: grab;
    transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.admin-shell .ann-item:first-child {
    padding-top: 0;
}

.admin-shell .ann-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.admin-shell .ann-item::before,
.admin-shell .block-item::before {
    display: none;
}

.admin-shell .ann-item:hover,
.admin-shell .ann-item.drag-over {
    border-color: var(--border-strong);
    background: transparent;
    box-shadow: none;
    transform: none;
}

.admin-shell .ann-item.dragging,
.admin-shell .privilege-item.dragging,
.admin-shell .block-item.dragging {
    opacity: 0.62;
    box-shadow: none;
    transform: scale(0.99);
    cursor: grabbing;
}

.admin-shell .ann-handle,
.admin-shell .privilege-drag-handle,
.admin-shell .block-drag-handle {
    padding: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1;
    transform: none;
}

.admin-shell .ann-checkbox input,
.admin-shell .privilege-active-toggle input,
.admin-shell .block-audience-option input {
    width: 18px;
    height: 18px;
    margin: 0;
    transform: none;
}

.admin-shell .ann-icon,
.admin-shell .privilege-icon,
.admin-shell .block-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    order: initial;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text);
    background: var(--surface-muted);
    box-shadow: none;
    font-size: 17px;
    transform: none;
}

.admin-shell .ann-main,
.admin-shell .privilege-content,
.admin-shell .block-info {
    min-width: 0;
    order: initial;
}

.admin-shell .privilege-content,
.admin-shell .block-info {
    flex: 1;
}

.admin-shell .ann-head {
    gap: 7px;
    margin: 0 0 3px;
}

.admin-shell .ann-title,
.admin-shell .privilege-title,
.admin-shell .block-name {
    margin: 0;
    color: var(--text) !important;
    font-size: 13px;
    font-weight: 760;
    line-height: 1.35;
}

.admin-shell .ann-text,
.admin-shell .privilege-description,
.admin-shell .privilege-meta,
.admin-shell .block-desc {
    color: var(--muted) !important;
    font-size: 12px;
    line-height: 1.45;
}

.admin-shell .ann-actions,
.admin-shell .privilege-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.admin-shell .ann-type {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 720;
}

.admin-shell .ann-type-info {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, var(--surface-muted));
}

.admin-shell .ann-type-warning {
    color: var(--warning);
    background: color-mix(in srgb, var(--warning) 10%, var(--surface-muted));
}

.admin-shell .ann-type-success {
    color: var(--success);
    background: color-mix(in srgb, var(--success) 10%, var(--surface-muted));
}

.admin-shell .ann-type-error {
    color: var(--danger);
    background: color-mix(in srgb, var(--danger) 10%, var(--surface-muted));
}

.admin-shell .privilege-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 0;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    color: var(--text-soft);
    background: transparent;
    box-shadow: none;
    cursor: grab;
    transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.admin-shell .privilege-item:first-child {
    padding-top: 0;
}

.admin-shell .privilege-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.admin-shell .privilege-item:hover,
.admin-shell .privilege-item.drag-over {
    border-color: var(--border-strong);
    background: transparent;
    box-shadow: none;
}

.admin-shell .privilege-title-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 5px;
}

.admin-shell .privilege-actions {
    flex: 0 0 auto;
}

.admin-shell .privilege-description {
    margin-bottom: 6px;
}

.admin-shell .privilege-meta {
    margin-top: 3px;
}

.admin-shell .privilege-meta-label {
    margin-right: 5px;
    color: var(--text-soft);
    font-weight: 700;
}

.admin-shell .block-item {
    display: grid;
    grid-template-columns: 22px 38px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    position: relative;
    padding: 13px 0;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    color: var(--text-soft);
    background: transparent;
    box-shadow: none;
    cursor: grab;
    transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.admin-shell .block-item:first-child {
    padding-top: 0;
}

.admin-shell .block-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.admin-shell .block-item:hover,
.admin-shell .block-item.drag-over {
    border-color: var(--border-strong);
    background: transparent;
    box-shadow: none;
    transform: none;
}

.admin-shell .block-item:hover .block-icon,
.admin-shell .block-item:hover .block-name,
.admin-shell .block-drag-handle:hover,
.admin-shell .block-drag-handle:active {
    color: inherit;
    border-color: var(--border);
    box-shadow: none;
    transform: none;
}

.admin-shell .block-audience {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    order: initial;
    gap: 10px;
}

.admin-shell .block-audience-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-soft);
    font-size: 12px;
    white-space: nowrap;
}

.admin-shell .guide-field-groups {
    display: grid;
    gap: 0;
}

.admin-shell .guide-field-group {
    padding: 15px 0;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    color: var(--text-soft);
    background: transparent;
}

.admin-shell .guide-field-group:first-child {
    padding-top: 0;
}

.admin-shell .guide-field-group:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.admin-shell .guide-field-group-head {
    margin-bottom: 11px;
}

.admin-shell .guide-field-group-title,
.admin-shell .guide-field-label {
    color: var(--text) !important;
}

.admin-shell .guide-field-group-title {
    font-size: 14px;
    font-weight: 760;
}

.admin-shell .guide-field-group-desc,
.admin-shell .guide-field-hint {
    color: var(--muted) !important;
}

.admin-shell .guide-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.admin-shell .guide-field-item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}

.admin-shell .guide-field-item.is-textarea {
    grid-column: 1 / -1;
}

.admin-shell .guide-field-input {
    width: 100%;
    color: var(--text) !important;
    background: var(--surface-muted) !important;
}

.admin-shell .guide-field-item textarea.guide-field-input {
    min-height: 74px;
    resize: vertical;
}

.admin-shell .log-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-soft);
    font-size: 12px;
}

.admin-shell .log-table th {
    padding: 10px 11px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    background: var(--surface-muted);
    font-size: 9px;
    font-weight: 760;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-shell .log-table td {
    padding: 10px 11px;
    border-bottom: 1px solid var(--border);
    color: var(--text-soft);
}

.admin-shell .log-table tr:hover {
    background: color-mix(in srgb, var(--surface-muted) 72%, transparent);
}

.admin-shell .log-ip,
.admin-shell .log-stats {
    color: var(--text-soft);
    background: var(--surface-muted);
}

.admin-shell .log-ip {
    padding: 3px 7px;
    border-radius: 6px;
    font-family: "Geist Mono", Consolas, monospace;
    font-size: 11px;
}

.admin-shell .log-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 16px;
    padding: 1px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.admin-shell .log-stat-item {
    min-width: 0;
    padding: 11px;
    text-align: center;
    background: var(--surface-solid);
}

.admin-shell .log-stat-value,
.admin-shell .log-username {
    color: var(--brand);
}

.admin-shell .log-stat-value {
    font-size: 20px;
    font-weight: 790;
}

.admin-shell .log-success {
    color: var(--success);
    font-weight: 700;
}

.admin-shell .log-failed {
    color: var(--danger);
    font-weight: 700;
}

.admin-shell .log-time,
.admin-shell .log-stat-label {
    color: var(--muted);
}

.admin-shell .log-time,
.admin-shell .log-stat-label {
    font-size: 11px;
}

.admin-shell .log-stat-label {
    margin-top: 2px;
}

@keyframes admin-spin {
    to {
        transform: rotate(360deg);
    }
}

.admin-shell .spinner {
    animation-name: admin-spin !important;
}

@media (max-width: 760px) {
    .admin-shell .modal {
        padding: 9px !important;
    }

    .admin-shell .modal > .modal-content,
    .admin-shell .modal > .modal-dialog {
        max-height: calc(100vh - 18px) !important;
        border-radius: 12px !important;
    }

    .admin-shell .modal > .modal-content {
        padding: 15px !important;
    }

    .admin-shell .ann-item {
        grid-template-columns: 20px 20px 38px minmax(0, 1fr);
        gap: 8px;
    }

    .admin-shell .ann-actions {
        grid-column: 4 / -1;
        justify-content: flex-start;
    }

    .admin-shell .ann-actions .btn {
        flex: 1 1 auto;
    }

    .admin-shell .privilege-item {
        flex-wrap: wrap;
    }

    .admin-shell .privilege-content {
        flex: 1 1 calc(100% - 110px);
    }

    .admin-shell .privilege-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-shell .block-item {
        grid-template-columns: 20px 38px minmax(0, 1fr);
        align-items: start;
        gap: 8px;
    }

    .admin-shell .block-audience {
        grid-column: 2 / -1;
        justify-content: flex-start;
    }

    .admin-shell .guide-field-grid {
        grid-template-columns: 1fr;
    }

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

@media (hover: hover) and (pointer: fine) {
    .site-nav-link:hover {
        color: var(--text);
        background: var(--surface-solid);
    }

    .theme-toggle:hover,
    .mobile-nav-toggle:hover,
    .hero-action-secondary:hover,
    .btn-secondary:hover,
    .guide-btn-secondary:hover {
        border-color: var(--border-strong) !important;
    }

    .hero-action-primary:hover,
    .cyber-button:hover,
    .btn-primary:hover,
    .guide-btn:hover {
        transform: translateY(-1px);
        filter: brightness(1.06);
    }

    .hero-server-row:hover {
        background: rgba(255, 255, 255, 0.035);
    }

    .sidebar-menu a:hover {
        color: var(--text);
        background: var(--surface-muted);
    }
}

@media (max-width: 767px) {
    .server-widget .server-list {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .server-widget .server-item + .server-item {
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--border);
    }
}

@media (min-width: 901px) {
    .server-widget .server-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 0;
    }

    .server-widget .server-item:nth-child(odd) {
        padding-right: 22px;
    }

    .server-widget .server-item:nth-child(even) {
        padding-left: 22px;
        border-left: 1px solid var(--border);
    }
}

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

    .site-nav-links {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .site-nav-links::-webkit-scrollbar {
        display: none;
    }

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 340px;
    }

    .hero-copy {
        padding: 32px;
    }

    .layout-columns {
        grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.8fr);
    }

    .purchase-workspace {
        grid-template-columns: minmax(0, 1fr) 330px;
    }
}

@media (max-width: 900px) {
    .site-nav-inner {
        grid-template-columns: 1fr auto;
        min-height: 62px;
        padding: 8px 16px;
        gap: 12px;
    }

    .site-nav-links {
        position: absolute;
        top: calc(100% + 8px);
        right: 16px;
        left: 16px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
        padding: 10px;
        border: 1px solid var(--border);
        border-radius: 13px;
        visibility: hidden;
        opacity: 0;
        background: var(--surface-solid);
        box-shadow: var(--shadow);
        transform: translateY(-6px);
        transform-origin: top right;
        pointer-events: none;
        transition: opacity 160ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s linear 180ms;
    }

    .site-nav.mobile-menu-open .site-nav-links {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        transition-delay: 0s;
    }

    .site-nav.mobile-menu-no-motion .site-nav-links {
        transition: none;
    }

    .site-nav-link {
        display: block;
        padding: 10px 11px;
        color: var(--text-soft);
        background: transparent;
        text-align: left;
    }

    .site-actions {
        grid-column: 2;
        grid-row: 1;
    }

    .mobile-nav-toggle {
        display: inline-flex;
    }

    .hero {
        padding: 16px 16px 18px;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-server-panel {
        border-top: 1px solid #253550;
        border-left: 0;
    }

    .site-main {
        padding: 0 16px 36px;
    }

    .layout-columns,
    .purchase-workspace {
        grid-template-columns: 1fr;
    }

    .purchase-workspace {
        padding-bottom: 0;
    }

    .purchase-form > .cyber-button {
        width: 100%;
    }

    .privilege-description-panel {
        height: auto;
        max-height: none;
        overflow: visible;
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .layout-stack > .card:last-child {
        flex: none;
    }

    .admin-header {
        padding-left: 16px;
    }

    .admin-sidebar {
        translate: -100% 0;
        transform: none;
        transition: translate 220ms var(--ease-out);
    }

    .admin-sidebar.show {
        translate: 0 0;
        transform: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .admin-content,
    .admin-footer {
        margin-left: 0;
    }

    .admin-content {
        padding: 84px 16px 32px;
    }

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

    .tariff-editor-heading {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .site-brand-mark {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        border-radius: 10px;
    }

    .site-brand-name {
        max-width: 125px;
        font-size: 14px;
    }

    .theme-toggle {
        width: 40px;
        min-width: 40px;
        padding: 0;
    }

    .theme-toggle [data-theme-label] {
        display: none;
    }

    .site-nav-link {
        padding: 10px;
        font-size: 12px;
    }

    .hero-content {
        min-height: 0;
        border-radius: 15px;
    }

    .hero-copy,
    .hero-server-panel {
        padding: 22px 18px;
    }

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

    .hero-subtitle {
        margin-top: 12px;
        font-size: 14px;
    }

    .hero-actions {
        display: grid;
        margin-top: 18px;
    }

    .hero-action {
        width: 100%;
    }

    .hero-benefits {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        margin-top: 18px;
    }

    .hero-benefits span:last-child {
        grid-column: 1 / -1;
    }

    .hero-server-heading {
        align-items: flex-start;
    }

    .hero-server-row {
        grid-template-columns: 44px minmax(0, 1fr) auto;
        gap: 9px;
    }

    .hero-server-map {
        width: 44px;
        height: 34px;
    }

    .site-shell .content-flow .card,
    .card {
        padding: 16px;
        border-radius: 13px;
    }

    .purchase-card {
        padding: 0 !important;
    }

    .purchase-card > .card-header,
    .purchase-form,
    .privilege-description-panel {
        padding: 16px !important;
    }

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

    .purchase-form > .form-group,
    .purchase-form > button {
        grid-column: 1;
    }

    .purchase-form > .cyber-button {
        width: 100%;
    }

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

    .purchase-selection-summary > span:nth-child(3) {
        grid-column: 1 / -1;
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .connection-guide-content,
    .guide-intro {
        grid-template-columns: 1fr;
    }

    .guide-intro-title,
    .guide-intro p,
    .guide-intro-points {
        grid-column: 1;
        grid-row: auto;
    }

    .guide-intro-points {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 12px;
    }

    .guide-intro-points span:last-child {
        grid-column: 1 / -1;
    }

    .connection-guide-steps {
        grid-template-columns: 1fr;
    }

    .connection-guide-steps li {
        grid-column: 1 !important;
        padding: 9px 0;
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .connection-guide-steps li:first-child {
        border-top: 0;
    }

    .connection-guide-servers {
        grid-column: 1;
        align-items: start;
    }

    .connection-guide-server {
        display: block;
        height: auto !important;
        min-height: 0 !important;
        align-self: start;
    }

    .guide-server-actions,
    .guide-command-actions {
        margin-top: 10px !important;
    }

    .guide-server-top,
    .server-modal-address-row {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .guide-server-top {
        flex-direction: column;
    }

    .guide-server-name {
        flex: 0 1 auto;
    }

    .guide-server-address {
        white-space: normal;
    }

    .server-header-bottom {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .server-map-container {
        width: 90px;
        height: 60px;
    }

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

    .announcement-item {
        grid-template-columns: 38px minmax(0, 1fr);
        align-items: start;
        gap: 10px;
        padding: 12px 6px 12px 10px;
    }

    .announcement-item::before {
        top: 12px;
        bottom: 12px;
    }

    .announcement-featured {
        margin-bottom: 4px;
        padding: 13px 11px 13px 13px;
    }

    .announcement-icon {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .announcement-meta {
        flex-wrap: wrap;
        gap: 5px;
    }

    .announcement-title {
        font-size: 13px;
    }

    .announcement-text {
        font-size: 11.5px;
        line-height: 1.45;
    }

    .vk-widget-wrapper {
        height: min(720px, 160vw);
        min-height: 620px;
    }

    .footer {
        display: grid;
        gap: 5px;
        padding: 18px 16px;
    }

    .modal,
    .profile-modal {
        padding: 9px;
    }

    .modal-content,
    .profile-modal-content,
    .modal-dialog {
        max-height: calc(100vh - 18px);
        border-radius: 13px;
    }

    .server-modal-summary,
    .ban-modal-summary,
    .ban-detail-sections {
        grid-template-columns: 1fr;
    }

    .server-modal-map {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .server-modal-metrics,
    .server-modal-metrics:has(> .server-modal-metric:nth-child(3):last-child),
    .server-modal-metrics:has(> .server-modal-metric:nth-child(4):last-child) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .server-modal-metric {
        padding: 10px 12px;
    }

    .server-modal-metric:nth-child(odd) {
        border-left: 0;
    }

    .server-modal-metric:nth-child(n + 3) {
        border-top: 1px solid var(--border);
    }

    .server-modal-metric:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .server-modal-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .server-modal-actions .btn {
        width: 100%;
    }

    .ban-detail-item {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .ban-detail-item dd {
        text-align: left;
    }

    .header-right > .btn-secondary,
    .site-subtitle,
    .user-btn > span:not(.user-avatar) {
        display: none;
    }

    .admin-header {
        height: 62px;
        padding-right: 12px;
    }

    .admin-content {
        padding: 78px 12px 28px;
    }

    .admin-content > h1 {
        font-size: 22px;
    }

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

    .stat-card {
        padding: 14px;
    }

    .admin-content .card-body,
    .admin-shell .modal-body {
        padding: 14px;
    }

    .order-detail-hero {
        margin: -14px -14px 14px;
    }

    .order-detail-row {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .tariff-editor-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .tariff-editor-columns {
        display: none;
    }

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

    .duration-field > span {
        display: block;
    }

    .duration-remove {
        grid-column: 1 / -1;
    }

    .login-page {
        padding: 14px;
    }

    .login-container {
        padding: 22px;
    }
}

/* Motion system: one-time spatial reveals and occasional dialog entrances. */
.motion-reveal {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.hero-copy.motion-reveal {
    transform: translate3d(-12px, 0, 0);
}

.hero-server-panel.motion-reveal {
    transform: translate3d(12px, 0, 0);
}

.motion-reveal.motion-in,
.hero-copy.motion-reveal.motion-in,
.hero-server-panel.motion-reveal.motion-in {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.modal.show,
.modal[style*="display: flex"],
.modal[style*="display: block"],
.profile-modal[style*="display: flex"],
.profile-modal[style*="display: grid"],
.profile-modal[style*="display: block"],
#customConfirmDialog[style*="display: flex"],
#customAlertDialog[style*="display: flex"] {
    animation: motion-backdrop-in 160ms var(--ease-out) both;
}

.modal.show > .modal-content,
.modal.show > .modal-dialog,
.modal[style*="display: flex"] > .modal-content,
.modal[style*="display: flex"] > .modal-dialog,
.modal[style*="display: block"] > .modal-content,
.modal[style*="display: block"] > .modal-dialog,
.profile-modal[style*="display: flex"] > .profile-modal-content,
.profile-modal[style*="display: grid"] > .profile-modal-content,
.profile-modal[style*="display: block"] > .profile-modal-content,
#customConfirmDialog[style*="display: flex"] > div,
#customAlertDialog[style*="display: flex"] > div {
    transform-origin: center;
    animation: motion-dialog-in 220ms var(--ease-out) both;
}

@keyframes motion-backdrop-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes motion-dialog-in {
    from {
        opacity: 0;
        transform: translate3d(0, 8px, 0) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes motion-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .motion-reveal,
    .hero-copy.motion-reveal,
    .hero-server-panel.motion-reveal,
    .motion-reveal.motion-in {
        transform: none !important;
        transition: opacity 120ms var(--ease-out) !important;
    }

    .modal.show,
    .modal[style*="display: flex"],
    .modal[style*="display: block"],
    .profile-modal[style*="display: flex"],
    .profile-modal[style*="display: grid"],
    .profile-modal[style*="display: block"],
    #customConfirmDialog[style*="display: flex"],
    #customAlertDialog[style*="display: flex"],
    .modal.show > .modal-content,
    .modal.show > .modal-dialog,
    .modal[style*="display: flex"] > .modal-content,
    .modal[style*="display: flex"] > .modal-dialog,
    .modal[style*="display: block"] > .modal-content,
    .modal[style*="display: block"] > .modal-dialog,
    .profile-modal[style*="display: flex"] > .profile-modal-content,
    .profile-modal[style*="display: grid"] > .profile-modal-content,
    .profile-modal[style*="display: block"] > .profile-modal-content,
    #customConfirmDialog[style*="display: flex"] > div,
    #customAlertDialog[style*="display: flex"] > div {
        transform: none !important;
        animation-name: motion-fade-in !important;
        animation-duration: 120ms !important;
        animation-timing-function: var(--ease-out) !important;
    }
}
