/* ═══════════════════════════════════════════════
   JDABS CAR RENTAL — FUTURISTIC RED THEME
   ═══════════════════════════════════════════════ */
:root {
  --red:     #e63946;
  --red2:    #ff2d55;
  --red-dim: rgba(230,57,70,0.15);
  --red-glow:rgba(230,57,70,0.4);
  --bg:      #080810;
  --bg2:     #0f0f1a;
  --bg3:     #161624;
  --card:    #12121f;
  --border:  rgba(230,57,70,0.25);
  --text:    #f0f0f0;
  --muted:   #888;
  --white:   #ffffff;
  --green:   #00ff88;
  --font:    'Inter', sans-serif;
  --font2:   'Orbitron', monospace;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── SPLASH ───────────────────────────────────── */
#app-splash {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s;
}
#app-splash.hide { opacity: 0; pointer-events: none; }
.splash-inner { text-align: center; }
.splash-logo { width: 80px; height: 80px; object-fit: contain; margin-bottom: 16px; filter: drop-shadow(0 0 20px var(--red)); }
.splash-name { font-family: var(--font2); font-size: 22px; color: var(--white); letter-spacing: 2px; margin-bottom: 28px; }
.splash-name b { color: var(--red); }
.splash-bar { width: 200px; height: 3px; background: var(--bg3); border-radius: 2px; margin: 0 auto 12px; overflow: hidden; }
.splash-fill { height: 100%; width: 0; background: var(--red); animation: fill 1.2s ease forwards; border-radius: 2px; box-shadow: 0 0 10px var(--red); }
@keyframes fill { to { width: 100%; } }
.splash-msg { font-size: 12px; color: var(--muted); letter-spacing: 2px; font-family: var(--font2); }

/* ── NAV ──────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 64px;
  background: rgba(8,8,16,0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.nav-logo { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.nav-logo img { width: 36px; height: 36px; object-fit: contain; }
.nav-logo span { font-family: var(--font2); font-size: 16px; color: var(--white); }
.nav-logo b { color: var(--red); }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: var(--red); }

/* ── HERO ─────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  min-height: 540px; display: flex; align-items: center;
  padding: 80px 32px;
  background: linear-gradient(135deg, #0a0010 0%, var(--bg) 50%, #0a000a 100%);
}
.hero-glow {
  position: absolute; top: -100px; left: -100px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(230,57,70,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-scan {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(230,57,70,0.03) 3px, rgba(230,57,70,0.03) 4px);
}
.hero-content { position: relative; max-width: 680px; }
.hero-badge {
  display: inline-block; margin-bottom: 20px;
  padding: 6px 16px; border: 1px solid var(--border);
  border-radius: 2px; font-family: var(--font2);
  font-size: 11px; color: var(--red); letter-spacing: 3px;
  background: var(--red-dim);
}
.hero h1 {
  font-family: var(--font2); font-size: clamp(36px,6vw,72px);
  font-weight: 900; line-height: 1.05;
  color: var(--white); letter-spacing: -1px;
  text-transform: uppercase; margin-bottom: 20px;
}

.hero h1 em { color: var(--red); font-style: normal; }
.hero p { font-size: 16px; color: var(--muted); line-height: 1.7; max-width: 480px; margin-bottom: 40px; }
.hero-stats { display: flex; align-items: center; gap: 0; }
.hs-item { text-align: center; padding: 0 28px; }
.hs-item:first-child { padding-left: 0; }
.hs-num { display: block; font-family: var(--font2); font-size: 28px; font-weight: 700; color: var(--red); }
.hs-lbl { display: block; font-size: 11px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; margin-top: 4px; }
.hs-div { width: 1px; height: 40px; background: var(--border); }

/* ── FILTER BAR ───────────────────────────────── */
.filter-wrap { padding: 0 32px 0; }
.filter-bar {
  display: flex; gap: 16px; align-items: flex-end;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 4px; padding: 20px 24px;
  margin: 32px 0; flex-wrap: wrap;
  box-shadow: 0 0 40px rgba(230,57,70,0.08);
}
.fb-group { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 160px; }
.fb-group label { font-family: var(--font2); font-size: 10px; color: var(--red); letter-spacing: 2px; }
.fb-group input {
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--text); padding: 10px 14px; border-radius: 2px;
  font-size: 14px; font-family: var(--font); outline: none;
  transition: border-color .2s;
}
.fb-group input:focus { border-color: var(--red); }
.btn-check {
  background: var(--red); color: white; border: none;
  padding: 12px 28px; border-radius: 2px; cursor: pointer;
  font-family: var(--font2); font-size: 11px; letter-spacing: 2px;
  font-weight: 700; white-space: nowrap;
  transition: background .2s, box-shadow .2s;
  box-shadow: 0 0 20px var(--red-glow);
}
.btn-check:hover { background: var(--red2); box-shadow: 0 0 30px var(--red-glow); }

