/* SS Turf Arena CSS StyleSheet
   Design: Premium, Dark, Glassmorphism, Neon Green Accent
*/

/* CSS Variables & Theme Setup */
:root {
  --bg-primary: #0F172A;
  --bg-secondary: #1E293B;
  --primary: #22C55E;
  --primary-glow: rgba(34, 197, 94, 0.25);
  --accent: #10B981;
  --accent-glow: rgba(16, 185, 129, 0.2);
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --glass-card: rgba(255, 255, 255, 0.06);
  --glass-card-hover: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-focus: rgba(34, 197, 94, 0.4);
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.3), 0 8px 10px -6px rgb(0 0 0 / 0.3);
  --shadow-glow: 0 0 20px 2px rgba(34, 197, 94, 0.3);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.5;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  position: fixed; /* Prevents bounce scroll on iOS */
  top: 0;
  left: 0;
}

body {
  display: flex;
  flex-direction: column;
}

/* Utility Helpers */
.hidden {
  display: none !important;
}

.w-full { width: 100%; }
.font-semibold { font-weight: 600; }
.margin-top { margin-top: 1.5rem; }
.text-red { color: #EF4444 !important; }
.text-accent { color: var(--accent) !important; }
.bg-red { background-color: rgba(239, 68, 68, 0.2) !important; border-color: rgba(239, 68, 68, 0.4) !important; }
.bg-red:hover { background-color: rgba(239, 68, 68, 0.3) !important; }
.bg-green { background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.05)); color: var(--primary); }
.bg-blue { background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(96, 165, 250, 0.05)); color: #3b82f6; }
.bg-purple { background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(192, 132, 252, 0.05)); color: #a855f7; }

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity var(--transition-normal);
}

.spinner-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.glow-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--glass-border);
  border-top-color: var(--primary);
  animation: spin 1s infinite linear;
  box-shadow: var(--shadow-glow);
}

.turf-ball {
  position: absolute;
  top: 24px;
  left: 24px;
  font-size: 2rem;
  animation: pulse 1.5s infinite ease-in-out;
}

.loading-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: linear-gradient(to right, var(--text-primary), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Panel styles */
.glass-panel {
  background: var(--glass-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  transition: background var(--transition-fast), border var(--transition-fast);
}

.glass-panel:hover {
  background: var(--glass-card-hover);
}

/* UI Shell Layout */
.app-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  position: relative;
}

.app-header {
  padding: 1.25rem 1rem;
  background-color: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  font-size: 1.5rem;
  animation: pulse 2s infinite ease-in-out;
}

.logo-text h1 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.location {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.location svg {
  width: 10px;
  height: 10px;
  stroke: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.role-badge {
  background: rgba(34, 197, 94, 0.15);
  color: var(--primary);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Dynamic view containers */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1rem 6rem 1rem; /* Bottom padding accounts for fixed navigation */
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.app-view {
  animation: fadeIn 0.35s ease-out;
}

/* Forms & Input Fields */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  width: 100%;
}

.input-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.phone-input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  transition: border-color var(--transition-fast);
  width: 100%;
}

.phone-input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary-glow);
}

.phone-input-wrapper input {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.country-code {
  padding: 0.75rem 0.5rem 0.75rem 1rem;
  color: var(--text-secondary);
  font-weight: 600;
  border-right: 1px solid var(--glass-border);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

input[type="text"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.95rem;
  width: 100%;
  transition: all var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary-glow);
}

/* Webkit autofill overrides for premium dark theme */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #0F172A inset !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  transition: background-color 5000s ease-in-out 0s;
}

.hidden-date-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(100%);
  cursor: pointer;
}

