/* PK Cargo Link — Rebuild 2 (adda portal) | 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; }


/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 4px;
  direction: ltr; /* Logo (brand) left, notification bell right — Adeel 2026-10-30 */
}
.brand { font-weight: 700; font-size: 20px; color: var(--primary-dark); }
.brand .latin { font-size: 19px; letter-spacing: 0.2px; }
.bell { font-size: 24px; background: #fff; border: 1px solid var(--line);
  border-radius: 50%; width: 44px; height: 44px; cursor: pointer;
  box-shadow: var(--shadow); position: relative; }
.bell .dot { position: absolute; top: 8px; left: 10px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--danger); }

/* ---------- Freshness strip ---------- */
#fresh-strip {
  margin: 10px 16px 0; padding: 10px 14px; border-radius: 14px;
  background: var(--primary-soft); color: var(--primary-dark);
  font-size: 15px; text-align: center;
}

/* ---------- Cards / sections ---------- */
.view { padding: 12px 16px; }
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px;
}
.card h2, .card h3 { margin: 0 0 8px; color: var(--primary-dark); }
.muted { color: var(--muted); font-size: 14px; }
.route { font-size: 20px; font-weight: 700; }
.route .arrow { color: var(--primary); padding: 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 16px; cursor: pointer; min-height: 44px;
}
.chip.on { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Buttons ---------- */
.btn {
  display: block; width: 100%; min-height: 52px; border: none; border-radius: 16px;
  font-weight: 700; font-size: 17px; cursor: pointer; padding: 12px;
  text-align: center; margin-top: 10px;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-dark { background: var(--primary-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { margin-top: 0; }
.btn-call { background: var(--ok); color: #fff; }
.btn-wa { background: #25D366; color: #fff; }
.btn:disabled { opacity: 0.55; }

/* ---------- Load cards ---------- */
.load-card .meta { color: var(--muted); font-size: 14px; }
.badge { display: inline-block; background: var(--primary-soft); color: var(--primary-dark);
  border-radius: 999px; padding: 2px 12px; font-size: 13px; }
.badge.ok { background: #D1FAE5; color: #065F46; }

/* ---------- Bottom nav ---------- */
.bottom-nav {
  position: fixed; bottom: 0; right: 50%; transform: translateX(50%);
  width: 100%; max-width: 480px; background: #fff;
  border-top: 1px solid var(--line); display: flex; z-index: 50;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}
.bottom-nav button {
  flex: 1; background: none; border: none; padding: 10px 2px 8px;
  font-size: 13px; color: var(--muted); cursor: pointer;
}
.bottom-nav button .ic { display: block; font-size: 22px; }
.bottom-nav button.on { color: var(--primary); font-weight: 700; }

/* ---------- Overlays ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(31, 41, 55, 0.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.overlay .sheet {
  background: #fff; border-radius: 24px; width: 100%; max-width: 430px;
  padding: 22px; max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow);
}
.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tabs button { flex: 1; min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fff; cursor: pointer; font-weight: 600; }
.tabs button.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.msg { padding: 10px 12px; border-radius: 12px; margin-top: 10px; font-size: 15px; }
.msg.err { background: #FEE2E2; color: #991B1B; }
.msg.ok { background: #D1FAE5; color: #065F46; }
.guest-escape { display: block; text-align: center; margin-top: 14px; cursor: pointer; color: var(--muted); }

/* ---------- Chat ---------- */
.chat-box { max-height: 46vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: 15px; }
.chat-msg.me { align-self: flex-start; background: var(--primary); color: #fff; }
.chat-msg.them { align-self: flex-end; background: var(--primary-soft); }
footer.site-footer { padding: 8px 16px 20px; text-align: center; color: var(--muted); font-size: 13px; }
footer.site-footer a { margin: 0 8px; }

/* ---------- 3D icons (rebuild2) ---------- */
img.ic-img { width: 20px; height: 20px; object-fit: contain; vertical-align: middle; }
.bottom-nav .ic img.ic-img { display: block; margin: 0 auto; width: 26px; height: 26px; }
img.ic-img.ic-inline { width: 14px; height: 14px; }
.icon-credit { font-size: 12px; margin-top: 6px; }

/* ---------- Notice banner (admin-controlled alert, 2026-10-30) ---------- */
.notice-banner { margin: 10px 16px 0; padding: 12px 14px; border-radius: 14px; background: #FEF3C7; border: 1.5px solid #F59E0B; color: #92400E; font-weight: 700; font-size: 15px; line-height: 1.7; }

/* ---------- Cute layer (2026-10-30 full-site redesign: Porter-style polish) ---------- */
.card { border-radius: 24px; border: 1px solid #EDE9FE; box-shadow: 0 8px 28px rgba(124, 58, 237, 0.12); }
.hero-blob { background: linear-gradient(180deg, #EDE9FE 0%, #FFFFFF 100%); border-radius: 24px; padding: 12px 12px 2px; margin-bottom: 12px; }
.hero-blob svg { width: 100%; max-width: 300px; height: auto; display: block; margin: 0 auto; }
.brand .glyph { width: 28px; height: 28px; vertical-align: middle; margin-left: 2px; }
.bottom-nav button.on { background: var(--primary-soft); border-radius: 14px 14px 0 0; }
.chip.on { box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25); }
.btn-primary { box-shadow: 0 6px 16px rgba(124, 58, 237, 0.30); }
.empty-art { text-align: center; padding: 6px 0 0; }
.empty-art svg { width: 150px; height: auto; }
.road { border-top: 3px dashed #DDD6FE; margin: 14px 0; }
.mini-pickup { text-align: center; }
.mini-pickup svg { width: 180px; height: auto; }
