/* =========================================================
   DriverHire - Modern Responsive Design System
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --brand-50:  #eef4ff;
  --brand-100: #dbe6ff;
  --brand-200: #bed2ff;
  --brand-300: #91b4ff;
  --brand-400: #5c8bff;
  --brand-500: #3563ff;
  --brand-600: #1d3ff5;
  --brand-700: #172fe0;
  --brand-800: #1a2ab4;
  --brand-900: #1c2b8d;

  --accent-400: #ffc451;
  --accent-500: #ffb020;
  --accent-600: #e08c00;

  --success: #12a95c;
  --success-soft: #e6f7ee;
  --danger:  #e5484d;
  --danger-soft: #fdecec;
  --warning: #f5a524;
  --warning-soft: #fff5e5;
  --info:    #0ea5e9;
  --info-soft: #e5f6fe;

  --ink-900: #0b1120;
  --ink-800: #111a2e;
  --ink-700: #1e293b;
  --ink-600: #334155;
  --ink-500: #475569;
  --ink-400: #64748b;
  --ink-300: #94a3b8;
  --ink-200: #cbd5e1;
  --ink-100: #e2e8f0;
  --ink-50:  #f1f5f9;

  --bg:        #ffffff;
  --bg-soft:   #f7f9fc;
  --surface:   #ffffff;
  --surface-2: #f7f9fc;
  --border:    #e6ebf2;
  --text:      #0f172a;
  --text-muted:#64748b;
  --heading:   #0b1120;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  --shadow-xs: 0 1px 2px rgba(11,17,32,.06);
  --shadow-sm: 0 2px 8px rgba(11,17,32,.06);
  --shadow:    0 10px 30px rgba(11,17,32,.08);
  --shadow-md: 0 18px 45px rgba(11,17,32,.12);
  --shadow-lg: 0 30px 70px rgba(11,17,32,.16);
  --shadow-brand: 0 18px 40px rgba(29,63,245,.28);

  --grad-brand: linear-gradient(135deg, #1d3ff5 0%, #3563ff 45%, #5c8bff 100%);
  --grad-warm:  linear-gradient(135deg, #ffb020 0%, #ffc451 100%);
  --grad-hero:  linear-gradient(125deg, #0b1120 0%, #17255c 55%, #1d3ff5 130%);

  --container: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(.22,1,.36,1);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

[data-theme="dark"] {
  --bg:        #080c16;
  --bg-soft:   #0d1320;
  --surface:   #111827;
  --surface-2: #161f31;
  --border:    #1f2b40;
  --text:      #e6ecf7;
  --text-muted:#93a2b8;
  --heading:   #ffffff;
  --ink-50:  #131c2c;
  --ink-100: #1a2537;
  --ink-200: #253145;
  --shadow:    0 10px 30px rgba(0,0,0,.45);
  --shadow-md: 0 18px 45px rgba(0,0,0,.5);
  --shadow-lg: 0 30px 70px rgba(0,0,0,.6);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-700); }
ul, ol { padding-left: 1.1rem; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1,h2,h3,h4,h5 { color: var(--heading); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.1vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p  { color: var(--text-muted); }

::selection { background: var(--brand-500); color: #fff; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--ink-200); border-radius: 20px; border: 2px solid var(--bg-soft); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-300); }

/* ---------- Layout ---------- */
.container { width: min(100% - 2.4rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-sm { padding: clamp(2rem, 4vw, 3rem) 0; }
.section-alt { background: var(--bg-soft); }
.grid { display: grid; gap: 1.5rem; }
.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.wrap { flex-wrap: wrap; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; } .gap-4 { gap: 2rem; }
.text-center { text-align: center; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}
.hidden { display: none !important; }
.d-none-sm { display: none; }
@media (min-width: 981px) { .d-none-sm { display: inline-flex; } }
.w-full { width: 100%; }
.ml-auto { margin-left: auto; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Section heading ---------- */
.sec-head { max-width: 640px; margin: 0 auto clamp(2rem,4vw,3rem); text-align: center; }
.sec-head.left { margin-inline: 0; text-align: left; }
.sec-head p { margin-top: .75rem; font-size: 1.02rem; }
.sec-head.between { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; text-align: left; flex-wrap: wrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--brand-50); color: var(--brand-600);
  padding: .35rem .9rem; border-radius: var(--radius-full);
  font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: .85rem;
}
[data-theme="dark"] .eyebrow { background: rgba(53,99,255,.15); color: var(--brand-300); }
.eyebrow.accent { background: var(--warning-soft); color: var(--accent-600); }
[data-theme="dark"] .eyebrow.accent { background: rgba(255,176,32,.15); color: var(--accent-400); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand-600);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .78rem 1.5rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent; border-radius: var(--radius-full);
  font-weight: 700; font-size: .93rem; letter-spacing: -.01em;
  white-space: nowrap; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s, opacity .2s;
  box-shadow: 0 6px 18px rgba(29,63,245,.22);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(29,63,245,.32); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn.is-loading { opacity: .65; pointer-events: none; }
.btn-sm { padding: .5rem 1.05rem; font-size: .84rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-accent { --btn-bg: var(--grad-warm); --btn-fg: #3a2400; box-shadow: 0 10px 26px rgba(255,176,32,.35); }
.btn-accent:hover { box-shadow: 0 16px 34px rgba(255,176,32,.45); }
.btn-dark { --btn-bg: var(--ink-900); box-shadow: 0 8px 20px rgba(11,17,32,.25); }
.btn-success { --btn-bg: var(--success); box-shadow: 0 8px 20px rgba(18,169,92,.25); }
.btn-danger { --btn-bg: var(--danger); box-shadow: 0 8px 20px rgba(229,72,77,.25); }
.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--text);
  border-color: var(--border); box-shadow: none;
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--ink-200); color: var(--text); box-shadow: var(--shadow-sm); }
.btn-soft { --btn-bg: var(--brand-50); --btn-fg: var(--brand-700); box-shadow: none; }
[data-theme="dark"] .btn-soft { --btn-bg: rgba(53,99,255,.15); --btn-fg: var(--brand-300); }
.btn-link { --btn-bg: transparent; box-shadow: none; padding: .4rem .2rem; color: var(--brand-600); }
.btn-link:hover { transform: none; box-shadow: none; text-decoration: underline; }
.btn-icon { padding: .6rem; width: 40px; height: 40px; border-radius: var(--radius-full); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .25s;
}
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--brand-200); }
.card-pad-lg { padding: 2rem; }
.card-flat { box-shadow: none; }
.card-glass {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ---------- Badges / pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .28rem .7rem; border-radius: var(--radius-full);
  font-size: .74rem; font-weight: 700; letter-spacing: .01em;
  background: var(--ink-50); color: var(--ink-600);
}
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-danger  { background: var(--danger-soft);  color: var(--danger); }
.badge-warning { background: var(--warning-soft); color: var(--accent-600); }
.badge-info    { background: var(--info-soft);    color: #0284c7; }
.badge-primary { background: var(--brand-50);      color: var(--brand-600); }
.badge-muted   { background: var(--ink-50);        color: var(--ink-400); }
[data-theme="dark"] .badge-success{background:rgba(18,169,92,.16);color:#4ade80}
[data-theme="dark"] .badge-danger {background:rgba(229,72,77,.16);color:#fca5a5}
[data-theme="dark"] .badge-warning{background:rgba(255,176,32,.16);color:#fcd34d}
[data-theme="dark"] .badge-info   {background:rgba(14,165,233,.16);color:#7dd3fc}
[data-theme="dark"] .badge-primary{background:rgba(53,99,255,.16);color:var(--brand-300)}
[data-theme="dark"] .badge-muted  {background:var(--ink-100);color:var(--ink-300)}

.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .48rem 1rem; border-radius: var(--radius-full);
  border: 1px solid var(--border); background: var(--surface);
  font-size: .87rem; font-weight: 600; color: var(--text-muted);
  cursor: pointer; transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--brand-300); color: var(--brand-600); }
.chip.active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; box-shadow: 0 6px 16px rgba(29,63,245,.25); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1.15rem; }
.label { display: block; font-size: .86rem; font-weight: 700; color: var(--text); margin-bottom: .4rem; }
.label .req { color: var(--danger); }
.input, .select, .textarea {
  width: 100%;
  padding: .82rem 1rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .94rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-300); }
.input:focus, .select:focus, .textarea:focus {
  outline: 0; border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(53,99,255,.14);
}
.textarea { min-height: 130px; resize: vertical; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px;
  padding-right: 2.6rem;
}
.input-group { position: relative; }
.input-group .input { padding-left: 2.9rem; }
.input-group .ig-icon {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--ink-400); font-size: .95rem; pointer-events: none;
}
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(229,72,77,.12); }
.error-text { color: var(--danger); font-size: .8rem; margin-top: .35rem; display: none; font-weight: 600; }
.error-text.show { display: block; }
.hint { color: var(--text-muted); font-size: .8rem; margin-top: .3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }

