/* ============================================================
   TRAILER TO GO — Design System
   "Find It. Book It. Tow It."
   Automotive / outdoor marketplace styling.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand */
  --ink:        #0E1420;   /* near-black navy */
  --ink-2:      #171F2E;
  --ink-3:      #202B3D;
  --accent:     #FF6A2C;   /* towing orange */
  --accent-600: #E9531A;
  --accent-050: #FFF1EA;
  --go:         #12B76A;   /* available / go green */
  --go-050:     #E7F8F0;
  --warn:       #F5A524;
  --danger:     #E5484D;
  --info:       #3B82F6;

  /* Neutrals */
  --bg:         #F6F7F9;
  --surface:    #FFFFFF;
  --line:       #E6E9EF;
  --line-2:     #EDF0F5;
  --muted:      #6A7484;
  --muted-2:    #98A2B3;
  --text:       #1A2130;

  /* Shape & motion */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.05);
  --shadow:    0 6px 20px rgba(16,24,40,.08);
  --shadow-lg: 0 18px 48px rgba(16,24,40,.14);
  --ring: 0 0 0 4px rgba(255,106,44,.18);
  --ease: cubic-bezier(.4,0,.2,1);

  --maxw: 1180px;
  --nav-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: 'Sora', 'Inter', sans-serif; color: var(--ink); line-height: 1.12; margin: 0 0 .4em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1rem; }
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section-sm { padding: 44px 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Sora'; font-weight: 700; font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: 'Sora'; font-weight: 600; font-size: .95rem;
  padding: 13px 22px; border-radius: var(--pill); border: 1px solid transparent;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(255,106,44,.32); }
.btn-primary:hover { background: var(--accent-600); box-shadow: 0 10px 24px rgba(255,106,44,.4); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: #fff; }
.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-light:hover { box-shadow: var(--shadow); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; }
.btn-sm { padding: 9px 15px; font-size: .85rem; }

/* ---------- Badges & pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .74rem; font-weight: 700; font-family: 'Sora';
  padding: 5px 11px; border-radius: var(--pill); letter-spacing: .01em;
}
.badge-go     { background: var(--go-050); color: #0A7A47; }
.badge-accent { background: var(--accent-050); color: var(--accent-600); }
.badge-ink    { background: #EEF1F6; color: var(--ink); }
.badge-warn   { background: #FEF4E6; color: #B4700A; }
.badge-danger { background: #FDECEC; color: #C22A2E; }
.badge-verified { background: #EAF3FF; color: #1D6FE0; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-go { background: var(--go); } .dot-warn { background: var(--warn); }
.dot-danger { background: var(--danger); } .dot-ink { background: var(--muted-2); }

/* ---------- Top navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Sora'; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #FF9457); color: #fff;
  box-shadow: 0 6px 14px rgba(255,106,44,.35);
}
.brand small { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a {
  padding: 9px 13px; border-radius: 10px; font-weight: 500; font-size: .92rem; color: #3A4353;
  transition: background .15s, color .15s;
}
.nav-links a:hover, .nav-links a.active { background: #F1F3F7; color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; padding: 6px; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 960px) {
  .nav-links, .nav-cta .btn-desktop { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-cta { margin-left: 0; }
}
.mobile-menu {
  display: none; position: fixed; inset: var(--nav-h) 0 0; z-index: 99;
  background: #fff; padding: 22px; overflow-y: auto; flex-direction: column; gap: 6px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 14px 12px; border-radius: 12px; font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid var(--line-2); }
.mobile-menu .btn { margin-top: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 78% -10%, rgba(255,106,44,.18), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(18,183,106,.12), transparent 55%),
    var(--ink);
  color: #fff; padding: 84px 0 96px;
}
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.78); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 26px; }
.hero-badges .badge { background: rgba(255,255,255,.1); color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { order: -1; } }

/* Trailer half-moon (10 trailers: small on the sides → biggest in the middle) */
.trailer-arc { position: relative; width: 100%; max-width: 1120px; margin: 30px auto 0; height: 300px; }
.arc-item { position: absolute; transform: translateX(-50%); filter: drop-shadow(0 10px 14px rgba(0,0,0,.4)); transition: transform .25s var(--ease); }
.arc-item:hover { transform: translateX(-50%) translateY(-6px); }
@media (max-width: 900px){ .trailer-arc { height: 210px; } }
@media (max-width: 560px){ .trailer-arc { height: 148px; margin-top: 20px; } }

/* Trailer fan (semicircle: small on the sides → biggest in the middle) */
.trailer-fan { position: relative; width: 100%; height: 400px; }
.trailer-fan::after { content:''; position:absolute; left:50%; bottom:2%; transform:translateX(-50%); width:78%; height:26px; background:radial-gradient(ellipse at center, rgba(0,0,0,.35), transparent 70%); filter:blur(4px); }
.fan-item { position: absolute; transform: translateX(-50%); border-radius: 14px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.35); border: 2px solid rgba(255,255,255,.14); aspect-ratio: 5/3.4; }
@media (max-width: 900px) { .trailer-fan { height: 300px; } }
@media (max-width: 520px) { .trailer-fan { height: 230px; } }

