/* ============================================================
   Partner Portal – Drivo-style Design System
   Primary: #0d1ca4 | Accent: #1677ff | BG: #f5f7fa
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #0d1ca4;
  --primary-dark:  #0a1580;
  --primary-light: #e8ecff;
  --accent:        #1677ff;
  --accent-yellow: #facc15;
  --bg:            #f5f7fa;
  --white:         #ffffff;
  --text:          #111827;
  --text-muted:    #6b7280;
  --border:        #e5e7eb;
  --shadow-sm:     0 1px 4px rgba(0,0,0,.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,.12);
  --radius:        8px;
  --radius-lg:     12px;
  --sidebar-w:     240px;
  --header-h:      64px;
  --transition:    0.2s cubic-bezier(.4,0,.2,1);
}

body {
  font-family: "General Sans", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary   { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }

.btn-accent    { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #0d61d9; }

.btn-outline   { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }

.btn-ghost     { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--border); color: var(--text); }

.btn-full      { width: 100%; justify-content: center; padding: 12px 20px; font-size: 15px; }

.btn-danger    { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }

/* ── Form elements ────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-weight: 600; font-size: 13px; color: var(--text); }

.input-wrapper { position: relative; display: flex; align-items: center; }
.input-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 15px;
  pointer-events: none;
}
.input-wrapper input { padding-left: 38px; }

input, select, textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,28,164,.12);
}
input::placeholder { color: var(--text-muted); }

.toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
}
.toggle-password:hover { color: var(--text); }

/* ── Checkbox ─────────────────────────────────────────────── */
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.checkbox-label input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 24px;
}

/* ── Badge ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge-blue   { background: var(--primary-light); color: var(--primary); }
.badge-green  { background: #dcfce7; color: #16a34a; }
.badge-yellow { background: #fef9c3; color: #b45309; }
.badge-red    { background: #fee2e2; color: #dc2626; }
.badge-gray   { background: var(--border); color: var(--text-muted); }

/* ──────────────────────────────────────────────────────────
   LOGIN PAGE
   ────────────────────────────────────────────────────────── */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d1ca4 0%, #1e3a8a 60%, #0f172a 100%);
}

