/* ===========================================================
   CharterGo – shared stylesheet for all PHP pages
   Base tokens, buttons, header and footer are copied from the
   approved homepage (index.html) so every page matches it.
   =========================================================== */
:root {
  --red: #d10f14;
  --red-dark: #b00a0e;
  --red-soft: #fff1f1;
  --black: #111111;
  --text: #1a1a1a;
  --muted: #5f6470;
  --grey-bg: #eef0f4;
  --card-border: #d9dbe0;
  --white: #ffffff;
  --green: #138a3e;
  --green-soft: #e7f6ec;
  --amber: #b26b00;
  --amber-soft: #fff4dd;
  --blue: #1458b8;
  --blue-soft: #e8f0fc;
  --radius: 10px;
  --heading: "Baloo 2", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--text);
  background: var(--white);
  line-height: 1.45;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.red { color: var(--red); }

/* ---------- Buttons (from homepage) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--body); font-weight: 800; font-size: 1.05rem;
  padding: 11px 20px; border-radius: 8px; border: 2px solid transparent;
  cursor: pointer; transition: background .2s, transform .15s, box-shadow .2s;
  white-space: nowrap; line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); box-shadow: 0 6px 16px rgba(209,15,20,.3); }
.btn-outline { background: var(--white); color: var(--black); border-color: var(--red); }
.btn-outline:hover { background: #fff3f3; }
.btn-white { background: var(--white); color: var(--black); }
.btn-white:hover { box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: #0e6d30; }
.btn-ghost { background: transparent; color: var(--black); border-color: var(--card-border); }
.btn-ghost:hover { border-color: var(--black); }
.btn-pill { border-radius: 999px; }
.btn-lg { font-size: 1.25rem; padding: 14px 34px; }
.btn-sm { font-size: .88rem; padding: 7px 12px; gap: 6px; border-radius: 6px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.link { color: var(--red); font-weight: 700; }
.link:hover { text-decoration: underline; }

/* ===========================================================
   HEADER (from homepage)
   =========================================================== */
.site-header { background: var(--white); border-bottom: 3px solid var(--red); position: sticky; top: 0; z-index: 50; }
.header-inner {
  max-width: 1600px; margin: 0 auto; display: flex; align-items: stretch;
  justify-content: space-between; padding: 0 24px 0 36px; min-height: 96px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.logo-slot { width: 170px; height: 66px; display: block; }
.logo-slot img { width: 100%; height: 100%; object-fit: contain; }
.logo-slot.missing { display: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--heading); font-weight: 800; font-size: 2.9rem; line-height: .9; color: var(--black); letter-spacing: -.5px; }
.brand-tagline { font-style: italic; font-weight: 700; font-size: 1.05rem; margin-top: 4px; }
.main-nav { display: flex; align-items: stretch; gap: 24px; }
.nav-links { display: flex; list-style: none; align-items: stretch; }
.nav-links a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  height: 100%; padding: 0 24px; font-weight: 700; font-size: 1.08rem; color: var(--black); transition: color .2s;
}
.nav-links a i { font-size: 1.45rem; }
.nav-links a:hover { color: var(--red); }
.nav-links a.active { background: var(--red); color: var(--white); border-radius: 6px 6px 0 0; margin-top: 4px; height: calc(100% - 4px); padding: 0 28px; }
.auth-buttons { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.8rem; color: var(--black); cursor: pointer; align-self: center; }
.notif-bell { position: relative; font-size: 1.35rem; padding: 8px; color: var(--black); }
.notif-bell .count {
  position: absolute; top: 0; right: -2px; background: var(--red); color: #fff; font-size: .7rem; font-weight: 800;
  min-width: 18px; height: 18px; border-radius: 9px; display: none; align-items: center; justify-content: center; padding: 0 4px;
}
.notif-bell .count.show { display: flex; }

/* ===========================================================
   FOOTER (from homepage)
   =========================================================== */
.site-footer {
  background: var(--red); color: var(--white); display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; padding: 22px 30px 22px 38px; font-size: 1.1rem; font-weight: 600;
}
.footer-links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.footer-links a:hover { text-decoration: underline; }

/* ===========================================================
   PAGE BANNER + CONTAINERS
   =========================================================== */