/* ── FLEET ────────────────────────────────────── */
.fleet-wrap {
  padding: 0 32px 80px;
  max-width: 1200px;      /* ← add this */
  margin: 0 auto;         /* ← add this */
  width: 100%;            /* ← add this */
}
.fleet-head { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.fleet-head h2 { font-family: var(--font2); font-size: 24px; font-weight: 700; color: var(--white); }
.fleet-head h2 em { color: var(--red); font-style: normal; }
.fleet-ct { font-family: var(--font2); font-size: 11px; color: var(--muted); border: 1px solid var(--border); padding: 4px 12px; border-radius: 2px; }
.units-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 20px; }
.loading-grid { display: flex; align-items: center; gap: 12px; padding: 40px; color: var(--muted); }

/* ── UNIT CARD ────────────────────────────────── */
.unit-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden; cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  position: relative;
}
.unit-card:hover { border-color: var(--red); transform: translateY(-4px); box-shadow: 0 8px 40px rgba(230,57,70,0.2); }
.unit-card.unavail { opacity: .5; cursor: default; }
.unit-card.unavail:hover { transform: none; box-shadow: none; border-color: var(--border); }
.uc-img { position: relative; height: 200px; background: var(--bg2); overflow: hidden; }
.uc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.unit-card:hover .uc-img img { transform: scale(1.05); }
.uc-no-img { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 60px; }
.uc-badge {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font2); font-size: 9px; letter-spacing: 2px;
  padding: 4px 10px; border-radius: 2px; font-weight: 700;
}
.uc-badge.avail { background: rgba(0,255,136,0.15); color: var(--green); border: 1px solid rgba(0,255,136,0.3); }
.uc-badge.unavl { background: rgba(230,57,70,0.15); color: var(--red); border: 1px solid var(--border); }
.uc-body { padding: 20px; }
.uc-name { font-family: var(--font2); font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.uc-rate { font-size: 22px; font-weight: 700; color: var(--red); margin-bottom: 12px; }
.uc-rate span { font-size: 13px; color: var(--muted); font-weight: 400; }
.uc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.uc-meta span { font-size: 12px; color: var(--muted); background: var(--bg2); padding: 4px 10px; border-radius: 2px; }
.btn-book {
  width: 100%; padding: 12px; border: 1px solid var(--red);
  background: var(--red-dim); color: var(--red);
  font-family: var(--font2); font-size: 11px; letter-spacing: 2px;
  border-radius: 2px; cursor: pointer; font-weight: 700;
  transition: background .2s, color .2s;
}
.btn-book:hover { background: var(--red); color: white; }
.btn-book:disabled { opacity: .4; cursor: default; }

/* ── MODAL ────────────────────────────────────── */
.mo {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.85); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 20px;
}
.mo.open { display: flex; }
.modal {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 4px; width: 100%; max-width: 580px;
  max-height: 90vh; display: flex; flex-direction: column;
  box-shadow: 0 0 60px rgba(230,57,70,0.2);
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.modal-title { font-family: var(--font2); font-size: 16px; font-weight: 700; color: var(--white); }
.modal-close { background: none; border: 1px solid var(--border); color: var(--muted); width: 32px; height: 32px; border-radius: 2px; cursor: pointer; font-size: 14px; transition: all .2s; }
.modal-close:hover { border-color: var(--red); color: var(--red); }
.modal-steps {
  display: flex; align-items: center; padding: 16px 24px;
  border-bottom: 1px solid var(--border); gap: 0;
}
.ms-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ms-num {
  width: 32px; height: 32px; border-radius: 2px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font2); font-size: 12px; font-weight: 700;
  color: var(--muted); transition: all .2s;
}
.ms-num.act { border-color: var(--red); color: var(--red); background: var(--red-dim); box-shadow: 0 0 12px var(--red-glow); }
.ms-num.done { border-color: var(--green); color: var(--green); background: rgba(0,255,136,0.1); }
.ms-lbl { font-family: var(--font2); font-size: 9px; color: var(--muted); letter-spacing: 1px; }
.ms-line { flex: 1; height: 1px; background: var(--border); margin: 0 8px; margin-bottom: 16px; }
.modal-body { flex: 1; overflow-y: auto; padding: 24px; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--border); }

