:root {
  --bg: #0c0a14;
  --bg-2: #14111f;
  --surface: #1b1729;
  --surface-2: #241f36;
  --line: #2f2944;
  --text: #f4f1fb;
  --muted: #a39cba;
  --faint: #6f6888;
  --pink: #ff4f9a;
  --orange: #ffa94d;
  --teal: #2fd6c9;
  --green: #3ddc84;
  --amber: #ffc24b;
  --red: #ff5d6c;
  --grad: linear-gradient(120deg, var(--pink), var(--orange));
  --radius: 14px;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--teal); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  padding: 10px 16px; border-radius: 10px; cursor: pointer; font-weight: 600;
  text-decoration: none; transition: transform .08s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { border-color: #4a4266; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--grad); border: 0; color: #1a0f14; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-wa { background: #25d366; border: 0; color: #062611; }
.btn-ghost { background: transparent; }
.btn-danger { background: transparent; border-color: #5a2a33; color: var(--red); }
.btn-ok { background: var(--green); border: 0; color: #06200f; }
.btn-sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }

.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 500; }
.input, select.input, textarea.input {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 12px; outline: none;
}
.input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 79, 154, .18); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted);
}
.pill.pending { background: rgba(255, 194, 75, .14); color: var(--amber); }
.pill.confirmed { background: rgba(61, 220, 132, .14); color: var(--green); }
.pill.cancelled, .pill.expired { background: rgba(255, 93, 108, .12); color: var(--red); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--surface-2); border: 1px solid var(--line); padding: 12px 18px; border-radius: 12px;
  opacity: 0; pointer-events: none; transition: all .2s; z-index: 100; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { border-color: var(--red); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
