/* ==========================================================================
   RacketSheet.com - Design System (Premium Dark Theme + Landing)
   ========================================================================== */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

:root {
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Core Colors */
  --bg-base:            hsl(222, 28%, 6%);
  --bg-surface:         hsl(222, 22%, 11%);
  --bg-surface-elevated:hsl(222, 18%, 17%);
  --bg-glass:           rgba(20, 25, 42, 0.6);

  --accent:      hsl(84, 82%, 52%);       /* lime-green */
  --accent-dim:  hsl(84, 82%, 38%);
  --accent-glow: hsla(84, 82%, 52%, 0.12);
  --primary:     hsl(245, 78%, 62%);      /* indigo */
  --primary-glow:hsla(245, 78%, 62%, 0.18);

  --text-primary:   hsl(0, 0%, 97%);
  --text-secondary: hsl(222, 12%, 68%);
  --text-muted:     hsl(222, 10%, 46%);

  --border:       hsl(222, 15%, 20%);
  --border-light: hsl(222, 12%, 28%);

  --success:      hsl(145, 78%, 44%);
  --success-glow: hsla(145, 78%, 44%, 0.14);
  --warning:      hsl(38, 90%, 50%);
  --warning-glow: hsla(38, 90%, 50%, 0.14);
  --danger:       hsl(355, 82%, 50%);
  --danger-glow:  hsla(355, 82%, 50%, 0.14);

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.6);

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --ease: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { cursor: pointer; }

/* ===================== BG GLOWS ===================== */
.bg-glow-1, .bg-glow-2, .bg-glow-3 {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.bg-glow-1 {
  top: -15%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, hsla(245, 78%, 62%, 0.08) 0%, transparent 70%);
}
.bg-glow-2 {
  bottom: 5%; left: -15%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, hsla(84, 82%, 52%, 0.07) 0%, transparent 70%);
}
.bg-glow-3 {
  top: 40%; left: 35%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, hsla(245, 78%, 62%, 0.04) 0%, transparent 70%);
}

/* ===================== SCREENS ===================== */
.screen {
  display: none;
  position: relative;
  z-index: 1;
  min-height: 100vh;
}
.screen.active { display: block; }

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.screen.active { animation: fadeIn 0.4s ease-out; }

/* ==========================================================================
   BUDZ SPORTS CENTER — Hero + Landing Styles
   ========================================================================== */

/* Full-screen Hero */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.45) 40%,
    rgba(0,0,0,0.75) 70%,
    var(--bg-base) 100%
  );
}

.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 24px;
  max-width: 680px;
}

.hero-logo {
  display: block;
  max-width: 520px;
  width: 90vw;
  height: auto;
  margin: 0 auto 32px;
  filter: drop-shadow(0 8px 40px rgba(0,0,0,0.6));
  transition: transform 0.3s ease;
}

.hero-logo:hover {
  transform: scale(1.02);
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  margin-bottom: 36px;
}

.hero-tagline span {
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-base);
  box-shadow: 0 0 30px var(--accent-glow);
}
.btn-primary:hover {
  background: hsl(84, 82%, 58%);
  transform: translateY(-2px);
  box-shadow: 0 0 50px hsla(84, 82%, 52%, 0.35);
}

.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: float 2.5s ease-in-out infinite;
}

.hero-scroll .arrow {
  width: 18px;
  height: 18px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  opacity: 0.5;
}

/* About Section */
#about {
  padding: 80px 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: all 0.25s ease;
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Landing Footer */
.landing-footer {
  text-align: center;
  padding: 48px 24px 40px;
  border-top: 1px solid var(--border);
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 6px;
}

.footer-links {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}
.footer-links a:hover { color: var(--accent); }

.footer-sep { margin: 0 8px; }

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 10px;
}
.footer-copy a { color: var(--accent); text-decoration: none; font-weight: 600; }

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

.landing-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Landing Nav */
.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 11, 20, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  margin-bottom: 20px;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

.logo-wordmark {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.logo-wordmark.small { font-size: 16px; }

.logo-dot {
  color: var(--accent);
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.landing-nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: var(--ease);
}

.landing-nav-links a:hover { color: var(--text-primary); }

.btn-nav-signin {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 8px 18px;
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  transition: var(--ease);
}

.btn-nav-signin:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--accent);
}

/* Hero Section */
.hero-section {
  padding: 80px 0 100px;
  text-align: center;
  position: relative;
}

.hero-eyebrow { margin-bottom: 24px; }

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(163, 230, 53, 0.08);
  border: 1px solid rgba(163, 230, 53, 0.2);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
}
.eyebrow-coming {
  opacity: 0.55;
  font-weight: 500;
  color: var(--text-muted);
}

.hero-headline {
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.headline-accent {
  background: linear-gradient(90deg, var(--accent), hsl(168, 80%, 60%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.btn-hero-primary {
  background: var(--accent);
  border: none;
  color: hsl(222, 28%, 6%);
  padding: 16px 32px;
  border-radius: var(--r-sm);
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--ease);
  box-shadow: 0 4px 20px rgba(163, 230, 53, 0.25);
}

.btn-hero-primary svg { width: 18px; height: 18px; }

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(163, 230, 53, 0.4);
}

.btn-hero-secondary {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 16px 32px;
  border-radius: var(--r-sm);
  font-size: 16px;
  font-weight: 600;
  transition: var(--ease);
  display: flex;
  align-items: center;
}

.btn-hero-secondary:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 24px 40px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: inline-flex;
  margin: 0 auto;
}

.hero-stat {
  text-align: center;
}

.stat-val {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--accent);
}

.stat-lbl {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* How It Works */
.how-section {
  padding: 80px 0;
}

.section-heading {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.5px;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.how-step {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px;
  text-align: center;
  transition: var(--ease);
}

.how-step:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.how-step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.how-step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Venue Section */
.venue-section {
  padding: 40px 0 80px;
}

.venue-card-featured {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  transition: var(--ease);
}
.venue-card-featured.is-loading {
  display: block;
  min-height: 100px;
}
.venue-more {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
}
.venue-more a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.venue-more a:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  .venue-card-featured {
    grid-template-columns: 1fr;
  }
}

.venue-card-badge {
  display: inline-block;
  background: var(--success-glow);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: hsl(145, 78%, 55%);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.venue-card-info h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.venue-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.venue-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.venue-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vd-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vd-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.vd-val.accent { color: var(--accent); }
.vd-val.warning { color: var(--warning); }

.btn-book-venue {
  background: var(--accent);
  border: none;
  color: var(--bg-base);
  padding: 14px 28px;
  border-radius: var(--r-sm);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  transition: var(--ease);
  width: 100%;
}

.btn-book-venue:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(163, 230, 53, 0.3);
}

/* Court Illustration */
.venue-card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.court-illustration {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(163, 230, 53, 0.04), rgba(99, 102, 241, 0.08));
  border: 2px solid var(--accent);
  border-radius: var(--r-md);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.court-lines {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(163, 230, 53, 0.3);
  border-radius: 4px;
}

.court-lines::before, .court-lines::after {
  content: '';
  position: absolute;
  background: rgba(163, 230, 53, 0.2);
}

.court-lines::before {
  width: 1px;
  top: 0; bottom: 0;
  left: 50%;
}

.court-lines::after {
  height: 1px;
  left: 0; right: 0;
  top: 50%;
}

.court-net {
  width: 60%;
  height: 3px;
  background: rgba(163, 230, 53, 0.5);
  position: absolute;
  top: 50%;
  left: 20%;
  border-radius: 4px;
}

.court-label-badge {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-base);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  white-space: nowrap;
}

