:root {
  --bg: #080c0d;
  --surface: #101617;
  --surface-2: #151d1e;
  --border: #253031;
  --accent: #78ff95;
  --text: #f4f7f5;
  --muted: #8d9b97;
  --danger: #ff7f87;
  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; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 15% 10%, #10251a 0, transparent 28%), var(--bg); }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(100%, 440px); padding: 40px; border: 1px solid var(--border); border-radius: 20px; background: rgba(16, 22, 23, .96); box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; color: #07100a; background: var(--accent); border-radius: 9px; font-size: 13px; letter-spacing: -.03em; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .16em; margin: 28px 0 8px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; letter-spacing: -.035em; margin-bottom: 12px; }
h2 { font-size: 23px; letter-spacing: -.025em; }
.muted { color: var(--muted); line-height: 1.6; }
.form { display: grid; gap: 18px; margin-top: 28px; }
label { display: grid; gap: 8px; font-size: 13px; font-weight: 650; }
input { width: 100%; color: var(--text); background: #0a0f10; border: 1px solid var(--border); border-radius: 10px; padding: 13px 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(120,255,149,.12); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 42px; padding: 10px 16px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; font-weight: 750; transition: transform .15s, border-color .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.primary { color: #07100a; background: var(--accent); }
.secondary { width: 100%; justify-content: space-between; background: #1a2420; border-color: #2b4133; color: var(--accent); }
.ghost { color: var(--text); background: var(--surface); border-color: var(--border); }
.restricted { display: flex; align-items: center; justify-content: center; gap: 8px; color: #64716e; font-size: 12px; margin: 24px 0 0; }
.restricted span { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.alert { color: #ffd9dc; background: rgba(255,127,135,.09); border: 1px solid rgba(255,127,135,.3); border-radius: 9px; padding: 12px; font-size: 13px; margin-top: 20px; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1180px)/2)); border-bottom: 1px solid var(--border); background: rgba(8,12,13,.8); backdrop-filter: blur(12px); }
.account { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.account form { display: inline; }
.user-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px var(--accent); }
.link-button { color: var(--text); border: 0; border-left: 1px solid var(--border); background: transparent; margin-left: 6px; padding-left: 16px; cursor: pointer; }
.dashboard { max-width: 1180px; margin: 0 auto; padding: 72px 24px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.page-heading .eyebrow { margin-top: 0; }
.server-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.server-card { min-width: 0; padding: 26px; border: 1px solid var(--border); border-radius: 15px; background: linear-gradient(145deg, rgba(21,29,30,.96), rgba(12,17,18,.96)); }
.server-card .eyebrow { margin-top: 36px; }
.server-top { display: flex; justify-content: space-between; align-items: center; }
.server-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #2e3b38; border-radius: 10px; color: var(--accent); background: #101a16; }
.status { display: flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 20px; font-size: 11px; font-weight: 750; background: #1a2020; color: var(--muted); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.online { color: var(--accent); background: rgba(120,255,149,.08); }
.status.offline { color: var(--danger); background: rgba(255,127,135,.08); }
.last-check { color: #64716e; font-size: 12px; text-align: right; margin-top: 18px; }
.viewer-shell { height: 100vh; display: flex; flex-direction: column; }
.viewer-bar { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 10px 20px; border-bottom: 1px solid var(--border); background: var(--surface); }
.viewer-bar > :last-child { justify-self: end; }
.viewer-bar div { text-align: center; }
.viewer-bar .eyebrow { margin: 0 0 3px; }
.viewer-bar h1 { font-size: 18px; margin: 0; }
.frame-wrap { flex: 1; padding: 10px; background: #e9ecef; }
iframe { width: 100%; height: 100%; border: 0; background: white; border-radius: 5px; }
.offline { min-height: 100vh; display: grid; place-content: center; justify-items: center; text-align: center; padding: 30px; background: var(--bg); }
.offline-icon { display: grid; place-items: center; width: 55px; height: 55px; border: 1px solid rgba(255,127,135,.4); border-radius: 50%; color: var(--danger); font-size: 25px; }
.offline .muted { max-width: 520px; }
@media (max-width: 800px) {
  .server-grid { grid-template-columns: 1fr; }
  .page-heading { align-items: stretch; flex-direction: column; }
  .topbar { padding: 0 18px; }
  .topbar .brand > span:last-child { display: none; }
  .dashboard { padding-top: 45px; }
  .viewer-bar { grid-template-columns: auto 1fr auto; }
  .viewer-bar .button { font-size: 0; width: 42px; padding: 0; }
  .viewer-bar .button::first-letter { font-size: 18px; }
}