.input-icon-wrap { position: relative; }
.input-icon-wrap .toggle-pass {
  position: absolute; right: .55rem; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--ink-400); border-radius: 8px;
  min-width: 40px; min-height: 40px; display: grid; place-items: center;
}
.input-icon-wrap .toggle-pass:hover { color: var(--brand-600); background: var(--ink-50); }

.checkbox { display: flex; align-items: flex-start; gap: .6rem; cursor: pointer; font-size: .89rem; color: var(--text-muted); }
.checkbox input { width: 18px; height: 18px; accent-color: var(--brand-600); margin-top: .15rem; flex-shrink: 0; }

.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card .rc-body {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: .95rem 1rem; cursor: pointer; transition: all .2s var(--ease);
  display: flex; align-items: center; gap: .75rem; background: var(--surface);
}
.radio-card input:checked + .rc-body { border-color: var(--brand-500); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(53,99,255,.12); }
[data-theme="dark"] .radio-card input:checked + .rc-body { background: rgba(53,99,255,.12); }
.radio-card input:focus-visible + .rc-body { border-color: var(--brand-500); }

/* ---------- Alerts / flash ---------- */
.alert {
  display: flex; align-items: flex-start; gap: .8rem;
  padding: .95rem 1.15rem; border-radius: var(--radius);
  border: 1px solid transparent; font-size: .91rem; font-weight: 500;
  margin-bottom: 1rem;
}
.alert i { font-size: 1.05rem; margin-top: 2px; }
.alert-success { background: var(--success-soft); color: #0b6b3c; border-color: rgba(18,169,92,.25); }
.alert-danger  { background: var(--danger-soft);  color: #9c1c20; border-color: rgba(229,72,77,.25); }
.alert-warning { background: var(--warning-soft); color: #8a5200; border-color: rgba(245,165,36,.3); }
.alert-info    { background: var(--info-soft);    color: #075985; border-color: rgba(14,165,233,.25); }
[data-theme="dark"] .alert-success{color:#6ee7b7}
[data-theme="dark"] .alert-danger {color:#fca5a5}
[data-theme="dark"] .alert-warning{color:#fcd34d}
[data-theme="dark"] .alert-info   {color:#7dd3fc}

/* ---------- Toast ---------- */
#toastRoot { position: fixed; top: 90px; right: 1.2rem; z-index: 4000; display: flex; flex-direction: column; gap: .7rem; max-width: 380px; }
.toast {
  display: flex; align-items: flex-start; gap: .8rem;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--brand-500);
  border-radius: var(--radius); padding: .9rem 1.1rem;
  box-shadow: var(--shadow-md); animation: toastIn .35s var(--ease);
  font-size: .9rem; font-weight: 500;
}
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast i { font-size: 1.05rem; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast.warning i { color: var(--warning); }
.toast.hide { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn  { from{opacity:0;transform:translateX(40px) scale(.96)} to{opacity:1;transform:none} }
@keyframes toastOut { to{opacity:0;transform:translateX(40px) scale(.96)} }

/* ---------- Header ---------- */
.topbar { background: var(--ink-900); color: #cbd5e1; font-size: .8rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.topbar a { color: #e2e8f0; }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 1.2rem; align-items: center; }
.topbar .tb-left { display: flex; align-items: center; gap: 1.4rem; }
.topbar .tb-left i { vertical-align: middle; }

.site-header {
  position: sticky; top: 0; z-index: 900;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; gap: 1.2rem; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 900; font-size: 1.32rem; color: var(--heading); letter-spacing: -.03em; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px; background: var(--grad-brand);
  display: grid; place-items: center; color: #fff; font-size: 1.15rem;
  box-shadow: var(--shadow-brand); flex-shrink: 0;
}
.logo span em { font-style: normal; color: var(--brand-500); }

.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  padding: .55rem .9rem; border-radius: var(--radius-full);
  font-weight: 600; font-size: .93rem; color: var(--text-muted);
  transition: all .2s var(--ease);
}
.nav-links a:hover { color: var(--brand-600); background: var(--brand-50); }
[data-theme="dark"] .nav-links a:hover { background: rgba(53,99,255,.13); }
.nav-links a.active { color: var(--brand-600); background: var(--brand-50); }
[data-theme="dark"] .nav-links a.active { background: rgba(53,99,255,.16); color: var(--brand-300); }

.nav-actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--radius-full);
  display: grid; place-items: center; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--text);
  transition: all .2s var(--ease);
}
.icon-btn:hover { background: var(--brand-600); color: #fff; border-color: var(--brand-600); transform: translateY(-2px); }

.avatar-btn { display: flex; align-items: center; gap: .55rem; padding: .3rem .85rem .3rem .3rem; border-radius: var(--radius-full); background: var(--surface-2); border: 1px solid var(--border); font-weight: 700; font-size: .88rem; color: var(--text); }
.avatar-btn:hover { border-color: var(--brand-300); color: var(--brand-600); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad-brand); color: #fff;
  display: grid; place-items: center; font-size: .78rem; font-weight: 800; flex-shrink: 0;
}
.avatar-lg { width: 68px; height: 68px; font-size: 1.5rem; }
.avatar-xl { width: 96px; height: 96px; font-size: 2.1rem; border: 4px solid var(--surface); box-shadow: var(--shadow); }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + .6rem); min-width: 220px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: .5rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .22s var(--ease); z-index: 100;
}
.dropdown:hover .dropdown-menu, .dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a, .dropdown-menu .dd-head {
  display: flex; align-items: center; gap: .65rem;
  padding: .6rem .8rem; border-radius: var(--radius-sm);
  color: var(--text); font-size: .9rem; font-weight: 600;
}
.dropdown-menu a:hover { background: var(--surface-2); color: var(--brand-600); }
.dropdown-menu .dd-head { flex-direction: column; align-items: flex-start; gap: .1rem; border-bottom: 1px solid var(--border); border-radius: 0; margin-bottom: .35rem; padding-bottom: .7rem; }
.dropdown-menu .dd-head strong { font-size: .92rem; }
.dropdown-menu .dd-head span { font-size: .78rem; color: var(--text-muted); font-weight: 500; }
.dropdown-menu .danger { color: var(--danger); }
.dropdown-menu .danger:hover { background: var(--danger-soft); color: var(--danger); }
.dropdown-divider { height: 1px; background: var(--border); margin: .35rem 0; }

.nav-toggle { display: none; }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(6,10,20,.55); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: all .3s var(--ease);
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(88vw, 350px);
  background: var(--bg); box-shadow: var(--shadow-lg);
  padding: 1.3rem; overflow-y: auto;
  transform: translateX(100%); transition: transform .35s var(--ease);
  display: flex; flex-direction: column;
}
.mobile-nav.open .mobile-nav-panel { transform: none; }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.mobile-nav-links { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-direction: column; gap: .2rem; }
.mobile-nav-links a { display: flex; align-items: center; gap: .8rem; padding: .8rem .9rem; border-radius: var(--radius); font-weight: 600; color: var(--text); }
.mobile-nav-links a.active { background: var(--brand-50); color: var(--brand-600); }
[data-theme="dark"] .mobile-nav-links a.active { background: rgba(53,99,255,.16); }
.mobile-nav-links a i { width: 20px; text-align: center; color: var(--ink-400); }
.mobile-nav-links a.active i { color: var(--brand-600); }
.mobile-contact { margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--border); display: grid; gap: .7rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--grad-hero); color: #fff; padding: clamp(3rem,7vw,5.5rem) 0 clamp(3.5rem,8vw,6rem); }
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none;
}
.hero::before { width: 480px; height: 480px; background: #3563ff; top: -180px; right: -100px; }
.hero::after  { width: 380px; height: 380px; background: #ffb020; bottom: -200px; left: -120px; opacity: .32; }
.hero-grid-bg {
  position: absolute; inset: 0; opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 52px 52px; mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 78%);
}
.hero > .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero h1 .hl {
  background: var(--grad-warm); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-lead { color: rgba(255,255,255,.82); font-size: 1.08rem; max-width: 540px; margin-bottom: 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.2rem; }
.hero-stats { display: flex; gap: clamp(1.2rem,4vw,2.6rem); flex-wrap: wrap; }
.hero-stats .hs-num { font-size: clamp(1.5rem,3vw,2.1rem); font-weight: 900; color: #fff; line-height: 1; letter-spacing: -.03em; }
.hero-stats .hs-label { font-size: .8rem; color: rgba(255,255,255,.65); margin-top: .3rem; }
.hero-trust { display: flex; align-items: center; gap: .6rem; margin-top: 1.8rem; font-size: .85rem; color: rgba(255,255,255,.7); }
.hero-trust .face-stack { display: flex; }
.hero-trust .face-stack span { width: 30px; height: 30px; border-radius: 50%; background: var(--grad-brand); border: 2px solid #16204a; display: grid; place-items: center; font-size: .68rem; font-weight: 800; margin-left: -10px; color:#fff; }
.hero-trust .face-stack span:first-child { margin-left: 0; }

.hero-visual { position: relative; }
.hero-card-main {
  border-radius: var(--radius-xl); overflow: hidden; position: relative;
  box-shadow: 0 40px 80px rgba(0,0,0,.45); aspect-ratio: 4/4.4;
  background: linear-gradient(160deg, #1c2b8d, #0b1120);
}
.hero-card-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-main .hcm-overlay { position: absolute; inset: auto 0 0 0; padding: 1.4rem; background: linear-gradient(transparent, rgba(4,8,20,.9)); }
.hero-card-main .hcm-overlay h4 { color: #fff; font-size: 1.05rem; }
.hero-card-main .hcm-overlay p { color: rgba(255,255,255,.7); font-size: .85rem; }

.float-card {
  position: absolute; background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: .95rem 1.1rem; display: flex; align-items: center; gap: .75rem;
  animation: floaty 5s ease-in-out infinite;
}
.float-card .fc-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); font-size: 1.05rem; }
.float-card .fc-icon.green { background: var(--success-soft); color: var(--success); }
.float-card .fc-icon.amber { background: var(--warning-soft); color: var(--accent-600); }
.float-card strong { display: block; font-size: .92rem; color: var(--heading); }
.float-card span { font-size: .76rem; color: var(--text-muted); }
.fc-1 { top: 8%; left: -6%; }
.fc-2 { bottom: 12%; right: -5%; animation-delay: -2.5s; }
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }

/* ---------- Booking search widget ---------- */
.search-wrap { margin-top: -3.2rem; position: relative; z-index: 20; }
.search-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  padding: 1.1rem; display: grid;
  grid-template-columns: repeat(4, 1fr) auto; gap: .9rem; align-items: end;
}
.search-field label { display: block; font-size: .76rem; font-weight: 700; color: var(--text-muted); margin-bottom: .35rem; text-transform: uppercase; letter-spacing: .04em; }
.search-field .input, .search-field .select { padding: .7rem .95rem; font-size: .9rem; border-radius: var(--radius); }
.search-field .select { padding-right: 2.4rem; }
.search-box .btn { height: 47px; border-radius: var(--radius); padding-inline: 1.7rem; }

.tab-switch { display: flex; gap: .4rem; background: var(--surface-2); padding: .3rem; border-radius: var(--radius-full); width: fit-content; margin-bottom: 1.2rem; }
.tab-switch button {
  border: 0; background: transparent; padding: .5rem 1.15rem; border-radius: var(--radius-full);
  font-weight: 700; font-size: .86rem; color: var(--text-muted); transition: all .2s var(--ease);
  display: flex; align-items: center; gap: .45rem;
}
.tab-switch button.active { background: var(--surface); color: var(--brand-600); box-shadow: var(--shadow-sm); }

/* ---------- Service cards ---------- */
.svc-card { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.svc-card .svc-icon {
  width: 58px; height: 58px; border-radius: var(--radius); display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-600); font-size: 1.45rem; margin-bottom: 1.1rem;
  transition: all .3s var(--ease);
}
.svc-card:hover .svc-icon { background: var(--grad-brand); color: #fff; transform: rotate(-6deg) scale(1.06); }
[data-theme="dark"] .svc-icon { background: rgba(53,99,255,.15); }
.svc-card h3 { margin-bottom: .5rem; }
.svc-card p { font-size: .9rem; flex-grow: 1; }
.svc-price { display: flex; align-items: baseline; gap: .35rem; margin: 1.1rem 0 1rem; }
.svc-price .amt { font-size: 1.55rem; font-weight: 900; color: var(--heading); letter-spacing: -.03em; }
.svc-price .unit { font-size: .82rem; color: var(--text-muted); }
.svc-feats { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .45rem; }
.svc-feats li { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--text-muted); }
.svc-feats i { color: var(--success); font-size: .8rem; }
.svc-popular {
  position: absolute; top: 1.1rem; right: 1.1rem;
  background: var(--grad-warm); color: #3a2400; padding: .25rem .7rem;
  border-radius: var(--radius-full); font-size: .75rem; font-weight: 800; letter-spacing: .03em;
}
.svc-card::after {
  content: ''; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px;
  border-radius: 50%; background: var(--brand-50); opacity: 0; transition: opacity .35s; z-index: 0;
}
.svc-card > * { position: relative; z-index: 1; }
.svc-card:hover::after { opacity: 1; }
[data-theme="dark"] .svc-card::after { background: rgba(53,99,255,.07); }

/* ---------- Driver cards ---------- */
.driver-card { overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.driver-card .dc-top { position: relative; padding: 1.5rem 1.5rem 0; }
.driver-card .dc-photo {
  width: 92px; height: 92px; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--surface); box-shadow: var(--shadow-md); background: var(--surface-2);
}
.dc-verified {
  position: absolute; left: 78px; bottom: 4px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--success); color: #fff; display: grid; place-items: center;
  font-size: .7rem; border: 3px solid var(--surface);
}
.dc-status { position: absolute; top: 1.3rem; right: 1.3rem; }
.dc-body { padding: 1.1rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.dc-name { font-size: 1.12rem; font-weight: 800; color: var(--heading); margin-bottom: .15rem; }
.dc-meta { display: flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--text-muted); }
.dc-rating { display: flex; align-items: center; gap: .35rem; margin-top: .55rem; font-size: .85rem; }
.stars { color: var(--accent-500); font-size: .82rem; letter-spacing: 1px; }
.dc-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: .9rem 0 1rem; }
.dc-price-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--border); }
.dc-price .amt { font-size: 1.25rem; font-weight: 900; color: var(--heading); letter-spacing: -.02em; }
.dc-price .unit { font-size: .76rem; color: var(--text-muted); }
.dc-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.dc-actions .btn { flex: 1 1 auto; min-width: 0; }
.dc-actions .btn-block { width: auto; flex: 1 1 auto; }

