:root {
  --orange: #f45b2a;
  --orange-dark: #d94418;
  --cream: #fff7e9;
  --ink: #182b24;
  --muted: #66756f;
  --green: #176b4d;
  --line: #e7e5dc;
  --white: #fffefa;
  --shadow: 0 18px 45px rgba(44, 54, 47, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: hidden; }
body { margin: 0; max-width: 100%; overflow-x: hidden; color: var(--ink); background: #f8f7f1; font-family: "Aptos", "Segoe UI", sans-serif; padding-bottom: 86px; }
button, input { font: inherit; }
button { cursor: pointer; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(22px, calc((100% - 1180px)/2)); background: rgba(255,254,250,.92); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(24,43,36,.06); }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; background: var(--orange); color: white; font: 900 23px/1 Georgia, serif; border-radius: 13px 13px 13px 4px; transform: rotate(-4deg); }
.brand strong { display: block; font: 900 19px/16px "Bahnschrift", sans-serif; letter-spacing: -.5px; }
.brand small { color: var(--orange); font-weight: 800; letter-spacing: 3.4px; font-size: 8px; }
.header-actions { display: flex; gap: 8px; }
.language-button, .login-button { border: 1px solid var(--line); background: var(--white); border-radius: 999px; height: 40px; font-weight: 800; }
.language-button { width: 46px; color: var(--green); }
.login-button { padding: 0 18px; background: var(--ink); color: white; border-color: var(--ink); }
main { overflow: hidden; }
.hero { max-width: 1180px; margin: 20px auto 0; min-height: 430px; border-radius: 34px; background: var(--cream); position: relative; padding: 70px 58px; overflow: hidden; isolation: isolate; }
.hero:before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(23,107,77,.13) 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(90deg, #000, transparent 68%); z-index: -1; }
.hero-copy { position: relative; z-index: 3; max-width: 560px; }
.eyebrow { display: block; color: var(--orange); font: 800 11px/1 "Bahnschrift", sans-serif; letter-spacing: 2.2px; margin-bottom: 13px; }
.hero h1 { margin: 0; font: 800 clamp(42px, 5.5vw, 74px)/.98 Georgia, serif; letter-spacing: -3px; }
.hero h1 em { color: var(--orange); font-weight: inherit; }
.hero-copy p { font-size: 17px; color: var(--muted); max-width: 440px; line-height: 1.6; margin: 22px 0 0; }
.hero-art { position: absolute; width: 430px; height: 430px; right: 30px; top: 12px; }
.sun { position: absolute; width: 300px; height: 300px; border-radius: 50%; background: #ffd24b; top: 65px; right: 34px; box-shadow: inset -20px -20px 0 rgba(244,91,42,.08); }
.plate { position: absolute; font-size: 156px; z-index: 2; top: 105px; right: 96px; filter: drop-shadow(0 22px 15px rgba(79,64,30,.22)); transform: rotate(-8deg); }
.scooter { position: absolute; z-index: 4; font-size: 63px; bottom: 35px; right: 10px; transform: rotate(-3deg); filter: drop-shadow(0 12px 8px rgba(24,43,36,.22)); }
.leaf { position: absolute; width: 70px; height: 32px; border-radius: 100% 0 100% 0; background: var(--green); z-index: 3; }
.leaf-one { left: 44px; top: 65px; transform: rotate(-20deg); }
.leaf-two { right: 12px; top: 135px; transform: rotate(75deg); }
.location-card { position: absolute; z-index: 5; left: 58px; bottom: 48px; width: min(550px, calc(100% - 116px)); display: flex; align-items: center; gap: 13px; background: var(--white); padding: 10px 10px 10px 17px; border-radius: 18px; box-shadow: var(--shadow); }
.location-icon { color: var(--orange); font-size: 25px; font-weight: 900; }
.location-card label { flex: 1; min-width: 0; }
.location-card small { display: block; color: var(--muted); font-size: 9px; letter-spacing: 1.4px; font-weight: 800; margin-bottom: 3px; }
.location-card input { border: 0; outline: 0; width: 100%; font-weight: 700; color: var(--ink); background: transparent; }
.location-card button { border: 0; color: white; background: var(--orange); border-radius: 13px; width: 48px; height: 48px; font-size: 22px; }
.quick-actions { max-width: 1050px; margin: -1px auto 0; padding: 27px 0 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.quick-card { border: 1px solid var(--line); background: var(--white); border-radius: 18px; text-align: left; padding: 16px; display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; color: var(--ink); transition: transform .2s, border-color .2s; }
.quick-card:hover { transform: translateY(-3px); border-color: #f5b29d; }
.quick-card > span { grid-row: span 2; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: #fff0e6; color: var(--orange); font-size: 23px; font-weight: 900; }
.quick-card b { align-self: end; font-size: 14px; }
.quick-card small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.content-section { max-width: 1180px; margin: 28px auto 0; padding: 0 5px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 20px; }
.section-heading h2 { font: 800 31px/1.1 Georgia, serif; margin: 0; letter-spacing: -1px; }
.section-heading button { border: 0; background: transparent; color: var(--orange); font-size: 12px; font-weight: 900; }
.merchant-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.merchant-card { background: var(--white); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; text-align: left; padding: 0; color: var(--ink); transition: transform .25s, box-shadow .25s; }
.merchant-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.merchant-visual { height: 150px; position: relative; display: grid; place-items: center; overflow: hidden; }
.merchant-visual:after { content: ""; position: absolute; width: 130px; height: 130px; border: 22px solid rgba(255,255,255,.45); border-radius: 50%; right: -40px; bottom: -65px; }
.merchant-visual.nasi { background: #ffd95e; }
.merchant-visual.ayam { background: #ff9d6e; }
.merchant-visual.bakmi { background: #8bd1a9; }
.merchant-visual.kopi { background: #c9a47d; }
.food-emoji { font-size: 71px; transform: rotate(-7deg); filter: drop-shadow(0 12px 8px rgba(45,40,27,.16)); }
.rating { position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(255,255,255,.92); border-radius: 999px; padding: 6px 9px; font-size: 11px; font-weight: 900; }
.merchant-info { padding: 15px; }
.merchant-info h3 { margin: 0 0 7px; font-size: 16px; }
.merchant-info p { margin: 0 0 13px; color: var(--muted); font-size: 12px; }
.merchant-meta { display: flex; gap: 10px; color: var(--green); font-size: 11px; font-weight: 800; }
.loading { grid-column: 1/-1; padding: 60px; text-align: center; color: var(--muted); }
.trust-strip { max-width: 1180px; margin: 55px auto 25px; background: var(--ink); color: white; border-radius: 24px; display: grid; grid-template-columns: repeat(3, 1fr); padding: 27px; }
.trust-strip div { text-align: center; border-right: 1px solid rgba(255,255,255,.15); }
.trust-strip div:last-child { border: 0; }
.trust-strip strong, .trust-strip span { display: block; }
.trust-strip strong { font: 700 22px Georgia, serif; color: #ffd24b; }
.trust-strip span { font-size: 10px; margin-top: 5px; color: #c7d2cd; text-transform: uppercase; letter-spacing: 1.6px; }
.bottom-nav { display: none; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(14,26,21,.45); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer-backdrop.visible { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; z-index: 41; right: 0; top: 0; bottom: 0; width: min(480px, 100%); background: var(--white); box-shadow: -20px 0 60px rgba(24,43,36,.18); transform: translateX(101%); transition: transform .3s ease; padding: 35px 28px; overflow-y: auto; }
.drawer.open { transform: translateX(0); }
.drawer-handle { display: none; }
.drawer-close, .dialog-close { position: absolute; right: 20px; top: 15px; border: 0; background: #f1f0e9; width: 36px; height: 36px; border-radius: 50%; font-size: 23px; color: var(--ink); }
.drawer-hero { display: flex; gap: 15px; align-items: center; padding-right: 45px; }
.drawer-hero .mini-visual { width: 76px; height: 76px; flex: 0 0 auto; border-radius: 20px; display: grid; place-items: center; font-size: 38px; background: #ffd95e; }
.drawer-hero h2 { margin: 0 0 6px; font: 800 24px Georgia, serif; }
.drawer-hero p { margin: 0; color: var(--muted); font-size: 12px; }
.menu-list { display: grid; gap: 11px; margin-top: 26px; }
.menu-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 15px; align-items: center; border-bottom: 1px solid var(--line); padding: 5px 0 17px; }
.menu-item h4 { margin: 0; font-size: 15px; }
.menu-item p { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.4; }
.menu-item strong { color: var(--orange); font-size: 13px; }
.menu-item button { grid-column: 2; grid-row: 1/span 2; border: 0; background: var(--green); color: white; width: 34px; height: 34px; border-radius: 11px; font-size: 20px; }
.cart { position: fixed; z-index: 35; bottom: 22px; left: 50%; transform: translate(-50%, calc(100% + 120px)); width: min(560px, calc(100% - 34px)); background: var(--ink); color: white; border-radius: 18px; padding: 11px 12px 11px 19px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 15px 40px rgba(24,43,36,.35); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .3s, opacity .2s, visibility 0s linear .3s; }
.cart.visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.cart > div span { font-size: 11px; color: #c7d2cd; }
.cart > div strong { display: block; margin-top: 3px; }
.cart button { border: 0; background: var(--orange); color: white; border-radius: 12px; height: 44px; padding: 0 18px; font-weight: 900; }
dialog { border: 0; box-shadow: var(--shadow); color: var(--ink); }
dialog::backdrop { background: rgba(14,26,21,.45); backdrop-filter: blur(3px); }
.simple-dialog { width: min(380px, calc(100% - 32px)); border-radius: 22px; padding: 25px; }
.simple-dialog h3 { font: 800 24px Georgia, serif; margin: 0 0 15px; }
.simple-dialog button { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 15px 4px; display: flex; justify-content: space-between; font-weight: 700; color: var(--ink); }
.role-dialog { width: min(560px, calc(100% - 32px)); border-radius: 26px; padding: 30px; }
.role-dialog h3 { font: 800 29px Georgia, serif; margin: 0 0 22px; }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role-grid button { border: 1px solid var(--line); background: #faf9f4; border-radius: 18px; padding: 18px; display: grid; grid-template-columns: 46px 1fr; text-align: left; color: var(--ink); }
.role-grid button > span { grid-row: span 2; font-size: 28px; }
.role-grid b { align-self: end; }
.role-grid small { color: var(--muted); margin-top: 4px; }
.toast { position: fixed; z-index: 60; left: 50%; top: 90px; transform: translate(-50%, -30px); opacity: 0; background: var(--ink); color: white; border-radius: 999px; padding: 11px 17px; font-size: 12px; pointer-events: none; transition: .25s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.checkout-form h2 { font: 800 28px Georgia, serif; }
.checkout-form { min-height: 100%; padding-bottom: 24px; }
.checkout-form label { display: block; font-size: 11px; font-weight: 800; color: var(--muted); margin: 15px 0 5px; }
.checkout-form input { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 13px; outline: none; background: #faf9f4; }
.checkout-form input:focus { border-color: var(--orange); }
.checkout-form button { position: sticky; bottom: 0; z-index: 2; margin-top: 20px; width: 100%; border: 0; border-radius: 14px; background: var(--orange); color: white; padding: 15px; font-weight: 900; box-shadow: 0 -10px 24px rgba(255,254,250,.92); }
.order-success { text-align: center; padding: 55px 5px; }
.order-success .success-icon { width: 70px; height: 70px; margin: auto; display: grid; place-items: center; border-radius: 50%; background: #dff4e8; color: var(--green); font-size: 32px; }
.order-success h2 { font: 800 28px Georgia, serif; }
.order-success strong { color: var(--orange); font-size: 20px; }
.workspace h2 { margin: 0; padding-right: 42px; font: 800 31px/1.1 Georgia, serif; letter-spacing: -1px; }
.workspace-intro { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 8px 0 24px; }
.account-channel { display: flex; align-items: center; gap: 11px; margin: 16px 0 22px; padding: 12px; border-radius: 14px; background: #eef6f1; border-left: 4px solid var(--green); }
.account-channel span { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 auto; border-radius: 11px; background: white; }
.account-channel p { margin: 0; color: var(--green); font-size: 11px; line-height: 1.45; font-weight: 700; }
.auth-role-buyer .account-channel { background: #fff0e6; border-left-color: var(--orange); }
.auth-role-buyer .account-channel p { color: var(--orange-dark); }
.auth-role-merchant .primary-action { background: var(--green); }
.workspace-form { display: grid; gap: 7px; }
.workspace-form label { margin-top: 10px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; }
.workspace-form input, .workspace-form textarea, .workspace-form select { width: 100%; border: 1px solid var(--line); background: #faf9f4; color: var(--ink); border-radius: 13px; padding: 13px 14px; outline: 0; resize: vertical; }
.workspace-form textarea { min-height: 90px; }
.workspace-form input:focus, .workspace-form textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244,91,42,.09); }
.primary-action, .secondary-action { width: 100%; min-height: 48px; border-radius: 14px; font-weight: 900; }
.primary-action { margin-top: 14px; border: 0; background: var(--orange); color: white; }
.primary-action:disabled { opacity: .55; }
.secondary-action { margin-top: 24px; border: 1px solid var(--line); background: transparent; color: var(--muted); }
.text-action { display: block; border: 0; background: transparent; color: var(--orange); font-size: 12px; font-weight: 900; margin: 18px auto 0; }
.form-error { min-height: 16px; margin: 4px 0 0; color: #bd321b; font-size: 11px; }
.workspace-heading { display: flex; justify-content: space-between; align-items: center; margin: 28px 0 12px; }
.workspace-heading h3 { margin: 0; font: 800 19px Georgia, serif; }
.workspace-heading span { display: grid; place-items: center; min-width: 27px; height: 27px; padding: 0 8px; border-radius: 999px; background: #fff0e6; color: var(--orange); font-size: 11px; font-weight: 900; }
.order-list { display: grid; gap: 10px; }
.order-card { display: flex; justify-content: space-between; gap: 15px; align-items: center; border: 1px solid var(--line); background: #faf9f4; border-radius: 15px; padding: 14px; }
.order-card > div { min-width: 0; }
.order-card > div:last-child { text-align: right; }
.order-card b, .order-card small, .order-card strong { display: block; }
.order-card b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-card small { color: var(--muted); font-size: 9px; margin-top: 5px; }
.order-card strong { margin-top: 5px; font-size: 12px; }
.status { display: inline-block; border-radius: 999px; padding: 5px 8px; background: #eee; color: var(--muted); font-size: 8px; font-weight: 900; white-space: nowrap; }
.status-paid, .status-accepted { background: #dff4e8; color: var(--green); }
.status-pending_payment { background: #fff0d1; color: #8e6415; }
.status-preparing, .status-ready_for_pickup { background: #e4efff; color: #24598c; }
.status-cancelled { background: #fae4df; color: #a93721; }
.empty-state { min-height: 160px; display: grid; place-items: center; align-content: center; gap: 10px; border: 1px dashed #d8d6cb; border-radius: 18px; color: #a4aaa6; font-size: 32px; }
.empty-state span { font-size: 11px; }
.review-banner { display: flex; align-items: center; gap: 9px; margin-top: 17px; border-radius: 13px; padding: 12px 14px; background: #fff0d1; color: #8e6415; font-size: 11px; }
.review-banner span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.review-approved { background: #dff4e8; color: var(--green); }
.review-rejected { background: #fae4df; color: #a93721; }
.merchant-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.merchant-summary div { border: 1px solid var(--line); border-radius: 13px; padding: 12px; min-width: 0; }
.merchant-summary small, .merchant-summary b { display: block; }
.merchant-summary small { color: var(--muted); font-size: 8px; margin-bottom: 5px; text-transform: uppercase; }
.merchant-summary b { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-edit { margin-left: 0; }
.merchant-order { border: 1px solid var(--line); border-radius: 16px; padding: 5px; }
.merchant-order .order-card { border: 0; background: transparent; }
.merchant-order > p { border-top: 1px solid var(--line); margin: 0 9px; padding: 10px 0; color: var(--muted); font-size: 10px; }
.merchant-order > button { width: calc(100% - 18px); margin: 0 9px 9px; border: 0; border-radius: 11px; padding: 10px; background: var(--green); color: white; font-size: 11px; font-weight: 900; }
.wallet-panel { position:relative; overflow:hidden; display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:18px; padding:18px; color:white; background:var(--ink); border-radius:18px; }
.wallet-panel:after { content:""; position:absolute; width:100px; height:100px; border:20px solid rgba(255,210,75,.1); border-radius:50%; right:-45px; top:-55px; }
.wallet-panel div { position:relative; z-index:1; }
.wallet-panel small, .wallet-panel strong { display:block; }
.wallet-panel small { color:#a9bbb5; font-size:8px; text-transform:uppercase; letter-spacing:.7px; }
.wallet-panel strong { color:#ffd24b; margin-top:6px; font:700 17px Georgia,serif; }
.wallet-panel button { position:relative; z-index:1; grid-column:1/-1; border:1px solid rgba(255,255,255,.17); background:rgba(255,255,255,.08); color:white; border-radius:11px; padding:10px; font-size:10px; font-weight:900; }
.account-order { border:1px solid var(--line); border-radius:15px; overflow:hidden; }
.account-order .order-card { border:0; border-radius:0; }
.account-order > button { width:calc(100% - 20px); margin:0 10px 10px; border:0; border-radius:10px; padding:9px; color:white; background:var(--green); font-size:10px; font-weight:900; }
.recharge-list { display:grid; gap:8px; }
.recharge-list article { display:flex; justify-content:space-between; align-items:center; border:1px solid var(--line); border-radius:13px; padding:12px; }
.recharge-list b, .recharge-list small { display:block; }
.recharge-list b { font-size:12px; }
.recharge-list small { color:var(--muted); font-size:8px; margin-top:4px; }
.auth-role-rider .account-channel { background:#e8f2ff; border-left-color:#2c6fa8; }
.auth-role-rider .account-channel p { color:#24598c; }
.auth-role-rider .primary-action { background:#24598c; }
.rider-tracking { display:flex; align-items:center; gap:10px; margin:0 10px 10px; padding:10px; border-radius:11px; background:#e8f2ff; color:#24598c; }
.rider-tracking > span { font-size:22px; }
.rider-tracking div { flex:1; }
.rider-tracking small, .rider-tracking a { display:block; }
.rider-tracking small { font-size:8px; margin-bottom:3px; }
.rider-tracking a { color:#24598c; font-size:10px; font-weight:900; text-decoration:none; }
.rider-tracking > a { flex:0 0 auto; border:1px solid #b8d4ec; border-radius:9px; padding:8px; background:white; }
.rider-online-card { display:flex; justify-content:space-between; align-items:center; margin-top:12px; padding:14px; border:1px solid var(--line); border-radius:14px; }
.rider-online-card > div { display:flex; align-items:center; gap:8px; }
.online-dot { width:9px; height:9px; border-radius:50%; background:#9da5a1; }
.online-dot.active { background:#23aa70; box-shadow:0 0 0 5px rgba(35,170,112,.12); }
.rider-online-card button { border:0; border-radius:10px; padding:9px 12px; background:var(--ink); color:white; font-size:10px; font-weight:900; }
.delivery-list { display:grid; gap:9px; }
.delivery-card { border:1px solid var(--line); border-radius:15px; padding:14px; }
.delivery-card b, .delivery-card small { display:block; }
.delivery-card small { color:var(--muted); font-size:8px; margin-top:4px; }
.delivery-card p { margin:8px 0 0; color:var(--muted); font-size:10px; }
.delivery-card button, .active-delivery button { width:100%; margin-top:12px; border:0; border-radius:10px; padding:11px; background:#24598c; color:white; font-size:10px; font-weight:900; }
.active-delivery { border:1px solid #b8d4ec; background:#f3f8fd; border-radius:17px; padding:16px; }
.active-delivery h3 { margin:14px 0 7px; font:800 20px Georgia,serif; }
.active-delivery p { color:var(--muted); font-size:10px; line-height:1.5; margin:5px 0; }
.active-delivery hr { border:0; border-top:1px solid #d6e4ef; margin:13px 0; }
.waiting-note { display:block; margin-top:13px; padding:10px; text-align:center; color:#87600d; background:#fff0d1; border-radius:10px; font-size:9px; }
.merchant-workspace-actions { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.merchant-workspace-actions > button:first-child { border:0; border-radius:10px; padding:9px 11px; background:#e8f2ff; color:#24598c; font-size:10px; font-weight:900; }
.support-channel-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:20px; }
.support-channel-grid button { min-width:0; border:1px solid var(--line); border-radius:15px; padding:14px; background:#faf9f4; color:var(--ink); text-align:left; }
.support-channel-grid span, .support-channel-grid b, .support-channel-grid small { display:block; }
.support-channel-grid span { font-size:24px; margin-bottom:8px; }
.support-channel-grid b { font-size:12px; }
.support-channel-grid small { margin-top:4px; color:var(--muted); font-size:8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.conversation-list { display:grid; gap:8px; }
.conversation-row { width:100%; display:grid; grid-template-columns:42px 1fr auto; align-items:center; gap:10px; border:1px solid var(--line); border-radius:14px; padding:11px; background:white; color:var(--ink); text-align:left; }
.conversation-avatar { width:42px; height:42px; display:grid; place-items:center; border-radius:13px; background:#fff0e6; font-size:20px; }
.conversation-row div { min-width:0; }
.conversation-row b, .conversation-row small { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.conversation-row b { font-size:11px; }
.conversation-row small { color:var(--muted); font-size:8px; margin-top:4px; }
.quick-replies { display:flex; flex-wrap:wrap; gap:6px; margin:15px 0 5px; }
.quick-replies > small { width:100%; color:var(--muted); font-size:9px; font-weight:900; }
.quick-replies button { border:1px solid #b8d4ec; background:#f3f8fd; color:#24598c; border-radius:999px; padding:7px 9px; font-size:9px; }
.chat-workspace { min-height:100%; display:flex; flex-direction:column; }
.chat-thread { display:flex; flex-direction:column; gap:9px; min-height:260px; max-height:48vh; overflow-y:auto; margin:18px -5px 10px; padding:5px; }
.chat-message { align-self:flex-start; max-width:84%; border-radius:5px 15px 15px 15px; padding:10px 12px; background:#edf0ed; }
.chat-message.own { align-self:flex-end; border-radius:15px 5px 15px 15px; background:#dff4e8; }
.chat-message > small { color:var(--muted); font-size:7px; text-transform:uppercase; }
.chat-message p { margin:5px 0 0; font-size:11px; line-height:1.5; }
.chat-message details { margin-top:7px; color:var(--muted); font-size:8px; }
.chat-message details p { font-size:9px; }
.chat-composer { margin-top:auto; border-top:1px solid var(--line); padding-top:9px; display:grid; grid-template-columns:1fr auto; gap:8px; }
.chat-composer .quick-replies { grid-column:1/-1; flex-wrap:nowrap; overflow-x:auto; }
.chat-composer textarea { min-height:48px; max-height:110px; resize:vertical; border:1px solid var(--line); border-radius:13px; padding:11px; outline:0; }
.chat-composer > button { border:0; border-radius:12px; padding:0 15px; background:var(--orange); color:white; font-size:10px; font-weight:900; }
.buyer-context { margin-top:12px; border-radius:13px; padding:12px; background:#fff7e9; }
.buyer-context b, .buyer-context span, .buyer-context small { display:block; }
.buyer-context span { color:var(--orange); font-size:10px; margin-top:3px; }
.buyer-context small { color:var(--muted); font-size:8px; margin-top:7px; line-height:1.5; }

@media (max-width: 850px) {
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .topbar { height: 64px; padding: 0 18px; }
  .login-button { display: none; }
  .hero { margin: 0; min-height: 455px; border-radius: 0 0 30px 30px; padding: 44px 21px; }
  .hero h1 { font-size: clamp(42px, 13vw, 61px); letter-spacing: -2.5px; }
  .hero-copy p { font-size: 14px; max-width: 300px; }
  .hero-art { width: 275px; height: 255px; right: -30px; top: 185px; opacity: .95; }
  .sun { width: 200px; height: 200px; top: 25px; right: 25px; }
  .plate { font-size: 103px; top: 50px; right: 61px; }
  .scooter { font-size: 47px; bottom: -7px; }
  .leaf-one { left: 10px; top: 18px; }
  .leaf-two { top: 85px; }
  .location-card { left: 18px; bottom: 25px; width: calc(100% - 36px); padding-left: 13px; }
  .quick-actions { margin: 0; padding: 20px 16px 0; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px; }
  .quick-card { display: flex; flex-direction: column; align-items: center; padding: 10px 3px; border: 0; background: transparent; text-align: center; gap: 6px; }
  .quick-card > span { width: 52px; height: 52px; border-radius: 17px; }
  .quick-card small { display: none; }
  .quick-card b { font-size: 10px; align-self: center; }
  .content-section { margin-top: 27px; padding: 0 16px; }
  .section-heading h2 { font-size: 27px; }
  .merchant-grid { grid-template-columns: 1fr 1fr; gap: 11px; }
  .merchant-visual { height: 120px; }
  .food-emoji { font-size: 58px; }
  .merchant-info { padding: 12px; }
  .merchant-info h3 { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .merchant-info p { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .merchant-meta { display: grid; gap: 4px; font-size: 9px; }
  .trust-strip { margin: 38px 16px 15px; padding: 20px 8px; border-radius: 18px; }
  .trust-strip strong { font-size: 16px; }
  .trust-strip span { font-size: 7px; letter-spacing: .8px; }
  .bottom-nav { position: fixed; display: grid; z-index: 30; bottom: 0; left: 0; right: 0; min-height: calc(68px + env(safe-area-inset-bottom)); grid-template-columns: repeat(4,1fr); background: rgba(255,254,250,.96); backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding: 8px 8px max(8px, env(safe-area-inset-bottom)); }
  .bottom-nav button { border: 0; background: transparent; color: #88928e; display: grid; gap: 3px; place-items: center; }
  .bottom-nav button.active { color: var(--orange); }
  .bottom-nav span { font-size: 20px; font-weight: 900; }
  .bottom-nav small { font-size: 9px; font-weight: 800; }
  .drawer { top: auto; width: 100%; height: min(84vh, 720px); height: min(84dvh, 720px); max-height: calc(100dvh - 12px); border-radius: 26px 26px 0 0; transform: translateY(101%); padding: 29px 20px max(25px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
  .drawer.open { transform: translateY(0); }
  .drawer-handle { display: block; width: 42px; height: 4px; border-radius: 4px; background: #d4d4cc; margin: -15px auto 17px; }
  .drawer-close { top: 20px; }
  .checkout-form { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .cart { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-width: 390px) {
  .hero { min-height: 440px; }
  .hero h1 { font-size: 41px; }
  .hero-art { top: 180px; transform: scale(.9); transform-origin: right center; }
  .merchant-visual { height: 108px; }
}
