/* ===== Drive Klean — Modals, Forms, Payment, Auth, Dashboard, Admin, Toast ===== */
/* MODALS */
.modal-overlay { position:fixed; inset:0; z-index:2000; background:rgba(3,6,12,0.72); backdrop-filter:blur(6px); display:none; align-items:center; justify-content:center; padding:24px; }
.modal-overlay.show { display:flex; }
.modal { background:linear-gradient(165deg,#10202f,#0a141f); border:1px solid var(--line); border-radius:20px; padding:34px; max-width:480px; width:100%; position:relative; max-height:90vh; overflow-y:auto; box-shadow:0 40px 80px -20px rgba(0,0,0,0.7),var(--shadow-glow); animation:modalPop .35s cubic-bezier(.2,.8,.2,1); }
.modal-lg { max-width:820px; }
.modal-xl { max-width:980px; }
@keyframes modalPop { from{opacity:0;transform:scale(.94) translateY(10px);} to{opacity:1;transform:scale(1) translateY(0);} }
.modal h3 { font-family:var(--ff-display); font-size:20px; margin-bottom:20px; }
.modal-close { position:absolute; top:18px; right:18px; background:transparent; border:none; color:var(--muted); font-size:18px; cursor:pointer; width:32px; height:32px; display:flex; align-items:center; justify-content:center; border-radius:50%; transition:.2s; }
.modal-close:hover { color:var(--white); background:rgba(255,255,255,0.08); }
.modal-form { display:flex; flex-direction:column; gap:13px; }
/* KEY FIX: all form inputs use dark background so text is always visible */
.modal-form input,
.modal-form select,
.modal-form textarea,
.add-svc-form input,
.add-svc-form select,
.add-svc-form textarea {
  background:#0f1b2b !important;
  border:1px solid var(--line);
  color:var(--white) !important;
  padding:12px 14px;
  border-radius:10px;
  font-size:14px;
  font-family:var(--ff-body);
}
.modal-form select option,
.add-svc-form select option,
.booking-mini select option { background:#0f1b2b; color:var(--white); }
.modal-form textarea { resize:vertical; min-height:80px; }
.modal-note { font-size:12px; color:var(--muted); text-align:center; margin-top:4px; }
.modal-note a { color:var(--blue-2, #5fd0ff); font-weight:600; text-decoration:none; }
.modal-note a:hover { text-decoration:underline; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }

/* SERVICE FEATURES (Quick Booking modal — amount ke niche point-wise details) */
.service-features { background:rgba(31,160,255,0.06); border:1px solid var(--line); border-radius:12px; padding:14px 16px; margin-top:-2px; }
.service-features-amount { font-family:var(--ff-display); font-weight:700; font-size:16px; color:var(--blue-2); margin-bottom:8px; }
.service-features-amount span { font-family:var(--ff-body); font-weight:500; font-size:13px; color:var(--muted); }
.service-features-list { display:flex; flex-direction:column; gap:6px; }
.service-features-list li { font-size:13px; color:var(--muted); list-style:none; padding-left:18px; position:relative; }
.service-features-list li::before { content:'✔'; position:absolute; left:0; top:0; color:var(--blue-2); font-size:11px; }

/* PAYMENT OPTIONS */
.payment-section-title { font-size:12.5px; color:var(--muted); font-weight:600; letter-spacing:.5px; text-transform:uppercase; }
.payment-options { display:flex; flex-direction:column; gap:9px; }
.payment-option { display:flex; align-items:center; gap:12px; background:#0c1a28; border:1px solid var(--line); border-radius:10px; padding:12px 14px; cursor:pointer; transition:border-color .2s,background .2s; }
.payment-option:hover { border-color:var(--blue-2); }
.payment-option.selected { border-color:var(--blue-2); background:rgba(31,160,255,0.1); }
.payment-option input[type="radio"] { accent-color:var(--blue-2); width:16px; height:16px; flex-shrink:0; }
.pay-label b { display:block; font-size:13.5px; color:var(--white); }
.pay-label span { font-size:11.5px; color:var(--muted); }

/* AUTH TABS */
.auth-tabs { display:flex; gap:8px; margin-bottom:22px; background:rgba(255,255,255,0.03); border-radius:12px; padding:5px; }
.auth-tab { flex:1; background:transparent; border:none; color:var(--muted); padding:9px; border-radius:9px; font-size:13.5px; font-weight:600; transition:.2s; }
.auth-tab.active { background:linear-gradient(90deg,var(--blue-1),var(--blue-3)); color:#04111f; }

/* DASHBOARD */
.dash-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:22px; }
.dash-head h3 { font-size:19px; }
.dash-sub { font-size:14px; color:var(--blue-2); margin-bottom:12px; font-weight:600; }
.booking-list { display:flex; flex-direction:column; gap:12px; }
.booking-item { background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:16px 18px; display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.booking-item .bi-main b { font-size:14.5px; }
.booking-item .bi-main span { display:block; font-size:12.5px; color:var(--muted); margin-top:4px; }
.status-pill { font-size:11px; padding:4px 11px; border-radius:999px; font-weight:600; }
.status-confirmed, .status-CONFIRMED { background:rgba(43,163,255,0.15); color:var(--blue-2); }
.status-cancelled, .status-CANCELLED, .status-REJECTED { background:rgba(255,90,90,0.15); color:#ff8080; }
.status-completed, .status-COMPLETED, .status-APPROVED { background:rgba(60,220,140,0.15); color:#5be3a0; }
.status-PENDING, .status-CONTACTED { background:rgba(255,200,77,0.15); color:#ffc94d; }
.empty-state { text-align:center; color:var(--muted); font-size:13.5px; padding:30px 10px; }

/* ADMIN */
.admin-tabs { display:flex; gap:8px; margin-bottom:24px; flex-wrap:wrap; border-bottom:1px solid var(--line); padding-bottom:16px; }
.admin-tab { background:transparent; border:1px solid var(--line); color:var(--muted); padding:9px 18px; border-radius:999px; font-size:13px; font-weight:600; transition:.2s; }
.admin-tab.active { background:linear-gradient(90deg,var(--blue-1),var(--blue-3)); color:#04111f; border-color:transparent; }
.admin-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:24px; }
.admin-stat { background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:16px; text-align:center; }
.admin-stat b { display:block; font-family:var(--ff-display); font-size:26px; color:var(--blue-2); }
.admin-stat span { font-size:12px; color:var(--muted); }
.gallery-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:16px; }
.gallery-grid img { width:100%; height:90px; object-fit:cover; border-radius:10px; border:1px solid var(--line); }
.gallery-item { position:relative; }
.gallery-remove { position:absolute; top:4px; right:4px; background:rgba(255,40,40,0.8); border:none; color:#fff; border-radius:50%; width:22px; height:22px; font-size:12px; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.admin-svc-list { display:flex; flex-direction:column; gap:12px; }
.admin-svc-item { background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:14px 18px; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.admin-svc-info { flex:1; }
.admin-svc-info b { font-size:14.5px; display:block; }
.admin-svc-info span { font-size:12.5px; color:var(--muted); }
.admin-svc-actions { display:flex; gap:8px; }
.franchise-leads { display:flex; flex-direction:column; gap:10px; }
.franchise-lead-item { background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:14px 18px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.franchise-lead-info b { font-size:14px; display:block; }
.franchise-lead-info span { font-size:12.5px; color:var(--muted); }
.add-svc-form { background:rgba(31,160,255,0.05); border:1px solid var(--line); border-radius:12px; padding:20px; margin-bottom:20px; }
.add-svc-form h5 { font-family:var(--ff-display); font-size:15px; margin-bottom:14px; color:var(--blue-2); }
.add-svc-form input, .add-svc-form textarea { width:100%; margin-bottom:10px; }
#bookingFilter, #galleryUrl { background:#0f1b2b !important; border:1px solid var(--line); color:var(--white) !important; }
#bookingFilter option { background:#0f1b2b; color:var(--white); }

/* TOAST */
.toast { position:fixed; top:130px; left:50%; transform:translateX(-50%) translateY(-16px); z-index:3000; background:var(--panel); border:1px solid var(--line); color:var(--white); font-weight:600; font-size:14px; padding:14px 26px; border-radius:12px; box-shadow:0 14px 34px rgba(0,0,0,.45); opacity:0; pointer-events:none; transition:.35s; max-width:90vw; text-align:center; }
.toast.show { opacity:1; transform:translateX(-50%) translateY(0); }


/* FRANCHISE MODAL */
.franchise-modal-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.franchise-modal-info h4 { font-family:var(--ff-display); font-size:17px; margin-bottom:12px; color:var(--blue-2); }
.franchise-modal-info p { font-size:13.5px; color:var(--muted); line-height:1.6; margin-bottom:14px; }
.franchise-modal-info ul { display:flex; flex-direction:column; gap:8px; }
.franchise-modal-info li { font-size:13px; color:var(--muted); display:flex; align-items:flex-start; gap:8px; }
.franchise-modal-info li::before { content:"✓"; color:var(--blue-2); font-weight:700; flex-shrink:0; }


/* ===================================================================
   ===== BOOKING WIZARD STYLES (v6) =====
   =================================================================== */

/* Wizard Progress Bar */
.wizard-progress { display:flex; align-items:center; gap:6px; margin-bottom:24px; padding:14px 16px; background:rgba(255,255,255,0.03); border:1px solid var(--line); border-radius:14px; }
.wizard-step-dot { display:flex; flex-direction:column; align-items:center; gap:4px; flex:0 0 auto; min-width:60px; }
.wizard-step-dot .ws-num { width:32px; height:32px; border-radius:50%; background:#0f1b2b; border:2px solid var(--line); color:var(--muted); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px; transition:.25s; }
.wizard-step-dot .ws-label { font-size:10.5px; color:var(--muted); text-align:center; transition:.25s; }
.wizard-step-dot.active .ws-num { background:linear-gradient(135deg,var(--blue-1),var(--blue-3)); color:#04111f; border-color:var(--blue-2); box-shadow:0 0 0 4px rgba(31,160,255,0.15); }
.wizard-step-dot.active .ws-label { color:var(--blue-2); font-weight:600; }
.wizard-step-dot.done .ws-num { background:rgba(60,220,140,0.15); border-color:#5be3a0; color:#5be3a0; }
.wizard-step-dot.done .ws-num::after { content:'✓'; }
.wizard-step-dot.done .ws-num { font-size:0; }
.wizard-step-dot.done .ws-num::after { font-size:14px; }
.wizard-step-line { flex:1; height:2px; background:var(--line); border-radius:2px; }

/* Wizard Panes */
.wizard-pane { display:none; animation:fadeUp .35s ease; }
.wizard-pane.active { display:block; }
@keyframes fadeUp { from{opacity:0;transform:translateY(10px);} to{opacity:1;transform:translateY(0);} }
.wizard-pane-title { font-family:var(--ff-display); font-size:17px; color:var(--white); margin-bottom:16px; text-align:center; }
.wizard-pane-sub { font-size:13px; color:var(--muted); text-align:center; margin-top:-10px; margin-bottom:18px; }
.wizard-nav { display:flex; justify-content:space-between; gap:12px; margin-top:20px; }

/* Category Cards (Step 1) */
.category-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.category-card { background:linear-gradient(165deg,#10202f,#0a141f); border:2px solid var(--line); border-radius:16px; padding:24px 16px; text-align:center; cursor:pointer; transition:.25s; }
.category-card:hover { border-color:var(--blue-2); transform:translateY(-3px); box-shadow:0 10px 30px -10px rgba(31,160,255,0.3); }
.category-card.selected { border-color:var(--blue-2); background:rgba(31,160,255,0.1); }
.category-card .cat-icon { font-size:42px; margin-bottom:10px; }
.category-card h4 { font-family:var(--ff-display); font-size:15px; color:var(--white); margin-bottom:6px; }
.category-card p { font-size:11.5px; color:var(--muted); }

/* Wash Type Cards (Step 2) */
.washtype-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:12px; }
.washtype-card { background:linear-gradient(165deg,#10202f,#0a141f); border:2px solid var(--line); border-radius:14px; padding:18px; text-align:center; cursor:pointer; transition:.25s; }
.washtype-card:hover { border-color:var(--blue-2); transform:translateY(-2px); }
.washtype-card.selected { border-color:var(--blue-2); background:rgba(31,160,255,0.1); }
.washtype-card .wt-icon { font-size:30px; margin-bottom:8px; }
.washtype-card h4 { font-family:var(--ff-display); font-size:14px; color:var(--white); margin-bottom:5px; }
.washtype-card p { font-size:11.5px; color:var(--muted); }

/* Vehicle Cards (Step 3) */
.vehicle-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px; }
.vehicle-card { background:linear-gradient(165deg,#10202f,#0a141f); border:2px solid var(--line); border-radius:14px; padding:20px 14px; text-align:center; cursor:pointer; transition:.25s; }
.vehicle-card:hover { border-color:var(--blue-2); transform:translateY(-2px); }
.vehicle-card.selected { border-color:var(--blue-2); background:rgba(31,160,255,0.1); }
.vehicle-card .vh-icon { font-size:32px; margin-bottom:8px; }
.vehicle-card h4 { font-family:var(--ff-display); font-size:14px; color:var(--white); }

/* Service Select Grid (Step 4) */
.services-select-grid { display:grid; grid-template-columns:1fr; gap:10px; max-height:280px; overflow-y:auto; padding-right:4px; }
.service-select-card { background:linear-gradient(165deg,#10202f,#0a141f); border:2px solid var(--line); border-radius:12px; padding:14px 16px; cursor:pointer; transition:.2s; position:relative; }
.service-select-card:hover { border-color:var(--blue-2); }
.service-select-card.selected { border-color:var(--blue-2); background:rgba(31,160,255,0.08); }
.service-select-card .ssc-head { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; margin-bottom:8px; }
.service-select-card .ssc-head h4 { font-size:14px; color:var(--white); font-family:var(--ff-display); flex:1; }
.service-select-card .ssc-price { font-size:16px; color:var(--blue-2); font-weight:700; white-space:nowrap; }
.service-select-card .ssc-points { display:flex; flex-wrap:wrap; gap:6px 14px; list-style:none; padding:0; margin:0; }
.service-select-card .ssc-points li { font-size:11.5px; color:var(--muted); padding-left:14px; position:relative; }
.service-select-card .ssc-points li::before { content:'✔'; position:absolute; left:0; color:var(--blue-2); font-size:9px; }
.service-select-card .ssc-add-indicator { margin-top:10px; font-size:12px; font-weight:600; color:var(--blue-2); text-align:center; padding:6px; background:rgba(31,160,255,0.06); border-radius:8px; }
.service-select-card.selected .ssc-add-indicator { background:rgba(31,160,255,0.15); }

/* Booking Cart */
.booking-cart { background:rgba(31,160,255,0.04); border:1px solid var(--line); border-radius:14px; padding:16px; margin-top:16px; }
.cart-title { font-family:var(--ff-display); font-size:14px; color:var(--blue-2); margin-bottom:12px; }
.cart-items { display:flex; flex-direction:column; gap:8px; max-height:200px; overflow-y:auto; }
.cart-empty { font-size:12.5px; color:var(--muted); text-align:center; padding:14px; }
.cart-item { display:flex; justify-content:space-between; align-items:center; background:#0f1b2b; border:1px solid var(--line); border-radius:10px; padding:10px 12px; gap:10px; }
.cart-item .ci-info b { font-size:13px; color:var(--white); display:block; }
.cart-item .ci-info span { font-size:11px; color:var(--muted); }
.cart-item .ci-right { display:flex; align-items:center; gap:10px; }
.cart-item .ci-right b { font-size:14px; color:var(--blue-2); }
.cart-item .ci-remove { background:rgba(255,90,90,0.15); border:none; color:#ff8080; width:24px; height:24px; border-radius:50%; cursor:pointer; font-size:12px; display:flex; align-items:center; justify-content:center; transition:.2s; }
.cart-item .ci-remove:hover { background:rgba(255,90,90,0.3); }
.cart-total { display:flex; justify-content:space-between; align-items:center; margin-top:14px; padding-top:14px; border-top:1px solid var(--line); }
.cart-total span { font-size:14px; color:var(--muted); font-weight:600; }
.cart-total b { font-family:var(--ff-display); font-size:22px; color:var(--blue-2); }

/* Details Modal — Question Blocks */
.detail-question { background:rgba(255,255,255,0.03); border:1px solid var(--line); border-radius:12px; padding:14px 16px; }
.dq-title { font-size:14px; color:var(--white); font-weight:600; margin-bottom:10px; }
.dq-options { display:flex; gap:10px; flex-wrap:wrap; }
.dq-option { display:flex; align-items:center; gap:6px; background:#0f1b2b; border:1px solid var(--line); border-radius:10px; padding:8px 14px; cursor:pointer; font-size:13px; color:var(--muted); transition:.2s; }
.dq-option:hover { border-color:var(--blue-2); color:var(--white); }
.dq-option input[type="radio"] { accent-color:var(--blue-2); width:15px; height:15px; }
.dq-option input[type="radio"]:checked + span { color:var(--blue-2); font-weight:600; }

/* Details Total Box */
.details-total-box { background:linear-gradient(135deg,rgba(31,160,255,0.15),rgba(31,160,255,0.05)); border:1px solid var(--blue-2); border-radius:14px; padding:18px; display:flex; flex-direction:column; align-items:center; gap:4px; margin-top:8px; }
.details-total-box span { font-size:13px; color:var(--muted); text-transform:uppercase; letter-spacing:1px; }
.details-total-box b { font-family:var(--ff-display); font-size:30px; color:var(--blue-2); }
.details-total-box small { font-size:12px; color:var(--muted); }

/* Invoice Success Modal */
.invoice-success { text-align:center; padding:10px 0; }
.invoice-success-icon { width:70px; height:70px; border-radius:50%; background:linear-gradient(135deg,#5be3a0,#3cdc8c); color:#04111f; font-size:36px; display:flex; align-items:center; justify-content:center; margin:0 auto 16px; animation:popIn .4s ease; }
@keyframes popIn { from{transform:scale(0);} to{transform:scale(1);} }
.invoice-success h3 { font-family:var(--ff-display); font-size:22px; color:var(--white); margin-bottom:8px; }
.invoice-token-label { font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:1.5px; margin-top:12px; }
.invoice-token { font-family:var(--ff-display); font-size:24px; color:var(--blue-2); font-weight:700; margin:4px 0 16px; letter-spacing:1px; }
.invoice-success-details { background:rgba(255,255,255,0.03); border:1px solid var(--line); border-radius:12px; padding:14px 16px; text-align:left; margin-bottom:18px; }
.isd-row { display:flex; justify-content:space-between; padding:6px 0; font-size:13px; border-bottom:1px solid rgba(255,255,255,0.05); }
.isd-row:last-child { border-bottom:none; }
.isd-row span { color:var(--muted); }
.isd-row b { color:var(--white); }
.isd-row.isd-total span, .isd-row.isd-total b { color:var(--blue-2); font-size:15px; }
.invoice-actions { display:flex; flex-direction:column; gap:10px; }

/* Partial Cancel Modal */
.partial-cancel-list { display:flex; flex-direction:column; gap:8px; max-height:300px; overflow-y:auto; }
.partial-cancel-item { display:flex; align-items:center; gap:12px; background:#0f1b2b; border:1px solid var(--line); border-radius:10px; padding:12px 14px; cursor:pointer; transition:.2s; }
.partial-cancel-item:hover { border-color:#ff8080; }
.partial-cancel-item input[type="checkbox"] { accent-color:#ff8080; width:18px; height:18px; }
.pci-info { flex:1; display:flex; justify-content:space-between; align-items:center; }
.pci-info b { font-size:13.5px; color:var(--white); }
.pci-info span { font-size:14px; color:#ff8080; font-weight:600; }
.partial-cancel-summary { background:rgba(255,255,255,0.03); border:1px solid var(--line); border-radius:12px; padding:14px 16px; margin-top:14px; }
.pcs-row { display:flex; justify-content:space-between; padding:5px 0; font-size:13.5px; }
.pcs-row span { color:var(--muted); }
.pcs-row b { color:var(--white); }
.pcs-row.pcs-cancel b { color:#ff8080; }
.pcs-row.pcs-new { border-top:1px solid var(--line); margin-top:6px; padding-top:10px; }
.pcs-row.pcs-new b { color:var(--blue-2); font-size:16px; }

/* ===== Customer Dashboard — Booking Card v2 ===== */
.booking-item-v2 { display:flex; flex-direction:column; gap:12px; padding:18px; }
.bi-v2-header { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.bi-v2-token { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.token-label { font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:1px; }
.token-value { font-family:var(--ff-display); font-size:16px; color:var(--blue-2); }
.revised-badge { background:rgba(255,200,77,0.15); color:#ffc94d; font-size:10px; padding:2px 8px; border-radius:999px; font-weight:600; }
.bi-v2-body { display:flex; flex-direction:column; gap:10px; }
.bi-v2-info { display:flex; flex-wrap:wrap; gap:12px; font-size:12px; color:var(--muted); }
.bi-v2-services { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:6px; }
.booking-svc { display:flex; align-items:center; gap:10px; font-size:13px; padding:6px 10px; background:rgba(255,255,255,0.03); border-radius:8px; }
.booking-svc span { flex:1; color:var(--white); }
.booking-svc b { color:var(--blue-2); }
.booking-svc.svc-cancelled { opacity:.6; }
.booking-svc.svc-cancelled span { text-decoration:line-through; color:var(--muted); }
.booking-svc.svc-cancelled b { color:#ff8080; text-decoration:line-through; }
.svc-cancel-tag { background:rgba(255,90,90,0.15); color:#ff8080; font-size:9.5px; padding:2px 6px; border-radius:4px; font-weight:600; }
.bi-v2-total { display:flex; align-items:center; gap:10px; padding:10px 12px; background:rgba(31,160,255,0.06); border-radius:10px; }
.bi-v2-total span { font-size:12px; color:var(--muted); }
.bi-v2-total b { font-family:var(--ff-display); font-size:18px; color:var(--blue-2); }
.bi-v2-total small { font-size:11px; color:var(--muted); }
.bi-v2-actions { display:flex; gap:8px; flex-wrap:wrap; padding-top:6px; border-top:1px solid var(--line); }
.btn-danger { color:#ff8080 !important; border-color:rgba(255,90,90,0.3) !important; }
.btn-danger:hover { background:rgba(255,90,90,0.1) !important; }

/* Responsive wizard */
@media (max-width:640px) {
  .category-cards { grid-template-columns:1fr; }
  .washtype-cards, .vehicle-cards { grid-template-columns:1fr 1fr; }
  .wizard-step-dot .ws-label { display:none; }
  .wizard-progress { padding:10px; gap:4px; }
  .isd-row { flex-direction:column; gap:2px; align-items:flex-start; }
  .bi-v2-info { flex-direction:column; gap:4px; }
}
