/* ═══════════════════════════════════════════════════════════════
   KousAyiti — Brand Ble Navy (2026)
   Couleur brand: navy #0F2A4F · ble #2b7ff0 · Ale · Arrive · Senp · Rapid
   Font: Poppins (moderne + fasil lekti sou mobil)
═══════════════════════════════════════════════════════════════ */

:root {
  /* Koulè brand */
  --primary:      #0F2A4F;      /* Navy fonse (K icon kèk goch, "kousa") */
  --primary-dark: #0A1F3D;
  --primary-light:#1E4D8E;
  --accent:       #2b7ff0;      /* Ble klè briyan (K icon dwat, "yiti", pin) */
  --accent-dark:  #1e60c8;
  --accent-light: #4d94ff;
  --success:      #00A651;      /* Vèt */
  --danger:       #DC2626;
  --warning:      #F59E0B;
  --info:         #0EA5E9;

  /* Dark navy theme padefo (menm sou OS ki gen light theme) */
  --ink-1:        #E2E8F0;      /* Tèks prensipal (blan navi) */
  --ink-2:        #CBD5E1;
  --ink-3:        #94A3B8;      /* Sekondè */
  --ink-4:        #64748B;      /* Souple */
  --ink-5:        #475569;
  --line:         #1E3A5F;      /* Bòd navi klè */
  --line-2:       #172554;
  --bg-1:         #0A0F1A;      /* Fon prensipal navi tre fonse */
  --bg-2:         #0F1D35;      /* Katre navi */
  --bg-3:         #1A2D4A;      /* Kondwit navi klè */
  --accent-blue:  #3B82F6;      /* Ble navi vif pou numbered badges */

  /* Ombraj */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:     0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg:  0 12px 32px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.06);
  --shadow-xl:  0 24px 48px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.08);
  --shadow-red: 0 8px 24px rgba(15,42,79,.35);
  --shadow-brand: 0 8px 24px rgba(15,42,79,.35);
  --shadow-accent: 0 8px 24px rgba(43,127,240,.30);

  /* Radius */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* Espesyalize */
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  --header-h: 64px;
  --tabbar-h: 72px;

  color-scheme: dark;
}

/* Opsyon pou switch a light mode ak tag `data-theme="light"` sou <html> */
html[data-theme="light"] {
  --ink-1: #0A0A0A;
  --ink-2: #1F1F1F;
  --ink-3: #4A4A4A;
  --ink-4: #7A7A7A;
  --ink-5: #9CA3AF;
  --line: #E5E5E5;
  --line-2: #F0F0F0;
  --bg-1: #FFFFFF;
  --bg-2: #FAFAFA;
  --bg-3: #F5F5F5;
  color-scheme: light;
}

/* ═══════════ Reset + Global ═══════════ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-1);
  background: var(--bg-1);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--ink-1); }
h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; }
h4 { font-size: .95rem; }

p { color: var(--ink-3); }
small { color: var(--ink-4); font-size: .78rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg, video { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ═══════════ Header ═══════════ */
.ka-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
  padding: 0 16px;
  display: flex; align-items: center; gap: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.ka-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 1.15rem;
  color: var(--ink-1); text-decoration: none;
  letter-spacing: -.02em;
}
.ka-brand-logo {
  width: 40px; height: 40px;
  background: #0F2A4F url('/assets/img/logo-icon-dark.png') center/78% no-repeat;
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(15, 42, 79, 0.35);
  overflow: hidden;
  flex-shrink: 0;
  /* Retire tèks defo "K" — logo image la ranplase l */
  color: transparent;
  font-size: 0;
}
.ka-brand-name { color: #0F2A4F; }
.ka-brand-name span { color: #2b7ff0; }
[data-theme="dark"] .ka-brand-name { color: white; }
[data-theme="dark"] .ka-brand-name span { color: #4d94ff; }

/* ═══════════ Ekran / paj ═══════════ */
.ka-page {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  padding: 20px 16px 100px;
  max-width: 640px;
  margin: 0 auto;
}
.ka-section { margin-bottom: 24px; }
.ka-section-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-4);
  margin-bottom: 10px;
}

/* ═══════════ Kat ═══════════ */
.ka-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
}
.ka-card:hover { box-shadow: var(--shadow); }
.ka-card.ka-card-flat { box-shadow: none; }
.ka-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.ka-card-title { font-size: 1.05rem; font-weight: 700; }

