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

:root {
  --navy: #0f1b2d;
  --navy2: #162033;
  --blue: #1a56db;
  --blue-hover: #1648c0;
  --gold: #e8a020;
  --gold-light: #fef3d0;
  --green: #0e9f6e;
  --green-light: #def7ec;
  --red: #e02424;
  --red-light: #fde8e8;
  --orange: #ff6b35;
  --teal: #0694a2;
  --teal-light: #d5f5f6;
  --bg: #f3f4f8;
  --bg2: #edf0f7;
  --white: #ffffff;
  --border: #e5e7ef;
  --border2: #d1d5e0;
  --text-main: #111827;
  --text-sec: #4b5563;
  --text-muted: #9ca3af;
  --sidebar-w: 220px;
  --topnav-h: 60px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --radius: 12px;
  --radius-sm: 8px;
  /* App shell (dashboard) — aligned to GulfFreightX reference UI */
  --shell-header: #0b121e;
  --shell-sidebar: #152238;
  --shell-sidebar-border: rgba(255, 255, 255, 0.06);
  --shell-page-bg: #f4f7fa;
  --shell-nav-active-bg: #2563eb;
  --shell-nav-active-text: #ffffff;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  font-size: 14px;
}

/* ── TOP NAV ── */
.topnav {
  position: fixed; top:0; left:0; right:0;
  height: var(--topnav-h);
  background: var(--shell-header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex; align-items: stretch;
  padding: 0 24px;
  z-index: 200;
  gap: 32px;
  /* Keep logo · nav · actions order when document is RTL (lang toggle) */
  direction: ltr;
  unicode-bidi: isolate;
}
.topnav > div:first-child,
.topnav > .topnav-right {
  display: flex;
  align-items: center;
}

.logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; flex-shrink: 0;
}
.logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--blue), #3b82f6);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width:18px; height:18px; }
.logo-text {
  font-family: 'Sora', sans-serif;
  font-size: 18px; font-weight: 700; color: #fff;
  letter-spacing: -0.3px;
}
.logo-text span { color: var(--gold); }

.topnav-links {
  display: flex;
  gap: 2px;
  flex: 1;
  align-items: stretch;
  min-height: var(--topnav-h);
}
.topnav-link {
  position: relative;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  border-radius: 0;
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
  border-bottom: none;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.topnav-link,
.topnav-link:visited,
.topnav-link:hover,
.topnav-link:active {
  text-decoration: none !important;
}
.topnav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
/* Indicator sits above the header edge — matches reference (not flush with bottom border) */
.topnav-link.active {
  color: #fff;
  font-weight: 600;
  background: transparent;
}
.topnav-link.active::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 9px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  pointer-events: none;
}

.topnav-right {
  display: flex; align-items: center; gap: 12px; margin-left: auto;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  transition: background 0.18s, color 0.18s;
  font-family: inherit;
  flex: 0 0 auto;
  min-width: 8.5rem;
  box-sizing: border-box;
}
.lang-btn .lang-txt {
  display: inline-block;
  min-width: 6.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.lang-btn .lang-globe {
  display: flex;
  color: rgba(255, 255, 255, 0.75);
}
.lang-btn .lang-globe svg {
  width: 17px;
  height: 17px;
}
.lang-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.lang-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.arabic-btn {
  color: rgba(255,255,255,0.7); font-size: 13px;
  cursor: pointer; padding: 5px 10px;
  font-family: 'Plus Jakarta Sans';
}

.notif-btn {
  position: relative; cursor: pointer;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  transition: background 0.18s;
}
.notif-btn:hover { background: rgba(255,255,255,0.08); }
.notif-btn svg { color: rgba(255,255,255,0.8); }
.notif-badge {
  position: absolute; top: 4px; right: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--shell-header);
}

.user-btn {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; padding: 4px 4px 4px 4px;
  border-radius: 8px; transition: background 0.18s;
}
.user-btn:hover { background: rgba(255,255,255,0.06); }
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; flex-shrink:0;
}
.user-info { display: flex; flex-direction: column; }
.user-name { font-size: 12px; font-weight: 600; color: #fff; }
.user-role { font-size: 10px; color: rgba(255,255,255,0.5); }
.user-caret { color: rgba(255,255,255,0.4); font-size: 12px; margin-left: 2px; }
.user-chevron {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.45);
  margin-left: 2px;
  flex-shrink: 0;
}
.user-chevron svg {
  width: 14px;
  height: 14px;
}
.user-logout-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 6px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.45);
  transition: background 0.18s, color 0.18s;
}
.user-logout-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.user-logout-icon svg {
  width: 16px;
  height: 16px;
}

/* ── SIDEBAR ── */
.sidebar {
  position: fixed; top: var(--topnav-h); left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #172a45 0%, var(--shell-sidebar) 45%, #101b2e 100%);
  border-right: 1px solid var(--shell-sidebar-border);
  display: flex; flex-direction: column;
  z-index: 100;
  overflow: hidden;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}

