/* ═══════════════════════════════════════════════════════════════
   GYMPASS INDIA — DESIGN SYSTEM
   shared.css · Single source of truth for all pages
   
   STRUCTURE:
   1.  Design Tokens (CSS variables)
   2.  Reset & Base
   3.  Typography
   4.  Layout Primitives (grid, flex helpers)
   5.  Navigation — Top nav (public pages)
   6.  Navigation — Sidebar (dashboard pages)
   7.  Buttons
   8.  Form Elements
   9.  Cards — Stat, Feature, Gym, Plan, Insight
   10. Badges & Pills
   11. Data Table
   12. Panel (container with header/body)
   13. Auth Pages (login/signup specific layout)
   14. Public Pages (index, search, gym-detail)
   15. Dashboard Layout
   16. Page-specific Components
   17. Animations & Utilities
   18. Responsive
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=JetBrains+Mono:wght@400;500&display=swap');


/* ─────────────────────────────────────────────
   1. DESIGN TOKENS
───────────────────────────────────────────── */
:root {
  /* Brand */
  --brand:          #FF5C1A;
  --brand-hover:    #ff7a3d;
  --brand-dim:      rgba(255, 92, 26, 0.10);
  --brand-glow:     rgba(255, 92, 26, 0.25);

  /* Surfaces */
  --bg:             #080808;
  --surface-1:      #0d0d0d;   /* sidebar, topnav */
  --surface-2:      #111111;   /* cards */
  --surface-3:      #141414;   /* inputs, nested cards */

  /* Borders */
  --border-1:       #1c1c1c;   /* default */
  --border-2:       #242424;   /* hover/focus context */

  /* Text */
  --text-primary:   #f0ede8;
  --text-secondary: #888888;
  --text-muted:     #444444;

  /* Semantic colours */
  --green:          #22c55e;
  --green-dim:      rgba(34, 197, 94, 0.10);
  --green-glow:     rgba(34, 197, 94, 0.25);
  --blue:           #3b82f6;
  --blue-dim:       rgba(59, 130, 246, 0.10);
  --yellow:         #f59e0b;
  --yellow-dim:     rgba(245, 158, 11, 0.10);
  --red:            #ef4444;
  --red-dim:        rgba(239, 68, 68, 0.10);

  /* Layout */
  --sidebar-w:      240px;
  --topbar-h:       57px;

  /* Radius */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   20px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-brand: 0 8px 28px rgba(255, 92, 26, 0.30);
  --shadow-card:  0 2px 12px rgba(0, 0, 0, 0.40);

  /* Transitions */
  --t-fast:   0.15s ease;
  --t-base:   0.22s ease;
  --t-slow:   0.38s ease;

  /* Font families */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}


/* ─────────────────────────────────────────────
   2. RESET & BASE
───────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
  background:  var(--bg);
  color:       var(--text-primary);
  font-family: var(--font-body);
  font-size:   14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--font-body); }
img { display: block; max-width: 100%; }
ul { list-style: none; }


/* ─────────────────────────────────────────────
   3. TYPOGRAPHY
───────────────────────────────────────────── */
.t-display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.t-heading {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.t-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.t-mono { font-family: var(--font-mono); }
.t-brand  { color: var(--brand); }
.t-muted  { color: var(--text-secondary); }
.t-green  { color: var(--green); }
.t-blue   { color: var(--blue); }
.t-yellow { color: var(--yellow); }
.t-red    { color: var(--red); }


/* ─────────────────────────────────────────────
   4. LAYOUT PRIMITIVES
───────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.col-2  { grid-column: span 2; }
.col-3  { grid-column: span 3; }

.flex     { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center   { align-items: center; }
.items-start    { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-4  { gap: 4px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-wrap { flex-wrap: wrap; }

.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-auto { margin-top: auto; }
.ml-auto { margin-left: auto; }

.text-center { text-align: center; }
.text-right  { text-align: right; }

.divider {
  height: 1px;
  background: var(--border-1);
  margin: 24px 0;
}
.divider-v {
  width: 1px;
  background: var(--border-1);
  align-self: stretch;
}


/* ─────────────────────────────────────────────
   5. TOP NAV  (public pages: index, search, detail)
───────────────────────────────────────────── */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: var(--topbar-h);
  background: var(--surface-1);
  border-bottom: 1px solid var(--border-1);
  position: sticky;
  top: 0;
  z-index: 100;
}
.topnav-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}
.topnav-logo span { color: var(--brand); }

.topnav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.topnav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--t-fast);
}
.topnav-link:hover { color: var(--text-primary); }
.topnav-link.active { color: var(--text-primary); }

.topnav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}


/* ─────────────────────────────────────────────
   6. SIDEBAR  (dashboard pages)
───────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface-1);
  border-right: 1px solid var(--border-1);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform var(--t-base);
}

/* Sidebar — logo area */
.sidebar__logo {
  padding: 20px;
  border-bottom: 1px solid var(--border-1);
}
.sidebar__wordmark {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  display: block;
  margin-bottom: 2px;
}
.sidebar__wordmark span { color: var(--brand); }
.sidebar__badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Sidebar — navigation */
.sidebar__nav {
  padding: 10px 0;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar__nav::-webkit-scrollbar { width: 0; }

.sidebar__section-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 14px 20px 6px;
}

