@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #12122a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  --text-primary: #f0f0ff;
  --text-secondary: rgba(240, 240, 255, 0.7);
  --text-muted: rgba(240, 240, 255, 0.4);
  --accent-1: #6366f1;
  --accent-2: #8b5cf6;
  --accent-3: #a855f7;
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --emerald: #10b981;
  --emerald-light: #34d399;
  --red: #ef4444;
  --red-light: #f87171;
  --blue: #3b82f6;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(139, 92, 246, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(168, 85, 247, 0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: rgba(99, 102, 241, 0.08);
  top: -200px;
  right: -200px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: rgba(139, 92, 246, 0.06);
  bottom: -150px;
  left: -150px;
  animation-delay: -7s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: rgba(168, 85, 247, 0.05);
  top: 40%;
  left: 50%;
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 40px) scale(0.95); }
  75% { transform: translate(30px, 20px) scale(1.02); }
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ===== HEADER ===== */
header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 26, 0.6);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-text span {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-link {
  padding: 8px 20px;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
  border-color: var(--border-color);
}

.nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* ===== HERO ===== */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--accent-1);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--emerald);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 30%, rgba(255, 255, 255, 0.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* ===== MAIN LAYOUT ===== */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-bottom: 80px;
  align-items: start;
}

@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
}

/* ===== GLASS CARD ===== */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow), var(--shadow-glow);
}

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

.card-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.card-header-icon.purple {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-1);
}

.card-header-icon.gold {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold);
}

.card-header-icon.green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
}

.card-header-icon.red {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
}

.card-header-icon.blue {
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== FORM ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid .full-width {
  grid-column: 1 / -1;
}

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

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-label .required {
  color: var(--red);
  font-size: 16px;
}

.label-icon {
  font-size: 13px;
  line-height: 1;
}

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

.input-icon-btn,
.input-icon-deco {
  position: absolute;
  left: 6px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 13px;
  z-index: 2;
}

.input-icon-btn {
  border: none;
  background: rgba(99, 102, 241, 0.12);
  cursor: pointer;
  transition: var(--transition);
}

.input-icon-btn:hover {
  background: rgba(99, 102, 241, 0.25);
}

.input-icon-deco {
  background: rgba(99, 102, 241, 0.12);
  pointer-events: none;
}

.form-input.has-icon,
.form-select.has-icon {
  padding-left: 40px;
}

.form-select.has-icon {
  padding-right: 40px;
}

/* Hide the browser's own date/time picker icon since we supply our own on the left */
.form-input.has-icon::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  right: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.form-input,
.form-select {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
  width: 100%;
}

.form-input:hover,
.form-select:hover {
  border-color: var(--border-light);
  background: rgba(255, 255, 255, 0.06);
}

.form-input:focus,
.form-select:focus {
  border-color: var(--accent-1);
  background: rgba(99, 102, 241, 0.06);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:read-only {
  opacity: 0.7;
  cursor: default;
}

.form-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(240,240,255,0.5)' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-select option {
  background: #1a1a2e;
  color: var(--text-primary);
}

.form-input.error,
.form-select.error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-text {
  font-size: 12px;
  color: var(--red);
  display: none;
}

.form-group.has-error .error-text {
  display: block;
}

/* ===== CHECKBOXES ===== */
.checkboxes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 4px;
}

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

.checkbox-card {
  position: relative;
}

.checkbox-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-card label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  user-select: none;
}

.checkbox-card label:hover {
  border-color: var(--border-light);
  background: rgba(255, 255, 255, 0.06);
}

.checkbox-card input[type="checkbox"]:checked + label {
  border-color: var(--accent-1);
  background: rgba(99, 102, 241, 0.1);
  color: var(--text-primary);
}

.checkbox-card .check-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  font-size: 12px;
  color: transparent;
}

.checkbox-card input[type="checkbox"]:checked + label .check-icon {
  background: var(--accent-1);
  border-color: var(--accent-1);
  color: #fff;
}

.checkbox-card .checkbox-emoji {
  font-size: 16px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

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

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-light);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-full {
  width: 100%;
}

.btn .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: none;
}

.btn.loading .spinner {
  display: block;
}

.btn.loading .btn-text {
  opacity: 0.7;
}

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