/* ── STEP SECTIONS ────────────────────────────── */
.step-section { margin-bottom: 24px; }
.ss-label { font-family: var(--font2); font-size: 10px; color: var(--red); letter-spacing: 2px; margin-bottom: 10px; }
select, input[type=text], input[type=email], input[type=tel], input[type=password] {
  width: 100%; background: var(--bg2); border: 1px solid var(--border);
  color: var(--text); padding: 12px 14px; border-radius: 2px;
  font-size: 14px; font-family: var(--font); outline: none; transition: border-color .2s;
}
select:focus, input:focus { border-color: var(--red); }
select option { background: var(--bg2); }

/* ── CALENDAR ─────────────────────────────────── */
#cal-container { background: var(--bg2); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cal-month-label {
  font-family: var(--font2);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}
.cal-nav {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--muted);
  width: 30px; height: 30px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: color .2s, border-color .2s;
}
.cal-nav:hover { color: var(--white); border-color: var(--red); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-dow {
  font-family: var(--font2);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
  text-align: center;
  padding: 4px 0 6px;
}
.cal-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-family: var(--font);
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: default;
  transition: background .15s, border-color .15s, color .15s;
  position: relative;
  user-select: none;
}


/* ── Available ── green */
.cal-cell.available {
  color: #86efac;
  background: rgba(34,197,94,.06);
  border-color: rgba(34,197,94,.15);
  cursor: pointer;
}
.cal-cell.available:hover {
  background: rgba(34,197,94,.18);
  border-color: #22c55e;
  color: #fff;
}

/* ── Busy / booked ── red muted */
.cal-cell.busy {
  color: #6b7280;
  background: rgba(230,57,70,.07);
  border-color: rgba(230,57,70,.15);
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-color: rgba(230,57,70,.3);
}

/* ── Past ── grey faded */
.cal-cell.past {
  color: #374151;
  background: transparent;
  border-color: transparent;
  cursor: not-allowed;
}

.cal-cell.today {
  color: #fbbf24 !important;
  background: rgba(251,191,36,.08) !important;
  border-color: rgba(251,191,36,.5) !important;
  font-weight: 700;
}

/* ── Selected start / end ── orange solid */
.cal-cell.sel-start,
.cal-cell.sel-end {
  background: rgba(249,115,22,.35) !important;
  border-color: #f97316 !important;
  color: #fff !important;
  font-weight: 700;
  cursor: pointer;
}
.cal-cell.sel-start { border-radius: 4px 0 0 4px; }
.cal-cell.sel-end   { border-radius: 0 4px 4px 0; }
.cal-cell.sel-start.sel-end { border-radius: 4px; }

/* ── In range ── dim orange fill */
.cal-cell.in-range {
  background: rgba(249,115,22,.1) !important;
  border-color: rgba(249,115,22,.2) !important;
  color: #fdba74 !important;
  border-radius: 0;
  cursor: pointer;
}