/* Partners / Venue Owners Section (Tabs) */
.partners-section {
  padding: 60px 0 80px;
}
.partners-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  background: var(--bg-surface-elevated);
  border-radius: 12px;
  padding: 5px;
  max-width: 600px;
  margin: 0 auto 32px;
}
.partners-tab {
  flex: 1;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--ease);
  white-space: nowrap;
}
.partners-tab:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}
.partners-tab.active {
  background: var(--accent);
  color: var(--bg-base);
  font-weight: 700;
}
.partners-panel {
  display: none;
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 32px 36px;
  text-align: center;
  animation: fadeIn 0.2s ease;
}
.partners-panel.active {
  display: block;
}
.partners-panel p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
}
.partners-email {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.partners-email:hover {
  text-decoration: underline;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Landing Footer */
.landing-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   LOGIN SCREEN
   ========================================================================== */

.login-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 0;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.login-card-top {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(163, 230, 53, 0.04));
  padding: 36px 36px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.google-logo-area {
  margin-bottom: 20px;
}

.google-logo { width: 40px; height: 40px; }

.login-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

/* Login Divider */
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Google Sign-in button container */
.g_id_signin {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

/* Account Picker */
.account-picker {
  padding: 24px;
}

.account-picker-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 14px;
}

.google-account-btn {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: var(--ease);
  margin-bottom: 10px;
  text-align: left;
}

.google-account-btn:hover {
  border-color: var(--border-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.google-account-btn:last-of-type {
  margin-bottom: 0;
}

.account-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.player-avatar   { background: linear-gradient(135deg, hsl(245, 78%, 62%), hsl(268, 78%, 62%)); }
.operator-avatar { background: linear-gradient(135deg, hsl(38, 90%, 50%), hsl(22, 90%, 55%)); }
.admin-avatar    { background: linear-gradient(135deg, hsl(355, 82%, 50%), hsl(315, 70%, 50%)); }

.account-info {
  flex: 1;
}

.account-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.account-email {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.account-role-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 50px;
}

.account-role-tag.player   { background: rgba(99,102,241,0.12); color: hsl(245,78%,72%); border: 1px solid rgba(99,102,241,0.2); }
.account-role-tag.operator { background: rgba(245,158,11,0.12); color: hsl(38,90%,60%); border: 1px solid rgba(245,158,11,0.2); }
.account-role-tag.admin    { background: rgba(239,68,68,0.12);  color: hsl(355,82%,65%); border: 1px solid rgba(239,68,68,0.2); }

.login-disclaimer {
  padding: 16px 24px 24px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
  border-top: 1px solid var(--border);
}

.login-disclaimer a {
  color: var(--accent);
}

/* ==========================================================================
   APP HEADER (post-login)
   ========================================================================== */

.app-header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: rgba(9, 11, 20, 0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

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

.btn-back-home {
  width: 36px;
  height: 36px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--ease);
}

.btn-back-home svg { width: 18px; height: 18px; fill: currentColor; }

.btn-back-home:hover { color: var(--accent); border-color: var(--accent); }

.header-logo-text {
  display: flex;
  flex-direction: column;
}

.header-venue-label {
  font-size: 11px;
  color: var(--text-muted);
}

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

.header-user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 14px 6px 8px;
}

.user-chip-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-chip-info {
  display: flex;
  flex-direction: column;
}

.user-chip-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.user-chip-role {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 1px;
}

.btn-signout {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--ease);
}

.btn-signout svg { width: 18px; height: 18px; fill: currentColor; }
.btn-signout:hover { color: var(--danger); border-color: var(--danger); }

/* ==========================================================================
   APP BODY - shared layout
   ========================================================================== */

.app-body {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 120px;
}

.role-section { display: none; }
.role-section.active {
  display: flex;
  flex-direction: column;
  gap: 32px;
  animation: fadeIn 0.4s ease-out;
}

/* ==========================================================================
   PLAYER VIEW
   ========================================================================== */

.hero-banner {
  background: linear-gradient(135deg, rgba(30,40,70,0.5), rgba(18,22,35,0.5));
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(163,230,53,0.03), transparent 60%);
  pointer-events: none;
}

.hero-banner h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.hero-banner p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
}

.rates-ribbon {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.rate-tag {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 20px;
}

.rate-tag.night { border-color: rgba(245,158,11,0.25); }

.tag-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.tag-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
}

.rate-tag.night .tag-price { color: var(--warning); }

/* Booking Controls */
.booking-controls-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
}

.card-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
}

@media (max-width: 768px) {
  .card-grid { grid-template-columns: 1fr; }
}

.control-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Sport Cards */
.sport-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sport-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--ease);
}

.sport-card:hover { transform: translateY(-2px); border-color: var(--border-light); }
.sport-card.active { border-color: var(--primary); background: rgba(99,102,241,0.07); }

.sport-card-glow {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: transparent;
  transition: var(--ease);
}

.sport-card.active .sport-card-glow {
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.sport-icon-wrapper {
  width: 46px; height: 46px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--text-muted);
  transition: var(--ease);
}

.sport-card.active .sport-icon-wrapper {
  color: var(--accent);
  background: rgba(163,230,53,0.08);
  border-color: rgba(163,230,53,0.2);
}

.sport-icon { width: 22px; height: 22px; fill: currentColor; }
.sport-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.sport-card span { font-size: 12px; color: var(--text-muted); }
.sport-card.disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
  filter: grayscale(0.6);
}
.sport-card.disabled:hover {
  transform: none;
  border-color: var(--border);
}
.sport-card-coming-soon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: var(--bg-base);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Date Picker */
.date-input-wrapper { margin-bottom: 12px; }

.date-picker-input {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: var(--ease);
}

