:root {
  /* Bold Athletic red/black/white brand -- single dark theme, no
     light-mode toggle exists for the main app (see CLAUDE.md's rebrand
     Roadmap entry for the design rationale). */
  --bg: #0a0a0a;
  --surface: #161616;
  --border: #2a2a2a;
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --primary: #e11d2e;
  --primary-hover: #ff3b4d;
  --primary-2: #ff6b76;
  --accent: #ffffff;
  --accent-hover: #d9d9d9;
  --danger: #b91c1c;
  --danger-bg: #2a1010;
  --warning: #d9a520;
  --warning-bg: #2a2210;
  --success: #2fa563;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 24px rgba(225, 29, 46, 0.25), 0 2px 8px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1100px 420px at 12% -8%, rgba(225, 29, 46, 0.08), transparent),
    radial-gradient(900px 420px at 100% 0%, rgba(255, 255, 255, 0.08), transparent),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(185, 28, 28, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(185, 28, 28, 0); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

/* The POS checkout screen needs more room for its two-column layout
   (product grid + sticky cart) than the standard single-column pages. */
body.checkout-body .page {
  max-width: 1280px;
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px 28px;
  margin: 0 -20px 32px;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  border-radius: 0 0 18px 18px;
  box-shadow: 0 10px 30px rgba(225, 29, 46, 0.22);
}

.topbar .brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo { height: 56px; max-width: 224px; object-fit: contain; background: rgba(15, 23, 41, 0.88); border-radius: 8px; padding: 5px 10px; }

.topbar .who {
  display: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.topbar .btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
}
.topbar .btn-secondary:hover { background: rgba(255, 255, 255, 0.28); }

.topbar .btn:not(.btn-secondary) {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 3px 10px rgba(15, 23, 41, 0.18);
}
.topbar .btn:not(.btn-secondary):hover {
  background: #fff;
  filter: none;
  box-shadow: 0 6px 16px rgba(15, 23, 41, 0.22);
}

/* Dashboard nav grid */
.dash-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  padding: 16px;
}
.dash-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 18px 8px;
  border-radius: 10px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.82rem;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dash-tile:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(225, 29, 46, 0.10);
  text-decoration: none;
  color: var(--text);
}
.dash-tile--primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.dash-tile--primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 4px 14px rgba(225, 29, 46, 0.22);
  color: #fff;
}
.dash-tile-icon { font-size: 1.4rem; line-height: 1; }
.dash-tile-label { line-height: 1.3; }

/* Typography */
h1 { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 16px; }
h2 { font-size: 1.2rem; font-weight: 700; margin: 0 0 12px; }
h3 { font-size: 1rem; font-weight: 700; margin: 16px 0 8px; color: var(--muted); }
p { margin: 0 0 10px; }

a { color: var(--primary); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 26px;
  margin-bottom: 20px;
  animation: fadeSlideUp 0.4s ease both;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:nth-of-type(1) { animation-delay: 0s; }
.card:nth-of-type(2) { animation-delay: 0.06s; }
.card:nth-of-type(3) { animation-delay: 0.12s; }
.card:nth-of-type(4) { animation-delay: 0.18s; }
.card:nth-of-type(5) { animation-delay: 0.24s; }
.card:nth-of-type(n+6) { animation-delay: 0.3s; }
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

/* Buttons */
button, .btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(225, 29, 46, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
button:hover, .btn:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(225, 29, 46, 0.32);
  text-decoration: none;
}
button:active, .btn:active { transform: translateY(0); }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn-secondary:hover {
  background: var(--bg);
  box-shadow: 0 4px 12px rgba(15, 23, 41, 0.10);
}

/* Forms */
form { margin: 0; }
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}
input[type="text"], input[type="password"], input[type="date"], textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input[type="text"]:focus, input[type="password"]:focus, input[type="date"]:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.15);
}
textarea { resize: vertical; }
.field { margin-bottom: 16px; }
.inline-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.inline-form .field { margin-bottom: 0; }
.inline-form label { margin-bottom: 4px; }

