/* ---- CARDS ---- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-header {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-body { padding: 20px; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.12s;
  white-space: nowrap;
  line-height: 1.4;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #047857; }
.btn-warning { background: var(--warning); color: #000; }
.btn-warning:hover { background: #b45309; color: #fff; }
.btn-outline { background: #fff; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--bg); border-color: #cbd5e1; }
.btn-outline-primary { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline-primary:hover { background: var(--primary-light); }
.btn-outline-danger { background: #fff; color: var(--danger); border: 1px solid var(--danger); }
.btn-outline-danger:hover { background: var(--danger-light); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-xs { padding: 3px 8px; font-size: 11px; border-radius: 4px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- BADGES ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
}
.badge-green { background: var(--success-light); color: #065f46; }
.badge-red { background: var(--danger-light); color: #991b1b; }
.badge-blue { background: var(--primary-light); color: #1e40af; }
.badge-orange { background: var(--warning-light); color: #92400e; }
.badge-gray { background: #f1f5f9; color: #475569; }
.badge-purple { background: #ede9fe; color: #5b21b6; }

/* ---- STAT CARDS ---- */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
}
.stat-card .stat-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 8px;
}
.stat-card .stat-value {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}
.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.stat-card .stat-trend {
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
}
.stat-trend.up { color: var(--success); }
.stat-trend.down { color: var(--danger); }

