/* ── SCB Public Booking Styles ────────────────────── */

.scb-app {
  max-width: 840px;
  margin: 0 auto;
  padding: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1a2e;
}

/* ── Step Progress ────────────────────────────────── */
.scb-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 0;
}

.scb-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #9ca3af;
  font-weight: 500;
  transition: color .2s;
}

.scb-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s, color .2s;
}

.scb-step.active .scb-step-circle {
  background: #4f46e5;
  color: #fff;
}

.scb-step.active { color: #4f46e5; }

.scb-step.done .scb-step-circle {
  background: #22c55e;
  color: #fff;
}

.scb-step-line {
  flex: 1;
  max-width: 80px;
  height: 2px;
  background: #e5e7eb;
  margin: 0 8px;
  margin-bottom: 22px;
}

/* ── Panels ───────────────────────────────────────── */
.scb-panel { animation: scbFadeIn .25s ease; }
.scb-panel--hidden { display: none; }

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

.scb-panel-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #1a1a2e;
}

.scb-panel-sub {
  color: #6b7280;
  margin: 0 0 24px;
  font-size: 15px;
}

.scb-section-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 24px;
  color: #1a1a2e;
}

/* ── Sport Cards ──────────────────────────────────── */
.scb-sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.scb-sport-card {
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .12s;
  position: relative;
  background: #fff;
}

.scb-sport-card:hover {
  border-color: #a5b4fc;
  box-shadow: 0 4px 16px rgba(79,70,229,.12);
  transform: translateY(-2px);
}

.scb-sport-card.selected {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}

.scb-sport-thumb {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
}

.scb-sport-icon { font-size: 48px; }

.scb-sport-info {
  padding: 14px 16px;
}

.scb-sport-info h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
}

.scb-sport-info p {
  margin: 0;
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.4;
}

.scb-sport-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: #4f46e5;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .15s, transform .15s;
}

.scb-sport-card.selected .scb-sport-check {
  opacity: 1;
  transform: scale(1);
}

/* ── Venue Cards ──────────────────────────────────── */
.scb-venues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.scb-venue-card {
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  transition: border-color .15s, box-shadow .15s, transform .12s;
  position: relative;
}

.scb-venue-card:hover {
  border-color: #a5b4fc;
  box-shadow: 0 4px 16px rgba(79,70,229,.12);
  transform: translateY(-2px);
}

.scb-venue-card.selected {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}

.scb-venue-thumb {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: #f3f4f6;
}

.scb-venue-info { padding: 14px 16px; }

.scb-venue-info h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
}

.scb-venue-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 8px;
}

.scb-venue-price {
  font-size: 14px;
  font-weight: 700;
  color: #4f46e5;
  margin-top: 8px;
}

.scb-venue-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: #4f46e5;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .15s, transform .15s;
}

.scb-venue-card.selected .scb-venue-check {
  opacity: 1;
  transform: scale(1);
}

/* ── Date & Slots ─────────────────────────────────── */
.scb-datetime-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.scb-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.scb-date-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  color: #1a1a2e;
  background: #fff;
  cursor: pointer;
  outline: none;
  box-sizing: border-box;
}

.scb-date-input:focus { border-color: #4f46e5; }

.scb-slots-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
}

.scb-slot-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 15px;
  transition: border-color .15s, background .1s;
  text-align: left;
}

.scb-slot-btn:hover:not(:disabled) {
  border-color: #a5b4fc;
  background: #fafafa;
}

.scb-slot-btn.selected {
  border-color: #4f46e5;
  background: #ede9fe;
  color: #4338ca;
  font-weight: 600;
}

.scb-slot-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  background: #f9f9f9;
  text-decoration: line-through;
}

.scb-slot-price {
  font-weight: 700;
  color: #4f46e5;
  font-size: 14px;
}