/* ═══════════ Bouton ═══════════ */
.ka-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: var(--r);
  border: none;
  background: var(--bg-3);
  color: var(--ink-1);
  cursor: pointer;
  transition: transform .1s, box-shadow .15s, background .15s;
  min-height: 48px;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
}
.ka-btn:hover { text-decoration: none; }
.ka-btn:active { transform: scale(.97); }
.ka-btn[disabled] { opacity: .5; cursor: not-allowed; }

.ka-btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-red);
}
.ka-btn-primary:hover { background: var(--primary-dark); }

.ka-btn-accent {
  background: var(--accent);
  color: var(--ink-1);
  font-weight: 800;
}
.ka-btn-accent:hover { background: var(--accent-dark); }

.ka-btn-ghost {
  background: transparent;
  color: var(--ink-1);
  border: 1.5px solid var(--line);
}
.ka-btn-ghost:hover { background: var(--bg-3); border-color: var(--ink-4); }

.ka-btn-success { background: var(--success); color: white; }
.ka-btn-danger  { background: var(--danger); color: white; }

.ka-btn-lg { padding: 18px 32px; font-size: 1.1rem; min-height: 58px; }
.ka-btn-sm { padding: 8px 16px; font-size: .85rem; min-height: 36px; }
.ka-btn-block { width: 100%; }
.ka-btn-icon { padding: 12px; min-height: 44px; min-width: 44px; }

/* ═══════════ Input ═══════════ */
.ka-field { margin-bottom: 14px; }
.ka-label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--ink-3);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.ka-input, .ka-select, .ka-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-1);
  color: var(--ink-1);
  transition: border-color .15s, box-shadow .15s;
  min-height: 52px;
}
.ka-input:focus, .ka-select:focus, .ka-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,42,79,.12);
}
.ka-textarea { min-height: 100px; resize: vertical; }
.ka-input-lg { font-size: 1.15rem; padding: 18px 20px; min-height: 62px; }

/* ═══════════ Chip / Badge ═══════════ */
.ka-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: .85rem;
  font-weight: 600;
  background: var(--bg-3);
  color: var(--ink-2);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s;
  user-select: none;
}
.ka-chip:hover { background: var(--line); }
.ka-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.ka-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ka-badge-primary { background: rgba(15,42,79,.12); color: var(--primary); }
.ka-badge-accent  { background: rgba(43,127,240,.15); color: #B58200; }
.ka-badge-success { background: rgba(0,166,81,.12); color: var(--success); }
.ka-badge-warning { background: rgba(245,158,11,.12); color: var(--warning); }
.ka-badge-danger  { background: rgba(220,38,38,.12); color: var(--danger); }

/* ═══════════ Chan hero prensipal ═══════════ */
.ka-hero {
  padding: 32px 20px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--primary) 0%, #1e60c8 100%);
  color: white;
  position: relative; overflow: hidden;
  margin-bottom: 20px;
}
.ka-hero::before {
  content: '';
  position: absolute; top: -30%; right: -20%;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}
.ka-hero-title { font-size: 1.85rem; font-weight: 800; margin-bottom: 6px; color: white; }
.ka-hero-sub { color: rgba(255,255,255,.85); font-size: .95rem; }

/* ═══════════ Service picker (big cards) ═══════════ */
.ka-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.ka-service {
  --svc-c1: #0F2A4F;
  --svc-c2: #2b7ff0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 14px 18px;
  text-align: center;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), border-color .2s, box-shadow .25s;
  text-decoration: none;
  color: var(--ink-1);
  user-select: none;
  display: block;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* Gradient wash background inside card */
.ka-service::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--svc-c1) 0%, var(--svc-c2) 100%);
  opacity: .08;
  z-index: -1;
  transition: opacity .25s;
}
/* Big blurred glow behind emoji */
.ka-service::after {
  content: '';
  position: absolute;
  top: -20px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 90px;
  background: radial-gradient(circle, var(--svc-c1) 0%, transparent 70%);
  opacity: .12;
  filter: blur(20px);
  z-index: -1;
  transition: opacity .3s, transform .3s;
}
.ka-service:hover, .ka-service.active {
  transform: translateY(-6px) scale(1.02);
  border-color: transparent;
  box-shadow: 0 12px 32px -8px color-mix(in srgb, var(--svc-c1) 40%, transparent),
              0 4px 12px rgba(0,0,0,.2);
  text-decoration: none;
}
.ka-service:hover::before, .ka-service.active::before { opacity: .16; }
.ka-service:hover::after, .ka-service.active::after {
  opacity: .3;
  transform: translateX(-50%) scale(1.4);
}
.ka-service.active { border-color: var(--svc-c1); }