.sidebar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-left: 2px solid transparent;
  transition: all var(--t-fast);
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}
.sidebar__item:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.025);
}
.sidebar__item.is-active {
  color: var(--text-primary);
  border-left-color: var(--brand);
  background: var(--brand-dim);
}
.sidebar__item-icon {
  width: 20px;
  text-align: center;
  font-size: 15px;
  flex-shrink: 0;
}

/* Sidebar — footer (gym profile) */
.sidebar__footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border-1);
}
.sidebar__profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--t-fast);
}
.sidebar__profile:hover { background: rgba(255,255,255,0.04); }
.sidebar__gym-avatar {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  background: var(--brand-dim);
  border: 1px solid var(--brand-glow);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.sidebar__gym-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}
.sidebar__gym-status {
  font-size: 10px;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 4px;
}
.sidebar__gym-status::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease infinite;
}


/* ─────────────────────────────────────────────
   7. BUTTONS
   
   Usage:
     .btn                     — base, always required
     .btn--primary            — orange fill
     .btn--ghost              — outlined/muted
     .btn--danger             — red tint
     .btn--sm                 — smaller size
     .btn--lg                 — larger size
     .btn--full               — full width
     .btn--icon               — square icon button
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: all var(--t-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  line-height: 1;
}

/* Shimmer on hover for primary */
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}
.btn--primary:hover::after { transform: translateX(100%); }

.btn--primary {
  background: var(--brand);
  color: #fff;
}
.btn--primary:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: var(--surface-3);
  color: var(--text-secondary);
  border: 1px solid var(--border-1);
}
.btn--ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-2);
}

.btn--danger {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid rgba(239,68,68,0.2);
}
.btn--danger:hover { background: rgba(239,68,68,0.18); }

.btn--outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-1);
}
.btn--outline:hover { border-color: var(--border-2); color: var(--text-primary); }

.btn--sm  { padding: 7px 14px; font-size: 12px; }
.btn--lg  { padding: 15px 28px; font-size: 15px; }
.btn--full { width: 100%; }
.btn--icon {
  padding: 9px;
  border-radius: var(--r-sm);
  aspect-ratio: 1;
}

/* Loading state */
.btn.is-loading { pointer-events: none; opacity: 0.75; }
.btn__spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}
.btn.is-loading .btn__spinner { display: block; }
.btn.is-loading .btn__label  { opacity: 0.6; }


/* ─────────────────────────────────────────────
   8. FORM ELEMENTS
───────────────────────────────────────────── */
/* Field wrapper */
.field { margin-bottom: 18px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field--inline { display: flex; gap: 10px; align-items: flex-end; }

/* Label */
.field__label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 7px;
}

/* Input wrapper (for icon) */
.field__wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.field__icon {
  position: absolute;
  left: 13px;
  font-size: 15px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color var(--t-fast);
  line-height: 1;
}
.field__wrap:focus-within .field__icon { color: var(--brand); }

/* Input / select / textarea */
.field__input {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface-3);
  border: 1.5px solid var(--border-1);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.field__input--with-icon { padding-left: 42px; }
.field__input::placeholder { color: var(--text-muted); }
.field__input:focus {
  border-color: var(--brand);
  background: rgba(255, 92, 26, 0.03);
  box-shadow: 0 0 0 3px var(--brand-dim);
}
.field__input.is-valid   { border-color: var(--green); }
.field__input.is-invalid { border-color: var(--red); }

select.field__input {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
}
select.field__input option { background: #1a1a1a; }

textarea.field__input {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}

/* Phone field — flag + code prefix */
.field__phone {
  display: flex;
}
.field__phone-prefix {
  background: var(--surface-3);
  border: 1.5px solid var(--border-1);
  border-right: none;
  border-radius: var(--r-md) 0 0 var(--r-md);
  padding: 12px 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: border-color var(--t-fast);
  user-select: none;
}
.field__phone:focus-within .field__phone-prefix { border-color: var(--brand); }
.field__phone .field__input {
  border-radius: 0 var(--r-md) var(--r-md) 0;
  border-left: 1px solid var(--border-2);
}
.field__phone .field__input:focus { border-color: var(--brand); }

/* Error hint */
.field__error {
  display: none;
  margin-top: 5px;
  font-size: 11px;
  color: var(--red);
  padding-left: 2px;
}
.field__error.is-visible { display: block; }

/* OTP inputs */
.otp-group {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.otp-group__input {
  width: 54px; height: 60px;
  text-align: center;
  background: var(--surface-3);
  border: 1.5px solid var(--border-1);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-display);
  outline: none;
  transition: all var(--t-fast);
  caret-color: var(--brand);
}
.otp-group__input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-dim);
  background: rgba(255, 92, 26, 0.04);
  transform: scale(1.06);
}
.otp-group__input.is-filled {
  border-color: var(--green);
  background: var(--green-dim);
}

/* Toggle / switch */
.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-1);
}
.toggle:last-child { border-bottom: none; }
.toggle__info {}
.toggle__title { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.toggle__desc  { font-size: 12px; color: var(--text-secondary); }
.toggle__switch {
  position: relative;
  width: 44px; height: 24px;
  cursor: pointer;
  flex-shrink: 0;
}
.toggle__switch input {
  opacity: 0;
  width: 0; height: 0;
  position: absolute;
}
.toggle__track {
  position: absolute;
  inset: 0;
  background: var(--border-2);
  border-radius: var(--r-full);
  transition: var(--t-base);
}
.toggle__track::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: var(--t-base);
}
.toggle__switch input:checked + .toggle__track { background: var(--brand); }
.toggle__switch input:checked + .toggle__track::before { transform: translateX(20px); }