.date-picker-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.date-picker-input.compact { padding: 8px 12px; font-size: 13px; width: auto; }

.quick-dates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }

.quick-date-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 7px 12px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-family: var(--font-main);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--ease);
}

.quick-date-btn:hover { background: var(--bg-surface-elevated); border-color: var(--border-light); }
.quick-date-btn.active { background: var(--text-primary); color: var(--bg-base); border-color: var(--text-primary); }

/* Court Tabs */
.court-schedule-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.section-title-bar h3 { font-size: 18px; font-weight: 700; }
.hint { font-size: 12px; color: var(--text-muted); }

.court-selector-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
}

.court-tab {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 9px 18px;
  border-radius: 50px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--ease);
}

.court-tab:hover { border-color: var(--border-light); color: var(--text-primary); }
.court-tab.active { background: rgba(163,230,53,0.08); color: var(--accent); border-color: var(--accent); }

/* Slots Grid */
.schedule-grid-container {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.slot-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: var(--font-main);
  transition: var(--ease);
  position: relative;
  overflow: hidden;
}

.slot-btn:hover:not(:disabled):not(.selected) {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.slot-btn .slot-time { font-size: 12px; font-weight: 700; color: var(--text-primary); }
.slot-btn .slot-price { font-size: 11px; font-weight: 600; color: var(--text-muted); }

.slot-btn.selected {
  background: rgba(163,230,53,0.12);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(163,230,53,0.15);
}

.slot-btn.selected .slot-time { color: var(--accent); }
.slot-btn.selected .slot-price { color: var(--text-primary); font-weight: 700; }

.slot-btn:disabled {
  background: rgba(0,0,0,0.2);
  border-color: var(--border);
  cursor: not-allowed;
  opacity: 0.4;
}

.slot-btn:disabled::after { content: '🔒'; position: absolute; top: 3px; right: 4px; font-size: 9px; }
.slot-btn:disabled .slot-time { color: var(--text-muted); }
.slot-btn:disabled .slot-price { text-decoration: line-through; }

.slot-btn.expired {
  opacity: 0.3;
  filter: grayscale(1) blur(0.5px);
  cursor: not-allowed;
  background: rgba(0,0,0,0.3);
  border-color: var(--border);
}
.slot-btn.expired::after { content: '⏰'; position: absolute; top: 3px; right: 4px; font-size: 9px; }

.slot-btn.pending {
  background: rgba(245,158,11,0.05);
  border-color: rgba(245,158,11,0.35);
  cursor: not-allowed;
}

.slot-btn.pending::after { content: '⏳'; position: absolute; top: 3px; right: 4px; font-size: 9px; }
.slot-btn.pending .slot-time { color: hsl(38,90%,60%); }
.slot-btn.pending .slot-price { color: var(--text-muted); }

/* Booking Drawer */
.booking-drawer {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  background: rgba(12,14,26,0.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  z-index: 400;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.booking-drawer.active { transform: translateY(0); }

.drawer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

@media (max-width: 640px) { .drawer-content { flex-direction: column; gap: 12px; } }

.drawer-summary { flex-grow: 1; }
.summary-title { display: block; font-size: 15px; font-weight: 700; }
.summary-details { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.drawer-pricing { text-align: right; }
.pricing-label { display: block; font-size: 10px; text-transform: uppercase; color: var(--text-muted); }
.pricing-total { font-size: 24px; font-weight: 800; color: var(--accent); }

.checkout-btn {
  background: linear-gradient(95deg, var(--accent-dim), var(--accent));
  border: none;
  color: var(--bg-base);
  padding: 14px 24px;
  border-radius: var(--r-sm);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(163,230,53,0.2);
  transition: var(--ease);
  white-space: nowrap;
}

.checkout-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(163,230,53,0.35);
}

.checkout-btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.icon-arrow { width: 18px; height: 18px; }

/* Bookings List */
.player-bookings-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
}

.section-header { margin-bottom: 20px; }
.section-header h3 { font-size: 18px; font-weight: 700; }
.section-header .desc, p.desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
  margin-bottom: 16px;
}

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

.no-data {
  text-align: center;
  padding: 40px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  color: var(--text-muted);
  font-size: 14px;
}

.booking-item-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: var(--ease);
}

.booking-item-card:hover { border-color: var(--border-light); }

.booking-info-main { display: flex; align-items: center; gap: 14px; }

.sport-badge {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
  flex-shrink: 0;
}

.sport-badge.badminton { background: rgba(99,102,241,0.12); color: hsl(245,78%,72%); border: 1px solid rgba(99,102,241,0.2); }
.sport-badge.pickleball { background: rgba(163,230,53,0.12); color: var(--accent); border: 1px solid rgba(163,230,53,0.2); }

.booking-text-details h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.booking-text-details p { font-size: 12px; color: var(--text-muted); }

.booking-payment-status { display: flex; align-items: center; gap: 16px; }
.booking-price { font-size: 15px; font-weight: 700; }

/* Status Badges */
.badge {
  padding: 5px 10px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge.pending  { background: var(--warning-glow); color: hsl(38,90%,60%);  border: 1px solid rgba(245,158,11,0.3); }
.badge.approved { background: var(--success-glow); color: hsl(145,78%,55%); border: 1px solid rgba(34,197,94,0.3); }
.badge.rejected { background: var(--danger-glow);  color: hsl(355,82%,62%); border: 1px solid rgba(239,68,68,0.3); }

/* ==========================================================================
   OPERATOR / ADMIN - SHARED DASHBOARD STYLES
   ========================================================================== */

.dashboard-header-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 600px) { .dashboard-header-summary { flex-direction: column; align-items: stretch; } }

.admin-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
}

.operator-profile-select { display: flex; flex-direction: column; gap: 4px; }

.small-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.operator-dropdown {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  min-width: 240px;
}

.operator-dropdown:focus { border-color: var(--accent); }
.operator-dropdown.compact { padding: 6px 10px; font-size: 12px; min-width: auto; }

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.stats-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.stats-card.highlight {
  border-color: rgba(163,230,53,0.25);
  background: linear-gradient(135deg, var(--bg-surface), rgba(163,230,53,0.02));
}

.stats-card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.stats-card-val {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 8px 0;
}

.stats-card-desc { font-size: 11px; color: var(--text-muted); margin-top: auto; }

.text-accent  { color: var(--accent); }
.text-success { color: hsl(145,78%,50%); }
.text-danger  { color: hsl(355,82%,55%); }
.text-warning { color: hsl(38,90%,50%); }
.text-muted   { color: var(--text-muted); }

/* Operator Matrix */
.operator-schedule-card,
.operator-bookings-card,
.admin-verification-section,
.admin-history-card,
.player-bookings-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
}