.sidebar-nav {
  padding: 12px 10px 20px;
  flex: 1; overflow-y: auto;
  display: flex; flex-direction: column; gap: 3px;
}

.sidebar-nav-title {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.32);
  padding: 8px 12px 10px;
  margin: 0;
}

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 11px 10px 9px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-left: none;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.nav-item.active {
  background: var(--shell-nav-active-bg);
  color: var(--shell-nav-active-text);
  font-weight: 600;
}
.nav-item .nav-icon-wrap {
  width: 30px; height: 30px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  transition: background 0.18s, color 0.18s;
}
.nav-item:hover .nav-icon-wrap {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.nav-item.active .nav-icon-wrap {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.nav-item svg { flex-shrink: 0; opacity: 1; }
.nav-label { flex: 1; min-width: 0; }
.nav-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--shell-nav-active-bg);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
}

.sidebar-promo {
  margin: 12px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(11, 18, 30, 0.55) 0%, rgba(11, 18, 30, 0.88) 100%),
    linear-gradient(125deg, #1e3a5f 0%, #0f2847 40%, #1a4a7a 100%);
  padding: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-promo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 80% at 100% 0%, rgba(232, 160, 32, 0.12), transparent 55%);
  pointer-events: none;
}
.sidebar-promo::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -15%;
  width: 85%;
  height: 70%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.04) 100%);
  pointer-events: none;
}
.promo-lines {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.promo-line { font-size: 12px; font-weight: 600; color: #fff; line-height: 1.35; }
.promo-line.gold { color: var(--gold); }
.promo-img {
  width: 100%;
  height: 76px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  background:
    linear-gradient(90deg, rgba(15, 40, 80, 0.9) 0%, rgba(30, 58, 95, 0.4) 100%),
    linear-gradient(180deg, #2d4a73 0%, #0f1b2d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.promo-btn {
  width: 100%;
  background: linear-gradient(180deg, #f5c84c 0%, var(--gold) 100%);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: filter 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.promo-btn:hover { filter: brightness(1.05); }

/* ── MAIN ── */
.main {
  margin-left: var(--sidebar-w);
  padding-top: var(--topnav-h);
  min-height: 100vh;
  background: var(--shell-page-bg);
}

.content-wrap {
  display: flex; gap: 0;
  min-height: calc(100vh - var(--topnav-h));
}

/* Center scrollable */
.center-panel {
  flex: 1; min-width: 0;
  padding: 24px;
  overflow-y: auto;
  background: var(--shell-page-bg);
}

/* Right panel */
.right-panel {
  width: 300px; flex-shrink: 0;
  background: var(--shell-page-bg);
  border-left: 1px solid var(--border);
  padding: 20px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 20px;
}

/* ── HERO BANNER ── */
.hero {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 28px 0 28px;
  margin-bottom: 20px;
  display: flex; gap: 20px;
  overflow: hidden; position: relative;
  min-height: 190px;
  /* Same as landing: RTL document must not swap hero text vs map */
  direction: ltr;
  unicode-bidi: isolate;
}
html[lang="ar"] .hero-text {
  text-align: right;
}

.hero-text { flex: 1; padding-bottom: 28px; }
.hero-title {
  font-family: 'Sora', sans-serif;
  font-size: 30px; font-weight: 700;
  color: var(--navy); line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.hero-sub {
  font-size: 13px; color: var(--text-sec);
  max-width: 340px; line-height: 1.5;
  margin-bottom: 20px;
}
.hero-actions { display: flex; gap: 10px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--shell-header); color: #fff;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all 0.18s; border: none; white-space: nowrap;
}
.btn-primary:hover { background: #070d16; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; color: var(--navy);
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all 0.18s;
  border: 1.5px solid var(--border2);
}
.btn-secondary:hover { border-color: var(--navy); background: var(--bg); }

/* Hero map */
.hero-map {
  flex: 1;
  min-width: 200px;
  max-width: 420px;
  position: relative;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 4px 0;
}
.gfx-gcc-map-figure {
  margin: 0;
  width: 100%;
  min-height: 0;
  display: block;
  background: linear-gradient(165deg, #e8eef6 0%, #dce4f0 100%);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15, 27, 45, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  box-sizing: border-box;
}
/* Default: letterbox if container has no fixed height */
.gfx-gcc-map-figure img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
  object-position: center center;
  margin: 0 auto;
}
/* Dashboard hero: fixed frame + cover removes empty side bands and crops screenshot edges cleanly */
.hero-map .gfx-gcc-map-figure {
  width: min(100%, 300px);
  margin-inline: auto;
  height: 220px;
}
.hero-map .gfx-gcc-map-figure img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: cover;
  object-position: 50% 36%;
}

/* ── KPI CARDS ── */
.kpi-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-bottom: 20px;
}

.kpi-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.kpi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.kpi-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.kpi-icon-wrap {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.kpi-icon-wrap.blue { background: rgba(26,86,219,0.1); }
.kpi-icon-wrap.green { background: rgba(14,159,110,0.1); }
.kpi-icon-wrap.teal { background: rgba(6,148,162,0.1); }
.kpi-icon-wrap.gold { background: rgba(232,160,32,0.1); }

.kpi-label { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-bottom: 4px; }
.kpi-value { font-family: 'Sora', sans-serif; font-size: 28px; font-weight: 700; color: var(--text-main); line-height: 1; }
.kpi-value small { font-size: 14px; font-weight: 500; color: var(--text-sec); }

.kpi-change {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
  margin-bottom: 8px;
}
.kpi-change.up { color: var(--green); }
.kpi-change.down { color: var(--red); }
.kpi-change.warm {
  color: #ea580c;
}

/* Sparkline */
.sparkline-wrap { height: 36px; }
.sparkline-svg { width: 100%; height: 100%; }

/* ── SECTION HEADER ── */
.section-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.section-title {
  font-size: 16px; font-weight: 700; color: var(--text-main);
}
.section-link {
  margin-left: auto; color: var(--blue); font-size: 13px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 4px;
  text-decoration: none;
  transition: color 0.18s;
}
.section-link:hover { color: var(--blue-hover); }

/* ── SEARCH + FILTERS ── */
.search-filter-row {
  display: flex; gap: 8px; margin-bottom: 14px; align-items: center; flex-wrap: wrap;
}

.search-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px; flex: 1; min-width: 220px;
  transition: border-color 0.18s;
}
.search-box:focus-within { border-color: var(--blue); }
.search-box input {
  border: none; outline: none; font-size: 13px; color: var(--text-main);
  background: transparent; flex: 1; font-family: 'Plus Jakarta Sans';
}
.search-box input::placeholder { color: var(--text-muted); }

.filter-select {
  display: flex; align-items: center; gap: 6px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px; font-size: 12px; color: var(--text-sec);
  cursor: pointer; transition: border-color 0.18s; white-space: nowrap;
  font-family: 'Plus Jakarta Sans'; font-weight: 500;
}
.filter-select:hover { border-color: var(--border2); }

.filter-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px; font-size: 12px; color: var(--text-sec);
  cursor: pointer; font-weight: 600;
  font-family: 'Plus Jakarta Sans';
  transition: all 0.18s;
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }

/* ── LOAD CARDS ── */
.loads-list { display: flex; flex-direction: column; gap: 10px; }

.load-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1.5px solid var(--border);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 16px;
  cursor: pointer;
  transition: all 0.18s;
}
.load-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); }