/* Checkbox */
.checkbox-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--surface-3);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
}
.checkbox-row input[type="checkbox"] {
  width: 17px; height: 17px;
  margin-top: 1px;
  accent-color: var(--brand);
  cursor: pointer;
  flex-shrink: 0;
}
.checkbox-row__text { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.checkbox-row__text a { color: var(--brand); }

/* Search bar */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-3);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  padding: 0 13px;
  transition: border-color var(--t-fast);
}
.search-bar:focus-within { border-color: var(--brand); }
.search-bar__icon { font-size: 14px; color: var(--text-muted); flex-shrink: 0; }
.search-bar__input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-body);
  padding: 9px 0;
  min-width: 160px;
}
.search-bar__input::placeholder { color: var(--text-muted); }


/* ─────────────────────────────────────────────
   9. CARDS

   Stat card:     .stat-card
   Feature card:  .feature-card  (landing page)
   Gym card:      .gym-card      (search results)
   Plan card:     .plan-card     (pricing)
   Insight card:  .insight-card  (analytics)
───────────────────────────────────────────── */

/* -- Stat Card -- */
.stat-card {
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.stat-card:hover { border-color: var(--border-2); transform: translateY(-1px); }

.stat-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.stat-card__icon {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.stat-card__icon--brand  { background: var(--brand-dim); }
.stat-card__icon--green  { background: var(--green-dim); }
.stat-card__icon--blue   { background: var(--blue-dim); }
.stat-card__icon--yellow { background: var(--yellow-dim); }
.stat-card__icon--red    { background: var(--red-dim); }

.stat-card__value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-card__label { font-size: 12px; color: var(--text-secondary); }

/* -- Feature Card (landing how-it-works) -- */
.feature-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  transition: border-color var(--t-base), background var(--t-base);
}
.feature-card:hover {
  border-color: var(--brand-glow);
  background: var(--brand-dim);
}
.feature-card__icon {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: var(--brand-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.feature-card__title { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.feature-card__desc  { font-size: 11px; color: var(--text-secondary); }

/* -- Gym Card (search results) -- */
.gym-card {
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}
.gym-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.gym-card.is-selected { border-color: var(--brand); }
.gym-card__thumb {
  height: 120px;
  background: var(--surface-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  border-bottom: 1px solid var(--border-1);
}
.gym-card__body { padding: 14px; }
.gym-card__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.gym-card__meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.gym-card__price {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
}
.gym-card__price-label { font-size: 11px; color: var(--text-secondary); }
.gym-card__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

/* -- Plan Card (pricing / booking) -- */
.plan-card {
  background: var(--surface-2);
  border: 2px solid var(--border-1);
  border-radius: var(--r-lg);
  padding: 20px;
  cursor: pointer;
  transition: all var(--t-base);
  position: relative;
}
.plan-card:hover  { border-color: var(--brand-glow); }
.plan-card.is-selected {
  border-color: var(--brand);
  background: var(--brand-dim);
}
.plan-card__name   { font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.plan-card__price  { font-family: var(--font-display); font-size: 26px; font-weight: 800; margin-bottom: 2px; }
.plan-card__period { font-size: 12px; color: var(--text-secondary); margin-bottom: 10px; }
.plan-card__saving { font-size: 11px; color: var(--green); font-weight: 600; }
.plan-card__badge  {
  position: absolute;
  top: -1px; right: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  letter-spacing: 0.05em;
}

/* -- Insight Card (analytics) -- */
.insight-card {
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.insight-card__icon {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.insight-card__title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.insight-card__text  { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }


/* ─────────────────────────────────────────────
   10. BADGES & PILLS
───────────────────────────────────────────── */

/* Change badges (on stat cards) */
.badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  font-weight: 600;
  display: inline-block;
}
.badge--up      { background: var(--green-dim);  color: var(--green); }
.badge--down    { background: var(--red-dim);    color: var(--red); }
.badge--neutral { background: rgba(255,255,255,0.05); color: var(--text-secondary); }
.badge--brand   { background: var(--brand-dim);  color: var(--brand); }
.badge--new     { background: var(--brand-dim);  color: var(--brand); font-size: 10px; }

/* Status pills (with dot) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.pill::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.pill--green  { background: var(--green-dim);  color: var(--green); }
.pill--brand  { background: var(--brand-dim);  color: var(--brand); }
.pill--blue   { background: var(--blue-dim);   color: var(--blue); }
.pill--yellow { background: var(--yellow-dim); color: var(--yellow); }
.pill--red    { background: var(--red-dim);    color: var(--red); }
.pill--grey   { background: rgba(255,255,255,0.05); color: var(--text-secondary); }

/* Filter chips (bookings / search / reviews) */
.chip {
  padding: 7px 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--border-1);
  background: none;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--t-fast);
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Amenity tag (small label on gym cards / settings) */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 500;
  background: var(--surface-3);
  border: 1px solid var(--border-1);
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Nav badge (sidebar bookings/reviews count) */
.nav-badge {
  margin-left: auto;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--r-full);
  min-width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.nav-badge--green { background: var(--green); }

/* Role toggle (login / signup) */
.role-toggle {
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  padding: 4px;
  gap: 4px;
  margin-bottom: 28px;
}
.role-toggle__btn {
  flex: 1;
  padding: 11px 16px;
  border-radius: var(--r-md);
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--t-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.role-toggle__btn:hover { color: var(--text-primary); }
.role-toggle__btn.is-active {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}


/* ─────────────────────────────────────────────
   11. DATA TABLE
───────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  padding: 11px 16px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-1);
  background: rgba(255,255,255,0.01);
  white-space: nowrap;
}
.data-table td {
  padding: 13px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-1);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background var(--t-fast); }
.data-table tbody tr:hover td { background: rgba(255,255,255,0.02); }

/* User cell inside table */
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell__avatar {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  background: var(--surface-3);
  border: 1px solid var(--border-1);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.user-cell__name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.user-cell__meta { font-size: 11px; color: var(--text-secondary); }


/* ─────────────────────────────────────────────
   12. PANEL  (card with header / body)
───────────────────────────────────────────── */
.panel {
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.panel__header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.panel__title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}
.panel__action {
  font-size: 12px;
  color: var(--brand);
  cursor: pointer;
  transition: opacity var(--t-fast);
  text-decoration: none;
}
.panel__action:hover { opacity: 0.7; }
.panel__body { padding: 20px; }

/* Save bar (bottom of settings sections) */
.save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--brand-dim);
  border-top: 1px solid rgba(255, 92, 26, 0.18);
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.save-bar__note { font-size: 12px; color: var(--text-secondary); }


/* ─────────────────────────────────────────────
   13. AUTH PAGES  (login, signup)
───────────────────────────────────────────── */
.auth-layout {
  display: flex;
  min-height: 100vh;
}

/* Left branding panel */
.auth-brand {
  width: 52%;
  background: var(--surface-1);
  border-right: 1px solid var(--border-1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
/* Radial glow */
.auth-brand::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 70%);
  top: -120px; right: -120px;
  pointer-events: none;
}
.auth-brand__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 36px 48px;
}

.auth-brand__logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.auth-brand__logo span { color: var(--brand); }
.auth-brand__logo-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  padding: 3px 8px;
  border-radius: var(--r-sm);
}

.auth-brand__headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.auth-brand__headline--ghost {
  -webkit-text-stroke: 1px rgba(255,255,255,0.18);
  color: transparent;
  display: block;
}
.auth-brand__headline--accent { color: var(--brand); }

.auth-brand__sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 36px;
}
.auth-brand__kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-brand__kicker::before { content: ''; width: 24px; height: 1px; background: var(--brand); }

/* Social proof row */
.auth-brand__proof {
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid var(--border-1);
  display: flex;
  align-items: center;
  gap: 14px;
}
.auth-brand__avatars { display: flex; }
.auth-brand__avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--surface-1);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  margin-left: -8px;
}
.auth-brand__avatar:first-child { margin-left: 0; }
.auth-brand__proof-text { font-size: 13px; color: var(--text-secondary); }
.auth-brand__proof-text strong { color: var(--text-primary); }

/* Right form panel */
.auth-form {
  width: 48%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  position: relative;
}
/* Subtle grid background */
.auth-form::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--brand-dim) 1px, transparent 1px),
    linear-gradient(90deg, var(--brand-dim) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.5;
}
.auth-form__inner {
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1;
}