/* Ikon anndan boul avèk gradient — pou parèt tankou native app */
.ka-service-emoji {
  font-size: 2rem;
  line-height: 1;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--svc-c1), var(--svc-c2));
  color: white;
  box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--svc-c1) 50%, transparent),
              inset 0 1px 0 rgba(255,255,255,.3);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.15));
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.ka-service:hover .ka-service-emoji {
  transform: rotate(-6deg) scale(1.08);
}
.ka-service-name {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 4px;
  letter-spacing: -.2px;
}
.ka-service-desc {
  font-size: .72rem;
  color: var(--ink-3);
  line-height: 1.35;
  font-weight: 500;
}

/* Koulè inik pa sèvis — pou distingye vizyèl */
.ka-service[href="/"],
.ka-service[href="/index.php"]      { --svc-c1: #0F2A4F; --svc-c2: #2b7ff0; }  /* Kous — Navy → Ble brand */
.ka-service[href="/colis.php"]      { --svc-c1: #F59E0B; --svc-c2: #2b7ff0; }  /* Colis — jòn */
.ka-service[href="/food.php"]       { --svc-c1: #EF4444; --svc-c2: #F97316; }  /* Manje — chèch */
.ka-service[href="/garage.php"]     { --svc-c1: #3B82F6; --svc-c2: #06B6D4; }  /* Garage — ble */
.ka-service[href="/dealer.php"]     { --svc-c1: #8B5CF6; --svc-c2: #A855F7; }  /* Dealer — vyolèt */
.ka-service[href="/rental.php"]     { --svc-c1: #10B981; --svc-c2: #34D399; }  /* Rental — vèt */

/* Mobile ajistman */
@media (max-width: 480px) {
  .ka-service { padding: 18px 8px 14px; border-radius: 16px; }
  .ka-service-emoji { width: 52px; height: 52px; font-size: 1.7rem; border-radius: 14px; margin-bottom: 10px; }
  .ka-service-name { font-size: .88rem; }
  .ka-service-desc { font-size: .65rem; }
  .ka-services { gap: 10px; }
}

/* ═══════════ Search box (destination) ═══════════ */
.ka-search-wrap {
  position: relative;
}
.ka-search-input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  border: 2px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-1);
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.ka-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,42,79,.12);
}
.ka-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  pointer-events: none;
}
.ka-search-results {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-top: 6px;
  background: var(--bg-1);
  box-shadow: var(--shadow);
}
.ka-search-result {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background .1s;
}
.ka-search-result:hover, .ka-search-result:last-child { border-bottom: none; }
.ka-search-result:hover { background: var(--bg-3); }
.ka-search-result-icon {
  font-size: 1.4rem;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}
.ka-search-result-info { flex: 1; min-width: 0; }
.ka-search-result-name { font-weight: 700; color: var(--ink-1); }
.ka-search-result-zone { font-size: .78rem; color: var(--ink-4); }

/* ═══════════ Vehicle picker ═══════════ */
.ka-vehicles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.ka-vehicle {
  background: var(--bg-2);
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  user-select: none;
}
.ka-vehicle.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(15,42,79,.08), rgba(43,127,240,.05));
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.ka-vehicle-emoji { font-size: 2.4rem; line-height: 1; margin-bottom: 6px; }
.ka-vehicle-name { font-weight: 700; font-size: .95rem; margin-bottom: 2px; }
.ka-vehicle-desc { font-size: .72rem; color: var(--ink-4); }

/* ═══════════ Kat karèl ═══════════ */
.ka-map-wrap {
  position: relative;
  height: 320px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 16px;
  background: var(--bg-3);
}
#map { width: 100%; height: 100%; }
.ka-map-cta {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(8px);
  padding: 12px 16px;
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  font-size: .88rem;
  display: flex; align-items: center; gap: 10px;
}

/* ═══════════ Chan sonn (dispatch channel) ═══════════ */
.ka-channels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.ka-channel {
  background: var(--bg-2);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 16px 12px;
  text-align: center;
  text-decoration: none;
  color: var(--ink-1);
  cursor: pointer;
  transition: all .15s;
}
.ka-channel:hover {
  border-color: var(--primary);
  text-decoration: none;
  transform: translateY(-2px);
}
.ka-channel-icon { font-size: 1.8rem; margin-bottom: 4px; }
.ka-channel-name { font-weight: 700; font-size: .85rem; }
.ka-channel-desc { font-size: .7rem; color: var(--ink-4); }

.ka-channel.whatsapp { border-color: rgba(37,211,102,.25); }
.ka-channel.whatsapp:hover { background: rgba(37,211,102,.05); border-color: #25D366; }

/* ═══════════ Toast ═══════════ */
.ka-toast-container {
  position: fixed; top: 20px; left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.ka-toast {
  background: var(--ink-1);
  color: var(--bg-1);
  padding: 12px 20px;
  border-radius: var(--r);
  box-shadow: var(--shadow-xl);
  font-size: .9rem;
  font-weight: 600;
  animation: slideDown .3s ease-out;
  pointer-events: all;
  min-width: 200px;
}
.ka-toast.success { background: var(--success); color: white; }
.ka-toast.error   { background: var(--danger); color: white; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════ Bottom Sheet ═══════════ */
.ka-sheet-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  animation: fadeIn .2s;
}
.ka-sheet {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg-1);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 24px 20px 32px;
  box-shadow: var(--shadow-xl);
  z-index: 1001;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp .3s cubic-bezier(.2,.9,.3,1);
}
.ka-sheet-handle {
  width: 40px; height: 4px;
  background: var(--line);
  border-radius: 2px;
  margin: 0 auto 16px;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

/* ═══════════ Estati bar / progress ═══════════ */
.ka-status-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--bg-2);
  border-radius: var(--r);
  border-left: 4px solid var(--primary);
  font-size: .88rem;
  margin-bottom: 12px;
}
.ka-status-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

/* ═══════════ Tab bar (mobile navigation) ═══════════ */
.ka-tabbar {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--tabbar-h);
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  display: flex;
  padding: 8px;
  z-index: 50;
  backdrop-filter: blur(12px);
  padding-bottom: env(safe-area-inset-bottom, 8px);
}
.ka-tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--ink-4);
  text-decoration: none;
  font-size: .7rem; font-weight: 600;
  border-radius: var(--r);
  transition: color .15s;
}
.ka-tab-icon { font-size: 1.4rem; }
.ka-tab.active { color: var(--primary); }
.ka-tab:hover { text-decoration: none; }