.load-img {
  width: 72px; height: 56px; border-radius: 8px;
  object-fit: cover; flex-shrink: 0;
  background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; overflow: hidden;
}

.load-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }

.load-main { flex: 1; min-width: 0; }

.load-route {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--text-main);
  margin-bottom: 6px;
}
.route-arrow { color: var(--text-muted); font-size: 14px; }

.load-flags { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.flag { font-size: 14px; }
.flag-label { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.flag-sep { color: var(--border2); }

.load-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.load-meta-item {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--text-muted); font-weight: 500;
}

.load-pickup { flex-shrink: 0; text-align: center; min-width: 110px; }
.pickup-label { font-size: 10px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.pickup-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pickup-date::before {
  content: '';
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Crect x='2' y='3' width='10' height='10' rx='1'/%3E%3Cpath d='M2 6h10M5 1v4M9 1v4'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.load-price { flex-shrink: 0; text-align: right; min-width: 100px; }
.price-label { font-size: 10px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.price-value { font-size: 15px; font-weight: 700; color: var(--text-main); }
.price-currency { font-size: 11px; color: var(--text-muted); font-weight: 500; }

.load-badge {
  flex-shrink: 0;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
}
.load-badge.new { background: var(--blue); color: #fff; }
.load-badge.hot { background: var(--orange); color: #fff; }
.load-badge.featured { background: var(--green-light); color: var(--green); border: 1px solid rgba(14,159,110,0.2); }

/* AI match circle */
.ai-match { flex-shrink: 0; text-align: center; width: 70px; }
.match-label { font-size: 10px; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; }
.match-ring-wrap { position: relative; width: 50px; height: 50px; margin: 0 auto; }
.match-ring-wrap svg { transform: rotate(-90deg); }
.match-pct {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: var(--green);
  font-family: 'Sora', sans-serif;
}

.load-arrow { color: var(--text-muted); font-size: 18px; flex-shrink:0; }

/* ── PAGINATION ── */
.pagination {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; padding: 12px 4px;
  border-top: 1px solid var(--border);
}
.pag-info { font-size: 12px; color: var(--text-muted); }
.pag-pages { display: flex; align-items: center; gap: 4px; }
.pag-btn {
  width: 30px; height: 30px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all 0.18s; color: var(--text-sec);
  border: 1.5px solid var(--border);
  background: var(--white);
}
.pag-btn:hover { border-color: var(--blue); color: var(--blue); }
.pag-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.pag-btn.arrow { font-size: 14px; }
.pag-ellipsis {
  padding: 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  user-select: none;
}

/* ── RIGHT PANEL ── */
.rp-title {
  font-size: 15px; font-weight: 700; color: var(--text-main);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.rp-icon { font-size: 18px; display:flex; align-items:center; }

.form-group { margin-bottom: 12px; }
.form-label { font-size: 11px; font-weight: 600; color: var(--text-sec); margin-bottom: 5px; display: block; text-transform: uppercase; letter-spacing: 0.3px; }

.form-select, .form-input {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 13px; color: var(--text-main);
  font-family: 'Plus Jakarta Sans';
  cursor: pointer; outline: none;
  transition: border-color 0.18s;
  appearance: none;
  display: flex; align-items: center; gap: 8px;
}
.form-select:focus, .form-input:focus { border-color: var(--blue); background: #fff; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: '▾'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 11px; pointer-events: none;
}
.select-placeholder { color: var(--text-muted); }
.select-icon { color: var(--text-muted); font-size: 14px; }

.input-with-unit { position: relative; }
.input-unit {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  background: var(--border); padding: 2px 6px; border-radius: 4px;
}

.btn-post {
  width: 100%;
  background: var(--shell-header);
  color: #fff; font-size: 14px; font-weight: 700;
  padding: 12px; border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.2s;
  border: none; font-family: 'Plus Jakarta Sans';
  margin-top: 4px;
}
.btn-post:hover { background: #070d16; }

.btn-draft {
  width: 100%;
  background: transparent;
  color: var(--text-sec); font-size: 13px; font-weight: 600;
  padding: 8px; border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.2s;
  border: none; font-family: 'Plus Jakarta Sans';
  text-align: center; margin-top: 4px;
}
.btn-draft:hover { color: var(--blue); }

/* Market insights */
.market-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}
.market-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.market-title { font-size: 13px; font-weight: 700; }
.market-link { font-size: 11px; color: var(--blue); font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 3px; }

.spot-label { font-size: 11px; color: var(--text-muted); font-weight: 500; margin-bottom: 3px; }
.spot-value { font-family: 'Sora'; font-size: 22px; font-weight: 700; color: var(--text-main); }
.spot-change { font-size: 11px; color: var(--green); font-weight: 600; margin-left: 6px; }

.chart-wrap { margin: 10px 0 4px; }
.chart-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-muted); margin-top: 4px; }

.smart-match-box {
  background: linear-gradient(165deg, #fffdf8 0%, #fef3e0 100%);
  border: 1px solid rgba(232, 160, 32, 0.35);
  border-radius: var(--radius);
  padding: 14px;
  margin-top: 12px;
  box-shadow: 0 1px 3px rgba(15, 27, 45, 0.06);
}
.smb-title { font-size: 13px; font-weight: 700; margin-bottom: 4px; color: var(--navy); }
.smb-sub { font-size: 11px; color: var(--text-sec); margin-bottom: 10px; line-height: 1.45; }
.btn-smart {
  width: 100%;
  background: var(--shell-header);
  border: none;
  border-radius: var(--radius-sm); padding: 10px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: 'Plus Jakarta Sans'; color: #fff;
  transition: filter 0.18s, transform 0.15s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-smart:hover { filter: brightness(1.08); }
.star-icon { color: var(--gold); font-size: 16px; }

/* Divider */
.divider { height: 1px; background: var(--border); margin: 4px 0 12px; }

/* Animations */
.fade-up { animation: fadeUp 0.4s ease forwards; opacity: 0; }
@keyframes fadeUp { from{opacity:0;transform:translateY(10px);} to{opacity:1;transform:translateY(0);} }
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.1s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.2s; }
.delay-5 { animation-delay: 0.25s; }
.delay-6 { animation-delay: 0.3s; }

/* Match score label (neutral copy; .ai-match kept for layout) */
.match-label { text-transform: none; }

/* App shell: hash views */
.view { display: none !important; }
.view.active { display: block !important; }
.view .content-wrap { display: flex; width: 100%; align-items: stretch; min-height: calc(100vh - var(--topnav-h)); }
.view-single .content-wrap { display: block; }
.center-panel.full-width { max-width: 100%; }

/* Toasts */
.toast-container {
  position: fixed; top: calc(var(--topnav-h) + 12px); right: 16px; left: 16px;
  z-index: 10000; display: flex; flex-direction: column; align-items: flex-end;
  pointer-events: none;
}
.toast-container .toast { pointer-events: auto; }
.toast {
  background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  padding: 12px 16px; margin-bottom: 8px; max-width: 360px; width: 100%;
  font-size: 13px; font-weight: 500; border-left: 4px solid var(--blue);
  animation: toastIn 0.25s ease;
}
.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red); }
.toast.warn { border-left-color: var(--gold); }
@keyframes toastIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,27,45,0.45); z-index: 5000;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius); max-width: 480px; width: 100%;
  max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-md); padding: 24px;
}
.modal h3 { font-family: Sora, sans-serif; font-size: 18px; margin-bottom: 12px; color: var(--navy); }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; justify-content: flex-end; flex-wrap: wrap; }

