/* =====================================================
   SEAT SELECTOR - Full BookMyShow Style
   ===================================================== */
.seat-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(5, 8, 18, 0.93); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000; opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
}
.seat-modal-overlay.active { opacity: 1; pointer-events: all; }

.seat-modal {
  background: #1a1f35; width: 96vw; max-width: 900px; max-height: 93vh;
  border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 30px 70px rgba(0,0,0,0.9);
  transform: translateY(30px) scale(0.97); transition: transform 0.35s ease;
  border: 1px solid rgba(255,255,255,0.06);
}
.seat-modal-overlay.active .seat-modal { transform: translateY(0) scale(1); }

/* Stepper Header */
.seat-modal-header {
  background: #13172b; padding: 18px 28px; display: flex;
  align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.seat-modal-match-info { flex: 1; }
.seat-modal-match-info h2 { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 3px; }
.seat-modal-match-info p { font-size: 0.88rem; color: #99A0B0; }
.seat-close-btn { background: transparent; border: none; color: #fff; font-size: 22px; cursor: pointer; opacity: 0.6; transition: opacity 0.2s; padding: 4px 8px; }
.seat-close-btn:hover { opacity: 1; }

.booking-steps {
  display: flex; gap: 12px; padding: 14px 28px;
  background: #0f1220; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.step-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 30px; font-size: 0.85rem; font-weight: 600;
  background: rgba(255,255,255,0.04); color: #66748a; transition: all 0.3s;
}
.step-pill.active { background: var(--accent-color, #F84464); color: #fff; box-shadow: 0 4px 14px rgba(248,68,100,0.4); }
.step-pill.done { background: rgba(0,200,120,0.2); color: #00c878; }
.step-pill .step-num { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0.78rem; }
.step-pill.active .step-num { background: rgba(255,255,255,0.25); }

/* Scrollable body */
.seat-modal-body { flex: 1; overflow-y: auto; padding: 28px; }

/* ---- Step 1: VIP Pavilion Block layout ---- */
.stadium-legend { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 7px; font-size: 0.82rem; color: #99A0B0; }
.legend-dot { width: 16px; height: 16px; border-radius: 4px; }
.ld-available { background: #2b3668; border: 1px solid #3d4f8c; }
.ld-selected { background: #F84464; }
.ld-sold { background: #2a2a3a; border: 1px solid transparent; }

.vip-pavilion-container {
  max-width: 500px;
  margin: 0 auto 30px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.5);
}

.pavilion-banner {
  background: linear-gradient(90deg, transparent, rgba(248,68,100,0.15), transparent);
  border-bottom: 2px solid rgba(248,68,100,0.4);
  color: #F84464;
  font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  padding: 10px 40px; margin-bottom: 30px;
  border-radius: 4px;
  text-align: center;
}

.seat-row {
  display: flex; justify-content: center; gap: 15px; margin-bottom: 15px;
}

.seat {
  width: 32px; height: 32px; border-radius: 6px 6px 4px 4px;
  border: none; cursor: pointer; transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex; align-items: center; justify-content: center;
  position: relative; /* tooltip anchor */
}
.seat.available { background: #2b3668; border: 2px solid #3d4f8c; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.seat.available:hover { background: #4466d0; transform: scale(1.15); z-index: 10; }
.seat.selected { background: #F84464; border-color: #ff2a55; transform: scale(1.1); box-shadow: 0 0 15px rgba(248,68,100,0.8); z-index: 10;}
.seat.sold { background: #1b1c25; border: 2px solid #2a2a3a; cursor: not-allowed; opacity: 0.6; }

/* Seat tooltip (Fixed) */
.seat-tooltip {
  position: absolute; bottom: 130%; left: 50%; transform: translateX(-50%);
  background: #0f1220; border: 1px solid rgba(255,255,255,0.1);
  color: #fff; padding: 6px 10px; border-radius: 6px;
  white-space: nowrap; font-size: 0.75rem; font-weight: 600; pointer-events: none;
  z-index: 100; opacity: 0; transition: opacity 0.15s;
}
.seat:hover .seat-tooltip { opacity: 1; pointer-events: none; }
.summary-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.summary-table th { text-align: left; padding: 10px 12px; font-size: 0.8rem; color: #667; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,0.05); }
.summary-table td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.95rem; }
.summary-table .seat-tag { background: rgba(248,68,100,0.15); color: #F84464; padding: 3px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: 700; display: inline-block; margin: 2px; }
.summary-total { display: flex; justify-content: space-between; align-items: center; padding: 18px; background: rgba(255,255,255,0.04); border-radius: 10px; margin-bottom: 20px; }
.summary-total-label { font-size: 1rem; color: #ccc; }
.summary-total-amount { font-size: 1.7rem; font-weight: 800; color: #fff; }
.summary-total-amount span { font-size: 1rem; color: #99A0B0; margin-left: 6px; }

/* ---- Step 3: Payment ---- */
.pay-form { display: flex; flex-direction: column; gap: 16px; }
.pay-form label { font-size: 0.85rem; color: #99A0B0; font-weight: 600; display: block; margin-bottom: 6px; }
.pay-form input, .pay-form select {
  width: 100%; padding: 13px 16px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1); color: #fff; border-radius: 8px;
  font-size: 0.95rem; outline: none; transition: border 0.2s;
}
.pay-form input:focus, .pay-form select:focus { border-color: #F84464; }
.pay-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pay-method-tabs { display: flex; gap: 10px; margin-bottom: 6px; }
.pay-tab { flex: 1; padding: 12px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; text-align: center; cursor: pointer; font-weight: 600; font-size: 0.9rem; color: #99A0B0; transition: all 0.2s; }
.pay-tab.active { background: rgba(248,68,100,0.15); border-color: #F84464; color: #F84464; }
.pay-tab:hover { border-color: #F84464; color: #F84464; }

.upi-brands { display: flex; gap: 15px; margin-top: 10px; }
.upi-brand { flex: 1; text-align: center; background: rgba(255,255,255,0.03); padding: 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.05); transition: background 0.2s; cursor: pointer; }
.upi-brand:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.upi-brand img { height: 20px; display: block; margin: 0 auto 5px; }

.cashback-banner { background: linear-gradient(45deg, rgba(248,68,100,0.15), rgba(249,205,5,0.15)); border: 1px dashed #F9CD05; padding: 12px; border-radius: 8px; color: #F9CD05; font-size: 0.85rem; font-weight: 700; text-align: center; margin-bottom: 10px; }


/* Bottom Bar */
.seat-modal-footer {
  padding: 16px 28px; background: #13172b;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.seat-footer-left { font-size: 0.9rem; color: #99A0B0; }
.seat-footer-selection { font-size: 1rem; font-weight: 700; color: #fff; }
.seat-footer-price { font-size: 1.2rem; font-weight: 800; color: #F84464; }
.seat-nav-btns { display: flex; gap: 10px; }
.btn-seat-back { background: transparent; border: 1px solid rgba(255,255,255,0.15); color: #ccc; padding: 11px 24px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-seat-back:hover { border-color: #fff; color: #fff; }
.btn-seat-next { background: #F84464; color: #fff; border: none; padding: 11px 28px; border-radius: 8px; font-weight: 700; cursor: pointer; transition: all 0.2s; font-size: 1rem; }
.btn-seat-next:hover { background: #ff2a55; transform: translateY(-1px); }
.btn-seat-next:disabled { background: #2a2a3a; color: #444; cursor: not-allowed; transform: none; }

.success-msg { text-align: center; padding: 40px 20px; }
.success-msg .success-icon { font-size: 5rem; margin-bottom: 20px; }
.success-msg h2 { font-size: 1.8rem; color: #00c878; margin-bottom: 10px; }
.success-msg p { color: #99A0B0; font-size: 1rem; line-height: 1.7; }

@media(max-width: 600px){
  .seat-modal-body { padding: 16px; }
  .seat { width: 24px; height: 24px; border-radius: 4px 4px 3px 3px; }
  .pay-form-grid { grid-template-columns: 1fr; }
  .booking-steps { gap: 6px; }
  .step-pill span.step-label { display: none; }
}