/* ---------- Search bar ---------- */
.searchbar {
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 10px; display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 8px;
}
.searchbar .field { display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; border-radius: var(--r); }
.searchbar .field + .field { border-left: 1px solid var(--line-2); }
.searchbar label { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.searchbar input, .searchbar select {
  border: none; outline: none; font-family: inherit; font-size: .95rem; font-weight: 600; color: var(--ink);
  background: transparent; padding: 2px 0; width: 100%;
}
.searchbar .btn { align-self: stretch; }
@media (max-width: 760px) {
  .searchbar { grid-template-columns: 1fr 1fr; }
  .searchbar .field + .field { border-left: none; }
  .searchbar .btn { grid-column: 1 / -1; }
}

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2,1fr); } .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: 22px; }

/* Trailer card */
.tcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  display: flex; flex-direction: column;
}
.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tcard-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.tcard-media .thumb { width: 100%; height: 100%; }
.tcard-media .fav {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: none; display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.tcard-media .pin {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(14,20,32,.82); color: #fff; font-size: .78rem; font-weight: 600;
  padding: 5px 11px; border-radius: var(--pill); backdrop-filter: blur(4px);
  display: inline-flex; align-items: center; gap: 5px;
}
.tcard-media .status-tag { position: absolute; top: 12px; left: 12px; }
.tcard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.tcard-type { font-size: .78rem; font-weight: 700; color: var(--accent-600); text-transform: uppercase; letter-spacing: .05em; }
.tcard-title { font-family: 'Sora'; font-weight: 700; font-size: 1.08rem; color: var(--ink); margin: 3px 0 6px; }
.tcard-meta { display: flex; align-items: center; gap: 12px; font-size: .85rem; color: var(--muted); margin-bottom: 12px; flex-wrap: wrap; }
.tcard-meta .rate { color: var(--ink); font-weight: 700; }
.tcard-specs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.spec-chip { font-size: .74rem; background: #F2F4F8; color: #47505F; padding: 4px 9px; border-radius: 8px; font-weight: 600; }
.tcard-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-family: 'Sora'; }
.price b { font-size: 1.35rem; color: var(--ink); font-weight: 800; }
.price span { color: var(--muted); font-size: .85rem; }

/* Category tiles */
.cat-tile {
  position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3;
  border: 1px solid var(--line); background: var(--ink); color: #fff; display: block;
  transition: transform .2s var(--ease);
}
.cat-tile:hover { transform: translateY(-3px); }
.cat-tile .cat-label { position: absolute; left: 16px; bottom: 14px; font-family: 'Sora'; font-weight: 700; font-size: 1.05rem; z-index: 2; }
.cat-tile .cat-count { position: absolute; left: 16px; bottom: -2px; font-size: .8rem; opacity: .8; z-index: 2; }
.cat-tile svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 8px; }
.step .num {
  width: 46px; height: 46px; border-radius: 14px; background: var(--accent-050); color: var(--accent-600);
  display: grid; place-items: center; font-family: 'Sora'; font-weight: 800; font-size: 1.2rem; margin-bottom: 14px;
}

