/* ═══════════════════════════════════════════════
   OCUS Speed Booker — Cloud
   Modern glass-morphism · mobile-first · RTL
   ═══════════════════════════════════════════════ */

* { box-sizing: border-box; }

:root {
  /* Base palette */
  --bg-1: #050912;
  --bg-2: #0b1428;
  --bg-3: #111e3d;

  /* Surfaces (glass) */
  --surface: rgba(20, 30, 55, 0.72);
  --surface-strong: rgba(28, 42, 78, 0.92);
  --surface-hover: rgba(30, 45, 82, 0.9);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);

  /* Text */
  --text: #e8eefc;
  --text-mute: #93a2c4;
  --text-dim: #6b7ea3;

  /* Accents */
  --primary: #38bdf8;
  --primary-2: #0ea5e9;
  --primary-3: #0284c7;
  --success: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --purple: #a78bfa;

  /* Effects */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 8px 24px rgba(56, 189, 248, 0.35);
  --blur: 20px;

  --transition: 180ms cubic-bezier(.4,0,.2,1);
}

html, body {
  margin: 0; padding: 0;
  min-height: 100%;
  background: var(--bg-1);
  color: var(--text);
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── HARD hide for [hidden] — beats any .view display rule ── */
[hidden] { display: none !important; }

body {
  background:
    radial-gradient(1200px 800px at 15% -10%, rgba(56, 189, 248, 0.15), transparent 60%),
    radial-gradient(900px 700px at 100% 0%, rgba(167, 139, 250, 0.10), transparent 55%),
    radial-gradient(1000px 900px at 50% 110%, rgba(14, 165, 233, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, #030710 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

.view { min-height: 100vh; }
.mono { font-family: 'JetBrains Mono', monospace; }

/* ═══════ SCROLLBAR ═══════ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }

/* ═══════════════════════════════════════════
   LOGIN
   ═══════════════════════════════════════════ */
.login-view {
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.login-shell {
  position: relative;
  width: 100%;
  max-width: 440px;
}
.login-glow {
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(400px 300px at 20% 20%, rgba(56,189,248,0.35), transparent 60%),
    radial-gradient(400px 300px at 80% 80%, rgba(167,139,250,0.30), transparent 60%);
  filter: blur(30px);
  z-index: 0;
  animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
.login-card {
  position: relative;
  z-index: 1;
  background: var(--surface-strong);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
}
.login-brand { text-align: center; margin-bottom: 28px; }
.brand-badge {
  width: 64px; height: 64px;
  border-radius: 20px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-3));
  box-shadow: var(--shadow-glow);
  margin: 0 auto 16px;
  font-size: 28px;
  color: #fff;
}
.brand-badge.sm {
  width: 40px; height: 40px;
  border-radius: 12px;
  font-size: 18px;
  margin: 0;
}
.login-brand h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.login-brand .sub {
  margin: 0;
  color: var(--text-mute);
  font-size: 13px;
}
.brand-domain {
  color: var(--primary);
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}
.login-form { display: grid; gap: 16px; }
.login-form label {
  display: grid; gap: 6px;
}
.login-form label span {
  font-size: 13px;
  color: var(--text-mute);
  font-weight: 600;
}
.login-form input {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.35);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: var(--transition);
}
.login-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.20);
  background: rgba(0,0,0,0.5);
}
/* Kill browser autofill white background */
.login-form input:-webkit-autofill,
.login-form input:-webkit-autofill:hover,
.login-form input:-webkit-autofill:focus,
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px rgba(10,15,30,0.98) inset;
  caret-color: var(--text);
  transition: background-color 5000s ease-in-out 0s;
}
.err {
  color: var(--danger);
  font-size: 13px;
  min-height: 18px;
  text-align: center;
}
.login-foot {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
}
.login-foot code {
  background: rgba(0,0,0,0.4);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--primary);
}

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(5, 9, 18, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  min-width: 0;
}
.brand-text { min-width: 0; }
.brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-sub {
  font-size: 12px;
  color: var(--text-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-actions {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--text-mute);
  white-space: nowrap;
}
.pill i { font-size: 11px; }
.pill-warn { color: var(--warn); border-color: rgba(251,191,36,0.35); background: rgba(251,191,36,0.10); }
.pill-ok   { color: var(--success); border-color: rgba(52,211,153,0.35); background: rgba(52,211,153,0.10); }
.pill-mute { color: var(--text-dim); }

/* ═══════════════════════════════════════════
   MAIN
   ═══════════════════════════════════════════ */
.app-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

/* HERO stat grid */
.hero { margin-bottom: 24px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: stretch;
}
.stat-card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 14px;
  display: flex; align-items: center; gap: 12px;
  transition: var(--transition);
  min-width: 0;
}
.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.stat-icon {
  width: 42px; height: 42px;
  min-width: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(56,189,248,0.15), rgba(56,189,248,0.05));
  color: var(--primary);
  font-size: 18px;
  border: 1px solid rgba(56,189,248,0.20);
}
.stat-icon.success {
  background: linear-gradient(135deg, rgba(52,211,153,0.15), rgba(52,211,153,0.05));
  color: var(--success);
  border-color: rgba(52,211,153,0.25);
}
.stat-body { min-width: 0; flex: 1; }
.stat-label {
  font-size: 11px;
  color: var(--text-mute);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-value.success { color: var(--success); }
.stat-actions {
  display: flex; flex-direction: column; gap: 8px;
  justify-content: center;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: rgba(255,255,255,0.10); border-color: var(--border-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-big { padding: 14px 22px; font-size: 15px; font-weight: 700; }
.btn-ghost { background: transparent; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #05121f;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #7dd3fc, var(--primary));
  color: #05121f;
  box-shadow: 0 12px 32px rgba(56,189,248,0.5);
}
.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(239,68,68,0.35);
}
.btn-danger:hover {
  background: linear-gradient(135deg, #f87171, #ef4444);
  color: #fff;
}

/* ═══════════════════════════════════════════
   PANELS (config grid)
   ═══════════════════════════════════════════ */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.panel {
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
  transition: var(--transition);
  min-width: 0;
}
.panel:hover { border-color: var(--border-hover); }
.panel-wide { grid-column: 1 / -1; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.panel-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
}
.panel-head h3 i { color: var(--primary); font-size: 15px; }
.panel-hint { font-size: 12px; color: var(--text-dim); }

/* Region chips */
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text-mute);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { border-color: var(--border-hover); color: var(--text); }
.chip.on {
  background: linear-gradient(135deg, rgba(56,189,248,0.20), rgba(56,189,248,0.05));
  border-color: rgba(56,189,248,0.55);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(56,189,248,0.25) inset;
}
.chip.on::before { content: "✓"; color: var(--primary); font-weight: 800; }

/* Fields */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.field {
  display: grid; gap: 6px;
  margin-bottom: 12px;
}
.field:last-child { margin-bottom: 0; }
.field-label {
  font-size: 12px;
  color: var(--text-mute);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.field-label i { color: var(--primary); }
.field input,
.field select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.35);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition);
}
textarea {
  font-family: 'JetBrains Mono', monospace;
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}
.field input:focus,
.field select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.20);
  background: rgba(0,0,0,0.5);
}
.hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
}
.hint b { color: var(--text-mute); }
.hint-block {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(0,0,0,0.25);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.hint-block code { color: var(--primary); background: rgba(0,0,0,0.4); padding: 1px 5px; border-radius: 3px; }
.hint-examples {
  display: grid; gap: 4px;
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.ex-bad { color: var(--danger); }
.ex-ok  { color: var(--success); }

/* Toggle switch (auto-book) */
.switch {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.20);
  cursor: pointer;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.switch:hover { border-color: var(--border-hover); }
.switch input { display: none; }
.switch-slot {
  width: 46px; height: 26px;
  min-width: 46px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  position: relative;
  transition: var(--transition);
}
.switch-knob {
  position: absolute;
  top: 3px; right: 3px;
  width: 20px; height: 20px;
  border-radius: 999px;
  background: #fff;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.switch input:checked + .switch-slot {
  background: linear-gradient(135deg, var(--success), #10b981);
}
.switch input:checked + .switch-slot .switch-knob { right: 23px; }
.switch-text { flex: 1; min-width: 0; }
.switch-title { font-weight: 700; font-size: 14px; }
.switch-title i { color: var(--primary); }
.switch-sub { font-size: 12px; color: var(--text-mute); }

/* Save bar */
.save-bar {
  display: flex; align-items: center; gap: 14px;
  margin: 20px 0 24px;
  position: sticky;
  bottom: 12px;
  z-index: 20;
  padding: 12px 16px;
  background: var(--surface-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.save-status { color: var(--success); font-size: 13px; font-weight: 600; }

/* Token box */
.token-box {
  display: grid; gap: 6px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.30);
  margin-bottom: 10px;
}
.token-mask {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--primary);
  word-break: break-all;
}
.token-meta { font-size: 12px; color: var(--text-mute); }

/* Event log */
.panel-log { grid-column: 1 / -1; }
.event-log, .booking-log {
  max-height: 320px;
  overflow-y: auto;
  padding: 12px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  line-height: 1.75;
}
.log-line {
  display: grid;
  grid-template-columns: 76px 90px 1fr;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 6px;
  align-items: baseline;
}
.log-line:hover { background: rgba(255,255,255,0.03); }
.log-time { color: var(--text-dim); font-size: 11px; }
.log-tag {
  font-size: 10px; font-weight: 800;
  padding: 2px 6px; border-radius: 4px;
  text-align: center;
  text-transform: uppercase;
}
.tag-ok    { background: rgba(52,211,153,0.15); color: var(--success); }
.tag-err   { background: rgba(248,113,113,0.15); color: var(--danger); }
.tag-warn  { background: rgba(251,191,36,0.15); color: var(--warn); }
.tag-info  { background: rgba(56,189,248,0.15); color: var(--primary); }
.tag-book  { background: rgba(167,139,250,0.20); color: var(--purple); }
.log-msg { color: var(--text); word-break: break-word; }

/* Booking log rows */
.booking-row {
  display: grid;
  grid-template-columns: 90px 1fr auto auto;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  margin-bottom: 6px;
  font-size: 13px;
  align-items: center;
}
.booking-row .b-time { color: var(--text-dim); font-size: 12px; }
.booking-row .b-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.booking-row .b-price { color: var(--success); font-weight: 700; font-family: 'JetBrains Mono', monospace; }
.booking-row .b-status { font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.b-status.ok  { background: rgba(52,211,153,0.15); color: var(--success); }
.b-status.err { background: rgba(248,113,113,0.15); color: var(--danger); }

/* ═══════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════ */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: grid; place-items: center;
  padding: 20px;
  animation: fadeIn 200ms ease;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.modal-shell { width: 100%; max-width: 560px; }
.modal-card {
  position: relative;
  background: var(--surface-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-md);
  max-height: 85vh;
  overflow-y: auto;
}
.modal-card h3 {
  margin: 0 0 20px;
  font-size: 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.modal-card h3 i { color: var(--primary); }
.modal-close {
  position: absolute;
  top: 12px; left: 12px;
  width: 32px; height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.4);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}
.modal-close:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.steps {
  padding: 0; margin: 0 0 20px;
  list-style: none;
  display: grid; gap: 12px;
}
.steps li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.step-num {
  width: 26px; height: 26px;
  min-width: 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-3));
  color: #05121f;
  font-weight: 800;
  display: grid; place-items: center;
  font-size: 13px;
}
.step-body { font-size: 14px; }
.step-body code { background: rgba(0,0,0,0.4); padding: 2px 6px; border-radius: 4px; color: var(--primary); font-size: 12px; }
.bm-drag {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 16px;
  background: rgba(0,0,0,0.30);
  border: 1px dashed rgba(255,255,255,0.20);
  border-radius: var(--radius-sm);
}
.bm-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a1a1a;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(251,191,36,0.35);
  cursor: grab;
}
.bm-btn:active { cursor: grabbing; }
.bm-manual {
  margin-top: 18px;
  padding: 14px;
  background: rgba(0,0,0,0.25);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.bm-manual summary {
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 10px;
}
.bm-manual textarea { margin-top: 10px; }
.bm-manual .btn { margin-top: 10px; }

/* ═══════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 20px;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: 220ms cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.hidden { display: none; }
.toast.ok  { border-color: rgba(52,211,153,0.5); color: var(--success); }
.toast.err { border-color: rgba(248,113,113,0.5); color: var(--danger); }

/* ═══════════════════════════════════════════
   MOBILE (≤ 720px)
   ═══════════════════════════════════════════ */
@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .app-main { padding: 16px 12px 90px; }

  /* Nav */
  .nav-inner { padding: 10px 12px; gap: 8px; }
  .brand-name { font-size: 14px; }
  .brand-sub { font-size: 11px; }
  .hide-mobile { display: none; }
  .nav-actions .btn { padding: 8px 10px; }
  .pill { padding: 4px 8px; font-size: 11px; }

  /* Hero — 2 col grid on mobile */
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .stat-actions {
    grid-column: 1 / -1;
    flex-direction: row;
  }
  .stat-actions .btn { flex: 1; justify-content: center; }
  .stat-card { padding: 12px; }
  .stat-icon { width: 38px; height: 38px; min-width: 38px; font-size: 16px; }
  .stat-value { font-size: 17px; }
  .stat-label { font-size: 10px; }

  /* Grid → single column */
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .panel { padding: 14px; }
  .form-row { grid-template-columns: 1fr; }

  /* Save bar full width */
  .save-bar { flex-direction: column; align-items: stretch; padding: 12px; }
  .save-bar .btn { width: 100%; justify-content: center; }
  .save-status { text-align: center; }

  /* Bigger tap targets */
  .chip { padding: 10px 14px; font-size: 14px; }
  .btn { padding: 12px 16px; font-size: 14px; }
  .btn-big { padding: 14px 18px; }

  /* Log rows stack */
  .log-line {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 6px 8px;
  }
  .log-time, .log-tag { display: inline-block; margin-inline-end: 6px; }
  .booking-row {
    grid-template-columns: 1fr auto;
    gap: 4px 10px;
  }
  .booking-row .b-time { grid-column: 1 / -1; }
  .booking-row .b-name { grid-column: 1 / -1; }

  /* Modal */
  .modal { padding: 12px; }
  .modal-card { padding: 20px 16px; }
  .modal-card h3 { font-size: 16px; }

  /* Login */
  .login-card { padding: 24px 18px; }
  .login-brand h1 { font-size: 19px; }
}

/* Extra small (≤ 380px) */
@media (max-width: 380px) {
  .hero-stats { grid-template-columns: 1fr; }
  .stat-actions { flex-direction: column; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
