:root {
	--pri: #0f766e; --pri-d: #0b5d57; --acc: #f97316; --bg: #f5f7f6; --card: #fff; --txt: #1f2937; --mut: #6b7280;
	--line: #e5e7eb; --ok: #16a34a; --bad: #dc2626; --warn: #f59e0b; --r: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--txt); -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--pri); }
.boot { display: grid; place-items: center; height: 100vh; font-size: 18px; color: var(--mut); }

/* Auth */
.auth { max-width: 420px; margin: 0 auto; padding: calc(32px + env(safe-area-inset-top)) 20px 32px; }
.auth .brand { text-align: center; margin-bottom: 24px; }
.auth .brand img { width: 64px; height: 64px; border-radius: 16px; }
.auth h1 { font-size: 22px; margin: 10px 0 4px; }
.auth p.sub { color: var(--mut); margin: 0; }
.card { background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); border: 1px solid var(--line); }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--pri); border-color: transparent; }
.seg { display: flex; gap: 8px; }
.seg label { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; cursor: pointer; font-weight: 600; }
.seg input { display: none; }
.seg input:checked + span { color: var(--pri); }
.seg label:has(input:checked) { border-color: var(--pri); background: color-mix(in srgb, var(--pri) 8%, transparent); }
.switch-link { text-align: center; margin-top: 16px; color: var(--mut); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 10px; padding: 12px 16px; font-weight: 700; cursor: pointer; text-decoration: none; background: var(--line); color: var(--txt); }
.btn.pri { background: var(--pri); color: #fff; }
.btn.pri:active { background: var(--pri-d); }
.btn.acc { background: var(--acc); color: #fff; }
.btn.ok { background: var(--ok); color: #fff; }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.danger { background: transparent; color: var(--bad); padding: 8px; font-weight: 600; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.row { display: flex; gap: 8px; }
.row > .btn { flex: 1; }

/* Shell */
.top { position: sticky; top: 0; z-index: 10; background: var(--pri); color: #fff; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; display: flex; align-items: center; gap: 12px; }
.top .who { flex: 1; min-width: 0; }
.top .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .who small { opacity: .85; }
.toggle { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.15); padding: 6px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; cursor: pointer; border: 0; color: #fff; }
.toggle i { width: 36px; height: 20px; border-radius: 999px; background: rgba(255,255,255,.35); position: relative; transition: .2s; }
.toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; }
.toggle.on i { background: #22c55e; }
.toggle.on i::after { left: 18px; }
main { padding: 12px 12px calc(84px + env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto; }
.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; background: var(--card); border-top: 1px solid var(--line); display: flex; padding-bottom: env(safe-area-inset-bottom); }
.tabs button { flex: 1; border: 0; background: none; padding: 10px 4px 12px; font-size: 12px; font-weight: 600; color: var(--mut); cursor: pointer; position: relative; }
.tabs button span { display: block; font-size: 20px; line-height: 1.2; }
.tabs button.cur { color: var(--pri); }
.tabs .badge { position: absolute; top: 4px; left: 50%; margin-left: 8px; background: var(--acc); color: #fff; border-radius: 999px; font-size: 11px; padding: 0 6px; line-height: 18px; }

/* Banners */
.banner { border-radius: var(--r); padding: 12px 14px; margin-bottom: 12px; font-weight: 600; }
.banner.warn { background: #fef3c7; color: #92400e; }
.banner.off { background: #e5e7eb; color: #374151; }
.banner.bad { background: #fee2e2; color: #991b1b; }

/* Orders */
.empty { text-align: center; color: var(--mut); padding: 48px 16px; }
.empty span { font-size: 40px; display: block; margin-bottom: 8px; }
.order { margin-bottom: 12px; }
.order.new { border: 2px solid var(--acc); }
.order .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.order .head b { font-size: 17px; }
.order .amt { font-size: 18px; font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--line); }
.chip.cod { background: #fef3c7; color: #92400e; }
.chip.paid { background: #dcfce7; color: #166534; }
.chip.time { background: #ffedd5; color: #9a3412; }
.chip.st { background: color-mix(in srgb, var(--pri) 15%, transparent); color: var(--pri); }
.items { list-style: none; margin: 0 0 12px; padding: 0; border-top: 1px dashed var(--line); }
.items li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.items img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--line); }
.items .n { flex: 1; }
.items .q { color: var(--mut); font-weight: 700; }
.cust { background: var(--bg); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.cust b { display: block; }
.cust .addr { color: var(--mut); font-size: 14px; }
.cust .note { margin-top: 6px; font-size: 14px; }
.cust .approx { color: var(--warn); font-size: 13px; font-weight: 600; margin-top: 4px; }
.acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.acts .btn { padding: 10px 6px; font-size: 13px; }
.meta { color: var(--mut); font-size: 13px; }
.center { text-align: center; }

/* Profile */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.stat { text-align: center; padding: 12px 6px; }
.stat b { display: block; font-size: 20px; }
.stat small { color: var(--mut); }
#pfd-profile-map { height: 240px; border-radius: 10px; margin-bottom: 8px; z-index: 0; }
h3.sec { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--mut); margin: 18px 4px 8px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: #111827; color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; z-index: 50; max-width: 90vw; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.toast.bad { background: var(--bad); }
.toast.ok { background: var(--ok); }
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: s .7s linear infinite; }
@keyframes s { to { transform: rotate(360deg); } }

/* Benefits */
.benefits { margin-bottom: 14px; background: color-mix(in srgb, var(--pri) 7%, var(--card)); border-color: color-mix(in srgb, var(--pri) 25%, var(--line)); }
.benefits h2 { font-size: 16px; margin: 0 0 8px; color: var(--pri); }
.benefits ul { list-style: none; margin: 0; padding: 0; }
.benefits li { position: relative; padding: 5px 0 5px 26px; }
.benefits li::before { content: "✓"; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--pri); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.switch-link small { color: var(--mut); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--card); width: 100%; max-width: 520px; border-radius: 18px 18px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); animation: up .2s ease-out; }
.sheet h2 { margin: 0 0 4px; font-size: 18px; }
.sheet .meta { margin: 0 0 14px; }
.req { color: var(--bad); }
.btn.danger-fill { background: var(--bad); color: #fff; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 600px) { .modal { align-items: center; } .sheet { border-radius: 18px; } }
.confirm-text { font-size: 15px; color: var(--txt); opacity: .85; }

/* Join call-to-action on login screen */
.join-cta { margin-top: 16px; text-align: center; border: 2px dashed color-mix(in srgb, var(--acc) 55%, var(--line)); background: color-mix(in srgb, var(--acc) 6%, var(--card)); }
.join-cta b { display: block; font-size: 16px; }
.join-cta .meta { margin: 6px 0 12px; }

/* ---------- Join landing page ---------- */
.lp { max-width: 680px; margin: 0 auto; padding: 0 16px calc(96px + env(safe-area-inset-bottom)); }
.lp-hero { text-align: center; padding: calc(28px + env(safe-area-inset-top)) 4px 8px; }
.lp-logo { width: 64px; height: 64px; border-radius: 16px; }
.lp-logo-emoji { font-size: 48px; }
.lp-badge { display: inline-block; margin: 14px 0 6px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--pri) 12%, transparent); color: var(--pri); font-weight: 700; font-size: 13px; }
.lp-hero h1 { font-size: clamp(26px, 7vw, 36px); line-height: 1.15; margin: 8px 0 10px; letter-spacing: -.01em; }
.lp-sub { font-size: 17px; color: var(--mut); margin: 0 auto 16px; max-width: 34em; }
.lp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 20px; }
.lp-chips span { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 14px; color: var(--ok); }
.btn.big { padding: 16px 22px; font-size: 17px; border-radius: 12px; }
.lp-cta { box-shadow: 0 8px 24px color-mix(in srgb, var(--acc) 40%, transparent); }
.lp-login { margin: 14px 0 0; color: var(--mut); font-size: 14px; }
.lp-sec { margin-top: 28px; }
.lp-h2 { font-size: 21px; margin: 0 0 12px; text-align: center; }
.lp-story h2 { font-size: 18px; margin: 0 0 8px; }
.lp-story p { margin: 0; font-size: 16px; line-height: 1.6; }
.lp-story { border-left: 4px solid var(--acc); }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.lp-benefit b { font-size: 16px; }
.lp-benefit p { margin: 6px 0 0; color: var(--mut); font-size: 14px; }
.lp-table-wrap { padding: 0; overflow-x: auto; }
.lp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lp-table th, .lp-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.lp-table tr:last-child td { border-bottom: 0; }
.lp-table th { font-size: 13px; }
.lp-table .us { background: color-mix(in srgb, var(--ok) 8%, transparent); font-weight: 700; color: var(--ok); }
.lp-table th.us { color: var(--pri); }
.lp-table .them { color: var(--mut); }
.lp-note { font-size: 12px; color: var(--mut); text-align: center; margin: 6px 0 0; }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lp-steps li { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.lp-steps .n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--pri); color: #fff; font-weight: 800; display: grid; place-items: center; }
.lp-steps p { margin: 4px 0 0; color: var(--mut); font-size: 14px; }
.lp-who { display: grid; gap: 8px; }
.lp-who span { font-weight: 600; padding: 12px 14px; }
#join-form { scroll-margin-top: 12px; }
#join-form .card { border: 2px solid var(--acc); }
.lp-faq { margin-bottom: 8px; padding: 0; }
.lp-faq summary { padding: 14px 16px; font-weight: 700; cursor: pointer; list-style: none; position: relative; padding-right: 40px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; position: absolute; right: 16px; top: 12px; font-size: 20px; color: var(--pri); }
.lp-faq[open] summary::after { content: "–"; }
.lp-faq p { margin: 0; padding: 0 16px 14px; color: var(--mut); }
.lp-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); transform: translateY(110%); transition: transform .25s; }
.lp-sticky.show { transform: none; }
@media (min-width: 720px) { .lp-sticky .btn { max-width: 420px; margin: 0 auto; } }

/* Anti-bot honeypot: hidden from people, visible to bots */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* My shop page card */
.shop-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.shop-logo { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex: none; background: linear-gradient(135deg, #ffc93c, #ff7a1a); display: grid; place-items: center; }
.shop-logo img { width: 100%; height: 100%; object-fit: cover; }
.shop-logo span { color: #fff; font-weight: 800; font-size: 24px; }
.shop-txt { min-width: 0; }
.shop-txt b { display: block; }
.shop-txt a { display: block; word-break: break-all; }
.shop-card .row .btn { padding: 10px 8px; font-size: 14px; }
label.btn { cursor: pointer; }

/* Services chips */
.srv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.srv-chip { cursor: pointer; }
.srv-chip input { position: absolute; opacity: 0; pointer-events: none; }
.srv-chip span { display: inline-block; padding: 8px 12px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); font-weight: 700; font-size: 14px; }
.srv-chip input:checked + span { border-color: var(--pri); background: color-mix(in srgb, var(--pri) 12%, var(--card)); color: var(--pri); }
.srv-chip input:focus-visible + span { outline: 2px solid var(--pri); outline-offset: 2px; }

/* Stats */
.stats-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stats-table th { text-align: right; color: var(--mut); font-weight: 700; font-size: 12px; padding: 4px; }
.stats-table td { text-align: right; padding: 6px 4px; font-weight: 800; border-top: 1px solid var(--line); }
.stats-table td:first-child, .stats-table th:first-child { text-align: left; font-weight: 700; }
.stats-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 90px; margin-top: 14px; align-items: end; }
.stats-bars .bar { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; padding-bottom: 16px; }
.stats-bars .bar span { width: 40%; min-height: 2px; border-radius: 3px 3px 0 0; }
.stats-bars .bar em { position: absolute; bottom: 0; font-style: normal; font-size: 11px; color: var(--mut); }
.stats-bars .v, .stats-legend .v { background: var(--pri); }
.stats-bars .w, .stats-legend .w { background: #25d366; }
.stats-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 8px; vertical-align: middle; }

/* =========================================================
   PetoFast light skin — matches the PetoFast website
   (always light; dark mode removed for a consistent look)
   ========================================================= */
:root { color-scheme: light; --bg: #fff8ee; --card: #fff; --txt: #2b2118; --mut: #7a6a5c; --line: #f0e2cf; --r: 18px; --ok: #16a34a; --bad: #dc2626; --warn: #f59e0b; }
body { font: 15px/1.5 "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: radial-gradient(120% 50% at 50% 0%, #ffefdc 0%, var(--bg) 70%) fixed; color: var(--txt); }
h1, h2, .top .who b, .lead .head b, .order .head b, .stat b, .auth h1 { font-family: "Baloo 2", "Nunito", system-ui, sans-serif; letter-spacing: -.005em; }
.auth h1 { font-size: 26px; }
.auth .brand img { border-radius: 20px; box-shadow: 0 8px 20px rgba(255, 122, 26, .2); }
.card { border-radius: var(--r); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(120, 60, 0, .06); }
.field label { font-weight: 800; }
.field input, .field select, .field textarea { border: 2px solid var(--line); border-radius: 12px; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pri); }
.btn { border-radius: 999px; font-weight: 800; }
.btn.ghost { background: #fff; border: 2px solid var(--line); color: var(--txt); }
.btn.pri, .btn.acc { box-shadow: 0 6px 16px color-mix(in srgb, var(--pri) 30%, transparent); }

/* Header: light bar */
.top { background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.3) blur(10px); -webkit-backdrop-filter: saturate(1.3) blur(10px); color: var(--txt); border-bottom: 1px solid var(--line); }
.top .who b { font-size: 19px; }
.top .who small { color: var(--mut); opacity: 1; font-weight: 700; }
.toggle { background: var(--bg); color: var(--txt); border: 2px solid var(--line); }
.toggle i { background: #e6d6c2; }
.toggle.on { background: #f0fdf4; border-color: #86efac; color: #166534; }
.toggle.on i { background: #22c55e; }

/* Bottom tabs */
.tabs { background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(120, 60, 0, .06); }
.tabs button { font-weight: 800; }
.tabs button.cur::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 4px 4px; background: var(--pri); }

/* Banners, chips, sections */
.banner { border-radius: 16px; }
.banner.warn { background: #fff4d6; color: #8a5a00; }
.banner.off { background: #f3ece3; color: #5c4b3b; }
.banner.bad { background: #ffe4e6; color: #9f1239; }
.chip { background: #f3ece3; color: var(--txt); }
.chip.time { background: #ffedd5; color: #9a3412; }
h3.sec { text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 800; color: var(--mut); }
.stat b { font-size: 26px; color: var(--pri); }
.cust, .issue { background: var(--bg); border: 1px solid var(--line); }
.modal .sheet, .sheet { border-radius: 24px 24px 0 0; }
.toast { background: var(--txt); border-radius: 999px; }
.empty span { filter: saturate(1.2); }
@media (min-width: 600px) { .modal .sheet, .sheet { border-radius: 24px; } }

/* Partner panel accents: PetoFast orange */
:root { --pri: #ff7a1a; --pri-d: #e5620a; --acc: #ff7a1a; }
.order.new { border-color: #ffb27a; box-shadow: 0 8px 22px rgba(255, 122, 26, .16); }
.benefits { background: #fff4e8; border-color: #ffd6b0; }
.shop-logo { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #ffd6b0; }
