/* The Arena: shared tokens and components (public site + member/staff app) */
:root {
  --bg: #0b0b0c;
  --bg-2: #111113;
  --surface: #17171a;
  --surface-2: #202024;
  --line: rgba(236, 232, 225, 0.1);
  --line-2: rgba(236, 232, 225, 0.2);
  --text: #ece8e1;
  --text-2: #bdb8b0;
  --muted: #8a857e;
  --bone: #ece8e1;
  --ink: #0b0b0c;
  --red: #c8352f;
  --red-hi: #e0463f;
  --red-lo: #8f2622;
  --red-tint: rgba(200, 53, 47, 0.14);
  --green: #3fb27f;
  --green-tint: rgba(63, 178, 127, 0.14);
  --amber: #e5a53a;
  --amber-tint: rgba(229, 165, 58, 0.15);
  --blue: #5b9be6;
  --blue-tint: rgba(91, 155, 230, 0.15);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Archivo', 'Arial Narrow', Impact, sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --cat-strength: #e0463f;
  --cat-conditioning: #e5a53a;
  --cat-pilates: #d9b29c;
  --cat-mobility: #5fbf93;
  --cat-combat: #b06be0;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.02; margin: 0; letter-spacing: -0.01em; text-transform: uppercase; font-variation-settings: 'wdth' 100; }
em.serif, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; font-variation-settings: normal; }
p { margin: 0; }
.muted { color: var(--muted); }
.hidden, [hidden] { display: none !important; }
.ic { width: 18px; height: 18px; fill: currentColor; flex: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--font); letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-2); margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red-hi); }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 2px; border-radius: 6px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s, color 0.15s; white-space: nowrap; line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hi); }
.btn-light { background: var(--bone); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-ghost { border-color: var(--line-2); background: transparent; }
.btn-ghost:hover { border-color: var(--text-2); background: rgba(255, 255, 255, 0.04); }
.btn-soft { background: var(--surface-2); }
.btn-soft:hover { background: var(--line-2); }
.btn-green { background: #1f8f5c; color: #fff; }
.btn-green:hover { background: #25a56b; }
.btn-danger { background: transparent; border-color: rgba(217, 68, 63, 0.5); color: #ff8a85; }
.btn-danger:hover { background: var(--red-tint); }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-xs { padding: 5px 10px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn .ic { width: 16px; height: 16px; }

/* cards & forms */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { font-size: 14px; font-weight: 500; color: var(--text-2); }
input, select, textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); border-radius: var(--radius-sm);
  padding: 11px 12px; font: 400 16px/1.3 var(--font); transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red-hi); box-shadow: 0 0 0 3px var(--red-tint); }
textarea { resize: vertical; }
input[type='checkbox'] { width: 18px; height: 18px; accent-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 1.2em; font-size: 14px; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: #ff8a85; }

.chip {
  border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: 6px 14px; font-size: 14px;
  cursor: pointer; color: var(--text-2); white-space: nowrap;
}
.chip:hover { border-color: var(--text-2); color: var(--text); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-active { background: var(--green-tint); color: var(--green); }
.b-expiring { background: var(--amber-tint); color: var(--amber); }
.b-expired, .b-cancelled { background: var(--red-tint); color: #ff8a85; }
.b-frozen { background: var(--blue-tint); color: var(--blue); }
.b-pending { background: var(--amber-tint); color: var(--amber); }
.b-none { background: var(--surface-2); color: var(--muted); }

.cat-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.cat-strength { --c: var(--cat-strength); }
.cat-conditioning { --c: var(--cat-conditioning); }
.cat-combat { --c: var(--cat-combat); }
.cat-mobility { --c: var(--cat-mobility); }
.cat-pilates { --c: var(--cat-pilates); }
.cat-dot { background: var(--c, var(--muted)); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--text); color: var(--bg);
  padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 15px; opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s; z-index: 200; max-width: calc(100vw - 32px); box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #ff8a85; color: #2a0b0a; }
