/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }

/* ============ TOKENS ============ */
:root {
  --bg-base: #05070d;
  --bg-deep: #02030a;
  --blue-1: #00b4ff;
  --blue-2: #0066ff;
  --blue-3: #0033aa;
  --blue-glow: rgba(0, 180, 255, 0.35);
  --text: #e9eef7;
  --text-dim: #7a8699;
  --text-mid: #a9b6c9;
  --danger: #ff4d6d;
  --success: #22d3a0;

  --glass-bg: rgba(18, 26, 44, 0.55);
  --glass-border: rgba(120, 180, 255, 0.14);
  --glass-hi: rgba(180, 220, 255, 0.06);

  --clay-shadow:
      0 10px 30px rgba(0, 0, 0, 0.55),
      0 2px 6px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.07),
      inset 0 -2px 6px rgba(0, 0, 0, 0.5);
  --clay-press:
      0 3px 8px rgba(0, 0, 0, 0.5),
      inset 0 2px 6px rgba(0, 0, 0, 0.5),
      inset 0 -1px 0 rgba(255, 255, 255, 0.05);

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

/* ============ BASE ============ */
body {
  min-height: 100vh;
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 60% at 15% -10%, rgba(0, 102, 255, 0.22), transparent 60%),
    radial-gradient(ellipse 80% 60% at 90% 110%, rgba(0, 180, 255, 0.16), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(0, 51, 170, 0.10), transparent 70%),
    linear-gradient(180deg, var(--bg-base) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::after {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(circle at 20% 25%, rgba(0,180,255,0.06) 0, transparent 22%),
    radial-gradient(circle at 85% 80%, rgba(0,102,255,0.06) 0, transparent 22%);
}

/* ============ APP LAYOUT ============ */
.app {
  position: relative; z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 20px 64px;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
.main { flex: 1; }

/* ============ TOPBAR ============ */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 4px 28px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 40px; height: 40px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 25%, #4dd0ff 0%, transparent 45%),
    linear-gradient(140deg, var(--blue-2), var(--blue-1));
  box-shadow:
    0 0 20px rgba(0, 180, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -3px 6px rgba(0, 0, 0, 0.35);
  position: relative;
}
.logo-mark::after {
  content: '';
  position: absolute; inset: 11px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-top-color: transparent; border-left-color: transparent;
  transform: rotate(45deg);
}
.brand-name { font-weight: 700; letter-spacing: 2px; font-size: 15px; }
.brand-sub {
  font-size: 11px; color: var(--text-dim);
  letter-spacing: 1px; text-transform: uppercase;
  display: block; margin-top: 1px;
}

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  font-size: 12px; font-weight: 500;
  color: var(--text-mid);
  border-radius: 999px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--clay-shadow);
  letter-spacing: 0.3px;
  transition: color 0.3s;
}
.status-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-dim);
  transition: background 0.3s, box-shadow 0.3s;
}
.status-pill.wait .dot { background: #ffc043; box-shadow: 0 0 10px #ffc043; animation: pulse 1.6s infinite; }
.status-pill.online .dot { background: var(--success); box-shadow: 0 0 10px var(--success); }
.status-pill.busy .dot { background: var(--blue-1); box-shadow: 0 0 10px var(--blue-1); animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.35} }

/* ============ SCREENS ============ */
.screen { display: none; animation: fadeUp 0.4s ease; }
.screen.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============ HELPERS ============ */
.muted { color: var(--text-dim); font-size: 12px; }

/* ============ FOOTER ============ */
.footer {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center; font-size: 11px; color: var(--text-dim);
  letter-spacing: 0.4px;
}