:root {
    --bg: #070a0f;
    --surface: #0d1119;
    --surface-2: #111722;
    --surface-3: #171f2d;
    --line: rgba(255, 255, 255, .085);
    --line-strong: rgba(255, 255, 255, .14);
    --text: #f5f7fb;
    --muted: #8792a5;
    --muted-2: #aeb7c6;
    --accent: #8af08d;
    --accent-deep: #4edb73;
    --accent-ink: #06280f;
    --danger: #ff6b76;
    --radius: 20px;
    --shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
input { color: var(--text); }
input::placeholder { color: #5e697b; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 720; letter-spacing: -.025em; font-size: 18px; }
.brand-muted { color: var(--muted); font-weight: 520; }
.brand-mark { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(138, 240, 141, .28); border-radius: 11px; background: linear-gradient(145deg, rgba(138, 240, 141, .19), rgba(138, 240, 141, .04)); box-shadow: inset 0 1px rgba(255, 255, 255, .08); }
.brand-mark::before, .brand-mark::after, .brand-mark span { content: ""; display: block; position: absolute; width: 5px; background: var(--accent); border-radius: 4px; transform: rotate(30deg); }
.brand-mark::before { height: 11px; left: 9px; top: 13px; opacity: .65; }
.brand-mark span { height: 17px; left: 15px; top: 8px; }
.brand-mark::after { height: 12px; left: 21px; top: 10px; opacity: .82; }
.brand-mark.small { width: 29px; height: 29px; transform: scale(.88); }

.button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 17px; border: 1px solid transparent; border-radius: 11px; font-size: 13px; font-weight: 720; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease, opacity .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:disabled { opacity: .48; pointer-events: none; }
.button-primary { color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-deep)); box-shadow: 0 10px 24px rgba(78, 219, 115, .14); }
.button-secondary { background: var(--surface-3); color: var(--muted-2); border-color: var(--line); }
.button-secondary:hover { border-color: var(--line-strong); color: var(--text); }
.button-danger { color: #2b0509; background: var(--danger); }
.button-wide { width: 100%; min-height: 50px; }

.field { display: grid; gap: 8px; }
.field > span:first-child { color: var(--muted-2); font-size: 12px; font-weight: 680; }
.field input, .search input { width: 100%; min-width: 0; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(5, 8, 13, .72); padding: 13px 14px; transition: border .18s ease, box-shadow .18s ease, background .18s ease; }
.field input:hover, .search input:hover { border-color: rgba(255, 255, 255, .22); }
.field input:focus, .search input:focus { outline: 0; border-color: rgba(138, 240, 141, .68); box-shadow: 0 0 0 3px rgba(138, 240, 141, .09); background: #080d14; }
.input-wrap { position: relative; display: block; }
.input-wrap input { padding-left: 43px; }
.field-icon { position: absolute; z-index: 1; left: 15px; top: 50%; transform: translateY(-50%); color: #6f7b8e; font-weight: 600; }
.field-icon.lock { width: 12px; height: 10px; border: 1.5px solid #6f7b8e; border-radius: 2px; }
.field-icon.lock::before { content: ""; position: absolute; left: 2px; top: -7px; width: 6px; height: 7px; border: 1.5px solid #6f7b8e; border-bottom: 0; border-radius: 6px 6px 0 0; }
.field.compact { gap: 7px; flex: 1; }
.field.compact input { min-height: 44px; }
.alert { padding: 11px 13px; color: #ffd6da; background: rgba(255, 107, 118, .09); border: 1px solid rgba(255, 107, 118, .24); border-radius: 10px; font-size: 13px; }
.kicker, .section-kicker, .eyebrow { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(138, 240, 141, .09), 0 0 16px rgba(138, 240, 141, .65); }

/* Login */
.login-page { min-height: 100vh; background: #05080d; }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.08fr) minmax(420px, .92fr); }
.login-intro { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: 48px clamp(44px, 6vw, 92px); border-right: 1px solid var(--line); background: radial-gradient(circle at 22% 52%, rgba(80, 201, 103, .12), transparent 33%), linear-gradient(145deg, #0c1119, #070a10 64%); }
.login-intro::before { content: ""; position: absolute; width: 530px; height: 530px; right: -260px; bottom: -250px; border: 1px solid rgba(138, 240, 141, .08); border-radius: 50%; box-shadow: 0 0 0 70px rgba(138, 240, 141, .018), 0 0 0 140px rgba(138, 240, 141, .012); }
.brand-large { font-size: 20px; }
.brand-large .brand-mark { width: 39px; height: 39px; }
.intro-copy { position: relative; max-width: 630px; margin-top: -4vh; }
.eyebrow { display: inline-flex; align-items: center; margin-bottom: 25px; }
.intro-copy h1 { margin: 0; font-size: clamp(48px, 6.2vw, 84px); line-height: .99; letter-spacing: -.065em; font-weight: 670; }
.intro-copy h1 span { color: var(--accent); }
.intro-copy p { max-width: 510px; margin: 28px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.intro-foot { position: relative; color: #596477; font-size: 12px; }
.login-panel { display: grid; place-items: center; min-height: 100vh; padding: 36px; background: radial-gradient(circle at 70% 35%, rgba(95, 118, 155, .08), transparent 34%), #080b11; }
.login-card { width: min(100%, 390px); display: grid; gap: 20px; }
.login-card header { margin-bottom: 7px; }
.login-card h2 { margin: 7px 0 9px; font-size: 29px; letter-spacing: -.04em; }
.login-card header > p:last-child { margin: 0; color: var(--muted); font-size: 14px; }
.mobile-brand { display: none; }
.form-note { margin: -5px 0 0; text-align: center; color: #596477; font-size: 11px; }

/* Dashboard shell */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 238px; display: flex; flex-direction: column; padding: 27px 18px 20px; border-right: 1px solid var(--line); background: rgba(10, 14, 21, .96); backdrop-filter: blur(20px); }
.sidebar > .brand { padding: 0 8px; }
.sidebar nav { display: grid; gap: 5px; margin-top: 56px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 13px; border: 1px solid transparent; border-radius: 11px; color: #798598; font-size: 13px; font-weight: 620; transition: .18s ease; }
.nav-item:hover { color: var(--text); background: rgba(255, 255, 255, .025); }
.nav-item.active { color: var(--text); background: linear-gradient(90deg, rgba(138, 240, 141, .105), rgba(138, 240, 141, .025)); border-color: rgba(138, 240, 141, .10); }
.nav-icon, .stat-symbol { position: relative; width: 17px; height: 17px; display: inline-block; opacity: .8; }
.grid-icon { background: linear-gradient(90deg, currentColor 6px, transparent 6px 10px, currentColor 10px), linear-gradient(currentColor 6px, transparent 6px 10px, currentColor 10px); border-radius: 2px; }
.key-icon::before { content: ""; position: absolute; left: 0; top: 4px; width: 7px; height: 7px; border: 2px solid currentColor; border-radius: 50%; }
.key-icon::after { content: ""; position: absolute; left: 8px; top: 8px; width: 9px; height: 2px; background: currentColor; box-shadow: 5px 3px 0 -0.2px currentColor; transform: rotate(-2deg); }
.users-icon::before { content: ""; position: absolute; left: 5px; top: 0; width: 7px; height: 7px; border: 1.6px solid currentColor; border-radius: 50%; }
.users-icon::after { content: ""; position: absolute; left: 1px; bottom: 0; width: 15px; height: 7px; border: 1.6px solid currentColor; border-radius: 8px 8px 3px 3px; }
.server-icon::before { content: ""; position: absolute; inset: 1px 0 4px; border: 1.6px solid currentColor; border-radius: 3px; }
.server-icon::after { content: ""; position: absolute; left: 5px; bottom: 0; width: 8px; height: 2px; border-top: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; }
.pulse-icon { border: 1.7px solid currentColor; border-radius: 50%; }
.pulse-icon::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: currentColor; }
.sidebar-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 15px 7px 0; border-top: 1px solid var(--line); }
.profile { min-width: 0; display: flex; align-items: center; gap: 10px; flex: 1; }
.profile div { display: grid; min-width: 0; }
.profile strong { overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.profile span:not(.avatar) { color: var(--muted); font-size: 10px; }
.avatar { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(138, 240, 141, .18); border-radius: 11px; color: var(--accent); background: rgba(138, 240, 141, .08); font-size: 13px; font-weight: 800; }
.small-avatar { width: 33px; height: 33px; border-radius: 9px; }
.logout-button { width: 31px; height: 31px; border: 0; color: #697487; background: transparent; cursor: pointer; }
.logout-button:hover { color: var(--text); }
.main-content { grid-column: 2; min-width: 0; max-width: 1500px; width: 100%; margin: 0 auto; padding: 43px clamp(25px, 4.2vw, 68px) 36px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 35px; }
.topbar h1 { margin: 5px 0 5px; font-size: clamp(25px, 2.4vw, 35px); letter-spacing: -.045em; }
.topbar p { margin: 0; color: var(--muted); font-size: 13px; }
.service-state { display: inline-flex; align-items: center; padding: 9px 12px; border: 1px solid rgba(138, 240, 141, .13); border-radius: 999px; color: #a6e9ac; background: rgba(138, 240, 141, .045); font-size: 11px; white-space: nowrap; }
.menu-button { display: none; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat-card { min-height: 142px; display: flex; align-items: flex-start; justify-content: space-between; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(17, 23, 34, .95), rgba(11, 15, 23, .95)); box-shadow: inset 0 1px rgba(255,255,255,.018); }
.stat-card.accent { border-color: rgba(138, 240, 141, .14); background: radial-gradient(circle at 100% 0, rgba(138, 240, 141, .09), transparent 43%), linear-gradient(145deg, #111a1a, #0b1115); }
.stat-card > div { display: grid; }
.stat-label { color: var(--muted-2); font-size: 11px; font-weight: 650; }
.stat-card strong { margin: 9px 0 8px; font-size: 31px; letter-spacing: -.045em; }
.stat-help { color: #657083; font-size: 10px; }
.stat-symbol { width: 35px; height: 35px; padding: 9px; color: var(--accent); background: rgba(138, 240, 141, .065); border: 1px solid rgba(138, 240, 141, .1); border-radius: 10px; }
.stat-symbol::before, .stat-symbol::after { transform: translate(9px, 8px); transform-origin: top left; }
.stat-symbol.pulse-icon::before { transform: none; }
.online-text { color: var(--accent); font-size: 26px !important; }

.panel { margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(15, 20, 30, .98), rgba(10, 14, 21, .98)); box-shadow: var(--shadow); overflow: hidden; }
.panel-heading { padding: 22px 24px 17px; }
.panel-heading.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.panel h2 { margin: 5px 0 5px; font-size: 18px; letter-spacing: -.025em; }
.panel p { margin: 0; color: var(--muted); font-size: 11px; }
.quick-create { padding-bottom: 22px; }
.create-row { display: flex; align-items: end; gap: 10px; padding: 0 24px; }
.create-row .field { max-width: 560px; }
.key-glyph { position: relative; display: inline-block; width: 16px; height: 16px; }
.key-glyph::before { content: ""; position: absolute; left: 0; top: 3px; width: 6px; height: 6px; border: 1.5px solid currentColor; border-radius: 50%; }
.key-glyph::after { content: ""; position: absolute; left: 7px; top: 7px; width: 8px; height: 1.5px; background: currentColor; box-shadow: 4px 3px currentColor; }
.search { position: relative; width: min(240px, 100%); }
.search input { min-height: 38px; padding: 9px 12px 9px 35px; font-size: 12px; }
.search > span::before { content: ""; position: absolute; z-index: 1; left: 13px; top: 11px; width: 8px; height: 8px; border: 1.5px solid #6a7587; border-radius: 50%; }
.search > span::after { content: ""; position: absolute; z-index: 1; left: 21px; top: 20px; width: 5px; height: 1.5px; background: #6a7587; transform: rotate(45deg); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #626e80; background: rgba(255, 255, 255, .012); font-size: 9px; letter-spacing: .11em; text-align: left; text-transform: uppercase; }
th:last-child, td:last-child { width: 60px; text-align: right; }
td { padding: 13px 24px; border-bottom: 1px solid rgba(255, 255, 255, .052); color: var(--muted-2); font-size: 12px; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .16s ease; }
tbody tr:hover { background: rgba(255, 255, 255, .018); }
.key-value { display: inline-flex; align-items: center; gap: 11px; color: #dce2ec; font: 600 11px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.key-value .key-glyph { color: var(--accent); opacity: .7; }
.date-cell { color: #707b8d; }
.icon-button { width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, .018); cursor: pointer; transition: .17s ease; }
.icon-button.danger { color: #82545a; }
.icon-button.danger:hover { color: #ffafb6; border-color: rgba(255, 107, 118, .27); background: rgba(255, 107, 118, .07); }
.empty-state { padding: 42px 20px; text-align: center; }
.empty-state > span { display: block; margin: 0 auto 12px; color: #566174; }
.empty-state strong { display: block; margin-bottom: 5px; }

.team-panel { padding-bottom: 22px; }
.create-user { margin: 0 24px 20px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .018); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.new-user-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.permission-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.permission { position: relative; cursor: pointer; }
.permission input { position: absolute; opacity: 0; pointer-events: none; }
.permission span { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: #717d90; background: rgba(255, 255, 255, .012); font-size: 10px; font-weight: 650; transition: .16s ease; }
.permission input:checked + span { color: #b8efbd; border-color: rgba(138, 240, 141, .17); background: rgba(138, 240, 141, .065); }
.permission input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.permission input:disabled + span { opacity: .7; cursor: not-allowed; }
.user-list { display: grid; margin: 0 24px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.user-card { display: grid; grid-template-columns: minmax(210px, .8fr) minmax(360px, 1.4fr) auto; align-items: center; gap: 20px; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.user-card:last-child { border-bottom: 0; }
.user-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.user-identity strong { font-size: 12px; }
.badges { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.badge { padding: 2px 5px; border: 1px solid var(--line); border-radius: 5px; color: #8390a3; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.badge.owner { color: var(--accent); border-color: rgba(138, 240, 141, .16); background: rgba(138, 240, 141, .05); }
.joined { color: #5f6b7d; font-size: 9px; }
.user-actions { display: flex; gap: 7px; justify-content: flex-end; }
.user-actions .button { min-height: 34px; padding-inline: 13px; font-size: 10px; }
.page-footer { padding: 12px 0 0; color: #455063; text-align: center; font-size: 9px; }

.toast { position: fixed; z-index: 80; right: 24px; bottom: 24px; max-width: min(360px, calc(100vw - 48px)); padding: 12px 15px; border: 1px solid rgba(138, 240, 141, .18); border-radius: 11px; color: #cff5d2; background: rgba(13, 25, 17, .96); box-shadow: var(--shadow); font-size: 12px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { color: #ffd3d7; border-color: rgba(255, 107, 118, .25); background: rgba(32, 12, 16, .97); }
.modal { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .68); backdrop-filter: blur(6px); }
.modal-card { position: relative; width: min(100%, 390px); padding: 26px; border: 1px solid var(--line-strong); border-radius: 18px; background: #101620; box-shadow: 0 30px 90px #000; text-align: center; }
.modal-icon { width: 42px; height: 42px; display: grid; place-items: center; margin: 0 auto 14px; border: 1px solid rgba(255,107,118,.2); border-radius: 50%; color: var(--danger); background: rgba(255,107,118,.07); font-weight: 800; }
.modal-card h2 { margin: 0 0 8px; font-size: 19px; }
.modal-card p { min-height: 34px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 20px; }

@media (max-width: 1050px) {
    .app-shell { grid-template-columns: 78px minmax(0, 1fr); }
    .sidebar { width: 78px; align-items: center; padding-inline: 12px; }
    .sidebar .brand > span:last-child, .nav-item:not(.active)::after, .nav-item { font-size: 0; }
    .sidebar .brand { padding: 0; }
    .sidebar nav { width: 100%; }
    .nav-item { justify-content: center; padding: 0; }
    .profile div, .logout-button { display: none; }
    .sidebar-foot { padding-inline: 0; }
    .main-content { grid-column: 2; }
    .user-card { grid-template-columns: 190px 1fr; }
    .user-actions { grid-column: 2; }
}

@media (max-width: 760px) {
    .login-layout { display: block; }
    .login-intro { display: none; }
    .login-panel { padding: 28px 21px; }
    .mobile-brand { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 43px; color: var(--text); font-size: 14px; font-weight: 700; }
    .app-shell { display: block; }
    .sidebar { transform: translateX(-100%); width: 238px; align-items: stretch; box-shadow: 30px 0 80px rgba(0,0,0,.5); transition: transform .2s ease; }
    body.nav-open .sidebar { transform: translateX(0); }
    .sidebar .brand > span:last-child, .nav-item { font-size: inherit; }
    .nav-item { justify-content: flex-start; padding: 0 13px; }
    .profile div, .logout-button { display: grid; }
    .main-content { padding: 28px 16px; }
    .topbar { align-items: flex-start; }
    .menu-button { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
    .service-state { display: none; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card { min-height: 118px; }
    .panel-heading.split { align-items: stretch; flex-direction: column; }
    .search { width: 100%; }
    .create-row { align-items: stretch; flex-direction: column; }
    .create-row .button { width: 100%; }
    .form-grid { grid-template-columns: 1fr; }
    .new-user-bottom { align-items: stretch; flex-direction: column; }
    .new-user-bottom .button { width: 100%; }
    .user-card { grid-template-columns: 1fr; }
    .user-actions { grid-column: 1; justify-content: stretch; }
    .user-actions .button { flex: 1; }
    .date-cell { display: none; }
    th:nth-child(3) { display: none; }
    td, th { padding-inline: 16px; }
}

/* Dreamy glass theme — soft pastel motion inspired by the visual reference. */
:root {
    --bg: #d6d5eb;
    --surface: rgba(255, 255, 255, .30);
    --surface-2: rgba(255, 255, 255, .38);
    --surface-3: rgba(255, 255, 255, .48);
    --line: rgba(255, 255, 255, .42);
    --line-strong: rgba(255, 255, 255, .66);
    --text: #29304c;
    --muted: #65708c;
    --muted-2: #4f5975;
    --accent: #646fc2;
    --accent-deep: #8b72bd;
    --accent-ink: #303758;
    --danger: #a95068;
    --shadow: 0 24px 70px rgba(62, 57, 105, .18), 0 8px 24px rgba(67, 83, 137, .10);
}

body {
    position: relative;
    min-height: 100vh;
    isolation: isolate;
    background: #d9d8eb;
}

body::before {
    content: "";
    position: fixed;
    z-index: -2;
    inset: -16%;
    background:
        radial-gradient(ellipse 34% 72% at 8% 44%, rgba(255, 189, 196, .92) 0 22%, transparent 67%),
        radial-gradient(ellipse 32% 70% at 34% 22%, rgba(168, 177, 222, .94) 0 25%, transparent 68%),
        radial-gradient(ellipse 28% 76% at 55% 54%, rgba(249, 182, 194, .88) 0 22%, transparent 66%),
        radial-gradient(ellipse 33% 78% at 76% 22%, rgba(255, 190, 200, .90) 0 24%, transparent 68%),
        radial-gradient(ellipse 37% 82% at 91% 55%, rgba(94, 134, 190, .94) 0 27%, transparent 72%),
        linear-gradient(115deg, #f5c9ce 0%, #b7bbdc 30%, #f3c5ce 61%, #839bc7 100%);
    filter: blur(42px) saturate(112%);
    transform: rotate(-4deg) scale(1.12);
}

body::after {
    content: "";
    position: fixed;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(130deg, rgba(255, 255, 255, .13), transparent 42%, rgba(89, 100, 157, .06));
}

.dashboard-page,
.login-page { background: transparent; }

.brand { color: #343a59; }
.brand-muted { color: rgba(55, 64, 95, .58); }
.brand-mark {
    border-color: rgba(255, 255, 255, .72);
    background: linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(198, 195, 229, .40));
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, .80), 0 8px 20px rgba(80, 75, 129, .13);
}
.brand-mark::before,
.brand-mark::after,
.brand-mark span { background: #6873bd; }

.login-layout { background: transparent; }
.login-intro {
    border-right-color: rgba(255, 255, 255, .30);
    background: linear-gradient(120deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .01));
}
.login-intro::before {
    border-color: rgba(255, 255, 255, .19);
    box-shadow: 0 0 0 70px rgba(255, 255, 255, .035), 0 0 0 140px rgba(255, 255, 255, .022);
}
.intro-copy h1 { color: #303753; text-shadow: 0 2px 22px rgba(255, 255, 255, .22); }
.intro-copy h1 span,
.kicker,
.section-kicker,
.eyebrow { color: #5964b3; }
.intro-copy p,
.intro-foot,
.login-card header > p:last-child,
.form-note { color: rgba(53, 62, 93, .66); }
.login-panel { background: rgba(255, 255, 255, .075); }
.login-card {
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, .50);
    border-radius: 27px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .43), rgba(255, 255, 255, .19));
    box-shadow: 0 28px 74px rgba(62, 57, 105, .20), inset 0 1px rgba(255, 255, 255, .70);
    backdrop-filter: blur(34px) saturate(120%);
}
.login-card h2 { color: #303651; }
.alert {
    color: #7b334a;
    border-color: rgba(150, 72, 96, .20);
    background: rgba(255, 230, 235, .43);
}

.field > span:first-child { color: #505a75; }
.field input,
.search input {
    color: #303752;
    border-color: rgba(255, 255, 255, .60);
    background: rgba(255, 255, 255, .28);
    box-shadow: inset 0 1px rgba(255, 255, 255, .34);
}
.field input::placeholder,
.search input::placeholder { color: rgba(59, 68, 102, .45); }
.field input:hover,
.search input:hover { border-color: rgba(255, 255, 255, .86); }
.field input:focus,
.search input:focus {
    color: #272d48;
    border-color: rgba(255, 255, 255, .94);
    background: rgba(255, 255, 255, .45);
    box-shadow: 0 0 0 4px rgba(104, 114, 188, .12), 0 10px 24px rgba(65, 70, 119, .10);
}
.field-icon,
.field-icon.lock,
.field-icon.lock::before { color: #727b99; border-color: #727b99; }

.button {
    border-color: rgba(255, 255, 255, .54);
    box-shadow: 0 9px 20px rgba(69, 65, 112, .13), inset 0 1px rgba(255, 255, 255, .64);
    backdrop-filter: blur(16px);
}
.button-primary {
    color: #303650;
    border-color: rgba(255, 255, 255, .72);
    background: linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(225, 215, 238, .48));
}
.button-primary:hover { background: linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(229, 220, 242, .63)); }
.button-secondary {
    color: #505a76;
    border-color: rgba(255, 255, 255, .46);
    background: rgba(255, 255, 255, .27);
}
.button-secondary:hover { color: #313852; border-color: rgba(255, 255, 255, .78); background: rgba(255, 255, 255, .42); }
.button-danger { color: #6c2e42; background: rgba(255, 214, 223, .68); border-color: rgba(255, 255, 255, .66); }

.sidebar {
    border-right-color: rgba(255, 255, 255, .36);
    background: linear-gradient(165deg, rgba(255, 255, 255, .34), rgba(241, 236, 247, .20));
    box-shadow: 18px 0 60px rgba(72, 69, 118, .08);
    backdrop-filter: blur(34px) saturate(120%);
}
.sidebar-foot { border-top-color: rgba(255, 255, 255, .40); }
.nav-item { color: rgba(53, 62, 91, .61); }
.nav-item:hover { color: #343b59; background: rgba(255, 255, 255, .18); }
.nav-item.active {
    color: #303754;
    border-color: rgba(255, 255, 255, .48);
    background: linear-gradient(100deg, rgba(255, 255, 255, .54), rgba(255, 255, 255, .18));
    box-shadow: 0 10px 24px rgba(72, 69, 118, .09), inset 0 1px rgba(255, 255, 255, .65);
}
.profile strong { color: #343a57; }
.profile span:not(.avatar) { color: rgba(57, 65, 94, .57); }
.avatar {
    color: #5964ad;
    border-color: rgba(255, 255, 255, .62);
    background: rgba(255, 255, 255, .34);
    box-shadow: inset 0 1px rgba(255, 255, 255, .54);
}
.logout-button { color: #707994; }
.logout-button:hover { color: #3b425e; }

.topbar h1 { color: #303651; }
.topbar p { color: rgba(53, 62, 92, .65); }
.service-state {
    color: #47527b;
    border-color: rgba(255, 255, 255, .54);
    background: rgba(255, 255, 255, .30);
    box-shadow: 0 10px 25px rgba(67, 65, 108, .08), inset 0 1px rgba(255, 255, 255, .52);
}
.status-dot { background: #737dc4; box-shadow: 0 0 0 4px rgba(111, 121, 194, .12), 0 0 16px rgba(98, 111, 188, .36); }

.stat-card,
.stat-card.accent,
.panel {
    border-color: rgba(255, 255, 255, .47);
    background: linear-gradient(145deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, .18));
    box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, .64);
    backdrop-filter: blur(27px) saturate(120%);
}
.stat-card.accent { background: linear-gradient(145deg, rgba(255, 240, 244, .45), rgba(222, 224, 245, .25)); }
.stat-label { color: #535c77; }
.stat-card strong { color: #2d3450; }
.stat-help,
.panel p { color: rgba(55, 64, 95, .57); }
.stat-symbol {
    color: #5f6bb7;
    border-color: rgba(255, 255, 255, .54);
    background: rgba(255, 255, 255, .32);
    box-shadow: inset 0 1px rgba(255, 255, 255, .56);
}
.online-text { color: #5965b0; }
.panel h2 { color: #303751; }

th {
    color: rgba(57, 66, 97, .55);
    border-color: rgba(255, 255, 255, .36);
    background: rgba(255, 255, 255, .11);
}
td { color: #4d5773; border-bottom-color: rgba(255, 255, 255, .31); }
tbody tr:hover { background: rgba(255, 255, 255, .15); }
.key-value { color: #39415e; }
.key-value .key-glyph { color: #626db8; }
.date-cell { color: rgba(56, 65, 96, .57); }
.icon-button { border-color: rgba(255, 255, 255, .48); background: rgba(255, 255, 255, .22); box-shadow: inset 0 1px rgba(255, 255, 255, .45); }
.icon-button.danger { color: #9a6675; }
.icon-button.danger:hover { color: #7d354d; border-color: rgba(255, 255, 255, .76); background: rgba(255, 230, 235, .49); }
.row-actions { display: flex; justify-content: flex-end; gap: 7px; }
.key-copy { color: #5964ad; }
.key-copy:hover { color: #39457d; border-color: rgba(255, 255, 255, .76); background: rgba(255, 255, 255, .38); }

.create-user,
.user-list {
    border-color: rgba(255, 255, 255, .46);
    background: rgba(255, 255, 255, .14);
    box-shadow: inset 0 1px rgba(255, 255, 255, .40);
}
.user-card { border-bottom-color: rgba(255, 255, 255, .34); }
.user-identity strong { color: #353c58; }
.joined { color: rgba(57, 66, 96, .54); }
.badge { color: #66708b; border-color: rgba(255, 255, 255, .50); background: rgba(255, 255, 255, .17); }
.badge.owner { color: #5864ae; border-color: rgba(255, 255, 255, .61); background: rgba(255, 255, 255, .28); }
.permission span {
    color: #66708c;
    border-color: rgba(255, 255, 255, .43);
    background: rgba(255, 255, 255, .14);
}
.permission input:checked + span {
    color: #414b78;
    border-color: rgba(255, 255, 255, .66);
    background: rgba(255, 255, 255, .38);
    box-shadow: inset 0 1px rgba(255, 255, 255, .52);
}
.page-footer { color: rgba(52, 61, 91, .46); }

.toast {
    color: #3f486f;
    border-color: rgba(255, 255, 255, .68);
    background: rgba(245, 243, 252, .73);
    backdrop-filter: blur(24px);
}
.toast.error { color: #77384e; border-color: rgba(255, 255, 255, .68); background: rgba(255, 230, 236, .76); }
.modal-backdrop { background: rgba(53, 51, 84, .25); backdrop-filter: blur(12px); }
.modal-card {
    color: #303751;
    border-color: rgba(255, 255, 255, .67);
    background: rgba(242, 239, 249, .70);
    box-shadow: 0 30px 90px rgba(58, 54, 98, .28), inset 0 1px rgba(255, 255, 255, .72);
    backdrop-filter: blur(30px);
}
.modal-card p { color: #626c87; }
.modal-icon { color: #9c5067; border-color: rgba(255, 255, 255, .60); background: rgba(255, 224, 231, .50); }
.menu-button { color: #424a68; border-color: rgba(255, 255, 255, .56); background: rgba(255, 255, 255, .32); box-shadow: 0 8px 18px rgba(65, 63, 105, .10); }

.view-page { display: none; }
.view-page.active { display: block; animation: view-in .24s ease both; }
.overview-panel { margin-top: 16px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.feature-grid article {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, .43);
    border-radius: 18px;
    background: rgba(255, 255, 255, .14);
    box-shadow: inset 0 1px rgba(255, 255, 255, .40);
}
.feature-grid strong,
.feature-grid span,
.feature-grid code { display: block; }
.feature-grid strong { margin-bottom: 5px; color: #353c58; font-size: 14px; }
.feature-grid code,
.feature-grid article div > span { color: rgba(57, 66, 96, .62); font-size: 13px; }
.feature-icon,
.lock-badge {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    color: #5f6bb7;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 12px;
    background: rgba(255, 255, 255, .28);
}
.admin-access { display: flex; align-items: center; gap: 12px; }
.admin-access strong,
.admin-access span { display: block; }
.admin-access strong { color: #353c58; font-size: 14px; }
.admin-access div > span { max-width: 290px; margin-top: 3px; color: rgba(57, 66, 96, .58); font-size: 12px; line-height: 1.4; }

.ban-icon,
.mute-icon { position: relative; }
.ban-icon::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 1px;
    width: 11px;
    height: 14px;
    border: 1.7px solid currentColor;
    border-radius: 6px 6px 8px 8px;
}
.ban-icon::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 5px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}
.mute-icon::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 11px;
    height: 11px;
    border: 1.7px solid currentColor;
    border-radius: 50%;
}
.mute-icon::after {
    content: "";
    position: absolute;
    left: 2px;
    top: 8px;
    width: 15px;
    height: 1.7px;
    background: currentColor;
    transform: rotate(-45deg);
}
.litebans-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.litebans-stats .stat-card { min-height: 135px; }
.litebans-panel { overflow: hidden; }
.connection-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 9px 13px;
    color: #5864a0;
    border: 1px solid rgba(255, 255, 255, .50);
    border-radius: 999px;
    background: rgba(255, 255, 255, .20);
    font-size: 12px;
    font-weight: 700;
}
.connection-state.disconnected { color: #8b5f70; }
.connection-state.disconnected .status-dot { background: #c17f95; box-shadow: 0 0 0 4px rgba(193, 127, 149, .12); }
.integration-notice {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 24px 24px;
    padding: 19px;
    color: #545d7c;
    border: 1px solid rgba(255, 255, 255, .50);
    border-radius: 18px;
    background: rgba(255, 255, 255, .18);
}
.integration-notice > .warning-icon {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    color: #9a6577;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 13px;
    background: rgba(255, 235, 240, .38);
    font-weight: 800;
}
.integration-notice strong { display: block; color: #353c58; }
.integration-notice p { margin-top: 4px; }
.litebans-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 190px 160px;
    gap: 10px;
    padding: 0 24px 18px;
}
.litebans-toolbar .search { width: 100%; }
.select-wrap select {
    width: 100%;
    height: 42px;
    padding: 0 36px 0 14px;
    color: #46506e;
    border: 1px solid rgba(255, 255, 255, .50);
    border-radius: 13px;
    outline: 0;
    background: rgba(255, 255, 255, .20);
    box-shadow: inset 0 1px rgba(255, 255, 255, .42);
}
.select-wrap select:focus { border-color: rgba(100, 111, 181, .55); box-shadow: 0 0 0 3px rgba(102, 113, 184, .10); }
.litebans-table { min-width: 980px; }
.player-cell { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.player-cell > div,
.reason-cell { display: grid; gap: 3px; }
.player-cell strong,
.reason-cell strong { color: #39415e; font-size: 13px; }
.player-cell div > span,
.reason-cell span { max-width: 280px; overflow: hidden; color: rgba(57, 66, 96, .55); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.punishment-type,
.punishment-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, .50);
    border-radius: 999px;
    background: rgba(255, 255, 255, .20);
    font-size: 10px;
    font-weight: 800;
    text-transform: capitalize;
    white-space: nowrap;
}
.type-bans { color: #9a5870; background: rgba(255, 222, 231, .28); }
.type-mutes { color: #6e65a4; background: rgba(231, 226, 255, .28); }
.type-warnings { color: #9b753f; background: rgba(255, 239, 210, .28); }
.type-kicks { color: #536f9a; background: rgba(221, 236, 255, .28); }
.punishment-status.active { color: #5869a0; }
.punishment-status.inactive { color: #8b7c88; opacity: .75; }
.punishment-status.neutral { color: #67718d; }
.empty-filter { padding: 24px; color: rgba(57, 66, 96, .58); text-align: center; }

.api-mode {
    display: inline-flex;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, .52);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}
.api-mode.legacy { color: #8b6840; background: rgba(255, 234, 202, .35); }
.api-mode.secure { color: #52679d; background: rgba(222, 232, 255, .35); }
.table-subline { display: block; margin-top: 5px; color: rgba(57, 66, 96, .52); font-size: 10px; }
.button-tiny { min-height: 30px; padding: 6px 10px; color: #59627d; background: rgba(255, 255, 255, .22); font-size: 10px; }

.server-create-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1.25fr auto;
    align-items: end;
    gap: 12px;
    padding: 0 24px 4px;
}
.field select {
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    color: #303752;
    border: 1px solid rgba(255, 255, 255, .60);
    border-radius: 10px;
    outline: none;
    background: rgba(255, 255, 255, .28);
}
.server-list { display: grid; gap: 12px; padding: 0 24px 24px; }
.server-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .46);
    border-radius: 16px;
    background: rgba(255, 255, 255, .18);
    box-shadow: inset 0 1px rgba(255, 255, 255, .44);
}
.server-card-head { display: flex; align-items: center; gap: 12px; padding: 17px 18px; }
.server-card-head > div { display: grid; flex: 1; gap: 3px; }
.server-card-head strong { color: #343b57; font-size: 14px; }
.server-card-head div > span { color: rgba(57, 66, 96, .58); font-size: 12px; }
.server-symbol { position: relative; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 12px; background: rgba(255, 255, 255, .28); }
.server-symbol::before { content: ""; position: absolute; inset: 10px 8px 12px; border: 2px solid #6873b8; border-radius: 3px; }
.server-symbol::after { content: ""; position: absolute; left: 13px; bottom: 7px; width: 12px; border-top: 2px solid #6873b8; }
.server-meta { display: grid; grid-template-columns: 1.4fr .8fr 1.2fr; gap: 12px; padding: 0 18px 17px; }
.server-meta > div { display: grid; align-content: start; gap: 4px; min-width: 0; }
.server-meta span { color: rgba(57, 66, 96, .48); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.server-meta strong,
.server-meta code { overflow: hidden; color: #46506f; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.server-meta small { color: rgba(57, 66, 96, .50); font-size: 10px; }
.server-editor { display: grid; grid-template-columns: 1fr 1.25fr 1.35fr auto; align-items: end; gap: 10px; padding: 16px 18px; border-top: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .10); }
.server-enabled { min-height: 46px; }
.server-actions { display: flex; grid-column: 1 / -1; justify-content: flex-end; gap: 8px; }

@media (max-width: 1100px) {
    .stats-grid,
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .server-create-grid,
    .server-editor { grid-template-columns: 1fr 1fr; }
    .server-meta { grid-template-columns: 1fr; }
}

@keyframes view-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
    .login-panel { background: transparent; }
    .login-card { padding: 28px 24px; }
    .sidebar { box-shadow: 30px 0 80px rgba(63, 58, 105, .20); }
    .feature-grid { grid-template-columns: 1fr; }
    .litebans-stats { grid-template-columns: 1fr 1fr; }
    .litebans-toolbar { grid-template-columns: 1fr; }
    .connection-state { margin-top: 12px; }
    .panel,
    .stat-card,
    .sidebar { backdrop-filter: none; }
    .panel,
    .stat-card { background: rgba(255, 255, 255, .28); }
    .server-create-grid,
    .server-editor { grid-template-columns: 1fr; }
    .server-actions { justify-content: stretch; }
    .server-actions .button { flex: 1; }
}

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