/* Feature */
.feature-ic { width: 48px; height: 48px; border-radius: 14px; background: #EEF1F6; display: grid; place-items: center; margin-bottom: 14px; }
.feature-ic svg { width: 24px; height: 24px; color: var(--accent); }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat b { font-family: 'Sora'; font-size: 2rem; font-weight: 800; color: var(--ink); display: block; }
.stat span { color: var(--muted); font-size: .9rem; }
@media (max-width: 620px){ .stats { grid-template-columns: repeat(2,1fr);} }

/* ---------- Forms ---------- */
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row label { font-weight: 600; font-size: .88rem; color: var(--ink); }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r);
  font-family: inherit; font-size: .95rem; color: var(--ink); background: #fff; outline: none;
  transition: border .15s, box-shadow .15s;
}
.input:focus { border-color: var(--accent); box-shadow: var(--ring); }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px){ .form-2 { grid-template-columns: 1fr; } }

/* ---------- Filters (search page) ---------- */
.filters { position: sticky; top: calc(var(--nav-h) + 16px); }
.filter-block { border-bottom: 1px solid var(--line-2); padding: 16px 0; }
.filter-block:last-child { border-bottom: none; }
.filter-block h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: .92rem; cursor: pointer; }
.check input { accent-color: var(--accent); width: 17px; height: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 13px; border-radius: var(--pill); border: 1px solid var(--line); background: #fff;
  font-size: .85rem; font-weight: 600; color: #47505F; cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.range-out { font-weight: 700; color: var(--ink); font-family: 'Sora'; }
input[type=range] { width: 100%; accent-color: var(--accent); }

.result-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar-select { padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r); font-weight: 600; background: #fff; }

/* Map */
.map-wrap { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #E8EEF4; position: relative; }
.map-canvas { position: relative; width: 100%; height: 100%; min-height: 340px; }
.map-pin {
  position: absolute; transform: translate(-50%,-100%); cursor: pointer; z-index: 2;
  background: var(--accent); color: #fff; font-family: 'Sora'; font-weight: 700; font-size: .78rem;
  padding: 6px 10px; border-radius: var(--pill); box-shadow: var(--shadow); white-space: nowrap;
}
.map-pin::after { content:''; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%) rotate(45deg); width: 10px; height: 10px; background: var(--accent); }
.map-pin.approx { background: var(--ink); } .map-pin.approx::after { background: var(--ink); }

/* ---------- Detail page ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; border-radius: var(--r-lg); overflow: hidden; }
.gallery .g-main { aspect-ratio: 16/11; }
.gallery .g-side { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; }
.gallery .thumb { width: 100%; height: 100%; }
@media (max-width: 720px){ .gallery { grid-template-columns: 1fr; } .gallery .g-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; } }

.spec-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 2px; background: var(--line-2); border-radius: var(--r); overflow: hidden; }
.spec-grid div { background: #fff; padding: 13px 16px; }
.spec-grid dt { font-size: .8rem; color: var(--muted); }
.spec-grid dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); font-family: 'Sora'; font-size: .98rem; }

.booking-box { position: sticky; top: calc(var(--nav-h) + 16px); }
.price-line { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; color: var(--muted); }
.price-line b { color: var(--ink); font-weight: 600; }
.price-total { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 0; margin-top: 8px; border-top: 2px solid var(--line); font-family: 'Sora'; }
.price-total b { font-size: 1.5rem; color: var(--ink); font-weight: 800; }

/* Licence check banner */
.licence-note { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r); font-size: .9rem; align-items: flex-start; }
.licence-ok  { background: var(--go-050); color: #0A6B40; }
.licence-bad { background: #FDECEC; color: #C22A2E; }
.licence-note svg { flex: none; margin-top: 1px; }

/* Reviews */
.review { padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ink-3); color: #fff; display: grid; place-items: center; font-family: 'Sora'; font-weight: 700; font-size: .95rem; }
.stars { color: var(--accent); letter-spacing: 1px; font-size: .95rem; }

/* Steps / stepper (booking) */
.stepper { display: flex; align-items: center; gap: 0; margin-bottom: 8px; }
.stepper .s { display: flex; align-items: center; gap: 8px; color: var(--muted-2); font-weight: 600; font-size: .85rem; }
.stepper .s .b { width: 26px; height: 26px; border-radius: 50%; background: #EEF1F6; color: var(--muted); display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.stepper .s.on { color: var(--ink); } .stepper .s.on .b { background: var(--accent); color: #fff; }
.stepper .s.done .b { background: var(--go); color: #fff; }
.stepper .bar { flex: 1; height: 2px; background: var(--line); margin: 0 10px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 60px 0 30px; margin-top: 40px; }
.footer h4 { color: #fff; font-size: .92rem; margin-bottom: 14px; }
.footer a { color: rgba(255,255,255,.72); font-size: .92rem; line-height: 2; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-size: .85rem; gap: 16px; flex-wrap: wrap; }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Utility ---------- */
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.wrap { flex-wrap: wrap; }
.mt-8{margin-top:8px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mt-32{margin-top:32px}
.mb-8{margin-bottom:8px}.mb-16{margin-bottom:16px}.mb-24{margin-bottom:24px}.mb-32{margin-bottom:32px}
.hide { display: none !important; }
.pill-tab { display:inline-flex; gap:4px; background:#EEF1F6; padding:4px; border-radius: var(--pill); }
.pill-tab button { border:none; background:transparent; padding:8px 16px; border-radius: var(--pill); font-weight:600; font-size:.88rem; color:var(--muted); }
.pill-tab button.on { background:#fff; color:var(--ink); box-shadow: var(--shadow-sm); }

.notice { background: var(--accent-050); border: 1px solid #FFD8C4; color: #9A4415; padding: 12px 16px; border-radius: var(--r); font-size: .88rem; display:flex; gap:10px; align-items:center; }

/* Split section (marketing) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 820px){ .split { grid-template-columns: 1fr; } }

/* Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ============================================================
   DASHBOARD SHELL
   ============================================================ */
.dash { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.dash-side { background: var(--ink); color: rgba(255,255,255,.72); padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.dash-side .brand { color: #fff; margin: 4px 8px 22px; }
.dash-side .brand span { color: #fff; }
.dash-role { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin: 0 10px 8px; }
.dash-nav a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 11px; color: rgba(255,255,255,.72); font-weight: 500; font-size: .92rem; margin-bottom: 2px; transition: background .15s, color .15s; }
.dash-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.dash-nav a.active { background: var(--accent); color: #fff; }
.dash-nav a svg { width: 18px; height: 18px; flex: none; }
.dash-side .side-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); }
.dash-main { background: var(--bg); min-width: 0; }
.dash-top { background: #fff; border-bottom: 1px solid var(--line); padding: 16px 30px; display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: 0; z-index: 20; }
.dash-body { padding: 28px 30px 60px; }
.dash-title { font-family: 'Sora'; font-weight: 700; font-size: 1.4rem; color: var(--ink); }
.hamb { display: none; background: none; border: none; }
@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: fixed; z-index: 60; width: 248px; left: -260px; transition: left .25s var(--ease); }
  .dash-side.open { left: 0; }
  .hamb { display: block; }
  .dash-body { padding: 20px 16px 50px; }
  .dash-top { padding: 14px 16px; }
}
.dash-scrim { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 55; }
.dash-scrim.open { display: block; }

/* Stat tiles */
.tiles { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
@media (max-width: 1000px){ .tiles { grid-template-columns: repeat(2,1fr); } }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.tile .t-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 12px; }
.tile b { font-family: 'Sora'; font-size: 1.7rem; font-weight: 800; color: var(--ink); display: block; line-height: 1.1; }
.tile span { color: var(--muted); font-size: .86rem; }
.tile .delta { font-size: .78rem; font-weight: 700; }
.up { color: var(--go); } .down { color: var(--danger); }

/* Table */
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line-2); font-size: .9rem; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: auto; }
.mini-thumb { width: 48px; height: 34px; border-radius: 7px; overflow: hidden; flex: none; }

/* Calendar */
.cal { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; }
.cal .dow { font-size: .72rem; font-weight: 700; color: var(--muted); text-align: center; text-transform: uppercase; padding: 4px 0; }
.cal .day { aspect-ratio: 1; border-radius: 9px; border: 1px solid var(--line-2); display: flex; flex-direction: column; padding: 6px; font-size: .8rem; font-weight: 600; color: var(--ink); background: #fff; }
.cal .day.out { opacity: .35; }
.cal .day.booked { background: #FDECEC; border-color: #F6C6C7; color: #C22A2E; }
.cal .day.blocked { background: #EEF1F6; border-color: var(--line); color: var(--muted); }
.cal .day.pending { background: #FEF4E6; border-color: #F7D9A6; color: #B4700A; }
.cal .day .tag { font-size: .62rem; font-weight: 700; margin-top: auto; }
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-top: 14px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }

/* Notifications */
.notif-dot { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.notif-panel { display: none; position: absolute; right: 0; top: calc(100% + 10px); width: 320px; max-height: 400px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); z-index: 50; }
.notif-panel.open { display: block; }
.notif-head { padding: 12px 16px; font-family: 'Sora'; font-weight: 700; border-bottom: 1px solid var(--line-2); font-size: .92rem; }
.notif-item { padding: 12px 16px; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 3px; }
.notif-item:last-child { border-bottom: none; }
.notif-item b { font-weight: 500; font-size: .86rem; color: var(--ink); }
.notif-item span { font-size: .74rem; color: var(--muted-2); }
.notif-item.unread { background: var(--accent-050); }
.notif-item.unread b { font-weight: 600; }

/* Doc card (driver) */
.doc-card { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; }
.doc-ic { width: 40px; height: 40px; border-radius: 10px; background: #EEF1F6; display: grid; place-items: center; flex: none; }

/* Dash section card */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.panel-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h3 { margin: 0; font-size: 1.05rem; }
.panel-body { padding: 20px; }

/* Auth pages */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--nav-h)); }
.auth-visual { background:
  radial-gradient(700px 400px at 30% 20%, rgba(255,106,44,.25), transparent 60%),
  radial-gradient(600px 400px at 80% 90%, rgba(18,183,106,.16), transparent 55%), var(--ink);
  color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: center; }
.auth-form { padding: 56px; display: flex; flex-direction: column; justify-content: center; max-width: 460px; margin: 0 auto; width: 100%; }
@media (max-width: 820px){ .auth-wrap { grid-template-columns: 1fr; } .auth-visual { display: none; } }
.role-pick { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.role-opt { border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px; cursor: pointer; text-align: center; font-weight: 600; font-size: .88rem; transition: all .15s; }
.role-opt.on { border-color: var(--accent); background: var(--accent-050); color: var(--accent-600); }

/* Marketing hero (sub pages) */
.subhero { background: var(--ink); color: #fff; padding: 56px 0; }
.subhero h1 { color: #fff; }
.subhero .lead { color: rgba(255,255,255,.75); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 20px 0; font-family: 'Sora'; font-weight: 600; font-size: 1.05rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s var(--ease); color: var(--muted); }
.faq-a.open { max-height: 320px; padding-bottom: 20px; }