/* Signup page (scrollable, single column) */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.auth-page__topnav {
  padding: 0 40px;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-1);
  background: var(--surface-1);
  position: sticky;
  top: 0;
  z-index: 50;
}
.auth-page__body {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px 80px;
  position: relative;
}
.auth-page__body::before {
  content: '';
  position: fixed;
  background-image:
    linear-gradient(var(--brand-dim) 1px, transparent 1px),
    linear-gradient(90deg, var(--brand-dim) 1px, transparent 1px);
  background-size: 40px 40px;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  z-index: 0;
}
.auth-page__card {
  width: 100%;
  max-width: 520px;
  position: relative;
  z-index: 1;
}

/* Step progress bar */
.step-progress {
  height: 3px;
  background: var(--border-1);
  border-radius: 2px;
  margin-bottom: 28px;
  overflow: hidden;
}
.step-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-hover));
  border-radius: 2px;
  transition: width var(--t-slow);
}
.step-progress__fill--done {
  background: linear-gradient(90deg, var(--green), #4ade80);
}

/* Step indicator dots */
.step-dots { display: flex; gap: 6px; margin-bottom: 28px; }
.step-dots__dot {
  height: 3px;
  border-radius: 2px;
  background: var(--border-2);
  flex: 1;
  transition: background var(--t-base);
}
.step-dots__dot.is-active { background: var(--brand); }
.step-dots__dot.is-done   { background: var(--green); }

/* Screen switcher */
.screen { display: none; }
.screen.is-active { display: block; }

/* Auth form header */
.auth-form__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.auth-form__sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 28px;
}
.auth-form__sub a { color: var(--brand); }
.auth-form__sub a:hover { text-decoration: underline; }

/* Success screen */
.auth-success {
  text-align: center;
  padding: 20px 0;
}
.auth-success__icon { font-size: 68px; margin-bottom: 14px; display: block; }
.auth-success__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}
.auth-success__sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}