/* ---------- Steps ---------- */
.step { position: relative; text-align: center; padding: 1.5rem 1rem; }
.step-num {
  width: 66px; height: 66px; margin: 0 auto 1.1rem; border-radius: 50%;
  background: var(--grad-brand); color: #fff; display: grid; place-items: center;
  font-size: 1.4rem; font-weight: 900; box-shadow: var(--shadow-brand); position: relative; z-index: 2;
}
.step h4 { margin-bottom: .45rem; }
.step p { font-size: .9rem; }
.steps-wrap { position: relative; }
.steps-wrap::before {
  content: ''; position: absolute; top: 33px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--brand-200) 0 10px, transparent 10px 20px);
}
[data-theme="dark"] .steps-wrap::before { background: repeating-linear-gradient(90deg, var(--brand-800) 0 10px, transparent 10px 20px); }

/* ---------- Features ---------- */
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature .f-icon {
  width: 50px; height: 50px; border-radius: var(--radius); flex-shrink: 0;
  display: grid; place-items: center; font-size: 1.2rem;
  background: var(--brand-50); color: var(--brand-600);
}
[data-theme="dark"] .f-icon { background: rgba(53,99,255,.15); }
.feature h4 { margin-bottom: .25rem; font-size: 1rem; }
.feature p { font-size: .89rem; }