/* ═══════════ Table (admin) ═══════════ */
.ka-table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-2);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ka-table th, .ka-table td { padding: 12px 16px; text-align: left; font-size: .88rem; }
.ka-table th {
  background: var(--bg-3);
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .05em;
}
.ka-table tbody tr { border-top: 1px solid var(--line-2); }
.ka-table tbody tr:hover { background: var(--bg-3); }

/* ═══════════ Metric card (admin) ═══════════ */
.ka-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.ka-metric {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
}
.ka-metric-label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.ka-metric-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink-1);
  letter-spacing: -.02em;
}
.ka-metric-delta { font-size: .78rem; color: var(--success); font-weight: 600; margin-top: 4px; }
.ka-metric-delta.down { color: var(--danger); }

/* ═══════════ Rating (stars) ═══════════ */
.ka-stars { display: inline-flex; gap: 4px; }
.ka-stars button {
  background: none; border: none; padding: 4px;
  font-size: 2rem; line-height: 1;
  color: var(--line);
  cursor: pointer;
  transition: color .15s, transform .1s;
}
.ka-stars button.active,
.ka-stars button:hover,
.ka-stars button:hover ~ button:not(.active) { color: var(--accent); }
.ka-stars button:hover { transform: scale(1.2); }

/* ═══════════ Loading spinner ═══════════ */
.ka-spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 3px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.ka-skeleton {
  background: linear-gradient(90deg, var(--bg-3) 0%, var(--line) 50%, var(--bg-3) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ═══════════ Zon selector ═══════════ */
.ka-zone-picker {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px;
}
.ka-zone-btn {
  padding: 14px 12px;
  background: var(--bg-2);
  border: 2px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  transition: all .15s;
  text-align: center;
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink-1);
}
.ka-zone-btn:hover { border-color: var(--primary); background: rgba(15,42,79,.05); }
.ka-zone-btn.active { border-color: var(--primary); background: var(--primary); color: white; }

/* ═══════════ Region group (accordion) ═══════════ */
.ka-region-group { margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ka-region-head {
  padding: 12px 14px;
  background: var(--bg-3);
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700;
  transition: background .15s;
  user-select: none;
}
.ka-region-head:hover { background: var(--line); }
.ka-region-count { font-size: .78rem; color: var(--ink-4); font-weight: 600; }
.ka-region-toggle { color: var(--ink-4); transition: transform .2s; }
.ka-region-group.open .ka-region-toggle { transform: rotate(90deg); }
.ka-region-body { display: none; padding: 10px; background: var(--bg-1); }
.ka-region-group.open .ka-region-body { display: block; }
.ka-region-group.detected .ka-region-head {
  background: linear-gradient(135deg, rgba(15,42,79,.06), rgba(43,127,240,.04));
  border-left: 4px solid var(--primary);
}

/* ═══════════ GPS bar ═══════════ */
.ka-gps-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(0,166,81,.08);
  border: 1px solid rgba(0,166,81,.25);
  border-radius: var(--r);
  font-size: .85rem;
  margin-bottom: 12px;
  color: var(--ink-2);
}
.ka-gps-bar.error { background: rgba(220,38,38,.08); border-color: rgba(220,38,38,.25); }
.ka-gps-bar.loading { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.25); }