.op-matrix-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.matrix-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}

.op-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.op-matrix-table th,
.op-matrix-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  min-width: 95px;
}

.op-matrix-table th {
  background: var(--bg-surface-elevated);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.op-matrix-table td.time-col {
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.01);
}

.op-matrix-table tr:last-child td { border-bottom: none; }

.matrix-slot-status {
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  display: block;
}

.matrix-slot-status.free { background: rgba(255,255,255,0.02); color: var(--text-muted); }
.matrix-slot-status.booked-approved { background: rgba(34,197,94,0.12); color: hsl(145,78%,55%); }
.matrix-slot-status.booked-pending { background: rgba(245,158,11,0.12); color: hsl(38,90%,55%); }

/* Data Tables */
.table-container { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.data-table th { background: var(--bg-surface-elevated); font-weight: 700; color: var(--text-secondary); }
.data-table tbody tr:hover { background: rgba(255,255,255,0.01); }
.font-mono { font-family: monospace; font-size: 12px; }

/* Table Pagination */
.table-pagination {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 0 4px;
  font-size: 13px;
}
.page-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.page-btn:hover:not(:disabled) {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: #fff;
}
.page-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.page-info {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}

/* ==========================================================================
   ADMIN VERIFICATION QUEUE
   ========================================================================== */

.verification-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.verification-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--ease);
}

.verification-card:hover { border-color: var(--border-light); box-shadow: var(--shadow-md); }

.v-card-header { display: flex; justify-content: space-between; align-items: flex-start; }
.v-card-title h4 { font-size: 15px; font-weight: 700; }
.v-card-title span { font-size: 11px; color: var(--text-muted); }

.v-details-box {
  background: rgba(0,0,0,0.15);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.v-detail-row { display: flex; justify-content: space-between; }
.v-detail-row .lbl { color: var(--text-muted); }
.v-detail-row .val { font-weight: 600; }

.v-gcash-proof { border-top: 1px solid var(--border); padding-top: 12px; }
.v-gcash-proof p { font-size: 12px; margin-bottom: 8px; }

.receipt-btn-trigger {
  background: rgba(99,102,241,0.08);
  border: 1px dashed hsl(245,78%,62%);
  color: hsl(245,78%,75%);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  width: 100%;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--ease);
}

.receipt-btn-trigger:hover { background: rgba(99,102,241,0.16); color: #fff; }

.v-actions { display: flex; gap: 10px; }

.btn-v-approve, .btn-v-reject {
  flex: 1;
  border: none;
  border-radius: var(--r-sm);
  padding: 10px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--ease);
}

.btn-v-approve {
  background: var(--success);
  color: var(--bg-base);
}

.btn-v-approve:hover {
  background: hsl(145,78%,36%);
  box-shadow: 0 4px 12px rgba(34,197,94,0.25);
}

.btn-v-reject {
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
}

.btn-v-reject:hover { background: var(--danger); color: #fff; }

.table-action-btn {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-family: var(--font-main);
  cursor: pointer;
  transition: var(--ease);
}

.table-action-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ==========================================================================
   DIALOGS & MODALS
   ========================================================================== */

dialog {
  background: rgba(12, 14, 26, 0.97);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  color: var(--text-primary);
  margin: auto;
  outline: none;
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  width: 90%;
}

dialog::backdrop { background: rgba(0,0,0,0.75); backdrop-filter: blur(4px); }

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.dialog-header h2 { font-size: 18px; font-weight: 700; }

.dialog-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.dialog-close:hover { color: var(--text-primary); }

.dialog-body { padding: 24px; }

/* Checkout Breakdown */
.checkout-breakdown {
  background: rgba(0,0,0,0.15);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  margin-bottom: 20px;
}

.checkout-breakdown h4 {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.summary-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.summary-list li {
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 15px;
}

.pricing-row span:last-child { color: var(--accent); }

/* GCash Info Box */
.gcash-payment-info {
  background: rgba(0,93,255,0.05);
  border: 1px solid rgba(0,93,255,0.2);
  border-radius: var(--r-md);
  padding: 16px;
  margin-bottom: 20px;
}

.gcash-brand-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.gcash-logo-text { font-size: 20px; font-weight: 900; color: hsl(212,100%,50%); font-style: italic; }
.gcash-merchant-tag { font-size: 10px; background: hsl(212,100%,50%); color: #fff; padding: 2px 8px; border-radius: 50px; font-weight: 700; }

.gcash-details-grid { display: flex; flex-direction: column; gap: 6px; font-size: 14px; margin-bottom: 10px; }
.gcash-details-grid .g-label { color: var(--text-secondary); }
.gcash-details-grid .g-val { font-weight: 700; margin-left: 8px; }

.gcash-instructions {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
  border-top: 1px solid rgba(0,93,255,0.15);
  padding-top: 10px;
}

/* GCash mobile action buttons */
.gcash-action-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.btn-gcash-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border-light);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-gcash-action:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--accent);
}
.btn-gcash-action:active {
  transform: scale(0.96);
}
.btn-gcash-open {
  background: var(--accent);
  color: hsl(222, 28%, 6%);
  border-color: var(--accent);
  font-weight: 700;
}
.btn-gcash-open:hover {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
  color: hsl(222, 28%, 6%);
}
.gcash-copied-toast {
  text-align: center;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 6px;
  transition: opacity 0.3s;
}
.gcash-copied-toast.hidden { opacity: 0; }
@media (max-width: 480px) {
  .gcash-action-row { gap: 6px; }
  .btn-gcash-action { padding: 10px 6px; font-size: 12px; gap: 4px; }
  .btn-gcash-action svg { width: 14px; height: 14px; }
}

/* Payment Form */
.payment-submission-form { display: flex; flex-direction: column; gap: 14px; }

.form-field { display: flex; flex-direction: column; gap: 5px; }

.form-field label { font-size: 12px; font-weight: 600; color: var(--text-secondary); }

.form-field input,
.form-field textarea {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
  transition: var(--ease);
}

.form-field input:focus,
.form-field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }

.dialog-actions { display: flex; gap: 10px; margin-top: 4px; }

.btn-cancel, .btn-submit-booking, .btn-submit-reject {
  flex: 1;
  border: none;
  border-radius: var(--r-sm);
  padding: 12px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--ease);
}

.btn-cancel { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); }
.btn-cancel:hover { background: var(--bg-surface-elevated); color: var(--text-primary); }

.btn-submit-booking { background: var(--accent); color: var(--bg-base); }
.btn-submit-booking:hover { background: var(--accent-dim); box-shadow: 0 4px 16px var(--accent-glow); }