/* ---------- Testimonials ---------- */
.testi { position: relative; height: 100%; }
.testi .quote {
  position: absolute; top: 1rem; right: 1.4rem; font-size: 3rem;
  color: var(--brand-100); line-height: 1;
}
[data-theme="dark"] .testi .quote { color: rgba(255,255,255,.08); }
.testi .stars { font-size: .9rem; margin-bottom: .9rem; }
.testi p { font-size: .94rem; color: var(--text); font-style: italic; margin-bottom: 1.2rem; }
.testi-user { display: flex; align-items: center; gap: .8rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.testi-user .avatar { width: 44px; height: 44px; font-size: .95rem; }
.testi-user strong { display: block; font-size: .92rem; color: var(--heading); }
.testi-user span { font-size: .78rem; color: var(--text-muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--grad-brand); color: #fff; padding: clamp(2.2rem,5vw,3.4rem); box-shadow: var(--shadow-md); }
.cta-band::before { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,.09); top: -180px; right: -80px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); }
.cta-band > * { position: relative; z-index: 1; }

/* ---------- Page header ---------- */
.page-head { background: var(--grad-hero); color: #fff; padding: clamp(2.2rem,5vw,3.4rem) 0; position: relative; overflow: hidden; }
.page-head::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(92,139,255,.35), transparent 55%); }
.page-head > .container { position: relative; z-index: 1; }
.page-head h1 { color: #fff; font-size: clamp(1.8rem,3.6vw,2.6rem); }
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .84rem; color: rgba(255,255,255,.7); margin-bottom: .7rem; list-style: none; padding: 0; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-right: .5rem; opacity: .55; }

