/* Timetable Page Styles */

/* Horizontal Calendar Date Picker */
.hcal-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2rem;
  padding: 1rem 0;
  background: white;
  overflow: visible;
}

.hcal-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 2px solid #e0e0e0;
  background: white;
  color: #333;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  position: relative;
}

.hcal-btn:hover {
  background: #ff6b35;
  border-color: #ff6b35;
  color: white;
  transform: scale(1.05);
}

.hcal-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

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

#calendar-splide {
  flex: 1;
  overflow: hidden;
}

.splide__track {
  overflow: visible;
}

.splide__list {
  display: flex;
  gap: 8px;
}

.calendar-date-item {
  flex-shrink: 0;
  width: 70px;
  padding: 12px 8px;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  background: white;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  user-select: none;
  position: relative;
}

.calendar-date-item:hover {
  border-color: #ff6b35;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
  z-index: 5;
}

.calendar-date-item.is-selected {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border-color: #ff6b35;
  color: white;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
}

.calendar-date-item.is-today:not(.is-selected) {
  border-color: #ff6b35;
  border-width: 2px;
}

.calendar-date-item.is-past:not(.is-selected) {
  opacity: 0.5;
  cursor: default;
}

.calendar-date-item.is-past:not(.is-selected):hover {
  transform: none;
  box-shadow: none;
  border-color: #e5e7eb;
}

.date-weekday {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  opacity: 0.8;
}

.date-day {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 2px;
}

.date-month {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.8;
  text-transform: uppercase;
}

.calendar-date-item.is-selected .date-weekday,
.calendar-date-item.is-selected .date-day,
.calendar-date-item.is-selected .date-month {
  color: white;
}

.page-hero {
  background: white;
  padding: 40px 0 20px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.page-hero p {
  font-size: 1rem;
  color: #666;
  display: none;
}

.timetable-section {
  background: white;
  overflow: visible;
}

.week-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: white;
  gap: 1rem;
}

.week-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  background: white;
  color: #333;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

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

.week-nav-btn:hover {
  background: #f5f5f5;
  border-color: #999;
}

/* Day selector buttons */
.week-days {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.day-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.day-btn:hover {
  background: #f5f5f5;
}

.day-btn.active {
  background: #ff6b35;
  color: white;
  border-color: #ff6b35;
}

.day-btn .day-name {
  font-size: 0.875rem;
  font-weight: 500;
}

.day-btn .day-number {
  font-size: 1.25rem;
  font-weight: 700;
}

.current-week {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  text-align: center;
  display: none;
}

.timetable-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.filter-group {
  width: 100%;
}

.filter-group label {
  display: none;
}

.filter-select {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 14px 40px 14px 16px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #2c3e50;
  background: white;
  border: 1.5px solid #e1e8ed;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%232c3e50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
}

.filter-select:hover {
  border-color: #2EC4B6;
  background-color: #fafbfc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 196, 182, 0.15);
}

.filter-select:focus {
  border-color: #2EC4B6;
  background-color: white;
  box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.1);
}

.filter-select:active {
  transform: translateY(0);
}

.filter-select option {
  padding: 12px;
  font-weight: 500;
  color: #2c3e50;
}

