/* ==========================================================================
   VORTEX PADEL CLUB - MODERN ATHLETIC DESIGN SYSTEM
   Mobile-first, responsive, zero-external-dependency styles
   ========================================================================== */

:root {
  --bg-main: #0c1017;
  --bg-surface: #141b26;
  --bg-card: #1a2332;
  --bg-card-hover: #202b3d;
  --bg-input: #101620;
  
  --border-subtle: #243044;
  --border-strong: #334460;
  --border-focus: #c8ff00;

  --accent-lime: #c8ff00;
  --accent-lime-hover: #b2e600;
  --accent-lime-dim: rgba(200, 255, 0, 0.12);
  --accent-cyan: #00e5ff;
  --accent-cyan-dim: rgba(0, 229, 255, 0.12);

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-on-accent: #0c1017;

  --badge-danger-bg: rgba(239, 68, 68, 0.15);
  --badge-danger-text: #f87171;
  --badge-danger-border: rgba(239, 68, 68, 0.35);

  --badge-success-bg: rgba(34, 197, 94, 0.15);
  --badge-success-text: #4ade80;
  --badge-success-border: rgba(34, 197, 94, 0.35);

  --badge-warning-bg: rgba(245, 158, 11, 0.15);
  --badge-warning-text: #fbbf24;
  --badge-warning-border: rgba(245, 158, 11, 0.35);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 20px rgba(200, 255, 0, 0.2);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --nav-height: 64px;
  --bottom-nav-height: 68px;
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(var(--bottom-nav-height) + 24px);
  min-height: 100vh;
}

.demo-notice {
  padding: 8px 16px;
  background: var(--accent-lime);
  color: var(--text-on-accent);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 16, 23, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.brand-logo {
  width: 38px;
  height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-lime);
}

.racket-icon {
  width: 26px;
  height: 26px;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-main);
  display: block;
  line-height: 1.1;
}

.brand-name .accent {
  color: var(--accent-lime);
}

.brand-sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  font-weight: 600;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 8px;
}

.nav-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.18s ease;
}

.nav-tab:hover {
  color: var(--text-main);
  background: var(--bg-surface);
}

.nav-tab.active {
  color: var(--text-on-accent);
  background: var(--accent-lime);
}

.tab-icon {
  width: 17px;
  height: 17px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-lime);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-lime);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(200, 255, 0, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(200, 255, 0, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(200, 255, 0, 0); }
}

/* ==========================================================================
   MOBILE BOTTOM BAR
   ========================================================================== */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: rgba(14, 20, 30, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 90;
  padding: 0 8px;
}

.nav-item {
  flex: 1;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-dim);
  cursor: pointer;
  padding: 8px 0;
  transition: all 0.15s ease;
  position: relative;
}

.nav-icon-wrap {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon-wrap svg {
  width: 22px;
  height: 22px;
  transition: transform 0.15s ease;
}

.nav-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-item.active {
  color: var(--accent-lime);
}

.nav-item.active .nav-icon-wrap svg {
  transform: translateY(-2px);
}

.badge-dot {
  position: absolute;
  top: -2px;
  right: -4px;
  width: 8px;
  height: 8px;
  background: var(--accent-lime);
  border-radius: 50%;
  border: 2px solid var(--bg-main);
}

.bookings-badge {
  background: var(--accent-lime);
  color: var(--text-on-accent);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   LAYOUT & SCREENS
   ========================================================================== */

.main-content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 16px;
}

.screen-view {
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.screen-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section */
.hero-banner {
  background: linear-gradient(135deg, #151e2e 0%, #101622 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(200, 255, 0, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-lime);
  background: var(--accent-lime-dim);
  border: 1px solid rgba(200, 255, 0, 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.hero-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 8px;
}

.hero-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 18px;
  line-height: 1.45;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.highlight-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
}

.chip-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-lime);
}

.chip-lbl {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Toast Notifications */
.toast-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  animation: slideIn 0.25s ease;
}

.toast-banner.hidden {
  display: none !important;
}

.toast-banner.success {
  background: var(--badge-success-bg);
  border: 1px solid var(--badge-success-border);
  color: var(--badge-success-text);
}

.toast-banner.error {
  background: var(--badge-danger-bg);
  border: 1px solid var(--badge-danger-border);
  color: var(--badge-danger-text);
}

.toast-icon svg {
  width: 22px;
  height: 22px;
}

.toast-body {
  flex: 1;
}

.toast-title {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
}

.toast-msg {
  font-size: 0.85rem;
  color: var(--text-main);
  margin-top: 3px;
}

.toast-close {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.8;
}

.toast-close:hover {
  opacity: 1;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section Headers */
.section-header, .view-header {
  margin-bottom: 18px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.section-title, .view-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.section-subtitle, .view-subtitle {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.refresh-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.refresh-btn:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
  background: var(--bg-card);
}

/* ==========================================================================
   CLASS CARDS
   ========================================================================== */

.classes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.class-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease;
  position: relative;
}

.class-card:hover {
  border-color: var(--border-strong);
}

.class-card.featured {
  border-color: rgba(200, 255, 0, 0.4);
  box-shadow: 0 4px 20px rgba(200, 255, 0, 0.08);
}

.card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 10px;
}

.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.pill-badge.neon {
  background: var(--accent-lime-dim);
  color: var(--accent-lime);
  border: 1px solid rgba(200, 255, 0, 0.3);
}

.pill-badge.cyan {
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.pill-badge.level {
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.price-tag {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
}

.class-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 10px;
}

.class-description {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.45;
}

/* Class Metadata Items */
.class-meta-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-main);
}