/* ---------- Filter bar ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.filter-bar .input, .filter-bar .select { min-width: 170px; padding: .65rem .95rem; font-size: .88rem; }
.range-wrap { display: flex; align-items: center; gap: .7rem; }
input[type=range] { -webkit-appearance: none; appearance: none; height: 5px; border-radius: 10px; background: var(--ink-100); outline: 0; width: 140px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 19px; height: 19px; border-radius: 50%; background: var(--brand-600); border: 3px solid var(--surface); box-shadow: var(--shadow-sm); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 19px; height: 19px; border-radius: 50%; background: var(--brand-600); border: 3px solid var(--surface); cursor: pointer; }
.filter-sidebar { position: sticky; top: calc(var(--header-h) + 16px); }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: clamp(2.5rem,6vw,4rem) 1.5rem; }
.empty .em-icon { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 1.2rem; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-300); font-size: 2.1rem; }
.empty h3 { margin-bottom: .5rem; }
.empty p { max-width: 420px; margin: 0 auto 1.4rem; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: .4rem; flex-wrap: wrap; margin-top: 2.5rem; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; padding: 0 .8rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius); border: 1px solid var(--border);
  font-weight: 700; font-size: .9rem; color: var(--text-muted); background: var(--surface);
  transition: all .2s var(--ease);
}
.pagination a:hover { border-color: var(--brand-400); color: var(--brand-600); }
.pagination .active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; box-shadow: 0 6px 16px rgba(29,63,245,.25); }
.pagination .disabled { opacity: .45; pointer-events: none; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; min-width: 720px; }
table.data th {
  text-align: left; padding: .95rem 1.1rem; background: var(--surface-2);
  font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted);
  font-weight: 800; border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.data td { padding: .95rem 1.1rem; border-bottom: 1px solid var(--border); font-size: .9rem; vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background .18s; }
table.data tbody tr:hover { background: var(--surface-2); }
.td-actions { display: flex; gap: .4rem; }

/* ---------- Auth ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1.05fr; min-height: calc(100vh - var(--header-h)); }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: clamp(2rem,5vw,3.5rem) 1.5rem; }
.auth-form-box { width: 100%; max-width: 440px; }
.auth-visual {
  background: var(--grad-hero); color: #fff; padding: clamp(2.5rem,5vw,4rem);
  display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden;
}
.auth-visual::before { content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: rgba(92,139,255,.28); top: -150px; right: -150px; }
.auth-visual > * { position: relative; z-index: 1; }
.auth-visual h2 { color: #fff; margin-bottom: 1rem; }
.auth-visual p { color: rgba(255,255,255,.75); }
.auth-points { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.auth-points li { display: flex; gap: .9rem; align-items: flex-start; color: rgba(255,255,255,.88); }
.auth-points i { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.13); display: grid; place-items: center; flex-shrink: 0; }
.auth-points strong { display: block; color: #fff; font-size: .95rem; }
.auth-points span { font-size: .84rem; color: rgba(255,255,255,.65); }
.demo-hint { background: var(--info-soft); border: 1px dashed rgba(14,165,233,.4); border-radius: var(--radius); padding: .85rem 1rem; font-size: .82rem; color: #075985; }
[data-theme="dark"] .demo-hint { color: #7dd3fc; }
.demo-hint code { background: rgba(0,0,0,.07); padding: .1rem .35rem; border-radius: 5px; font-weight: 700; }
[data-theme="dark"] .demo-hint code { background: rgba(255,255,255,.1); }

/* ---------- Booking page ---------- */
.book-layout { display: grid; grid-template-columns: 1.5fr .95fr; gap: 2rem; align-items: start; }
.book-summary { position: sticky; top: calc(var(--header-h) + 16px); }
.sum-driver { display: flex; align-items: center; gap: .9rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.sum-driver img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .89rem; padding: .4rem 0; }
.sum-row span { color: var(--text-muted); }
.sum-row.total { border-top: 1px dashed var(--border); margin-top: .6rem; padding-top: .8rem; font-size: 1.05rem; font-weight: 800; }
.sum-row.total .lbl { color: var(--heading); }
.sum-row.total .val { color: var(--brand-600); font-size: 1.25rem; font-weight: 900; }