/* Tables (fleet, payments, admin) */
.data-table-wrap { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  text-align: left; padding: 12px 14px; background: var(--bg2); color: var(--text-sec);
  font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text-main); }
.data-table tr:hover td { background: var(--bg); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge-escrow { background: rgba(26,86,219,0.1); color: var(--blue); }
.badge-invoice { background: var(--gold-light); color: #92400e; }
.badge-ready { background: var(--teal-light); color: var(--teal); }
.badge-released { background: var(--green-light); color: var(--green); }
.badge-disputed { background: var(--red-light); color: var(--red); }
.badge-kyb-pending { background: var(--bg2); color: var(--text-sec); }
.badge-kyb-approved { background: var(--green-light); color: var(--green); }
.badge-kyb-rejected { background: var(--red-light); color: var(--red); }

/* Fleet map placeholder */
.fleet-map-placeholder {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  min-height: 220px; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 13px; margin-bottom: 16px;
  border: 1.5px dashed var(--border2);
}
.alerts-panel {
  background: var(--red-light); border: 1px solid rgba(224,36,36,0.2); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 16px; font-size: 13px;
}
.alerts-panel h4 { color: var(--red); margin-bottom: 8px; font-size: 14px; }
.alert-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.alert-row:last-child { border-bottom: none; }
.btn-text { background: none; border: none; color: var(--blue); font-weight: 600; cursor: pointer; font-size: 12px; font-family: inherit; }

/* Toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; align-items: center; }
.toolbar-spacer { flex: 1; min-width: 8px; }

/* Landing + auth */
.landing-body {
  background: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
}
.landing-body main a {
  text-decoration: none !important;
}
.landing-body main a:hover,
.landing-body main a:visited {
  text-decoration: none !important;
}
/* Header/footer sit outside <main>; kill UA link underlines everywhere on landing */
.landing-header a,
.landing-header a:hover,
.landing-header a:visited,
.landing-header a:active {
  text-decoration: none !important;
}

/* Sticky light header — no default link underline */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(15, 27, 45, 0.04);
  direction: ltr;
  unicode-bidi: isolate;
}
.landing-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.landing-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  flex-shrink: 0;
}
.landing-logo:hover,
.landing-logo:visited,
.landing-logo:active {
  text-decoration: none !important;
}
.landing-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--blue), #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.landing-logo-mark svg {
  width: 18px;
  height: 18px;
}
.landing-logo-type {
  font-family: Sora, sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.35px;
}
.landing-logo-type span {
  color: var(--gold);
}

