/* Pakades design system — Material 3 inspired, brand colours from the logo. */
:root {
  --primary: #7A08CF;
  --primary-600: #6407AD;
  --primary-700: #4C0589;
  --primary-50: #F6EDFF;
  --primary-100: #EBD9FF;
  --navy: #0D1A5C;
  --ink: #0B1437;
  --accent: #FF2E93;
  --accent-700: #C2185B;
  --magenta: #FF0A8C;
  --violet: #A00BC6;
  --indigo: #3A06DA;
  --brand-grad: linear-gradient(135deg, #FF0A8C 0%, #A00BC6 52%, #3A06DA 100%);
  --brand-grad-soft: linear-gradient(135deg, #FFE3F1 0%, #F1E3FF 55%, #E4E0FF 100%);
  --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(76, 5, 137, .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' 500, '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(--brand-grad); color: #fff; }
.btn.accent:hover { filter: brightness(1.06); }
.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; }
.pw-wrap { position: relative; display: block; }
.has-pw { padding-right: 46px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: transparent; color: var(--text-3); border-radius: 50%; cursor: pointer; }
.pw-toggle:hover, .pw-toggle:focus-visible { color: var(--text); background: rgba(122, 132, 163, .14); }
.pw-toggle .ms { position: static; transform: none; pointer-events: none; color: inherit; font-size: 22px; }
.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, #4C0589 0%, #7A08CF 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, 46, 147, .3); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 46, 147, 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, #0D1A5C, #7A08CF); 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(--brand-grad); color: #fff; 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(auto-fit, minmax(290px, 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; }

/* CTA band */
.cta-band { background: var(--brand-grad); color: #fff; 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, #4C0589, #7A08CF); 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); }
.prose h3 { font-size: 1.1rem; margin-top: 1.2em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: .95rem; }
.prose th { text-align: left; font-weight: 600; background: var(--surface-2); color: var(--text-2); }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--outline-soft); vertical-align: top; }
@media (max-width: 640px) { .prose { padding: 24px 18px; } .prose th, .prose td { padding: 8px; font-size: .88rem; } }
@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; }
.driver-pop { font-size: .88rem; line-height: 1.4; color: var(--text); }
.driver-pop .dp-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.driver-pop .dp-head strong { font-size: 1rem; }
.driver-pop .dp-avatar { position: relative; width: 56px; height: 56px; font-size: 1.1rem; }
.driver-pop .dp-avatar img { position: absolute; inset: 0; }
.driver-pop .dp-head .ms, .driver-pop .small .ms { font-size: 16px; color: #F59E0B; vertical-align: -3px; }
.driver-pop .dp-row { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; border-top: 1px solid var(--surface-2); }
.driver-pop .dp-row > .ms { font-size: 18px; color: var(--text-2); flex: 0 0 auto; }
.driver-pop .dp-plate { display: inline-block; padding: 1px 6px; border: 1.5px solid var(--text); border-radius: 4px; font-weight: 700; letter-spacing: .04em; font-size: .8rem; }
.driver-pop .dp-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.driver-pop .dp-actions .btn { height: 30px; padding: 0 10px; font-size: .8rem; gap: 4px; color: #fff; }
.driver-pop .dp-actions .btn.tonal { color: var(--primary-700); }
.driver-pop .dp-actions .btn .ms { font-size: 16px; }
.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, #7A08CF, #6A2BD9); }
.fab .pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

/* PakadesVA 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(13, 26, 92, .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, #4C0589, #7A08CF 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, #4C0589, #7A08CF 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, #4C0589, #7A08CF 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, #FF0A8C, #7A08CF); 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(13, 26, 92, .45); }
.confirm-dlg { max-width: 420px; text-align: center; padding: 26px 24px 22px; }
.confirm-dlg .confirm-ic { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); }
.confirm-dlg .confirm-ic.danger { background: var(--danger-bg); color: var(--danger); }
.confirm-dlg .confirm-msg { margin: 0 0 20px; font-size: 1rem; line-height: 1.5; color: var(--text); white-space: pre-line; }
.confirm-dlg .confirm-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.confirm-dlg .confirm-actions .btn { min-width: 130px; }

/* 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; }
}

/* QRIS payment page */
.qris-card { max-width: 440px; margin: 0 auto; padding: 28px 24px; position: relative; overflow: hidden; }
.qris-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, #ED1C24, #FF2E93, var(--primary)); }
.qris-head h1 { font-size: 1.35rem; margin: 10px 0 2px; }
.qris-badge { display: inline-block; padding: 3px 12px; border-radius: 999px; background: #ED1C24; color: #fff; font-weight: 800; letter-spacing: .12em; font-size: .78rem; }
.qris-amount { margin: 14px 0 10px; font-size: 1.9rem; }
.qris-frame { width: 280px; max-width: 100%; margin: 0 auto; padding: 12px; background: #fff; border-radius: 18px; border: 1px solid var(--outline-soft); box-shadow: 0 18px 40px -22px rgba(76, 5, 137, .45); transition: opacity .3s, filter .3s; }
.qris-frame svg, .qris-frame img { display: block; width: 100%; height: auto; }
.qris-timer { margin: 14px 0 6px; color: var(--text-2); font-weight: 600; }
.qris-status { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 7px 14px; border-radius: 999px; background: var(--warning-bg); color: var(--warning); font-weight: 600; font-size: .9rem; }
.qris-status .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; }
.qris-status.paid { background: var(--success-bg); color: var(--success); }
.qris-status.expired { background: var(--danger-bg); color: var(--danger); }
.qris-card.is-paid .qris-frame, .qris-card.is-expired .qris-frame { opacity: .35; filter: grayscale(1); }
.qris-steps { text-align: left; margin: 20px auto 12px; padding-left: 20px; color: var(--text-2); font-size: .92rem; max-width: 360px; }
.qris-steps li { margin-bottom: 4px; }

/* PPOB icon picker (views/partials/ppob-picker.ejs): trail → category / operator tiles → product cards */
.ppob-trail { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-bottom: 18px; font-size: .9rem; }
.ppob-trail a, .ppob-trail span.on { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; color: var(--text-2); }
.ppob-trail a:hover { background: var(--surface-2); }
.ppob-trail .on { background: var(--primary-50); color: var(--primary-700); font-weight: 600; }
.ppob-trail .sep { color: var(--text-3); }
.ppob-h { font-size: 1rem; font-weight: 700; color: var(--text-2); margin: 6px 0 12px; }
.ppob-h + .ppob-tiles + .ppob-h { margin-top: 26px; }
.ppob-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.ppob-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px 14px; border-radius: var(--radius); border: 1px solid var(--outline-soft); background: var(--surface); color: var(--text); text-align: center; transition: border-color .2s, transform .2s, box-shadow .2s; }
.ppob-tile:hover { border-color: var(--primary-100); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.ppob-tile .ic { width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c, var(--primary)) 14%, transparent); color: var(--c, var(--primary)); font-weight: 800; font-size: .95rem; }
.ppob-tile .ic .ms { font-size: 26px; }
.ppob-tile .logo { width: 48px; height: 48px; object-fit: contain; border-radius: 12px; }
.ppob-tile strong { font-size: .92rem; line-height: 1.25; }
.ppob-tile small { font-size: .78rem; color: var(--text-3); }
.ppob-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.ppob-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border-radius: 14px; border: 2px solid var(--outline-soft); background: var(--surface); color: var(--text); text-align: left; font: inherit; cursor: pointer; transition: border-color .2s; }
.ppob-card:hover { border-color: var(--primary-100); }
.ppob-card.sel { border-color: var(--primary); background: var(--primary-50); }
.ppob-card strong { font-size: .98rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ppob-card small { font-size: .76rem; color: var(--text-3); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ppob-card .price { margin-top: auto; padding-top: 6px; font-weight: 800; color: var(--primary-700); }
.ppob-card .go { display: inline-flex; align-items: center; font-size: .8rem; font-weight: 600; color: var(--primary); }
.ppob .filters { margin-bottom: 14px; }
.ppob-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.ppob-fd { flex: 0 0 auto; position: relative; }
.ppob-fd > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.ppob-fd > summary::-webkit-details-marker { display: none; }
.ppob-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--primary); color: #fff; font-size: .7rem; font-weight: 700; }
.ppob-fform { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; width: min(520px, calc(100vw - 48px)); padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--outline-soft); box-shadow: var(--shadow-3); display: flex; flex-direction: column; gap: 12px; }
.ppob-fg { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ppob-fg legend { display: flex; align-items: center; gap: 4px; padding: 0; margin-bottom: 6px; font-size: .8rem; font-weight: 700; color: var(--text-2); float: left; width: 100%; }
.ppob-fg .chip { height: 30px; font-size: .82rem; cursor: pointer; background: var(--surface-2); }
.ppob-fg .chip input { position: absolute; opacity: 0; pointer-events: none; }
.ppob-fg .chip:has(input:checked) { background: var(--primary-50); color: var(--primary-700); border-color: var(--primary); font-weight: 600; }
.ppob-fg .chip:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.ppob-fact { display: flex; justify-content: space-between; gap: 10px; padding-top: 4px; }
.ppob-filters > .chip.on { gap: 4px; }
@media (max-width: 640px) { .ppob-fd { position: static; } .ppob-filters { position: relative; } .ppob-fform { left: 0; right: 0; width: auto; } }
.ppob-recent { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-bottom: 22px; }
.ppob-again { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--outline-soft); background: var(--surface); color: var(--text); }
.ppob-again:hover { border-color: var(--primary-100); }
.ppob-again .ic { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; background: color-mix(in srgb, var(--c, var(--primary)) 14%, transparent); color: var(--c, var(--primary)); }
.ppob-again .txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ppob-again small { color: var(--text-3); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ppob-nos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
@media (max-width: 640px) { .ppob-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .ppob-tile { padding: 12px 6px; } .ppob-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chat-msg { max-width: 85%; }
.chat-msg img, .chat-msg video { display: block; max-width: 100%; width: 260px; max-height: 260px; object-fit: cover; border-radius: 12px; margin-bottom: 4px; background: #000; }
.chat-msg .chat-loc { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: inherit; }

/* ---------------- Pakades: brand surfaces ---------------- */
.hero-desa { background: radial-gradient(1200px 600px at 85% -10%, rgba(255, 10, 140, .35), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(58, 6, 218, .45), transparent 60%), linear-gradient(140deg, #2A0659 0%, #4C0589 45%, #1B0E6B 100%); }
.app-preview-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.app-preview-head img { height: 44px; width: auto; }
.app-preview-head .ai-badge { margin-left: auto; background: var(--brand-grad); color: #fff; }
.group-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; margin: 6px 0 8px; color: #fff; }
.group-label.g-desa { background: linear-gradient(90deg, #FF0A8C, #A00BC6); }
.group-label.g-kuantar { background: linear-gradient(90deg, #4F46E5, #2563EB); }
.group-panel { border-radius: var(--radius-xl); padding: 28px; position: relative; overflow: hidden; }
.group-panel.desa { background: linear-gradient(160deg, #FFF0F8 0%, #F6EDFF 100%); border: 1px solid #F3D3EC; }
.group-panel.kuantar { background: linear-gradient(160deg, #EEF4FF 0%, #F1EEFF 100%); border: 1px solid #D9E2FB; }
.group-head { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.group-head h3 { font-size: 1.5rem; margin: 0; }
.group-head .small { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--text-3); }
.group-ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; color: #fff; flex: none; box-shadow: var(--shadow-2); }
.group-panel.desa .group-ic { background: linear-gradient(135deg, #FF0A8C, #A00BC6); }
.group-panel.kuantar .group-ic { background: linear-gradient(135deg, #4F46E5, #2563EB); }
.group-ic .ms { font-size: 32px; }
.type-badge { position: absolute; left: 12px; top: 12px; color: #fff; }
.m-card .cover { position: relative; }
.app-cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; margin: 0 auto; }
@media (max-width: 760px) { .app-cards.two { grid-template-columns: minmax(0, 1fr); } .group-panel { padding: 18px; } }
.chip.on-dark { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .25); }
.checkout-card { position: sticky; top: calc(var(--header-h) + 16px); }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg-opt { flex: 1 1 0; min-width: 96px; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt > span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border: 1.5px solid var(--outline); border-radius: 14px; font-size: .8rem; font-weight: 600; text-align: center; transition: all .2s; }
.seg-opt input:checked + span { border-color: var(--primary); background: var(--primary-50); color: var(--primary-700); box-shadow: 0 0 0 3px rgba(122, 8, 207, .12); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--primary); }
.sync-visual { display: flex; align-items: center; justify-content: center; gap: 0; min-height: 260px; }
.sync-node { width: 170px; padding: 22px 16px; border-radius: 26px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; box-shadow: var(--shadow-3); background: #fff; animation: k-bob 4s ease-in-out infinite; }
.sync-node.kt { background: linear-gradient(135deg, #4F46E5, #2563EB); color: #fff; animation-delay: -2s; }
.sync-node.kt .ms { color: #fff; }
.sync-node small { opacity: .75; font-size: .75rem; }
.sync-wire { position: relative; width: 120px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, #FF0A8C, #4F46E5); opacity: .9; }
.sync-wire span { position: absolute; top: -4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(122, 8, 207, .4); animation: pk-flow 2.4s linear infinite; }
.sync-wire span:nth-child(2) { animation-delay: .8s; }
.sync-wire span:nth-child(3) { animation-delay: 1.6s; animation-direction: reverse; }
@keyframes pk-flow { from { left: -7px; } to { left: calc(100% - 7px); } }
@media (max-width: 640px) { .sync-node { width: 130px; } .sync-wire { width: 60px; } }
.ticket-qr { display: grid; place-items: center; gap: 8px; padding: 18px; border-radius: 20px; background: var(--brand-grad-soft); border: 1px dashed #D9B8F0; text-align: center; }
.ticket-qr img { width: 200px; height: 200px; background: #fff; padding: 10px; border-radius: 14px; }
.ticket-qr code { font-size: 1.4rem; letter-spacing: .2em; font-weight: 800; color: var(--primary-700); }
.reveal-soft { animation: k-rise .5s both; }
@media (prefers-reduced-motion: reduce) { .sync-node, .sync-wire span, .reveal-soft { animation: none; } }
.site-footer .inline-list { display: flex; flex-wrap: wrap; gap: 4px 14px; }

/* ---- Showcase (etalase): search, category tiles, product cards ---- */
.section.tight { padding: 36px 0; }
.shop-hero .shop-hero-in { position: relative; z-index: 2; padding-top: 48px; padding-bottom: 72px; max-width: 880px; }
.shop-hero .hero-stats { margin-top: 28px; }
.shop-search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: var(--shadow-3); max-width: 640px; margin: 20px 0; }
.shop-search .ms { color: var(--text-3); }
.shop-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1rem; padding: 10px 4px; background: transparent; color: var(--text); }
.shop-search .btn { border-radius: 999px; }
.shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.shop-head h2 { margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.shop-head > a { white-space: nowrap; font-weight: 600; }
.cat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 18px 10px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--outline-soft); box-shadow: var(--shadow-1); color: var(--ink); transition: transform .18s, box-shadow .18s, border-color .18s; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--c); text-decoration: none; }
.cat-tile .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; margin-bottom: 6px; }
.cat-tile strong { font-size: .95rem; }
.cat-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: thin; }
.cat-chips .chip { flex: 0 0 auto; height: 36px; }
.shop-sort { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 18px; }
.sort-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.grid-p { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.scroll-row { display: flex; gap: 16px; overflow-x: auto; padding: 4px 4px 16px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.scroll-row > .p-card { flex: 0 0 210px; scroll-snap-align: start; }
.scroll-row.stores > .m-card { flex: 0 0 260px; scroll-snap-align: start; }
.p-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.p-img { position: relative; aspect-ratio: 1 / 1; background: var(--surface-2) center/cover no-repeat; display: grid; place-items: center; }
.p-off { position: absolute; left: 10px; top: 10px; background: var(--accent); color: #fff; font-weight: 800; font-size: .78rem; padding: 3px 9px; border-radius: 999px; }
.p-cat { position: absolute; left: 10px; bottom: 10px; color: #fff; font-size: .7rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.p-name { font-size: .95rem; line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; color: var(--ink); }
.p-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.p-price strong { color: var(--primary); font-size: 1.05rem; }
.p-price del { color: var(--text-3); font-size: .8rem; }
.p-store { display: flex; align-items: center; gap: 4px; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
.empty-state { padding: 48px 24px; }
@media (max-width: 960px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .cat-tile { padding: 14px 6px; } .cat-tile small { display: none; }
  .grid-p { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .scroll-row > .p-card { flex-basis: 160px; }
  .shop-search .btn { padding: 0 14px; }
}
