:root {
  --navy: #0B1F33;
  --navy-2: #122B44;
  --ocean: #0E7490;
  --ocean-2: #155E75;
  --amber: #E8A317;
  --amber-soft: #F6D48A;
  --sand: #F2EBE0;
  --sand-2: #E8DFD2;
  --ink: #101828;
  --muted: #667085;
  --line: rgba(11, 31, 51, 0.1);
  --ok: #15803D;
  --danger: #B42318;
  --card: #FFFFFF;
  --shadow: 0 18px 50px rgba(11, 31, 51, 0.12);
  --radius: 18px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--sand);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }

/* ─── Landing ─── */
.landing { background: var(--navy); color: #fff; position: relative; overflow: clip; }
.landing-hero-bg {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 80% 10%, rgba(14,116,144,.45), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(232,163,23,.18), transparent 50%),
    linear-gradient(165deg, #071421 0%, #0B1F33 45%, #0F3A4A 100%);
}
.landing-hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  pointer-events: none;
}
.landing-inner { position: relative; z-index: 1; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.5rem; max-width: 1180px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 800; letter-spacing: -.02em; font-size: 1.2rem; cursor: pointer; }
.brand-text { font-weight: 900; letter-spacing: -.04em; font-size: 1.15rem; color: #fff; }
.brand-text .and { color: var(--ocean); }
.brand-text .go { color: var(--amber); }
.hero-brand {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 5.2rem);
  letter-spacing: -.04em;
  line-height: .92;
  color: #fff;
  margin: 0 0 .85rem;
  animation: rise .65s ease both;
}
.hero-brand .and { color: #5eead4; font-style: italic; }
.hero-brand .go { color: var(--amber); }
.via-line { margin: .2rem 0 .35rem !important; font-size: .85rem; color: rgba(255,255,255,.55); }
.list-item-light .via-line { color: var(--muted) !important; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 12px; display: block; flex: 0 0 auto;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
  object-fit: cover;
}
.brand-logo.sm { width: 34px; height: 34px; border-radius: 10px; }
.hero-logo-wrap {
  margin: 0 0 1rem;
  animation: rise .65s ease both;
}
.brand-hero-logo {
  width: min(220px, 48vw);
  height: auto;
  border-radius: 28px;
  display: block;
  box-shadow: 0 18px 48px rgba(0,0,0,.35);
}
.auth-brand {
  display: flex;
  justify-content: center;
  margin: 0 0 1rem;
}
.auth-brand .brand-hero-logo {
  width: 148px;
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(0,0,0,.28);
}
.brand-logo.sm { width: 34px; height: 34px; border-radius: 10px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--amber), #fff);
  color: var(--navy); display: grid; place-items: center; font-weight: 900;
}
.topbar-actions { display: flex; gap: .55rem; align-items: center; flex-wrap: wrap; }
.topbar-cta { display: flex; gap: .5rem; align-items: center; }
.lang-switch {
  display: inline-flex; gap: .2rem; padding: .18rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
}
.lang-btn {
  background: transparent; border: none; color: rgba(255,255,255,.7);
  border-radius: 999px; padding: .38rem .65rem; cursor: pointer; font-size: .78rem; font-weight: 700;
}
.lang-btn.active { background: var(--amber); color: var(--navy); }
.lang-btn.arabic { font-family: "Segoe UI", "Noto Naskh Arabic", "Arial", sans-serif; font-size: .82rem; letter-spacing: 0; }
.app-header .lang-btn, .auth-card .lang-btn { border-color: transparent; }
.menu-toggle {
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06);
  color: #fff; font-size: 1.2rem; cursor: pointer;
}
.mobile-drawer {
  display: grid; gap: .65rem; padding: .85rem 1.25rem 1.25rem;
  background: rgba(7,20,33,.94); border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-drawer .lang-switch { width: fit-content; }
.mobile-only { display: none; }
.desktop-only { display: flex; }
@media (max-width: 820px) {
  .mobile-only { display: inline-flex; }
  .desktop-only { display: none !important; }
  .topbar { padding: .85rem 1rem; gap: .5rem; }
  .brand span { font-size: 1.05rem; }
  .hero { padding-top: 1.4rem; min-height: auto !important; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .app-main { padding: 1rem .85rem 6.2rem; }
  .bottom-nav {
    padding: .35rem .15rem calc(.45rem + env(safe-area-inset-bottom));
    grid-template-columns: repeat(5, 1fr);
  }
  .bottom-nav button {
    min-height: 52px; font-size: .62rem; gap: .2rem; padding: .35rem .1rem;
  }
  .bottom-nav .ico { font-size: 1.25rem; }
  .header-user { max-width: 7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .dash-grid .glass-card:last-child { grid-column: 1 / -1; }
  .list-thumb { width: 76px; min-height: 76px; }
  .panel { padding: 1rem; }
  .lang-switch { max-width: 100%; }
}
html[dir="rtl"] .brand, html[dir="rtl"] .row, html[dir="rtl"] .topbar-actions,
html[dir="rtl"] .header-meta, html[dir="rtl"] .meta-row { flex-direction: row-reverse; }
html[dir="rtl"] .hero-lead, html[dir="rtl"] .sub, html[dir="rtl"] p { text-align: right; }
html[dir="rtl"] .bottom-nav button { direction: rtl; }

.hero {
  max-width: 1180px; margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) 1.5rem clamp(3rem, 8vw, 5rem);
  display: grid; gap: 2rem;
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.05fr .95fr; align-items: center; min-height: calc(88vh - 72px); }
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: .95; font-weight: 400; margin: 0 0 1rem;
  letter-spacing: -.02em;
  animation: rise .7s ease both;
}
.hero h1 em { font-style: italic; color: var(--amber-soft); }
.hero-lead {
  font-size: 1.12rem; line-height: 1.6; color: rgba(255,255,255,.78);
  max-width: 34rem; margin: 0 0 1.4rem;
  animation: rise .8s .08s ease both;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: .55rem; margin: 0 0 1.5rem;
  animation: rise .8s .14s ease both;
}
.pill {
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  padding: .4rem .75rem; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.9);
}
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; animation: rise .85s .18s ease both; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border: none; border-radius: 999px; padding: .85rem 1.35rem; font-weight: 700;
  cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--amber); color: var(--navy); box-shadow: 0 10px 30px rgba(232,163,23,.3); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-ocean { background: var(--ocean); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-sm { padding: .5rem .9rem; font-size: .88rem; }

/* Map + truck */
.map-stage {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(circle at 30% 40%, rgba(14,116,144,.35), transparent 45%),
    linear-gradient(160deg, #0A2438 0%, #0C3348 55%, #0B1F33 100%);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  min-height: 340px;
  animation: rise .9s .12s ease both;
}
.map-stage svg { width: 100%; height: auto; display: block; }
.map-caption {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; align-items: end;
}
.map-caption strong { display: block; font-size: .95rem; }
.map-caption span { font-size: .78rem; color: rgba(255,255,255,.7); }
.truck-glow {
  filter: drop-shadow(0 0 10px rgba(232,163,23,.55));
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.section {
  background: var(--sand);
  color: var(--ink);
  padding: clamp(3.2rem, 7vw, 5.8rem) 1.5rem;
}
.section.navy {
  background: linear-gradient(165deg, #071421 0%, #0B1F33 50%, #123A4F 100%);
  color: #fff;
}
.section.navy .sub { color: rgba(255,255,255,.7); }
.section.navy .card-soft {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.12);
  color: #fff;
}
.section.navy .card-soft p { color: rgba(255,255,255,.72); }
.section.navy .card-soft h3 { color: #fff; }
.section-inner { max-width: 1180px; margin: 0 auto; }
.section h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 400; margin: 0 0 .6rem; letter-spacing: -.02em;
}
.section .sub { color: var(--muted); max-width: 40rem; margin: 0 0 2rem; line-height: 1.55; font-size: 1.02rem; }
.eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ocean); margin-bottom: .55rem;
}
.section.navy .eyebrow { color: var(--amber-soft); }

.grid-2 { display: grid; gap: 1rem; }
.grid-3 { display: grid; gap: 1rem; }
.grid-4 { display: grid; gap: 1rem; }
@media (min-width: 800px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.card-soft {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.45rem 1.35rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card-soft:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-soft .num {
  width: 36px; height: 36px; border-radius: 10px; margin-bottom: .85rem;
  background: rgba(14,116,144,.12); color: var(--ocean);
  display: grid; place-items: center; font-weight: 800; font-size: .9rem;
}
.section.navy .card-soft .num { background: rgba(232,163,23,.18); color: var(--amber-soft); }
.card-soft h3 { margin: 0 0 .45rem; font-size: 1.08rem; }
.card-soft p { margin: 0; color: var(--muted); line-height: 1.55; font-size: .95rem; }

.corridor-list { display: grid; gap: .7rem; }
.corridor {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 1.15rem; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
  color: inherit; text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.corridor:hover { border-color: rgba(14,116,144,.4); transform: translateY(-2px); }
.corridor b { font-size: 1rem; }
.corridor span { color: var(--muted); font-size: .88rem; }

.live-band { background: linear-gradient(180deg, #F7F1E8 0%, var(--sand) 100%); }
.live-grid { display: grid; gap: .75rem; margin-top: 1.2rem; }
@media (min-width: 800px) { .live-grid { grid-template-columns: 1fr 1fr; } }
.empty-soft {
  grid-column: 1 / -1; padding: 1.4rem; border-radius: 16px;
  background: rgba(11,31,51,.04); border: 1px dashed var(--line);
  display: flex; gap: .8rem; align-items: center; flex-wrap: wrap;
}
.empty-soft.light { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); color: rgba(255,255,255,.75); }

.list-item { display: grid; grid-template-columns: auto 1fr; gap: .85rem; align-items: stretch; }
.list-item:not(:has(.list-thumb)) { grid-template-columns: 1fr; }
.list-thumb {
  width: 92px; min-height: 92px; border-radius: 12px; overflow: hidden;
  background: rgba(0,0,0,.2);
}
.list-thumb img { width: 100%; height: 100%; object-fit: cover; min-height: 92px; }
.list-body { min-width: 0; }
.list-item-light {
  background: #fff !important; border-color: var(--line) !important; color: var(--ink) !important;
}
.list-item-light h4 { color: var(--ink) !important; }
.list-item-light .route-line { color: var(--navy) !important; }
.list-item-light p, .list-item-light .meta-row { color: var(--muted); }
.section.navy .list-item-light { background: rgba(255,255,255,.06) !important; color: #E8EEF5 !important; border-color: rgba(255,255,255,.12) !important; }
.section.navy .list-item-light h4 { color: #fff !important; }

.photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: .55rem; margin-top: 1rem;
}
.photo-tile {
  display: block; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.12); aspect-ratio: 1;
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }

.types-fieldset {
  border: 1px solid rgba(255,255,255,.12); border-radius: 14px;
  padding: .9rem 1rem; display: grid; gap: .45rem; color: rgba(255,255,255,.8);
}
.types-fieldset legend { padding: 0 .35rem; color: var(--amber-soft); font-weight: 700; font-size: .85rem; }
.types-fieldset label { display: flex; gap: .5rem; align-items: center; font-weight: 600; font-size: .92rem; }
.types-fieldset input { width: auto; }

.tracking-panel .consent-row {
  display: grid; grid-template-columns: auto 1fr; gap: .65rem; align-items: start;
  font-size: .88rem; line-height: 1.45; color: rgba(255,255,255,.78);
}
.tracking-panel .consent-row input { width: auto; margin-top: .2rem; }
.track-map {
  height: 260px; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.2);
}
.track-map-empty {
  height: 100%; display: grid; place-items: center; padding: 1rem;
  color: rgba(255,255,255,.55); font-size: .9rem; text-align: center;
}
.track-timeline { display: grid; gap: .45rem; max-height: 220px; overflow: auto; }
.track-point {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: .45rem; align-items: center;
  padding: .55rem .7rem; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  font-size: .82rem;
}
.track-point small { color: rgba(255,255,255,.5); }
@media (max-width: 640px) {
  .track-point { grid-template-columns: 1fr 1fr; }
  .track-map { height: 220px; }
}

.trust-band {
  background: linear-gradient(120deg, var(--navy) 0%, #16324A 55%, #0E5A6A 100%);
  color: #fff; padding: clamp(2.5rem, 5vw, 3.5rem) 1.5rem;
}
.trust-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; gap: 1.4rem; align-items: center;
}
@media (min-width: 800px) { .trust-inner { grid-template-columns: 1.3fr .7fr; } }
.trust-inner h2 { font-family: var(--display); font-size: clamp(1.9rem, 3vw, 2.5rem); margin: .4rem 0; font-weight: 400; }
.trust-inner p { margin: 0; color: rgba(255,255,255,.78); max-width: 36rem; line-height: 1.55; }
.trust-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px; padding: 1.3rem;
}
.trust-card .row { margin-top: .8rem; }

.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700;
  background: rgba(232,163,23,.18); color: var(--amber);
}
.badge.ok { background: rgba(21,128,61,.12); color: var(--ok); }
.badge.ocean { background: rgba(14,116,144,.12); color: var(--ocean); }
.badge.warn { background: rgba(180,83,9,.14); color: #F6D48A; }
.badge.muted { background: rgba(102,112,133,.12); color: var(--muted); }
.badge.light { background: rgba(255,255,255,.12); color: #fff; }

.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 1rem 1.15rem; margin-bottom: .65rem;
}
.faq summary {
  cursor: pointer; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ocean); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: .75rem 0 0; color: var(--muted); line-height: 1.55; font-size: .95rem; }

.cta-band {
  background: var(--amber);
  color: var(--navy);
  padding: 2.8rem 1.5rem;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 .6rem;
}
.cta-band p { margin: 0 auto 1.3rem; max-width: 34rem; opacity: .85; line-height: 1.5; }

.footer-land {
  background: #071421;
  color: rgba(255,255,255,.68);
  padding: 3.2rem 1.5rem 1.6rem;
  font-size: .9rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-grid {
  max-width: 1180px; margin: 0 auto 1.75rem;
  display: grid; gap: 1.75rem;
}
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-grid h4 {
  color: #fff; margin: 0 0 .75rem; font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; opacity: .85;
}
.footer-grid a { display: block; color: rgba(255,255,255,.72); margin-bottom: .45rem; font-size: .92rem; }
.footer-grid a:hover { color: #F6D48A; }
.footer-grid p { margin: 0; line-height: 1.55; max-width: 28rem; font-size: .9rem; }
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.08);
}
.footer-bottom { flex-direction: column; align-items: flex-start; gap: .4rem; }
.footer-seo-line { font-size: .78rem; opacity: .62; max-width: 760px; line-height: 1.45; }
.check-legal {
  display: flex; align-items: flex-start; gap: .55rem;
  font-size: .88rem; line-height: 1.4;
}
.check-legal input { margin-top: .2rem; width: auto; flex-shrink: 0; }
.check-legal a { color: var(--amber); text-decoration: underline; }

/* ─── App shell (commercial dark UI) ─── */
.app-shell {
  min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(14,116,144,.22), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(232,163,23,.08), transparent 45%),
    linear-gradient(165deg, #071421 0%, #0B1F33 42%, #122B44 100%);
  color: #E8EEF5;
}
.app-header {
  background: rgba(7, 20, 33, .82);
  backdrop-filter: blur(16px);
  color: #fff;
  padding: .9rem 1.15rem;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.app-header .brand { font-size: 1.05rem; }
.header-meta { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.header-user {
  font-size: .8rem; font-weight: 700; color: var(--amber-soft);
  padding: .3rem .65rem; border-radius: 999px;
  background: rgba(232,163,23,.12); border: 1px solid rgba(232,163,23,.25);
}
.app-main { padding: 1.15rem 1rem 5.8rem; max-width: 1100px; width: 100%; margin: 0 auto; }
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: rgba(7, 20, 33, .92);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255,255,255,.08);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: .4rem .25rem calc(.4rem + env(safe-area-inset-bottom));
  z-index: 30;
}
.bottom-nav button {
  position: relative;
  background: none; border: none; color: rgba(255,255,255,.45);
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  font-size: .68rem; font-weight: 600; padding: .45rem .2rem; cursor: pointer;
}
.bottom-nav button.active { color: var(--amber-soft); }
.bottom-nav .ico { font-size: 1.15rem; line-height: 1; }
.nav-badge {
  position: absolute; top: 2px; right: calc(50% - 18px);
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: #DC2626; color: #fff;
  font-size: .62rem; font-weight: 800; line-height: 16px; text-align: center;
  box-shadow: 0 0 0 2px rgba(7,20,33,.9);
}
.unread-pill {
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: #DC2626; color: #fff;
  font-size: .7rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}
.list-item.has-unread {
  border-color: rgba(220,38,38,.45);
  box-shadow: inset 3px 0 0 #DC2626;
}
.unread-banner {
  width: 100%; display: flex; align-items: center; gap: .65rem;
  margin: 0 0 1rem; padding: .85rem 1rem; text-align: left;
  border-radius: 14px; cursor: pointer;
  background: rgba(220,38,38,.12); border: 1px solid rgba(220,38,38,.35);
  color: #FECACA; font-weight: 700; font-size: .9rem;
}
.unread-dot {
  width: 10px; height: 10px; border-radius: 50%; background: #DC2626;
  box-shadow: 0 0 0 4px rgba(220,38,38,.25);
  flex-shrink: 0;
}

.dash-hero {
  display: grid; gap: 1rem;
  padding: 1.35rem 1.3rem;
  border-radius: 22px;
  margin-bottom: 1rem;
  background:
    linear-gradient(135deg, rgba(14,116,144,.35), rgba(11,31,51,.2)),
    rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
}
.dash-hero.admin-hero {
  background:
    linear-gradient(135deg, rgba(232,163,23,.18), rgba(14,116,144,.25)),
    rgba(255,255,255,.04);
}
.dash-hero h2 { margin: .2rem 0 .35rem; font-size: 1.55rem; color: #fff; }
.dash-hero p { margin: 0; color: rgba(255,255,255,.7); line-height: 1.45; max-width: 36rem; }
.dash-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.eyebrow.light { color: var(--amber-soft); }
.dash-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem;
  margin-bottom: 1.1rem;
}
.glass-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 1rem;
  color: #E8EEF5;
}
.glass-card b { display: block; font-size: 1.4rem; margin-top: .25rem; color: #fff; }
.glass-card .muted, .app-shell .muted { color: rgba(255,255,255,.55); }
.section-label {
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 800; color: var(--amber-soft); margin: 1.15rem 0 .65rem;
}
.carrier-strip { display: grid; gap: .55rem; margin-bottom: 1rem; }
@media (min-width: 720px) {
  .landing-carriers { grid-template-columns: 1fr 1fr; }
}
.carrier-chip {
  display: flex; align-items: center; gap: .75rem; text-align: left;
  width: 100%; cursor: pointer;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: .75rem .9rem; color: inherit;
}
.carrier-chip.light {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(11,31,51,.04);
}
.carrier-chip.light small { color: var(--muted) !important; }
.carrier-chip strong { display: block; font-size: .95rem; }
.carrier-chip small { color: rgba(255,255,255,.55); }
.report-card { border-left: 3px solid var(--amber); }

.prose-block { margin-top: .9rem; display: grid; gap: .45rem; }
.prose-line { margin: 0; line-height: 1.55; color: inherit; opacity: .92; font-size: .95rem; }
.bio-block { margin-top: .85rem; max-width: 36rem; }
.vehicle-box {
  margin-top: 1rem;
  padding: .7rem .85rem;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; gap: .2rem;
  font-size: .92rem;
}
.vehicle-label {
  font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.45); font-weight: 700;
}
.landing .vehicle-box, .section:not(.navy) .vehicle-box {
  background: rgba(11,31,51,.04);
  border-color: var(--line);
}
.landing .vehicle-label, .section:not(.navy) .vehicle-label { color: var(--muted); }

.avail-browse {
  display: grid; gap: 1.1rem; align-items: start;
}
@media (min-width: 900px) {
  .avail-browse {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .9fr);
    gap: 1.25rem;
  }
  .avail-siblings {
    position: sticky; top: 4.5rem;
    max-height: calc(100vh - 5.5rem);
    overflow: auto;
    padding-right: .15rem;
  }
}
.avail-focus-col { display: grid; gap: .75rem; }
.avail-actions { display: grid; gap: .5rem; }
.avail-sibling-list { display: grid; gap: .55rem; }
.avail-card.is-active {
  border-color: rgba(232,163,23,.55) !important;
  box-shadow: 0 0 0 1px rgba(232,163,23,.35);
}
.carrier-chip.compact { padding: .65rem .8rem; }
.avatar {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center; font-weight: 800;
  background: linear-gradient(135deg, var(--ocean), var(--navy));
  color: #fff; border: 1px solid rgba(255,255,255,.15);
}
.avatar.sm { width: 32px; height: 32px; border-radius: 10px; font-size: .85rem; }
.avatar.lg { width: 64px; height: 64px; border-radius: 18px; font-size: 1.4rem; }
.profile-hero {
  display: flex; gap: 1rem; align-items: flex-start;
  background: linear-gradient(135deg, rgba(14,116,144,.25), rgba(255,255,255,.04)) !important;
}
.rating { color: var(--amber-soft); font-weight: 800; }
.route-line { color: rgba(255,255,255,.8) !important; font-weight: 600; margin: .35rem 0 !important; }
.meta-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.admin-card { border-left: 3px solid var(--amber) !important; }