.btn-submit-reject { background: var(--danger); color: #fff; }
.btn-submit-reject:hover { background: hsl(355,82%,42%); }

/* Upload Box */
.simulated-upload-box {
  border: 2px dashed var(--border);
  border-radius: var(--r-sm);
  padding: 20px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: var(--ease);
}

.simulated-upload-box:hover { border-color: var(--border-light); }

.file-hidden-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-muted); }
.upload-icon { width: 28px; height: 28px; }
.upload-placeholder span { font-size: 12px; }

.upload-preview { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.upload-preview img { max-width: 100px; max-height: 100px; border-radius: 4px; object-fit: cover; border: 1px solid var(--border); }
.upload-filename { font-size: 12px; color: var(--text-secondary); }

.btn-remove-file {
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-remove-file:hover { background: var(--danger); color: #fff; }
.btn-small-link { background: transparent; border: none; color: var(--accent); font-family: var(--font-main); font-size: 12px; cursor: pointer; text-decoration: underline; }
.btn-small-link:hover { color: #fff; }

/* Small action buttons (edit, delete) */
.btn-small-edit,
.btn-small-delete {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: var(--ease);
}
.btn-small-edit {
  background: var(--primary-glow);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.3);
}
.btn-small-edit:hover {
  background: var(--primary);
  color: #fff;
}
.btn-small-delete {
  background: var(--danger-glow);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-small-delete:hover {
  background: var(--danger);
  color: #fff;
}

/* Danger admin button */
.btn-danger-admin {
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--danger-glow);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.4);
  cursor: pointer;
  transition: var(--ease);
  white-space: nowrap;
}
.btn-danger-admin:hover {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

/* Operator sport tabs */
.operator-sport-tabs {
  display: flex;
  gap: 8px;
}
.op-sport-tabs {
  display: inline-flex;
  gap: 4px;
  background: var(--bg-surface-elevated);
  border-radius: 10px;
  padding: 4px;
}
.op-sport-tab {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--ease);
  white-space: nowrap;
}
.op-sport-tab:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}
.op-sport-tab.active {
  background: var(--accent);
  color: var(--bg-base);
  font-weight: 700;
}
.op-sport-tabs.compact .op-sport-tab {
  font-size: 12px;
  padding: 5px 12px;
}

.hidden { display: none !important; }

/* ==========================================================================
   GCASH RECEIPT CARD (light mock)
   ========================================================================== */

.receipt-viewer-dialog {
  max-width: 380px;
  background: #000000;
  border-radius: var(--r-xl);
  color: #1e293b;
}

.receipt-viewer-dialog .dialog-header {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
}

.receipt-viewer-dialog .dialog-close { color: #64748b; }

.receipt-viewer-body { padding: 16px; background: #000000; }

.gcash-receipt-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  overflow: hidden;
  font-family: sans-serif;
  color: #1e293b;
}

.gcash-receipt-header {
  background: #005dff;
  color: #fff;
  padding: 24px 20px;
  text-align: center;
}

.gcash-receipt-logo { font-size: 22px; font-weight: 900; font-style: italic; margin-bottom: 10px; }

.gcash-receipt-checkmark {
  width: 48px; height: 48px;
  background: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.gcash-receipt-checkmark svg { width: 26px; height: 26px; fill: #005dff; }
.gcash-receipt-header h3 { font-size: 15px; font-weight: 700; }
.gcash-receipt-header p { font-size: 11px; opacity: 0.9; margin-top: 2px; }

.gcash-receipt-amount-block {
  text-align: center;
  padding: 20px;
  border-bottom: 1px dashed #e2e8f0;
}

.gcash-receipt-amt-lbl { font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; }
.gcash-receipt-amt-val { font-size: 30px; font-weight: 800; margin-top: 4px; }

.gcash-receipt-details { padding: 20px; display: flex; flex-direction: column; gap: 12px; }

.gcash-receipt-row { display: flex; justify-content: space-between; font-size: 13px; }
.gcash-receipt-row .label { color: #64748b; }
.gcash-receipt-row .value { font-weight: 700; text-align: right; }
.gcash-receipt-row .value.ref { font-family: monospace; font-size: 14px; }

.gcash-receipt-footer {
  background: #f8fafc;
  padding: 14px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.4;
}

/* ==========================================================================
   APP FOOTER
   ========================================================================== */

.app-footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 40px;
}

/* ==========================================================================
   MESSAGING SECTION
   ========================================================================== */

.messaging-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  animation: fadeIn 0.4s ease-out;
}

.messaging-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  min-height: 400px;
}

@media (max-width: 768px) {
  .messaging-container { grid-template-columns: 1fr; }
}

/* Search Area */
.messaging-search-area {
  display: flex;
  flex-direction: column;
}

.msg-search-box {
  position: relative;
}

.msg-search-box .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.msg-search-box input {
  width: 100%;
  padding: 10px 12px 10px 38px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
  transition: var(--ease);
}

.msg-search-box input:focus {
  border-color: var(--primary);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin-top: 4px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 10;
}

.search-results.hidden { display: none; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: var(--ease);
}

.search-result-item:hover {
  background: rgba(99,102,241,0.08);
}

.search-result-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-result-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.search-result-name {
  font-size: 13px;
  font-weight: 600;
}

.search-result-username {
  font-size: 11px;
  color: var(--text-muted);
}

.search-result-role {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  background: rgba(99,102,241,0.1);
  border-radius: 50px;
  color: var(--primary);
}

.search-no-results {
  padding: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* Chat Area */
.messaging-chat-area {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  gap: 8px;
}

.chat-empty-icon { font-size: 48px; }
.chat-empty p { font-size: 14px; }

.chat-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.chat-header-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-header-name {
  font-size: 14px;
  font-weight: 600;
}

.chat-header-username {
  font-size: 11px;
  color: var(--text-muted);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 250px;
}

.chat-no-messages {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
}

.chat-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
}

.chat-bubble.sent {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-bubble.received {
  align-self: flex-start;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-bubble-text { word-wrap: break-word; }

.chat-bubble-time {
  font-size: 10px;
  opacity: 0.7;
}

.chat-bubble-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.btn-msg-delete {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 11px;
  padding: 2px 4px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.15s;
  line-height: 1;
}

.chat-bubble:hover .btn-msg-delete {
  opacity: 0.6;
}

.btn-msg-delete:hover {
  opacity: 1 !important;
  color: var(--danger);
  background: rgba(239,68,68,0.1);
}

.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

.chat-input-area input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
  transition: var(--ease);
}

.chat-input-area input:focus {
  border-color: var(--primary);
}

.btn-send-msg {
  padding: 10px 20px;
  background: var(--primary);
  border: none;
  border-radius: 50px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--ease);
}

.btn-send-msg:hover {
  background: hsl(245, 78%, 72%);
}

/* ==========================================================================
   NOTIFICATION DIALOG
   ========================================================================== */

.notification-dialog {
  max-width: 420px;
}

.notification-icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 12px;
}

.notification-dialog h3 {
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 4px;
}

.notification-details {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.notification-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.n-label {
  color: var(--text-muted);
  font-weight: 500;
}

.n-value {
  font-weight: 600;
}

.notification-actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.btn-notification-ok {
  padding: 10px 32px;
  background: var(--accent);
  border: none;
  border-radius: 50px;
  color: var(--bg-base);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--ease);
}

.btn-notification-ok:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(163,230,53,0.3);
}