.meta-icon {
  width: 16px;
  height: 16px;
  color: var(--accent-lime);
  flex-shrink: 0;
}

.meta-label {
  color: var(--text-muted);
  margin-right: 4px;
}

/* Seats Availability Progress & Visualizer */
.seats-availability-block {
  margin-bottom: 16px;
}

.seats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.seats-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.seats-status-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.seats-status-badge.available {
  background: var(--badge-success-bg);
  color: var(--badge-success-text);
  border: 1px solid var(--badge-success-border);
}

.seats-status-badge.last-seat {
  background: var(--badge-warning-bg);
  color: var(--badge-warning-text);
  border: 1px solid var(--badge-warning-border);
}

.seats-status-badge.full {
  background: var(--badge-danger-bg);
  color: var(--badge-danger-text);
  border: 1px solid var(--badge-danger-border);
}

/* Seat Circles Visualizer */
.seat-spots-visual {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.seat-spot {
  flex: 1;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.seat-spot.open {
  background: rgba(200, 255, 0, 0.1);
  border: 1px dashed var(--accent-lime);
  color: var(--accent-lime);
}

.seat-spot.taken {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  text-decoration: line-through;
}

/* Card Action Button */
.card-actions {
  margin-top: auto;
}

.book-action-btn {
  width: 100%;
  background: var(--accent-lime);
  color: var(--text-on-accent);
  border: none;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.16s ease;
  box-shadow: 0 4px 12px rgba(200, 255, 0, 0.2);
}

.book-action-btn:hover:not(:disabled) {
  background: var(--accent-lime-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(200, 255, 0, 0.3);
}

.book-action-btn:active:not(:disabled) {
  transform: translateY(0);
}

.book-action-btn:disabled {
  background: var(--bg-surface);
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
  box-shadow: none;
  cursor: not-allowed;
}

/* ==========================================================================
   RESERVATION FORM CARD
   ========================================================================== */

.reservation-card-wrapper {
  margin-top: 10px;
}

.reservation-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
}

.reservation-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.header-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-lime-dim);
  border: 1px solid rgba(200, 255, 0, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-lime);
  flex-shrink: 0;
}

.reserve-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.reserve-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.reservation-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.select-wrapper {
  position: relative;
}

select, input[type="text"] {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.94rem;
  padding: 13px 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  cursor: pointer;
}

select:focus, input[type="text"]:focus {
  border-color: var(--accent-lime);
  box-shadow: 0 0 0 3px rgba(200, 255, 0, 0.15);
}

.select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.7rem;
  color: var(--text-dim);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
  pointer-events: none;
}

.input-wrapper input {
  padding-left: 42px;
}

.input-hint {
  font-size: 0.74rem;
  color: var(--text-dim);
}