.landing-menu {
  display: none;
  align-items: center;
  gap: 6px;
}
@media (min-width: 768px) {
  .landing-menu {
    display: flex;
  }
}
.landing-menu-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sec);
  text-decoration: none !important;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.landing-menu-link:hover,
.landing-menu-link:visited,
.landing-menu-link:active {
  color: var(--navy);
  text-decoration: none !important;
  background: var(--bg);
}

.landing-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.landing-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  min-width: 7.5rem;
  box-sizing: border-box;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border2);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.landing-lang-btn:hover {
  border-color: var(--blue);
  background: var(--bg);
  box-shadow: var(--shadow);
}
.landing-lang-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.landing-lang-btn.is-rtl-active {
  border-color: rgba(232, 160, 32, 0.65);
  box-shadow: 0 0 0 1px rgba(232, 160, 32, 0.25);
}
.landing-lang-btn .lang-sep {
  color: var(--text-muted);
  font-weight: 500;
}
.landing-lang-btn span {
  color: var(--navy);
}
.landing-lang-btn span[dir="rtl"] {
  font-family: "Plus Jakarta Sans", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

.landing-btn-ghost {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none !important;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background 0.15s;
}
.landing-btn-ghost:hover {
  background: var(--bg);
  text-decoration: none !important;
}
.landing-btn-primary {
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  background: var(--gold);
  text-decoration: none !important;
  border-radius: 8px;
  border: none;
  box-shadow: 0 1px 2px rgba(15, 27, 45, 0.08);
  transition: filter 0.15s, transform 0.15s;
}
.landing-btn-primary:hover {
  filter: brightness(1.06);
  text-decoration: none !important;
}

.landing-hero-wrap {
  padding: 40px 24px 56px;
  background: linear-gradient(165deg, #0f1b2d 0%, #162a4a 42%, #1e3a5f 100%);
}
.landing-hero-card {
  max-width: 1120px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(15, 27, 45, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  direction: ltr;
  unicode-bidi: isolate;
}
@media (min-width: 960px) {
  .landing-hero-card {
    grid-template-columns: 1fr 1.05fr;
  }
}
.landing-hero-copy {
  padding: 36px 32px 40px;
  text-align: left;
}
@media (min-width: 960px) {
  .landing-hero-copy {
    padding: 44px 40px 48px;
  }
}
.landing-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.landing-hero-copy h1 {
  font-family: Sora, sans-serif;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.landing-hero-copy h1 em {
  font-style: normal;
  color: var(--gold);
}
.landing-lead {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-sec);
  margin-bottom: 24px;
  max-width: 34em;
}
.landing-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}
.landing-status {
  margin: 14px 0 18px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(26, 86, 219, 0.18);
  background: rgba(26, 86, 219, 0.06);
  color: var(--text-sec);
  font-size: 13px;
  line-height: 1.55;
}
.landing-status strong {
  color: var(--navy);
  font-weight: 800;
}

.role-cta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 6px;
}
.role-cta-card {
  display: block;
  border-radius: 14px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(15, 27, 45, 0.10);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(15, 27, 45, 0.08);
  text-decoration: none !important;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.role-cta-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 27, 45, 0.12);
  border-color: rgba(26, 86, 219, 0.20);
}
.role-cta-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.role-cta-title {
  font-family: Sora, sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}
