/* ── Reset & base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0a0e1a;
  --surface:     #141929;
  --surface-alt: #1c2236;
  --border:      #252b3d;
  --text:        #e4e7f0;
  --text-dim:    #8891a8;
  --accent:      #5b9bf5;
  --green:       #4ade80;
  --yellow:      #facc15;
  --orange:      #fb923c;
  --red:         #f87171;
  --purple:      #a78bfa;
  --radius:      10px;

  /* safe-area for notched phones */
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: contain;
}

body {
  padding-top: var(--sat);
  padding-bottom: var(--sab);
}

/* ── Tab bar (shared styles, previously in app.js) ────────── */
.tab-bar {
  display: flex;
  flex-shrink: 0;
  background: rgba(10, 14, 26, 0.92);
  border-top: 1px solid var(--border);
  padding: 4px 0;
  padding-bottom: calc(4px + var(--sab, 0px));
}
.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 10px;
  font-family: inherit;
  padding: 4px 8px;
  transition: color 0.15s;
}
.tab-btn .tab-icon { font-size: 18px; line-height: 1; }
.tab-btn.active { color: var(--accent); }
.tab-btn.active .tab-icon { filter: drop-shadow(0 0 4px rgba(91, 155, 245, 0.5)); }
.tab-btn:active { opacity: 0.6; }
.tab-btn.disabled { opacity: 0.35; cursor: default; }
