/* Kuantar design system — Material 3 inspired, brand colours from the logo. */
:root {
  --primary: #1E46E6;
  --primary-600: #1838C4;
  --primary-700: #0B27A8;
  --primary-50: #EEF2FF;
  --primary-100: #DDE5FF;
  --navy: #071A6E;
  --ink: #0B1437;
  --accent: #FFC21A;
  --accent-700: #B7860B;
  --ride: #6A2BD9; --car: #1E5BF0; --food: #FF7300; --mart: #16A34A; --send: #1D3FD0; --ppob: #0EA5E9; --courier: #F59E0B;
  --success: #16A34A; --success-bg: #E8F7EE;
  --warning: #B45309; --warning-bg: #FFF7E0;
  --danger: #DC2626; --danger-bg: #FDECEC;
  --info: #0369A1; --info-bg: #E6F4FB;
  --bg: #F5F7FC;
  --surface: #FFFFFF;
  --surface-2: #F0F3FA;
  --outline: #D8DEEC;
  --outline-soft: #E8ECF5;
  --text: #0B1437;
  --text-2: #4A5578;
  --text-3: #7A84A3;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-1: 0 1px 2px rgba(11, 20, 55, .06), 0 1px 3px rgba(11, 20, 55, .08);
  --shadow-2: 0 4px 12px rgba(11, 20, 55, .08), 0 2px 4px rgba(11, 20, 55, .05);
  --shadow-3: 0 16px 40px rgba(11, 39, 168, .16);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Poppins', var(--font);
  --container: 1200px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }
.section { padding: 72px 0; }
.section.alt { background: var(--surface); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); background: var(--primary-50); padding: 6px 12px; border-radius: 999px; margin-bottom: 12px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flex { display: flex; gap: 12px; align-items: center; }
.flex.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } .section { padding: 48px 0; } }