.steps-nav { display: flex; gap: .4rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.steps-nav a {
  flex: 1; min-width: 90px; text-align: center; padding: .7rem .5rem;
  border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border);
  font-size: .8rem; font-weight: 700; color: var(--text-muted);
}
.steps-nav a.active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.steps-nav a.done { background: var(--success-soft); border-color: rgba(18,169,92,.3); color: var(--success); }

/* ---------- Success ---------- */
.success-wrap { text-align: center; max-width: 640px; margin: 0 auto; }
.success-ring {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 1.5rem;
  background: var(--success-soft); color: var(--success); display: grid; place-items: center;
  font-size: 2.6rem; animation: popIn .5s var(--ease);
}
@keyframes popIn { 0%{transform:scale(.4);opacity:0} 60%{transform:scale(1.12)} 100%{transform:scale(1);opacity:1} }
.booking-ref {
  display: inline-flex; align-items: center; gap: .6rem; background: var(--surface-2);
  border: 1px dashed var(--brand-300); border-radius: var(--radius); padding: .7rem 1.2rem;
  font-weight: 800; color: var(--brand-600); letter-spacing: .04em; font-size: 1.02rem;
}

/* ---------- Profile page ---------- */
.profile-head { display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; }
.profile-cover { width: 100%; height: 120px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--grad-hero); }
.profile-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.driver-hero-card { display: grid; grid-template-columns: 260px 1fr; overflow: hidden; }
.dhc-left { padding: 1.5rem; text-align: center; border-right: 1px solid var(--border); }
.dhc-left img { margin: -90px auto 1rem; }
.dhc-right { padding: 1.7rem; }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.4rem; }
.kpi { text-align: center; padding: .9rem .5rem; background: var(--surface-2); border-radius: var(--radius); }
.kpi .k-num { font-size: 1.25rem; font-weight: 900; color: var(--heading); letter-spacing: -.02em; }
.kpi .k-label { font-size: .74rem; color: var(--text-muted); margin-top: .15rem; }

.info-list { display: grid; gap: .85rem; }
.info-list .il { display: flex; align-items: center; gap: .85rem; }
.info-list .il i { width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); color: var(--brand-600); display: grid; place-items: center; flex-shrink: 0; font-size: .9rem; }
.info-list .il small { display: block; font-size: .74rem; color: var(--text-muted); }
.info-list .il strong { font-size: .92rem; color: var(--text); font-weight: 700; }

.review-item { padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.review-item:last-child { border-bottom: 0; }
.review-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; flex-wrap: wrap; }
.review-head .avatar { width: 38px; height: 38px; font-size: .82rem; }
.review-item h5 { font-size: .93rem; }
.review-item p { font-size: .9rem; }

