.uju-booking-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  background-color: rgba(5, 7, 10, 0.94);
  padding: 1.5rem 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.uju-booking-modal-overlay.open {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.uju-booking-modal-container {
  position: relative;
  width: 100%;
  max-width: 940px;
  background: #0c0f17;
  border: 1px solid rgba(206, 95, 231, 0.42);
  border-radius: 20px;
  padding: 1.75rem 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
  color: #d1d5db;
  font-family: var(--font-body, 'Averta', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  margin: auto 0;
  flex-shrink: 0;
}

.uju-modal-mobile-header {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: auto;
  margin-bottom: 0;
}

.uju-modal-drag-bar {
  display: none;
}

.uju-modal-mobile-header-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

.uju-modal-mobile-room-name {
  display: none;
}

.uju-modal-close-btn {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #9ca3af;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
}

.uju-modal-close-btn:hover {
  color: #ffffff;
  background: rgba(206, 95, 231, 0.2);
  border-color: #ce5fe7;
}

.uju-modal-room-title {
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.05em;
  line-height: 1.35;
}

.uju-sec-heading {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

@media (min-width: 768px) {
  .uju-calendar-slots-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.uju-cal-box,
.uju-slots-box {
  background: #11151e;
  border: 1px solid #1e2638;
  border-radius: 12px;
  padding: 1.25rem;
}

.uju-cal-arrow-btn {
  background: transparent;
  border: none;
  color: #ce5fe7;
  font-size: 1rem;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.uju-cal-arrow-btn:hover:not(:disabled) {
  color: #ffffff;
}

.uju-cal-arrow-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.uju-cal-month-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.uju-cal-weekdays-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
}

.uju-cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.uju-cal-day-empty {
  aspect-ratio: 1;
}

.uju-cal-day-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #f1f5f9;
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.uju-cal-day-btn:hover:not(:disabled):not(.active) {
  background: rgba(206, 95, 231, 0.18);
  border-color: rgba(206, 95, 231, 0.35);
  color: #ffffff;
}

.uju-cal-day-btn.disabled {
  color: #334155;
  cursor: not-allowed;
  opacity: 0.35;
}

.uju-cal-day-btn.active {
  background: #ce5fe7;
  color: #ffffff;
  font-weight: 800;
}

.uju-cal-day-btn.holiday:not(.active):not(.disabled) {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

.uju-cal-holiday-dot {
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background-color: #f59e0b;
  border-radius: 50%;
}

.uju-cal-day-btn.active .uju-cal-holiday-dot {
  background-color: #ffffff;
}

.uju-holiday-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  letter-spacing: 0.02em;
}

.uju-slots-date-display {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.uju-slots-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.uju-slot-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  background-color: #cbd5e1;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.uju-slot-btn:hover:not(.disabled):not(.selected) {
  background-color: #e2e8f0;
  transform: translateY(-1px);
}

.uju-slot-btn.disabled {
  background-color: #1e2638;
  color: #475569;
  cursor: not-allowed;
  opacity: 0.5;
}

.uju-slot-btn.selected {
  background-color: #ce5fe7;
  color: #ffffff;
  font-weight: 800;
  border-color: #d946ef;
}

.uju-field-input,
.uju-field-select {
  width: 100%;
  height: 42px;
  background: #090c12;
  border: 1px solid #1e2638;
  border-radius: 8px;
  padding: 0 0.75rem;
  color: #ffffff;
  font-size: 0.8125rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.uju-field-input:focus,
.uju-field-select:focus {
  border-color: #ce5fe7;
  box-shadow: 0 0 0 1px #ce5fe7;
  outline: none;
}

.uju-field-select option {
  background: #090c12;
  color: #ffffff;
}

.uju-btn-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1e2638;
  border: 1px solid #303b50;
  border-radius: var(--radius-md, 12px);
  padding: 0.7rem 1.75rem;
  color: #cbd5e1;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.uju-btn-cancel:hover {
  background: #2b364c;
  color: #ffffff;
}

.uju-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--uju-hero-accent, #ce5fe7);
  border-radius: var(--radius-md, 12px);
  padding: 0.7rem 1.75rem;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.uju-btn-submit:hover:not(:disabled) {
  opacity: 0.94;
  transform: translateY(-1px);
}

.uju-btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.uju-btn-download-ticket {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.12);
  border-radius: var(--radius-md, 12px);
  padding: 0.7rem 1.75rem;
  color: #34d399;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.uju-btn-download-ticket:hover:not(:disabled) {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.6);
  color: #6ee7b7;
  transform: translateY(-1px);
}

.uju-btn-download-ticket:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.uju-confirm-review-box {
  background: #090c12;
  border: 1px solid #1e2638;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
}

.uju-success-badge-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(206, 95, 231, 0.16);
  border: 2px solid #ce5fe7;
  color: #ce5fe7;
  font-size: 1.75rem;
  font-weight: 800;
}

.uju-modal-notice-bar {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: center;
}

.uju-modal-notice-bar.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.uju-modal-notice-bar.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.uju-copy-btn {
  font-size: 0.6875rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: #1e2638;
  border: 1px solid #303b50;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.uju-copy-btn:hover {
  background: #2d384e;
  color: #ffffff;
  border-color: #ce5fe7;
}

.uju-polling-status-box.paid {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
  color: #34d399 !important;
}

.uju-polling-status-box.expired {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.45) !important;
  color: #f87171 !important;
}

.uju-qr-expired {
  opacity: 0.35;
  filter: grayscale(1);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

@media (max-width: 767px) {
  .uju-booking-modal-overlay {
    padding: 0;
    align-items: flex-end;
    justify-content: flex-end;
    overflow: hidden;
  }

  .uju-booking-modal-container {
    width: 100%;
    max-width: 100%;
    height: 92vh;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    border-left: none;
    border-right: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.95);
    background: #0c0f17;
  }

  .uju-modal-mobile-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 60;
    background: #0e121c;
    border-bottom: 1px solid rgba(206, 95, 231, 0.25);
    padding: 0.5rem 1rem 0.6rem;
    margin-bottom: 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  }

  .uju-modal-drag-bar {
    display: block;
    width: 38px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.25);
    margin-bottom: 0.4rem;
  }

  .uju-modal-mobile-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .uju-modal-mobile-room-name {
    display: block;
    color: #ce5fe7;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    max-width: calc(100% - 52px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .uju-modal-close-btn {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
    background: #181f2c;
    border: 1px solid rgba(206, 95, 231, 0.5);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.65rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  }

  .uju-modal-close-btn:active {
    background: rgba(206, 95, 231, 0.35);
    transform: scale(0.95);
  }

  #uju-booking-modal-form {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 1rem 1rem 2.5rem;
  }

  .uju-modal-step-pane .uju-modal-header {
    display: none;
  }

  .uju-field-input,
  .uju-field-select {
    font-size: 16px !important;
    height: 46px;
  }

  .uju-cal-box,
  .uju-slots-box {
    padding: 0.875rem 0.75rem;
  }

  .uju-btn-submit,
  .uju-btn-cancel,
  .uju-btn-download-ticket {
    width: 100%;
    height: 46px;
    font-size: 0.875rem;
    border-radius: var(--radius-md, 12px);
  }
}