.role-cta-sub {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-sec);
  margin-bottom: 8px;
}
.role-cta-link {
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
}

.landing-pilot {
  background: linear-gradient(165deg, #0f1b2d 0%, #162a4a 45%, #1e3a5f 100%);
  color: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.landing-pilot h2 {
  color: #fff;
}
.landing-pilot .section-sub {
  color: rgba(255, 255, 255, 0.76);
}
.landing-pilot .landing-stats {
  padding-left: 0;
  padding-right: 0;
  gap: 12px;
  margin-top: 10px;
}
.landing-pilot .landing-stat {
  background: linear-gradient(180deg, rgba(3, 10, 20, 0.55) 0%, rgba(3, 10, 20, 0.38) 100%);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  padding: 18px 16px;
}
.landing-pilot .landing-stat strong {
  color: var(--gold);
  font-size: 30px;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}
.landing-pilot .landing-stat span {
  display: block;
  color: rgba(255, 255, 255, 0.86);
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 700;
  line-height: 1.25;
}
.pilot-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 10px;
}
.pilot-principle {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}
.pilot-principle strong {
  color: var(--gold);
}

.landing-pilot .landing-btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}
.landing-pilot .landing-btn-primary:hover {
  filter: brightness(1.05);
}
.landing-pilot .landing-btn-ghost {
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}
.landing-pilot .landing-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Landing products: keep 4 cards balanced */
.landing-products .feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 1040px) {
  .landing-products .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.landing-products .feature-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.landing-products .feature-card p {
  margin-top: auto;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.journey-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 20px 18px;
}
.journey-card h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: var(--navy);
  font-weight: 900;
}
.journey-steps {
  margin: 0 0 12px 18px;
  padding: 0;
  color: var(--text-sec);
  font-size: 13px;
  line-height: 1.6;
}
.journey-value {
  margin: 0;
  padding-left: 18px;
  color: var(--text-sec);
  font-size: 13px;
  line-height: 1.6;
}
.landing-cta-row .landing-btn-primary,
.landing-cta-row .landing-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-left: 20px;
  padding-right: 20px;
}
.landing-cta-row .landing-btn-ghost {
  border: 1.5px solid var(--border2);
  background: var(--white);
}
.landing-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.landing-trust-strip span {
  color: var(--text-sec);
}

.landing-hero-map {
  position: relative;
  background: linear-gradient(145deg, #eef2fb 0%, #e4ebf8 50%, #dce6f5 100%);
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 16px 20px;
  border-left: 1px solid var(--border);
}
.landing-hero-map .gfx-gcc-map-figure {
  width: min(100%, 400px);
  margin-inline: auto;
  height: clamp(232px, 34vw, 300px);
}
.landing-hero-map .gfx-gcc-map-figure img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: cover;
  object-position: 50% 38%;
}
@media (max-width: 959px) {
  .landing-hero-map {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 14px 12px 18px;
  }
  .landing-hero-map .gfx-gcc-map-figure {
    width: 100%;
    max-width: 420px;
    height: clamp(200px, 52vw, 280px);
  }
}
.landing-map-caption {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  margin: 0;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: normal;
  line-height: 1.4;
  padding: 0 4px;
}

html[lang="ar"] .landing-hero-copy {
  text-align: right;
}

.landing-features {
  background: var(--bg);
  color: var(--text-main);
  padding: 56px 24px 72px;
}
.landing-features-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.landing-features h2 {
  font-family: Sora, sans-serif;
  font-size: clamp(22px, 3vw, 28px);
  margin-bottom: 10px;
  text-align: center;
  color: var(--navy);
}
.landing-features .section-sub {
  text-align: center;
  font-size: 15px;
  color: var(--text-sec);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.55;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 86, 219, 0.15);
}
.feature-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: rgba(26, 86, 219, 0.08);
  color: var(--blue);
}
.feature-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--navy);
  font-weight: 700;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.55;
}

