.ticketing-page {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  min-height: 100vh;
  position: relative;
}

.ticketing-section {
  padding: 8rem 0 6rem;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 4rem auto;
  padding: 0 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--brand-pale);
  color: var(--brand);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: 1px solid var(--brand-accent);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2rem;
  backdrop-filter: var(--blur);
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.section-badge:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-brand);
}

.section-header h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  color: var(--text-primary);
  margin: 0 0 1.5rem 0;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-primary), var(--brand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

.booking-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

.booking-calendar-section,
.booking-details-section {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.calendar-card,
.time-slots-card,
.booking-summary-card,
.pricing-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 1.75rem;
  backdrop-filter: var(--blur);
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s ease forwards;
}

.calendar-card {
  animation-delay: 0.05s;
}

.pricing-table-card {
  animation-delay: 0.1s;
}

.time-slots-card {
  animation-delay: 0.15s;
}

.booking-summary-card {
  animation-delay: 0.2s;
}

.calendar-card::before,
.time-slots-card::before,
.booking-summary-card::before,
.pricing-table-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  opacity: 0;
  transition: var(--transition);
}

.calendar-card:hover,
.time-slots-card:hover,
.booking-summary-card:hover,
.pricing-table-card:hover {
  border-color: var(--brand-accent);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.calendar-card:hover::before,
.time-slots-card:hover::before,
.booking-summary-card:hover::before,
.pricing-table-card:hover::before {
  opacity: 1;
}

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

.calendar-header h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  text-align: center;
  flex: 1;
}

.calendar-nav {
  background: var(--brand-pale);
  border: 1px solid var(--brand-accent);
  color: var(--brand);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  font-weight: 600;
  backdrop-filter: var(--blur-sm);
  flex-shrink: 0;
}

.calendar-nav:hover {
  background: var(--brand);
  color: white;
  transform: scale(1.06);
  box-shadow: var(--shadow-brand);
}

.calendar-nav:active {
  transform: scale(0.96);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.calendar-day-header {
  text-align: center;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.6rem 0.25rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-sizing: border-box;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition);
  position: relative;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: var(--blur-sm);
  font-size: 0.9rem;
  box-sizing: border-box;
}

.calendar-day.inactive {
  opacity: 0.3;
  cursor: not-allowed;
  background: var(--bg-primary);
}

.calendar-day.available {
  color: var(--text-primary);
  background: var(--bg-card);
  border-color: var(--border);
}

.calendar-day.available:hover {
  background: var(--brand-pale);
  border-color: var(--brand-accent);
  color: var(--brand);
  transform: scale(1.03);
  box-shadow: var(--shadow);
}

.calendar-day.selected {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: white;
  border-color: var(--brand);
  box-shadow: var(--shadow-brand);
  transform: scale(1.06);
}

.calendar-day.has-bookings::after,
.booking-indicator {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  background: var(--brand);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 10px var(--brand);
}

.calendar-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  padding: 1.2rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-sizing: border-box;
}

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

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  flex-shrink: 0;
}

.legend-color.available {
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.legend-color.selected {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
}

.legend-color.occupied {
  background: #64748b;
}

.card-header {
  margin-bottom: 1.75rem;
}

.card-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.slots-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.time-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: var(--blur-sm);
  box-sizing: border-box;
  animation: slideInRight 0.5s ease forwards;
}

.time-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-pale);
  opacity: 0;
  transition: var(--transition);
}

.time-slot.available:hover {
  border-color: var(--brand-accent);
  transform: translateX(6px);
  box-shadow: var(--shadow-lg);
}

.time-slot.available:hover::before {
  opacity: 1;
}

.time-slot.selected {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  border-color: var(--brand);
  color: white;
  box-shadow: var(--shadow-brand);
  transform: scale(1.01);
}

.time-slot.occupied {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(100, 116, 139, 0.1);
  border-color: rgba(100, 116, 139, 0.3);
}

.time-slot.prime {
  border: 2px solid var(--brand);
  background: var(--brand-pale);
  position: relative;
}

.time-slot.prime::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
}

.slot-time {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.time-slot.selected .slot-time {
  color: white;
}

.slot-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.time-slot.selected .slot-info {
  color: rgba(255, 255, 255, 0.9);
}

.slot-duration,
.slot-price {
  background: var(--bg-card);
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-weight: 700;
  border: 1px solid var(--border);
  backdrop-filter: var(--blur-sm);
}

.time-slot.selected .slot-duration,
.time-slot.selected .slot-price {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.slot-status {
  color: var(--text-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prime-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand);
  color: white;
  padding: 0.4rem 0.7rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow);
}

.summary-status {
  background: var(--brand-pale);
  color: var(--brand);
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid var(--brand-accent);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.summary-status.incomplete {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.summary-status.ready {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
  animation: pulse 2s infinite;
}

.summary-content {
  margin: 2.5rem 0;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}

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

.summary-item.completed {
  color: var(--brand);
}

.summary-item.completed::before {
  content: "✓";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
  font-weight: 900;
  font-size: 1.1rem;
}

.summary-icon {
  width: 44px;
  height: 44px;
  background: var(--brand-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 1.1rem;
  transition: var(--transition);
  border: 1px solid var(--brand-accent);
  flex-shrink: 0;
}

.summary-item.completed .summary-icon {
  background: var(--brand);
  color: white;
  box-shadow: var(--shadow-brand);
}

.summary-details {
  flex: 1;
}

.summary-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.75px;
  margin: 0 0 0.4rem 0;
  font-weight: 700;
}

.summary-value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 700;
  margin: 0;
}

.summary-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 1.75rem 0;
}

.booking-note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1.75rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  backdrop-filter: var(--blur-sm);
  box-sizing: border-box;
}

