:root {
  color-scheme: dark;
  --bg: #08080c;
  --surface: #101016;
  --surface-2: #16161f;
  --surface-3: #1c1c27;
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.14);
  --text: #f7f4f8;
  --muted: #9d9aa8;
  --pink: #ff2d86;
  --pink-2: #ff5ca2;
  --green: #45db9c;
  --red: #ff596b;
  --blue: #6ca8ff;
  --shadow: 0 28px 80px rgba(0,0,0,.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
.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; }

.ambient { position: fixed; z-index: -1; border-radius: 999px; filter: blur(2px); pointer-events: none; }
.ambient-one { width: 520px; height: 520px; top: -260px; right: -180px; background: radial-gradient(circle, rgba(255,45,134,.13), transparent 66%); }
.ambient-two { width: 440px; height: 440px; bottom: -280px; left: -180px; background: radial-gradient(circle, rgba(136,50,255,.09), transparent 68%); }

.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 30px 18px; }
.login-card { width: min(100%, 470px); padding: 34px; border: 1px solid var(--border-strong); border-radius: 26px; background: linear-gradient(145deg, rgba(22,22,31,.96), rgba(13,13,19,.98)); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.login-card::before { content: ""; position: absolute; width: 190px; height: 190px; top: -90px; right: -60px; border-radius: 50%; background: radial-gradient(circle, rgba(255,45,134,.24), transparent 70%); }
.brand-lockup { display: flex; align-items: center; gap: 13px; position: relative; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: linear-gradient(145deg, #ff397f, #a50d62); box-shadow: 0 10px 28px rgba(255,45,134,.28), inset 0 1px rgba(255,255,255,.24); font-weight: 900; letter-spacing: -.04em; }
.brand-mark span { transform: skew(-6deg); }
.eyebrow { margin: 0; color: #fff; font-weight: 800; letter-spacing: .02em; }
.brand-subtitle { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.login-copy { margin: 44px 0 30px; position: relative; }
.security-chip, .connection-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,45,134,.25); background: rgba(255,45,134,.08); color: #ff83b8; border-radius: 999px; padding: 7px 11px; font-size: 12px; font-weight: 750; letter-spacing: .02em; }
.security-chip i, .connection-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 15px var(--pink); }
.login-copy h1 { margin: 17px 0 10px; font-size: clamp(34px, 8vw, 48px); letter-spacing: -.055em; line-height: 1.02; }
.login-copy p { margin: 0; color: var(--muted); line-height: 1.65; }
label { display: block; margin-bottom: 9px; font-size: 13px; color: #d4d1da; font-weight: 700; }
.password-field { display: flex; align-items: center; background: #0b0b10; border: 1px solid var(--border-strong); border-radius: 13px; transition: .2s ease; }
.password-field:focus-within { border-color: rgba(255,45,134,.7); box-shadow: 0 0 0 4px rgba(255,45,134,.1); }
.password-field input { flex: 1; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; padding: 14px 15px; }
.password-field input::placeholder { color: #64616c; }
.icon-button { border: 0; background: transparent; color: var(--muted); width: 40px; height: 40px; border-radius: 10px; cursor: pointer; }
.icon-button:hover { color: #fff; background: rgba(255,255,255,.06); }
.primary-button, .secondary-button, .action-button { border: 0; border-radius: 12px; cursor: pointer; font-weight: 800; transition: transform .16s ease, filter .16s ease, background .16s ease; }
.primary-button { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-top: 13px; padding: 14px 16px; background: linear-gradient(135deg, var(--pink), #dc176d); color: white; box-shadow: 0 13px 30px rgba(255,45,134,.22); }
.primary-button:hover, .action-button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.primary-button:disabled, .action-button:disabled, .secondary-button:disabled { opacity: .55; cursor: wait; transform: none; }
.form-message { min-height: 20px; margin: 11px 0 0; color: #ff8290; font-size: 13px; }
.login-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--border); color: #6f6c78; font-size: 11px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 258px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 25px 18px 18px; background: rgba(12,12,17,.96); border-right: 1px solid var(--border); }
.brand-lockup.compact { padding: 0 8px 26px; }
.brand-lockup.compact .brand-mark { width: 41px; height: 41px; border-radius: 13px; font-size: 14px; }
.nav-list { display: grid; gap: 6px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 13px; border: 0; border-radius: 11px; background: transparent; color: #aaa7b2; text-align: left; cursor: pointer; font-size: 14px; font-weight: 650; }
.nav-item:hover { background: rgba(255,255,255,.04); color: #fff; }
.nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(255,45,134,.17), rgba(255,45,134,.05)); box-shadow: inset 3px 0 var(--pink); }
.nav-item span { width: 20px; text-align: center; color: #d9d5df; }
.nav-item b { margin-left: auto; display: grid; place-items: center; min-width: 23px; height: 20px; padding: 0 6px; border-radius: 999px; background: rgba(255,45,134,.16); color: #ff7cb3; font-size: 11px; }
.sidebar-foot { margin-top: auto; }
.operator-card { display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--border); background: rgba(255,255,255,.025); border-radius: 14px; }
.avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(145deg, #ff3c8c, #8b154f); font-weight: 900; }
.operator-card > div:nth-child(2) { display: grid; min-width: 0; }
.operator-card strong { font-size: 13px; }
.operator-card span { color: var(--muted); font-size: 11px; margin-top: 2px; }
.operator-card .icon-button { margin-left: auto; }
.sidebar-foot > p { color: #55525e; text-align: center; font-size: 10px; margin: 14px 0 0; }

.workspace { min-width: 0; }
.topbar { height: 92px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px,4vw,54px); border-bottom: 1px solid var(--border); background: rgba(8,8,12,.78); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 10; }
.breadcrumb { margin: 0 0 5px; color: #777481; font-size: 12px; }
.breadcrumb span { margin: 0 6px; }
.topbar h2 { margin: 0; font-size: 21px; letter-spacing: -.025em; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.connection-chip { border-color: rgba(69,219,156,.2); background: rgba(69,219,156,.07); color: #76e9b9; }
.connection-chip i { background: var(--green); box-shadow: 0 0 14px var(--green); }
.connection-chip.offline { border-color: rgba(255,89,107,.25); background: rgba(255,89,107,.08); color: #ff8290; }
.connection-chip.offline i { background: var(--red); box-shadow: 0 0 14px var(--red); }
.secondary-button { padding: 10px 14px; border: 1px solid var(--border-strong); background: #15151d; color: #d6d2dc; }
.secondary-button:hover { background: #1c1c26; }
.content { padding: 34px clamp(24px,4vw,54px) 70px; max-width: 1500px; margin: 0 auto; }
.hero-panel { min-height: 285px; display: flex; align-items: center; justify-content: space-between; padding: clamp(28px,5vw,54px); border: 1px solid var(--border); border-radius: 24px; background: radial-gradient(circle at 90% 25%, rgba(255,45,134,.15), transparent 32%), linear-gradient(135deg, #15151d, #0e0e14); overflow: hidden; position: relative; }
.hero-panel h1 { margin: 19px 0 12px; font-size: clamp(38px,5.3vw,70px); line-height: .98; letter-spacing: -.065em; max-width: 760px; }
.hero-panel p { max-width: 620px; margin: 0; color: var(--muted); line-height: 1.65; }
.hero-orbit { width: 300px; height: 240px; position: relative; flex: 0 0 auto; }
.orbit-ring { position: absolute; inset: 50% auto auto 50%; border: 1px solid rgba(255,45,134,.22); border-radius: 50%; transform: translate(-50%,-50%) rotate(-16deg); }
.ring-one { width: 260px; height: 150px; }
.ring-two { width: 205px; height: 205px; border-color: rgba(255,255,255,.08); }
.shield-mark { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%) rotate(-3deg); width: 104px; height: 120px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); background: linear-gradient(145deg, rgba(255,45,134,.96), rgba(115,12,71,.88)); clip-path: polygon(50% 0, 92% 18%, 84% 75%, 50% 100%, 16% 75%, 8% 18%); font-size: 27px; font-weight: 950; box-shadow: 0 22px 55px rgba(255,45,134,.26); }
.metrics-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 18px 0 32px; }
.metric-card { min-height: 150px; padding: 20px; border: 1px solid var(--border); border-radius: 17px; background: var(--surface); position: relative; overflow: hidden; }
.metric-card::after { content: ""; position: absolute; width: 100px; height: 100px; right: -45px; bottom: -45px; border-radius: 50%; background: currentColor; opacity: .06; }
.metric-card > div { margin-top: 20px; }
.metric-card p { margin: 0 0 4px; color: var(--muted); font-size: 12px; }
.metric-card strong { display: block; color: #fff; font-size: 32px; letter-spacing: -.04em; }
.metric-card small { display: block; margin-top: 4px; color: #686571; font-size: 11px; }
.metric-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: currentColor; color: inherit; font-weight: 900; box-shadow: inset 0 0 0 30px rgba(0,0,0,.82); }
.metric-card.pink { color: var(--pink); }.metric-card.green { color: var(--green); }.metric-card.red { color: var(--red); }.metric-card.blue { color: var(--blue); }
.metric-card strong.metric-time { font-size: 21px; margin-top: 10px; }
.panel-section { scroll-margin-top: 115px; margin-top: 22px; padding: clamp(20px,3vw,30px); border: 1px solid var(--border); border-radius: 20px; background: rgba(15,15,21,.8); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 20px; }
.section-kicker { color: var(--pink-2); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.section-heading h3 { margin: 5px 0 0; font-size: 21px; letter-spacing: -.025em; }
.count-badge, .muted-label { padding: 7px 10px; border-radius: 999px; background: rgba(255,45,134,.1); color: #ff79b2; font-size: 11px; font-weight: 800; }
.muted-label { background: rgba(255,255,255,.04); color: var(--muted); }
.server-list { display: grid; gap: 10px; }
.request-card { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.server-avatar { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(145deg, #3a1830, #21131e); color: #ff6ca8; border: 1px solid rgba(255,45,134,.18); font-weight: 900; }
.server-info { min-width: 0; }
.server-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-info p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.server-info code { color: #b9b5c1; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.request-actions { display: flex; gap: 8px; }
.action-button { padding: 10px 13px; font-size: 12px; }
.action-button.approve { background: var(--pink); color: white; }
.action-button.deny, .action-button.revoke { background: rgba(255,89,107,.11); color: #ff7c89; border: 1px solid rgba(255,89,107,.2); }
.action-button.restore { background: rgba(69,219,156,.1); color: #71e5b6; border: 1px solid rgba(69,219,156,.2); }
.empty-state { display: none; padding: 42px 20px; text-align: center; border: 1px dashed var(--border-strong); border-radius: 14px; color: var(--muted); }
.empty-state.show { display: block; }
.empty-state span { width: 38px; height: 38px; display: grid; place-items: center; margin: 0 auto 11px; border-radius: 11px; background: rgba(69,219,156,.1); color: var(--green); }
.empty-state strong { display: block; color: #ddd9e2; }
.empty-state p { margin: 7px 0 0; font-size: 12px; }
.empty-state.small { padding: 28px 20px; }
.filter-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: #0b0b10; }
.filter-tab { border: 0; border-radius: 7px; padding: 7px 10px; color: var(--muted); background: transparent; cursor: pointer; font-size: 11px; font-weight: 750; }
.filter-tab.active { background: #252531; color: #fff; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th { padding: 10px 12px; color: #686571; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; text-align: left; border-bottom: 1px solid var(--border); }
td { padding: 14px 12px; border-bottom: 1px solid var(--border); color: #b5b1bc; font-size: 12px; }
tbody tr:last-child td { border-bottom: 0; }
.table-server { display: flex; align-items: center; gap: 10px; }
.table-server .server-avatar { width: 37px; height: 37px; border-radius: 10px; font-size: 11px; }
.table-server strong { display: block; color: #eeebf1; font-size: 13px; }
.table-server span { display: block; margin-top: 3px; color: #65626d; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-badge.approved { color: #65e4af; background: rgba(69,219,156,.1); }
.status-badge.pending { color: #ff83b8; background: rgba(255,45,134,.1); }
.status-badge.denied, .status-badge.revoked { color: #ff7b89; background: rgba(255,89,107,.1); }
.protected-label { display: block; margin-top: 4px; color: #716e79; font-size: 9px; }
.table-action { border: 1px solid var(--border); background: #181821; color: #aaa6b1; padding: 7px 9px; border-radius: 8px; cursor: pointer; font-size: 10px; }
.table-action:hover { border-color: rgba(255,45,134,.25); color: #fff; }
.audit-list { display: grid; }
.audit-row { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 13px 2px; border-bottom: 1px solid var(--border); }
.audit-row:last-child { border-bottom: 0; }
.audit-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.04); color: #a8a4ae; }
.audit-row strong { color: #dedbe2; font-size: 12px; }
.audit-row p { margin: 3px 0 0; color: #6f6c76; font-size: 11px; }
.audit-row time { color: #5f5c66; font-size: 10px; }
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: grid; gap: 8px; width: min(370px,calc(100vw - 40px)); }
.toast { padding: 13px 15px; border: 1px solid var(--border-strong); border-radius: 12px; background: #1b1b24; box-shadow: 0 18px 45px rgba(0,0,0,.35); color: #e9e5ed; font-size: 12px; animation: toast-in .2s ease; }
.toast.success { border-color: rgba(69,219,156,.25); }.toast.error { border-color: rgba(255,89,107,.3); }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

@media (max-width: 1100px) {
  .metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-orbit { width: 230px; }
}
@media (max-width: 820px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 14px 16px; border-right: 0; border-bottom: 1px solid var(--border); }
  .brand-lockup.compact { padding: 0; }
  .nav-list, .sidebar-foot { display: none; }
  .topbar { top: 69px; height: 80px; padding: 0 18px; }
  .content { padding: 22px 16px 60px; }
  .hero-panel { min-height: 0; }
  .hero-orbit { display: none; }
}
@media (max-width: 620px) {
  .login-card { padding: 25px 21px; border-radius: 21px; }
  .topbar h2 { font-size: 18px; }
  .connection-chip { display: none; }
  .hero-panel { padding: 28px 22px; border-radius: 19px; }
  .hero-panel h1 { font-size: 40px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-card { min-height: 138px; padding: 15px; }
  .metric-card strong { font-size: 27px; }
  .metric-card strong.metric-time { font-size: 17px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .request-card { grid-template-columns: 42px minmax(0,1fr); }
  .server-avatar { width: 42px; height: 42px; }
  .request-actions { grid-column: 1 / -1; width: 100%; }
  .request-actions .action-button { flex: 1; }
  .filter-tabs { width: 100%; }
  .filter-tab { flex: 1; }
  .panel-section { padding: 18px 14px; }
}