.class-summary-pill {
  font-size: 0.8rem;
  padding: 8px 12px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-feedback {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  line-height: 1.4;
  animation: slideIn 0.2s ease;
}

.form-feedback.error {
  background: var(--badge-danger-bg);
  border: 1px solid var(--badge-danger-border);
  color: var(--badge-danger-text);
}

.form-feedback.success {
  background: var(--badge-success-bg);
  border: 1px solid var(--badge-success-border);
  color: var(--badge-success-text);
}

.submit-btn {
  background: var(--accent-lime);
  color: var(--text-on-accent);
  border: none;
  font-size: 1rem;
  font-weight: 800;
  padding: 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.18s ease;
  margin-top: 6px;
}

.submit-btn:hover:not(:disabled) {
  background: var(--accent-lime-hover);
  box-shadow: 0 4px 16px rgba(200, 255, 0, 0.3);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #0c1017;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   BOOKINGS SCREEN
   ========================================================================== */

.search-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
  pointer-events: none;
}

.search-input-wrap input {
  padding-left: 42px;
  padding-right: 36px;
}

.clear-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
}

.clear-btn:hover {
  color: var(--text-main);
}

.search-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}

.search-btn:hover {
  background: var(--border-subtle);
  border-color: var(--border-strong);
}

.search-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 10px;
}

.bookings-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.booking-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.booking-item-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  background: var(--accent-lime);
  border-radius: 0 4px 4px 0;
}

.booking-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.booking-code-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  color: var(--accent-lime);
  letter-spacing: 0.05em;
}

.booking-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--badge-success-text);
  background: var(--badge-success-bg);
  border: 1px solid var(--badge-success-border);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.booking-player-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.booking-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  font-size: 0.84rem;
}

.booking-detail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.booking-detail-row svg {
  width: 15px;
  height: 15px;
  color: var(--accent-lime);
  flex-shrink: 0;
}

.booking-detail-row strong {
  color: var(--text-main);
  font-weight: 600;
}

.booking-timestamp {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 44px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-icon {
  width: 52px;
  height: 52px;
  color: var(--text-dim);
  background: var(--bg-surface);
  padding: 12px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
}

.empty-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.empty-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  max-width: 380px;
  line-height: 1.4;
}

.empty-action-btn {
  margin-top: 6px;
  background: var(--accent-lime);
  color: var(--text-on-accent);
  border: none;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

/* ==========================================================================
   CLUB & COACHES SCREEN
   ========================================================================== */

.club-overview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.club-brand-header {
  margin-bottom: 16px;
}

.club-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
}

.club-tagline {
  font-size: 0.9rem;
  color: var(--accent-lime);
  font-weight: 600;
  margin-top: 2px;
}

.club-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.info-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent-lime);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-item strong {
  color: var(--text-main);
}

.amenities-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.amenities-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.amenity-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
}

.amenity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-lime);
  flex-shrink: 0;
}

.amenity-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.amenity-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Coaches Grid */
.coaches-heading {
  margin-bottom: 16px;
}

.coaches-heading h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.coaches-heading p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.coaches-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.coach-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.coach-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.coach-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-card) 100%);
  border: 2px solid var(--accent-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--accent-lime);
  box-shadow: 0 0 12px rgba(200, 255, 0, 0.2);
  flex-shrink: 0;
}

.coach-header-info {
  flex: 1;
}

.coach-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
}