.scb-slot-btn.selected .scb-slot-price { color: #4338ca; }

/* ── Summary ──────────────────────────────────────── */
.scb-summary {
  background: #f9f9fb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.scb-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
}

.scb-summary-row:last-child { border-bottom: none; }
.scb-summary-row span { color: #6b7280; }
.scb-summary-row strong { color: #1a1a2e; font-weight: 600; }

.scb-summary-row--total {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 2px solid #e5e7eb;
  border-bottom: none;
}

.scb-summary-row--total span  { font-size: 16px; font-weight: 700; color: #1a1a2e; }
.scb-summary-row--total strong { font-size: 20px; font-weight: 800; color: #4f46e5; }

/* ── Textarea ─────────────────────────────────────── */
.scb-form-group { margin-bottom: 20px; }

.scb-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
}

.scb-textarea:focus { border-color: #4f46e5; }

/* ── Navigation ───────────────────────────────────── */
.scb-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  gap: 12px;
}

.scb-btn-next,
.scb-btn-confirm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, opacity .15s;
  text-decoration: none;
}

.scb-btn-next:hover,
.scb-btn-confirm:hover { background: #4338ca; color: #fff; }

.scb-btn-next:disabled,
.scb-btn-confirm:disabled {
  background: #c4b5fd;
  cursor: not-allowed;
}

.scb-btn-back {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #4f46e5;
  border: 1.5px solid #4f46e5;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}

.scb-btn-back:hover { background: #ede9fe; color: #4f46e5; }

/* ── Login Notice ─────────────────────────────────── */
.scb-login-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  color: #9a3412;
  margin-bottom: 20px;
}

.scb-login-notice a { color: #4f46e5; font-weight: 600; }

/* ── Loading / Spinner ────────────────────────────── */
.scb-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9ca3af;
  font-size: 14px;
  padding: 24px 0;
}

.scb-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid #e5e7eb;
  border-top-color: #4f46e5;
  border-radius: 50%;
  animation: scbSpin .7s linear infinite;
  display: inline-block;
}

.scb-spinner--sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

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

.scb-hidden { display: none; }

.scb-empty {
  color: #9ca3af;
  font-size: 14px;
  font-style: italic;
  padding: 8px 0;
}

/* ── Success ──────────────────────────────────────── */
.scb-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px;
  text-align: center;
  gap: 12px;
}

.scb-success-icon {
  width: 72px;
  height: 72px;
  background: #22c55e;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}

.scb-success h2 { margin: 0; font-size: 24px; font-weight: 800; }
.scb-success p  { color: #6b7280; margin: 0; font-size: 15px; }

/* ── My Bookings ──────────────────────────────────── */
.scb-my-bookings-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scb-booking-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.scb-booking-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.scb-booking-ref {
  font-size: 12px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .06em;
  display: block;
  margin-bottom: 4px;
}

.scb-booking-venue {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 2px;
  color: #1a1a2e;
}

.scb-booking-sport {
  font-size: 13px;
  color: #9ca3af;
  margin: 0;
}

.scb-booking-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.scb-booking-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: #374151;
  padding: 14px 0;
  border-top: 1px solid #f5f5f5;
  border-bottom: 1px solid #f5f5f5;
  margin-bottom: 14px;
}

.scb-booking-detail {
  display: flex;
  align-items: center;
  gap: 6px;
}

.scb-detail-icon { font-size: 16px; }

.scb-booking-actions {
  display: flex;
  gap: 8px;
}

.scb-btn-sm-pub {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity .15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.scb-btn-sm-pub:hover { opacity: .85; }
.scb-btn-confirm { background: #4f46e5; color: #fff; }
.scb-btn-danger  { background: #fee2e2; color: #dc2626; }

/* ── Empty State ──────────────────────────────────── */
.scb-empty-state {
  text-align: center;
  padding: 64px 24px;
  color: #6b7280;
}

.scb-empty-icon { font-size: 56px; margin-bottom: 16px; }
.scb-empty-state h3 { font-size: 20px; font-weight: 700; color: #1a1a2e; margin: 0 0 8px; }
.scb-empty-state p  { margin: 0 0 24px; }

/* ── Checkout ─────────────────────────────────────── */
.scb-checkout-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.scb-order-summary h3,
.scb-payment-box h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 16px;
  color: #1a1a2e;
}

.scb-payment-box {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
}

.scb-stripe-card {
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
  background: #fff;
}

.scb-manual-payment {
  text-align: center;
  padding: 16px 0;
}

.scb-manual-icon { font-size: 48px; margin-bottom: 12px; }
.scb-manual-payment h4 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.scb-manual-payment p  { color: #6b7280; font-size: 14px; margin: 0 0 8px; }

.scb-field-error {
  color: #dc2626;
  font-size: 13px;
  margin-top: 8px;
}

/* ── Badge (public) ───────────────────────────────── */
.scb-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.scb-badge--confirmed  { background: #dcfce7; color: #15803d; }
.scb-badge--pending    { background: #fef9c3; color: #a16207; }
.scb-badge--cancelled  { background: #fee2e2; color: #dc2626; }
.scb-badge--rejected   { background: #fce7f3; color: #be185d; }
.scb-badge--pay-paid   { background: #dcfce7; color: #15803d; }
.scb-badge--pay-unpaid { background: #fff7ed; color: #c2410c; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 680px) {
  .scb-datetime-layout  { grid-template-columns: 1fr; }
  .scb-checkout-layout  { grid-template-columns: 1fr; }
  .scb-step span        { display: none; }
  .scb-step-line        { max-width: 40px; }
  .scb-booking-header   { flex-direction: column; gap: 12px; }
  .scb-booking-meta     { flex-direction: row; align-items: center; }
  .scb-sports-grid      { grid-template-columns: 1fr 1fr; }
  .scb-venues-grid      { grid-template-columns: 1fr; }
}