/* ═══════════ Channel tabs (App/WA/SMS/Call/Sched) ═══════════ */
.ka-channel-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 6px;
  background: var(--bg-3);
  border-radius: var(--r);
  margin-bottom: 16px;
}
.ka-channel-tab {
  padding: 10px 6px;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  background: transparent;
  color: var(--ink-3);
  font-size: .72rem;
  font-weight: 700;
  border: none;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.ka-channel-tab:hover { background: var(--bg-2); }
.ka-channel-tab.active { background: var(--primary); color: white; box-shadow: var(--shadow-red); }
.ka-channel-tab-icon { font-size: 1.3rem; line-height: 1; }
@media (max-width: 380px) {
  .ka-channel-tab-icon { font-size: 1.1rem; }
  .ka-channel-tab { font-size: .65rem; }
}

/* ═══════════ Channel cards (taptapnou-style, gwo) ═══════════ */
.ka-channel-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.ka-channel-card {
  padding: 20px 16px;
  border-radius: var(--r-lg);
  background: var(--bg-2);
  border: 2px solid var(--line);
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  color: var(--ink-1);
  text-decoration: none;
  display: block;
  position: relative;
}
.ka-channel-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.ka-channel-card.active {
  border-width: 2px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.ka-channel-card-icon {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 10px;
  display: block;
}
.ka-channel-card-title {
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ka-channel-card-desc {
  font-size: .82rem;
  color: var(--ink-4);
  line-height: 1.35;
}

/* Koulè pou chak kanal (bòd + tit) */
.ka-channel-card.app { border-color: rgba(59,130,246,.35); }
.ka-channel-card.app .ka-channel-card-title { color: #3B82F6; }
.ka-channel-card.app.active { border-color: #3B82F6; background: rgba(59,130,246,.06); }

.ka-channel-card.whatsapp { border-color: rgba(37,211,102,.35); }
.ka-channel-card.whatsapp .ka-channel-card-title { color: #25D366; }
.ka-channel-card.whatsapp.active { border-color: #25D366; background: rgba(37,211,102,.06); }

.ka-channel-card.sms { border-color: rgba(245,158,11,.35); }
.ka-channel-card.sms .ka-channel-card-title { color: #F59E0B; }
.ka-channel-card.sms.active { border-color: #F59E0B; background: rgba(245,158,11,.06); }

.ka-channel-card.call { border-color: rgba(139,92,246,.35); }
.ka-channel-card.call .ka-channel-card-title { color: #8B5CF6; }
.ka-channel-card.call.active { border-color: #8B5CF6; background: rgba(139,92,246,.06); }

.ka-channel-card.sched { border-color: rgba(15,42,79,.35); }
.ka-channel-card.sched .ka-channel-card-title { color: var(--primary); }
.ka-channel-card.sched.active { border-color: var(--primary); background: rgba(15,42,79,.06); }

/* ═══════════ Opsyon (Chajman / Pataje) — Taptapnou style ═══════════ */
.ka-opsyon-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.ka-opsyon-card {
  padding: 22px 12px;
  border-radius: var(--r-lg);
  background: var(--bg-2);
  border: 2px solid var(--line);
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  user-select: none;
  position: relative;
}
.ka-opsyon-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ka-opsyon-icon { font-size: 2.2rem; line-height: 1; margin-bottom: 8px; display: block; }
.ka-opsyon-title {
  font-weight: 900;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.ka-opsyon-desc {
  font-size: .75rem;
  color: var(--ink-4);
  line-height: 1.35;
  margin-bottom: 8px;
}
.ka-opsyon-pct {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 99px;
  font-weight: 800;
  font-size: .85rem;
}

/* Chajman = orange +50% */
.ka-opsyon-card.chajman { border-color: rgba(245,158,11,.35); }
.ka-opsyon-card.chajman .ka-opsyon-title { color: #F59E0B; }
.ka-opsyon-card.chajman .ka-opsyon-pct { background: rgba(245,158,11,.15); color: #C97A00; }
.ka-opsyon-card.chajman.active {
  border-color: #F59E0B;
  background: linear-gradient(135deg, rgba(245,158,11,.10), rgba(245,158,11,.02));
  box-shadow: 0 12px 28px rgba(245,158,11,.18);
}

/* Pataje = green -25% */
.ka-opsyon-card.pataje { border-color: rgba(0,166,81,.35); }
.ka-opsyon-card.pataje .ka-opsyon-title { color: #00A651; }
.ka-opsyon-card.pataje .ka-opsyon-pct { background: rgba(0,166,81,.15); color: #007A3D; }
.ka-opsyon-card.pataje.active {
  border-color: #00A651;
  background: linear-gradient(135deg, rgba(0,166,81,.10), rgba(0,166,81,.02));
  box-shadow: 0 12px 28px rgba(0,166,81,.18);
}

/* ═══════════ SMS preview ═══════════ */
.ka-sms-box {
  padding: 14px;
  background: var(--bg-3);
  border: 1px dashed var(--line);
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: .82rem;
  white-space: pre-wrap;
  color: var(--ink-2);
  min-height: 120px;
  max-height: 200px;
  overflow-y: auto;
}

/* ═══════════ DOW picker (Days of Week) ═══════════ */
.ka-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ka-dow-btn {
  padding: 10px 0;
  background: var(--bg-2);
  border: 2px solid var(--line);
  border-radius: 10px;
  font-weight: 700;
  font-size: .78rem;
  cursor: pointer;
  transition: all .15s;
  color: var(--ink-2);
}
.ka-dow-btn.active { border-color: var(--primary); background: var(--primary); color: white; }

/* ═══════════ Suggestion row ═══════════ */
.ka-suggest {
  padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  transition: all .1s;
  margin-bottom: 4px;
  font-size: .9rem;
}
.ka-suggest:hover { border-color: var(--primary); background: rgba(15,42,79,.03); }
.ka-suggest-icon { font-size: 1.1rem; opacity: .7; }

/* ═══════════ Ride card (list) ═══════════ */
.ka-ride-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 10px;
  transition: transform .1s, box-shadow .15s;
  cursor: pointer;
}
.ka-ride-card:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.ka-ride-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ka-ride-code { font-family: var(--font-mono); font-size: .82rem; font-weight: 700; color: var(--ink-4); }
.ka-ride-route { display: flex; gap: 10px; align-items: flex-start; }
.ka-ride-dots {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 4px;
}
.ka-ride-dot { width: 8px; height: 8px; border-radius: 50%; }
.ka-ride-dot.from { background: var(--success); }
.ka-ride-dot.to { background: var(--primary); }
.ka-ride-line { width: 2px; height: 20px; background: var(--line); }
.ka-ride-route-info { flex: 1; font-size: .9rem; }
.ka-ride-route-label { color: var(--ink-4); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.ka-ride-route-value { color: var(--ink-1); font-weight: 600; margin-bottom: 6px; }
.ka-ride-price {
  font-size: 1.2rem; font-weight: 800; color: var(--primary);
  text-align: right;
}

/* ═══════════ Utility ═══════════ */
.ka-flex { display: flex; }
.ka-gap-4 { gap: 4px; }
.ka-gap-8 { gap: 8px; }
.ka-gap-12 { gap: 12px; }
.ka-gap-16 { gap: 16px; }
.ka-flex-1 { flex: 1; }
.ka-center { display: flex; align-items: center; justify-content: center; }
.ka-between { display: flex; align-items: center; justify-content: space-between; }
.ka-mt-8  { margin-top: 8px; }
.ka-mt-16 { margin-top: 16px; }
.ka-mt-24 { margin-top: 24px; }
.ka-mb-8  { margin-bottom: 8px; }
.ka-mb-16 { margin-bottom: 16px; }
.ka-mb-24 { margin-bottom: 24px; }
.ka-text-center { text-align: center; }
.ka-text-primary { color: var(--primary); }
.ka-text-muted { color: var(--ink-4); }
.ka-text-lg { font-size: 1.1rem; }
.ka-text-sm { font-size: .82rem; }
.ka-font-bold { font-weight: 700; }
.ka-hidden { display: none !important; }

/* ═══════════ Responsive ═══════════ */
@media (min-width: 768px) {
  .ka-page { padding: 32px 24px 60px; max-width: 1100px; }
  .ka-hero-title { font-size: 2.4rem; }
  .ka-tabbar { display: none; }
  .ka-page-with-tabbar { padding-bottom: 60px; }
}

/* ═══════════ Leaflet override ═══════════ */
.leaflet-container { background: var(--bg-3); font-family: var(--font-sans); }
.leaflet-popup-content-wrapper { border-radius: var(--r); box-shadow: var(--shadow-lg); }

/* ═══════════ Safe area (iPhone notch) ═══════════ */
@supports (padding-top: env(safe-area-inset-top)) {
  .ka-header { padding-top: env(safe-area-inset-top); height: calc(var(--header-h) + env(safe-area-inset-top)); }
}

/* ═══════════════════════════════════════════════════════════════
   Taptapnou-style Numbered Sections & Price Card
═══════════════════════════════════════════════════════════════ */

/* Numbered section header (blue circle badge) */
.ka-numsec {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.ka-numsec-badge {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-blue, #3B82F6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
}
.ka-numsec-title {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent-blue, #3B82F6);
}

/* Card wrapper with blue border (taptapnou style) */
.ka-card-blue {
  border: 1px solid rgba(59,130,246,.35);
  border-radius: var(--r-lg);
  padding: 20px;
  background: var(--bg-2);
  margin-bottom: 16px;
}

/* Selected destination card */
.ka-dest-selected {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(59,130,246,.06);
  border: 1px solid rgba(59,130,246,.25);
  border-radius: var(--r);
  margin-bottom: 12px;
}
.ka-dest-selected-icon { font-size: 1.6rem; }
.ka-dest-selected-info { flex: 1; min-width: 0; }
.ka-dest-selected-name { font-weight: 800; font-size: 1.1rem; color: var(--accent-blue, #3B82F6); }
.ka-dest-selected-coords { font-size: .78rem; color: var(--ink-4); font-family: var(--font-mono); }
.ka-dest-change-btn {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-3);
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
}
.ka-dest-change-btn:hover { border-color: var(--ink-3); color: var(--ink-1); }

/* Price card (green style taptapnou) */
.ka-price-card {
  padding: 18px 20px;
  background: rgba(0,166,81,.08);
  border: 1px solid rgba(0,166,81,.3);
  border-radius: var(--r-lg);
  margin-bottom: 16px;
}
.ka-price-total {
  font-size: 2rem;
  font-weight: 900;
  color: var(--success);
  line-height: 1;
  margin-bottom: 8px;
}
.ka-price-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: var(--ink-3);
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.ka-price-dist-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: rgba(0,166,81,.2);
  color: var(--success);
  border-radius: 99px;
  font-weight: 700;
  font-size: .78rem;
}
.ka-price-mc {
  color: var(--warning);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .88rem;
}

/* Tarif itemized breakdown */
.ka-tarif-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
}
.ka-tarif-row:last-child { border-bottom: none; }
.ka-tarif-total {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-weight: 900;
  color: var(--success);
}

/* Cash/MonCash split inputs */
.ka-pay-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.ka-pay-input-wrap {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 8px 14px;
}
.ka-pay-input-label {
  font-size: .72rem;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
}
.ka-pay-input-wrap input {
  border: none;
  background: transparent;
  color: var(--ink-1);
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-mono);
  width: 100%;
  padding: 4px 0;
  outline: none;
}

/* ═══════════════════════════════════════════════════════════════
   InDrive-style Mobile Layout
═══════════════════════════════════════════════════════════════ */

/* ─── Top service tabs (Ride/Eats/Courier) ─── */
.ka-nav-top {
  display: flex;
  padding: 12px 8px 8px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  gap: 4px;
}
.ka-nav-top::-webkit-scrollbar { display: none; }
.ka-nav-item {
  flex: 1;
  min-width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px 8px;
  border-radius: 12px;
  color: var(--ink-3);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  transition: color .15s;
  position: relative;
}
.ka-nav-item:hover { color: var(--ink-1); text-decoration: none; }
.ka-nav-item.active { color: var(--ink-1); }
.ka-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 30%;
  right: 30%;
  height: 3px;
  background: var(--ink-1);
  border-radius: 2px;
}
.ka-nav-item-emoji { font-size: 1.8rem; line-height: 1; margin-bottom: 4px; }

/* ─── Quick search bar (Where to?) ─── */
.ka-quick-search {
  margin: 14px 16px 12px;
  padding: 4px 4px 4px 20px;
  background: var(--bg-2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
}
.ka-quick-search-icon { font-size: 1.2rem; opacity: .6; }
.ka-quick-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 0;
  font-size: 1rem;
  color: var(--ink-1);
  outline: none;
  font-family: inherit;
}
.ka-quick-search-input::placeholder { color: var(--ink-4); }
.ka-quick-search-later {
  padding: 10px 16px;
  background: var(--bg-3);
  border-radius: 10px;
  color: var(--ink-2);
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background .15s;
}
.ka-quick-search-later:hover { background: var(--line); }

/* ─── Saved places (Work/Home/+) ─── */
.ka-saved-list {
  margin: 0 16px 12px;
  background: var(--bg-2);
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.ka-saved-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-2);
  cursor: pointer;
  color: var(--ink-1);
  text-decoration: none;
  transition: background .1s;
}
.ka-saved-row:last-child { border-bottom: none; }
.ka-saved-row:hover { background: var(--bg-3); text-decoration: none; }
.ka-saved-row-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.ka-saved-row-info { flex: 1; min-width: 0; }
.ka-saved-row-title { font-weight: 700; font-size: 1rem; }
.ka-saved-row-sub { font-size: .78rem; color: var(--ink-4); }
.ka-saved-row-arrow { color: var(--ink-4); font-size: 1.2rem; opacity: .6; }
.ka-saved-row.add .ka-saved-row-title { color: var(--ink-4); font-weight: 600; }

/* ─── Upcoming reservations card ─── */
.ka-upcoming {
  margin: 12px 16px;
  padding: 16px;
  background: var(--bg-2);
  border-radius: 14px;
  border: 1px solid var(--line);
}
.ka-upcoming-title {
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.ka-upcoming-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ka-upcoming-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(15,42,79,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.ka-upcoming-body { flex: 1; min-width: 0; }
.ka-upcoming-date { font-size: .72rem; color: var(--ink-4); font-weight: 600; }
.ka-upcoming-info { font-weight: 700; font-size: .9rem; color: var(--ink-1); }
.ka-upcoming-driver { font-size: .78rem; color: var(--success); font-weight: 600; }
.ka-upcoming-actions { display: flex; gap: 8px; }
.ka-upcoming-msg {
  padding: 8px 16px;
  background: var(--success);
  color: white;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
}
.ka-upcoming-cancel {
  padding: 8px 12px;
  color: var(--danger);
  background: transparent;
  border: none;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}

/* ─── For You cards ─── */
.ka-for-you { margin: 20px 16px 100px; }
.ka-for-you-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink-1);
  margin-bottom: 12px;
}
.ka-for-you-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.ka-for-you-card {
  padding: 20px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  color: var(--ink-1);
  text-decoration: none;
  transition: all .15s;
}
.ka-for-you-card:hover { transform: translateY(-2px); border-color: var(--primary); text-decoration: none; }
.ka-for-you-card-icon { font-size: 2rem; margin-bottom: 6px; }
.ka-for-you-card-title { font-weight: 700; font-size: .82rem; }

/* ─── Bottom nav bar ─── */
.ka-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 4px;
  z-index: 60;
}
.ka-bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  border-radius: 12px;
  color: var(--ink-4);
  font-size: .68rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: color .15s, background .15s;
}
.ka-bnav-item:hover { color: var(--ink-2); text-decoration: none; }
.ka-bnav-item.active {
  background: var(--success);
  color: white;
}
.ka-bnav-item.active .ka-bnav-icon { color: white; }
.ka-bnav-icon { font-size: 1.3rem; line-height: 1; }
.ka-bnav-label { font-size: .68rem; }

/* Ajiste espasman kontni pou pa kache pa bottom nav */
.ka-has-bnav { padding-bottom: 110px; }
@media (max-width: 480px) {
  .ka-has-bnav { padding-bottom: 100px; }
}

/* Map picker responsif — evite chevoshan ak bottom nav */
.ka-picker-map {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 8px;
  position: relative;
  z-index: 1;                      /* Rete anba bottom-nav (z:60) */
}
/* Leaflet controls dwe rete anndan map — pa flote sou bottom nav */
.ka-picker-map .leaflet-control-container,
.ka-picker-map .leaflet-top,
.ka-picker-map .leaflet-bottom {
  z-index: 2;
}
.ka-picker-map .leaflet-control-attribution {
  font-size: .65rem;
  background: rgba(255,255,255,.85);
}
