/* ========================================
   CONFIRMATION.CSS — Premium Redesign
   Mobile-first + Desktop responsive
   ======================================== */

/* ── Page Content ── */
.page-content {
  padding: 14px 12px 120px;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow-x: hidden;
}
@media (min-width: 480px) {
  .page-content { padding: 16px 16px 120px; }
}
@media (min-width: 768px) {
  .page-content { padding: 28px 24px 80px; }
}
@media (min-width: 1024px) {
  .page-content { padding: 36px 32px 80px; }
}

.header-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

/* ══════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}
.empty-icon {
  width: 96px; height: 96px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  margin-bottom: 22px;
}
.empty-title {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}
.empty-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 280px;
  margin-bottom: 28px;
}
.btn-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), #e05520);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 999px;
  box-shadow: var(--shadow-primary);
  transition: var(--transition);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255,107,44,0.4); }
.mt-16 { margin-top: 16px; }

/* ══════════════════════════════════════
   STATUS HERO BANNER
══════════════════════════════════════ */
.status-hero {
  position: relative;
  border-radius: 28px;
  padding: 34px 24px 28px;
  text-align: center;
  overflow: hidden;
  margin-bottom: 20px;
}
.hero-glow {
  position: absolute;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
  top: -100px; right: -60px;
  pointer-events: none;
}
.pending-hero {
  background: linear-gradient(135deg, #1A1A2E 0%, #2d2060 60%, #3d1a6e 100%);
}
.confirmed-hero {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 60%, #047857 100%);
}
.confirmed-glow {
  background: radial-gradient(circle, rgba(52,211,153,0.25), transparent 70%);
}

.status-emoji {
  font-size: 3.8rem;
  line-height: 1;
  margin-bottom: 14px;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.3));
}
.status-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.status-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  max-width: 300px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .status-title { font-size: 2.2rem; }
  .status-emoji { font-size: 4.8rem; }
}

/* ══════════════════════════════════════
   BOOKING ID BOX
══════════════════════════════════════ */
.booking-id-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #111827, #1e293b);
  border-radius: 20px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 10px 36px rgba(15,23,42,0.22);
}
.bid-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}
.bid-val {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
}
.copy-btn {
  border: none;
  background: linear-gradient(135deg, var(--primary), #e05520);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  font-family: var(--font-body);
}
.copy-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-primary); }

/* ══════════════════════════════════════
   DETAIL CARDS
══════════════════════════════════════ */
.detail-card {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(26,26,46,0.08), inset 0 1px 0 rgba(255,255,255,0.6);
  margin-bottom: 16px;
}
.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 20px 12px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
  background: #fafafa;
}
.sd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(99,102,241,0.07);
  transition: background 0.2s;
}
.sd-row:last-child { border-bottom: none; }
.sd-row:hover { background: rgba(99,102,241,0.03); }
.sd-row span:first-child {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}
.sd-row .val {
  font-weight: 700;
  color: var(--text-main);
  text-align: right;
  word-break: break-word;
}
.sd-row .val.orange { color: var(--primary); }
.sd-row .val.green  { color: #16a34a; }
.sd-row .fw-bold { font-weight: 900; }

/* ══════════════════════════════════════
   TIMER BOX — SHARED BASE
══════════════════════════════════════ */
.timer-box {
  position: relative;
  border-radius: 28px;
  padding: 28px 20px 22px;
  text-align: center;
  overflow: visible;
  margin-bottom: 16px;
  box-sizing: border-box;
  width: 100%;
  isolation: isolate;
}
.timer-bg-ring {
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  top: -100px; right: -60px;
  pointer-events: none;
  z-index: -1;
}
.timer-phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(0.62rem, 2.5vw, 0.75rem);
  font-weight: 900;
  letter-spacing: clamp(0.5px, 1vw, 2px);
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
  max-width: 100%;
}
.timer-display {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 11vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: clamp(-1px, -0.5vw, -3px);
  margin-bottom: 12px;
  transition: color 0.5s;
  word-break: keep-all;
  white-space: nowrap;
  overflow: visible;
}
.timer-sub {
  font-size: clamp(0.75rem, 3vw, 0.88rem);
  font-weight: 700;
  opacity: 0.75;
  word-break: break-word;
}
@media (min-width: 768px) {
  .timer-display { font-size: 4.2rem; letter-spacing: -3px; }
}
@media (min-width: 1024px) {
  .timer-display { font-size: 4.8rem; letter-spacing: -3px; }
}