/* ─────────────────────────────────────────────
   14. PUBLIC PAGES  (index, search, gym-detail)
───────────────────────────────────────────── */

/* Hero */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 65%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.hero__kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
}
.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero__headline--ghost {
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.18);
  color: transparent;
  display: block;
}
.hero__desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__stats   { display: flex; gap: 40px; justify-content: center; margin-top: 56px; flex-wrap: wrap; }
.hero__stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
}
.hero__stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* Section wrappers */
.section { padding: 80px 40px; }
.section__kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.section__sub {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
}

/* City card (landing page) */
.city-card {
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: border-color var(--t-base), transform var(--t-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.city-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.city-card.is-live { border-color: rgba(34,197,94,0.25); }
.city-card__emoji { font-size: 36px; margin-bottom: 12px; }
.city-card__name  { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.city-card__count { font-size: 12px; color: var(--text-secondary); }
.city-card__status {
  position: absolute;
  top: 12px; right: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: var(--r-sm);
}
.city-card__status--live { background: var(--green-dim); color: var(--green); }
.city-card__status--soon { background: var(--yellow-dim); color: var(--yellow); }

/* Search layout */
.search-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  height: calc(100vh - var(--topbar-h));
  overflow: hidden;
}
.search-list {
  border-right: 1px solid var(--border-1);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}
.search-list__header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-1);
  background: var(--surface-1);
  position: sticky;
  top: 0;
  z-index: 10;
}
.search-map {
  background: var(--surface-1);
  position: relative;
  overflow: hidden;
}

/* Gym detail */
.gym-detail-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}
.gym-detail-sidebar {
  position: sticky;
  top: calc(var(--topbar-h) + 20px);
}


/* ─────────────────────────────────────────────
   15. DASHBOARD LAYOUT
───────────────────────────────────────────── */
.dash-layout {
  display: flex;
  min-height: 100vh;
}
.dash-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.dash-topbar {
  padding: 0 28px;
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border-1);
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.dash-topbar__left { display: flex; flex-direction: column; justify-content: center; }
.dash-topbar__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}
.dash-topbar__sub { font-size: 12px; color: var(--text-secondary); margin-top: 1px; }
.dash-topbar__right { display: flex; align-items: center; gap: 10px; }
.dash-content { padding: 28px; flex: 1; }


/* ─────────────────────────────────────────────
   16. PAGE-SPECIFIC COMPONENTS
───────────────────────────────────────────── */

/* -- QR Scanner -- */
.qr-scanner {
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.qr-scanner__zone {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--surface-1);
}
.qr-frame {
  width: 220px; height: 220px;
  border: 2px solid var(--border-2);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  margin: 0 auto 24px;
  cursor: pointer;
  transition: border-color var(--t-base);
  overflow: hidden;
}
.qr-frame.is-scanning {
  border-color: var(--brand);
  animation: scan-pulse 1.2s ease infinite;
}
.qr-frame.is-success { border-color: var(--green); animation: none; }
.qr-frame.is-error   { border-color: var(--red);   animation: none; }
.qr-frame__icon { font-size: 64px; transition: all var(--t-base); }
.qr-frame__scan-line {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0;
  top: 12px;
}
.qr-frame.is-scanning .qr-frame__scan-line {
  opacity: 1;
  animation: scan-move 1.4s ease infinite;
}
.qr-result {
  border-radius: var(--r-md);
  padding: 20px;
  display: none;
}
.qr-result.is-visible { display: block; animation: pop-in 0.4s cubic-bezier(.34,1.56,.64,1); }
.qr-result--success { background: var(--green-dim);  border: 1px solid var(--green-glow); }
.qr-result--error   { background: var(--red-dim);    border: 1px solid rgba(239,68,68,0.3); }
.qr-result--warning { background: var(--yellow-dim); border: 1px solid rgba(245,158,11,0.3); }
.qr-result__icon    { font-size: 40px; margin-bottom: 10px; display: block; }
.qr-result__title   { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.qr-result__info    { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.qr-result__details { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.qr-result__detail-item {
  background: var(--surface-3);
  border: 1px solid var(--border-1);
  border-radius: var(--r-sm);
  padding: 10px 12px;
}
.qr-result__detail-label { font-size: 10px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 3px; }
.qr-result__detail-value { font-size: 13px; font-weight: 600; }

/* Scan log */
.scan-log__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-1);
  transition: background var(--t-fast);
}
.scan-log__item:last-child { border-bottom: none; }
.scan-log__item:hover { background: rgba(255,255,255,0.02); }
.scan-log__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.scan-log__dot--ok   { background: var(--green); }
.scan-log__dot--fail { background: var(--red); }
.scan-log__dot--warn { background: var(--yellow); }
.scan-log__body { flex: 1; }
.scan-log__name { font-size: 13px; font-weight: 600; }
.scan-log__meta { font-size: 11px; color: var(--text-secondary); }
.scan-log__result { font-size: 11px; font-weight: 600; }
.scan-log__result--ok   { color: var(--green); }
.scan-log__result--fail { color: var(--red); }
.scan-log__result--warn { color: var(--yellow); }
.scan-log__time { font-size: 11px; color: var(--text-secondary); font-family: var(--font-mono); }

/* -- Payouts -- */
.payout-hero {
  background: var(--green-dim);
  border: 1px solid var(--green-glow);
  border-radius: var(--r-xl);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.payout-hero__amount {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}
.payout-hero__kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}
.payout-hero__note { font-size: 13px; color: var(--text-secondary); margin-top: 6px; }
.upi-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  padding: 12px 16px;
}
.upi-badge__id { font-family: var(--font-mono); font-size: 13px; }
.upi-badge__status { font-size: 10px; color: var(--green); margin-top: 2px; }

