/* Loading Spinner Component */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  min-height: 200px;
  margin: 0 auto;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error Card Component */
.error-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #f0f0f0;
  margin: 20px;
}

.error-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.error-message {
  color: #666;
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* No Access Card Component */
.no-access-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 2px solid #f0f0f0;
  margin: 20px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.no-access-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.8;
}

.no-access-title {
  color: #333;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  font-family: 'Sarabun', sans-serif;
}

.no-access-message {
  color: #666;
  font-size: 16px;
  margin-bottom: 30px;
  line-height: 1.6;
  font-family: 'Sarabun', sans-serif;
}

.no-access-actions {
  margin-top: 30px;
}

.btn-back-home {
  display: inline-block;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  font-family: 'Sarabun', sans-serif;
}

.btn-back-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
  text-decoration: none;
  color: white;
}

.retry-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.retry-btn:hover {
  background-color: #0056b3;
}

/* Error Alert Component */
.error-alert {
  background: #fee;
  border: 1px solid #fcc;
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c33;
}

/* Hidden/Show utilities */
.hidden {
  display: none !important;
}

.show {
  display: block !important;
}

/* API Loading States */
.loading-state {
  opacity: 0.6;
  pointer-events: none;
}

.loaded-state {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

/* Flatpickr Custom Styles */
.flatpickr-calendar {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}

.flatpickr-day {
  border-radius: 8px;
  margin: 2px;
  transition: all 0.3s ease;
}

.flatpickr-day:hover {
  background-color: #f0f8ff;
  transform: scale(1.05);
}

.flatpickr-day.selected {
  background-color: #007bff;
  border-color: #007bff;
  color: white;
}

.flatpickr-day.today {
  border-color: #28a745;
  background-color: #f8fff8;
}

/* Closed Day Styling */
.flatpickr-day.closed-day {
  background-color: #ffebee !important;
  color: #d32f2f !important;
  text-decoration: line-through;
  cursor: not-allowed;
  opacity: 0.7;
}

.flatpickr-day.closed-day:hover {
  background-color: #ffcdd2 !important;
  transform: none;
}

.flatpickr-day.closed-day.flatpickr-disabled {
  background-color: #ffebee !important;
  color: #d32f2f !important;
}

/* Time Selection Styling */
.form-select option:disabled {
  color: #999;
  font-style: italic;
}

.form-select option[value=""]:disabled {
  color: #666;
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
  .flatpickr-calendar {
    font-size: 14px;
  }
  
  .flatpickr-day {
    margin: 1px;
  }
  
  .error-card {
    margin: 10px;
    padding: 20px;
  }
  
  .error-icon {
    font-size: 36px;
  }
  
  .no-access-card {
    margin: 10px;
    padding: 30px 20px;
  }
  
  .no-access-icon {
    font-size: 48px;
  }
  
  .no-access-title {
    font-size: 20px;
  }
  
  .no-access-message {
    font-size: 14px;
  }
  
  .btn-back-home {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* Time Slot Status Colors */
.form-select option {
  padding: 8px 12px;
}

.form-select option:contains("✅") {
  color: #28a745;
}

.form-select option:contains("❌") {
  color: #dc3545;
}

.form-select option:contains("🚫") {
  color: #6c757d;
}

/* SweetAlert2 Custom Styles */
.swal2-popup {
  border-radius: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.swal2-title {
  color: #333;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
}

.swal2-html-container {
  color: #666;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.swal2-confirm {
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

.swal2-cancel {
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

/* Custom popup styles for rewards */
.swal2-popup-custom {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
}

.swal2-popup-custom .swal2-title {
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.swal2-popup-custom .swal2-html-container {
  color: rgba(255, 255, 255, 0.9);
}

.swal2-popup-loading {
  background: #f8f9fa;
  border: 2px solid #e3f2fd;
}

.swal2-popup-loading .swal2-title {
  color: #1976d2;
}

.swal2-popup-loading .swal2-html-container {
  color: #666;
}

.swal2-popup-success {
  background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
  color: white;
  border: none;
}

.swal2-popup-success .swal2-title {
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.swal2-popup-success .swal2-html-container {
  color: rgba(255, 255, 255, 0.9);
}

.swal2-popup-error {
  background: #ffebee;
  border: 2px solid #f44336;
}

.swal2-popup-error .swal2-title {
  color: #d32f2f;
}

.swal2-popup-error .swal2-html-container {
  color: #666;
}

/* Custom button styles */
.swal2-confirm-custom {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.5px;
}

.swal2-confirm-custom:hover {
  background: linear-gradient(135deg, #45a049 0%, #3e8e41 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

.swal2-cancel-custom {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.5px;
}

.swal2-cancel-custom:hover {
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 67, 54, 0.5);
}

/* Loading spinner enhancement */
.swal2-popup-loading .swal2-loader {
  border-left-color: #1976d2;
  border-bottom-color: #1976d2;
}

/* Icon animations */
.swal2-icon.swal2-success {
  border-color: #4caf50;
}

.swal2-icon.swal2-error {
  border-color: #f44336;
}

/* Progress bar for timer */
.swal2-timer-progress-bar {
  background: rgba(255, 255, 255, 0.8);
  height: 4px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .swal2-popup {
    width: 90%;
    font-size: 14px;
  }
  
  .swal2-title {
    font-size: 20px;
  }
  
  .swal2-html-container {
    font-size: 14px;
  }
  
  .swal2-confirm,
  .swal2-cancel {
    font-size: 14px;
    padding: 10px 20px;
  }
}

/* Custom Flatpickr Styles */
.flatpickr-input {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
  font-family: 'Sarabun', sans-serif;
  color: var(--text-dark);
}

.flatpickr-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.flatpickr-input::placeholder {
  color: var(--text-light);
}

.flatpickr-input.open {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* Flatpickr Calendar Customization */
.flatpickr-calendar {
  font-family: 'Sarabun', sans-serif !important;
  box-shadow: var(--shadow-hover) !important;
  border-radius: 16px !important;
  border: 1px solid var(--border-color) !important;
  background: var(--white) !important;
  animation: fadeIn 0.3s ease !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flatpickr-day {
  border-radius: 8px !important;
  margin: 2px !important;
  transition: all 0.3s ease !important;
  font-weight: 500 !important;
  font-family: 'Sarabun', sans-serif !important;
}

.flatpickr-day:hover {
  background-color: var(--light-blue) !important;
  color: var(--primary-blue) !important;
  transform: scale(1.05) !important;
}

.flatpickr-day.selected {
  background-color: var(--primary-blue) !important;
  border-color: var(--primary-blue) !important;
  color: var(--white) !important;
}

.flatpickr-day.today {
  border-color: var(--primary-blue) !important;
  background-color: var(--light-blue) !important;
  color: var(--primary-blue) !important;
  font-weight: 600 !important;
}

/* Enhanced Closed Day Styling */
.flatpickr-day.closed-day {
  background-color: #ffebee !important;
  color: #d32f2f !important;
  text-decoration: line-through !important;
  cursor: not-allowed !important;
  opacity: 0.7 !important;
}

.flatpickr-day.closed-day:hover {
  background-color: #ffcdd2 !important;
  color: #d32f2f !important;
  transform: none !important;
}

.flatpickr-day.closed-day.flatpickr-disabled {
  background-color: #ffebee !important;
  color: #d32f2f !important;
}

.flatpickr-months {
  background: var(--white) !important;
  border-radius: 16px 16px 0 0 !important;
  border-bottom: none !important;
}

.flatpickr-current-month {
  color: var(--text-dark) !important;
  font-weight: 600 !important;
  font-family: 'Sarabun', sans-serif !important;
}

.flatpickr-weekdays {
  background: var(--white) !important;
  color: var(--text-light) !important;
  font-weight: 600 !important;
  font-family: 'Sarabun', sans-serif !important;
  border-bottom: 1px solid var(--border-color) !important;
}

.flatpickr-weekday {
  color: var(--text-light) !important;
  font-weight: 600 !important;
  font-family: 'Sarabun', sans-serif !important;
}

/* Days container */
.flatpickr-days {
  background: var(--white) !important;
}

.flatpickr-innerContainer {
  background: var(--white) !important;
}

/* Navigation buttons */
.flatpickr-prev-month,
.flatpickr-next-month {
  color: var(--primary-blue) !important;
  transition: all 0.3s ease !important;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
  color: var(--dark-blue) !important;
  transform: scale(1.1) !important;
}

/* Month dropdown */
.flatpickr-current-month select {
  background: var(--white) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 8px !important;
  color: var(--text-dark) !important;
  font-family: 'Sarabun', sans-serif !important;
  padding: 4px 8px !important;
}

.flatpickr-current-month select:focus {
  outline: none !important;
  border-color: var(--primary-blue) !important;
  box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1) !important;
}

/* Date input styling */
.form-input[readonly] {
  cursor: pointer;
  background-color: var(--white);
  background-image: none;
}

/* Form help text */
.form-help {
  display: block;
  margin-top: 8px;
  color: var(--text-light);
  font-size: 12px;
  font-style: italic;
}

/* Form labels */
.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-weight: 600;
  font-family: 'Sarabun', sans-serif;
  font-size: 14px;
}

/* Enhanced form styling */
.form-input {
  background: var(--white);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  font-size: 16px;
  font-family: 'Sarabun', sans-serif;
  color: var(--text-dark);
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* Date picker mobile responsiveness */
@media (max-width: 768px) {
  .flatpickr-calendar {
    font-size: 14px !important;
  }
  
  .flatpickr-day {
    margin: 1px !important;
  }
  
  .form-input {
    padding: 14px;
    font-size: 16px;
  }
  
  .form-help {
    font-size: 11px;
  }
  
  .datetime-grid {
    gap: 16px;
  }
  
  .form-group {
    margin-bottom: 16px;
  }
}

/* Modern Booking Success Popup Styles */
.booking-success-popup {
  border-radius: 20px !important;
  padding: 0 !important;
  max-width: 600px !important;
  overflow: hidden !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Ultra Modern Success Popup */
.ultra-modern-success {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  animation: slideUpFade 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUpFade {
  0% {
    transform: translateY(30px) scale(0.9);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.success-header-ultra {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  padding: 32px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.success-badge {
  position: relative;
  z-index: 10;
  margin-bottom: 20px;
}

.badge-inner {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.check-animation {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15), 0 0 0 3px rgba(255,255,255,0.2);
  z-index: 2;
  position: relative;
  animation: checkPop 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s both;
}

.check-icon {
  width: 28px;
  height: 28px;
  color: #4facfe;
  stroke-width: 3;
  animation: checkDraw 1s ease-in-out 0.8s both;
}

@keyframes checkPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes checkDraw {
  0% {
    stroke-dasharray: 0 100;
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dasharray: 100 0;
    stroke-dashoffset: 0;
  }
}

.success-rings {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ring {
  position: absolute;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  animation: ripple 2s ease-out infinite;
}

.ring-1 {
  width: 100%;
  height: 100%;
  animation-delay: 0s;
}

.ring-2 {
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  animation-delay: 0.3s;
}

.ring-3 {
  width: 140%;
  height: 140%;
  top: -20%;
  left: -20%;
  animation-delay: 0.6s;
}

@keyframes ripple {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.success-content-ultra {
  color: white;
  z-index: 10;
  position: relative;
}

.success-title-ultra {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px 0;
  text-shadow: 0 3px 15px rgba(0,0,0,0.2);
  letter-spacing: -0.5px;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.success-desc-ultra {
  font-size: 16px;
  opacity: 0.95;
  margin: 0;
  font-weight: 400;
  animation: fadeInUp 0.8s ease-out 0.7s both;
}

@keyframes fadeInUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.booking-card-ultra {
  background: white;
  margin: 20px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  animation: cardSlideIn 0.8s ease-out 0.9s both;
}

@keyframes cardSlideIn {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.card-header-ultra {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
}

.header-icon {
  margin: 0 auto;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.card-header-ultra h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.booking-info-ultra {
  padding: 24px;
}

.info-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  border-color: #cbd5e1;
}

.info-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.info-icon svg {
  color: white;
  width: 20px;
  height: 20px;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 14px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 16px;
  color: #2d3748;
  font-weight: 700;
}

.reminder-card-ultra {
  background: linear-gradient(135deg, #fef3e2 0%, #fed7aa 100%);
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 18px;
  margin: 0 20px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #92400e;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out 1.1s both;
}

.reminder-card-ultra::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #f59e0b, #d97706);
  border-radius: 0 2px 2px 0;
}

.reminder-icon-ultra {
  width: 48px;
  height: 48px;
  background: rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d97706;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}

.reminder-content-ultra {
  flex: 1;
}

.reminder-title-ultra {
  font-size: 16px;
  font-weight: 600;
  color: #92400e;
  margin: 0 0 4px 0;
}

.reminder-text-ultra {
  font-size: 14px;
  color: #a16207;
  margin: 0;
  line-height: 1.4;
}





.confetti {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.confetti-piece {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  animation: confettiFall 3s linear infinite;
}

.confetti-piece:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  background: #ff6b6b;
}

.confetti-piece:nth-child(2) {
  left: 20%;
  animation-delay: 0.3s;
  background: #4ecdc4;
}

.confetti-piece:nth-child(3) {
  left: 30%;
  animation-delay: 0.6s;
  background: #45b7d1;
}

.confetti-piece:nth-child(4) {
  left: 50%;
  animation-delay: 0.9s;
  background: #96ceb4;
}

.confetti-piece:nth-child(5) {
  left: 60%;
  animation-delay: 1.2s;
  background: #ffeaa7;
}

.confetti-piece:nth-child(6) {
  left: 70%;
  animation-delay: 1.5s;
  background: #fd79a8;
}

.confetti-piece:nth-child(7) {
  left: 80%;
  animation-delay: 1.8s;
  background: #fdcb6e;
}

.confetti-piece:nth-child(8) {
  left: 90%;
  animation-delay: 2.1s;
  background: #6c5ce7;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Mobile responsiveness for Ultra Modern Success Popup */
@media (max-width: 768px) {
  .booking-success-popup {
    max-width: 90% !important;
    margin: 0 auto !important;
  }
  
  .ultra-modern-success {
    border-radius: 20px;
  }
  
  .success-header-ultra {
    padding: 28px 16px;
  }
  
  .success-title-ultra {
    font-size: 26px;
    font-weight: 700;
  }
  
  .success-desc-ultra {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.95;
  }
  
  .badge-inner {
    width: 70px;
    height: 70px;
  }
  
  .check-animation {
    width: 52px;
    height: 52px;
  }
  
  .check-icon {
    width: 24px;
    height: 24px;
  }
  
  .booking-card-ultra {
    margin: 16px;
  }
  
  .booking-info-ultra {
    padding: 20px;
  }
  
  .info-row {
    flex-direction: column;
    gap: 12px;
  }
  
  .info-item {
    padding: 16px;
  }
  
  .info-icon {
    width: 40px;
    height: 40px;
  }
  
  .info-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .info-value {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
  }
  
  .reminder-card-ultra {
    margin: 0 16px 16px;
    padding: 16px;
  }
  
  .reminder-icon-ultra {
    width: 44px;
    height: 44px;
  }
  
  .reminder-title-ultra {
    font-size: 16px;
    font-weight: 600;
  }
  
  .reminder-text-ultra {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
  }
  
  .confetti-piece {
    width: 6px;
    height: 6px;
  }
}

/* Modern Booking Confirm Popup Styles */
.booking-confirm-popup {
  border-radius: 20px !important;
  padding: 0 !important;
  max-width: 600px !important;
  overflow: hidden !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.modern-booking-confirm {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  padding: 24px 20px 20px;
  position: relative;
}

/* SweetAlert Button Container */
.swal2-actions {
  display: flex !important;
  justify-content: space-between !important;
  width: 100% !important;
  margin-top: 20px !important;
  gap: 12px !important;
}

.modern-booking-confirm::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
  border-radius: 24px 24px 0 0;
}

.confirm-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}

.confirm-icon-modern {
  flex-shrink: 0;
}

.icon-circle {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  animation: iconGlow 2s ease-in-out infinite alternate;
  position: relative;
}

.icon-circle::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(135deg, #3b82f6, transparent, #8b5cf6);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  opacity: 0.6;
  animation: borderGlow 3s ease-in-out infinite;
}

@keyframes iconGlow {
  0% { box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4); }
  100% { box-shadow: 0 12px 35px rgba(59, 130, 246, 0.6); }
}

@keyframes borderGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.confirm-text {
  flex: 1;
  padding-top: 4px;
}

.confirm-title-modern {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px 0;
  font-family: 'Sarabun', sans-serif;
  letter-spacing: -0.025em;
}

.confirm-subtitle {
  font-size: 15px;
  color: #64748b;
  margin: 0;
  font-weight: 400;
  line-height: 1.5;
}

.booking-summary {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.booking-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.summary-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.summary-item:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.03), rgba(139, 92, 246, 0.03));
  border-radius: 12px;
  margin: 0 -12px;
  padding: 16px 12px;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.summary-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.summary-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 2px;
}

.summary-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-value {
  font-size: 17px;
  color: #1e293b;
  font-weight: 700;
  font-family: 'Sarabun', sans-serif;
}

.booking-note {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #fef3e2 0%, #fed7aa 100%);
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 16px;
  color: #92400e;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.booking-note::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #f59e0b, #d97706);
}

.note-icon {
  color: #d97706;
  flex-shrink: 0;
}

.modern-confirm-btn {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
  border: none !important;
  border-radius: 16px !important;
  padding: 16px 32px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  font-family: 'Sarabun', sans-serif !important;
  text-transform: none !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3) !important;
  margin-right: 12px !important;
  letter-spacing: 0.025em !important;
  position: relative !important;
  overflow: hidden !important;
  order: 1 !important;
}

.modern-confirm-btn::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
  transition: left 0.6s !important;
}

.modern-confirm-btn:hover::before {
  left: 100% !important;
}

.modern-confirm-btn:hover {
  background: linear-gradient(135deg, #1e40af, #1e3a8a) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4) !important;
}

.modern-cancel-btn {
  background: linear-gradient(135deg, #6b7280, #4b5563) !important;
  border: none !important;
  border-radius: 16px !important;
  padding: 16px 32px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  font-family: 'Sarabun', sans-serif !important;
  text-transform: none !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 8px 25px rgba(107, 114, 128, 0.3) !important;
  letter-spacing: 0.025em !important;
  position: relative !important;
  overflow: hidden !important;
  order: 2 !important;
  margin-left: 12px !important;
}

.modern-cancel-btn::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
  transition: left 0.6s !important;
}

.modern-cancel-btn:hover::before {
  left: 100% !important;
}

.modern-cancel-btn:hover {
  background: linear-gradient(135deg, #374151, #1f2937) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 35px rgba(107, 114, 128, 0.4) !important;
}

/* Mobile responsiveness for modern popups */
@media (max-width: 768px) {
  .booking-confirm-popup,
  .booking-success-popup {
    max-width: 95% !important;
    margin: 0 auto !important;
  }
  
  .modern-booking-confirm,
  .modern-booking-success {
    padding: 24px 20px 20px;
  }
  
  .confirm-header {
    gap: 12px;
    margin-bottom: 24px;
  }
  
  .icon-circle {
    width: 48px;
    height: 48px;
  }
  
  .success-circle {
    width: 64px;
    height: 64px;
  }
  
  .confirm-title-modern,
  .success-title-modern {
    font-size: 22px;
    font-weight: 700;
  }
  
  .confirm-subtitle,
  .success-subtitle-modern {
    font-size: 15px;
    font-weight: 500;
  }
  
  .booking-summary,
  .booking-details-modern {
    padding: 18px;
    margin-bottom: 20px;
  }
  
  .summary-item {
    padding: 12px 0;
  }
  
  .summary-icon {
    width: 36px;
    height: 36px;
  }
  
  .summary-value {
    font-size: 16px;
    font-weight: 700;
  }
  
  .details-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .detail-item-modern {
    padding: 12px;
  }
  
  .detail-icon-modern {
    width: 32px;
    height: 32px;
  }
  
  .detail-value-modern {
    font-size: 13px;
  }
  
  .booking-note,
  .success-reminder {
    padding: 16px;
    gap: 12px;
  }
  
  .note-icon,
  .reminder-icon {
    width: 40px;
    height: 40px;
  }
  
  .reminder-title {
    font-size: 12px;
  }
  
  .reminder-message {
    font-size: 14px;
  }
  
  .modern-confirm-btn,
  .modern-cancel-btn {
    padding: 14px 24px !important;
    font-size: 15px !important;
    margin: 8px 4px !important;
    border-radius: 12px !important;
    flex: 1 !important;
    max-width: none !important;
  }
  
  .modern-confirm-btn {
    margin-right: 6px !important;
    margin-left: 0 !important;
  }
  
  .modern-cancel-btn {
    margin-left: 6px !important;
    margin-right: 0 !important;
  }
  
  .modern-success-btn {
    padding: 16px 28px !important;
    font-size: 15px !important;
    border-radius: 12px !important;
    max-width: 100% !important;
  }
}

/* Booking Loading Popup Styles */
.booking-loading-popup {
  border-radius: 20px !important;
  padding: 0 !important;
  max-width: 400px !important;
  overflow: hidden !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

.booking-loading-container {
  padding: 40px 20px 30px;
  text-align: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.loading-icon-wrapper {
  margin-bottom: 25px;
}

.loading-spinner-custom {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0 auto;
}

.spinner-ring {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid transparent;
  animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(1) {
  border-top-color: #2196F3;
  animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
  border-right-color: #4CAF50;
  animation-delay: -0.5s;
  width: 50px;
  height: 50px;
  top: 5px;
  left: 5px;
}

.spinner-ring:nth-child(3) {
  border-bottom-color: #FF9800;
  animation-delay: -1s;
  width: 40px;
  height: 40px;
  top: 10px;
  left: 10px;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.loading-content {
  margin-bottom: 10px;
}

.loading-title {
  font-size: 24px;
  font-weight: 700;
  color: #495057;
  margin: 0 0 8px 0;
  font-family: 'Sarabun', sans-serif;
}

.loading-message {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
  font-weight: 400;
}

/* Booking Error Popup Styles */
.booking-error-popup {
  border-radius: 20px !important;
  padding: 0 !important;
  max-width: 450px !important;
  overflow: hidden !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

.booking-error-container {
  padding: 30px 20px 20px;
  text-align: center;
  background: linear-gradient(135deg, #fff5f5 0%, #ffebee 100%);
}

.error-icon-wrapper {
  margin-bottom: 20px;
}

.error-icon-custom {
  display: inline-block;
  animation: errorShake 0.6s ease-in-out;
}

@keyframes errorShake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.error-content {
  margin-bottom: 20px;
}

.error-title {
  font-size: 26px;
  font-weight: 700;
  color: #d32f2f;
  margin: 0 0 8px 0;
  font-family: 'Sarabun', sans-serif;
}

.error-message {
  font-size: 15px;
  color: #5f2c2c;
  margin: 0;
  font-weight: 400;
  line-height: 1.5;
}

.booking-error-btn {
  background: linear-gradient(135deg, #f44336, #ef5350) !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 12px 25px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  font-family: 'Sarabun', sans-serif !important;
  text-transform: none !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3) !important;
}

.booking-error-btn:hover {
  background: linear-gradient(135deg, #d32f2f, #e53935) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4) !important;
}

.booking-network-error-btn {
  background: linear-gradient(135deg, #ff9800, #ffb74d) !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 12px 25px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  font-family: 'Sarabun', sans-serif !important;
  text-transform: none !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3) !important;
}

.booking-network-error-btn:hover {
  background: linear-gradient(135deg, #f57c00, #ff9800) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4) !important;
}

/* Mobile responsiveness for loading and error popups */
@media (max-width: 768px) {
  .booking-loading-popup,
  .booking-error-popup {
    max-width: 90% !important;
  }
  
  .booking-loading-container,
  .booking-error-container {
    padding: 25px 15px 20px;
  }
  
  .loading-title,
  .error-title {
    font-size: 22px;
  }
  
  .loading-message,
  .error-message {
    font-size: 14px;
  }
  
  .loading-spinner-custom {
    width: 50px;
    height: 50px;
  }
  
  .spinner-ring {
    width: 50px;
    height: 50px;
  }
  
  .spinner-ring:nth-child(2) {
    width: 42px;
    height: 42px;
    top: 4px;
    left: 4px;
  }
  
  .spinner-ring:nth-child(3) {
    width: 34px;
    height: 34px;
    top: 8px;
    left: 8px;
  }
  
  .booking-error-btn,
  .booking-network-error-btn {
    padding: 10px 20px !important;
    font-size: 14px !important;
  }
}

/* Booking Warning Popup Styles */
.booking-warning-popup {
  border-radius: 20px !important;
  padding: 0 !important;
  max-width: 450px !important;
  overflow: hidden !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

.booking-warning-container {
  padding: 30px 20px 20px;
  text-align: center;
  background: linear-gradient(135deg, #fff8e1 0%, #fff3e0 100%);
}

.warning-icon-wrapper {
  margin-bottom: 20px;
}

.warning-icon-custom {
  display: inline-block;
  animation: warningBounce 0.8s ease-out;
}

@keyframes warningBounce {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.warning-content {
  margin-bottom: 20px;
}

.warning-title {
  font-size: 26px;
  font-weight: 700;
  color: #e65100;
  margin: 0 0 8px 0;
  font-family: 'Sarabun', sans-serif;
}

.warning-message {
  font-size: 15px;
  color: #5d4037;
  margin: 0;
  font-weight: 400;
  line-height: 1.5;
}

.warning-details {
  background: white;
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #ffcc02;
}

.warning-check-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
  transition: all 0.3s ease;
}

.warning-check-item:not(:last-child) {
  border-bottom: 1px solid #fff8e1;
  margin-bottom: 8px;
  padding-bottom: 12px;
}

.check-icon {
  font-size: 18px;
  margin-right: 12px;
  flex-shrink: 0;
}

.check-text {
  font-size: 14px;
  font-weight: 500;
  color: #424242;
}

.warning-check-item.completed .check-text {
  color: #388e3c;
}

.warning-check-item.missing .check-text {
  color: #d32f2f;
}

.warning-note {
  background: linear-gradient(135deg, #e8f5e8, #f1f8e9);
  border-radius: 10px;
  padding: 15px;
  margin-top: 15px;
  border-left: 4px solid #4caf50;
}

.warning-note p {
  margin: 0;
  font-size: 13px;
  color: #2e7d32;
  font-weight: 500;
}

.booking-warning-btn {
  background: linear-gradient(135deg, #ff9800, #ffb74d) !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 12px 25px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  font-family: 'Sarabun', sans-serif !important;
  text-transform: none !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3) !important;
}

.booking-warning-btn:hover {
  background: linear-gradient(135deg, #f57c00, #ff9800) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4) !important;
}

/* Mobile responsiveness for warning popup */
@media (max-width: 768px) {
  .booking-warning-popup {
    max-width: 90% !important;
  }
  
  .booking-warning-container {
    padding: 25px 15px 20px;
  }
  
  .warning-title {
    font-size: 22px;
  }
  
  .warning-message {
    font-size: 14px;
  }
  
  .warning-details {
    padding: 15px;
    margin: 15px 0;
  }
  
  .warning-check-item {
    padding: 6px 0;
  }
  
  .check-icon {
    font-size: 16px;
    margin-right: 10px;
  }
  
  .check-text {
    font-size: 13px;
  }
  
  .warning-note {
    padding: 12px;
  }
  
  .warning-note p {
    font-size: 12px;
  }
  
  .booking-warning-btn {
    padding: 10px 20px !important;
    font-size: 14px !important;
  }
}

/* Rewards History Popup */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.popup-container {
  background: var(--white);
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
  from {
    transform: translateY(-30px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.popup-header {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
  color: white;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.popup-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.popup-close-x {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.popup-close-x:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.popup-body {
  padding: 24px;
  max-height: 60vh;
  overflow-y: auto;
}

.popup-loading {
  text-align: center;
  padding: 40px 20px;
}

.popup-loading .loading-spinner {
  display: inline-block;
  margin-bottom: 16px;
}

.popup-loading .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.popup-error {
  text-align: center;
  padding: 40px 20px;
}

.popup-error .error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.popup-error p {
  color: var(--text-light);
  margin-bottom: 24px;
}

.popup-no-history {
  text-align: center;
  padding: 40px 20px;
}

.popup-no-history .no-history-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.popup-no-history h3 {
  color: var(--text-dark);
  margin-bottom: 8px;
}

.popup-no-history p {
  color: var(--text-light);
  margin-bottom: 24px;
}

.popup-close-btn {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
  width: 100%;
  margin: 0 auto;
}

.popup-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.popup-history-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.popup-history-item {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.popup-history-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.popup-history-item .history-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.popup-history-item .history-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--light-blue);
  flex: 1;
}

.popup-history-item .history-date {
  font-size: 12px;
  color: var(--light-blue);
  white-space: nowrap;
}

.popup-history-item .history-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.popup-history-item .detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.popup-history-item .detail-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.popup-history-item .detail-label {
  color: var(--text-light);
  font-weight: 500;
  min-width: 80px;
}

.popup-history-item .detail-value {
  color: var(--text-dark);
  font-weight: 600;
}

.popup-history-item .reward-item {
  background: linear-gradient(135deg, #E8F5E8, #C8E6C9);
  padding: 8px 12px;
  border-radius: 8px;
  margin: 4px 0;
}

.popup-history-item .points-item {
  background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
  padding: 8px 12px;
  border-radius: 8px;
  margin: 4px 0;
}

.popup-history-item .coins-item {
  background: linear-gradient(135deg, #FFF8E1, #FFECB3);
  padding: 8px 12px;
  border-radius: 8px;
  margin: 4px 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .popup-container {
    width: 95%;
    max-height: 85vh;
  }
  
  .popup-header {
    padding: 12px 16px;
  }
  
  .popup-header h3 {
    font-size: 16px;
  }
  
  .popup-body {
    padding: 16px;
    max-height: calc(85vh - 60px);
  }
  
  .popup-history-item {
    padding: 12px;
    margin-bottom: 8px;
  }
  
  .popup-history-item .history-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .popup-history-item .history-date {
    font-size: 12px;
  }
  
  .popup-history-item .detail-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .popup-history-item .detail-label {
    font-size: 12px;
  }
  
  .popup-history-item .detail-value {
    font-size: 13px;
  }
}

/* Compact popup styles */
.popup-container.compact {
  max-width: 500px;
  border-radius: 16px;
}

.popup-header.compact {
  padding: 16px 20px;
  border-bottom: 1px solid #e0e0e0;
}

.popup-header.compact h3 {
  font-size: 18px;
  margin: 0;
}

.popup-body.compact {
  padding: 20px;
  max-height: 60vh;
}

.popup-history-item.compact {
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 12px;
}

.popup-history-item.compact .history-header {
  margin-bottom: 12px;
}

.popup-history-item.compact .history-title {
  font-size: 16px;
  font-weight: 600;
}

.popup-history-item.compact .history-date {
  font-size: 13px;
  color: #666;
}

.popup-history-item.compact .detail-item {
  padding: 8px 0;
  gap: 8px;
}

.popup-history-item.compact .detail-icon {
  font-size: 14px;
}

.popup-history-item.compact .detail-label {
  font-size: 13px;
  min-width: 80px;
}

.popup-history-item.compact .detail-value {
  font-size: 14px;
  font-weight: 500;
}

.popup-close-btn.compact {
  margin-top: 16px;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 10px;
} 