:root {
  --bg: #070a10;
  --panel: rgba(16, 21, 31, .84);
  --panel-solid: #10151f;
  --line: rgba(255, 255, 255, .09);
  --muted: #8e98a9;
  --text: #f5f8fc;
  --cyan: #5ee7d7;
  --cyan-dim: rgba(94, 231, 215, .12);
  --violet: #8f7cff;
  --danger: #ff6b81;
  --shadow: 0 28px 90px rgba(0, 0, 0, .42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: radial-gradient(circle at 50% -20%, #182536 0, var(--bg) 44%); color: var(--text); }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .23; background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, black, transparent 80%); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.ambient { position: fixed; border-radius: 50%; filter: blur(110px); opacity: .15; pointer-events: none; }
.ambient-one { width: 440px; height: 440px; background: var(--cyan); left: -190px; top: 14%; }
.ambient-two { width: 520px; height: 520px; background: var(--violet); right: -240px; bottom: -120px; }
.eyebrow { margin: 0 0 10px; color: var(--cyan); font-size: 11px; line-height: 1.2; letter-spacing: .19em; font-weight: 700; }
.brand-mark { display: grid; grid-template-columns: repeat(3, 8px); align-items: end; gap: 4px; width: 32px; height: 32px; margin-bottom: 34px; }
.brand-mark span { display: block; border-radius: 10px; background: linear-gradient(to top, var(--cyan), #b8fff8); box-shadow: 0 0 20px rgba(94,231,215,.35); }
.brand-mark span:nth-child(1) { height: 15px; }.brand-mark span:nth-child(2) { height: 27px; }.brand-mark span:nth-child(3) { height: 21px; }
.brand-mark.small { transform: scale(.8); transform-origin: left center; margin: 0; }

.login-page { display: grid; place-items: center; padding: 34px; overflow-x: hidden; }
.login-shell { position: relative; z-index: 1; width: min(440px, 100%); }
.login-intro h1 { max-width: 700px; margin: 0; font-size: clamp(46px, 6.2vw, 78px); line-height: .99; letter-spacing: -.055em; font-weight: 650; }
.lead { max-width: 520px; margin: 28px 0 42px; color: #aeb7c6; font-size: 18px; line-height: 1.65; }
.security-note { display: inline-flex; align-items: center; gap: 13px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.security-note div, .operator div, .client-name div { display: grid; gap: 3px; }
.security-note strong, .operator strong { font-size: 13px; }.security-note small, .operator small { color: var(--muted); font-size: 11px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(94,231,215,.09), 0 0 20px rgba(94,231,215,.8); }

.login-card { padding: 32px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg, rgba(24,31,44,.94), rgba(12,16,24,.94)); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.login-identity { padding-bottom: 27px; border-bottom: 1px solid var(--line); }
.login-identity .brand-mark { margin-bottom: 20px; }
.login-identity .eyebrow { margin-bottom: 9px; }
.login-identity h1 { max-width: 330px; margin: 0; font-size: 27px; line-height: 1.12; letter-spacing: -.04em; font-weight: 670; }
.card-topline, .card-footer { display: flex; justify-content: space-between; color: #6f7a8b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; letter-spacing: .15em; }
.encrypted { color: var(--cyan); }
.login-card h2 { margin: 28px 0 20px; font-size: 24px; letter-spacing: -.025em; }
.field { display: grid; gap: 9px; margin: 18px 0; color: #c6ceda; font-size: 12px; font-weight: 650; }
.field input { width: 100%; height: 50px; padding: 0 15px; color: var(--text); border: 1px solid var(--line); border-radius: 12px; outline: none; background: rgba(3,6,11,.42); transition: .2s ease; }
.field input::placeholder { color: #596273; }.field input:focus { border-color: rgba(94,231,215,.65); box-shadow: 0 0 0 4px rgba(94,231,215,.08); }
.password-wrap { position: relative; }.password-wrap input { padding-right: 86px; }.reveal { position: absolute; right: 8px; top: 8px; height: 34px; padding: 0 9px; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 11px; }
.primary-button, .ghost-button, .icon-button { border: 0; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease; }
.primary-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 50px; margin-top: 24px; padding: 0 18px; border-radius: 12px; color: #07110f; background: linear-gradient(135deg, #79f4e5, #4dc9bd); font-weight: 760; box-shadow: 0 14px 34px rgba(94,231,215,.14); }
.primary-button:hover, .ghost-button:hover, .icon-button:hover { transform: translateY(-1px); }.primary-button:disabled { opacity: .5; cursor: wait; transform: none; }
.primary-button.compact { width: auto; min-height: 42px; margin: 0; padding: 0 17px; }
.card-footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.alert { margin: 15px 0; padding: 12px 14px; border-radius: 10px; font-size: 13px; }.alert-error { color: #ffadba; border: 1px solid rgba(255,107,129,.22); background: rgba(255,107,129,.08); }

.dashboard-page { overflow-x: hidden; }.dashboard-shell { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: 246px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: space-between; padding: 28px 22px; border-right: 1px solid var(--line); background: rgba(8,11,17,.75); backdrop-filter: blur(18px); }
.sidebar-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 42px; }.sidebar-brand div:last-child { display: grid; }.sidebar-brand strong { letter-spacing: .12em; font-size: 15px; }.sidebar-brand small { color: var(--muted); font-size: 10px; }
nav { display: grid; gap: 7px; }.nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 10px; color: #8993a4; font-size: 13px; font-weight: 620; }.nav-item:hover, .nav-item.active { color: var(--text); background: rgba(255,255,255,.055); }.nav-item.active { box-shadow: inset 2px 0 var(--cyan); }
.sidebar-bottom { display: grid; gap: 17px; }.operator { display: flex; gap: 11px; align-items: center; }.avatar, .client-icon { display: grid; place-items: center; border: 1px solid rgba(94,231,215,.18); border-radius: 10px; color: var(--cyan); background: var(--cyan-dim); font-weight: 750; }.avatar { width: 36px; height: 36px; }
.ghost-button { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; color: #bdc6d3; background: rgba(255,255,255,.03); font-weight: 650; }.ghost-button:hover { border-color: rgba(94,231,215,.3); color: var(--text); }.ghost-button.full { width: 100%; }

.content { min-width: 0; padding: 38px clamp(24px, 4vw, 62px) 52px; }.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }.topbar h1 { margin: 0; font-size: clamp(28px, 3vw, 42px); letter-spacing: -.045em; }.top-actions { display: flex; gap: 10px; }
.status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }.metric-card { min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; padding: 19px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(145deg, rgba(20,26,38,.85), rgba(10,14,21,.82)); }.metric-card.accent { border-color: rgba(94,231,215,.18); background: linear-gradient(145deg, rgba(23,42,44,.82), rgba(10,17,22,.86)); }.metric-label { display: flex; justify-content: space-between; color: #778294; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }.metric-card > strong { display: block; margin-top: 18px; font-size: 25px; letter-spacing: -.04em; }.metric-card > strong.endpoint { font-size: 18px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }.metric-card > small { color: var(--muted); font-size: 11px; }.live-pill { display: inline-flex; align-items: center; gap: 5px; color: var(--cyan); }.live-pill i, .state-badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.panel-section { margin-top: 30px; border: 1px solid var(--line); border-radius: 19px; overflow: hidden; background: rgba(12,16,24,.78); }.section-heading { display: flex; align-items: center; justify-content: space-between; padding: 23px 25px; border-bottom: 1px solid var(--line); }.section-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }.section-count { color: var(--muted); font-size: 11px; }.table-wrap { overflow-x: auto; }table { width: 100%; border-collapse: collapse; min-width: 820px; }th { padding: 12px 18px; color: #6f7a8c; font-size: 9px; letter-spacing: .11em; text-align: left; text-transform: uppercase; background: rgba(255,255,255,.018); }td { padding: 15px 18px; border-top: 1px solid rgba(255,255,255,.055); color: #b8c1cf; font-size: 12px; }tbody tr:hover { background: rgba(255,255,255,.018); }.client-name { display: flex; align-items: center; gap: 11px; }.client-icon { width: 34px; height: 34px; }.client-name strong { color: var(--text); font-size: 13px; }.client-name small { color: #697486; font-size: 10px; }code { color: #a9f3e9; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }.state-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 20px; font-size: 10px; }.state-badge.online { color: var(--cyan); background: var(--cyan-dim); }.state-badge.idle { color: #9aa4b3; background: rgba(255,255,255,.05); }.row-actions { display: flex; justify-content: flex-end; gap: 5px; }.icon-button { width: 31px; height: 31px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: #aeb7c6; background: rgba(255,255,255,.025); }.icon-button.danger:hover { color: var(--danger); border-color: rgba(255,107,129,.35); }.traffic { white-space: nowrap; }.empty-state { display: grid; justify-items: center; padding: 42px; text-align: center; }.empty-state > span { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 13px; border: 1px dashed rgba(94,231,215,.3); border-radius: 50%; color: var(--cyan); }.empty-state p { color: var(--muted); }.system-strip { display: flex; justify-content: space-between; align-items: center; margin-top: 17px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02); }.system-strip > div { display: flex; align-items: center; gap: 13px; }.system-strip p { display: grid; margin: 0; }.system-strip small { color: var(--muted); font-size: 10px; }.system-strip code { font-size: 11px; }

dialog { width: min(500px, calc(100% - 28px)); padding: 0; border: 1px solid var(--line); border-radius: 20px; color: var(--text); background: #111720; box-shadow: var(--shadow); }dialog::backdrop { background: rgba(2,4,8,.78); backdrop-filter: blur(8px); }dialog form { padding: 25px; }.dialog-header { display: flex; justify-content: space-between; align-items: start; }.dialog-header h2 { margin: 0; font-size: 24px; }.dialog-close { border: 0; color: var(--muted); background: transparent; font-size: 24px; cursor: pointer; }.dialog-header + p { color: var(--muted); font-size: 13px; line-height: 1.55; }.dialog-note { display: flex; gap: 10px; padding: 12px; border-radius: 11px; color: #9eb0c6; background: rgba(143,124,255,.08); font-size: 11px; line-height: 1.45; }.dialog-note span { color: #b7adff; font-weight: 800; }.dialog-note p { margin: 0; }.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.toast { position: fixed; z-index: 20; right: 24px; bottom: 24px; max-width: 360px; padding: 13px 16px; border: 1px solid rgba(94,231,215,.25); border-radius: 12px; color: var(--text); background: #121b24; box-shadow: var(--shadow); opacity: 0; transform: translateY(16px); pointer-events: none; transition: .25s ease; }.toast.show { opacity: 1; transform: none; }.toast.error { border-color: rgba(255,107,129,.35); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1050px) { .status-grid { grid-template-columns: repeat(2, 1fr); }.dashboard-shell { grid-template-columns: 210px 1fr; } }
@media (max-width: 760px) { .login-page { padding: 22px; }.dashboard-shell { display: block; }.sidebar { position: relative; width: 100%; height: auto; flex-direction: row; padding: 16px 20px; }.sidebar nav, .sidebar-bottom { display: none; }.sidebar-brand { margin: 0; }.content { padding: 25px 16px 40px; }.topbar { align-items: flex-start; flex-direction: column; }.status-grid { grid-template-columns: 1fr; }.system-strip { align-items: flex-start; flex-direction: column; gap: 12px; } }
@media (max-width: 480px) { .login-card { padding: 22px; }.login-identity h1 { font-size: 24px; }.top-actions { width: 100%; }.top-actions > * { flex: 1; }.primary-button.compact { justify-content: center; }.section-heading { align-items: flex-start; gap: 10px; flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