.landing-stats {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.landing-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.landing-stat strong {
  display: block;
  font-family: Sora, sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.landing-stat span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.landing-info-section {
  background: rgba(15, 23, 42, 0.04);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.landing-stats--in-section {
  padding-top: 8px;
  padding-bottom: 36px;
}
.landing-info-prose {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.landing-info-prose p {
  font-size: 15px;
  color: var(--text-sec);
  line-height: 1.65;
  margin: 0;
}
.landing-info-prose strong {
  color: var(--navy);
  font-weight: 700;
}
.landing-info-prose a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.landing-info-prose a:hover {
  text-decoration: underline;
}
html[lang="ar"] .landing-info-prose {
  text-align: right;
}

.landing-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 32px 24px;
  font-size: 13px;
}
.landing-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.landing-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none !important;
  font-weight: 500;
}
.landing-footer a:hover {
  color: var(--gold);
  text-decoration: none !important;
}
.landing-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

/* Landing — small screens */
@media (max-width: 767px) {
  .landing-header-inner {
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 12px;
    row-gap: 10px;
  }
  .landing-logo-type {
    font-size: 17px;
  }
  .landing-header-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
  }
  .landing-lang-btn {
    min-width: 0;
    flex: 0 1 auto;
    padding: 7px 10px;
    font-size: 12px;
  }
  .landing-btn-primary,
  .landing-btn-ghost {
    padding: 10px 14px;
    font-size: 13px;
    min-height: 42px;
  }
  .landing-hero-wrap {
    padding: 20px 12px 36px;
  }
  .landing-hero-card {
    border-radius: 16px;
  }
  .landing-hero-copy {
    padding: 24px 18px 20px;
  }
  .landing-hero-copy h1 {
    font-size: clamp(22px, 6.2vw, 28px);
    letter-spacing: -0.35px;
  }
  .landing-lead {
    font-size: 14px;
    margin-bottom: 18px;
    max-width: none;
  }
  .landing-eyebrow {
    font-size: 10px;
    letter-spacing: 0.1em;
  }
  .landing-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .landing-cta-row .landing-btn-primary,
  .landing-cta-row .landing-btn-ghost {
    width: 100%;
    justify-content: center;
  }
  .role-cta-grid {
    grid-template-columns: 1fr;
  }
  .landing-status {
    margin: 12px 0 14px;
  }
  .landing-trust-strip {
    justify-content: center;
    text-align: center;
    font-size: 11px;
    gap: 8px 10px;
  }
  .landing-stats {
    padding: 0 12px 36px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .landing-stat {
    padding: 14px 12px;
  }
  .landing-stat strong {
    font-size: 22px;
  }
  .landing-features {
    padding: 36px 14px 48px;
  }
  .landing-features h2 {
    font-size: 20px;
  }
  .landing-features .section-sub {
    font-size: 14px;
    margin-bottom: 28px;
  }
  .feature-grid {
    gap: 14px;
  }
  .feature-card {
    padding: 20px 18px;
  }
  .landing-footer {
    padding: 24px 16px;
  }
  .landing-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .landing-footer-links {
    gap: 12px 18px;
  }
}
@media (max-width: 480px) {
  .landing-stats {
    grid-template-columns: 1fr;
  }
}

.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: linear-gradient(160deg, var(--navy) 0%, #1e3a5f 50%, var(--navy2) 100%);
}
.auth-card {
  width: 100%; max-width: 420px; background: var(--white); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-md);
}
.auth-card h1 { font-family: Sora, sans-serif; font-size: 22px; color: var(--navy); margin-bottom: 6px; }
.auth-card .sub { font-size: 13px; color: var(--text-sec); margin-bottom: 22px; }
.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-size: 12px; font-weight: 600; color: var(--text-sec); margin-bottom: 6px; }
.auth-field input, .auth-field select {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  font-size: 14px; font-family: inherit;
}
.auth-field input:focus, .auth-field select:focus { outline: none; border-color: var(--blue); }
.auth-error { color: var(--red); font-size: 12px; margin-top: 6px; display: none; }
.auth-error.visible { display: block; }
.auth-footer { margin-top: 20px; font-size: 13px; color: var(--text-sec); text-align: center; }
.auth-footer a { color: var(--blue); font-weight: 600; text-decoration: none; }