/* ---- TABLES ---- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
th:hover { color: var(--text); }
th .sort-arrow { margin-left: 4px; font-size: 10px; }
td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tr:hover td { background: #f8fafc; }
.cell-muted { color: var(--text-muted); text-align: center; padding: 32px 14px !important; }
.cell-right { text-align: right; }
.cell-nowrap { white-space: nowrap; }

/* ---- FORMS ---- */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  color: var(--text);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.form-input.error { border-color: var(--danger); }
.form-error { color: var(--danger); font-size: 12px; margin-top: 4px; }
.form-row { display: flex; gap: 10px; }
.form-row > * { flex: 1; }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ---- TABS ---- */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 16px; }
.tab-item {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.12s;
  background: none;
  border-top: none; border-left: none; border-right: none;
  font-family: inherit;
}
.tab-item:hover { color: var(--text); }
.tab-item.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ---- MODAL ---- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.15s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.modal-header {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-close {
  background: none; border: none; font-size: 18px;
  color: var(--text-muted); cursor: pointer; padding: 4px;
}
.modal-close:hover { color: var(--text); }
.modal-body { padding: 20px; }
.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ---- TOAST ---- */
.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 500;
  animation: toastIn 0.2s ease;
  max-width: 360px;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.toast-success { background: #065f46; color: #d1fae5; }
.toast-error { background: #991b1b; color: #fee2e2; }
.toast-info { background: #1e40af; color: #dbeafe; }

/* ---- PROGRESS BAR ---- */
.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}
.progress-bar-fill.green { background: var(--success); }
.progress-bar-fill.orange { background: var(--warning); }
.progress-bar-fill.red { background: var(--danger); }

/* ---- EMPTY STATE ---- */
.empty-state {
  text-align: center;
  padding: 40px 20px;
}
.empty-state-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.4; }
.empty-state-text { color: var(--text-secondary); font-size: 14px; margin-bottom: 16px; }

/* ---- SCHEDULE GRID ---- */
.schedule-grid {
  display: grid;
  grid-template-columns: 80px repeat(14, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 11px;
  min-width: 900px;
}
.schedule-header {
  background: var(--bg);
  padding: 6px 4px;
  text-align: center;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 10px;
}
.schedule-row-label {
  background: var(--bg);
  padding: 8px 6px;
  font-weight: 600;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.schedule-cell {
  background: #f8fafc;
  min-height: 52px;
  padding: 3px;
  cursor: pointer;
  transition: background 0.1s;
}
.schedule-cell:hover { filter: brightness(0.95); }
.schedule-cell.free { background: #f8fafc; }
.schedule-cell.scheduled { background: #dbeafe; }
.schedule-cell.in_progress { background: #d1fae5; }
.schedule-cell.completed { background: #e2e8f0; }
.schedule-cell.cancelled { background: #fee2e2; }
.schedule-cell-inner {
  font-size: 10px;
  line-height: 1.3;
  overflow: hidden;
}
.schedule-cell-inner .sc-name { font-weight: 600; color: var(--text); }
.schedule-cell-inner .sc-client { color: var(--text-secondary); }
.schedule-cell-inner .sc-status {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-right: 3px;
}
.sc-status.scheduled { background: var(--primary); }
.sc-status.in_progress { background: var(--success); }
.sc-status.completed { background: var(--text-muted); }
.sc-status.cancelled { background: var(--danger); }

/* ---- CLIENT CARDS (demo login) ---- */
.demo-client-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}
.demo-client-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.12s;
}
.demo-client-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.demo-client-card .demo-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.demo-client-card .demo-info { flex: 1; min-width: 0; }
.demo-client-card .demo-name { font-weight: 600; font-size: 14px; }
.demo-client-card .demo-sub { font-size: 12px; color: var(--text-secondary); }

/* ---- CHART WRAPPER ---- */
.chart-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}
.chart-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--text);
}
.chart-wrap {
  position: relative;
  width: 100%;
}
.chart-wrap canvas { width: 100% !important; }

/* ---- UTILITY ---- */
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flex-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.font-mono { font-family: 'SF Mono', 'Fira Code', monospace; }

/* ============================================================
   MOBILE CLIENT APP STYLES
   ============================================================ */

.mobile-shell {
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* Header */
.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.mobile-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
}
.mobile-logo span { color: var(--primary); }
.mobile-back {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 0;
}

/* Body */
.mobile-body { flex: 1; padding: 16px; padding-bottom: 80px; }

/* Section titles */
.mobile-section-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
}
.mobile-section-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Login cards */
.mobile-card-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.client-login-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 2px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.client-login-card:hover { border-color: var(--primary); background: #eff6ff; }
.client-login-card.card-selected { border-color: var(--primary); background: var(--primary-light); }
.client-login-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
.client-login-info { flex: 1; min-width: 0; }
.client-login-name { font-weight: 600; font-size: 15px; }
.client-login-phone { font-size: 12px; color: var(--text-secondary); }
.client-login-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* Divider */
.mobile-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 12px;
}
.mobile-divider::before,
.mobile-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Input */
.mobile-input-group { margin-bottom: 12px; }
.mobile-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  background: #f8fafc;
  transition: border-color 0.15s;
}
.mobile-input:focus { outline: none; border-color: var(--primary); background: #fff; }
.mobile-error { color: var(--danger); font-size: 12px; margin-top: 4px; }

/* Buttons */
.mobile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.12s;
  border: none;
}
.mobile-btn-primary { background: var(--primary); color: #fff; width: 100%; }
.mobile-btn-primary:hover { background: var(--primary-dark); }
.mobile-btn-outline { background: #fff; color: var(--text); border: 2px solid var(--border); width: 100%; }
.mobile-btn-outline:hover { border-color: #94a3b8; }
.mobile-btn-outline-red { background: #fff; color: var(--danger); border: 1px solid var(--danger); }
.mobile-btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.mobile-btn-block { width: 100%; }
.mobile-btn:active { transform: scale(0.97); }

/* Bottom nav */
.mobile-bottom-nav {
  display: flex;
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  z-index: 20;
}
.mnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px 10px;
  gap: 3px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s;
}
.mnav-item i { font-size: 18px; }
.mnav-item.active { color: var(--primary); }

/* Subscription bar */
.mobile-subscription-bar {
  background: #f8fafc;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.sub-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sub-label { font-size: 11px; color: var(--text-muted); }
.sub-value { font-size: 17px; font-weight: 700; }
.sub-badge { font-size: 11px; }

/* Tabs */
.mobile-tabs {
  display: flex;
  gap: 0;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 16px;
}
.mobile-tab {
  flex: 1;
  padding: 8px;
  text-align: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
}
.mobile-tab.active { background: #fff; color: var(--text); box-shadow: var(--shadow); }

/* Booking card */
.mobile-booking-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
}
.mbc-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.mbc-time { text-align: center; min-width: 44px; }
.mbc-time-val { display: block; font-size: 18px; font-weight: 700; line-height: 1.1; }
.mbc-date { display: block; font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.mbc-info { flex: 1; min-width: 0; }
.mbc-trainer { font-weight: 600; font-size: 14px; }
.mbc-court { font-size: 12px; color: var(--text-secondary); }
.mbc-alert { background: var(--warning-light); padding: 6px 16px; font-size: 11px; color: #92400e; }
.mbc-actions { padding: 0 16px 14px; display: flex; gap: 8px; }

/* Date strip */
.mobile-date-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.mdate-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.12s;
  min-width: 56px;
}
.mdate-btn.active { border-color: var(--primary); background: var(--primary-light); }
.mdate-day { font-size: 11px; color: var(--text-muted); }
.mdate-num { font-size: 18px; font-weight: 700; }

/* Slot grid */
.mobile-slot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.mslot-btn {
  padding: 10px 6px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.12s;
  text-align: center;
}
.mslot-btn:hover { border-color: var(--primary); }
.mslot-btn.mslot-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.mslot-btn.mslot-busy { background: #f1f5f9; color: #cbd5e1; border-color: #e2e8f0; cursor: default; }
.mslot-avail { display: block; font-size: 9px; color: var(--success); margin-top: 2px; }

/* Scanner */
.mobile-scanner-box {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  max-width: 300px;
  margin: 0 auto;
}
.mobile-scanner-box video { width: 100%; display: block; }
.mobile-scanner-frame {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 180px; height: 180px;
  border: 2px dashed rgba(255,255,255,0.5);
  border-radius: 16px;
  pointer-events: none;
}
.mobile-scan-msg {
  text-align: center;
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}
.mobile-scan-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 12px;
}

/* Profile */
.mobile-profile-header {
  text-align: center;
  padding: 20px 0;
}
.mph-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 28px;
  margin: 0 auto 12px;
}
.mph-name { font-size: 20px; font-weight: 700; }
.mph-phone { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

.mobile-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.mstat {
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.mstat-val { font-size: 15px; font-weight: 700; }
.mstat-lbl { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.mobile-history-list { display: flex; flex-direction: column; gap: 6px; }
.mhist-row {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 12px;
  gap: 10px;
}
.mhist-date { font-weight: 600; white-space: nowrap; min-width: 64px; }
.mhist-info { flex: 1; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Confirm */
.mobile-confirm-block {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.confirm-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  font-size: 14px;
}
.confirm-grid span { color: var(--text-muted); }

/* Empty state */
.mobile-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
  font-size: 14px;
}
.mobile-empty-icon { font-size: 40px; margin-bottom: 8px; opacity: 0.3; color: var(--text-muted); }

/* ============================================================
   LANDING PAGE
   ============================================================ */

.landing {
  min-height: 100vh;
  background: #f8fafc;
}

/* HERO */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #1a365d 70%, #0f172a 100%);
  padding: 80px 24px;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(37,99,235,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(5,150,105,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(124,58,237,0.08) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: rgba(37,99,235,0.2);
  color: #93c5fd;
  border: 1px solid rgba(37,99,235,0.3);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -1px;
  line-height: 1.1;
}
.hero-title-accent {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 17px;
  color: #94a3b8;
  max-width: 560px;
  margin: 0 auto 8px;
  line-height: 1.5;
}
.hero-desc {
  font-size: 14px;
  color: #64748b;
}

/* FEATURES */
.features {
  padding: 0 24px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
.feature-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.feature-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 16px;
}
.feature-icon-blue { background: #dbeafe; color: #2563eb; }
.feature-icon-green { background: #d1fae5; color: #059669; }
.feature-icon-purple { background: #ede9fe; color: #7c3aed; }

/* CTA */
.cta-section { padding: 64px 24px; text-align: center; }
.cta-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 32px; }

.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 780px;
  margin: 0 auto;
}
.role-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 28px 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #f1f5f9;
}
.role-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  border-color: #e2e8f0;
}
.role-icon-wrap { display: flex; justify-content: center; margin-bottom: 20px; }
.role-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.role-icon-blue { background: #dbeafe; color: #2563eb; }
.role-icon-green { background: #d1fae5; color: #059669; }
.role-icon-dark { background: #f1f5f9; color: #475569; }
.role-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.role-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 16px; }
.role-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}
.role-hint i { font-size: 11px; }

/* FOOTER */
.landing-footer {
  background: #0f172a;
  padding: 48px 24px;
  text-align: center;
}
.footer-price { margin-bottom: 12px; }
.price-value { font-family: var(--font-heading); font-size: 32px; font-weight: 800; color: #fff; }
.price-period { font-size: 16px; color: #94a3b8; }
.footer-text { font-size: 13px; color: #64748b; margin-top: 4px; }

@media (max-width: 768px) {
  .hero { padding: 48px 16px; }
  .hero-title { font-size: 36px; }
  .hero-sub { font-size: 14px; }
  .features-grid { grid-template-columns: 1fr; max-width: 400px; }
  .roles-grid { grid-template-columns: 1fr; max-width: 360px; }
  .feature-card { padding: 20px; }
  .role-card { padding: 28px 20px 24px; }
}

/* ---- DEMO ROLE CARDS (old, keep for compatibility) ---- */
.demo-role-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Court selection cards */
.court-card-full {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.court-card-full:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.court-card-full.card-selected { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.court-card-full.court-busy { opacity: 0.5; cursor: default; }
.court-card-full.court-busy:hover { border-color: var(--border); box-shadow: none; }

.court-img {
  height: 120px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.court-img-overlay {
  text-align: center;
  color: rgba(255,255,255,0.9);
}
.court-img-icon { font-size: 32px; display: block; margin-bottom: 6px; color: rgba(255,255,255,0.85); }
.court-img-type { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.75); }

.court-badge-free {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--success);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.court-badge-busy {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--danger);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.court-info {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.court-name { font-weight: 700; font-size: 15px; }
.court-meta { flex: 1; display: flex; gap: 10px; font-size: 12px; color: var(--text-secondary); }
.court-price { font-weight: 700; font-size: 16px; color: var(--primary); }
.court-check {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 24px;
  color: var(--primary);
  background: #fff;
  border-radius: 50%;
  display: none;
}
.court-card-full.card-selected .court-check { display: block; }

/* Trainer cards with availability */
.trainer-card-full {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.trainer-card-full:hover { border-color: var(--primary); }
.trainer-card-full.card-selected { border-color: var(--primary); background: var(--primary-light); }
.trainer-card-full.trainer-busy { opacity: 0.45; cursor: default; }
.trainer-card-full.trainer-busy:hover { border-color: var(--border); }

.trainer-card-top { display: flex; align-items: center; gap: 12px; }
.trainer-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
.trainer-card-info { flex: 1; }
.trainer-card-name { font-weight: 600; font-size: 15px; }
.trainer-card-spec { font-size: 12px; color: var(--text-secondary); }

.trainer-badge-free {
  font-size: 11px;
  font-weight: 600;
  color: var(--success);
  background: var(--success-light);
  padding: 3px 10px;
  border-radius: 20px;
}
.trainer-badge-busy {
  font-size: 11px;
  font-weight: 600;
  color: var(--danger);
  background: var(--danger-light);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ---- TRAINER STATS BAR ---- */

.trainer-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}
.tstat {
  text-align: center;
  padding: 14px 8px;
}
.tstat-val { font-family: var(--font-heading); font-size: 18px; font-weight: 700; }
.tstat-lbl { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

.salary-total-card {
  background: linear-gradient(135deg, #059669, #047857);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  color: #fff;
}
.salary-total-label { font-size: 12px; opacity: 0.8; margin-bottom: 4px; }
.salary-total-value { font-family: var(--font-heading); font-size: 36px; font-weight: 800; }
.salary-total-sub { font-size: 13px; opacity: 0.8; margin-top: 4px; }

.salary-row {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 6px;
  gap: 10px;
}
.salary-date { font-weight: 600; font-size: 12px; white-space: nowrap; }
.salary-info { flex: 1; font-size: 12px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.salary-amount { font-weight: 700; font-size: 14px; color: var(--success); white-space: nowrap; }

.mobile-btn-danger { background: var(--danger); color: #fff; }
.mobile-btn-danger:hover { background: #b91c1c; }
.salary-day-group {
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.15s;
}
.salary-day-group:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.10); }

.salary-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  cursor: pointer;
  transition: background 0.12s;
  user-select: none;
}
.salary-day-header:hover { background: #fafbfc; }
.sdh-left { display: flex; align-items: center; gap: 12px; }
.sdh-arrow {
  font-size: 12px;
  color: var(--text-muted);
  width: 24px; height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-radius: 50%;
  transition: transform 0.2s, background 0.15s;
  flex-shrink: 0;
}
.sdh-date {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.sdh-right { display: flex; align-items: center; gap: 16px; }
.sdh-count {
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  background: #f1f5f9;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.sdh-total {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: #059669;
  min-width: 80px;
  text-align: right;
}

.salary-day-body { display: none; }
.salary-day-body.open { display: block; }

.salary-detail-row {
  display: flex;
  align-items: center;
  padding: 12px 18px 12px 52px;
  gap: 12px;
  font-size: 13px;
  border-top: 1px solid #f1f5f9;
  transition: background 0.1s;
}
.salary-detail-row:hover { background: #fafdf8; }
.sdr-time {
  font-weight: 600;
  font-size: 13px;
  color: #334155;
  min-width: 48px;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 8px;
  text-align: center;
}
.sdr-client { flex: 1; font-weight: 500; color: #1e293b; }
.sdr-court { color: #94a3b8; font-size: 12px; }
.sdr-amount {
  font-weight: 700;
  color: #059669;
  min-width: 72px;
  text-align: right;
  font-size: 14px;
  font-family: var(--font-heading);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.astat {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}
.astat-val { font-family: var(--font-heading); font-size: 18px; font-weight: 700; }
.astat-lbl { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.admin-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.admin-chip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-secondary);
}
.admin-chip span { font-weight: 700; color: var(--text); }
.admin-chip.green span { color: var(--success); }
.admin-chip.orange span { color: #d97706; }
.admin-chip.red span { color: var(--danger); }

.admin-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.admin-filter-bar .form-input,
.admin-filter-bar .form-select { width: auto; font-size: 12px; }

.active-session-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  font-size: 12px;
}
.asb-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.3;} }
.asb-info { flex: 1; }
.asb-label { font-size: 10px; opacity: 0.8; }
.asb-detail { font-weight: 500; }
.asb-timer { font-family: monospace; font-size: 16px; font-weight: 700; min-width: 50px; }
.active-session-bar .mobile-btn-danger { background: rgba(255,255,255,0.2); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.active-session-bar .mobile-btn-danger:hover { background: rgba(255,255,255,0.3); }

/* ---- ADMIN CHARTS ---- */
.admin-charts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 900px) { .admin-charts-row { grid-template-columns: 1fr; } }

.admin-key-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.akm-item { background: var(--card); border-radius: var(--radius); padding: 14px; text-align: center; box-shadow: var(--shadow); }
.akm-item span { display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.akm-item strong { font-family: var(--font-heading); font-size: 18px; }

/* ---- SCHEDULE GRID ---- */
.schedule-controls { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.schedule-date { font-family: var(--font-heading); font-weight: 700; font-size: 15px; flex: 1; text-align: center; }
.schedule-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.schedule-table { border-collapse: collapse; font-size: 11px; min-width: 900px; width: 100%; }
.schedule-table th { text-align: center; padding: 6px 2px; background: var(--bg); font-size: 10px; border: 1px solid var(--border); }
.schedule-table td { border: 1px solid var(--border); padding: 0; }
.sg-court { text-align: center; padding: 8px 6px !important; min-width: 65px; background: var(--bg); font-size: 12px; }
.sg-cell { min-width: 62px; height: 52px; cursor: pointer; transition: background 0.1s; vertical-align: middle; text-align: center; }
.sg-cell:hover { filter: brightness(0.92); }
.sg-free { background: #fafbfc; }
.sg-free:hover { background: #e2e8f0; }
.sg-empty-hint { font-size: 18px; color: #cbd5e1; font-weight: 300; }
.sg-scheduled { background: #dbeafe; }
.sg-active { background: #d1fae5; }
.sg-done { background: #f1f5f9; }
.sg-cancel { background: #fee2e2; }
.sg-inner { padding: 3px; line-height: 1.3; }

/* ---- SKELETON ---- */
.skeleton { background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }
.skeleton-text { height: 14px; margin-bottom: 8px; width: 100%; }
.skeleton-title { height: 20px; width: 60%; margin-bottom: 16px; }
.skeleton-card { height: 80px; margin-bottom: 12px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---- HISTORY ITEM ---- */
.mhist-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  gap: 10px;
  border-top: 1px solid #f1f5f9;
  font-size: 13px;
}
.mhist-left { display: flex; flex-direction: column; min-width: 55px; }
.mhist-date { font-weight: 600; }
.mhist-time { font-size: 11px; color: var(--text-muted); }
.mhist-mid { flex: 1; display: flex; flex-direction: column; }
.mhist-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

.schedule-quick-dates { display: flex; gap: 4px; margin-bottom: 12px; flex-wrap: wrap; }
.schedule-quick-dates .btn-xs { min-width: 44px; text-align: center; line-height: 1.2; padding: 4px 6px; }