.form-actions {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

/* ===== TIMELINE CALENDAR ===== */
.timeline-container {
  margin-top: 8px;
}

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

.timeline-date {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-date span {
  color: var(--text-muted);
  font-weight: 400;
}

.timeline-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.timeline-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.timeline-empty h3 {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.timeline-empty p {
  font-size: 14px;
}

.timeline {
  position: relative;
  padding-left: 70px;
}

.timeline-hours {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 60px;
}

.timeline-hour {
  height: 60px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-right: 12px;
  position: relative;
}

.timeline-hour::after {
  content: '';
  position: absolute;
  left: calc(100% + 6px);
  top: 0;
  right: 0;
  height: 1px;
  background: var(--border-color);
}

.timeline-hour:first-child::after {
  top: 50%;
  height: 0;
  border-top: 1px solid var(--border-color);
}

.timeline-track {
  position: relative;
  min-height: 720px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.timeline-track-hour-lines {
  position: absolute;
  inset: 0;
}

.timeline-track-hour-lines .hour-line {
  height: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.timeline-track-hour-lines .hour-line:last-child {
  border-bottom: none;
}

.timeline-booking {
  position: absolute;
  left: 8px;
  right: 8px;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
  overflow: hidden;
  min-height: 40px;
}

.timeline-booking:hover {
  transform: scale(1.02);
  z-index: 3;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.timeline-booking .booking-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-booking .booking-time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

.timeline-booking.hall-ground {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.85), rgba(99, 102, 241, 0.6));
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.timeline-booking.hall-first {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.85), rgba(245, 158, 11, 0.6));
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.timeline-booking.hall-studio {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.85), rgba(16, 185, 129, 0.6));
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.timeline-booking.hall-board {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.85), rgba(59, 130, 246, 0.6));
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.timeline-legend {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.legend-dot.ground {
  background: var(--accent-1);
}

.legend-dot.first {
  background: var(--gold);
}

.legend-dot.studio {
  background: var(--emerald);
}

.legend-dot.board {
  background: var(--blue);
}

/* ===== MONTH CALENDAR (Google-Calendar-style month grid) ===== */
.month-calendar {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.month-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.month-calendar-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.calendar-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.calendar-nav-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  color: var(--text-primary);
}

.month-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 6px;
}

.month-calendar-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 4px 0;
}

.month-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.month-calendar-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.month-day-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  padding: 4px;
}

.month-day-cell:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color);
}

.month-day-cell.outside-month {
  color: var(--text-muted);
  opacity: 0.35;
}

.month-day-cell.is-today {
  border-color: rgba(245, 158, 11, 0.35);
}

.month-day-cell.is-today .month-day-number {
  color: var(--gold-light);
  font-weight: 700;
}

.month-day-cell.is-selected {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.month-day-cell.is-selected .month-day-number {
  color: #fff;
  font-weight: 700;
}

.month-day-number {
  font-size: 13px;
  line-height: 1;
}

.month-day-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 6px;
}

.month-day-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
}

.month-day-dot.ground {
  background: var(--accent-1);
}

.month-day-dot.first {
  background: var(--gold);
}

.month-day-dot.studio {
  background: var(--emerald);
}

.month-day-dot.board {
  background: var(--blue);
}

.month-day-cell.is-selected .month-day-dot {
  background: #fff;
  opacity: 0.85;
}

.month-day-more {
  font-size: 9px;
  color: var(--text-muted);
}

.month-day-cell.is-selected .month-day-more {
  color: rgba(255, 255, 255, 0.85);
}

.month-expanded-row {
  grid-column: 1 / -1;
  margin: 4px 0 6px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  overflow: hidden;
  animation: monthExpandedIn 0.18s ease;
}

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

.month-expanded-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
}

.month-expanded-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.month-expanded-close {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

.month-expanded-close:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.month-expanded-slots {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.month-expanded-loading,
.month-expanded-empty {
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 0;
}

.month-expanded-slot {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  border-left: 3px solid var(--accent-1);
  background: rgba(255, 255, 255, 0.03);
}

.month-expanded-slot.hall-ground {
  border-left-color: var(--accent-1);
}

.month-expanded-slot.hall-first {
  border-left-color: var(--gold);
}

.month-expanded-slot.hall-studio {
  border-left-color: var(--emerald);
}

.month-expanded-slot.hall-board {
  border-left-color: var(--blue);
}

.month-expanded-slot-time {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.month-expanded-slot-info {
  font-size: 11px;
  color: var(--text-secondary);
}

@media (max-width: 480px) {
  .month-day-number {
    font-size: 12px;
  }

  .calendar-nav-btn {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 320px;
  max-width: 420px;
  animation: toastSlide 0.3s ease;
  font-size: 14px;
  color: var(--text-primary);
}

.toast.success {
  border-color: rgba(16, 185, 129, 0.3);
}

.toast.success .toast-icon {
  color: var(--emerald);
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.3);
}

.toast.error .toast-icon {
  color: var(--red);
}

.toast.info {
  border-color: rgba(59, 130, 246, 0.3);
}

.toast.info .toast-icon {
  color: var(--blue);
}

.toast-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  flex-shrink: 0;
}

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

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

/* ===== ADMIN LOGIN ===== */
.admin-login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-login-card {
  width: 100%;
  max-width: 420px;
  padding: 40px;
}

.admin-login-card .logo {
  justify-content: center;
  margin-bottom: 32px;
}

.admin-login-card h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.admin-login-card p {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.admin-login-card .form-group {
  margin-bottom: 16px;
}

.login-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--red);
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}

/* ===== ADMIN DASHBOARD ===== */
.admin-dashboard {
  display: none;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

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

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

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-xs);
  font-size: 13px;
  color: var(--text-secondary);
}

.gcal-connect-btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gcal-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.gcal-connect-btn.connected .gcal-status-dot {
  background: var(--emerald);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.gcal-connect-btn.connected {
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--emerald);
}

.admin-user-info .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}