/* ── LEGEND ─────────────────────────────────────────────────── */
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.cal-li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font2);
  letter-spacing: .5px;
}
.leg {
  width: 13px;
  height: 13px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Legend swatches — each distinct */
.leg.avail     { background: rgba(34,197,94,.15);  border: 1.5px solid #22c55e; }
.leg.today-leg { background: rgba(251,191,36,.12); border: 1.5px solid #fbbf24; }
.leg.busy      { background: rgba(230,57,70,.1);   border: 1.5px solid #e63946; }
.leg.sel       { background: rgba(249,115,22,.35); border: 1.5px solid #f97316; }
.leg.range     { background: rgba(249,115,22,.1);  border: 1.5px solid rgba(249,115,22,.4); }



/* ── SUMMARY BAR ─────────────────────────────────────────────── */
.cal-summary {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 3px;
  font-size: 13px;
  font-family: var(--font);
}
.cal-summary.done {
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.25);
  color: #86efac;
}
.cal-summary.partial {
  background: rgba(249,115,22,.08);
  border: 1px solid rgba(249,115,22,.25);
  color: #fdba74;
}


/* ── FORMS ────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fg-half { display: flex; flex-direction: column; gap: 6px; }
.fg-full { display: flex; flex-direction: column; gap: 6px; grid-column: 1/-1; }
.fg-half label, .fg-full label { font-family: var(--font2); font-size: 10px; color: var(--red); letter-spacing: 1px; }
.file-drop {
  border: 1px dashed var(--border); border-radius: 4px; padding: 20px;
  text-align: center; cursor: pointer; transition: all .2s;
  background: var(--bg2);
}
.file-drop:hover { border-color: var(--red); background: var(--red-dim); }
.fd-icon { font-size: 28px; margin-bottom: 8px; }
.fd-txt { font-size: 13px; color: var(--muted); }

/* ── REVIEW CARD ──────────────────────────────── */
.review-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 4px; padding: 20px; margin-bottom: 16px; }
.rv-row-head { margin-bottom: 12px; }
.rv-vehicle { font-family: var(--font2); font-size: 18px; font-weight: 700; color: var(--white); }
.rv-dest { font-size: 13px; color: var(--muted); margin-top: 4px; }
.rv-dates { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.rv-date-box { background: var(--bg3); border: 1px solid var(--border); padding: 8px 14px; border-radius: 2px; font-family: var(--font2); font-size: 11px; color: var(--white); }
.rv-arrow { color: var(--red); font-size: 18px; }
.rv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.rv-item { display: flex; flex-direction: column; gap: 4px; }
.rv-lbl { font-family: var(--font2); font-size: 9px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.rv-val2 { font-size: 14px; color: var(--white); font-weight: 600; }
.rv-divider { height: 1px; background: var(--border); margin: 12px 0; }
.rv-renter { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.rv-renter span:nth-child(2) { font-size: 15px; font-weight: 600; color: var(--white); }
.rv-sub { font-size: 12px; color: var(--muted); }
.rv-fee-row { display: flex; align-items: center; justify-content: space-between; background: var(--red-dim); border: 1px solid var(--border); border-radius: 2px; padding: 14px; margin-bottom: 10px; }
.rv-fee-label { font-family: var(--font2); font-size: 11px; color: var(--red); font-weight: 700; }
.rv-fee-sub { font-size: 11px; color: var(--muted); margin-top: 4px; }
.rv-fee-amount { font-family: var(--font2); font-size: 22px; font-weight: 700; color: var(--red); }
.rv-remaining { font-size: 12px; color: var(--muted); text-align: right; }
.rv-terms { font-size: 11px; color: var(--muted); text-align: center; }

/* ── MODAL FOOTER ─────────────────────────────── */
.mf-info { font-size: 13px; color: var(--muted); margin-bottom: 12px; min-height: 18px; }
.mf-btns { display: flex; gap: 12px; }
.btn { padding: 12px 24px; border-radius: 2px; cursor: pointer; font-family: var(--font2); font-size: 11px; letter-spacing: 1px; font-weight: 700; border: none; transition: all .2s; }
.btn-sec { background: var(--bg3); color: var(--muted); border: 1px solid var(--border); flex-shrink: 0; }
.btn-sec:hover { border-color: var(--red); color: var(--red); }
.btn-p { background: var(--red); color: white; flex: 1; box-shadow: 0 0 20px var(--red-glow); }
.btn-p:hover { background: var(--red2); box-shadow: 0 0 30px var(--red-glow); }
.btn-p:disabled { opacity: .5; cursor: default; box-shadow: none; }
.btn-pay {
  flex: 1; padding: 14px; background: linear-gradient(135deg, var(--red), var(--red2));
  color: white; border: none; border-radius: 2px; cursor: pointer;
  font-family: var(--font2); font-size: 13px; letter-spacing: 2px; font-weight: 700;
  box-shadow: 0 0 30px var(--red-glow); transition: all .2s;
}
.btn-pay:hover { box-shadow: 0 0 50px var(--red-glow); transform: translateY(-1px); }
.btn-pay:disabled { opacity: .5; cursor: default; transform: none; }

/* ── RESULT OVERLAY ───────────────────────────── */
.result-ov {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.9); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.result-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 4px; padding: 40px; text-align: center;
  max-width: 480px; width: 100%;
  box-shadow: 0 0 60px rgba(230,57,70,0.3);
}
.res-icon {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700; margin: 0 auto 20px;
}
.res-icon.ok { background: rgba(0,255,136,0.15); color: var(--green); border: 2px solid var(--green); box-shadow: 0 0 30px rgba(0,255,136,0.3); }
.res-icon.err { background: var(--red-dim); color: var(--red); border: 2px solid var(--red); box-shadow: 0 0 30px var(--red-glow); }
.result-card h2 { font-family: var(--font2); font-size: 22px; color: var(--white); margin-bottom: 10px; }
.result-card p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.res-details { text-align: left; background: var(--bg2); border: 1px solid var(--border); border-radius: 2px; padding: 16px; margin-bottom: 20px; }
.res-id { font-family: var(--font2); font-size: 11px; color: var(--muted); margin-bottom: 16px; }

/* ── ADMIN ────────────────────────────────────── */
#admin-login {
  position: fixed; inset: 0; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.admin-lc {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 4px; padding: 40px; width: 100%; max-width: 380px;
  text-align: center; box-shadow: 0 0 60px rgba(230,57,70,0.15);
}
.alc-icon { font-size: 40px; margin-bottom: 16px; }
.admin-lc h2 { font-family: var(--font2); font-size: 20px; color: var(--white); margin-bottom: 6px; }
.admin-lc p { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.adm-input { display: block; width: 100%; margin-bottom: 12px; background: var(--bg2); border: 1px solid var(--border); color: var(--text); padding: 12px 14px; border-radius: 2px; font-size: 14px; font-family: var(--font); outline: none; }
.adm-input:focus { border-color: var(--red); }
.adm-err { font-size: 12px; color: var(--red); margin-top: 10px; display: none; }
.admin-lc a { display: block; margin-top: 20px; font-size: 12px; color: var(--muted); text-decoration: none; }
.admin-lc a:hover { color: var(--red); }
#admin-panel { display: flex; height: 100vh; position: fixed; inset: 0; }
.sidebar { width: 220px; background: var(--card); border-right: 1px solid var(--border); display: flex; flex-direction: column; flex-shrink: 0; }
.sb-brand { padding: 20px; border-bottom: 1px solid var(--border); }
.sb-brand span { font-family: var(--font2); font-size: 18px; font-weight: 700; color: var(--red); display: block; }
.sb-brand small { font-size: 11px; color: var(--muted); }
.sb-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.sb-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 20px; color: var(--muted); text-decoration: none; font-size: 13px; cursor: pointer; transition: all .2s; border-left: 2px solid transparent; }
.sb-nav a:hover, .sb-nav a.active { color: var(--red); border-left-color: var(--red); background: var(--red-dim); }
.sb-foot { padding: 12px 0; border-top: 1px solid var(--border); }
.sb-foot a { display: flex; align-items: center; gap: 10px; padding: 12px 20px; color: var(--muted); cursor: pointer; font-size: 13px; transition: color .2s; }
.sb-foot a:hover { color: var(--red); }
.adm-main { flex: 1; overflow-y: auto; padding: 32px; background: var(--bg); }

/* ── TOAST ────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--card); border: 1px solid var(--border);
  color: var(--text); padding: 12px 24px; border-radius: 2px;
  font-size: 13px; z-index: 9000; opacity: 0;
  transition: opacity .3s; pointer-events: none; white-space: nowrap;
  max-width: 90vw; font-family: var(--font2); letter-spacing: 1px;
}
.toast.show { opacity: 1; }
.toast.ok  { border-color: var(--green); color: var(--green); }
.toast.err { border-color: var(--red);   color: var(--red);   }
.toast.info { border-color: #4488ff; color: #4488ff; }

/* ── SPINNER ──────────────────────────────────── */
.sp {
  width: 20px; height: 20px; border: 2px solid var(--border);
  border-top-color: var(--red); border-radius: 50%;
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 640px) {
  .nav { padding: 0 16px; }
  .hero { padding: 60px 16px; }
  .filter-wrap { padding: 0 16px; }
 .filter-bar {
  /* your existing styles... */
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
  .fleet-wrap { padding: 0 16px 60px; }
  .form-grid { grid-template-columns: 1fr; }
  .fg-half { grid-column: 1/-1; }
  .hero h1 { font-size: 36px; }
  .modal { max-height: 100vh; border-radius: 0; }
  .sidebar { width: 180px; }
}

/* ── Center main container ──────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Hero section centered text ─────────────────────────────── */
.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero .stats-row {
  justify-content: center;
}

/* ── Filter bar centered ─────────────────────────────────────── */
.filter-bar {
  max-width: 900px;
  margin: 0 auto 40px;
}

/* ── Fleet grid centered ─────────────────────────────────────── */
#fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  justify-items: center;
}

/* ── No vehicles message centered ───────────────────────────── */
.no-vehicles {
  text-align: center;
  width: 100%;
  padding: 60px 0;
  color: var(--muted);
}

/* ── ADMIN PANEL BUTTONS FIX ─────────────────────────────────── */

/* Page header row — title left, button right, compact */
.admin-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-page-head h2 {
  font-family: var(--font2);
  font-size: 22px;
  color: var(--white);
  margin: 0;
}

/* Small add button — NOT full width */
.btn-add {
  padding: 8px 20px;
  font-family: var(--font2);
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  border: 1px solid var(--red);
  background: var(--red-dim);
  color: var(--red);
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s, color .2s;
  white-space: nowrap;
  width: auto;           /* ← key fix */
}

.btn-add:hover { background: var(--red); color: white; }

/* Save/Submit buttons in forms — auto width, not full stretch */
.btn-save {
  padding: 10px 32px;
  font-family: var(--font2);
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  background: var(--red);
  color: white;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity .2s;
  width: auto;           /* ← key fix */
  align-self: flex-start;
}

.btn-save:hover { opacity: .85; }

/* Form action row — buttons sit left, not stretched */
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  align-items: center;
}

/* Fix select dropdowns to match input style */
.form-input select,
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23e63946'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ── FORM INPUTS (global fix) ───────────────────────────────── */
.form-label {
  font-family: var(--font2);
  font-size: 10px;
  color: var(--red);
  letter-spacing: 1.5px;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}
.form-group { margin-bottom: 0; }

.form-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg2) !important;   /* kills browser white default */
  border: 1px solid var(--border);
  color: var(--text) !important;
  padding: 10px 14px;
  border-radius: 2px;
  font-family: var(--font);
  font-size: 13px;
  outline: none;
  transition: border-color .2s;
 
}
.form-input:focus  { border-color: var(--red); }
.form-input::placeholder { color: var(--muted); opacity: 1; }

/* number input spinner hide */
.form-input[type=number]::-webkit-inner-spin-button,
.form-input[type=number]::-webkit-outer-spin-button { opacity: .4; }

/* select arrow */
select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='%23e63946'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

/* textarea */
textarea.form-input { resize: vertical; min-height: 80px; line-height: 1.5; }

/* checkbox row */
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 4px;
}
.check-row input[type=checkbox] {
  width: 16px; height: 16px;
  accent-color: var(--red);
  cursor: pointer;
  flex-shrink: 0;
}
.check-row label {
  font-family: var(--font2);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  cursor: pointer;
}

.btn-back {
  font-family: var(--font2); font-size: 10px; letter-spacing: 1.5px; font-weight: 700;
  padding: 7px 14px; border: 1px solid var(--border); background: var(--bg2);
  color: var(--muted); border-radius: 2px; cursor: pointer; transition: color .2s, border-color .2s;
}
.btn-back:hover { color: var(--white); border-color: var(--white); }

.btn-danger {
  padding: 10px 20px; font-family: var(--font2); font-size: 10px; letter-spacing: 1.5px;
  font-weight: 700; background: transparent; color: var(--red);
  border: 1px solid rgba(230,57,70,.4); border-radius: 2px; cursor: pointer; transition: background .2s;
}
.btn-danger:hover { background: rgba(230,57,70,.1); }

.btn-icon-edit, .btn-icon-del {
  padding: 6px 14px; font-family: var(--font2); font-size: 10px; letter-spacing: 1.5px;
  font-weight: 700; border-radius: 2px; cursor: pointer; transition: background .2s, color .2s;
}
.btn-icon-edit { background: var(--bg2); color: var(--muted); border: 1px solid var(--border); }
.btn-icon-edit:hover { color: var(--white); border-color: var(--white); }
.btn-icon-del { background: transparent; color: var(--red); border: 1px solid rgba(230,57,70,.3); }
.btn-icon-del:hover { background: rgba(230,57,70,.1); }

/* ── BOOKING MODAL INPUTS — force dark theme ─────────────────── */
.bk-modal input,
.bk-modal select,
.bk-modal textarea {
  background: var(--bg2) !important;
  color: var(--text) !important;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 11px 14px;
  font-family: var(--font);
  font-size: 13px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border-color .2s;
}
.bk-modal input:focus,
.bk-modal select:focus,
.bk-modal textarea:focus { border-color: var(--red) !important; }

.bk-modal input::placeholder,
.bk-modal textarea::placeholder { color: var(--muted); opacity: 1; }

/* Kill browser autofill white background */
.bk-modal input:-webkit-autofill,
.bk-modal input:-webkit-autofill:hover,
.bk-modal input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #1a1a1a inset !important;
  -webkit-text-fill-color: #e0e0e0 !important;
  caret-color: #e0e0e0;
  border-color: var(--border) !important;
  transition: background-color 9999s ease-in-out 0s;
}