.panel {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 1.15rem;
  margin-bottom: .85rem;
  color: #E8EEF5;
  box-shadow: 0 10px 40px rgba(0,0,0,.12);
}
.panel h2, .panel h3, .panel h4 { margin: 0 0 .65rem; color: #fff; }
.muted { color: var(--muted); }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.space { justify-content: space-between; }
.stack { display: grid; gap: .75rem; }

.app-shell .btn-outline {
  border-color: rgba(255,255,255,.2); color: #fff;
  background: rgba(255,255,255,.04);
}
.app-shell .btn-outline:hover { background: rgba(255,255,255,.08); }
.app-shell input, .app-shell select, .app-shell textarea {
  background: rgba(7,20,33,.55);
  border-color: rgba(255,255,255,.12);
  color: #fff;
}
.app-shell label.field { color: rgba(255,255,255,.55); }
.app-shell .alert {
  background: rgba(232,163,23,.12);
  border-color: rgba(232,163,23,.35);
  color: var(--amber-soft);
}
.app-shell .empty { color: rgba(255,255,255,.5); }

label.field { display: grid; gap: .3rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: .75rem .85rem; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(14,116,144,.35); border-color: var(--ocean);
}
.form-grid { display: grid; gap: .8rem; }
@media (min-width: 700px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }

.list-item {
  display: grid; grid-template-columns: auto 1fr; gap: .85rem; align-items: stretch;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 1rem 1.05rem; margin-bottom: .65rem; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s, background .15s;
  color: #E8EEF5;
}
.list-item:not(:has(.list-thumb)) { grid-template-columns: 1fr; }
.list-item:hover {
  border-color: rgba(14,116,144,.45);
  background: rgba(14,116,144,.12);
  box-shadow: 0 12px 36px rgba(0,0,0,.2);
  transform: translateY(-2px);
}
.list-item h4 { margin: 0 0 .25rem; font-size: 1rem; color: #fff; }
.list-item p { margin: 0; color: rgba(255,255,255,.55); font-size: .88rem; line-height: 1.4; }
.landing .list-item, .section .list-item {
  background: #fff; border-color: var(--line); color: var(--ink);
}
.landing .list-item h4, .section .list-item h4 { color: var(--ink); }

.auth-wrap {
  min-height: 100vh; display: grid; place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 80% 50% at 80% 0%, rgba(14,116,144,.4), transparent 50%),
    linear-gradient(165deg, #071421 0%, #0B1F33 55%, #123A4F 100%);
}
.auth-card {
  width: min(460px, 100%);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.12);
  padding: 1.7rem;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  color: #E8EEF5;
}
.auth-card .brand { color: #fff; }
.auth-card .brand-text { color: #fff; }
.app-header .brand-text { color: #fff; }
.auth-card h1 { margin: .4rem 0 .3rem; font-size: 1.6rem; color: #fff; }
.auth-card .muted { color: rgba(255,255,255,.6); }
.auth-card label.field { color: rgba(255,255,255,.55); }
.auth-card input, .auth-card select {
  background: rgba(7,20,33,.55);
  border-color: rgba(255,255,255,.14);
  color: #fff;
}
.tabs { display: flex; gap: .4rem; margin-bottom: 1rem; }
.tabs button {
  flex: 1; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.75); border-radius: 999px;
  padding: .55rem; font-weight: 700; cursor: pointer;
}
.tabs button.active { background: var(--amber); color: var(--navy); border-color: var(--amber); }

.chat-box {
  display: flex; flex-direction: column; height: calc(100vh - 140px);
  background: rgba(7,20,33,.45);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px; overflow: hidden;
}
.chat-msgs { flex: 1; overflow: auto; padding: 1rem; display: grid; gap: .55rem; align-content: start; }
.bubble {
  max-width: 85%; padding: .7rem .85rem; border-radius: 14px; font-size: .92rem; line-height: 1.4;
}
.bubble.me { margin-left: auto; background: linear-gradient(135deg, var(--ocean), #0B4F63); color: #fff; }
.bubble.them { background: rgba(255,255,255,.08); color: #E8EEF5; }
.bubble.sys { margin: 0 auto; background: rgba(232,163,23,.12); color: var(--amber-soft); font-size: .8rem; max-width: 95%; }
.bubble.flag { background: rgba(180,35,24,.18); color: #FECACA; border: 1px solid rgba(180,35,24,.35); }
.chat-input {
  display: flex; gap: .5rem; padding: .7rem;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.15);
}

.toast {
  position: fixed; bottom: 5.2rem; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; padding: .7rem 1.1rem; border-radius: 999px;
  font-size: .88rem; z-index: 50; box-shadow: var(--shadow);
  animation: rise .25s ease;
}
.alert {
  padding: .75rem .9rem; border-radius: 12px; font-size: .88rem; line-height: 1.4;
  background: #FFF7ED; border: 1px solid rgba(232,163,23,.4); color: #9A3412;
}
.alert.danger { background: #FEF3F2; border-color: rgba(180,35,24,.3); color: var(--danger); }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (min-width: 700px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: linear-gradient(160deg, rgba(14,116,144,.35), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.1);
  color: #fff; border-radius: 16px; padding: .95rem;
}
.stat b { display: block; font-size: 1.3rem; }
.stat span { font-size: .72rem; opacity: .7; letter-spacing: .02em; }

.legal-page {
  max-width: 820px; margin: 0 auto; padding: 2rem 1.2rem 4rem;
  background: var(--sand); min-height: 100vh;
}
.legal-page .legal-top {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem;
}
.legal-page h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 .4rem;
}
.legal-page .legal-intro {
  color: var(--muted); line-height: 1.55; margin: 0 0 1.4rem; max-width: 40rem;
}
.legal-block {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 1.25rem 1.3rem; margin-bottom: .85rem;
}
.legal-block h2 {
  font-size: 1.05rem; margin: 0 0 .55rem; color: var(--navy);
}
.legal-block p, .legal-block li {
  margin: 0 0 .55rem; color: var(--ink); line-height: 1.6; font-size: .95rem;
}
.legal-block ul { margin: 0; padding-left: 1.15rem; }
.legal-block li { margin-bottom: .35rem; }

.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Mobile: pas de zoom involontaire */
html, body {
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}
input, select, textarea { font-size: 16px; } /* iOS: évite le zoom auto */

/* Cartes disponibilité */
.avail-card {
  border-radius: 18px; padding: 1rem 1.05rem; margin-bottom: .75rem; cursor: pointer;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  transition: transform .15s ease, border-color .15s ease;
}
.avail-card.light {
  background: #fff; border-color: var(--line); color: var(--ink);
}
.avail-card:hover { border-color: rgba(232,163,23,.45); transform: translateY(-1px); }
.avail-carrier {
  font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--amber-soft); margin-bottom: .45rem;
}
.avail-card.light .avail-carrier { color: var(--ocean); }
.avail-title { margin: 0 0 .25rem; font-size: 1.05rem; }
.price-chip {
  flex-shrink: 0; min-width: 4.5rem; text-align: center;
  background: #DC2626; color: #fff; font-weight: 800; font-size: .88rem;
  border-radius: 999px; padding: .55rem .75rem; align-self: flex-start;
  box-shadow: 0 8px 18px rgba(220,38,38,.25);
}
.price-chip.sm { font-size: .78rem; padding: .35rem .65rem; min-width: auto; }
.type-row { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.type-pill {
  font-size: .68rem; font-weight: 700; padding: .22rem .55rem; border-radius: 999px;
  background: rgba(232,163,23,.18); color: var(--amber-soft);
}
.type-pill.type-groupage { background: rgba(232,163,23,.22); color: #F6D48A; }
.type-pill.type-demenagement { background: rgba(14,116,144,.22); color: #7DD3E8; }
.type-pill.type-palettes { background: rgba(21,128,61,.18); color: #86EFAC; }
.type-pill.type-vehicle { background: rgba(99,102,241,.2); color: #C7D2FE; }
.type-pill.type-container { background: rgba(244,63,94,.18); color: #FECDD3; }
.avail-card.light .type-pill { color: #9A3412; background: rgba(232,163,23,.15); }
.avail-card.light .type-pill.type-demenagement { color: #155E75; background: rgba(14,116,144,.12); }

.chat-legal {
  font-size: .78rem; line-height: 1.4; margin: 0 0 .65rem;
  padding: .65rem .8rem; border-radius: 12px;
  background: rgba(232,163,23,.08); border: 1px solid rgba(232,163,23,.22);
  color: rgba(255,255,255,.72);
}
.chat-actions { margin-bottom: .65rem; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.chat-folders { flex-wrap: wrap; }
.chat-row {
  grid-template-columns: 1fr !important;
  gap: .55rem !important;
}
.chat-row-main { cursor: pointer; min-width: 0; }
.chat-row-actions {
  display: flex; flex-wrap: wrap; gap: .35rem;
  padding-top: .35rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.chat-act.danger { color: #FCA5A5 !important; border-color: rgba(252,165,165,.35) !important; }
.chat-archive-hint {
  margin: 0 0 .65rem;
  font-size: .85rem;
  padding: .55rem .75rem;
  border-radius: 10px;
  background: rgba(14,116,144,.12);
  border: 1px solid rgba(14,116,144,.28);
}
.photo-kind {
  position: absolute; bottom: 4px; left: 4px; font-size: .65rem; font-weight: 700;
  background: rgba(0,0,0,.55); color: #fff; padding: .1rem .35rem; border-radius: 6px;
}
.photo-tile { position: relative; }

/* Desktop sidebar */
.side-nav { display: none; }
.mobile-only-bar { display: flex; }

@media (min-width: 960px) {
  .app-shell.has-side {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
  }
  .side-nav {
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh;
    padding: 1.25rem 1rem 1.5rem;
    background:
      linear-gradient(180deg, #071421 0%, #0B1F33 55%, #0F2F42 100%);
    border-right: 1px solid rgba(255,255,255,.08);
  }
  .side-brand {
    display: flex; align-items: center; gap: .65rem;
    margin-bottom: 1.5rem; cursor: pointer; padding: .25rem .35rem;
  }
  .side-menu {
    display: flex; flex-direction: column; gap: .3rem; flex: 1;
  }
  .side-menu button {
    display: flex; align-items: center; gap: .7rem;
    width: 100%; text-align: left;
    background: transparent; border: 1px solid transparent;
    color: rgba(255,255,255,.65); border-radius: 12px;
    padding: .75rem .85rem; cursor: pointer; font-weight: 600; font-size: .92rem;
    position: relative;
  }
  .side-menu button .ico { font-size: 1.1rem; width: 1.4rem; text-align: center; }
  .side-menu button:hover { background: rgba(255,255,255,.06); color: #fff; }
  .side-menu button.active {
    background: linear-gradient(135deg, rgba(14,116,144,.35), rgba(232,163,23,.12));
    border-color: rgba(232,163,23,.3); color: #fff;
  }
  .side-sep {
    height: 1px; margin: .65rem .35rem;
    background: rgba(255,255,255,.1);
  }
  .side-menu button.side-alert {
    border-color: rgba(232,163,23,.45);
    color: #F6D48A;
  }
  .side-foot { margin-top: auto; padding-top: 1rem; }
  .verify-home {
    border: 1px solid rgba(232,163,23,.35);
    background: linear-gradient(135deg, rgba(14,116,144,.18), rgba(232,163,23,.1));
  }
  .app-column { min-width: 0; }
  .mobile-only-bar { display: none !important; }
  .bottom-nav { display: none !important; }
  .app-main { padding: 1.6rem 1.8rem 2.5rem; max-width: 980px; }
  .toast { bottom: 2rem; }
}
