/* PK Cargo Link — Driver portal cute layer | Light theme, violet #7C3AED, Nafees Web Naskh */
@font-face {
  font-family: 'Nafees Web Naskh';
  src: url('fonts/NafeesWeb.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --primary: #7C3AED;
  --primary-dark: #4C1D95;
  --primary-soft: #EDE9FE;
  --bg: #F6F5FB;
  --card: #FFFFFF;
  --text: #1F2937;
  --muted: #6B7280;
  --line: #E5E7EB;
  --ok: #10B981;
  --danger: #DC2626;
  --radius: 20px;
  --shadow: 0 4px 20px rgba(124, 58, 237, 0.10);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Nafees Web Naskh', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 96px;
}
/* Latin text and digits always render in a clean sans, never in the Urdu font. */
.num, .latin, a[href^="tel:"], .phone {
  font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  direction: ltr;
  unicode-bidi: embed;
}
a { color: var(--primary); text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: 16px; }
input, select, textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line);
  border-radius: 14px; background: #fff; color: var(--text); outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
.hidden { display: none !important; }
/* ---------- Splash ---------- */
#pkcl-splash {
  position: fixed; inset: 0; z-index: 200; background: #fff;
  display: flex; align-items: center; justify-content: center;
}
#pkcl-splash img { width: 100%; height: 100%; object-fit: cover; }
#pkcl-splash.pkcl-splash-hide { display: none; }
/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 18px;
  margin: 12px;
}
.card h2, .card h3 { margin: 0 0 10px; color: var(--primary-dark); }
/* ---------- Topbar ---------- */
.topbar {
  background: var(--primary);
  color: #fff;
  padding: 14px 16px;
  position: sticky; top: 0; z-index: 100;
}
.topbar .brand { font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.topbar .brand .glyph { width: 42px; height: 30px; }
/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:active { background: var(--primary-dark); }
.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}
/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tabs button {
  flex: 1; padding: 10px;
  border: 1.5px solid var(--line); background: #fff;
  border-radius: 999px; cursor: pointer; font-weight: 600;
}
.tabs button.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); }
/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.chip {
  padding: 8px 14px;
  border: 1.5px solid var(--line); background: #fff;
  border-radius: 999px; cursor: pointer;
}
.chip.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); font-weight: 700; }
/* ---------- Views ---------- */
.view { padding-bottom: 16px; }
.view > h3 { margin: 16px 16px 8px; color: var(--primary-dark); }
/* ---------- Bottom nav ---------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  display: flex;
  background: #fff;
  border-top: 1.5px solid var(--line);
  z-index: 100;
}
.bottom-nav button {
  flex: 1; padding: 10px 4px 14px;
  background: none; border: none;
  color: var(--muted); font-size: 13px; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.bottom-nav button.on { color: var(--primary); }
.bottom-nav .ic .ic-img { width: 22px; height: 22px; }
.ic-img { width: 18px; height: 18px; vertical-align: -3px; }
/* ---------- Chat ---------- */
.chat-box {
  max-height: 260px; overflow-y: auto;
  border: 1.5px solid var(--line); border-radius: 14px;
  padding: 10px; margin-bottom: 10px; background: #FAFAFD;
}
.chat-msg { margin: 6px 0; padding: 8px 12px; border-radius: 14px; max-width: 85%; }
.chat-msg.me { background: var(--primary-soft); margin-inline-start: auto; }
.chat-msg.them { background: #fff; border: 1px solid var(--line); }
/* ---------- Misc ---------- */
.muted { color: var(--muted); font-size: 14px; }
.guest-escape { display: inline-block; margin-top: 10px; color: var(--primary); cursor: pointer; }
.site-footer {
  text-align: center; color: var(--muted);
  font-size: 13px; padding: 20px 16px 90px;
}
.icon-credit { font-size: 12px; margin-top: 6px; }

/* ============ CUTE LAYER — soft rounded cards, violet glow, playful details ============ */
.card { border-radius: 24px; border: 1px solid #EDE9FE; box-shadow: 0 10px 30px rgba(124,58,237,.12); }
.card:hover { transform: translateY(-2px); transition: transform .2s ease; box-shadow: 0 14px 36px rgba(124,58,237,.18); }
.btn-primary { background: linear-gradient(135deg, #7C3AED, #A78BFA); box-shadow: 0 6px 18px rgba(124,58,237,.35); }
.btn-primary:active { transform: scale(.97); }
.chip.on { background: linear-gradient(135deg, #EDE9FE, #DDD6FE); }
.bottom-nav { border-top: 2px solid #EDE9FE; box-shadow: 0 -6px 20px rgba(124,58,237,.10); }
.bottom-nav button.on { color: #7C3AED; }
.hero-blob { text-align: center; margin-bottom: 12px; }
.hero-blob svg { max-width: 300px; height: auto; }
.mini-pickup { text-align: center; margin: 4px 0 8px; }
.mini-pickup svg { width: 180px; height: auto; }
.glyph { width: 42px; height: 30px; }
.empty-art { text-align: center; padding: 24px 8px; color: #6B7280; }
.empty-art svg { width: 170px; height: auto; opacity: .95; }
.view h3 { color: #4C1D95; }