/* ===== STATS CARDS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
}

.stat-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stat-card-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.stat-card-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-card-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== ADMIN TABLE ===== */
.admin-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table thead {
  background: rgba(255, 255, 255, 0.03);
}

.admin-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  vertical-align: middle;
}

.admin-table tbody tr {
  transition: var(--transition);
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.hall-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
}

.hall-badge.ground {
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-1);
}

.hall-badge.first {
  background: rgba(245, 158, 11, 0.12);
  color: var(--gold);
}

.hall-badge.studio {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald);
}

.hall-badge.board {
  background: rgba(59, 130, 246, 0.12);
  color: var(--blue);
}

.booking-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
}

.booking-status.pending {
  color: var(--gold);
}

.booking-status.pending::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.booking-status.approved {
  color: var(--emerald);
}

.booking-status.approved::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--emerald);
  border-radius: 50%;
}

.booking-status.rejected {
  color: var(--red);
}

.booking-status.rejected::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
}

.admin-actions {
  display: flex;
  gap: 6px;
}

.admin-actions .btn {
  padding: 6px 12px;
  font-size: 12px;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

/* ===== BOOKING SUCCESS OVERLAY ("flash screen" shown after submission) ===== */
.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.success-overlay.active {
  display: flex;
}

.success-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 420px;
  width: 100%;
  padding: 36px 32px 32px;
  text-align: center;
  animation: modalIn 0.3s ease;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  font-size: 30px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.success-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 10px;
}

.success-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 24px;
}

.success-card .btn {
  width: 100%;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.modal-body {
  padding: 24px;
}

.modal-body .detail-row {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.modal-body .detail-row:last-child {
  border-bottom: none;
}

.modal-body .detail-label {
  width: 140px;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.modal-body .detail-value {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
}

.modal-footer {
  display: flex;
  gap: 8px;
  padding: 16px 24px 24px;
  justify-content: flex-end;
}

/* ===== SECTION TITLE ===== */
.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  min-width: 280px;
}

.admin-search:focus-within {
  border-color: var(--accent-1);
}

.admin-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  flex: 1;
}

.admin-search input::placeholder {
  color: var(--text-muted);
}

.admin-search .search-icon {
  color: var(--text-muted);
  font-size: 16px;
}

.admin-filter-select {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}

.admin-filter-select:focus {
  border-color: var(--accent-1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .glass-card {
    padding: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .full-width {
    grid-column: 1;
  }

  .hero {
    padding: 48px 0 32px;
  }

  .page-layout {
    padding-bottom: 48px;
    gap: 24px;
  }

  .timeline {
    padding-left: 50px;
  }

  .timeline-hours {
    width: 40px;
  }

  .timeline-hour {
    font-size: 10px;
    padding-right: 8px;
  }

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

  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-search {
    min-width: auto;
  }

  .admin-table th,
  .admin-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .toast {
    min-width: auto;
    max-width: none;
  }

  .header-inner {
    padding: 0 16px;
  }

  .container {
    padding: 0 16px;
  }
}

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

  .admin-user-info .user-name {
    display: none;
  }

  .modal {
    margin: 12px;
  }

  .modal-body .detail-row {
    flex-direction: column;
    gap: 4px;
  }

  .modal-body .detail-label {
    width: auto;
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== LOADING SHIMMER ===== */
.shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.03) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

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

/* ===== DATE INPUT STYLING ===== */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
  cursor: pointer;
}

input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
  cursor: pointer;
}

/* Firebase connection status badge */
.firebase-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.firebase-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.firebase-status.fs-connecting .firebase-status-dot {
  background: var(--gold);
  animation: fbPulse 1s ease-in-out infinite;
}

.firebase-status.fs-connected .firebase-status-dot {
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
}

.firebase-status.fs-connected {
  color: var(--emerald-light);
  border-color: rgba(16, 185, 129, 0.3);
}

.firebase-status.fs-error .firebase-status-dot {
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
}

.firebase-status.fs-error {
  color: var(--red-light);
  border-color: rgba(239, 68, 68, 0.3);
}

@keyframes fbPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@media (max-width: 640px) {
  .firebase-status-text { display: none; }
  .firebase-status { padding: 6px; }
}

/* ===== VENUE GALLERY ===== */
.venues-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 80px;
}

.venue-card .card-header {
  position: relative;
  padding-right: 110px;
}

.venue-card-badge {
  position: absolute;
  right: 0;
  top: 0;
}

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

.venue-image-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
}

.venue-image-tile:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.venue-image-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.venue-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: default;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.05));
}

.venue-image-placeholder:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border-color);
}

.venue-placeholder-icon {
  font-size: 32px;
  opacity: 0.6;
}

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

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  gap: 16px;
}

.lightbox {
  position: relative;
  max-width: min(900px, 90vw);
  max-height: 85vh;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  animation: modalIn 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(10, 10, 26, 0.6);
  z-index: 1;
}

.lightbox-nav {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
}

@media (max-width: 640px) {
  .venue-card .card-header {
    padding-right: 0;
    flex-wrap: wrap;
  }

  .venue-card-badge {
    position: static;
    margin-top: 8px;
  }

  .lightbox-nav {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}