.coach-role {
  font-size: 0.82rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.coach-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.star-rating {
  color: #fbbf24;
  font-weight: 700;
}

.coach-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.coach-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spec-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.coach-book-btn {
  margin-top: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.coach-book-btn:hover {
  background: var(--accent-lime);
  color: var(--text-on-accent);
  border-color: var(--accent-lime);
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  gap: 12px;
  color: var(--text-muted);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent-lime);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ==========================================================================
   DESKTOP RESPONSIVE BREAKPOINTS (>= 768px)
   ========================================================================== */

@media (min-width: 768px) {
  body {
    padding-bottom: 40px;
  }

  .desktop-nav {
    display: flex;
  }

  .bottom-nav {
    display: none;
  }

  .classes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .club-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .amenities-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .coaches-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .booking-details-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Vortex refinement: readable task rhythm, consistent interaction surfaces. */
:root {
  --text-muted: #b8c5d5;
  --text-dim: #a5b4c7;
  --border-subtle: #344358;
  --border-strong: #526580;
}

html { scroll-behavior: smooth; }
body { background: #0b111a; }
::selection { background: var(--accent-lime); color: var(--text-on-accent); }
button, input, select { -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 200;
  transform: translateY(-150%);
  background: var(--accent-lime);
  color: var(--text-on-accent);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

:is(button, a, select, input):focus-visible {
  outline: 3px solid var(--accent-lime);
  outline-offset: 3px;
}

.demo-notice {
  padding: 9px 16px;
  line-height: 1.35;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}
.main-content { padding-top: clamp(24px, 4vw, 48px); padding-bottom: 56px; }
.hero-banner {
  background: linear-gradient(120deg, #1b2a3c 0%, #141d2a 62%, #111924 100%);
  border-color: #3b4e65;
  padding: clamp(28px, 5vw, 56px);
  margin-bottom: clamp(32px, 5vw, 56px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}
.hero-banner::after {
  width: 42%;
  height: 180%;
  top: -40%;
  right: -18%;
  border: 1px solid rgba(200, 255, 0, 0.15);
  border-radius: 50%;
  background: transparent;
  transform: rotate(-22deg);
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 13ch;
  margin-bottom: 20px;
  text-wrap: balance;
}
.hero-desc { font-size: clamp(1rem, 1.5vw, 1.1rem); line-height: 1.65; max-width: 58ch; margin-bottom: 28px; }
.hero-highlights { gap: 0; border-top: 1px solid #3b4e65; padding-top: 20px; }
.highlight-chip {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 4px 20px 4px 0;
  margin-right: 20px;
  min-width: 120px;
}
.highlight-chip:not(:last-child) { border-right: 1px solid #3b4e65; }
.chip-val { font-size: 1rem; }
.chip-lbl { font-size: 0.72rem; color: var(--text-muted); }

.section-header, .view-header { margin-bottom: 22px; }
.section-title, .view-title { font-size: clamp(1.5rem, 2.8vw, 2rem); letter-spacing: -0.025em; line-height: 1.2; }
.section-subtitle, .view-subtitle { margin-top: 6px; line-height: 1.5; }
.classes-grid { gap: 20px; margin-bottom: clamp(36px, 5vw, 60px); }
.class-card { padding: clamp(20px, 3vw, 28px); box-shadow: none; }
.class-card.featured { box-shadow: none; }
.class-title { font-size: 1.35rem; letter-spacing: -0.015em; margin-bottom: 8px; }
.class-description { line-height: 1.6; min-height: 2.8em; }
.class-meta-list { padding: 14px 0; border: 0; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); border-radius: 0; background: transparent; }
.meta-item { line-height: 1.45; }
.seats-availability-block { margin-top: 4px; }
.book-action-btn, .submit-btn { min-height: 48px; box-shadow: none; }
.book-action-btn:hover:not(:disabled), .submit-btn:hover:not(:disabled) { box-shadow: 0 8px 18px rgba(200, 255, 0, 0.12); }
.refresh-btn, .search-btn, .coach-book-btn, .empty-action-btn { min-height: 44px; }
.refresh-btn { padding-inline: 16px; white-space: nowrap; }

.reservation-card-wrapper { scroll-margin-top: calc(var(--nav-height) + 24px); }
.reservation-card { padding: clamp(24px, 4vw, 36px); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18); }
.reservation-header { margin-bottom: 24px; padding-bottom: 20px; }
.reserve-title { font-size: clamp(1.3rem, 2.4vw, 1.65rem); letter-spacing: -0.02em; }
.reserve-subtitle { margin-top: 4px; line-height: 1.5; }
.reservation-form { gap: 22px; }
.form-group label { color: var(--text-main); }
select, input[type="text"] { min-height: 48px; font-size: 1rem; }
input::placeholder { color: #a5b4c7; opacity: 1; }
.input-hint { font-size: 0.8rem; color: var(--text-muted); line-height: 1.45; }
.submit-btn { margin-top: 2px; }

.view-header { margin-bottom: 28px; }
.search-card, .club-overview-card, .booking-item-card, .coach-card { box-shadow: none; }
.search-card { padding: clamp(18px, 3vw, 24px); margin-bottom: 24px; }
.clear-btn { min-width: 40px; min-height: 40px; right: 4px; color: var(--text-muted); }
.search-meta, .booking-timestamp { color: var(--text-muted); }
.booking-item-card::before { width: 2px; }
.booking-player-name { font-size: 1.25rem; }
.booking-details-grid { background: transparent; border-top: 1px solid var(--border-subtle); padding: 14px 0 0; }
.coaches-heading { margin-bottom: 22px; }
.coaches-heading h2 { font-size: 1.5rem; }
.coach-bio { line-height: 1.6; }
.coach-avatar { box-shadow: none; }
.status-indicator .pulse-dot { animation: none; box-shadow: none; }

[hidden] { display: none !important; }
.membership-panel {
  margin: 0 0 36px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}
.membership-heading h2 { font-size: 1.45rem; letter-spacing: -0.02em; }
.membership-heading p { max-width: 68ch; margin-top: 8px; color: var(--text-muted); line-height: 1.55; }
.membership-status { margin-top: 20px; color: var(--text-main); font-weight: 600; }
.membership-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.membership-actions button {
  min-height: 48px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}
.membership-primary { border: 1px solid var(--accent-lime); background: var(--accent-lime); color: var(--text-on-accent); }
.membership-primary:hover:not(:disabled) { background: var(--accent-lime-hover); }
.membership-secondary { border: 1px solid var(--border-strong); background: var(--bg-card); color: var(--text-main); }
.membership-secondary:hover:not(:disabled) { background: var(--bg-card-hover); }
.membership-actions button:disabled { opacity: 0.55; cursor: not-allowed; }
.membership-receipt { max-width: 34rem; margin-top: 24px; }
.membership-receipt label { display: block; margin-bottom: 8px; font-weight: 700; }
.membership-receipt input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-input); color: var(--text-main); }
.membership-receipt p { margin-top: 8px; color: var(--text-muted); font-size: 0.85rem; }
.membership-plan { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border-subtle); }
.membership-plan h3 { font-size: 1.15rem; }
.membership-plan p { margin-top: 8px; color: var(--text-muted); }
.membership-plan ol { margin: 14px 0 0 22px; line-height: 1.8; }

@media (min-width: 768px) {
  .main-content { max-width: 1160px; padding-inline: 28px; }
  .nav-container { max-width: 1160px; padding-inline: 28px; }
  .classes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reservation-card { max-width: 820px; margin-inline: auto; }
  .search-card { max-width: 820px; }
}
@media (max-width: 767px) {
  body { padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 28px); }
  .bottom-nav { height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
  .nav-item { min-height: 48px; justify-content: center; }
  .hero-highlights { gap: 12px 0; }
  .highlight-chip { width: 50%; min-width: 0; margin: 0; padding: 4px 10px 4px 0; }
  .highlight-chip:nth-child(2) { border-right: 0; padding-left: 10px; }
  .highlight-chip:nth-child(3) { border-right: 0; }
  .section-header { align-items: flex-start; gap: 12px; }
  .search-form { flex-wrap: wrap; }
  .search-input-wrap { flex-basis: 100%; }
  .search-btn { flex: 1; }
}
@media (max-width: 360px) {
  .status-indicator { display: none; }
  .highlight-chip { width: 100%; padding-left: 0 !important; border-right: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
.player-access { padding: 20px; border: 1px solid rgba(200,255,0,.28); border-radius: 14px; background: #142238; margin-bottom: 24px; }
.player-access-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.player-access h3 { margin: 0 0 6px; color: #eef8ff; font-size: 1.2rem; }
.player-access p { color: #c7d9e5; margin: 0 0 12px; }
.player-auth-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.player-auth-fields label { display: grid; gap: 7px; color: #edf8ff; font-weight: 600; }
.player-auth-fields input { width: 100%; min-height: 44px; border: 1px solid #6b8798; border-radius: 9px; padding: 10px 12px; background: #101b2d; color: #fff; }
.player-auth-fields input:focus-visible, .player-access button:focus-visible { outline: 2px solid #c8ff00; outline-offset: 3px; }
.player-auth-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.player-auth-actions button { min-height: 44px; }
#playerAuthFeedback:not(:empty) { margin-top: 12px; color: #ffcfb8; }
@media (max-width: 600px) { .player-auth-fields { grid-template-columns: 1fr; } .player-access-heading { flex-direction: column; } }
