:root {
  --ink: #152019;
  --muted: #667069;
  --line: #e4e8e5;
  --paper: #ffffff;
  --soft: #f3f6f3;
  --green: #17653a;
  --green-2: #23844e;
  --lime: #ddef45;
  --yellow: #ffd84d;
  --red: #d6493d;
  --blue: #2469d8;
  --shadow: 0 12px 36px rgba(21, 32, 25, .09);
  --font: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font); font-size: 15px; line-height: 1.6; letter-spacing: 0; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid rgba(36,105,216,.45); outline-offset: 2px; }
.no-scroll { overflow: hidden; }
.auth-pending > * { visibility: hidden; }
.load-failure { min-height: 100vh; min-height: 100dvh; padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)); display: grid; place-items: center; background: var(--soft); }
.load-failure section { width: min(480px, 100%); padding: 34px; border: 1px solid var(--line); border-radius: 6px; background: white; box-shadow: var(--shadow); text-align: center; }
.load-failure .brand-mark { margin: 0 auto 20px; }
.load-failure h1 { margin: 0 0 10px; font-size: 24px; }
.load-failure p { margin: 0; color: var(--muted); }
.load-failure section > div { margin-top: 22px; display: flex; justify-content: center; gap: 10px; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 84px 0; }
.section-soft { background: var(--soft); }
.section-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-size: 13px; font-weight: 800; letter-spacing: 0; }
.section-kicker::before { content: ""; width: 20px; height: 3px; background: var(--lime); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-heading h2 { margin: 7px 0 0; font-size: 36px; line-height: 1.2; letter-spacing: 0; }
.section-heading p { max-width: 480px; margin: 0; color: var(--muted); }
.eyebrow { color: var(--green); font-weight: 800; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hide { display: none !important; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(228,232,229,.9); backdrop-filter: blur(14px); }
.header-inner { height: 72px; display: flex; align-items: center; gap: 34px; }
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; background: var(--green); color: white; font-size: 18px; font-weight: 900; border-radius: 4px; }
.brand-copy { line-height: 1.2; }
.brand-copy strong { display: block; font-size: 17px; letter-spacing: 0; }
.brand-copy small { color: #748078; font-size: 10px; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: 28px; margin-right: auto; }
.desktop-nav a { position: relative; font-size: 14px; font-weight: 700; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 2px; transform: scaleX(0); background: var(--green); transition: .2s; }
.desktop-nav a:hover::after, .desktop-nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 9px; }
.service-phone { margin-right: 5px; line-height: 1.2; text-align: right; }
.service-phone small { display: block; color: var(--muted); font-size: 10px; }
.service-phone strong { font-size: 14px; }
.site-status { border-bottom: 1px solid #e4b84f; background: #fff4c7; color: #5d4600; }
.site-status[hidden] { display: none; }
.site-status-inner { min-height: 44px; display: flex; align-items: center; gap: 14px; font-size: 13px; }
.site-status-inner strong { flex: 0 0 auto; color: #382a00; }
.site-status-inner span { min-width: 0; }
.btn { min-height: 42px; border: 1px solid transparent; border-radius: 4px; padding: 9px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: transparent; color: var(--ink); font-weight: 800; transition: transform .18s, background .18s, box-shadow .18s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: white; }
.btn-primary:hover { background: #0f542f; box-shadow: 0 9px 20px rgba(23,101,58,.2); }
.btn-accent { background: var(--lime); color: #142118; }
.btn-outline { border-color: var(--line); background: white; }
.btn-ghost { color: var(--green); padding-left: 10px; padding-right: 10px; }
.btn-danger { color: var(--red); border-color: #f2cbc7; background: #fff9f8; }
.btn-block { width: 100%; }
.btn:disabled, .table-action:disabled { opacity: .48; cursor: not-allowed; transform: none; box-shadow: none; }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 4px; background: white; color: var(--ink); }
.mobile-only { display: none; }

.hero { min-height: 660px; position: relative; color: white; overflow: hidden; background: #1d2a21; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; opacity: .66; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,18,12,.9) 0%, rgba(8,18,12,.66) 46%, rgba(8,18,12,.08) 82%); }
.hero-inner { min-height: 660px; position: relative; z-index: 1; display: flex; align-items: center; padding-top: 50px; padding-bottom: 110px; }
.hero-copy { width: min(660px, 67%); }
.hero-label { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--lime); font-size: 13px; font-weight: 800; }
.hero-label span { width: 32px; height: 2px; background: currentColor; }
.hero h1 { margin: 0 0 18px; font-size: 62px; line-height: 1.08; font-weight: 900; letter-spacing: 0; }
.hero-lead { max-width: 590px; margin: 0 0 30px; color: rgba(255,255,255,.8); font-size: 18px; line-height: 1.8; }
.hero-actions { display: flex; gap: 12px; }
.hero .btn { min-height: 50px; padding: 12px 24px; }
.hero-stat { display: flex; gap: 36px; margin-top: 40px; }
.hero-stat-item strong { display: block; color: white; font-size: 23px; }
.hero-stat-item span { color: rgba(255,255,255,.62); font-size: 12px; }
.hero-trust { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; background: rgba(9,27,17,.86); border-top: 1px solid rgba(255,255,255,.12); }
.trust-row { height: 76px; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; gap: 12px; border-right: 1px solid rgba(255,255,255,.12); padding: 0 28px; }
.trust-item:first-child { border-left: 1px solid rgba(255,255,255,.12); }
.trust-item svg { color: var(--lime); }
.trust-item strong { display: block; font-size: 14px; }
.trust-item span { color: rgba(255,255,255,.54); font-size: 11px; }

.category-tabs { display: flex; gap: 8px; margin-bottom: 26px; overflow-x: auto; scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab { flex: 0 0 auto; padding: 10px 18px; border: 1px solid var(--line); border-radius: 4px; background: white; color: #526059; font-weight: 800; }
.category-tab.active { background: var(--green); border-color: var(--green); color: white; }
.vehicle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vehicle-card { background: white; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.vehicle-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.vehicle-card.hidden { display: none; }
.vehicle-image { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #dce3de; }
.vehicle-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.vehicle-card:hover .vehicle-image img { transform: scale(1.03); }
.vehicle-badge { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92); color: var(--green); padding: 5px 9px; border-radius: 3px; font-size: 11px; font-weight: 800; }
.vehicle-content { padding: 20px; }
.vehicle-content h3 { margin: 0 0 4px; font-size: 19px; }
.vehicle-spec { color: var(--muted); font-size: 13px; }
.vehicle-tags { display: flex; gap: 6px; margin: 14px 0; }
.vehicle-tags span { background: var(--soft); color: #5a665f; padding: 4px 8px; border-radius: 3px; font-size: 11px; }
.vehicle-foot { display: flex; align-items: end; justify-content: space-between; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.vehicle-price small { color: var(--muted); font-size: 11px; }
.vehicle-price strong { display: block; color: var(--green); font-size: 21px; line-height: 1.2; }

.order-section { background: #122319; color: white; }
.order-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 64px; align-items: center; }
.order-copy h2 { margin: 9px 0 16px; font-size: 42px; line-height: 1.2; }
.order-copy > p { color: rgba(255,255,255,.65); }
.order-step { display: flex; gap: 15px; margin-top: 24px; }
.step-num { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(221,239,69,.65); color: var(--lime); font-size: 12px; font-weight: 900; border-radius: 50%; }
.order-step strong { font-size: 14px; }
.order-step span { display: block; color: rgba(255,255,255,.47); font-size: 12px; }
.order-card { background: white; color: var(--ink); padding: 28px; border-radius: 6px; box-shadow: 0 28px 60px rgba(0,0,0,.2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 800; color: #465149; }
.field input, .field select, .field textarea { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid #dce2de; border-radius: 4px; outline: none; background: white; color: var(--ink); transition: border-color .18s, box-shadow .18s; }
.field input[type="datetime-local"] { min-width: 0; max-width: 100%; }
.field textarea { min-height: 76px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(35,132,78,.09); }
.input-with-icon { position: relative; }
.input-with-icon svg { position: absolute; top: 12px; left: 12px; color: var(--green); }
.input-with-icon input { padding-left: 40px; }
.location-tools { min-height: 36px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.location-tools .btn { min-height: 34px; padding: 5px 10px; font-size: 11px; }
.location-tools > span:last-child { margin-left: auto; color: var(--muted); font-size: 10px; }
.location-tools > span.location-ready { color: var(--green); font-weight: 800; }
.unit-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.unit-chip { flex: 1; min-width: 62px; border: 1px solid var(--line); background: white; border-radius: 4px; min-height: 42px; font-weight: 800; }
.unit-chip.active { background: #eff7f1; border-color: var(--green); color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.form-help { color: #7a857e; font-size: 11px; margin-top: -3px; }
.estimate { margin-top: 20px; padding: 16px 0 0; border-top: 1px solid var(--line); }
.estimate-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.estimate-row span { color: var(--muted); font-size: 13px; }
.estimate-price { color: var(--green); font-size: 30px; font-weight: 900; }
.estimate-note { display: flex; gap: 7px; align-items: start; margin: 12px 0 16px; padding: 10px 12px; background: #fff8df; color: #765d00; border-radius: 4px; font-size: 12px; }

.service-grid { display: grid; grid-template-columns: 1.1fr .9fr .9fr; gap: 20px; }
.service-main { min-height: 360px; position: relative; overflow: hidden; color: white; padding: 34px; background: #24382b; border-radius: 6px; }
.service-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 72%; opacity: .54; }
.service-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,27,16,.88), rgba(10,27,16,.08)); }
.service-main > *:not(img) { position: relative; z-index: 1; }
.service-main h3 { margin: 160px 0 8px; font-size: 26px; }
.service-main p { margin: 0; color: rgba(255,255,255,.73); }
.service-column { display: grid; gap: 20px; }
.service-item { min-height: 170px; padding: 24px; background: white; border: 1px solid var(--line); border-radius: 6px; }
.service-icon { width: 42px; height: 42px; display: grid; place-items: center; background: #eff6f1; color: var(--green); border-radius: 4px; }
.service-item h3 { margin: 16px 0 4px; font-size: 17px; }
.service-item p { margin: 0; color: var(--muted); font-size: 12px; }

.promo-band { background: #eff2eb; }
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promo-card { position: relative; min-height: 260px; overflow: hidden; padding: 26px; border-radius: 6px; background: white; border: 1px solid var(--line); }
.promo-card.featured { background: var(--green); color: white; }
.promo-number { position: absolute; right: 18px; top: 10px; color: rgba(21,32,25,.06); font-size: 90px; line-height: 1; font-weight: 900; }
.promo-card.featured .promo-number { color: rgba(255,255,255,.08); }
.promo-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 4px; color: var(--green); background: #edf6f0; }
.promo-card.featured .promo-icon { color: var(--lime); background: rgba(255,255,255,.12); }
.promo-card h3 { margin: 28px 0 8px; font-size: 21px; }
.promo-card p { min-height: 48px; margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.promo-card.featured p { color: rgba(255,255,255,.63); }
.promo-card.featured .btn-outline { color: white; border-color: rgba(255,255,255,.28); background: transparent; }

.about-band { display: grid; grid-template-columns: 1fr 1fr; min-height: 500px; }
.about-image { min-height: 460px; position: relative; background: #dce3de; overflow: hidden; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-float { position: absolute; right: 0; bottom: 0; padding: 22px 26px; background: var(--lime); color: var(--ink); }
.about-float strong { display: block; font-size: 28px; }
.about-float span { font-size: 12px; }
.about-copy { display: flex; flex-direction: column; justify-content: center; padding: 60px max(40px, calc((100vw - 1180px)/2)); background: #17231b; color: white; }
.about-copy h2 { margin: 8px 0 18px; font-size: 38px; }
.about-copy p { color: rgba(255,255,255,.62); }
.about-list { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 20px; }
.about-list div { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.84); font-size: 13px; }
.about-list svg { color: var(--lime); }

.site-footer { padding: 46px 0 28px; background: #0e1711; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.footer-brand p { max-width: 350px; color: rgba(255,255,255,.47); font-size: 12px; }
.footer-col h4 { margin: 0 0 12px; font-size: 13px; }
.footer-col a, .footer-col span { display: block; margin: 7px 0; color: rgba(255,255,255,.48); font-size: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.35); font-size: 11px; }
.footer-bottom > span:last-child { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-bottom a:hover { color: white; }

.legal-body { background: var(--soft); }
.legal-header { position: sticky; z-index: 20; top: 0; padding-top: env(safe-area-inset-top); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.legal-header .container { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.legal-main { max-width: 900px; padding-top: 64px; padding-bottom: 90px; }
.legal-title { padding-bottom: 28px; border-bottom: 2px solid var(--ink); }
.legal-title h1 { margin: 10px 0 4px; font-size: 42px; line-height: 1.2; }
.legal-title p { margin: 0; color: var(--muted); }
.legal-draft { margin: 28px 0; padding: 16px 18px; border-left: 4px solid var(--yellow); background: #fff9de; }
.legal-draft strong, .legal-draft span { display: block; }
.legal-draft span { margin-top: 3px; color: #695d24; font-size: 13px; }
.legal-main section { padding: 25px 0; border-bottom: 1px solid var(--line); }
.legal-main section h2 { margin: 0 0 10px; font-size: 20px; }
.legal-main section p { margin: 8px 0; color: #465048; line-height: 1.9; }

.mobile-nav { display: none; }
.modal-shell { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .18s; }
.modal-shell.open { opacity: 1; pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10,18,13,.6); backdrop-filter: blur(3px); }
.modal-panel { position: relative; z-index: 1; width: min(560px, calc(100% - 28px)); max-height: min(88vh, 820px); overflow: auto; background: white; border-radius: 6px; box-shadow: 0 28px 70px rgba(0,0,0,.24); }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; background: white; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 20px; }
.modal-body { padding: 24px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 24px; border-top: 1px solid var(--line); background: #fafbfa; }
.success-mark { width: 64px; height: 64px; margin: 4px auto 18px; display: grid; place-items: center; border-radius: 50%; background: #e9f6ed; color: var(--green); }
.success-copy { text-align: center; }
.success-copy h3 { margin: 0 0 7px; font-size: 23px; }
.success-copy p { color: var(--muted); font-size: 13px; }
.order-summary { margin: 22px 0; padding: 16px; background: var(--soft); border-radius: 4px; }
.summary-line { display: flex; justify-content: space-between; gap: 20px; padding: 6px 0; font-size: 13px; }
.summary-line span:first-child { color: var(--muted); }
.summary-line.total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 900; }
.summary-line.total strong { color: var(--green); font-size: 19px; }
.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.pay-option { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 4px; padding: 14px; background: white; }
.pay-option.active { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); background: #f4faf6; }
.consent-check { min-height: 44px; display: flex; flex-direction: row; align-items: flex-start; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px; background: #f8faf8; color: #48534b; font-size: 12px; line-height: 1.65; cursor: pointer; }
.consent-check input { width: 18px; height: 18px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--green); }
.consent-check a { color: var(--green); font-weight: 800; }
.checkout-consent { margin: -5px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.resume-payment { margin-top: 12px; }
.pay-icon { width: 36px; height: 36px; display: grid; place-items: center; background: var(--green); color: white; border-radius: 4px; font-weight: 900; }
.lottery-box { padding: 24px; text-align: center; background: #f2f7f3; border: 1px solid var(--line); border-radius: 4px; }
.lottery-amount { margin: 16px 0 5px; color: var(--green); font-size: 46px; font-weight: 900; }
.lottery-amount small { font-size: 18px; }
.points-store-list { margin-top: 16px; border-top: 1px solid var(--line); }
.points-product { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.points-product-main { min-width: 0; }
.points-product-main strong, .points-product-main small { display: block; }
.points-product-main strong { overflow-wrap: anywhere; font-size: 14px; }
.points-product-main small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.points-product .btn { flex: 0 0 auto; min-width: 142px; min-height: 38px; padding: 7px 12px; font-size: 11px; white-space: normal; }
.points-store-empty { padding: 28px 0 12px; color: var(--muted); text-align: center; font-size: 12px; }
.redemption-history { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.redemption-history-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 5px; }
.redemption-history-head strong { font-size: 13px; }
.redemption-history-head span { color: var(--muted); font-size: 10px; }
.redemption-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.redemption-item:last-child { border-bottom: 0; }
.redemption-item-main { min-width: 0; }
.redemption-item-main strong, .redemption-item-main small { display: block; overflow-wrap: anywhere; }
.redemption-item-main strong { font-size: 12px; }
.redemption-item-main small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.redemption-item-state { min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.redemption-item-state code { max-width: 230px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; white-space: normal; overflow-wrap: anywhere; text-align: right; }
.redemption-confirm-summary { margin-top: 0; }
.redemption-confirm-summary strong { max-width: 65%; text-align: right; overflow-wrap: anywhere; }
.redemption-confirm-actions { display: grid; grid-template-columns: .8fr 1.2fr; gap: 9px; margin-top: 18px; }
.lottery-wheel { width: 148px; height: 148px; margin: 12px auto; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--lime) 0 45deg, #fff 45deg 90deg, #84c69a 90deg 135deg, #fff 135deg 180deg, var(--yellow) 180deg 225deg, #fff 225deg 270deg, #5ba979 270deg 315deg, #fff 315deg); box-shadow: inset 0 0 0 8px var(--green), 0 12px 25px rgba(23,101,58,.15); transition: transform 1.6s cubic-bezier(.18,.75,.2,1); }
.lottery-wheel.spinning { transform: rotate(1440deg); }
.lottery-wheel::after { content: "抽"; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: 22px; font-weight: 900; }
.toast-root { position: fixed; z-index: 200; top: 88px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 9px; min-width: 260px; padding: 12px 16px; border-radius: 4px; background: #1d2b22; color: white; box-shadow: var(--shadow); opacity: 0; transform: translateY(-8px); transition: .2s; font-size: 13px; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }

/* Login */
.login-body { min-height: 100vh; padding: 0; background: #f2f5f2; }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, .85fr) 1.15fr; }
.login-brand-panel { position: relative; display: flex; flex-direction: column; padding: 42px max(40px, calc((100vw - 1180px)/2)); background: #13251a; color: white; overflow: hidden; }
.login-brand-panel::after { content: "PSD"; position: absolute; right: -20px; bottom: 20px; color: rgba(255,255,255,.025); font-size: 180px; font-weight: 900; line-height: 1; }
.login-brand-panel .brand-mark { background: var(--lime); color: var(--ink); }
.login-brand-panel .brand-copy small { color: rgba(255,255,255,.42); }
.login-brand-copy { position: relative; z-index: 1; margin: auto 0; }
.login-brand-copy h1 { margin: 12px 0 16px; font-size: 48px; line-height: 1.15; }
.login-brand-copy p { color: rgba(255,255,255,.55); }
.login-copyright { position: relative; z-index: 1; color: rgba(255,255,255,.3); font-size: 10px; }
.login-form-panel { display: grid; place-items: center; padding: 32px; }
.login-card { width: min(420px, 100%); padding: 34px; background: white; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.login-heading { margin-bottom: 26px; }
.login-heading h2 { margin: 6px 0 4px; font-size: 28px; }
.login-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.login-error { min-height: 38px; padding: 10px 0 6px; color: var(--red); font-size: 11px; }

/* Admin */
.admin-body { background: #f3f5f3; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 232px 1fr; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 16px; background: #122019; color: white; }
.admin-sidebar .brand { padding: 0 10px 28px; }
.admin-sidebar .brand-mark { background: var(--lime); color: var(--ink); }
.admin-sidebar .brand-copy small { color: rgba(255,255,255,.38); }
.admin-nav { display: grid; gap: 5px; }
.admin-nav button { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 10px 13px; border: 0; border-radius: 4px; background: transparent; color: rgba(255,255,255,.58); font-weight: 700; text-align: left; }
.admin-nav button:hover, .admin-nav button.active { color: white; background: rgba(255,255,255,.09); }
.admin-nav button.active svg { color: var(--lime); }
.admin-sidebar-foot { position: absolute; left: 16px; right: 16px; bottom: 20px; padding: 15px; background: rgba(255,255,255,.06); border-radius: 4px; }
.admin-user { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; background: #dff0e5; color: var(--green); border-radius: 50%; font-weight: 900; }
.admin-user strong { display: block; font-size: 12px; }
.admin-user span { display: block; color: rgba(255,255,255,.38); font-size: 10px; }
.admin-main { min-width: 0; }
.admin-topbar { height: 66px; position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.admin-topbar h1 { margin: 0; font-size: 19px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.system-status { display: flex; align-items: center; gap: 7px; margin-right: 12px; color: var(--muted); font-size: 11px; }
.status-pulse { width: 7px; height: 7px; border-radius: 50%; background: #35ad65; box-shadow: 0 0 0 4px rgba(53,173,101,.11); }
.admin-content { padding: 26px 28px 50px; }
.admin-view { display: none; }
.admin-view.active { display: block; }
.view-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.view-heading h2 { margin: 0; font-size: 24px; }
.view-heading p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { padding: 20px; background: white; border: 1px solid var(--line); border-radius: 6px; }
.stat-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.stat-icon { width: 34px; height: 34px; display: grid; place-items: center; background: #edf6f0; color: var(--green); border-radius: 4px; }
.stat-card strong { display: block; margin-top: 14px; font-size: 27px; line-height: 1.1; }
.stat-change { color: var(--green); font-size: 10px; }
.dashboard-grid { display: grid; grid-template-columns: 1.5fr .8fr; gap: 16px; margin-top: 16px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 6px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.panel-head h3 { margin: 0; font-size: 15px; }
.panel-head span { color: var(--muted); font-size: 11px; }
.panel-body { padding: 20px; }
.bar-chart { height: 230px; display: flex; align-items: end; gap: 14px; padding: 20px 6px 0; border-bottom: 1px solid var(--line); }
.bar-item { flex: 1; position: relative; height: var(--h); background: #dcebe1; border-radius: 3px 3px 0 0; }
.bar-item.current { background: var(--green); }
.bar-item::after { content: attr(data-label); position: absolute; bottom: -26px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 10px; white-space: nowrap; }
.dispatch-list { display: grid; }
.dispatch-row { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.dispatch-row:last-child { border-bottom: 0; }
.dispatch-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.dispatch-row strong { display: block; font-size: 12px; }
.dispatch-row span { color: var(--muted); font-size: 10px; }
.table-tools { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.search-box { width: min(320px, 100%); position: relative; }
.search-box svg { position: absolute; left: 12px; top: 11px; color: #829087; }
.search-box input { width: 100%; height: 42px; padding: 8px 12px 8px 40px; border: 1px solid var(--line); border-radius: 4px; outline: 0; background: white; }
.filter-select { height: 42px; border: 1px solid var(--line); border-radius: 4px; padding: 0 32px 0 12px; background: white; }
.data-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: white; }
.data-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.data-table th { padding: 12px 15px; background: #f8faf8; color: #758077; font-size: 10px; text-align: left; font-weight: 800; border-bottom: 1px solid var(--line); }
.data-table td { padding: 14px 15px; border-bottom: 1px solid #edf0ed; font-size: 12px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.order-id { color: var(--green); font-weight: 800; }
.cell-primary strong { display: block; }
.cell-primary span { color: var(--muted); font-size: 10px; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 99px; font-size: 10px; font-weight: 800; }
.status-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pending_dispatch, .status-paid { color: #ad7100; background: #fff5d5; }
.status-payment_review { color: #9b2c2c; background: #fff0f0; }
.status-pending_review { color: #ad7100; background: #fff5d5; }
.status-approved { color: var(--green); background: #eaf7ef; }
.status-rejected { color: #a33a3a; background: #fdeeee; }
.status-dispatched { color: var(--blue); background: #eaf2ff; }
.status-in_service { color: #7f5bb4; background: #f3edff; }
.status-completed { color: var(--green); background: #e9f6ed; }
.status-pending_fulfillment { color: #9b6800; background: #fff5d5; }
.status-processing { color: #7051a4; background: #f2edfa; }
.status-shipped { color: var(--blue); background: #eaf2ff; }
.status-cancelled, .status-inactive { color: #7b5b59; background: #f2eeee; }
.table-action { border: 0; background: transparent; color: var(--green); font-weight: 800; padding: 5px; }
.table-action.danger { color: #a33a3a; }
.table-actions { display: flex; align-items: center; gap: 5px; }
.table-actions .table-action { min-height: 34px; white-space: nowrap; }
.table-empty { padding: 32px !important; color: var(--muted); text-align: center; }
.config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.config-card { padding: 22px; background: white; border: 1px solid var(--line); border-radius: 6px; }
.config-card h3 { margin: 0 0 4px; font-size: 16px; }
.config-card > p { margin: 0 0 18px; color: var(--muted); font-size: 11px; }
.config-row { display: grid; grid-template-columns: 1fr 140px; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.config-row strong { display: block; font-size: 12px; }
.config-row span { color: var(--muted); font-size: 10px; }
.config-row input, .config-row select { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 4px; padding: 0 10px; }
.launch-check-panel { margin-top: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: white; }
.launch-check-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 22px; }
.launch-check-head h3 { margin: 0; font-size: 16px; }
.launch-check-head p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.launch-readiness-summary { flex: 0 1 auto; display: inline-flex; align-items: center; gap: 7px; max-width: 360px; color: var(--muted); font-size: 11px; font-weight: 800; text-align: right; overflow-wrap: anywhere; }
.launch-readiness-summary::before { content: ""; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #8b948e; }
.launch-readiness-summary.is-ready { color: var(--green); }
.launch-readiness-summary.is-ready::before { background: var(--green-2); }
.launch-readiness-summary.is-blocked { color: #a33a3a; }
.launch-readiness-summary.is-blocked::before { background: var(--red); }
.launch-readiness-summary.is-partial { color: #946200; }
.launch-readiness-summary.is-partial::before { background: #e0a100; }
.launch-checklist { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.launch-check-loading { grid-column: 1 / -1; margin: 0; padding: 24px 22px; color: var(--muted); font-size: 12px; }
.launch-check-item { min-width: 0; display: flex; align-items: flex-start; gap: 11px; padding: 14px 22px; border-bottom: 1px solid #edf0ed; }
.launch-check-item:nth-child(odd) { border-right: 1px solid #edf0ed; }
.launch-check-mark { width: 24px; height: 24px; flex: 0 0 auto; display: grid; place-items: center; margin-top: 1px; border-radius: 50%; background: #eef1ef; color: #687169; font-size: 12px; font-weight: 900; }
.launch-check-item.is-pass .launch-check-mark { background: #e9f6ed; color: var(--green); }
.launch-check-item.is-blocked .launch-check-mark { background: #fdeeee; color: #a33a3a; }
.launch-check-copy { min-width: 0; flex: 1; }
.launch-check-copy strong, .launch-check-copy span { display: block; overflow-wrap: anywhere; }
.launch-check-copy strong { font-size: 12px; }
.launch-check-copy span { margin-top: 1px; color: var(--muted); font-size: 10px; }
.launch-check-value { flex: 0 0 auto; padding-left: 8px; color: var(--muted); font-size: 10px; font-weight: 800; text-align: right; }
.launch-check-item.is-pass .launch-check-value { color: var(--green); }
.launch-check-item.is-blocked .launch-check-value { color: #a33a3a; }
.launch-blockers { padding: 17px 22px 19px; background: #fafcfa; }
.launch-blockers-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.launch-blockers-head h4 { margin: 0; font-size: 12px; }
.launch-blockers-head span { color: var(--muted); font-size: 10px; }
.launch-blockers ul { margin: 9px 0 0; padding: 0; list-style: none; }
.launch-blockers li { position: relative; padding: 5px 0 5px 16px; color: #8d3535; font-size: 11px; overflow-wrap: anywhere; }
.launch-blockers li::before { content: ""; position: absolute; top: 12px; left: 2px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.launch-blockers li.is-clear { color: var(--green); }
.launch-blockers li.is-neutral { color: var(--muted); }
.marketing-section { margin-top: 28px; }
.marketing-section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.marketing-section-head h3 { margin: 0; font-size: 16px; }
.marketing-section-head p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.marketing-section-head > span { flex: 0 0 auto; color: var(--muted); font-size: 11px; }
.marketing-section-head .btn { min-height: 38px; padding: 7px 13px; font-size: 11px; }
.marketing-table { min-width: 720px; }
.redemptions-table { min-width: 1280px; }
.shipping-cell { min-width: 250px; max-width: 320px; white-space: normal; }
.shipping-cell strong, .shipping-cell span { display: block; overflow-wrap: anywhere; }
.shipping-cell span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.tracking-number { display: inline-block; max-width: 190px; color: var(--ink); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; white-space: normal; overflow-wrap: anywhere; }
.summary-wrap { max-width: 310px; white-space: normal; overflow-wrap: anywhere; text-align: right; }
.product-editor { width: min(620px, calc(100% - 28px)); }
.vehicle-editor { width: min(680px, calc(100% - 28px)); }
.vehicles-table { min-width: 1180px; }
.toggle-control { min-height: 54px; display: flex; align-items: center; gap: 11px; padding: 9px 0; cursor: pointer; }
.toggle-control input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.toggle-track { width: 42px; height: 24px; position: relative; flex: 0 0 auto; border-radius: 99px; background: #cfd6d1; transition: background .18s; }
.toggle-track::after { content: ""; width: 18px; height: 18px; position: absolute; top: 3px; left: 3px; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: transform .18s; }
.toggle-control input:checked + .toggle-track { background: var(--green); }
.toggle-control input:checked + .toggle-track::after { transform: translateX(18px); }
.toggle-control input:focus-visible + .toggle-track { outline: 3px solid rgba(35,132,78,.18); outline-offset: 2px; }
.toggle-control > span:last-child strong, .toggle-control > span:last-child small { display: block; }
.toggle-control > span:last-child strong { font-size: 12px; }
.toggle-control > span:last-child small { margin-top: 1px; color: var(--muted); font-size: 10px; font-weight: 400; }
.driver-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.driver-card { padding: 20px; background: white; border: 1px solid var(--line); border-radius: 6px; }
.driver-head { display: flex; align-items: center; gap: 12px; }
.driver-avatar { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #e6f1e9; color: var(--green); font-weight: 900; }
.driver-head h3 { margin: 0; font-size: 15px; }
.driver-head p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.driver-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.driver-meta div { padding: 9px; background: var(--soft); border-radius: 4px; }
.driver-meta small { display: block; color: var(--muted); font-size: 9px; }
.driver-meta strong { font-size: 11px; }
.driver-capability-block { margin: 0 0 13px; padding: 11px 0 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.driver-capability-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.driver-capability-head small { color: var(--muted); font-size: 9px; }
.capability-tags { min-height: 25px; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.capability-tags span { max-width: 100%; padding: 4px 7px; border-radius: 3px; background: #edf4ef; color: #245737; font-size: 9px; line-height: 1.25; overflow-wrap: anywhere; }
.capability-tags em { color: #9a5c2b; font-size: 10px; font-style: normal; }
.driver-location-summary { min-height: 34px; margin: 0 0 14px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.driver-actions { display: flex; gap: 8px; }
.capability-editor { width: min(760px, calc(100% - 28px)); }
.capability-editor-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.capability-editor-head p { margin: 0; color: var(--muted); font-size: 11px; }
.capability-editor-head strong { flex: 0 0 auto; color: var(--green); font-size: 11px; }
.capability-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 390px; overflow-y: auto; padding: 1px; }
.capability-option { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.capability-option.selected { border-color: var(--green); background: #f2f8f4; box-shadow: inset 0 0 0 1px var(--green); }
.capability-option input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--green); }
.capability-option span { min-width: 0; }
.capability-option strong, .capability-option small { display: block; overflow-wrap: anywhere; }
.capability-option strong { font-size: 11px; }
.capability-option small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.dispatch-modal { width: min(760px, calc(100% - 28px)); }
.dispatch-order { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; padding: 14px; background: var(--soft); border-radius: 4px; }
.dispatch-order span { color: var(--muted); font-size: 10px; }
.dispatch-order strong { display: block; font-size: 12px; white-space: normal; }
.driver-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.driver-option { width: 100%; display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 4px; background: white; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.driver-option.selected { border-color: var(--green); background: #f2f8f4; box-shadow: inset 0 0 0 1px var(--green); }
.driver-option.disabled { opacity: .48; cursor: not-allowed; background: #f6f7f6; }
.driver-option .availability { margin-left: auto; color: var(--green); font-size: 10px; }
.driver-option-copy { min-width: 0; }
.driver-option-copy strong, .driver-option-copy span, .driver-option-copy small { display: block; white-space: normal; overflow-wrap: anywhere; }
.driver-option-copy strong { font-size: 12px; }
.driver-option-copy span { color: var(--muted); font-size: 9px; }
.driver-option-copy small { margin-top: 3px; color: #245737; font-size: 9px; }
.dispatch-empty { padding: 30px 12px 18px; color: var(--muted); text-align: center; }
.dispatch-empty svg { color: #8b9a90; }
.dispatch-empty strong { display: block; margin-top: 10px; color: var(--ink); font-size: 14px; }
.dispatch-empty p { max-width: 470px; margin: 6px auto 0; font-size: 11px; line-height: 1.7; }

/* Driver */
.driver-body { min-height: 100vh; background: #eef2ee; }
.driver-app { min-height: 100vh; max-width: 620px; margin: 0 auto; background: #f7f9f7; box-shadow: 0 0 45px rgba(20,32,24,.08); }
.driver-header { position: sticky; top: 0; z-index: 30; padding: max(14px, env(safe-area-inset-top)) 18px 14px; background: #173621; color: white; }
.driver-head-row { display: flex; align-items: center; justify-content: space-between; }
.driver-brand { display: flex; gap: 10px; align-items: center; }
.driver-brand .brand-mark { width: 38px; height: 38px; background: var(--lime); color: var(--ink); }
.driver-brand strong { display: block; font-size: 15px; }
.driver-brand span { display: block; color: rgba(255,255,255,.55); font-size: 10px; }
.driver-status { display: flex; align-items: center; gap: 7px; padding: 6px 9px; background: rgba(255,255,255,.1); border-radius: 99px; font-size: 10px; }
.driver-main { padding: 18px 16px 92px; }
.driver-greeting { display: flex; justify-content: space-between; gap: 18px; margin: 4px 2px 18px; }
.driver-greeting h1 { margin: 0; font-size: 23px; }
.driver-greeting p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.date-chip { flex: 0 0 auto; text-align: right; }
.date-chip strong { display: block; color: var(--green); font-size: 13px; }
.date-chip span { font-size: 9px; color: var(--muted); }
.task-counter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.task-count { padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: white; }
.task-count strong { display: block; font-size: 19px; }
.task-count span { color: var(--muted); font-size: 9px; }
.task-count.primary { color: white; background: var(--green); border-color: var(--green); }
.task-count.primary span { color: rgba(255,255,255,.6); }
.driver-section-head { display: flex; align-items: center; justify-content: space-between; margin: 16px 2px 9px; }
.driver-section-head h2 { margin: 0; font-size: 14px; }
.driver-section-head span { color: var(--muted); font-size: 10px; }
.task-card { margin-bottom: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: white; }
.task-card-top { display: flex; justify-content: space-between; gap: 10px; padding: 16px 16px 12px; }
.task-time { display: block; color: var(--green); font-size: 10px; font-weight: 900; }
.task-card h3 { margin: 3px 0 2px; font-size: 17px; }
.task-code { color: var(--muted); font-size: 9px; }
.task-state { align-self: start; padding: 4px 8px; border-radius: 99px; background: #fff5d5; color: #9a690a; font-size: 9px; font-weight: 800; }
.task-address { display: flex; align-items: start; gap: 9px; padding: 0 16px 14px; color: #4d5a51; font-size: 12px; }
.task-address svg { flex: 0 0 auto; margin-top: 2px; color: var(--green); }
.task-card-foot { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.task-card-foot button, .task-card-foot a { min-height: 44px; display: flex; justify-content: center; align-items: center; gap: 7px; border: 0; background: white; color: var(--green); font-weight: 800; font-size: 11px; }
.task-card-foot button + button, .task-card-foot a + button { border-left: 1px solid var(--line); }
.driver-bottom-nav { position: fixed; z-index: 25; left: 50%; bottom: 0; width: min(620px, 100%); transform: translateX(-50%); display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px 12px max(8px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.driver-bottom-nav button { min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: none; color: #879087; font-size: 11px; }
.driver-bottom-nav button.active { color: var(--green); font-weight: 800; }
.task-detail .modal-body { padding-bottom: 30px; }
.detail-map { height: 180px; position: relative; overflow: hidden; display: grid; place-items: center; background-color: #e7ece8; background-image: linear-gradient(#cfd9d1 1px, transparent 1px), linear-gradient(90deg, #cfd9d1 1px, transparent 1px); background-size: 34px 34px; }
.detail-map::before { content: ""; width: 260px; height: 70px; position: absolute; transform: rotate(-20deg); border: 12px solid rgba(255,255,255,.9); border-left: 0; border-right: 0; }
.map-pin-big { position: relative; z-index: 1; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--green); color: white; box-shadow: 0 8px 18px rgba(23,101,58,.25); }
.map-pin-big svg { transform: rotate(45deg); }
.detail-block { padding: 16px 0; border-bottom: 1px solid var(--line); }
.detail-label { color: var(--muted); font-size: 10px; }
.detail-value { margin-top: 3px; font-size: 14px; font-weight: 800; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 16px; }
.task-timeline { display: grid; gap: 0; margin-top: 14px; }
.timeline-item { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 10px; min-height: 55px; }
.timeline-item::before { content: ""; position: absolute; left: 10px; top: 20px; bottom: -2px; width: 1px; background: var(--line); }
.timeline-item:last-child::before { display: none; }
.timeline-dot { width: 21px; height: 21px; position: relative; z-index: 1; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; color: #aab2ac; }
.timeline-item.done .timeline-dot, .timeline-item.current .timeline-dot { background: var(--green); border-color: var(--green); color: white; }
.timeline-item.current .timeline-dot { box-shadow: 0 0 0 5px rgba(23,101,58,.1); }
.timeline-copy strong { display: block; font-size: 12px; }
.timeline-copy span { color: var(--muted); font-size: 9px; }
.camera-panel { padding: 20px 20px max(20px, env(safe-area-inset-bottom)); }
.camera-preview { min-height: 310px; position: relative; overflow: hidden; display: grid; place-items: center; border: 1px dashed #bdc8c0; border-radius: 5px; background: #edf1ee; color: #78837b; text-align: center; }
.camera-preview img, .camera-preview canvas { width: 100%; height: auto; }
.camera-placeholder svg { margin-bottom: 8px; color: var(--green); }
.camera-placeholder strong { display: block; color: #3d4941; }
.camera-placeholder span { font-size: 10px; }
.watermark-preview { margin-top: 12px; padding: 12px; background: #173621; color: white; border-radius: 4px; }
.watermark-brand { display: flex; align-items: center; justify-content: space-between; color: var(--lime); font-size: 10px; font-weight: 900; }
.watermark-preview strong { display: block; margin: 7px 0 2px; font-size: 13px; }
.watermark-preview span { display: block; color: rgba(255,255,255,.62); font-size: 9px; }
.location-warning { display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; padding: 11px 12px; border: 1px solid #efd384; border-radius: 4px; background: #fff8df; color: #795500; font-size: 11px; line-height: 1.55; }
.location-warning[hidden] { display: none; }
.location-warning svg { flex: 0 0 auto; margin-top: 1px; }
.camera-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }

.evidence-card { margin: 14px 0; padding: 15px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.evidence-card + .evidence-card { margin-top: 10px; }
.evidence-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.evidence-head > div { min-width: 0; }
.evidence-head > div strong, .evidence-head > div span { display: block; }
.evidence-head > div span { margin-top: 2px; color: var(--muted); font-size: 9px; }
.evidence-badge { flex: 0 0 auto; padding: 4px 8px; border-radius: 99px; font-size: 9px; font-weight: 800; }
.evidence-badge.verified { background: #e7f5eb; color: #17653a; }
.evidence-badge.unverified { background: #fff0eb; color: #a33e1d; }
.evidence-badge.pending { background: #fff5d8; color: #8b6207; }
.evidence-address { margin: 11px 0; color: #48554c; font-size: 11px; line-height: 1.55; }
.evidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.evidence-grid > div { min-width: 0; }
.evidence-grid span, .evidence-grid strong, .evidence-grid code { display: block; overflow-wrap: anywhere; }
.evidence-grid span { margin-bottom: 3px; color: var(--muted); font-size: 9px; }
.evidence-grid strong, .evidence-grid code { color: var(--ink); font-size: 11px; font-weight: 800; }
.admin-evidence { margin: 0 0 18px; background: #f9fbf9; }
.admin-evidence .evidence-head { margin-bottom: 12px; }
.admin-evidence .evidence-grid:empty { display: none; }
.evidence-photo { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-size: 11px; font-weight: 800; }
.evidence-empty { color: var(--muted); font-size: 11px; }
.evidence-hash { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; }

@media (max-width: 980px) {
  .desktop-nav, .service-phone { display: none; }
  .header-actions { margin-left: auto; }
  .mobile-only { display: inline-grid; }
  .hero h1 { font-size: 50px; }
  .vehicle-grid { grid-template-columns: 1fr 1fr; }
  .order-layout { gap: 30px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-main { grid-row: span 2; }
  .promo-grid { grid-template-columns: 1fr 1fr; }
  .promo-card:last-child { grid-column: 1 / -1; }
  .admin-shell { grid-template-columns: 76px 1fr; }
  .admin-sidebar { padding-left: 10px; padding-right: 10px; }
  .admin-sidebar .brand-copy, .admin-nav span, .admin-sidebar-foot { display: none; }
  .admin-sidebar .brand { padding: 0 7px 24px; }
  .admin-nav button { justify-content: center; padding: 10px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .driver-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 14px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 56px 0; }
  .section-heading { display: block; margin-bottom: 22px; }
  .section-heading h2 { font-size: 27px; }
  .section-heading p { margin-top: 10px; font-size: 12px; }
  .site-header { position: fixed; left: 0; right: 0; padding-top: env(safe-area-inset-top); }
  .header-inner { height: 62px; }
  .site-status-inner { height: 60px; min-height: 60px; display: grid; align-content: center; gap: 0; padding-top: 5px; padding-bottom: 5px; font-size: 12px; line-height: 1.45; }
  .brand-mark { width: 37px; height: 37px; font-size: 15px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { font-size: 8px; }
  .header-actions .btn { display: none; }
  .hero { min-height: 610px; margin-top: calc(62px + env(safe-area-inset-top)); }
  .commerce-paused .hero { margin-top: calc(122px + env(safe-area-inset-top)); }
  .hero-bg { object-position: 61% center; }
  .hero::after { background: linear-gradient(0deg, rgba(8,18,12,.93) 0%, rgba(8,18,12,.6) 58%, rgba(8,18,12,.2) 100%); }
  .hero-inner { min-height: 610px; align-items: end; padding-top: 140px; padding-bottom: 136px; }
  .hero-copy { width: 100%; }
  .hero-label { margin-bottom: 10px; }
  .hero h1 { font-size: 39px; line-height: 1.12; }
  .hero-lead { font-size: 14px; line-height: 1.7; }
  .hero-actions .btn { flex: 1; padding: 10px; }
  .hero-stat { gap: 20px; margin-top: 26px; }
  .hero-stat-item strong { font-size: 19px; }
  .hero-trust { overflow: hidden; }
  .trust-row { width: 100%; height: auto; grid-template-columns: repeat(2, 1fr); }
  .trust-item { min-height: 62px; padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .trust-item:nth-child(odd) { border-left: 1px solid rgba(255,255,255,.12); }
  .vehicle-grid { display: flex; gap: 14px; overflow-x: auto; margin-right: -14px; padding-right: 14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .vehicle-card { min-width: 82%; scroll-snap-align: start; }
  .vehicle-card.hidden { display: none; }
  .order-layout { display: block; }
  .order-copy h2 { font-size: 31px; }
  .order-copy .order-step { display: none; }
  .order-card { margin-top: 25px; padding: 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 13px; }
  .field input, .field select, .field textarea, .search-box input, .filter-select, .config-row input, .config-row select { font-size: 16px; }
  .field.full { grid-column: auto; }
  .location-tools > span:last-child { width: 100%; margin-left: 0; }
  .service-grid { display: block; }
  .service-main { min-height: 320px; margin-bottom: 14px; padding: 24px; }
  .service-main h3 { margin-top: 170px; }
  .service-column { grid-template-columns: 1fr 1fr; gap: 12px; }
  .service-item { min-height: 158px; padding: 17px; }
  .promo-grid { display: flex; overflow-x: auto; margin-right: -14px; padding-right: 14px; scrollbar-width: none; }
  .promo-card { min-width: 82%; }
  .promo-card:last-child { grid-column: auto; }
  .about-band { display: block; }
  .about-image { min-height: 330px; }
  .about-copy { padding: 42px 20px; }
  .about-copy h2 { font-size: 29px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { display: block; }
  .footer-bottom > span:last-child { margin-top: 8px; }
  .legal-header .container { min-height: 62px; }
  .legal-header .brand-copy { display: none; }
  .legal-header .btn { min-height: 38px; padding: 7px 12px; font-size: 12px; }
  .legal-main { padding-top: 38px; padding-bottom: 65px; }
  .legal-title h1 { font-size: 31px; }
  .legal-main section { padding: 21px 0; }
  .legal-main section h2 { font-size: 18px; }
  .legal-main section p { font-size: 13px; }
  .mobile-nav { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 7px 8px max(7px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); backdrop-filter: blur(10px); }
  .mobile-nav a, .mobile-nav button { min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 0; background: none; color: #7d887f; font-size: 11px; }
  .mobile-nav a.active, .mobile-nav button.active { color: var(--green); font-weight: 800; }
  .modal-shell { align-items: end; }
  .modal-panel, .dispatch-modal { width: 100%; max-height: 91vh; max-height: 91dvh; border-radius: 7px 7px 0 0; }
  .modal-head { padding: 16px 18px; }
  .modal-body { padding: 18px; }
  .modal-foot { padding: 13px 18px max(13px, env(safe-area-inset-bottom)); }
  .pay-options { grid-template-columns: 1fr; }
  .redemption-item { grid-template-columns: 1fr; gap: 7px; }
  .redemption-item-state { align-items: flex-start; }
  .redemption-item-state code { max-width: 100%; text-align: left; }
  .toast-root { top: calc(74px + env(safe-area-inset-top)); width: calc(100% - 32px); }
  .toast { min-width: 0; width: 100%; }

  .admin-body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .admin-shell { display: block; }
  .admin-sidebar { display: none; }
  .admin-topbar { height: calc(58px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 14px 0; }
  .admin-topbar h1 { font-size: 16px; }
  .system-status { display: none; }
  .admin-content { padding: 18px 14px 34px; }
  .view-heading { align-items: start; }
  .view-heading h2 { font-size: 20px; }
  .view-heading .btn { padding: 8px 11px; min-height: 38px; font-size: 11px; }
  .stat-grid { gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-card strong { font-size: 22px; }
  .dashboard-grid { display: block; }
  .dashboard-grid .panel { margin-bottom: 12px; }
  .bar-chart { height: 200px; }
  .table-tools { flex-wrap: wrap; }
  .search-box { width: 100%; }
  .config-grid, .driver-grid { grid-template-columns: 1fr; }
  .config-row { grid-template-columns: 1fr 120px; }
  .launch-check-head { align-items: flex-start; padding: 17px 16px; }
  .launch-readiness-summary { max-width: 46%; }
  .launch-checklist { grid-template-columns: 1fr; }
  .launch-check-item { padding: 13px 16px; }
  .launch-check-item:nth-child(odd) { border-right: 0; }
  .launch-blockers { padding: 15px 16px 17px; }
  .marketing-section { margin-top: 24px; }
  .marketing-section-head { align-items: flex-start; }
  .marketing-section-head p { max-width: 280px; }
  .admin-mobile-nav { position: fixed; z-index: 40; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(6, 1fr); padding: 7px 5px max(7px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); }
  .admin-mobile-nav button { min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 0; background: none; color: #7d877f; font-size: 11px; }
  .admin-mobile-nav button.active { color: var(--green); font-weight: 800; }
  .dispatch-order { grid-template-columns: 1fr; }
  .driver-choice { grid-template-columns: 1fr; }
  .capability-options { grid-template-columns: 1fr; max-height: 52vh; }
  .driver-body { padding-bottom: 0; }
  .driver-app { max-width: none; }
  .driver-header { padding-top: max(14px, env(safe-area-inset-top)); }
  .login-body { padding-bottom: 0; }
  .login-layout { display: block; }
  .login-brand-panel { min-height: 185px; padding: 24px 20px; }
  .login-brand-copy { margin-top: 28px; }
  .login-brand-copy h1 { margin: 7px 0; font-size: 29px; }
  .login-brand-copy p, .login-copyright { display: none; }
  .login-form-panel { padding: 22px 14px 40px; }
  .login-card { padding: 24px 20px; box-shadow: none; }
}

@media (min-width: 721px) { .admin-mobile-nav { display: none; } }

@media (max-width: 420px) {
  .hero h1 { font-size: 34px; }
  .hero-lead { font-size: 13px; }
  .points-product { align-items: flex-start; flex-direction: column; gap: 9px; }
  .points-product .btn { width: 100%; }
  .redemption-confirm-actions { grid-template-columns: 1fr; }
  .service-column { grid-template-columns: 1fr; }
  .about-list { grid-template-columns: 1fr; }
  .task-counter { gap: 6px; }
  .task-count { padding: 10px; }
  .marketing-section-head { display: block; }
  .marketing-section-head .btn { width: 100%; margin-top: 10px; }
  .launch-check-head { flex-direction: column; gap: 8px; }
  .launch-readiness-summary { max-width: 100%; text-align: left; }
  .admin-topbar .topbar-actions > .btn { display: none; }
  .load-failure section { padding: 26px 20px; }
  .load-failure section > div { display: grid; }
}