/* Payout timeline */
.timeline { position: relative; padding-left: 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 24px; bottom: 24px;
  width: 2px;
  background: var(--border-1);
}
.timeline__item { display: flex; gap: 16px; padding: 14px 0; position: relative; }
.timeline__dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  border: 2px solid var(--border-1);
  background: var(--surface-2);
  position: relative;
  z-index: 1;
}
.timeline__dot--done    { background: var(--green-dim); border-color: var(--green-glow); }
.timeline__dot--pending { background: var(--yellow-dim); border-color: rgba(245,158,11,0.3); }
.timeline__date   { font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary); margin-bottom: 3px; }
.timeline__title  { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.timeline__amount { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.timeline__amount--green  { color: var(--green); }
.timeline__amount--yellow { color: var(--yellow); }
.timeline__note   { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* -- Reviews -- */
.rating-hero {
  background: var(--yellow-dim);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--r-xl);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}
.rating-hero__big {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
}
.rating-hero__stars { font-size: 22px; margin-bottom: 6px; }
.rating-hero__sub   { font-size: 13px; color: var(--text-secondary); }
.rating-bar__row    { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.rating-bar__label  { font-size: 12px; color: var(--text-secondary); width: 32px; text-align: right; }
.rating-bar__track  { flex: 1; height: 6px; background: var(--border-1); border-radius: 3px; overflow: hidden; }
.rating-bar__fill   { height: 100%; background: var(--yellow); border-radius: 3px; }
.rating-bar__count  { font-size: 11px; color: var(--text-secondary); width: 22px; }

.review-card {
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 12px;
  transition: border-color var(--t-fast);
}
.review-card:hover    { border-color: var(--border-2); }
.review-card--new     { border-color: rgba(255,92,26,0.3); background: rgba(255,92,26,0.02); }
.review-card__header  { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.review-card__avatar  { width: 40px; height: 40px; border-radius: var(--r-md); background: var(--surface-3); border: 1px solid var(--border-1); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.review-card__name    { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.review-card__meta    { font-size: 12px; color: var(--text-secondary); }
.review-card__stars   { color: var(--yellow); font-size: 15px; letter-spacing: 1px; }
.review-card__date    { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.review-card__body    { font-size: 14px; color: rgba(240,237,232,0.8); line-height: 1.7; margin-bottom: 14px; }
.review-card__footer  { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.review-card__booking-ref { font-size: 11px; color: var(--text-secondary); }

.review-reply {
  background: var(--surface-3);
  border: 1px solid var(--border-1);
  border-radius: var(--r-sm);
  padding: 14px;
  margin-top: 14px;
}
.review-reply__label {
  font-size: 11px;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.review-reply__text { font-size: 13px; color: rgba(240,237,232,0.7); line-height: 1.6; }
.review-reply__form { margin-top: 14px; display: none; }
.review-reply__form textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1.5px solid var(--border-1);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-body);
  outline: none;
  resize: vertical;
  min-height: 70px;
  transition: border-color var(--t-fast);
}
.review-reply__form textarea:focus { border-color: var(--brand); }

/* -- Settings -- */
.settings-layout { display: grid; grid-template-columns: 210px 1fr; gap: 24px; align-items: start; }
.settings-nav {
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--topbar-h) + 16px);
}
.settings-nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: all var(--t-fast);
}
.settings-nav__item:hover { color: var(--text-primary); background: rgba(255,255,255,0.02); }
.settings-nav__item.is-active { color: var(--text-primary); border-left-color: var(--brand); background: var(--brand-dim); }

.settings-section { display: none; }
.settings-section.is-active { display: block; animation: fade-up 0.3s ease; }
.settings-section__title { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.settings-section__sub   { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; }

/* Amenity chips (settings) */
.amenity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.amenity-chip {
  padding: 10px 14px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border-1);
  background: none;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--t-fast);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
}
.amenity-chip:hover { border-color: var(--brand); color: var(--text-primary); }
.amenity-chip.is-selected { border-color: var(--brand); background: var(--brand-dim); color: var(--text-primary); }

/* Hours grid (settings) */
.hours-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hour-card {
  background: var(--surface-3);
  border: 1px solid var(--border-1);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color var(--t-fast);
}
.hour-card:hover { border-color: var(--brand); }
.hour-card.is-closed { opacity: 0.4; }
.hour-card__day  { font-size: 11px; color: var(--text-secondary); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.hour-card__time { font-size: 13px; font-weight: 600; }

/* -- Analytics -- */
.chart-container {
  position: relative;
  display: flex;
}
.chart-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 10px;
  text-align: right;
}
.chart-y-axis span { font-family: var(--font-mono); font-size: 10px; color: var(--text-secondary); }
.chart-bars-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 200px;
}
.chart-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  transition: opacity var(--t-fast);
  position: relative;
}
.chart-bar:hover { opacity: 0.75; }
.chart-bar--brand  { background: var(--brand); }
.chart-bar--dim    { background: rgba(255,92,26,0.35); }
.chart-bar__tip {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 3px 7px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast);
}
.chart-bar:hover .chart-bar__tip { opacity: 1; }
.chart-x-labels {
  display: flex;
  gap: 5px;
  margin-top: 6px;
}
.chart-x-label {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-secondary);
}