.rating-breakdown { display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap; }
.rb-big { text-align: center; }
.rb-big .num { font-size: 3rem; font-weight: 900; color: var(--heading); line-height: 1; letter-spacing: -.04em; }
.rb-bars { flex: 1; min-width: 220px; display: grid; gap: .4rem; }
.rb-row { display: flex; align-items: center; gap: .6rem; font-size: .8rem; color: var(--text-muted); }
.rb-bar { flex: 1; height: 7px; border-radius: 10px; background: var(--ink-100); overflow: hidden; }
.rb-bar span { display: block; height: 100%; background: var(--grad-warm); border-radius: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: #94a3b8; padding: clamp(3rem,6vw,4.5rem) 0 0; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer h5 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; letter-spacing: 0; }
.site-footer .logo { color: #fff; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-links a { color: #94a3b8; font-size: .89rem; display: inline-flex; align-items: center; gap: .5rem; padding-block: .28rem; }
.footer-links a:hover { color: #fff; transform: translateX(3px); transition: all .2s var(--ease); }
.footer-about p { color: #94a3b8; font-size: .9rem; margin-bottom: 1.3rem; max-width: 340px; }
.socials { display: flex; gap: .5rem; }
.socials a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: #cbd5e1; transition: all .2s var(--ease); }
.socials a:hover { background: var(--brand-600); color: #fff; transform: translateY(-3px); }
.footer-contact { display: grid; gap: .8rem; }
.footer-contact a { padding-block: .18rem; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; font-size: .89rem; list-style: none; }
.footer-contact i { color: var(--brand-400); margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 1.3rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .84rem; }
.footer-bottom .pay { display: flex; gap: .5rem; }
.footer-bottom .pay span { background: rgba(255,255,255,.08); padding: .3rem .6rem; border-radius: 6px; font-size: .75rem; font-weight: 700; color: #cbd5e1; }

/* ---------- Floating actions ---------- */
.fab-group { position: fixed; right: 1.1rem; bottom: 1.2rem; z-index: 800; display: flex; flex-direction: column; gap: .6rem; }
.fab {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  box-shadow: var(--shadow-md); transition: all .25s var(--ease);
}
.fab:hover { transform: translateY(-3px) scale(1.05); }
.fab.wa { background: #25d366; color: #fff; border-color: transparent; }
.fab.wa:hover { background: #1eb457; color: #fff; }
.fab.top { opacity: 0; visibility: hidden; }
.fab.top.show { opacity: 1; visibility: visible; }
#toTop { position: fixed; left: 50%; transform: translateX(-50%); bottom: 1.2rem; z-index: 799; opacity: 0; visibility: hidden; transition: all .3s var(--ease); }
#toTop.show { opacity: 1; visibility: visible; }
#toTop:hover { transform: translateX(-50%) translateY(-3px); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 1.2rem; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6,10,20,.6); backdrop-filter: blur(4px); animation: fadeIn .25s var(--ease); }
.modal-box { position: relative; background: var(--surface); border-radius: var(--radius-lg); width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: modalIn .32s var(--ease); }
.modal-box.lg { max-width: 780px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.modal-head h3 { font-size: 1.15rem; }
.modal-body { padding: 1.5rem; }
.modal-close { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface-2); display: grid; place-items: center; color: var(--text-muted); }
.modal-close:hover { background: var(--danger-soft); color: var(--danger); }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes modalIn { from{opacity:0;transform:translateY(24px) scale(.97)} to{opacity:1;transform:none} }

/* ---------- Admin ---------- */
.admin-shell { display: grid; grid-template-columns: 258px 1fr; min-height: 100vh; }
.sidebar { background: var(--ink-900); color: #94a3b8; padding: 1.3rem 1rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.sidebar .logo { color: #fff; margin-bottom: 1.6rem; padding: 0 .5rem; }
.sidebar .logo-mark { box-shadow: none; }
.side-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: #475569; font-weight: 800; padding: 0 .75rem; margin: 1.1rem 0 .5rem; }
.side-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: .2rem; }
.side-nav a { display: flex; align-items: center; gap: .8rem; padding: .7rem .85rem; border-radius: var(--radius); color: #94a3b8; font-weight: 600; font-size: .9rem; transition: all .2s var(--ease); }
.side-nav a i { width: 20px; text-align: center; }
.side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav a.active { background: var(--grad-brand); color: #fff; box-shadow: 0 6px 16px rgba(29,63,245,.35); }
.side-nav .pill { margin-left: auto; background: rgba(255,255,255,.15); padding: .05rem .45rem; border-radius: 20px; font-size: .75rem; font-weight: 800; }
.side-nav a.active .pill { background: rgba(255,255,255,.25); }
.sidebar-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-foot a { display: flex; align-items: center; gap: .7rem; color: #94a3b8; font-size: .88rem; font-weight: 600; padding: .5rem .6rem; border-radius: var(--radius); }
.sidebar-foot a:hover { background: rgba(255,255,255,.06); color: #fff; }

.admin-main { background: var(--bg-soft); min-width: 0; }
.admin-top { background: var(--surface); border-bottom: 1px solid var(--border); padding: 1rem 1.6rem; display: flex; align-items: center; gap: 1rem; position: sticky; top: 0; z-index: 50; }
.admin-top h1 { font-size: 1.25rem; }
.admin-body { padding: 1.6rem; }
.burger { display: none; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-bottom: 1.6rem; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; display: flex; gap: 1rem; align-items: center; box-shadow: var(--shadow-xs); }
.stat-card .sc-icon { width: 50px; height: 50px; border-radius: var(--radius); display: grid; place-items: center; font-size: 1.25rem; flex-shrink: 0; }
.stat-card .sc-num { font-size: 1.7rem; font-weight: 900; color: var(--heading); line-height: 1.1; letter-spacing: -.03em; }
.stat-card .sc-label { font-size: .8rem; color: var(--text-muted); }
.stat-card .sc-delta { font-size: .74rem; font-weight: 700; margin-top: .2rem; }
.sc-blue { background: var(--brand-50); color: var(--brand-600); }
.sc-green { background: var(--success-soft); color: var(--success); }
.sc-amber { background: var(--warning-soft); color: var(--accent-600); }
.sc-purple { background: #f3e8ff; color: #9333ea; }
[data-theme="dark"] .sc-blue{background:rgba(53,99,255,.15)}
[data-theme="dark"] .sc-green{background:rgba(18,169,92,.15)}
[data-theme="dark"] .sc-amber{background:rgba(255,176,32,.15)}
[data-theme="dark"] .sc-purple{background:rgba(147,51,234,.15)}

.chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem; }
.bar-chart { display: flex; align-items: flex-end; gap: .6rem; height: 180px; padding-top: 1rem; }
.bar-chart .bc-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .4rem; height: 100%; justify-content: flex-end; }
.bar-chart .bc-bar { width: 100%; max-width: 34px; background: var(--grad-brand); border-radius: 7px 7px 3px 3px; min-height: 4px; transition: height .6s var(--ease); position: relative; }
.bar-chart .bc-bar:hover { filter: brightness(1.15); }
.bar-chart .bc-lbl { font-size: .75rem; color: var(--text-muted); }

.list-item { display: flex; align-items: center; gap: .9rem; padding: .85rem 0; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: 0; }
.list-item img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.list-item .li-body { flex: 1; min-width: 0; }
.list-item .li-body strong { display: block; font-size: .89rem; color: var(--heading); }
.list-item .li-body span { font-size: .78rem; color: var(--text-muted); }

.mini-bar { height: 6px; border-radius: 10px; background: var(--ink-100); overflow: hidden; margin-top: .3rem; }
.mini-bar span { display: block; height: 100%; background: var(--grad-brand); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1{transition-delay:.08s}.reveal.d2{transition-delay:.16s}.reveal.d3{transition-delay:.24s}
.reveal.d4{transition-delay:.32s}.reveal.d5{transition-delay:.40s}.reveal.d6{transition-delay:.48s}

/* ---------- Loader ---------- */
.skeleton { background: linear-gradient(90deg, var(--ink-50) 25%, var(--ink-100) 37%, var(--ink-50) 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0%{background-position:100% 50%} 100%{background-position:0 50%} }
.loader-overlay { position: fixed; inset: 0; z-index: 3000; background: rgba(255,255,255,.75); backdrop-filter: blur(3px); display: none; place-items: center; }
.loader-overlay.show { display: grid; }
.spinner { width: 46px; height: 46px; border: 4px solid var(--brand-100); border-top-color: var(--brand-600); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .search-box { grid-template-columns: 1fr 1fr; }
  .search-box .btn { grid-column: span 2; }
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 258px; z-index: 2000; transform: translateX(-100%); transition: transform .3s var(--ease); }
  .sidebar.open { transform: none; }
  .burger { display: grid; }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  #profileGrid, #profileGrid2 { grid-template-columns: 1fr !important; }
  .nav-toggle { display: grid; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .float-card { display: none; }
  .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .book-layout { grid-template-columns: 1fr; }
  .book-summary { position: static; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .driver-hero-card { grid-template-columns: 1fr; }
  .dhc-left { border-right: 0; border-bottom: 1px solid var(--border); }
  .dhc-left img { margin-top: -1.5rem; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .filter-sidebar { position: static; }
  .steps-wrap::before { display: none; }
}

@media (max-width: 720px) {
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .nav { gap: .7rem; }
  .nav-actions { gap: .4rem; }
  .logo { font-size: 1.15rem; }
  .logo-mark { width: 36px; height: 36px; font-size: 1rem; }
  .search-box { grid-template-columns: 1fr; }
  .search-box .btn { grid-column: auto; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .topbar .container { flex-wrap: wrap; justify-content: center; row-gap: .3rem; padding-block: .5rem; }
  .topbar .tb-left { flex-wrap: wrap; justify-content: center; row-gap: .3rem; column-gap: .9rem; }
  .topbar .tb-left > .d-none-sm { display: inline-flex; align-items: center; gap: .35rem; }
  .topbar-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem 1rem; }
  .topbar .socials { gap: .4rem; }
  .topbar .socials a { width: 30px; height: 30px; border-radius: 8px; font-size: .82rem; }
  .site-footer .socials { flex-wrap: wrap; }
  .tab-switch { flex-wrap: wrap; width: 100%; border-radius: var(--radius-lg); }
  .tab-switch .chip { flex: 1 1 auto; text-align: center; }
  .admin-body, .admin-top { padding: 1rem; }
  .card-pad-lg { padding: 1.4rem; }
  .sec-head.between { flex-direction: column; align-items: flex-start; }
  #toTop { left: 1rem; transform: none; }
  #toTop.show { transform: none; }
  #toTop:hover { transform: translateY(-3px); }
  .hero-stats { gap: 1.2rem; }
  .driver-card .dc-top { padding: 1.2rem 1.2rem 0; }
  .dc-body { padding: 1rem 1.2rem 1.2rem; }
  #toastRoot { left: 1rem; right: 1rem; max-width: none; top: 78px; }
}

/* Small phones: drop the header CTA (available in the menu drawer) */
@media (max-width: 560px) {
  .nav-cta { display: none; }
  .topbar .tb-left { gap: .8rem; }
  .btn { padding: .68rem 1.2rem; }
  .btn-sm { padding: .58rem .9rem; }
  .card-pad-lg { padding: 1.2rem; }
  .modal-box { max-height: 92vh; }
  .section { padding: clamp(2.2rem, 6vw, 3rem) 0; }
  .section-sm { padding: clamp(1.6rem, 5vw, 2.2rem) 0; }
}

@media print {
  .site-header, .site-footer, .fab-group, #toTop, .topbar { display: none !important; }
  body { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