/* ─── Phase A: Pre-Start (Orange) ─── */
.prestart-timer {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 2px solid rgba(251,146,60,0.4);
  box-shadow: 0 16px 48px rgba(249,115,22,0.14);
}
.prestart-timer .timer-bg-ring {
  background: radial-gradient(circle, rgba(255,255,255,0.6), transparent 70%);
}
.prestart-timer .timer-phase-badge {
  background: rgba(249,115,22,0.12);
  color: #ea580c;
  border: 1px solid rgba(249,115,22,0.25);
}
.prestart-timer .timer-display { color: #f97316; text-shadow: 0 8px 28px rgba(249,115,22,0.25); }
.prestart-timer .timer-sub     { color: #9a3412; }

/* ─── Phase B: Live Trip (Cyan/Teal) ─── */
.live-timer {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 2px solid rgba(16,185,129,0.4);
  box-shadow: 0 16px 48px rgba(16,185,129,0.14);
}
.live-ring {
  background: radial-gradient(circle, rgba(255,255,255,0.6), transparent 70%);
}
.live-badge {
  background: rgba(16,185,129,0.12);
  color: #059669;
  border: 1px solid rgba(16,185,129,0.25);
}
.live-display { color: #10b981; text-shadow: 0 8px 28px rgba(16,185,129,0.25); }
.live-sub     { color: #065f46; }

/* ─── Phase C: Completed (Purple/Dark) ─── */
.done-timer {
  background: linear-gradient(135deg, #1A1A2E, #2d2060);
  border: 2px solid rgba(139,92,246,0.4);
  box-shadow: 0 16px 48px rgba(139,92,246,0.2);
}
.done-badge {
  background: rgba(139,92,246,0.2);
  color: #c4b5fd;
  border: 1px solid rgba(139,92,246,0.3);
}
.done-icon {
  font-size: 4rem;
  line-height: 1;
  color: #a78bfa;
  margin: 8px 0 14px;
  filter: drop-shadow(0 0 30px rgba(167,139,250,0.5));
}
.done-sub { color: rgba(255,255,255,0.55); }

/* ══════════════════════════════════════
   WAITING PULSE (Pending State)
══════════════════════════════════════ */
.waiting-pulse {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(249,115,22,0.07);
  border: 1.5px solid rgba(249,115,22,0.18);
  font-size: 0.86rem;
  font-weight: 700;
  color: #ea580c;
  margin-bottom: 16px;
}
.pulse-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  animation: pulseAnim 1.5s ease-in-out infinite;
}
@keyframes pulseAnim {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.7); opacity: 0.4; }
}

/* ══════════════════════════════════════
   CANCEL BUTTON
══════════════════════════════════════ */
.btn-cancel {
  width: 100%;
  padding: 15px;
  border-radius: 18px;
  border: 2px solid #fca5a5;
  background: #fff;
  color: #dc2626;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 8px;
}
.btn-cancel:hover {
  background: #fef2f2;
  border-color: #f87171;
  transform: translateY(-1px);
}

/* ══════════════════════════════════════
   SIGNATURE SECTION
══════════════════════════════════════ */
.signature-section {
  padding: 20px 20px 28px;
  border-top: 1px solid var(--border);
}
.sig-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 14px;
}
.sig-img {
  width: 100%;
  max-width: 300px;
  border-radius: 16px;
  border: 2px dashed #d1d5db;
  background: #fff;
  padding: 16px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.sig-name {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 12px;
  font-style: italic;
}

/* ══════════════════════════════════════
   TOAST
══════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #111827;
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ══════════════════════════════════════
   DESKTOP ENHANCEMENTS
══════════════════════════════════════ */
@media (min-width: 768px) {
  .status-hero { border-radius: 32px; padding: 44px 40px 36px; }
  .detail-card { border-radius: 28px; }
  .booking-id-box { border-radius: 24px; padding: 20px 24px; }
  .timer-box { border-radius: 32px; padding: 40px 32px 32px; }
  .sd-row { padding: 16px 24px; }
  .card-header { padding: 20px 24px 14px; font-size: 0.9rem; }
  .timer-display { font-size: 4.2rem; }
  .waiting-pulse { padding: 18px 24px; }
  .toast { bottom: 32px; }
}

/* Login icon helper */
.login-icon-img { width: 26px; height: 26px; object-fit: contain; }
/* ══════════════════════════════════════
   VEHICLE DETAIL CARD
══════════════════════════════════════ */
.vehicle-detail-card { overflow: hidden; }

/* ── Slider ── */
.vc-slider-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  margin-bottom: 16px;
  height: 190px;
}
.vc-slider-overflow {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.vc-slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.38s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
.vc-slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vc-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vc-slide-empty {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}

/* Arrows */
.vc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}
.vc-arrow:hover { background: rgba(0,0,0,0.7); }
.vc-arrow-l { left: 8px; }
.vc-arrow-r { right: 8px; }

/* Dots */
.vc-dots {
  position: absolute;
  bottom: 8px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 3;
}
.vc-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all 0.2s;
}
.vc-dot-active {
  background: #fff;
  width: 18px;
  border-radius: 3px;
}

/* ── Number Plate ── */
.vc-plate-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 16px;
  gap: 6px;
}
.vc-plate {
  display: inline-block;
  background: #fff;
  color: #555;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  padding: 8px 22px;
  border-radius: 8px;
  border: 3px solid #1a1a2e;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.8);
  text-transform: uppercase;
  min-width: 160px;
  text-align: center;
  position: relative;
}
.vc-plate::before,
.vc-plate::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #1565C0;
  border: 2px solid #0d47a1;
}
.vc-plate::before { left: 8px; }
.vc-plate::after  { right: 8px; }
.vc-plate-filled  { color: #0d47a1; }
.vc-plate-label {
  font-size: 0.72rem;
  color: var(--text-muted, #9ca3af);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .vc-slider-wrap { height: 240px; border-radius: 20px; }
  .vc-plate { font-size: 1.55rem; padding: 10px 28px; min-width: 200px; }
}