/* Interactive Buttons */
button {
  font-family: var(--font-family);
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  border-radius: var(--border-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
  width: auto;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
  opacity: 0.95;
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: var(--glass-card);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: var(--border-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background: var(--glass-card-hover);
  border-color: var(--text-muted);
}

.btn-icon {
  background: var(--glass-card);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: var(--glass-card-hover);
  transform: scale(1.05);
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}

.btn-link {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
}

.btn-link:hover {
  color: var(--accent);
}

.w-full {
  width: 100%;
}

/* Authentication Screen Specifics */
.auth-card {
  padding: 2.25rem 1.5rem;
  margin-top: 2rem;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-header p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.recaptcha-wrapper {
  margin: 1.25rem 0;
  display: flex;
  justify-content: center;
}

.otp-resend-text {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.link-btn {
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}

.link-btn:hover {
  text-decoration: underline;
}

.auth-action-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.auth-action-buttons button {
  flex: 1;
}

/* Sections */
.section-container {
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Date Picker styling */
.date-picker-input-wrapper {
  position: relative;
}

#btn-calendar svg {
  stroke: #ffffff !important;
  color: #ffffff !important;
}

.btn-sm {
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem;
  border-radius: var(--border-radius-sm);
}

.btn-sm svg {
  width: 16px;
  height: 16px;
}

.horizontal-date-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.25rem 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.horizontal-date-strip::-webkit-scrollbar {
  display: none;
}

.date-pill {
  flex: 0 0 65px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 0.5rem;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--glass-border);
  background: var(--glass-card);
  transition: all var(--transition-fast);
}

.date-pill:hover {
  border-color: var(--text-muted);
}

.date-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.date-pill .day-num {
  font-size: 1.25rem;
  font-weight: 700;
}

.date-pill .day-name {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  opacity: 0.8;
}

.date-pill.active .day-name {
  opacity: 1;
}

/* Announcement Banner */
.announcement-banner {
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(16, 185, 129, 0.04));
  border-color: rgba(34, 197, 94, 0.2);
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.banner-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--primary);
  color: #fff;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

#announcement-text {
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-block;
  padding-left: 100%;
  animation: marquee-scroll 22s linear infinite;
  white-space: nowrap;
}

.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  display: flex;
  align-items: center;
}

@keyframes marquee-scroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* Legend items */
.legend {
  display: flex;
  gap: 0.75rem;
}