/* Field group */
.bk-field { margin-bottom: 14px; }
.bk-field label {
  font-family: var(--font2);
  font-size: 10px;
  color: var(--red);
  letter-spacing: 1.5px;
  font-weight: 700;
  display: block;
  margin-bottom: 5px;
}
.bk-field small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
  display: block;
}

/* Two-column row */
.bk-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ── UPLOAD ZONES ────────────────────────────────────────────── */
.upload-zone {
  border: 1.5px dashed var(--border);
  border-radius: 4px;
  background: var(--bg2);
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  position: relative;
}
.upload-zone:hover {
  border-color: var(--red);
  background: rgba(230,57,70,.04);
}
.upload-zone.has-file {
  border-color: var(--green);
  background: rgba(0,255,136,.04);
}
.upload-zone .uz-icon {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
}
.upload-zone .uz-label {
  font-family: var(--font2);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  display: block;
}
.upload-zone .uz-sub {
  font-size: 11px;
  color: var(--muted);
  opacity: .6;
  margin-top: 4px;
  display: block;
}
.upload-zone.has-file .uz-label { color: var(--green); }
.upload-zone input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  border: none !important;
}

@keyframes pulse {
  from { opacity: .3; transform: scaleX(.6); }
  to   { opacity: 1;  transform: scaleX(1);  }
}