.onboarding-steps { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.onboarding-steps .step {
  flex: 1; min-width: 80px; text-align: center; padding: 8px; border-radius: 8px;
  background: var(--bg); font-size: 11px; font-weight: 600; color: var(--text-muted);
}
.onboarding-steps .step.active { background: rgba(26,86,219,0.1); color: var(--blue); }
.onboarding-steps .step.done { background: var(--green-light); color: var(--green); }

/* Native inputs in app forms */
input.form-input-native, textarea.form-input-native {
  width: 100%; display: block; background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 12px; font-size: 13px; font-family: inherit;
  cursor: text;
  color: var(--text-main);
}
input.form-input-native:focus, textarea.form-input-native:focus { border-color: var(--blue); background: #fff; outline: none; }

/* Themed selects (match legacy form-select look) */
.select-wrap select.gfx-select,
select.gfx-select {
  width: 100%;
  display: block;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 32px 10px 12px;
  font-size: 13px; font-weight: 500;
  font-family: inherit;
  color: var(--text-main);
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.18s, background 0.18s;
}
.select-wrap select.gfx-select:focus,
select.gfx-select:focus {
  border-color: var(--blue);
  background: var(--white);
}
textarea.gfx-textarea {
  width: 100%; min-height: 72px; resize: vertical;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; font-family: inherit;
  color: var(--text-main);
}
textarea.gfx-textarea:focus { border-color: var(--blue); background: var(--white); outline: none; }

.right-panel .post-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin: -4px 0 8px 0;
  box-shadow: var(--shadow);
}
.right-panel .form-hint {
  font-size: 11px; color: var(--text-muted); line-height: 1.45; margin-top: 4px;
}

.page-intro {
  font-size: 14px; color: var(--text-sec); line-height: 1.65; max-width: 720px; margin-bottom: 20px;
}
.page-grid-2 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: start;
}
.form-card-large {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--border); padding: 24px;
}
.form-card-large h2 {
  font-family: Sora, sans-serif; font-size: 17px; color: var(--navy); margin-bottom: 6px;
}
.form-card-large .sub {
  font-size: 13px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5;
}
.corridor-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.corridor-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--border);
  font-size: 12px; color: var(--text-sec);
}
.corridor-row strong { color: var(--text-main); font-weight: 600; }
.corridor-pct { font-size: 11px; font-weight: 700; color: var(--green); }

.load-thumb {
  width: 64px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #eef2fb, #e2e8f4);
}
.load-thumb svg { width: 26px; height: 26px; }

/* Hamburger + mobile sidebar */
.hamburger {
  display: none; width: 40px; height: 40px; align-items: center; justify-content: center;
  border-radius: 8px; border: none; background: rgba(255,255,255,0.08); cursor: pointer; margin-right: 8px;
}
.hamburger svg { stroke: #fff; }
.sidebar-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 90; top: var(--topnav-h);
}
.sidebar-backdrop.open { display: block; }

@media (max-width: 1100px) {
  .right-panel { width: 280px; }
}

@media (max-width: 1024px) {
  .hamburger { display: flex; }
  .sidebar {
    transform: translateX(-100%); transition: transform 0.22s ease;
    box-shadow: var(--shadow-md);
  }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .topnav { padding: 0 16px; gap: 12px; }
  .topnav-links {
    overflow-x: auto; flex: 1; min-width: 0; padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 12px), transparent);
  }
  .content-wrap { flex-direction: column; }
  .right-panel {
    width: 100%; border-left: none; border-top: 1px solid var(--border);
  }
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { flex-direction: column; }
  .hero-map {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 0 12px 0;
  }
  .hero-map .gfx-gcc-map-figure {
    width: 100%;
    max-width: none;
    height: 200px;
  }
  .hero-map .gfx-gcc-map-figure img {
    object-position: 50% 34%;
  }
}

@media (max-width: 640px) {
  .kpi-row { grid-template-columns: 1fr; }
  .center-panel { padding: 16px; }
  .load-card { flex-wrap: wrap; gap: 12px; }
  .load-pickup, .load-price { min-width: auto; text-align: left; }
  .ai-match { width: auto; }
  .user-info { display: none; }
}

/* Driver preview chat */
.chat-thread {
  background: var(--bg); border-radius: var(--radius); padding: 12px; max-height: 220px; overflow-y: auto;
  font-size: 13px; margin-bottom: 12px;
}
.chat-bubble { padding: 8px 12px; border-radius: 10px; margin-bottom: 8px; max-width: 85%; }
.chat-bubble.them { background: var(--white); border: 1px solid var(--border); }
.chat-bubble.me { background: rgba(26,86,219,0.12); margin-left: auto; }

/* Time range inputs (pickup window) */
.time-range {
  display: flex;
  align-items: center;
  gap: 10px;
}
.time-range .form-input-native {
  flex: 1 1 0;
  min-width: 0;
}
.time-range-sep {
  color: var(--text-muted);
  font-weight: 800;
}

/* Smart Match modal (extends base modal styles) */
.modal.modal-lg { max-width: 720px; }
.modal-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}
.smartmatch-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 12px;
}
.sm-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.03);
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
}
.smartmatch-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 52vh;
  overflow: auto;
  padding-right: 2px;
}
.sm-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr auto;
  gap: 10px;
  padding: 12px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.sm-name {
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 4px;
}
.sm-meta {
  font-size: 12px;
  color: var(--text-sec);
  line-height: 1.45;
}
.sm-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
}
.sm-score strong {
  font-family: Sora, sans-serif;
  font-size: 18px;
  color: var(--blue);
}
.sm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sm-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 999px;
}
@media (max-width: 640px) {
  .sm-row {
    grid-template-columns: 1fr;
  }
  .sm-score {
    align-items: flex-start;
  }
}