.legend-item {
  font-size: 0.7rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot.available { background-color: var(--primary); box-shadow: 0 0 4px var(--primary); }
.dot.booked { background-color: var(--text-muted); }
.dot.blocked { background-color: #EF4444; box-shadow: 0 0 4px #EF4444; }

/* Booking Slots Grid */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.slot-card {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  position: relative;
  overflow: visible;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--glass-border);
  background: var(--glass-card);
  transition: all var(--transition-fast);
}

.slot-card .slot-time {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.slot-card .slot-price {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.slot-card .slot-status {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-bottom: 0.25rem;
}

/* Available state */
.slot-card.available {
  border-color: rgba(34, 197, 94, 0.2);
}
.slot-card.available:hover {
  background: rgba(34, 197, 94, 0.08);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}
.slot-card.available .slot-status {
  background: rgba(34, 197, 94, 0.15);
  color: var(--primary);
}

/* Booked state */
.slot-card.booked {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.slot-card.booked .slot-status {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

/* Blocked state */
.slot-card.blocked {
  border-color: rgba(239, 68, 68, 0.2);
  cursor: not-allowed;
  pointer-events: none;
}
.slot-card.blocked .slot-status {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
}

/* Selected state (for UI feedback during tap) */
.slot-card.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff !important;
  box-shadow: var(--shadow-glow);
}
.slot-card.selected .slot-price, 
.slot-card.selected .slot-status {
  color: #ffffff !important;
  opacity: 0.8;
}
.slot-card.selected .slot-status {
  background: rgba(0, 0, 0, 0.1);
}

/* Skeleton Loading styles */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  width: 100%;
}

.skeleton-card {
  height: 85px;
  background: linear-gradient(90deg, var(--glass-card) 25%, rgba(255,255,255,0.02) 50%, var(--glass-card) 75%);
  background-size: 200% 100%;
  animation: loadingSkeleton 1.5s infinite;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--glass-border);
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  max-width: 600px;
  margin: 0 auto;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex: 1;
  height: 100%;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.nav-item svg {
  width: 20px;
  height: 20px;
}

.nav-item span {
  font-size: 0.7rem;
}

.nav-item:hover {
  color: var(--text-primary);
}

.nav-item.active {
  color: var(--primary);
  position: relative;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  width: 24px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 10px var(--primary);
}

/* Bookings list (Player My Bookings) */
.bookings-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.booking-card {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.booking-card-header h4 {
  font-size: 1rem;
  font-weight: 700;
}

.booking-status {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.booking-status.booked { background: rgba(34, 197, 94, 0.15); color: var(--primary); }
.booking-status.cancelled { background: rgba(239, 68, 68, 0.15); color: #EF4444; }

.booking-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.booking-details-grid div {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.booking-details-grid div svg {
  width: 14px;
  height: 14px;
  stroke: var(--primary);
}

.booking-actions {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--glass-border);
  padding-top: 0.75rem;
}

.no-data {
  text-align: center;
  padding: 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
}

.no-data svg {
  width: 48px;
  height: 48px;
}

/* Profile screen styles */
.profile-card {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar {
  font-size: 2.25rem;
  width: 60px;
  height: 60px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.profile-meta h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.profile-meta p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.profile-role-badge {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--glass-card-hover);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.profile-stats {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--glass-border);
  padding-top: 1rem;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.profile-actions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.action-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  width: 100%;
}

.action-item:hover {
  transform: translateX(4px);
}

.action-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.action-item svg {
  width: 18px;
  height: 18px;
}

.action-item > svg:last-child {
  color: var(--text-muted);
}

/* Modals Overlay & Modals UI */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: flex-end; /* Mobile bottom sheet style */
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

@media(min-width: 600px) {
  .modal-overlay {
    align-items: center;
  }
}

.modal-card {
  width: 100%;
  max-width: 500px;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  padding: 2rem 1.5rem;
  position: relative;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-bottom: none;
}

@media(min-width: 600px) {
  .modal-card {
    border-radius: var(--border-radius-md);
    border-bottom: 1px solid var(--glass-border);
  }
}

.btn-close-modal {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--glass-card-hover);
  border: 1px solid var(--glass-border);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.btn-close-modal:hover {
  color: var(--text-primary);
  transform: scale(1.05);
}

.btn-close-modal svg {
  width: 16px;
  height: 16px;
}

.modal-header {
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

.modal-header p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.booking-receipt {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.receipt-row .label {
  color: var(--text-secondary);
}

.receipt-row .value {
  font-weight: 500;
}

.divider {
  border: none;
  border-top: 1px solid var(--glass-border);
}

.total-row {
  font-size: 1.1rem;
  font-weight: 700;
}

.total-row .price {
  color: var(--primary);
}

.disclaimer {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.modal-footer {
  margin-top: 1.5rem;
}

/* Admin Dashboard Specific styles */
.admin-metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media(min-width: 480px) {
  .admin-metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.metric-card {
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.metric-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-icon svg {
  width: 20px;
  height: 20px;
}

.metric-details {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
}

.metric-details h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

.admin-tabs {
  display: flex;
  background: var(--glass-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  margin-bottom: 1.25rem;
  overflow-x: auto !important;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: auto;
}

.admin-tabs::-webkit-scrollbar {
  height: 5px;
  display: block !important;
}

.admin-tabs::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.admin-tabs::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 9999px;
}

.admin-tab-btn {
  flex: 0 0 auto;
  padding: 0.75rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-secondary);
  border-right: 1px solid var(--glass-border);
  white-space: nowrap;
}

.admin-tab-btn:last-child {
  border-right: none;
}

.admin-tab-btn.active {
  background: var(--primary-glow);
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.admin-tab-content {
  display: none;
  animation: fadeIn 0.25s ease-out;
}

.admin-tab-content.active {
  display: block;
}

.sub-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.sub-header-container h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.sub-header-container input[type="date"] {
  width: auto;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}

.admin-bookings-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-booking-item {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-bk-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.admin-bk-meta h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.admin-bk-meta p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.admin-bk-meta .time {
  font-weight: 600;
  color: var(--primary);
}

.admin-action-card {
  padding: 1.5rem;
}

.admin-action-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.slots-selector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  margin-top: 0.5rem;
}

.slots-selector-header label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.admin-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.5rem;
  max-height: 250px;
  overflow-y: auto;
  padding: 0.5rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  margin-bottom: 1.25rem;
}

.admin-slot-checkbox-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: var(--border-radius-sm);
  background: var(--glass-card);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  transition: all var(--transition-fast);
}

.admin-slot-checkbox-card.selected {
  background: rgba(239, 68, 68, 0.15);
  border-color: #EF4444;
  color: #EF4444;
}

.admin-buttons-row {
  display: flex;
  gap: 0.75rem;
}

.admin-buttons-row button {
  flex: 1;
}

.admin-list {
  list-style: none;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.85rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
}

.pricing-inputs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pricing-inputs-grid .input-group {
  margin-bottom: 0;
}

.admin-user-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 0.75rem;
}

.admin-user-card {
  padding: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
}

.admin-user-card:last-child {
  border-bottom: none;
}

.admin-user-info h5 {
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-user-info p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.admin-user-stats {
  font-size: 0.75rem;
  text-align: right;
}

.admin-user-stats span {
  display: block;
  font-weight: 700;
  color: var(--primary);
}

.search-box {
  margin-bottom: 0.5rem;
}

/* Toast Notifications Container */
.toast-container {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 90%;
  max-width: 380px;
  pointer-events: none;
}

.toast {
  padding: 0.85rem 1.25rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: slideDownToast 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.toast.success {
  background: rgba(34, 197, 94, 0.95);
  border: 1px solid var(--primary);
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}

.toast.error {
  background: rgba(220, 38, 38, 0.95);
  border: 1px solid #EF4444;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
}

.toast.info {
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid var(--glass-border);
}

/* Keyframes Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

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

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

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

@keyframes loadingSkeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Custom Themed Calendar picker modal */
.calendar-day {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: transparent;
  border-radius: var(--border-radius-sm);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 38px;
}

.calendar-day:hover:not(.disabled):not(.empty) {
  background: var(--glass-card-hover);
  border-color: var(--glass-border);
  color: var(--primary);
  cursor: pointer;
}

.calendar-day.active {
  background: var(--primary) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 0 10px var(--primary-glow);
}

.calendar-day.today {
  border-color: var(--primary);
}

.calendar-day.disabled {
  color: var(--text-muted) !important;
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.calendar-day.empty {
  pointer-events: none;
}

#btn-close-calendar-modal {
  top: -16px !important;
  right: -16px !important;
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid #ef4444 !important;
  color: #ef4444 !important;
}

.calendar-day.weekend-day:not(.active):not(.disabled) {
  color: #fbbf24 !important;
}

.calendar-day.holiday-day:not(.active):not(.disabled) {
  color: #f87171 !important;
}

#btn-admin-block-date-cal,
#btn-admin-block-full-date-cal,
#btn-admin-holiday-date-cal,
#btn-counter-booking-date-cal {
  height: 44px !important;
  padding: 0 1rem !important;
  box-sizing: border-box !important;
}

/* Happy Hour Slot Card Highlights */
.slot-card.happy-hour {
  border-color: #fbbf24;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.12);
}
.slot-card.happy-hour:hover {
  border-color: #fbbf24;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.25);
}
.happy-hour-badge {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  white-space: nowrap;
  font-size: 0.48rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fbbf24;
  background: #1e1b4b; /* solid dark blue/indigo backdrop for high readability */
  border: 1px solid #fbbf24;
  padding: 0.08rem 0.35rem;
  border-radius: 9999px; /* pill style */
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.happy-hour-badge i,
.happy-hour-badge svg {
  width: 10px !important;
  height: 10px !important;
  stroke-width: 2.5;
}

/* Glowing Standalone Counter Booking Button styling */
.btn-glowing-counter {
  background: linear-gradient(135deg, #22c55e, #10b981) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  padding: 0.55rem 1.35rem !important;
  border-radius: 9999px !important;
  border: 2px solid #22c55e !important;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: border-rainbow 6s linear infinite;
}

.btn-glowing-counter:hover {
  transform: translateY(-2px) scale(1.03);
}

.btn-glowing-counter:active {
  transform: translateY(1px) scale(0.98);
}

@keyframes border-rainbow {
  0% {
    border-color: #22c55e !important;
    box-shadow: 
      0 0 12px rgba(34, 197, 94, 0.6),
      0 0 25px rgba(34, 197, 94, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  }
  25% {
    border-color: #3b82f6 !important;
    box-shadow: 
      0 0 12px rgba(59, 130, 246, 0.6),
      0 0 25px rgba(59, 130, 246, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  }
  50% {
    border-color: #a855f7 !important;
    box-shadow: 
      0 0 12px rgba(168, 85, 247, 0.6),
      0 0 25px rgba(168, 85, 247, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  }
  75% {
    border-color: #ec4899 !important;
    box-shadow: 
      0 0 12px rgba(236, 72, 153, 0.6),
      0 0 25px rgba(236, 72, 153, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  }
  100% {
    border-color: #22c55e !important;
    box-shadow: 
      0 0 12px rgba(34, 197, 94, 0.6),
      0 0 25px rgba(34, 197, 94, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  }
}

/* Autocomplete suggestion styles for walk-in counter booking */
.autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #0f172a !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--border-radius-md) !important;
  max-height: 160px;
  overflow-y: auto;
  z-index: 10000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
  margin-top: 0.25rem;
}

.autocomplete-suggestion-item {
  padding: 0.6rem 0.85rem !important;
  font-size: 0.8rem !important;
  color: var(--text-primary) !important;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.autocomplete-suggestion-item:last-child {
  border-bottom: none;
}

.autocomplete-suggestion-item:hover {
  background: var(--primary-glow) !important;
  color: var(--primary) !important;
}

.autocomplete-suggestion-item span.phone {
  color: var(--text-secondary) !important;
  font-size: 0.75rem !important;
}