/* ==========================================================================
   BOTTOM NAVIGATION BAR
   ========================================================================== */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(9, 11, 20, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  padding: 6px 0 max(6px, env(safe-area-inset-bottom, 6px));
  height: 64px;
}

.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 12px;
  min-width: 56px;
  border-radius: var(--r-sm);
  transition: var(--ease);
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-tab svg {
  width: 22px;
  height: 22px;
  transition: var(--ease);
}

.nav-tab span {
  line-height: 1;
}

.nav-tab:hover {
  color: var(--text-secondary);
}

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

.nav-tab.active svg {
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

.nav-msg-badge {
  position: absolute;
  top: 0;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--danger);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  border-radius: 50px;
  text-align: center;
}

/* Messaging as a proper tab section */
.messaging-section.role-section { display: none; }
.messaging-section.role-section.active {
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: fadeIn 0.4s ease-out;
}

/* Adjust app-body padding for bottom nav */
.app-body {
  padding-bottom: 96px;
}

/* Admin-only tab hidden by default, shown via JS */
.nav-tab.admin-only { display: none; }
.nav-tab.admin-only.visible { display: flex; }

/* ==========================================================================
   THEME SETTINGS (Admin Control)
   ========================================================================== */

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.theme-card {
  background: var(--bg-surface-elevated);
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  cursor: pointer;
  transition: var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.theme-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.theme-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.theme-swatch {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.swatch-lime { background: linear-gradient(135deg, hsl(84, 82%, 52%), hsl(84, 82%, 38%)); }
.swatch-ocean { background: linear-gradient(135deg, hsl(182, 85%, 48%), hsl(182, 80%, 35%)); }
.swatch-sunset { background: linear-gradient(135deg, hsl(22, 95%, 55%), hsl(350, 80%, 52%)); }
.swatch-berry { background: linear-gradient(135deg, hsl(275, 80%, 62%), hsl(325, 75%, 50%)); }
.swatch-forest { background: linear-gradient(135deg, hsl(145, 70%, 45%), hsl(160, 75%, 30%)); }
.swatch-coral { background: linear-gradient(135deg, hsl(5, 85%, 60%), hsl(350, 80%, 50%)); }
.swatch-slate { background: linear-gradient(135deg, hsl(210, 20%, 60%), hsl(220, 25%, 40%)); }

.theme-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.theme-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* Admin Theme Settings section */
.theme-settings-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   5 COLOR THEMES
   ========================================================================== */

/* 1. Lime (default) — already defined in :root {} */

/* 2. Ocean */
[data-theme="ocean"] {
  --accent:      hsl(182, 85%, 48%);
  --accent-dim:  hsl(182, 80%, 35%);
  --accent-glow: hsla(182, 85%, 48%, 0.12);
  --primary:     hsl(200, 80%, 55%);
  --primary-glow:hsla(200, 80%, 55%, 0.18);
  --success:     hsl(165, 78%, 44%);
  --success-glow:hsla(165, 78%, 44%, 0.14);
  --warning:     hsl(38, 90%, 50%);
  --warning-glow:hsla(38, 90%, 50%, 0.14);
  --danger:      hsl(355, 82%, 50%);
  --danger-glow: hsla(355, 82%, 50%, 0.14);
}
[data-theme="ocean"] .bg-glow-1 {
  background: radial-gradient(circle, hsla(200, 80%, 55%, 0.08) 0%, transparent 70%);
}
[data-theme="ocean"] .bg-glow-2 {
  background: radial-gradient(circle, hsla(182, 85%, 48%, 0.07) 0%, transparent 70%);
}
[data-theme="ocean"] .bg-glow-3 {
  background: radial-gradient(circle, hsla(200, 80%, 55%, 0.04) 0%, transparent 70%);
}

/* 3. Sunset */
[data-theme="sunset"] {
  --accent:      hsl(22, 95%, 55%);
  --accent-dim:  hsl(22, 85%, 40%);
  --accent-glow: hsla(22, 95%, 55%, 0.12);
  --primary:     hsl(350, 80%, 52%);
  --primary-glow:hsla(350, 80%, 52%, 0.18);
  --success:     hsl(145, 78%, 44%);
  --success-glow:hsla(145, 78%, 44%, 0.14);
  --warning:     hsl(38, 90%, 50%);
  --warning-glow:hsla(38, 90%, 50%, 0.14);
  --danger:      hsl(355, 82%, 50%);
  --danger-glow: hsla(355, 82%, 50%, 0.14);
}
[data-theme="sunset"] .bg-glow-1 {
  background: radial-gradient(circle, hsla(350, 80%, 52%, 0.08) 0%, transparent 70%);
}
[data-theme="sunset"] .bg-glow-2 {
  background: radial-gradient(circle, hsla(22, 95%, 55%, 0.07) 0%, transparent 70%);
}
[data-theme="sunset"] .bg-glow-3 {
  background: radial-gradient(circle, hsla(350, 80%, 52%, 0.04) 0%, transparent 70%);
}

/* 4. Berry */
[data-theme="berry"] {
  --accent:      hsl(275, 80%, 62%);
  --accent-dim:  hsl(275, 70%, 45%);
  --accent-glow: hsla(275, 80%, 62%, 0.12);
  --primary:     hsl(325, 75%, 50%);
  --primary-glow:hsla(325, 75%, 50%, 0.18);
  --success:     hsl(145, 78%, 44%);
  --success-glow:hsla(145, 78%, 44%, 0.14);
  --warning:     hsl(38, 90%, 50%);
  --warning-glow:hsla(38, 90%, 50%, 0.14);
  --danger:      hsl(355, 82%, 50%);
  --danger-glow: hsla(355, 82%, 50%, 0.14);
}
[data-theme="berry"] .bg-glow-1 {
  background: radial-gradient(circle, hsla(325, 75%, 50%, 0.08) 0%, transparent 70%);
}
[data-theme="berry"] .bg-glow-2 {
  background: radial-gradient(circle, hsla(275, 80%, 62%, 0.07) 0%, transparent 70%);
}
[data-theme="berry"] .bg-glow-3 {
  background: radial-gradient(circle, hsla(325, 75%, 50%, 0.04) 0%, transparent 70%);
}

/* 5. Forest */
[data-theme="forest"] {
  --accent:      hsl(145, 70%, 45%);
  --accent-dim:  hsl(145, 65%, 32%);
  --accent-glow: hsla(145, 70%, 45%, 0.12);
  --primary:     hsl(160, 75%, 30%);
  --primary-glow:hsla(160, 75%, 30%, 0.18);
  --success:     hsl(145, 78%, 44%);
  --success-glow:hsla(145, 78%, 44%, 0.14);
  --warning:     hsl(38, 90%, 50%);
  --warning-glow:hsla(38, 90%, 50%, 0.14);
  --danger:      hsl(355, 82%, 50%);
  --danger-glow: hsla(355, 82%, 50%, 0.14);
}
[data-theme="forest"] .bg-glow-1 {
  background: radial-gradient(circle, hsla(160, 75%, 30%, 0.08) 0%, transparent 70%);
}
[data-theme="forest"] .bg-glow-2 {
  background: radial-gradient(circle, hsla(145, 70%, 45%, 0.07) 0%, transparent 70%);
}
[data-theme="forest"] .bg-glow-3 {
  background: radial-gradient(circle, hsla(160, 75%, 30%, 0.04) 0%, transparent 70%);
}

/* 6. Coral — warm coral pink */
[data-theme="coral"] {
  --accent:      hsl(5, 85%, 60%);
  --accent-dim:  hsl(5, 80%, 45%);
  --accent-glow: hsla(5, 85%, 60%, 0.12);
  --primary:     hsl(345, 82%, 55%);
  --primary-glow:hsla(345, 82%, 55%, 0.18);
  --success:     hsl(145, 78%, 44%);
  --success-glow:hsla(145, 78%, 44%, 0.14);
  --warning:     hsl(38, 90%, 50%);
  --warning-glow:hsla(38, 90%, 50%, 0.14);
  --danger:      hsl(355, 82%, 50%);
  --danger-glow: hsla(355, 82%, 50%, 0.14);
}
[data-theme="coral"] .bg-glow-1 {
  background: radial-gradient(circle, hsla(345, 82%, 55%, 0.08) 0%, transparent 70%);
}
[data-theme="coral"] .bg-glow-2 {
  background: radial-gradient(circle, hsla(5, 85%, 60%, 0.07) 0%, transparent 70%);
}
[data-theme="coral"] .bg-glow-3 {
  background: radial-gradient(circle, hsla(345, 82%, 55%, 0.04) 0%, transparent 70%);
}

/* 7. Slate — cool blue-gray */
[data-theme="slate"] {
  --accent:      hsl(210, 25%, 55%);
  --accent-dim:  hsl(210, 20%, 40%);
  --accent-glow: hsla(210, 25%, 55%, 0.12);
  --primary:     hsl(220, 30%, 48%);
  --primary-glow:hsla(220, 30%, 48%, 0.18);
  --success:     hsl(145, 78%, 44%);
  --success-glow:hsla(145, 78%, 44%, 0.14);
  --warning:     hsl(38, 90%, 50%);
  --warning-glow:hsla(38, 90%, 50%, 0.14);
  --danger:      hsl(355, 82%, 50%);
  --danger-glow: hsla(355, 82%, 50%, 0.14);
}
[data-theme="slate"] .bg-glow-1 {
  background: radial-gradient(circle, hsla(220, 30%, 48%, 0.08) 0%, transparent 70%);
}
[data-theme="slate"] .bg-glow-2 {
  background: radial-gradient(circle, hsla(210, 25%, 55%, 0.07) 0%, transparent 70%);
}
[data-theme="slate"] .bg-glow-3 {
  background: radial-gradient(circle, hsla(220, 30%, 48%, 0.04) 0%, transparent 70%);
}

/* ==========================================================================
   RECEIPT IMAGE VIEWER
   ========================================================================== */

.receipt-image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.receipt-image {
  max-width: 100%;
  max-height: 400px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  object-fit: contain;
}

.receipt-image-meta {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.receipt-image-meta strong {
  color: var(--text-primary);
}

.receipt-details-below {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
}

.receipt-details-below .value { color: var(--accent); }

/* ==========================================================================
   MESSAGE NOTIFICATION BADGE
   ========================================================================== */

.msg-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50px;
  margin-left: 8px;
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* New message toast */
#newMessageToast {
  position: fixed;
  top: 80px;
  right: 24px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--accent);
  border-radius: var(--r-md);
  padding: 14px 20px;
  z-index: 10000;
  box-shadow: 0 8px 30px rgba(163, 230, 53, 0.15);
  max-width: 320px;
  cursor: pointer;
  animation: slideInRight 0.4s ease-out;
  font-family: var(--font-main);
}

#newMessageToast .toast-sender {
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 4px;
}