.login-container {
  width: 100%;
  max-width: 420px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.login-brand { text-align: center; color: #fff; }
.brand-logo {
  width: 64px; height: 64px;
  background: rgba(255,255,255,.15);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin: 0 auto 12px;
  backdrop-filter: blur(8px);
}
.brand-name { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.brand-tagline { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 4px; }

.login-card {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px rgba(0,0,0,.3);
  padding: 32px;
}
.login-card h2 { font-size: 22px; font-weight: 700; }
.login-subtitle { color: var(--text-muted); margin-top: 4px; margin-bottom: 24px; font-size: 14px; }

.login-form { display: flex; flex-direction: column; gap: 18px; }

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.forgot-link { color: var(--primary); font-weight: 500; }

.login-help {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.login-footer { text-align: center; color: rgba(255,255,255,.45); font-size: 12px; }

/* Real logo on login page */
.login-logo {
  height: 40px;
  width: auto;
  display: block;
  margin: 0 auto 14px;
  filter: brightness(0) invert(1); /* ensures pure white on any bg */
}

/* ──────────────────────────────────────────────────────────
   DASHBOARD LAYOUT
   ────────────────────────────────────────────────────────── */
.app-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ── Top Header ───────────────────────────────────────────── */
.app-header {
  height: var(--header-h);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  z-index: 100;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}
.header-logo {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.header-logo-img { height: 26px; width: auto; display: block; }
.header-brand-sub  { font-size: 11px; color: rgba(255,255,255,.6); line-height: 1; margin-top: 3px; }

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 6px 14px 6px 8px;
  cursor: pointer;
  transition: background var(--transition);
}
.user-chip:hover { background: rgba(255,255,255,.2); }

.user-avatar {
  width: 30px; height: 30px;
  background: var(--accent-yellow);
  color: #000;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.user-name { font-size: 13px; font-weight: 600; color: #fff; }
.user-role { font-size: 11px; color: rgba(255,255,255,.6); }

.btn-logout {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  display: flex; align-items: center; gap: 6px;
  transition: background var(--transition);
}
.btn-logout:hover { background: rgba(255,255,255,.22); }

/* ── Body (sidebar + content) ─────────────────────────────── */
.app-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
}

.sidebar-section { padding: 16px 12px 8px; }
.sidebar-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 0 8px;
  margin-bottom: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
  font-size: 14px;
  font-weight: 500;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.nav-item:hover { background: var(--bg); color: var(--primary); }
.nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}
.nav-item i { width: 18px; text-align: center; font-size: 15px; }
.nav-badge {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 12px;
  border-top: 1px solid var(--border);
}
.shop-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--radius);
}
.shop-icon {
  width: 34px; height: 34px;
  background: var(--primary-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 16px;
}
.shop-name { font-size: 13px; font-weight: 600; }
.shop-id   { font-size: 11px; color: var(--text-muted); }

/* ── Main Content ─────────────────────────────────────────── */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.page-title { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; }
.page-sub   { color: var(--text-muted); font-size: 14px; margin-top: 2px; }

/* Tab panels */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ──────────────────────────────────────────────────────────
   CONTACT TAB
   ────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.contact-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.contact-icon-wrap {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin: 0 auto 16px;
}
.contact-icon-wrap.blue   { background: var(--primary-light); color: var(--primary); }
.contact-icon-wrap.green  { background: #dcfce7; color: #16a34a; }

.contact-card h3 { font-size: 16px; font-weight: 700; }
.contact-card p  { color: var(--text-muted); font-size: 13px; margin: 6px 0 16px; }
.contact-value   { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 16px; }

.locations-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 24px; }
.locations-card h3 { font-weight: 700; font-size: 16px; margin-bottom: 16px; }

.location-list { display: flex; flex-direction: column; gap: 12px; }
.location-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: var(--radius);
}
.location-dot {
  width: 36px; height: 36px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.location-name  { font-weight: 600; font-size: 14px; }
.location-addr  { font-size: 12px; color: var(--text-muted); }
.location-code  { margin-left: auto; }

/* ──────────────────────────────────────────────────────────
   RESERVATIONS TAB
   ────────────────────────────────────────────────────────── */
.res-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.res-toolbar .search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.res-toolbar .search-box i {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.res-toolbar .search-box input {
  padding-left: 36px;
  width: 100%;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px 20px;
}
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.stat-value { font-size: 24px; font-weight: 700; margin-top: 4px; }
.stat-value.blue   { color: var(--primary); }
.stat-value.green  { color: #16a34a; }
.stat-value.yellow { color: #d97706; }
.stat-value.gray   { color: var(--text-muted); }

.res-table-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
table { width: 100%; border-collapse: collapse; }
thead th {
  background: var(--bg);
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #eef2ff; }

/* Detail slide-out panel */
.detail-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 999;
}
.detail-overlay.open { display: block; }

.detail-panel {
  position: fixed;
  top: 0;
  right: -520px;
  width: 500px;
  max-width: 90vw;
  height: 100vh;
  background: var(--white);
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  z-index: 1000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}
.detail-panel.open { right: 0; }

.detail-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.detail-panel-header h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}
.btn-close-detail {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.btn-close-detail:hover {
  background: #fee2e2;
  color: #dc2626;
}

.detail-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.detail-section {
  margin-bottom: 24px;
}
.detail-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--primary-light);
}
.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
}
.detail-row:last-child { border-bottom: none; }
.detail-label {
  color: var(--text-muted);
  font-weight: 500;
  min-width: 140px;
  flex-shrink: 0;
}
.detail-value {
  color: var(--text);
  text-align: right;
  word-break: break-word;
}
.detail-notes {
  background: var(--bg);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text);
  white-space: pre-wrap;
  line-height: 1.5;
  max-height: 200px;
  overflow-y: auto;
}

.btn-delete-res {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 14px;
  transition: color 0.2s, background 0.2s;
}
.btn-delete-res:hover {
  color: #dc2626;
  background: #fee2e2;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
}
.empty-state i { font-size: 48px; color: var(--border); margin-bottom: 16px; }
.empty-state p { color: var(--text-muted); font-size: 15px; }

/* ──────────────────────────────────────────────────────────
   BOOKING TAB
   ────────────────────────────────────────────────────────── */
.booking-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.booking-form-header {
  background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
  padding: 24px 28px;
  color: #fff;
}
.booking-form-header h3 { font-size: 18px; font-weight: 700; }
.booking-form-header p  { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 4px; }

.booking-form-body { padding: 28px; display: flex; flex-direction: column; gap: 24px; }

.form-row { display: grid; gap: 16px; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.section-divider::before, .section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Vehicle type cards */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.vehicle-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 12px;
  cursor: pointer;
  text-align: center;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
}
.vehicle-card:hover { border-color: var(--primary); background: var(--primary-light); }
.vehicle-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}
.vehicle-card.selected::after {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 8px; right: 8px;
  color: var(--primary);
  font-size: 14px;
}
.vehicle-card input[type="radio"] { display: none; }
.vehicle-icon { margin-bottom: 6px; display: flex; align-items: center; justify-content: center; }
.vehicle-icon img { width: 100%; max-width: 120px; height: auto; object-fit: contain; background: #fff; border-radius: 6px; }
.vehicle-name { font-size: 13px; font-weight: 700; }
.vehicle-eg   { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* Location cards */
.location-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.location-select-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 12px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
}
.location-select-card:hover { border-color: var(--accent); background: #eff6ff; }
.location-select-card.selected {
  border-color: var(--accent);
  background: #eff6ff;
}
.location-select-card.selected::after {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 8px; right: 8px;
  color: var(--accent);
  font-size: 14px;
}
.location-select-card input[type="radio"] { display: none; }
.loc-card-code { font-size: 11px; font-weight: 700; color: var(--accent); }
.loc-card-name { font-size: 13px; font-weight: 700; margin-top: 2px; }
.loc-card-addr { font-size: 11px; color: var(--text-muted); margin-top: 3px; line-height: 1.4; }

.booking-form-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: var(--bg);
}

/* ──────────────────────────────────────────────────────────
   ACCOUNT TAB
   ────────────────────────────────────────────────────────── */
.account-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.account-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.account-card-header h3 { font-size: 15px; font-weight: 700; }
.account-card-icon {
  width: 36px; height: 36px;
  background: #e8ecff;
  color: var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* View mode */
.account-fields-view { padding: 8px 0; }
.account-field-row {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.account-field-row:last-child { border-bottom: none; }
.account-field-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  width: 140px;
  flex-shrink: 0;
}
.account-field-value { font-size: 14px; font-weight: 500; }

/* Edit mode */
.account-fields-edit {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
}

/* Employee list */
.employee-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.employee-row:last-child { border-bottom: none; }
.employee-row:hover { background: var(--bg); }
.employee-avatar {
  width: 38px; height: 38px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}
.employee-info { flex: 1; }
.employee-name  { font-size: 14px; font-weight: 600; }
.employee-email { font-size: 13px; color: var(--accent); margin-top: 1px; }
.employee-phone { font-size: 13px; color: var(--text-muted); margin-top: 1px; text-decoration: none; }
.employee-phone:hover { color: var(--primary); }

/* Account footer */
#accountEditFooter {
  display: none;
  justify-content: flex-end;
  gap: 12px;
}

/* ── Credit Banner ────────────────────────────────────────── */
.credit-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
  border: 1.5px solid #fde68a;
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  margin-bottom: 20px;
  gap: 16px;
}
.credit-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.credit-icon {
  width: 40px; height: 40px;
  background: #fbbf24;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: #78350f;
  flex-shrink: 0;
}
.credit-label { font-weight: 700; font-size: 14px; color: #78350f; }
.credit-sub   { font-size: 12px; color: #92400e; margin-top: 2px; }
.credit-amount {
  font-size: 26px;
  font-weight: 700;
  color: #16a34a;
  white-space: nowrap;
}

/* ── Apply Credit Checkbox (booking footer) ───────────────── */
.credit-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: var(--radius);
  border: 1.5px solid #fde68a;
  background: #fefce8;
  transition: background var(--transition);
  font-size: 14px;
  font-weight: 500;
  color: #78350f;
  white-space: nowrap;
}
.credit-checkbox-label:hover { background: #fef9c3; }
.credit-checkbox-label input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: #d97706;
  cursor: pointer;
  flex-shrink: 0;
}
.credit-checkbox-icon { color: #d97706; font-size: 16px; }

/* ── File Upload Zone ─────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color var(--transition), background var(--transition);
  overflow: hidden;
}
.upload-zone.drag-over {
  border-color: var(--primary);
  background: var(--primary-light);
}
.upload-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  gap: 6px;
  text-align: center;
}
.upload-icon {
  font-size: 32px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.upload-zone.drag-over .upload-icon { color: var(--primary); }
.upload-label {
  font-size: 14px;
  color: var(--text);
}
.upload-browse {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.upload-browse:hover { color: var(--primary-dark); }
.upload-hint { font-size: 12px; color: var(--text-muted); }

.upload-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--primary-light);
}
.upload-preview-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.upload-filename {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upload-filesize { font-size: 12px; color: var(--text-muted); }
.upload-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  font-size: 16px;
  flex-shrink: 0;
  transition: color var(--transition), background var(--transition);
}
.upload-remove:hover { color: #dc2626; background: #fee2e2; }

/* ──────────────────────────────────────────────────────────
   SUCCESS / TOAST
   ────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: #111827;
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius);
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-md);
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  animation: slideUp .3s ease;
}
.toast.success i { color: #4ade80; }
.toast.error   i { color: #f87171; }

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

/* ──────────────────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar { width: 64px; }
  .nav-item span, .sidebar-label, .nav-badge,
  .shop-info .shop-name, .shop-info .shop-id,
  .header-brand-sub, .header-logo-img { display: none; }
  .nav-item { justify-content: center; }
  .shop-info { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .vehicle-grid { grid-template-columns: 1fr 1fr; }
  .location-cards-grid { grid-template-columns: 1fr 1fr; }
  .form-row-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .main-content { padding: 16px; }
  .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
  .vehicle-grid { grid-template-columns: 1fr 1fr; }
  .location-cards-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
}