.donut-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.donut-legend { display: flex; flex-direction: column; gap: 10px; }
.donut-legend__item { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.donut-legend__dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.donut-legend__pct { margin-left: auto; font-family: var(--font-display); font-weight: 700; }

/* Heatmap */
.heatmap-row { display: flex; gap: 4px; align-items: center; margin-bottom: 4px; }
.heatmap-row__label { font-family: var(--font-mono); font-size: 10px; color: var(--text-secondary); width: 30px; text-align: right; flex-shrink: 0; }
.heatmap-cell { height: 14px; flex: 1; border-radius: 3px; cursor: pointer; }
.heatmap-legend { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 11px; color: var(--text-secondary); }
.heatmap-legend__swatch { width: 14px; height: 14px; border-radius: 2px; }

/* Period tabs */
.period-tabs {
  display: flex;
  gap: 3px;
  background: var(--surface-3);
  border: 1px solid var(--border-1);
  border-radius: var(--r-sm);
  padding: 3px;
}
.period-tab {
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  transition: all var(--t-fast);
}
.period-tab.is-active { background: var(--brand); color: #fff; }

/* Callout / info box */
.callout {
  background: var(--blue-dim);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--r-md);
  padding: 13px 16px;
  font-size: 13px;
  color: rgba(147,197,253,0.9);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.5;
}
.callout__icon { flex-shrink: 0; font-size: 15px; }
.callout--green {
  background: var(--green-dim);
  border-color: var(--green-glow);
  color: rgba(134,239,172,0.9);
}

/* Progress bar (members page) */
.progress-bar { height: 5px; background: var(--border-1); border-radius: 3px; overflow: hidden; }
.progress-bar__fill { height: 100%; border-radius: 3px; }
.progress-bar__fill--green  { background: var(--green); }
.progress-bar__fill--yellow { background: var(--yellow); }

/* Pricing auto-preview */
.pricing-preview {
  background: var(--surface-3);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  overflow: hidden;
}
.pricing-preview__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-1);
  font-size: 13px;
}
.pricing-preview__row:last-child { border-bottom: none; }
.pricing-preview__price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand);
}


/* ─────────────────────────────────────────────
   17. ANIMATIONS & UTILITIES
───────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slide-right {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pop-in {
  from { opacity: 0; transform: scale(0.86); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes scale-up {
  from { transform: scaleY(0); transform-origin: bottom; }
  to   { transform: scaleY(1); transform-origin: bottom; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes scan-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--brand-glow); }
  50%       { box-shadow: 0 0 0 14px transparent; }
}
@keyframes scan-move {
  0%   { top: 12px; }
  100% { top: 196px; }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes bounce-in {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Animation helper classes */
.anim-fade-up   { animation: fade-up   0.4s ease both; }
.anim-pop-in    { animation: pop-in    0.5s cubic-bezier(.34,1.56,.64,1); }
.anim-bounce-in { animation: bounce-in 0.5s ease; }
.anim-slide-right { animation: slide-right 0.5s ease both; }

/* Stagger delays for lists */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.10s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.20s; }
.stagger-5 { animation-delay: 0.25s; }

/* Visibility utilities */
.hidden  { display: none !important; }
.visible { display: block !important; }

/* Shimmer skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }


/* ─────────────────────────────────────────────
   18. RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gym-detail-layout { grid-template-columns: 1fr; }
  .gym-detail-sidebar { position: static; }
  .rating-hero { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  /* Sidebar hidden by default on mobile */
  .sidebar { transform: translateX(-100%); }
  .sidebar.is-open { transform: translateX(0); }
  .dash-main { margin-left: 0; }

  /* Grids collapse */
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .col-2, .col-3   { grid-column: span 1; }
  .settings-layout  { grid-template-columns: 1fr; }
  .settings-nav     { position: static; }
  .search-layout    { grid-template-columns: 1fr; }

  /* Auth layout stacks */
  .auth-brand { display: none; }
  .auth-form  { width: 100%; padding: 40px 24px; }

  /* Spacing */
  .dash-content { padding: 16px; }
  .dash-topbar  { padding: 0 16px; }
  .topnav       { padding: 0 20px; }
  .section      { padding: 56px 24px; }
}

@media (max-width: 600px) {
  .grid-4      { grid-template-columns: 1fr; }
  .field--row  { grid-template-columns: 1fr; }
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
  .hours-grid   { grid-template-columns: 1fr 1fr; }
  .otp-group__input { width: 46px; height: 54px; font-size: 20px; }
  .hero__stats  { gap: 24px; }
  .auth-page__body { padding: 28px 16px 60px; }
}


/* ─────────────────────────────────────────────
   19. PUBLIC PAGE COMPONENTS
   (index, search, gym-detail specific)
───────────────────────────────────────────── */