.page-banner {
  background: linear-gradient(100deg, #fff 0%, #fff 45%, var(--red-soft) 100%);
  border-bottom: 1px solid var(--card-border); padding: 34px 0 30px;
}
.page-banner h1 { font-family: var(--heading); font-weight: 800; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; }
.page-banner p { font-size: 1.15rem; font-weight: 600; color: var(--muted); margin-top: 6px; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.section { padding: 36px 0 48px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.text-center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
h2.section-title { font-family: var(--heading); font-weight: 800; font-size: 1.9rem; line-height: 1.1; margin-bottom: 14px; }
h3.box-title { font-weight: 800; font-size: 1.2rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
h3.box-title i { color: var(--red); }

/* ---------- Panels ---------- */
.panel { background: var(--white); border: 2px solid var(--card-border); border-radius: var(--radius); padding: 22px; }
.panel + .panel { margin-top: 20px; }
.grid-2 > .panel, .grid-3 > .panel { margin-top: 0; }
.panel-red { background: var(--red); color: #fff; border-color: var(--red); }

/* ---------- Alerts ---------- */
.alert { border-radius: 8px; padding: 13px 16px; font-weight: 700; margin-bottom: 18px; display: flex; gap: 10px; align-items: flex-start; border: 1px solid transparent; }
.alert i { margin-top: 3px; }
.alert-success { background: var(--green-soft); color: var(--green); border-color: #bfe5cb; }
.alert-error { background: var(--red-soft); color: var(--red-dark); border-color: #f5c2c3; }
.alert-info { background: var(--blue-soft); color: var(--blue); border-color: #c5d7f3; }
.alert-warning { background: var(--amber-soft); color: var(--amber); border-color: #f1d9a6; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 800; font-size: .95rem; margin-bottom: 6px; }
.field label .req { color: var(--red); }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 4px; font-weight: 600; }
.input, select.input, textarea.input {
  width: 100%; font-family: var(--body); font-size: 1rem; font-weight: 600; color: var(--text);
  border: 2px solid var(--card-border); border-radius: 8px; padding: 11px 13px; background: #fff; transition: border-color .2s, box-shadow .2s;
}
textarea.input { min-height: 110px; resize: vertical; }
.input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(209,15,20,.12); }
.input-icon { position: relative; }
.input-icon i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon .input { padding-left: 40px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 700; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; align-items: center; }
.field-error { color: var(--red-dark); font-size: .85rem; font-weight: 700; margin-top: 4px; }

/* Toggle switch */
.switch { position: relative; display: inline-block; width: 58px; height: 32px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: #c4c7cf; border-radius: 32px; cursor: pointer; transition: .2s; }
.switch .slider::before { content: ""; position: absolute; width: 24px; height: 24px; left: 4px; top: 4px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + .slider { background: var(--green); }
.switch input:checked + .slider::before { transform: translateX(26px); }
.switch input:disabled + .slider { opacity: .5; cursor: not-allowed; }

/* ---------- Auth pages ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 170px); }
.auth-side {
  background: linear-gradient(160deg, rgba(17,17,17,.82), rgba(176,10,14,.88)), url("../../images/hero.jpg") center/cover, var(--red);
  color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: center;
}
.auth-side h2 { font-family: var(--heading); font-size: 2.6rem; line-height: 1.05; font-weight: 800; }
.auth-side ul { list-style: none; margin-top: 22px; display: grid; gap: 14px; font-weight: 700; font-size: 1.1rem; }
.auth-side li i { width: 28px; }
.auth-main { padding: 48px 56px; display: flex; flex-direction: column; justify-content: center; }
.auth-card { width: 100%; max-width: 560px; margin: 0 auto; }
.auth-card h1 { font-family: var(--heading); font-size: 2.3rem; font-weight: 800; line-height: 1.05; }
.auth-card .lead { color: var(--muted); font-weight: 600; margin: 6px 0 22px; }
.tabs-inline { display: flex; gap: 8px; margin-bottom: 20px; }
.tabs-inline a { flex: 1; text-align: center; padding: 10px; border: 2px solid var(--card-border); border-radius: 8px; font-weight: 800; }
.tabs-inline a.active { border-color: var(--red); background: var(--red-soft); color: var(--red); }

/* ===========================================================
   DASHBOARD LAYOUT
   =========================================================== */
.dash { display: grid; grid-template-columns: 270px 1fr; min-height: calc(100vh - 170px); background: #f7f8fa; }
.dash-side { background: var(--black); color: #e9e9ec; padding: 22px 0; }
.dash-side .who { padding: 0 22px 18px; border-bottom: 1px solid #2a2a2e; margin-bottom: 10px; display: flex; gap: 12px; align-items: center; }
.avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #ddd; flex-shrink: 0; border: 2px solid #fff; }
.avatar-sm { width: 34px; height: 34px; }
.avatar-lg { width: 96px; height: 96px; }
.dash-side .who strong { display: block; color: #fff; font-size: 1.02rem; line-height: 1.2; }
.dash-side .who span { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #ff8b8e; font-weight: 800; }
.dash-menu { list-style: none; }
.dash-menu .group { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: #8d8f98; font-weight: 800; padding: 14px 22px 6px; }
.dash-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 22px; font-weight: 700; color: #e9e9ec; border-left: 4px solid transparent; }
.dash-menu a i { width: 20px; text-align: center; color: #9a9ca5; }
.dash-menu a:hover { background: #1d1d21; color: #fff; }
.dash-menu a.active { background: #232327; border-left-color: var(--red); color: #fff; }
.dash-menu a.active i { color: var(--red); }
.dash-menu .badge-count { margin-left: auto; background: var(--red); color: #fff; border-radius: 10px; font-size: .72rem; padding: 1px 7px; }
.dash-main { padding: 28px 32px 48px; min-width: 0; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.dash-head h1 { font-family: var(--heading); font-weight: 800; font-size: 2.2rem; line-height: 1.05; }
.dash-head p { color: var(--muted); font-weight: 600; }
.dash-toggle { display: none; }

/* Stat cards */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: #fff; border: 2px solid var(--card-border); border-radius: var(--radius); padding: 16px 18px; display: flex; gap: 14px; align-items: center; transition: border-color .2s; }
a.stat:hover { border-color: var(--red); }
.stat .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.stat .num { font-family: var(--heading); font-size: 1.9rem; font-weight: 800; line-height: 1; }
.stat .lbl { font-size: .86rem; font-weight: 700; color: var(--muted); margin-top: 3px; }
.stat.green .ic { background: var(--green-soft); color: var(--green); }
.stat.amber .ic { background: var(--amber-soft); color: var(--amber); }
.stat.blue .ic { background: var(--blue-soft); color: var(--blue); }
.stat.dark .ic { background: #eceef2; color: var(--black); }

/* Tables */
.table-wrap { background: #fff; border: 2px solid var(--card-border); border-radius: var(--radius); overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; padding: 12px 14px; background: #fafbfc; border-bottom: 2px solid var(--card-border); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid #eceef1; vertical-align: middle; font-weight: 600; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #fcfcfd; }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.table .actions form { display: inline; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); font-weight: 700; }
.empty i { font-size: 2.4rem; color: #c9ccd3; display: block; margin-bottom: 10px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; white-space: nowrap; background: #eceef2; color: #3b3f48; }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.red { background: var(--red-soft); color: var(--red-dark); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.badge.dark { background: var(--black); color: #fff; }
.badge.sample { background: #6b3fa0; color: #fff; }
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: currentColor; display: inline-block; }
.badge.green .dot-live { animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* Filter bar */
.filters { display: grid; grid-template-columns: 2fr repeat(4, 1fr) auto; gap: 10px; background: #fff; border: 2px solid var(--card-border); border-radius: var(--radius); padding: 14px; margin-bottom: 22px; }
.filters .input { padding: 10px 12px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs a { padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: .9rem; background: #fff; border: 2px solid var(--card-border); }
.tabs a.active { background: var(--red); border-color: var(--red); color: #fff; }

/* Vehicle cards */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.vcard { background: #fff; border: 2px solid var(--card-border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.vcard:hover { box-shadow: 0 10px 24px rgba(0,0,0,.08); transform: translateY(-3px); }
.vcard .ph { position: relative; height: 185px; background: #f3f4f7; }
.vcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.vcard .ph img.contain { object-fit: contain; padding: 10px; }
.vcard .ph .badge { position: absolute; top: 10px; left: 10px; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.vcard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.vcard h3 { font-weight: 800; font-size: 1.18rem; line-height: 1.15; }
.vcard .cat { color: var(--red); font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.vcard .meta { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 700; color: var(--muted); }
.vcard .driver { display: flex; align-items: center; gap: 10px; padding-top: 8px; border-top: 1px solid #eceef1; margin-top: auto; }
.vcard .driver img { border: 2px solid var(--card-border); }
.vcard .driver strong { font-size: .95rem; }
.vcard .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.vcard .btns .btn { font-size: .9rem; padding: 9px 8px; }

/* Vehicle detail gallery */
.gallery-main { border-radius: var(--radius); overflow: hidden; background: #f3f4f7; height: 420px; border: 2px solid var(--card-border); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.thumbs img { width: 92px; height: 68px; object-fit: cover; border-radius: 6px; border: 2px solid var(--card-border); cursor: pointer; }
.thumbs img.active { border-color: var(--red); }
.detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 10px 14px; font-weight: 700; }
.kv dt { color: var(--muted); }
.kv dd { word-break: break-word; }

/* Photo manager */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.photo-item { border: 2px solid var(--card-border); border-radius: 8px; overflow: hidden; background: #fff; }
.photo-item img { width: 100%; height: 110px; object-fit: cover; }
.photo-item .pa { display: flex; gap: 4px; padding: 6px; flex-wrap: wrap; }
.photo-item.primary { border-color: var(--red); }

/* Availability */
.avail-card { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; background: #fff; border: 2px solid var(--card-border); border-radius: var(--radius); padding: 14px; }
.avail-card + .avail-card { margin-top: 12px; }
.avail-card img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; background: #f3f4f7; }
.avail-card.is-active { border-color: var(--green); }
.countdown { font-family: var(--heading); font-size: 1.5rem; font-weight: 800; color: var(--green); letter-spacing: .02em; }
.avail-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }

/* Messages */
.chat { display: grid; grid-template-columns: 320px 1fr; height: 640px; background: #fff; border: 2px solid var(--card-border); border-radius: var(--radius); overflow: hidden; }
.chat-list { border-right: 2px solid var(--card-border); overflow-y: auto; }
.chat-list a { display: block; padding: 14px 16px; border-bottom: 1px solid #eceef1; }
.chat-list a.active, .chat-list a:hover { background: var(--red-soft); }
.chat-list strong { display: block; }
.chat-list .unread { background: var(--red); color: #fff; border-radius: 10px; font-size: .72rem; padding: 1px 7px; float: right; }
.chat-pane { display: flex; flex-direction: column; min-width: 0; }
.chat-head { padding: 14px 18px; border-bottom: 2px solid var(--card-border); font-weight: 800; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; background: #f7f8fa; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 72%; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--card-border); font-weight: 600; white-space: pre-wrap; word-wrap: break-word; }
.msg.me { align-self: flex-end; background: var(--red); color: #fff; border-color: var(--red); }
.msg .t { display: block; font-size: .72rem; opacity: .7; margin-top: 4px; }
.msg.flagged { outline: 2px dashed var(--amber); }
.chat-form { display: flex; gap: 10px; padding: 12px; border-top: 2px solid var(--card-border); }
.chat-form textarea { min-height: 48px; height: 48px; }

/* Notifications */
.notif { display: flex; gap: 14px; padding: 14px 16px; border-bottom: 1px solid #eceef1; background: #fff; }
.notif.unread { background: #fff8f8; border-left: 4px solid var(--red); }
.notif .ic { width: 38px; height: 38px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Quote compare */
.qcompare { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.qcard { background: #fff; border: 2px solid var(--card-border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.qcard.best { border-color: var(--green); }
.qcard.accepted { border-color: var(--green); background: var(--green-soft); }
.qcard .price { font-family: var(--heading); font-size: 2rem; font-weight: 800; line-height: 1; }
.timeline { list-style: none; border-left: 3px solid var(--card-border); padding-left: 18px; display: grid; gap: 14px; }
.timeline li { position: relative; font-weight: 700; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 4px; width: 13px; height: 13px; border-radius: 50%; background: var(--card-border); }
.timeline li.done::before { background: var(--red); }

/* Pagination */
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--card-border); border-radius: 8px; font-weight: 800; background: #fff; }
.pager .current { background: var(--red); border-color: var(--red); color: #fff; }

/* Content pages */
.prose { font-size: 1.06rem; font-weight: 500; }
.prose h2 { font-family: var(--heading); font-size: 1.6rem; font-weight: 800; margin: 26px 0 8px; }
.prose p, .prose ul { margin-bottom: 12px; }
.prose ul { padding-left: 22px; }
.feature-tile { background: #fff; border: 2px solid var(--card-border); border-radius: var(--radius); padding: 22px; }
.feature-tile i { font-size: 2.2rem; color: var(--red); margin-bottom: 10px; }
.feature-tile h3 { font-weight: 800; font-size: 1.2rem; margin-bottom: 6px; }
.cta-strip { background: var(--red); color: #fff; border-radius: 14px; padding: 28px 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-strip h2 { font-weight: 800; font-size: 1.8rem; }

.chart-box { position: relative; height: 290px; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 1400px) {
  .nav-links a { padding: 0 16px; }
  .nav-links a.active { padding: 0 20px; }
  .brand-name { font-size: 2.5rem; }
  .logo-slot { width: 140px; height: 56px; }
}
@media (max-width: 1180px) {
  .menu-toggle { display: block; }
  .header-inner { flex-wrap: wrap; min-height: 84px; padding: 8px 20px; }
  .main-nav { display: none; width: 100%; flex-direction: column; gap: 14px; padding: 10px 0 16px; }
  .main-nav.open { display: flex; }
  .nav-links { flex-direction: column; }
  .nav-links a, .nav-links a.active { flex-direction: row; justify-content: flex-start; padding: 13px 16px; margin: 0; height: auto; border-radius: 6px; }
  .nav-links a i { font-size: 1.25rem; width: 26px; }
  .filters { grid-template-columns: 1fr 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .dash-side.open { display: block; }
  .dash-toggle { display: inline-flex; margin-bottom: 14px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { padding: 32px 24px; }
  .auth-side h2 { font-size: 1.9rem; }
  .chat { grid-template-columns: 1fr; height: auto; }
  .chat-list { max-height: 220px; border-right: none; border-bottom: 2px solid var(--card-border); }
  .chat-body { height: 420px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .brand-name { font-size: 2rem; }
  .brand-tagline { font-size: .85rem; }
  .logo-slot { width: 96px; height: 42px; }
  .form-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .search { grid-column: 1 / -1; }
  .dash-main { padding: 20px 16px 40px; }
  .auth-main { padding: 28px 16px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .avail-card { grid-template-columns: 72px 1fr; }
  .avail-card img { width: 72px; height: 56px; }
  .avail-right { grid-column: 1 / -1; align-items: stretch; text-align: left; }
  .gallery-main { height: 260px; }
  .site-footer { flex-direction: column; text-align: center; padding: 20px 16px; font-size: 1rem; }
  .container, .container-narrow { padding: 0 16px; }
  .msg { max-width: 88%; }
}
@media (max-width: 460px) {
  .auth-buttons { flex-direction: column; align-items: stretch; }
  .filters { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 12px; gap: 10px; }
  .stat .ic { width: 38px; height: 38px; font-size: 1rem; }
  .stat .num { font-size: 1.5rem; }
}

/* ===========================================================
   HOMEPAGE LOOK – applied to every page
   (photo banners, soft cards, trust strip + red call-to-action)
   Your homepage photo images/hero.jpg is reused as the banner.
   =========================================================== */
:root {
  --shadow-sm: 0 2px 8px rgba(17,17,17,.06);
  --shadow-md: 0 10px 28px rgba(17,17,17,.10);
  --shadow-red: 0 10px 24px rgba(209,15,20,.28);
  --sky: linear-gradient(180deg, #8ec5ef 0%, #dceefa 55%, #9cc58a 75%, #5f6468 100%);
  --radius-lg: 16px;
}
.public-layout main { background: #f6f7f9; }

/* ---------- Photo page banner (like the homepage hero) ---------- */
.page-banner {
  position: relative; overflow: hidden; border-bottom: 4px solid var(--red);
  min-height: clamp(220px, 18vw, 300px); display: flex; align-items: center; padding: 40px 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.88) 38%, rgba(255,255,255,.25) 62%, rgba(255,255,255,0) 78%),
    url("../../images/hero.jpg") right center / cover no-repeat,
    var(--sky);
}
.page-banner .container, .page-banner .container-narrow { position: relative; z-index: 2; width: 100%; }
.page-banner h1 { font-size: clamp(2.4rem, 4.2vw, 4rem); line-height: 1.02; color: var(--black); }
.page-banner p { color: var(--black); font-weight: 700; font-size: clamp(1rem, 1.5vw, 1.3rem); max-width: 640px; margin-top: 12px; }
.page-banner::after {           /* red underline accent under the title area */
  content: ""; position: absolute; left: 0; bottom: 0; width: min(420px, 45%); height: 8px;
  background: linear-gradient(90deg, var(--red), rgba(209,15,20,0));
}

/* ---------- Sections, panels, cards ---------- */
h2.section-title { font-size: 2.1rem; }
h2.section-title::after { content: ""; display: block; width: 70px; height: 5px; border-radius: 3px; background: var(--red); margin-top: 8px; }
.panel, .feature-tile, .qcard, .avail-card, .table-wrap, .filters, .chat, .stat, .vcard, .photo-item, .gallery-main {
  border: 1px solid #e3e5ea; border-radius: 14px; box-shadow: var(--shadow-sm);
}
.panel { padding: 24px; }
.panel-red, .cta-strip { background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%); border: 0; box-shadow: var(--shadow-red); }
.feature-tile { transition: transform .2s, box-shadow .2s; position: relative; overflow: hidden; }
.feature-tile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--red); }
.feature-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-tile i { width: 64px; height: 64px; border-radius: 16px; background: var(--red-soft); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.cta-strip { border-radius: var(--radius-lg); padding: 30px 36px; }
.cta-strip .btn-white { font-size: 1.15rem; padding: 12px 30px; border-radius: 10px; }

/* Vehicle cards – like the homepage service cards */
.vcard { transition: box-shadow .25s, transform .25s; }
.vcard:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.vcard .ph { background: linear-gradient(180deg, #eef5fb 0%, #f6f7f9 100%); }
.vcard .btns .btn { border-radius: 8px; }

/* Filter bar & tabs */
.filters { padding: 16px; background: #fff; }
.tabs a { box-shadow: var(--shadow-sm); border-width: 1px; }
.tabs a.active { box-shadow: var(--shadow-red); }

/* Forms */
.input, select.input, textarea.input { border-width: 1.5px; border-radius: 10px; padding: 12px 14px; }
.input-icon .input { padding-left: 42px; }
.btn-lg { border-radius: 999px; }

/* ---------- Login / register split pages ---------- */
.auth-side {
  position: relative; overflow: hidden;
  background:
    linear-gradient(160deg, rgba(10,12,18,.88) 0%, rgba(10,12,18,.55) 55%, rgba(176,10,14,.55) 100%),
    url("../../images/hero.jpg") center / cover no-repeat,
    linear-gradient(180deg, #2b4a6f 0%, #6d7f99 45%, #d99a6a 70%, #2a2a2e 100%);
}
.auth-side::after {             /* red swoosh, same as the admin login */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -70px; height: 150px;
  background: linear-gradient(90deg, transparent 0%, transparent 35%, var(--red) 75%, var(--red-dark) 100%);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0; transform: rotate(-3deg);
}
.auth-side > * { position: relative; z-index: 1; }
.auth-side h2 { font-size: clamp(2.2rem, 3.6vw, 3.4rem); text-shadow: 0 3px 16px rgba(0,0,0,.35); }
.auth-side h2::after { content: ""; display: block; width: 180px; height: 4px; margin-top: 16px; background: linear-gradient(90deg, var(--red), rgba(209,15,20,0)); }
.auth-side li { display: flex; align-items: center; gap: 12px; }
.auth-side li i { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.14); display: inline-flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.auth-main { background: #f6f7f9; }
.auth-card { background: #fff; border-radius: 18px; padding: 38px 36px; box-shadow: var(--shadow-md); border: 1px solid #e8eaee; }
.auth-card h1::after { content: ""; display: block; width: 60px; height: 5px; border-radius: 3px; background: var(--red); margin-top: 10px; }
.auth-card .btn-red.btn-block { border-radius: 10px; padding: 15px; font-size: 1.2rem; box-shadow: var(--shadow-red); }
.tabs-inline a { border-width: 1.5px; border-radius: 10px; }

/* ---------- Dashboards ---------- */
.dash { background: #f3f4f7; }
.dash-side { background: linear-gradient(180deg, #141418 0%, #0d0d10 100%); }
.dash-menu a { margin: 2px 12px 2px 0; border-radius: 0 10px 10px 0; transition: background .15s, color .15s; }
.dash-menu a.active { background: linear-gradient(90deg, rgba(209,15,20,.28), rgba(209,15,20,.06)); }
.dash-side .who { padding-top: 4px; }
.dash-side .who .avatar { border-color: var(--red); }

/* page heading becomes a photo banner, like the homepage hero */
.dash-head {
  position: relative; overflow: hidden; align-items: center;
  padding: 26px 28px; border-radius: var(--radius-lg); border-bottom: 4px solid var(--red);
  box-shadow: var(--shadow-sm);
  background:
    linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 45%, rgba(255,255,255,.35) 72%, rgba(255,255,255,.05) 100%),
    url("../../images/hero.jpg") right center / cover no-repeat,
    var(--sky);
}
.dash-head h1 { font-size: clamp(1.8rem, 2.6vw, 2.5rem); }
.dash-head p { color: #2b2e35; font-weight: 700; margin-top: 4px; }
.dash-head .btn { box-shadow: var(--shadow-sm); }
.dash-head .btn-red { box-shadow: var(--shadow-red); }

/* stat cards */
.stats { gap: 16px; }
.stat { position: relative; overflow: hidden; padding: 18px; transition: transform .2s, box-shadow .2s; }
.stat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--red); }
.stat.green::before { background: var(--green); } .stat.amber::before { background: var(--amber); }
.stat.blue::before { background: var(--blue); }  .stat.dark::before { background: var(--black); }
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat .ic { width: 52px; height: 52px; border-radius: 14px; font-size: 1.35rem; }
.stat .num { font-size: 2rem; }

/* tables */
.table th { background: #fafafc; border-bottom: 1px solid #e3e5ea; }
.table tr:hover td { background: #fff7f7; }
h3.box-title i { width: 34px; height: 34px; border-radius: 10px; background: var(--red-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }

/* notifications / messages */
.notif { border-radius: 12px; margin-bottom: 8px; border: 1px solid #e8eaee; }
.msg { border-radius: 16px; box-shadow: var(--shadow-sm); }
.msg.me { background: linear-gradient(120deg, var(--red), var(--red-dark)); }

/* ---------- Trust strip + red CTA (copied from the homepage) ---------- */
.features-bar { background: var(--grey-bg); display: grid; grid-template-columns: 1fr auto; align-items: stretch; margin-top: 30px; }
.features { display: flex; align-items: center; justify-content: space-around; padding: 22px 30px; }
.feature { display: flex; align-items: center; gap: 18px; font-weight: 800; font-size: 1.3rem; line-height: 1.1; padding: 0 28px; }
.feature + .feature { border-left: 2px solid #c9ccd3; }
.feature-icon { color: var(--red); font-size: 2.8rem; }
.cta-box { background: var(--red); color: #fff; border-radius: 14px 0 0 14px; display: flex; align-items: center; gap: 48px; padding: 24px 30px 24px 50px; }
.cta-box h2 { font-weight: 800; font-size: 1.95rem; line-height: 1.1; }
.cta-box p { font-size: 1.15rem; font-weight: 600; margin-top: 6px; }
.cta-box .btn-white { font-size: 1.3rem; padding: 12px 34px; border-radius: 10px; }

@media (max-width: 1250px) {
  .cta-box { gap: 28px; padding-left: 34px; }
  .cta-box h2 { font-size: 1.6rem; }
  .feature { font-size: 1.1rem; padding: 0 16px; }
}
@media (max-width: 980px) {
  .features-bar { grid-template-columns: 1fr; }
  .cta-box { border-radius: 0; justify-content: space-between; }
  .page-banner { background:
      linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.85) 60%, rgba(255,255,255,.55) 100%),
      url("../../images/hero.jpg") center / cover no-repeat, var(--sky); }
  .dash-head { background:
      linear-gradient(90deg, rgba(255,255,255,.97), rgba(255,255,255,.8)),
      url("../../images/hero.jpg") center / cover no-repeat, var(--sky); }
  .auth-card { padding: 28px 22px; }
}
@media (max-width: 760px) {
  .features { flex-direction: column; align-items: flex-start; gap: 18px; }
  .feature + .feature { border-left: 0; }
  .cta-box { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 20px; }
  .page-banner { min-height: 180px; padding: 30px 0; }
  .dash-head { padding: 20px 18px; }
  .auth-main { padding: 24px 12px; }
}
h2.section-title.text-center::after, .text-center > h2.section-title::after { margin-left: auto; margin-right: auto; }

/* Phones: stack every 2/3-column layout, even ones with custom column widths */
.grid-2 > *, .grid-3 > * { min-width: 0; }
@media (max-width: 760px) {
  .grid-2, .grid-3, .form-grid { grid-template-columns: 1fr !important; }
  .kv { grid-template-columns: 1fr !important; }
  .filters { grid-template-columns: 1fr 1fr !important; }
  .filters > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 460px) { .filters { grid-template-columns: 1fr !important; } }
@media (max-width: 460px) { .auth-card .btn, .panel .btn { white-space: normal; max-width: 100%; text-align: center; } }
html, body { overflow-x: clip; }
@media (max-width: 460px) { .filters > * { grid-column: 1 / -1 !important; width: 100%; } }

/* Logout link in the dashboard sidebar */
.side-logout button { display: flex; align-items: center; gap: 12px; width: calc(100% - 12px); padding: 10px 22px; margin: 2px 12px 2px 0; background: none; border: 0; border-left: 4px solid transparent; border-radius: 0 10px 10px 0; color: #ff8b8e; font: 700 1rem var(--body); cursor: pointer; text-align: left; }
.side-logout button i { width: 20px; text-align: center; }
.side-logout button:hover { background: rgba(209,15,20,.18); color: #fff; }

/* Profile photo upload */
.photo-upload { display: flex; align-items: center; gap: 18px; padding: 14px; border: 1.5px dashed #d9dbe0; border-radius: 14px; background: #fafbfc; }
.photo-upload .avatar-lg { border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
@media (max-width: 460px) { .photo-upload { flex-direction: column; align-items: flex-start; } }

/* Driver registration – licence and NIN blocks */
.id-block { border: 1.5px solid #e3e5ea; border-radius: 14px; padding: 16px; background: #fafbfc; }
.id-block h3 { font-weight: 800; font-size: 1.05rem; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
.id-block h3 i { color: var(--red); }
.doc-check { display: grid; gap: 10px; }
.doc-check .item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #e3e5ea; border-radius: 12px; background: #fff; }

/* Support zones */
.zone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 18px; }
.zone.paused { opacity: .65; }
.zone-sub { font-weight: 800; font-size: .95rem; margin: 6px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--red-soft); color: var(--red-dark); border-radius: 999px; padding: 3px 10px; font-size: .8rem; font-weight: 800; }
.zone .contact { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #eceef1; border-radius: 10px; margin-bottom: 6px; background: #fff; }
.zone .contact.off { background: #f6f7f9; color: var(--muted); }
.add-contact { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 6px; margin-top: 8px; }
.add-contact .input { padding: 8px 10px; font-size: .9rem; }
.state-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 10px; max-height: 260px; overflow: auto; padding: 10px; border: 1px solid #eceef1; border-radius: 10px; background: #fafbfc; }
@media (max-width: 520px) { .zone-grid { grid-template-columns: 1fr; } .add-contact { grid-template-columns: 1fr; } }

/* Telegram panel */
.tg-panel { border-top: 4px solid #229ED9; }
.tg-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tg-row .input { flex: 1; min-width: 200px; }
.tg-steps { padding-left: 20px; display: grid; gap: 6px; margin-top: 8px; }

/* Chat safety rule */
.chat-rule { background: #fff8e6; border: 1px solid #f3dca6; color: #7a5300; border-radius: 10px; padding: 8px 12px; margin: 4px auto 10px; max-width: 640px; text-align: center; }
.chat-rule i { color: var(--amber); }
.tg-ticks { display: flex; flex-wrap: wrap; gap: 6px 14px; flex: 1; padding: 8px 10px; border: 1px solid #e3e5ea; border-radius: 10px; background: #fafbfc; }
.tg-ticks i { color: #229ED9; }

/* ---------- Loyalty discount ---------- */
.text-green { color: var(--green); font-weight: 700; }
.loyalty-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin-bottom: 18px; border-radius: 14px; border: 1px dashed #f0b4b4; background: linear-gradient(135deg, #fff6f6, #fff); }
.loyalty-card > i { font-size: 1.5rem; color: var(--red); margin-top: 2px; }
.loyalty-card.ready { border: 1px solid #bfe5cb; background: linear-gradient(135deg, var(--green-soft), #fff); }
.loyalty-card.ready > i { color: var(--green); }
.loyalty-dots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.loyalty-dots span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; background: #eef0f3; color: #8a8f98; }
.loyalty-dots span.on { background: var(--red); color: #fff; }
.loyalty-dots span.gift { background: #fff; border: 2px dashed #c9cdd4; }
.loyalty-dots span.gift.on { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Admin dashboard: Quick Controls ---------- */
.quick { background: #fff; border: 1px solid var(--card-border); border-radius: 14px; padding: 18px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.qc-card { border: 1px solid #e3e5ea; border-left: 5px solid var(--green); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.qc-card.off { border-left-color: #a2a7b0; background: #fafbfc; }
.qc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.qc-head strong i { color: var(--red); margin-right: 4px; }
.qc-switch { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; border-radius: 999px; padding: 4px 12px 4px 4px; font-weight: 900; font-size: .8rem; background: var(--green); color: #fff; white-space: nowrap; }
.qc-switch span { width: 22px; height: 22px; border-radius: 50%; background: #fff; display: block; }
.qc-card.off .qc-switch { background: #9aa0aa; flex-direction: row-reverse; padding: 4px 4px 4px 12px; }
.qc-switch:disabled { opacity: .55; cursor: not-allowed; }
.qc-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.qc-form > label:not(.check) { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; flex-wrap: wrap; }
.qc-form .input { width: 70px; padding: 6px 8px; min-height: 0; }
.qc-form .input.wide { width: 100px; }
.qc-form .check { flex-basis: 100%; }
.qc-chips { flex-basis: 100%; }
.qc-chips .chip { border: 1px solid #f3c5c5; cursor: pointer; background: #fff; }
.qc-chips .chip.on { background: var(--red); color: #fff; border-color: var(--red); }
.qc-foot { margin: auto 0 0; }
@media (max-width: 1100px) { .quick-grid { grid-template-columns: 1fr; } }

/* ---------- Automatic payouts ---------- */
.quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qc-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px dashed #e3e5ea; }
.qc-switch.is-off { background: #9aa0aa; flex-direction: row-reverse; padding: 4px 4px 4px 12px; }
.qc-card.on .qc-switch.is-off { background: #9aa0aa; }
[hidden] { display: none !important; }
@media (max-width: 1100px) { .quick-grid { grid-template-columns: 1fr; } }

/* ---------- Driver registration: commission notice ---------- */
.commission-box { border: 2px solid #f0b4b4; background: linear-gradient(135deg, #fff6f6, #fff); border-radius: 14px; padding: 16px 18px; }
.commission-box h3 { margin: 0 0 6px; font-size: 1.05rem; }
.commission-box h3 i { color: var(--red); margin-right: 4px; }
.commission-box p { margin: 0 0 10px; }
.commission-example { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid #ececf0; margin-bottom: 10px; }
.commission-list { margin: 0 0 10px; padding-left: 18px; }
.ref-lines { display: grid; gap: 10px; padding-top: 10px; border-top: 1px dashed #e3e5ea; }

/* ---------------------------------------------------------------- live trip cards (top of every customer/driver page) */
.trip-cards { display: grid; gap: 14px; margin: 0 0 22px; }
.trip-card { --tc: var(--blue); --tc-soft: var(--blue-soft); background: var(--white); border: 2px solid var(--tc); border-left-width: 8px; border-radius: 14px; padding: 18px 20px; box-shadow: 0 6px 22px rgba(17,17,17,.08); }
.trip-card.tc-amber { --tc: var(--amber); --tc-soft: var(--amber-soft); }
.trip-card.tc-green { --tc: var(--green); --tc-soft: var(--green-soft); }
.trip-card.tc-red { --tc: var(--red); --tc-soft: var(--red-soft); }
.trip-card.tc-live { --tc: var(--red); --tc-soft: var(--red-soft); background: linear-gradient(120deg, #fff 60%, var(--red-soft)); }
.tc-top { display: flex; align-items: center; gap: 14px; }
.tc-icon { flex: 0 0 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--tc-soft); color: var(--tc); font-size: 1.4rem; }
.tc-live .tc-icon { animation: tc-drive 1.6s ease-in-out infinite; }
@keyframes tc-drive { 0%,100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
.tc-title { flex: 1; min-width: 0; }
.tc-title strong { display: block; font-family: var(--heading); font-size: 1.35rem; line-height: 1.15; color: var(--black); }
.tc-kicker { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tc); display: flex; align-items: center; gap: 6px; }
.tc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(209,15,20,.6); animation: tc-pulse 1.4s infinite; }
@keyframes tc-pulse { 70% { box-shadow: 0 0 0 9px rgba(209,15,20,0); } 100% { box-shadow: 0 0 0 0 rgba(209,15,20,0); } }
.tc-amount { font-family: var(--heading); font-weight: 800; font-size: 1.3rem; white-space: nowrap; }
.tc-route { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 12px 0 4px; font-weight: 700; }
.tc-route .fa-location-dot { color: var(--green); } .tc-route .fa-flag { color: var(--red); } .tc-arrow { color: var(--muted); }
.tc-meta { flex-basis: 100%; font-weight: 600; font-size: .9rem; color: var(--muted); }
.tc-steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 14px 0; padding: 0; counter-reset: s; }
.tc-steps li { position: relative; text-align: center; font-size: .8rem; font-weight: 700; color: var(--muted); }
.tc-steps li span { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto 4px; border-radius: 50%; background: var(--grey-bg); border: 2px solid var(--card-border); position: relative; z-index: 1; font-size: .85rem; }
.tc-steps li::before { content: ""; position: absolute; top: 14px; left: -50%; width: 100%; height: 3px; background: var(--card-border); }
.tc-steps li:first-child::before { display: none; }
.tc-steps li.done { color: var(--black); } .tc-steps li.done span { background: var(--tc); border-color: var(--tc); color: #fff; } .tc-steps li.done::before { background: var(--tc); }
.tc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tc-actions form { margin: 0; }
.tc-inline { display: flex; gap: 8px; align-items: center; }
.tc-code { width: 92px; text-align: center; font-size: 1.2rem; font-weight: 800; letter-spacing: .3em; }
.tc-code-show { flex-basis: 100%; background: var(--black); color: #fff; border-radius: 10px; padding: 10px 14px; font-weight: 700; }
.tc-code-show strong { font-size: 1.6rem; letter-spacing: .3em; margin-left: 8px; color: #ffd84d; } .tc-code-show span { display: block; font-size: .85rem; opacity: .8; }
.tc-note { flex-basis: 100%; margin: 0; font-size: .92rem; font-weight: 600; color: var(--muted); }
.tc-note strong { color: var(--black); }
.tc-report > summary { list-style: none; cursor: pointer; } .tc-report > summary::-webkit-details-marker { display: none; }
.tc-report[open] { flex-basis: 100%; }
.tc-report-form { display: grid; gap: 8px; margin-top: 8px; max-width: 520px; }
.tc-more { margin-left: auto; font-weight: 700; }
@media (max-width: 640px) {
  .trip-card { padding: 14px; border-left-width: 6px; }
  .tc-top { flex-wrap: wrap; } .tc-amount { flex-basis: 100%; padding-left: 66px; font-size: 1.1rem; }
  .tc-title strong { font-size: 1.12rem; }
  .tc-steps li { font-size: .68rem; } .tc-steps li span { width: 24px; height: 24px; } .tc-steps li::before { top: 11px; }
  .tc-actions .btn-lg { width: 100%; justify-content: center; } .tc-actions form, .tc-inline { width: 100%; } .tc-inline .btn { flex: 1; }
  .tc-more { margin-left: 0; }
}
.tc-complete-wait, .tc-complete-done { flex-basis: 100%; border: 2px dashed var(--amber); background: var(--amber-soft); border-radius: 12px; padding: 12px 14px; }
.tc-complete-done { border-style: solid; border-color: var(--green); background: var(--green-soft); }
.tc-complete-wait p, .tc-complete-done p { margin: 8px 0 0; font-weight: 600; }
.tc-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 2px solid var(--amber); color: var(--amber); font-weight: 800; font-size: 1.02rem; }
.tc-pill.done { border-color: var(--green); background: var(--green); color: #fff; }

/* ---------------------------------------------------------------- notifications: select + delete, lists: remove row */
.notif-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 10px; }
.notif-range { margin-left: auto; }
.notif-row { align-items: center; padding: 10px 12px; }
.notif-check { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--red); }
.notif-link { display: flex; gap: 14px; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.notif-link:hover strong { color: var(--red); }
.notif-del { margin: 0; flex-shrink: 0; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--card-border); background: #fff; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { color: var(--red); border-color: var(--red); background: var(--red-soft); }
.row-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.row-actions form { margin: 0; }
@media (max-width: 640px) { .notif-range { margin-left: 0; flex-basis: 100%; } .notif-row { gap: 10px; } }

/* ---------------------------------------------------------------- live updates: pop-ups + card flash */
.cg-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 9999; display: grid; gap: 10px; max-width: min(380px, calc(100vw - 32px)); }
.cg-toast { display: flex; align-items: center; gap: 12px; background: var(--black); color: #fff; padding: 14px 14px 14px 16px; border-radius: 12px; border-left: 6px solid var(--red);
  box-shadow: 0 10px 30px rgba(0,0,0,.25); font-weight: 700; text-decoration: none; animation: cg-in .3s ease-out; transition: opacity .4s, transform .4s; }
.cg-toast i { color: #ffd84d; font-size: 1.2rem; }
.cg-toast span { flex: 1; }
.cg-toast button { background: none; border: 0; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; opacity: .7; }
.cg-toast.out { opacity: 0; transform: translateY(10px); }
@keyframes cg-in { from { opacity: 0; transform: translateY(14px); } }
.trip-cards.flash .trip-card { animation: tc-flash 1.2s ease-out; }
@keyframes tc-flash { 0% { box-shadow: 0 0 0 0 rgba(209,15,20,.55); } 100% { box-shadow: 0 0 0 18px rgba(209,15,20,0); } }
.trip-cards[hidden] { display: none; }
@media (max-width: 640px) { .cg-toasts { left: 16px; right: 16px; bottom: 12px; max-width: none; } }
.cg-refresh { position: fixed; left: 50%; top: 110px; transform: translateX(-50%); z-index: 9998; background: var(--red); color: #fff; border: 0; border-radius: 999px; padding: 12px 22px;
  font-weight: 800; font-family: inherit; font-size: 1rem; box-shadow: 0 10px 28px rgba(209,15,20,.35); cursor: pointer; animation: cg-in .3s ease-out; }
@media (max-width: 640px) { .cg-refresh { top: 84px; width: calc(100% - 32px); } }

/* ---------------------------------------------------------------- show-password eye */
.pw-wrap { position: relative; display: block; }
.pw-wrap > input { padding-right: 48px; width: 100%; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 50%; font-size: 1.05rem; }
.pw-eye:hover { color: var(--red); background: var(--red-soft); }

/* ---------------------------------------------------------------- trip card: people, vehicle, map */
.tc-people { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 4px 0 14px; }
.tc-person { display: flex; align-items: center; gap: 12px; background: var(--grey-bg); border: 1px solid var(--card-border); border-radius: 12px; padding: 10px 12px; flex: 1 1 260px; min-width: 0; }
.tc-person img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); background: #fff; }
.tc-vehicle img { border-radius: 10px; width: 78px; }
.tc-person > div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tc-person strong { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-phone { font-weight: 800; color: var(--black); text-decoration: none; }
.tc-phone i { color: var(--green); }
.tc-call { display: flex; gap: 6px; flex: 0 0 auto !important; flex-direction: row !important; }
.tc-call .fa-whatsapp { color: #25d366; font-size: 1.15rem; }
.tc-plate { display: inline-block; align-self: flex-start; margin-top: 4px; padding: 3px 10px; border: 2px solid var(--black); border-radius: 6px; background: #ffd84d; font-weight: 900; letter-spacing: .08em; font-size: .95rem; }
.tc-map-wrap { margin: 0 0 14px; }
.tc-map { height: 260px; border-radius: 12px; border: 1px solid var(--card-border); overflow: hidden; z-index: 0; }
.tc-map-note { margin: 6px 0 0; }
.tc-car { background: var(--red); color: #fff; border-radius: 50%; display: grid !important; place-items: center; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.35); font-size: 1rem; }
.tc-share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 14px; }
.tc-share .btn.on { background: var(--green); border-color: var(--green); }

/* ---------------------------------------------------------------- driver owes CharterGo */
.owed-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--amber-soft); border: 2px solid var(--amber); border-radius: 14px; padding: 14px 18px; margin: 0 0 18px; font-weight: 600; }
.owed-bar > i { font-size: 1.6rem; color: var(--amber); }
.owed-bar > div { flex: 1; min-width: 220px; }
.owed-bar.blocked { background: var(--red); border-color: var(--red); color: #fff; }
.owed-bar.blocked > i { color: #fff; }
@media (max-width: 640px) { .tc-map { height: 220px; } .owed-bar .btn { width: 100%; justify-content: center; } }
.reg-photo { display: flex !important; gap: 16px; align-items: center; }
.reg-photo > div { flex: 1; min-width: 0; }
.reg-photo-img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid var(--card-border); flex-shrink: 0; background: #fff; }
.trip-cards, .trip-card { min-width: 0; max-width: 100%; }
.trip-card { overflow-wrap: anywhere; }
.tc-map-wrap, .tc-people { min-width: 0; max-width: 100%; }
@media (max-width: 640px) {
  .tc-person { flex-basis: 100%; }
  .tc-person strong { white-space: normal; }
  .tc-person img { width: 48px; height: 48px; }
  .tc-vehicle img { width: 64px; }
  .tc-actions > form, .tc-actions > a.btn, .tc-actions > .tc-pill { width: 100%; }
  .tc-actions > form .btn, .tc-actions > a.btn { width: 100%; justify-content: center; }
}
.tc-phone { white-space: nowrap; overflow-wrap: normal; font-size: .95rem; }