#newMessageToast .toast-preview {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   INBOX LIST (left sidebar conversation list)
   ========================================================================== */

.inbox-list {
  flex: 1;
  overflow-y: auto;
  margin-top: 8px;
}

.inbox-empty {
  padding: 20px 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.inbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: var(--ease);
  position: relative;
}

.inbox-item:hover {
  background: rgba(99,102,241,0.08);
}

.inbox-item.active {
  background: rgba(99,102,241,0.15);
  border-left: 3px solid var(--primary);
}

.inbox-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.inbox-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.inbox-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.inbox-preview {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.inbox-time {
  font-size: 10px;
  color: var(--text-muted);
}

.inbox-unread {
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Chat back button */
.chat-back-btn {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  font-size: 18px;
  padding: 4px 8px;
  margin-right: 8px;
  cursor: pointer;
  transition: var(--ease);
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
}

.chat-back-btn:hover {
  background: rgba(99,102,241,0.1);
  color: var(--text-primary);
}

/* Pending booking count badge */
.pending-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--warning-glow, rgba(245,158,11,0.2));
  color: hsl(38,90%,60%);
  font-size: 12px;
  font-weight: 700;
  margin-left: 8px;
  border-radius: 50px;
}

/* ==========================================================================
   MOBILE RESPONSIVE
   ========================================================================== */