/* City ticker (index) */
.city-ticker {
  overflow: hidden;
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
  padding: 12px 0;
  background: var(--surface-1);
}
.city-ticker__track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: ticker 20s linear infinite;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}
.city-ticker__track span { flex-shrink: 0; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* How-it-works steps (index) */
.how-step {
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: border-color var(--t-base), transform var(--t-base);
}
.how-step:hover { border-color: var(--border-2); transform: translateY(-2px); }
.how-step__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 12px;
}
.how-step__icon { font-size: 32px; margin-bottom: 14px; }
.how-step__title { font-size: 16px; margin-bottom: 8px; }
.how-step__desc { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

/* Plan cards (index pricing section) */
.plan-card {
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
  transition: border-color var(--t-base), transform var(--t-base);
}
.plan-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.plan-card--featured {
  border-color: var(--brand);
  background: rgba(255,92,26,0.04);
}
.plan-card__badge {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.plan-card__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 10px; }
.plan-card__price { font-family: var(--font-display); font-size: 36px; font-weight: 800; color: var(--brand); line-height: 1; margin-bottom: 4px; }
.plan-card__rate  { font-size: 12px; color: var(--text-secondary); margin-bottom: 12px; }
.plan-card__desc  { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-1);
  background: var(--surface-1);
  padding: 28px 40px;
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Search page — gym list card */
.gym-list-card {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-1);
  cursor: pointer;
  transition: background var(--t-fast);
}
.gym-list-card:hover { background: rgba(255,255,255,0.025); }
.gym-list-card.is-active { background: var(--brand-dim); border-left: 2px solid var(--brand); }
.gym-list-card__header { display: flex; align-items: flex-start; gap: 12px; }
.gym-list-card__avatar {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--surface-3);
  border: 1px solid var(--border-1);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.gym-list-card__name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.gym-list-card__addr { font-size: 12px; }
.gym-list-card__price { font-size: 18px; white-space: nowrap; }
.amenity-tag {
  font-size: 11px;
  padding: 2px 8px;
  background: var(--surface-3);
  border: 1px solid var(--border-1);
  border-radius: var(--r-sm);
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Search page — map */
.map-bg {
  width: 100%; height: 100%;
  background:
    linear-gradient(rgba(255,92,26,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,92,26,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  position: relative;
}
.map-label {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  padding: 4px 10px;
  border-radius: var(--r-sm);
}
.map-pin {
  position: absolute;
  transform: translate(-50%,-50%);
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
  box-shadow: 0 2px 12px var(--brand-glow);
}
.map-pin:hover, .map-pin.is-active { transform: translate(-50%,-50%) scale(1.15); box-shadow: 0 4px 20px var(--brand-glow); }
.gym-quick-detail {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--surface-1);
  border-top: 1px solid var(--border-1);
  padding: 20px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.4);
  max-height: 60%;
  overflow-y: auto;
}
.gym-quick-detail__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border-1);
  color: var(--text-secondary);
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.plan-mini {
  background: var(--surface-3);
  border: 1px solid var(--border-1);
  border-radius: var(--r-sm);
  padding: 10px 12px;
}
.plan-mini__price { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-top: 4px; }

/* Gym detail page */
.gym-hero-img {
  height: 260px;
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-xl);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px;
  position: relative;
  overflow: hidden;
}
.gym-hero-img__inner { opacity: 0.6; }
.gym-hero-img__overlay { position: absolute; bottom: 16px; left: 16px; }

.detail-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-1);
}
.detail-tab {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: all var(--t-fast);
}
.detail-tab:hover { color: var(--text-primary); }
.detail-tab.is-active { color: var(--brand); border-bottom-color: var(--brand); }

.detail-tab-pane { display: none; padding-top: 20px; }
.detail-tab-pane.is-active { display: block; animation: fade-up 0.3s ease; }

.info-tile {
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  padding: 14px 16px;
  text-align: center;
}
.info-tile__icon { font-size: 20px; margin-bottom: 6px; }
.info-tile__label { font-size: 10px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.info-tile__val { font-size: 13px; font-weight: 600; }

.amenity-item {
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--text-secondary);
}

/* Booking card (gym detail sidebar) */
.booking-card {
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.booking-card__header { padding: 20px 20px 0; }
.booking-card__body { padding: 16px 20px 20px; }

.plan-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--surface-3);
  border: 1.5px solid var(--border-1);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-fast);
}
.plan-option:hover { border-color: var(--brand); }
.plan-option.is-selected { border-color: var(--brand); background: var(--brand-dim); }
.plan-option__name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.plan-option__rate { font-size: 11px; }
.plan-option__price { font-size: 18px; }

.pay-method {
  flex: 1;
  padding: 8px;
  text-align: center;
  background: var(--surface-3);
  border: 1px solid var(--border-1);
  border-radius: var(--r-sm);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--t-fast);
}
.pay-method:hover { border-color: var(--brand); }
.pay-method.is-active { border-color: var(--brand); background: var(--brand-dim); color: var(--brand); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
}
.modal {
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-xl);
  padding: 32px;
  width: 100%; max-width: 380px;
  animation: pop-in 0.4s cubic-bezier(.34,1.56,.64,1);
}
.qr-placeholder {
  width: 160px; height: 160px;
  border: 2px solid var(--border-2);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  margin: 0 auto;
  background: var(--surface-3);
  color: var(--text-secondary);
}