@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
    color-scheme: dark;
    --bg-main: #050b16;
    --bg-deep: #071427;
    --bg-soft: #0d1d33;
    --panel: rgba(10, 20, 38, 0.92);
    --panel-solid: #0d1f36;
    --panel-strong: #122741;
    --stroke: #203756;
    --stroke-soft: #1a2f4d;
    --text: #e8f1fc;
    --muted: #92a6c2;
    --accent: #3dd8a0;
    --accent-2: #64b7ff;
    --warning: #f6b646;
    --danger: #f87070;
    --shadow: 0 20px 45px rgba(2, 8, 20, 0.5);
}

/* Cabinet sidebar and device management refresh */
.user-hub {
    transition: grid-template-columns .18s ease;
}

.user-hub.sidebar-collapsed {
    grid-template-columns: 84px minmax(0, 1fr);
}

.user-hub-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.user-hub-collapse {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(126, 111, 194, 0.28);
    border-radius: 10px;
    color: #d7e8ff;
    background: rgba(8, 10, 28, 0.62);
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.user-hub-collapse:hover {
    border-color: rgba(53, 211, 154, 0.44);
    background: rgba(21, 42, 58, 0.78);
}

.user-hub-collapse svg,
.user-hub-nav svg,
.user-hub-sidebar-bottom svg,
.user-device-action svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.user-hub-nav a,
.user-hub-sidebar-bottom a {
    gap: 10px;
    position: relative;
}

.user-hub-nav a i,
.user-hub-sidebar-bottom a i {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: grid;
    place-items: center;
    color: #a9c9ff;
}

.user-hub.sidebar-collapsed .user-hub-sidebar {
    padding-inline: 12px;
}

.user-hub.sidebar-collapsed .user-hub-brand strong,
.user-hub.sidebar-collapsed .user-hub-nav a span,
.user-hub.sidebar-collapsed .user-hub-sidebar-bottom > span,
.user-hub.sidebar-collapsed .user-hub-sidebar-bottom a span {
    display: none;
}

.user-hub.sidebar-collapsed .user-hub-collapse svg {
    transform: rotate(180deg);
}

.user-hub.sidebar-collapsed .user-hub-nav a,
.user-hub.sidebar-collapsed .user-hub-sidebar-bottom a {
    justify-content: center;
    padding-inline: 0;
}

.user-hub.sidebar-collapsed .user-hub-nav a::after,
.user-hub.sidebar-collapsed .user-hub-sidebar-bottom a::after {
    content: attr(data-nav-label);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    z-index: 30;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(126, 111, 194, 0.3);
    border-radius: 9px;
    padding: 0 9px;
    color: #f8fafc;
    background: rgba(5, 8, 20, 0.96);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(4px, -50%);
    transition: opacity .14s ease, transform .14s ease;
}

.user-hub.sidebar-collapsed .user-hub-nav a:hover::after,
.user-hub.sidebar-collapsed .user-hub-sidebar-bottom a:hover::after {
    opacity: 1;
    transform: translate(0, -50%);
}

.user-hub-device-limit {
    border: 1px solid rgba(53, 211, 154, 0.28);
    border-radius: 999px;
    padding: 6px 10px;
    color: #baf7dc;
    background: rgba(53, 211, 154, 0.1);
    font-size: 13px;
}

.user-hub-device-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.user-hub-device-summary article {
    border: 1px solid rgba(87, 90, 136, 0.24);
    border-radius: 14px;
    padding: 12px;
    background: rgba(10, 13, 31, 0.58);
}

.user-hub-device-summary strong {
    display: block;
    color: #f8fafc;
    font-size: 24px;
    line-height: 1;
}

.user-hub-device-summary span {
    display: block;
    margin-top: 5px;
    color: #aeb8d4;
    font-size: 12px;
}

.user-hub-device-item {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.user-hub-device-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-hub-device-meta {
    display: grid;
    justify-items: end;
    gap: 4px;
    color: #9ca3c1;
    font-size: 12px;
}

.user-hub-device-state {
    border: 1px solid rgba(53, 211, 154, 0.28);
    border-radius: 999px;
    padding: 4px 8px;
    color: #baf7dc;
    background: rgba(53, 211, 154, 0.1);
    font-weight: 800;
}

.user-hub-device-item.disabled .user-hub-device-state {
    border-color: rgba(148, 163, 184, 0.24);
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.08);
}

.user-device-action {
    position: relative;
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(126, 111, 194, 0.24);
    border-radius: 10px;
    color: #cfe4ff;
    background: rgba(8, 10, 28, 0.62);
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.user-device-action:hover {
    border-color: rgba(53, 211, 154, 0.42);
    background: rgba(21, 42, 58, 0.78);
    transform: translateY(-1px);
}

.user-device-action.danger {
    color: #fecdd3;
}

.user-device-action > span {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    border: 1px solid rgba(126, 111, 194, 0.28);
    border-radius: 9px;
    padding: 6px 8px;
    color: #f8fafc;
    background: rgba(5, 8, 20, 0.96);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity .14s ease, transform .14s ease;
}

.user-device-action:hover > span,
.user-device-action:focus-visible > span {
    opacity: 1;
    transform: translate(-50%, 0);
}

.not-found-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    color: #f8fafc;
    background:
        radial-gradient(680px 420px at 80% 10%, rgba(53, 211, 154, 0.08), transparent 68%),
        radial-gradient(620px 380px at 16% 22%, rgba(102, 166, 255, 0.09), transparent 70%),
        linear-gradient(180deg, #070a16, #050714 52%, #050511);
}

.not-found-card {
    width: min(720px, 100%);
    border: 1px solid rgba(126, 111, 194, 0.26);
    border-radius: 22px;
    padding: clamp(28px, 5vw, 52px);
    background: rgba(8, 10, 28, 0.78);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.not-found-code {
    display: inline-flex;
    border: 1px solid rgba(53, 211, 154, 0.28);
    border-radius: 999px;
    padding: 6px 11px;
    color: #9df0cd;
    background: rgba(53, 211, 154, 0.1);
    font-weight: 900;
}

.not-found-card h1 {
    margin: 18px 0 10px;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1;
}

.not-found-card p {
    margin: 0;
    max-width: 560px;
    color: #b9c1d8;
    font-size: 16px;
    line-height: 1.6;
}

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

.not-found-actions a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(126, 111, 194, 0.28);
    border-radius: 12px;
    padding: 0 15px;
    color: #f8fafc;
    background: rgba(15, 12, 45, 0.56);
    font-weight: 800;
}

.not-found-actions a.primary {
    color: #061420;
    border-color: rgba(53, 211, 154, 0.7);
    background: linear-gradient(135deg, #35d39a, #66a6ff);
}

@media (max-width: 760px) {
    .user-hub.sidebar-collapsed,
    .user-hub {
        grid-template-columns: 1fr;
    }

    .user-hub-sidebar-head {
        display: none;
    }

    .user-hub-nav a i,
    .user-hub-sidebar-bottom a i {
        display: none;
    }

    .user-hub-device-summary,
    .user-hub-device-item {
        grid-template-columns: 1fr;
    }

    .user-hub-device-meta {
        justify-items: start;
    }

    .user-hub-device-actions {
        justify-content: flex-start;
    }
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(1100px 640px at -5% -10%, rgba(100, 183, 255, 0.16), transparent 68%),
        radial-gradient(800px 640px at 110% 0%, rgba(61, 216, 160, 0.16), transparent 64%),
        linear-gradient(180deg, var(--bg-main), var(--bg-deep));
    text-rendering: optimizeLegibility;
}

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

a:hover {
    text-decoration: none;
}

button {
    font-family: inherit;
}

.layout-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    position: relative;
}

.app-sidebar {
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 22px 12px;
    background:
        linear-gradient(180deg, rgba(5, 12, 24, 0.96), rgba(8, 17, 31, 0.98));
    border-right: 1px solid var(--stroke-soft);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.02);
    z-index: 20;
}

.sidebar-header {
    padding: 6px 8px 0;
}

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

.sidebar-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: #080d22;
    color: #081423;
    font-family: "Sora", "Space Grotesk", sans-serif;
    font-weight: 700;
    letter-spacing: 0.4px;
    box-shadow: 0 10px 24px rgba(100, 183, 255, 0.3);
    overflow: hidden;
}

.sidebar-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar-brand-text strong {
    font-family: "Sora", "Space Grotesk", sans-serif;
    font-size: 17px;
    letter-spacing: 0.35px;
}

.sidebar-brand-text small {
    font-size: 12px;
    color: var(--muted);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 6px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    border-radius: 10px;
    border: 1px solid transparent;
    color: var(--muted);
    padding: 0 11px;
    font-size: 13px;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.sidebar-link:hover {
    color: var(--text);
    border-color: var(--stroke);
    background: rgba(15, 31, 52, 0.75);
    transform: translateX(2px);
}

.sidebar-link.active {
    color: var(--text);
    border-color: rgba(61, 216, 160, 0.4);
    background:
        linear-gradient(135deg, rgba(100, 183, 255, 0.24), rgba(61, 216, 160, 0.18));
}

.sidebar-footer {
    margin-top: auto;
    padding: 0 6px 4px;
}

.sidebar-link.danger {
    color: #ffb0b0;
}

.sidebar-link.danger:hover {
    border-color: rgba(248, 112, 112, 0.35);
    background: rgba(248, 112, 112, 0.12);
}

.layout-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.layout-topbar {
    position: sticky;
    top: 0;
    z-index: 15;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 26px;
    border-bottom: 1px solid var(--stroke-soft);
    backdrop-filter: blur(12px);
    background: rgba(6, 14, 27, 0.78);
}

.sidebar-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: rgba(15, 29, 48, 0.85);
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 0 10px;
    cursor: default;
}

.sidebar-toggle span {
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 999px;
}

.topbar-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.topbar-copy strong {
    font-family: "Sora", "Space Grotesk", sans-serif;
    font-size: 16px;
    letter-spacing: 0.24px;
}

.topbar-copy span {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-pulse {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    padding: 7px 12px;
    color: var(--muted);
    font-size: 12px;
    background: rgba(10, 23, 40, 0.7);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(61, 216, 160, 0.5);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(61, 216, 160, 0.55);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(61, 216, 160, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(61, 216, 160, 0);
    }
}

.layout-content {
    width: min(1560px, 100%);
    margin: 0 auto;
    padding: 24px 26px 34px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 18;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.mobile-dock {
    display: none;
}

.mobile-dock-link {
    border: 0;
    appearance: none;
    background: transparent;
    color: var(--muted);
    min-height: 44px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    text-align: center;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.mobile-dock-link.active {
    color: var(--text);
    background: linear-gradient(145deg, rgba(100, 183, 255, 0.28), rgba(61, 216, 160, 0.2));
}

.mobile-dock-menu {
    border: 1px solid rgba(100, 183, 255, 0.28);
}

.mobile-fab {
    display: none;
    position: fixed;
    right: 16px;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    min-height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(100, 183, 255, 0.42);
    padding: 0 16px;
    color: #041224;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 12px 32px rgba(4, 14, 28, 0.5);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px) scale(0.96);
    transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
    z-index: 17;
}

.mobile-fab.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.mobile-fab.to-top {
    color: var(--text);
    border-color: rgba(61, 216, 160, 0.48);
    background: linear-gradient(140deg, rgba(100, 183, 255, 0.42), rgba(61, 216, 160, 0.34));
}

.mobile-fab:hover {
    filter: brightness(1.04);
}

.mobile-fab:disabled {
    cursor: not-allowed;
    filter: none;
}

.panel,
.card {
    background:
        linear-gradient(160deg, rgba(14, 27, 48, 0.92), rgba(10, 21, 38, 0.95));
    border: 1px solid var(--stroke-soft);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.panel {
    padding: 18px;
}

.card {
    padding: 22px;
}

.section-title {
    margin: 0 0 14px;
    font-family: "Sora", "Space Grotesk", sans-serif;
    font-size: 23px;
    letter-spacing: 0.2px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(61, 216, 160, 0.46);
    background: rgba(61, 216, 160, 0.16);
    color: #baf6df;
    font-size: 12px;
    padding: 0 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid transparent;
    padding: 0 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #041224;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.btn.secondary {
    border-color: var(--stroke);
    background: rgba(15, 31, 52, 0.82);
    color: var(--text);
}

.btn.secondary:hover {
    background: rgba(18, 38, 64, 0.98);
}

.btn.tiny {
    min-height: 30px;
    border-radius: 9px;
    padding: 0 10px;
    font-size: 12px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.input,
.select,
input,
select,
textarea {
    width: 100%;
    min-height: 40px;
    border-radius: 11px;
    border: 1px solid var(--stroke);
    background: rgba(8, 18, 33, 0.88);
    color: var(--text);
    padding: 0 12px;
    font-size: 14px;
    outline: none;
}

textarea {
    min-height: 84px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.input:focus,
.select:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: rgba(100, 183, 255, 0.65);
    box-shadow: 0 0 0 3px rgba(100, 183, 255, 0.2);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th,
td {
    border-bottom: 1px solid var(--stroke-soft);
    text-align: left;
    padding: 12px 14px;
}

th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.44px;
    color: var(--muted);
    font-weight: 600;
}

tbody tr:hover {
    background: rgba(100, 183, 255, 0.08);
}

.status-active {
    color: var(--accent);
}

.status-expired {
    color: var(--danger);
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.toolbar .field {
    min-width: 200px;
    flex: 1;
}

.groups-page,
.backups-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.group-header-panel,
.backups-header-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.group-actions {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.group-icon-btn,
.group-create-open {
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.group-icon-btn .btn-icon {
    width: 16px;
    height: 16px;
    margin: 0;
}

.group-create-open span {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: inline-grid;
    place-items: center;
    background: rgba(49, 222, 158, 0.16);
    color: #3df6ae;
    font-size: 16px;
    line-height: 1;
}

.group-create-open em {
    font-style: normal;
}

.group-create-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(1, 8, 18, 0.72);
    backdrop-filter: blur(12px);
}

.group-create-backdrop[hidden] {
    display: none;
}

.group-create-modal {
    width: min(560px, 100%);
    border: 1px solid rgba(100, 183, 255, 0.28);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(8, 22, 39, 0.98), rgba(5, 13, 25, 0.98));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.group-create-header,
.group-create-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
}

.group-create-header {
    border-bottom: 1px solid rgba(100, 183, 255, 0.16);
}

.group-create-header span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.group-create-header h2 {
    margin: 4px 0 0;
    color: #f4f8ff;
    font-size: 20px;
}

.group-create-close {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(136, 161, 194, 0.24);
    background: rgba(8, 18, 33, 0.8);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}

.group-create-close:hover {
    border-color: rgba(215, 232, 255, 0.44);
    background: rgba(18, 34, 56, 0.94);
}

.group-create-close-x {
    position: relative;
    width: 16px;
    height: 16px;
    display: block;
}

.group-create-close-x::before,
.group-create-close-x::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 1px;
    width: 2px;
    height: 14px;
    border-radius: 999px;
    background: #d8e7fb;
}

.group-create-close-x::before {
    transform: rotate(45deg);
}

.group-create-close-x::after {
    transform: rotate(-45deg);
}

.group-create-body {
    display: grid;
    gap: 14px;
    padding: 18px 20px 6px;
}

.group-create-body label {
    display: grid;
    gap: 8px;
}

.group-create-body label > span {
    color: #b8c8dc;
    font-size: 12px;
    font-weight: 800;
}

.group-create-body small {
    color: var(--muted);
    font-size: 11px;
}

.group-create-server-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #cfe0f3;
    font-size: 12px;
}

.group-create-server-head span {
    color: #8fb1d8;
    font-weight: 800;
}

.group-create-server-list {
    display: grid;
    gap: 8px;
    max-height: 240px;
    overflow: auto;
    padding-right: 2px;
    scrollbar-width: none;
}

.group-create-server-list::-webkit-scrollbar {
    display: none;
}

.group-create-server-option {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 54px;
    border: 1px solid rgba(100, 183, 255, 0.16);
    border-radius: 12px;
    background: rgba(8, 19, 34, 0.68);
    padding: 9px 10px;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.group-create-server-option:hover {
    border-color: rgba(100, 183, 255, 0.34);
    background: rgba(13, 28, 48, 0.86);
}

.group-create-server-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.group-create-server-check {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    border: 1px solid rgba(143, 177, 216, 0.44);
    background: rgba(5, 13, 25, 0.76);
    display: inline-grid;
    place-items: center;
}

.group-create-server-check::after {
    content: "";
    width: 8px;
    height: 12px;
    border: solid #06111f;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.14s ease;
}

.group-create-server-option input:checked + .group-create-server-check {
    border-color: rgba(49, 222, 158, 0.9);
    background: #31de9e;
}

.group-create-server-option input:checked + .group-create-server-check::after {
    transform: rotate(45deg) scale(1);
}

.group-create-server-meta {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.group-create-server-meta strong,
.group-create-server-meta small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-create-server-meta strong {
    color: #f4f8ff;
    font-size: 13px;
}

.group-create-server-meta small,
.group-create-server-empty {
    color: var(--muted);
    font-size: 11px;
}

.group-create-server-empty {
    padding: 12px;
    border: 1px dashed rgba(143, 177, 216, 0.26);
    border-radius: 12px;
    text-align: center;
}

.group-create-footer {
    border-top: 1px solid rgba(100, 183, 255, 0.12);
}

.group-create-footer span {
    min-width: 0;
    margin-right: auto;
    color: #ffc65c;
    font-size: 12px;
}

.compact-groups-page {
    gap: 12px;
}

.group-quick-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 38px;
    border: 1px solid var(--stroke-soft);
    border-radius: 12px;
    background: rgba(8, 19, 34, 0.68);
    padding: 8px 12px;
    color: #cfe0f3;
    font-size: 12px;
}

.group-quick-summary span:last-child {
    color: var(--muted);
}

.group-accordion-list {
    display: grid;
    gap: 9px;
}

.group-accordion-card {
    overflow: hidden;
    border: 1px solid rgba(80, 98, 128, 0.42);
    border-radius: 12px;
    background: rgba(8, 18, 33, 0.86);
    transition: border-color 0.18s ease, background 0.18s ease;
}

.group-accordion-card.expanded {
    border-color: rgba(100, 183, 255, 0.46);
    background: rgba(9, 21, 38, 0.94);
}

.group-accordion-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 10px;
}

.group-accordion-trigger {
    flex: 1;
    min-width: 0;
    min-height: 58px;
    border: 0;
    background: transparent;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    cursor: pointer;
    text-align: left;
}

.group-analytics-open {
    min-height: 34px;
    border: 1px solid rgba(74, 145, 255, 0.38);
    border-radius: 8px;
    padding: 0 12px;
    color: #dbeaff;
    background: rgba(31, 111, 235, 0.12);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.group-analytics-open:hover {
    border-color: rgba(74, 145, 255, 0.72);
    background: rgba(31, 111, 235, 0.22);
    transform: translateY(-1px);
}

.group-accordion-trigger:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(100, 183, 255, 0.26);
}

.group-accordion-title,
.group-accordion-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.group-accordion-title strong {
    width: 40px;
    min-width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(100, 183, 255, 0.22);
    background: rgba(11, 25, 44, 0.94);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Sora", "Space Grotesk", sans-serif;
    font-size: 15px;
}

.group-accordion-title small {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.group-accordion-meta {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.group-accordion-meta > span:not(.load-pill) {
    min-height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(136, 161, 194, 0.22);
    background: rgba(7, 15, 28, 0.72);
    color: #bcd0e8;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    font-size: 11px;
}

.group-accordion-meta i {
    width: 8px;
    height: 8px;
    border-right: 2px solid #9fb7d3;
    border-bottom: 2px solid #9fb7d3;
    transform: rotate(45deg);
    transition: transform 0.18s ease;
}

.group-accordion-card.expanded .group-accordion-meta i {
    transform: rotate(225deg);
}

.group-accordion-menu {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.22s ease, opacity 0.18s ease;
}

.group-accordion-menu.expanded {
    grid-template-rows: 1fr;
    opacity: 1;
}

.group-accordion-menu-inner {
    min-height: 0;
    overflow: hidden;
    border-top: 0 solid rgba(80, 98, 128, 0.3);
    padding: 0 12px;
    transition: padding 0.22s ease, border-width 0.22s ease;
}

.group-accordion-menu.expanded .group-accordion-menu-inner {
    border-top-width: 1px;
    padding: 10px 12px 12px;
}

.group-light-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.group-light-stats span {
    min-height: 54px;
    border: 1px solid rgba(100, 183, 255, 0.16);
    border-radius: 10px;
    background: rgba(6, 15, 28, 0.72);
    padding: 9px 10px;
}

.group-light-stats strong,
.group-light-stats small {
    display: block;
}

.group-light-stats strong {
    font-size: 16px;
    line-height: 1.1;
}

.group-light-stats small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.group-accordion-servers {
    display: grid;
    gap: 8px;
}

.group-accordion-server {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(140px, 220px);
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(80, 98, 128, 0.38);
    border-radius: 10px;
    background: rgba(6, 16, 30, 0.72);
    padding: 9px 10px;
}

.group-accordion-server.missing {
    border-color: rgba(248, 112, 112, 0.38);
    background: rgba(248, 112, 112, 0.08);
}

.group-accordion-server-main {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.group-server-flag {
    width: 28px;
    min-width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(12, 28, 48, 0.9);
    display: inline-grid;
    place-items: center;
}

.group-server-flag img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.group-server-flag-fallback {
    color: #9fc7ff;
    font-size: 10px;
    font-weight: 900;
}

.group-order-name {
    display: flex;
    align-items: center;
    gap: 6px;
}

.group-order-flag {
    display: inline-flex;
}

.group-order-flag .group-server-flag-fallback {
    display: inline-grid;
    width: 24px;
    height: 18px;
    place-items: center;
    border-radius: 4px;
    background: rgba(12, 28, 48, 0.9);
}

.group-order-flag img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.group-accordion-server-main strong,
.group-accordion-server-main small {
    display: block;
    min-width: 0;
}

.group-accordion-server-main strong {
    color: #edf6ff;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-accordion-server-main small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.group-accordion-server-load {
    display: grid;
    gap: 5px;
}

.group-accordion-server-load em {
    justify-self: end;
    font-style: normal;
    font-weight: 800;
    font-size: 12px;
}

.group-accordion-server-load em.good { color: #3df6ae; }
.group-accordion-server-load em.warning { color: #ffc65c; }
.group-accordion-server-load em.critical { color: #ff9a9a; }

.group-analytics-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1800;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(2, 8, 18, 0.78);
    backdrop-filter: blur(8px);
}

.group-analytics-backdrop[hidden] {
    display: none;
}

.group-analytics-modal {
    width: min(1180px, 100%);
    max-height: min(900px, calc(100vh - 48px));
    overflow: hidden;
    border: 1px solid rgba(68, 141, 216, 0.48);
    border-radius: 14px;
    color: #edf6ff;
    background:
        radial-gradient(circle at 12% 0%, rgba(29, 110, 226, 0.08), transparent 28%),
        #071426;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58), 0 0 50px rgba(33, 118, 218, 0.08);
}

.group-analytics-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px 18px;
    border-bottom: 1px solid rgba(80, 113, 153, 0.28);
    background:
        linear-gradient(90deg, rgba(16, 43, 74, 0.98), rgba(8, 25, 46, 0.98));
}

.group-analytics-kicker,
.group-analytics-panel-head span {
    color: #6faeff;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.group-analytics-header h2 {
    margin: 4px 0;
    font-size: 24px;
}

.group-analytics-header p {
    margin: 0;
    color: #8fa8c3;
    font-size: 13px;
}

.group-analytics-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.group-analytics-refresh {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(90, 132, 179, 0.28);
    border-radius: 8px;
    padding: 0 12px;
    color: #b9cce1;
    background: rgba(4, 14, 27, 0.58);
    font: inherit;
    font-size: 11px;
    cursor: pointer;
    transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.group-analytics-refresh img {
    width: 14px;
    height: 14px;
    filter: invert(74%) sepia(18%) saturate(499%) hue-rotate(169deg) brightness(91%);
}

.group-analytics-refresh:hover {
    border-color: rgba(64, 155, 255, 0.62);
    color: #e4f1ff;
    background: rgba(25, 82, 145, 0.18);
}

.group-analytics-close {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(123, 151, 186, 0.28);
    border-radius: 8px;
    background: rgba(4, 14, 27, 0.7);
    cursor: pointer;
}

.group-analytics-close img {
    width: 16px;
    height: 16px;
    filter: invert(89%) sepia(17%) saturate(348%) hue-rotate(172deg) brightness(103%);
}

.group-analytics-close:hover {
    border-color: rgba(248, 112, 112, 0.58);
    color: #ffb1b1;
}

.group-analytics-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    min-width: 0;
    max-height: calc(min(900px, 100vh - 48px) - 94px);
    overflow: auto;
    padding: 18px 22px 24px;
}

.group-analytics-content > *,
.group-analytics-kpis > *,
.group-analytics-grid > * {
    min-width: 0;
}

.group-analytics-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.group-analytics-kpis article,
.group-analytics-panel {
    border: 1px solid rgba(80, 120, 166, 0.3);
    border-radius: 10px;
    background:
        linear-gradient(145deg, rgba(11, 31, 55, 0.96), rgba(5, 17, 32, 0.94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.group-analytics-kpis article {
    --analytics-tone: #4f80ff;
    --analytics-tone-rgb: 79, 128, 255;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    min-height: 102px;
    padding: 15px 13px;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.group-analytics-kpis article:hover {
    border-color: rgba(var(--analytics-tone-rgb), .48);
    box-shadow: 0 10px 28px rgba(var(--analytics-tone-rgb), .08);
    transform: translateY(-1px);
}

.group-analytics-kpis article > i,
.group-analytics-subscriptions > span > i {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    color: var(--analytics-tone);
    background: rgba(var(--analytics-tone-rgb), .16);
    box-shadow: 0 0 18px rgba(var(--analytics-tone-rgb), .08);
}

.group-analytics-kpis article > i {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.group-analytics-kpis article > i img,
.group-analytics-subscriptions > span > i img {
    width: 19px;
    height: 19px;
    filter: var(--analytics-icon-filter);
}

.group-analytics-kpis article > div {
    min-width: 0;
}

.group-analytics-kpis span,
.group-analytics-kpis strong,
.group-analytics-kpis small {
    display: block;
}

.group-analytics-kpis span {
    min-height: 28px;
    color: #8fa8c3;
    font-size: 10px;
}

.group-analytics-kpis strong {
    margin-top: 2px;
    font-size: 24px;
    line-height: 1;
}

.group-analytics-kpis small {
    margin-top: 7px;
    color: color-mix(in srgb, var(--analytics-tone) 66%, #7e98b5);
    font-size: 10px;
}

.tone-violet {
    --analytics-tone: #7569ff;
    --analytics-tone-rgb: 117, 105, 255;
    --analytics-icon-filter: invert(48%) sepia(91%) saturate(2148%) hue-rotate(224deg) brightness(105%);
}

.tone-green {
    --analytics-tone: #32dda0;
    --analytics-tone-rgb: 50, 221, 160;
    --analytics-icon-filter: invert(79%) sepia(56%) saturate(675%) hue-rotate(103deg) brightness(91%);
}

.tone-blue {
    --analytics-tone: #2996ff;
    --analytics-tone-rgb: 41, 150, 255;
    --analytics-icon-filter: invert(53%) sepia(97%) saturate(2384%) hue-rotate(185deg) brightness(104%);
}

.tone-yellow {
    --analytics-tone: #f5bd32;
    --analytics-tone-rgb: 245, 189, 50;
    --analytics-icon-filter: invert(81%) sepia(85%) saturate(1604%) hue-rotate(334deg) brightness(102%);
}

.tone-purple {
    --analytics-tone: #ad61ff;
    --analytics-tone-rgb: 173, 97, 255;
    --analytics-icon-filter: invert(52%) sepia(82%) saturate(2980%) hue-rotate(244deg) brightness(103%);
}

.tone-cyan {
    --analytics-tone: #22b8f5;
    --analytics-tone-rgb: 34, 184, 245;
    --analytics-icon-filter: invert(66%) sepia(97%) saturate(1798%) hue-rotate(164deg) brightness(100%);
}

.group-analytics-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 14px;
}

.group-analytics-panel {
    padding: 16px;
}

.group-analytics-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.group-analytics-panel-head h3 {
    margin: 4px 0 0;
    color: #f0f6ff;
    font-size: 16px;
}

.group-analytics-panel-head > small {
    color: #7892ae;
    font-size: 10px;
}

.group-analytics-leader {
    background:
        radial-gradient(circle at 100% 0%, rgba(47, 124, 246, 0.2), transparent 44%),
        linear-gradient(145deg, rgba(12, 35, 62, 0.98), rgba(5, 17, 32, 0.94));
}

.group-analytics-leader-value {
    margin: 16px 0 5px;
    font-size: 38px;
    font-weight: 900;
}

.group-analytics-leader-value small {
    color: #8fa8c3;
    font-size: 13px;
}

.group-analytics-leader p {
    margin: 0 0 16px;
    color: #8fa8c3;
    font-size: 12px;
}

.group-analytics-subscriptions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.group-analytics-subscriptions span {
    --analytics-tone: #4f80ff;
    --analytics-tone-rgb: 79, 128, 255;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 70px;
    border: 1px solid rgba(var(--analytics-tone-rgb), .28);
    border-radius: 8px;
    padding: 11px;
    background:
        radial-gradient(circle at 100% 50%, rgba(var(--analytics-tone-rgb), .08), transparent 42%),
        rgba(3, 13, 26, 0.62);
}

.group-analytics-subscriptions b,
.group-analytics-subscriptions small {
    display: block;
}

.group-analytics-subscriptions > span > i {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
}

.group-analytics-subscriptions > span > i img {
    width: 23px;
    height: 23px;
}

.group-analytics-subscriptions b {
    font-size: 20px;
}

.group-analytics-subscriptions small {
    margin-top: 5px;
    color: #8fa8c3;
    font-size: 11px;
}

.group-analytics-server-list {
    display: grid;
    gap: 8px;
}

.group-analytics-server {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px 16px;
    align-items: center;
    border: 1px solid rgba(80, 113, 153, 0.24);
    border-radius: 9px;
    padding: 10px 12px;
    background:
        linear-gradient(90deg, rgba(8, 27, 48, 0.86), rgba(3, 13, 26, 0.72));
    transition: border-color .18s ease, background .18s ease;
}

.group-analytics-server:hover {
    border-color: rgba(45, 145, 238, 0.46);
    background:
        linear-gradient(90deg, rgba(11, 37, 65, 0.92), rgba(4, 17, 32, 0.76));
}

.group-analytics-server.popular {
    border-color: rgba(56, 211, 156, 0.42);
    background: rgba(15, 76, 59, 0.16);
}

.group-analytics-server-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.group-analytics-server-main strong,
.group-analytics-server-main small {
    display: block;
}

.group-analytics-server-main strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-analytics-server-main small {
    margin-top: 3px;
    color: #839ab3;
    font-size: 10px;
}

.group-analytics-server-metrics {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.group-analytics-server-metrics b {
    color: #42e6ad;
    font-size: 13px;
}

.group-analytics-server-metrics small {
    color: #7892ae;
    font-size: 10px;
}

.group-analytics-popular-badge {
    border-radius: 999px;
    padding: 3px 7px;
    color: #3df6ae;
    background: rgba(61, 246, 174, 0.12);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.group-analytics-server-bar {
    grid-column: 1 / -1;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(39, 67, 101, 0.68);
}

.group-analytics-server-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #34cf8c, #51e3a5);
}

.group-analytics-table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
}

.group-analytics-table {
    width: 100%;
    border-collapse: collapse;
}

.group-analytics-table th,
.group-analytics-table td {
    border-bottom: 1px solid rgba(80, 113, 153, 0.2);
    padding: 10px 8px;
    text-align: left;
    font-size: 11px;
}

.group-analytics-table th {
    color: #7892ae;
    font-weight: 700;
}

.group-analytics-table td strong,
.group-analytics-table td small {
    display: block;
}

.group-analytics-table td small {
    margin-top: 2px;
    color: #7892ae;
}

.group-analytics-plan,
.group-analytics-days {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    border-radius: 999px;
    padding: 0 8px;
    font-size: 9px;
    font-weight: 900;
}

.group-analytics-plan {
    color: #a8cfff;
    background: rgba(47, 124, 246, 0.14);
}

.group-analytics-plan.trial {
    color: #d6b1ff;
    background: rgba(158, 80, 255, 0.14);
}

.group-analytics-days.good {
    color: #3df6ae;
    background: rgba(61, 246, 174, 0.1);
}

.group-analytics-days.warning {
    color: #ffc65c;
    background: rgba(255, 198, 92, 0.1);
}

.group-analytics-days.critical {
    color: #ff9a9a;
    background: rgba(255, 105, 105, 0.1);
}

.group-analytics-empty {
    padding: 20px;
    color: #7892ae;
    text-align: center;
}

@media (max-width: 980px) {
    .group-analytics-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .group-accordion-head {
        align-items: stretch;
        padding: 0 8px 8px;
        flex-direction: column;
    }

    .group-accordion-trigger {
        padding-inline: 4px;
    }

    .group-analytics-open {
        width: 100%;
    }

    .group-analytics-backdrop {
        align-items: stretch;
        padding: 0;
    }

    .group-analytics-modal {
        width: 100%;
        max-height: 100vh;
        border: 0;
        border-radius: 0;
    }

    .group-analytics-header {
        padding: 15px 14px;
    }

    .group-analytics-header h2 {
        font-size: 20px;
    }

    .group-analytics-header-actions .btn {
        display: none;
    }

    .group-analytics-content {
        max-height: calc(100vh - 84px);
        padding: 12px 12px 90px;
    }

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

    .group-analytics-kpis article {
        min-height: 94px;
    }

    .group-analytics-grid {
        grid-template-columns: 1fr;
    }

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

    .group-analytics-server-metrics {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .group-analytics-table {
        min-width: 560px;
    }
}

.group-load-bar > span.good {
    background: linear-gradient(90deg, #34cf8c, #51e3a5);
}

.group-load-bar > span.warning {
    background: linear-gradient(90deg, #f4b24b, #f6cf72);
}

.group-load-bar > span.critical {
    background: linear-gradient(90deg, #f26767, #ff8e8e);
}

.group-accordion-edit {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.group-order-shell {
    margin-top: 10px;
}

.group-order-toggle {
    min-height: 32px;
}

.group-order-panel {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.2s ease, opacity 0.16s ease, margin-top 0.2s ease;
}

.group-order-panel.expanded {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 8px;
}

.group-order-editor {
    min-height: 0;
    overflow: hidden;
    margin-top: 10px;
    border: 0 solid rgba(80, 98, 128, 0.36);
    border-radius: 10px;
    background: rgba(6, 15, 28, 0.62);
    padding: 0 10px;
    transition: padding 0.2s ease, border-width 0.2s ease;
}

.group-order-panel .group-order-editor {
    margin-top: 0;
}

.group-order-panel.expanded .group-order-editor {
    border-width: 1px;
    padding: 10px;
}

.group-order-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.group-order-head strong {
    font-size: 13px;
    color: #edf6ff;
}

.group-order-head small {
    color: var(--muted);
    font-size: 11px;
}

.group-order-list {
    display: grid;
    gap: 6px;
}

.group-order-row {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    border: 1px solid rgba(100, 183, 255, 0.14);
    border-radius: 9px;
    background: rgba(8, 19, 34, 0.72);
    padding: 6px 7px;
}

.group-order-index {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    display: inline-grid;
    place-items: center;
    background: rgba(100, 183, 255, 0.12);
    color: #d6e8ff;
    font-size: 11px;
    font-weight: 700;
}

.group-order-name {
    min-width: 0;
    color: #d8e7fb;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.group-order-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.group-order-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(136, 161, 194, 0.28);
    background: rgba(9, 23, 41, 0.94);
    color: #d6e8ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.group-order-btn:hover {
    border-color: rgba(100, 183, 255, 0.44);
    background: rgba(17, 39, 66, 0.98);
}

.group-order-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.group-order-btn.danger {
    color: #ffb8b8;
    border-color: rgba(248, 112, 112, 0.3);
}

.group-order-add {
    display: grid;
    grid-template-columns: minmax(90px, 150px) auto auto;
    gap: 8px;
    margin-top: 8px;
}

.group-order-add-input {
    min-height: 32px;
    font-size: 12px;
}

.group-remnawave-squad {
    margin-top: 10px;
}

.group-squad-editor {
    border-width: 1px;
    padding: 10px;
}

.group-squad-form {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(160px, 0.75fr) auto;
    gap: 8px;
    align-items: center;
}

.group-squad-form .input {
    min-height: 32px;
    font-size: 12px;
}

.group-tab-strip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: rgba(9, 20, 37, 0.86);
}

.group-tab-btn {
    min-height: 34px;
    border-radius: 9px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    padding: 0 12px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.group-tab-btn.active {
    color: #041224;
    border-color: rgba(100, 183, 255, 0.45);
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

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

.group-tab-panel.active {
    display: block;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.kpi-card {
    border: 1px solid var(--stroke-soft);
    border-radius: 12px;
    background: rgba(8, 19, 34, 0.82);
    padding: 12px;
}

.kpi-card span {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.kpi-card strong {
    display: block;
    margin-top: 6px;
    font-size: 23px;
    line-height: 1.1;
}

.group-server-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.user-group-editor {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.user-group-select {
    min-width: 120px;
    width: auto;
    max-width: 180px;
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
}

.user-group-state {
    min-height: 16px;
    font-size: 11px;
}

.user-group-state.error {
    color: #ffadad;
}

.group-server-editor {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.group-server-input {
    min-width: 180px;
    max-width: 240px;
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
}

.group-server-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(8, 19, 34, 0.85);
    padding: 0 10px;
    font-size: 11px;
    color: #d4e4f8;
    white-space: nowrap;
}

.group-server-chip strong {
    font-size: 11px;
}

.group-server-chip em {
    font-style: normal;
    color: var(--muted);
}

.group-server-chip.missing {
    border-color: rgba(248, 112, 112, 0.45);
    background: rgba(248, 112, 112, 0.12);
    color: #ffb8b8;
}

.group-detail-card {
    margin-bottom: 14px;
    border: 1px solid rgba(100, 183, 255, 0.26);
    border-radius: 14px;
    background:
        radial-gradient(520px 220px at 4% 0%, rgba(100, 183, 255, 0.14), transparent 70%),
        radial-gradient(420px 220px at 100% 0%, rgba(61, 216, 160, 0.1), transparent 72%),
        rgba(7, 17, 31, 0.86);
    padding: 14px;
}

.group-detail-head,
.group-detail-columns,
.group-detail-grid {
    display: grid;
    gap: 12px;
}

.group-detail-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.group-detail-kicker,
.cell-note {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.group-detail-head h3 {
    margin: 2px 0 4px;
    font-size: 22px;
}

.group-detail-head p {
    margin: 0;
    color: var(--muted);
}

.group-detail-grid {
    margin-top: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.group-detail-grid article {
    border: 1px solid var(--stroke-soft);
    border-radius: 12px;
    background: rgba(5, 14, 26, 0.72);
    padding: 11px;
}

.group-detail-grid span {
    color: var(--muted);
    font-size: 11px;
}

.group-detail-grid strong {
    display: block;
    margin-top: 5px;
    font-size: 20px;
}

.group-detail-columns {
    margin-top: 14px;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.group-detail-columns h4 {
    margin: 0 0 8px;
    font-size: 13px;
    color: #dcecff;
}

.group-server-detail-list,
.group-active-user-list {
    display: grid;
    gap: 8px;
}

.group-server-detail,
.group-active-user {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    align-items: center;
    min-height: 54px;
    border: 1px solid var(--stroke-soft);
    border-radius: 12px;
    background: rgba(6, 16, 30, 0.78);
    padding: 10px;
}

.group-server-detail strong,
.group-active-user strong {
    display: block;
    color: #edf7ff;
    font-size: 13px;
}

.group-server-detail span,
.group-active-user small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.group-server-detail em,
.group-active-user em {
    font-style: normal;
    font-weight: 800;
    color: #9cd7ff;
}

.group-server-detail em.good { color: #3df6ae; }
.group-server-detail em.warning { color: #ffc65c; }
.group-server-detail em.critical { color: #ff9a9a; }

.group-server-detail.missing {
    border-color: rgba(248, 112, 112, 0.35);
    background: rgba(248, 112, 112, 0.08);
}

.group-load-bar {
    display: block;
    width: 100%;
    grid-column: 1 / -1;
    height: 7px;
    border-radius: 999px;
    background: rgba(42, 64, 96, 0.68);
    overflow: hidden;
}

.group-load-bar i,
.group-load-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.group-active-user {
    grid-template-columns: minmax(0, 1fr) auto auto;
    color: inherit;
}

.group-row {
    cursor: pointer;
}

.group-row.selected td {
    background: rgba(100, 183, 255, 0.08);
}

.group-open-btn {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    display: inline-grid;
    gap: 2px;
    text-align: left;
    cursor: pointer;
}

.group-open-btn span {
    color: var(--muted);
    font-size: 11px;
}

@media (max-width: 900px) {
    .group-detail-head,
    .group-detail-grid,
    .group-detail-columns {
        grid-template-columns: 1fr;
    }

    .group-active-user {
        grid-template-columns: minmax(0, 1fr);
    }
}

.servers-page {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.server-lifecycle-panel {
    background:
        radial-gradient(640px 300px at 5% 0%, rgba(100, 183, 255, 0.2), transparent 65%),
        radial-gradient(620px 280px at 100% 0%, rgba(61, 216, 160, 0.18), transparent 65%),
        linear-gradient(160deg, rgba(14, 27, 48, 0.95), rgba(10, 21, 38, 0.96));
    border-color: rgba(100, 183, 255, 0.3);
}

.server-lifecycle-subcopy {
    margin: 6px 0 0;
    font-size: 12px;
}

.server-lifecycle-toolbar {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.server-tone-legend {
    margin: 4px 0 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.server-tone-chip {
    min-height: 24px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    padding: 0 9px;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.2px;
}

.server-tone-chip.ok {
    color: #96f6cf;
    border-color: rgba(61, 246, 174, 0.35);
    background: rgba(61, 246, 174, 0.1);
}

.server-tone-chip.soon {
    color: #ffe19b;
    border-color: rgba(255, 198, 92, 0.34);
    background: rgba(255, 198, 92, 0.12);
}

.server-tone-chip.warning {
    color: #ffbdbd;
    border-color: rgba(248, 112, 112, 0.4);
    background: rgba(248, 112, 112, 0.15);
}

.server-tone-chip.today {
    color: #ffb6b6;
    border-color: rgba(245, 83, 83, 0.5);
    background: rgba(245, 83, 83, 0.2);
}

.server-tone-chip.expired {
    color: #ff9f9f;
    border-color: rgba(248, 112, 112, 0.58);
    background: rgba(248, 112, 112, 0.2);
}

.server-lifecycle-table {
    min-width: 1160px;
}

.server-row.tone-ok {
    background: rgba(61, 246, 174, 0.04);
}

.server-row.tone-soon {
    background: rgba(255, 198, 92, 0.05);
}

.server-row.tone-warning {
    background: rgba(248, 112, 112, 0.08);
}

.server-row.tone-today {
    background: rgba(245, 83, 83, 0.1);
}

.server-row.tone-expired {
    background: rgba(248, 112, 112, 0.12);
}

.server-link {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(100, 183, 255, 0.28);
    background: rgba(9, 23, 41, 0.9);
    font-size: 11px;
    color: #cfe3ff;
}

.server-hosting-view {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
}

.server-location-cell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.server-flag {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(100, 183, 255, 0.42);
    background: rgba(9, 24, 41, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    font-family: "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", "Twemoji Mozilla", sans-serif;
    font-variant-emoji: emoji;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.server-flag-img {
    display: block;
    width: 18px;
    height: 14px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.server-flag-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}

.server-location-main {
    display: inline-flex;
    flex-direction: column;
    gap: 1px;
}

.server-location-main strong {
    font-size: 13px;
}

.server-location-main span {
    font-size: 10px;
    color: var(--muted);
}

.lifecycle-date-value {
    font-size: 12px;
    color: #d5e8ff;
    white-space: nowrap;
}

.lifecycle-hosting-input,
.lifecycle-expire-input {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
}

.lifecycle-hosting-input {
    min-width: 220px;
}

.lifecycle-expire-input {
    min-width: 178px;
}

.lifecycle-expire-meta {
    margin-top: 5px;
    font-size: 10px;
}

.lifecycle-hosting-link {
    margin-top: 6px;
}

.deadline-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    padding: 0 9px;
    font-size: 11px;
    font-weight: 700;
}

.deadline-pill.ok {
    color: #96f6cf;
    border-color: rgba(61, 246, 174, 0.35);
    background: rgba(61, 246, 174, 0.1);
}

.deadline-pill.soon {
    color: #ffe19b;
    border-color: rgba(255, 198, 92, 0.34);
    background: rgba(255, 198, 92, 0.12);
}

.deadline-pill.warning {
    color: #ffbdbd;
    border-color: rgba(248, 112, 112, 0.4);
    background: rgba(248, 112, 112, 0.15);
}

.deadline-pill.today {
    color: #ffb6b6;
    border-color: rgba(245, 83, 83, 0.5);
    background: rgba(245, 83, 83, 0.2);
}

.deadline-pill.expired {
    color: #ff9f9f;
    border-color: rgba(248, 112, 112, 0.58);
    background: rgba(248, 112, 112, 0.2);
}

.deadline-pill.none {
    color: #b5c7dc;
    border-color: rgba(136, 161, 194, 0.3);
    background: rgba(11, 24, 41, 0.86);
}

.notify-stage-row {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.notify-stage-badge {
    min-height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(100, 183, 255, 0.32);
    background: rgba(9, 23, 41, 0.9);
    color: #cae0fb;
    font-size: 10px;
    font-weight: 700;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
}

.lifecycle-actions {
    display: inline-flex;
    align-items: center;
}

.server-config-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1400;
    background: rgba(4, 10, 18, 0.72);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.server-config-backdrop[hidden] {
    display: none !important;
}

.server-config-modal {
    width: min(760px, 100%);
    max-height: min(860px, calc(100vh - 32px));
    overflow: auto;
    border-radius: 18px;
    border: 1px solid var(--stroke);
    background: linear-gradient(145deg, rgba(9, 24, 43, 0.97), rgba(6, 17, 31, 0.97));
    box-shadow: 0 28px 64px rgba(2, 7, 14, 0.55);
    padding: 18px;
}

/* Group management uses the same side-drawer interaction as the user card. */
.group-management-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    overflow: hidden;
    background: rgba(2, 8, 17, 0.66);
    opacity: 0;
    transition: opacity .22s ease;
}

.group-management-backdrop[hidden] {
    display: none;
}

.group-management-backdrop.is-open {
    opacity: 1;
}

.group-management-backdrop-button {
    position: absolute;
    inset: 0;
    border: 0;
    background: transparent;
    cursor: default;
}

.group-management-panel {
    position: relative;
    z-index: 1;
    width: min(650px, 100vw);
    height: 100dvh;
    overflow-y: auto;
    border-left: 1px solid rgba(110, 145, 190, .22);
    border-radius: 20px 0 0 20px;
    background: linear-gradient(180deg, rgba(8, 19, 34, .99), rgba(5, 13, 25, .99));
    box-shadow: -24px 0 70px rgba(0, 0, 0, .32);
    transform: translateX(100%);
    transition: transform .26s cubic-bezier(.22, 1, .36, 1);
}

.group-management-backdrop.is-open .group-management-panel {
    transform: translateX(0);
}

.group-management-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: max(22px, env(safe-area-inset-top)) 22px 18px;
    border-bottom: 1px solid rgba(112, 146, 190, .16);
    background: rgba(8, 19, 34, .94);
    backdrop-filter: blur(14px);
}

.group-management-kicker,
.group-management-section-kicker {
    display: block;
    color: #75baff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.group-management-header h2 {
    margin: 5px 0 4px;
    color: #f0f7ff;
    font-size: 22px;
}

.group-management-header p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.group-management-close {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border: 1px solid rgba(136, 161, 194, .3);
    border-radius: 10px;
    background: rgba(15, 32, 54, .76);
    cursor: pointer;
}

.group-management-close img {
    width: 18px;
    height: 18px;
    opacity: .78;
}

.group-management-content {
    display: grid;
    gap: 14px;
    padding: 18px 22px 30px;
}

.group-management-section {
    border: 1px solid rgba(100, 135, 180, .2);
    border-radius: 14px;
    background: rgba(7, 17, 31, .74);
    padding: 14px;
}

.group-management-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.group-management-section-head strong,
.group-management-section-head small {
    display: block;
}

.group-management-section-head strong {
    margin-top: 4px;
    color: #edf6ff;
    font-size: 14px;
}

.group-management-section-head small {
    max-width: 440px;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.group-management-section-head > b {
    flex: 0 0 auto;
    border: 1px solid rgba(75, 232, 167, .24);
    border-radius: 999px;
    padding: 5px 9px;
    color: #74f1bd;
    background: rgba(61, 246, 174, .08);
    font-size: 11px;
}

.group-accordion-action {
    border-color: rgba(100, 183, 255, .28) !important;
    color: #9ed0ff !important;
    font-weight: 800;
}

.group-accordion-action b {
    margin-left: 3px;
    font-size: 14px;
    line-height: 1;
}

.group-management-picker-controls {
    display: grid;
    grid-template-columns: minmax(150px, .75fr) minmax(0, 1.25fr);
    gap: 9px;
    margin-bottom: 10px;
}

.group-management-filter-field {
    display: grid;
    gap: 5px;
}

.group-management-filter-field > span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.group-management-filter-field .input {
    min-height: 38px;
    font-size: 12px;
}

.group-management-server-list {
    display: grid;
    gap: 7px;
    max-height: min(42vh, 420px);
    overflow-y: auto;
    padding-right: 3px;
}

.group-management-server-option {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    border: 1px solid rgba(100, 135, 180, .18);
    border-radius: 10px;
    padding: 7px 9px;
    background: rgba(10, 24, 42, .72);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}

.group-management-server-option:hover {
    border-color: rgba(100, 183, 255, .45);
    background: rgba(17, 39, 66, .78);
}

.group-management-server-option.is-attached {
    border-color: rgba(100, 183, 255, .3);
}

.group-management-server-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.group-management-server-check {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    border: 1px solid rgba(136, 161, 194, .42);
    border-radius: 6px;
    background: rgba(5, 13, 25, .72);
}

.group-management-server-option input:checked + .group-management-server-check {
    border-color: #68b8ff;
    background: #287fca;
    box-shadow: 0 0 0 3px rgba(40, 127, 202, .16);
}

.group-management-server-option input:checked + .group-management-server-check::after {
    display: block;
    width: 5px;
    height: 9px;
    margin: 3px 0 0 6px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    content: "";
}

.group-management-server-copy {
    min-width: 0;
    flex: 1;
}

.group-management-server-copy strong,
.group-management-server-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-management-server-copy strong {
    color: #e8f2ff;
    font-size: 12px;
}

.group-management-server-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.group-management-server-option em {
    flex: 0 0 auto;
    color: #8ea7c5;
    font-size: 10px;
    font-style: normal;
}

.group-management-server-option.is-attached em {
    color: #75baff;
}

.group-management-empty {
    border: 1px dashed rgba(136, 161, 194, .28);
    border-radius: 10px;
    padding: 18px 12px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.group-management-section-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.group-management-section-footer > span {
    color: var(--muted);
    font-size: 11px;
}

.group-management-section-footer .btn {
    min-height: 36px;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .group-management-panel {
        width: 100vw;
        border-radius: 16px 0 0 16px;
    }

    .group-management-content {
        padding-inline: 14px;
    }

    .group-management-picker-controls {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .group-management-backdrop,
    .group-management-panel {
        transition: none;
    }
}

.server-edit-modal {
    width: min(720px, 100%);
    padding: 0;
    overflow: auto;
    background:
        radial-gradient(520px 240px at 0% 0%, rgba(76, 134, 255, 0.16), transparent 70%),
        linear-gradient(150deg, rgba(12, 29, 51, 0.99), rgba(6, 16, 29, 0.99));
}

.server-edit-modal .server-config-head {
    align-items: center;
    padding: 22px 22px 18px;
    border-bottom: 1px solid rgba(128, 161, 204, 0.18);
    background: linear-gradient(180deg, rgba(17, 42, 72, 0.66), rgba(10, 24, 42, 0.26));
}

.server-config-heading {
    min-width: 0;
}

.server-config-kicker {
    display: block;
    margin-bottom: 7px;
    color: #79a9ff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.server-config-close {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border: 1px solid rgba(147, 176, 216, 0.24);
    border-radius: 11px;
    color: #c4d4e9;
    background: rgba(5, 15, 28, 0.48);
    font: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.server-config-close:hover {
    border-color: rgba(111, 157, 255, 0.64);
    color: #fff;
    background: rgba(34, 72, 129, 0.48);
    transform: translateY(-1px);
}

.server-edit-modal .server-config-title {
    font-size: 24px;
    letter-spacing: -0.025em;
}

.server-edit-modal .server-config-meta {
    margin-top: 7px;
    color: #9bb2cd;
}

.server-config-section {
    margin: 16px 22px 0;
    padding: 15px;
    border: 1px solid rgba(124, 158, 204, 0.18);
    border-radius: 15px;
    background: rgba(5, 16, 30, 0.42);
    box-shadow: inset 0 1px 0 rgba(189, 218, 255, 0.035);
}

.server-config-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 13px;
}

.server-config-section-heading > div {
    display: grid;
    gap: 3px;
}

.server-config-section-heading strong {
    color: #eaf4ff;
    font-size: 13px;
}

.server-config-section-heading small {
    color: #8fa7c2;
    font-size: 11px;
    line-height: 1.4;
}

.server-config-section-index {
    display: inline-grid;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(112, 160, 255, 0.34);
    border-radius: 9px;
    color: #9fc2ff;
    background: rgba(55, 106, 209, 0.18);
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
    font-weight: 800;
}

.server-config-span-2 {
    grid-column: span 2;
}

.server-edit-modal .server-config-grid {
    margin-top: 0;
}

.server-edit-modal .server-config-field input {
    min-height: 42px;
    border-color: rgba(124, 158, 204, 0.24);
    border-radius: 10px;
    background: rgba(3, 11, 22, 0.7);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.server-edit-modal .server-config-field input:focus {
    outline: none;
    border-color: rgba(104, 153, 255, 0.72);
    background: rgba(4, 15, 29, 0.92);
    box-shadow: 0 0 0 3px rgba(77, 130, 255, 0.12);
}

.server-edit-modal .server-config-advanced {
    margin: 16px 22px 0;
}

.server-edit-modal .server-config-actions {
    margin-top: 18px;
    padding: 15px 22px 20px;
    border-top: 1px solid rgba(128, 161, 204, 0.16);
    background: rgba(4, 13, 25, 0.34);
}

.server-info-modal {
    width: min(920px, 100%);
    max-height: min(820px, calc(100vh - 32px));
    border-radius: 18px;
    border: 1px solid var(--stroke);
    background: linear-gradient(145deg, rgba(9, 24, 43, 0.98), rgba(6, 17, 31, 0.98));
    box-shadow: 0 28px 64px rgba(2, 7, 14, 0.55);
    padding: 18px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 14px;
}

.server-info-body {
    min-height: 0;
    overflow: auto;
    display: grid;
    gap: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.server-info-body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.server-info-hero,
.server-info-section {
    border: 1px solid rgba(57, 82, 116, 0.72);
    border-radius: 14px;
    background: rgba(7, 19, 35, 0.58);
}

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

.server-info-hero > div {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.server-info-hero span,
.server-info-field span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.server-info-hero strong {
    color: var(--text);
    font-size: 18px;
}

.server-info-hero small {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-info-section {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.server-info-section h4 {
    margin: 0;
    color: var(--text);
    font-size: 14px;
}

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

.server-info-field {
    min-width: 0;
    display: grid;
    gap: 8px;
    border: 1px solid rgba(57, 82, 116, 0.58);
    border-radius: 12px;
    background: rgba(4, 13, 25, 0.72);
    padding: 10px;
}

.server-info-field strong,
.server-info-secret code {
    min-width: 0;
    overflow: hidden;
    color: #d9f7ff;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-info-secret {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: center;
    gap: 8px;
}

.server-info-secret-value.is-blurred {
    filter: blur(4px);
    user-select: none;
}

.server-info-secret-value.is-empty {
    color: var(--muted);
}

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

.server-config-title {
    margin: 0;
    font-family: "Sora", "Space Grotesk", sans-serif;
    font-size: 22px;
}

.server-config-meta {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.server-config-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.server-config-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.server-config-field span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.server-config-advanced {
    margin-top: 16px;
    border: 1px solid rgba(88, 126, 173, 0.48);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(22, 49, 79, 0.58), rgba(8, 22, 39, 0.72)),
        rgba(7, 19, 35, 0.58);
    box-shadow: inset 0 1px 0 rgba(161, 203, 255, 0.06), 0 12px 24px rgba(2, 8, 16, 0.14);
    overflow: hidden;
}

.server-advanced-toggle {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 0;
    background: rgba(14, 33, 56, 0.54);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 15px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.server-advanced-toggle img,
.server-advanced-copy img {
    width: 17px;
    height: 17px;
    filter: invert(84%) sepia(14%) saturate(523%) hue-rotate(177deg) brightness(92%) contrast(91%);
}

.server-advanced-toggle span {
    margin-right: auto;
    letter-spacing: 0.01em;
}

.server-advanced-toggle::after {
    content: "+";
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6ee7d2;
    border: 1px solid rgba(57, 220, 184, 0.18);
    background: rgba(28, 215, 174, 0.14);
    font-size: 16px;
    line-height: 1;
}

.server-advanced-toggle:hover,
.server-advanced-toggle[aria-expanded="true"] {
    background: rgba(24, 54, 86, 0.76);
}

.server-advanced-toggle[aria-expanded="true"]::after {
    content: "-";
}

.server-advanced-panel {
    padding: 10px 12px 12px;
    border-top: 1px solid rgba(88, 126, 173, 0.22);
}

.server-advanced-panel[hidden] {
    display: none !important;
}

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

.server-advanced-card {
    min-width: 0;
    border: 1px solid rgba(88, 126, 173, 0.34);
    border-radius: 13px;
    background: rgba(4, 15, 28, 0.64);
    padding: 12px;
    box-shadow: inset 0 1px 0 rgba(161, 203, 255, 0.035);
}

.server-advanced-card span {
    display: block;
    color: #9eb4cf;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 9px;
}

.server-advanced-value-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: center;
    gap: 8px;
}

.server-advanced-value-row code {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #d9f7ff;
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 12px;
}

.server-advanced-input {
    min-width: 0;
    min-height: 38px;
    font-size: 12px;
    border-color: rgba(88, 126, 173, 0.42);
    background: rgba(4, 13, 25, 0.76);
}

.server-advanced-copy {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(57, 82, 116, 0.82);
    border-radius: 10px;
    background: rgba(13, 31, 54, 0.78);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.server-advanced-copy:hover,
.server-advanced-copy.copied {
    border-color: rgba(31, 210, 170, 0.74);
    background: rgba(18, 138, 118, 0.26);
}

.server-advanced-copy:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.server-link-static {
    display: inline-block;
    max-width: 180px;
    overflow: hidden;
    color: #d9f7ff;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.servers-v2-info-btn {
    min-height: 34px;
    border: 1px solid rgba(52, 211, 153, 0.32);
    border-radius: 10px;
    padding: 0 12px;
    color: #dffcf4;
    background: rgba(16, 93, 82, 0.34);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.servers-v2-info-btn:hover {
    border-color: rgba(52, 211, 153, 0.58);
    background: rgba(18, 138, 118, 0.42);
}

.server-config-actions {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.server-config-action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.server-form-error {
    flex: 1 1 auto;
    min-width: 0;
    color: #ffb4b4;
    font-size: 12px;
    line-height: 1.35;
}

body.modal-open {
    overflow: hidden;
}

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

.server-create-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.server-create-span-2 {
    grid-column: span 2;
}

.inline-msg {
    margin: 0;
    border-radius: 12px;
    border: 1px solid transparent;
    padding: 11px 12px;
    font-size: 13px;
}

.inline-msg.success {
    color: #b8f9df;
    border-color: rgba(61, 216, 160, 0.38);
    background: rgba(61, 216, 160, 0.12);
}

.inline-msg.error {
    color: #ffb5b5;
    border-color: rgba(248, 112, 112, 0.4);
    background: rgba(248, 112, 112, 0.12);
}

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

.backup-actions form {
    margin: 0;
}

.empty-note.compact {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
}

.dashboard-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dashboard-page.sales-mode {
    gap: 14px;
}

.dashboard-page.sales-mode .dashboard-header-panel {
    display: none;
}

.dashboard-page.sales-mode .workspace {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.dashboard-page.sales-mode .workspace-tabs {
    position: sticky;
    top: 84px;
}

.dashboard-header-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 20px 22px;
    border-radius: 22px;
    border: 1px solid rgba(100, 183, 255, 0.18);
    background:
        radial-gradient(540px 220px at 0% 0%, rgba(100, 183, 255, 0.16), transparent 65%),
        radial-gradient(420px 180px at 100% 0%, rgba(61, 216, 160, 0.12), transparent 62%),
        linear-gradient(150deg, rgba(10, 22, 40, 0.98), rgba(7, 16, 31, 0.98));
    box-shadow: 0 24px 60px rgba(2, 8, 16, 0.32);
}

.dashboard-header-panel::before,
.dashboard-header-panel::after {
    content: "";
    position: absolute;
    inset: auto;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(22px);
    opacity: 0.7;
}

.dashboard-header-panel::before {
    top: -24px;
    right: 14%;
    width: 160px;
    height: 160px;
    background: rgba(100, 183, 255, 0.13);
}

.dashboard-header-panel::after {
    bottom: -54px;
    left: 6%;
    width: 220px;
    height: 120px;
    background: rgba(61, 216, 160, 0.09);
}

.dashboard-intro {
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.95px;
    color: var(--accent-2);
}

.dashboard-title {
    margin: 7px 0 8px;
    font-family: "Sora", "Space Grotesk", sans-serif;
    font-size: clamp(24px, 3vw, 32px);
    letter-spacing: 0.2px;
}

.dashboard-copy {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
    max-width: 620px;
}

.dashboard-signal-row {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 760px;
}

.dashboard-signal {
    position: relative;
    overflow: hidden;
    min-height: 88px;
    border-radius: 18px;
    border: 1px solid rgba(100, 183, 255, 0.18);
    background:
        linear-gradient(160deg, rgba(11, 24, 42, 0.9), rgba(8, 18, 33, 0.94));
    padding: 14px;
}

.dashboard-signal::before {
    content: "";
    position: absolute;
    inset: auto -18px -34px auto;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: rgba(100, 183, 255, 0.1);
}

.dashboard-signal span {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #90a7c3;
}

.dashboard-signal strong {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 10px;
    font-family: "Sora", "Space Grotesk", sans-serif;
    font-size: 27px;
    line-height: 1.05;
    color: #f5f9ff;
}

.dashboard-signal.live {
    border-color: rgba(61, 216, 160, 0.28);
    background:
        radial-gradient(220px 90px at 100% 0%, rgba(61, 216, 160, 0.16), transparent 65%),
        linear-gradient(160deg, rgba(10, 26, 43, 0.92), rgba(8, 18, 34, 0.95));
}

.dashboard-signal.live::before {
    background: rgba(61, 216, 160, 0.12);
}

.dashboard-signal.live strong {
    color: #68f0bb;
}

.dashboard-actions {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

.period-switch {
    display: inline-flex;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    background: rgba(9, 20, 37, 0.85);
    padding: 4px;
    gap: 4px;
}

.period-btn {
    min-width: 68px;
    min-height: 34px;
    border-radius: 8px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.period-btn.active {
    color: #041224;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    font-weight: 700;
}

.chip-btn {
    min-height: 40px;
    border-radius: 11px;
    border: 1px solid var(--stroke);
    padding: 0 12px;
    background: rgba(12, 27, 47, 0.92);
    color: var(--text);
    font-size: 12px;
    cursor: pointer;
}

.chip-btn:hover {
    border-color: rgba(61, 216, 160, 0.45);
}

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

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

.stat-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--stroke-soft);
    border-radius: 14px;
    padding: 14px;
    background: linear-gradient(170deg, rgba(12, 24, 42, 0.95), rgba(9, 18, 33, 0.96));
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(100, 183, 255, 0.24), rgba(100, 183, 255, 0));
}

.stat-card::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -40px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(100, 183, 255, 0.07);
    filter: blur(4px);
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(100, 183, 255, 0.28);
    box-shadow: 0 16px 36px rgba(2, 8, 16, 0.28);
}

.stat-card span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

.stat-card strong {
    display: block;
    font-size: 26px;
    line-height: 1;
    letter-spacing: 0.3px;
}

.stat-card.success strong {
    color: var(--accent);
}

.stat-card.accent strong {
    color: var(--accent-2);
}

.stat-card.warning strong {
    color: var(--warning);
}

.stat-card.danger strong {
    color: var(--danger);
}

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

.workspace-tabs {
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 16px;
    border: 1px solid var(--stroke-soft);
    background: rgba(9, 19, 34, 0.83);
    padding: 10px;
    scrollbar-width: none;
}

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

.workspace-tab {
    min-height: 40px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    text-align: left;
    font-size: 13px;
    padding: 0 10px;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.workspace-tab:hover {
    color: var(--text);
    border-color: var(--stroke);
    background: rgba(14, 30, 50, 0.75);
}

.workspace-tab.active {
    color: var(--text);
    border-color: rgba(100, 183, 255, 0.45);
    background:
        linear-gradient(140deg, rgba(100, 183, 255, 0.22), rgba(61, 216, 160, 0.2));
}

.workspace-panels {
    min-width: 0;
    touch-action: pan-y;
}

.workspace-panel {
    display: none;
    min-width: 0;
}

.workspace-panel.active {
    display: block;
    animation: panel-fade 0.16s ease;
}

@keyframes panel-fade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.overview-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 14px;
}

.mini-panel {
    border-radius: 14px;
    border: 1px solid var(--stroke-soft);
    padding: 14px;
    background: rgba(9, 20, 36, 0.72);
    box-shadow: 0 14px 34px rgba(2, 8, 16, 0.2);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.mini-panel:hover {
    transform: translateY(-1px);
    border-color: rgba(100, 183, 255, 0.2);
    box-shadow: 0 18px 38px rgba(2, 8, 16, 0.24);
}

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

.panel-head h3 {
    margin: 0;
    font-size: 16px;
    font-family: "Sora", "Space Grotesk", sans-serif;
    letter-spacing: 0.16px;
}

.activity-chart {
    width: 100%;
    height: 220px;
    display: block;
    border-radius: 12px;
    border: 1px solid var(--stroke-soft);
    background:
        radial-gradient(240px 120px at 20% 0%, rgba(100, 183, 255, 0.12), transparent 60%),
        linear-gradient(180deg, rgba(100, 183, 255, 0.07), rgba(61, 216, 160, 0.03));
}

.chart-grid-line {
    stroke: rgba(146, 166, 194, 0.18);
    stroke-width: 1;
}

.chart-grid-label {
    fill: #8ca3c0;
    font-size: 10px;
    text-anchor: end;
}

.chart-grid-label.right {
    text-anchor: start;
}

.chart-axis-label {
    fill: #8ca3c0;
    font-size: 10px;
    text-anchor: middle;
}

#activityArea {
    fill: url(#activityAreaGradient);
}

#activityLine {
    fill: none;
    stroke: #64b7ff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.activity-point {
    fill: #8ad2ff;
    stroke: #06152a;
    stroke-width: 2;
    cursor: pointer;
    transition: transform 0.16s ease, fill 0.16s ease;
}

.chart-wrap,
.sales-chart-wrap {
    position: relative;
}

.chart-tooltip {
    position: absolute;
    z-index: 5;
    min-width: 160px;
    pointer-events: none;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid var(--stroke);
    background: rgba(6, 14, 26, 0.95);
    box-shadow: 0 12px 28px rgba(2, 8, 16, 0.45);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.14s ease, transform 0.14s ease;
}

.chart-tooltip.active {
    opacity: 1;
    transform: translateY(0);
}

.chart-tooltip strong {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
}

.chart-tooltip span {
    display: block;
    font-size: 11px;
    color: var(--muted);
}

.keyline {
    margin-top: 10px;
    border-top: 1px dashed rgba(100, 183, 255, 0.3);
}

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

.activity-stats span {
    font-size: 11px;
    color: var(--muted);
}

.activity-stats strong {
    display: block;
    margin-top: 5px;
    font-size: 20px;
}

#activityAverage {
    font-size: 16px;
    line-height: 1.35;
}

.activity-note {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #9eb7d3;
}

.trend-value.up {
    color: #59f2b5;
}

.trend-value.down {
    color: #ff9f9f;
}

.trend-value.neutral {
    color: #b6c5d9;
}

.pressure-panel {
    border-color: rgba(61, 216, 160, 0.3);
}

.pressure-name {
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
}

.pressure-meter {
    margin-top: 14px;
    width: 100%;
    height: 12px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(6, 14, 25, 0.95);
    overflow: hidden;
}

#topServerMeter {
    width: 0;
    height: 100%;
    transition: width 0.35s ease;
}

#topServerMeter.tone-good {
    background: linear-gradient(90deg, #2ccf89, #49df9f);
}

#topServerMeter.tone-warning {
    background: linear-gradient(90deg, #f6b646, #f39a42);
}

#topServerMeter.tone-critical {
    background: linear-gradient(90deg, #f87070, #f55353);
}

.pressure-meta {
    margin-top: 9px;
    font-size: 13px;
    color: var(--muted);
}

.pressure-panel.warning {
    border-color: rgba(246, 182, 70, 0.52);
}

.pressure-panel.critical {
    border-color: rgba(248, 112, 112, 0.6);
}

.region-list {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.region-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(9, 21, 38, 0.92);
    min-height: 29px;
    padding: 0 10px;
    font-size: 12px;
    color: #c8d8ed;
}

.region-chip em {
    font-style: normal;
    font-size: 11px;
    color: var(--muted);
}

.compact-input {
    max-width: 250px;
}

.group-analytics-copy {
    margin: 6px 0 0;
    max-width: 620px;
    font-size: 13px;
    color: var(--muted);
}

.group-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.group-kpi-card {
    position: relative;
    overflow: hidden;
    min-height: 120px;
    border-radius: 18px;
    border: 1px solid rgba(100, 183, 255, 0.2);
    background:
        radial-gradient(280px 140px at 100% 0%, rgba(100, 183, 255, 0.12), transparent 62%),
        linear-gradient(155deg, rgba(11, 24, 43, 0.95), rgba(7, 17, 31, 0.96));
    padding: 15px 16px;
}

.group-kpi-card::before {
    content: "";
    position: absolute;
    inset: auto -18px -28px auto;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(100, 183, 255, 0.08);
    filter: blur(4px);
}

.group-kpi-card span {
    display: block;
    position: relative;
    z-index: 1;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #93a9c4;
}

.group-kpi-card strong {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 10px;
    font-family: "Sora", "Space Grotesk", sans-serif;
    font-size: 24px;
    line-height: 1.1;
    color: #f5f8ff;
}

.group-kpi-card small {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #afc4dd;
    line-height: 1.45;
}

.group-kpi-card.hot {
    border-color: rgba(255, 198, 92, 0.26);
}

.group-kpi-card.hot::before {
    background: rgba(255, 198, 92, 0.1);
}

.group-kpi-card.reserve {
    border-color: rgba(61, 246, 174, 0.22);
}

.group-kpi-card.reserve::before {
    background: rgba(61, 246, 174, 0.08);
}

.group-kpi-card.idle {
    border-color: rgba(160, 198, 255, 0.25);
}

.group-kpi-card.idle::before {
    background: rgba(160, 198, 255, 0.09);
}

.server-group-toolbar {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.server-group-tabs {
    display: grid;
    gap: 12px;
}

.server-group-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(97, 122, 156, 0.34);
    background:
        radial-gradient(520px 220px at 100% 0%, rgba(100, 183, 255, 0.12), transparent 65%),
        linear-gradient(156deg, rgba(11, 23, 41, 0.96), rgba(7, 16, 30, 0.97));
    padding: 14px;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.server-group-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(100, 183, 255, 0.16), rgba(100, 183, 255, 0));
}

.server-group-card:hover {
    transform: translateY(-1px);
}

.server-group-toggle-zone {
    display: block;
    cursor: pointer;
}

.server-group-card.selected {
    border-color: rgba(100, 183, 255, 0.42);
}

.server-group-card.expanded {
    border-color: rgba(100, 183, 255, 0.54);
    box-shadow: 0 22px 44px rgba(2, 8, 16, 0.32);
}

.server-group-toggle-zone:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(100, 183, 255, 0.22);
    border-radius: 14px;
}

.server-group-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.server-group-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #d8e7fb;
    min-width: 0;
}

.server-group-main strong {
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(18, 41, 71, 0.96), rgba(11, 25, 44, 0.96));
    border: 1px solid rgba(100, 183, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-family: "Sora", "Space Grotesk", sans-serif;
}

.server-group-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.server-group-stats span {
    min-height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(136, 161, 194, 0.28);
    background: rgba(7, 15, 28, 0.9);
    color: #bbd0ea;
    font-size: 12px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
}

.server-group-stats .load-pill {
    padding: 0 10px;
}

.server-group-action {
    min-height: 32px;
    border-radius: 12px;
    border: 1px solid rgba(100, 183, 255, 0.35);
    background: rgba(8, 20, 36, 0.9);
    color: #d2e5ff;
    font-size: 12px;
    font-weight: 600;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.server-group-briefs {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.server-group-brief {
    border-radius: 16px;
    border: 1px solid rgba(100, 183, 255, 0.18);
    background: rgba(8, 19, 34, 0.82);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.server-group-brief span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8fa6c1;
}

.server-group-brief strong {
    font-size: 15px;
    line-height: 1.35;
    color: #f4f8ff;
}

.server-group-brief small {
    font-size: 12px;
    color: #abc1da;
}

.server-group-brief.idle {
    border-color: rgba(160, 198, 255, 0.28);
}

.server-group-brief.reserve {
    border-color: rgba(61, 246, 174, 0.22);
}

.server-group-brief.hot {
    border-color: rgba(255, 198, 92, 0.24);
}

.server-group-servers {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.22s ease, opacity 0.18s ease, margin-top 0.22s ease;
}

.server-group-servers.expanded {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 12px;
}

.server-group-servers-inner {
    min-height: 0;
    overflow: hidden;
}

.group-server-row {
    border-radius: 14px;
    border: 1px solid rgba(80, 98, 128, 0.42);
    background: rgba(8, 19, 34, 0.76);
    padding: 12px;
}

.group-server-row + .group-server-row {
    margin-top: 10px;
}

.group-server-row.idle {
    border-color: rgba(100, 183, 255, 0.38);
    background:
        radial-gradient(320px 140px at 100% 0%, rgba(100, 183, 255, 0.1), transparent 65%),
        rgba(8, 20, 36, 0.88);
}

.group-server-row-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.group-server-location {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.group-server-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.group-server-copy strong {
    font-size: 13px;
    color: #ebf2ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.group-server-copy span {
    font-size: 11px;
    color: #a6bdd6;
}

.group-server-row-side {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.group-server-tag {
    min-height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(136, 161, 194, 0.24);
    background: rgba(9, 23, 41, 0.94);
    color: #cadbf0;
    padding: 0 9px;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}

.group-server-tag.idle {
    color: #cfe3ff;
    border-color: rgba(100, 183, 255, 0.34);
}

.group-server-tag.hot {
    color: #ffd48b;
    border-color: rgba(255, 198, 92, 0.34);
}

.group-server-meter {
    margin-top: 10px;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(68, 84, 109, 0.5);
    background: rgba(6, 14, 27, 0.94);
}

.group-server-meter i {
    display: block;
    height: 100%;
    border-radius: 999px;
}

.group-server-meter i.good {
    background: linear-gradient(90deg, #34cf8c, #51e3a5);
}

.group-server-meter i.warning {
    background: linear-gradient(90deg, #f4b24b, #f6cf72);
}

.group-server-meter i.critical {
    background: linear-gradient(90deg, #f26767, #ff8e8e);
}

.group-server-link {
    min-height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(100, 183, 255, 0.26);
    background: rgba(9, 23, 41, 0.92);
    color: #d6e8ff;
    padding: 0 10px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
}

.group-server-link.muted {
    border-color: rgba(136, 161, 194, 0.18);
    color: #9eb4cc;
    pointer-events: none;
}

.server-table-shell {
    overflow: hidden;
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transform: translateY(-6px);
    transition: grid-template-rows 0.2s ease, opacity 0.16s ease, transform 0.2s ease;
}

.server-table-shell > .table-wrap {
    min-height: 0;
}

.server-table-shell.expanded {
    grid-template-rows: 1fr;
    opacity: 1;
    transform: translateY(0);
}

.table-wrap {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.table-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    pointer-events: none;
    box-shadow:
        inset 12px 0 10px -12px rgba(5, 12, 22, 0.95),
        inset -12px 0 10px -12px rgba(5, 12, 22, 0.95);
}

.app-table {
    min-width: 850px;
}

#table.app-table {
    min-width: 640px;
}

.user-toggle {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.table-location {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
}

.table-location-copy {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
}

.table-location-copy strong {
    font-size: 13px;
    color: #e4eefc;
}

.table-location-copy span {
    font-size: 11px;
    color: var(--muted);
}

.fallback-flag {
    width: 18px;
    text-align: center;
    font-size: 12px;
    opacity: 0.75;
}

.emoji-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    min-width: 18px;
    font-size: 14px;
    line-height: 1;
    font-family: "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", "Twemoji Mozilla", sans-serif;
    font-variant-emoji: emoji;
}

.load-wrap {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 8px;
    align-items: center;
}

.server-load-sub {
    margin-top: 6px;
    font-size: 11px;
    color: var(--muted);
}

.load-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 700;
}

.load-pill.good {
    color: #3df6ae;
    border-color: rgba(61, 246, 174, 0.35);
    background: rgba(61, 246, 174, 0.1);
}

.load-pill.warning {
    color: #ffc65c;
    border-color: rgba(255, 198, 92, 0.34);
    background: rgba(255, 198, 92, 0.12);
}

.load-pill.critical {
    color: #ff9a9a;
    border-color: rgba(255, 154, 154, 0.35);
    background: rgba(255, 154, 154, 0.12);
}

.table-meter {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(7, 15, 28, 0.95);
    overflow: hidden;
}

.table-meter-fill {
    height: 100%;
}

.table-meter-fill.good {
    background: linear-gradient(90deg, #2ccf89, #49df9f);
}

.table-meter-fill.warning {
    background: linear-gradient(90deg, #f6b646, #f39a42);
}

.table-meter-fill.critical {
    background: linear-gradient(90deg, #f87070, #f55353);
}

.table-empty {
    text-align: center;
    color: var(--muted);
    padding: 20px 14px;
}

.hourly-grid {
    display: grid;
    grid-template-columns: repeat(24, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
}

.hour-card {
    border: 1px solid var(--stroke-soft);
    border-radius: 10px;
    background: rgba(9, 20, 36, 0.74);
    padding: 8px 6px;
    min-width: 0;
    transition: transform 0.16s ease, border-color 0.16s ease;
}

.hour-card:hover {
    transform: translateY(-1px);
    border-color: rgba(100, 183, 255, 0.24);
}

.hour-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    margin-bottom: 6px;
    line-height: 1.1;
}

.hour-online {
    font-size: 13px;
    font-weight: 700;
    color: #cfe4ff;
    min-width: 0;
    white-space: nowrap;
}

.hour-time {
    margin-top: 2px;
    font-size: 10px;
    color: var(--muted);
    min-width: 0;
    white-space: nowrap;
}

.hour-track {
    position: relative;
    height: 70px;
    border-radius: 7px;
    background: rgba(4, 11, 22, 0.85);
    border: 1px solid var(--stroke-soft);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.hour-fill {
    width: 100%;
    min-height: 4px;
    border-radius: 6px 6px 0 0;
}

.hour-card.high .hour-fill {
    background: linear-gradient(180deg, #f8be63, #f38f4e);
}

.hour-card.mid .hour-fill {
    background: linear-gradient(180deg, #64b7ff, #4e9de8);
}

.hour-card.low .hour-fill {
    background: linear-gradient(180deg, #46dbb0, #3ab793);
}

.hourly-summary {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.hourly-chip {
    border: 1px solid var(--stroke-soft);
    border-radius: 12px;
    background: rgba(9, 20, 37, 0.8);
    padding: 12px;
}

.hourly-chip span {
    font-size: 11px;
    color: var(--muted);
}

.hourly-chip strong {
    display: block;
    margin-top: 6px;
    font-size: 16px;
}

.sales-insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.sales-kpi {
    border: 1px solid var(--stroke-soft);
    border-radius: 12px;
    padding: 12px;
    background: rgba(8, 19, 34, 0.82);
}

.sales-kpi span {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.sales-kpi strong {
    display: block;
    margin-top: 6px;
    font-size: 22px;
    line-height: 1;
}

.sales-kpi small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

.sales-change.up {
    color: #5bf3b6;
}

.sales-change.down {
    color: #ffaaaa;
}

.sales-change.neutral {
    color: #d1def0;
}

.revenue-columns {
    display: grid;
    grid-template-columns: minmax(380px, 0.95fr) minmax(0, 1.4fr);
    gap: 16px;
    align-items: start;
}

.revenue-left,
.revenue-right {
    min-width: 0;
}

.sales-revenue-panel {
    position: relative;
    overflow: hidden;
}

.sales-control-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-content: center;
    min-width: 0;
    min-height: 70px;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(12, 25, 45, 0.96), rgba(7, 16, 30, 0.96));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 18px 44px rgba(0, 0, 0, 0.26);
}

.sales-control-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.sales-control-copy span,
.sales-control-copy small,
.sales-control-panel p {
    color: var(--muted);
}

.sales-control-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
}

.sales-control-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.sales-control-actions .quick-action {
    min-height: 34px;
    justify-content: center;
    border-radius: 9px;
    padding: 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
}

.sales-control-actions .quick-action.active {
    border-color: rgba(99, 102, 241, 0.72);
    background: rgba(79, 70, 229, 0.24);
    color: #fff;
}

.sales-control-panel p {
    margin: 0;
    min-height: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
}

.sales-control-panel p.error {
    color: var(--danger);
}

.sales-revenue-head {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(39, 66, 97, 0.7);
}

.revenue-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.revenue-right .sales-insights {
    margin-bottom: 0;
}

.dashboard-page.sales-mode .sales-revenue-panel,
.dashboard-page.sales-mode .workspace-panel[data-panel="revenue"] {
    padding: 16px;
    border-color: rgba(35, 61, 90, 0.95);
    background: linear-gradient(170deg, rgba(7, 17, 32, 0.96), rgba(6, 15, 29, 0.98));
}

.dashboard-page.sales-mode .revenue-columns,
.dashboard-page.sales-mode .workspace-panel[data-panel="revenue"] .revenue-columns {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.08fr);
    gap: 14px;
    align-items: start;
}

.dashboard-page.sales-mode .sales-finance-column,
.dashboard-page.sales-mode .workspace-panel[data-panel="revenue"] .revenue-left,
.dashboard-page.sales-mode .sales-metrics-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.dashboard-page.sales-mode .workspace-panel[data-panel="revenue"] .revenue-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.dashboard-page.sales-mode .finance-card,
.dashboard-page.sales-mode .workspace-panel[data-panel="revenue"] .finance-inline-block {
    border: 1px solid var(--stroke-soft);
    border-radius: 14px;
    background: linear-gradient(175deg, rgba(10, 23, 41, 0.84), rgba(7, 17, 33, 0.86));
    padding: 12px;
}

.dashboard-page.sales-mode .finance-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-page.sales-mode .finance-field-wide {
    grid-column: 1 / -1;
}

.dashboard-page.sales-mode .finance-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    align-self: stretch;
}

.dashboard-page.sales-mode .finance-actions .btn {
    min-width: 132px;
    max-width: 100%;
    white-space: nowrap;
}

.dashboard-page.sales-mode .finance-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-page.sales-mode .sales-insights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-page.sales-mode .sales-kpi,
.dashboard-page.sales-mode .workspace-panel[data-panel="revenue"] .sales-kpi,
.dashboard-page.sales-mode .sales-chart-shell,
.dashboard-page.sales-mode .workspace-panel[data-panel="revenue"] .sales-chart-shell,
.dashboard-page.sales-mode .sales-top-item,
.dashboard-page.sales-mode .workspace-panel[data-panel="revenue"] .sales-top-item,
.dashboard-page.sales-mode .finance-kpi-card,
.dashboard-page.sales-mode .workspace-panel[data-panel="revenue"] .finance-kpi-card,
.dashboard-page.sales-mode .finance-chart-shell,
.dashboard-page.sales-mode .workspace-panel[data-panel="revenue"] .finance-chart-shell {
    border-color: rgba(40, 68, 101, 0.88);
    background: linear-gradient(175deg, rgba(9, 21, 38, 0.9), rgba(7, 17, 31, 0.88));
}

.dashboard-page.sales-mode .sales-chart-shell {
    padding: 14px;
}

.dashboard-page.sales-mode .sales-chart {
    min-height: 320px;
}

.dashboard-page.sales-mode .sales-top-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sales-chart-shell {
    border: 1px solid var(--stroke-soft);
    border-radius: 14px;
    background: rgba(8, 19, 34, 0.78);
    padding: 12px;
}

.sales-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

.sales-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.bars {
    background: linear-gradient(180deg, #f8be63, #ea745c);
}

.legend-dot.line {
    background: linear-gradient(180deg, #64b7ff, #3dd8a0);
}

.sales-chart {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    border: 1px solid var(--stroke-soft);
    background: linear-gradient(180deg, rgba(16, 31, 51, 0.5), rgba(8, 18, 30, 0.35));
}

.sales-bar {
    fill: url(#salesBarGradient);
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.sales-bar:hover {
    opacity: 0.85;
}

#salesLine {
    fill: none;
    stroke: url(#salesLineGradient);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sales-point {
    fill: #7ad6ff;
    stroke: #061224;
    stroke-width: 2;
    cursor: pointer;
}

.sales-top-block {
    margin-top: 12px;
}

.sales-top-block h4 {
    margin: 0 0 10px;
    font-size: 14px;
}

.sales-top-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.sales-top-item {
    border: 1px solid var(--stroke-soft);
    border-radius: 11px;
    background: rgba(8, 19, 34, 0.82);
    padding: 10px;
}

.sales-top-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
}

.sales-top-head strong {
    font-size: 12px;
}

.sales-top-meter {
    margin-top: 8px;
    height: 6px;
    border-radius: 999px;
    border: 1px solid var(--stroke-soft);
    background: rgba(4, 11, 22, 0.9);
    overflow: hidden;
}

.sales-top-meter i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #64b7ff, #3dd8a0);
}

.sales-top-item small {
    display: block;
    margin-top: 7px;
    font-size: 11px;
    color: var(--muted);
}

.finance-panel-head {
    margin-bottom: 10px;
}

.finance-inline-block {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.finance-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    align-items: end;
    margin-bottom: 4px;
}

.finance-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.finance-field span {
    color: var(--muted);
    font-size: 11px;
}

.finance-field-wide {
    grid-column: 1 / -1;
}

.finance-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    grid-column: 1 / -1;
}

.finance-form-status {
    margin-top: 2px;
    margin-bottom: 10px;
}

.finance-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.finance-kpi-card {
    border: 1px solid var(--stroke-soft);
    border-radius: 12px;
    padding: 12px;
    background: rgba(8, 19, 34, 0.82);
}

.finance-kpi-card span {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.finance-kpi-card strong {
    display: block;
    margin-top: 6px;
    font-size: 21px;
    line-height: 1;
}

.finance-kpi-card small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 11px;
}

.finance-profit-value.up {
    color: #5bf3b6;
}

.finance-profit-value.down {
    color: #ffaaaa;
}

.finance-chart-shell {
    border: 1px solid var(--stroke-soft);
    border-radius: 14px;
    background: rgba(8, 19, 34, 0.78);
    padding: 12px;
    margin-bottom: 12px;
}

.finance-legend {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px;
}

.finance-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.finance-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.finance-dot.income {
    background: linear-gradient(180deg, #5bc8ff, #3f99f5);
}

.finance-dot.expense {
    background: linear-gradient(180deg, #f8be63, #ea745c);
}

.finance-dot.profit {
    background: linear-gradient(180deg, #3dd8a0, #2cbf8e);
}

.finance-bars {
    display: grid;
    gap: 10px;
}

.finance-bar-row {
    border: 1px solid var(--stroke-soft);
    border-radius: 12px;
    background: rgba(9, 20, 36, 0.78);
    padding: 10px;
}

.finance-bar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    margin-bottom: 7px;
}

.finance-bar-head strong {
    font-size: 13px;
}

.finance-bar-head span {
    color: #d2e5ff;
    font-weight: 600;
}

.finance-track {
    position: relative;
    height: 24px;
    border-radius: 999px;
    border: 1px solid var(--stroke-soft);
    background: rgba(4, 11, 22, 0.9);
    overflow: hidden;
}

.finance-track + .finance-track {
    margin-top: 6px;
}

.finance-track i {
    display: block;
    height: 100%;
    border-radius: 999px;
}

.finance-track em {
    position: absolute;
    inset: 0;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    font-style: normal;
    font-size: 11px;
    color: #e3efff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

.finance-track.income i {
    background: linear-gradient(90deg, #4ab5fb, #3f96f1);
}

.finance-track.expense i {
    background: linear-gradient(90deg, #f8be63, #ea745c);
}

.finance-track.profit.up i {
    background: linear-gradient(90deg, #3dd8a0, #2fbf91);
}

.finance-track.profit.down i {
    background: linear-gradient(90deg, #f78a8a, #ef6767);
}

.finance-table {
    min-width: 980px;
}

.finance-note-cell {
    max-width: 260px;
    white-space: normal;
}

.finance-row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.finance-danger {
    border-color: rgba(248, 112, 112, 0.38);
    color: #ffb4b4;
    background: rgba(248, 112, 112, 0.14);
}

.finance-danger:hover {
    background: rgba(248, 112, 112, 0.2);
}

.finance-profit-up {
    color: #71efc0;
    font-weight: 600;
}

.finance-profit-down {
    color: #ffb4b4;
    font-weight: 600;
}

.chip-row {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-chip {
    min-height: 30px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(11, 24, 41, 0.9);
    color: var(--muted);
    font-size: 11px;
    padding: 0 10px;
    cursor: pointer;
}

.filter-chip.active {
    border-color: rgba(100, 183, 255, 0.5);
    color: #041224;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    font-weight: 600;
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification-item {
    border: 1px solid var(--stroke-soft);
    border-radius: 12px;
    background: rgba(9, 20, 36, 0.86);
    padding: 12px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    transition: transform 0.16s ease, border-color 0.16s ease;
}

.notification-item:hover {
    transform: translateY(-1px);
    border-color: rgba(100, 183, 255, 0.24);
}

.notification-item.info {
    border-left: 3px solid var(--accent-2);
}

.notification-item.warning {
    border-left: 3px solid var(--warning);
}

.notification-item.error {
    border-left: 3px solid var(--danger);
}

.notification-icon {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    border: 1px solid var(--stroke);
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--muted);
    background: rgba(12, 28, 49, 0.9);
}

.notification-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.notification-head strong {
    font-size: 13px;
}

.notification-head time {
    color: var(--muted);
    font-size: 11px;
}

.notification-body p {
    margin: 0;
    color: #d2e0f1;
    line-height: 1.5;
    font-size: 13px;
}

.empty-note {
    border: 1px dashed var(--stroke);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.sync-status {
    margin: 0;
    min-height: 20px;
    font-size: 12px;
    color: var(--muted);
}

.sync-status.error {
    color: #ffaaaa;
}

.is-loading .panel,
.is-loading .stat-card {
    opacity: 0.72;
    transition: opacity 0.2s ease;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
}

.auth-visual {
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.auth-title {
    margin: 0;
    font-size: 40px;
    line-height: 1.05;
    font-family: "Sora", "Space Grotesk", sans-serif;
}

.auth-copy {
    margin: 0;
    max-width: 470px;
    color: var(--muted);
    line-height: 1.55;
    font-size: 15px;
}

.auth-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.auth-card {
    width: min(400px, 100%);
}

@media (max-width: 1360px) {
    .stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

    .workspace-tabs {
        position: sticky;
        top: 82px;
        z-index: 11;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x proximity;
    }

    .workspace-tab {
        white-space: nowrap;
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

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

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

    .dashboard-page.sales-mode .revenue-columns {
        grid-template-columns: 1fr;
    }

    .dashboard-page.sales-mode .finance-form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-page.sales-mode .finance-field-wide,
    .dashboard-page.sales-mode .finance-actions {
        grid-column: 1 / -1;
    }

    .dashboard-page.sales-mode .finance-actions {
        justify-content: flex-start;
    }

    .dashboard-page.sales-mode .sales-insights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-page.sales-mode .sales-top-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .layout-shell {
        grid-template-columns: 1fr;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .app-sidebar {
        position: fixed;
        left: -236px;
        width: 220px;
        height: 100vh;
        transition: left 0.24s ease;
    }

    body.sidebar-open .app-sidebar {
        left: 0;
    }

    .sidebar-overlay {
        display: block;
    }

    body.sidebar-open .sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

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

    .layout-topbar {
        min-height: 68px;
        padding: 12px 14px;
        gap: 12px;
    }

    .topbar-pulse {
        display: none;
    }

    .layout-content {
        padding: 18px 14px calc(108px + env(safe-area-inset-bottom, 0px));
    }

    .panel,
    .card {
        border-radius: 16px;
    }

    .dashboard-header-panel {
        align-items: flex-start;
    }

    .dashboard-actions {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }

    .dashboard-signal-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 100%;
    }

    .period-switch {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .period-switch::-webkit-scrollbar {
        display: none;
    }

    .period-btn {
        white-space: nowrap;
    }

    .group-actions {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }

    .group-accordion-trigger {
        align-items: flex-start;
        flex-direction: column;
    }

    .group-accordion-meta {
        width: 100%;
        justify-content: flex-start;
    }

    .group-light-stats,
    .group-accordion-server {
        grid-template-columns: 1fr;
    }

    .group-accordion-server-load em {
        justify-self: start;
    }

    .group-accordion-edit {
        align-items: stretch;
        flex-direction: column;
    }

    .group-order-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .group-order-row {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .group-order-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .group-order-add {
        grid-template-columns: 1fr;
    }

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

    .user-group-editor,
    .group-server-editor {
        flex-direction: column;
        align-items: stretch;
    }

    .user-group-select,
    .group-server-input {
        width: 100%;
        max-width: 100%;
    }

    .server-lifecycle-toolbar {
        width: 100%;
    }

    .server-config-modal {
        border-radius: 15px;
        padding: 14px;
    }

    .server-info-modal {
        border-radius: 15px;
        padding: 14px;
    }

    .server-config-head {
        flex-direction: column;
        gap: 8px;
    }

    .server-config-grid,
    .server-create-grid {
        grid-template-columns: 1fr;
    }

    .server-config-span-2 {
        grid-column: span 1;
    }

    .server-edit-modal .server-config-head,
    .server-edit-modal .server-config-actions {
        padding-right: 14px;
        padding-left: 14px;
    }

    .server-edit-modal .server-config-section,
    .server-edit-modal .server-config-advanced {
        margin-right: 14px;
        margin-left: 14px;
    }

    .server-create-span-2 {
        grid-column: span 1;
    }

    .server-config-actions {
        justify-content: stretch;
    }

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

    .server-create-actions {
        align-items: stretch;
    }

    .server-create-actions .server-form-error {
        flex-basis: 100%;
    }

    .server-create-actions .server-config-action-buttons {
        width: 100%;
    }

    .server-create-actions .server-config-action-buttons .btn {
        flex: 1 1 0;
        width: auto;
    }

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

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

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

    .lifecycle-hosting-input,
    .lifecycle-expire-input {
        min-width: 0;
        width: 100%;
    }

    .compact-input {
        max-width: 100%;
    }

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

    .server-group-card-head {
        align-items: flex-start;
    }

    .server-group-stats {
        width: 100%;
    }

    .server-group-action {
        width: 100%;
    }

    .group-server-row-side {
        width: 100%;
        justify-content: flex-start;
    }

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

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

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

    .finance-field-wide {
        grid-column: span 2;
    }

    .finance-actions {
        grid-column: span 2;
    }

    .dashboard-page.sales-mode .finance-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-page.sales-mode .finance-field-wide,
    .dashboard-page.sales-mode .finance-actions {
        grid-column: span 2;
    }

    .dashboard-page.sales-mode .sales-chart {
        min-height: 280px;
    }

    .mobile-dock {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 6px;
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        padding: 8px;
        border-radius: 16px;
        border: 1px solid rgba(100, 183, 255, 0.28);
        background: rgba(6, 14, 26, 0.9);
        backdrop-filter: blur(14px);
        box-shadow: 0 14px 36px rgba(2, 8, 16, 0.5);
        z-index: 16;
    }

    .mobile-fab {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    body.sidebar-open .mobile-dock,
    body.sidebar-open .mobile-fab {
        opacity: 0;
        pointer-events: none;
    }
}

@media (max-width: 760px) {
    .stat-grid {
        grid-auto-flow: column;
        grid-auto-columns: minmax(170px, 72vw);
        grid-template-columns: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }

    .stat-grid::-webkit-scrollbar {
        height: 6px;
    }

    .stat-card {
        scroll-snap-align: start;
    }

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

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

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

    .sales-insights {
        grid-template-columns: 1fr;
    }

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

    .finance-field-wide,
    .finance-actions {
        grid-column: span 1;
    }

    .finance-row-actions .btn {
        width: 100%;
    }

    .dashboard-page.sales-mode .finance-form {
        grid-template-columns: 1fr;
    }

    .dashboard-page.sales-mode .finance-field-wide,
    .dashboard-page.sales-mode .finance-actions {
        grid-column: span 1;
    }

    .dashboard-page.sales-mode .finance-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .dashboard-page.sales-mode .sales-insights,
    .dashboard-page.sales-mode .sales-top-list,
    .dashboard-page.sales-mode .finance-kpi-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-page.sales-mode .sales-chart {
        min-height: 240px;
    }

    .workspace-tabs {
        top: 74px;
        padding: 8px;
    }

    .panel-head {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .dashboard-copy {
        font-size: 13px;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        padding: 32px 22px 8px;
    }
}

@media (max-width: 540px) {
    .layout-topbar {
        min-height: 64px;
        padding: 10px 12px;
    }

    .topbar-copy strong {
        font-size: 15px;
    }

    .topbar-copy span {
        font-size: 12px;
    }

    .workspace-tabs {
        top: 70px;
    }

    .group-kpi-grid,
    .server-group-briefs {
        grid-template-columns: 1fr;
    }

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

    .dashboard-signal strong {
        font-size: 24px;
    }

    .dashboard-title {
        font-size: 24px;
    }

    .group-server-copy strong {
        white-space: normal;
    }

    .mobile-dock {
        left: 8px;
        right: 8px;
        padding: 7px;
    }

    .mobile-dock-link {
        min-height: 42px;
        font-size: 10px;
    }

    .mobile-fab {
        right: 12px;
    }

}

/* Sales tab redesign (applies only on /admin/sales) */
.dashboard-page.sales-mode .workspace {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
}

.dashboard-page.sales-mode .workspace-tabs {
    display: none;
}

.dashboard-page.sales-mode .workspace-panel[data-panel="revenue"] {
    border-radius: 20px;
    padding: 18px;
    border: 1px solid rgba(68, 82, 123, 0.56);
    background:
        radial-gradient(820px 460px at 100% 0%, rgba(157, 112, 255, 0.13), transparent 62%),
        linear-gradient(170deg, rgba(10, 17, 33, 0.97), rgba(7, 13, 25, 0.98));
    box-shadow: 0 24px 46px rgba(2, 8, 20, 0.42);
}

.dashboard-page.sales-mode .workspace-panel[data-panel="revenue"] .sales-revenue-head {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(86, 103, 147, 0.35);
}

.dashboard-page.sales-mode .workspace-panel[data-panel="revenue"] .sales-revenue-head h3 {
    font-size: 27px;
    letter-spacing: 0.24px;
}

.dashboard-page.sales-mode #revenuePeriodLabel {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(133, 149, 205, 0.36);
    padding: 0 11px;
    color: #d9e5ff;
    background: rgba(22, 31, 56, 0.8);
}

.dashboard-page.sales-mode .workspace-panel[data-panel="revenue"] .revenue-columns {
    grid-template-columns: minmax(0, 1.03fr) minmax(0, 1.07fr);
    gap: 14px;
    align-items: start;
}

.dashboard-page.sales-mode .workspace-panel[data-panel="revenue"] .revenue-left,
.dashboard-page.sales-mode .workspace-panel[data-panel="revenue"] .revenue-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.dashboard-page.sales-mode .workspace-panel[data-panel="revenue"] .finance-inline-block {
    border-radius: 16px;
    border: 1px solid rgba(74, 90, 135, 0.4);
    background: linear-gradient(170deg, rgba(17, 26, 46, 0.88), rgba(10, 18, 34, 0.86));
    padding: 13px;
}

.dashboard-page.sales-mode .finance-panel-head {
    margin-bottom: 10px;
}

.dashboard-page.sales-mode .finance-panel-head h3 {
    font-size: 24px;
}

.dashboard-page.sales-mode .finance-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
}

.dashboard-page.sales-mode .finance-field-wide,
.dashboard-page.sales-mode .finance-actions {
    grid-column: 1 / -1;
}

.dashboard-page.sales-mode .finance-actions {
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}

.dashboard-page.sales-mode .finance-actions .btn {
    min-width: 134px;
    white-space: nowrap;
}

.dashboard-page.sales-mode .finance-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-page.sales-mode .finance-kpi-card,
.dashboard-page.sales-mode .finance-chart-shell {
    border-color: rgba(72, 89, 136, 0.42);
    background: linear-gradient(176deg, rgba(15, 26, 45, 0.9), rgba(9, 17, 32, 0.88));
}

.dashboard-page.sales-mode .finance-chart-shell {
    margin-bottom: 10px;
}

.dashboard-page.sales-mode .finance-card .table-wrap {
    border-radius: 12px;
}

.dashboard-page.sales-mode .sales-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 0;
}

.dashboard-page.sales-mode .sales-kpi {
    border-color: rgba(74, 90, 136, 0.44);
    background: linear-gradient(176deg, rgba(14, 25, 44, 0.92), rgba(9, 16, 30, 0.9));
    min-height: 108px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dashboard-page.sales-mode .sales-insights .sales-kpi:nth-child(1),
.dashboard-page.sales-mode .sales-insights .sales-kpi:nth-child(2) {
    border-color: rgba(153, 124, 255, 0.52);
    background:
        radial-gradient(340px 160px at 100% 0%, rgba(171, 117, 255, 0.24), transparent 70%),
        linear-gradient(150deg, rgba(72, 62, 131, 0.66), rgba(30, 39, 73, 0.9));
}

.dashboard-page.sales-mode .sales-kpi strong {
    font-size: 36px;
    line-height: 1;
}

.dashboard-page.sales-mode .sales-chart-shell {
    border-color: rgba(72, 89, 136, 0.42);
    background: linear-gradient(175deg, rgba(13, 24, 43, 0.92), rgba(8, 16, 31, 0.9));
    padding: 14px;
}

.dashboard-page.sales-mode .sales-chart {
    min-height: 320px;
    border-color: rgba(76, 96, 146, 0.4);
    background: linear-gradient(180deg, rgba(22, 35, 60, 0.56), rgba(10, 19, 36, 0.36));
}

.dashboard-page.sales-mode .sales-top-block {
    margin-top: 0;
    border: 1px solid rgba(72, 89, 136, 0.42);
    border-radius: 14px;
    background: linear-gradient(176deg, rgba(14, 25, 44, 0.9), rgba(8, 16, 31, 0.88));
    padding: 12px;
}

.dashboard-page.sales-mode .sales-top-block h4 {
    margin-bottom: 10px;
}

.dashboard-page.sales-mode .sales-top-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-page.sales-mode .sales-top-item {
    border-color: rgba(78, 97, 146, 0.42);
    background: rgba(10, 20, 37, 0.84);
}

@media (max-width: 1500px) {
    .dashboard-page.sales-mode .workspace-panel[data-panel="revenue"] .revenue-columns {
        grid-template-columns: 1fr;
    }

    .dashboard-page.sales-mode .sales-top-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .dashboard-page.sales-mode .workspace {
        grid-template-columns: 1fr;
    }

    .dashboard-page.sales-mode .workspace-panel[data-panel="revenue"] {
        padding: 14px;
    }

    .dashboard-page.sales-mode .workspace-panel[data-panel="revenue"] .sales-revenue-head h3 {
        font-size: 24px;
    }

    .dashboard-page.sales-mode .sales-top-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .dashboard-page.sales-mode .finance-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-page.sales-mode .sales-insights {
        grid-template-columns: 1fr;
    }

    .dashboard-page.sales-mode .finance-kpi-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-page.sales-mode .sales-top-list {
        grid-template-columns: 1fr;
    }

    .dashboard-page.sales-mode .sales-chart {
        min-height: 270px;
    }
}

@media (max-width: 760px) {
    .dashboard-page.sales-mode .finance-form {
        grid-template-columns: 1fr;
    }

    .dashboard-page.sales-mode .finance-actions .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* VPN shop admin */
.shop-dashboard {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shop-toolbar {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid rgba(35, 54, 87, 0.86);
    border-radius: 12px;
    padding: 12px 14px;
    background: linear-gradient(180deg, rgba(13, 24, 44, 0.96), rgba(8, 17, 32, 0.94));
    box-shadow: 0 18px 44px rgba(1, 8, 18, 0.42);
}

.shop-kicker {
    margin: 0 0 4px;
    color: #8fa6c8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.shop-toolbar h1,
.portal-copy h1 {
    margin: 0;
    font-family: "Sora", "Space Grotesk", sans-serif;
    letter-spacing: 0;
}

.shop-toolbar h1 {
    font-size: 22px;
}

.shop-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-select,
.shop-icon-btn {
    min-height: 38px;
    border-radius: 8px;
    border: 1px solid rgba(40, 61, 96, 0.92);
    background: rgba(8, 17, 32, 0.9);
    color: #dbeafe;
}

.shop-select {
    width: auto;
    padding: 0 32px 0 10px;
}

.shop-icon-btn {
    width: 42px;
    cursor: pointer;
    font-size: 18px;
}

.shop-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.shop-metric,
.shop-card {
    border: 1px solid rgba(35, 54, 87, 0.86);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(13, 25, 46, 0.96), rgba(8, 18, 34, 0.96));
    box-shadow: 0 16px 38px rgba(1, 8, 18, 0.34);
}

.shop-metric {
    position: relative;
    min-height: 110px;
    padding: 14px 56px 12px 14px;
    overflow: hidden;
}

.shop-metric span,
.shop-card-head span,
.shop-card-head a,
.payment-item small,
.server-rank small,
.donut-legend,
.shop-sync,
.portal-muted {
    color: #91a7c4;
}

.shop-metric strong {
    display: block;
    margin-top: 8px;
    font-size: 28px;
    line-height: 1;
}

.shop-metric small {
    display: block;
    margin-top: 8px;
    color: #42d690;
}

.metric-glyph {
    position: absolute;
    right: 14px;
    top: 34px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-style: normal;
    font-size: 22px;
    border: 1px solid currentColor;
    opacity: 0.9;
}

.metric-glyph.blue { color: #3f82ff; }
.metric-glyph.green { color: #34d399; }
.metric-glyph.yellow { color: #f7ce53; }
.metric-glyph.violet { color: #b56cff; }
.metric-glyph.cyan { color: #55b7ff; }

.shop-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.82fr 0.72fr;
    grid-template-areas:
        "income payments servers"
        "donut users quick"
        "recent recent notes";
    gap: 10px;
    align-items: stretch;
}

.shop-card {
    min-width: 0;
    padding: 14px;
}

.shop-card-mid {
    min-height: 220px;
}

.shop-grid > .shop-card:nth-child(1) { grid-area: income; }
.shop-grid > .shop-card:nth-child(2) { grid-area: payments; }
.shop-grid > .shop-card:nth-child(3) { grid-area: servers; }
.shop-grid > .shop-card:nth-child(4) { grid-area: donut; }
.shop-grid > .shop-card:nth-child(5) { grid-area: users; }
.shop-grid > .shop-card:nth-child(6) { grid-area: quick; }
.shop-grid > .shop-card:nth-child(7) { grid-area: recent; }
.shop-grid > .shop-card:nth-child(8) { grid-area: notes; }

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

.shop-card-head h2 {
    margin: 0;
    font-size: 16px;
    letter-spacing: 0;
}

.shop-card-head a,
.mini-link {
    color: #d8e8ff;
    font-size: 12px;
}

.shop-chart {
    height: 240px;
}

.shop-chart svg {
    width: 100%;
    height: 100%;
    display: block;
}

#incomeGrid line {
    stroke: rgba(75, 98, 136, 0.34);
    stroke-width: 1;
}

#incomeFill {
    fill: rgba(47, 124, 246, 0.18);
}

#incomeLine {
    fill: none;
    stroke: #3484ff;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#incomePoints circle {
    fill: #56a0ff;
    stroke: #10243e;
    stroke-width: 3;
}

#incomeLabels text {
    fill: #8399b7;
    font-size: 12px;
}

.payment-list,
.server-rank-list,
.shop-notifications {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 45px;
    border-bottom: 1px solid rgba(35, 54, 87, 0.62);
}

.payment-item:last-child {
    border-bottom: 0;
}

.payment-item strong,
.payment-item small {
    display: block;
}

.payment-item em {
    font-style: normal;
    font-weight: 700;
}

.payment-user-link,
.admin-user-link,
.shop-note-user {
    color: #dcecff;
    font-weight: 800;
    text-decoration: none;
}

.payment-user-link:hover,
.admin-user-link:hover,
.shop-note-user:hover {
    color: #7dd3fc;
}

.shop-note footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
}

.shop-note-user {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(100, 183, 255, 0.28);
    border-radius: 999px;
    padding: 0 8px;
    background: rgba(8, 19, 36, 0.64);
    font-size: 11px;
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    background: #2f7cf6;
}

.avatar.violet { background: #7c3aed; }
.avatar.green { background: #22c55e; }
.avatar.orange { background: #f97316; }
.avatar.red { background: #ef4444; }

.server-rank {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    background: rgba(10, 22, 40, 0.8);
    border: 1px solid rgba(35, 54, 87, 0.64);
}

.server-rank strong,
.server-rank small {
    display: block;
}

.server-rank strong {
    display: flex;
    align-items: center;
    gap: 7px;
}

.server-rank-flag {
    width: 18px;
    height: 13px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.server-rank em {
    font-style: normal;
    font-size: 13px;
}

.server-rank i {
    grid-column: 1 / -1;
    height: 6px;
    border-radius: 999px;
    background: rgba(54, 74, 106, 0.8);
    overflow: hidden;
}

.server-rank b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #34d399;
}

.server-rank b.warm { background: #facc15; }
.server-rank b.hot { background: #fb7185; }

.donut-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.donut {
    width: 136px;
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(#2f7cf6 0 36%, #35c487 36% 66%, #f5c84c 66% 89%, #8c4ce8 89% 100%);
}

.donut::before {
    content: "";
    position: absolute;
}

.donut span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #08192e;
}

.donut strong,
.donut small {
    display: block;
    text-align: center;
}

.donut small {
    margin-top: -24px;
    color: #91a7c4;
    font-size: 11px;
}

.donut-legend {
    display: grid;
    gap: 8px;
    font-size: 12px;
}

.donut-legend span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.donut-legend i {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.donut-legend b {
    margin-left: auto;
    color: #e8f1fc;
}

.bar-chart {
    height: 164px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(12px, 1fr);
    gap: 8px;
    align-items: end;
    padding-top: 12px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.bar-chart span {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    text-align: center;
    cursor: default;
}

.bar-chart i {
    display: block;
    min-height: 8px;
    border-radius: 5px 5px 2px 2px;
    background: linear-gradient(180deg, #9b68ff, #6d3ddc);
}

.bar-chart small {
    color: #91a7c4;
    min-height: 14px;
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

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

.quick-action {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(42, 62, 96, 0.86);
    background: rgba(13, 27, 49, 0.9);
    color: #dcecff;
    font-size: 12px;
    text-align: center;
}

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

.shop-table {
    min-width: 720px;
}

.shop-table th,
.shop-table td {
    padding: 10px;
}

.shop-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #34d399;
}

.shop-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.shop-status.expired {
    color: #fb7185;
}

.shop-note {
    position: relative;
    padding: 10px 52px 10px 12px;
    border: 1px solid rgba(35, 54, 87, 0.64);
    border-radius: 9px;
    background: rgba(10, 22, 40, 0.8);
}

.shop-note strong {
    display: block;
    font-size: 12px;
}

.shop-note p {
    margin: 4px 0 0;
    color: #cbd9ee;
    font-size: 12px;
    line-height: 1.35;
}

.shop-note time {
    position: absolute;
    right: 10px;
    top: 10px;
    color: #91a7c4;
    font-size: 11px;
}

.shop-empty {
    color: #91a7c4;
    font-size: 13px;
    padding: 14px;
    border: 1px dashed rgba(60, 82, 118, 0.75);
    border-radius: 9px;
}

.shop-chart-tooltip {
    position: fixed;
    z-index: 80;
    max-width: 260px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(86, 160, 255, 0.44);
    background: rgba(6, 14, 27, 0.96);
    color: #e8f1fc;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.12s ease, transform 0.12s ease;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.36);
}

.shop-chart-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.chart-hotspot {
    cursor: default;
}

.shop-sync {
    margin: 0;
    min-height: 18px;
    font-size: 12px;
}

.shop-sync.error {
    color: #ffb4b4;
}

/* User subscription storefront */
.portal-body {
    background:
        radial-gradient(900px 520px at 80% -10%, rgba(47, 124, 246, 0.22), transparent 65%),
        radial-gradient(760px 460px at 0% 20%, rgba(52, 211, 153, 0.16), transparent 62%),
        linear-gradient(180deg, #050b16, #081426);
}

.portal-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 48px;
}

.portal-hero {
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 34px;
}

.portal-nav,
.portal-hero-grid,
.portal-plan,
.portal-register,
.portal-checkout {
    border: 1px solid rgba(35, 54, 87, 0.86);
    background: rgba(9, 20, 37, 0.84);
    box-shadow: 0 18px 44px rgba(1, 8, 18, 0.34);
}

.portal-nav {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px;
    padding: 0 14px;
}

.portal-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.portal-brand span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #2f7cf6, #34d399);
    color: #061327;
    font-weight: 800;
}

.portal-login,
.portal-secondary {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(52, 77, 118, 0.9);
    border-radius: 8px;
    padding: 0 14px;
    color: #dbeafe;
    background: rgba(8, 17, 32, 0.8);
}

.portal-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 380px;
    gap: 18px;
    align-items: stretch;
    border-radius: 14px;
    padding: 18px;
}

.portal-copy {
    padding: clamp(22px, 5vw, 54px) 10px;
}

.portal-copy h1 {
    font-size: clamp(42px, 8vw, 86px);
    line-height: 0.95;
}

.portal-copy p:not(.shop-kicker) {
    max-width: 640px;
    color: #b9c9df;
    font-size: 17px;
    line-height: 1.7;
}

.portal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.portal-primary,
.portal-buy,
.portal-register button,
.portal-checkout button,
.portal-account-form button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    padding: 0 16px;
    background: linear-gradient(135deg, #34d399, #56a0ff);
    color: #061327;
    font-weight: 800;
    cursor: pointer;
}

.portal-status {
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(14, 29, 52, 0.96), rgba(8, 18, 34, 0.98));
    border: 1px solid rgba(44, 67, 105, 0.9);
    padding: 18px;
}

.portal-status h2,
.portal-section-head h2,
.portal-plan h3,
.portal-checkout h2 {
    margin: 0;
    letter-spacing: 0;
}

.portal-account-form,
.portal-register form,
.portal-checkout form {
    display: grid;
    gap: 12px;
}

.portal-account-form {
    margin-top: 18px;
}

.portal-account-form label,
.portal-register label,
.portal-checkout label {
    display: grid;
    gap: 6px;
}

.portal-account-form span,
.portal-register span,
.portal-checkout span {
    color: #91a7c4;
    font-size: 12px;
}

.portal-user-card {
    margin-top: 16px;
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(52, 211, 153, 0.32);
    background: rgba(52, 211, 153, 0.08);
}

.portal-user-card a {
    color: #8cf3c7;
}

.portal-plans {
    padding-top: 28px;
}

.portal-section-head {
    margin-bottom: 14px;
}

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

.portal-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 360px;
    border-radius: 12px;
    padding: 18px;
}

.portal-plan.featured {
    border-color: rgba(86, 160, 255, 0.72);
    background:
        radial-gradient(420px 180px at 100% 0%, rgba(86, 160, 255, 0.18), transparent 70%),
        rgba(9, 20, 37, 0.9);
}

.portal-badge {
    width: max-content;
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0 10px;
    background: rgba(86, 160, 255, 0.14);
    color: #b9d8ff;
    font-size: 12px;
    border: 1px solid rgba(86, 160, 255, 0.32);
}

.portal-plan strong {
    display: block;
    font-size: 36px;
}

.portal-plan small {
    color: #91a7c4;
}

.portal-plan ul {
    display: grid;
    gap: 9px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.portal-plan li {
    color: #cbd9ee;
}

.portal-plan li::before {
    content: "✓";
    margin-right: 8px;
    color: #34d399;
}

.portal-buy {
    margin-top: auto;
    width: 100%;
}

.portal-checkout {
    margin-top: 12px;
    border-radius: 12px;
    padding: 18px;
}

.portal-register {
    margin-top: 12px;
    border-radius: 12px;
    padding: 18px;
}

.portal-register h2 {
    margin: 0;
    letter-spacing: 0;
}

.portal-checkout[hidden] {
    display: none;
}

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

    .shop-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "income income"
            "payments servers"
            "donut users"
            "quick notes"
            "recent recent";
    }

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

@media (max-width: 980px) {
    .shop-metrics,
    .shop-grid,
    .portal-hero-grid,
    .portal-plan-grid {
        grid-template-columns: 1fr;
        grid-template-areas: none;
    }

    .shop-grid > .shop-card {
        grid-area: auto !important;
    }

    .shop-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .shop-toolbar-actions,
    .shop-select {
        width: 100%;
    }

    .shop-chart {
        height: 230px;
    }

    .donut-row {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .portal-shell {
        width: min(100% - 24px, 1180px);
    }
}

@media (max-width: 620px) {
    .shop-metrics {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(210px, 78vw);
        grid-template-columns: none;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .portal-actions {
        flex-direction: column;
    }

    .portal-primary,
    .portal-secondary {
        width: 100%;
    }
}

/* Telegram-like reply composer: attachments stay inside the message field. */
.support-ticket-reply > .support-ticket-reply-composer { display: grid; gap: 0; padding: 0; border: 1px solid rgba(112, 151, 205, .28); border-radius: 14px; background: rgba(7, 20, 38, .72); overflow: hidden; }
.support-ticket-reply-composer:focus-within { border-color: rgba(112, 201, 255, .72); box-shadow: 0 0 0 3px rgba(88, 174, 255, .1); }
.support-ticket-reply-attachments { display: grid; gap: 8px; padding: 10px 12px 0; }
.support-ticket-reply-attachments[hidden] { display: none; }
.support-ticket-reply-attachments-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #cfe0f2; font-size: 12px; }
.support-ticket-reply-attachments-head > span { color: #82c9f3; font-variant-numeric: tabular-nums; }
.support-ticket-reply-attachment-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 8px; padding-bottom: 2px; }
.support-ticket-reply-attachment-card { min-width: 0; display: grid; grid-template-columns: 36px minmax(0, 1fr) 24px; align-items: center; gap: 8px; padding: 6px; border: 1px solid rgba(111, 168, 218, .2); border-radius: 10px; background: rgba(10, 26, 46, .82); }
.support-ticket-reply-attachment-card img, .support-ticket-reply-attachment-file { width: 36px; height: 36px; display: grid; place-items: center; object-fit: cover; border-radius: 7px; background: #0b1b30; }
.support-ticket-reply-attachment-card img { border: 1px solid rgba(116, 189, 239, .3); }
.support-ticket-reply-attachment-file { color: #8bd1ff; border: 1px dashed rgba(116, 189, 239, .35); font-size: 8px; font-weight: 800; letter-spacing: .04em; }
.support-ticket-reply-attachment-card > span { min-width: 0; display: grid; gap: 3px; }
.support-ticket-reply-attachment-card strong { overflow: hidden; color: #e6f1ff; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.support-ticket-reply-attachment-card small { color: #8299b4; font-size: 10px; }
.support-ticket-reply-attachment-card button { width: 24px; height: 24px; padding: 0; border: 1px solid rgba(255, 117, 147, .24); border-radius: 7px; color: #ff9caf; background: rgba(255, 91, 126, .08); font-size: 16px; line-height: 1; cursor: pointer; }
.support-ticket-reply-attachment-card button:hover, .support-ticket-reply-attachment-card button:focus-visible { border-color: rgba(255, 136, 161, .6); color: #fff0f4; background: rgba(255, 91, 126, .2); outline: 0; }
.support-ticket-reply-input { position: relative; min-width: 0; }
.support-ticket-reply-input textarea { min-height: 88px; padding: 14px 56px 14px 14px; border: 0 !important; border-radius: 0; background: transparent; box-shadow: none !important; transform: none !important; resize: vertical; }
.support-ticket-reply-input textarea:focus { border: 0 !important; box-shadow: none !important; background: transparent; }
.support-ticket-reply-attach { position: absolute; right: 11px; bottom: 11px; display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid rgba(112, 200, 255, .24); border-radius: 10px; color: #8bd1ff; background: rgba(69, 154, 222, .1); cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.support-ticket-reply-attach:hover, .support-ticket-reply-attach:focus-within { border-color: rgba(137, 217, 255, .82); background: rgba(69, 154, 222, .2); transform: translateY(-1px); }
.support-ticket-reply-attach input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.support-ticket-reply-attach svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.support-ticket-reply > div:last-child { justify-content: flex-end; }


/* Server directory: compact HAPP-inspired network list */
.aether-site .aether-server-app {
    position: relative;
    max-width: 960px;
    margin: 54px auto 0;
    padding: 28px clamp(16px, 4vw, 34px) 34px;
    overflow: hidden;
    border: 1px solid rgba(126, 111, 194, .25);
    border-radius: 28px;
    background:
        radial-gradient(circle at 92% 0%, rgba(220, 58, 196, .14), transparent 30%),
        radial-gradient(circle at 0% 50%, rgba(42, 121, 255, .13), transparent 32%),
        linear-gradient(145deg, rgba(15, 23, 59, .84), rgba(8, 10, 32, .95) 66%);
    box-shadow: 0 30px 90px rgba(2, 5, 22, .38), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.aether-site .aether-server-app::before,
.aether-site .aether-server-app::after {
    position: absolute;
    pointer-events: none;
    content: "";
}

.aether-site .aether-server-app::before {
    top: 0;
    right: 14%;
    width: 1px;
    height: 270px;
    background: linear-gradient(to bottom, rgba(80, 225, 255, .25), transparent);
    transform: rotate(36deg);
    transform-origin: top;
}

.aether-site .aether-server-app::after {
    right: -90px;
    bottom: -130px;
    width: 330px;
    height: 230px;
    border-radius: 50%;
    background: rgba(207, 55, 205, .13);
    filter: blur(50px);
}

.aether-site .aether-server-app-topbar,
.aether-site .aether-server-app-intro,
.aether-site .aether-server-app-toolbar,
.aether-site .aether-server-app-list {
    position: relative;
    z-index: 1;
}

.aether-site .aether-server-app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(133, 145, 218, .15);
}

.aether-site .aether-server-app-brand,
.aether-site .aether-server-app-live,
.aether-site .aether-server-card-main,
.aether-site .aether-server-card-status,
.aether-site .aether-server-app-legend {
    display: inline-flex;
    align-items: center;
}

.aether-site .aether-server-app-brand {
    gap: 11px;
}

.aether-site .aether-server-app-brand > span:last-child {
    display: grid;
    gap: 3px;
}

.aether-site .aether-server-app-brand strong {
    color: #f6f4ff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .18em;
}

.aether-site .aether-server-app-brand small {
    color: #7d86b1;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .16em;
}

.aether-site .aether-server-app-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    overflow: hidden;
    border: 1px solid rgba(81, 225, 255, .48);
    border-radius: 9px;
    background: linear-gradient(145deg, rgba(61, 208, 255, .25), rgba(132, 56, 240, .28));
    box-shadow: 0 0 22px rgba(72, 201, 255, .17);
}

.aether-site .aether-server-app-mark::before,
.aether-site .aether-server-app-mark::after,
.aether-site .aether-server-app-mark span {
    position: absolute;
    width: 14px;
    height: 2px;
    border-radius: 99px;
    background: #75e8ff;
    content: "";
}

.aether-site .aether-server-app-mark::before { transform: translateY(-5px) rotate(-30deg); }
.aether-site .aether-server-app-mark::after { transform: translateY(5px) rotate(30deg); }
.aether-site .aether-server-app-mark span { width: 7px; background: #ff68d9; transform: rotate(90deg); }

.aether-site .aether-server-app-live {
    gap: 8px;
    color: #77e5b4;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.aether-site .aether-server-app-live i,
.aether-site .aether-server-app-legend i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #48e6a8;
    box-shadow: 0 0 12px rgba(72, 230, 168, .75);
}

.aether-site .aether-server-app-intro {
    max-width: 650px;
    padding: 42px 0 30px;
}

.aether-site .aether-server-app-intro h1 {
    margin: 12px 0 14px;
    color: #f7f6ff;
    font-size: clamp(36px, 6vw, 62px);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: .98;
}

.aether-site .aether-server-app-intro h1 em {
    color: #d8d5ff;
    font-style: normal;
    background: linear-gradient(100deg, #e5e3ff 12%, #6fe4ff 52%, #f18ae6 92%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.aether-site .aether-server-app-intro > p:last-child {
    max-width: 500px;
    margin: 0;
    color: #9699bf;
    font-size: 14px;
    line-height: 1.65;
}

.aether-site .aether-server-app-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 4px 13px;
    color: #8f92b5;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.aether-site .aether-server-app-toolbar b {
    margin-right: 4px;
    color: #f5f3ff;
    font-size: 13px;
}

.aether-site .aether-server-app-legend {
    gap: 7px;
    color: #6e769e;
    font-size: 10px;
    letter-spacing: .08em;
}

.aether-site .aether-server-app-list {
    display: grid;
    gap: 8px;
}

.aether-site .aether-server-card {
    overflow: hidden;
    border: 1px solid rgba(130, 140, 212, .19);
    border-radius: 16px;
    background: rgba(10, 14, 39, .67);
    transition: border-color .22s ease, background .22s ease, transform .22s ease;
}

.aether-site .aether-server-card:hover,
.aether-site .aether-server-card[open] {
    border-color: rgba(95, 216, 255, .45);
    background: rgba(17, 23, 57, .9);
}

.aether-site .aether-server-card:hover {
    transform: translateY(-1px);
}

.aether-site .aether-server-card-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto 18px;
    align-items: center;
    gap: 22px;
    min-height: 78px;
    padding: 12px 18px;
    color: inherit;
    cursor: pointer;
    list-style: none;
}

.aether-site .aether-server-card-summary::-webkit-details-marker { display: none; }
.aether-site .aether-server-card-summary::marker { display: none; }

.aether-site .aether-server-card-main {
    min-width: 0;
    gap: 14px;
}

.aether-site .aether-server-card-name {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.aether-site .aether-server-card-name strong {
    overflow: hidden;
    color: #f5f3ff;
    font-size: 16px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aether-site .aether-server-card-name small {
    color: #6f789e;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.aether-site .aether-server-card .aether-server-flag {
    display: grid;
    place-items: center;
    width: 42px;
    height: 28px;
    flex: 0 0 42px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 7px;
    background: rgba(255, 255, 255, .06);
}

.aether-site .aether-server-card .aether-server-flag img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aether-site .aether-server-card-ping {
    min-width: 58px;
    color: #a7aac5;
    font-size: 13px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.aether-site .aether-server-card-ping.online { color: #71e4b2; }
.aether-site .aether-server-card-ping.offline { color: #ff9ea9; }
.aether-site .aether-server-card-ping.pending { color: #858aaa; }

.aether-site .aether-server-card-status {
    justify-content: flex-start;
    gap: 7px;
    min-width: 100px;
    color: #858aaa;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.aether-site .aether-server-card-status i {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: #6f7592;
}

.aether-site .aether-server-card-status.online { color: #72e4b0; }
.aether-site .aether-server-card-status.online i { background: #42e6a7; box-shadow: 0 0 11px rgba(66, 230, 167, .8); }
.aether-site .aether-server-card-status.offline { color: #ff9da8; }
.aether-site .aether-server-card-status.offline i { background: #ff7f92; }
.aether-site .aether-server-card-status.pending i { animation: aether-orbit-pulse 1.4s ease-in-out infinite; }

.aether-site .aether-server-card-chevron {
    width: 8px;
    height: 8px;
    border-right: 1px solid #8d9bdd;
    border-bottom: 1px solid #8d9bdd;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .22s ease, border-color .22s ease;
}

.aether-site .aether-server-card[open] .aether-server-card-chevron {
    border-color: #72e4ff;
    transform: rotate(225deg) translate(-1px, -1px);
}

.aether-site .aether-server-card-details {
    padding: 0 18px 17px 74px;
    border-top: 1px solid rgba(130, 140, 212, .14);
}

.aether-site .aether-server-card-details-head,
.aether-site .aether-server-card-details-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.aether-site .aether-server-card-details-head {
    padding: 14px 0 12px;
    color: #6f789e;
    font-size: 10px;
    letter-spacing: .03em;
}

.aether-site .aether-server-card-kicker {
    color: #9d9fca;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.aether-site .aether-server-protocols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.aether-site .aether-server-protocol {
    display: grid;
    gap: 5px;
    min-height: 57px;
    padding: 11px 13px;
    border: 1px solid rgba(126, 146, 214, .2);
    border-radius: 10px;
    background: rgba(13, 19, 49, .76);
}

.aether-site .aether-server-protocol b {
    color: #dce8ff;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .08em;
}

.aether-site .aether-server-protocol small {
    color: #737b9f;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.aether-site .aether-server-protocol-cyan { border-color: rgba(88, 221, 255, .28); }
.aether-site .aether-server-protocol-cyan b { color: #76e6ff; }
.aether-site .aether-server-protocol-pink { border-color: rgba(247, 92, 203, .28); }
.aether-site .aether-server-protocol-pink b { color: #ff8fe1; }
.aether-site .aether-server-protocol-blue { border-color: rgba(119, 143, 255, .28); }
.aether-site .aether-server-protocol-blue b { color: #a9b6ff; }

.aether-site .aether-server-card-details-foot {
    padding-top: 14px;
    color: #697294;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.aether-site .aether-server-card-details-foot span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #70c9ac;
}

.aether-site .aether-server-card-details-foot i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #47dda6;
}

.aether-site .aether-server-app .aether-server-empty {
    border: 1px solid rgba(130, 140, 212, .19);
    border-radius: 16px;
    background: rgba(10, 14, 39, .67);
}

@media (max-width: 700px) {
    .aether-site .aether-server-app {
        margin-top: 30px;
        padding: 21px 13px 20px;
        border-radius: 22px;
    }

    .aether-site .aether-server-app-intro {
        padding: 42px 4px 27px;
    }

    .aether-site .aether-server-app-intro h1 {
        font-size: clamp(34px, 11vw, 50px);
    }

    .aether-site .aether-server-app-intro > p:last-child {
        font-size: 13px;
    }

    .aether-site .aether-server-app-toolbar {
        padding-right: 4px;
        padding-left: 4px;
    }

    .aether-site .aether-server-app-legend {
        max-width: 160px;
        text-align: right;
    }

    .aether-site .aether-server-card-summary {
        grid-template-columns: minmax(0, 1fr) auto 13px;
        gap: 10px;
        min-height: 74px;
        padding: 11px 12px;
    }

    .aether-site .aether-server-card-main {
        gap: 11px;
    }

    .aether-site .aether-server-card .aether-server-flag {
        width: 38px;
        height: 25px;
        flex-basis: 38px;
    }

    .aether-site .aether-server-card-name strong {
        font-size: 14px;
    }

    .aether-site .aether-server-card-name small {
        font-size: 8px;
    }

    .aether-site .aether-server-card-ping {
        grid-column: 2;
        grid-row: 1;
        min-width: 52px;
        font-size: 11px;
    }

    .aether-site .aether-server-card-status {
        grid-column: 1 / span 2;
        grid-row: 2;
        min-width: 0;
        margin-left: 49px;
        font-size: 8px;
    }

    .aether-site .aether-server-card-chevron {
        grid-column: 3;
        grid-row: 1;
        margin-top: -13px;
    }

    .aether-site .aether-server-card-details {
        padding: 0 12px 14px;
    }

    .aether-site .aether-server-card-details-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        padding-top: 13px;
    }

    .aether-site .aether-server-protocols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .aether-site .aether-server-protocol {
        min-height: 52px;
        padding: 9px 8px;
    }

    .aether-site .aether-server-protocol b {
        font-size: 10px;
    }

    .aether-site .aether-server-protocol small {
        font-size: 7px;
    }

    .aether-site .aether-server-card-details-foot {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
        font-size: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aether-site .aether-server-card,
    .aether-site .aether-server-card-chevron {
        transition: none;
    }
}

/* VPN hero visual: a protected route between real device endpoints. */
.aether-hero-visual {
    min-height: 520px;
}

.aether-vpn-visual {
    position: relative;
    width: min(100%, 660px);
    aspect-ratio: 1.12;
    min-height: 500px;
    display: grid;
    place-items: center;
    isolation: isolate;
    overflow: clip;
}

.aether-vpn-visual::before {
    content: "";
    position: absolute;
    inset: 8% 5% 11%;
    z-index: -2;
    border-radius: 36%;
    background:
        radial-gradient(circle at 50% 50%, rgba(65, 205, 255, .16), transparent 34%),
        radial-gradient(circle at 22% 36%, rgba(42, 125, 255, .12), transparent 30%),
        radial-gradient(circle at 78% 34%, rgba(226, 55, 207, .12), transparent 31%);
    filter: blur(20px);
}

.aether-vpn-visual::after {
    content: "";
    position: absolute;
    inset: 11% 9% 13%;
    z-index: -1;
    border: 1px solid rgba(126, 158, 226, .14);
    border-radius: 32% 42% 30% 44%;
    transform: rotate(-7deg);
    box-shadow: inset 0 0 52px rgba(60, 134, 242, .08), 0 0 70px rgba(42, 112, 246, .08);
}

.aether-vpn-visual-grid {
    position: absolute;
    inset: 14% 7% 17%;
    z-index: -1;
    opacity: .34;
    background-image:
        linear-gradient(rgba(122, 154, 221, .14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(122, 154, 221, .14) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse at center, #000 0%, transparent 72%);
    transform: perspective(780px) rotateX(58deg) rotateZ(-5deg) scale(1.28);
    transform-origin: center;
}

.aether-vpn-orbit {
    position: absolute;
    width: 53%;
    height: 35%;
    border: 1px solid rgba(96, 216, 255, .24);
    border-radius: 50%;
    transform: rotate(-18deg);
    box-shadow: 0 0 30px rgba(57, 165, 255, .08);
}

.aether-vpn-orbit-one {
    width: 45%;
    height: 29%;
    transform: rotate(24deg);
    border-color: rgba(247, 89, 214, .27);
}

.aether-vpn-orbit-two {
    width: 67%;
    height: 46%;
    transform: rotate(-15deg);
    opacity: .75;
}

.aether-vpn-tunnel {
    position: absolute;
    top: 31%;
    width: 42%;
    height: 33%;
    border: 1px solid rgba(74, 210, 255, .75);
    border-radius: 50%;
    clip-path: inset(0 0 48% 0);
    filter: drop-shadow(0 0 8px rgba(62, 191, 255, .26));
}

.aether-vpn-tunnel-left {
    left: 4%;
    transform: rotate(16deg);
}

.aether-vpn-tunnel-right {
    right: 4%;
    border-color: rgba(246, 80, 212, .74);
    transform: scaleX(-1) rotate(16deg);
    filter: drop-shadow(0 0 8px rgba(246, 80, 212, .22));
}

.aether-vpn-core {
    position: relative;
    width: 158px;
    height: 178px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    color: #f5f7ff;
    border: 1px solid rgba(137, 224, 255, .72);
    clip-path: polygon(50% 0, 91% 16%, 84% 64%, 50% 100%, 16% 64%, 9% 16%);
    background:
        linear-gradient(155deg, rgba(73, 211, 255, .2), rgba(75, 91, 240, .24) 46%, rgba(225, 54, 211, .2)),
        rgba(8, 16, 56, .8);
    box-shadow: 0 0 34px rgba(44, 171, 255, .22), inset 0 0 30px rgba(67, 116, 255, .18);
}

.aether-vpn-core-halo {
    position: absolute;
    inset: 16px 22px 25px;
    border: 1px solid rgba(255, 255, 255, .16);
    clip-path: inherit;
    opacity: .75;
}

.aether-vpn-shield {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(190, 243, 255, .68);
    border-radius: 50%;
    background: rgba(48, 167, 239, .2);
    box-shadow: 0 0 22px rgba(86, 226, 255, .32);
}

.aether-vpn-shield img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(151, 240, 255, .75));
}

.aether-vpn-core strong {
    font-size: 13px;
    letter-spacing: .18em;
}

.aether-vpn-core small {
    color: #9edfff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .19em;
}

.aether-vpn-node {
    position: absolute;
    min-width: 104px;
    min-height: 86px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    padding: 12px 13px;
    border: 1px solid rgba(116, 153, 221, .28);
    border-radius: 16px;
    background: rgba(10, 18, 52, .72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 17px 36px rgba(4, 7, 31, .2);
    backdrop-filter: blur(12px);
}

.aether-vpn-node img {
    width: 27px;
    height: 27px;
    object-fit: contain;
    opacity: .9;
}

.aether-vpn-node b {
    color: #bdcde8;
    font-size: 9px;
    letter-spacing: .14em;
}

.aether-vpn-node-phone {
    top: 17%;
    left: 7%;
}

.aether-vpn-node-desktop {
    top: 13%;
    right: 7%;
}

.aether-vpn-node-server {
    right: 10%;
    bottom: 12%;
    min-width: 126px;
    min-height: 62px;
    grid-template-columns: 24px auto;
    grid-template-rows: 1fr;
    gap: 9px;
}

.aether-vpn-node-server i {
    position: relative;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(101, 237, 255, .66);
    border-radius: 7px;
    box-shadow: 0 0 16px rgba(101, 237, 255, .16);
}

.aether-vpn-node-server i::before,
.aether-vpn-node-server i::after {
    content: "";
    position: absolute;
    left: 5px;
    right: 5px;
    height: 1px;
    background: #76eaff;
    box-shadow: 0 5px 0 rgba(118, 234, 255, .72);
}

.aether-vpn-node-server i::before { top: 7px; }
.aether-vpn-node-server i::after { top: 12px; opacity: .52; }

.aether-vpn-status {
    position: absolute;
    left: 50%;
    bottom: 7%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #91e5c4;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    white-space: nowrap;
    transform: translateX(-50%);
}

.aether-vpn-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #57e2a7;
    box-shadow: 0 0 12px rgba(87, 226, 167, .7);
}

.aether-vpn-packet {
    position: absolute;
    z-index: 2;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #80eaff;
    box-shadow: 0 0 0 4px rgba(128, 234, 255, .08), 0 0 16px rgba(128, 234, 255, .9);
    animation: aether-vpn-packet-left 4.8s cubic-bezier(.22, 1, .36, 1) infinite;
}

.aether-vpn-packet-one {
    top: 48%;
    left: 18%;
}

.aether-vpn-packet-two {
    top: 54%;
    right: 19%;
    background: #ff8be7;
    box-shadow: 0 0 0 4px rgba(255, 139, 231, .08), 0 0 16px rgba(255, 139, 231, .85);
    animation-name: aether-vpn-packet-right;
    animation-delay: -2.2s;
}

@keyframes aether-vpn-packet-left {
    0%, 10% { opacity: 0; transform: translate3d(0, 20px, 0) scale(.6); }
    20% { opacity: 1; }
    64% { opacity: 1; transform: translate3d(205px, -30px, 0) scale(1); }
    78%, 100% { opacity: 0; transform: translate3d(246px, -38px, 0) scale(.6); }
}

@keyframes aether-vpn-packet-right {
    0%, 10% { opacity: 0; transform: translate3d(0, -18px, 0) scale(.6); }
    20% { opacity: 1; }
    64% { opacity: 1; transform: translate3d(-190px, 28px, 0) scale(1); }
    78%, 100% { opacity: 0; transform: translate3d(-228px, 35px, 0) scale(.6); }
}

@media (max-width: 900px) and (min-width: 761px) {
    .aether-vpn-visual {
        min-height: 430px;
    }

    .aether-vpn-node {
        transform: scale(.86);
    }

    .aether-vpn-node-phone { left: 1%; }
    .aether-vpn-node-desktop { right: 1%; }
}

@media (max-width: 760px) {
    .aether-vpn-visual {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aether-vpn-packet {
        animation: none;
    }
}

/* VPN hero visual v2: a direct protected route, not an abstract orbit. */
.aether-hero-visual::before,
.aether-hero-visual::after {
    display: none;
}

.aether-vpn-scene {
    position: relative;
    width: min(100%, 660px);
    aspect-ratio: 1.12;
    min-height: 500px;
    overflow: clip;
    isolation: isolate;
}

.aether-vpn-scene::before {
    content: "";
    position: absolute;
    inset: 5% 1% 4%;
    z-index: -2;
    border: 1px solid rgba(119, 162, 236, .13);
    border-radius: 28px 92px 36px 72px;
    background:
        linear-gradient(135deg, rgba(22, 42, 95, .36), transparent 44%),
        linear-gradient(315deg, rgba(102, 26, 114, .2), transparent 55%),
        rgba(5, 11, 39, .16);
    transform: rotate(-2deg);
}

.aether-vpn-scene-glow {
    position: absolute;
    inset: 12% 8% 16%;
    z-index: -2;
    background:
        radial-gradient(circle at 47% 49%, rgba(65, 201, 255, .23), transparent 21%),
        radial-gradient(circle at 68% 42%, rgba(239, 64, 210, .19), transparent 30%),
        radial-gradient(circle at 22% 66%, rgba(34, 116, 250, .14), transparent 27%);
    filter: blur(28px);
}

.aether-vpn-floor-grid {
    position: absolute;
    left: -8%;
    right: -8%;
    bottom: -13%;
    height: 62%;
    z-index: -1;
    opacity: .36;
    background-image:
        linear-gradient(rgba(115, 164, 239, .18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(115, 164, 239, .16) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to top, #000 8%, transparent 88%);
    -webkit-mask-image: linear-gradient(to top, #000 8%, transparent 88%);
    transform: perspective(720px) rotateX(62deg) rotateZ(-8deg) scale(1.35);
    transform-origin: center bottom;
}

.aether-vpn-route,
.aether-vpn-route-line {
    position: absolute;
    height: 2px;
    border-radius: 999px;
    transform-origin: left center;
}

.aether-vpn-route {
    width: 58%;
    top: 55%;
    left: 7%;
    background: linear-gradient(90deg, transparent, #5fe4ff 21%, #5fe4ff 82%, transparent);
    box-shadow: 0 0 14px rgba(95, 228, 255, .74);
    transform: rotate(-23deg);
}

.aether-vpn-route-cyan {
    z-index: 1;
}

.aether-vpn-route-pink {
    top: 37%;
    right: 7%;
    background: linear-gradient(90deg, transparent, #ff84e6 17%, #ff84e6 83%, transparent);
    box-shadow: 0 0 14px rgba(255, 132, 230, .62);
    transform: rotate(202deg);
}

.aether-vpn-route-line {
    width: 48%;
    top: 59%;
    left: 11%;
    height: 1px;
    opacity: .42;
    background: linear-gradient(90deg, transparent, #86ecff 26%, transparent);
    transform: rotate(-23deg);
}

.aether-vpn-route-line-pink {
    top: 33%;
    right: 10%;
    background: linear-gradient(90deg, transparent, #ff9cec 28%, transparent);
    transform: rotate(202deg);
}

.aether-vpn-gateway {
    position: absolute;
    top: 49%;
    left: 50%;
    width: 196px;
    height: 196px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(119, 231, 255, .72);
    clip-path: polygon(50% 0, 100% 25%, 91% 81%, 50% 100%, 9% 81%, 0 25%);
    background:
        linear-gradient(148deg, rgba(75, 219, 255, .23), rgba(68, 87, 218, .28) 48%, rgba(227, 49, 204, .22)),
        rgba(7, 16, 56, .86);
    box-shadow: 0 0 38px rgba(54, 187, 255, .25), inset 0 0 28px rgba(89, 125, 255, .24);
    transform: translate(-50%, -50%);
}

.aether-vpn-gateway::before {
    content: "";
    position: absolute;
    inset: 17px;
    border: 1px solid rgba(238, 247, 255, .16);
    clip-path: inherit;
}

.aether-vpn-gateway-face {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    gap: 8px;
    color: #f4f7ff;
}

.aether-vpn-gateway-shield {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(202, 246, 255, .76);
    border-radius: 50%;
    background: rgba(80, 190, 242, .2);
    box-shadow: 0 0 24px rgba(115, 229, 255, .4);
}

.aether-vpn-gateway-shield img {
    width: 27px;
    height: 27px;
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(173, 242, 255, .8));
}

.aether-vpn-gateway-face strong {
    font-size: 15px;
    letter-spacing: .18em;
}

.aether-vpn-gateway-face small {
    color: #a8e7ff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .17em;
}

.aether-vpn-device {
    position: absolute;
    z-index: 2;
    width: 132px;
    min-height: 98px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 9px;
    padding: 15px;
    border: 1px solid rgba(126, 172, 235, .34);
    border-radius: 18px;
    background: rgba(9, 18, 52, .74);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 20px 40px rgba(4, 8, 33, .24);
    backdrop-filter: blur(14px);
}

.aether-vpn-device::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #65edff;
    box-shadow: 0 0 14px rgba(101, 237, 255, .86);
}

.aether-vpn-device-phone {
    top: 15%;
    left: 4%;
}

.aether-vpn-device-phone::after {
    right: 12px;
    top: 12px;
}

.aether-vpn-device-node {
    right: 3%;
    bottom: 14%;
    border-color: rgba(246, 125, 223, .34);
}

.aether-vpn-device-node::after {
    left: 12px;
    top: 12px;
    background: #ff83df;
    box-shadow: 0 0 14px rgba(255, 131, 223, .82);
}

.aether-vpn-device img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .9;
}

.aether-vpn-device b {
    color: #c3d2ec;
    font-size: 9px;
    letter-spacing: .13em;
}

.aether-vpn-packet-dot {
    position: absolute;
    z-index: 3;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8becff;
    box-shadow: 0 0 0 4px rgba(139, 236, 255, .08), 0 0 18px rgba(139, 236, 255, .9);
    animation: aether-vpn-route-packet 4.2s cubic-bezier(.22, 1, .36, 1) infinite;
}

.aether-vpn-packet-dot-one {
    top: 57%;
    left: 22%;
}

.aether-vpn-packet-dot-two {
    top: 35%;
    right: 22%;
    background: #ff94e9;
    box-shadow: 0 0 0 4px rgba(255, 148, 233, .08), 0 0 18px rgba(255, 148, 233, .88);
    animation-delay: -2.1s;
    animation-direction: reverse;
}

@keyframes aether-vpn-route-packet {
    0%, 12% { opacity: 0; transform: translate3d(0, 24px, 0) scale(.55); }
    22% { opacity: 1; }
    67% { opacity: 1; transform: translate3d(196px, -111px, 0) scale(1); }
    82%, 100% { opacity: 0; transform: translate3d(225px, -128px, 0) scale(.55); }
}

.aether-vpn-status {
    position: absolute;
    left: 50%;
    bottom: 5%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9ae9cb;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    white-space: nowrap;
    transform: translateX(-50%);
}

.aether-vpn-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5ae2a7;
    box-shadow: 0 0 12px rgba(90, 226, 167, .72);
}

@media (max-width: 900px) and (min-width: 761px) {
    .aether-vpn-scene {
        min-height: 430px;
    }

    .aether-vpn-device {
        transform: scale(.82);
    }

    .aether-vpn-device-phone { left: -3%; }
    .aether-vpn-device-node { right: -3%; }
}

@media (max-width: 760px) {
    .aether-vpn-scene {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aether-vpn-packet-dot {
        animation: none;
    }
}

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

.promo-admin-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.promo-admin-hero p {
    margin: 6px 0 0;
    color: var(--muted);
}

.promo-admin-hero > strong {
    min-width: 76px;
    min-height: 76px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(126, 58, 242, .32), rgba(35, 144, 255, .24));
    color: #fff;
    font-size: 30px;
}

.promo-admin-grid {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.promo-form,
.promo-list,
.promo-rows {
    display: grid;
    gap: 12px;
}

.promo-form label {
    display: grid;
    gap: 6px;
}

.promo-form label span,
.promo-list-head span,
.promo-row small {
    color: var(--muted);
    font-size: 12px;
}

.promo-form input {
    min-height: 44px;
}

.promo-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.promo-check {
    display: flex !important;
    align-items: center;
    gap: 10px !important;
}

.promo-check input {
    min-height: 0;
    width: 18px;
    height: 18px;
}

.promo-status.error {
    color: #ff7b8a;
}

.promo-list-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

.promo-list-head h3 {
    margin: 0;
}

.promo-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(140px, .7fr) minmax(100px, .45fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(126, 111, 194, .22);
    border-radius: 10px;
    background: rgba(9, 12, 28, .42);
}

.promo-row.disabled {
    opacity: .62;
}

.promo-row strong,
.promo-row b,
.promo-row span,
.promo-row small {
    display: block;
}

.promo-row strong {
    color: #fff;
    letter-spacing: .04em;
}

.promo-row b {
    color: #d8ccff;
}

@media (max-width: 980px) {
    .promo-admin-grid,
    .promo-row {
        grid-template-columns: 1fr;
    }

    .promo-admin-hero,
    .promo-list-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Screenshot-style compact admin overrides */
.shop-dashboard {
    gap: 12px;
}

.shop-toolbar,
.shop-metric,
.shop-card {
    border-color: #1d3557;
    border-radius: 8px;
    background: #0b1729;
    box-shadow: none;
}

.shop-toolbar {
    padding: 14px;
    background: #0c1729;
}

.shop-metrics {
    gap: 10px;
}

.shop-metric {
    min-height: 112px;
    padding: 16px 58px 14px 14px;
}

.shop-metric span {
    color: #93bfff;
}

.shop-metric strong {
    font-size: 30px;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.34);
}

.shop-metric small {
    color: #00f0a0;
    font-weight: 700;
}

.metric-glyph {
    border-radius: 9px;
    background: rgba(10, 24, 43, 0.92);
}

.shop-grid {
    gap: 10px;
}

.shop-card {
    padding: 14px;
}

.shop-card-head h2 {
    font-size: 16px;
    font-weight: 800;
}

.payment-item,
.server-rank,
.shop-note,
.quick-action {
    border-color: #1d3557;
    border-radius: 7px;
    background: #0d1b30;
}

.payment-item {
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-radius: 0;
    background: transparent;
}

.quick-action {
    min-height: 44px;
    font-weight: 700;
}

.shop-chart {
    height: 300px;
}

#incomeFill {
    fill: rgba(47, 124, 246, 0.22);
}

#incomeLine {
    stroke: #2f7cf6;
    stroke-width: 3;
}

#incomeGrid line {
    stroke: rgba(99, 123, 160, 0.22);
}

.donut span {
    background: #09192b;
}

/* Client-facing pages */
.client-body {
    min-height: 100vh;
    color: #f2f7ff;
    background:
        radial-gradient(860px 460px at 72% 8%, rgba(130, 97, 255, 0.28), transparent 64%),
        radial-gradient(700px 420px at 10% 18%, rgba(45, 218, 240, 0.18), transparent 62%),
        linear-gradient(180deg, #050716, #090f24 58%, #07101f);
}

.client-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 52px;
}

.client-shell.compact {
    width: min(940px, calc(100% - 32px));
}

.client-nav {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid rgba(88, 118, 174, 0.32);
    border-radius: 14px;
    padding: 0 14px;
    background: rgba(8, 14, 31, 0.72);
    backdrop-filter: blur(18px);
}

.client-brand,
.client-nav-actions,
.client-hero-actions,
.client-cabinet-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.client-brand img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.client-brand span {
    font-size: 18px;
    font-weight: 800;
}

.client-nav a,
.client-secondary,
.client-primary,
.client-plan a,
.client-plan button,
.client-form button,
.client-inline-form button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    padding: 0 14px;
    font-weight: 800;
}

.client-nav a {
    color: #d8e7ff;
}

.client-nav-primary,
.client-primary,
.client-plan a,
.client-plan button,
.client-form button,
.client-inline-form button {
    border: 0;
    color: #06101f;
    background: linear-gradient(135deg, #57e7ff, #b66dff 52%, #ff69c8);
    cursor: pointer;
}

.client-secondary {
    border: 1px solid rgba(105, 132, 190, 0.42);
    color: #e7f0ff;
    background: rgba(12, 22, 46, 0.78);
}

.client-hero {
    min-height: calc(100vh - 128px);
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
    gap: 22px;
    align-items: center;
    padding: 30px 0;
}

.client-hero-copy h1 {
    margin: 0;
    font-family: "Sora", "Space Grotesk", sans-serif;
    font-size: clamp(52px, 9vw, 104px);
    line-height: 0.92;
    letter-spacing: 0;
}

.client-hero-copy p:not(.client-kicker) {
    max-width: 620px;
    color: #b8c8e4;
    font-size: 18px;
    line-height: 1.7;
}

.client-kicker {
    margin: 0 0 8px;
    color: #72e7ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.client-logo-stage {
    min-height: 440px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(99, 119, 190, 0.28);
    border-radius: 22px;
    background:
        radial-gradient(circle at center, rgba(126, 103, 255, 0.24), transparent 64%),
        rgba(8, 14, 31, 0.58);
    overflow: hidden;
}

.client-logo-stage img {
    width: min(390px, 82%);
    border-radius: 24px;
    filter: drop-shadow(0 28px 70px rgba(116, 101, 255, 0.38));
}

.client-plans,
.client-auth,
.client-cabinet {
    border: 1px solid rgba(88, 118, 174, 0.3);
    border-radius: 18px;
    background: rgba(8, 14, 31, 0.7);
    backdrop-filter: blur(16px);
    padding: 18px;
}

.client-section-head {
    margin-bottom: 14px;
}

.client-section-head h2,
.client-auth h1,
.client-account-panel h1 {
    margin: 0;
    letter-spacing: 0;
}

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

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

.client-plan {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 220px;
    border: 1px solid rgba(88, 118, 174, 0.32);
    border-radius: 12px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(14, 25, 52, 0.88), rgba(9, 17, 36, 0.94));
}

.client-plan.featured {
    border-color: rgba(182, 109, 255, 0.62);
    box-shadow: inset 0 0 0 1px rgba(87, 231, 255, 0.16);
}

.client-plan span {
    width: max-content;
    border-radius: 999px;
    border: 1px solid rgba(87, 231, 255, 0.28);
    padding: 5px 9px;
    color: #a9efff;
    font-size: 12px;
    font-weight: 800;
}

.client-plan h3 {
    margin: 4px 0 0;
    font-size: 20px;
}

.client-plan strong {
    font-size: 34px;
}

.client-plan small,
.client-muted,
.client-form p {
    color: #9fb0ce;
}

.client-plan a,
.client-plan button {
    margin-top: auto;
    width: 100%;
}

.client-auth {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    gap: 18px;
    align-items: center;
}

.client-auth-visual {
    display: grid;
    gap: 12px;
    align-content: center;
    min-height: 420px;
    border-radius: 14px;
    padding: 24px;
    background: radial-gradient(circle at 50% 26%, rgba(182, 109, 255, 0.28), transparent 58%), rgba(5, 11, 26, 0.54);
}

.client-auth-visual img {
    width: 180px;
    border-radius: 18px;
}

.client-auth-visual p {
    max-width: 420px;
    color: #b8c8e4;
    line-height: 1.6;
}

.client-form,
.client-inline-form {
    display: grid;
    gap: 12px;
}

.client-form label {
    display: grid;
    gap: 6px;
}

.client-form span {
    color: #9fb0ce;
    font-size: 12px;
    font-weight: 800;
}

.client-form input,
.client-inline-form input {
    min-height: 46px;
    border-radius: 9px;
    border: 1px solid rgba(88, 118, 174, 0.36);
    background: rgba(5, 12, 28, 0.86);
    color: #f2f7ff;
}

.client-cabinet {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.client-account-panel,
.client-buy-panel {
    border: 1px solid rgba(88, 118, 174, 0.28);
    border-radius: 14px;
    padding: 16px;
    background: rgba(7, 15, 33, 0.72);
}

.client-inline-form {
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 16px;
}

.client-account-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin: 16px 0;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(87, 231, 255, 0.24);
    background: rgba(87, 231, 255, 0.07);
}

.client-account-card img {
    width: 58px;
    height: 58px;
    border-radius: 12px;
}

.client-account-card strong,
.client-account-card span {
    display: block;
}

.client-account-card span {
    color: #9fb0ce;
    margin-top: 3px;
}

.client-subscription-state {
    display: grid;
    gap: 5px;
    margin: 0 0 14px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 105, 200, 0.32);
    background:
        radial-gradient(320px 140px at 100% 0%, rgba(255, 105, 200, 0.16), transparent 70%),
        rgba(255, 105, 200, 0.08);
}

.client-subscription-state.active {
    border-color: rgba(87, 231, 255, 0.36);
    background:
        radial-gradient(320px 140px at 100% 0%, rgba(87, 231, 255, 0.16), transparent 70%),
        rgba(87, 231, 255, 0.08);
}

.client-subscription-state span {
    color: #9fb0ce;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.client-subscription-state strong {
    font-size: 32px;
}

.client-subscription-state small {
    color: #c1d0e8;
}

.client-dashboard-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.client-dashboard-strip article {
    min-height: 86px;
    border-radius: 12px;
    border: 1px solid rgba(88, 118, 174, 0.28);
    padding: 12px;
    background:
        linear-gradient(180deg, rgba(14, 25, 52, 0.9), rgba(9, 17, 36, 0.94));
}

.client-dashboard-strip span,
.client-dashboard-strip strong {
    display: block;
}

.client-dashboard-strip span {
    color: #9fb0ce;
    font-size: 12px;
}

.client-dashboard-strip strong {
    margin-top: 8px;
    font-size: 24px;
}

.client-form.checkout {
    margin-top: 14px;
    border-top: 1px solid rgba(88, 118, 174, 0.24);
    padding-top: 14px;
}

.client-form.checkout[hidden] {
    display: none;
}

@media (max-width: 1080px) {
    .client-hero,
    .client-auth,
    .client-cabinet {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .client-shell {
        width: min(100% - 22px, 1180px);
        padding-top: 12px;
    }

    .client-nav,
    .client-nav-actions,
    .client-hero-actions,
    .client-cabinet-actions,
    .client-inline-form {
        flex-direction: column;
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .client-plan-grid,
    .client-plan-grid.compact,
    .client-dashboard-strip {
        grid-template-columns: 1fr;
    }

    .client-logo-stage {
        min-height: 300px;
    }
}

/* User cabinet console, matched to admin screenshot */
.user-console-body {
    margin: 0;
    min-height: 100vh;
    color: #f2f7ff;
    background: #07101d;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.user-console {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
}

.user-console-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 18px 14px;
    border-right: 1px solid #1d3557;
    background: #050d1a;
}

.user-console-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-console-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    overflow: hidden;
    background: #0b1729;
}

.user-console-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-console-brand strong,
.user-console-brand small {
    display: block;
}

.user-console-brand strong {
    font-size: 16px;
}

.user-console-brand small,
.user-console-nav a,
.user-console-sidefoot span {
    color: #91a7c4;
    font-size: 12px;
}

.user-console-nav {
    display: grid;
    gap: 8px;
    margin-top: 34px;
}

.user-console-nav a {
    min-height: 38px;
    display: flex;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 9px;
    padding: 0 12px;
}

.user-console-nav a.active,
.user-console-nav a:hover {
    color: #eaf3ff;
    border-color: rgba(52, 211, 153, 0.55);
    background: rgba(52, 211, 153, 0.16);
}

.user-console-sidefoot {
    display: grid;
    gap: 10px;
    margin-top: auto;
}

.user-console-sidefoot a {
    color: #ffb4b4;
    font-size: 12px;
}

.user-console-main {
    min-width: 0;
}

.user-console-topbar {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 26px;
    border-bottom: 1px solid #1d3557;
    background: #07101d;
}

.user-console-topbar h1,
.user-console-topbar p {
    margin: 0;
}

.user-console-topbar h1 {
    font-size: 17px;
}

.user-console-topbar p {
    margin-top: 3px;
    color: #91a7c4;
    font-size: 12px;
}

.user-live {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #1d3557;
    border-radius: 999px;
    padding: 0 12px;
    color: #91a7c4;
    font-size: 12px;
}

.user-live i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
}

.user-console-content {
    width: min(1360px, 100%);
    margin: 0 auto;
    padding: 22px 28px 34px;
}

.user-panel,
.user-metric {
    border: 1px solid #1d3557;
    border-radius: 8px;
    background: #0b1729;
    box-shadow: none;
}

.user-hero-panel {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
}

.user-kicker {
    margin: 0 0 5px;
    color: #7db2ff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.user-hero-panel h2 {
    margin: 0;
    font-size: 22px;
}

.user-lookup {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 8px;
}

.user-lookup input,
.user-checkout-form input {
    min-height: 38px;
    border-radius: 8px;
    border: 1px solid #1d3557;
    background: #07101d;
    color: #f2f7ff;
    padding: 0 10px;
}

.user-lookup button,
.user-checkout-form button,
.user-primary,
.user-secondary {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0 12px;
    font-weight: 800;
    font-size: 12px;
}

.user-lookup button,
.user-checkout-form button,
.user-primary {
    border: 1px solid rgba(52, 211, 153, 0.55);
    color: #041224;
    background: #34d399;
}

.user-secondary {
    border: 1px solid #1d3557;
    color: #dbeafe;
    background: #0d1b30;
}

.user-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.user-metric {
    position: relative;
    min-height: 104px;
    padding: 14px 56px 12px 14px;
}

.user-metric span {
    color: #93bfff;
    font-size: 14px;
}

.user-metric strong {
    display: block;
    margin-top: 8px;
    font-size: 28px;
    line-height: 1;
}

.user-metric small {
    display: block;
    margin-top: 8px;
    color: #00f0a0;
    font-size: 12px;
    font-weight: 900;
}

.user-metric i {
    position: absolute;
    right: 14px;
    top: 30px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #3b82f6;
    border-radius: 9px;
    color: #7db2ff;
    font-style: normal;
    background: #08182b;
}

.user-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 0.8fr;
    grid-template-areas:
        "subscription plans checkout"
        "import plans checkout"
        "devices devices support";
    gap: 10px;
    margin-top: 10px;
    align-items: stretch;
}

.user-subscription-card { grid-area: subscription; }
.user-import-card { grid-area: import; }
.user-plans-card { grid-area: plans; }
.user-checkout-card { grid-area: checkout; }
.user-devices-card { grid-area: devices; }
.user-support-card { grid-area: support; }

.user-panel {
    padding: 14px;
}

.user-card-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.user-card-head h3 {
    margin: 0;
    font-size: 16px;
}

.user-card-head span {
    color: #91a7c4;
    font-size: 12px;
}

.user-subscription-ring {
    width: 146px;
    height: 146px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    margin: 8px auto 14px;
    background: conic-gradient(#2f7cf6 0 62%, #34d399 62% 82%, #ffd34e 82% 100%);
}

.user-subscription-ring div {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #08192e;
}

.user-subscription-ring strong,
.user-subscription-ring small {
    display: block;
}

.user-subscription-ring strong {
    font-size: 28px;
}

.user-subscription-ring small {
    margin-top: -24px;
    color: #91a7c4;
    font-size: 11px;
}

.user-subscription-card p,
.user-support-card p,
.user-checkout-form p {
    color: #b9c9df;
    line-height: 1.5;
    font-size: 13px;
}

.user-action-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.user-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.user-quick-actions a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1d3557;
    border-radius: 8px;
    background: #0d1b30;
    color: #dbeafe;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
}

.user-plan-list,
.user-device-list,
.user-checkout-form {
    display: grid;
    gap: 8px;
}

.user-plan-row {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid #1d3557;
    border-radius: 8px;
    padding: 10px;
    background: #0d1b30;
    color: #f2f7ff;
    text-align: left;
    cursor: pointer;
}

.user-plan-row.selected,
.user-plan-row:hover {
    border-color: rgba(52, 211, 153, 0.62);
    background: rgba(52, 211, 153, 0.12);
}

.user-plan-row strong,
.user-plan-row small {
    display: block;
}

.user-plan-row small {
    margin-top: 3px;
    color: #91a7c4;
}

.user-plan-row em {
    font-style: normal;
    font-weight: 900;
    color: #ffffff;
}

.user-checkout-form label {
    display: grid;
    gap: 6px;
}

.user-checkout-form label span {
    color: #91a7c4;
    font-size: 12px;
}

.user-device-list span {
    min-height: 38px;
    display: flex;
    align-items: center;
    border: 1px solid #1d3557;
    border-radius: 8px;
    padding: 0 10px;
    background: #0d1b30;
    color: #dbeafe;
    font-size: 12px;
}

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

    .user-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "subscription import"
            "plans checkout"
            "devices support";
    }
}

@media (max-width: 860px) {
    .user-console {
        grid-template-columns: 1fr;
    }

    .user-console-sidebar {
        position: relative;
        height: auto;
    }

    .user-console-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 16px;
    }

    .user-console-content {
        padding: 14px;
    }

    .user-hero-panel,
    .user-console-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .user-lookup,
    .user-metrics,
    .user-grid {
        grid-template-columns: 1fr;
        grid-template-areas: none;
    }

    .user-grid > .user-panel {
        grid-area: auto !important;
    }

    .user-quick-actions {
        grid-template-columns: 1fr;
    }
}

/* User hub cabinet */
.user-console-body {
    background:
        radial-gradient(880px 520px at 78% 12%, rgba(157, 71, 255, 0.11), transparent 60%),
        radial-gradient(760px 420px at 52% 0%, rgba(32, 160, 255, 0.08), transparent 58%),
        #060815;
    color: #f5f3ff;
}

.user-hub {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
}

.user-hub-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 32px 16px 20px;
    border-right: 1px solid rgba(93, 100, 156, 0.16);
    background: rgba(5, 7, 18, 0.92);
    backdrop-filter: blur(14px);
}

.user-hub-brand strong {
    display: block;
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.user-hub-brand b {
    color: #a154ff;
    font-weight: 800;
}

.user-hub-nav {
    display: grid;
    gap: 8px;
}

.user-hub-nav a,
.user-hub-sidebar-bottom a {
    min-height: 50px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #b8bdd6;
    font-size: 15px;
    transition:
        border-color .18s ease,
        background .18s ease,
        color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.user-hub-nav a:hover,
.user-hub-nav a.active,
.user-hub-sidebar-bottom a:hover {
    color: #ffffff;
    background: rgba(98, 52, 197, 0.16);
    border-color: rgba(142, 94, 255, 0.34);
    box-shadow:
        inset 0 0 0 1px rgba(190, 138, 255, 0.12),
        0 10px 28px rgba(81, 45, 180, 0.18);
    transform: translateY(-1px);
}

.user-hub-sidebar-bottom {
    margin-top: auto;
    display: grid;
    gap: 14px;
}

.user-hub-sidebar-bottom span {
    color: #8e94b5;
    font-size: 14px;
    padding: 0 6px;
}

.user-hub-main {
    min-width: 0;
    padding: 34px 38px 48px;
}

.user-hub-topbar {
    min-height: 86px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(93, 100, 156, 0.14);
}

.user-hub-topbar h1,
.user-hub-topbar p {
    margin: 0;
}

.user-hub-topbar h1 {
    font-size: clamp(34px, 3.2vw, 56px);
    line-height: 1.08;
    font-weight: 800;
}

.user-hub-topbar h1 em {
    font-style: normal;
    color: #a154ff;
}

.user-hub-topbar p {
    margin-top: 12px;
    color: #a5abc6;
    font-size: 18px;
}

.user-hub-avatar {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(115, 51, 206, 0.82), rgba(64, 25, 126, 0.92));
    border: 1px solid rgba(184, 129, 255, 0.34);
    color: #ffffff;
    font-size: 28px;
}

.user-hub-profile strong,
.user-hub-profile small {
    display: block;
}

.user-hub-profile strong {
    font-size: 18px;
}

.user-hub-profile small {
    margin-top: 5px;
    color: #b061ff;
    font-size: 15px;
}

.user-hub-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
    gap: 28px 26px;
    padding-top: 32px;
}

.user-hub-card {
    border: 1px solid rgba(93, 100, 156, 0.18);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(13, 16, 34, 0.98), rgba(8, 10, 24, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.02),
        0 24px 64px rgba(2, 5, 18, 0.42);
    padding: 26px 28px;
}

.user-hub-subscription { grid-column: 1; }
.user-hub-referral { grid-column: 2; grid-row: span 3; }
.user-hub-overview { grid-column: 1; }
.user-hub-benefits { grid-column: 1; }
.user-hub-plans { grid-column: 1; }
.user-hub-checkout { grid-column: 2; }
.user-hub-purchase { grid-column: 1; }
.user-hub-payments { grid-column: 1; }
.user-hub-settings { grid-column: 2; }

.user-hub-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.user-hub-card-head h3,
.user-hub-card-head span,
.user-hub-subscription h2,
.user-hub-subscription p {
    margin: 0;
}

.user-hub-card-head h3 {
    font-size: 22px;
    font-weight: 700;
}

.user-hub-card-head > span,
.user-hub-card-head > div,
.user-hub-subscription > span {
    color: #9da4c2;
    font-size: 14px;
}

.user-hub-subscription-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}

.user-hub-subscription-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(160px, 0.75fr) minmax(180px, 0.85fr);
    gap: 18px;
    align-items: stretch;
    border: 1px solid rgba(215, 44, 255, 0.28);
    border-radius: 16px;
    padding: 22px;
    background:
        radial-gradient(360px 180px at 100% 0%, rgba(215, 44, 255, 0.18), transparent 72%),
        radial-gradient(300px 160px at 0% 100%, rgba(35, 155, 255, 0.1), transparent 70%),
        linear-gradient(135deg, rgba(48, 19, 96, 0.78), rgba(12, 9, 38, 0.72));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.user-hub-plan-summary {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 12px;
}

.user-hub-plan-summary > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.user-hub-plan-summary h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1;
    font-weight: 900;
}

.user-hub-plan-summary p {
    max-width: 380px;
    margin: 0;
    color: #d6d0ef;
    font-size: 15px;
    line-height: 1.55;
}

.user-hub-subscription-stat {
    min-width: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 7px;
    border-left: 1px solid rgba(126, 111, 194, 0.22);
    padding-left: 18px;
    text-align: center;
}

.user-hub-subscription-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(215, 44, 255, 0.42);
    border-radius: 14px;
    color: #d72cff;
    background: rgba(86, 43, 160, 0.28);
}

.user-hub-subscription-icon.heart {
    color: #f044ff;
}

.user-hub-subscription-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.user-hub-subscription-stat > span:not(.user-hub-subscription-icon) {
    color: #aaa6c3;
    font-size: 12px;
}

.user-hub-subscription-stat strong {
    max-width: 100%;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.user-hub-favorite-name {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.user-hub-server-flag {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 18px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 3px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    transform: translateY(1px);
}

.user-hub-server-flag.flag-pl {
    background: linear-gradient(180deg, #ffffff 0 50%, #dc143c 50% 100%);
}

.user-hub-server-flag.flag-de {
    background: linear-gradient(180deg, #000000 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66% 100%);
}

.user-hub-server-flag.flag-nl {
    background: linear-gradient(180deg, #ae1c28 0 33.33%, #ffffff 33.33% 66.66%, #21468b 66.66% 100%);
}

.user-hub-server-flag.flag-fi {
    background:
        linear-gradient(90deg, transparent 0 28%, #002f6c 28% 42%, transparent 42% 100%),
        linear-gradient(180deg, transparent 0 38%, #002f6c 38% 58%, transparent 58% 100%),
        #ffffff;
}

.user-hub-server-flag.flag-cz {
    background:
        linear-gradient(146deg, #11457e 0 42%, transparent 42% 100%),
        linear-gradient(180deg, #ffffff 0 50%, #d7141a 50% 100%);
}

.user-hub-server-flag.flag-us {
    background:
        linear-gradient(180deg, #b22234 0 7.69%, #ffffff 7.69% 15.38%, #b22234 15.38% 23.07%, #ffffff 23.07% 30.76%, #b22234 30.76% 38.45%, #ffffff 38.45% 46.14%, #b22234 46.14% 53.83%, #ffffff 53.83% 61.52%, #b22234 61.52% 69.21%, #ffffff 69.21% 76.9%, #b22234 76.9% 84.59%, #ffffff 84.59% 92.28%, #b22234 92.28% 100%);
}

.user-hub-server-flag.flag-us::before {
    content: "";
    justify-self: start;
    align-self: start;
    width: 42%;
    height: 54%;
    background: #3c3b6e;
}

.user-hub-server-flag.flag-gb {
    background:
        linear-gradient(90deg, transparent 0 42%, #ffffff 42% 58%, transparent 58% 100%),
        linear-gradient(180deg, transparent 0 36%, #ffffff 36% 64%, transparent 64% 100%),
        linear-gradient(90deg, transparent 0 46%, #c8102e 46% 54%, transparent 54% 100%),
        linear-gradient(180deg, transparent 0 42%, #c8102e 42% 58%, transparent 58% 100%),
        #012169;
}

.user-hub-server-flag.flag-fr {
    background: linear-gradient(90deg, #0055a4 0 33.33%, #ffffff 33.33% 66.66%, #ef4135 66.66% 100%);
}

.user-hub-server-flag.flag-tr {
    background: #e30a17;
}

.user-hub-server-flag.flag-sg {
    background: linear-gradient(180deg, #ef3340 0 50%, #ffffff 50% 100%);
}

.user-hub-server-flag.flag-lv {
    background: linear-gradient(180deg, #9e3039 0 40%, #ffffff 40% 60%, #9e3039 60% 100%);
}

.user-hub-server-flag.flag-ru {
    background: linear-gradient(180deg, #ffffff 0 33.33%, #0039a6 33.33% 66.66%, #d52b1e 66.66% 100%);
}

.user-hub-subscription-stat small {
    color: #bfb9db;
    font-size: 12px;
}

.user-hub-subscription-copy h2 {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 52px;
    font-weight: 700;
}

.user-hub-badge {
    width: max-content;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin-top: 14px;
    border-radius: 999px;
    padding: 0 14px;
    color: #b5b7d0;
    background: rgba(39, 34, 70, 0.82);
    font-size: 15px;
}

.user-hub-badge.active {
    color: #c59bff;
    background: rgba(86, 43, 160, 0.56);
}

.user-hub-subscription-copy p {
    margin-top: 12px;
    color: #a9aec8;
    font-size: 18px;
    line-height: 1.65;
}

.user-hub-facts {
    display: grid;
    gap: 16px;
    margin: 32px 0 0;
}

.user-hub-facts dt {
    color: #989fbf;
    font-size: 15px;
}

.user-hub-facts dd {
    margin: 8px 0 0;
    color: #b45cff;
    font-size: 20px;
    font-weight: 700;
}

.user-hub-tariff-schedule {
    display: grid;
    grid-template-columns: minmax(0, 190px) minmax(110px, 1fr) minmax(0, 190px);
    align-items: center;
    gap: 12px;
    max-width: 680px;
    margin-top: 24px;
    border: 1px solid rgba(93, 100, 156, 0.18);
    border-radius: 16px;
    padding: 14px;
    background: rgba(6, 8, 22, 0.42);
}

.user-hub-tariff-node {
    min-height: 94px;
    display: grid;
    align-content: center;
    gap: 4px;
    border: 1px solid rgba(93, 100, 156, 0.16);
    border-radius: 12px;
    padding: 12px;
    background: rgba(12, 15, 32, 0.82);
}

.user-hub-tariff-node span,
.user-hub-tariff-node small {
    color: #9da4c2;
    font-size: 13px;
}

.user-hub-tariff-node strong {
    color: #f7f3ff;
    font-size: 22px;
    line-height: 1.1;
}

.user-hub-tariff-node.current {
    border-color: rgba(180, 92, 255, 0.34);
}

.user-hub-tariff-node.next strong {
    color: #d8dcf2;
}

.user-hub-tariff-line {
    position: relative;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b9bfd8;
    font-size: 13px;
    text-align: center;
}

.user-hub-tariff-line::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg, rgba(180, 92, 255, 0.2), rgba(180, 92, 255, 0.72), rgba(93, 100, 156, 0.2));
}

.user-hub-tariff-line span {
    position: relative;
    border: 1px solid rgba(93, 100, 156, 0.22);
    border-radius: 999px;
    padding: 6px 10px;
    background: #080a18;
}

.user-hub-pending-note {
    max-width: 680px;
    color: #b8bdd4;
    font-size: 15px;
}

.user-hub-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.user-hub-subscription-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: none;
    margin-top: 22px;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

.user-hub-primary,
.user-hub-secondary,
.user-hub-field button,
.user-hub-plan,
.user-hub-form button {
    transition:
        border-color .18s ease,
        background .18s ease,
        color .18s ease,
        box-shadow .18s ease,
        transform .18s ease,
        filter .18s ease;
}

.user-hub-primary,
.user-hub-form .user-hub-primary {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(160, 84, 255, 0.32);
    padding: 0 20px;
    color: #fefcff;
    background: linear-gradient(135deg, rgba(73, 31, 124, 0.9), rgba(126, 67, 234, 0.92));
    box-shadow: 0 18px 42px rgba(86, 43, 160, 0.22);
    font-size: 16px;
    font-weight: 700;
}

.user-hub-subscription-actions .user-hub-primary,
.user-hub-subscription-actions .user-hub-secondary {
    position: relative;
    min-height: 68px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 18px;
    align-items: center;
    justify-items: stretch;
    gap: 14px;
    border-radius: 12px;
    padding: 10px 16px 10px 12px;
    text-align: left;
}

.user-hub-subscription-actions .user-hub-primary {
    border-color: rgba(215, 44, 255, 0.24);
    background:
        radial-gradient(180px 90px at 0% 50%, rgba(215, 44, 255, 0.18), transparent 70%),
        linear-gradient(180deg, rgba(17, 14, 55, 0.78), rgba(8, 8, 29, 0.72));
    box-shadow: none;
}

.user-hub-subscription-actions .user-hub-secondary {
    border: 1px solid rgba(126, 111, 194, 0.22);
    color: #fefcff;
    background:
        radial-gradient(180px 90px at 0% 50%, rgba(126, 67, 234, 0.14), transparent 70%),
        linear-gradient(180deg, rgba(17, 14, 55, 0.7), rgba(8, 8, 29, 0.68));
}

.user-hub-subscription-actions .user-hub-primary::after,
.user-hub-subscription-actions .user-hub-secondary::after {
    content: "›";
    color: #a78bff;
    font-size: 30px;
    line-height: 1;
}

.user-hub-subscription-actions i {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #f0dbff;
    background:
        linear-gradient(135deg, rgba(215, 44, 255, 0.52), rgba(126, 67, 234, 0.3)),
        rgba(255, 255, 255, 0.04);
}

.user-hub-subscription-actions svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.user-hub-subscription-actions span,
.user-hub-subscription-actions small {
    display: block;
}

.user-hub-subscription-actions span {
    min-width: 0;
}

.user-hub-subscription-actions b {
    display: block;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.25;
}

.user-hub-subscription-actions small {
    margin-top: 4px;
    color: #aeb5d0;
    font-size: 12px;
    font-weight: 500;
}

.user-hub-share-button {
    width: 100%;
}

.user-hub-app-downloads {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    width: 100%;
    max-width: 100%;
    margin-top: 14px;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: #969db9;
    font-size: 14px;
}

.user-hub-app-downloads > span {
    padding: 0 2px 0 0;
    white-space: nowrap;
}

.user-hub-app-downloads a,
.user-hub-app-download-choice,
.user-hub-app-download-disabled,
.user-hub-app-download-apple > span,
.user-hub-app-download-apple a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(93, 100, 156, 0.2);
    border-radius: 12px;
    padding: 0 11px;
    color: #f4f4ff;
    background: rgba(12, 15, 31, 0.72);
    font-weight: 700;
    transition:
        border-color .18s ease,
        background .18s ease,
        transform .18s ease;
}

.user-hub-app-download-choice {
    font: inherit;
    cursor: pointer;
}

.user-hub-app-download-apple {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    border: 1px solid rgba(93, 100, 156, 0.16);
    border-radius: 12px;
    padding: 4px;
    background: rgba(6, 8, 22, 0.4);
}

.user-hub-app-download-apple > span {
    padding: 0 9px;
    background: rgba(12, 15, 31, 0.62);
}

.user-hub-app-download-apple a {
    min-height: 34px;
    padding: 0 9px;
    border-radius: 9px;
    font-size: 12px;
}

.user-hub-app-download-disabled {
    opacity: .45;
    cursor: not-allowed;
}

.user-hub-app-downloads a:hover,
.user-hub-app-download-choice:hover,
.user-hub-app-download-choice[aria-expanded="true"],
.user-hub-app-download-apple a:hover {
    border-color: rgba(171, 115, 255, 0.5);
    background: rgba(76, 39, 137, 0.36);
    transform: translateY(-1px);
}

.user-hub-app-downloads img,
.user-hub-app-download-choice img,
.user-hub-app-download-disabled img,
.user-hub-app-download-apple img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
    padding: 3px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.88);
}

.user-hub-app-downloads b,
.user-hub-app-download-choice b,
.user-hub-app-download-disabled b,
.user-hub-app-download-apple b {
    font-size: 13px;
}

.user-hub-app-choice-menu {
    position: absolute;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(93, 100, 156, 0.18);
    border-radius: 12px;
    padding: 5px;
    background: rgba(6, 8, 22, 0.76);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.user-hub-app-choice-menu[hidden] {
    display: none;
}

.user-hub-app-choice-menu a {
    min-height: 32px;
    border-radius: 9px;
    padding: 0 10px;
}

.user-hub-toast {
    position: fixed;
    top: 22px;
    right: 28px;
    z-index: 50;
    min-width: 260px;
    display: grid;
    gap: 4px;
    border: 1px solid rgba(171, 115, 255, 0.34);
    border-radius: 16px;
    padding: 14px 16px;
    color: #f7f2ff;
    background:
        linear-gradient(135deg, rgba(40, 24, 78, 0.96), rgba(86, 43, 160, 0.96));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(-10px);
    transition:
        opacity .2s ease,
        transform .2s ease;
}

.user-hub-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.user-hub-toast strong {
    font-size: 15px;
}

.user-hub-toast span {
    color: #d8cff5;
    font-size: 13px;
}

.user-hub-secondary,
.user-hub-field button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(93, 100, 156, 0.24);
    padding: 0 18px;
    color: #f4f4ff;
    background: rgba(12, 15, 31, 0.9);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.user-hub-secondary.full {
    width: 100%;
}

.user-hub-primary:hover,
.user-hub-secondary:hover,
.user-hub-field button:hover,
.user-hub-form button:hover,
.user-hub-plan:hover,
.user-hub-nav a:focus-visible,
.user-hub-sidebar-bottom a:focus-visible {
    border-color: rgba(171, 115, 255, 0.6);
    box-shadow:
        0 0 0 1px rgba(201, 136, 255, 0.18),
        0 0 28px rgba(107, 59, 201, 0.18);
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.user-hub-referral p {
    margin: 0 0 22px;
    color: #abafc8;
    font-size: 17px;
    line-height: 1.6;
}

.user-hub-field {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.user-hub-field span {
    color: #9fa4c1;
    font-size: 14px;
}

.user-hub-field div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.user-hub-field input,
.user-hub-form input {
    min-height: 54px;
    border: 1px solid rgba(93, 100, 156, 0.24);
    border-radius: 12px;
    padding: 0 16px;
    background: rgba(11, 14, 28, 0.96);
    color: #f5f3ff;
    font-size: 16px;
}

.user-hub-promo-status {
    min-height: 20px;
    margin: -2px 0 0;
    color: #aeb5d4;
    font-size: 13px;
    line-height: 1.35;
}

.user-hub-promo-status:empty {
    display: none;
}

.user-hub-promo-status[data-state="success"] {
    color: #63e6a1;
}

.user-hub-promo-status[data-state="error"] {
    color: #ff8aa0;
}

.user-hub-promo-status[data-state="loading"] {
    color: #c5cced;
}

.user-hub-referral-bonus {
    display: grid;
    gap: 6px;
    margin: 28px 0;
    border: 1px solid rgba(93, 100, 156, 0.18);
    border-radius: 18px;
    padding: 24px;
    background:
        radial-gradient(220px 120px at 90% 30%, rgba(160, 84, 255, 0.14), transparent 70%),
        rgba(12, 15, 31, 0.92);
}

.user-hub-referral-bonus strong {
    color: #ab54ff;
    font-size: 44px;
}

.user-hub-referral-bonus span {
    color: #adb2ca;
    font-size: 15px;
    line-height: 1.55;
}

.user-hub-mini-stats,
.user-hub-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

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

.user-hub-mini-stats article,
.user-hub-settings-grid article {
    min-height: 96px;
    display: grid;
    align-content: center;
    gap: 8px;
    border: 1px solid rgba(93, 100, 156, 0.18);
    border-radius: 16px;
    padding: 18px;
    background: rgba(12, 15, 31, 0.82);
}

.user-hub-mini-stats strong,
.user-hub-settings-grid strong {
    font-size: 20px;
}

.user-hub-settings-grid strong small {
    display: block;
    margin-top: 6px;
    color: #aeb5d0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}

.user-hub-mini-stats span,
.user-hub-settings-grid span {
    color: #98a0c1;
    font-size: 14px;
}

.user-hub-referral-list {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
}

.user-hub-referral-list article {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(93, 100, 156, 0.16);
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(12, 15, 31, 0.66);
}

.user-hub-referral-list strong,
.user-hub-referral-list small {
    display: block;
}

.user-hub-referral-list strong {
    font-size: 15px;
}

.user-hub-referral-list small {
    margin-top: 3px;
    color: #98a0c1;
    font-size: 12px;
}

.user-hub-referral-list > article > span {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 5px 9px;
    color: #c9cde1;
    background: rgba(93, 100, 156, 0.16);
    font-size: 12px;
}

.user-hub-referral-list > article > span.active {
    color: #bff5cf;
    background: rgba(26, 88, 56, 0.34);
}

.user-hub-referral .user-hub-secondary.full {
    margin-top: 16px;
}

/* Admin refinement */
.admin-layout {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px),
        radial-gradient(900px 520px at 12% -12%, rgba(47, 124, 246, 0.13), transparent 62%),
        radial-gradient(720px 520px at 96% 4%, rgba(52, 211, 153, 0.11), transparent 60%),
        radial-gradient(640px 420px at 72% 95%, rgba(246, 182, 70, 0.06), transparent 64%),
        linear-gradient(180deg, #050b16, #071323 54%, #050b16);
    background-size: 34px 34px, 34px 34px, auto, auto, auto, auto;
}

.admin-layout .layout-shell {
    grid-template-columns: 220px minmax(0, 1fr);
}

.admin-layout .app-sidebar {
    gap: 18px;
    padding: 16px 10px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 24%),
        linear-gradient(180deg, rgba(4, 10, 20, 0.985), rgba(7, 16, 30, 0.985));
}

.admin-layout .sidebar-brand-mark {
    color: #061327;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.55), transparent 34%),
        linear-gradient(135deg, #34d399, #64b7ff);
    font-weight: 900;
}

.admin-layout .sidebar-link {
    position: relative;
    min-height: 42px;
    border-radius: 10px;
    font-size: 14px;
}

.admin-layout .sidebar-link::before {
    display: none;
}

.admin-layout .nav-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 8px;
    border: 1px solid rgba(100, 183, 255, 0.18);
    background: rgba(5, 12, 24, 0.68);
    color: #9fb3cf;
    padding: 6px;
    object-fit: contain;
    filter: invert(77%) sepia(15%) saturate(520%) hue-rotate(176deg) brightness(92%) contrast(88%);
}

.admin-layout .sidebar-link.active {
    border-color: rgba(100, 183, 255, 0.44);
    background:
        linear-gradient(135deg, rgba(47, 124, 246, 0.24), rgba(52, 211, 153, 0.15)),
        rgba(13, 27, 49, 0.82);
    box-shadow: inset 3px 0 0 rgba(52, 211, 153, 0.78);
}

.admin-layout .sidebar-link.active::after {
    content: "";
    position: absolute;
    right: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12);
}

.admin-layout .sidebar-link.active .nav-icon {
    border-color: transparent;
    background: linear-gradient(135deg, #34d399, #64b7ff);
    filter: invert(7%) sepia(34%) saturate(2067%) hue-rotate(183deg) brightness(90%) contrast(99%);
}

.admin-layout .layout-topbar {
    min-height: 62px;
    background:
        linear-gradient(90deg, rgba(100, 183, 255, 0.08), transparent 42%),
        rgba(5, 12, 24, 0.86);
}

.topbar-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.admin-jump {
    width: min(280px, 28vw);
    display: grid;
    gap: 4px;
}

.admin-jump span {
    color: #8ea4c0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-jump input {
    min-height: 38px;
    border-radius: 10px;
    font-size: 12px;
}

.admin-layout .layout-content {
    width: min(1500px, 100%);
    padding: 12px clamp(12px, 1.4vw, 20px) 24px;
}

.admin-layout .panel,
.admin-layout .card,
.admin-layout .shop-toolbar,
.admin-layout .shop-metric,
.admin-layout .shop-card {
    border-color: rgba(49, 72, 110, 0.74);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(12, 25, 45, 0.96), rgba(7, 16, 30, 0.96));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 18px 44px rgba(0, 0, 0, 0.26);
}

.admin-layout .shop-dashboard {
    gap: 10px;
}

.admin-command-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr)) repeat(3, minmax(140px, 0.64fr));
    gap: 10px;
}

.admin-command-card,
.admin-health-card {
    position: relative;
    min-width: 0;
    min-height: 70px;
    display: grid;
    align-content: center;
    gap: 5px;
    border: 1px solid rgba(49, 72, 110, 0.74);
    border-radius: 10px;
    padding: 10px 12px;
    background:
        radial-gradient(220px 110px at 100% 0%, rgba(100, 183, 255, 0.11), transparent 70%),
        linear-gradient(180deg, rgba(12, 25, 45, 0.94), rgba(7, 16, 30, 0.94));
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.admin-command-card::after,
.admin-health-card::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: #64b7ff;
}

.admin-command-card {
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.admin-command-card:hover {
    border-color: rgba(100, 183, 255, 0.52);
    background:
        radial-gradient(220px 110px at 100% 0%, rgba(52, 211, 153, 0.13), transparent 70%),
        linear-gradient(180deg, rgba(14, 31, 55, 0.96), rgba(8, 19, 36, 0.96));
    transform: translateY(-1px);
}

.admin-command-card span {
    grid-row: span 2;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #061327;
    background: linear-gradient(135deg, #34d399, #64b7ff);
    font-size: 11px;
    font-weight: 900;
}

.admin-command-card span img,
.metric-glyph img,
.btn-icon {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.admin-command-card span img {
    filter: invert(7%) sepia(34%) saturate(2067%) hue-rotate(183deg) brightness(90%) contrast(99%);
}

.metric-glyph img {
    width: 20px;
    height: 20px;
    filter: invert(92%) sepia(15%) saturate(522%) hue-rotate(176deg) brightness(103%) contrast(96%);
}

.btn-icon {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    filter: invert(92%) sepia(15%) saturate(522%) hue-rotate(176deg) brightness(103%) contrast(96%);
}

.btn:not(.secondary) .btn-icon {
    filter: invert(7%) sepia(34%) saturate(2067%) hue-rotate(183deg) brightness(90%) contrast(99%);
}

.admin-command-card[data-tone="users"]::after,
.admin-command-card[data-tone="users"] span {
    background: linear-gradient(135deg, #64b7ff, #9b8cff);
}

.admin-command-card[data-tone="servers"]::after,
.admin-command-card[data-tone="servers"] span {
    background: linear-gradient(135deg, #34d399, #64b7ff);
}

.admin-command-card[data-tone="support"]::after,
.admin-command-card[data-tone="support"] span {
    background: linear-gradient(135deg, #f6b646, #64b7ff);
}

.admin-command-card[data-tone="backups"]::after,
.admin-command-card[data-tone="backups"] span {
    background: linear-gradient(135deg, #f87070, #f6b646);
}

.admin-command-card strong,
.admin-health-card strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-command-card small,
.admin-health-card small,
.admin-health-card span {
    color: #91a7c4;
    font-size: 12px;
}

.admin-health-card {
    border-color: rgba(52, 211, 153, 0.28);
}

.admin-health-card::after {
    background: #34d399;
}

.admin-health-card.warning {
    border-color: rgba(246, 182, 70, 0.34);
}

.admin-health-card.warning::after {
    background: #f6b646;
}

.admin-health-card strong {
    font-size: 26px;
    line-height: 1;
}

.admin-layout .shop-toolbar {
    min-height: 54px;
    padding: 10px 14px;
}

.admin-layout .shop-kicker {
    color: #72d69a;
    letter-spacing: 0.12em;
}

.admin-layout .shop-toolbar h1 {
    font-size: clamp(22px, 1.8vw, 28px);
}

.admin-layout .shop-select,
.admin-layout .shop-icon-btn,
.admin-layout .input,
.admin-layout input,
.admin-layout select {
    border-color: rgba(68, 93, 133, 0.8);
    background: rgba(5, 12, 24, 0.82);
}

.admin-layout .shop-metrics {
    grid-template-columns: repeat(5, minmax(160px, 1fr));
    gap: 10px;
}

.admin-layout .shop-metric {
    min-height: 104px;
    padding: 14px 52px 12px 14px;
}

.admin-layout .shop-metric span {
    color: #b8c7de;
    font-size: 13px;
}

.admin-layout .shop-metric strong {
    font-size: clamp(28px, 2.6vw, 38px);
}

.admin-layout .shop-metric small {
    color: #72d69a;
}

.admin-layout .metric-glyph {
    top: 18px;
    right: 16px;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(5, 12, 24, 0.56);
}

.admin-layout .shop-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.82fr) minmax(280px, 0.72fr);
    gap: 10px;
}

.admin-layout .shop-card {
    padding: 12px;
}

.admin-layout .shop-card-head {
    min-height: 32px;
    margin-bottom: 10px;
}

.admin-layout .shop-card-head h2 {
    font-size: 17px;
}

.admin-layout .quick-action,
.admin-layout .server-rank,
.admin-layout .shop-note {
    border-color: rgba(49, 72, 110, 0.66);
    border-radius: 10px;
    background: rgba(8, 19, 36, 0.76);
}

.admin-layout .quick-action {
    min-height: 50px;
    padding: 0 10px;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.admin-layout .quick-action:hover {
    border-color: rgba(100, 183, 255, 0.5);
    background: rgba(15, 35, 62, 0.92);
    transform: translateY(-1px);
}

.admin-layout .shop-table,
.admin-layout .app-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.payments-v2-page {
    display: grid;
    gap: 20px;
}

.payments-v2-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(160px, 1fr));
    gap: 18px;
}

.payments-v2-kpi,
.payments-v2-board {
    border: 1px solid rgba(106, 133, 173, 0.2);
    background: linear-gradient(145deg, rgba(13, 29, 51, 0.82), rgba(8, 18, 34, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.payments-v2-kpi {
    min-height: 112px;
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    border-radius: 10px;
    padding: 18px;
    overflow: hidden;
}

.payments-v2-kpi i {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    grid-row: span 3;
    border-radius: 17px;
    color: #6aa8ff;
    background: rgba(36, 109, 255, 0.16);
    font-size: 30px;
    font-style: normal;
    font-weight: 900;
}

.payments-v2-kpi.tone-purple i { color: #a66cff; background: rgba(113, 52, 206, 0.24); }
.payments-v2-kpi.tone-green i { color: #31dc8a; background: rgba(24, 160, 102, 0.2); }
.payments-v2-kpi.tone-amber i { color: #ffb335; background: rgba(184, 125, 22, 0.2); }
.payments-v2-kpi.tone-red i { color: #ff5f72; background: rgba(196, 45, 75, 0.22); }
.payments-v2-kpi.tone-blue i { color: #3e90ff; background: rgba(36, 109, 255, 0.18); }

.payments-v2-kpi span,
.payments-v2-kpi small {
    color: #9fb0ca;
    font-size: 13px;
}

.payments-v2-kpi strong {
    color: #fff;
    font-size: 28px;
    line-height: 1;
}

.payments-v2-kpi small {
    color: #27e697;
    font-weight: 800;
}

.payments-v2-kpi.tone-amber small { color: #ffb335; }
.payments-v2-kpi.tone-red small { color: #ff6575; }

.payments-v2-board {
    border-radius: 10px;
    padding: 18px;
}

.payments-v2-toolbar {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(150px, 190px) minmax(150px, 190px) minmax(150px, 190px) minmax(110px, 140px);
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(106, 133, 173, 0.14);
}

.payments-v2-search {
    min-height: 42px;
    position: relative;
    display: block;
}

.payments-v2-search input,
.payments-v2-select,
.payment-edit-modal .input {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(68, 93, 133, 0.8);
    border-radius: 8px;
    color: #f4f7ff;
    background: rgba(5, 12, 24, 0.82);
}

.payments-v2-search input {
    padding: 0 42px 0 14px;
}

.payments-v2-search span {
    position: absolute;
    top: 50%;
    right: 14px;
    color: #9fb0ca;
    transform: translateY(-50%);
}

.payments-v2-select {
    padding: 0 12px;
}

.payments-v2-select.compact {
    width: 112px;
}

.payments-v2-ghost,
.payments-v2-icon {
    border: 1px solid rgba(68, 93, 133, 0.8);
    color: #c8d8f3;
    background: rgba(8, 19, 36, 0.72);
}

.payments-v2-ghost {
    min-height: 42px;
    border-radius: 8px;
    padding: 0 14px;
    font-weight: 800;
}

.payments-v2-table-wrap {
    overflow-x: auto;
    padding-top: 18px;
}

.payments-v2-table {
    width: 100%;
    min-width: 1060px;
    border-collapse: separate;
    border-spacing: 0;
}

.payments-v2-table th,
.payments-v2-table td {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(106, 133, 173, 0.13);
    text-align: left;
    vertical-align: middle;
}

.payments-v2-table th {
    color: #9fb3cf;
    background: rgba(17, 34, 57, 0.72);
    font-size: 12px;
    text-transform: uppercase;
}

.payments-v2-table th:first-child { border-radius: 8px 0 0 0; }
.payments-v2-table th:last-child { border-radius: 0 8px 0 0; }
.payments-v2-table tr:hover td { background: rgba(23, 43, 69, 0.28); }

.payments-v2-table strong,
.payments-v2-table small {
    display: block;
}

.payments-v2-table small {
    margin-top: 4px;
    color: #8ea2bd;
    font-size: 12px;
}

.payments-v2-payment,
.payments-v2-user,
.payments-v2-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payments-v2-row-icon,
.payments-v2-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 10px;
    color: #f4eaff;
    background: linear-gradient(135deg, rgba(124, 61, 255, 0.84), rgba(54, 92, 215, 0.58));
    font-weight: 900;
}

.payments-v2-avatar {
    border-radius: 50%;
    background: linear-gradient(135deg, #2a89ff, #8d4cff);
}

.payments-v2-status {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 8px;
    padding: 0 10px;
    color: #34d399;
    background: rgba(15, 112, 76, 0.24);
    font-size: 12px;
    font-weight: 900;
}

.payments-v2-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.payments-v2-status.pending,
.payments-v2-status.processing {
    color: #f7b735;
    background: rgba(157, 102, 13, 0.24);
}

.payments-v2-status.failed,
.payments-v2-status.canceled {
    color: #ff6174;
    background: rgba(148, 33, 55, 0.26);
}

.payments-v2-status.refunded {
    color: #9f83ff;
    background: rgba(101, 64, 190, 0.26);
}

.payments-v2-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 900;
}

.payments-v2-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 16px;
    color: #9fb0ca;
}

.payments-v2-pages {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.payments-v2-pages button {
    min-width: 34px;
    height: 34px;
    border: 1px solid rgba(68, 93, 133, 0.72);
    border-radius: 8px;
    color: #b7c5dc;
    background: rgba(8, 19, 36, 0.72);
}

.payments-v2-pages button.active {
    color: #fff;
    border-color: rgba(42, 135, 255, 0.75);
    background: linear-gradient(135deg, #2c86ff, #2860d8);
}

.payments-v2-pages .ellipsis {
    color: #7f90aa;
}

.payment-edit-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(2, 8, 16, 0.72);
    backdrop-filter: blur(5px);
}

.payment-edit-backdrop[hidden] {
    display: none !important;
}

.payment-edit-modal {
    width: min(620px, 100%);
    border: 1px solid rgba(106, 133, 173, 0.24);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(11, 25, 45, 0.98), rgba(6, 15, 29, 0.98));
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.46);
    padding: 18px;
}

.payment-edit-head,
.payment-edit-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.payment-edit-head h3,
.payment-edit-head p {
    margin: 0;
}

.payment-edit-head p {
    margin-top: 6px;
    color: #9fb0ca;
}

.payment-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.payment-edit-grid label {
    display: grid;
    gap: 6px;
}

.payment-edit-grid label span {
    color: #9fb0ca;
    font-size: 12px;
}

.payment-edit-grid .span-2 {
    grid-column: span 2;
}

.payment-edit-modal textarea {
    resize: vertical;
}

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

.admin-layout .shop-table th,
.admin-layout .shop-table td,
.admin-layout .app-table th,
.admin-layout .app-table td {
    border-bottom: 1px solid rgba(49, 72, 110, 0.42);
}

.admin-layout .shop-table th,
.admin-layout .app-table th {
    color: #9fb3cf;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.shop-table-empty {
    color: #91a7c4;
    text-align: center;
}

.admin-users-page {
    display: grid;
    gap: 16px;
}

.admin-users-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.admin-users-head .section-title,
.admin-users-head p {
    margin: 0;
}

.admin-users-head p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
}

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

.admin-users-summary article {
    min-height: 70px;
    display: grid;
    align-content: center;
    gap: 4px;
    border: 1px solid rgba(49, 72, 110, 0.58);
    border-radius: 10px;
    padding: 12px;
    background: rgba(8, 19, 36, 0.62);
}

.admin-users-summary strong {
    font-size: 24px;
}

.admin-users-summary span {
    color: var(--muted);
    font-size: 12px;
}

.admin-users-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 170px 170px 170px 140px;
    gap: 12px;
}

.admin-users-toolbar label,
.admin-user-uuid {
    display: grid;
    gap: 7px;
}

.admin-users-toolbar span,
.admin-user-uuid span {
    color: var(--muted);
    font-size: 12px;
}

.admin-users-filter-meta {
    min-height: 66px;
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 4px;
    border: 1px solid rgba(49, 72, 110, 0.58);
    border-radius: 10px;
    padding: 10px 12px;
    background: rgba(8, 19, 36, 0.62);
}

.admin-users-filter-meta strong {
    font-size: 22px;
    line-height: 1;
}

.admin-users-filter-meta span {
    color: #91a7c4;
}

.admin-users-notice {
    border: 1px solid rgba(49, 72, 110, 0.66);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 800;
}

.admin-users-notice.success {
    color: #bff5cf;
    border-color: rgba(52, 211, 153, 0.35);
    background: rgba(52, 211, 153, 0.12);
}

.admin-users-notice.error {
    color: #ffb4b4;
    border-color: rgba(248, 112, 112, 0.35);
    background: rgba(248, 112, 112, 0.12);
}

.admin-user-create {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(5, minmax(130px, 1fr)) auto;
    align-items: end;
    gap: 12px;
}

.admin-user-create h2,
.admin-user-create p {
    margin: 0;
}

.admin-user-create p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.admin-user-create label {
    display: grid;
    gap: 7px;
}

.admin-user-create span {
    color: var(--muted);
    font-size: 12px;
}

.admin-users-chipbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-filter-chip {
    min-height: 34px;
    border: 1px solid rgba(49, 72, 110, 0.66);
    border-radius: 999px;
    padding: 0 12px;
    color: #cfe0f5;
    background: rgba(8, 19, 36, 0.74);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.admin-filter-chip.active,
.admin-filter-chip:hover {
    color: #061327;
    border-color: transparent;
    background: linear-gradient(135deg, #34d399, #64b7ff);
}

.admin-user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}

.admin-user-card {
    position: relative;
    min-width: 0;
    display: grid;
    gap: 14px;
    border: 1px solid rgba(49, 72, 110, 0.74);
    border-radius: 12px;
    padding: 16px;
    background:
        radial-gradient(300px 160px at 100% 0%, rgba(100, 183, 255, 0.1), transparent 70%),
        linear-gradient(180deg, rgba(12, 25, 45, 0.96), rgba(7, 16, 30, 0.96));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 16px 38px rgba(0, 0, 0, 0.22);
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    overflow: hidden;
}

.admin-user-card[hidden] {
    display: none;
}

.admin-user-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #34d399, #64b7ff);
    opacity: 0.82;
}

.admin-user-card[data-status="expired"]::before {
    background: linear-gradient(90deg, #f87070, #f6b646);
}

.admin-user-card:hover {
    border-color: rgba(100, 183, 255, 0.52);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 22px 52px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.admin-user-card-top {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.admin-user-avatar {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #061327;
    background: linear-gradient(135deg, #34d399, #64b7ff);
    font-size: 20px;
    font-weight: 900;
}

.admin-user-card h3 {
    margin: 0;
    overflow: hidden;
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-card-top span {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-status {
    border-radius: 999px;
    padding: 6px 9px;
    color: #ffc8c8;
    background: rgba(248, 112, 112, 0.14);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.admin-user-status.active {
    color: #bff5cf;
    background: rgba(52, 211, 153, 0.14);
}

.admin-user-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.admin-user-facts article {
    min-height: 72px;
    display: grid;
    align-content: center;
    gap: 6px;
    border: 1px solid rgba(49, 72, 110, 0.5);
    border-radius: 10px;
    padding: 10px;
    background: rgba(8, 19, 36, 0.58);
}

.admin-user-facts span {
    color: var(--muted);
    font-size: 11px;
}

.admin-user-facts strong {
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-uuid input {
    min-height: 42px;
    font-size: 12px;
}

.admin-token-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.admin-token-row input {
    min-width: 0;
}

.copy-subscription {
    min-width: 68px;
}

.admin-user-group-editor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.admin-user-state {
    min-height: 17px;
    margin: -6px 0 0;
    font-size: 12px;
}

.admin-user-state.error {
    color: #ffb4b4;
}

.admin-user-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.admin-users-empty {
    color: var(--muted);
    text-align: center;
}

@media (max-width: 900px) {
    .admin-users-head,
    .admin-users-toolbar,
    .admin-user-create {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

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

@media (max-width: 520px) {
    .admin-user-grid,
    .admin-user-facts,
    .admin-user-actions,
    .admin-user-group-editor {
        grid-template-columns: 1fr;
    }

    .admin-user-card-top {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .admin-user-status {
        grid-column: 1 / -1;
        width: max-content;
    }
}

@media (max-width: 1320px) {
    .admin-command-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-users-toolbar {
        grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 0.5fr));
    }

    .admin-users-filter-meta {
        grid-column: 1 / -1;
    }

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

    .admin-layout .shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "income income"
            "payments servers"
            "donut users"
            "quick notes"
            "recent recent";
    }
}

@media (max-width: 980px) {
    .topbar-tools {
        display: none;
    }

    .admin-layout .app-sidebar {
        width: min(84vw, 320px);
        left: min(-84vw, -320px);
        padding: 18px 12px;
    }

    .admin-layout .layout-topbar {
        min-height: 58px;
        padding: 10px 12px;
    }

    .admin-layout .layout-content {
        padding: 10px 10px calc(96px + env(safe-area-inset-bottom, 0px));
    }

    .admin-layout .topbar-copy strong {
        font-size: 15px;
    }

    .admin-layout .topbar-copy span {
        max-width: 70vw;
        font-size: 12px;
    }

    .admin-layout .mobile-dock {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        z-index: 16;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 4px;
        border: 1px solid rgba(49, 72, 110, 0.7);
        border-radius: 14px;
        padding: 6px;
        background: rgba(5, 12, 24, 0.94);
        backdrop-filter: blur(14px);
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
        overflow-x: auto;
    }

    .admin-layout .mobile-dock-link {
        min-height: 42px;
        border-radius: 10px;
        font-size: 10px;
    }

    .admin-command-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .admin-command-card,
    .admin-health-card {
        min-height: 64px;
        padding: 9px 10px;
    }

    .admin-command-card {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .admin-command-card span {
        width: 30px;
        height: 30px;
    }

    .admin-layout .layout-shell,
    .admin-layout .shop-metrics,
    .admin-layout .shop-grid {
        grid-template-columns: 1fr;
    }

    .admin-layout .shop-grid {
        grid-template-areas: none;
    }

    .admin-layout .shop-grid > .shop-card {
        grid-area: auto !important;
    }

    .admin-layout .shop-toolbar {
        min-height: auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 11px;
    }

    .admin-layout .shop-toolbar-actions {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
    }

    .admin-layout .shop-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .admin-layout .shop-metric {
        min-height: 92px;
        padding: 12px 42px 10px 12px;
    }

    .admin-layout .shop-metric strong {
        font-size: 28px;
    }

    .admin-layout .metric-glyph {
        top: 12px;
        right: 10px;
        width: 30px;
        height: 30px;
    }

    .admin-layout .shop-card {
        padding: 11px;
    }

    .admin-layout .shop-chart {
        height: 210px;
    }

    .donut-row {
        grid-template-columns: 118px minmax(0, 1fr);
        gap: 10px;
    }

    .donut {
        width: 112px;
    }

    .donut span {
        width: 70px;
        height: 70px;
    }

    .payment-item {
        grid-template-columns: 30px minmax(0, 1fr) auto;
        gap: 8px;
        min-height: 42px;
    }

    .avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .server-rank {
        padding: 7px;
    }

    .admin-users-toolbar {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .admin-users-filter-meta {
        grid-column: auto;
        min-height: 54px;
    }

    .admin-users-chipbar {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .admin-users-chipbar::-webkit-scrollbar {
        display: none;
    }

    .admin-filter-chip {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

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

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

    .admin-layout .shop-metrics,
    .admin-users-summary {
        grid-template-columns: 1fr 1fr;
    }

    .admin-layout .shop-grid {
        gap: 8px;
    }

    .admin-layout .shop-card-head {
        align-items: flex-start;
    }

    .admin-layout .shop-card-head h2 {
        font-size: 15px;
    }

    .admin-layout .shop-table {
        min-width: 620px;
    }

    .admin-users-head {
        gap: 12px;
    }

    .admin-users-summary article {
        min-height: 62px;
        padding: 10px;
    }

    .admin-user-card {
        padding: 13px;
    }
}

@media (max-width: 430px) {
    .admin-layout .shop-metrics,
    .admin-users-summary {
        grid-template-columns: 1fr;
    }

    .admin-layout .mobile-dock {
        grid-auto-flow: column;
        grid-auto-columns: minmax(72px, 1fr);
        grid-template-columns: none;
    }

    .admin-layout .shop-chart {
        height: 180px;
    }

    .donut-row {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

.user-hub-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.user-hub-overview {
    display: grid;
    grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1fr);
    gap: 14px;
}

.user-hub-overview .user-hub-card-head {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.user-hub-overview-grid article {
    min-height: 112px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(126, 111, 194, 0.22);
    border-radius: 16px;
    background:
        radial-gradient(280px 140px at 100% 0%, rgba(35, 155, 255, 0.14), transparent 70%),
        linear-gradient(135deg, rgba(27, 18, 72, 0.76), rgba(12, 10, 39, 0.62));
}

.user-hub-stat-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(52, 147, 255, 0.32);
    border-radius: 15px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(47, 128, 255, 0.34), rgba(159, 70, 255, 0.2));
    box-shadow: 0 16px 40px rgba(35, 155, 255, 0.14);
}

.user-hub-stat-icon svg,
.user-hub-traffic-story-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.user-hub-stat-icon svg {
    color: #7fc4ff;
}

.user-hub-overview-grid span,
.user-hub-benefit-grid span,
.user-hub-payment-list small {
    color: #9ca3c1;
    font-size: 14px;
}

.user-hub-overview-grid strong {
    display: block;
    margin-top: 4px;
    font-size: clamp(24px, 2.3vw, 34px);
    line-height: 1;
}

.user-hub-overview-grid small {
    display: block;
    margin-top: 6px;
    color: #d3cdf6;
    font-size: 12px;
}

.user-hub-traffic-story {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-top: 0;
    border: 1px solid rgba(126, 111, 194, 0.22);
    border-radius: 16px;
    padding: 14px 16px;
    background:
        radial-gradient(320px 160px at 100% 0%, rgba(215, 44, 255, 0.14), transparent 70%),
        linear-gradient(180deg, rgba(16, 13, 49, 0.72), rgba(8, 8, 29, 0.58));
}

.user-hub-traffic-story-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(215, 44, 255, 0.34);
    border-radius: 14px;
    background: rgba(86, 43, 160, 0.28);
    color: #d72cff;
}

.user-hub-traffic-story-icon.icon-movie,
.user-hub-traffic-story-icon.icon-video {
    border-color: rgba(145, 85, 255, 0.44);
    background: linear-gradient(135deg, rgba(140, 63, 255, 0.34), rgba(215, 44, 255, 0.18));
    color: #a855ff;
}

.user-hub-traffic-story-icon.icon-music {
    border-color: rgba(215, 44, 255, 0.46);
    background: linear-gradient(135deg, rgba(215, 44, 255, 0.28), rgba(35, 155, 255, 0.12));
    color: #f044ff;
}

.user-hub-traffic-story-icon.icon-image {
    border-color: rgba(34, 211, 238, 0.44);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(35, 155, 255, 0.16));
    color: #22d3ee;
}

.user-hub-traffic-story-icon.icon-cloud,
.user-hub-traffic-story-icon.icon-map {
    border-color: rgba(35, 155, 255, 0.44);
    background: linear-gradient(135deg, rgba(35, 155, 255, 0.24), rgba(82, 118, 255, 0.14));
    color: #4aa3ff;
}

.user-hub-traffic-story-icon.icon-document {
    border-color: rgba(18, 214, 138, 0.42);
    background: linear-gradient(135deg, rgba(18, 214, 138, 0.2), rgba(34, 211, 238, 0.12));
    color: #22d88a;
}

.user-hub-traffic-story-icon.icon-call,
.user-hub-traffic-story-icon.icon-game {
    border-color: rgba(255, 187, 64, 0.38);
    background: linear-gradient(135deg, rgba(255, 187, 64, 0.2), rgba(215, 44, 255, 0.13));
    color: #ffbb40;
}

.user-hub-traffic-story span,
.user-hub-traffic-story small {
    color: #aaa6c3;
}

.user-hub-traffic-story span {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}

.user-hub-traffic-story strong {
    display: block;
    margin-top: 3px;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.1;
}

.user-hub-traffic-story p {
    margin: 6px 0 0;
    color: #d7d0ff;
    font-size: 13px;
    line-height: 1.45;
}

.user-hub-traffic-story small {
    display: inline-flex;
    margin-top: 8px;
    border-radius: 999px;
    padding: 3px 8px;
    background: rgba(18, 214, 138, 0.12);
    color: #22d88a;
    font-size: 11px;
    font-weight: 800;
}

.user-hub-benefit-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.user-hub-benefit-grid article {
    display: grid;
    gap: 10px;
    padding-top: 8px;
}

.user-hub-benefit-grid strong {
    font-size: 20px;
}

.user-hub-plan-list,
.user-hub-form,
.user-hub-payment-list {
    display: grid;
    gap: 12px;
}

.user-hub-tier-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 6px;
    border: 1px solid rgba(93, 100, 156, 0.16);
    border-radius: 14px;
    background: rgba(6, 8, 22, 0.38);
}

.user-hub-tier {
    min-height: 68px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #dfe5ff;
    text-align: left;
    padding: 12px 14px;
    cursor: pointer;
}

.user-hub-tier strong,
.user-hub-tier span {
    display: block;
}

.user-hub-tier strong {
    font-size: 17px;
}

.user-hub-tier span {
    margin-top: 4px;
    color: #9ea6c6;
    font-size: 13px;
}

.user-hub-tier.selected {
    border-color: rgba(165, 84, 255, 0.44);
    background: rgba(93, 48, 174, 0.32);
    color: #ffffff;
}

.user-hub-plan-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.user-hub-plan {
    width: 100%;
    display: grid;
    align-content: space-between;
    gap: 10px;
    border: 1px solid rgba(93, 100, 156, 0.18);
    border-radius: 12px;
    min-height: 118px;
    padding: 16px;
    background: rgba(12, 15, 31, 0.82);
    color: #ffffff;
    text-align: left;
    cursor: pointer;
}

.user-hub-plan[hidden] {
    display: none !important;
}

.user-hub-plan.selected {
    border-color: rgba(165, 84, 255, 0.44);
    background:
        linear-gradient(180deg, rgba(90, 43, 168, 0.28), rgba(31, 20, 66, 0.28)),
        rgba(12, 15, 31, 0.82);
    box-shadow:
        inset 0 0 0 1px rgba(181, 110, 255, 0.1),
        0 16px 34px rgba(83, 40, 156, 0.14);
}

.user-hub-plan strong,
.user-hub-plan small,
.user-hub-plan em {
    display: block;
}

.user-hub-plan strong {
    font-size: 17px;
}

.user-hub-plan small {
    margin-top: 4px;
    color: #9ea6c6;
    font-size: 14px;
}

.user-hub-plan em {
    font-style: normal;
    font-size: 22px;
    font-weight: 700;
}

.user-hub-purchase-form {
    gap: 14px;
}

.user-hub-checkout-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
    border: 1px solid rgba(93, 100, 156, 0.16);
    border-radius: 14px;
    padding: 12px;
    background: rgba(6, 8, 22, 0.38);
}

.user-hub-checkout-row .user-hub-primary {
    min-width: 150px;
}

.user-hub-checkout-account {
    min-height: 54px;
    display: grid;
    align-content: center;
    gap: 4px;
    border: 1px solid rgba(93, 100, 156, 0.16);
    border-radius: 12px;
    padding: 0 16px;
    background: rgba(12, 15, 31, 0.62);
}

.user-hub-checkout-account span {
    color: #9ba2c1;
    font-size: 13px;
}

.user-hub-checkout-account strong {
    overflow: hidden;
    color: #f5f3ff;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-hub-form label {
    display: grid;
    gap: 8px;
}

.user-hub-password-form {
    display: grid;
    gap: 14px;
    margin-top: 22px;
    border: 1px solid rgba(93, 100, 156, 0.18);
    border-radius: 16px;
    padding: 18px;
    background: rgba(12, 15, 31, 0.72);
}

.user-hub-password-form label {
    display: grid;
    gap: 8px;
}

.user-hub-form label span {
    color: #9ba2c1;
    font-size: 14px;
}

.user-hub-password-form label span {
    color: #9ba2c1;
    font-size: 14px;
}

.user-hub-form p {
    margin: 0;
    color: #b6bbd2;
    font-size: 14px;
}

.user-hub-status {
    margin: 14px 0 0;
    color: #b6bbd2;
    font-size: 14px;
}

.user-hub-telegram-bind {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    border: 1px solid rgba(93, 100, 156, 0.2);
    border-radius: 14px;
    padding: 12px;
    background: rgba(12, 15, 31, 0.72);
}

.user-hub-telegram-bind[hidden] {
    display: none;
}

.user-hub-telegram-bind[data-state="success"] {
    border-color: rgba(65, 214, 130, 0.34);
    background: rgba(16, 72, 48, 0.36);
}

.user-hub-telegram-bind[data-state="error"] {
    border-color: rgba(255, 95, 114, 0.36);
    background: rgba(82, 22, 34, 0.34);
}

.user-hub-telegram-bind-icon {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(117, 197, 255, 0.28);
    border-top-color: #73d2ff;
    border-radius: 50%;
    animation: telegram-bind-spin 0.9s linear infinite;
}

.user-hub-telegram-bind-icon[data-state="success"],
.user-hub-telegram-bind-icon[data-state="error"] {
    display: grid;
    place-items: center;
    border: 0;
    animation: none;
}

.user-hub-telegram-bind-icon[data-state="success"]::before,
.user-hub-telegram-bind-icon[data-state="error"]::before {
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

.user-hub-telegram-bind-icon[data-state="success"] {
    background: #27b66f;
}

.user-hub-telegram-bind-icon[data-state="success"]::before {
    content: "✓";
}

.user-hub-telegram-bind-icon[data-state="error"] {
    background: #d84255;
}

.user-hub-telegram-bind-icon[data-state="error"]::before {
    content: "!";
}

.user-hub-telegram-bind-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.user-hub-telegram-bind-copy strong,
.user-hub-telegram-bind-copy span,
.user-hub-telegram-bind-copy code {
    min-width: 0;
    overflow-wrap: anywhere;
}

.user-hub-telegram-bind-copy strong {
    color: #f5f3ff;
    font-size: 15px;
}

.user-hub-telegram-bind-copy span {
    color: #b6bbd2;
    font-size: 13px;
    line-height: 1.45;
}

.user-hub-telegram-bind-copy code {
    width: fit-content;
    max-width: 100%;
    border: 1px solid rgba(117, 197, 255, 0.24);
    border-radius: 8px;
    padding: 5px 8px;
    color: #f5f3ff;
    background: rgba(7, 10, 24, 0.72);
    font-size: 14px;
    font-weight: 800;
}

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

.user-hub-payment-list article {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid rgba(93, 100, 156, 0.16);
    border-radius: 16px;
    padding: 18px;
    background: rgba(12, 15, 31, 0.76);
}

.user-hub-payment-list article.empty {
    justify-content: flex-start;
}

.user-hub-payment-list strong {
    display: block;
    font-size: 18px;
}

.user-hub-payment-list article > div:last-child {
    text-align: right;
}

.user-hub-payment-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-top: 6px;
    border: 1px solid rgba(52, 211, 153, 0.24);
    border-radius: 999px;
    padding: 0 9px;
    color: #55e6a1;
    background: rgba(9, 95, 61, 0.22);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.user-hub-login-history {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(93, 100, 156, 0.14);
}

.user-hub-login-list {
    display: grid;
    gap: 10px;
}

.user-hub-login-list article {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(93, 100, 156, 0.14);
    border-radius: 12px;
    padding: 12px 14px;
    background: rgba(12, 15, 31, 0.58);
}

.user-hub-login-list strong,
.user-hub-login-list small {
    display: block;
}

.user-hub-login-list strong {
    font-size: 14px;
}

.user-hub-login-list small,
.user-hub-login-list span {
    color: #9ca3c1;
    font-size: 12px;
}

.user-hub-login-list span {
    max-width: 130px;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-support-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 24px;
    padding-top: 32px;
}

.hub-support-card:first-child {
    grid-column: 1;
}

.hub-support-card:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.hub-support-card p {
    margin: 0;
    color: #a9aec8;
    font-size: 17px;
    line-height: 1.6;
}

.user-support-list {
    display: grid;
    gap: 12px;
}

.user-support-list article {
    display: grid;
    gap: 6px;
    border: 1px solid rgba(93, 100, 156, 0.16);
    border-radius: 14px;
    padding: 16px;
    background: rgba(12, 15, 31, 0.76);
}

.user-support-list strong {
    font-size: 16px;
}

.user-support-list span {
    color: #aeb5d0;
    line-height: 1.5;
}

.support-chat {
    display: grid;
    gap: 14px;
}

.support-chat-messages {
    height: min(58vh, 560px);
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid rgba(93, 100, 156, 0.16);
    border-radius: 14px;
    padding: 14px;
    background: rgba(6, 8, 22, 0.48);
}

.support-chat-messages.admin {
    height: min(58vh, 620px);
}

.admin-support-chat .support-chat-messages.admin {
    height: min(34vh, 340px);
    min-height: 160px;
    max-height: 340px;
    flex: 0 0 auto;
}

.admin-support-chat .support-chat-form {
    margin-top: 14px;
}

.support-message {
    width: min(86%, 520px);
    display: grid;
    gap: 6px;
    border: 1px solid rgba(93, 100, 156, 0.18);
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(12, 15, 31, 0.86);
}

.support-message.user {
    align-self: flex-end;
    border-color: rgba(160, 84, 255, 0.32);
    background: rgba(74, 35, 132, 0.64);
}

.support-message.admin {
    align-self: flex-start;
}

.support-message strong {
    font-size: 13px;
    color: #ffffff;
}

.support-message p {
    margin: 0;
    color: #e5e1ff;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.support-message-link {
    color: #8fd3ff;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.support-message-link:hover {
    color: #bfe8ff;
}

.support-message span,
.support-empty {
    color: #8f96b4;
    font-size: 13px;
}

.support-chat-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: end;
}

.support-chat-form textarea {
    width: 100%;
    min-height: 74px;
    resize: vertical;
    border: 1px solid rgba(93, 100, 156, 0.22);
    border-radius: 12px;
    padding: 12px 14px;
    color: #f4f4ff;
    background: rgba(8, 10, 24, 0.92);
    font: inherit;
}

.support-file-button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(93, 100, 156, 0.24);
    border-radius: 12px;
    padding: 0 16px;
    color: #f4f4ff;
    background: rgba(12, 15, 31, 0.9);
    font-weight: 700;
    cursor: pointer;
}

.support-file-button input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.support-file-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    border: 1px solid rgba(160, 84, 255, 0.28);
    border-radius: 12px;
    padding: 9px 10px;
    color: #ded6ff;
    background: rgba(74, 35, 132, 0.24);
    font-size: 13px;
}

.support-file-preview[hidden] {
    display: none;
}

.support-file-preview strong {
    max-width: min(360px, 52vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-file-preview button {
    border: 0;
    color: #ffffff;
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.support-send-status {
    width: fit-content;
    max-width: 100%;
    border: 1px solid rgba(93, 100, 156, 0.24);
    border-radius: 10px;
    padding: 8px 10px;
    color: #cdd4ff;
    background: rgba(10, 14, 32, 0.78);
    font-size: 13px;
}

.support-send-status[data-tone="error"] {
    border-color: rgba(255, 97, 97, 0.4);
    color: #ffd5d5;
    background: rgba(98, 20, 28, 0.32);
}

.support-attachment {
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(160, 84, 255, 0.28);
    border-radius: 10px;
    padding: 8px 10px;
    color: #ded6ff;
    background: rgba(6, 8, 22, 0.38);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.admin-support-shell {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 22px;
    height: min(780px, calc(100vh - 190px));
    min-height: 560px;
    overflow: hidden;
}

.admin-support-list,
.admin-support-chat {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.admin-support-list {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    padding: 18px;
    min-height: 0;
}

.admin-support-head,
.admin-support-chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.admin-support-head h1,
.admin-support-chat-head h2 {
    margin: 0;
}

.admin-support-chat-head span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 13px;
}

.admin-support-thread-list {
    display: grid;
    align-content: start;
    gap: 10px;
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
}

.admin-support-thread {
    display: grid;
    gap: 5px;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 13px;
    color: var(--text);
    background: rgba(15, 23, 42, 0.72);
    text-align: left;
    cursor: pointer;
}

.admin-support-thread.active {
    border-color: rgba(99, 102, 241, 0.62);
    background: rgba(79, 70, 229, 0.16);
}

.admin-support-thread span {
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-support-thread small {
    color: var(--muted-strong);
}

.admin-support-chat {
    display: grid;
    grid-template-rows: auto auto auto auto;
    align-content: start;
    padding: 18px;
    min-height: 0;
    overflow: hidden;
}

.shop-action-primary {
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    padding: 0 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 1320px) {
    .user-hub-grid {
        grid-template-columns: 1fr;
    }

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

    .hub-support-card:first-child,
    .hub-support-card:nth-child(2),
    .hub-support-card:last-child {
        grid-column: auto;
        grid-row: auto;
    }

    .user-hub-subscription,
    .user-hub-referral,
    .user-hub-overview,
    .user-hub-benefits,
    .user-hub-plans,
    .user-hub-checkout,
    .user-hub-purchase,
    .user-hub-payments,
    .user-hub-settings {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 980px) {
    .admin-support-shell {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .admin-support-list {
        max-height: 360px;
    }

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

    .sales-control-actions {
        justify-content: stretch;
    }

    .sales-control-actions .quick-action {
        flex: 1 1 180px;
    }
}

@media (max-width: 1040px) {
    .user-hub {
        grid-template-columns: 1fr;
    }

    .user-hub-sidebar {
        position: relative;
        height: auto;
    }

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

    .user-hub-main {
        padding: 22px 16px 32px;
    }

    .user-hub-overview {
        grid-template-columns: 1fr;
    }

    .user-hub-topbar,
    .user-hub-subscription-layout {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .user-hub-subscription-hero {
        grid-template-columns: 1fr;
    }

    .user-hub-subscription-stat {
        justify-items: start;
        border-left: 0;
        border-top: 1px solid rgba(126, 111, 194, 0.22);
        padding: 16px 0 0;
        text-align: left;
    }

    .user-hub-benefit-grid,
    .user-hub-mini-stats,
    .user-hub-referral-stats,
    .user-hub-settings-grid,
    .user-hub-plan-list,
    .user-hub-checkout-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .user-hub-overview-grid {
        grid-template-columns: 1fr;
    }

    .user-hub-overview-grid article {
        border-right: 1px solid rgba(126, 111, 194, 0.22);
        border-bottom: 1px solid rgba(126, 111, 194, 0.22);
    }
}

@media (max-width: 720px) {
    .user-hub-nav,
    .user-hub-overview-grid,
    .user-hub-benefit-grid,
    .user-hub-mini-stats,
    .user-hub-referral-stats,
    .user-hub-settings-grid,
    .user-hub-plan-list,
    .user-hub-checkout-row,
    .user-hub-field div {
        grid-template-columns: 1fr;
    }

    .user-hub-subscription-copy h2 {
        font-size: 36px;
    }

    .user-hub-tariff-schedule {
        grid-template-columns: 1fr;
    }

    .user-hub-tariff-line {
        min-height: 34px;
    }

    .user-hub-tariff-line::before {
        left: 50%;
        right: auto;
        top: 0;
        bottom: 0;
        width: 1px;
        height: auto;
        background: linear-gradient(180deg, rgba(180, 92, 255, 0.2), rgba(180, 92, 255, 0.72), rgba(93, 100, 156, 0.2));
    }

    .user-hub-card {
        padding: 20px;
    }

    .user-hub-payment-list article,
    .user-hub-topbar,
    .user-hub-profile {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .support-message {
        width: 100%;
    }

    .user-hub-app-downloads {
        width: 100%;
    }

    .user-hub-app-downloads > span {
        width: 100%;
        padding: 0 2px 2px;
    }

    .user-hub-toast {
        top: 14px;
        right: 12px;
        left: 12px;
        min-width: 0;
    }
}

/* Cabinet polish and overflow fixes */
.user-console-body {
    overflow-x: hidden;
}

.user-hub,
.user-hub-main,
.user-hub-grid,
.user-hub-card,
.user-hub-topbar > div,
.user-hub-referral,
.user-hub-subscription-copy {
    min-width: 0;
}

.user-hub-main {
    width: 100%;
    max-width: 1420px;
    margin: 0 auto;
}

.user-hub-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 24px;
}

.user-hub-settings,
.user-hub-payments,
.user-hub-devices {
    display: none;
}

.settings-view .user-hub-grid,
.payments-view .user-hub-grid,
.devices-view .user-hub-grid {
    grid-template-columns: minmax(0, 900px);
    justify-content: center;
}

.settings-view .user-hub-grid > :not(.user-hub-settings),
.payments-view .user-hub-grid > :not(.user-hub-payments),
.devices-view .user-hub-grid > :not(.user-hub-devices) {
    display: none;
}

.settings-view .user-hub-settings {
    display: block;
    grid-column: 1;
}

.payments-view .user-hub-payments {
    display: block;
    grid-column: 1;
}

.devices-view .user-hub-devices {
    display: block;
    grid-column: 1;
}

.user-hub-device-list {
    display: grid;
    gap: 12px;
}

.user-hub-device-section {
    display: grid;
    gap: 12px;
}

.user-hub-device-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.48);
}

.user-hub-device-section-head.local {
    margin-top: 2px;
}

.user-hub-device-section-head div {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.user-hub-device-section-head strong {
    color: #f8fafc;
}

.user-hub-device-section-head span {
    color: #94a3b8;
    font-size: 13px;
}

.user-hub-device-section-head b {
    flex: 0 0 auto;
    border: 1px solid rgba(45, 212, 191, 0.28);
    border-radius: 999px;
    padding: 6px 10px;
    color: #8ef0ca;
    background: rgba(13, 148, 136, 0.14);
    font-size: 13px;
}

.user-hub-device-item,
.user-hub-device-empty {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.72);
}

.user-hub-device-item.disabled {
    opacity: 0.62;
}

.user-hub-device-item.remote .user-hub-device-icon {
    color: #8ef0ca;
    background: rgba(13, 148, 136, 0.16);
}

.user-hub-device-empty {
    grid-template-columns: minmax(0, 1fr);
}

.user-hub-device-empty.warning {
    border-color: rgba(251, 191, 36, 0.28);
    color: #fde68a;
}

.user-hub-device-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    color: #c4b5fd;
    background: rgba(124, 58, 237, 0.16);
}

.user-hub-device-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.user-hub-device-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.user-hub-device-copy strong,
.user-hub-device-empty strong {
    color: #f8fafc;
    overflow-wrap: anywhere;
}

.user-hub-device-copy span,
.user-hub-device-copy small,
.user-hub-device-empty span,
.user-hub-device-note {
    color: #94a3b8;
}

.user-hub-device-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.user-hub-device-actions .danger {
    color: #fecdd3;
    border-color: rgba(244, 63, 94, 0.38);
}

.user-hub-device-note {
    margin: 14px 0 0;
    font-size: 13px;
    line-height: 1.5;
}

.payments-view .user-hub-payment-list {
    gap: 12px;
}

.payments-view .user-hub-payment-list article {
    min-height: 72px;
    padding: 16px 18px;
}

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

.settings-view .user-hub-password-form,
.settings-view .user-hub-actions {
    max-width: none;
}

.settings-view .user-hub-password-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-view .user-hub-password-form label:first-of-type,
.settings-view .user-hub-password-form button,
.settings-view .user-hub-password-form .user-hub-status {
    grid-column: 1 / -1;
}

.user-hub-topbar {
    align-items: center;
}

.user-hub-topbar h1 {
    max-width: 100%;
    font-size: clamp(28px, 2.2vw, 38px);
    line-height: 1.14;
    overflow-wrap: anywhere;
}

.user-hub-topbar p {
    font-size: 16px;
}

.user-hub-profile {
    flex: 0 0 auto;
}

.user-hub-profile strong {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-hub-subscription-copy h2 {
    max-width: 100%;
    font-size: clamp(30px, 2.6vw, 40px);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.user-hub-overview-grid {
    grid-template-columns: minmax(0, 1fr);
}

.user-hub-overview-grid article {
    padding-inline: 18px;
}

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

.user-hub-field div {
    grid-template-columns: minmax(0, 1fr) minmax(116px, auto);
}

.user-hub-field input,
.user-hub-form input,
.user-hub-password-form input,
.user-hub-settings-grid strong,
.user-hub-payment-list strong {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
}

.user-hub-referral-bonus strong {
    font-size: clamp(34px, 3vw, 44px);
}

.user-hub-actions .user-hub-secondary,
.user-hub-actions .user-hub-primary {
    flex: 1 1 180px;
}

@media (max-width: 1320px) {
    .user-hub-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .user-hub-main {
        padding: 18px 12px 28px;
    }

    .user-hub-topbar h1 {
        font-size: 30px;
    }

    .user-hub-field div {
        grid-template-columns: 1fr;
    }

    .user-hub-plan-list,
    .user-hub-checkout-row,
    .settings-view .user-hub-password-form,
    .user-hub-subscription-actions {
        grid-template-columns: 1fr;
    }

    .user-hub-telegram-bind {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .user-hub-telegram-bind .user-hub-secondary {
        grid-column: 1 / -1;
        width: 100%;
    }
}

/* Password pages */
.password-page {
    width: min(720px, calc(100% - 32px));
    min-height: 100vh;
    display: grid;
    align-content: center;
    gap: 26px;
    margin: 0 auto;
    padding: 42px 0;
}

.password-brand {
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: .12em;
}

.password-brand b,
.password-kicker {
    color: #a154ff;
}

.password-card {
    border: 1px solid rgba(126, 111, 194, 0.32);
    border-radius: 24px;
    padding: clamp(28px, 5vw, 54px);
    background:
        radial-gradient(420px 260px at 80% 0%, rgba(161, 84, 255, .16), transparent 70%),
        linear-gradient(180deg, rgba(14, 13, 40, .98), rgba(7, 8, 22, .98));
    box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
}

.password-kicker,
.password-card h1,
.password-subtitle {
    margin: 0;
}

.password-kicker {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.password-card h1 {
    margin-top: 12px;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.08;
}

.password-subtitle {
    margin-top: 14px;
    color: #bfc2d8;
    font-size: 17px;
    line-height: 1.6;
}

.password-form {
    display: grid;
    gap: 18px;
    margin-top: 34px;
}

.password-form label,
.password-step {
    display: grid;
    gap: 10px;
}

.password-step {
    display: none;
}

.password-step.active {
    display: grid;
}

.password-form span {
    color: #d9d5ee;
    font-size: 14px;
}

.password-form input {
    min-height: 58px;
    border: 1px solid rgba(126, 111, 194, 0.38);
    border-radius: 12px;
    padding: 0 16px;
    background: rgba(6, 7, 22, .86);
    color: #ffffff;
    font-size: 16px;
}

.password-form button {
    min-height: 58px;
    border: 1px solid rgba(160, 84, 255, 0.42);
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #df2cd7, #8b38ff 52%, #1f9bff);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.password-form p {
    min-height: 22px;
    margin: 0;
    color: #c9c5dd;
}

.password-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.password-links a {
    color: #b786ff;
    font-weight: 700;
}

/* Aether public landing and auth screens */
.aether-site-body,
.aether-auth-body {
    margin: 0;
    min-height: 100vh;
    color: #f7f4ff;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    background:
        radial-gradient(900px 520px at 72% 16%, rgba(213, 36, 187, 0.18), transparent 68%),
        radial-gradient(760px 460px at 44% 22%, rgba(38, 100, 255, 0.16), transparent 66%),
        linear-gradient(180deg, #06071a, #070720 54%, #06071a);
}

.aether-site,
.aether-auth-page {
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
}

.aether-nav {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 20;
}

.aether-logo {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.aether-logo img {
    width: 58px;
    height: 34px;
    object-fit: contain;
}

.aether-logo b {
    color: #9a69ff;
    font-weight: 900;
}

.aether-nav nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.aether-nav nav a,
.aether-nav-actions a {
    color: #f1edff;
    font-size: 14px;
}

.aether-nav nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    border-radius: 9px;
    padding: 0 8px;
    transition:
        color .18s ease,
        box-shadow .18s ease,
        background .18s ease,
        transform .18s ease;
}

.aether-nav nav a.active {
    color: #fff;
    border-bottom: 2px solid #d737d7;
    padding-bottom: 12px;
}

.aether-nav nav a:hover {
    color: #fff;
    background: rgba(15, 17, 44, 0.72);
    box-shadow:
        inset 0 0 0 1px rgba(95, 224, 255, 0.34),
        0 0 0 1px rgba(255, 64, 214, 0.18),
        0 0 22px rgba(52, 161, 255, 0.18);
    transform: translateY(-1px);
}

.aether-footer a {
    border-radius: 7px;
    transition: color .18s ease, background .18s ease, transform .18s ease, text-shadow .18s ease;
}

.aether-footer nav a:hover,
.aether-auth-footer nav a:hover {
    color: #ffffff;
    background: rgba(126, 111, 194, 0.12);
    transform: translateX(3px);
    text-shadow: 0 0 18px rgba(95, 224, 255, 0.34);
}

.aether-nav nav a:focus-visible {
    outline: 2px solid rgba(95, 224, 255, 0.92);
    outline-offset: 3px;
}

.aether-nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

.aether-nav-actions .gradient,
.aether-hero-actions .primary,
.aether-plan.popular a,
.aether-footer aside a,
.aether-auth-form button {
    color: #fff;
    background: linear-gradient(135deg, #df2cd7, #8b38ff 52%, #1f9bff);
    box-shadow: 0 18px 48px rgba(156, 56, 255, 0.26);
}

.aether-nav-actions a,
.aether-hero-actions a,
.aether-plan a,
.aether-servers > a,
.aether-footer aside a,
.telegram-login {
    width: 100%;
    cursor: pointer;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    padding: 10px 18px;
    font-weight: 800;
    position: relative;
    text-align: center;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
    outline: 0;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease,
        background .18s ease,
        color .18s ease,
        filter .18s ease;
}

.aether-nav-actions a {
    width: auto;
    min-width: 86px;
    white-space: nowrap;
    overflow-wrap: normal;
}

.aether-nav-actions .gradient {
    min-width: 104px;
    border-radius: 8px;
    padding-inline: 18px;
}

.aether-nav-actions a:hover,
.aether-hero-actions a:hover,
.aether-plan a:hover,
.aether-servers > a:hover,
.aether-footer aside a:hover,
.telegram-login:hover,
.aether-auth-form button:hover,
.user-lookup button:hover,
.user-checkout-form button:hover,
.user-primary:hover,
.user-secondary:hover,
.user-quick-actions a:hover,
.user-plan-row:hover,
.auth-back-btn:hover {
    border-color: rgba(95, 224, 255, 0.9);
    box-shadow:
        0 0 0 1px rgba(255, 64, 214, 0.42),
        0 0 24px rgba(52, 161, 255, 0.34),
        0 0 34px rgba(224, 44, 215, 0.24);
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.aether-nav-actions a:focus-visible,
.aether-hero-actions a:focus-visible,
.aether-plan a:focus-visible,
.aether-servers > a:focus-visible,
.aether-footer aside a:focus-visible,
.telegram-login:focus-visible,
.aether-auth-form button:focus-visible,
.user-lookup button:focus-visible,
.user-checkout-form button:focus-visible,
.user-primary:focus-visible,
.user-secondary:focus-visible,
.user-quick-actions a:focus-visible,
.user-plan-row:focus-visible,
.auth-back-btn:focus-visible {
    outline: 2px solid rgba(95, 224, 255, 0.92);
    outline-offset: 3px;
}

.aether-plan,
.aether-server-grid span,
.aether-auth-card {
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease,
        background .2s ease,
        filter .2s ease;
}

.aether-plan:hover,
.aether-server-grid span:hover {
    border-color: rgba(95, 224, 255, 0.52);
    background:
        radial-gradient(360px 180px at 80% 0%, rgba(31, 155, 255, 0.12), transparent 72%),
        linear-gradient(180deg, rgba(23, 18, 70, 0.92), rgba(10, 10, 36, 0.94));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(223, 44, 215, 0.16),
        0 18px 42px rgba(31, 155, 255, 0.12),
        0 0 34px rgba(223, 44, 215, 0.12);
    transform: translateY(-3px);
}

.aether-how article,
.aether-features article,
.aether-how article:hover,
.aether-features article:hover,
.aether-how article:focus,
.aether-features article:focus,
.aether-how article:focus-visible,
.aether-features article:focus-visible,
.aether-how article:active {
    border: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
    transform: none;
    filter: none;
}

.aether-hero {
    position: relative;
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
    gap: 20px;
    align-items: center;
    isolation: isolate;
}

.aether-hero::before {
    content: "";
    position: absolute;
    inset: -80px -120px -40px;
    z-index: -2;
    background:
        radial-gradient(620px 360px at 72% 48%, rgba(255, 41, 201, 0.22), transparent 68%),
        radial-gradient(560px 340px at 54% 44%, rgba(24, 139, 255, 0.24), transparent 66%),
        radial-gradient(460px 300px at 18% 42%, rgba(146, 70, 255, 0.12), transparent 70%);
    filter: blur(2px);
}

.aether-hero-copy {
    position: relative;
    z-index: 3;
}

.aether-pill {
    width: max-content;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid rgba(154, 105, 255, 0.38);
    border-radius: 999px;
    padding: 0 14px;
    color: #cbb8ff;
    background: rgba(16, 13, 45, 0.72);
    font-size: 13px;
}

.aether-hero h1 {
    margin: 26px 0 18px;
    font-size: clamp(54px, 7vw, 78px);
    line-height: 1.05;
    letter-spacing: 0;
}

.aether-hero h1 em,
.aether-auth-hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, #ee41cf, #7c5cff 58%, #20a0ff);
    -webkit-background-clip: text;
    color: transparent;
}

.aether-hero-copy p {
    max-width: 500px;
    color: #c7c3da;
    font-size: 18px;
    line-height: 1.7;
}

.aether-hero-actions {
    display: flex;
    gap: 22px;
    margin-top: 28px;
}

.aether-hero-actions .primary {
    min-width: 210px;
}

.aether-hero-actions .secondary,
.aether-plan a,
.aether-servers > a,
.telegram-login,
.aether-nav-actions .auth-login-link {
    border: 1px solid rgba(126, 111, 194, 0.38);
    color: #f7f4ff;
    background: rgba(12, 11, 39, 0.66);
}

.aether-platforms {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    color: #aaa6c3;
}

.aether-platforms img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    padding: 5px;
    border: 1px solid rgba(126, 111, 194, 0.28);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.86);
}

.aether-artwork-stage {
    position: relative;
    min-height: 560px;
    display: grid;
    place-items: center;
    overflow: visible;
}

.aether-artwork-stage::after {
    content: "";
    position: absolute;
    inset: 12% 0 8%;
    background:
        radial-gradient(closest-side at 34% 50%, rgba(0, 208, 255, 0.24), transparent 68%),
        radial-gradient(closest-side at 70% 50%, rgba(255, 35, 194, 0.22), transparent 70%);
    filter: blur(42px);
    mix-blend-mode: screen;
    opacity: .9;
}

.aether-orb-backdrop {
    position: absolute;
    left: -2%;
    top: 4%;
    width: min(330px, 42vw);
    opacity: .34;
    filter: blur(7px) saturate(1.3) drop-shadow(0 0 42px rgba(92, 220, 255, .35));
    mix-blend-mode: screen;
    transform: rotate(-8deg);
}

.aether-orb-backdrop img {
    width: 100%;
    display: block;
    border-radius: 50%;
}

.aether-artwork-glow {
    position: absolute;
    width: 420px;
    height: 280px;
    border-radius: 50%;
    filter: blur(54px);
    mix-blend-mode: screen;
    opacity: .62;
}

.aether-artwork-glow.cyan {
    left: 8%;
    top: 26%;
    background: rgba(0, 206, 255, .48);
}

.aether-artwork-glow.magenta {
    right: 2%;
    top: 24%;
    background: rgba(255, 38, 197, .48);
}

.aether-hero-artwork {
    position: relative;
    z-index: 2;
    width: min(760px, 112%);
    max-width: none;
    display: block;
    object-fit: contain;
    mix-blend-mode: screen;
    filter:
        drop-shadow(0 0 28px rgba(0, 206, 255, .34))
        drop-shadow(0 0 52px rgba(255, 37, 197, .34));
    transform: translateX(24px) scale(1.08);
}

.aether-particle {
    position: absolute;
    z-index: 3;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #8ff7ff;
    box-shadow: 0 0 18px currentColor;
    opacity: .78;
}

.aether-particle.p1 { left: 18%; top: 24%; color: #61efff; }
.aether-particle.p2 { left: 42%; top: 12%; width: 3px; height: 3px; color: #9d8cff; }
.aether-particle.p3 { right: 16%; top: 28%; color: #ff5bd4; }
.aether-particle.p4 { right: 30%; bottom: 20%; width: 4px; height: 4px; color: #ffd4f3; }

.aether-empty-stage {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border-radius: 0;
    pointer-events: none;
    z-index: 0;
}

.aether-empty-stage::before {
    content: "";
    position: absolute;
    inset: 10% 4% 8% 0;
    background:
        radial-gradient(closest-side at 38% 42%, rgba(0, 194, 255, 0.18), transparent 72%),
        radial-gradient(closest-side at 68% 48%, rgba(255, 38, 197, 0.18), transparent 74%),
        radial-gradient(closest-side at 54% 62%, rgba(122, 92, 255, 0.16), transparent 70%);
    filter: blur(28px);
    opacity: .86;
    pointer-events: none;
}

.aether-empty-stage::after {
    content: none;
    position: absolute;
    left: 12%;
    right: 8%;
    top: 25%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(94, 229, 255, 0.36), rgba(255, 82, 207, 0.3), transparent);
    box-shadow:
        0 80px 80px rgba(65, 122, 255, 0.12),
        0 -70px 90px rgba(255, 59, 201, 0.1);
    opacity: .7;
    pointer-events: none;
}

.aether-empty-stage span {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 18px currentColor;
    opacity: .6;
    pointer-events: none;
}

.aether-empty-stage span:nth-child(1) {
    left: 24%;
    top: 31%;
    color: #54eaff;
}

.aether-empty-stage span:nth-child(2) {
    right: 32%;
    top: 22%;
    width: 3px;
    height: 3px;
    color: #a782ff;
}

.aether-empty-stage span:nth-child(3) {
    right: 16%;
    top: 49%;
    width: 4px;
    height: 4px;
    color: #ff63ce;
}

.aether-features {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    border-top: 0;
    margin-top: 28px;
    padding: 34px 0 42px;
}

.aether-features::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(126, 111, 194, 0.2) 10%,
        rgba(95, 224, 255, 0.34) 48%,
        rgba(223, 44, 215, 0.26) 70%,
        transparent 100%
    );
    opacity: .78;
}

.aether-features article,
.aether-how article {
    display: grid;
    gap: 8px;
}

.aether-how article {
    padding: 0;
}

.aether-features i,
.aether-how i {
    color: #b35dff;
    font-size: 32px;
    font-style: normal;
}

.aether-features span,
.aether-how span,
.aether-footer p,
.aether-footer a,
.aether-footer span,
.aether-plan li,
.aether-plan small {
    color: #aaa6c3;
}

.aether-section-kicker {
    margin: 0;
    text-align: center;
    color: #9a9dfd;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.aether-plans h2,
.aether-how h2 {
    margin: 14px 0 24px;
    text-align: center;
    font-size: 34px;
}

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

.aether-plan,
.aether-servers,
.aether-footer aside,
.aether-auth-card {
    border: 1px solid rgba(126, 111, 194, 0.28);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(17, 14, 55, 0.82), rgba(9, 9, 32, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.aether-plan {
    position: relative;
    min-height: 374px;
    padding: 28px 24px 22px;
    display: flex;
    flex-direction: column;
}

.aether-plan.popular {
    border-color: rgba(230, 48, 211, 0.9);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    border-radius: 7px;
    padding: 0 18px;
    color: #fff;
    background: linear-gradient(135deg, #8b38ff, #df2cd7);
    font-size: 12px;
}

.aether-plan h3 {
    margin: 0 0 12px;
    color: #c16dff;
    font-size: 22px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.aether-plan strong {
    font-size: 30px;
}

.aether-plan ul {
    display: grid;
    gap: 12px;
    margin: 22px 0;
    padding: 0;
    list-style: none;
}

.aether-plan li {
    line-height: 1.45;
}

.aether-plan li:first-child {
    color: #f7f4ff;
    font-weight: 800;
}

.aether-plan li::before {
    content: "✓";
    margin-right: 10px;
    color: #66a8ff;
}

.aether-plan a {
    flex: 0 0 auto;
    margin-top: auto;
    width: 100%;
    height: auto;
}

.aether-plan a span {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.aether-plan-grid {
    gap: 20px;
    align-items: stretch;
}

.aether-plan {
    min-height: 360px;
    padding: 26px 24px 22px;
    overflow: visible;
    isolation: isolate;
}

.aether-plan::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(135deg, rgba(95, 224, 255, 0.08), transparent 38%),
        radial-gradient(circle at 85% 0%, rgba(223, 44, 215, 0.16), transparent 34%);
    opacity: 0;
    transition: opacity .18s ease;
}

.aether-plan.popular {
    background:
        linear-gradient(180deg, rgba(22, 16, 74, 0.92), rgba(10, 9, 35, 0.94));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 18px 44px rgba(163, 56, 255, 0.16);
}

.popular-badge {
    background: linear-gradient(135deg, #df2cd7, #1f9bff);
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(167, 101, 255, 0.34);
    z-index: 2;
}

.aether-plan h3 {
    margin-bottom: 14px;
    font-size: 21px;
}

.aether-plan strong {
    display: flex;
    align-items: baseline;
    gap: 8px;
    width: fit-content;
    margin: 0 0 4px;
    color: #f4f2ff;
    line-height: 1;
    letter-spacing: 0;
}

.aether-plan strong small {
    color: #b8b4cf;
    font-size: 18px;
    font-weight: 700;
}

.aether-plan ul {
    gap: 10px;
    margin: 22px 0 20px;
}

.aether-plan li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
}

.aether-plan li:first-child {
    color: #c9c5dc;
    font-weight: 500;
}

.aether-plan li::before {
    content: "✓";
    flex: 0 0 auto;
    margin-right: 0;
    color: #66a8ff;
    font-weight: 800;
}

.aether-plan a {
    min-height: 46px;
    border-color: rgba(126, 111, 194, 0.48);
    background: rgba(11, 10, 36, 0.72);
}

.aether-plan.popular a {
    border-color: transparent;
    background: linear-gradient(135deg, #df2cd7, #7b4dff 52%, #1f9bff);
}

.aether-plan:hover {
    border-color: rgba(95, 224, 255, 0.56);
    transform: translateY(-3px);
}

.aether-plan:hover::before {
    opacity: 1;
}

.aether-servers {
    margin-top: 30px;
    padding: 24px;
    text-align: center;
}

.aether-servers h3 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    line-height: 1.2;
}

.aether-server-grid {
    display: grid;
    grid-template-columns: repeat(var(--server-columns, 6), minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0 22px;
}

.aether-server-grid span {
    min-width: 0;
    min-height: 86px;
    display: grid;
    grid-template-rows: 18px auto auto;
    align-content: center;
    justify-items: center;
    gap: 6px;
    padding: 12px 10px;
    overflow: hidden;
    border: 1px solid rgba(126, 111, 194, 0.24);
    border-radius: 8px;
    background: rgba(19, 17, 55, 0.72);
}

.aether-server-grid strong {
    max-width: 100%;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.aether-server-grid img {
    width: 26px;
    height: 18px;
    object-fit: cover;
    display: block;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.aether-server-grid small {
    color: #aaa6c3;
}

.aether-server-grid small.pending {
    color: #c2bed8;
}

.aether-server-grid small.online {
    color: #72d69a;
}

.aether-server-grid small.offline {
    color: #ff8b8b;
}

.aether-how {
    padding: 34px 0 42px;
}

.aether-how > div {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.aether-footer,
.aether-auth-footer {
    display: grid;
    grid-template-columns: 1.6fr 0.8fr 0.8fr;
    gap: 28px;
    border-top: 1px solid rgba(126, 111, 194, 0.2);
    padding: 28px 0 38px;
}

.aether-footer nav,
.aether-auth-footer nav,
.aether-footer aside {
    display: grid;
    gap: 12px;
    align-content: start;
}

.aether-footer aside {
    padding: 24px;
}

/* Auth */
.aether-auth-page {
    min-height: 100vh;
}

.aether-nav.auth {
    margin-bottom: 36px;
}

.aether-auth-hero {
    display: grid;
    place-items: center;
    text-align: center;
    margin-top: 36px;
}

.aether-auth-hero h1 {
    margin: 0;
    font-size: 36px;
}

.aether-auth-hero p {
    margin: 14px 0 0;
    color: #c7c3da;
    font-size: 18px;
}

.aether-auth-card {
    width: min(620px, 100%);
    margin: 48px auto 78px;
    padding: 54px 60px;
}

.aether-auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-bottom: 1px solid rgba(126, 111, 194, 0.2);
    margin-bottom: 34px;
}

.aether-auth-tabs button,
.auth-switch button {
    border: 0;
    background: transparent;
    color: #c7c3da;
    cursor: pointer;
}

.aether-auth-tabs button {
    min-height: 48px;
    font-size: 20px;
}

.aether-auth-tabs button.active {
    color: #fff;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #df2cd7, #1f9bff) 1;
}

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

.register-step {
    display: none;
    gap: 22px;
}

.register-step.active {
    display: grid;
}

.aether-auth-form[hidden] {
    display: none;
}

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

.aether-auth-form label span {
    color: #c7c3da;
}

.aether-auth-form input {
    min-height: 62px;
    border: 1px solid rgba(126, 111, 194, 0.34);
    border-radius: 10px;
    background: rgba(9, 9, 32, 0.72);
    color: #fff;
    padding: 0 20px;
    font-size: 15px;
}

.auth-password-login {
    display: grid;
    gap: 22px;
}

.auth-password-login[hidden] {
    display: none;
}

.auth-login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 42px;
}

.auth-consent {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: flex-start;
    gap: 12px;
    border: 1px solid rgba(126, 111, 194, 0.22);
    border-radius: 12px;
    padding: 13px 14px;
    background: rgba(9, 9, 32, 0.48);
}

.auth-consent input {
    width: 18px;
    height: 18px;
    min-height: 0;
    margin: 2px 0 0;
    accent-color: #9f55ff;
}

.auth-consent span {
    color: #c7c3da;
    font-size: 14px;
    line-height: 1.5;
}

.auth-consent a {
    color: #b78bff;
    font-weight: 800;
    transition: color .18s ease, text-shadow .18s ease;
}

.auth-consent a:hover {
    color: #ffffff;
    text-shadow: 0 0 18px rgba(95, 224, 255, 0.32);
}

.aether-auth-form label.auth-remember {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 10px;
    width: fit-content;
    min-height: 34px;
    margin-top: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #d8d3ea;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.aether-auth-form label.auth-remember input {
    position: relative;
    width: 20px;
    height: 20px;
    min-height: 0;
    margin: 0;
    padding: 0;
    flex: 0 0 20px;
    appearance: none;
    border: 1px solid rgba(167, 101, 255, 0.52);
    border-radius: 6px;
    background: rgba(9, 9, 32, 0.78);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.aether-auth-form label.auth-remember input::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transform: rotate(45deg) scale(0.7);
    transition: opacity .16s ease, transform .16s ease;
}

.aether-auth-form label.auth-remember input:checked {
    border-color: rgba(95, 224, 255, 0.86);
    background: linear-gradient(135deg, #d42fe0, #2d9dff);
    box-shadow: 0 0 0 3px rgba(95, 224, 255, 0.12);
}

.aether-auth-form label.auth-remember input:checked::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.aether-auth-form label.auth-remember span {
    color: #d8d3ea;
    font-size: 13px;
    line-height: 1.2;
}

.forgot,
.auth-switch button {
    color: #a765ff;
}

.forgot {
    justify-self: end;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(167, 101, 255, 0.28);
    border-radius: 9px;
    padding: 0 12px;
    background: rgba(17, 14, 55, 0.56);
    font-size: 14px;
    font-weight: 700;
}

.auth-switch button {
    justify-self: end;
}

.aether-auth-form button[type="submit"] {
    min-height: 64px;
    border: 0;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}

.user-hub-password-form input {
    min-height: 54px;
    border: 1px solid rgba(93, 100, 156, 0.24);
    border-radius: 12px;
    padding: 0 16px;
    background: rgba(11, 14, 28, 0.96);
    color: #f5f3ff;
    font-size: 16px;
}

.auth-back-btn {
    min-height: 44px;
    border: 1px solid rgba(126, 111, 194, 0.34);
    border-radius: 10px;
    color: #f7f4ff;
    background: rgba(12, 11, 39, 0.66);
    cursor: pointer;
}

.auth-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    color: #aaa6c3;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    background: rgba(126, 111, 194, 0.25);
}

.telegram-login {
    color: #2b97ff;
}

.qr-login-button {
    color: #8f5cff;
}

.auth-alt-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.aether-auth-form .auth-icon-login {
    position: relative;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(126, 111, 194, 0.42);
    border-radius: 10px;
    padding: 0;
    color: #e9e6ff;
    background: rgba(12, 11, 39, 0.72);
    box-shadow: none;
    overflow: visible;
}

.aether-auth-form .auth-icon-login svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.aether-auth-form .auth-icon-login span {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    z-index: 4;
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(126, 111, 194, 0.42);
    border-radius: 8px;
    padding: 4px 8px;
    color: #f5f2ff;
    background: rgba(12, 11, 39, 0.96);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity .16s ease, transform .16s ease;
}

.aether-auth-form .auth-icon-login:hover span,
.aether-auth-form .auth-icon-login:focus-visible span {
    opacity: 1;
    transform: translate(-50%, 0);
}

.aether-auth-form .auth-icon-login:hover,
.aether-auth-form .auth-icon-login:focus-visible {
    border-color: rgba(95, 224, 255, 0.78);
    box-shadow:
        0 0 0 1px rgba(255, 64, 214, 0.26),
        0 0 20px rgba(52, 161, 255, 0.26);
    transform: translateY(-1px);
}

.aether-auth-form .auth-icon-login.qr-login-button {
    color: #d98cff;
}

.aether-auth-form .auth-icon-login.telegram-login {
    color: #6fc6ff;
}

.qr-login-panel {
    display: grid;
    justify-items: center;
    gap: 10px;
    border: 1px solid rgba(126, 111, 194, 0.28);
    border-radius: 14px;
    padding: 14px;
    background: rgba(12, 11, 39, 0.58);
    text-align: center;
}

.qr-login-panel[hidden] {
    display: none;
}

.qr-login-panel img {
    width: min(220px, 100%);
    aspect-ratio: 1;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
}

.qr-login-panel span,
.qr-login-panel small {
    color: #aaa6c3;
}

.qr-login-back {
    min-height: 38px;
    border: 1px solid rgba(126, 111, 194, 0.38);
    border-radius: 9px;
    padding: 0 14px;
    color: #f4efff;
    background: rgba(15, 13, 48, 0.68);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.telegram-login-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
    padding: 18px;
}

.telegram-login-modal[hidden] {
    display: none;
}

.telegram-login-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: rgba(2, 3, 18, 0.72);
    box-shadow: none;
    backdrop-filter: blur(12px);
    cursor: pointer;
    transform: none;
}

.telegram-login-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    display: grid;
    gap: 14px;
    border: 1px solid rgba(126, 111, 194, 0.36);
    border-radius: 16px;
    padding: 24px;
    background:
        radial-gradient(circle at 18% 0%, rgba(47, 157, 255, 0.18), transparent 36%),
        rgba(9, 8, 34, 0.98);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.telegram-login-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    border: 1px solid rgba(126, 111, 194, 0.34);
    border-radius: 10px;
    padding: 0;
    color: #f7f4ff;
    background: rgba(17, 14, 55, 0.72);
    box-shadow: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.telegram-login-backdrop:hover,
.telegram-login-backdrop:focus-visible,
.telegram-login-close:hover,
.telegram-login-close:focus-visible {
    transform: none;
}

.telegram-login-kicker {
    width: fit-content;
    border: 1px solid rgba(95, 224, 255, 0.28);
    border-radius: 999px;
    padding: 5px 10px;
    color: #80d7ff;
    background: rgba(47, 157, 255, 0.12);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
}

.telegram-login-dialog h3 {
    margin: 0;
    padding-right: 38px;
    color: #ffffff;
    font-size: 24px;
    line-height: 1.15;
}

.telegram-login-dialog p {
    margin: 0;
    color: #c7c3da;
    line-height: 1.5;
}

.telegram-login-dialog code {
    display: block;
    overflow-wrap: anywhere;
    border: 1px solid rgba(95, 224, 255, 0.26);
    border-radius: 12px;
    padding: 13px 14px;
    color: #ffffff;
    background: rgba(4, 6, 24, 0.66);
    font-size: 15px;
}

.telegram-login-open {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #061021;
    background: linear-gradient(135deg, #6fe5ff, #2d9dff);
    font-weight: 900;
}

.telegram-login-dialog small {
    color: #aaa6c3;
}

.auth-switch {
    margin: 30px 0 0;
    text-align: center;
    color: #c7c3da;
}

.aether-auth-footer {
    grid-template-columns: 1.3fr 0.75fr 0.75fr 0.9fr 1fr;
}

@media (max-width: 980px) {
    .aether-site,
    .aether-auth-page {
        width: min(100% - 28px, 1180px);
    }

    .aether-nav,
    .aether-nav nav,
    .aether-nav-actions {
        flex-wrap: wrap;
    }

    .aether-hero,
    .aether-plan-grid,
    .aether-how > div,
    .aether-footer,
    .aether-auth-footer {
        grid-template-columns: 1fr;
    }

    .aether-artwork-stage,
    .aether-empty-stage {
        min-height: 420px;
        order: -1;
    }

    .aether-hero-artwork {
        width: min(720px, 100%);
        transform: none;
    }

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

    .aether-auth-card {
        padding: 28px 20px;
    }
}

@media (max-width: 620px) {
    .auth-login-row {
        align-items: stretch;
        flex-direction: column;
    }

    .forgot {
        justify-content: center;
        justify-self: stretch;
        width: 100%;
    }

    .aether-nav nav {
        display: none;
    }

    .aether-hero h1 {
        font-size: 48px;
    }

    .aether-hero,
    .aether-artwork-stage {
        min-height: auto;
    }

    .aether-artwork-stage,
    .aether-empty-stage {
        min-height: 300px;
    }

    .aether-orb-backdrop {
        width: 180px;
    }

    .aether-features,
    .aether-server-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile UX refresh for public pages, auth and user cabinet */
.aether-hero-device {
    display: none;
}

.aether-site .aether-hero {
    grid-template-columns: minmax(0, 760px);
    justify-content: start;
    min-height: 520px;
}

.aether-site .aether-hero-copy p {
    max-width: 620px;
}

.aether-site-body,
.aether-auth-body,
.user-console-body {
    -webkit-text-size-adjust: 100%;
}

.aether-site-body,
.user-console-body {
    overflow-x: clip;
}

.aether-auth-form input,
.user-hub-field input,
.user-hub-form input,
.user-hub-password-form input {
    font-size: 16px;
}

@media (max-width: 760px) {
    .aether-site-body,
    .aether-auth-body {
        background:
            radial-gradient(520px 320px at 100% 0%, rgba(31, 155, 255, .2), transparent 68%),
            radial-gradient(420px 300px at 8% 18%, rgba(223, 44, 215, .16), transparent 66%),
            linear-gradient(180deg, #070817, #08091d 48%, #060714);
    }

    .aether-site,
    .aether-auth-page {
        width: min(100% - 24px, 1180px);
    }

    .aether-nav {
        min-height: 68px;
        gap: 12px;
        padding: 10px 0;
    }

    .aether-site .aether-nav {
        position: sticky;
        top: 0;
        margin-inline: -12px;
        padding: 10px 12px;
        background: rgba(7, 8, 23, .86);
        border-bottom: 1px solid rgba(126, 111, 194, .18);
        backdrop-filter: blur(14px);
    }

    .aether-logo {
        font-size: 16px;
        letter-spacing: .08em;
    }

    .aether-nav-actions {
        gap: 8px;
    }

    .aether-nav-actions a {
        min-width: 0;
        min-height: 40px;
        padding: 8px 11px;
        border-radius: 8px;
        font-size: 13px;
    }

    .aether-hero {
        min-height: auto;
        grid-template-columns: 1fr;
        justify-items: stretch;
        gap: 18px;
        padding: 20px 0 26px;
    }

    .aether-empty-stage {
        display: none;
    }

    .aether-hero-device {
        display: none;
    }

    .aether-pill {
        width: 100%;
        justify-content: center;
        min-height: 32px;
        padding-inline: 12px;
        font-size: 12px;
        text-align: center;
    }

    .aether-hero h1 {
        margin: 18px 0 12px;
        font-size: 40px;
        line-height: 1.08;
    }

    .aether-hero h1 em {
        display: block;
        margin-top: 6px;
        font-size: 28px;
    }

    .aether-hero-copy p {
        max-width: none;
        font-size: 16px;
        line-height: 1.55;
    }

    .aether-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 20px;
    }

    .aether-hero-actions a,
    .aether-servers > a,
    .aether-plan a,
    .telegram-login {
        min-height: 50px;
        border-radius: 10px;
    }

    .aether-platforms {
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 18px;
    }

    .aether-platforms span {
        width: 100%;
        font-size: 13px;
    }

    .aether-features {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 18px 0 28px;
        border-top: 0;
    }

    .aether-features article,
    .aether-how article {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 4px 12px;
        align-items: start;
        padding: 14px;
        border: 1px solid rgba(126, 111, 194, .18);
        border-radius: 12px;
        background: rgba(17, 14, 55, .48);
    }

    .aether-features i,
    .aether-how i {
        grid-row: span 2;
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border-radius: 10px;
        background: rgba(95, 224, 255, .1);
        font-size: 13px;
        font-weight: 900;
    }

    .aether-plans h2,
    .aether-how h2 {
        margin: 8px 0 16px;
        font-size: 26px;
        text-align: left;
    }

    .aether-section-kicker {
        text-align: left;
        font-size: 12px;
    }

    .aether-plan-grid {
        display: flex;
        gap: 12px;
        margin-inline: -12px;
        padding: 4px 12px 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .aether-plan-grid::-webkit-scrollbar {
        display: none;
    }

    .aether-plan {
        flex: 0 0 min(82vw, 330px);
        min-height: 330px;
        padding: 18px 18px 18px;
        scroll-snap-align: start;
    }

    .aether-plan.popular {
        padding-top: 16px;
    }

    .aether-plan .popular-badge {
        position: static;
        align-self: flex-start;
        min-height: 26px;
        margin: 0 0 12px;
        padding: 0 12px;
        transform: none;
        border-radius: 8px;
        font-size: 11px;
        white-space: nowrap;
    }

    .aether-plan strong {
        font-size: 28px;
    }

    .aether-servers {
        margin-top: 18px;
        padding: 18px 14px;
        text-align: left;
    }

    .aether-server-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .aether-server-grid span {
        min-height: 78px;
        border-radius: 10px;
    }

    .aether-how {
        padding: 26px 0;
    }

    .aether-how > div {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .aether-footer,
    .aether-auth-footer {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 24px 0 34px;
    }

    .aether-auth-page {
        display: grid;
        align-content: start;
        min-height: 100vh;
    }

    .aether-nav.auth {
        margin-bottom: 10px;
    }

    .aether-auth-hero {
        place-items: start;
        text-align: left;
        margin-top: 8px;
    }

    .aether-auth-hero h1 {
        font-size: 30px;
        line-height: 1.12;
    }

    .aether-auth-hero p {
        margin-top: 8px;
        font-size: 15px;
        line-height: 1.45;
    }

    .aether-auth-card {
        width: 100%;
        margin: 22px auto 28px;
        padding: 16px;
        border-radius: 14px;
    }

    .aether-auth-tabs {
        gap: 6px;
        margin-bottom: 18px;
        padding: 4px;
        border: 1px solid rgba(126, 111, 194, .2);
        border-radius: 11px;
        background: rgba(6, 7, 22, .42);
    }

    .aether-auth-tabs button {
        min-height: 42px;
        border-radius: 8px;
        font-size: 15px;
    }

    .aether-auth-tabs button.active {
        border: 0;
        background: rgba(126, 92, 255, .24);
    }

    .aether-auth-form,
    .register-step {
        gap: 14px;
    }

    .aether-auth-form input {
        min-height: 52px;
        border-radius: 10px;
        padding: 0 14px;
    }

    .forgot {
        justify-self: stretch;
        justify-content: center;
    }

    .aether-auth-form button[type="submit"] {
        min-height: 54px;
        border-radius: 10px;
    }

    .auth-consent {
        padding: 12px;
    }

    .auth-switch {
        margin-top: 18px;
    }

    .aether-auth-footer {
        display: none;
    }

    .user-console-body {
        background:
            radial-gradient(520px 320px at 100% 0%, rgba(161, 84, 255, .15), transparent 70%),
            #060815;
        overflow-x: hidden;
    }

    .user-hub {
        display: block;
        width: 100%;
        overflow-x: hidden;
    }

    .user-hub-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 40;
        height: auto;
        gap: 10px;
        padding: 12px;
        border-right: 0;
        border-bottom: 1px solid rgba(93, 100, 156, .18);
        background: rgba(5, 7, 18, .9);
        backdrop-filter: blur(14px);
    }

    .user-hub-brand strong {
        font-size: 18px;
    }

    .user-hub-nav {
        display: flex;
        gap: 8px;
        margin-inline: -2px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .user-hub-nav::-webkit-scrollbar {
        display: none;
    }

    .user-hub-nav a {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 0 12px;
        border-radius: 10px;
        font-size: 13px;
        white-space: nowrap;
    }

    .user-hub-sidebar-bottom {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
    }

    .user-hub-sidebar-bottom span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding: 0;
        font-size: 12px;
    }

    .user-hub-sidebar-bottom a {
        min-height: 34px;
        padding: 0 10px;
        border-radius: 9px;
        font-size: 12px;
    }

    .user-hub-main {
        padding: 142px 12px 34px;
    }

    .user-hub-topbar {
        min-height: 0;
        padding-bottom: 16px;
        gap: 12px;
    }

    .user-hub-topbar h1 {
        font-size: 26px;
        line-height: 1.14;
    }

    .user-hub-topbar p {
        margin-top: 8px;
        font-size: 14px;
        line-height: 1.45;
    }

    .user-hub-profile {
        display: none;
    }

    .user-hub-grid {
        gap: 12px;
        padding-top: 16px;
    }

    .user-hub-card {
        padding: 16px;
        border-radius: 14px;
    }

    .user-hub-card-head {
        align-items: flex-start;
        margin-bottom: 14px;
    }

    .user-hub-card-head h3 {
        font-size: 18px;
    }

    .user-hub-card-head > span {
        font-size: 12px;
        text-align: right;
    }

    .user-hub-subscription-copy h2 {
        font-size: 27px;
        line-height: 1.18;
    }

    .user-hub-subscription-copy p {
        font-size: 14px;
        line-height: 1.5;
    }

    .user-hub-facts,
    .user-hub-overview-grid,
    .user-hub-mini-stats,
    .user-hub-referral-stats,
    .user-hub-settings-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .user-hub-facts div,
    .user-hub-overview-grid article,
    .user-hub-mini-stats article,
    .user-hub-settings-grid article {
        border-right: 0;
        border-bottom: 0;
        border-radius: 12px;
        background: rgba(11, 14, 30, .7);
    }

    .user-hub-subscription-actions,
    .user-hub-actions,
    .user-hub-checkout-row,
    .user-hub-plan-list,
    .user-hub-field div {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .user-hub-primary,
    .user-hub-secondary,
    .user-hub-field button,
    .user-hub-form button {
        min-height: 48px;
        border-radius: 10px;
    }

    .user-hub-app-downloads {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
        border-radius: 12px;
    }

    .user-hub-app-downloads a,
    .user-hub-app-download-choice {
        min-height: 74px;
        padding: 9px 6px;
        border-radius: 10px;
    }

    .user-hub-app-choice-menu {
        left: 0;
        right: 0;
    }

    .user-hub-tier-switch {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .user-hub-tier {
        min-height: 68px;
        padding: 10px;
    }

    .user-hub-tier span {
        font-size: 12px;
    }

    .user-hub-plan {
        min-height: 68px;
        padding: 12px;
    }

    .user-hub-password-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .settings-view .user-hub-grid,
    .payments-view .user-hub-grid {
        grid-template-columns: 1fr;
    }

    .settings-view .user-hub-settings-grid,
    .settings-view .user-hub-password-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .aether-hero h1 {
        font-size: 35px;
    }

    .aether-hero h1 em {
        font-size: 24px;
    }

    .aether-nav-actions a {
        padding-inline: 8px;
        font-size: 12px;
    }

    .user-hub-app-downloads {
        grid-template-columns: 1fr;
    }
}

/* Light admin refresh */
.admin-layout {
    color-scheme: dark;
    --admin-bg: #07101e;
    --admin-bg-2: #0a1424;
    --admin-surface: rgba(13, 25, 44, 0.82);
    --admin-surface-strong: rgba(16, 31, 53, 0.92);
    --admin-stroke: rgba(114, 139, 177, 0.19);
    --admin-stroke-strong: rgba(129, 154, 191, 0.28);
    --admin-text: #f4f7fb;
    --admin-muted: #9aa9bf;
    --admin-blue: #2f7cff;
    --admin-green: #19d283;
    --admin-amber: #f6b72f;
    --admin-red: #f0525f;
    --admin-violet: #9b5cf6;
    background:
        radial-gradient(900px 520px at 16% -10%, rgba(47, 124, 255, 0.15), transparent 62%),
        radial-gradient(780px 520px at 95% 5%, rgba(68, 95, 140, 0.12), transparent 58%),
        linear-gradient(180deg, var(--admin-bg), #050b14 72%);
}

.admin-layout .layout-shell {
    grid-template-columns: 250px minmax(0, 1fr);
}

.admin-layout .app-sidebar {
    gap: 28px;
    padding: 24px 14px;
    background:
        linear-gradient(180deg, rgba(8, 17, 31, 0.96), rgba(7, 14, 26, 0.98));
    border-right: 1px solid rgba(95, 125, 170, 0.13);
    box-shadow: 18px 0 54px rgba(2, 7, 16, 0.16);
}

.admin-layout .sidebar-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    color: #061021;
    background: linear-gradient(135deg, #3b8cff, #1f6aff);
    box-shadow: 0 12px 28px rgba(47, 124, 255, 0.28);
}

.admin-layout .sidebar-brand-text strong,
.admin-layout .topbar-copy strong,
.admin-layout .section-title {
    color: var(--admin-text);
    letter-spacing: 0;
}

.admin-layout .sidebar-brand-text small,
.admin-layout .topbar-copy span {
    color: var(--admin-muted);
}

.admin-layout .sidebar-nav {
    gap: 10px;
}

.admin-layout .sidebar-link {
    min-height: 48px;
    gap: 14px;
    border-radius: 10px;
    padding: 0 14px;
    color: #a9b7cd;
    font-size: 14px;
}

.admin-layout .sidebar-link:hover {
    color: var(--admin-text);
    border-color: var(--admin-stroke);
    background: rgba(47, 124, 255, 0.08);
    transform: none;
}

.admin-layout .sidebar-link.active {
    color: #f8fbff;
    border-color: rgba(47, 124, 255, 0.13);
    background: linear-gradient(90deg, rgba(47, 124, 255, 0.20), rgba(47, 124, 255, 0.09));
    box-shadow: inset 3px 0 0 rgba(47, 124, 255, 0.9);
}

.admin-layout .nav-icon {
    width: 19px;
    height: 19px;
    opacity: 0.9;
    filter: invert(68%) sepia(17%) saturate(479%) hue-rotate(179deg) brightness(92%) contrast(88%);
}

.admin-layout .sidebar-link.active .nav-icon,
.admin-layout .sidebar-link:hover .nav-icon {
    filter: invert(51%) sepia(84%) saturate(2821%) hue-rotate(203deg) brightness(101%) contrast(101%);
}

.admin-layout .layout-topbar {
    min-height: 92px;
    padding: 20px 28px;
    border-bottom: 1px solid rgba(95, 125, 170, 0.12);
    background: rgba(7, 15, 28, 0.78);
}

.admin-layout .topbar-copy strong {
    font-size: 21px;
}

.admin-layout .topbar-copy span {
    font-size: 14px;
}

.admin-layout .topbar-tools {
    gap: 16px;
}

.admin-layout .admin-jump {
    width: min(360px, 30vw);
}

.admin-layout .admin-jump span {
    display: none;
}

.admin-layout .admin-jump input {
    min-height: 44px;
    border-radius: 10px;
    padding-inline: 16px;
    background: rgba(11, 22, 39, 0.88);
}

.admin-layout .topbar-pulse {
    min-height: 38px;
    padding-inline: 14px;
    border-color: rgba(47, 124, 255, 0.22);
    color: #c7d3e7;
    background: rgba(47, 124, 255, 0.08);
}

.admin-layout .layout-content {
    width: min(1560px, 100%);
    padding: 28px clamp(18px, 2vw, 32px) 36px;
}

.admin-layout .panel,
.admin-layout .card,
.admin-layout .shop-toolbar,
.admin-layout .shop-metric,
.admin-layout .shop-card,
.admin-command-card,
.admin-health-card,
.kpi-card {
    border: 1px solid var(--admin-stroke);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(17, 31, 52, 0.82), rgba(10, 20, 36, 0.84));
    box-shadow: 0 18px 42px rgba(2, 8, 18, 0.22);
}

.admin-layout .panel:hover,
.admin-layout .card:hover,
.admin-layout .shop-card:hover,
.admin-layout .shop-metric:hover {
    border-color: var(--admin-stroke-strong);
}

.admin-layout .btn,
.admin-layout .quick-action,
.admin-layout .shop-action-primary {
    border-radius: 9px;
    border-color: rgba(72, 101, 145, 0.32);
    color: #eef5ff;
    background: linear-gradient(180deg, #2e7cff, #1d67f2);
    box-shadow: 0 12px 26px rgba(47, 124, 255, 0.20);
}

.admin-layout .btn:hover,
.admin-layout .quick-action:hover,
.admin-layout .shop-action-primary:hover {
    border-color: rgba(72, 127, 255, 0.46);
    background: linear-gradient(180deg, #3b88ff, #236df6);
    transform: translateY(-1px);
}

.admin-layout .btn.secondary,
.admin-layout .quick-action:not(.shop-action-primary) {
    color: #c8d6eb;
    background: rgba(13, 25, 44, 0.78);
    box-shadow: none;
}

.admin-layout .btn.secondary:hover,
.admin-layout .quick-action:not(.shop-action-primary):hover {
    color: #ffffff;
    background: rgba(26, 45, 73, 0.88);
}

.admin-layout .input,
.admin-layout input,
.admin-layout select,
.admin-layout textarea,
.admin-layout .shop-select,
.admin-layout .shop-icon-btn {
    border: 1px solid rgba(112, 139, 180, 0.25);
    border-radius: 9px;
    color: #f4f7fb;
    background: rgba(8, 18, 33, 0.72);
    box-shadow: none;
}

.admin-layout .input:focus,
.admin-layout input:focus,
.admin-layout select:focus,
.admin-layout textarea:focus {
    border-color: rgba(47, 124, 255, 0.64);
    box-shadow: 0 0 0 3px rgba(47, 124, 255, 0.14);
}

.admin-layout .muted-text,
.admin-layout .shop-metric span,
.admin-layout .shop-card-head span,
.admin-layout .shop-card-head a,
.admin-layout .shop-sync,
.admin-layout .admin-command-card small,
.admin-layout .admin-health-card small,
.admin-layout .admin-health-card span {
    color: var(--admin-muted);
}

.admin-layout .shop-dashboard,
.admin-users-page,
.servers-page,
.groups-page,
.promo-admin,
.backups-page {
    gap: 24px;
}

.admin-layout .shop-toolbar {
    min-height: 70px;
    padding: 16px 20px;
}

.admin-layout .shop-toolbar h1 {
    font-size: 24px;
}

.admin-layout .shop-metrics,
.kpi-grid,
.admin-users-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 22px;
}

.admin-layout .shop-metric,
.kpi-card,
.admin-kpi-card {
    min-height: 96px;
    border: 1px solid var(--admin-stroke);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(17, 31, 52, 0.82), rgba(10, 20, 36, 0.86));
    box-shadow: 0 18px 42px rgba(2, 8, 18, 0.20);
}

.admin-layout .shop-metric {
    padding: 18px 64px 16px 20px;
}

.admin-layout .shop-metric strong,
.admin-layout .kpi-card strong,
.admin-kpi-card strong {
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
}

.admin-layout .shop-metric small {
    color: var(--admin-muted);
}

.admin-layout .metric-glyph,
.admin-kpi-icon {
    border: 0;
    background: rgba(47, 124, 255, 0.14);
}

.admin-layout .shop-grid {
    gap: 22px;
}

.admin-layout .shop-card {
    padding: 18px;
}

.admin-layout .table-wrap,
.admin-users-table-wrap,
.shop-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
}

.admin-layout .shop-table,
.admin-layout .app-table {
    min-width: 840px;
    border-collapse: collapse;
}

.admin-layout .shop-table th,
.admin-layout .shop-table td,
.admin-layout .app-table th,
.admin-layout .app-table td {
    padding: 9px 18px;
    border-bottom: 1px solid rgba(124, 149, 184, 0.13);
}

.admin-layout .shop-table th,
.admin-layout .app-table th {
    color: #b1bed2;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    background: rgba(13, 25, 44, 0.46);
}

.admin-layout .shop-table tr:hover td,
.admin-layout .app-table tbody tr:hover td {
    background: rgba(47, 124, 255, 0.045);
}

.admin-users-table-page {
    display: grid;
}

.admin-users-table-page .admin-users-summary {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.admin-kpi-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 20px 22px;
}

.admin-kpi-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.admin-kpi-icon::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: currentColor;
}

.admin-kpi-icon img {
    width: 24px;
    height: 24px;
    filter: invert(54%) sepia(80%) saturate(3966%) hue-rotate(204deg) brightness(101%) contrast(101%);
}

.tone-blue .admin-kpi-icon {
    color: var(--admin-blue);
    background: rgba(47, 124, 255, 0.15);
}

.tone-blue .admin-kpi-icon::before {
    display: none;
}

.tone-green .admin-kpi-icon {
    color: var(--admin-green);
    background: rgba(25, 210, 131, 0.13);
}

.tone-amber .admin-kpi-icon {
    color: var(--admin-amber);
    background: rgba(246, 183, 47, 0.12);
}

.tone-amber .admin-kpi-icon::before {
    display: none;
}

.tone-violet .admin-kpi-icon {
    color: var(--admin-violet);
    background: rgba(155, 92, 246, 0.15);
}

.admin-kpi-card div {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.admin-kpi-card div span {
    color: var(--admin-muted);
    font-size: 14px;
}

.admin-user-create {
    padding: 0;
}

.admin-user-create summary {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
}

.admin-user-create summary::-webkit-details-marker {
    display: none;
}

.admin-user-create summary span:first-child {
    display: grid;
    gap: 4px;
}

.admin-user-create summary strong {
    color: #f7fbff;
}

.admin-user-create summary small {
    color: var(--admin-muted);
}

.admin-user-create-form {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr)) auto;
    gap: 14px;
    align-items: end;
    padding: 0 20px 20px;
}

.admin-user-create-form label,
.admin-users-toolbar label {
    display: grid;
    gap: 8px;
}

.admin-user-create-form span,
.admin-users-toolbar label span {
    color: #9fafc5;
    font-size: 13px;
}

.admin-users-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(170px, 1fr)) auto;
    gap: 22px;
    align-items: end;
    padding: 22px 24px;
}

.admin-users-table-card {
    padding: 0;
    overflow: hidden;
}

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

.admin-users-table tr.admin-user-card {
    position: static;
    display: table-row;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    transform: none;
}

.admin-users-table tr.admin-user-card::before {
    display: none;
}

.admin-users-table tr.admin-user-card:hover {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.admin-users-table tr.admin-user-card[hidden] {
    display: none;
}

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

.admin-user-cell > div {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.admin-user-cell strong {
    color: #f7fbff;
}

.admin-user-cell span:not(.admin-user-avatar) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 250px;
    color: #96a7bf;
    font-size: 13px;
}

.admin-user-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #07101e;
    font-weight: 800;
    font-size: 15px;
    background: linear-gradient(135deg, #3b8cff, #1f6aff);
    box-shadow: 0 10px 20px rgba(47, 124, 255, 0.22);
}

.admin-inline-copy {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 7px;
    color: #9eb0c8;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}

.admin-inline-copy .btn-icon {
    margin: 0;
}

.admin-table-subtext {
    display: block;
    margin-top: 4px;
    color: var(--admin-muted);
    font-size: 13px;
}

.admin-user-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(25, 210, 131, 0.18);
    border-radius: 8px;
    padding: 6px 10px;
    color: var(--admin-green);
    font-style: normal;
    font-size: 13px;
    font-weight: 700;
    background: rgba(25, 210, 131, 0.10);
}

.admin-user-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.admin-user-status.expired {
    border-color: rgba(240, 82, 95, 0.22);
    color: var(--admin-red);
    background: rgba(240, 82, 95, 0.11);
}

.admin-group-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid rgba(47, 124, 255, 0.18);
    border-radius: 7px;
    padding: 0 10px;
    color: #6fa2ff;
    background: rgba(47, 124, 255, 0.11);
    font-size: 13px;
    font-weight: 700;
}

.admin-group-badge.empty {
    border-color: rgba(147, 164, 190, 0.14);
    color: #8f9eb4;
    background: rgba(147, 164, 190, 0.06);
}

.admin-user-actions {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.admin-user-actions .btn {
    min-width: 36px;
    min-height: 36px;
    justify-content: center;
    padding-inline: 10px;
}

.admin-user-actions .btn-icon {
    margin: 0;
}

.admin-row-menu {
    position: relative;
}

.admin-row-menu summary {
    list-style: none;
    cursor: pointer;
}

.admin-row-menu summary::-webkit-details-marker {
    display: none;
}

.admin-user-config-btn {
    position: relative;
}

.admin-user-config-icon {
    position: relative;
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
}

.admin-user-config-icon .btn-icon {
    width: 16px;
    height: 16px;
    margin: 0;
}

.admin-user-config-icon i {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 12px;
    height: 12px;
    border-radius: 5px;
    display: inline-grid;
    place-items: center;
    background: #31de9e;
    color: #06111f;
    border: 1px solid rgba(6, 17, 31, 0.9);
    font-size: 11px;
    line-height: 1;
    font-style: normal;
    font-weight: 900;
}

.admin-row-menu-popover {
    position: fixed;
    right: auto;
    top: var(--admin-row-menu-top, 0);
    left: var(--admin-row-menu-left, 0);
    z-index: 140;
    min-width: 178px;
    display: grid;
    gap: 4px;
    border: 1px solid rgba(106, 133, 173, 0.22);
    border-radius: 10px;
    padding: 8px;
    background: rgba(9, 19, 35, 0.98);
    box-shadow: 0 18px 42px rgba(1, 7, 16, 0.36);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 120ms ease;
}

.admin-row-menu[open].is-positioned .admin-row-menu-popover {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.admin-row-menu-popover a,
.admin-row-menu-popover button {
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 0;
    border-radius: 8px;
    padding: 0 10px;
    color: #c8d6eb;
    background: transparent;
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.admin-row-menu-popover a:hover,
.admin-row-menu-popover button:hover {
    color: #ffffff;
    background: rgba(47, 124, 255, 0.12);
}

.admin-row-menu-popover button.danger {
    color: #ffb8b8;
}

.admin-row-menu-popover button.danger:hover {
    color: #ffffff;
    background: rgba(248, 112, 112, 0.16);
}

.admin-row-menu-popover .btn-icon {
    width: 14px;
    height: 14px;
    margin: 0;
}

.admin-user-state {
    margin: 7px 0 0;
    font-size: 12px;
}

.admin-user-state:empty {
    display: none;
}

.admin-user-state.error {
    color: var(--admin-red);
}

.admin-users-table-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    color: var(--admin-muted);
    font-size: 14px;
}

.admin-users-table-footer strong {
    color: #f7fbff;
}

.admin-edit-user-page {
    display: grid;
    justify-items: center;
}

.admin-edit-user-card {
    width: min(620px, 100%);
    padding: 24px;
}

.admin-edit-user-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.admin-edit-user-head .admin-user-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 18px;
}

.admin-edit-user-head h2,
.admin-edit-user-head p {
    margin: 0;
}

.admin-edit-user-head p {
    margin-top: 5px;
    color: var(--admin-muted);
    font-size: 13px;
}

.admin-edit-user-form {
    display: grid;
    gap: 15px;
}

.admin-edit-user-form label {
    display: grid;
    gap: 7px;
}

.admin-edit-user-form label span {
    color: #9fafc5;
    font-size: 13px;
}

.admin-edit-user-readonly {
    display: grid;
    gap: 6px;
    border: 1px solid rgba(127, 153, 184, 0.16);
    border-radius: 10px;
    padding: 11px 12px;
    background: rgba(3, 11, 20, 0.42);
}

.admin-edit-user-readonly > span {
    color: #9fafc5;
    font-size: 13px;
}

.admin-edit-user-readonly strong {
    color: #dce7f4;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.admin-edit-user-readonly small {
    color: var(--admin-muted);
    font-size: 11px;
    line-height: 1.35;
}

.admin-edit-user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.admin-users-notice {
    border-radius: 9px;
    padding: 12px 14px;
    font-weight: 700;
}

.admin-users-notice.success {
    border: 1px solid rgba(25, 210, 131, 0.22);
    color: #75e7b5;
    background: rgba(25, 210, 131, 0.10);
}

.admin-users-notice.error {
    border: 1px solid rgba(240, 82, 95, 0.24);
    color: #ff9aa2;
    background: rgba(240, 82, 95, 0.10);
}

.remnawave-page {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.remnawave-head,
.remnawave-panel,
.remnawave-kpi {
    border: 1px solid rgba(106, 133, 173, 0.18);
    border-radius: 10px;
    background:
        radial-gradient(280px 160px at 12% 0%, rgba(47, 124, 255, 0.08), transparent 70%),
        linear-gradient(180deg, rgba(14, 27, 47, 0.88), rgba(8, 18, 34, 0.92));
    box-shadow: 0 18px 42px rgba(2, 8, 18, 0.18);
}

.remnawave-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
}

.remnawave-head h2,
.remnawave-head p {
    margin: 0;
}

.remnawave-head h2 {
    margin-top: 4px;
    color: #f8fbff;
    font-size: 22px;
}

.remnawave-head p {
    margin-top: 6px;
    color: #a9b8cc;
    font-size: 14px;
}

.remnawave-kicker {
    color: #31de9e;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

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

.remnawave-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    gap: 12px;
}

.remnawave-kpi {
    display: grid;
    gap: 8px;
    min-height: 128px;
    padding: 18px 20px;
}

.remnawave-kpi span,
.remnawave-kpi small {
    color: #9eafc6;
}

.remnawave-kpi span {
    font-size: 13px;
    font-weight: 700;
}

.remnawave-kpi strong {
    color: #f8fbff;
    font-size: 30px;
    line-height: 1;
}

.remnawave-kpi small {
    font-size: 13px;
}

.remnawave-kpi.tone-green {
    border-color: rgba(25, 210, 131, 0.18);
}

.remnawave-kpi.tone-blue {
    border-color: rgba(47, 124, 255, 0.18);
}

.remnawave-kpi.tone-amber {
    border-color: rgba(246, 183, 47, 0.18);
}

.remnawave-kpi.tone-violet {
    border-color: rgba(155, 92, 246, 0.18);
}

.remnawave-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
    gap: 16px;
    min-width: 0;
}

.remnawave-panel {
    min-width: 0;
    padding: 18px;
}

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

.remnawave-panel-head h3,
.remnawave-panel-head p {
    margin: 0;
}

.remnawave-panel-head h3 {
    color: #f8fbff;
    font-size: 17px;
}

.remnawave-panel-head p {
    margin-top: 5px;
    color: #9eafc6;
    font-size: 13px;
}

.remnawave-badge,
.remnawave-state,
.remnawave-issue {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 8px;
    padding: 0 10px;
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.remnawave-badge.ok,
.remnawave-state.ok {
    border: 1px solid rgba(25, 210, 131, 0.22);
    color: #75e7b5;
    background: rgba(25, 210, 131, 0.10);
}

.remnawave-badge.bad,
.remnawave-state.bad,
.remnawave-issue.danger {
    border: 1px solid rgba(240, 82, 95, 0.24);
    color: #ff9aa2;
    background: rgba(240, 82, 95, 0.10);
}

.remnawave-badge.muted,
.remnawave-issue.muted {
    border: 1px solid rgba(147, 164, 190, 0.15);
    color: #aab8ca;
    background: rgba(147, 164, 190, 0.07);
}

.remnawave-issue.warning {
    border: 1px solid rgba(246, 183, 47, 0.24);
    color: #ffd27a;
    background: rgba(246, 183, 47, 0.10);
}

.remnawave-config dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.remnawave-config dl div {
    display: grid;
    grid-template-columns: minmax(130px, 0.5fr) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 38px;
    border-bottom: 1px solid rgba(124, 149, 184, 0.12);
    padding-bottom: 10px;
}

.remnawave-config dt {
    color: #9eafc6;
    font-size: 13px;
}

.remnawave-config dd {
    min-width: 0;
    margin: 0;
    color: #f7fbff;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.remnawave-alert,
.remnawave-status-line {
    border-radius: 9px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 700;
}

.remnawave-alert {
    margin-top: 14px;
    border: 1px solid rgba(240, 82, 95, 0.24);
    color: #ffb0b6;
    background: rgba(240, 82, 95, 0.10);
}

.remnawave-status-line {
    margin-bottom: 12px;
    border: 1px solid rgba(47, 124, 255, 0.18);
    color: #bcd2ff;
    background: rgba(47, 124, 255, 0.08);
}

.remnawave-status-line[hidden] {
    display: none;
}

.remnawave-status-line[data-tone="success"] {
    border-color: rgba(25, 210, 131, 0.22);
    color: #75e7b5;
    background: rgba(25, 210, 131, 0.10);
}

.remnawave-status-line[data-tone="error"] {
    border-color: rgba(240, 82, 95, 0.24);
    color: #ff9aa2;
    background: rgba(240, 82, 95, 0.10);
}

.remnawave-mini-table-wrap,
.remnawave-table-wrap {
    overflow: auto;
    border-radius: 10px;
}

.remnawave-mini-table,
.remnawave-table {
    width: 100%;
    border-collapse: collapse;
}

.remnawave-mini-table th,
.remnawave-mini-table td,
.remnawave-table th,
.remnawave-table td {
    border-bottom: 1px solid rgba(124, 149, 184, 0.13);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.remnawave-mini-table th,
.remnawave-table th {
    color: #b1bed2;
    font-size: 13px;
    font-weight: 700;
    background: rgba(13, 25, 44, 0.50);
}

.remnawave-mini-table td strong,
.remnawave-table td strong {
    display: block;
    color: #f7fbff;
}

.remnawave-mini-table td span,
.remnawave-table td span,
.remnawave-table td small {
    display: block;
    margin-top: 4px;
    color: #9eafc6;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.remnawave-compare-panel {
    padding: 0;
    overflow: hidden;
}

.remnawave-compare-panel > .remnawave-panel-head {
    margin: 0;
    padding: 18px;
}

.remnawave-compare-panel .remnawave-status-line {
    margin: 0 18px 14px;
}

.remnawave-table {
    min-width: 980px;
}

.remnawave-table tbody tr:hover td {
    background: rgba(47, 124, 255, 0.045);
}

.remnawave-table th:first-child,
.remnawave-table td:first-child {
    width: 44px;
    text-align: center;
}

.remnawave-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #31de9e;
}

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

@media (max-width: 760px) {
    .remnawave-head,
    .remnawave-panel-head {
        flex-direction: column;
        align-items: stretch;
    }

    .remnawave-actions,
    .remnawave-table-actions {
        justify-content: stretch;
    }

    .remnawave-actions .btn,
    .remnawave-table-actions .btn,
    .remnawave-table-actions .input {
        width: 100%;
    }

    .remnawave-kpis,
    .remnawave-grid,
    .remnawave-config dl div {
        grid-template-columns: 1fr;
    }
}

.admin-layout .server-config-backdrop {
    background: rgba(3, 8, 16, 0.72);
}

.admin-layout .server-config-modal,
.admin-support-shell,
.admin-support-list,
.admin-support-chat {
    border-color: var(--admin-stroke);
    background: linear-gradient(180deg, rgba(17, 31, 52, 0.92), rgba(10, 20, 36, 0.94));
}

@media (max-width: 1180px) {
    .admin-layout .layout-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-layout .app-sidebar {
        width: min(320px, 86vw);
    }

    .admin-layout .sidebar-toggle {
        display: flex;
    }

    .admin-users-table-page .admin-users-summary,
    .admin-layout .shop-metrics,
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-users-toolbar,
    .admin-user-create-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .admin-layout .layout-shell {
        width: 100%;
        max-width: 100vw;
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-layout .layout-topbar {
        min-height: auto;
        padding: 14px 14px;
    }

    .admin-layout .topbar-tools {
        display: none;
    }

    .admin-layout .layout-content {
        width: 100%;
        max-width: 100vw;
        min-width: 0;
        padding: 18px 12px 92px;
    }

    .admin-users-table-page .admin-users-summary,
    .admin-layout .shop-metrics,
    .kpi-grid,
    .admin-users-toolbar,
    .admin-user-create-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .admin-kpi-card {
        padding: 16px;
    }

    .admin-layout .mobile-dock {
        display: flex;
    }
}

/* Dashboard reference layout */
.admin-dashboard-v2 {
    position: relative;
    display: grid;
    gap: 18px;
    padding-top: 52px;
    min-width: 0;
}

.admin-dashboard-v2 > * {
    min-width: 0;
}

.dashboard-controls {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-controls .shop-select {
    min-width: 118px;
}

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(145px, 1fr));
    gap: 10px;
    min-width: 0;
}

.dashboard-kpi-card,
.dashboard-attention-card,
.dashboard-panel {
    border: 1px solid rgba(106, 133, 173, 0.18);
    border-radius: 10px;
    background:
        radial-gradient(260px 160px at 18% 0%, rgba(47, 124, 255, 0.07), transparent 70%),
        linear-gradient(180deg, rgba(14, 27, 47, 0.86), rgba(8, 18, 34, 0.90));
    box-shadow: 0 18px 42px rgba(2, 8, 18, 0.20);
}

.dashboard-kpi-card {
    min-height: 170px;
    display: grid;
    align-content: center;
    gap: 9px;
    padding: 22px 24px;
    min-width: 0;
}

.dashboard-kpi-card i,
.dashboard-attention-grid i {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-style: normal;
}

.dashboard-kpi-card i img,
.dashboard-attention-grid i img {
    width: 22px;
    height: 22px;
    filter: invert(91%) sepia(15%) saturate(675%) hue-rotate(178deg) brightness(101%) contrast(96%);
}

.dashboard-kpi-card.tone-blue i,
.dashboard-attention-grid i.tone-blue {
    background: rgba(47, 124, 255, 0.16);
}

.dashboard-kpi-card.tone-green i {
    background: rgba(25, 210, 131, 0.14);
}

.dashboard-kpi-card.tone-amber i,
.dashboard-attention-grid i.tone-amber {
    background: rgba(246, 183, 47, 0.16);
}

.dashboard-kpi-card.tone-red i,
.dashboard-attention-grid i.tone-red {
    background: rgba(240, 82, 95, 0.17);
}

.dashboard-kpi-card.tone-violet i {
    background: rgba(155, 92, 246, 0.16);
}

.dashboard-kpi-card strong {
    color: #f9fbff;
    font-size: 29px;
    line-height: 1;
}

.dashboard-kpi-card span {
    color: #aebbd0;
    font-size: 14px;
}

.dashboard-kpi-card small {
    color: #45e599;
    font-size: 13px;
    font-weight: 700;
}

.dashboard-kpi-card.tone-red small {
    color: #ff6f7b;
}

.dashboard-kpi-card.tone-blue:last-child small {
    color: #5d99ff;
}

.dashboard-attention-card,
.dashboard-panel {
    padding: 20px 24px;
}

.dashboard-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.dashboard-card-head h2 {
    margin: 0;
    color: #f9fbff;
    font-size: 18px;
}

.dashboard-card-head h2 span {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    border-radius: 7px;
    color: #07101e;
    background: #f6b72f;
    font-size: 16px;
}

.dashboard-card-head a,
.dashboard-panel-link {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(106, 133, 173, 0.18);
    border-radius: 8px;
    padding: 0 12px;
    color: #9fb6d7;
    font-size: 13px;
    background: rgba(8, 18, 34, 0.45);
}

.dashboard-panel-link {
    width: fit-content;
    margin-top: 14px;
    border: 0;
    padding: 0;
    color: #4b8dff;
    background: transparent;
}

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

.dashboard-attention-grid article {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    border-right: 1px solid rgba(106, 133, 173, 0.15);
}

.dashboard-attention-grid article:last-child {
    border-right: 0;
}

.dashboard-attention-grid div {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.dashboard-attention-grid strong {
    color: #f8fbff;
    font-size: 15px;
}

.dashboard-attention-grid span {
    color: #9aa9bf;
    font-size: 14px;
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
    grid-template-areas:
        "payments servers"
        "income income";
    gap: 18px;
    min-width: 0;
}

.dashboard-extra-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1fr) minmax(360px, 1.15fr);
    grid-template-areas:
        "users subscriptions notifications"
        "recent recent notifications"
        "sales quick quick";
    gap: 18px;
    min-width: 0;
}

.dashboard-main-grid > *,
.dashboard-extra-grid > *,
.dashboard-panel {
    min-width: 0;
}

.dashboard-users-panel {
    grid-area: users;
}

.dashboard-subscriptions-panel {
    grid-area: subscriptions;
}

.dashboard-recent-panel {
    grid-area: recent;
}

.dashboard-notifications-panel {
    grid-area: notifications;
}

.dashboard-sales-panel {
    grid-area: sales;
}

.dashboard-quick-panel {
    grid-area: quick;
}

.dashboard-payments-panel {
    grid-area: payments;
}

.dashboard-servers-panel {
    grid-area: servers;
}

.dashboard-income-panel {
    grid-area: income;
}

.dashboard-panel-number {
    display: block;
    margin: -4px 0 12px;
    color: #f9fbff;
    font-size: 30px;
    line-height: 1;
}

.dashboard-users-bars {
    height: 145px;
    min-height: 145px;
}

.dashboard-donut-row {
    min-height: 188px;
}

.dashboard-donut-row .donut {
    width: 142px;
    height: 142px;
}

.dashboard-recent-table-wrap {
    margin: 0 -8px -8px;
    overflow-x: auto;
}

.dashboard-recent-table {
    min-width: 760px;
}

.dashboard-recent-table th,
.dashboard-recent-table td {
    padding: 10px 12px;
}

.dashboard-notifications {
    max-height: 438px;
    overflow: auto;
    padding-right: 4px;
}

.dashboard-notifications .shop-note {
    border-color: rgba(106, 133, 173, 0.15);
    background: rgba(8, 18, 34, 0.48);
}

.dashboard-sales-panel {
    display: grid;
    align-content: start;
    gap: 12px;
}

.dashboard-sales-panel .dashboard-card-head {
    margin-bottom: 0;
}

.dashboard-sales-panel .dashboard-card-head span {
    color: #45e599;
    font-size: 13px;
    font-weight: 800;
}

.dashboard-sales-panel p {
    margin: 0;
    color: #9aa9bf;
    font-size: 13px;
}

.dashboard-sales-panel p.error {
    color: #ff7b87;
}

.dashboard-sales-panel .sales-control-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.dashboard-sales-panel .quick-action.active {
    border-color: rgba(25, 210, 131, 0.30);
    color: #4be69d;
    background: rgba(25, 210, 131, 0.10);
}

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

.dashboard-quick-actions .quick-action {
    min-height: 44px;
    justify-content: center;
    text-align: center;
}

.admin-dashboard-v2 .payment-list {
    display: grid;
    gap: 0;
}

.admin-dashboard-v2 .payment-item {
    grid-template-columns: 42px minmax(0, 1fr) auto auto;
    gap: 12px;
    min-height: 66px;
    border-bottom: 1px solid rgba(106, 133, 173, 0.13);
    border-radius: 0;
    padding: 9px 0;
    background: transparent;
}

.admin-dashboard-v2 .payment-item:last-child {
    border-bottom: 0;
}

.admin-dashboard-v2 .payment-item span strong,
.admin-dashboard-v2 .payment-item em {
    color: #f9fbff;
}

.payment-success {
    border: 1px solid rgba(25, 210, 131, 0.20);
    border-radius: 7px;
    padding: 5px 8px;
    color: #29d98e;
    background: rgba(25, 210, 131, 0.10);
    font-size: 12px;
}

.admin-dashboard-v2 .server-rank-list {
    display: grid;
    gap: 8px;
}

.admin-dashboard-v2 .server-rank {
    min-height: 68px;
    border: 1px solid rgba(106, 133, 173, 0.15);
    border-radius: 8px;
    padding: 12px 14px;
    background: rgba(8, 18, 34, 0.42);
}

.admin-dashboard-v2 .server-rank strong {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f9fbff;
}

.admin-dashboard-v2 .server-rank small {
    color: #91a7c4;
}

.admin-dashboard-v2 .server-rank i {
    background: rgba(91, 116, 154, 0.22);
}

.dashboard-income-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 24px;
    align-items: center;
}

.dashboard-income-chart {
    min-height: 285px;
}

.dashboard-income-chart svg {
    min-height: 285px;
}

.dashboard-income-total {
    display: grid;
    gap: 10px;
}

.dashboard-income-total strong {
    color: #f9fbff;
    font-size: 28px;
    line-height: 1;
}

.dashboard-income-total span {
    color: #9aa9bf;
}

.dashboard-income-total small {
    color: #45e599;
    font-weight: 700;
}

.admin-dashboard-v2 #incomeGrid line {
    stroke: rgba(155, 176, 207, 0.16);
    stroke-dasharray: 6 8;
}

.admin-dashboard-v2 #incomeLine {
    fill: none;
    stroke: #367dff;
    stroke-width: 3;
}

.admin-dashboard-v2 #incomeFill {
    fill: rgba(47, 124, 255, 0.20);
}

.admin-dashboard-v2 #incomePoints circle {
    fill: #4a8cff;
    stroke: #78a9ff;
    stroke-width: 2;
}

.admin-dashboard-v2 #incomeLabels text {
    fill: #91a7c4;
    font-size: 13px;
}

.admin-dashboard-v2 .shop-sync {
    margin: 0;
    color: #7f91ad;
}

/* Compact dashboard pass */
.admin-dashboard-v2 {
    gap: 12px;
    padding-top: 0;
}

.admin-dashboard-v2 .dashboard-controls {
    position: static;
    justify-self: end;
    margin-bottom: -4px;
}

.admin-dashboard-v2 .dashboard-controls .shop-select {
    min-width: 112px;
}

.admin-dashboard-v2 .dashboard-kpi-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.admin-dashboard-v2 .dashboard-kpi-card {
    min-height: 104px;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-content: center;
    align-items: center;
    column-gap: 14px;
    row-gap: 4px;
    padding: 14px 16px;
}

.admin-dashboard-v2 .dashboard-kpi-card i {
    grid-row: 1 / 4;
    width: 42px;
    height: 42px;
}

.admin-dashboard-v2 .dashboard-kpi-card i img {
    width: 19px;
    height: 19px;
}

.admin-dashboard-v2 .dashboard-kpi-card span {
    grid-column: 2;
    order: -1;
    color: #9dadc4;
    font-size: 12px;
    line-height: 1.25;
}

.admin-dashboard-v2 .dashboard-kpi-card strong {
    grid-column: 2;
    font-size: 24px;
}

.admin-dashboard-v2 .dashboard-kpi-card small {
    grid-column: 2;
    font-size: 12px;
}

.admin-dashboard-v2 .dashboard-attention-card,
.admin-dashboard-v2 .dashboard-panel {
    padding: 16px 18px;
}

.admin-dashboard-v2 .dashboard-card-head {
    margin-bottom: 12px;
}

.admin-dashboard-v2 .dashboard-card-head h2 {
    font-size: 15px;
}

.admin-dashboard-v2 .dashboard-card-head a,
.admin-dashboard-v2 .dashboard-panel-link {
    min-height: 28px;
    border-radius: 7px;
    padding: 0 10px;
    font-size: 12px;
}

.admin-dashboard-v2 .dashboard-attention-grid {
    gap: 12px;
}

.admin-dashboard-v2 .dashboard-attention-grid article {
    gap: 13px;
}

.admin-dashboard-v2 .dashboard-attention-grid i {
    width: 42px;
    height: 42px;
}

.admin-dashboard-v2 .dashboard-attention-grid strong {
    font-size: 13px;
}

.admin-dashboard-v2 .dashboard-attention-grid span {
    font-size: 12px;
}

.admin-dashboard-v2 .dashboard-main-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "payments servers";
    gap: 12px;
}

.admin-dashboard-v2 .dashboard-extra-grid {
    grid-template-columns: minmax(380px, 1.65fr) minmax(180px, 0.72fr) minmax(240px, 0.88fr) minmax(280px, 1fr);
    grid-template-areas: "income users subscriptions notifications";
    gap: 12px;
}

.admin-dashboard-v2 .dashboard-income-panel {
    grid-area: income;
}

.admin-dashboard-v2 .dashboard-recent-panel,
.admin-dashboard-v2 .dashboard-sales-panel,
.admin-dashboard-v2 .dashboard-quick-panel {
    display: none;
}

.admin-dashboard-v2 .payment-list {
    gap: 0;
}

.admin-dashboard-v2 .dashboard-payment-list article {
    min-height: 44px;
    padding: 7px 0;
}

.admin-dashboard-v2 .dashboard-payment-list article + article {
    border-top: 1px solid rgba(106, 133, 173, 0.11);
}

.admin-dashboard-v2 .payment-avatar {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

.admin-dashboard-v2 .payment-list strong,
.admin-dashboard-v2 .server-rank strong {
    font-size: 13px;
}

.admin-dashboard-v2 .payment-list small,
.admin-dashboard-v2 .server-rank small {
    font-size: 11px;
}

.admin-dashboard-v2 .payment-list em {
    font-size: 13px;
}

.admin-dashboard-v2 .payment-success {
    min-height: 24px;
    padding: 0 9px;
    font-size: 11px;
}

.admin-dashboard-v2 .server-rank-list {
    gap: 0;
}

.admin-dashboard-v2 .server-rank {
    min-height: 44px;
    border: 0;
    border-radius: 0;
    padding: 7px 0;
    background: transparent;
}

.admin-dashboard-v2 .server-rank + .server-rank {
    border-top: 1px solid rgba(106, 133, 173, 0.11);
}

.admin-dashboard-v2 .server-rank-flag {
    width: 22px;
    height: 16px;
}

.admin-dashboard-v2 .dashboard-income-layout {
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 12px;
}

.admin-dashboard-v2 .dashboard-income-chart {
    min-height: 190px;
}

.admin-dashboard-v2 .dashboard-income-chart svg {
    height: 208px;
}

.admin-dashboard-v2 .dashboard-income-total strong {
    font-size: 20px;
}

.admin-dashboard-v2 .dashboard-panel-number {
    margin: -2px 0 8px;
    font-size: 24px;
}

.admin-dashboard-v2 .dashboard-users-bars {
    height: 126px;
    min-height: 126px;
}

.admin-dashboard-v2 .dashboard-donut-row {
    min-height: 156px;
    gap: 12px;
}

.admin-dashboard-v2 .dashboard-donut-row .donut {
    width: 116px;
    height: 116px;
}

.admin-dashboard-v2 .donut span strong {
    font-size: 20px;
}

.admin-dashboard-v2 .donut-legend {
    gap: 8px;
    font-size: 11px;
}

.admin-dashboard-v2 .dashboard-notifications {
    max-height: 202px;
}

.admin-dashboard-v2 .dashboard-notifications .shop-note {
    padding: 10px 11px;
}

.admin-dashboard-v2 .dashboard-notifications .shop-note p {
    font-size: 11px;
    line-height: 1.35;
}

.dashboard-hidden-data {
    display: none !important;
}

@media (max-width: 1280px) {
    .admin-dashboard-v2 .dashboard-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-dashboard-v2 .dashboard-extra-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "income income"
            "users subscriptions"
            "notifications notifications";
    }
}

@media (max-width: 900px) {
    .admin-dashboard-v2 {
        padding-top: 0;
    }

    .dashboard-controls {
        position: static;
        justify-content: flex-end;
    }

    .admin-dashboard-v2 .dashboard-attention-grid,
    .admin-dashboard-v2 .dashboard-main-grid,
    .admin-dashboard-v2 .dashboard-income-layout,
    .admin-dashboard-v2 .dashboard-extra-grid {
        grid-template-columns: 1fr;
        grid-template-areas: none;
    }

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

    .admin-dashboard-v2 .dashboard-kpi-card {
        min-height: 104px;
        grid-template-columns: 40px minmax(0, 1fr);
        padding: 13px;
    }

    .admin-dashboard-v2 .dashboard-kpi-card i {
        width: 38px;
        height: 38px;
    }

    .admin-dashboard-v2 .dashboard-kpi-card strong {
        font-size: 22px;
    }

    .dashboard-payments-panel,
    .dashboard-servers-panel,
    .dashboard-income-panel,
    .dashboard-users-panel,
    .dashboard-subscriptions-panel,
    .dashboard-recent-panel,
    .dashboard-notifications-panel,
    .dashboard-sales-panel,
    .dashboard-quick-panel {
        grid-area: auto;
    }

    .admin-dashboard-v2 .dashboard-income-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-quick-actions {
        grid-template-columns: 1fr;
    }

    .dashboard-attention-grid article {
        border-right: 0;
        border-bottom: 1px solid rgba(106, 133, 173, 0.13);
        padding-bottom: 14px;
    }

    .dashboard-attention-grid article:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }
}

/* Dashboard final layout reset */
.admin-dashboard-v2 {
    width: 100%;
    max-width: 100%;
    gap: 14px;
    padding-top: 0;
}

.admin-dashboard-v2 .dashboard-controls {
    position: static;
    justify-self: end;
    display: flex;
    gap: 10px;
    margin: 0 0 4px;
}

.admin-dashboard-v2 .dashboard-kpi-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, minmax(150px, 1fr));
    gap: 12px;
}

.admin-dashboard-v2 .dashboard-kpi-card {
    min-height: 108px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-content: center;
    align-items: center;
    gap: 4px 14px;
    padding: 16px;
}

.admin-dashboard-v2 .dashboard-kpi-card i {
    grid-row: 1 / 4;
    width: 44px;
    height: 44px;
}

.admin-dashboard-v2 .dashboard-kpi-card strong {
    grid-column: 2;
    font-size: 24px;
}

.admin-dashboard-v2 .dashboard-kpi-card span,
.admin-dashboard-v2 .dashboard-kpi-card small {
    grid-column: 2;
    font-size: 12px;
    line-height: 1.25;
}

.admin-dashboard-v2 .dashboard-attention-card,
.admin-dashboard-v2 .dashboard-panel {
    padding: 16px 18px;
}

.admin-dashboard-v2 .dashboard-card-head {
    min-height: 30px;
    margin-bottom: 12px;
}

.admin-dashboard-v2 .dashboard-card-head h2 {
    font-size: 16px;
}

.admin-dashboard-v2 .dashboard-main-grid {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "payments servers";
    gap: 14px;
}

.admin-dashboard-v2 .dashboard-payments-panel {
    grid-area: payments;
}

.admin-dashboard-v2 .dashboard-servers-panel {
    grid-area: servers;
}

.admin-dashboard-v2 .dashboard-extra-grid {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(420px, 1.55fr) minmax(190px, 0.7fr) minmax(270px, 0.95fr) minmax(290px, 1fr);
    grid-template-areas: "income users subscriptions notifications";
    gap: 14px;
}

.admin-dashboard-v2 .dashboard-income-panel {
    grid-area: income;
}

.admin-dashboard-v2 .dashboard-users-panel {
    grid-area: users;
}

.admin-dashboard-v2 .dashboard-subscriptions-panel {
    grid-area: subscriptions;
}

.admin-dashboard-v2 .dashboard-notifications-panel {
    grid-area: notifications;
}

.admin-dashboard-v2 .dashboard-recent-panel,
.admin-dashboard-v2 .dashboard-sales-panel,
.admin-dashboard-v2 .dashboard-quick-panel {
    display: none !important;
}

.admin-dashboard-v2 .payment-list,
.admin-dashboard-v2 .server-rank-list {
    display: grid;
    gap: 0;
}

.admin-dashboard-v2 .payment-item {
    min-height: 48px;
    grid-template-columns: 32px minmax(0, 1fr) auto auto;
    gap: 10px;
    padding: 7px 0;
}

.admin-dashboard-v2 .payment-item .avatar {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

.admin-dashboard-v2 .payment-item strong,
.admin-dashboard-v2 .payment-item em,
.admin-dashboard-v2 .server-rank strong {
    font-size: 13px;
}

.admin-dashboard-v2 .payment-item small,
.admin-dashboard-v2 .server-rank small {
    font-size: 11px;
}

.admin-dashboard-v2 .payment-success {
    min-height: 24px;
    padding: 0 9px;
    font-size: 11px;
}

.admin-dashboard-v2 .server-rank {
    min-height: 50px;
    grid-template-columns: minmax(0, 1fr) 42px;
    border: 0;
    border-radius: 0;
    padding: 8px 0;
    background: transparent;
}

.admin-dashboard-v2 .server-rank + .server-rank,
.admin-dashboard-v2 .payment-item + .payment-item {
    border-top: 1px solid rgba(106, 133, 173, 0.12);
}

.admin-dashboard-v2 .server-rank-flag {
    width: 22px;
    height: 16px;
}

.admin-dashboard-v2 .server-rank i {
    height: 5px;
}

.admin-dashboard-v2 .dashboard-income-layout {
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 14px;
}

.admin-dashboard-v2 .dashboard-income-chart {
    min-height: 205px;
}

.admin-dashboard-v2 .dashboard-income-chart svg {
    min-height: 205px;
    height: 220px;
}

.admin-dashboard-v2 .dashboard-users-bars {
    height: 132px;
    min-height: 132px;
}

.admin-dashboard-v2 .dashboard-donut-row {
    min-height: 150px;
    gap: 12px;
}

.admin-dashboard-v2 .dashboard-donut-row .donut {
    width: 112px;
    height: 112px;
}

.admin-dashboard-v2 .dashboard-notifications {
    max-height: 218px;
}

.admin-dashboard-v2 .shop-sync {
    font-size: 12px;
}

@media (max-width: 1480px) {
    .admin-dashboard-v2 .dashboard-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-dashboard-v2 .dashboard-extra-grid {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 0.65fr);
        grid-template-areas:
            "income users"
            "subscriptions notifications";
    }
}

@media (max-width: 980px) {
    .admin-dashboard-v2 .dashboard-main-grid,
    .admin-dashboard-v2 .dashboard-extra-grid,
    .admin-dashboard-v2 .dashboard-income-layout {
        grid-template-columns: 1fr;
        grid-template-areas: none;
    }

    .admin-dashboard-v2 .dashboard-payments-panel,
    .admin-dashboard-v2 .dashboard-servers-panel,
    .admin-dashboard-v2 .dashboard-income-panel,
    .admin-dashboard-v2 .dashboard-users-panel,
    .admin-dashboard-v2 .dashboard-subscriptions-panel,
    .admin-dashboard-v2 .dashboard-notifications-panel {
        grid-area: auto;
    }
}

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

    .admin-dashboard-v2 .dashboard-kpi-card {
        min-height: 104px;
        grid-template-columns: 38px minmax(0, 1fr);
        padding: 13px;
    }

    .admin-dashboard-v2 .dashboard-kpi-card i {
        width: 36px;
        height: 36px;
    }

    .admin-dashboard-v2 .dashboard-kpi-card strong {
        font-size: 21px;
    }
}

/* Clean dashboard v3 */
.admin-dashboard-v3 {
    display: grid;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.admin-dashboard-v3 > * {
    min-width: 0;
}

.dashx-controls {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashx-controls .shop-select {
    min-width: 118px;
}

.dashx-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(145px, 1fr));
    gap: 12px;
}

.dashx-kpi,
.dashx-alert,
.dashx-card {
    border: 1px solid rgba(106, 133, 173, 0.18);
    border-radius: 10px;
    background:
        radial-gradient(260px 160px at 18% 0%, rgba(47, 124, 255, 0.07), transparent 70%),
        linear-gradient(180deg, rgba(14, 27, 47, 0.86), rgba(8, 18, 34, 0.90));
    box-shadow: 0 18px 42px rgba(2, 8, 18, 0.18);
}

.dashx-kpi {
    min-height: 104px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-content: center;
    align-items: center;
    gap: 4px 14px;
    padding: 14px 16px;
}

.dashx-kpi i,
.dashx-alert-grid i {
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-style: normal;
}

.dashx-kpi i {
    grid-row: 1 / 4;
    width: 42px;
    height: 42px;
}

.dashx-alert-grid i {
    width: 40px;
    height: 40px;
}

.dashx-kpi i img,
.dashx-alert-grid i img {
    width: 19px;
    height: 19px;
    filter: invert(91%) sepia(15%) saturate(675%) hue-rotate(178deg) brightness(101%) contrast(96%);
}

.dashx-kpi.tone-blue i,
.dashx-alert-grid i.tone-blue {
    background: rgba(47, 124, 255, 0.16);
}

.dashx-kpi.tone-green i {
    background: rgba(25, 210, 131, 0.14);
}

.dashx-kpi.tone-amber i,
.dashx-alert-grid i.tone-amber {
    background: rgba(246, 183, 47, 0.16);
}

.dashx-kpi.tone-red i,
.dashx-alert-grid i.tone-red {
    background: rgba(240, 82, 95, 0.17);
}

.dashx-kpi.tone-violet i {
    background: rgba(155, 92, 246, 0.16);
}

.dashx-kpi span,
.dashx-kpi strong,
.dashx-kpi small {
    grid-column: 2;
}

.dashx-kpi span {
    color: #9dadc4;
    font-size: 12px;
    line-height: 1.25;
}

.dashx-kpi strong {
    color: #f9fbff;
    font-size: 24px;
    line-height: 1;
}

.dashx-kpi small {
    color: #45e599;
    font-size: 12px;
    font-weight: 800;
}

.dashx-kpi.tone-red small {
    color: #ff6f7b;
}

.dashx-alert,
.dashx-card {
    padding: 16px 18px;
}

.dashx-head {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.dashx-head h2 {
    margin: 0;
    color: #f9fbff;
    font-size: 16px;
    line-height: 1.25;
}

.dashx-head h2 b {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    border-radius: 7px;
    color: #07101e;
    background: #f6b72f;
    font-size: 15px;
}

.dashx-head a,
.dashx-head span,
.dashx-link {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(106, 133, 173, 0.18);
    border-radius: 8px;
    padding: 0 10px;
    color: #9fb6d7;
    font-size: 12px;
    background: rgba(8, 18, 34, 0.45);
}

.dashx-link {
    width: fit-content;
    margin-top: 12px;
    border: 0;
    padding: 0;
    color: #4b8dff;
    background: transparent;
}

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

.dashx-alert-grid article {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
    border-right: 1px solid rgba(106, 133, 173, 0.15);
}

.dashx-alert-grid article:last-child {
    border-right: 0;
}

.dashx-alert-grid div {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.dashx-alert-grid strong {
    color: #f8fbff;
    font-size: 13px;
}

.dashx-alert-grid span {
    color: #9aa9bf;
    font-size: 12px;
}

.dashx-main {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-areas:
        "payments payments payments payments payments payments servers servers servers servers servers servers"
        "income income income income users users subs subs subs notes notes notes";
    gap: 14px;
}

.dashx-payments { grid-area: payments; }
.dashx-servers { grid-area: servers; }
.dashx-income { grid-area: income; }
.dashx-users { grid-area: users; }
.dashx-subs { grid-area: subs; }
.dashx-notes { grid-area: notes; }

.dashx-card {
    min-width: 0;
    overflow: hidden;
}

.admin-dashboard-v3 .payment-list,
.admin-dashboard-v3 .server-rank-list {
    display: grid;
    gap: 0;
}

.admin-dashboard-v3 .payment-item {
    min-height: 48px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    border-bottom: 0;
    padding: 7px 0;
}

.admin-dashboard-v3 .payment-item + .payment-item,
.admin-dashboard-v3 .server-rank + .server-rank {
    border-top: 1px solid rgba(106, 133, 173, 0.12);
}

.admin-dashboard-v3 .payment-item .avatar {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

.admin-dashboard-v3 .payment-item strong,
.admin-dashboard-v3 .payment-item em,
.admin-dashboard-v3 .server-rank strong {
    color: #f9fbff;
    font-size: 13px;
}

.admin-dashboard-v3 .payment-item small,
.admin-dashboard-v3 .server-rank small {
    color: #91a7c4;
    font-size: 11px;
}

.admin-dashboard-v3 .payment-success {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(25, 210, 131, 0.20);
    border-radius: 7px;
    padding: 0 9px;
    color: #29d98e;
    background: rgba(25, 210, 131, 0.10);
    font-size: 11px;
}

.admin-dashboard-v3 .server-rank {
    min-height: 50px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 0;
    padding: 8px 0;
    background: transparent;
}

.admin-dashboard-v3 .server-rank-flag {
    width: 22px;
    height: 16px;
}

.admin-dashboard-v3 .server-rank i {
    grid-column: 1 / -1;
    height: 5px;
    border-radius: 999px;
    background: rgba(91, 116, 154, 0.22);
}

.admin-dashboard-v3 .server-rank b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #34d399;
}

.dashx-income-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 14px;
    align-items: center;
}

.dashx-chart {
    min-height: 205px;
}

.dashx-chart svg {
    min-height: 205px;
    height: 220px;
}

.dashx-income-total {
    display: grid;
    gap: 8px;
}

.dashx-income-total strong,
.dashx-number {
    color: #f9fbff;
    font-size: 24px;
    line-height: 1;
}

.dashx-income-total span {
    color: #9aa9bf;
    font-size: 13px;
}

.dashx-income-total small {
    color: #45e599;
    font-size: 12px;
    font-weight: 800;
}

.dashx-number {
    display: block;
    margin: -2px 0 8px;
}

.dashx-bars {
    height: 132px;
    min-height: 132px;
}

.dashx-donut-row {
    min-height: 150px;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: start;
    gap: 10px;
}

.dashx-donut-row .donut {
    width: 96px;
    height: 96px;
}

.admin-dashboard-v3 .donut-legend {
    width: 100%;
    min-width: 0;
    gap: 6px;
    font-size: 10px;
}

.admin-dashboard-v3 .donut-legend span {
    min-width: 0;
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    gap: 6px;
    align-items: center;
}

.admin-dashboard-v3 .donut-legend b {
    font-size: 10px;
}

.admin-dashboard-v3 .donut span strong {
    font-size: 18px;
}

.admin-dashboard-v3 .donut span small {
    font-size: 10px;
}

.admin-dashboard-v3 .shop-notifications {
    max-height: 218px;
    overflow: auto;
    padding-right: 4px;
}

.admin-dashboard-v3 .shop-note {
    padding: 10px 11px;
    border-color: rgba(106, 133, 173, 0.15);
    background: rgba(8, 18, 34, 0.48);
}

.admin-dashboard-v3 .shop-note p {
    font-size: 11px;
    line-height: 1.35;
}

.admin-dashboard-v3 .shop-sync {
    margin: 0;
    color: #7f91ad;
    font-size: 12px;
}

.admin-dashboard-v3 #incomeGrid line {
    stroke: rgba(155, 176, 207, 0.16);
    stroke-dasharray: 6 8;
}

.admin-dashboard-v3 #incomeLine {
    fill: none;
    stroke: #367dff;
    stroke-width: 3;
}

.admin-dashboard-v3 #incomeFill {
    fill: rgba(47, 124, 255, 0.20);
}

.admin-dashboard-v3 #incomePoints circle {
    fill: #4a8cff;
    stroke: #78a9ff;
    stroke-width: 2;
}

.admin-dashboard-v3 #incomeLabels text {
    fill: #91a7c4;
    font-size: 13px;
}

@media (max-width: 1500px) {
    .dashx-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashx-main {
        grid-template-areas:
            "payments payments payments payments payments payments servers servers servers servers servers servers"
            "income income income income income income users users users subs subs subs"
            "notes notes notes notes notes notes notes notes notes notes notes notes";
    }
}

@media (max-width: 1320px) {
    .dashx-main {
        grid-template-areas:
            "payments payments payments payments payments payments servers servers servers servers servers servers"
            "income income income income income income income users users users users users"
            "subs subs subs subs subs notes notes notes notes notes notes notes";
    }
}

@media (max-width: 980px) {
    .dashx-main {
        grid-template-columns: 1fr;
        grid-template-areas: none;
    }

    .dashx-card {
        grid-area: auto;
    }

    .dashx-alert-grid,
    .dashx-income-layout {
        grid-template-columns: 1fr;
    }

    .dashx-alert-grid article {
        border-right: 0;
        border-bottom: 1px solid rgba(106, 133, 173, 0.13);
        padding-bottom: 12px;
    }

    .dashx-alert-grid article:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }
}

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

    .dashx-kpi {
        grid-template-columns: 38px minmax(0, 1fr);
        padding: 13px;
    }

    .dashx-kpi i {
        width: 36px;
        height: 36px;
    }

    .dashx-kpi strong {
        font-size: 21px;
    }
}

/* Servers page reference layout */
.servers-admin-v2 {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.servers-admin-v2 > *,
.servers-v2-hero,
.servers-v2-kpis,
.servers-v2-kpi,
.servers-v2-board,
.servers-v2-toolbar {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.servers-v2-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

.servers-v2-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 10px;
}

.servers-v2-kpi,
.servers-v2-board {
    border: 1px solid rgba(106, 133, 173, 0.18);
    border-radius: 10px;
    background:
        radial-gradient(250px 140px at 18% 0%, rgba(47, 124, 255, 0.07), transparent 70%),
        linear-gradient(180deg, rgba(14, 27, 47, 0.86), rgba(8, 18, 34, 0.90));
    box-shadow: 0 18px 42px rgba(2, 8, 18, 0.18);
}

.servers-v2-kpi {
    min-width: 0;
    min-height: 90px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    align-items: center;
    gap: 4px 14px;
    padding: 14px 16px;
}

.servers-v2-kpi i {
    grid-row: 1 / 3;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-style: normal;
    font-size: 20px;
    color: #5ca1ff;
    background: rgba(47, 124, 255, 0.15);
}

.servers-v2-kpi.tone-amber i {
    color: #ffc557;
    background: rgba(246, 183, 47, 0.14);
}

.servers-v2-kpi.tone-red i {
    color: #ff6877;
    background: rgba(240, 82, 95, 0.15);
}

.servers-v2-kpi.tone-green i {
    color: #39e7a0;
    background: rgba(25, 210, 131, 0.14);
}

.servers-v2-kpi span {
    color: #aebbd0;
    font-size: 13px;
}

.servers-v2-kpi strong {
    color: #f9fbff;
    font-size: 27px;
    line-height: 1;
}

.servers-v2-add {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    padding: 0 20px;
    color: #fff;
    background: linear-gradient(180deg, #2f7cff, #1d67f2);
    box-shadow: 0 14px 32px rgba(47, 124, 255, 0.26);
    font-weight: 800;
    cursor: pointer;
}

.servers-v2-board {
    min-width: 0;
    padding: 18px 20px;
}

.servers-v2-toolbar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(140px, auto) minmax(140px, auto) minmax(140px, auto) auto auto;
    gap: 10px;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(106, 133, 173, 0.13);
}

.servers-v2-search {
    position: relative;
    min-width: 0;
}

.servers-v2-search input {
    width: 100%;
    min-height: 42px;
    padding-right: 42px;
}

.servers-v2-search span {
    position: absolute;
    right: 14px;
    top: 50%;
    color: #9fb6d7;
    transform: translateY(-50%);
}

.servers-v2-select,
.servers-v2-ghost {
    min-height: 42px;
    border: 1px solid rgba(106, 133, 173, 0.20);
    border-radius: 9px;
    padding: 0 14px;
    color: #f4f7fb;
    background: rgba(8, 18, 34, 0.58);
}

.servers-v2-ghost {
    cursor: pointer;
}

.servers-v2-refresh {
    color: #79b3ff;
}

.servers-v2-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 0;
}

.servers-v2-tabs button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(106, 133, 173, 0.20);
    border-radius: 999px;
    padding: 0 16px;
    color: #b8c7dc;
    background: rgba(8, 18, 34, 0.48);
    cursor: pointer;
}

.servers-v2-tabs button.active {
    border-color: rgba(47, 124, 255, 0.32);
    color: #f9fbff;
    background: rgba(47, 124, 255, 0.20);
}

.servers-v2-tabs b {
    min-width: 22px;
    min-height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #69a6ff;
    background: rgba(47, 124, 255, 0.18);
    font-size: 12px;
}

.servers-v2-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
}

.servers-v2-table {
    width: 100%;
    min-width: 1040px;
    border-collapse: collapse;
}

.servers-v2-table th,
.servers-v2-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(106, 133, 173, 0.12);
    text-align: left;
    vertical-align: middle;
}

.servers-v2-table th {
    color: #9fb1cc;
    font-size: 13px;
    font-weight: 700;
    background: rgba(13, 25, 44, 0.62);
}

.servers-v2-table tr:hover td {
    background: rgba(47, 124, 255, 0.035);
}

.servers-admin-v2 .server-location-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.servers-admin-v2 .server-flag {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border: 0;
    background: transparent;
}

.servers-admin-v2 .server-flag-img {
    width: 26px;
    height: 20px;
    border-radius: 50%;
}

.servers-admin-v2 .server-location-main strong {
    color: #f9fbff;
    font-size: 14px;
}

.servers-admin-v2 .server-location-main span {
    color: #8ea3bf;
    font-size: 12px;
}

.servers-admin-v2 .server-link {
    min-height: 30px;
    border-color: rgba(47, 124, 255, 0.32);
    border-radius: 999px;
    padding: 0 12px;
    color: #5ca1ff;
    background: rgba(47, 124, 255, 0.10);
    font-size: 13px;
}

.sales-pause-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(100% - 32px, 1120px);
    margin: 18px auto;
    padding: 12px 16px;
    border: 1px solid rgba(255, 198, 92, 0.3);
    border-radius: 14px;
    color: #ffe7ad;
    background: linear-gradient(135deg, rgba(74, 54, 20, 0.84), rgba(20, 29, 51, 0.94));
    box-shadow: 0 12px 30px rgba(3, 8, 20, 0.2);
}

.sales-pause-banner-icon {
    display: grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(255, 210, 116, 0.32);
    border-radius: 10px;
    color: #ffd476;
    background: rgba(255, 210, 116, 0.12);
    font-size: 14px;
    font-weight: 900;
}

.sales-pause-banner strong,
.sales-pause-banner span {
    display: block;
}

.sales-pause-banner strong {
    color: #fff0c9;
    font-size: 14px;
    line-height: 1.25;
}

.sales-pause-banner div > span {
    margin-top: 2px;
    color: rgba(255, 231, 173, 0.72);
    font-size: 12px;
    line-height: 1.4;
}

.user-hub-purchase .sales-pause-banner {
    width: auto;
    margin: 0 0 18px;
}

.aether-pricing-cta.is-disabled,
.aether-pricing-cta:disabled {
    opacity: 0.62;
    cursor: not-allowed;
    pointer-events: none;
}

.servers-admin-v2 .server-empty-value {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    color: #7f93ae;
    font-size: 12px;
    font-weight: 700;
}

.servers-admin-v2 .deadline-pill,
.servers-admin-v2 .server-status-pill {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 800;
}

.servers-admin-v2 .deadline-pill.ok,
.servers-admin-v2 .deadline-pill.soon {
    color: #ff6877;
    background: rgba(240, 82, 95, 0.14);
}

.servers-admin-v2 .deadline-pill.none {
    color: #91a7c4;
    background: rgba(91, 116, 154, 0.14);
}

.servers-admin-v2 .deadline-pill.expired,
.servers-admin-v2 .deadline-pill.today,
.servers-admin-v2 .deadline-pill.warning {
    color: #ff6877;
    background: rgba(240, 82, 95, 0.16);
}

.servers-admin-v2 .server-status-pill {
    color: #34df95;
    background: rgba(25, 210, 131, 0.12);
}

.servers-admin-v2 .server-status-pill.expired {
    color: #ff6877;
    background: rgba(240, 82, 95, 0.14);
}

.servers-admin-v2 .server-status-pill.nodate {
    color: #9fb1cc;
    background: rgba(91, 116, 154, 0.16);
}

.server-status-stack {
    display: grid;
    justify-items: start;
    gap: 5px;
}

.server-subscription-pill {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    border-radius: 999px;
    padding: 0 9px;
    color: #8fa3bd;
    background: rgba(91, 116, 154, 0.13);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.server-subscription-pill.enabled {
    color: #73e7b1;
    background: rgba(25, 210, 131, 0.11);
}

.server-subscription-pill.disabled {
    color: #ffd07c;
    background: rgba(242, 176, 64, 0.13);
}

.server-subscription-card {
    position: relative;
}

.server-subscription-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.server-subscription-card-head > span {
    min-width: 0;
}

.server-subscription-card > strong {
    color: #d9f7ff;
}

.server-subscription-card > small {
    max-width: 24ch;
    line-height: 1.35;
}

.server-node-switch {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 44px;
    height: 26px;
    display: block;
}

.server-node-switch input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    min-height: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.server-node-switch i {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(147, 163, 184, 0.24);
    border-radius: 999px;
    background: #293647;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22);
    transition: background 180ms ease, border-color 180ms ease;
}

.server-node-switch i::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f6fbff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.34);
    transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.server-node-switch input:checked + i {
    border-color: #31d293;
    background: #31d293;
}

.server-node-switch input:checked + i::after {
    transform: translateX(18px);
}

.server-node-switch input:focus-visible + i {
    box-shadow: 0 0 0 3px rgba(53, 211, 154, 0.2);
}

.server-node-switch input:disabled {
    cursor: wait;
}

.server-node-switch input:disabled + i {
    cursor: wait;
    opacity: 0.58;
}

.servers-v2-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.servers-v2-renew-actions {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px;
    border: 1px solid rgba(25, 210, 131, 0.16);
    border-radius: 10px;
    background: rgba(25, 210, 131, 0.06);
}

.servers-v2-renew-btn {
    min-width: 48px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid rgba(25, 210, 131, 0.26);
    border-radius: 8px;
    color: #d9fff0;
    background: rgba(25, 210, 131, 0.12);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.servers-v2-renew-btn:hover {
    border-color: rgba(25, 210, 131, 0.5);
    background: rgba(25, 210, 131, 0.2);
}

.servers-v2-icon {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(106, 133, 173, 0.18);
    border-radius: 9px;
    color: #c9d8ee;
    background: rgba(8, 18, 34, 0.56);
    cursor: pointer;
}

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

.server-renew-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.server-renew-summary div {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(106, 133, 173, 0.18);
    border-radius: 10px;
    background: rgba(8, 18, 34, 0.52);
}

.server-renew-summary span {
    display: block;
    color: #91a7c4;
    font-size: 11px;
    font-weight: 700;
}

.server-renew-summary strong {
    display: block;
    margin-top: 7px;
    color: #f4f7fb;
    font-size: 14px;
    line-height: 1.25;
}

.server-renew-note {
    margin: 14px 0 0;
    color: #a7b7ce;
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 760px) {
    .server-renew-summary {
        grid-template-columns: 1fr;
    }

    .servers-v2-actions {
        flex-wrap: wrap;
    }
}

.servers-v2-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 16px;
    color: #91a7c4;
    font-size: 13px;
}

.servers-v2-pages {
    display: flex;
    gap: 8px;
}

.servers-v2-pages button {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(106, 133, 173, 0.18);
    border-radius: 9px;
    color: #9fb6d7;
    background: rgba(8, 18, 34, 0.48);
}

.servers-v2-pages button.active {
    color: #fff;
    background: #2f7cff;
}

@media (max-width: 1300px) {
    .servers-v2-hero {
        grid-template-columns: 1fr;
    }

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

    .servers-v2-add {
        justify-self: start;
    }

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

@media (max-width: 760px) {
    .servers-v2-kpis,
    .servers-v2-toolbar {
        grid-template-columns: 1fr;
    }

    .servers-v2-board {
        padding: 14px;
    }
}

.aether-pricing {
    max-width: 1120px;
    margin: 84px auto 0;
    padding: 0 22px;
    scroll-margin-top: 96px;
}

.aether-pricing h2 {
    margin: 12px 0;
    text-align: center;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.08;
}

.aether-pricing-lead {
    max-width: 540px;
    margin: 0 auto 34px;
    color: #aaa6c3;
    text-align: center;
    line-height: 1.7;
}

.aether-pricing-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    max-width: 1020px;
    margin: 0 auto 38px;
}

.aether-pricing-benefits article {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 5px;
    align-items: start;
    min-height: 58px;
}

.aether-pricing-benefits i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(192, 62, 255, 0.62);
    border-radius: 12px;
    color: #b35dff;
    background: rgba(120, 52, 224, 0.16);
    box-shadow: 0 0 22px rgba(181, 66, 255, 0.14);
    font-style: normal;
}

.aether-pricing-benefits i {
    grid-row: 1 / span 2;
    align-self: center;
}

.aether-pricing-benefits i img {
    width: 20px;
    height: 20px;
    display: block;
    filter: invert(62%) sepia(89%) saturate(2801%) hue-rotate(231deg) brightness(101%) contrast(101%);
}

.aether-pricing-benefits strong {
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
    align-self: end;
}

.aether-pricing-benefits span {
    grid-column: 2;
    color: #aaa6c3;
    font-size: 13px;
    line-height: 1.35;
    align-self: start;
}

.aether-tier-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

.aether-tier-switch button {
    appearance: none;
    border: 0;
    color: #d9d6f2;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.aether-tier-switch button {
    min-height: 76px;
    padding: 15px 22px;
    border: 1px solid rgba(126, 111, 194, 0.24);
    border-radius: 22px;
    background: rgba(7, 8, 31, 0.72);
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}

.aether-tier-switch button:hover {
    color: #fff;
    border-color: rgba(211, 55, 255, 0.58);
    background: rgba(17, 14, 52, 0.9);
    box-shadow: 0 14px 34px rgba(93, 51, 194, 0.18);
    transform: translateY(-2px);
}

.aether-tier-switch button.active {
    color: #fff;
    background: radial-gradient(circle at 18% 50%, rgba(210, 55, 255, 0.22), transparent 36%), linear-gradient(180deg, rgba(52, 26, 96, 0.86), rgba(18, 12, 54, 0.86));
    border-color: rgba(211, 55, 255, 0.92);
    box-shadow: 0 0 34px rgba(199, 44, 255, 0.18);
}

.aether-tier-switch button.active:hover {
    border-color: rgba(226, 88, 255, 1);
    box-shadow: 0 18px 42px rgba(199, 44, 255, 0.26);
}

.aether-tier-switch strong,
.aether-tier-switch span {
    display: block;
}

.aether-tier-switch strong {
    font-size: 18px;
    letter-spacing: 0.02em;
}

.aether-tier-switch span {
    margin-top: 8px;
    color: #aaa6c3;
    font-size: 14px;
    font-weight: 700;
}

.aether-period-picker {
    margin: 34px 0 26px;
}

.aether-month-card {
    padding: 30px 42px 48px;
    border: 1px solid rgba(126, 111, 194, 0.22);
    border-radius: 14px;
    color: #fff;
    background:
        radial-gradient(circle at 100% 0%, rgba(176, 53, 255, 0.1), transparent 34%),
        linear-gradient(180deg, rgba(16, 14, 55, 0.92), rgba(9, 9, 32, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 60px rgba(0, 0, 0, 0.2);
}

.aether-month-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.aether-month-head h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 18px;
    line-height: 1.15;
}

.aether-month-head p {
    margin: 0;
    color: #aaa6c3;
    font-size: 13px;
}

.aether-month-head b {
    color: #04a85f;
}

.aether-month-count {
    min-width: 62px;
    text-align: center;
}

.aether-month-count strong {
    display: block;
    color: #d72cff;
    font-size: 34px;
    line-height: 0.9;
}

.aether-month-count span {
    color: #c7c3dd;
    font-weight: 800;
}

.aether-period-line {
    position: relative;
    height: 84px;
    padding: 0 4px;
    --period-progress: 25%;
    --period-fill-width: calc(25% - 4.5px);
}

.aether-period-line::before {
    content: "";
    position: absolute;
    left: 9px;
    right: 9px;
    top: 34px;
    height: 5px;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 46%, rgba(0, 0, 0, 0.22)),
        linear-gradient(90deg, rgba(63, 55, 112, 0.38), rgba(97, 94, 154, 0.42), rgba(42, 39, 76, 0.48));
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), inset 0 -1px 2px rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.aether-period-line::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 34px;
    width: var(--period-fill-width);
    height: 5px;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 42%, rgba(63, 24, 122, 0.24)),
        linear-gradient(90deg, #e32aff 0%, #9863ff 54%, #3d93ff 100%);
    box-shadow: 0 0 14px rgba(209, 53, 255, 0.28);
    z-index: 2;
}

.aether-period-thumb {
    position: absolute;
    left: calc(9px + var(--period-fill-width));
    top: 36.5px;
    z-index: 3;
    width: 18px;
    height: 18px;
    border: 4px solid rgba(255, 255, 255, 0.96);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #fff 0 16%, rgba(255, 255, 255, 0.74) 17% 30%, transparent 31%),
        linear-gradient(135deg, #f03cff 0%, #8a55ff 52%, #429cff 100%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.34), 0 0 16px rgba(203, 55, 255, 0.38);
    box-sizing: border-box;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.aether-period-range {
    position: absolute;
    left: 0;
    right: 0;
    top: 17px;
    z-index: 4;
    width: 100%;
    height: 40px;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    cursor: grab;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-focus-ring-color: transparent;
    opacity: 0;
}

.aether-period-range:active {
    cursor: grabbing;
}

.aether-period-range:focus {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.aether-period-range:focus-visible {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.aether-period-range::-webkit-slider-runnable-track {
    height: 40px;
    background: transparent;
}

.aether-period-range::-webkit-slider-thumb {
    width: 26px;
    height: 40px;
    margin-top: 0;
    appearance: none;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.aether-period-range::-moz-range-track {
    height: 40px;
    background: transparent;
}

.aether-period-range::-moz-range-thumb {
    width: 26px;
    height: 40px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.aether-period-scale {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -24px;
    height: 42px;
    color: #a9a4c3;
    font-size: 12px;
    pointer-events: none;
}

.aether-period-scale span {
    position: absolute;
    top: 0;
    left: var(--tick-left);
    display: grid;
    justify-items: center;
    gap: 5px;
    width: 78px;
    transform: translateX(-50%);
}

.aether-period-scale span:first-child {
    --tick-left: 9px;
}

.aether-period-scale span:nth-child(2) {
    --tick-left: calc(25% + 4.5px);
}

.aether-period-scale span:nth-child(3) {
    --tick-left: 50%;
}

.aether-period-scale span:nth-child(4) {
    --tick-left: calc(75% - 4.5px);
}

.aether-period-scale span:last-child {
    --tick-left: calc(100% - 9px);
}

.aether-period-scale b {
    color: #d7d0ff;
    font-size: 13px;
    line-height: 1;
}

.aether-period-scale small {
    display: inline-flex;
    min-height: 21px;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    color: #12d68a;
    background: rgba(18, 214, 138, 0.14);
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.aether-period-scale span:first-child small {
    color: #8d87a9;
    background: rgba(255, 255, 255, 0.05);
}

.aether-pricing-summary {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 1.15fr) minmax(240px, 0.8fr);
    gap: 22px;
    align-items: center;
    margin-top: 26px;
    padding: 22px;
    border: 1px solid rgba(126, 111, 194, 0.22);
    border-radius: 16px;
    background:
        radial-gradient(circle at 0% 0%, rgba(215, 44, 255, 0.18), transparent 30%),
        radial-gradient(circle at 100% 20%, rgba(61, 147, 255, 0.13), transparent 30%),
        linear-gradient(180deg, rgba(16, 14, 55, 0.88), rgba(8, 8, 31, 0.86));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 18px 50px rgba(0, 0, 0, 0.22);
}

.aether-pricing-summary > * + * {
    border-left: 0;
    padding-left: 0;
}

.aether-pricing-summary span,
.aether-pricing-summary small {
    color: #aaa6c3;
}

.aether-summary-price,
.aether-summary-included,
.aether-summary-action {
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.aether-summary-price {
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 0 0 0 18px;
    overflow: hidden;
    position: relative;
}

.aether-summary-price::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, #d72cff, #239bff);
    opacity: .85;
}

.aether-summary-label {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    padding: 4px 9px;
    border-radius: 999px;
    color: #bdb7df;
    background: rgba(255, 255, 255, 0.045);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.aether-summary-money {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.aether-summary-price strong {
    display: block;
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 3vw, 42px);
    line-height: 1;
    letter-spacing: -.02em;
}

.aether-summary-price del {
    color: #8d87a9;
    font-size: 17px;
}

.aether-summary-price p {
    margin: 0;
    color: #d7d0ff;
    font-size: 14px;
    font-weight: 800;
}

.aether-summary-price small {
    display: inline-flex;
    width: fit-content;
    margin: 0;
}

.aether-summary-price small {
    padding: 3px 9px;
    border-radius: 999px;
    color: #f2d9ff;
    background: rgba(183, 43, 255, 0.22);
}

.aether-pricing-summary ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.aether-pricing-summary li {
    min-height: 34px;
    display: flex;
    align-items: center;
    padding: 7px 10px;
    border: 1px solid rgba(126, 111, 194, 0.16);
    border-radius: 9px;
    color: #f2efff;
    background: rgba(255, 255, 255, 0.025);
    font-size: 14px;
    line-height: 1.35;
}

.aether-pricing-summary li::before {
    content: "✓";
    margin-right: 8px;
    color: #d72cff;
}

.aether-summary-included {
    display: grid;
    align-content: center;
    gap: 11px;
    padding: 0 22px;
    border-left: 1px solid rgba(126, 111, 194, 0.2);
    border-right: 1px solid rgba(126, 111, 194, 0.2);
}

.aether-summary-included > span {
    color: #d7d0ff;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.aether-pricing-cta {
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(135deg, #d72cff, #239bff);
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 18px 42px rgba(130, 55, 255, 0.28);
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.aether-pricing-cta:hover,
.aether-pricing-cta:focus-visible {
    filter: brightness(1.08);
    box-shadow: 0 22px 52px rgba(130, 55, 255, 0.36);
    transform: translateY(-2px);
}

.aether-summary-action {
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 0;
}

.aether-summary-action small {
    text-align: center;
}

/* Aether public design pass: one visual thesis, clearer feature hierarchy. */
.aether-site .aether-hero {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: clamp(24px, 4vw, 72px);
    min-height: clamp(540px, 66vh, 680px);
}

.aether-hero-visual {
    position: relative;
    min-width: 0;
    min-height: 520px;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.aether-hero-visual::before {
    content: "";
    position: absolute;
    inset: 15% 3% 10%;
    z-index: -1;
    border-radius: 50%;
    background:
        radial-gradient(closest-side at 34% 50%, rgba(41, 168, 255, 0.22), transparent 72%),
        radial-gradient(closest-side at 68% 48%, rgba(241, 47, 196, 0.22), transparent 74%);
    filter: blur(36px);
    opacity: .9;
}

.aether-features article {
    grid-template-rows: auto auto auto;
    min-height: 172px;
    padding: 0 22px;
    border-left: 1px solid rgba(126, 111, 194, 0.22);
}

.aether-features article:first-child {
    padding-left: 0;
    border-left: 0;
}

.aether-features article:hover {
    border-left-color: rgba(95, 224, 255, 0.54);
}

.aether-features i {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(126, 111, 194, 0.34);
    border-radius: 14px;
    color: #a9eaff;
    background:
        linear-gradient(135deg, rgba(215, 44, 255, 0.16), rgba(35, 155, 255, 0.14)),
        rgba(16, 14, 49, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 26px rgba(35, 155, 255, 0.08);
}

.aether-features i img {
    width: 21px;
    height: 21px;
    display: block;
    filter: invert(84%) sepia(37%) saturate(1322%) hue-rotate(170deg) brightness(104%) contrast(101%);
}

.aether-features strong {
    max-width: 19ch;
    color: #fff;
    font-size: 15px;
    line-height: 1.25;
}

.aether-features span {
    max-width: 27ch;
    line-height: 1.5;
}

.aether-server-grid small.online::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 6px 1px 0;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

@media (max-width: 900px) and (min-width: 761px) {
    .aether-site .aether-hero {
        grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
        gap: 20px;
    }

    .aether-hero-visual {
        min-height: 430px;
    }

}

@media (max-width: 900px) {
    .aether-pricing-benefits,
    .aether-pricing-summary {
        grid-template-columns: 1fr;
    }

    .aether-pricing-summary > * + * {
        border-top: 0;
        padding-top: 0;
    }

    .aether-summary-included {
        padding: 16px 0;
        border-left: 0;
        border-right: 0;
        border-top: 1px solid rgba(126, 111, 194, 0.18);
        border-bottom: 1px solid rgba(126, 111, 194, 0.18);
    }

    .aether-summary-action {
        padding: 0;
    }

    .aether-pricing-benefits {
        gap: 16px;
    }

    .aether-month-card {
        padding: 24px 22px 48px;
        border-radius: 14px;
    }
}

@media (max-width: 640px) {
    .aether-pricing {
        width: 100%;
        max-width: 100%;
        margin-top: 42px;
        padding: 0 12px;
        overflow: hidden;
    }

    .aether-tier-switch {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .aether-tier-switch button {
        min-height: 70px;
        padding: 13px 16px;
        border-radius: 15px;
    }

    .aether-tier-switch strong {
        font-size: 16px;
    }

    .aether-tier-switch span {
        margin-top: 6px;
        font-size: 13px;
    }

    .aether-period-picker {
        margin: 24px 0 20px;
    }

    .aether-month-card {
        padding: 22px 20px 42px;
    }

    .aether-month-head {
        gap: 10px;
        align-items: flex-start;
    }

    .aether-month-head h3 {
        max-width: 180px;
        font-size: 19px;
        line-height: 1.12;
    }

    .aether-month-head p {
        max-width: 210px;
        font-size: 12px;
        line-height: 1.35;
    }

    .aether-month-count {
        min-width: 54px;
    }

    .aether-month-count strong {
        font-size: 30px;
    }

    .aether-month-count span {
        font-size: 12px;
    }

    .aether-period-line {
        height: 76px;
        padding: 0;
    }

    .aether-period-line::before {
        left: 9px;
        right: 9px;
    }

    .aether-period-line::after {
        left: 9px;
    }

    .aether-period-scale {
        font-size: 11px;
        bottom: -20px;
    }

    .aether-period-scale span {
        width: 56px;
    }

    .aether-period-scale small {
        padding-inline: 6px;
        font-size: 10px;
    }

    .aether-pricing-summary {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        margin-top: 18px;
        padding: 18px;
        overflow: hidden;
    }

    .aether-pricing-summary ul {
        grid-template-columns: 1fr;
    }

    .aether-summary-price,
    .aether-summary-included,
    .aether-summary-action {
        min-width: 0;
    }

    .aether-summary-included {
        padding: 14px 0;
    }

    .aether-summary-price strong {
        font-size: 34px;
    }

    .aether-summary-price del {
        font-size: 15px;
    }

    .aether-pricing-cta {
        min-height: 52px;
    }
}

@media (max-width: 760px) {
    .aether-site .aether-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        overflow: clip;
    }

    .aether-hero-visual {
        display: none;
    }

    .aether-features article,
    .aether-features article:first-child {
        grid-template-columns: 42px minmax(0, 1fr);
        grid-template-rows: auto auto;
        min-height: 0;
        padding: 14px;
        border: 1px solid rgba(126, 111, 194, .18);
        border-radius: 12px;
        background: rgba(17, 14, 55, .48);
    }

    .aether-features article:hover {
        border-color: rgba(95, 224, 255, .46);
    }

    .aether-features i {
        grid-row: span 2;
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .aether-features i img {
        width: 17px;
        height: 17px;
    }

    .aether-features strong,
    .aether-features span {
        max-width: none;
    }
}

/* Cabinet polish: match public site mood */
.user-console-body {
    background:
        radial-gradient(780px 560px at 86% 6%, rgba(215, 44, 255, 0.18), transparent 66%),
        radial-gradient(720px 520px at 12% 16%, rgba(61, 147, 255, 0.13), transparent 64%),
        radial-gradient(620px 440px at 50% 92%, rgba(132, 82, 255, 0.1), transparent 66%),
        linear-gradient(180deg, #0b061f 0%, #07071a 45%, #060515 100%) !important;
}

.user-hub {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 42px 42px;
}

.user-hub-sidebar {
    border-right-color: rgba(192, 62, 255, 0.22);
    background:
        radial-gradient(260px 260px at 8% 2%, rgba(215, 44, 255, 0.18), transparent 70%),
        linear-gradient(180deg, rgba(20, 13, 54, 0.84), rgba(8, 8, 29, 0.72));
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.03);
}

.user-hub-topbar {
    border-bottom-color: rgba(126, 111, 194, 0.24);
}

.user-hub-topbar h1 em,
.user-hub-brand b,
.user-hub-facts dd,
.user-hub-referral-bonus strong {
    color: #d72cff;
}

.user-hub-purchase {
    grid-column: 1;
    width: 100%;
    justify-self: stretch;
    padding: 20px 22px;
}

.cabinet-pricing {
    max-width: none;
    margin: 0;
    padding: 0;
    scroll-margin-top: 24px;
    font-size: 0.9rem;
}

.cabinet-pricing-head {
    align-items: flex-start;
    margin-bottom: 14px;
}

.cabinet-pricing-head > div:first-child {
    display: grid;
    gap: 6px;
}

.cabinet-pricing .user-hub-checkout-account {
    min-width: 220px;
    padding: 10px 12px;
    border-radius: 10px;
}

.cabinet-pricing .aether-tier-switch {
    gap: 14px;
    margin-top: 12px;
}

.cabinet-pricing .aether-tier-switch button {
    min-height: 58px;
    padding: 11px 18px;
    border-radius: 16px;
}

.cabinet-pricing .aether-tier-switch strong {
    font-size: 15px;
}

.cabinet-pricing .aether-tier-switch span {
    margin-top: 5px;
    font-size: 12px;
}

.cabinet-pricing .aether-period-picker {
    margin: 14px 0;
}

.cabinet-pricing .aether-month-card {
    padding: 16px 26px 36px;
    border-radius: 12px;
}

.cabinet-pricing .aether-month-head {
    margin-bottom: 8px;
}

.cabinet-pricing .aether-month-head h3 {
    font-size: 16px;
}

.cabinet-pricing .aether-month-head p {
    font-size: 12px;
}

.cabinet-pricing .aether-month-count strong {
    font-size: 28px;
}

.cabinet-pricing .aether-month-count span {
    font-size: 13px;
}

.cabinet-pricing .aether-period-line {
    height: 66px;
}

.cabinet-pricing .aether-period-line::before,
.cabinet-pricing .aether-period-line::after {
    top: 27px;
    height: 4px;
}

.cabinet-pricing .aether-period-thumb {
    top: 29px;
    width: 16px;
    height: 16px;
    border-width: 3px;
}

.cabinet-pricing .aether-period-range {
    top: 10px;
}

.cabinet-pricing .aether-period-scale {
    bottom: -20px;
}

.cabinet-pricing .aether-period-scale b {
    font-size: 12px;
}

.cabinet-pricing .aether-period-scale small {
    min-height: 18px;
    padding: 2px 7px;
    font-size: 10px;
}

.cabinet-pricing .aether-pricing-summary {
    grid-template-columns: minmax(190px, 0.8fr) minmax(260px, 1.12fr) minmax(220px, 0.78fr);
    gap: 16px;
    margin-top: 0;
    padding: 14px 16px;
    border-radius: 13px;
}

.cabinet-pricing .aether-summary-price {
    gap: 6px;
    padding-left: 14px;
}

.cabinet-pricing .aether-summary-label {
    padding: 3px 8px;
    font-size: 11px;
}

.cabinet-pricing .aether-summary-price strong {
    font-size: clamp(28px, 2.4vw, 34px);
}

.cabinet-pricing .aether-summary-price p,
.cabinet-pricing .aether-summary-price small,
.cabinet-pricing .aether-summary-action small {
    font-size: 12px;
}

.cabinet-pricing .aether-summary-included {
    gap: 8px;
    padding-inline: 16px;
}

.cabinet-pricing .aether-pricing-summary ul {
    gap: 6px;
}

.cabinet-pricing .aether-pricing-summary li {
    min-height: 30px;
    padding: 6px 9px;
    border-radius: 8px;
    font-size: 12px;
}

.cabinet-pricing .aether-pricing-cta {
    width: 100%;
    min-height: 48px;
    border-radius: 8px;
    border: 0;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font: inherit;
}

.cabinet-pricing .aether-pricing-cta:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.cabinet-pricing-promo {
    margin-top: 14px;
}

.cabinet-pricing-identity {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.cabinet-pricing-identity label {
    display: grid;
    gap: 8px;
    color: #bdb7df;
}

.cabinet-pricing-identity input {
    min-height: 46px;
    border: 1px solid rgba(126, 111, 194, 0.28);
    border-radius: 10px;
    padding: 0 14px;
    color: #fff;
    background: rgba(8, 7, 28, 0.58);
}

@media (max-width: 900px) {
    .cabinet-pricing-head,
    .cabinet-pricing-identity {
        grid-template-columns: 1fr;
    }

    .cabinet-pricing .user-hub-checkout-account {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .user-hub-main {
        padding: 16px 10px 28px;
    }

    .user-hub-grid {
        gap: 18px;
        padding-top: 16px;
    }

    .user-hub-card {
        padding: 16px;
        border-radius: 15px;
    }

    .user-hub-purchase {
        padding: 16px;
        overflow: hidden;
    }

    .cabinet-pricing {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        font-size: 0.86rem;
    }

    .cabinet-pricing-head {
        display: grid;
        gap: 12px;
    }

    .cabinet-pricing .user-hub-checkout-account {
        width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .cabinet-pricing .user-hub-checkout-account strong {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cabinet-pricing .aether-tier-switch {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 10px;
    }

    .cabinet-pricing .aether-tier-switch button {
        width: 100%;
        min-height: 62px;
        padding: 11px 14px;
        border-radius: 14px;
    }

    .cabinet-pricing .aether-period-picker {
        margin: 12px 0;
    }

    .cabinet-pricing .aether-month-card {
        padding: 18px 14px 38px;
        overflow: hidden;
    }

    .cabinet-pricing .aether-month-head {
        gap: 10px;
    }

    .cabinet-pricing .aether-month-head h3 {
        max-width: 190px;
        font-size: 17px;
    }

    .cabinet-pricing .aether-month-head p {
        max-width: 210px;
        line-height: 1.35;
    }

    .cabinet-pricing .aether-period-line {
        height: 72px;
        overflow: visible;
    }

    .cabinet-pricing .aether-period-scale span {
        width: 52px;
    }

    .cabinet-pricing .aether-period-scale small {
        padding-inline: 5px;
        font-size: 9px;
    }

    .cabinet-pricing .aether-pricing-summary {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding: 15px;
        overflow: hidden;
    }

    .cabinet-pricing .aether-summary-included {
        padding: 12px 0;
        border-left: 0;
        border-right: 0;
        border-top: 1px solid rgba(126, 111, 194, 0.18);
        border-bottom: 1px solid rgba(126, 111, 194, 0.18);
    }

    .cabinet-pricing .aether-pricing-summary ul {
        grid-template-columns: 1fr;
    }

    .cabinet-pricing-promo div {
        grid-template-columns: 1fr;
    }
}

.user-hub-nav a,
.user-hub-sidebar-bottom a,
.user-hub-secondary,
.user-hub-field button {
    border-color: rgba(95, 97, 145, 0.22);
    background: rgba(8, 10, 28, 0.58);
}

.user-hub-nav a:hover,
.user-hub-nav a.active,
.user-hub-sidebar-bottom a:hover {
    border-color: rgba(215, 44, 255, 0.58);
    background:
        radial-gradient(circle at 0% 50%, rgba(215, 44, 255, 0.18), transparent 60%),
        rgba(35, 24, 82, 0.78);
    box-shadow: 0 0 0 1px rgba(215, 44, 255, 0.14), 0 16px 38px rgba(126, 67, 234, 0.18);
}

.user-hub-card {
    border-color: rgba(87, 90, 136, 0.24);
    background:
        radial-gradient(420px 220px at 92% 0%, rgba(126, 67, 234, 0.055), transparent 70%),
        radial-gradient(360px 220px at 0% 100%, rgba(35, 155, 255, 0.045), transparent 72%),
        linear-gradient(180deg, rgba(10, 13, 31, 0.96), rgba(6, 8, 20, 0.94));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        0 24px 70px rgba(20, 10, 54, 0.34);
}

.user-hub-subscription,
.user-hub-purchase {
    background:
        radial-gradient(520px 260px at 100% 4%, rgba(126, 67, 234, 0.09), transparent 68%),
        radial-gradient(480px 240px at 0% 100%, rgba(61, 147, 255, 0.06), transparent 70%),
        linear-gradient(180deg, rgba(11, 13, 34, 0.96), rgba(6, 8, 20, 0.92));
}

.user-hub-badge.active,
.user-hub-payment-status {
    color: #f2d9ff;
    background: rgba(183, 43, 255, 0.24);
}

.user-hub-primary,
.user-hub-form .user-hub-primary {
    border-color: rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, #d72cff, #239bff);
    box-shadow: 0 20px 46px rgba(130, 55, 255, 0.28);
}

.user-hub-secondary,
.user-hub-field button,
.user-hub-plan,
.user-hub-tier,
.user-hub-mini-stats article,
.user-hub-settings-grid article,
.user-hub-referral-bonus,
.user-hub-referral-list article,
.user-hub-payment-list article,
.user-hub-login-list article,
.user-hub-subscription-actions,
.user-hub-app-downloads,
.user-hub-tariff-schedule,
.user-hub-tariff-node,
.user-hub-checkout-account {
    border-color: rgba(126, 111, 194, 0.24);
    background: rgba(15, 12, 45, 0.56);
}

.user-hub-field input,
.user-hub-form input,
.user-hub-password-form input {
    border-color: rgba(126, 111, 194, 0.28);
    background: rgba(8, 7, 28, 0.58);
}

.user-hub-facts div,
.user-hub-overview-grid article,
.user-hub-payment-list article,
.user-hub-login-list article,
.user-hub-plan,
.user-hub-tier,
.user-hub-checkout-account,
.user-hub-settings-grid article,
.user-hub-mini-stats article {
    border-color: rgba(87, 90, 136, 0.24) !important;
    background:
        radial-gradient(180px 90px at 100% 0%, rgba(126, 67, 234, 0.06), transparent 70%),
        linear-gradient(180deg, rgba(12, 15, 36, 0.78), rgba(7, 9, 24, 0.72)) !important;
}

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

.user-hub-facts div {
    min-height: 86px;
    border: 1px solid rgba(126, 111, 194, 0.24);
    border-radius: 14px;
    padding: 16px;
}

.user-hub-plan.selected,
.user-hub-plan:hover,
.user-hub-tier.selected,
.user-hub-tier.active,
.user-hub-app-downloads a:hover,
.user-hub-app-download-apple a:hover {
    border-color: rgba(215, 44, 255, 0.74);
    background:
        radial-gradient(circle at 100% 0%, rgba(215, 44, 255, 0.2), transparent 64%),
        rgba(43, 25, 89, 0.78);
    box-shadow: 0 0 26px rgba(215, 44, 255, 0.14);
}

.user-hub-subscription-copy p,
.user-hub-referral p,
.user-hub-topbar p,
.user-hub-card-head > span,
.user-hub-card-head > div,
.user-hub-sidebar-bottom span,
.user-hub-mini-stats span,
.user-hub-settings-grid span,
.user-hub-payment-list small,
.user-hub-login-list small {
    color: #c2bce0;
}

.user-console-body {
    background:
        radial-gradient(760px 480px at 84% 0%, rgba(103, 58, 183, 0.08), transparent 66%),
        radial-gradient(680px 420px at 10% 18%, rgba(35, 155, 255, 0.055), transparent 68%),
        linear-gradient(180deg, #070a16 0%, #050714 48%, #050511 100%) !important;
}

.user-hub-sidebar {
    border-right-color: rgba(87, 90, 136, 0.2);
    background:
        radial-gradient(260px 220px at 0% 0%, rgba(126, 67, 234, 0.08), transparent 72%),
        linear-gradient(180deg, rgba(7, 10, 24, 0.96), rgba(5, 7, 18, 0.94));
}

.user-hub-topbar {
    border-bottom-color: rgba(87, 90, 136, 0.2);
}

.user-hub-card,
.user-hub-subscription,
.user-hub-purchase,
.user-hub-referral,
.user-hub-overview,
.user-hub-payments,
.user-hub-settings {
    border-color: rgba(87, 90, 136, 0.24);
    background:
        radial-gradient(420px 220px at 92% 0%, rgba(126, 67, 234, 0.052), transparent 72%),
        linear-gradient(180deg, rgba(9, 12, 28, 0.96), rgba(5, 7, 18, 0.94)) !important;
}

.user-hub-subscription-hero {
    border-color: rgba(126, 111, 194, 0.24);
    background:
        radial-gradient(360px 180px at 100% 0%, rgba(126, 67, 234, 0.1), transparent 72%),
        linear-gradient(135deg, rgba(20, 16, 48, 0.9), rgba(7, 8, 25, 0.9)) !important;
}

.user-hub-subscription-icon,
.user-hub-stat-icon,
.user-hub-traffic-story-icon,
.user-hub-import-action-icon,
.user-hub-share-action-icon {
    border-color: rgba(126, 111, 194, 0.34);
    color: #b56cff;
    background: rgba(73, 43, 128, 0.24);
}

.user-hub-nav a:hover,
.user-hub-nav a.active,
.user-hub-sidebar-bottom a:hover {
    background:
        radial-gradient(circle at 0% 50%, rgba(126, 67, 234, 0.14), transparent 60%),
        rgba(20, 16, 48, 0.82);
    border-color: rgba(181, 108, 255, 0.5);
}

.user-hub-facts div,
.user-hub-overview-grid article,
.user-hub-payment-list article,
.user-hub-login-list article,
.user-hub-plan,
.user-hub-tier,
.user-hub-checkout-account,
.user-hub-settings-grid article,
.user-hub-mini-stats article,
.user-hub-subscription-actions,
.user-hub-app-downloads,
.user-hub-referral-bonus {
    border-color: rgba(87, 90, 136, 0.24) !important;
    background:
        radial-gradient(180px 90px at 100% 0%, rgba(126, 67, 234, 0.052), transparent 70%),
        linear-gradient(180deg, rgba(10, 13, 31, 0.78), rgba(6, 8, 21, 0.72)) !important;
}

.aether-month-card,
.aether-pricing-summary {
    border-color: rgba(87, 90, 136, 0.24);
    background:
        radial-gradient(circle at 100% 0%, rgba(126, 67, 234, 0.085), transparent 38%),
        linear-gradient(180deg, rgba(12, 14, 35, 0.94), rgba(7, 8, 24, 0.94));
}

@media (max-width: 760px) {
    .user-console-body {
        background:
            radial-gradient(520px 340px at 92% 0%, rgba(126, 67, 234, 0.09), transparent 70%),
            radial-gradient(460px 320px at 8% 18%, rgba(61, 147, 255, 0.06), transparent 68%),
            linear-gradient(180deg, #070a16, #050714 48%, #050511) !important;
    }

    .user-hub-sidebar {
        background:
            radial-gradient(280px 180px at 0% 0%, rgba(126, 67, 234, 0.08), transparent 72%),
            rgba(6, 8, 22, 0.9);
        backdrop-filter: blur(14px);
    }
}

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

.user-hub-import-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 22px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

.user-hub-import-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.user-hub-import-modal[hidden] {
    display: none;
}

.user-hub-import-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(680px 420px at 50% 8%, rgba(215, 44, 255, 0.18), transparent 72%),
        rgba(4, 4, 15, 0.72);
    backdrop-filter: blur(18px);
}

.user-hub-import-dialog {
    position: relative;
    width: min(760px, 100%);
    max-height: min(860px, calc(100vh - 44px));
    overflow: auto;
    border: 1px solid rgba(126, 111, 194, 0.34);
    border-radius: 26px;
    padding: clamp(24px, 4vw, 42px);
    color: #f8f5ff;
    background:
        radial-gradient(520px 280px at 100% 0%, rgba(215, 44, 255, 0.2), transparent 68%),
        radial-gradient(460px 260px at 0% 100%, rgba(35, 155, 255, 0.14), transparent 70%),
        linear-gradient(180deg, rgba(18, 13, 53, 0.96), rgba(8, 8, 29, 0.94));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 34px 90px rgba(0, 0, 0, 0.48);
    transform: translateY(10px) scale(.985);
    transition: transform .18s ease;
}

.user-hub-import-modal.show .user-hub-import-dialog {
    transform: translateY(0) scale(1);
}

.user-hub-import-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(126, 111, 194, 0.28);
    border-radius: 12px;
    color: #d9d3f5;
    background: rgba(15, 12, 45, 0.72);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.user-hub-import-kicker {
    margin: 0 0 10px;
    color: #9b8cff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.user-hub-import-dialog h2 {
    max-width: 620px;
    margin: 0;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.08;
}

.user-hub-import-lead {
    max-width: 560px;
    margin: 16px 0 28px;
    color: #c2bce0;
    font-size: 17px;
    line-height: 1.55;
}

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

.user-hub-import-card {
    min-height: 158px;
    display: grid;
    align-content: center;
    place-items: center;
    gap: 9px;
    border: 1px solid rgba(126, 111, 194, 0.28);
    border-radius: 22px;
    padding: 22px 16px;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(220px 120px at 100% 0%, rgba(215, 44, 255, 0.11), transparent 70%),
        rgba(16, 13, 49, 0.68);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.user-hub-import-card:hover,
.user-hub-import-card.accent {
    border-color: rgba(34, 211, 238, 0.66);
    background:
        radial-gradient(220px 120px at 100% 0%, rgba(34, 211, 238, 0.12), transparent 70%),
        radial-gradient(220px 120px at 0% 100%, rgba(215, 44, 255, 0.16), transparent 72%),
        rgba(20, 16, 58, 0.84);
    box-shadow: 0 20px 52px rgba(34, 211, 238, 0.1);
    transform: translateY(-2px);
}

.user-hub-import-card span {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(215, 44, 255, 0.22), rgba(35, 155, 255, 0.16)),
        rgba(255, 255, 255, 0.06);
}

.user-hub-import-card img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.user-hub-import-card span img[src$=".svg"] {
    filter: invert(74%) sepia(95%) saturate(1346%) hue-rotate(165deg) brightness(101%) contrast(93%);
}

.user-hub-import-card strong {
    font-size: 20px;
}

.user-hub-import-card small {
    color: #bfb9db;
    font-size: 13px;
}

.user-hub-import-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    border: 1px solid rgba(126, 111, 194, 0.24);
    border-radius: 18px;
    padding: 16px 18px;
    background: rgba(15, 12, 45, 0.62);
}

.user-hub-import-note div {
    display: grid;
    gap: 4px;
}

.user-hub-import-note strong {
    font-size: 15px;
}

.user-hub-import-note span {
    color: #bfb9db;
    font-size: 13px;
    line-height: 1.4;
}

.user-hub-import-note a {
    position: relative;
    overflow: hidden;
    min-height: 50px;
    min-width: min(100%, 320px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    padding: 0 22px;
    color: #fff;
    background: linear-gradient(135deg, #d72cff 0%, #8b5cff 48%, #239bff 100%);
    box-shadow: 0 16px 36px rgba(130, 55, 255, 0.24);
    font-weight: 800;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, border-color .18s ease;
    isolation: isolate;
}

.user-hub-import-note a:hover {
    box-shadow: 0 22px 50px rgba(130, 55, 255, 0.36), 0 0 0 1px rgba(215, 44, 255, 0.18);
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.user-hub-import-note a:active {
    filter: brightness(.98);
    transform: translateY(0);
}

@media (max-width: 640px) {
    .user-hub-import-dialog {
        border-radius: 20px;
        padding: 24px 18px;
    }

    .user-hub-import-grid {
        grid-template-columns: 1fr;
    }

    .user-hub-import-card {
        min-height: 124px;
    }

    .user-hub-import-note {
        align-items: stretch;
        flex-direction: column;
    }

    .user-hub-import-note a {
        white-space: normal;
        text-align: center;
    }
}

/* Final cabinet overrides: keep after legacy cabinet rules. */
.user-hub {
    transition: grid-template-columns .18s ease;
}

.user-hub.sidebar-collapsed {
    grid-template-columns: 84px minmax(0, 1fr);
}

.user-hub-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.user-hub-nav a,
.user-hub-sidebar-bottom a {
    gap: 10px;
    position: relative;
}

.user-hub-nav a i,
.user-hub-sidebar-bottom a i {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: grid;
    place-items: center;
    color: #a9c9ff;
}

.user-hub.sidebar-collapsed .user-hub-sidebar {
    padding-inline: 12px;
}

.user-hub.sidebar-collapsed .user-hub-brand strong,
.user-hub.sidebar-collapsed .user-hub-nav a span,
.user-hub.sidebar-collapsed .user-hub-sidebar-bottom > span,
.user-hub.sidebar-collapsed .user-hub-sidebar-bottom a span {
    display: none;
}

.user-hub.sidebar-collapsed .user-hub-nav a,
.user-hub.sidebar-collapsed .user-hub-sidebar-bottom a {
    justify-content: center;
    padding-inline: 0;
}

.user-hub-device-item {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.user-hub-device-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-device-action {
    position: relative;
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(126, 111, 194, 0.24);
    border-radius: 10px;
    color: #cfe4ff;
    background: rgba(8, 10, 28, 0.62);
    cursor: pointer;
}

@media (max-width: 760px) {
    .user-hub.sidebar-collapsed,
    .user-hub {
        grid-template-columns: 1fr;
    }

    .user-hub-sidebar-head {
        display: none;
    }

    .user-hub-nav a i,
    .user-hub-sidebar-bottom a i {
        display: none;
    }

    .user-hub-device-summary,
    .user-hub-device-item {
        grid-template-columns: 1fr;
    }
}

/* Mobile import modal should keep the desktop visual rhythm. */
@media (max-width: 760px) {
    .user-hub-import-modal {
        align-items: start;
        padding: 12px;
        overflow: auto;
    }

    .user-hub-import-dialog {
        width: min(100%, 760px);
        max-height: none;
        min-height: calc(100dvh - 24px);
        border-radius: 24px;
        padding: 34px clamp(20px, 6vw, 42px) 28px;
    }

    .user-hub-import-close {
        top: 18px;
        right: 18px;
        width: 38px;
        height: 38px;
        border-radius: 13px;
    }

    .user-hub-import-kicker {
        margin-top: 4px;
        font-size: 12px;
        letter-spacing: .16em;
    }

    .user-hub-import-dialog h2 {
        max-width: 340px;
        margin-top: 8px;
        font-size: clamp(30px, 8vw, 40px);
        line-height: 1.04;
    }

    .user-hub-import-lead {
        max-width: 320px;
        margin-top: 12px;
        font-size: 14px;
        line-height: 1.42;
    }

    .user-hub-import-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        margin-top: 18px;
    }

    .user-hub-import-card {
        min-height: 178px;
        justify-content: center;
        border-radius: 20px;
        padding: 22px 16px;
    }

    .user-hub-import-card span {
        width: 74px;
        height: 74px;
        border-radius: 22px;
    }

    .user-hub-import-card strong {
        font-size: 20px;
    }

    .user-hub-import-note {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 16px;
        margin-top: 18px;
        border-radius: 20px;
        padding: 16px 18px;
    }

    .user-hub-import-note a {
        min-height: 50px;
        white-space: nowrap;
    }
}

@media (max-width: 430px) {
    .user-hub-import-dialog {
        padding-inline: 18px;
    }

    .user-hub-import-grid,
    .user-hub-import-note {
        grid-template-columns: 1fr;
    }

    .user-hub-import-note a {
        width: 100%;
        white-space: normal;
        text-align: center;
    }
}

/* Final settings history overrides. */
.user-hub-login-history {
    margin-top: 18px;
    border: 1px solid rgba(126, 111, 194, 0.22);
    border-radius: 16px;
    padding: 0;
    background: rgba(8, 10, 28, 0.5);
    overflow: hidden;
}

.user-hub-login-history summary {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}

.user-hub-login-history summary::-webkit-details-marker {
    display: none;
}

.user-hub-login-history summary::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid #9fb5db;
    border-bottom: 2px solid #9fb5db;
    transform: rotate(45deg);
    transition: transform .16s ease;
}

.user-hub-login-history[open] summary::after {
    transform: rotate(225deg);
}

.user-hub-login-history summary strong,
.user-hub-login-history summary small {
    display: block;
}

.user-hub-login-history summary small {
    margin-top: 3px;
    color: #9ca3c1;
    font-size: 12px;
}

.user-hub-login-history .user-hub-login-list {
    padding: 0 16px 16px;
}

.user-hub-login-pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid rgba(126, 111, 194, 0.14);
    padding: 12px 16px 16px;
}

.user-hub-login-pager[hidden] {
    display: none;
}

.user-hub-login-pager button {
    min-height: 34px;
    border: 1px solid rgba(126, 111, 194, 0.28);
    border-radius: 10px;
    padding: 0 12px;
    color: #d8e7ff;
    background: rgba(12, 16, 34, 0.78);
    font-weight: 800;
    cursor: pointer;
}

.user-hub-login-pager button:disabled {
    opacity: .44;
    cursor: not-allowed;
}

.user-hub-login-pager span {
    color: #9ca3c1;
    font-size: 12px;
    font-weight: 800;
}

/* Final mobile import layout: platform cards stay 2x2 on phones. */
@media (max-width: 760px) {
    .user-hub-import-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .user-hub-import-card {
        min-height: 122px;
        border-radius: 18px;
        padding: 16px 8px;
        gap: 7px;
    }
}

@media (max-width: 430px) {
    .user-hub-import-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .user-hub-import-card span {
        width: 58px;
        height: 58px;
        border-radius: 18px;
    }

    .user-hub-import-card strong {
        font-size: 16px;
    }

    .user-hub-import-card small {
        display: none;
    }
}

/* Public site motion and standalone navigation pages. */
.aether-site-body {
    position: relative;
    overflow-x: hidden;
    isolation: isolate;
}

.aether-site-body::before,
.aether-site-body::after {
    content: "";
    position: fixed;
    z-index: -1;
    width: 42vw;
    height: 42vw;
    min-width: 260px;
    min-height: 260px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(70px);
    opacity: .22;
    mix-blend-mode: screen;
    animation: aether-ambient-drift 18s ease-in-out infinite alternate;
}

.aether-site-body::before {
    top: -18vw;
    right: -8vw;
    background: rgba(223, 44, 215, .48);
}

.aether-site-body::after {
    bottom: -22vw;
    left: -12vw;
    background: rgba(31, 155, 255, .42);
    animation-delay: -7s;
}

.aether-site > * {
    position: relative;
    z-index: 1;
}

.aether-site > .aether-nav {
    z-index: 20;
}

[data-reveal] {
    transition:
        opacity .42s cubic-bezier(.22, 1, .36, 1),
        transform .42s cubic-bezier(.22, 1, .36, 1),
        filter .42s cubic-bezier(.22, 1, .36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.aether-motion-enabled [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(3px);
}

.aether-motion-enabled [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    filter: none;
}

.aether-nav {
    animation: aether-nav-in .38s cubic-bezier(.22, 1, .36, 1) both;
}

.aether-nav nav a::after {
    content: "";
    position: absolute;
    right: 8px;
    bottom: 5px;
    left: 8px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #df2cd7, #20a0ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}

.aether-nav nav a:hover::after,
.aether-nav nav a.active::after {
    transform: scaleX(1);
}

.aether-nav nav a.active {
    border-bottom: 0;
    padding-bottom: 0;
}

.aether-page-shell {
    padding-bottom: 18px;
}

.aether-page-hero {
    position: relative;
    min-height: 420px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr);
    align-items: center;
    gap: 46px;
    padding: 54px 0 28px;
    isolation: isolate;
}

.aether-page-hero::before {
    content: "";
    position: absolute;
    inset: 0 -20% 0 -15%;
    z-index: -1;
    background:
        radial-gradient(440px 260px at 28% 52%, rgba(31, 155, 255, .18), transparent 72%),
        radial-gradient(420px 280px at 76% 46%, rgba(223, 44, 215, .16), transparent 70%);
    filter: blur(8px);
}

.aether-page-hero-copy {
    max-width: 700px;
}

.aether-page-hero-copy h1 {
    margin: 24px 0 18px;
    font-size: clamp(48px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.aether-page-hero-copy h1 em {
    font-style: normal;
    background: linear-gradient(135deg, #ee41cf, #7c5cff 58%, #20a0ff);
    -webkit-background-clip: text;
    color: transparent;
}

.aether-page-hero-copy p {
    max-width: 580px;
    margin: 0;
    color: #c7c3da;
    font-size: 18px;
    line-height: 1.7;
}

.aether-page-hero-copy .aether-hero-actions {
    flex-wrap: wrap;
}

.aether-page-orbit,
.aether-page-signal,
.aether-page-price-orbit,
.aether-page-question-mark {
    position: relative;
    min-height: 270px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(126, 111, 194, .25);
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .1), transparent 16%),
        radial-gradient(circle, rgba(81, 54, 199, .28), rgba(12, 11, 39, .18) 55%, transparent 70%);
    box-shadow: 0 0 90px rgba(74, 121, 255, .2), inset 0 0 60px rgba(220, 42, 211, .12);
    animation: aether-orbit-float 7s ease-in-out infinite;
}

.aether-page-orbit::before,
.aether-page-orbit::after,
.aether-page-signal::before,
.aether-page-signal::after,
.aether-page-price-orbit::before,
.aether-page-price-orbit::after {
    content: "";
    position: absolute;
    inset: 12%;
    border: 1px solid rgba(95, 224, 255, .28);
    border-radius: 50%;
    transform: rotate(32deg) scaleX(1.5);
}

.aether-page-orbit::after,
.aether-page-signal::after,
.aether-page-price-orbit::after {
    inset: 22%;
    border-color: rgba(223, 44, 215, .3);
    transform: rotate(-48deg) scaleX(1.55);
}

.aether-page-orbit span,
.aether-page-signal span {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #65edff;
    box-shadow: 0 0 22px currentColor;
    animation: aether-orbit-pulse 2.6s ease-in-out infinite;
}

.aether-page-orbit span:nth-child(1) { top: 16%; left: 31%; color: #65edff; }
.aether-page-orbit span:nth-child(2) { right: 15%; top: 44%; color: #ff5bd4; animation-delay: -.8s; }
.aether-page-orbit span:nth-child(3) { bottom: 18%; left: 32%; color: #a782ff; animation-delay: -1.5s; }

.aether-page-signal {
    border-radius: 32px;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(27, 26, 82, .88), rgba(11, 12, 40, .82)),
        repeating-linear-gradient(0deg, transparent 0 22px, rgba(95, 224, 255, .08) 23px 24px);
}

.aether-page-signal::before,
.aether-page-signal::after {
    inset: 20% -15%;
    transform: rotate(-18deg) scaleX(1.2);
}

.aether-page-signal span {
    position: absolute;
    width: 72%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #49e7ff 18%, #c75dff 76%, transparent);
    box-shadow: 0 0 22px rgba(73, 231, 255, .65);
    transform: rotate(-17deg) translateX(-6%);
    animation: aether-signal-scan 3.8s ease-in-out infinite;
}

.aether-page-signal span:nth-child(2) { width: 55%; transform: rotate(28deg) translateX(11%); animation-delay: -1.3s; }
.aether-page-signal span:nth-child(3) { width: 38%; transform: rotate(-42deg) translateX(20%); animation-delay: -2.2s; }

.aether-page-price-orbit {
    font-size: 46px;
    color: #fff;
    text-shadow: 0 0 26px rgba(223, 44, 215, .65);
}

.aether-page-price-orbit span {
    position: absolute;
    right: 18%;
    bottom: 18%;
    color: #61efff;
    font-size: 64px;
    animation: aether-orbit-pulse 2s ease-in-out infinite;
}

.aether-page-question-mark {
    color: #fff;
    font-size: 150px;
    font-weight: 900;
    text-shadow: 0 0 42px rgba(223, 44, 215, .5), 0 0 80px rgba(31, 155, 255, .3);
}

.aether-feature-page-grid {
    margin-top: 22px;
    padding: 42px 0 58px;
    border-top: 1px solid rgba(126, 111, 194, .22);
    border-bottom: 1px solid rgba(126, 111, 194, .18);
}

.aether-feature-page-grid article {
    min-height: 220px;
    padding: 28px 24px;
    border: 1px solid rgba(126, 111, 194, .24);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(23, 19, 67, .8), rgba(9, 10, 35, .62));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.aether-feature-page-grid article:hover {
    border-color: rgba(95, 224, 255, .48);
    box-shadow: 0 20px 50px rgba(31, 155, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .08);
    transform: translateY(-6px);
}

.aether-page-story-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr .8fr;
    gap: 18px;
    margin: 42px 0 26px;
}

.aether-page-story-card {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 28px;
    border: 1px solid rgba(126, 111, 194, .22);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(19, 18, 60, .78), rgba(8, 10, 34, .64));
}

.aether-page-story-card-wide {
    justify-content: flex-start;
}

.aether-page-story-card h2,
.aether-page-text-band h2,
.aether-faq-contact h2 {
    margin: 8px 0 2px;
    color: #fff;
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.12;
}

.aether-page-story-card p,
.aether-page-story-card span,
.aether-page-text-band > p,
.aether-faq-contact p,
.aether-page-mini-grid p,
.aether-plan-notes p {
    margin: 0;
    color: #aaa6c3;
    line-height: 1.65;
}

.aether-page-story-card strong {
    color: #fff;
    font-size: 18px;
}

.aether-story-value {
    color: #65edff !important;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 0 24px rgba(95, 224, 255, .34);
}

.aether-page-scenarios {
    margin: 62px 0 20px;
}

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

.aether-page-mini-grid article,
.aether-plan-notes article {
    padding: 24px;
    border: 1px solid rgba(126, 111, 194, .22);
    border-radius: 18px;
    background: rgba(14, 13, 46, .66);
}

.aether-page-mini-grid strong,
.aether-plan-notes h3 {
    display: block;
    margin-bottom: 10px;
    color: #fff;
    font-size: 18px;
}

.aether-page-text-band,
.aether-faq-contact {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 32px;
    margin: 46px 0 62px;
    padding: 34px;
    border: 1px solid rgba(126, 111, 194, .24);
    border-radius: 22px;
    background:
        radial-gradient(circle at 0% 0%, rgba(215, 44, 255, .13), transparent 35%),
        linear-gradient(145deg, rgba(24, 18, 70, .78), rgba(8, 10, 34, .7));
}

.aether-plan-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 42px 0 20px;
}

.aether-plan-notes article {
    min-height: 210px;
}

.aether-plan-notes i {
    display: block;
    margin-bottom: 20px;
    color: #b35dff;
    font-size: 30px;
    font-style: normal;
    font-weight: 900;
}

.aether-faq-contact {
    margin-top: 10px;
}

.aether-faq-contact > div {
    max-width: 620px;
}

.aether-faq-contact .aether-pricing-cta {
    width: min(100%, 260px);
    justify-self: end;
}

.aether-page-how {
    padding: 66px 0 74px;
}

.aether-page-how h2,
.aether-page-section-head h2 {
    margin: 10px 0 0;
    color: #fff;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.08;
}

.aether-page-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 26px;
    text-align: left;
}

.aether-page-section-head .aether-section-kicker {
    text-align: left;
}

.aether-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(18, 214, 138, .24);
    border-radius: 999px;
    color: #8beab7;
    background: rgba(18, 214, 138, .08);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.aether-live-badge i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #12d68a;
    box-shadow: 0 0 14px rgba(18, 214, 138, .9);
    animation: aether-orbit-pulse 1.8s ease-in-out infinite;
}

.aether-servers-page {
    margin-top: 20px;
    padding: 32px;
    text-align: left;
}

.aether-servers-page .aether-server-grid {
    grid-template-columns: repeat(var(--server-columns, 4), minmax(0, 1fr));
    margin-top: 10px;
}

.aether-servers-page > a {
    max-width: 260px;
    margin: 8px auto 0;
}

.aether-public-plans {
    margin-top: 38px;
}

.aether-public-plans .aether-plan-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.aether-faq-list {
    display: grid;
    gap: 14px;
    max-width: 860px;
    margin: 26px auto 74px;
}

.aether-faq-list details {
    border: 1px solid rgba(126, 111, 194, .24);
    border-radius: 18px;
    padding: 0 22px;
    background: linear-gradient(145deg, rgba(23, 19, 67, .76), rgba(9, 10, 35, .66));
    transition: border-color .22s ease, background .22s ease, transform .22s ease;
}

.aether-faq-list details[open] {
    border-color: rgba(95, 224, 255, .42);
    background: linear-gradient(145deg, rgba(29, 24, 78, .9), rgba(9, 11, 38, .78));
    transform: translateX(4px);
}

.aether-faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 68px;
    cursor: pointer;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    list-style: none;
}

.aether-faq-list summary::-webkit-details-marker { display: none; }
.aether-faq-list summary::after { content: "+"; color: #b35dff; font-size: 24px; transition: transform .22s ease; }
.aether-faq-list details[open] summary::after { transform: rotate(45deg); }

.aether-faq-list details p {
    max-width: 720px;
    margin: -4px 44px 22px 0;
    color: #aaa6c3;
    line-height: 1.7;
}

.aether-page-leaving {
    animation: aether-page-out .08s ease forwards;
    pointer-events: none;
}

@keyframes aether-nav-in {
    from { opacity: 0; transform: translateY(-14px); }
    to { opacity: 1; transform: none; }
}

@keyframes aether-page-out {
    to { opacity: 0; transform: translateY(8px); filter: blur(2px); }
}

@keyframes aether-ambient-drift {
    from { transform: translate3d(-4%, -2%, 0) scale(.96); }
    to { transform: translate3d(5%, 4%, 0) scale(1.08); }
}

@keyframes aether-orbit-float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-13px) rotate(2deg); }
}

@keyframes aether-orbit-pulse {
    0%, 100% { opacity: .68; transform: scale(.82); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes aether-signal-scan {
    0%, 100% { opacity: .3; translate: -8% 0; }
    50% { opacity: 1; translate: 8% 0; }
}

@media (max-width: 900px) {
    .aether-page-hero { grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; }
    .aether-public-plans .aether-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aether-servers-page .aether-server-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .aether-page-story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aether-page-story-card-wide { grid-column: 1 / -1; }
    .aether-page-text-band, .aether-faq-contact { grid-template-columns: 1fr; }
    .aether-faq-contact .aether-pricing-cta { justify-self: start; }
}

@media (max-width: 760px) {
    .aether-page-hero { grid-template-columns: 1fr; min-height: 0; padding: 54px 0 24px; }
    .aether-page-hero-copy { max-width: none; }
    .aether-page-hero-copy h1 { font-size: clamp(42px, 12vw, 64px); }
    .aether-page-orbit, .aether-page-signal, .aether-page-price-orbit, .aether-page-question-mark { width: min(100%, 300px); min-height: 220px; margin: 6px auto 0; }
    .aether-page-question-mark { font-size: 120px; }
    .aether-page-section-head { align-items: flex-start; flex-direction: column; }
    .aether-servers-page { padding: 22px 16px; }
    .aether-servers-page .aether-server-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aether-faq-list { margin-bottom: 48px; }
    .aether-page-mini-grid, .aether-plan-notes { grid-template-columns: 1fr; }
    .aether-page-story-grid { grid-template-columns: 1fr; }
    .aether-page-story-card-wide { grid-column: auto; }
    .aether-page-text-band, .aether-faq-contact { margin: 32px 0 48px; padding: 24px 18px; }
}

@media (max-width: 560px) {
    .aether-public-plans .aether-plan-grid { grid-template-columns: 1fr; }
    .aether-page-hero-copy p { font-size: 16px; }
    .aether-page-hero-copy .aether-hero-actions { gap: 10px; }
    .aether-page-hero-copy .aether-hero-actions a { width: 100%; }
    .aether-faq-list details { padding-inline: 16px; }
    .aether-faq-list summary { font-size: 15px; }
    .aether-faq-list details p { margin-right: 0; font-size: 14px; }
}

@media (max-width: 620px) {
    .aether-site .aether-nav {
        align-items: center;
        gap: 12px;
        padding: 12px 0 10px;
    }

    .aether-site .aether-nav nav {
        display: flex;
        order: 3;
        width: 100%;
        gap: 5px;
        overflow-x: auto;
        scrollbar-width: none;
    }

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

    .aether-site .aether-nav nav a {
        min-height: 38px;
        flex: 0 0 auto;
        padding: 0 10px;
        font-size: 12px;
    }

    .aether-site .aether-nav nav a::after { bottom: 1px; }

    .aether-site .aether-nav-actions { gap: 6px; }

    .aether-site .aether-nav-actions a {
        min-width: 0;
        min-height: 38px;
        padding: 7px 10px;
        font-size: 12px;
    }
}

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

/* Public interaction refinement: open layout, quiet hover states, and smooth FAQ rows. */
.aether-site .aether-nav nav a,
.aether-site .aether-nav nav a:hover,
.aether-site .aether-nav nav a:focus-visible,
.aether-site .aether-nav nav a.active {
    background: transparent;
    box-shadow: none;
    transform: none;
    outline: none;
    outline-offset: 0;
}

.aether-site .aether-nav nav a.active {
    border-bottom: 0;
    padding-bottom: 0;
}

.aether-site .aether-nav nav a:focus-visible::after {
    transform: scaleX(1);
}

.aether-site .aether-tier-switch {
    gap: 0;
    border-left: 1px solid rgba(126, 111, 194, .24);
    border-right: 1px solid rgba(126, 111, 194, .24);
    border-top: 1px solid rgba(126, 111, 194, .24);
    border-bottom: 1px solid rgba(126, 111, 194, .24);
}

.aether-site .aether-tier-switch button,
.aether-site .aether-tier-switch button:hover,
.aether-site .aether-tier-switch button.active,
.aether-site .aether-tier-switch button.active:hover {
    position: relative;
    min-height: 74px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    outline: none;
    transition: color .2s ease, background .2s ease;
}

.aether-site .aether-tier-switch button + button {
    border-left: 1px solid rgba(126, 111, 194, .18);
}

.aether-site .aether-tier-switch button:hover {
    color: #fff;
    background: rgba(126, 111, 194, .07);
}

.aether-site .aether-tier-switch button.active {
    background: linear-gradient(90deg, rgba(211, 55, 255, .13), rgba(61, 147, 255, .06));
}

.aether-site .aether-tier-switch button.active::after {
    content: "";
    position: absolute;
    right: 18%;
    bottom: -1px;
    left: 18%;
    height: 2px;
    background: linear-gradient(90deg, #df2cd7, #3d93ff);
}

.aether-site .aether-tier-switch button:focus-visible::after {
    right: 8%;
    left: 8%;
}

.aether-site .aether-month-card {
    padding-right: 42px;
    padding-left: 42px;
    border: 1px solid rgba(126, 111, 194, .22);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(16, 14, 55, .42), rgba(9, 9, 32, .16));
    box-shadow: none;
}

.aether-site .aether-server-list span,
.aether-site .aether-server-list span:hover,
.aether-site .aether-server-list span:focus-visible {
    overflow: visible;
    border-bottom-color: rgba(126, 111, 194, .18);
    background: transparent;
    box-shadow: none;
    transform: none;
    filter: none;
}

.aether-site .aether-server-list span:hover strong,
.aether-site .aether-server-list span:focus-visible strong {
    color: inherit;
}

.aether-site .aether-page-story-flow {
    overflow: visible;
}

.aether-site .aether-story-panel,
.aether-site .aether-story-panel:first-child,
.aether-site .aether-story-panel + .aether-story-panel {
    border-left: 1px solid rgba(126, 111, 194, .18);
}

.aether-site .aether-story-panel:first-child { border-left: 0; }
.aether-site .aether-story-panel + .aether-story-panel {
    padding-left: 28px;
}

.aether-site .aether-servers-page {
    border-bottom: 0;
}

.aether-site .aether-server-story-flow {
    border-top: 0;
}

.aether-site .aether-how > div,
.aether-site .aether-page-how > div {
    margin-top: 36px;
}

.aether-site .aether-faq-list details > p {
    max-height: 0;
    margin: 0 44px 0 4px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height .34s ease, margin .34s ease, opacity .22s ease, transform .34s ease;
}

.aether-site .aether-faq-list details.is-expanded > p {
    max-height: 260px;
    margin: -2px 44px 22px 4px;
    opacity: 1;
    transform: none;
}

.aether-site .aether-faq-list details.is-expanded summary::after {
    transform: rotate(45deg);
}

.aether-site .aether-faq-list details:not(.is-expanded) summary::after {
    transform: none;
}

@media (max-width: 760px) {
    .aether-site .aether-how > div,
    .aether-site .aether-page-how > div { margin-top: 26px; }
    .aether-site .aether-story-panel + .aether-story-panel { padding-left: 0; }
    .aether-site .aether-story-panel,
    .aether-site .aether-story-panel:first-child { border-left: 0; }
    .aether-site .aether-month-card { padding-right: 18px; padding-left: 18px; }
}

@media (max-width: 560px) {
    .aether-site .aether-faq-list details > p,
    .aether-site .aether-faq-list details.is-expanded > p { margin-right: 0; }
}

@media (max-width: 760px) {
    .aether-site .aether-tier-switch { grid-template-columns: 1fr; }
    .aether-site .aether-tier-switch button + button {
        border-top: 1px solid rgba(126, 111, 194, .18);
        border-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aether-site .aether-faq-list details > p,
    .aether-site .aether-faq-list details.is-expanded > p {
        transition: none;
        transform: none;
    }
}

/* Public editorial refresh: restrained layouts, useful text and no decorative placeholders. */
.aether-motion-enabled .aether-hero-copy[data-reveal],
.aether-motion-enabled .aether-page-hero-copy[data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
}

.aether-motion-enabled .aether-hero-copy[data-reveal] > *,
.aether-motion-enabled .aether-page-hero-copy[data-reveal] > * {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .24s ease, transform .24s cubic-bezier(.22, 1, .36, 1);
    transition-delay: 40ms;
}

.aether-motion-enabled .aether-hero-copy[data-reveal].is-visible > *,
.aether-motion-enabled .aether-page-hero-copy[data-reveal].is-visible > * {
    opacity: 1;
    transform: none;
}

.aether-motion-enabled .aether-hero-copy[data-reveal] > h1,
.aether-motion-enabled .aether-page-hero-copy[data-reveal] > h1 {
    transition-delay: 0ms;
}

.aether-motion-enabled .aether-hero-copy[data-reveal] .aether-hero-line,
.aether-motion-enabled .aether-page-hero-copy[data-reveal] .aether-hero-line {
    display: block;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .26s ease, transform .26s cubic-bezier(.22, 1, .36, 1);
    transition-delay: calc(70ms + (var(--line-index, 0) * 130ms));
}

.aether-motion-enabled .aether-hero-copy[data-reveal].is-visible .aether-hero-line,
.aether-motion-enabled .aether-page-hero-copy[data-reveal].is-visible .aether-hero-line {
    opacity: 1;
    transform: none;
}

/* Keep the landing headline in its final position on first paint. */
.aether-motion-enabled .aether-hero-copy--stable[data-reveal],
.aether-motion-enabled .aether-hero-copy--stable[data-reveal] > *,
.aether-motion-enabled .aether-hero-copy--stable[data-reveal] .aether-hero-line {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none !important;
    transition-delay: 0ms !important;
}

.aether-motion-enabled .aether-hero-copy--stable[data-reveal] .aether-hero-line {
    display: block;
}

.aether-hero {
    grid-template-columns: minmax(0, 780px);
    min-height: 560px;
    padding: 42px 0 54px;
}

.aether-hero-copy,
.aether-page-hero-copy {
    max-width: 760px;
    padding-left: 0;
    border-left: 0;
}

.aether-page-hero {
    grid-template-columns: minmax(0, 780px);
    min-height: 360px;
    padding: 64px 0 46px;
}

.aether-page-hero::before {
    inset: 0 -8% 0 -6%;
    opacity: .72;
}

.aether-page-orbit,
.aether-page-signal,
.aether-page-price-orbit,
.aether-page-question-mark {
    display: none !important;
}

.aether-feature-list {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 42px;
    margin-top: 18px;
    border-top: 1px solid rgba(126, 111, 194, .28);
}

.aether-feature-list article,
.aether-feature-page-list article {
    min-height: 144px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-content: center;
    gap: 6px 18px;
    padding: 24px 0;
    border: 0;
    border-bottom: 1px solid rgba(126, 111, 194, .2);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.aether-feature-list article:hover,
.aether-feature-page-list article:hover {
    transform: none;
    border-color: rgba(95, 224, 255, .42);
    background: transparent;
    box-shadow: none;
}

.aether-feature-list article i,
.aether-feature-page-list article i {
    grid-row: 1 / span 2;
    margin-top: 2px;
    color: #65edff;
    font-size: 18px;
    font-style: normal;
    font-weight: 800;
}

.aether-feature-list article strong,
.aether-feature-page-list article strong {
    color: #fff;
    font-size: 18px;
}

.aether-feature-list article span,
.aether-feature-page-list article span {
    color: #aaa6c3;
    line-height: 1.55;
}

.aether-inline-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 28px 0 30px;
    border-top: 1px solid rgba(126, 111, 194, .22);
    border-bottom: 1px solid rgba(126, 111, 194, .22);
    border-left: 1px solid rgba(126, 111, 194, .22);
    border-right: 1px solid rgba(126, 111, 194, .22);
    border-radius: var(--aether-card-radius, 14px);
    overflow: hidden;
}

.aether-inline-benefits p {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 18px 22px;
    border-right: 1px solid rgba(126, 111, 194, .2);
}

.aether-inline-benefits p:first-child { padding-left: 22px; }
.aether-inline-benefits p:last-child { border-right: 0; }
.aether-inline-benefits strong { color: #fff; }
.aether-inline-benefits span { color: #aaa6c3; font-size: 14px; line-height: 1.45; }

.aether-page-story-flow {
    display: grid;
    grid-template-columns: 1.4fr .8fr .8fr;
    gap: 0;
    margin: 46px 0 26px;
    border-top: 1px solid rgba(126, 111, 194, .24);
    border-bottom: 1px solid rgba(126, 111, 194, .24);
}

.aether-server-story-flow { grid-template-columns: 1.4fr repeat(3, .8fr); }

.aether-story-panel {
    min-height: 196px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 26px 24px;
    border: 0;
    border-left: 1px solid rgba(126, 111, 194, .2);
    border-radius: 0;
    background: transparent;
}

.aether-story-panel:first-child { border-left: 0; padding-left: 0; }
.aether-story-panel-wide { justify-content: flex-start; }
.aether-story-panel h2 { margin: 8px 0 2px; color: #fff; font-size: clamp(25px, 3vw, 36px); line-height: 1.12; }
.aether-story-panel p,
.aether-story-panel span { margin: 0; color: #aaa6c3; line-height: 1.65; }
.aether-story-panel strong { color: #fff; font-size: 18px; }

.aether-page-note-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(126, 111, 194, .22);
}

.aether-page-note-list article {
    padding: 24px 24px 24px 0;
    border: 0;
    border-right: 1px solid rgba(126, 111, 194, .2);
    border-radius: 0;
    background: transparent;
}

.aether-page-note-list article + article { padding-left: 24px; }
.aether-page-note-list article:last-child { border-right: 0; }
.aether-page-note-list strong { display: block; margin-bottom: 10px; color: #fff; font-size: 18px; }
.aether-page-note-list p { margin: 0; color: #aaa6c3; line-height: 1.65; }

.aether-plan-list {
    border-top: 1px solid rgba(126, 111, 194, .28);
}

.aether-plan-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(150px, .85fr) minmax(150px, .85fr) minmax(260px, 1.7fr) auto;
    align-items: center;
    gap: 24px;
    min-height: 102px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(126, 111, 194, .2);
    transition: background .2s ease, border-color .2s ease, padding .2s ease;
}

.aether-plan-row:hover,
.aether-plan-row.is-popular {
    padding-inline: 16px;
    border-color: rgba(95, 224, 255, .42);
    background: linear-gradient(90deg, rgba(95, 224, 255, .07), rgba(223, 44, 215, .06), transparent 82%);
}

.aether-plan-row-name,
.aether-plan-row-price { display: grid; gap: 6px; }
.aether-plan-tier { color: #c16dff; font-size: 20px; font-weight: 800; }
.aether-plan-tag { width: fit-content; color: #8beab7; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.aether-plan-row-price { display: flex; align-items: baseline; gap: 8px; }
.aether-plan-row-price strong { color: #fff; font-size: 30px; line-height: 1; }
.aether-plan-row-price span { color: #aaa6c3; }
.aether-plan-row p { margin: 0; color: #aaa6c3; line-height: 1.55; }
.aether-plan-row a { width: fit-content; min-width: 100px; color: #fff; border-bottom: 1px solid rgba(95, 224, 255, .6); padding: 8px 0; font-weight: 800; text-align: center; }
.aether-plan-row a:hover { color: #65edff; }

.aether-plan-notes {
    gap: 0;
    margin: 42px 0 20px;
    border-top: 1px solid rgba(126, 111, 194, .22);
}

.aether-plan-notes article {
    min-height: 0;
    padding: 24px 24px 24px 0;
    border: 0;
    border-right: 1px solid rgba(126, 111, 194, .2);
    border-radius: 0;
    background: transparent;
}

.aether-plan-notes article + article { padding-left: 24px; }
.aether-plan-notes article:last-child { border-right: 0; }

.aether-servers,
.aether-servers-page {
    border: 0;
    border-top: 1px solid rgba(126, 111, 194, .26);
    border-bottom: 1px solid rgba(126, 111, 194, .26);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.aether-server-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 24px;
    margin: 20px 0 22px;
}

.aether-server-list span {
    min-height: 64px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    grid-template-rows: none;
    align-items: center;
    justify-items: start;
    gap: 10px;
    padding: 14px 0;
    border: 0;
    border-bottom: 1px solid rgba(126, 111, 194, .18);
    border-radius: 0;
    background: transparent;
}

.aether-server-list span:hover {
    border-color: rgba(95, 224, 255, .42);
    background: transparent;
    box-shadow: none;
    transform: none;
}

.aether-server-list strong { font-size: 15px; }
.aether-server-list img { grid-column: 1; }
.aether-server-list small { grid-column: 3; }
.aether-servers-page { margin-top: 20px; padding: 32px 0; }
.aether-servers-page > a { margin-left: 0; }

.aether-page-text-band,
.aether-faq-contact {
    border: 0;
    border-top: 1px solid rgba(126, 111, 194, .24);
    border-bottom: 1px solid rgba(126, 111, 194, .24);
    border-radius: 0;
    background: transparent;
    padding-inline: 0;
}

.aether-faq-list {
    border-top: 1px solid rgba(126, 111, 194, .24);
}

.aether-faq-list details,
.aether-faq-list details[open] {
    border: 0;
    border-bottom: 1px solid rgba(126, 111, 194, .2);
    border-radius: 0;
    padding: 0;
    background: transparent;
    transform: none;
}

.aether-faq-list summary { min-height: 76px; padding: 0 4px; }
.aether-faq-list details p { margin: -2px 44px 22px 4px; }

@media (max-width: 900px) {
    .aether-plan-row { grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) auto; }
    .aether-plan-row p { grid-column: 1 / -1; }
    .aether-page-story-flow,
    .aether-server-story-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aether-story-panel-wide { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .aether-hero { min-height: 0; padding: 34px 0 44px; }
    .aether-hero-copy,
    .aether-page-hero-copy { padding-left: 0; }
    .aether-feature-list,
    .aether-inline-benefits,
    .aether-page-note-list,
    .aether-plan-notes { grid-template-columns: 1fr; }
    .aether-inline-benefits p,
    .aether-inline-benefits p:first-child { padding: 16px 0; border-right: 0; border-bottom: 1px solid rgba(126, 111, 194, .2); }
    .aether-inline-benefits p:last-child { border-bottom: 0; }
    .aether-page-note-list article,
    .aether-page-note-list article + article,
    .aether-plan-notes article,
    .aether-plan-notes article + article { padding: 20px 0; border-right: 0; border-bottom: 1px solid rgba(126, 111, 194, .2); }
    .aether-page-note-list article:last-child,
    .aether-plan-notes article:last-child { border-bottom: 0; }
    .aether-plan-row { grid-template-columns: 1fr auto; gap: 10px 18px; }
    .aether-plan-row p { grid-column: 1 / -1; }
    .aether-plan-row a { justify-self: end; }
    .aether-page-story-flow,
    .aether-server-story-flow { grid-template-columns: 1fr; }
    .aether-story-panel,
    .aether-story-panel:first-child { min-height: 0; padding: 22px 0; border-left: 0; border-bottom: 1px solid rgba(126, 111, 194, .2); }
    .aether-story-panel:last-child { border-bottom: 0; }
    .aether-server-list,
    .aether-servers-page .aether-server-list { grid-template-columns: 1fr; }
    .aether-servers-page { padding: 24px 0; }
}

@media (max-width: 560px) {
    .aether-plan-row { grid-template-columns: 1fr; }
    .aether-plan-row a { justify-self: start; }
    .aether-server-list span { grid-template-columns: 28px minmax(0, 1fr); }
    .aether-server-list small { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
    .aether-plan-row,
    .aether-motion-enabled .aether-hero-copy[data-reveal] > *,
    .aether-motion-enabled .aether-page-hero-copy[data-reveal] > *,
    .aether-motion-enabled .aether-hero-copy[data-reveal] .aether-hero-line,
    .aether-motion-enabled .aether-page-hero-copy[data-reveal] .aether-hero-line {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Platform support strip: clear marks without white image tiles. */
.aether-site .aether-platforms-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 36px;
    margin: 42px 0 0;
    padding: 26px 0;
    border-top: 1px solid rgba(126, 111, 194, .24);
    border-bottom: 1px solid rgba(126, 111, 194, .24);
}

.aether-platforms-copy {
    max-width: 620px;
}

.aether-platforms-copy h2 {
    margin: 8px 0 10px;
    color: #fff;
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.12;
}

.aether-platforms-copy > p:last-child {
    max-width: 600px;
    margin: 0;
    color: #aaa6c3;
    line-height: 1.65;
}

.aether-platform-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 22px;
}

.aether-platform-item {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-width: 64px;
    color: #c7c3da;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
}

.aether-platform-item img {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .92;
    transition: opacity .18s ease, transform .18s ease, filter .18s ease;
}

.aether-platform-item:hover img {
    opacity: 1;
    transform: translateY(-2px);
    filter: brightness(0) saturate(100%) invert(74%) sepia(76%) saturate(1762%) hue-rotate(159deg) brightness(103%) contrast(101%);
}

@media (max-width: 760px) {
    .aether-site .aether-platforms-band {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 30px;
        padding: 22px 0;
    }

    .aether-platform-list {
        justify-content: flex-start;
        gap: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aether-platform-item img {
        transition: none;
    }
}

/* Public news: an editorial section that follows the same quiet rhythm as the landing page. */
.aether-site .aether-news-band {
    margin: 42px 0 0;
    padding: 28px 0 0;
    border-top: 1px solid rgba(126, 111, 194, .24);
    border-bottom: 1px solid rgba(126, 111, 194, .24);
}

.aether-news-head {
    display: block;
    padding-bottom: 24px;
}

.aether-news-head .aether-section-kicker {
    margin: 0;
    text-align: left;
}

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

.aether-news-card {
    min-height: 0;
    padding: 0 24px 28px 0;
    border-right: 1px solid rgba(126, 111, 194, .2);
}

.aether-news-card + .aether-news-card {
    padding-left: 24px;
}

.aether-news-card:last-child {
    border-right: 0;
}

.aether-news-card-summary {
    display: grid;
    align-content: start;
    gap: 12px;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    outline: 0;
}

.aether-news-card-summary:focus-visible {
    border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(112, 202, 255, .7);
}

.aether-news-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    color: #777493;
    font-size: 10px;
}

.aether-news-card-meta span {
    color: #70caff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.aether-news-card.success .aether-news-card-meta span { color: #78ddb1; }
.aether-news-card.warning .aether-news-card-meta span { color: #e5c27c; }

.aether-news-card-title {
    display: block;
    margin: 0;
    color: #fff;
    font-size: 18px;
    line-height: 1.28;
}

.aether-news-card-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
    color: #777493;
    font-size: 11px;
}

.aether-news-card-hint b {
    display: block;
    color: #8bd5ff;
    font-size: 17px;
    font-weight: 500;
    line-height: 1;
    transition: transform .2s ease;
}

.aether-news-card:hover .aether-news-cover {
    transform: scale(1.02);
}

.aether-news-card:hover .aether-news-card-hint b,
.aether-news-card-summary:focus-visible .aether-news-card-hint b {
    transform: translateX(3px);
}

.aether-news-richtext {
    max-width: none;
    color: #aaa6c3;
    font-size: 13px;
    line-height: 1.65;
}

.aether-news-richtext p {
    margin: 0 0 12px;
}

.aether-news-richtext p:last-child {
    margin-bottom: 0;
}

.aether-news-richtext h1,
.aether-news-richtext h2,
.aether-news-richtext h3 {
    margin: 18px 0 9px;
    color: #fff;
    line-height: 1.2;
}

.aether-news-richtext ul,
.aether-news-richtext ol {
    margin: 10px 0 14px;
    padding-left: 22px;
}

.aether-news-richtext img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.aether-public-news-modal[hidden] {
    display: none;
}

.aether-public-news-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 20px;
}

.aether-public-news-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 5, 18, .78);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity .18s ease;
}

.aether-public-news-dialog {
    position: relative;
    width: min(720px, 100%);
    max-height: min(760px, 90vh);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(126, 111, 194, .38);
    border-radius: 18px;
    background: linear-gradient(160deg, #111536, #080a21 72%);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .48);
    opacity: 0;
    transform: translateY(10px) scale(.985);
    transition: opacity .2s ease, transform .24s cubic-bezier(.22, .8, .28, 1);
}

.aether-public-news-modal.show .aether-public-news-modal-backdrop {
    opacity: 1;
}

.aether-public-news-modal.show .aether-public-news-dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.aether-public-news-dialog-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 24px 12px;
}

.aether-public-news-dialog-close {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border: 1px solid rgba(126, 111, 194, .34);
    border-radius: 9px;
    background: rgba(61, 147, 255, .06);
    color: #a9c5e5;
    font: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.aether-public-news-dialog-close:hover,
.aether-public-news-dialog-close:focus-visible {
    border-color: rgba(112, 202, 255, .64);
    background: rgba(61, 147, 255, .14);
    color: #fff;
    outline: 0;
}

.aether-public-news-dialog-body {
    overflow: auto;
    padding: 12px 24px 28px;
    scrollbar-width: thin;
    scrollbar-color: rgba(117, 142, 255, .86) transparent;
}

.aether-public-news-dialog-body::-webkit-scrollbar {
    width: 9px;
}

.aether-public-news-dialog-body::-webkit-scrollbar-track {
    background: transparent;
}

.aether-public-news-dialog-body::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: linear-gradient(180deg, #72d8ff, #8f6dff 52%, #ea51d3) border-box;
    background-clip: padding-box;
}

.aether-public-news-dialog-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #9ae6ff, #b09aff 52%, #ff83e5) border-box;
    background-clip: padding-box;
}

.aether-public-news-modal-item[hidden] {
    display: none;
}

.aether-public-news-modal-item h3 {
    margin: 8px 0 18px;
    color: #fff;
    font-size: 25px;
    line-height: 1.2;
}

.aether-public-news-modal-item > p {
    margin: 0;
    color: #aaa6c3;
    font-size: 14px;
    line-height: 1.7;
}

.aether-public-news-modal-cover {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(420px, 50vh);
    margin: 0 0 20px;
    border: 1px solid rgba(126, 111, 194, .24);
    border-radius: 12px;
    object-fit: contain;
    object-position: center;
    background: rgba(6, 18, 33, .72);
}

.aether-public-news-modal-open {
    overflow: hidden;
}

.aether-news-lightbox[hidden] {
    display: none;
}

.aether-news-lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: clamp(16px, 4vw, 48px);
}

.aether-news-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 5, 18, .9);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity .18s ease;
}

.aether-news-lightbox-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    max-width: 100%;
    max-height: 100%;
    opacity: 0;
    transform: translateY(8px) scale(.98);
    transition: opacity .2s ease, transform .22s cubic-bezier(.22, .8, .28, 1);
}

.aether-news-lightbox.show .aether-news-lightbox-backdrop {
    opacity: 1;
}

.aether-news-lightbox.show .aether-news-lightbox-dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.aether-news-lightbox-image {
    display: block;
    width: auto;
    max-width: min(1200px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    border: 1px solid rgba(126, 111, 194, .46);
    border-radius: 14px;
    object-fit: contain;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .58);
}

.aether-news-lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(126, 111, 194, .48);
    border-radius: 10px;
    background: #101633;
    color: #c7d9ee;
    font: inherit;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.aether-news-lightbox-close:hover,
.aether-news-lightbox-close:focus-visible {
    border-color: rgba(112, 202, 255, .72);
    background: #16244b;
    color: #fff;
    outline: 0;
}

.aether-public-news-dialog-body img {
    cursor: zoom-in;
}

.aether-news-lightbox-open {
    overflow: hidden;
}

@media (max-width: 620px) {
    .aether-news-lightbox {
        padding: 16px;
    }

    .aether-news-lightbox-image {
        max-width: calc(100vw - 32px);
        max-height: calc(100vh - 32px);
        border-radius: 11px;
    }

    .aether-news-lightbox-close {
        top: -12px;
        right: -4px;
    }
}

.aether-news-card h3,
.aether-news-empty h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 18px;
    line-height: 1.28;
}

.aether-news-card p,
.aether-news-empty p {
    max-width: 420px;
    margin: 0;
    color: #aaa6c3;
    font-size: 13px;
    line-height: 1.6;
}

.aether-news-cover {
    display: block;
    width: 100%;
    height: 132px;
    margin: 0;
    border: 0;
    border-radius: 11px;
    object-fit: cover;
    transition: transform .22s ease;
}

.aether-news-cover-wrap {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(126, 111, 194, .2);
    border-radius: 12px;
    background: rgba(9, 10, 34, .72);
}

.aether-news-empty {
    display: grid;
    grid-template-columns: 180px minmax(0, 1.15fr) minmax(220px, .85fr);
    align-items: stretch;
    min-height: 214px;
    margin-bottom: 28px;
    overflow: hidden;
    border: 1px solid rgba(126, 111, 194, .24);
    border-radius: 14px;
    background: rgba(9, 10, 34, .62);
}

.aether-news-empty-visual {
    display: grid;
    align-content: space-between;
    gap: 16px;
    padding: 24px;
    border-right: 1px solid rgba(126, 111, 194, .2);
    background: rgba(61, 147, 255, .045);
}

.aether-news-empty-visual > span {
    color: #8bd5ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
}

.aether-news-empty-visual strong {
    color: #fff;
    font-size: 66px;
    letter-spacing: -.08em;
    line-height: .9;
}

.aether-news-empty-visual small {
    color: #8e8aaa;
    font-size: 11px;
}

.aether-news-empty-copy {
    display: grid;
    align-content: center;
    padding: 24px 30px;
}

.aether-news-empty-copy .aether-news-card-meta {
    justify-content: flex-start;
    margin-bottom: 12px;
}

.aether-news-empty-list {
    display: grid;
    align-content: center;
    gap: 13px;
    padding: 24px 28px;
    border-left: 1px solid rgba(126, 111, 194, .2);
}

.aether-news-empty-list span {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #bdb8d5;
    font-size: 12px;
}

.aether-news-empty-list i {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: #70caff;
    box-shadow: 0 0 8px rgba(112, 202, 255, .45);
}

.aether-news-page .aether-news-card:nth-child(3n) {
    border-right: 0;
}

.aether-news-page .aether-news-card:nth-child(n + 4) {
    padding-top: 28px;
    border-top: 1px solid rgba(126, 111, 194, .2);
}

@media (max-width: 900px) {
    .aether-news-head {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 760px) {
    .aether-site .aether-news-band {
        margin-top: 30px;
        padding-top: 22px;
    }

    .aether-news-grid {
        grid-template-columns: 1fr;
    }

    .aether-news-card,
    .aether-news-card + .aether-news-card {
        min-height: 0;
        padding: 20px 0;
        border-right: 0;
        border-bottom: 1px solid rgba(126, 111, 194, .2);
    }

    .aether-news-card:last-child {
        border-bottom: 0;
    }

    .aether-news-page .aether-news-card:nth-child(n + 4) {
        padding-top: 20px;
        border-top: 0;
    }

    .aether-news-empty {
        grid-template-columns: 130px minmax(0, 1fr);
        min-height: 190px;
        margin-bottom: 24px;
    }

    .aether-news-empty-visual {
        padding: 18px;
    }

    .aether-news-empty-visual strong {
        font-size: 52px;
    }

    .aether-news-empty-copy {
        padding: 20px;
    }

    .aether-news-empty-list {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 16px 20px;
        border-top: 1px solid rgba(126, 111, 194, .2);
        border-left: 0;
    }
}

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

    .aether-news-empty-visual {
        min-height: 150px;
        border-right: 0;
        border-bottom: 1px solid rgba(126, 111, 194, .2);
    }

    .aether-news-empty-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .aether-public-news-modal {
        padding: 0;
    }

    .aether-public-news-dialog {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .aether-public-news-dialog-head,
    .aether-public-news-dialog-body {
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* Public card system: use one radius for real panels, keep editorial separators flat. */
.aether-site {
    --aether-card-radius: 14px;
}

.aether-site .aether-tier-switch,
.aether-site .aether-month-card,
.aether-site .aether-pricing-summary,
.aether-site .aether-feature-page-grid article,
.aether-site .aether-page-story-card,
.aether-site .aether-page-mini-grid article,
.aether-site .aether-page-note-list article,
.aether-site .aether-plan-notes article,
.aether-site .aether-page-text-band,
.aether-site .aether-faq-contact,
.aether-site .aether-faq-list details {
    border-radius: var(--aether-card-radius);
}

.aether-site .aether-tier-switch {
    overflow: hidden;
}

.aether-site .aether-tier-switch button:first-child {
    border-radius: var(--aether-card-radius) 0 0 var(--aether-card-radius);
}

.aether-site .aether-tier-switch button:last-child {
    border-radius: 0 var(--aether-card-radius) var(--aether-card-radius) 0;
}

.aether-site .aether-tier-switch button.active::after {
    bottom: 0;
}

@media (max-width: 760px) {
    .aether-site .aether-tier-switch button:first-child {
        border-radius: var(--aether-card-radius) var(--aether-card-radius) 0 0;
    }

    .aether-site .aether-tier-switch button:last-child {
        border-radius: 0 0 var(--aether-card-radius) var(--aether-card-radius);
    }
}

/* Pricing summary: a single checkout rail that belongs to the public card system. */
.aether-site .aether-pricing-summary {
    position: relative;
    grid-template-columns: minmax(250px, 1fr) minmax(280px, 1fr) minmax(210px, .72fr);
    gap: 0;
    align-items: stretch;
    margin-top: 22px;
    padding: 0;
    overflow: hidden;
    border-color: rgba(126, 111, 194, .3);
    background: rgba(9, 10, 34, .78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.aether-site .aether-pricing-summary::after {
    display: none;
}

.aether-site .aether-pricing-summary > * {
    position: relative;
    z-index: 1;
}

.aether-site .aether-pricing-summary > * + * {
    border-left: 0;
    padding-left: 26px;
}

.aether-site .aether-summary-price {
    gap: 7px;
    padding: 22px 26px 22px 30px;
}

.aether-site .aether-summary-price::before {
    display: none;
}

.aether-site .aether-summary-label {
    padding: 0;
    border: 0;
    color: #bdb7df;
    background: transparent;
    font-size: 10px;
    letter-spacing: .1em;
}

.aether-site .aether-summary-label::before {
    display: none;
}

.aether-site .aether-summary-price strong {
    font-size: clamp(34px, 3vw, 42px);
    letter-spacing: -.04em;
}

.aether-site .aether-summary-price p {
    color: #c9c4e7;
    font-size: 12px;
    letter-spacing: .01em;
}

.aether-site .aether-summary-devices {
    display: grid;
    align-content: center;
    gap: 6px;
    min-height: 0;
    padding: 22px 26px;
}

.aether-site .aether-summary-devices > span {
    color: #aaa6c3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.aether-site .aether-summary-devices strong {
    color: #fff;
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.1;
}

.aether-site .aether-summary-devices small {
    color: #aaa6c3;
    font-size: 11px;
    line-height: 1.45;
}

.aether-site .aether-summary-action {
    display: grid;
    align-content: center;
    gap: 0;
    padding: 18px;
    background: transparent;
}

.aether-site .aether-pricing-cta {
    min-height: 50px;
    border: 1px solid rgba(104, 176, 238, .38);
    border-radius: 11px;
    color: #e6f3ff;
    background: rgba(61, 147, 255, .1);
    font-size: 13px;
    box-shadow: 0 6px 18px rgba(61, 147, 255, .1);
}

.aether-site .aether-pricing-cta::after {
    display: none;
}

.aether-site .aether-pricing-cta:hover,
.aether-site .aether-pricing-cta:focus-visible {
    border-color: rgba(104, 176, 238, .58);
    background: rgba(61, 147, 255, .16);
    box-shadow: 0 8px 22px rgba(61, 147, 255, .16);
}

@media (max-width: 900px) {
    .aether-site .aether-pricing-summary {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .aether-site .aether-pricing-summary > * + * {
        border-top: 0;
        border-left: 0;
        padding-top: 18px;
    }

    .aether-site .aether-summary-devices {
        padding: 18px 26px;
    }

    .aether-site .aether-summary-action {
        padding: 18px 26px 22px;
    }
}

/* FAQ: give the support context its own column and keep answers as editorial rows. */
.aether-site .aether-faq-layout {
    display: grid;
    grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
    align-items: start;
    gap: 56px;
    margin: 30px 0 72px;
}

.aether-site .aether-faq-aside {
    padding: 18px 42px 18px 0;
    border-right: 1px solid rgba(126, 111, 194, .24);
}

.aether-site .aether-faq-aside h2 {
    margin: 8px 0 14px;
    color: #fff;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.08;
}

.aether-site .aether-faq-aside > p:not(.aether-section-kicker) {
    margin: 0;
    color: #aaa6c3;
    line-height: 1.7;
}

.aether-site .aether-faq-brief {
    display: grid;
    gap: 18px;
    margin-top: 34px;
}

.aether-site .aether-faq-brief span {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 12px;
    align-items: baseline;
}

.aether-site .aether-faq-brief i {
    grid-row: span 2;
    color: #65edff;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: .08em;
}

.aether-site .aether-faq-brief b {
    color: #fff;
    font-size: 15px;
}

.aether-site .aether-faq-brief small {
    color: #aaa6c3;
    line-height: 1.45;
}

.aether-site .aether-faq-layout .aether-faq-list {
    max-width: none;
    margin: 0;
    gap: 0;
}

.aether-site .aether-faq-layout .aether-faq-list details,
.aether-site .aether-faq-layout .aether-faq-list details[open] {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    background: transparent;
    transform: none;
}

.aether-site .aether-faq-layout .aether-faq-list details:first-child {
    border-top: 1px solid rgba(126, 111, 194, .24);
}

.aether-site .aether-faq-layout .aether-faq-list details:last-child {
    border-bottom: 1px solid rgba(126, 111, 194, .24);
}

.aether-site .aether-faq-layout .aether-faq-list summary {
    min-height: 74px;
}

@media (max-width: 900px) {
    .aether-site .aether-faq-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 54px;
    }

    .aether-site .aether-faq-aside {
        padding: 0 0 28px;
        border-right: 0;
        border-bottom: 1px solid rgba(126, 111, 194, .24);
    }
}

/* FAQ expansion: animate the answer's real height without scroll anchoring jumps. */
.aether-site .aether-faq-layout,
.aether-site .aether-faq-list details,
.aether-site .aether-faq-contact,
.aether-site .aether-footer {
    overflow-anchor: none;
}

.aether-site .aether-faq-list .aether-faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows .34s cubic-bezier(.22, 1, .36, 1);
}

.aether-site .aether-faq-list details.is-expanded .aether-faq-answer {
    grid-template-rows: 1fr;
}

.aether-site .aether-faq-list .aether-faq-answer > p {
    min-height: 0;
    max-height: none;
    margin: 0 44px 0 4px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .22s ease, margin .34s ease, transform .34s ease;
}

.aether-site .aether-faq-list details.is-expanded .aether-faq-answer > p {
    margin: -2px 44px 22px 4px;
    opacity: 1;
    transform: none;
}

@media (max-width: 560px) {
    .aether-site .aether-faq-list .aether-faq-answer > p,
    .aether-site .aether-faq-list details.is-expanded .aether-faq-answer > p {
        margin-right: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aether-site .aether-faq-list .aether-faq-answer,
    .aether-site .aether-faq-list .aether-faq-answer > p {
        transition: none;
    }
}

/* Pricing tier switch: a restrained tap pulse and a tiny press response. */
.aether-site .aether-tier-switch button {
    isolation: isolate;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.aether-site .aether-tier-switch button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 48%, rgba(224, 79, 255, .24), rgba(95, 174, 255, .08) 34%, transparent 70%);
    opacity: 0;
    transform: scale(.72);
    pointer-events: none;
}

.aether-site .aether-tier-switch button > * {
    position: relative;
    z-index: 1;
}

.aether-site .aether-tier-switch button.active::after {
    z-index: 2;
}

.aether-site .aether-tier-switch button.is-switching::before {
    animation: aether-tier-tap .46s cubic-bezier(.22, 1, .36, 1);
}

.aether-site .aether-tier-switch button:active {
    transform: scale(.987) translateY(1px);
}

@keyframes aether-tier-tap {
    0% { opacity: 0; transform: scale(.72); }
    28% { opacity: 1; }
    100% { opacity: 0; transform: scale(1.16); }
}

@media (prefers-reduced-motion: reduce) {
    .aether-site .aether-tier-switch button.is-switching::before {
        animation: none;
    }

    .aether-site .aether-tier-switch button:active {
        transform: none;
    }
}

/* Hero actions: one compact control group that belongs to the composition. */
.aether-site .aether-hero-actions {
    width: fit-content;
    align-items: center;
    gap: 6px;
    margin-top: 30px;
    padding: 5px;
    border: 1px solid rgba(126, 111, 194, .22);
    border-radius: 18px;
    background: rgba(8, 9, 32, .42);
    box-shadow: 0 16px 42px rgba(16, 12, 56, .2);
}

.aether-site .aether-hero-actions a {
    width: auto;
    min-height: 50px;
    gap: 18px;
    padding: 0 21px;
    border-radius: 12px;
    transition: background .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease, color .22s ease;
}

.aether-site .aether-hero-actions .primary {
    min-width: 218px;
    border: 1px solid rgba(255, 255, 255, .1);
}

.aether-site .aether-hero-actions .secondary {
    min-width: 174px;
    border-color: transparent;
    background: transparent;
    color: #d8d2ef;
}

.aether-site .aether-hero-actions .secondary:hover {
    border-color: rgba(126, 111, 194, .28);
    background: rgba(126, 111, 194, .1);
    box-shadow: none;
}

.aether-site .aether-hero-actions a b {
    color: rgba(255, 255, 255, .78);
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    transition: transform .22s ease, color .22s ease;
}

.aether-site .aether-hero-actions a:hover b {
    color: #fff;
    transform: translate(2px, -2px);
}

.aether-site .aether-hero-actions-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin: 12px 0 0 14px;
    color: rgba(170, 166, 195, .82);
    font-size: 12px;
    letter-spacing: .01em;
}

.aether-site .aether-hero-actions-meta i {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #65edff;
    box-shadow: 0 0 12px rgba(101, 237, 255, .7);
}

@media (max-width: 560px) {
    .aether-site .aether-hero-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .aether-site .aether-hero-actions a,
    .aether-site .aether-hero-actions .primary,
    .aether-site .aether-hero-actions .secondary {
        width: 100%;
        min-width: 0;
    }

    .aether-site .aether-hero-actions-meta {
        margin-left: 4px;
        line-height: 1.4;
    }
}

/* Cabinet reconstruction: calmer hierarchy, restrained contrast, and consistent controls. */
.user-console-body {
    color: #e6edf6;
    background:
        radial-gradient(760px 420px at 82% 0%, rgba(62, 125, 190, 0.1), transparent 68%),
        radial-gradient(620px 360px at 10% 32%, rgba(28, 113, 153, 0.07), transparent 70%),
        #09111c;
}

.user-hub {
    grid-template-columns: 220px minmax(0, 1fr);
}

.user-hub-sidebar {
    gap: 20px;
    padding: 24px 14px 18px;
    border-right-color: rgba(148, 163, 184, 0.16);
    background: #0b141f;
    box-shadow: 12px 0 34px rgba(0, 0, 0, 0.14);
    backdrop-filter: none;
}

.user-hub-brand strong {
    font-size: 21px;
    letter-spacing: 0.02em;
}

.user-hub-brand b {
    color: #7db4e8;
}

.user-hub-nav {
    gap: 5px;
}

.user-hub-nav a,
.user-hub-sidebar-bottom a {
    min-height: 46px;
    border-radius: 11px;
    color: #9eafc2;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.user-hub-nav a i,
.user-hub-sidebar-bottom a i {
    color: #7f9bb8;
}

.user-hub-nav a:hover,
.user-hub-nav a.active,
.user-hub-sidebar-bottom a:hover {
    color: #f4f8fc;
    border-color: rgba(91, 157, 217, 0.28);
    background: rgba(57, 119, 174, 0.14);
    box-shadow: none;
    transform: none;
}

.user-hub-nav a.active i {
    color: #8dc6f5;
}

.user-hub-sidebar-bottom {
    gap: 10px;
}

.user-hub-sidebar-bottom span {
    color: #71849a;
    font-size: 12px;
}

.user-hub-main {
    max-width: 1460px;
    padding: 28px 34px 44px;
}

.user-hub-topbar {
    min-height: 0;
    padding-bottom: 22px;
    border-bottom-color: rgba(148, 163, 184, 0.14);
}

.user-hub-kicker {
    display: block;
    margin-bottom: 8px;
    color: #78a7d2;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.user-hub-topbar h1 {
    font-size: clamp(27px, 2.25vw, 36px);
    line-height: 1.15;
    letter-spacing: -.025em;
}

.user-hub-topbar h1 em {
    color: #dcecff;
}

.user-hub-topbar p {
    max-width: 720px;
    margin-top: 9px;
    color: #91a5ba;
    font-size: 15px;
    line-height: 1.5;
}

.user-hub-grid {
    gap: 18px;
    padding-top: 22px;
}

.user-hub-card {
    border-color: rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    background: linear-gradient(180deg, #101b29, #0d1723);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
}

.user-hub-card-head {
    margin-bottom: 16px;
}

.user-hub-card-head h3 {
    font-size: 18px;
    letter-spacing: -.01em;
}

.user-hub-card-head > span,
.user-hub-card-head > div,
.user-hub-subscription > span {
    color: #8599ae;
    font-size: 13px;
}

.user-hub-subscription-hero,
.user-hub-referral-bonus,
.user-hub-overview-grid article,
.user-hub-traffic-story,
.user-hub-tier-switch,
.user-hub-plan,
.user-hub-checkout-row,
.user-hub-checkout-account,
.user-hub-password-form,
.user-hub-telegram-bind,
.user-hub-payment-list article,
.user-hub-login-list article,
.user-support-list article,
.support-chat-messages,
.support-message,
.support-chat-form textarea,
.user-hub-app-choice-menu,
.user-hub-tariff-node {
    border-color: rgba(148, 163, 184, 0.16);
    background: #0d1825;
    box-shadow: none;
}

.user-hub-subscription-hero {
    gap: 16px;
    border-radius: 14px;
    padding: 20px;
}

.user-hub-plan-summary h2 {
    font-size: clamp(32px, 3vw, 44px);
}

.user-hub-plan-summary p,
.user-hub-subscription-copy p,
.user-hub-referral p,
.hub-support-card p {
    color: #9aadc1;
    font-size: 15px;
}

.user-hub-badge.active {
    color: #91e4bd;
    background: rgba(43, 166, 116, 0.13);
}

.user-hub-subscription-stat {
    border-left-color: rgba(148, 163, 184, 0.16);
}

.user-hub-subscription-icon,
.user-hub-subscription-icon.heart {
    border-color: rgba(99, 168, 225, 0.3);
    color: #83c4f1;
    background: rgba(57, 119, 174, 0.14);
}

.user-hub-subscription-stat > span:not(.user-hub-subscription-icon),
.user-hub-subscription-stat small {
    color: #879caf;
}

.user-hub-subscription-stat strong {
    color: #eaf2f9;
}

.user-hub-primary,
.user-hub-form .user-hub-primary {
    min-height: 48px;
    border-color: rgba(92, 164, 231, 0.44);
    border-radius: 10px;
    color: #f7fbff;
    background: #2e78c9;
    box-shadow: 0 8px 20px rgba(20, 86, 146, 0.2);
}

.user-hub-secondary,
.user-hub-field button {
    min-height: 48px;
    border-color: rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    color: #d6e2ee;
    background: #121f2e;
}

.user-hub-subscription-actions .user-hub-primary,
.user-hub-subscription-actions .user-hub-secondary {
    border-color: rgba(148, 163, 184, 0.18);
    border-radius: 11px;
    background: #111e2d;
    box-shadow: none;
}

.user-hub-subscription-actions .user-hub-primary {
    border-color: rgba(92, 164, 231, 0.34);
    background: #152b42;
}

.user-hub-subscription-actions .user-hub-primary::after,
.user-hub-subscription-actions .user-hub-secondary::after {
    color: #81b9e9;
}

.user-hub-subscription-actions i {
    border-radius: 10px;
    color: #8cc7f0;
    background: rgba(57, 119, 174, 0.16);
}

.user-hub-subscription-actions b {
    color: #eaf3fb;
}

.user-hub-subscription-actions small {
    color: #8fa4b9;
}

.user-hub-primary:hover,
.user-hub-secondary:hover,
.user-hub-field button:hover,
.user-hub-form button:hover,
.user-hub-plan:hover,
.user-hub-nav a:focus-visible,
.user-hub-sidebar-bottom a:focus-visible {
    border-color: rgba(111, 190, 250, 0.58);
    box-shadow: 0 0 0 3px rgba(73, 149, 218, 0.11);
    transform: translateY(-1px);
    filter: none;
}

.user-hub-app-downloads a,
.user-hub-app-download-choice,
.user-hub-app-download-disabled,
.user-hub-app-download-apple > span,
.user-hub-app-download-apple a {
    min-height: 40px;
    border-color: rgba(148, 163, 184, 0.18);
    border-radius: 10px;
    color: #d7e5f1;
    background: #111e2d;
}

.user-hub-app-downloads a:hover,
.user-hub-app-download-choice:hover,
.user-hub-app-download-choice[aria-expanded="true"],
.user-hub-app-download-apple a:hover {
    border-color: rgba(111, 190, 250, 0.48);
    background: #16283a;
    transform: none;
}

.user-hub-app-downloads img,
.user-hub-app-download-choice img,
.user-hub-app-download-disabled img,
.user-hub-app-download-apple img {
    padding: 2px;
    border-radius: 6px;
    background: transparent;
}

.user-hub-referral-bonus strong {
    color: #80c9ef;
}

.user-hub-mini-stats article,
.user-hub-settings-grid article,
.user-hub-referral-list article {
    border-color: rgba(148, 163, 184, 0.15);
    border-radius: 12px;
    background: #0e1a28;
}

.user-hub-mini-stats span,
.user-hub-settings-grid span,
.user-hub-referral-list small {
    color: #8ea3b8;
}

.user-hub-overview-grid article,
.user-hub-traffic-story {
    border-radius: 13px;
}

.user-hub-stat-icon,
.user-hub-traffic-story-icon,
.user-hub-traffic-story-icon.icon-movie,
.user-hub-traffic-story-icon.icon-video,
.user-hub-traffic-story-icon.icon-music,
.user-hub-traffic-story-icon.icon-image,
.user-hub-traffic-story-icon.icon-cloud,
.user-hub-traffic-story-icon.icon-map,
.user-hub-traffic-story-icon.icon-document,
.user-hub-traffic-story-icon.icon-call,
.user-hub-traffic-story-icon.icon-game {
    border-color: rgba(99, 168, 225, 0.28);
    border-radius: 11px;
    color: #86c7f0;
    background: rgba(57, 119, 174, 0.14);
    box-shadow: none;
}

.user-hub-tier-switch {
    border-radius: 12px;
    background: #0b1521;
}

.user-hub-tier {
    border-radius: 9px;
}

.user-hub-tier.selected,
.user-hub-plan.selected {
    border-color: rgba(92, 164, 231, 0.5);
    background: rgba(50, 116, 178, 0.2);
    box-shadow: none;
}

.user-hub-plan {
    border-radius: 11px;
}

.user-hub-checkout-row,
.user-hub-password-form,
.user-hub-telegram-bind {
    border-radius: 13px;
}

.user-hub-field input,
.user-hub-form input,
.user-hub-password-form input,
.support-chat-form textarea {
    border-color: rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    background: #0a1521;
    color: #e6eef7;
}

.user-hub-field input:focus,
.user-hub-form input:focus,
.user-hub-password-form input:focus,
.support-chat-form textarea:focus {
    border-color: rgba(101, 177, 239, 0.7);
    outline: 3px solid rgba(70, 145, 211, 0.13);
}

.user-hub-toast {
    border-color: rgba(101, 177, 239, 0.32);
    border-radius: 12px;
    color: #edf6ff;
    background: #14283b;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.user-hub-toast span {
    color: #a4bdd3;
}

.user-hub-kicker + h1 {
    margin-top: 0;
}

.user-hub-device-section-head,
.user-hub-device-item,
.user-hub-device-empty {
    border-color: rgba(148, 163, 184, 0.16);
    border-radius: 12px;
    background: #0e1a28;
}

.user-hub-device-section-head b,
.user-hub-device-state {
    border-color: rgba(70, 190, 145, 0.3);
    color: #8ee2bd;
    background: rgba(30, 144, 101, 0.12);
}

.user-hub-device-icon {
    border-radius: 11px;
    color: #8cc7f0;
    background: rgba(57, 119, 174, 0.14);
}

.user-hub-payment-list article,
.user-hub-login-list article,
.user-support-list article,
.support-message,
.support-chat-messages {
    border-radius: 12px;
}

.support-message.user {
    border-color: rgba(92, 164, 231, 0.32);
    background: #16314a;
}

.user-hub-secondary.full {
    width: 100%;
}

.aether-nav-actions a.aether-nav-login,
.aether-nav-actions a.aether-nav-register {
    width: auto;
    min-width: 0;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
}

.aether-nav-actions a.aether-nav-login {
    border: 1px solid transparent;
    color: #b9c6d8;
    background: transparent;
}

.aether-nav-actions a.aether-nav-register {
    border: 1px solid rgba(122, 155, 191, 0.3);
    color: #d7e3ef;
    background: #111e2c;
}

.aether-nav-actions a.aether-nav-login svg,
.aether-nav-actions a.aether-nav-register svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.aether-nav-actions a.aether-nav-login:hover,
.aether-nav-actions a.aether-nav-register:hover,
.aether-nav-actions a.aether-nav-login:focus-visible,
.aether-nav-actions a.aether-nav-register:focus-visible {
    border-color: rgba(111, 190, 250, 0.52);
    color: #eff7ff;
    background: #172a3d;
    box-shadow: 0 0 0 3px rgba(73, 149, 218, 0.1);
    transform: translateY(-1px);
    filter: none;
}

@media (max-width: 1040px) {
    .user-hub-main {
        padding: 24px 20px 36px;
    }
}

@media (max-width: 760px) {
    .user-hub-sidebar {
        padding: 18px 12px 14px;
    }

    .user-hub-main {
        padding: 18px 12px 28px;
    }

    .user-hub-topbar h1 {
        font-size: 28px;
    }

    .user-hub-topbar p {
        font-size: 14px;
    }

    .user-hub-card {
        padding: 20px;
    }
}

@media (max-width: 620px) {
    .aether-nav-actions a.aether-nav-login,
    .aether-nav-actions a.aether-nav-register {
        min-height: 38px;
        padding: 7px 9px;
        font-size: 12px;
    }
}

/* Auth and public navigation motion: short, quiet transitions that keep the interface responsive. */
@keyframes aether-auth-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes aether-auth-panel-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.aether-auth-body {
    scroll-behavior: smooth;
}

.aether-auth-page > .aether-nav {
    animation: aether-auth-rise .42s cubic-bezier(.22, 1, .36, 1) both;
}

.aether-auth-hero {
    animation: aether-auth-rise .48s .06s cubic-bezier(.22, 1, .36, 1) both;
}

.aether-auth-card {
    animation: aether-auth-rise .52s .12s cubic-bezier(.22, 1, .36, 1) both;
    transition: border-color .24s ease, box-shadow .24s ease, transform .24s ease;
}

.aether-auth-card:focus-within {
    border-color: rgba(93, 157, 217, 0.36);
    box-shadow: 0 20px 60px rgba(4, 10, 25, 0.26), 0 0 0 3px rgba(73, 149, 218, 0.06);
}

.aether-auth-form:not([hidden]) {
    animation: aether-auth-panel-in .28s cubic-bezier(.22, 1, .36, 1) both;
}

.aether-auth-tabs {
    position: relative;
    border-bottom: 0;
}

.aether-auth-tabs button {
    position: relative;
    border-bottom: 0;
    border-image: none;
    transition: color .22s ease, background-color .22s ease, transform .22s ease;
}

.aether-auth-tabs button::after {
    content: "";
    position: absolute;
    right: 10%;
    bottom: -1px;
    left: 10%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #b85bdc, #4b9fe3);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: opacity .22s ease, transform .28s cubic-bezier(.22, 1, .36, 1);
}

.aether-auth-tabs button:hover {
    color: #edf5ff;
    transform: translateY(-1px);
}

.aether-auth-tabs button.active {
    color: #f4f8ff;
    background: transparent;
}

.aether-auth-tabs button.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.aether-auth-form input {
    transition: border-color .22s ease, background-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.aether-auth-form input:hover {
    border-color: rgba(144, 170, 204, 0.48);
}

.aether-auth-form input:focus {
    border-color: rgba(103, 177, 237, 0.72);
    outline: 0;
    background: rgba(13, 22, 37, 0.88);
    box-shadow: 0 0 0 3px rgba(73, 149, 218, 0.12);
    transform: translateY(-1px);
}

.aether-auth-form button[type="submit"],
.auth-back-btn,
.forgot,
.auth-switch button,
.aether-auth-form .auth-icon-login {
    transition: border-color .22s ease, background-color .22s ease, color .22s ease, box-shadow .22s ease, transform .22s ease, filter .22s ease;
}

.aether-auth-form button[type="submit"]:hover,
.auth-back-btn:hover,
.forgot:hover,
.auth-switch button:hover,
.aether-auth-form .auth-icon-login:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.auth-divider::before,
.auth-divider::after {
    transition: background-color .22s ease;
}

.auth-alt-actions {
    animation: aether-auth-panel-in .32s .08s cubic-bezier(.22, 1, .36, 1) both;
}

.aether-nav nav a,
.aether-nav-actions a.aether-nav-login,
.aether-nav-actions a.aether-nav-register {
    transition: color .22s ease, background-color .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease, filter .22s ease;
}

.aether-site .aether-nav nav a:hover,
.aether-site .aether-nav nav a:focus-visible {
    transform: translateY(-1px);
}

.aether-nav-actions a.aether-nav-register {
    border-color: rgba(103, 177, 237, 0.42);
    color: #eef7ff;
    background: linear-gradient(135deg, #17334a, #244d70);
    box-shadow: 0 8px 22px rgba(27, 89, 139, 0.22);
}

.aether-nav-actions a.aether-nav-register:hover,
.aether-nav-actions a.aether-nav-register:focus-visible {
    border-color: rgba(127, 202, 255, 0.72);
    color: #ffffff;
    background: linear-gradient(135deg, #1d4563, #2b6592);
    box-shadow: 0 10px 26px rgba(27, 105, 164, 0.28), 0 0 0 3px rgba(73, 149, 218, 0.1);
}

@media (prefers-reduced-motion: reduce) {
    .aether-auth-page > .aether-nav,
    .aether-auth-hero,
    .aether-auth-card,
    .aether-auth-form:not([hidden]),
    .auth-alt-actions {
        animation: none;
    }
}

/* Referral page */
.aether-referral-hero {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 52px;
}

.aether-referral-hero-card {
    min-height: 0;
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 8px;
    border: 0;
    border-left: 1px solid rgba(126, 111, 194, .3);
    border-radius: 0;
    padding: 22px 0 22px 30px;
    background: transparent;
    box-shadow: none;
}

.aether-referral-hero-card:hover {
    border-color: rgba(126, 111, 194, .46);
    background: linear-gradient(90deg, rgba(126, 111, 194, .035), transparent 70%);
}

.aether-referral-hero-card-kicker {
    color: #8db6d9;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.aether-referral-hero-card strong {
    margin-top: 8px;
    color: #f3f8fd;
    font-size: clamp(58px, 7vw, 84px);
    line-height: .9;
    letter-spacing: -.06em;
}

.aether-referral-hero-card b {
    color: #9dc6e7;
    font-size: 21px;
}

.aether-referral-hero-card p {
    max-width: 290px;
    margin: 8px 0 8px;
    color: #a7b9ca;
    font-size: 13px;
    line-height: 1.55;
}

.aether-referral-hero-card-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8fe0bb;
    font-size: 12px;
    font-weight: 700;
}

.aether-referral-hero-card-note i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #51d29d;
    box-shadow: 0 0 14px rgba(81, 210, 157, 0.56);
}

.aether-referral-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(126, 111, 194, .24);
    border-bottom: 1px solid rgba(126, 111, 194, .24);
}

.aether-referral-benefits article {
    display: grid;
    gap: 7px;
    min-height: 116px;
    padding: 24px 24px 22px;
    border-right: 1px solid rgba(126, 111, 194, .2);
    transition: background-color .22s ease, transform .22s ease;
}

.aether-referral-benefits article:first-child {
    padding-left: 0;
}

.aether-referral-benefits article:last-child {
    border-right: 0;
    padding-right: 0;
}

.aether-referral-benefits article:hover {
    background: rgba(68, 123, 177, .06);
    transform: translateY(-2px);
}

.aether-referral-benefits strong {
    color: #eff7ff;
    font-size: 22px;
}

.aether-referral-benefits span {
    color: #9eafc0;
    font-size: 14px;
    line-height: 1.45;
}

.aether-referral-flow {
    grid-template-columns: 1.3fr repeat(3, .75fr);
    margin-top: 48px;
}

.aether-referral-flow .aether-story-panel {
    min-height: 226px;
}

.aether-referral-flow .aether-story-value {
    color: #8bcaf2 !important;
    text-shadow: 0 0 22px rgba(95, 224, 255, .2);
}

.aether-referral-details {
    margin-top: 58px;
}

@media (max-width: 980px) {
    .aether-referral-hero {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .aether-referral-hero-card {
        min-height: 240px;
    }

    .aether-referral-flow {
        grid-template-columns: 1.15fr repeat(3, .85fr);
    }
}

/* Login loading state */
@keyframes auth-submit-spin {
    to { transform: rotate(360deg); }
}

@keyframes auth-status-pulse {
    0%, 100% { opacity: .58; }
    50% { opacity: 1; }
}

.aether-auth-form button[type="submit"]#loginSubmitButton {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background .24s ease, box-shadow .24s ease, transform .24s ease, opacity .24s ease;
}

#loginSubmitButton.is-loading {
    cursor: wait;
    background: linear-gradient(135deg, #b72dca, #6650ef 54%, #258ee9);
    box-shadow: 0 12px 30px rgba(89, 63, 210, .24);
}

#loginSubmitButton:disabled {
    opacity: .92;
}

.auth-submit-loader {
    width: 17px;
    height: 17px;
    display: none;
    flex: 0 0 auto;
    border: 2px solid rgba(255, 255, 255, .32);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: auth-submit-spin .72s linear infinite;
}

#loginSubmitButton.is-loading .auth-submit-loader {
    display: inline-block;
}

#loginForm.is-submitting .auth-alt-actions {
    opacity: .5;
    pointer-events: none;
    transition: opacity .22s ease;
}

#loginStatus {
    min-height: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    color: #b8c6d7;
    font-size: 14px;
    line-height: 1.35;
    transition: color .22s ease, opacity .22s ease, transform .22s ease;
}

#loginStatus:empty {
    opacity: 0;
    transform: translateY(-4px);
}

#loginStatus:not(:empty) {
    opacity: 1;
    transform: none;
}

#loginStatus[data-state="loading"] {
    animation: auth-status-pulse 1.4s ease-in-out infinite;
}

#loginStatus[data-state="loading"]::before {
    content: "";
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
    border: 2px solid rgba(132, 191, 239, .28);
    border-top-color: #85c8f4;
    border-radius: 50%;
    animation: auth-submit-spin .72s linear infinite;
}

#loginStatus[data-state="error"] {
    color: #ff9eae;
}

@media (prefers-reduced-motion: reduce) {
    .auth-submit-loader,
    #loginStatus[data-state="loading"]::before,
    #loginStatus[data-state="loading"] {
        animation: none;
    }
}

@media (max-width: 760px) {
    .aether-referral-benefits,
    .aether-referral-flow {
        grid-template-columns: 1fr;
    }

    .aether-referral-benefits article,
    .aether-referral-benefits article:first-child,
    .aether-referral-benefits article:last-child {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid rgba(126, 111, 194, .2);
        padding: 18px 0;
    }

    .aether-referral-benefits article:last-child {
        border-bottom: 0;
    }

    .aether-referral-flow .aether-story-panel,
    .aether-referral-flow .aether-story-panel:first-child,
    .aether-referral-flow .aether-story-panel + .aether-story-panel {
        min-height: 0;
        border-left: 0;
        border-bottom: 1px solid rgba(126, 111, 194, .18);
        padding: 24px 0;
    }

    .aether-referral-flow .aether-story-panel:last-child {
        border-bottom: 0;
    }

    .aether-referral-hero-card {
        min-height: 0;
        border-top: 1px solid rgba(126, 111, 194, .3);
        border-left: 0;
        padding: 24px 0 0;
    }

}

@media (prefers-reduced-motion: reduce) {
    .aether-referral-hero-card,
    .aether-referral-benefits article {
        transition: none;
    }
}

/* Cabinet workspace structure: subscription first, decisions second, referrals last. */
.user-hub-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    align-items: start;
}

.user-hub-subscription {
    grid-column: 1 / -1;
    grid-row: 1;
}

.user-hub-overview {
    grid-column: 1;
    grid-row: 2;
}

.user-hub-purchase {
    grid-column: 2;
    grid-row: 2;
}

.user-hub-referral {
    grid-column: 1 / -1;
    grid-row: 3;
}

.user-hub-subscription-actions {
    grid-template-columns: minmax(0, 1.3fr) minmax(220px, .7fr);
}

/* Auth tabs use one indicator only; the active line opens from its centre. */
.aether-auth-page .aether-auth-tabs,
.aether-auth-page .aether-auth-tabs button,
.aether-auth-page .aether-auth-tabs button.active {
    border: 0 !important;
    border-image: none !important;
    box-shadow: none !important;
}

.aether-auth-page .aether-auth-tabs {
    position: relative;
    background: transparent;
}

.aether-auth-page .aether-auth-tabs button {
    position: relative;
}

.aether-auth-page .aether-auth-tabs button::after {
    right: 8%;
    bottom: -1px;
    left: 8%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #b85bdc, #4b9fe3);
    transform: scaleX(0);
    transform-origin: center;
}

.aether-auth-page .aether-auth-tabs button.active::after {
    transform: scaleX(1);
}

/* Registration guidance: visible only with the registration panel. */
.auth-registration-warning {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    margin: 0 0 2px;
    padding: 14px 15px;
    border: 1px solid rgba(245, 158, 11, .58);
    border-radius: 12px;
    color: #ffe4b5;
    background: linear-gradient(135deg, rgba(120, 62, 9, .36), rgba(82, 37, 9, .22));
    box-shadow: inset 0 1px 0 rgba(255, 214, 137, .08), 0 10px 24px rgba(69, 38, 5, .12);
}

.auth-registration-warning-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(251, 191, 36, .72);
    border-radius: 50%;
    color: #241200;
    background: #f59e0b;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.auth-registration-warning p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
}

.auth-registration-warning strong {
    color: #fff0ca;
}

.auth-registration-warning button {
    display: inline;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    color: #ffd27a;
    background: transparent;
    box-shadow: none;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.auth-registration-warning button:hover,
.auth-registration-warning button:focus-visible {
    color: #fff6df;
    box-shadow: none;
    filter: none;
    transform: none;
}

@media (max-width: 560px) {
    .auth-registration-warning {
        grid-template-columns: 26px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .auth-registration-warning-icon {
        width: 26px;
        height: 26px;
        font-size: 16px;
    }

    .auth-registration-warning p {
        font-size: 13px;
    }
}

@media (max-width: 1320px) {
    .user-hub-grid {
        grid-template-columns: 1fr;
    }

    .user-hub-subscription,
    .user-hub-overview,
    .user-hub-purchase,
    .user-hub-referral {
        grid-column: 1;
        grid-row: auto;
    }
}

@media (max-width: 760px) {
    .user-hub-subscription-actions {
        grid-template-columns: 1fr;
    }

    .aether-auth-page .aether-auth-tabs {
        padding: 0;
        background: transparent;
    }
}

/* Cabinet workspace reconstruction: clear hierarchy, stable content width, calmer navigation. */
@keyframes user-hub-panel-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.user-hub {
    grid-template-columns: 276px minmax(0, 1fr);
    background: rgba(3, 6, 15, .32);
}

.user-hub-sidebar {
    position: sticky;
    top: 0;
    height: 100dvh;
    min-width: 0;
    gap: 18px;
    padding: 24px 18px 18px;
    overflow-y: auto;
    border-right-color: rgba(117, 137, 173, .18);
    background:
        radial-gradient(260px 220px at 0% 0%, rgba(78, 127, 190, .14), transparent 74%),
        linear-gradient(180deg, rgba(8, 16, 29, .98), rgba(5, 10, 20, .98));
}

.user-hub-sidebar-head {
    min-height: 42px;
}

.user-hub-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.user-hub-brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(114, 190, 244, .36);
    border-radius: 12px;
    color: #f3f8ff;
    background: linear-gradient(145deg, #29557b, #16304c);
    box-shadow: 0 12px 26px rgba(30, 97, 150, .2);
    font-size: 19px;
    font-weight: 800;
}

.user-hub-brand > span:last-child {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.user-hub-brand strong {
    color: #edf5ff;
    font-size: 16px;
    letter-spacing: .02em;
}

.user-hub-brand b {
    color: #79b8eb;
}

.user-hub-brand small {
    overflow: hidden;
    color: #7f96b1;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-hub-sidebar-context {
    display: grid;
    gap: 5px;
    padding: 14px 14px 15px;
    border: 1px solid rgba(105, 145, 184, .2);
    border-radius: 15px;
    background: rgba(17, 32, 51, .56);
}

.user-hub-sidebar-context span,
.user-hub-nav-label {
    color: #7794b4;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.user-hub-sidebar-context strong {
    color: #dceafa;
    font-size: 13px;
}

.user-hub-nav {
    gap: 5px;
}

.user-hub-nav-label {
    margin: 8px 8px 3px;
}

.user-hub-nav a,
.user-hub-sidebar-bottom a {
    min-height: 44px;
    border-color: transparent;
    border-radius: 12px;
    color: #9eafc4;
    background: transparent;
    box-shadow: none;
    font-size: 14px;
    font-weight: 600;
    transform: none;
}

.user-hub-nav a i,
.user-hub-sidebar-bottom a i {
    color: #7d9bb8;
}

.user-hub-nav a:hover {
    border-color: rgba(110, 157, 200, .2);
    color: #e7f2ff;
    background: rgba(34, 61, 89, .42);
    box-shadow: none;
    transform: none;
}

.user-hub-nav a.active {
    border-color: rgba(92, 168, 225, .42);
    color: #f0f7ff;
    background: linear-gradient(135deg, rgba(39, 81, 122, .82), rgba(24, 47, 72, .72));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 24px rgba(15, 57, 94, .2);
}

.user-hub-nav a.active i {
    color: #8bcaf2;
}

.user-hub-sidebar-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 12px 13px;
    border: 1px solid rgba(58, 190, 147, .22);
    border-radius: 14px;
    background: rgba(15, 64, 57, .24);
}

.user-hub-sidebar-status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #44dca3;
    box-shadow: 0 0 0 4px rgba(68, 220, 163, .1), 0 0 14px rgba(68, 220, 163, .5);
}

.user-hub-sidebar-status div,
.user-hub-account-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.user-hub-sidebar-status strong,
.user-hub-account-copy strong {
    overflow: hidden;
    color: #dceafa;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-hub-sidebar-status small,
.user-hub-account-copy small {
    color: #7895b0;
    font-size: 11px;
}

.user-hub-sidebar-bottom {
    gap: 10px;
    margin-top: 0;
    padding-top: 14px;
    border-top: 1px solid rgba(105, 130, 163, .16);
}

.user-hub-account {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 4px;
}

.user-hub-account-avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(109, 159, 201, .28);
    border-radius: 10px;
    color: #9cccf0;
    background: rgba(41, 85, 123, .34);
}

.user-hub-account-avatar svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.user-hub-sidebar-bottom a {
    border-color: rgba(105, 130, 163, .16);
    background: rgba(11, 22, 36, .6);
}

.user-hub-sidebar-bottom a:hover {
    border-color: rgba(110, 157, 200, .3);
    color: #e7f2ff;
    background: rgba(34, 61, 89, .42);
    box-shadow: none;
    transform: none;
}

.user-hub-main {
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 34px clamp(20px, 4vw, 58px) 64px;
    overflow-x: clip;
}

.user-hub-topbar,
.user-hub-grid {
    width: min(1180px, 100%);
    margin-inline: auto;
}

.user-hub-topbar {
    min-height: 82px;
    padding-bottom: 24px;
    border-bottom-color: rgba(106, 131, 165, .2);
}

.user-hub-topbar > div {
    min-width: 0;
}

.user-hub-topbar h1 {
    max-width: 760px;
    color: #eef6ff;
    font-size: clamp(28px, 3vw, 42px);
}

.user-hub-topbar h1 em {
    color: #8dc8f0;
}

.user-hub-topbar p {
    max-width: 760px;
    margin-top: 9px;
    color: #8fa6bf;
    font-size: 15px;
    line-height: 1.5;
}

.user-hub-topbar-help {
    min-width: 188px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(105, 145, 184, .22);
    border-radius: 13px;
    padding: 9px 12px;
    color: #c8dced;
    background: rgba(15, 29, 46, .56);
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.user-hub-topbar-help:hover {
    border-color: rgba(118, 188, 236, .5);
    background: rgba(25, 51, 77, .64);
    transform: translateY(-1px);
}

.user-hub-topbar-help-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(110, 174, 222, .26);
    border-radius: 9px;
    color: #8bcaf2;
    background: rgba(46, 108, 159, .2);
}

.user-hub-topbar-help-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.user-hub-topbar-help strong,
.user-hub-topbar-help small {
    display: block;
}

.user-hub-topbar-help strong {
    color: #e2effb;
    font-size: 12px;
}

.user-hub-topbar-help small {
    margin-top: 3px;
    color: #7f9bb7;
    font-size: 11px;
}

.user-hub-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px;
    padding-top: 24px;
}

.user-hub-grid > .user-hub-card {
    grid-column: 1 !important;
    grid-row: auto !important;
    min-width: 0;
    animation: user-hub-panel-in .32s cubic-bezier(.22, 1, .36, 1) both;
}

.user-hub-grid > .user-hub-card:nth-child(2) { animation-delay: .04s; }
.user-hub-grid > .user-hub-card:nth-child(3) { animation-delay: .08s; }
.user-hub-grid > .user-hub-card:nth-child(4) { animation-delay: .12s; }

.user-hub-card {
    min-width: 0;
    border-radius: 20px;
    padding: 24px;
    border-color: rgba(96, 124, 160, .24);
    background:
        radial-gradient(560px 220px at 100% 0%, rgba(53, 117, 172, .09), transparent 72%),
        linear-gradient(180deg, rgba(10, 19, 34, .96), rgba(6, 12, 22, .96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 22px 58px rgba(1, 7, 17, .3);
}

.user-hub-subscription,
.user-hub-purchase,
.user-hub-referral,
.user-hub-overview {
    background:
        radial-gradient(620px 250px at 100% 0%, rgba(45, 108, 162, .1), transparent 70%),
        linear-gradient(180deg, rgba(11, 22, 39, .97), rgba(6, 12, 22, .96));
}

.user-hub-card-head {
    margin-bottom: 18px;
}

.user-hub-card-head h3 {
    color: #eaf4ff;
    font-size: 19px;
}

.user-hub-subscription-layout,
.cabinet-pricing,
.user-hub-referral,
.user-hub-overview,
.user-hub-payments,
.user-hub-settings,
.user-hub-devices {
    min-width: 0;
}

.user-hub-subscription-actions {
    grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr);
}

.user-hub-subscription-actions .user-hub-primary,
.user-hub-subscription-actions .user-hub-secondary {
    min-width: 0;
}

.user-hub-overview {
    grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr);
}

.user-hub-overview .user-hub-card-head {
    margin-bottom: 0;
}

.user-hub-purchase-form,
.cabinet-pricing .aether-tier-switch,
.cabinet-pricing .aether-pricing-summary,
.cabinet-pricing .aether-month-card {
    min-width: 0;
    max-width: 100%;
}

.cabinet-pricing-head {
    flex-wrap: wrap;
}

.cabinet-pricing .user-hub-checkout-account {
    min-width: 0;
    max-width: 280px;
}

.user-hub-referral {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px 20px;
}

.user-hub-referral .user-hub-card-head,
.user-hub-referral > p,
.user-hub-referral .user-hub-referral-bonus,
.user-hub-referral .user-hub-referral-list {
    grid-column: 1 / -1;
}

.user-hub-referral .user-hub-card-head,
.user-hub-referral > p {
    margin-bottom: 0;
}

.user-hub-referral .user-hub-field {
    margin: 0;
}

.user-hub-referral-bonus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.user-hub-referral-stats {
    grid-column: 1 / -1;
}

.user-hub-toast {
    right: 24px;
}

.user-hub.sidebar-collapsed {
    grid-template-columns: 84px minmax(0, 1fr);
}

.user-hub.sidebar-collapsed .user-hub-brand {
    justify-content: center;
}

.user-hub.sidebar-collapsed .user-hub-brand > span:last-child,
.user-hub.sidebar-collapsed .user-hub-sidebar-context,
.user-hub.sidebar-collapsed .user-hub-nav-label,
.user-hub.sidebar-collapsed .user-hub-sidebar-status,
.user-hub.sidebar-collapsed .user-hub-account {
    display: none;
}

.user-hub.sidebar-collapsed .user-hub-sidebar-bottom {
    align-items: center;
}

@media (max-width: 1100px) {
    .user-hub {
        grid-template-columns: 238px minmax(0, 1fr);
    }

    .user-hub-main {
        padding-inline: 24px;
    }

    .user-hub-topbar-help {
        min-width: 0;
    }
}

@media (max-width: 760px) {
    .user-hub,
    .user-hub.sidebar-collapsed {
        display: block;
    }

    .user-hub-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        max-height: none;
        padding: 16px;
        border-right: 0;
        border-bottom: 1px solid rgba(105, 130, 163, .18);
        overflow: visible;
    }

    .user-hub-sidebar-head {
        display: flex;
    }

    .user-hub-sidebar-context {
        display: none;
    }

    .user-hub-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px 7px;
    }

    .user-hub-nav-label {
        grid-column: 1 / -1;
        margin-top: 9px;
    }

    .user-hub-nav a {
        min-height: 42px;
    }

    .user-hub-sidebar-status {
        margin-top: 8px;
    }

    .user-hub-sidebar-bottom {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        margin-top: 14px;
    }

    .user-hub-main {
        padding: 22px 14px 36px;
    }

    .user-hub-topbar {
        display: grid;
        gap: 16px;
        min-height: 0;
    }

    .user-hub-topbar-help {
        justify-self: start;
    }

    .user-hub-grid {
        gap: 16px;
        padding-top: 18px;
    }

    .user-hub-card {
        padding: 18px;
        border-radius: 17px;
    }

    .user-hub-overview,
    .user-hub-referral {
        grid-template-columns: 1fr;
    }

    .user-hub-referral .user-hub-card-head,
    .user-hub-referral > p,
    .user-hub-referral .user-hub-referral-bonus,
    .user-hub-referral .user-hub-referral-list,
    .user-hub-referral-stats {
        grid-column: 1;
    }

    .user-hub-referral-bonus {
        align-items: flex-start;
        flex-direction: column;
    }

    .user-hub-subscription-actions {
        grid-template-columns: 1fr;
    }

    .cabinet-pricing .user-hub-checkout-account {
        width: 100%;
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .user-hub-grid > .user-hub-card {
        animation: none;
    }
}

/* Cabinet architecture pass: ticket workspace, overview actions and calm settings. */
.user-hub-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.user-hub-overview-grid > article,
.user-hub-overview-stat {
    min-height: 104px;
    border: 1px solid rgba(103, 135, 183, .2);
    border-radius: 14px;
    background: rgba(11, 24, 42, .58);
    padding: 18px;
}
.user-hub-overview-grid > article > div:last-child { min-width: 0; overflow-wrap: anywhere; }
.user-hub-overview-grid > article strong { overflow-wrap: anywhere; }
.user-hub-overview-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 20px;
}
.user-hub-overview-actions .user-hub-secondary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
    align-items: center;
    min-height: 64px;
    text-align: left;
    padding: 13px 17px;
}
.user-hub-overview-actions b,
.user-hub-overview-actions small { display: block; }
.user-hub-overview-actions small { color: var(--user-muted, #8d9bb5); font-size: 12px; margin-top: 3px; }
.user-hub-overview-actions span { grid-row: 1 / span 2; grid-column: 2; font-size: 22px; color: #83c5ff; }
.user-hub-subscription-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.user-hub-news { border-top: 1px solid rgba(112, 143, 192, .18); padding-top: 22px; margin-top: 24px; }
.user-hub-news-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 12px; }
.user-hub-news-head h3 { margin: 2px 0 0; }
.user-hub-news-head > span { color: #7f91ae; font-size: 12px; }
.user-hub-news-list { display: grid; gap: 8px; }
.user-hub-news-item { display: grid; grid-template-columns: 9px 1fr; gap: 12px; padding: 13px 15px; border: 1px solid rgba(103, 135, 183, .16); border-radius: 12px; background: rgba(7, 17, 31, .46); }
.user-hub-news-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: #5ab7ff; box-shadow: 0 0 12px rgba(90, 183, 255, .75); }
.user-hub-news-item.success .user-hub-news-dot { background: #42dfad; box-shadow: 0 0 12px rgba(66, 223, 173, .7); }
.user-hub-news-item.warning .user-hub-news-dot { background: #ffbd61; box-shadow: 0 0 12px rgba(255, 189, 97, .7); }
.user-hub-news-item strong { color: #eef5ff; font-size: 14px; }
.user-hub-news-item p { margin: 5px 0 0; color: #91a1ba; font-size: 13px; line-height: 1.55; }
.user-hub-news-empty { color: #8796ad; padding: 12px 0; }
.user-hub-overview { display: block !important; grid-template-columns: none !important; }
.user-hub-purchase { display: none !important; }
.user-hub-referral { display: none !important; }
.subscription-view .user-hub-grid { grid-template-columns: minmax(0, 1fr) !important; }
.subscription-view .user-hub-grid > :not(.user-hub-subscription):not(.user-hub-purchase) { display: none !important; }
.subscription-view .user-hub-subscription,
.subscription-view .user-hub-purchase { display: block !important; }
.user-hub-device-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 20px; }
.user-hub-device-guide article { display: grid; gap: 5px; min-height: 112px; padding: 14px; border: 1px solid rgba(103, 135, 183, .18); border-radius: 13px; background: rgba(8, 19, 35, .45); }
.user-hub-device-guide b { color: #68c5ff; font-size: 18px; }
.user-hub-device-guide strong { color: #e7f0fc; font-size: 13px; }
.user-hub-device-guide span { color: #8799b2; font-size: 12px; line-height: 1.45; }
.user-hub-payment-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 4px 0 18px; }
.user-hub-payment-overview article { display: grid; gap: 5px; min-height: 100px; padding: 15px; border: 1px solid rgba(103, 135, 183, .18); border-radius: 13px; background: rgba(8, 19, 35, .5); }
.user-hub-payment-overview span { color: #8496af; font-size: 12px; }
.user-hub-payment-overview strong { color: #eef6ff; font-size: 20px; }
.user-hub-payment-overview small { color: #8da0ba; font-size: 11px; line-height: 1.45; }
.settings-view .user-hub-settings, .payments-view .user-hub-payments, .devices-view .user-hub-devices { animation: userHubViewIn .28s ease both; }
@keyframes userHubViewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.user-hub-login-history { overflow: hidden; border: 1px solid rgba(103, 135, 183, .2); border-radius: 16px; background: rgba(8, 18, 33, .45); margin-top: 22px; }
.user-hub-login-history-toggle { width: 100%; border: 0; background: transparent; color: inherit; padding: 17px 18px; display: flex; justify-content: space-between; align-items: center; text-align: left; cursor: pointer; }
.user-hub-login-history-toggle > span { display: grid; gap: 4px; }
.user-hub-login-history-toggle strong { font-size: 15px; }
.user-hub-login-history-toggle small { color: #8797b0; font-size: 12px; }
.user-hub-login-history-toggle > b { color: #8dc9ff; font-size: 13px; font-weight: 600; }
.user-hub-login-list, .user-hub-login-pager { max-height: 0; opacity: 0; overflow: hidden; padding: 0 18px; transition: max-height .28s ease, opacity .2s ease, padding .28s ease; }
.user-hub-login-history[data-open="true"] .user-hub-login-list { max-height: 760px; opacity: 1; padding-bottom: 10px; }
.user-hub-login-history[data-open="true"] .user-hub-login-pager { max-height: 70px; opacity: 1; padding-bottom: 16px; }

.user-hub-login-history-toggle:focus-visible {
    outline: 2px solid rgba(112, 201, 255, .72);
    outline-offset: -2px;
}

.user-hub-login-history-toggle > b::after {
    content: "";
    width: 8px;
    height: 8px;
    margin: 0 2px 3px 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.user-hub-login-history[data-open="true"] .user-hub-login-history-toggle > b::after {
    transform: rotate(225deg);
}

.user-hub-danger-zone {
    display: grid;
    gap: 12px;
    margin-top: 22px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 111, 133, .22);
    border-radius: 16px;
    background: rgba(75, 20, 34, .18);
}

.user-hub-danger-zone > div:first-child {
    display: grid;
    gap: 5px;
}

.user-hub-danger-zone strong {
    color: #ffd7dd;
    font-size: 14px;
}

.user-hub-danger-zone span {
    color: #b99aa4;
    font-size: 12px;
    line-height: 1.5;
}

.user-hub-danger-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.user-hub-danger-button {
    border: 1px solid rgba(255, 111, 133, .34);
    border-radius: 10px;
    padding: 10px 13px;
    background: rgba(111, 27, 48, .3);
    color: #ffc4cc;
    cursor: pointer;
}

.user-hub-danger-button:hover,
.user-hub-danger-button:focus-visible {
    border-color: rgba(255, 139, 156, .72);
    background: rgba(130, 31, 54, .48);
}

.user-hub-danger-button:disabled {
    cursor: wait;
    opacity: .62;
}

.support-ticket-page { display: grid; gap: 20px; max-width: 1180px; margin: 0 auto; padding: 28px 0 60px; }
.support-ticket-columns { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 20px; align-items: start; }
.support-ticket-form, .support-ticket-list { padding: 22px; }
.support-ticket-form > label { display: grid; gap: 8px; margin-top: 18px; color: #bdcce0; font-size: 13px; }
.support-ticket-form input:not([type="file"]), .support-ticket-form textarea, .support-ticket-form select, .support-ticket-reply textarea { width: 100%; border: 1px solid rgba(114, 148, 198, .28); border-radius: 11px; background: #0b182c; color: #edf5ff; padding: 12px 13px; outline: 0; transition: border-color .2s ease, box-shadow .2s ease; }
.support-ticket-form input:focus, .support-ticket-form textarea:focus, .support-ticket-form select:focus, .support-ticket-reply textarea:focus { border-color: #6bc4ff; box-shadow: 0 0 0 3px rgba(88, 174, 255, .12); }
.support-ticket-form textarea { resize: vertical; min-height: 130px; }
.support-ticket-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.support-ticket-form-grid label { display: grid; gap: 8px; color: #bdcce0; font-size: 13px; }
.support-ticket-attachment { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 17px; padding: 12px 13px; border: 1px dashed rgba(113, 168, 221, .4); border-radius: 11px; color: #b9c7db; cursor: pointer; }
.support-ticket-attachment span { display: grid; gap: 3px; }
.support-ticket-attachment small { color: #7e91ab; font-size: 11px; }
.support-ticket-attachment input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.support-ticket-attachment b { color: #7dc8ff; font-size: 12px; }
.support-ticket-preview { display: flex; align-items: center; gap: 10px; padding: 10px 0 0; color: #9eb0c8; font-size: 12px; }
.support-ticket-preview img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; border: 1px solid rgba(112, 174, 227, .3); }
.support-ticket-preview button { margin-left: auto; border: 0; background: transparent; color: #ff9d9d; cursor: pointer; }
.support-ticket-submit { width: 100%; margin-top: 18px; display: flex; justify-content: space-between; align-items: center; }
.support-ticket-submit span { font-size: 20px; }
.support-ticket-items { display: grid; gap: 9px; margin-top: 18px; }
.support-ticket-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; width: 100%; border: 1px solid rgba(105, 141, 192, .17); border-radius: 12px; background: rgba(8, 19, 35, .58); padding: 13px; color: inherit; text-align: left; cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.support-ticket-item:hover, .support-ticket-item.selected { transform: translateY(-1px); border-color: rgba(96, 192, 255, .62); background: rgba(16, 39, 66, .76); }
.support-ticket-new-item { border-style: dashed; border-color: rgba(112, 200, 255, .68); background: rgba(69, 154, 222, .06); }
.support-ticket-new-item:hover, .support-ticket-new-item:focus-visible { border-color: rgba(137, 217, 255, .98); background: rgba(69, 154, 222, .14); box-shadow: 0 0 0 3px rgba(91, 186, 255, .08); outline: 0; }
.support-ticket-new-item-icon { display: grid; place-items: center; color: #8bd1ff; border: 1px dashed rgba(112, 200, 255, .62); border-radius: 11px; background: rgba(69, 154, 222, .08); font-size: 20px; line-height: 1; }
.support-ticket-new-item strong { color: #8bd1ff; }
.support-ticket-new-item-action { border: 1px solid rgba(112, 200, 255, .22); border-radius: 99px; padding: 5px 8px; color: #8bd1ff; background: rgba(69, 154, 222, .1); font-size: 11px; font-weight: 700; white-space: nowrap; }
.support-ticket-item-icon { color: #7bc9ff; font-size: 12px; font-weight: 700; }
.support-ticket-item span:nth-child(2) { min-width: 0; display: grid; gap: 5px; }
.support-ticket-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #edf5ff; font-size: 13px; }
.support-ticket-item small { color: #8394ae; font-size: 11px; }
.support-ticket-status { border-radius: 99px; padding: 5px 8px; color: #6fe0b9; background: rgba(23, 127, 105, .18); font-size: 11px; white-space: nowrap; }
.support-ticket-status.closed { color: #aab6ca; background: rgba(105, 122, 150, .16); }
.support-ticket-dialog[hidden] { display: none; }
.support-ticket-dialog { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 22px; }
.support-ticket-dialog-backdrop { position: absolute; inset: 0; background: rgba(2, 7, 16, .78); backdrop-filter: blur(7px); animation: supportFadeIn .2s ease both; }
.support-ticket-dialog-panel { position: relative; display: grid; grid-template-rows: auto minmax(220px, 1fr) auto; width: min(760px, 100%); max-height: min(760px, 92vh); border: 1px solid rgba(115, 173, 227, .35); border-radius: 18px; background: #081426; box-shadow: 0 24px 80px rgba(0, 0, 0, .42); overflow: hidden; animation: supportDialogIn .24s ease both; }
.support-ticket-dialog-head { display: flex; justify-content: space-between; gap: 18px; padding: 22px 24px; border-bottom: 1px solid rgba(110, 143, 191, .16); }
.support-ticket-dialog-head h2 { margin: 5px 0 4px; font-size: 22px; }
.support-ticket-dialog-head p { margin: 0; color: #8ea1bc; font-size: 12px; }
.user-hub-icon-button { width: 34px; height: 34px; border: 1px solid rgba(117, 158, 211, .24); border-radius: 10px; background: rgba(16, 35, 59, .7); color: #c7d6e8; cursor: pointer; font-size: 20px; }
.support-ticket-dialog-messages { overflow: auto; display: grid; align-content: start; gap: 10px; padding: 18px 24px; }
.support-ticket-message { width: min(86%, 560px); padding: 12px 14px; border: 1px solid rgba(112, 147, 198, .17); border-radius: 12px 12px 12px 4px; background: rgba(16, 31, 52, .7); }
.support-ticket-message.user { justify-self: end; border-radius: 12px 12px 4px 12px; background: rgba(36, 58, 86, .68); }
.support-ticket-message > div { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.support-ticket-message > div small { color: #7f91aa; }
.support-ticket-message p { margin: 8px 0 0; color: #d3dfed; line-height: 1.55; font-size: 13px; }
.support-ticket-image { display: grid; gap: 5px; margin-top: 9px; color: #7ccaff; font-size: 11px; }
.support-ticket-image img { width: min(280px, 100%); max-height: 210px; object-fit: cover; border-radius: 9px; border: 1px solid rgba(108, 181, 237, .3); }
.support-ticket-file { display: inline-block; margin-top: 9px; color: #7ccaff; font-size: 12px; }
.support-ticket-reply { display: grid; gap: 9px; padding: 16px 24px 20px; border-top: 1px solid rgba(110, 143, 191, .16); }
.support-ticket-reply textarea { resize: vertical; min-height: 74px; }
.support-ticket-reply > div { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.support-ticket-attachment.compact { padding: 9px 12px; margin: 0; }
.support-ticket-attachment.compact b { font-weight: 600; }
.support-dialog-open { overflow: hidden; }
@keyframes supportFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes supportDialogIn { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

.admin-news-shell { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.2fr); gap: 18px; align-items: start; }
.admin-news-shell .admin-card { padding: 20px; border: 1px solid rgba(97, 137, 185, .2); border-radius: 16px; background: rgba(9, 22, 39, .78); }
.admin-card-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 18px; }
.admin-card-head h2 { margin: 0 0 5px; font-size: 18px; }
.admin-card-head span { color: #879bb6; font-size: 12px; }
.admin-news-form { display: grid; gap: 14px; }
.admin-news-form label { display: grid; gap: 7px; color: #c5d2e4; font-size: 13px; }
.admin-news-form input:not([type="checkbox"]), .admin-news-form textarea, .admin-news-form select { width: 100%; border: 1px solid rgba(105, 143, 193, .25); border-radius: 9px; background: #0b1a2c; color: #e8f1ff; padding: 11px 12px; }
.admin-news-form textarea { resize: vertical; }
.admin-news-form-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; }
.admin-news-check { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; padding: 10px 0; white-space: nowrap; }
.admin-news-check input { accent-color: #58baff; }
.admin-news-actions { display: flex; align-items: center; gap: 12px; }
.admin-news-actions span { color: #73dfb7; font-size: 12px; }
.admin-news-items { display: grid; gap: 10px; }
.admin-news-item { display: flex; justify-content: space-between; gap: 14px; padding: 14px; border: 1px solid rgba(105, 143, 193, .16); border-left: 3px solid #58baff; border-radius: 11px; background: rgba(9, 21, 37, .66); }
.admin-news-item.draft { border-left-color: #9aa7bb; opacity: .8; }
.admin-news-item h3 { margin: 7px 0 5px; font-size: 14px; }
.admin-news-item p { margin: 0; color: #8ea0b9; font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.admin-news-item-meta { display: flex; gap: 9px; color: #70c9ff; font-size: 11px; }
.admin-news-item-meta small { color: #7488a4; }
.admin-news-item-actions { display: flex; gap: 7px; align-items: start; }
.admin-news-empty { color: #8a9bb2; padding: 18px 0; }
.admin-btn { border: 1px solid rgba(111, 154, 204, .25); border-radius: 8px; padding: 9px 12px; background: rgba(18, 39, 65, .72); color: #d9e7f7; cursor: pointer; font-size: 12px; }
.admin-btn-primary { border-color: #3a9dff; background: linear-gradient(120deg, #2e84ef, #5d5ef4); color: #fff; }
.admin-btn-danger { color: #ff9eaf; border-color: rgba(255, 106, 132, .25); }
.admin-btn:active { transform: translateY(1px); }

@media (max-width: 900px) {
    .user-hub-overview-grid, .user-hub-device-guide, .user-hub-payment-overview, .support-ticket-columns, .admin-news-shell { grid-template-columns: 1fr; }
    .user-hub-subscription-actions { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .user-hub-overview-actions, .support-ticket-form-grid, .admin-news-form-row { grid-template-columns: 1fr; }
    .support-ticket-page { padding: 16px 0 40px; }
    .support-ticket-form, .support-ticket-list { padding: 17px; }
    .support-ticket-dialog { padding: 0; }
    .support-ticket-dialog-panel { max-height: 100vh; height: 100%; border-radius: 0; }
}

/* Cabinet overview pass: latest news, referral rewards and device-only subscription access. */
.cabinet-pricing .aether-summary-included { align-content: start; gap: 12px; padding-block: 2px; }
.cabinet-pricing .aether-summary-included > span { margin-bottom: 1px; }
.aether-summary-device-access { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 10px 0; }
.aether-summary-device-access-icon, .aether-summary-upgrade-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border: 1px solid rgba(120, 172, 226, .28); border-radius: 10px; color: #8bd1ff; background: rgba(48, 119, 178, .15); }
.aether-summary-device-access-icon svg, .aether-summary-upgrade-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.aether-summary-device-access strong, .aether-summary-device-access small, .aether-summary-upgrade b, .aether-summary-upgrade small { display: block; }
.aether-summary-device-access strong { color: #f0f6ff; font-size: 15px; }
.aether-summary-device-access strong b { display: inline; color: inherit; }
.aether-summary-device-access small, .aether-summary-upgrade small { margin-top: 4px; color: #8ea2bd; font-size: 11px; }
.aether-summary-upgrade { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid rgba(166, 111, 255, .28); border-radius: 12px; color: #eaf3ff; background: rgba(71, 42, 125, .2); text-align: left; cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.aether-summary-upgrade:hover, .aether-summary-upgrade:focus-visible { border-color: rgba(210, 101, 255, .7); background: rgba(91, 47, 153, .34); box-shadow: 0 9px 22px rgba(126, 67, 234, .16); transform: translateY(-1px); }
.aether-summary-upgrade b { font-size: 12px; }
.aether-summary-upgrade.is-hidden { display: none; }

.user-hub-overview { display: block !important; }
.user-hub-news { margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(112, 143, 192, .18); }
.user-hub-news-preview { width: 100%; display: grid; grid-template-columns: 9px minmax(0, 1fr) 32px; align-items: center; gap: 13px; padding: 16px 17px; border: 1px solid rgba(103, 151, 199, .22); border-radius: 15px; background: rgba(7, 17, 31, .55); color: inherit; font: inherit; text-align: left; cursor: pointer; appearance: none; transition: border-color .22s ease, background .22s ease, box-shadow .22s ease; }
.user-hub-news-preview:hover { border-color: rgba(102, 194, 255, .6); background: linear-gradient(105deg, rgba(17, 45, 74, .68), rgba(31, 23, 67, .56)); box-shadow: 0 12px 28px rgba(1, 7, 17, .2); }
.user-hub-news-preview:focus-visible { outline: 2px solid rgba(104, 199, 255, .9); outline-offset: 3px; }
.user-hub-news-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.user-hub-news-head h3 { margin: 2px 0 0; }
.user-hub-news-all { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid rgba(104, 186, 239, .22); border-radius: 9px; color: #82caff; background: rgba(57, 131, 190, .08); font-size: 12px; font-weight: 700; text-decoration: none; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.user-hub-news-all:hover, .user-hub-news-all:focus-visible { border-color: rgba(104, 186, 239, .52); color: #e5f5ff; background: rgba(57, 131, 190, .18); outline: 0; }
.user-hub-news-all span { font-size: 16px; line-height: 1; }
.user-hub-news-preview.warning { border-color: rgba(255, 189, 97, .28); }
.user-hub-news-preview.success { border-color: rgba(66, 223, 173, .26); }
.user-hub-news-copy { display: grid; min-width: 0; gap: 5px; }
.user-hub-news-copy .user-hub-kicker { margin: 0; }
.user-hub-news-copy strong { overflow: hidden; color: #eef5ff; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.user-hub-news-copy > span:last-child { overflow: hidden; color: #91a1ba; font-size: 13px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.user-hub-news-arrow { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(104, 186, 239, .22); border-radius: 9px; color: #82caff; background: rgba(57, 131, 190, .12); transition: transform .22s ease, background .22s ease; }
.user-hub-news-arrow { pointer-events: none; }
.user-hub-news-preview:hover .user-hub-news-arrow, .user-hub-news-arrow:focus-visible { transform: translateX(3px); background: rgba(57, 131, 190, .22); outline: 0; }
.user-hub-news-arrow svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.user-hub-news-meta { display: flex; justify-content: space-between; gap: 12px; margin: 9px 2px 0; color: #748aa5; font-size: 11px; }
.user-hub-news-empty { display: grid; gap: 5px; padding: 15px 2px; color: #8796ad; }
.user-hub-news-empty strong { color: #e8f1ff; font-size: 15px; }
.user-hub-news-empty > span:last-child { font-size: 13px; }

.user-hub-referral { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 20px; padding: 22px; border: 1px solid rgba(103, 151, 199, .22); border-radius: 17px; background: linear-gradient(135deg, rgba(14, 29, 52, .84), rgba(21, 16, 48, .72)); }
.user-hub-referral .user-hub-card-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin: 0; }
.user-hub-referral .user-hub-card-head > div { min-width: 0; }
.user-hub-referral .user-hub-card-head h3 { margin: 4px 0 7px; }
.user-hub-referral .user-hub-card-head p { max-width: 700px; margin: 0; color: #93a8c2; font-size: 13px; line-height: 1.55; }
.user-hub-referral-bonus { display: grid; grid-template-columns: minmax(170px, .65fr) minmax(0, 1.35fr); align-items: center; gap: 20px; margin: 0; padding: 16px; border: 1px solid rgba(103, 151, 199, .18); border-radius: 14px; background: rgba(5, 15, 29, .4); }
.user-hub-referral-bonus > div:first-child { display: grid; gap: 5px; }
.user-hub-referral-bonus strong { color: #d6a5ff; font-size: 30px; line-height: 1; }
.user-hub-referral-bonus > div:first-child span { color: #9db0c7; font-size: 12px; line-height: 1.4; }
.user-hub-referral .user-hub-field { margin: 0; }
.user-hub-referral .user-hub-field > span { color: #8299b5; font-size: 11px; }
.user-hub-referral .user-hub-field > div { gap: 8px; }
.user-hub-referral .user-hub-field input { min-width: 0; min-height: 44px; height: 44px; font-size: 12px; color: #cbd9e9; }
.user-hub-referral .user-hub-field button { min-height: 44px; white-space: nowrap; }
.user-hub-referral-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.user-hub-referral-stats article { min-height: 78px; padding: 14px; border-radius: 12px; }
.user-hub-referral-stats article strong { color: #eff6ff; font-size: 21px; }
.user-hub-referral-stats article span { color: #8198b4; font-size: 12px; }

.devices-view .user-hub-overview, .payments-view .user-hub-overview, .devices-view .user-hub-news, .payments-view .user-hub-news, .devices-view .user-hub-referral, .payments-view .user-hub-referral { display: none !important; }
@keyframes cabinetNewsItemIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
    .user-hub-referral { padding: 17px; }
    .user-hub-referral-bonus { grid-template-columns: 1fr; gap: 15px; }
    .user-hub-referral-stats { grid-template-columns: 1fr; }
    .user-hub-news-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
    .user-hub-news-preview, .user-hub-news-all, .user-hub-news-arrow, .aether-summary-upgrade { transition: none; animation: none; }
}

/* Support ticket control polish: calm surfaces, custom selects and purposeful motion. */
.support-ticket-page { max-width: 1240px; gap: 24px; padding: 30px 0 72px; }
.support-ticket-columns { grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 24px; align-items: stretch; }
.support-ticket-form, .support-ticket-list { position: relative; overflow: visible; padding: 28px; border-radius: 22px; border-color: rgba(112, 151, 205, .25); background: linear-gradient(145deg, rgba(11, 24, 44, .94), rgba(7, 16, 31, .94)); box-shadow: 0 18px 48px rgba(0, 0, 0, .16); }
.support-ticket-form::before, .support-ticket-list::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(120deg, rgba(103, 192, 255, .06), transparent 32%, rgba(151, 92, 255, .04)); pointer-events: none; }
.support-ticket-form > *, .support-ticket-list > * { position: relative; z-index: 1; }
.support-ticket-form > label, .support-ticket-form-grid { animation: supportFieldIn .38s cubic-bezier(.22, .8, .28, 1) both; }
.support-ticket-form > label:nth-of-type(1) { animation-delay: .04s; }
.support-ticket-form > label:nth-of-type(2) { animation-delay: .08s; }
.support-ticket-form-grid { animation-delay: .12s; }
.support-ticket-attachment { animation: supportFieldIn .38s cubic-bezier(.22, .8, .28, 1) .16s both; }
.support-ticket-preview { animation: supportFieldIn .26s ease both; }
.support-ticket-submit { animation: supportFieldIn .38s cubic-bezier(.22, .8, .28, 1) .2s both; }
.support-ticket-form > label, .support-ticket-form-grid label { color: #c8d7e9; font-weight: 600; }
.support-ticket-form input:not([type="file"]), .support-ticket-form textarea, .support-ticket-reply textarea { min-height: 52px; border-radius: 13px; border-color: rgba(117, 158, 211, .3); background: rgba(7, 20, 38, .86); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025); transition: border-color .22s ease, box-shadow .22s ease, background .22s ease, transform .22s ease; }
.support-ticket-form textarea { min-height: 148px; line-height: 1.55; }
.support-ticket-form input:not([type="file"]):hover, .support-ticket-form textarea:hover, .support-ticket-reply textarea:hover { border-color: rgba(125, 185, 237, .52); background: rgba(9, 25, 46, .94); }
.support-ticket-form input:not([type="file"]):focus, .support-ticket-form textarea:focus, .support-ticket-reply textarea:focus { border-color: #70c9ff; background: rgba(10, 28, 50, .98); box-shadow: 0 0 0 4px rgba(88, 174, 255, .11), 0 10px 24px rgba(0, 0, 0, .12); transform: translateY(-1px); }
.support-ticket-form-grid { position: relative; z-index: 4; gap: 14px; margin-top: 20px; }
.support-ticket-field { position: relative; min-width: 0; }
.support-ticket-select { position: relative; z-index: 5; min-width: 0; }
.support-ticket-select-trigger { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid rgba(117, 158, 211, .3); border-radius: 13px; background: rgba(7, 20, 38, .86); color: #edf5ff; font: inherit; font-size: 14px; text-align: left; cursor: pointer; outline: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025); transition: border-color .22s ease, box-shadow .22s ease, background .22s ease, transform .22s ease; }
.support-ticket-select-trigger:hover { border-color: rgba(125, 185, 237, .58); background: rgba(9, 25, 46, .96); }
.support-ticket-select-trigger:focus-visible, .support-ticket-select.is-open .support-ticket-select-trigger { border-color: #70c9ff; background: rgba(10, 28, 50, .98); box-shadow: 0 0 0 4px rgba(88, 174, 255, .11), 0 10px 24px rgba(0, 0, 0, .14); }
.support-ticket-select-trigger svg { flex: 0 0 auto; width: 18px; height: 18px; fill: none; stroke: #8ecfff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; transition: transform .25s cubic-bezier(.22, .8, .28, 1), stroke .2s ease; }
.support-ticket-select.is-open .support-ticket-select-trigger svg { transform: rotate(180deg); stroke: #e7f6ff; }
.support-ticket-select:not(.has-value) [data-select-value] { color: #8192aa; }
.support-ticket-select-menu { position: absolute; top: calc(100% + 8px); right: 0; left: 0; z-index: 50; display: grid; gap: 4px; padding: 7px; border: 1px solid rgba(116, 177, 229, .34); border-radius: 15px; background: linear-gradient(160deg, #10243d, #09172b); box-shadow: 0 18px 42px rgba(0, 0, 0, .36), 0 0 0 1px rgba(91, 166, 228, .06); transform-origin: top center; animation: supportSelectIn .2s cubic-bezier(.22, .8, .28, 1) both; }
.support-ticket-select-menu[hidden] { display: none; }
.support-ticket-select-option { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 9px 11px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #cbd9e9; font: inherit; font-size: 13px; text-align: left; cursor: pointer; opacity: 0; transform: translateY(-4px); animation: supportOptionIn .2s ease forwards; }
.support-ticket-select-option:nth-child(1) { animation-delay: .02s; }
.support-ticket-select-option:nth-child(2) { animation-delay: .04s; }
.support-ticket-select-option:nth-child(3) { animation-delay: .06s; }
.support-ticket-select-option:nth-child(4) { animation-delay: .08s; }
.support-ticket-select-option:nth-child(5) { animation-delay: .1s; }
.support-ticket-select-option:nth-child(6) { animation-delay: .12s; }
.support-ticket-select-option:hover, .support-ticket-select-option[aria-selected="true"] { border-color: rgba(105, 193, 255, .24); background: linear-gradient(90deg, rgba(48, 132, 199, .25), rgba(109, 84, 219, .13)); color: #f3f8ff; }
.support-ticket-select-option[aria-selected="true"]::after { content: "✓"; color: #83d4ff; font-weight: 800; }
.support-ticket-select-option small { margin-left: auto; color: #7f9bb8; font-size: 11px; }
.support-ticket-select.is-invalid .support-ticket-select-trigger { border-color: #ff7f9c; box-shadow: 0 0 0 4px rgba(255, 82, 126, .1); animation: supportShake .28s ease both; }
.support-ticket-attachment { min-height: 68px; margin-top: 20px; padding: 14px 15px; border-radius: 14px; border-color: rgba(113, 183, 234, .42); background: rgba(7, 20, 38, .45); transition: border-color .22s ease, background .22s ease, transform .22s ease; }
.support-ticket-attachment:hover { border-color: rgba(116, 204, 255, .8); background: rgba(13, 34, 58, .68); transform: translateY(-1px); }
.support-ticket-attachment span { color: #cad8e9; font-weight: 600; }
.support-ticket-attachment b { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 9px; background: rgba(86, 171, 236, .1); color: #8bd1ff; transition: background .2s ease, color .2s ease; }
.support-ticket-attachment:hover b { background: rgba(86, 171, 236, .2); color: #e2f5ff; }
.support-ticket-preview { min-height: 60px; margin-top: 10px; padding: 9px; border: 1px solid rgba(110, 163, 215, .2); border-radius: 13px; background: rgba(5, 16, 31, .56); }
.support-ticket-preview[hidden] { display: none; }
.support-ticket-preview img { width: 58px; height: 58px; border-radius: 10px; border-color: rgba(112, 174, 227, .4); background: #0b1b30; }
.support-ticket-preview img[hidden] { display: none; }
.support-ticket-preview span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #b6c7da; }
.support-ticket-preview button { padding: 7px 9px; border-radius: 8px; transition: color .2s ease, background .2s ease; }
.support-ticket-preview button:hover { background: rgba(255, 103, 135, .1); color: #ffbdc9; }
.support-ticket-previews { display: grid; gap: 11px; margin-top: 10px; padding: 13px; border: 1px solid rgba(110, 163, 215, .22); border-radius: 14px; background: rgba(5, 16, 31, .56); animation: supportFieldIn .26s ease both; }
.support-ticket-previews[hidden] { display: none; }
.support-ticket-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #cfe0f2; font-size: 12px; }
.support-ticket-preview-head strong { font-size: 13px; }
.support-ticket-preview-head > span { color: #82c9f3; font-variant-numeric: tabular-nums; }
.support-ticket-preview-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 9px; }
.support-ticket-preview-card { min-width: 0; display: grid; grid-template-columns: 54px minmax(0, 1fr) 25px; align-items: center; gap: 10px; padding: 8px; border: 1px solid rgba(111, 168, 218, .2); border-radius: 11px; background: rgba(10, 26, 46, .72); animation: supportPreviewIn .22s ease both; }
.support-ticket-preview-card img { width: 54px; height: 54px; display: block; object-fit: cover; border: 1px solid rgba(116, 189, 239, .3); border-radius: 9px; background: #0b1b30; }
.support-ticket-preview-card > div { min-width: 0; display: grid; gap: 4px; }
.support-ticket-preview-card strong { overflow: hidden; color: #e6f1ff; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.support-ticket-preview-card small { color: #8299b4; font-size: 11px; }
.support-ticket-preview-card button { width: 25px; height: 25px; padding: 0; border: 1px solid rgba(255, 117, 147, .24); border-radius: 8px; color: #ff9caf; background: rgba(255, 91, 126, .08); font-size: 17px; line-height: 1; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.support-ticket-preview-card button:hover, .support-ticket-preview-card button:focus-visible { border-color: rgba(255, 136, 161, .6); color: #fff0f4; background: rgba(255, 91, 126, .2); transform: scale(1.06); outline: 0; }
.support-ticket-message-attachments { display: grid; grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: 9px; margin-top: 10px; }
.support-ticket-message-attachments .support-ticket-image { min-width: 0; display: grid; gap: 5px; padding: 6px; border: 1px solid rgba(112, 175, 225, .22); border-radius: 11px; background: rgba(7, 19, 35, .5); color: #a9c9e7; text-decoration: none; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.support-ticket-message-attachments .support-ticket-image:hover { border-color: rgba(114, 202, 255, .62); background: rgba(17, 44, 72, .7); transform: translateY(-1px); }
.support-ticket-message-attachments .support-ticket-image img { width: 100%; height: 94px; display: block; object-fit: cover; border-radius: 7px; background: #0b1b30; cursor: zoom-in; }
.support-ticket-message-attachments .support-ticket-image span { overflow: hidden; padding: 0 2px 2px; color: #b8cee4; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
@keyframes supportPreviewIn { from { opacity: 0; transform: translateY(4px) scale(.985); } to { opacity: 1; transform: none; } }
.support-ticket-submit { min-height: 52px; margin-top: 20px; border-radius: 13px; box-shadow: 0 12px 26px rgba(46, 128, 221, .16); transition: transform .22s ease, box-shadow .22s ease, filter .22s ease; }
.support-ticket-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(46, 128, 221, .24); filter: saturate(1.08); }
.support-ticket-submit:active:not(:disabled) { transform: translateY(0); }
.support-ticket-submit:disabled { cursor: wait; opacity: .76; }
.support-ticket-submit.is-loading span { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .36); border-top-color: #fff; border-radius: 50%; font-size: 0; animation: supportSpin .7s linear infinite; }
.support-ticket-list { min-height: 100%; }
.support-ticket-list .user-hub-card-head { align-items: center; padding-bottom: 18px; border-bottom: 1px solid rgba(112, 151, 205, .16); }
.support-ticket-list .user-hub-card-head > span { color: #82a2c4; }
.support-ticket-list .user-hub-secondary { transition: transform .22s ease, border-color .22s ease, background .22s ease; }
.support-ticket-list .user-hub-secondary:hover { transform: translateY(-1px); border-color: rgba(114, 204, 255, .55); background: rgba(45, 107, 166, .2); }
.support-ticket-item { min-height: 70px; border-radius: 14px; background: rgba(7, 20, 38, .66); transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease; }
.support-ticket-item:hover, .support-ticket-item.selected { transform: translateY(-2px); border-color: rgba(96, 192, 255, .62); background: linear-gradient(110deg, rgba(20, 52, 84, .78), rgba(24, 37, 75, .68)); box-shadow: 0 10px 25px rgba(0, 0, 0, .16); }
.support-ticket-item-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(104, 193, 255, .22); border-radius: 11px; background: rgba(69, 154, 222, .1); }
.support-ticket-dialog-panel { border-radius: 22px; border-color: rgba(116, 177, 229, .42); }
@keyframes supportFieldIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes supportSelectIn { from { opacity: 0; transform: translateY(-5px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes supportOptionIn { to { opacity: 1; transform: translateY(0); } }
@keyframes supportSpin { to { transform: rotate(360deg); } }
@keyframes supportShake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) {
    .support-ticket-form > *, .support-ticket-list > *, .support-ticket-select-menu, .support-ticket-select-option, .support-ticket-submit.is-loading span, .support-ticket-previews, .support-ticket-preview-card { animation: none; }
    .support-ticket-select-option { opacity: 1; transform: none; }
}

/* Keep support popovers above the adjacent ticket list and the collapsed sidebar labels visible. */
.support-ticket-columns { position: relative; z-index: 2; }
.support-ticket-form { position: relative; z-index: 20; }
.support-ticket-form-grid { position: relative; z-index: 30; }
.support-ticket-select-menu { z-index: 1000; }
.user-hub.sidebar-collapsed .user-hub-sidebar { z-index: 60; overflow: visible; }
.user-hub.sidebar-collapsed .user-hub-nav a::after,
.user-hub.sidebar-collapsed .user-hub-sidebar-bottom a::after { z-index: 1000; }
.user-hub-toast { z-index: 1000; }

@media (max-width: 900px) {
    .support-ticket-page { padding-top: 20px; }
    .support-ticket-columns { grid-template-columns: 1fr; }
}

/* Support workspace: keep the ticket list visible while the left pane switches
   between creation and conversation states instead of opening a modal. */
.support-ticket-workspace { min-width: 0; display: grid; align-items: stretch; }
.support-ticket-form[hidden], .support-ticket-conversation[hidden] { display: none; }
.support-ticket-form, .support-ticket-conversation { min-height: 640px; }
.support-ticket-conversation { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; padding: 0; border-radius: 22px; border-color: rgba(112, 151, 205, .25); background: linear-gradient(145deg, rgba(11, 24, 44, .94), rgba(7, 16, 31, .94)); box-shadow: 0 18px 48px rgba(0, 0, 0, .16); }
.support-ticket-conversation { height: min(720px, calc(100vh - 190px)); height: min(720px, calc(100svh - 190px)); min-height: 0; }
.support-ticket-conversation::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(120deg, rgba(103, 192, 255, .06), transparent 32%, rgba(151, 92, 255, .04)); pointer-events: none; }
.support-ticket-conversation > * { position: relative; z-index: 1; }
.support-ticket-conversation-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding: 28px; border-bottom: 1px solid rgba(110, 143, 191, .16); }
.support-ticket-conversation-head h2 { margin: 5px 0 4px; color: #edf5ff; font-size: 22px; line-height: 1.2; }
.support-ticket-conversation-head p { margin: 0; color: #8ea1bc; font-size: 12px; }
.support-ticket-conversation-status { flex: 0 0 auto; border-radius: 99px; padding: 7px 10px; color: #6fe0b9; background: rgba(23, 127, 105, .18); font-size: 11px; font-weight: 700; white-space: nowrap; }
.support-ticket-conversation-status.closed { color: #aab6ca; background: rgba(105, 122, 150, .16); }
.support-ticket-conversation .support-ticket-dialog-messages { min-height: 0; max-height: none; padding: 22px 28px; }
.support-ticket-list-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.support-ticket-reply-file-name { min-width: 0; max-width: 190px; overflow: hidden; color: #839bb6; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.support-ticket-conversation .support-ticket-reply { padding: 16px 28px 24px; }

@media (max-width: 900px) {
    .support-ticket-form, .support-ticket-conversation { min-height: 0; }
    .support-ticket-conversation { height: min(640px, calc(100svh - 150px)); }
    .support-ticket-conversation .support-ticket-dialog-messages { min-height: 0; }
}

@media (max-width: 620px) {
    .support-ticket-conversation-head { padding: 21px 17px; }
    .support-ticket-conversation .support-ticket-dialog-messages { padding: 18px 17px; }
    .support-ticket-conversation .support-ticket-reply { padding: 14px 17px 18px; }
    .support-ticket-list-actions { width: 100%; justify-content: stretch; }
    .support-ticket-list-actions button { flex: 1 1 0; }
    .support-ticket-reply-file-name { max-width: 120px; }
}
@media (max-width: 560px) {
    .support-ticket-preview-list { grid-template-columns: 1fr; }
    .support-ticket-message-attachments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Final cabinet overrides: keep view contents isolated and spacing intentional. */
.user-hub-overview .user-hub-card-head { margin-bottom: 24px !important; }
.user-hub-grid > .user-hub-referral { grid-column: 1 !important; grid-row: auto !important; }
.settings-view .user-hub-grid > .user-hub-overview,
.settings-view .user-hub-grid > .user-hub-referral,
.settings-view .user-hub-grid > .user-hub-purchase,
.settings-view .user-hub-grid > .user-hub-subscription,
.settings-view .user-hub-grid > .user-hub-devices,
.settings-view .user-hub-grid > .user-hub-payments { display: none !important; }
.settings-view .user-hub-grid > .user-hub-settings { display: block !important; grid-column: 1 !important; }

/* Final reply-composer layout: one full-width Telegram-like field with a compact
   horizontal attachment strip. These rules intentionally come last because the
   legacy `.support-ticket-reply > div` rule must not turn the composer into a row. */
.support-ticket-conversation .support-ticket-reply { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; min-width: 0; }
.support-ticket-conversation .support-ticket-reply > .support-ticket-reply-composer { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; grid-column: 1; width: 100%; min-width: 0; align-items: stretch; justify-content: stretch; align-content: stretch; }
.support-ticket-conversation .support-ticket-reply-attachment-list { display: flex; flex-wrap: nowrap; width: 100%; min-width: 0; overflow-x: auto; }
.support-ticket-conversation .support-ticket-reply-attachment-card { flex: 0 0 190px; width: 190px; }
.support-ticket-conversation .support-ticket-reply-input { display: block; width: 100%; min-width: 0; }
.support-ticket-conversation .support-ticket-reply-input textarea { display: block; width: 100%; min-width: 0; min-height: 88px; padding: 14px; resize: vertical; }
.support-ticket-conversation .support-ticket-reply-actions { display: flex; width: 100%; min-width: 0; justify-content: space-between; align-items: center; gap: 12px; padding: 0 12px 12px; }
.support-ticket-conversation .support-ticket-reply-actions .support-ticket-reply-attach { position: relative; right: auto; bottom: auto; flex: 0 0 auto; }
.support-ticket-conversation .support-ticket-reply-actions .user-hub-primary { margin: 0; flex: 0 0 auto; min-height: 44px; padding-inline: 22px; }
@media (max-width: 620px) {
    .support-ticket-conversation .support-ticket-reply-attachment-card { flex-basis: min(190px, calc(100vw - 86px)); width: min(190px, calc(100vw - 86px)); }
}
.payments-view .user-hub-grid > .user-hub-overview,
.payments-view .user-hub-grid > .user-hub-referral,
.payments-view .user-hub-grid > .user-hub-purchase,
.payments-view .user-hub-grid > .user-hub-subscription,
.payments-view .user-hub-grid > .user-hub-devices,
.payments-view .user-hub-grid > .user-hub-settings { display: none !important; }
.devices-view .user-hub-grid > .user-hub-overview,
.devices-view .user-hub-grid > .user-hub-referral,
.devices-view .user-hub-grid > .user-hub-purchase,
.devices-view .user-hub-grid > .user-hub-subscription,
.devices-view .user-hub-grid > .user-hub-payments,
.devices-view .user-hub-grid > .user-hub-settings { display: none !important; }
.user-hub.sidebar-collapsed .user-hub-sidebar { overflow: visible; scrollbar-width: none; }
.user-hub.sidebar-collapsed .user-hub-sidebar::-webkit-scrollbar { width: 0; height: 0; }
.user-hub.sidebar-collapsed .user-hub-sidebar-head { display: block; }
.user-hub.sidebar-collapsed .user-hub-brand { display: none; }
.user-hub.sidebar-collapsed .user-hub-collapse { width: 100%; height: 44px; min-width: 0; border-radius: 12px; }
.user-hub.sidebar-collapsed .user-hub-nav,
.user-hub.sidebar-collapsed .user-hub-sidebar-bottom,
.user-hub.sidebar-collapsed .user-hub-nav a,
.user-hub.sidebar-collapsed .user-hub-sidebar-bottom a { width: 100%; min-width: 0; }

/* Subscription and overview spacing pass. */
.user-hub-subscription-hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(170px, .72fr) minmax(190px, .82fr);
    gap: 0;
    overflow: hidden;
    padding: 0;
    border-radius: 18px;
    border-color: rgba(112, 151, 199, .28);
    background:
        radial-gradient(460px 220px at 100% 0%, rgba(75, 124, 190, .14), transparent 72%),
        linear-gradient(135deg, rgba(15, 31, 52, .96), rgba(9, 16, 30, .96));
}

.user-hub-plan-summary,
.user-hub-subscription-stat {
    min-height: 142px;
    padding: 22px 24px;
}

.user-hub-plan-summary {
    align-content: center;
}

.user-hub-subscription-stat {
    border-left-color: rgba(112, 151, 199, .2);
    padding-left: 20px;
    padding-right: 20px;
}

.user-hub-subscription-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px;
    margin-top: 18px;
}

.user-hub-subscription-actions .user-hub-primary,
.user-hub-subscription-actions .user-hub-secondary {
    min-width: 0;
    border-radius: 14px;
    border-color: rgba(112, 151, 199, .28);
    background: linear-gradient(135deg, rgba(18, 42, 68, .92), rgba(12, 26, 44, .94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.user-hub-subscription-actions .user-hub-primary {
    border-color: rgba(94, 174, 239, .48);
    background: linear-gradient(135deg, rgba(26, 67, 104, .98), rgba(19, 43, 69, .96));
}

.user-hub-subscription-actions i {
    border: 1px solid rgba(123, 198, 255, .16);
    border-radius: 12px;
    color: #9ad6ff;
    background: rgba(63, 139, 198, .16);
}

/* Keep the cabinet action controls in the same blue visual language. */
.cabinet-pricing .aether-tier-switch button {
    border-color: rgba(112, 151, 199, .3);
    background: linear-gradient(135deg, rgba(18, 42, 68, .92), rgba(12, 26, 44, .94));
}

.cabinet-pricing .aether-tier-switch button:hover {
    border-color: rgba(94, 174, 239, .68);
    background: linear-gradient(135deg, rgba(24, 56, 88, .96), rgba(16, 36, 59, .96));
    box-shadow: 0 12px 28px rgba(20, 86, 146, .18);
}

.cabinet-pricing .aether-tier-switch button.active {
    border-color: rgba(112, 201, 255, .82);
    background: linear-gradient(135deg, rgba(38, 105, 161, .98), rgba(25, 64, 102, .98));
    box-shadow: 0 12px 30px rgba(20, 86, 146, .22);
}

.cabinet-pricing .aether-tier-switch button.active:hover {
    border-color: rgba(145, 218, 255, .96);
    box-shadow: 0 16px 34px rgba(20, 86, 146, .3);
}

.cabinet-pricing .aether-summary-upgrade {
    border-color: rgba(94, 174, 239, .42);
    background: linear-gradient(135deg, rgba(26, 67, 104, .86), rgba(19, 43, 69, .9));
}

.cabinet-pricing .aether-summary-upgrade:hover,
.cabinet-pricing .aether-summary-upgrade:focus-visible {
    border-color: rgba(125, 201, 255, .78);
    background: linear-gradient(135deg, rgba(36, 91, 139, .94), rgba(25, 61, 96, .96));
    box-shadow: 0 10px 24px rgba(20, 86, 146, .22);
}

.cabinet-pricing .aether-pricing-cta {
    border: 1px solid rgba(125, 201, 255, .58);
    background: linear-gradient(135deg, #2f8fd0, #2564a6);
    box-shadow: 0 14px 30px rgba(20, 86, 146, .26);
}

.cabinet-pricing .aether-pricing-cta:hover,
.cabinet-pricing .aether-pricing-cta:focus-visible {
    border-color: rgba(163, 224, 255, .88);
    background: linear-gradient(135deg, #3aa8e8, #2c76bd);
    box-shadow: 0 18px 36px rgba(20, 86, 146, .34);
}

.user-hub-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.user-hub-overview-grid > article {
    min-width: 0;
}

.user-hub-traffic-story {
    margin-top: 0 !important;
    min-height: 92px;
}

@media (max-width: 760px) {
    .user-hub-subscription-hero {
        grid-template-columns: 1fr;
    }

    .user-hub-plan-summary,
    .user-hub-subscription-stat {
        min-height: 0;
        padding: 18px;
    }

    .user-hub-subscription-stat {
        border-top: 1px solid rgba(112, 151, 199, .2);
        border-left: 0;
    }

    .user-hub-overview-grid {
        grid-template-columns: 1fr;
    }

    .user-hub-subscription-actions {
        grid-template-columns: 1fr !important;
    }
}

/* Rich cabinet news presentation. */
.user-hub-news-preview.has-cover {
    grid-template-columns: 122px 9px minmax(0, 1fr) 32px;
}
.user-hub-news-preview-media {
    display: block;
    width: 122px;
    height: 69px;
    overflow: hidden;
    border: 1px solid rgba(112, 187, 239, .28);
    border-radius: 11px;
    background: rgba(6, 18, 33, .72);
}
.user-hub-news-preview-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.cabinet-news-richtext {
    margin-top: 12px;
    color: #c6d5e6;
    font-size: 14px;
    line-height: 1.65;
}
.cabinet-news-richtext p { margin: 0 0 12px; }
.cabinet-news-richtext h1,
.cabinet-news-richtext h2,
.cabinet-news-richtext h3 { margin: 18px 0 9px; color: #f0f6ff; line-height: 1.2; }
.cabinet-news-richtext h1 { font-size: 28px; }
.cabinet-news-richtext h2 { font-size: 22px; }
.cabinet-news-richtext h3 { font-size: 18px; }
.cabinet-news-richtext strong { color: #edf6ff; }
.cabinet-news-richtext blockquote { margin: 14px 0; padding: 11px 15px; border-left: 3px solid #68c7ff; color: #a9c6df; background: rgba(76, 151, 218, .1); }
.cabinet-news-richtext ul,
.cabinet-news-richtext ol { margin: 10px 0 14px; padding-left: 22px; }
.cabinet-news-richtext img,
.news-image-small,
.news-image-medium,
.news-image-large,
.news-image-full { max-width: 100%; height: auto; border-radius: 12px; }
.cabinet-news-richtext img { display: block; margin-top: 16px; margin-bottom: 16px; }
.news-align-left { display: block !important; margin-left: 0 !important; margin-right: auto !important; }
.news-align-center { display: block !important; margin-left: auto !important; margin-right: auto !important; }
.news-align-right { display: block !important; margin-left: auto !important; margin-right: 0 !important; }
.news-image-small { width: 34%; }
.news-image-medium { width: 58%; }
.news-image-large { width: 78%; }
.news-image-full { width: 100%; }
.cabinet-news-richtext .news-media-row { display: grid; grid-template-columns: minmax(130px, .78fr) minmax(0, 1.22fr); align-items: center; gap: 18px; margin: 24px 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.cabinet-news-richtext .news-media-row.news-media-row-right { grid-template-columns: minmax(0, 1.22fr) minmax(130px, .78fr); }
.cabinet-news-richtext .news-media-row > img { grid-column: 1; width: 100%; max-width: none; margin: 0; }
.cabinet-news-richtext .news-media-row.news-media-row-right > img { grid-column: 2; }
.cabinet-news-richtext .news-media-copy { grid-column: 2; min-width: 0; color: #c6d5e6; }
.cabinet-news-richtext .news-media-row.news-media-row-right > .news-media-copy { grid-column: 1; grid-row: 1; }
.cabinet-news-richtext .news-media-copy p:last-child { margin-bottom: 0; }
@media (max-width: 620px) {
    .user-hub-news-preview.has-cover { grid-template-columns: 88px 9px minmax(0, 1fr) 28px; }
    .user-hub-news-preview-media { width: 88px; height: 50px; }
    .cabinet-news-richtext .news-media-row, .cabinet-news-richtext .news-media-row.news-media-row-right { grid-template-columns: 1fr; gap: 11px; }
    .cabinet-news-richtext .news-media-row > img, .cabinet-news-richtext .news-media-row.news-media-row-right > img, .cabinet-news-richtext .news-media-row > .news-media-copy, .cabinet-news-richtext .news-media-row.news-media-row-right > .news-media-copy { grid-column: 1; grid-row: auto; }
}

/* Landing trust section: animated, evidence-led service facts. */
.aether-trust-section {
    margin-top: 18px;
    padding: 42px 0 10px;
    border-top: 1px solid rgba(126, 111, 194, .28);
}

.aether-trust-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
    align-items: end;
    gap: 32px;
    margin-bottom: 24px;
}

.aether-trust-intro h2 {
    margin: 8px 0 0;
    color: #fff;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
}

.aether-trust-intro > p {
    max-width: 520px;
    margin: 0 0 2px auto;
    color: #aaa6c3;
    line-height: 1.65;
}

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

.aether-trust-card {
    --trust-color: #5fe0ff;
    --trust-rgb: 95, 224, 255;
    position: relative;
    min-width: 0;
    min-height: 252px;
    overflow: hidden;
    padding: 20px;
    border: 1px solid rgba(var(--trust-rgb), .22);
    border-radius: 18px;
    background:
        radial-gradient(240px 180px at 0% 100%, rgba(var(--trust-rgb), .1), transparent 72%),
        linear-gradient(145deg, rgba(21, 17, 58, .9), rgba(8, 9, 29, .84));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 18px 42px rgba(0, 0, 0, .14);
}

.aether-trust-card::after {
    position: absolute;
    top: -46px;
    right: 20px;
    width: 130px;
    height: 130px;
    border: 1px solid rgba(var(--trust-rgb), .14);
    border-radius: 50%;
    box-shadow: 0 0 0 18px rgba(var(--trust-rgb), .025), 0 0 0 36px rgba(var(--trust-rgb), .018);
    content: "";
    pointer-events: none;
}

.aether-trust-card:hover {
    border-color: rgba(var(--trust-rgb), .48);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 22px 50px rgba(var(--trust-rgb), .1);
}

.trust-card--violet { --trust-color: #b35dff; --trust-rgb: 179, 93, 255; }
.trust-card--blue { --trust-color: #6b9dff; --trust-rgb: 107, 157, 255; }
.trust-card--pink { --trust-color: #ff72cf; --trust-rgb: 255, 114, 207; }

.aether-trust-card-head,
.aether-trust-meta,
.aether-platform-legend,
.aether-device-bar-row,
.aether-device-scale,
.aether-start-labels {
    display: flex;
    align-items: center;
}

.aether-trust-card-head {
    position: relative;
    z-index: 1;
    justify-content: space-between;
    gap: 12px;
}

.aether-trust-index {
    color: var(--trust-color);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
}

.aether-trust-badge {
    padding: 6px 9px;
    border: 1px solid rgba(var(--trust-rgb), .24);
    border-radius: 999px;
    color: var(--trust-color);
    background: rgba(var(--trust-rgb), .08);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.aether-trust-card-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(140px, .84fr) minmax(0, 1.16fr);
    align-items: center;
    gap: 20px;
    min-height: 188px;
}

.aether-trust-chart,
.aether-start-chart {
    position: relative;
    width: min(100%, 164px);
    margin: 0 auto;
}

.aether-trust-chart svg,
.aether-start-chart svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.aether-donut-track,
.aether-donut-value-ring,
.aether-platform-segment {
    fill: none;
}

.aether-donut-track {
    stroke: rgba(255, 255, 255, .08);
    stroke-width: 10;
}

.aether-donut-value-ring {
    stroke: var(--trust-color);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transform: rotate(-90deg);
    transform-origin: 60px 60px;
    filter: drop-shadow(0 0 7px rgba(var(--trust-rgb), .48));
    transition: stroke-dashoffset 1.1s cubic-bezier(.22, 1, .36, 1);
}

.aether-trust-card.is-visible .aether-donut-value-ring { stroke-dashoffset: 0; }

.aether-donut-center {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    text-align: center;
}

.aether-donut-center strong {
    color: #fff;
    font-size: clamp(23px, 3vw, 30px);
    line-height: 1;
}

.aether-donut-center span {
    margin-top: 5px;
    color: #a9a5c3;
    font-size: 10px;
    letter-spacing: .04em;
}

.aether-trust-copy { min-width: 0; }

.aether-trust-copy h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 17px;
    line-height: 1.25;
}

.aether-trust-copy p {
    margin: 0;
    color: #aaa6c3;
    font-size: 13px;
    line-height: 1.55;
}

.aether-trust-meta {
    justify-content: space-between;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(126, 111, 194, .19);
    color: #8884a5;
    font-size: 10px;
}

.aether-trust-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.aether-trust-meta i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--trust-color);
    box-shadow: 0 0 10px rgba(var(--trust-rgb), .7);
}

.aether-trust-meta strong {
    color: #d8d5eb;
    font-size: 10px;
    font-weight: 700;
    text-align: right;
}

.aether-device-chart { width: 100%; min-width: 0; }

.aether-device-chart-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 18px;
}

.aether-device-chart-head strong {
    color: #fff;
    font-size: 42px;
    line-height: .9;
}

.aether-device-chart-head span { color: #aaa6c3; font-size: 11px; }
.aether-device-bars { display: grid; gap: 13px; }

.aether-device-bar-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 16px;
    gap: 8px;
}

.aether-device-bar-row > span,
.aether-device-bar-row > b,
.aether-device-scale {
    color: #aaa6c3;
    font-size: 9px;
    font-weight: 800;
}

.aether-device-bar-row > span { align-self: center; }
.aether-device-bar-row > b { color: #fff; text-align: right; }

.aether-device-bar {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}

.aether-device-bar i {
    display: block;
    width: var(--bar-size);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(var(--trust-rgb), .55), var(--trust-color));
    box-shadow: 0 0 12px rgba(var(--trust-rgb), .38);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .85s cubic-bezier(.22, 1, .36, 1);
}

.aether-trust-card.is-visible .aether-device-bar i { transform: scaleX(1); }
.aether-trust-card.is-visible .aether-device-bar-row:nth-child(2) i { transition-delay: .12s; }

.aether-device-scale {
    justify-content: space-between;
    margin: 9px 24px 0 66px;
    color: #706d8e;
    font-weight: 600;
}

.aether-platform-chart { width: min(100%, 150px); }

.aether-platform-segment {
    stroke-width: 15;
    stroke-linecap: butt;
    stroke-dasharray: 0 100;
    filter: drop-shadow(0 0 6px rgba(var(--trust-rgb), .25));
    transition: stroke-dasharray .85s cubic-bezier(.22, 1, .36, 1);
}

.aether-platform-segment:nth-child(2) { transition-delay: .08s; }
.aether-platform-segment:nth-child(3) { transition-delay: .16s; }
.aether-platform-segment:nth-child(4) { transition-delay: .24s; }
.aether-platform-segment.segment-cyan { stroke: #5fe0ff; }
.aether-platform-segment.segment-blue { stroke: #6b9dff; }
.aether-platform-segment.segment-violet { stroke: #b35dff; }
.aether-platform-segment.segment-pink { stroke: #ff72cf; }
.aether-trust-card.is-visible .aether-platform-segment { stroke-dasharray: 22 100; }

.aether-platform-hole { fill: rgba(12, 10, 37, .96); }

.aether-platform-legend {
    flex-wrap: wrap;
    gap: 8px 11px;
    margin-top: 14px;
    color: #aaa6c3;
    font-size: 10px;
}

.aether-platform-legend span { display: inline-flex; align-items: center; gap: 5px; }
.aether-platform-legend i { width: 6px; height: 6px; border-radius: 50%; }
.legend-cyan { background: #5fe0ff; }
.legend-blue { background: #6b9dff; }
.legend-violet { background: #b35dff; }
.legend-pink { background: #ff72cf; }

.aether-start-chart { width: min(100%, 190px); }
.aether-start-grid { fill: none; stroke: rgba(255, 255, 255, .09); stroke-width: 1; }

.aether-start-line {
    fill: none;
    stroke: var(--trust-color);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 360;
    stroke-dashoffset: 360;
    filter: drop-shadow(0 0 6px rgba(var(--trust-rgb), .5));
    transition: stroke-dashoffset 1s cubic-bezier(.22, 1, .36, 1);
}

.aether-trust-card.is-visible .aether-start-line { stroke-dashoffset: 0; }

.aether-start-node {
    fill: #0d0b31;
    stroke: var(--trust-color);
    stroke-width: 3;
    opacity: 0;
    transform: scale(.55);
    transform-box: fill-box;
    transform-origin: center;
    transition: opacity .25s ease, transform .5s cubic-bezier(.22, 1, .36, 1);
}

.aether-trust-card.is-visible .aether-start-node { opacity: 1; transform: scale(1); }
.aether-trust-card.is-visible .node-one { transition-delay: .38s; }
.aether-trust-card.is-visible .node-two { transition-delay: .6s; }
.aether-trust-card.is-visible .node-three { transition-delay: .94s; }

.aether-start-labels {
    justify-content: space-between;
    gap: 8px;
    margin-top: 3px;
    color: #aaa6c3;
    font-size: 9px;
}

.aether-start-labels span { display: inline-grid; gap: 4px; justify-items: center; }
.aether-start-labels b {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border: 1px solid rgba(var(--trust-rgb), .38);
    border-radius: 50%;
    color: var(--trust-color);
    background: rgba(var(--trust-rgb), .08);
    font-size: 9px;
}

@media (max-width: 900px) {
    .aether-trust-intro { grid-template-columns: 1fr; gap: 12px; }
    .aether-trust-intro > p { margin: 0; }
}

@media (max-width: 760px) {
    .aether-trust-section { padding-top: 32px; }
    .aether-trust-grid { grid-template-columns: 1fr; }
    .aether-trust-card { min-height: 0; }
}

@media (max-width: 480px) {
    .aether-trust-card { padding: 18px 16px; }
    .aether-trust-card-content { grid-template-columns: 1fr; gap: 18px; padding-top: 12px; }
    .aether-trust-chart,
    .aether-start-chart { width: min(100%, 150px); }
    .aether-device-chart { max-width: 250px; margin: 0 auto; }
    .aether-trust-copy { text-align: center; }
    .aether-trust-meta { justify-content: center; flex-wrap: wrap; }
    .aether-platform-legend { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .aether-motion-enabled .aether-trust-section,
    .aether-motion-enabled .aether-trust-card {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .aether-donut-value-ring { stroke-dashoffset: 0; transition: none; }
    .aether-device-bar i { transform: scaleX(1); transition: none; }
    .aether-platform-segment { stroke-dasharray: 22 100; transition: none; }
    .aether-start-line { stroke-dashoffset: 0; transition: none; }
    .aether-start-node { opacity: 1; transform: scale(1); transition: none; }
}

/* Live public charts: values come from the public server-ping endpoint and tariff context. */
.aether-live-donut .aether-donut-value-ring {
    stroke-dashoffset: 100;
    transition: stroke-dashoffset .9s cubic-bezier(.22, 1, .36, 1);
}

.aether-live-donut .aether-donut-center strong {
    font-size: clamp(20px, 2.6vw, 27px);
    letter-spacing: -.04em;
}

.aether-live-donut .aether-donut-center span {
    max-width: 72px;
    line-height: 1.2;
}

.aether-live-ping-chart {
    width: 100%;
    min-width: 0;
}

.aether-ping-bars {
    display: grid;
    gap: 8px;
    min-height: 150px;
    align-content: center;
}

.aether-ping-row {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) 43px;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.aether-ping-row > span {
    overflow: hidden;
    color: #aaa6c3;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aether-ping-row > b {
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.aether-ping-bar,
.aether-tariff-bar {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}

.aether-ping-bar i,
.aether-tariff-bar i {
    display: block;
    width: var(--bar-size, 0%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(var(--trust-rgb), .45), var(--trust-color));
    box-shadow: 0 0 10px rgba(var(--trust-rgb), .34);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .65s cubic-bezier(.22, 1, .36, 1);
}

.aether-trust-card.is-visible .aether-ping-row i,
.aether-trust-card.is-visible .aether-tariff-row i {
    transform: scaleX(1);
}

.aether-ping-row i { transition-delay: var(--ping-delay, 0ms); }
.aether-tariff-row i { transition-delay: var(--bar-delay, 0ms); }

.aether-ping-scale {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 8px 50px 0 85px;
    color: #706d8e;
    font-size: 9px;
}

.aether-chart-empty {
    display: grid;
    min-height: 150px;
    place-items: center;
    color: #aaa6c3;
    font-size: 11px;
    text-align: center;
}

.aether-tariff-chart {
    width: 100%;
    min-width: 0;
}

.aether-tariff-chart-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
}

.aether-tariff-chart-head strong {
    color: #fff;
    font-size: 31px;
    line-height: .95;
}

.aether-tariff-chart-head span {
    color: #aaa6c3;
    font-size: 10px;
}

.aether-tariff-bars {
    display: grid;
    gap: 9px;
}

.aether-tariff-row {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) 57px;
    align-items: center;
    gap: 7px;
}

.aether-tariff-row > span {
    display: grid;
    gap: 2px;
    color: #d8d5eb;
    font-size: 9px;
    font-weight: 800;
}

.aether-tariff-row > span small {
    color: #777493;
    font-size: 8px;
    font-weight: 600;
}

.aether-tariff-row > b {
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.aether-tariff-bar i {
    background: linear-gradient(90deg, rgba(var(--trust-rgb), .42), var(--trust-color));
}

@media (max-width: 480px) {
    .aether-ping-bars { min-height: 132px; }
    .aether-ping-scale { margin-right: 50px; margin-left: 85px; }
    .aether-chart-empty { min-height: 132px; }
}

@media (prefers-reduced-motion: reduce) {
    .aether-live-donut .aether-donut-value-ring,
    .aether-ping-row i,
    .aether-tariff-row i {
        transition: none;
        transform: scaleX(1);
    }
}

/* Alternative live visuals: location health segments and platform network. */
.aether-live-health-chart {
    width: 100%;
    min-width: 0;
}

.aether-health-summary {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin-bottom: 20px;
}

.aether-health-summary strong {
    color: #fff;
    font-size: 41px;
    letter-spacing: -.06em;
    line-height: .9;
}

.aether-health-summary span {
    max-width: 75px;
    color: #aaa6c3;
    font-size: 10px;
    line-height: 1.25;
}

.aether-health-segments {
    display: flex;
    gap: 5px;
    min-height: 34px;
    align-items: center;
}

.aether-health-segment {
    flex: 1 1 0;
    min-width: 9px;
    height: 23px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 6px;
    background: rgba(255, 255, 255, .07);
    opacity: .2;
    transform: scaleY(.35);
    transform-origin: center bottom;
    transition: opacity .35s ease var(--segment-delay, 0ms), transform .55s cubic-bezier(.22, 1, .36, 1) var(--segment-delay, 0ms), filter .35s ease var(--segment-delay, 0ms);
}

.aether-health-segment.is-online {
    border-color: rgba(61, 246, 174, .48);
    background: linear-gradient(180deg, #59efb0, #15b878);
    box-shadow: 0 0 14px rgba(61, 246, 174, .36);
}

.aether-health-segment.is-offline {
    border-color: rgba(248, 112, 112, .55);
    background: linear-gradient(180deg, #ff9c9c, #d14c68);
    box-shadow: 0 0 14px rgba(248, 112, 112, .26);
}

.aether-trust-card.is-visible .aether-health-segment {
    opacity: 1;
    transform: scaleY(1);
}

.aether-health-scale {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 9px;
    color: #777493;
    font-size: 9px;
}

.aether-platform-network {
    width: min(100%, 190px);
    margin: 0 auto;
}

.aether-platform-network svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.aether-platform-link {
    fill: none;
    stroke-width: 2;
    stroke-dasharray: 110;
    stroke-dashoffset: 110;
    transition: stroke-dashoffset .75s cubic-bezier(.22, 1, .36, 1);
}

.aether-platform-link.link-windows { stroke: #5fe0ff; }
.aether-platform-link.link-apple { stroke: #6b9dff; transition-delay: .08s; }
.aether-platform-link.link-android { stroke: #b35dff; transition-delay: .16s; }
.aether-platform-link.link-linux { stroke: #ff72cf; transition-delay: .24s; }
.aether-trust-card.is-visible .aether-platform-link { stroke-dashoffset: 0; }

.aether-platform-core {
    fill: rgba(27, 22, 73, .98);
    stroke: #fff;
    stroke-width: 1.5;
    filter: drop-shadow(0 0 9px rgba(255, 255, 255, .2));
}

.aether-platform-core-label,
.aether-platform-core-sub,
.aether-platform-node-label {
    dominant-baseline: middle;
    text-anchor: middle;
    font-family: "Sora", "Space Grotesk", sans-serif;
    pointer-events: none;
}

.aether-platform-core-label {
    fill: #fff;
    font-size: 10px;
    font-weight: 800;
}

.aether-platform-core-sub {
    fill: #aaa6c3;
    font-size: 6px;
}

.aether-platform-node {
    stroke-width: 2;
    opacity: 0;
    transform: scale(.5);
    transform-box: fill-box;
    transform-origin: center;
    transition: opacity .3s ease, transform .5s cubic-bezier(.22, 1, .36, 1);
}

.node-windows { fill: rgba(95, 224, 255, .18); stroke: #5fe0ff; }
.node-apple { fill: rgba(107, 157, 255, .18); stroke: #6b9dff; }
.node-android { fill: rgba(179, 93, 255, .18); stroke: #b35dff; }
.node-linux { fill: rgba(255, 114, 207, .18); stroke: #ff72cf; }

.aether-platform-node-label {
    fill: #fff;
    font-size: 7px;
    font-weight: 800;
    opacity: 0;
    transition: opacity .3s ease;
}

.aether-trust-card.is-visible .aether-platform-node,
.aether-trust-card.is-visible .aether-platform-node-label {
    opacity: 1;
}

.aether-trust-card.is-visible .aether-platform-node {
    transform: scale(1);
}

.aether-trust-card.is-visible .node-windows,
.aether-trust-card.is-visible .node-windows + .aether-platform-node-label { transition-delay: .34s; }
.aether-trust-card.is-visible .node-apple,
.aether-trust-card.is-visible .node-apple + .aether-platform-node-label { transition-delay: .42s; }
.aether-trust-card.is-visible .node-android,
.aether-trust-card.is-visible .node-android + .aether-platform-node-label { transition-delay: .5s; }
.aether-trust-card.is-visible .node-linux,
.aether-trust-card.is-visible .node-linux + .aether-platform-node-label { transition-delay: .58s; }

.aether-platform-network-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px 10px;
    margin-top: 1px;
    color: #aaa6c3;
    font-size: 9px;
}

.aether-platform-network-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.aether-platform-network-legend i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

@media (max-width: 480px) {
    .aether-health-summary { justify-content: center; }
    .aether-platform-network { width: min(100%, 180px); }
}

@media (prefers-reduced-motion: reduce) {
    .aether-health-segment,
    .aether-platform-link,
    .aether-platform-node,
    .aether-platform-node-label {
        opacity: 1;
        transform: none;
        stroke-dashoffset: 0;
        transition: none;
    }
}

/* Live latency distribution and tariff savings visuals. */
.aether-live-latency-chart,
.aether-savings-chart {
    width: 100%;
    min-width: 0;
}

.aether-latency-summary,
.aether-savings-chart-head {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin-bottom: 18px;
}

.aether-latency-summary strong,
.aether-savings-chart-head strong {
    color: #fff;
    font-size: 38px;
    letter-spacing: -.06em;
    line-height: .9;
}

.aether-latency-summary span,
.aether-savings-chart-head span {
    max-width: 110px;
    color: #aaa6c3;
    font-size: 10px;
    line-height: 1.25;
}

.aether-latency-bars {
    display: grid;
    align-content: center;
    gap: 13px;
    min-height: 104px;
}

.aether-latency-row {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 8px;
}

.aether-latency-row > span,
.aether-latency-row > b {
    color: #aaa6c3;
    font-size: 9px;
    line-height: 1;
}

.aether-latency-row > b {
    color: #fff;
    text-align: right;
}

.aether-latency-bar {
    height: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    background: rgba(255, 255, 255, .055);
}

.aether-latency-bar i,
.aether-savings-bar i {
    display: block;
    width: var(--bar-size, 0%);
    height: 100%;
    border-radius: inherit;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .7s cubic-bezier(.22, 1, .36, 1) var(--latency-delay, 0ms);
}

.aether-latency-row.is-fast .aether-latency-bar i {
    background: linear-gradient(90deg, #59efb0, #5fe0ff);
    box-shadow: 0 0 14px rgba(89, 239, 176, .35);
}

.aether-latency-row.is-normal .aether-latency-bar i {
    background: linear-gradient(90deg, #f6b646, #ff80c8);
    box-shadow: 0 0 14px rgba(246, 182, 70, .26);
}

.aether-latency-row.is-high .aether-latency-bar i {
    background: linear-gradient(90deg, #f87070, #c64b92);
    box-shadow: 0 0 14px rgba(248, 112, 112, .26);
}

.aether-trust-card.is-visible .aether-latency-bar i,
.aether-trust-card.is-visible .aether-savings-bar i {
    transform: scaleX(1);
}

.aether-latency-scale,
.aether-savings-scale {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    color: #777493;
    font-size: 9px;
}

.aether-savings-chart-head strong {
    font-size: 32px;
}

.aether-savings-bars {
    display: grid;
    align-content: center;
    gap: 16px;
    min-height: 104px;
}

.aether-savings-row {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) 74px;
    align-items: center;
    gap: 8px;
}

.aether-savings-row > span {
    display: grid;
    gap: 4px;
    color: #fff;
    font-size: 10px;
    line-height: 1;
}

.aether-savings-row > span small {
    color: #777493;
    font-size: 8px;
}

.aether-savings-row > b {
    color: #fff;
    font-size: 9px;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
}

.aether-savings-bar {
    height: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    background: rgba(255, 255, 255, .055);
}

.aether-savings-bar i {
    background: linear-gradient(90deg, #5fe0ff, #a452ff 72%, #ff72cf);
    box-shadow: 0 0 15px rgba(164, 82, 255, .35);
    transition-delay: var(--bar-delay, 0ms);
}

@media (max-width: 480px) {
    .aether-latency-summary,
    .aether-savings-chart-head {
        justify-content: center;
    }

    .aether-latency-summary span,
    .aether-savings-chart-head span {
        max-width: 90px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aether-latency-bar i,
    .aether-savings-bar i {
        transform: scaleX(1);
        transition: none;
    }
}

/* Static tariff share donut: a clear visual split with a soft entrance animation. */
.aether-plan-share-chart {
    display: grid;
    justify-items: center;
    width: 100%;
    min-width: 0;
}

.aether-plan-donut {
    position: relative;
    width: 132px;
    height: 132px;
}

.aether-plan-donut-svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    transform: rotate(-90deg);
}

.aether-plan-donut-track,
.aether-plan-donut-segment {
    fill: none;
    stroke-width: 13;
}

.aether-plan-donut-track {
    stroke: rgba(255, 255, 255, .08);
}

.aether-plan-donut-segment {
    stroke-linecap: round;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset .9s cubic-bezier(.22, 1, .36, 1);
}

.aether-plan-donut-segment.is-pro {
    stroke-dashoffset: 100;
    transition-delay: .12s;
}

.aether-trust-card.is-visible .aether-plan-donut-segment.is-standard {
    stroke-dashoffset: 0;
}

.aether-trust-card.is-visible .aether-plan-donut-segment.is-pro {
    stroke-dashoffset: -63;
}

.aether-plan-donut-center {
    position: absolute;
    inset: 27px;
    display: grid;
    place-content: center;
    justify-items: center;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 25%, rgba(68, 54, 147, .75), rgba(12, 13, 43, .98) 72%);
    box-shadow: inset 0 0 18px rgba(89, 224, 255, .08), 0 0 22px rgba(77, 87, 255, .12);
}

.aether-plan-donut-center strong {
    color: #fff;
    font-size: 25px;
    letter-spacing: -.06em;
    line-height: 1;
}

.aether-plan-donut-center span {
    margin-top: 4px;
    color: #aaa6c3;
    font-size: 8px;
    line-height: 1;
}

.aether-plan-share-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    margin-top: 10px;
}

.aether-plan-share-legend > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    color: #aaa6c3;
    font-size: 8px;
    line-height: 1;
    white-space: nowrap;
}

.aether-plan-share-legend i {
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.aether-plan-share-legend i.is-standard {
    background: #5fe0ff;
    box-shadow: 0 0 8px rgba(95, 224, 255, .65);
}

.aether-plan-share-legend i.is-pro {
    background: #d568ff;
    box-shadow: 0 0 8px rgba(213, 104, 255, .65);
}

.aether-plan-share-legend b {
    color: #aaa6c3;
    font-size: 8px;
    font-weight: 500;
}

.aether-plan-share-legend strong {
    margin-left: 1px;
    color: #fff;
    font-size: 11px;
    line-height: 1;
}

@media (max-width: 480px) {
    .aether-plan-donut {
        width: 124px;
        height: 124px;
    }

    .aether-plan-share-legend {
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aether-plan-donut-segment {
        stroke-dashoffset: 0 !important;
        transition: none;
    }
}

/* Landing trust cards: lighter visuals with one distinct chart language per card. */
.aether-trust-card {
    min-height: 232px;
    background: linear-gradient(145deg, rgba(21, 17, 58, .88), rgba(8, 9, 29, .92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 12px 28px rgba(0, 0, 0, .12);
}

.aether-trust-card::after { display: none; }

.aether-trust-card-content {
    gap: 18px;
    min-height: 168px;
}

.aether-live-latency-chart { align-self: center; }

.aether-latency-meter {
    display: flex;
    gap: 3px;
    width: 100%;
    height: 30px;
    padding: 3px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 9px;
    background: rgba(255, 255, 255, .045);
}

.aether-latency-meter .aether-chart-empty {
    min-height: 22px;
    width: 100%;
}

.aether-latency-segment {
    flex: 0 0 var(--segment-size, 0%);
    min-width: 0;
    height: 100%;
    border-radius: 5px;
    opacity: .9;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .65s cubic-bezier(.22, 1, .36, 1) var(--latency-delay, 0ms);
}

.aether-latency-segment.is-fast { background: #54dcae; }
.aether-latency-segment.is-normal { background: #f1b44f; }
.aether-latency-segment.is-high { background: #e56b85; }

.aether-trust-card.is-visible .aether-latency-segment { transform: scaleX(1); }

.aether-latency-legend {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 10px;
}

.aether-latency-legend > span {
    display: grid;
    grid-template-columns: 6px minmax(0, 1fr) auto;
    align-items: center;
    gap: 5px;
    min-width: 0;
    color: #8d89a8;
    font-size: 8px;
}

.aether-latency-legend i {
    width: 6px;
    height: 6px;
    border-radius: 2px;
}

.aether-latency-legend .is-fast i { background: #54dcae; }
.aether-latency-legend .is-normal i { background: #f1b44f; }
.aether-latency-legend .is-high i { background: #e56b85; }
.aether-latency-legend b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.aether-latency-legend strong { color: #fff; font-size: 10px; }

.aether-ping-bars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(24px, 1fr));
    align-items: stretch;
    gap: 6px;
    min-height: 146px;
}

.aether-ping-column {
    display: grid;
    grid-template-rows: 16px minmax(0, 1fr) 15px;
    align-items: end;
    gap: 5px;
    min-width: 0;
}

.aether-ping-column > b {
    overflow: hidden;
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aether-ping-column > span {
    overflow: hidden;
    color: #aaa6c3;
    font-size: 8px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aether-ping-column-track {
    display: flex;
    align-items: end;
    justify-content: center;
    min-height: 100px;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    background: repeating-linear-gradient(to top, transparent 0, transparent 24%, rgba(255, 255, 255, .055) 25%, transparent 26%);
}

.aether-ping-column-track i {
    display: block;
    width: min(18px, 72%);
    height: var(--bar-size, 0%);
    border-radius: 5px 5px 2px 2px;
    transform: scaleY(0);
    transform-origin: bottom center;
    transition: transform .65s cubic-bezier(.22, 1, .36, 1) var(--ping-delay, 0ms);
}

.aether-ping-column.is-fast i { background: #5fe0ff; }
.aether-ping-column.is-normal i { background: #a78bff; }
.aether-ping-column.is-high i { background: #ff72cf; }
.aether-trust-card.is-visible .aether-ping-column-track i { transform: scaleY(1); }

.aether-ping-scale {
    margin: 8px 0 0;
    font-size: 8px;
}

.aether-plan-share-chart {
    align-content: center;
    justify-items: stretch;
    gap: 13px;
}

.aether-plan-share-summary {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.aether-plan-share-summary strong {
    color: #fff;
    font-size: 43px;
    letter-spacing: -.07em;
    line-height: .9;
}

.aether-plan-share-summary span {
    color: #aaa6c3;
    font-size: 10px;
    line-height: 1.3;
}

.aether-plan-share-track {
    display: flex;
    gap: 3px;
    height: 16px;
    padding: 3px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 7px;
    background: rgba(255, 255, 255, .045);
}

.aether-plan-share-track i {
    height: 100%;
    border-radius: 4px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}

.aether-plan-share-track .is-standard { flex: 0 0 63%; background: #5fe0ff; }
.aether-plan-share-track .is-pro { flex: 0 0 37%; background: #d568ff; transition-delay: .12s; }
.aether-trust-card.is-visible .aether-plan-share-track i { transform: scaleX(1); }

.aether-plan-share-legend {
    justify-content: space-between;
    margin-top: 0;
}

.aether-tariff-bars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.aether-tariff-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto 5px;
    gap: 8px;
    padding: 9px 10px 8px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
}

.aether-tariff-row > span { font-size: 9px; }
.aether-tariff-row > b { font-size: 10px; }
.aether-tariff-row .aether-tariff-bar { grid-column: 1 / -1; height: 5px; }
.aether-tariff-row .aether-tariff-bar i { background: var(--trust-color); box-shadow: none; }

@media (max-width: 480px) {
    .aether-plan-share-summary { justify-content: center; }
    .aether-tariff-bars { gap: 7px; }
    .aether-tariff-row { padding-inline: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    .aether-latency-segment,
    .aether-ping-column-track i,
    .aether-plan-share-track i {
        transform: scale(1);
        transition: none;
    }
}

/* Landing trust facts: one metric and one short data line per card. */
.aether-trust-grid.aether-trust-grid--minimal {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
}

.aether-trust-grid--minimal .aether-trust-card {
    min-height: 0;
    padding: 18px;
    gap: 18px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(21, 17, 58, .88), rgba(8, 9, 29, .92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 10px 22px rgba(0, 0, 0, .1);
}

.aether-trust-grid--minimal .aether-trust-card::after { display: none; }

.aether-trust-grid--minimal .aether-trust-card-head { flex: none; }

.aether-trust-metric {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 2px;
}

.aether-trust-metric > strong {
    color: #fff;
    font-size: clamp(38px, 4vw, 50px);
    letter-spacing: -.07em;
    line-height: .9;
}

.aether-trust-metric > span {
    color: #aaa6c3;
    font-size: 10px;
    line-height: 1.25;
}

.aether-trust-note {
    min-height: 30px;
    margin: 0;
    color: #aaa6c3;
    font-size: 11px;
    line-height: 1.45;
}

.aether-trust-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(126, 111, 194, .16);
    color: #8884a5;
    font-size: 9px;
}

.aether-trust-footer > span {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aether-trust-footer i {
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--trust-color);
}

.aether-trust-footer strong {
    flex: 0 0 auto;
    color: #d8d5eb;
    font-size: 9px;
    white-space: nowrap;
}

.aether-trust-list {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    gap: 6px;
    min-height: 32px;
}

.aether-ping-item {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 5px 7px;
    border: 1px solid rgba(var(--trust-rgb), .18);
    border-radius: 999px;
    color: #aaa6c3;
    background: rgba(var(--trust-rgb), .06);
    font-size: 9px;
}

.aether-ping-item b { color: #fff; font-size: 10px; }
.aether-ping-item span { white-space: nowrap; }

.aether-chart-empty {
    display: grid;
    width: 100%;
    min-height: 32px;
    place-items: center;
    color: #aaa6c3;
    font-size: 10px;
}

.aether-plan-share-compact {
    display: grid;
    gap: 9px;
}

.aether-plan-share-compact > span {
    display: grid;
    grid-template-columns: 6px minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    color: #aaa6c3;
    font-size: 10px;
}

.aether-plan-share-compact i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.aether-plan-share-compact .is-standard { background: #5fe0ff; }
.aether-plan-share-compact .is-pro { background: #d568ff; }
.aether-plan-share-compact strong { color: #fff; font-size: 11px; }

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

.aether-tariff-list .aether-tariff-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 6px;
    min-width: 0;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    border-radius: 0;
    background: none;
}

.aether-tariff-list .aether-tariff-row > span {
    display: grid;
    gap: 2px;
    min-width: 0;
    color: #d8d5eb;
    font-size: 9px;
    font-weight: 800;
}

.aether-tariff-list .aether-tariff-row > span small {
    color: #777493;
    font-size: 8px;
    font-weight: 600;
}

.aether-tariff-list .aether-tariff-row > b {
    color: #fff;
    font-size: 9px;
    text-align: right;
    white-space: nowrap;
}

.aether-tariff-list .aether-tariff-bar { display: none; }

@media (max-width: 900px) {
    .aether-trust-grid.aether-trust-grid--minimal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
    .aether-trust-grid--minimal .aether-trust-card { padding: 16px; }
    .aether-trust-grid.aether-trust-grid--minimal { grid-template-columns: 1fr; }
}

/* Landing trust signal: a single route view instead of four separate cards. */
.aether-trust-signal {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(112, 103, 210, .34);
    border-radius: 18px;
    background: linear-gradient(120deg, rgba(16, 17, 53, .96), rgba(10, 9, 33, .94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 18px 40px rgba(0, 0, 0, .16);
}

.aether-trust-signal::before {
    position: absolute;
    top: -160px;
    right: -100px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(95, 224, 255, .08);
    border-radius: 50%;
    box-shadow: 0 0 0 34px rgba(95, 224, 255, .025), 0 0 0 68px rgba(95, 224, 255, .018);
    content: "";
    pointer-events: none;
}

.aether-trust-signal-head,
.aether-trust-signal-body {
    position: relative;
    z-index: 1;
}

.aether-trust-signal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px 17px;
    border-bottom: 1px solid rgba(126, 111, 194, .18);
}

.aether-signal-eyebrow,
.aether-signal-label {
    color: #8581a4;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.aether-signal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #5fe0ff;
}

.aether-signal-eyebrow i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5fe0ff;
    box-shadow: 0 0 12px rgba(95, 224, 255, .8);
}

.aether-trust-signal-head strong {
    display: block;
    margin-top: 7px;
    color: #fff;
    font-size: 15px;
    letter-spacing: -.02em;
}

.aether-signal-updated {
    flex: 0 0 auto;
    color: #aaa6c3;
    font-size: 9px;
}

.aether-trust-signal-body {
    display: grid;
    grid-template-columns: minmax(170px, .85fr) minmax(280px, 1.4fr) minmax(220px, .9fr);
}

.aether-signal-primary,
.aether-signal-route,
.aether-signal-quick-stats {
    min-width: 0;
    padding: 24px;
}

.aether-signal-primary {
    border-right: 1px solid rgba(126, 111, 194, .16);
}

.aether-signal-metric {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 18px;
}

.aether-signal-metric strong {
    color: #fff;
    font-size: clamp(52px, 6vw, 76px);
    letter-spacing: -.08em;
    line-height: .82;
}

.aether-signal-metric span {
    max-width: 74px;
    color: #aaa6c3;
    font-size: 10px;
    line-height: 1.3;
}

.aether-signal-primary p {
    max-width: 170px;
    margin: 17px 0 0;
    color: #aaa6c3;
    font-size: 10px;
    line-height: 1.5;
}

.aether-signal-route {
    border-right: 1px solid rgba(126, 111, 194, .16);
}

.aether-signal-route-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
}

.aether-signal-average {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
}

.aether-signal-average strong {
    color: #fff;
    font-size: 26px;
    letter-spacing: -.06em;
    line-height: .9;
}

.aether-signal-average small {
    color: #aaa6c3;
    font-size: 9px;
}

.aether-signal-route-line {
    position: relative;
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 8px;
    min-height: 111px;
    margin-top: 8px;
    padding: 35px 0 0;
}

.aether-signal-route-line::before {
    position: absolute;
    top: 48px;
    right: 4px;
    left: 4px;
    height: 1px;
    background: linear-gradient(90deg, rgba(95, 224, 255, .12), rgba(167, 139, 255, .58), rgba(255, 114, 207, .18));
    content: "";
}

.aether-signal-route-line .aether-ping-item {
    position: relative;
    z-index: 1;
    display: grid;
    flex: 1 1 0;
    justify-items: center;
    gap: 9px;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #aaa6c3;
    background: none;
    font-size: 9px;
    text-align: center;
}

.aether-signal-route-line .aether-ping-item::before {
    width: 10px;
    height: 10px;
    border: 3px solid #a78bff;
    border-radius: 50%;
    background: #0b0a2a;
    box-shadow: 0 0 0 4px rgba(167, 139, 255, .08), 0 0 14px rgba(167, 139, 255, .45);
    content: "";
}

.aether-signal-route-line .aether-ping-item.is-fast::before {
    border-color: #5fe0ff;
    box-shadow: 0 0 0 4px rgba(95, 224, 255, .08), 0 0 14px rgba(95, 224, 255, .45);
}

.aether-signal-route-line .aether-ping-item.is-high::before {
    border-color: #ff72cf;
    box-shadow: 0 0 0 4px rgba(255, 114, 207, .08), 0 0 14px rgba(255, 114, 207, .45);
}

.aether-signal-route-line .aether-ping-item b {
    color: #fff;
    font-size: 9px;
}

.aether-signal-route-line .aether-ping-item span {
    color: #777493;
    font-size: 8px;
    white-space: nowrap;
}

.aether-signal-quick-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
}

.aether-signal-stat {
    min-width: 0;
    padding: 20px 24px;
}

.aether-signal-stat + .aether-signal-stat { border-left: 1px solid rgba(126, 111, 194, .16); }

.aether-signal-stat-value {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-top: 9px;
}

.aether-signal-stat-value strong {
    color: #fff;
    font-size: 32px;
    letter-spacing: -.07em;
    line-height: .9;
}

.aether-signal-stat-value small {
    color: #aaa6c3;
    font-size: 9px;
}

.aether-signal-stat-pairs {
    display: grid;
    gap: 5px;
    margin-top: 13px;
}

.aether-signal-stat-pairs span {
    display: grid;
    grid-template-columns: 6px 1fr auto;
    align-items: center;
    gap: 6px;
    color: #aaa6c3;
    font-size: 9px;
}

.aether-signal-stat-pairs i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5fe0ff;
}

.aether-signal-stat-pairs span + span i { background: #d568ff; }
.aether-signal-stat-pairs b { color: #fff; font-size: 9px; }

.aether-signal-price-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
    margin-top: 13px;
}

.aether-signal-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
    padding-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.aether-signal-price-row > span {
    min-width: 0;
    overflow: hidden;
    color: #aaa6c3;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aether-signal-price-row > span small { color: #706d8e; }
.aether-signal-price-row > b { color: #fff; font-size: 8px; white-space: nowrap; }

@media (max-width: 960px) {
    .aether-trust-signal-body { grid-template-columns: minmax(170px, .8fr) minmax(260px, 1.2fr); }
    .aether-signal-primary { border-bottom: 1px solid rgba(126, 111, 194, .16); }
    .aether-signal-route { border-right: 0; border-bottom: 1px solid rgba(126, 111, 194, .16); }
    .aether-signal-quick-stats { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
    .aether-signal-stat + .aether-signal-stat { border-top: 0; border-left: 1px solid rgba(126, 111, 194, .16); }
}

@media (max-width: 640px) {
    .aether-trust-signal-head { align-items: start; padding: 18px; }
    .aether-trust-signal-head strong { font-size: 13px; }
    .aether-trust-signal-body { grid-template-columns: 1fr; }
    .aether-signal-primary,
    .aether-signal-route,
    .aether-signal-stat { padding: 20px 18px; }
    .aether-signal-primary,
    .aether-signal-route { border-right: 0; }
    .aether-signal-quick-stats { grid-column: auto; }
    .aether-signal-route-line { min-height: 100px; }
}

@media (max-width: 420px) {
    .aether-trust-signal-head { display: grid; gap: 10px; }
    .aether-signal-updated { justify-self: start; }
    .aether-signal-quick-stats { grid-template-columns: 1fr; }
    .aether-signal-stat + .aether-signal-stat { border-top: 1px solid rgba(126, 111, 194, .16); border-left: 0; }
}

/* Cabinet pricing: use the same purple public-pricing language as the landing page. */
.user-console-body .user-hub-purchase {
    border-color: rgba(126, 111, 194, .24);
    background:
        radial-gradient(620px 300px at 100% 0%, rgba(176, 53, 255, .1), transparent 70%),
        linear-gradient(180deg, rgba(16, 14, 55, .94), rgba(8, 8, 31, .94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 20px 60px rgba(0, 0, 0, .2);
}

.user-console-body .cabinet-pricing {
    font-size: 1rem;
}

.user-console-body .cabinet-pricing-head { margin-bottom: 18px; }

.user-console-body .cabinet-pricing .aether-tier-switch {
    gap: 18px;
    margin-top: 0;
}

.user-console-body .cabinet-pricing .aether-tier-switch button {
    min-height: 76px;
    padding: 15px 22px;
    border: 1px solid rgba(126, 111, 194, .24);
    border-radius: 22px;
    background: rgba(7, 8, 31, .72);
    box-shadow: none;
}

.user-console-body .cabinet-pricing .aether-tier-switch button:hover {
    border-color: rgba(211, 55, 255, .58);
    background: rgba(17, 14, 52, .9);
    box-shadow: 0 14px 34px rgba(93, 51, 194, .18);
}

.user-console-body .cabinet-pricing .aether-tier-switch button.active {
    border-color: rgba(211, 55, 255, .92);
    background: radial-gradient(circle at 18% 50%, rgba(210, 55, 255, .22), transparent 36%), linear-gradient(180deg, rgba(52, 26, 96, .86), rgba(18, 12, 54, .86));
    box-shadow: 0 0 34px rgba(199, 44, 255, .18);
}

.user-console-body .cabinet-pricing .aether-tier-switch strong { font-size: 18px; }
.user-console-body .cabinet-pricing .aether-tier-switch span { margin-top: 8px; font-size: 14px; }

.user-console-body .cabinet-pricing .aether-period-picker { margin: 34px 0 26px; }

.user-console-body .cabinet-pricing .aether-month-card {
    padding: 30px 42px 48px;
    border-color: rgba(126, 111, 194, .22);
    border-radius: 14px;
    background:
        radial-gradient(circle at 100% 0%, rgba(176, 53, 255, .1), transparent 34%),
        linear-gradient(180deg, rgba(16, 14, 55, .92), rgba(9, 9, 32, .92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 20px 60px rgba(0, 0, 0, .2);
}

.user-console-body .cabinet-pricing .aether-month-head { margin-bottom: 18px; }
.user-console-body .cabinet-pricing .aether-month-head h3 { font-size: 18px; }
.user-console-body .cabinet-pricing .aether-month-head p { font-size: 13px; }
.user-console-body .cabinet-pricing .aether-month-count strong { font-size: 34px; }
.user-console-body .cabinet-pricing .aether-month-count span { font-size: 14px; }

.user-console-body .cabinet-pricing .aether-period-line { height: 84px; }

.user-console-body .cabinet-pricing .aether-period-line::before,
.user-console-body .cabinet-pricing .aether-period-line::after { top: 34px; height: 5px; }

.user-console-body .cabinet-pricing .aether-period-thumb {
    top: 36.5px;
    width: 18px;
    height: 18px;
    border-width: 4px;
}

.user-console-body .cabinet-pricing .aether-period-range { top: 17px; }
.user-console-body .cabinet-pricing .aether-period-scale { bottom: -24px; }

.user-console-body .cabinet-pricing .aether-pricing-summary {
    grid-template-columns: minmax(220px, .8fr) minmax(300px, 1.15fr) minmax(240px, .8fr);
    gap: 22px;
    margin-top: 26px;
    padding: 22px;
    border-color: rgba(126, 111, 194, .22);
    border-radius: 16px;
    background:
        radial-gradient(circle at 0% 0%, rgba(215, 44, 255, .18), transparent 30%),
        radial-gradient(circle at 100% 20%, rgba(61, 147, 255, .13), transparent 30%),
        linear-gradient(180deg, rgba(16, 14, 55, .88), rgba(8, 8, 31, .86));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045), 0 18px 50px rgba(0, 0, 0, .22);
}

.user-console-body .cabinet-pricing .aether-summary-price {
    gap: 8px;
    padding-left: 18px;
}

.user-console-body .cabinet-pricing .aether-summary-label { padding: 4px 9px; font-size: 12px; }
.user-console-body .cabinet-pricing .aether-summary-price strong { font-size: clamp(32px, 3vw, 42px); }
.user-console-body .cabinet-pricing .aether-summary-price p { font-size: 14px; }
.user-console-body .cabinet-pricing .aether-summary-price small { font-size: 12px; }

.user-console-body .cabinet-pricing .aether-summary-included {
    gap: 11px;
    padding: 0 22px;
    border-top: 0;
    border-right: 1px solid rgba(126, 111, 194, .2);
    border-bottom: 0;
    border-left: 1px solid rgba(126, 111, 194, .2);
}

.user-console-body .cabinet-pricing .aether-summary-device-access-icon,
.user-console-body .cabinet-pricing .aether-summary-upgrade-icon {
    border-color: rgba(166, 111, 255, .28);
    color: #d7a2ff;
    background: rgba(120, 52, 224, .16);
}

.user-console-body .cabinet-pricing .aether-summary-upgrade {
    border-color: rgba(166, 111, 255, .28);
    background: rgba(71, 42, 125, .2);
}

.user-console-body .cabinet-pricing .aether-summary-upgrade:hover,
.user-console-body .cabinet-pricing .aether-summary-upgrade:focus-visible {
    border-color: rgba(210, 101, 255, .7);
    background: rgba(91, 47, 153, .34);
    box-shadow: 0 9px 22px rgba(126, 67, 234, .16);
}

.user-console-body .cabinet-pricing .aether-pricing-cta {
    min-height: 56px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, #d72cff, #239bff);
    box-shadow: 0 18px 42px rgba(130, 55, 255, .28);
}

.user-console-body .cabinet-pricing .aether-pricing-cta:hover,
.user-console-body .cabinet-pricing .aether-pricing-cta:focus-visible {
    background: linear-gradient(135deg, #df50ff, #3aa8ff);
    box-shadow: 0 22px 52px rgba(130, 55, 255, .36);
}

@media (max-width: 900px) {
    .user-console-body .cabinet-pricing .aether-summary-included {
        padding: 16px 0;
        border-top: 1px solid rgba(126, 111, 194, .18);
        border-right: 0;
        border-bottom: 1px solid rgba(126, 111, 194, .18);
        border-left: 0;
    }
}

@media (max-width: 640px) {
    .user-console-body .cabinet-pricing .aether-month-card { padding: 22px 20px 42px; }
    .user-console-body .cabinet-pricing .aether-pricing-summary { gap: 14px; margin-top: 18px; padding: 18px; }
}

/* Landing how-to: card layout adapted from the supplied reference and kept in AetherVPN tokens. */
.aether-how {
    padding: 58px 0 64px;
    scroll-margin-top: 92px;
}

.aether-site .aether-how > .aether-how-heading {
    display: block;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.aether-how-heading h2,
.aether-site .aether-how-heading h2 {
    margin: 0;
    color: #f7f4ff;
    font-family: "Sora", "Space Grotesk", sans-serif;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.aether-how-heading p {
    margin: 14px 0 0;
    color: #aaa6c3;
    font-size: 16px;
    line-height: 1.5;
}

.aether-site .aether-how > .aether-how-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-top: 38px;
}

.aether-how article.aether-how-card {
    display: flex;
    flex-direction: column;
    min-height: 200px;
    gap: 0;
    padding: 28px 28px 24px;
    border: 1px solid rgba(126, 111, 194, 0.28);
    border-radius: 16px;
    background: rgba(5, 8, 26, 0.44);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.aether-how article.aether-how-card:hover {
    border-color: rgba(166, 111, 255, 0.55);
    background: rgba(15, 13, 43, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 42px rgba(20, 10, 58, 0.22);
    transform: translateY(-2px);
}

.aether-how-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.aether-how-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: block;
    border: 1px solid rgba(166, 111, 255, 0.32);
    border-radius: 50%;
    background-color: rgba(126, 111, 194, 0.07);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    color: #b786ff;
    -webkit-mask-position: center;
    mask-position: center;
}

.aether-how-icon::after {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    margin: 9px;
    background: currentColor;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.aether-how-icon-account::after {
    -webkit-mask-image: url("/static/icons/admin/user.svg");
    mask-image: url("/static/icons/admin/user.svg");
}

.aether-how-icon-plan::after {
    -webkit-mask-image: url("/static/icons/admin/credit-card.svg");
    mask-image: url("/static/icons/admin/credit-card.svg");
}

.aether-how-icon-client::after {
    -webkit-mask-image: url("/static/icons/admin/cloud-data-connection.svg");
    mask-image: url("/static/icons/admin/cloud-data-connection.svg");
}

.aether-how-icon-ready::after {
    -webkit-mask-image: url("/static/icons/admin/shield-check.svg");
    mask-image: url("/static/icons/admin/shield-check.svg");
}

.aether-how-card-top i {
    min-width: 40px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border: 1px solid rgba(126, 111, 194, 0.28);
    border-radius: 999px;
    color: #aaa6c3;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1;
}

.aether-how-card > strong {
    margin-top: 24px;
    color: #f7f4ff;
    font-family: "Sora", "Space Grotesk", sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.aether-how-card > span {
    margin-top: 10px;
    color: #aaa6c3;
    font-size: 14px;
    line-height: 1.62;
}

@media (max-width: 980px) {
    .aether-site .aether-how > .aether-how-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .aether-how {
        padding: 44px 0 48px;
        scroll-margin-top: 170px;
    }

    .aether-how-heading {
        text-align: left;
    }

    .aether-how-heading p {
        font-size: 15px;
    }

    .aether-site .aether-how > .aether-how-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 26px;
    }

    .aether-how article.aether-how-card {
        min-height: 0;
        padding: 22px 20px 21px;
    }
}

/* Shared action icons: use the local icon set instead of text arrows. */
.aether-action-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    background-color: currentColor;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    transition: transform .22s ease, color .22s ease;
}

.aether-action-icon-forward {
    -webkit-mask-image: url("/static/icons/admin/circle-arrow-right.svg");
    mask-image: url("/static/icons/admin/circle-arrow-right.svg");
}

.aether-action-icon-external {
    -webkit-mask-image: url("/static/icons/admin/external-link.svg");
    mask-image: url("/static/icons/admin/external-link.svg");
}

.aether-hero-actions a > b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.aether-hero-actions a:hover .aether-action-icon-forward,
.aether-hero-actions a:focus-visible .aether-action-icon-forward,
.aether-news-card-hint:hover .aether-action-icon-forward,
.user-hub-news-all:hover .aether-action-icon-forward,
.support-ticket-submit:hover .aether-action-icon-forward,
.aether-pricing-cta:hover .aether-action-icon-forward {
    transform: translateX(3px);
}

.aether-pricing-cta,
.user-hub-news-all,
.support-ticket-submit {
    align-items: center;
    gap: 9px;
}

.group-order-btn .aether-action-icon {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
}

.group-order-btn .aether-action-icon-up {
    transform: rotate(-90deg);
}

.group-order-btn .aether-action-icon-down {
    transform: rotate(90deg);
}

.aether-action-icon-left {
    transform: rotate(180deg);
}

.admin-news-tool .aether-action-icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
}

/* Referral redesign: a calmer reward-first layout with less repeated copy. */
.aether-referral-redesign .aether-referral-hero-redesign {
    grid-template-columns: minmax(0, 1.08fr) minmax(310px, .72fr);
    gap: clamp(34px, 5vw, 72px);
    min-height: 500px;
    padding: 72px 0 56px;
    overflow: hidden;
}

.aether-referral-redesign .aether-referral-hero-redesign::before {
    inset: -12% -16% -8%;
    background:
        radial-gradient(560px 320px at 26% 48%, rgba(74, 127, 255, .18), transparent 70%),
        radial-gradient(450px 300px at 76% 35%, rgba(220, 45, 208, .12), transparent 72%);
    filter: blur(16px);
}

.aether-referral-redesign .aether-page-hero-copy {
    max-width: 690px;
}

.aether-referral-redesign .aether-page-hero-copy h1 {
    max-width: 700px;
    margin: 25px 0 20px;
    font-size: clamp(48px, 5.85vw, 76px);
    line-height: .98;
    letter-spacing: -.055em;
}

.aether-referral-redesign .aether-hero-line {
    white-space: nowrap;
}

.aether-referral-redesign .aether-page-hero-copy p {
    max-width: 530px;
    color: #b9b8d0;
    font-size: 17px;
    line-height: 1.65;
}

.aether-referral-redesign .aether-hero-actions {
    gap: 11px;
    margin-top: 30px;
}

.aether-referral-redesign .aether-hero-actions a {
    min-height: 54px;
    border-radius: 14px;
    gap: 12px;
    padding-inline: 18px;
}

.aether-referral-redesign .aether-hero-actions .primary {
    min-width: 214px;
}

.aether-referral-redesign .aether-referral-hero-card {
    position: relative;
    min-height: 342px;
    display: grid;
    align-content: center;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(137, 113, 226, .42);
    border-radius: 26px;
    padding: 34px 32px;
    background:
        radial-gradient(circle at 78% 15%, rgba(227, 60, 218, .22), transparent 34%),
        linear-gradient(150deg, rgba(25, 22, 69, .92), rgba(9, 17, 44, .95));
    box-shadow: 0 26px 70px rgba(3, 4, 23, .28), inset 0 1px 0 rgba(255, 255, 255, .07);
}

.aether-referral-redesign .aether-referral-hero-card::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -74px;
    top: -70px;
    border: 1px solid rgba(142, 116, 255, .35);
    border-radius: 50%;
    box-shadow: 0 0 0 18px rgba(142, 116, 255, .06), 0 0 0 38px rgba(142, 116, 255, .04);
    pointer-events: none;
}

.aether-referral-redesign .aether-referral-hero-card::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    right: 56px;
    top: 75px;
    border-radius: 50%;
    background: #5dd7ff;
    box-shadow: 0 0 18px rgba(93, 215, 255, .8);
}

.aether-referral-redesign .aether-referral-hero-card > * {
    position: relative;
    z-index: 1;
}

.aether-referral-redesign .aether-referral-hero-card-kicker {
    color: #a9a0d9;
    font-size: 11px;
    letter-spacing: .16em;
}

.aether-referral-reward {
    display: flex;
    align-items: baseline;
    gap: 13px;
    margin-top: 19px;
}

.aether-referral-redesign .aether-referral-reward strong {
    margin: 0;
    color: #f7f4ff;
    font-size: clamp(74px, 8vw, 108px);
    line-height: .82;
    letter-spacing: -.08em;
}

.aether-referral-reward span {
    max-width: 96px;
    color: #c4d8ff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.05;
}

.aether-referral-redesign .aether-referral-hero-card p {
    max-width: 260px;
    margin: 25px 0 20px;
    color: #a7aec9;
    font-size: 13px;
    line-height: 1.55;
}

.aether-referral-redesign .aether-referral-hero-card-note {
    gap: 9px;
    color: #8fe0bb;
    font-size: 12px;
}

.aether-referral-redesign .aether-referral-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
    border: 0;
}

.aether-referral-redesign .aether-referral-benefits article {
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-height: 0;
    gap: 6px 12px;
    padding: 20px 20px 19px;
    border: 1px solid rgba(126, 111, 194, .24);
    border-radius: 17px;
    background: rgba(10, 12, 39, .62);
}

.aether-referral-redesign .aether-referral-benefits article:first-child,
.aether-referral-redesign .aether-referral-benefits article:last-child {
    padding: 20px;
}

.aether-referral-redesign .aether-referral-benefit-index {
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(117, 210, 255, .28);
    border-radius: 9px;
    color: #77d0ff;
    background: rgba(72, 159, 229, .11);
    font-size: 10px;
    font-weight: 800;
}

.aether-referral-redesign .aether-referral-benefits strong {
    color: #f4f1ff;
    font-size: 17px;
}

.aether-referral-redesign .aether-referral-benefits article > span:last-child {
    color: #9695b0;
    font-size: 12px;
    line-height: 1.45;
}

.aether-referral-process {
    display: grid;
    grid-template-columns: minmax(230px, .67fr) minmax(0, 1.33fr);
    gap: 46px;
    align-items: start;
    margin-top: 92px;
}

.aether-referral-process-intro h2,
.aether-referral-rules-intro h2 {
    max-width: 360px;
    margin: 10px 0 13px;
    font-size: clamp(30px, 3.4vw, 44px);
    letter-spacing: -.04em;
    line-height: 1.05;
}

.aether-referral-process-intro > p:last-child,
.aether-referral-rules-intro > p:last-child {
    max-width: 330px;
    margin: 0;
    color: #9695b0;
    font-size: 14px;
    line-height: 1.6;
}

.aether-referral-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

.aether-referral-step {
    position: relative;
    min-height: 218px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 21px 19px;
    overflow: hidden;
    border: 1px solid rgba(126, 111, 194, .24);
    border-radius: 17px;
    background: linear-gradient(160deg, rgba(23, 22, 62, .82), rgba(9, 13, 37, .8));
}

.aether-referral-step::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    right: -42px;
    bottom: -47px;
    border: 1px solid rgba(108, 182, 255, .18);
    border-radius: 50%;
}

.aether-referral-step-number {
    color: #7bd2ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .09em;
}

.aether-referral-step strong {
    margin-top: auto;
    color: #f1effd;
    font-size: 17px;
}

.aether-referral-step > span:last-child {
    margin-top: 9px;
    color: #9695b0;
    font-size: 13px;
    line-height: 1.52;
}

.aether-referral-rules {
    display: grid;
    grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr);
    gap: 48px;
    align-items: start;
    margin-top: 92px;
}

.aether-referral-rule-grid {
    display: grid;
    gap: 10px;
}

.aether-referral-rule-grid article {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 2px 13px;
    padding: 17px 18px;
    border: 1px solid rgba(126, 111, 194, .22);
    border-radius: 15px;
    background: rgba(10, 12, 39, .5);
}

.aether-referral-rule-icon {
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    color: #83d4ff;
    background: rgba(67, 155, 225, .13);
}

.aether-referral-rule-icon .aether-action-icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
}

.aether-referral-rule-grid strong {
    color: #ece9fb;
    font-size: 14px;
}

.aether-referral-rule-grid p {
    margin: 4px 0 0;
    color: #9392ad;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 980px) {
    .aether-referral-redesign .aether-referral-hero-redesign {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-top: 58px;
    }

    .aether-referral-redesign .aether-referral-hero-card {
        min-height: 280px;
    }

    .aether-referral-process,
    .aether-referral-rules {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .aether-referral-process-intro h2,
    .aether-referral-rules-intro h2,
    .aether-referral-process-intro > p:last-child,
    .aether-referral-rules-intro > p:last-child {
        max-width: 640px;
    }
}

@media (max-width: 760px) {
    .aether-referral-redesign .aether-referral-hero-redesign {
        gap: 30px;
        padding: 42px 0 34px;
    }

    .aether-referral-redesign .aether-page-hero-copy h1 {
        margin-top: 21px;
        font-size: clamp(42px, 12vw, 62px);
    }

    .aether-referral-redesign .aether-hero-line {
        white-space: normal;
    }

    .aether-referral-redesign .aether-page-hero-copy p {
        font-size: 15px;
    }

    .aether-referral-redesign .aether-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .aether-referral-redesign .aether-hero-actions a,
    .aether-referral-redesign .aether-hero-actions .primary {
        width: 100%;
        min-width: 0;
    }

    .aether-referral-redesign .aether-referral-hero-card {
        min-height: 270px;
        padding: 27px 24px;
    }

    .aether-referral-redesign .aether-referral-benefits,
    .aether-referral-steps {
        grid-template-columns: 1fr;
    }

    .aether-referral-redesign .aether-referral-benefits article {
        padding: 17px;
    }

    .aether-referral-process,
    .aether-referral-rules {
        margin-top: 64px;
    }

    .aether-referral-step {
        min-height: 0;
        padding: 18px;
    }

    .aether-referral-step strong {
        margin-top: 28px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .aether-action-icon,
    .aether-referral-step,
    .aether-referral-redesign .aether-referral-hero-card {
        transition: none;
    }
}

/* Simple website-style server directory. */
.aether-site .aether-servers-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 42px;
    margin-top: 62px;
    padding: 0 0 40px;
    border-bottom: 1px solid rgba(126, 111, 194, .22);
}

.aether-site .aether-servers-hero-copy {
    max-width: 700px;
}

.aether-site .aether-servers-hero h1 {
    max-width: 760px;
    margin: 22px 0 14px;
    color: #f7f5ff;
    font-size: clamp(42px, 6vw, 72px);
    line-height: .98;
    letter-spacing: -.045em;
}

.aether-site .aether-servers-hero h1 em {
    display: block;
    color: #9b81ff;
    font-style: normal;
}

.aether-site .aether-servers-hero p {
    max-width: 540px;
    margin: 0;
    color: #aaa6c3;
    font-size: 16px;
    line-height: 1.65;
}

.aether-site .aether-servers-hero-summary {
    display: flex;
    align-items: center;
    gap: 26px;
    flex: 0 0 auto;
    padding: 0 0 5px 26px;
    border-left: 1px solid rgba(126, 111, 194, .22);
}

.aether-site .aether-servers-hero-summary > div {
    display: grid;
    gap: 3px;
}

.aether-site .aether-servers-hero-summary strong {
    color: #f7f5ff;
    font-size: 30px;
    line-height: 1;
}

.aether-site .aether-servers-hero-summary span:not(.aether-live-badge) {
    color: #8f8ba9;
    font-size: 12px;
    white-space: nowrap;
}

.aether-site .aether-servers-directory {
    margin-top: 48px;
}

.aether-site .aether-servers-directory-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.aether-site .aether-servers-directory-head h2 {
    margin: 9px 0 0;
    color: #f7f5ff;
    font-size: clamp(28px, 3.8vw, 42px);
    line-height: 1.05;
    letter-spacing: -.03em;
}

.aether-site .aether-servers-directory-head > p {
    max-width: 300px;
    margin: 0 0 2px;
    color: #8f8ba9;
    font-size: 12px;
    line-height: 1.5;
    text-align: right;
}

.aether-site .aether-server-list {
    overflow: hidden;
    border-top: 1px solid rgba(126, 111, 194, .28);
    border-bottom: 1px solid rgba(126, 111, 194, .28);
}

.aether-site .aether-server-list-head,
.aether-site .aether-server-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px 170px;
    align-items: center;
    gap: 22px;
    padding: 0 18px;
}

.aether-site .aether-server-list-head {
    min-height: 42px;
    color: #787490;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.aether-site .aether-server-row {
    min-height: 86px;
    border-top: 1px solid rgba(126, 111, 194, .16);
    transition: background .2s ease, padding .2s ease;
}

.aether-site .aether-server-row:hover,
.aether-site .aether-server-row:focus-within {
    background: rgba(126, 111, 194, .08);
}

.aether-site .aether-server-location {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.aether-site .aether-server-flag {
    display: grid;
    place-items: center;
    width: 38px;
    height: 24px;
    flex: 0 0 38px;
    overflow: hidden;
    border-radius: 5px;
    aspect-ratio: 5 / 3;
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .13);
}

.aether-site .aether-server-flag img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

.aether-site .aether-server-location strong {
    overflow: hidden;
    color: #f1eff9;
    font-size: 16px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aether-site .aether-server-ping,
.aether-site .aether-server-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #aaa6c3;
    font-size: 13px;
    font-weight: 600;
}

.aether-site .aether-server-ping.online {
    color: #72e4aa;
}

.aether-site .aether-server-ping.offline,
.aether-site .aether-server-status.offline {
    color: #ff9eaa;
}

.aether-site .aether-server-ping.pending,
.aether-site .aether-server-status.pending {
    color: #8f8ba9;
}

.aether-site .aether-server-status i {
    display: inline-block;
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #7d7890;
}

.aether-site .aether-server-status.online {
    color: #72e4aa;
}

.aether-site .aether-server-status.online i {
    background: #25d88c;
    box-shadow: 0 0 12px rgba(37, 216, 140, .65);
}

.aether-site .aether-server-status.offline i {
    background: #ff8a98;
}

.aether-site .aether-server-status.pending i {
    animation: aether-orbit-pulse 1.4s ease-in-out infinite;
}

.aether-site .aether-server-empty {
    display: grid;
    gap: 6px;
    padding: 34px 18px;
    color: #8f8ba9;
}

.aether-site .aether-server-empty strong {
    color: #f1eff9;
}

@media (max-width: 820px) {
    .aether-site .aether-servers-hero {
        align-items: flex-start;
        flex-direction: column;
        gap: 28px;
        margin-top: 46px;
        padding-bottom: 32px;
    }

    .aether-site .aether-servers-hero-summary {
        width: 100%;
        padding: 18px 0 0;
        border-top: 1px solid rgba(126, 111, 194, .22);
        border-left: 0;
    }
}

@media (max-width: 620px) {
    .aether-site .aether-servers-directory {
        margin-top: 34px;
    }

    .aether-site .aether-servers-directory-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .aether-site .aether-servers-directory-head > p {
        max-width: none;
        text-align: left;
    }

    .aether-site .aether-server-list-head {
        display: none;
    }

    .aether-site .aether-server-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px 14px;
        min-height: 76px;
        padding: 14px 6px;
    }

    .aether-site .aether-server-location {
        grid-row: 1 / span 2;
    }

    .aether-site .aether-server-ping,
    .aether-site .aether-server-status {
        justify-self: end;
        font-size: 11px;
    }

}

/* Final reply actions: keep the status readable and the two compact controls
   together at the right edge of the composer. */
.support-ticket-conversation .support-ticket-reply-actions { justify-content: flex-end; gap: 14px; }
.support-ticket-conversation .support-ticket-reply-status { flex: 1 1 auto; min-width: 0; color: #8fa6c0; font-size: 11px; line-height: 1.35; }
.support-ticket-conversation .support-ticket-reply-action-buttons { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex: 0 0 auto; }
.support-ticket-conversation .support-ticket-reply-attach,
.support-ticket-conversation .support-ticket-reply-submit { width: 42px; height: 42px; padding: 0; border-radius: 12px; }
.support-ticket-conversation .support-ticket-reply-submit { display: grid; place-items: center; border: 1px solid rgba(126, 205, 255, .34); color: #f4fbff; background: linear-gradient(145deg, #3d9dea, #2875c9); box-shadow: 0 8px 18px rgba(33, 111, 194, .2); cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease, opacity .2s ease; }
.support-ticket-conversation .support-ticket-reply-submit:hover,
.support-ticket-conversation .support-ticket-reply-submit:focus-visible { border-color: rgba(164, 229, 255, .9); background: linear-gradient(145deg, #51b0f4, #2d81d9); transform: translateY(-1px); outline: 0; }
.support-ticket-conversation .support-ticket-reply-submit:disabled { opacity: .55; cursor: wait; transform: none; }
.support-ticket-conversation .support-ticket-reply-submit svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
@media (max-width: 520px) {
    .support-ticket-conversation .support-ticket-reply-actions { align-items: flex-end; }
    .support-ticket-conversation .support-ticket-reply-status { max-width: 52%; }
}

/* Keep the composer border quiet while the textarea or attachment control is hovered/focused. */
.support-ticket-conversation .support-ticket-reply-composer:hover,
.support-ticket-conversation .support-ticket-reply-composer:focus-within {
    border-color: rgba(112, 151, 205, .28);
    box-shadow: none;
}
.support-ticket-conversation .support-ticket-reply-input textarea,
.support-ticket-conversation .support-ticket-reply-input textarea:hover,
.support-ticket-conversation .support-ticket-reply-input textarea:focus {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: 0 !important;
    transform: none !important;
}

/* Final mobile cabinet pass: keep checkout controls inside the viewport. */
@media (max-width: 640px) {
    .user-console-body .user-hub,
    .user-console-body .user-hub-main,
    .user-console-body .user-hub-grid,
    .user-console-body .user-hub-card,
    .user-console-body .user-hub-purchase,
    .user-console-body .cabinet-pricing,
    .user-console-body .cabinet-pricing .aether-pricing-summary {
        min-width: 0;
        max-width: 100%;
    }

    .user-console-body .user-hub-main {
        padding-bottom: calc(34px + env(safe-area-inset-bottom));
    }

    .user-console-body .user-hub-purchase,
    .user-console-body .cabinet-pricing {
        overflow: visible;
    }

    .user-console-body .cabinet-pricing .aether-pricing-summary {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        margin-top: 18px;
        padding: 18px;
        overflow: visible;
    }

    .user-console-body .cabinet-pricing .aether-summary-price,
    .user-console-body .cabinet-pricing .aether-summary-included,
    .user-console-body .cabinet-pricing .aether-summary-action {
        min-width: 0;
        width: 100%;
    }

    .user-console-body .cabinet-pricing .aether-summary-included {
        padding: 16px 0;
        border-top: 1px solid rgba(126, 111, 194, .18);
        border-right: 0;
        border-bottom: 1px solid rgba(126, 111, 194, .18);
        border-left: 0;
    }

    .user-console-body .cabinet-pricing .aether-summary-action {
        order: -1;
    }

    .user-console-body .cabinet-pricing .aether-pricing-cta {
        width: 100%;
        min-height: 52px;
    }

    .user-console-body .user-hub-nav a,
    .user-console-body .user-hub-sidebar-bottom a {
        min-height: 44px;
    }

    .user-console-body .cabinet-pricing-promo > div {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .user-console-body .cabinet-pricing-promo > div button {
        min-width: 0;
        padding-inline: 14px;
        white-space: nowrap;
    }
}