/* ── SUBMIT OVERLAY ──────────────────────────────────────────── */
#submit-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  backdrop-filter: blur(6px);
}
.so-spinner {
  width: 64px;
  height: 64px;
  position: relative;
}
.so-spinner::before,
.so-spinner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}
.so-spinner::before {
  border-top-color: var(--red);
  animation: spin 1s linear infinite;
}
.so-spinner::after {
  border-bottom-color: rgba(230,57,70,.3);
  animation: spin 1.5s linear infinite reverse;
  inset: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.so-icon {
  font-size: 32px;
  animation: float 2s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.so-title {
  font-family: var(--font2);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
  text-align: center;
}
.so-sub {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font2);
  letter-spacing: 1px;
  text-align: center;
  max-width: 260px;
  line-height: 1.6;
}
.so-dots span {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  margin: 0 3px;
  animation: dotpulse 1.2s ease-in-out infinite;
}
.so-dots span:nth-child(2) { animation-delay: .2s; }
.so-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes dotpulse {
  0%,80%,100% { transform: scale(.6); opacity: .4; }
  40%          { transform: scale(1);  opacity: 1;  }
}

/* ── Checkout-available (busy day usable as return date) ─────── */
.cal-cell.checkout-avail {
  color: #fb923c;
  background: rgba(251,146,60,.08);
  border-color: rgba(251,146,60,.3);
  cursor: pointer;
  position: relative;
}
.cal-cell.checkout-avail::after {
  content: '↩';
  position: absolute;
  top: 2px;
  right: 3px;
  font-size: 8px;
  color: #fb923c;
  opacity: .7;
}
.cal-cell.checkout-avail:hover {
  background: rgba(251,146,60,.2);
  border-color: #fb923c;
}

/* Add to legend */
.leg.checkout { background: rgba(251,146,60,.1); border: 1.5px solid #fb923c; }