/* Material Symbols */
.ms { font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; font-size: 24px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga'; font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; vertical-align: middle; user-select: none; }
.ms.sm { font-size: 18px; } .ms.lg { font-size: 32px; } .ms.xl { font-size: 44px; }
.ms.outline { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* Buttons */
.btn { --b: var(--primary); display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; background: var(--b); color: #fff; font: 600 .95rem/1 var(--font); cursor: pointer; text-decoration: none !important; transition: background .15s, box-shadow .15s, transform .05s, color .15s; white-space: nowrap; }
.btn:hover { background: var(--primary-600); box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--primary-100); outline-offset: 2px; }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
.btn.lg { height: 54px; padding: 0 28px; font-size: 1.02rem; }
.btn.sm { height: 34px; padding: 0 14px; font-size: .85rem; }
.btn.block { width: 100%; }
.btn.tonal { background: var(--primary-50); color: var(--primary-700); }
.btn.tonal:hover { background: var(--primary-100); box-shadow: none; }
.btn.outline { background: transparent; color: var(--primary); border-color: var(--outline); }
.btn.outline:hover { background: var(--primary-50); box-shadow: none; }
.btn.text { background: transparent; color: var(--primary); padding: 0 12px; }
.btn.text:hover { background: var(--primary-50); box-shadow: none; }
.btn.accent { background: var(--accent); color: var(--ink); }
.btn.accent:hover { background: #F5B400; }
.btn.white { background: #fff; color: var(--primary-700); }
.btn.white:hover { background: var(--primary-50); }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #B91C1C; }
.btn.success { background: var(--success); }
.btn.wa { background: #25D366; color: #fff; }
.btn.wa:hover { background: #1EBE5A; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

/* Cards */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: 24px; border: 1px solid var(--outline-soft); }
.card.flat { box-shadow: none; }
.card.pad-sm { padding: 16px; }
.card h3 { margin-top: 0; }
.card-link { display: block; color: inherit; text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }

/* Chips & badges */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: .85rem; font-weight: 500; border: 1px solid var(--outline-soft); }
.chip.on { background: var(--primary-50); color: var(--primary-700); border-color: var(--primary-100); }
button.chip { cursor: pointer; font-family: inherit; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.badge.success, .badge.completed, .badge.paid, .badge.approved, .badge.active, .badge.ok { background: var(--success-bg); color: var(--success); }
.badge.warning, .badge.pending, .badge.searching, .badge.pending_payment, .badge.processing, .badge.awaiting_payment { background: var(--warning-bg); color: var(--warning); }
.badge.danger, .badge.cancelled, .badge.failed, .badge.rejected, .badge.suspended, .badge.no_driver, .badge.expired { background: var(--danger-bg); color: var(--danger); }
.badge.info, .badge.accepted, .badge.arrived_pickup, .badge.picked_up, .badge.refunded { background: var(--info-bg); color: var(--info); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field .hint { font-size: .8rem; color: var(--text-3); }
.input, select.input, textarea.input { width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--outline); background: var(--surface); font: inherit; color: var(--text); transition: border-color .15s, box-shadow .15s; }
textarea.input { min-height: 110px; resize: vertical; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-50); }
.input-icon { position: relative; }
.input-icon .ms { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.input-icon .input { padding-left: 46px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { appearance: none; width: 46px; height: 26px; border-radius: 999px; background: var(--outline); position: relative; cursor: pointer; transition: background .2s; flex: 0 0 auto; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: var(--shadow-1); }
.switch input:checked { background: var(--primary); }
.switch input:checked::after { transform: translateX(20px); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: minmax(0, 1fr); } }

/* Alerts / flash */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; margin-bottom: 16px; background: var(--info-bg); color: var(--info); font-weight: 500; }
.alert.success { background: var(--success-bg); color: var(--success); }
.alert.error { background: var(--danger-bg); color: var(--danger); }
.alert.warning { background: var(--warning-bg); color: var(--warning); }
.alert .ms { flex: 0 0 auto; }
.alert .close { margin-left: auto; background: none; border: 0; color: inherit; cursor: pointer; opacity: .7; }
.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow-3); font-weight: 500; pointer-events: auto; animation: toastIn .2s ease-out; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 900; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--outline-soft); }
.site-header .bar { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav a, .nav-drop > button { color: var(--text-2); font: 500 .95rem var(--font); padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.nav a:hover, .nav a.active, .nav-drop > button:hover, .nav-drop > button.active, .nav-drop.open > button { color: var(--primary-700); background: var(--primary-50); text-decoration: none; }
.nav-drop > button { display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; cursor: pointer; }
.nav-drop .dropdown-menu { left: 0; right: auto; }
.nav-drop .dropdown-menu a { border-radius: 10px; color: var(--text); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-3); border: 1px solid var(--outline-soft); padding: 6px; display: none; z-index: 1000; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; color: var(--text); font: 500 .92rem var(--font); background: none; border: 0; cursor: pointer; text-align: left; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-2); text-decoration: none; }
.dropdown-menu hr { border: 0; border-top: 1px solid var(--outline-soft); margin: 6px 0; }
.lang-btn { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--outline); background: var(--surface); font: 600 .85rem var(--font); color: var(--text-2); cursor: pointer; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; overflow: hidden; flex: 0 0 auto; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--surface); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; margin: 0; border-bottom: 1px solid var(--outline-soft); box-shadow: var(--shadow-2); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  /* Mobile menu: partner links listed inline instead of a nested dropdown. */
  .nav-drop > button { display: none; }
  .nav-drop .dropdown-menu { display: block; position: static; box-shadow: none; border: 0; padding: 0; min-width: 0; background: none; }
  .nav-drop .dropdown-menu a { padding: 12px 14px; color: var(--text-2); font-size: .95rem; }
  .header-actions .hide-sm { display: none; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% -10%, rgba(58, 107, 255, .35), transparent 60%), linear-gradient(160deg, #0B27A8 0%, #1E46E6 55%, #3A6BFF 100%); color: #fff; padding: 72px 0 96px; }
.hero::after { content: ''; position: absolute; right: -180px; bottom: -220px; width: 620px; height: 620px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .06); }
.hero h1, .hero h2 { color: #fff; }
.hero .lead { font-size: 1.2rem; color: rgba(255, 255, 255, .88); max-width: 580px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero-ai { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem; margin-bottom: 20px; }
.hero-ai .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 194, 26, .3); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 194, 26, 0); } }
.hero .accent-text { color: var(--accent); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 12px; }
.hero-stats div { font-size: .9rem; color: rgba(255, 255, 255, .8); }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: #fff; }
.hero-visual { position: relative; }
.hero-card { background: rgba(255, 255, 255, .97); color: var(--text); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-3); }
.hero-card .svc-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hero-float { position: absolute; background: #fff; color: var(--text); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow-3); display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .88rem; }
.hero-float.f1 { left: -28px; bottom: -26px; }
.hero-float.f2 { right: -18px; top: -22px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero-float { display: none; } .hero { padding: 48px 0 72px; } }

/* Service tiles */
.svc { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; border-radius: 16px; text-align: center; color: var(--text); font-weight: 600; font-size: .85rem; text-decoration: none !important; transition: background .15s; }
.svc:hover { background: var(--surface-2); }
.svc .ic { width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.svc-card { position: relative; overflow: hidden; }
.svc-card .ic { width: 60px; height: 60px; border-radius: 18px; display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 16px; }
.svc-card .price { font-weight: 700; color: var(--ink); }
.svc-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: currentColor; opacity: .06; }

/* Feature list */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--primary-50); color: var(--primary); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.feature h3 { font-size: 1.05rem; margin-bottom: 4px; }
.feature p { margin: 0; color: var(--text-2); font-size: .95rem; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step { position: relative; padding: 20px 20px 20px 72px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--outline-soft); }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-display); }
.step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.step p { margin: 0; color: var(--text-2); }
.step .tip { margin-top: 10px; display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; background: var(--warning-bg); color: #7A5200; padding: 10px 12px; border-radius: 10px; }
.step .ask { margin-top: 10px; }

/* AI band */
.ai-band { background: linear-gradient(135deg, #071A6E, #1E46E6); color: #fff; border-radius: var(--radius-xl); padding: 48px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.ai-band h2 { color: #fff; }
.ai-band p { color: rgba(255, 255, 255, .85); }
.ai-chat-demo { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.5; }
.bubble.me { align-self: flex-end; background: var(--accent); color: var(--ink); border-bottom-right-radius: 4px; }
.bubble.va { align-self: flex-start; background: #fff; color: var(--text); border-bottom-left-radius: 4px; }
@media (max-width: 860px) { .ai-band { grid-template-columns: 1fr; padding: 28px; } }

/* App download */
.app-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.app-card { display: flex; gap: 18px; align-items: center; }
.app-card img { width: 72px; height: 72px; border-radius: 18px; flex: 0 0 auto; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border-radius: 12px; padding: 8px 16px; text-decoration: none !important; }
.store-badge small { display: block; font-size: .65rem; opacity: .8; line-height: 1; }
.store-badge strong { display: block; font-size: 1rem; line-height: 1.2; }
@media (max-width: 760px) { .app-cards { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: var(--accent); border-radius: var(--radius-xl); padding: 40px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { margin: 0; }

/* Page header */
.page-hero { background: linear-gradient(160deg, #0B27A8, #1E46E6); color: #fff; padding: 56px 0 64px; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-hero p { color: rgba(255, 255, 255, .85); font-size: 1.1rem; margin: 0; max-width: 680px; }
.breadcrumb { font-size: .85rem; margin-bottom: 12px; color: rgba(255, 255, 255, .75); }
.breadcrumb a { color: rgba(255, 255, 255, .9); }
.page-body { margin-top: -32px; position: relative; }
.prose { background: var(--surface); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-1); }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose .lead { font-size: 1.15rem; color: var(--text-2); }
@media (max-width: 640px) { .prose { padding: 24px; } }

/* FAQ */
.faq-item { background: var(--surface); border: 1px solid var(--outline-soft); border-radius: 14px; margin-bottom: 10px; }
.faq-item summary { cursor: pointer; padding: 18px 20px; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: 'expand_more'; font-family: 'Material Symbols Rounded'; margin-left: auto; font-size: 24px; color: var(--text-3); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item .answer { padding: 0 20px 18px; color: var(--text-2); }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--outline-soft); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-weight: 600; color: var(--text-2); background: var(--surface-2); padding: 12px 14px; white-space: nowrap; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.table td { padding: 12px 14px; border-top: 1px solid var(--outline-soft); vertical-align: middle; }
.table tr:hover td { background: #FAFBFE; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.empty { text-align: center; padding: 48px 20px; color: var(--text-3); }
.empty .ms { font-size: 48px; color: var(--outline); margin-bottom: 8px; }

/* Map */
.map { width: 100%; height: 420px; border-radius: var(--radius); overflow: hidden; z-index: 1; background: var(--surface-2); }
.map.tall { height: 560px; }
.map.short { height: 280px; }
.leaflet-container { font-family: var(--font) !important; }
.pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-2); border: 3px solid #fff; }
.pin span { transform: rotate(45deg); color: #fff; font-family: 'Material Symbols Rounded'; font-size: 18px; }
.pin.a { background: var(--success); } .pin.b { background: var(--danger); } .pin.d { background: var(--primary); border-radius: 50%; transform: none; } .pin.d span { transform: none; } .pin.m { background: var(--food); }

/* Estimator */
.estimator { display: grid; grid-template-columns: 400px 1fr; gap: 20px; align-items: start; }
.estimator .panel { background: var(--surface); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-2); }
.place-input { position: relative; }
.place-input .dot { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 12px; height: 12px; border-radius: 50%; }
.place-input .dot.a { background: var(--success); } .place-input .dot.b { background: var(--danger); }
.place-input .input { padding-left: 40px; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-3); z-index: 1100; max-height: 280px; overflow-y: auto; border: 1px solid var(--outline-soft); }
.suggest button { display: block; width: 100%; text-align: left; padding: 10px 14px; border: 0; background: none; cursor: pointer; font: inherit; font-size: .9rem; border-bottom: 1px solid var(--outline-soft); }
.suggest button:hover { background: var(--surface-2); }
.suggest small { display: block; color: var(--text-3); font-size: .78rem; }
.quote { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; border: 2px solid var(--outline-soft); cursor: pointer; margin-bottom: 10px; background: var(--surface); width: 100%; text-align: left; font: inherit; }
.quote:hover { border-color: var(--primary-100); }
.quote.sel { border-color: var(--primary); background: var(--primary-50); }
.quote .ic { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; flex: 0 0 auto; }
.quote .price { margin-left: auto; font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
@media (max-width: 960px) { .estimator { grid-template-columns: 1fr; } }

/* Merchant list */
.m-card { overflow: hidden; padding: 0; }
.m-card .cover { height: 140px; background: linear-gradient(135deg, var(--primary-100), var(--primary-50)) center/cover no-repeat; position: relative; }
.m-card .logo { position: absolute; left: 16px; bottom: -24px; width: 56px; height: 56px; border-radius: 14px; background: #fff center/cover no-repeat; border: 3px solid #fff; box-shadow: var(--shadow-1); }
.m-card .body { padding: 32px 16px 16px; }
.m-card .closed { position: absolute; right: 12px; top: 12px; }
.product { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--outline-soft); }
.product .img { width: 84px; height: 84px; border-radius: 12px; background: var(--surface-2) center/cover no-repeat; flex: 0 0 auto; }
.product .info { flex: 1; min-width: 0; }
.product .strike { text-decoration: line-through; color: var(--text-3); font-size: .85rem; margin-left: 6px; }
.qty { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--outline); border-radius: 999px; padding: 2px; }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--primary-50); color: var(--primary-700); font-weight: 700; cursor: pointer; }
.qty span { min-width: 24px; text-align: center; font-weight: 600; }
.cart-bar { position: sticky; bottom: 16px; z-index: 50; background: var(--primary); color: #fff; border-radius: 18px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-3); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .75); padding: 64px 0 24px; margin-top: 80px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: rgba(255, 255, 255, .75); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: .92rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.footer-ai { display: inline-flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, .08); padding: 8px 12px; border-radius: 12px; font-size: .85rem; margin-top: 12px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Floating WhatsApp + VA launcher */
.fab-stack { position: fixed; right: 20px; bottom: 20px; z-index: 1500; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.fab { height: 56px; min-width: 56px; border-radius: 18px; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; color: #fff; font: 600 .95rem var(--font); cursor: pointer; box-shadow: var(--shadow-3); text-decoration: none !important; }
.fab.va { background: linear-gradient(135deg, #1E46E6, #6A2BD9); }
.fab .pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

/* KuantarVA panel */
.va-panel { position: fixed; right: 20px; bottom: 92px; width: 400px; max-width: calc(100vw - 24px); height: 620px; max-height: calc(100vh - 120px); background: var(--surface); border-radius: 24px; box-shadow: 0 24px 60px rgba(7, 26, 110, .3); z-index: 1600; display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--outline-soft); }
.va-panel.open { display: flex; animation: vaIn .2s ease-out; }
@keyframes vaIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.va-head { background: linear-gradient(135deg, #0B27A8, #1E46E6 60%, #6A2BD9); color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.va-head .av { width: 42px; height: 42px; border-radius: 14px; background: rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center; }
.va-head strong { display: block; font-family: var(--font-display); }
.va-head small { opacity: .85; display: flex; align-items: center; gap: 6px; }
.va-head small::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; }
.va-head .icon-btn { color: #fff; margin-left: auto; }
.va-head .icon-btn + .icon-btn { margin-left: 0; }
.va-head .icon-btn:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.va-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.va-msg { max-width: 90%; padding: 10px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.55; word-wrap: break-word; }
.va-msg.user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.va-msg.assistant { align-self: flex-start; background: var(--surface); border: 1px solid var(--outline-soft); border-bottom-left-radius: 4px; }
.va-msg.assistant p { margin: 0 0 .5em; } .va-msg.assistant p:last-child { margin: 0; }
.va-msg.assistant ol, .va-msg.assistant ul { margin: .3em 0 .5em; padding-left: 1.2em; }
.va-msg.assistant a { font-weight: 600; }
.va-msg.greet { background: linear-gradient(135deg, var(--primary-50), #F3EEFF); border: 0; }
.va-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.va-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: blink 1.2s infinite; }
.va-typing i:nth-child(2) { animation-delay: .2s; } .va-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .25; } }
.va-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; background: var(--bg); }
.va-suggest button { border: 1px solid var(--primary-100); background: var(--surface); color: var(--primary-700); border-radius: 999px; padding: 6px 12px; font: 500 .82rem var(--font); cursor: pointer; }
.va-suggest button:hover { background: var(--primary-50); }
.va-foot { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--outline-soft); background: var(--surface); }
.va-foot textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; border-radius: 14px; border: 1px solid var(--outline); padding: 11px 14px; font: inherit; font-size: .92rem; }
.va-foot textarea:focus { outline: none; border-color: var(--primary); }
.va-foot button { width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--primary); color: #fff; cursor: pointer; flex: 0 0 auto; }
.va-foot button:disabled { opacity: .5; }
.va-note { font-size: .72rem; color: var(--text-3); text-align: center; padding: 0 12px 10px; background: var(--surface); }
@media (max-width: 520px) { .va-panel { right: 12px; bottom: 84px; height: calc(100vh - 110px); } }

/* Auth */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: linear-gradient(160deg, #0B27A8, #1E46E6 60%, #3A6BFF); color: #fff; padding: 64px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-side h2 { color: #fff; }
.auth-side p { color: rgba(255, 255, 255, .85); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 440px; }
.otp-input { letter-spacing: .6em; text-align: center; font-size: 1.4rem; font-weight: 700; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* Account / dashboard shell (customer & merchant) */
.shell { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 28px 0 40px; align-items: start; }
.side-nav { background: var(--surface); border-radius: var(--radius-lg); padding: 12px; box-shadow: var(--shadow-1); position: sticky; top: calc(var(--header-h) + 16px); }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: var(--text-2); font-weight: 500; }
.side-nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.side-nav a.active { background: var(--primary-50); color: var(--primary-700); font-weight: 600; }
.side-nav .count { margin-left: auto; background: var(--danger); color: #fff; border-radius: 999px; font-size: .72rem; padding: 1px 7px; }
.page-title { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 20px; }
.page-title h1 { font-size: 1.6rem; margin: 0; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .label { font-size: .82rem; color: var(--text-2); font-weight: 500; }
.stat .value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--ink); }
.stat .sub { font-size: .8rem; color: var(--text-3); }
.stat-ic { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--primary-50); color: var(--primary); }
.greet-card { background: linear-gradient(135deg, #0B27A8, #1E46E6 55%, #6A2BD9); color: #fff; border: 0; position: relative; overflow: hidden; }
.greet-card h2 { color: #fff; font-size: 1.5rem; }
.greet-card p { color: rgba(255, 255, 255, .88); }
.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #FFD95A); border-radius: 999px; }
.greet-card .progress { background: rgba(255, 255, 255, .2); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--outline-soft); }
.checklist li:last-child { border: 0; }
.checklist .ms { color: var(--outline); }
.checklist li.done .ms { color: var(--success); }
.checklist li.done span.t { color: var(--text-3); text-decoration: line-through; }
.checklist li.next { font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 18px 28px; }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.timeline li::after { content: ''; position: absolute; left: 10px; top: 18px; bottom: 0; width: 2px; background: var(--outline-soft); }
.timeline li:last-child::after { display: none; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; font-size: .94rem; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; font-weight: 500; word-break: break-word; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--outline-soft); margin-bottom: 20px; overflow-x: auto; }
.tabs a, .tabs button { padding: 10px 16px; border: 0; background: none; color: var(--text-2); font: 600 .92rem var(--font); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs a.active, .tabs button.active { color: var(--primary-700); border-color: var(--primary); text-decoration: none; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--outline-soft); color: var(--text-2); padding: 0 10px; }
.pager .cur { background: var(--primary); color: #fff; border-color: var(--primary); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters .input { min-height: 40px; padding: 8px 12px; width: auto; }
@media (max-width: 960px) { .shell { grid-template-columns: 1fr; } .side-nav { position: static; display: flex; overflow-x: auto; gap: 4px; } .side-nav a { white-space: nowrap; } .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 8px; } }

/* Error page */
.err { text-align: center; padding: 96px 20px; }
.err .code { font-family: var(--font-display); font-size: 6rem; font-weight: 800; color: var(--primary-100); line-height: 1; }

/* Dialog */
dialog.dlg { border: 0; border-radius: 24px; padding: 28px; max-width: 480px; width: calc(100% - 32px); box-shadow: var(--shadow-3); }
dialog.dlg::backdrop { background: rgba(7, 26, 110, .45); }

/* Utilities */
.ic-color { color: #fff; }
.bg-ride { background: var(--ride); } .bg-car { background: var(--car); } .bg-food { background: var(--food); } .bg-mart { background: var(--mart); } .bg-send { background: var(--send); } .bg-ppob { background: var(--ppob); } .bg-courier { background: var(--courier); }
.text-success { color: var(--success); } .text-danger { color: var(--danger); } .text-warning { color: var(--warning); }
.divider { border: 0; border-top: 1px solid var(--outline-soft); margin: 20px 0; }
.price-tag { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--ink); }
.code-box { font-family: ui-monospace, Consolas, monospace; background: var(--surface-2); padding: 3px 8px; border-radius: 8px; font-size: .88rem; }
.sn-box { font-family: ui-monospace, Consolas, monospace; font-size: 1.3rem; letter-spacing: .08em; background: var(--success-bg); color: var(--success); padding: 14px 18px; border-radius: 14px; word-break: break-all; }
.store-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
@media (max-width: 960px) { .store-grid { grid-template-columns: minmax(0, 1fr); } .store-grid aside { position: static !important; } }
@media (max-width: 520px) {
  .site-header .bar { gap: 8px; }
  .brand img { height: 30px; width: auto; }
  .header-actions { gap: 4px; }
  .header-actions .lang-btn { padding: 0 8px; height: 34px; }
  .header-actions .btn.sm { padding: 0 12px; }
  .container { padding: 0 16px; }
  .prose { padding: 20px; }
  .page-hero { padding: 40px 0 52px; }
}