/* Timetable Grid (Desktop) */
.timetable-wrapper {
  overflow-x: auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.timetable-grid {
  display: grid;
  grid-template-columns: 100px repeat(7, 1fr);
  min-width: 900px;
}

.time-slot, .day-header, .class-slot {
  padding: 1rem;
  border: 1px solid var(--border-color);
}

.day-header {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  font-weight: 700;
  text-align: center;
  padding: 1.5rem 1rem;
}

.day-header .date {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

.time-slot {
  background: #f8f9fa;
  font-weight: 600;
  color: var(--text-light);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.class-slot {
  background: white;
  min-height: 80px;
  position: relative;
  transition: background 0.2s ease;
}

.class-slot:hover {
  background: #f8f9fa;
}

.class-slot.empty {
  background: #fafafa;
}

.class-card {
  padding: 12px;
  background: linear-gradient(135deg, #fff5f2 0%, #ffe8e0 100%);
  border-left: 4px solid #ff6b35;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.class-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.class-card.pilates {
  background: linear-gradient(135deg, #fff5f2 0%, #ffe8e0 100%);
  border-left-color: #ff6b35;
}

.class-card.yoga {
  background: linear-gradient(135deg, #fff5f2 0%, #ffe8e0 100%);
  border-left-color: #ff8c42;
}

.class-card.strength {
  background: linear-gradient(135deg, #fff5f2 0%, #ffe8e0 100%);
  border-left-color: #f7931e;
}

.class-card.cardio {
  background: linear-gradient(135deg, #fff5f2 0%, #ffe8e0 100%);
  border-left-color: #ff6b35;
}

.class-card-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.class-card-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

.class-card-instructor {
  font-size: 0.875rem;
  color: var(--text-light);
}

.class-card-spots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-top: auto;
}

.spots-indicator {
  flex: 1;
  height: 6px;
  background: rgba(0,0,0,0.1);
  border-radius: 3px;
  overflow: hidden;
}

.spots-fill {
  height: 100%;
  background: #ff6b35;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.spots-fill.low {
  background: #f44336;
}

.spots-fill.medium {
  background: #ff8c42;
}

.spots-fill.high {
  background: #4caf50;
}

.spots-text {
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

/* List view for daily classes */
.daily-classes-section {
  margin-top: 2rem;
  margin-bottom: 2em;
}

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

.daily-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
}

.class-count {
  color: #666;
  font-size: 0.95rem;
}

.status-indicators {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.status-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.75rem;
}

.status-dot.booked {
  background: #4caf50;
  color: white;
}

.status-dot.waitlist {
  background: #ff8c42;
  color: white;
}

.class-list-item {
  display: flex;
  align-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  margin-bottom: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.class-list-item.is-live {
  border-color: rgba(16, 185, 129, 0.6);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.9) 0%, rgba(209, 250, 229, 0.6) 100%);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.15);
}

.class-list-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #ff6b35 0%, #f7931e 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.class-list-item:hover {
  background: linear-gradient(135deg, #fff5f2 0%, #ffffff 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.15);
  border-color: #ff6b35;
}

.class-list-item:hover::before {
  opacity: 1;
}

.class-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  color: #047857;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.class-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  position: relative;
}

.class-live-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(16, 185, 129, 0.45);
  animation: timetable-pulse 1.6s infinite;
}

@keyframes timetable-pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  70% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

.class-time {
  flex: 0 0 110px;
  padding-right: 20px;
  border-right: 2px solid #f3f4f6;
}

.time-main {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ff6b35;
  letter-spacing: -0.02em;
}

.time-duration {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 4px;
  font-weight: 500;
}

.class-details {
  flex: 1;
  padding: 0 24px;
  min-width: 0;
}

.class-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.class-info-icon {
  width: 16px;
  height: 16px;
  color: #ff6b35;
  flex-shrink: 0;
}

.class-meta {
  font-size: 0.875rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.class-meta > div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.class-meta svg {
  width: 14px;
  height: 14px;
  color: #9ca3af;
}

.class-extra {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.class-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.12);
  color: #c2410c;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  width: fit-content;
}

.class-desc {
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.class-location {
  flex: 0 0 180px;
  text-align: left;
}

.location-name {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 0.875rem;
}

.location-room {
  font-size: 0.8rem;
  color: #666;
  margin-top: 2px;
}

.class-availability {
  flex: 0 0 160px;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.spots-left {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border: 1px solid #fbbf24;
}

.spots-left.full {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  border: 1px solid #f87171;
}

.spots-left.almost-full {
  background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
  color: #9a3412;
  border: 1px solid #fb923c;
}

.spots-left.available {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border: 1px solid #34d399;
}

.class-action-btn {
  padding: 12px 28px;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.875rem;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.class-action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.class-action-btn:hover::before {
  left: 100%;
}

.class-action-btn:hover {
  background: linear-gradient(135deg, #ff5722 0%, #ff8c42 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.class-action-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Mobile Timetable */
.timetable-mobile {
  display: none;
}

.mobile-class-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

.mobile-class-name {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-color);
}

.mobile-class-badge {
  padding: 4px 12px;
  background: #ff6b35;
  color: white;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.mobile-class-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--text-light);
}

.mobile-class-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Booking Modal */
.booking-modal-content {
  text-align: center;
}

.booking-class-info {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem 0;
}

.booking-class-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.booking-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.booking-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: white;
  border-radius: 8px;
}

.booking-detail svg {
  color: #ff6b35;
}

.booking-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.booking-actions button {
  flex: 1;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  overflow-y: auto;
}

.modal-content {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  background: #f5f5f5;
  color: #333;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1;
}

.modal-close:hover {
  background: #e0e0e0;
  transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 968px) {
  .timetable-wrapper {
    display: none;
  }
  
  .timetable-mobile {
    display: block;
  }
  
  .week-navigation {
    padding: 0.75rem;
    gap: 0.75rem;
  }
  
  .week-days {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
  }
  
  .day-btn {
    min-width: 50px;
    padding: 6px 10px;
    flex-shrink: 0;
  }
  
  .day-btn .day-name {
    font-size: 0.75rem;
  }
  
  .day-btn .day-number {
    font-size: 1.125rem;
  }
  
  .timetable-filters {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 1rem;
  }
  
  .filter-select {
    padding: 12px 36px 12px 14px;
    font-size: 14px;
    min-height: 48px;
  }
  
  .modal-content {
    padding: 1.5rem;
    margin: 1rem;
  }
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #666;
}

.loading-state .spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #ff6b35;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

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

/* No Classes State */
.no-classes {
  text-align: center;
  padding: 4rem 2rem;
  color: #666;
}

.no-classes svg {
  margin-bottom: 1.5rem;
}

.no-classes h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.no-classes p {
  margin-bottom: 1rem;
}

/* Class Status Badges */
.class-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 8px;
  vertical-align: middle;
}

.class-status.available {
  background: #d1fae5;
  color: #065f46;
}

.class-status.almost-full {
  background: #fed7aa;
  color: #92400e;
}

.class-status.full {
  background: #fee2e2;
  color: #991b1b;
}

/* Book Button Enhancement */
.btn-book {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-book:hover {
  transform: translateX(4px);
}

.btn-book svg {
  transition: transform 0.3s ease;
}

.btn-book:hover svg {
  transform: translateX(4px);
}

@media (max-width: 480px) {
  .page-hero h1 {
    font-size: 2rem;
  }
  
  .current-week {
    font-size: 1rem;
  }
  
  .timetable-filters {
    padding: 0.875rem;
    gap: 0.625rem;
  }
  
  .filter-select {
    padding: 11px 34px 11px 12px;
    font-size: 13px;
  }
  
  .modal-content {
    padding: 1rem;
    margin: 0.5rem;
    max-height: 95vh;
  }
}

/* Tablet and Mobile Responsive */
@media (max-width: 768px) {
  .class-list-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
    gap: 12px;
  }
  
  .class-time {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
  }
  
  .time-main {
    font-size: 0.95rem;
  }
  
  .time-duration {
    font-size: 0.75rem;
    color: #ff6b35;
    font-weight: 600;
  }
  
  .class-details {
    flex: 1;
    width: 100%;
    padding: 0;
  }
  
  .class-title {
    font-size: 0.95rem;
  }
  
  .class-meta {
    font-size: 0.8rem;
    gap: 8px;
  }
  
  .class-location {
    flex: 1;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
  }
  
  .location-name {
    font-size: 0.8rem;
  }
  
  .location-room {
    font-size: 0.75rem;
  }
  
  .class-availability {
    flex: 1;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
  }
  
  .spots-left {
    font-size: 0.75rem;
  }
  
  .class-action-btn {
    padding: 8px 18px;
    font-size: 0.8rem;
  }
  
  .daily-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .daily-header h2 {
    font-size: 1.25rem;
  }
}

/* ===== Early Booking Promotion Styles ===== */

/* Promo badge container */
.early-booking-promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 10px;
  border: 1px solid #f59e0b;
  animation: promo-pulse 2s ease-in-out infinite;
}

@keyframes promo-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.3);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
  }
}

.promo-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}

.promo-icon {
  font-size: 1.1rem;
}

.promo-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #92400e;
}

.promo-countdown {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.countdown-label {
  font-size: 0.75rem;
  color: #78350f;
}

.early-booking-countdown {
  font-size: 0.85rem;
  font-weight: 700;
  color: #dc2626;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
  background: white;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #fbbf24;
}

/* Credits display with promo */
.class-meta .has-promo {
  position: relative;
}

.original-credits {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 0.85em;
  margin-right: 4px;
}

.discounted-credits {
  color: #16a34a;
  font-weight: 700;
  font-size: 1.1em;
}

/* Class card with active promo */
.class-list-item:has(.early-booking-promo) {
  border-left: 4px solid #f59e0b;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .early-booking-promo {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 12px;
  }
  
  .promo-countdown {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
  
  .promo-text {
    font-size: 0.8rem;
  }
  
  .early-booking-countdown {
    font-size: 0.8rem;
  }
}