.discipline-checkbox-group { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.discipline-checkbox { display: flex; align-items: center; gap: 6px; font-weight: 400; }
.edit-plan-row td { background: var(--bg); padding-top: 14px; padding-bottom: 14px; }

/* Class-attendance kiosk — sized for a tablet/touchscreen in a lobby */
.kiosk-toggle-btn { padding: 12px 22px; font-size: 0.95rem; }
.kiosk-scan-input { font-size: 1.3rem; padding: 16px 18px; text-align: center; }
.kiosk-occurrence-card { text-align: center; }
.kiosk-occurrence-name { font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; }
.kiosk-occurrence-meta { color: var(--muted); font-size: 1rem; }
.kiosk-occurrence-room { margin-top: 10px; font-weight: 700; }
.kiosk-occurrence-room.kiosk-room-full { color: var(--danger); }
.kiosk-occurrence-picklist { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 14px; }
.kiosk-occurrence-picklist button { padding: 14px 24px; font-size: 1.05rem; }
.kiosk-schedule-toggle { text-align: center; margin: 10px 0; }
#kiosk-schedule-picker { text-align: center; }
.kiosk-schedule-btn { display: block; width: 100%; padding: 14px 20px; font-size: 1.05rem; margin-bottom: 10px; }
.kiosk-schedule-btn:last-child { margin-bottom: 0; }

/* Auth screen */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-card {
  width: 100%;
  max-width: 380px;
  border-top: 4px solid var(--primary);
  box-shadow: var(--shadow-hover);
}
.auth-card h1 { text-align: center; }

.onboarding-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  margin: 4px 0 20px;
}
.onboarding-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  width: 72px;
}
.onboarding-step .step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
}
.onboarding-step.active { color: var(--primary); }
.onboarding-step.active .step-dot { background: var(--primary); color: #fff; }
.onboarding-step.done .step-dot { background: var(--success); color: #fff; }
.onboarding-step-divider { width: 24px; height: 1.5px; background: var(--border); margin-top: 12px; flex-shrink: 0; }

.getting-started-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.getting-started-list { list-style: none; margin: 14px 0 2px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.getting-started-item { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.getting-started-item .gs-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}
.getting-started-item.done { color: var(--muted); font-weight: 400; text-decoration: line-through; }
.getting-started-item.done .gs-dot { background: var(--success); color: #fff; }

.getting-started-welcome {
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(225, 29, 46, 0.06);
  border: 1px solid rgba(225, 29, 46, 0.16);
}
.getting-started-welcome p { margin: 0 0 4px; }
.getting-started-welcome-actions { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.getting-started-welcome-actions a { font-size: 0.85rem; color: var(--muted); }
.gs-choice-selected { background: var(--success); color: #fff; border-color: var(--success); }

@keyframes heroPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}
@keyframes heroShimmer {
  to { background-position: 200% center; }
}
.hero-heading {
  display: inline-block;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-2), var(--primary));
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
  animation: heroShimmer 3.5s linear infinite, heroPulse 1.6s ease-in-out infinite;
}

/* On the blue gradient topbar, a blue-toned shimmer would blend in
   (the same contrast issue already fixed for .topbar .btn) - use a
   white-based shimmer there instead so it still pops. */
.topbar .hero-heading {
  background: linear-gradient(90deg, #ffffff, #ffb3b8, #ffffff);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
}

/* Alerts / banners */
.alert {
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.alert-error { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid #8a6416; }
.alert-success { background: rgba(47, 165, 99, 0.08); color: var(--success); border: 1px solid var(--success); }

.card-element-mount {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.alert p:last-child { margin-bottom: 0; }
.alert ul { margin: 8px 0 0; padding-left: 20px; }
.alert li { margin-bottom: 6px; }
.alert button { margin-top: 4px; }

/* Tables */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background 0.15s ease; }
tbody tr:hover { background: rgba(225, 29, 46, 0.05); }

/* Generic lists (also used by JS-injected offline/pending content) */
.card ul { margin: 0; padding-left: 20px; }
.card li { margin-bottom: 6px; }

/* Badges */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-low { background: var(--danger-bg); color: var(--danger); animation: pulseGlow 2s ease-in-out infinite; }
.badge-delinquent { background: var(--warning-bg); color: var(--warning); }
.badge-success { background: rgba(47, 165, 99, 0.12); color: var(--success); }
.badge-neutral { background: rgba(100, 116, 139, 0.12); color: var(--muted); }

/* Product/variant listing */
.product-block { margin-bottom: 28px; }
.product-block:last-child { margin-bottom: 0; }
.product-block-body { display: flex; gap: 20px; align-items: flex-start; }
.product-thumb { width: 180px; height: 180px; object-fit: contain; border-radius: 10px; flex-shrink: 0; background: var(--bg); border: 1px solid var(--border); padding: 8px; }
.product-block-main { flex: 1; min-width: 0; }
@media (max-width: 640px) {
  .product-block-body { flex-direction: column; }
  .product-thumb { width: 100%; height: 220px; }
}
.product-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.product-title .price { color: var(--primary); font-weight: 700; }

.variant-qr img { border-radius: 8px; border: 1px solid var(--border); }

.stat-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.stat {
  min-width: 140px;
  background: linear-gradient(160deg, rgba(225, 29, 46, 0.07), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(225, 29, 46, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
}
.stat .value {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(120deg, var(--primary), var(--accent-hover));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
}
.stat .label { font-size: 0.78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }

.muted { color: var(--muted); font-size: 0.88rem; }

/* POS checkout screen */
.pos-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: start;
}
.pos-main { min-width: 0; }
.pos-cart-sidebar { position: sticky; top: 100px; }

@media (max-width: 960px) {
  .pos-layout { display: block; }
  .pos-cart-sidebar { position: static; }
}

.pos-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.pos-header h2 { margin: 0; }
.scan-btn { font-size: 0.85rem; padding: 9px 16px; }

.pos-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}
.pos-product-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--bg);
}
.pos-product-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
  font-weight: 700;
}
.pos-product-price { color: var(--primary); white-space: nowrap; }
.pos-product-title-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.pos-product-title-row .pos-product-head { margin-bottom: 0; flex: 1; }
.pos-product-thumb { width: 56px; height: 56px; object-fit: contain; border-radius: 6px; flex-shrink: 0; background: var(--surface); border: 1px solid var(--border); padding: 3px; }

.pos-variant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.pos-variant-row:first-of-type { border-top: none; }
.pos-variant-label { display: flex; flex-direction: column; gap: 2px; font-size: 0.88rem; min-width: 110px; }
.pos-variant-label > span:first-child { font-weight: 600; }
.pos-variant-meta { color: var(--muted); font-size: 0.78rem; display: flex; align-items: center; gap: 6px; }

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}
.stepper-btn {
  background: var(--surface);
  color: var(--text);
  border: none;
  box-shadow: none;
  padding: 6px 12px;
  font-weight: 800;
  border-radius: 0;
  cursor: pointer;
}
.stepper-btn:hover { background: var(--bg); transform: none; box-shadow: none; }
.qty-input {
  width: 38px;
  text-align: center;
  border: none;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  padding: 6px 4px;
  font: inherit;
  font-weight: 700;
  -moz-appearance: textfield;
}
.qty-input:focus { outline: none; }

.pos-add-btn { padding: 8px 16px; font-size: 0.85rem; }

.pos-variant-selectors { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 0; }
.attr-chip-group { display: flex; flex-direction: column; gap: 5px; }
.attr-chip-label { font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.attr-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.attr-chip { padding: 5px 14px; border: 1.5px solid var(--border); border-radius: 20px; background: var(--surface); color: var(--text); font: inherit; font-size: 0.84rem; cursor: pointer; transition: border-color 0.12s, background 0.12s, color 0.12s; line-height: 1.4; }
.attr-chip:hover:not(.unavailable) { border-color: var(--primary); }
.attr-chip.selected { border-color: var(--primary); background: var(--primary); color: #fff; }
.attr-chip.unavailable { opacity: 0.32; cursor: default; text-decoration: line-through; }
.pos-add-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--border); margin-top: 10px; }
.pos-variant-info { font-size: 0.82rem; flex: 1; min-width: 120px; }

@keyframes addFlash {
  0% { background: rgba(47, 165, 99, 0.14); }
  100% { background: var(--bg); }
}
.pos-product-card.just-added { animation: addFlash 0.7s ease; }

/* Payment method segmented control */
.payment-toggle {
  display: inline-flex;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.payment-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.payment-toggle label {
  margin: 0;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  background: var(--surface);
  transition: background 0.15s ease, color 0.15s ease;
}
.payment-toggle input:checked + label {
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
}
.payment-toggle input:focus-visible + label { box-shadow: inset 0 0 0 2px var(--primary); }

/* Cart sidebar item lists (Selling / Returning) */
.cart-item-list { list-style: none; margin: 0 0 4px; padding: 0; }
.cart-item-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.cart-item-list li:last-child { border-bottom: none; }
.cart-item-name { font-weight: 600; }
.cart-item-meta { color: var(--muted); font-size: 0.78rem; }
.cart-item-remove { padding: 4px 9px; font-size: 0.72rem; margin-top: 4px; }

/* Check-in / roster screen */
.roster-list { display: flex; flex-direction: column; gap: 10px; }
.roster-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  flex-wrap: wrap;
  transition: box-shadow 0.15s ease;
}
.roster-row:hover { box-shadow: 0 4px 12px rgba(15, 23, 41, 0.08); }

.roster-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.02em;
  overflow: hidden;
}
.roster-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-0 { background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.avatar-1 { background: linear-gradient(135deg, var(--accent), var(--accent-hover)); }
.avatar-2 { background: linear-gradient(135deg, #d43d3d, #ff8a8a); }
.avatar-3 { background: linear-gradient(135deg, var(--success), #34c281); }
.avatar-4 { background: linear-gradient(135deg, var(--warning), #e0a530); }
.avatar-5 { background: linear-gradient(135deg, #7c3aed, #a78bfa); }

.roster-info { flex: 1; min-width: 160px; }
.roster-name { font-weight: 700; font-size: 0.95rem; }
.roster-meta { color: var(--muted); font-size: 0.8rem; margin-top: 2px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.roster-action { padding: 9px 18px; font-size: 0.88rem; white-space: nowrap; }
.roster-time { color: var(--muted); font-weight: 700; font-size: 0.85rem; white-space: nowrap; }

.badge-trial { background: rgba(255, 255, 255, 0.12); color: var(--accent-hover); }
.badge-method { background: rgba(225, 29, 46, 0.1); color: var(--primary); text-transform: capitalize; }

/* Class schedule agenda */
.agenda-day-header {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 18px 0 2px;
}
.agenda-day-header:first-child { margin-top: 0; }

.agenda-row { gap: 16px; }
.agenda-time {
  min-width: 96px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  flex-shrink: 0;
}
.agenda-time-end { display: block; font-weight: 500; color: var(--muted); font-size: 0.78rem; }

.roster-avatar.avatar-mini {
  width: 20px;
  height: 20px;
  font-size: 0.62rem;
  display: inline-flex;
  vertical-align: middle;
  margin-right: 6px;
}

.capacity-pill {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill-open { background: rgba(47, 165, 99, 0.1); color: var(--success); }
.pill-almost { background: var(--warning-bg); color: var(--warning); }
.pill-full { background: var(--danger-bg); color: var(--danger); }

/* Session lock screen */
.lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(255, 107, 118, 0.35), transparent),
    radial-gradient(1000px 600px at 85% 90%, rgba(255, 255, 255, 0.3), transparent),
    linear-gradient(160deg, #0a0a0a, #1c1010 60%, #0a0a0a);
}
.lock-overlay-content {
  width: 100%;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  padding: 36px 30px;
  text-align: center;
  animation: fadeSlideUp 0.3s ease both;
}
.lock-overlay-content .lock-icon { font-size: 2.4rem; margin-bottom: 8px; }
.lock-overlay-content h2 { margin-bottom: 4px; }
.lock-overlay-content .muted { margin-bottom: 18px; }
.lock-overlay-content #unlock-password { margin-bottom: 12px; text-align: center; }
.lock-overlay-content #unlock-btn { margin-bottom: 10px; }
.lock-overlay-content .alert { text-align: left; }

/* Waiver / contract signing */
.lawyer-notice {
  background: var(--warning-bg);
  border: 1px solid #8a6416;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.86rem;
  color: var(--warning);
  margin-bottom: 18px;
}
.lawyer-notice strong { display: block; margin-bottom: 4px; }

.section-heading { margin: 28px 0 14px; }

.agreement-text-box {
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--bg);
  font-size: 0.88rem;
  white-space: pre-wrap;
  margin-bottom: 16px;
}

.signature-pad-wrap {
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  background: var(--surface);
  margin-bottom: 10px;
}
.signature-pad-canvas {
  width: 100%;
  height: 160px;
  display: block;
  touch-action: none;
  cursor: crosshair;
  border-radius: 10px;
}
.signature-pad-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.signature-pad-hint { color: var(--muted); font-size: 0.78rem; }

.cart-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

/* Public landing/storefront page */
@keyframes waveDrift {
  0%   { background-position: 10% 20%, 90% 80%; }
  25%  { background-position: 60% 55%, 40% 45%; }
  50%  { background-position: 90% 80%, 10% 20%; }
  75%  { background-position: 40% 45%, 60% 55%; }
  100% { background-position: 10% 20%, 90% 80%; }
}
body.storefront-body {
  background-color: var(--bg);
  background-image:
    radial-gradient(rgba(225, 29, 46, 0.32), transparent 68%),
    radial-gradient(rgba(225, 29, 46, 0.24), transparent 68%);
  background-size: 170% 170%, 190% 190%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  animation: waveDrift 22s ease-in-out infinite;
}

.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
}
.landing-header .brand { font-size: 1.3rem; }

.staff-login-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.staff-login-link:hover {
  color: var(--text);
  background: rgba(225, 29, 46, 0.06);
  border-color: rgba(225, 29, 46, 0.25);
  text-decoration: none;
}

.hero {
  text-align: center;
  padding: 48px 12px 60px;
}
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 460px;
  margin: 0 auto 28px;
}
.hero .btn {
  font-size: 1rem;
  padding: 14px 34px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.product-card {
  padding: 0;
  overflow: hidden;
  text-align: center;
}
.product-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}
.product-card h3 {
  margin: 14px 0 4px;
  font-size: 1rem;
  color: var(--text);
}
.product-card .price {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.product-card .add-to-cart-btn {
  width: calc(100% - 32px);
  margin: 0 16px 16px;
}

.landing-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-panel {
  position: fixed;
  top: 84px;
  right: 20px;
  width: 300px;
  max-width: calc(100vw - 40px);
  z-index: 20;
  animation: fadeSlideUp 0.2s ease both;
}
.cart-panel ul { list-style: none; margin: 0; padding: 0; }
.cart-panel .cart-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.88rem;
}
.cart-remove-btn { padding: 4px 10px; font-size: 0.75rem; }
.cart-subtotal { font-weight: 800; margin: 12px 0; }

.checkout-summary ul { list-style: none; margin: 0 0 12px; padding: 0; }
.checkout-summary li { margin-bottom: 6px; font-size: 0.92rem; }
.checkout-line { display: flex; justify-content: space-between; margin: 0 0 6px; font-size: 0.95rem; }
.checkout-total { font-weight: 800; font-size: 1.15rem; color: var(--primary); border-top: 1px solid var(--border); padding-top: 10px; margin-top: 4px; }
.fulfillment-choice { display: flex; gap: 24px; flex-wrap: wrap; font-weight: 600; }
.fulfillment-choice label { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text); margin-bottom: 0; }
.checkout-disclaimer { text-align: center; margin-top: 12px; margin-bottom: 0; }
.card-details-row { display: flex; gap: 16px; }
.card-details-row .field { flex: 1; }
.card-demo-note { color: var(--danger); font-weight: 600; margin-top: -4px; }
#card-number, #card-expiry, #card-cvc { font-family: "Courier New", monospace; letter-spacing: 0.03em; }

.card-details-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.card-details-heading h3 { margin: 0; }
.card-brand-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
.card-icon-visa { background: #1a1f71; font-style: italic; }
.card-icon-discover { background: #ff6000; }
.card-icon-amex { background: #2e77bc; }
.card-icon-mastercard {
  background: #fff;
  width: 34px;
  padding: 0;
}
.mc-circle { width: 15px; height: 15px; border-radius: 50%; display: inline-block; }
.mc-circle-red { background: #eb001b; margin-right: -6px; z-index: 1; }
.mc-circle-yellow { background: #f79e1b; opacity: 0.85; }
#order-confirmation h2 { color: var(--primary); }
#order-confirmation a.btn { display: inline-block; margin-top: 10px; }

.back-to-shop { text-align: center; margin-top: 18px; }
.back-to-shop a {
  display: inline-block;
  width: 100%;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: rgba(225, 29, 46, 0.06);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.back-to-shop a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(225, 29, 46, 0.25);
  text-decoration: none;
}

.signup-nudge { text-align: center; margin-top: 10px; font-size: 0.9rem; color: var(--muted); }
.signup-nudge a { font-weight: 700; }

/* Public marketing homepage */
body.marketing-body {
  background-color: var(--bg);
  background-image:
    radial-gradient(rgba(225, 29, 46, 0.16), transparent 68%),
    radial-gradient(rgba(255, 255, 255, 0.14), transparent 68%);
  background-size: 170% 170%, 190% 190%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  animation: waveDrift 22s ease-in-out infinite;
}

.marketing-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.feature-card { text-align: left; }
.feature-card .feature-icon { font-size: 1.6rem; margin-bottom: 10px; display: block; }
.feature-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.pricing-card {
  max-width: 380px;
  margin: 0 auto 48px;
  text-align: center;
}
.pricing-card .pricing-amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  margin: 8px 0 4px;
}
.pricing-card .pricing-amount span { font-size: 1rem; color: var(--muted); font-weight: 600; }
.pricing-card ul { list-style: none; padding: 0; margin: 18px 0; text-align: left; }
.pricing-card ul li { padding: 6px 0; color: var(--text); }
.pricing-card ul li::before { content: "✓ "; color: var(--success); font-weight: 800; }

.marketing-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 24px 0 8px;
}

.legal-card { line-height: 1.7; }
.legal-card h1 { margin-bottom: 4px; }
.legal-card > p.muted:first-of-type { margin-bottom: 0; }
.legal-card h2 {
  margin: 32px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 16px;
}
.legal-card h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.legal-card p { margin: 0 0 12px; }
.legal-card ul { margin: 0 0 12px; }
.legal-card li { line-height: 1.6; }

.legal-toc {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0 8px;
}
.legal-toc-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 10px;
}
.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 24px;
}
.legal-toc li { margin-bottom: 6px; break-inside: avoid; }
.legal-toc a { color: var(--text); text-decoration: none; font-size: 0.92rem; }
.legal-toc a:hover { color: var(--primary); text-decoration: underline; }

.legal-callout {
  background: rgba(225, 29, 46, 0.05);
  border: 1px solid rgba(225, 29, 46, 0.18);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 0 0 12px;
}
.legal-callout p:last-child, .legal-callout ul:last-child { margin-bottom: 0; }

.legal-back-to-top {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
}
.legal-back-to-top:hover { color: var(--primary); }

@media (max-width: 600px) {
  .legal-toc ol { columns: 1; }
}

.mini-stat {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(225, 29, 46, 0.08);
  color: var(--primary);
  margin: 2px 4px 2px 0;
}
.mini-stat-warn { background: var(--danger-bg); color: var(--danger); }
.mini-stat-muted { background: rgba(100, 116, 139, 0.1); color: var(--muted); }

.segment-card { border-left: 3px solid var(--border); }
.segment-card.segment-retention { border-left-color: var(--primary); }
.segment-card.segment-reacquisition { border-left-color: var(--accent); }
.segment-card.segment-acquisition { border-left-color: var(--success); }
.segment-card h2 { display: flex; align-items: center; gap: 8px; }

/* ---------- Class-booking calendar (my-gym-page) ---------- */
:root {
  --class-color-0: #2f5aff;
  --class-color-1: #06b6d4;
  --class-color-2: #d43d3d;
  --class-color-3: #1a7f4b;
  --class-color-4: #e0a530;
  --class-color-5: #7c3aed;
  --class-color-6: #db2777;
  --class-color-7: #0891a8;
  --class-color-8: #ea580c;
  --class-color-9: #4338ca;
  --class-color-10: #059669;
  --class-color-11: #be185d;
}

.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.cal-view-toggle { display: flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.cal-view-btn {
  background: var(--surface);
  border: none;
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.cal-view-btn + .cal-view-btn { border-left: 1px solid var(--border); }
.cal-view-btn.active { background: var(--primary); color: #fff; }
.cal-nav { display: flex; align-items: center; gap: 10px; }
.cal-nav button { padding: 6px 12px; line-height: 1; font-weight: 700; }
.cal-range-label { font-weight: 700; min-width: 160px; text-align: center; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 18px;
}
.cal-weekday {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 4px;
}
.cal-day {
  position: relative;
  min-height: 64px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  padding: 6px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.cal-day:hover:not(.cal-day-empty) { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.cal-day-num { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.cal-day.cal-has-color .cal-day-num { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.35); }
.cal-day-dot-row { display: flex; gap: 3px; flex-wrap: wrap; }
.cal-day-dot { width: 6px; height: 6px; border-radius: 50%; }
.cal-day.cal-today { border-color: var(--primary); border-width: 2px; }
.cal-day.cal-selected { outline: 3px solid var(--primary); outline-offset: 1px; }
.cal-day.cal-other-month { opacity: 0.4; }
.cal-day.cal-day-empty { cursor: default; opacity: 0.35; }
.cal-day.cal-day-empty:hover { box-shadow: none; transform: none; }

.cal-day-panel { border-top: 1px solid var(--border); padding-top: 16px; }
.cal-day-panel-title { font-weight: 800; margin-bottom: 12px; }
.cal-class-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 8px;
}
.cal-class-swatch { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.cal-class-info { flex: 1; min-width: 0; }
.cal-class-name { font-weight: 700; }
.cal-class-time { font-size: 0.82rem; color: var(--muted); }
.cal-declined-note { font-size: 0.78rem; margin-top: 2px; }
.cal-class-chip.cal-booked { background: rgba(47, 165, 99, 0.06); border-color: var(--success); }

/* Connectivity indicator (static/js/offline-indicator.js) — persistent,
   appears the instant the browser fires 'offline', independent of
   whether anything is queued yet. z-index below .lock-overlay's 1000 so
   a session lock always takes visual priority over this. */
.connection-status {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  max-width: calc(100% - 32px);
  padding: 10px 18px;
  border-radius: var(--radius);
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid #8a6416;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.connection-status.online-confirm {
  background: rgba(47, 165, 99, 0.08);
  color: var(--success);
  border-color: var(--success);
}

/* Interactive-demo navbar (templates/base.html) -- shown only when
   session_is_demo is true. Sticky so a visitor scrolled deep into the
   calendar/dashboard can still switch roles or exit without scrolling
   back up. z-index below .lock-overlay's 1000 and .connection-status's
   999, same priority ordering as the rest of this file's fixed chrome. */
.demo-navbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 998;
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  font-weight: 600;
}
.demo-navbar-msg { white-space: nowrap; }
/* Deliberately nowrap + horizontal scroll, not flex-wrap: wrap -- wrapping
   a 4-button flex group onto a narrow viewport stacks them one per line,
   which reads as a vertical list. This keeps the role buttons in one
   always-horizontal row at any width, scrollable if it doesn't fit. */
.demo-role-switcher {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.demo-role-switcher::-webkit-scrollbar { display: none; }
.demo-role-label { font-size: 0.8rem; opacity: 0.85; flex-shrink: 0; }
.demo-role-form { display: inline-block; margin: 0; flex-shrink: 0; }
.demo-role-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.demo-role-btn:hover { background: rgba(255, 255, 255, 0.12); }
.demo-role-btn.active {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.demo-exit-form { display: inline; margin: 0; }
.demo-exit-btn {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
}

@media (max-width: 480px) {
  .demo-navbar { justify-content: flex-start; font-size: 0.8rem; }
  .demo-role-label { display: none; }
}

/* P1 — Check-in streaks */
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 6px 12px;
  background: var(--bg-alt, #f5f5f5);
  border-radius: 24px;
  font-size: .95rem;
}
.streak-flame { font-size: 1.2rem; line-height: 1; }
.streak-count { font-weight: 800; font-size: 1.1rem; }
.streak-label { color: var(--text-muted, #666); font-size: .85rem; }

/* ── Usage achievement bar (manager sticky footer) ──────────────────────────── */
body.has-usage-bar .page { padding-bottom: 48px; }

.usage-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
    z-index: 200;
    font-size: 12px;
}

.usage-bar-label {
    flex-shrink: 0;
    color: var(--muted);
    white-space: nowrap;
}
.usage-bar-label strong {
    color: var(--text);
    font-weight: 600;
}

.usage-bar-track {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.07);
    position: relative;
    overflow: hidden;
}

.usage-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--usage-fill-color, var(--primary));
    transition: width 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0.88;
}

.usage-bar-tick {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255,255,255,0.22);
    pointer-events: none;
    z-index: 1;
}

.usage-bar-stage {
    flex-shrink: 0;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    font-size: 12px;
}

.usage-bar-link {
    color: var(--usage-fill-color, var(--primary));
    text-decoration: none;
    font-weight: 600;
}
.usage-bar-link:hover { text-decoration: underline; }

@keyframes usage-bar-pulse {
    0%, 100% { opacity: 0.88; }
    50%       { opacity: 0.5; }
}
.usage-bar--level-up .usage-bar-fill {
    opacity: 1;
    animation: usage-bar-pulse 2s ease-in-out infinite;
}

@media (max-width: 600px) {
    .usage-bar { gap: 10px; padding: 0 12px; }
    .usage-bar-stage { display: none; }
}