/* Hamburger button (hidden on desktop) */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-sm);
  cursor: pointer;
  z-index: 110;
  gap: 5px;
  padding: 8px;
  transition: var(--ease);
}
.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--ease);
  transform-origin: center;
}
.hamburger-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
@media (max-width: 768px) {
  .hamburger-btn { display: flex; }

  .landing-nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(9, 11, 20, 0.97);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255,255,255,0.06);
    padding: 80px 24px 24px;
    transition: right 0.3s ease;
    z-index: 105;
  }
  .landing-nav-links.nav-open {
    right: 0;
  }
  .landing-nav-links a,
  .landing-nav-links .btn-nav-signin {
    width: 100%;
    padding: 16px 0;
    font-size: 16px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .landing-nav-links a:hover {
    background: transparent;
    color: var(--accent);
  }
  .landing-nav-links .btn-nav-signin {
    margin-top: 8px;
    justify-content: center;
    background: rgba(163, 230, 53, 0.1);
    border: 1px solid rgba(163, 230, 53, 0.2);
    border-radius: var(--r-sm);
  }

  /* Hero — reduce padding on tablet */
  .hero-section { padding: 40px 0 60px; }
}

/* Small phones */
@media (max-width: 480px) {
  .hero-section { padding: 24px 0 40px; }
  .hero-headline { font-size: clamp(32px, 10vw, 44px); letter-spacing: -1px; }
  .hero-subtext { font-size: 15px; margin-bottom: 28px; }
  .hero-stats { gap: 12px; flex-wrap: wrap; justify-content: center; }
  .hero-cta-group { flex-direction: column; align-items: center; gap: 12px; }
  .btn-hero-primary,
  .btn-hero-secondary { width: 100%; justify-content: center; padding: 14px 24px; font-size: 15px; }
  .hero-eyebrow { margin-bottom: 16px; }
  .eyebrow-badge { font-size: 12px; padding: 5px 12px; }

  /* How it works */
  .how-steps { grid-template-columns: 1fr; gap: 20px; }
  .how-step { padding: 20px; }

  /* Venue card */
  .venue-card-featured { grid-template-columns: 1fr; }
  .venue-card-info h3 { font-size: 22px; }
  .venue-details-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .btn-book-venue { padding: 12px 20px; font-size: 14px; }

  /* Section headings */
  .section-heading { font-size: 22px; margin-bottom: 24px; }

  /* Footer */
  .landing-footer { flex-direction: column; gap: 12px; text-align: center; padding: 24px; }

  /* Login screen */
  .login-card-top { padding: 24px 20px 16px; }
  .login-title { font-size: 18px; }
  .login-subtitle { font-size: 13px; }
  .account-picker { padding: 16px; }
  .login-disclaimer { font-size: 12px; }

  /* App header */
  .app-header { padding: 8px 12px; }
  .header-logo-text .logo-wordmark { font-size: 16px; }
  .header-right { gap: 6px; }

  /* General spacing */
  .landing-wrapper { padding: 0 16px; }

  /* Sports cards */
  .sport-select-grid { grid-template-columns: 1fr; gap: 10px; }
  .sport-card { padding: 14px; }
  .date-picker-input { padding: 10px 12px; font-size: 14px; }

  /* Schedule grid */
  .schedule-header { font-size: 12px; }
  .schedule-grid { gap: 4px; }
  .slot-btn { min-width: 60px; min-height: 36px; font-size: 11px; }

  /* Booking cards */
  .card-grid { grid-template-columns: 1fr; }
  .booking-card { padding: 14px; }

  /* Messaging */
  .messaging-container { grid-template-columns: 1fr; }
  .msg-bubble { font-size: 14px; padding: 10px 14px; }

  /* Touch targets */
  .btn-nav-signin,
  .btn-checkout,
  .btn-cancel,
  .btn-submit-booking,
  .btn-primary,
  .btn-secondary { min-height: 44px; }

  /* Stats */
  .hero-stat .stat-val { font-size: 20px; }
  .hero-stat .stat-lbl { font-size: 11px; }
  .stat-divider { display: none; }

  /* Dashboard header */
  .dashboard-header-summary { flex-direction: column; gap: 8px; }

  /* Court illustration hidden on small mobile */
  .venue-card-visual { display: none; }

  /* Tables / lists */
  .data-table { font-size: 12px; }
  .data-table th,
  .data-table td { padding: 8px 6px; }
}

/* ==========================================================================
   MOBILE-FIRST: RESPONSIVE TABLES → CARDS
   ==========================================================================
   Data tables with [data-label] attributes transform into stacked cards
   on screens ≤ 640px. Each <td> shows its label via ::before.
   ========================================================================== */

@media (max-width: 640px) {
  /* Force tables to block layout so each <tr> becomes a card */
  .data-table,
  .data-table thead,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
  }

  /* Hide thead — labels come from [data-label] on each td */
  .data-table thead {
    display: none;
  }

  /* Each row becomes a card */
  .data-table tr {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 12px;
    margin-bottom: 10px;
  }

  /* Remove alternating row hover from card context */
  .data-table tbody tr:hover {
    background: var(--bg-surface);
  }

  /* Each cell becomes a labeled row inside the card */
  .data-table td {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border: none;
    font-size: 13px;
  }

  /* Label from data-label attr */
  .data-table td::before {
    content: attr(data-label);
    flex-shrink: 0;
    width: 80px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }

  /* Cells with empty data-label (action buttons) — no label */
  .data-table td[data-label=""] {
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
  }
  .data-table td[data-label=""]::before {
    display: none;
  }

  /* GCash Ref mono font still applies */
  .data-table td.font-mono {
    font-family: var(--font-mono);
  }

  /* Status badges sit inline */
  .data-table td .badge {
    display: inline-block;
  }

  /* Admin table action buttons — full width on mobile */
  .data-table .btn-small-delete,
  .data-table .btn-small-edit {
    min-height: 44px;
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* ==========================================================================
   MOBILE: DIALOG OVERFLOW SAFETY
   ========================================================================== */

@media (max-width: 640px) {
  .glass-dialog {
    margin: 12px;
    width: calc(100% - 24px);
    max-height: 90dvh;
  }
  .glass-dialog .dialog-body {
    max-height: calc(90dvh - 80px);
    overflow-y: auto;
  }
}

/* ==========================================================================
   MOBILE: TOUCH TARGETS & PADDING
   ========================================================================== */

@media (max-width: 480px) {
  /* Bump small action buttons to touch-friendly size */
  .btn-small-delete,
  .btn-small-edit,
  .btn-small-approve,
  .btn-small-reject {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 13px;
  }

  /* Admin card padding reduced on small screens */
  .admin-history-card {
    padding: 16px;
  }

  /* Admin heading */
  .admin-subtitle {
    display: block;
    font-size: 13px;
    margin-top: 2px;
  }

  /* Theme grid tighter on mobile */
  .theme-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
  }
  .theme-card {
    padding: 10px;
  }
  .theme-swatch {
    width: 36px;
    height: 36px;
  }
}