.booking-note i {
  color: var(--brand);
  font-size: 1.05rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  backdrop-filter: var(--blur-lg);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 2.25rem;
  max-width: 520px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-xl);
  transform: scale(0.94);
  transition: var(--transition);
  position: relative;
  box-sizing: border-box;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
}

.modal-content {
  text-align: center;
}

.modal-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.75rem;
  font-size: 2.1rem;
  transition: var(--transition);
}

.modal-icon.success {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 3px solid #10b981;
  animation: pulse 2s infinite;
}

.modal-content h3 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 1.25rem 0;
}

.modal-content p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 2rem 0;
  font-size: 1rem;
}

.modal-details {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  box-sizing: border-box;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1rem;
}

.detail-item span:last-child {
  color: var(--brand);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.pricing-table {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: var(--blur-sm);
  box-sizing: border-box;
}

.pricing-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-pale);
  opacity: 0;
  transition: var(--transition);
}

.pricing-row:hover {
  border-color: var(--brand-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.pricing-row:hover::before {
  opacity: 1;
}

.pricing-type {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  position: relative;
  z-index: 1;
}

.pricing-type i {
  width: 46px;
  height: 46px;
  background: var(--brand-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 1.2rem;
  border: 1px solid var(--brand-accent);
  flex-shrink: 0;
  transition: var(--transition);
}

.pricing-row:hover .pricing-type i {
  background: var(--brand);
  color: white;
  box-shadow: var(--shadow-brand);
  transform: scale(1.06);
}

.type-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.type-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-details {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  position: relative;
  z-index: 1;
}

.pricing-duration {
  background: var(--bg-card);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-weight: 700;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  backdrop-filter: var(--blur-sm);
  font-size: 0.85rem;
}

.pricing-amount {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--brand);
  letter-spacing: -0.02em;
  min-width: 64px;
  text-align: right;
}

.session-type-selector {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.type-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.type-option input[type="radio"] {
  display: none;
}

.type-option i {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.type-option-label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.type-option .type-name {
  font-size: 0.95rem;
  margin: 0;
}

.type-option .type-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.type-option input[type="radio"]:checked + i,
.type-option input[type="radio"]:checked ~ .type-option-label .type-name {
  color: var(--brand);
  border-color: var(--brand);
}

.type-option input[type="radio"]:checked ~ .type-option-label .type-desc {
  color: var(--brand-light);
}

.type-option input[type="radio"]:checked ~ i {
  background: var(--brand-pale);
}

.loading .time-slot,
.loading .calendar-day {
  opacity: 0.5;
  pointer-events: none;
}

.loading .time-slot::before,
.loading .calendar-day::before {
  opacity: 1;
  animation: pulse 1.5s ease-in-out infinite;
}

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

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.55;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

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

@media (min-width: 768px) {
  .ticketing-section {
    padding: 7rem 0 5rem;
  }

  .section-header {
    margin-bottom: 4.5rem;
    padding: 0 2rem;
  }

  .calendar-card,
  .time-slots-card,
  .booking-summary-card,
  .pricing-table-card {
    padding: 2rem;
  }

  .calendar-grid {
    gap: 0.55rem;
  }

  .calendar-day-header {
    font-size: 0.75rem;
  }

  .calendar-day {
    font-size: 1rem;
  }

  .calendar-legend {
    gap: 2.2rem;
  }

  .summary-icon {
    width: 48px;
    height: 48px;
  }

  .modal {
    max-width: 560px;
    padding: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .booking-container {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 3rem;
    padding: 0 2rem;
  }

  .section-header {
    margin-bottom: 5rem;
  }

  .ticketing-section {
    padding: 7.5rem 0 5.5rem;
  }
}

@media (min-width: 1280px) {
  .booking-container {
    max-width: 1400px;
  }

  .calendar-card,
  .time-slots-card,
  .booking-summary-card,
  .pricing-table-card {
    padding: 2.5rem;
  }

  .calendar-header h3 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .ticketing-section {
    padding: 6.5rem 0 3.5rem;
  }

  .section-header {
    padding: 0 1.25rem;
    margin-bottom: 3rem;
  }

  .section-header h1 {
    font-size: 2.2rem;
  }

  .booking-container {
    padding: 0 1rem;
  }

  .calendar-card,
  .time-slots-card,
  .booking-summary-card,
  .pricing-table-card {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
  }

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

  .calendar-nav {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }

  .calendar-grid {
    gap: 0.4rem;
  }

  .calendar-day-header {
    font-size: 0.7rem;
    padding: 0.5rem 0.2rem;
  }

  .calendar-day {
    font-size: 0.85rem;
  }

  .calendar-legend {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .time-slot {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem;
  }

  .slot-info {
    justify-content: space-between;
  }

  .summary-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    text-align: left;
  }

  .summary-icon {
    align-self: flex-start;
  }

  .modal {
    width: 94%;
    padding: 1.75rem;
  }

  .modal-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }

  .modal-content h3 {
    font-size: 1.4rem;
  }
}
