:root{--exsa-safe-top:env(safe-area-inset-top,0px);--exsa-safe-right:env(safe-area-inset-right,0px);--exsa-safe-bottom:env(safe-area-inset-bottom,0px);--exsa-safe-left:env(safe-area-inset-left,0px);--brown:#D71920;--brown2:#ef4444;--ink:#201913;--muted:#7c746d;--bg:#f6f2ee;--card:#fff;--line:#e6dbd1;--ok:#e7f5ef;--warn:#fff3d9;--danger:#fae5e1;--r:18px;--shadow:0 6px 20px rgba(215,25,32,.055);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--ink);overflow-x:hidden}button,input{font:inherit}.app-shell{min-height:100dvh;padding-top:var(--exsa-safe-top);padding-bottom:calc(86px + var(--exsa-safe-bottom));padding-left:var(--exsa-safe-left);padding-right:var(--exsa-safe-right)}.topbar{height:68px;background:rgba(255,255,255,.98);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(14px,4vw,32px);position:sticky;top:0;z-index:20}.brand-block{min-width:0}.eyebrow{font-size:10px;font-weight:900;letter-spacing:1.25px;color:var(--brown);text-transform:uppercase}.topbar strong{display:block;font-size:17px;line-height:1.2;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:46vw}.top-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}.profile-top-btn{width:38px;height:38px;border:1px solid var(--line);border-radius:50%;background:var(--brown);color:#fff;font-weight:1000;font-size:10px;display:grid;place-items:center;cursor:pointer}.profile-top-btn:active{transform:scale(.97)}.icon-btn{height:36px;padding:0 11px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--brown);font-weight:900;font-size:10px;display:inline-flex;align-items:center;justify-content:center;gap:5px}.icon-btn span:first-child{font-size:15px;line-height:1}.availability.online{background:var(--ok);border-color:#cce8dc;color:#2e775e}.contact{display:block;margin-top:10px;color:var(--brown);font-size:10px;font-weight:900;text-decoration:none}.profile-section{padding-bottom:8px}.profile-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:15px;display:flex;gap:12px;align-items:center;box-shadow:var(--shadow)}.profile-avatar{width:44px;height:44px;border-radius:13px;background:var(--brown);color:#fff;display:grid;place-items:center;font-weight:1000;font-size:12px}.profile-info{display:grid;gap:3px;min-width:0}.profile-info strong{font-size:14px}.profile-info span{font-size:10px;color:var(--muted);overflow-wrap:anywhere}.error{padding:10px 12px;border-radius:12px;background:var(--danger);color:#984c42;font-size:11px;margin-bottom:12px;border:1px solid #f1d0ca}.type-pill{border:1px solid var(--line);border-radius:999px;padding:7px 10px;font-size:9px;font-weight:900;color:var(--brown);background:#fbf7f3;white-space:nowrap}.content{width:min(100%,1040px);margin:0 auto;padding:20px 18px 28px}.hero-card{background:linear-gradient(135deg,#fff,#fbf5ef);border:1px solid var(--line);border-radius:22px;padding:20px;display:flex;align-items:center;justify-content:space-between;gap:16px;box-shadow:var(--shadow)}h1{font-size:clamp(23px,4vw,30px);line-height:1.1;margin:5px 0 6px}h2{font-size:17px;margin:3px 0}.muted{color:var(--muted);font-size:12px;line-height:1.5}.availability{min-width:88px;height:44px;border:1px solid var(--line);background:#fff;border-radius:13px;color:var(--brown);font-weight:900;font-size:10px;transition:.15s ease}.availability:active,.btn:active,.text-btn:active,.bottom-nav button:active{transform:scale(.98)}.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:12px 0}.stats article{background:#fff;border:1px solid var(--line);border-radius:16px;padding:13px 14px}.stats span,.stats small{display:block;color:var(--muted);font-size:10px}.stats strong{display:inline-block;font-size:25px;line-height:1.1;margin:3px 4px 0 0}.section{margin-top:20px}.section-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:10px;gap:12px}.text-btn{border:0;background:none;color:var(--brown);font-weight:900;font-size:11px;padding:7px 0;white-space:nowrap}.timer-badge{padding:7px 9px;border-radius:10px;background:var(--warn);color:#9a6a14;font-size:11px;font-weight:900}.offer-card,.delivery-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:15px;box-shadow:var(--shadow)}.delivery-list{display:grid;gap:10px}.order-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.order-top strong{display:block;font-size:14px;margin-top:4px}.order-id{display:block;font-size:9px;font-weight:900;color:var(--muted);letter-spacing:.7px}.badge{font-size:8px;font-weight:900;padding:6px 8px;border-radius:999px;background:#eee;white-space:nowrap}.badge.waiting{background:var(--warn);color:#916116}.badge.assigned{background:#e8f0fa;color:#41658a}.badge.picked_up,.badge.on_delivery{background:#e7f1ff;color:#426d9c}.badge.delivered,.badge.delivered_pending_confirmation{background:var(--ok);color:#2e775e}.address{font-size:12px;line-height:1.55;margin:12px 0;color:#4f4944}.route{display:flex;align-items:center;gap:8px;background:#faf6f1;border:1px solid #eee3d8;padding:10px;border-radius:12px;font-size:10px;font-weight:800}.route span{min-width:0;overflow-wrap:anywhere}.route b{color:var(--brown)}.offer-actions{display:grid;grid-template-columns:.7fr 1.3fr;gap:8px;margin-top:12px}.btn{height:42px;border-radius:12px;border:1px solid var(--line);font-weight:900;font-size:11px;cursor:pointer}.btn.primary{background:var(--brown);border-color:var(--brown);color:#fff}.btn.ghost{background:#fff;color:var(--brown)}.btn.full{width:100%;margin-top:10px}.meta-row{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:9px}.empty{border:1px dashed var(--line);border-radius:16px;padding:22px;text-align:center;color:var(--muted);font-size:11px;background:#fff}.bottom-nav{position:fixed;left:0;right:0;bottom:0;height:calc(76px + env(safe-area-inset-bottom));padding:6px 8px env(safe-area-inset-bottom);background:rgba(255,255,255,.97);backdrop-filter:blur(16px);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;z-index:30}.bottom-nav button{border:0;background:transparent;color:#82786f;font-size:18px;border-radius:15px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;position:relative;padding:5px 2px}.bottom-nav button.active{background:#fde9ea;color:var(--brown)}.nav-icon{font-size:19px;line-height:20px;height:25px;width:25px;display:grid;place-items:center}.nav-icon svg{width:25px;height:25px;display:block}.bottom-nav small{font-size:9px;font-weight:900;line-height:1}.nav-badge{position:absolute;top:5px;right:calc(50% - 23px);min-width:16px;height:16px;padding:0 4px;border-radius:99px;background:#b42318;color:#fff;font-size:8px;font-weight:900;display:grid;place-items:center}.auth-page{min-height:100dvh;display:grid;place-items:center;padding:18px}.auth-wrap{width:min(100%,430px)}.auth-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:24px;box-shadow:var(--shadow)}.brand-mark{width:48px;height:48px;border-radius:14px;background:var(--brown);color:#fff;display:grid;place-items:center;font-weight:1000;margin-bottom:18px}.auth-card h1{margin-top:7px}.auth-card form{display:grid;gap:14px;margin-top:22px}.auth-card label{font-size:10px;font-weight:900;color:#665d55}.auth-card input{width:100%;height:44px;margin-top:6px;border:1px solid var(--line);border-radius:12px;padding:0 12px;outline:none;background:#fff}.auth-card input:focus{border-color:var(--brown)}@media(min-width:701px){.stats{grid-template-columns:repeat(2,220px)}.delivery-list{grid-template-columns:repeat(2,minmax(0,1fr))}.bottom-nav{display:none}.app-shell{padding-bottom:0}}@media(max-width:700px){.content{padding:15px 14px 24px}.topbar{height:64px}.hero-card{padding:16px;border-radius:18px}.hero-card .availability{align-self:flex-start}.offer-actions{grid-template-columns:1fr 1.35fr}.type-pill{display:none}}@media(max-width:420px){.nav-icon{width:27px;height:27px}.nav-icon svg{width:27px;height:27px}.content{padding-left:12px;padding-right:12px}.topbar{padding:0 12px}.topbar strong{max-width:48vw}.icon-btn{height:34px;padding:0 9px}.hero-card{gap:10px}.availability{min-width:80px;font-size:9px}.offer-card,.delivery-card{padding:13px}.route{font-size:9px}.bottom-nav{padding-left:6px;padding-right:6px}.bottom-nav button{border-radius:13px}.nav-icon{font-size:18px}}.view{display:none}.view.active{display:block}.delivery-actions{display:grid;grid-template-columns:1.2fr .9fr .9fr;gap:7px;margin-top:10px}.delivery-actions .btn{min-width:0}.logout-wide{margin-top:12px}.offer-card.compact{margin-bottom:0}.view h1{margin-top:0}@media(max-width:420px){.delivery-actions{grid-template-columns:1fr 1fr}.delivery-actions .btn:first-child{grid-column:1/-1}}

/* V86 Courier Operations */
.timer-badge{min-width:72px;text-align:center;font-size:18px;font-weight:900;letter-spacing:.5px;padding:7px 10px;border-radius:12px;background:#f2f5ff;color:#284f9e}.timer-badge.urgent{background:#fff0f0;color:#b42318;animation:pulseTimer .9s infinite}@keyframes pulseTimer{50%{transform:scale(1.04)}}.offer-type-row,.payment-row{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:9px 0;font-size:12px;font-weight:750}.payment-row{padding:8px 10px;border-radius:10px;background:#faf7f3}.order-items{margin-top:11px;border-top:1px solid #eee;padding-top:10px}.items-title{font-size:12px;font-weight:850;margin-bottom:5px}.item-line{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px dashed #eee;font-size:12px}.item-line .muted{font-size:10px;margin-top:2px}.variant{font-weight:600}.totals{display:grid;grid-template-columns:1fr auto;gap:4px 12px;margin-top:9px;font-size:11px}.proof-ready{margin-top:9px;padding:8px 10px;border-radius:10px;background:#edf8f0;font-size:11px;font-weight:800;color:#24633c}.delivery-card .contact{display:inline-block;margin-top:8px}

/* V95 Courier dashboard: compact informative cards */
.stats-summary{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px 15px;margin:12px 0;box-shadow:var(--shadow)}
.stats-summary-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.stats-summary-head h2{margin:3px 0 0}

.stats-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid #eee5de;padding-top:10px}
.stats-summary-grid>div{padding:0 10px;border-right:1px solid #eee5de;min-width:0}
.stats-summary-grid>div:first-child{padding-left:0}
.stats-summary-grid>div:last-child{padding-right:0;border-right:0}
.stats-summary-grid span,.stats-summary-grid small{display:block;color:var(--muted);font-size:9px;line-height:1.25}
.stats-summary-grid strong{display:block;font-size:19px;line-height:1.15;margin:3px 0}
.stats-summary-grid>div:last-child strong{font-size:13px;line-height:1.3}
.delivery-summary-card{cursor:pointer;transition:transform .12s ease,box-shadow .12s ease}
.delivery-summary-card:hover{transform:translateY(-1px);box-shadow:0 8px 24px rgba(73,43,24,.09)}
.delivery-summary-card:focus-visible{outline:2px solid var(--brown);outline-offset:2px}
.summary-meta{display:flex;justify-content:space-between;align-items:center;margin-top:10px;padding-top:9px;border-top:1px solid #eee5de;color:var(--muted);font-size:10px;font-weight:800}
.summary-meta span:last-child{color:var(--brown)}
.delivery-detail-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:15px;box-shadow:var(--shadow)}
.detail-address{margin-top:12px;padding:11px 12px;border-radius:12px;background:#faf6f1;border:1px solid #eee3d8}
.detail-address p{font-size:12px;line-height:1.55;margin:6px 0 0;color:#4f4944}
@media(max-width:700px){.stats-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 0}.stats-summary-grid>div{padding:0 10px;border-right:1px solid #eee5de}.stats-summary-grid>div:nth-child(2){border-right:0}.stats-summary-grid>div:nth-child(-n+2){padding-bottom:9px;border-bottom:1px solid #eee5de}.stats-summary-grid>div:nth-child(n+3){padding-top:9px}.stats-summary-grid>div:nth-child(3){padding-left:0}.stats-summary-grid>div:nth-child(4){padding-right:0}}

/* V97 page routing + history */
.page-view{display:block;min-height:40vh}.page-head{align-items:flex-start}.page-head-actions{display:flex;align-items:center;gap:12px;flex-shrink:0}.history-link{margin-top:18px;padding-top:14px;border-top:1px solid #eee5de}.history-summary-card{background:#fffdfb}.badge.cancelled,.badge.returned{background:#fae5e1;color:#984c42}
@media(max-width:520px){.page-head{gap:8px}.page-head-actions{gap:7px}.page-head-actions .text-btn{font-size:10px}.page-view h1{font-size:23px}}

/* V101 — Courier account menu + compact home summary */
.profile-menu{position:absolute;right:0;top:46px;width:min(285px,calc(100vw - 28px));background:#fff;border:1px solid var(--line);border-radius:16px;padding:8px;box-shadow:0 14px 35px rgba(215,25,32,.16);z-index:80}.profile-menu-head{display:flex;align-items:center;gap:9px;padding:7px 7px 9px}.profile-menu-head>div{min-width:0}.profile-menu-head strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-menu-head small{display:block;font-size:9px;color:var(--muted);margin-top:2px}.profile-menu-avatar{width:34px;height:34px;border-radius:11px;background:var(--brown);color:#fff;display:grid;place-items:center;font-size:9px;font-weight:1000;flex:none}.profile-menu-divider{height:1px;background:#eee5de;margin:5px 0}.profile-menu button{width:100%;border:0;background:transparent;border-radius:10px;padding:10px 9px;display:flex;align-items:center;gap:9px;text-align:left;color:var(--ink);font-size:11px;font-weight:850;cursor:pointer}.profile-menu button:hover{background:#faf6f1}.profile-menu button.danger{color:#a53f34}.top-actions{position:relative}.stats-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.stats-summary-grid>div:last-child{border-right:0}.response-summary{margin-top:10px;padding-top:10px;border-top:1px solid #eee5de;display:flex;align-items:center;justify-content:space-between;gap:12px}.response-summary>span{color:var(--muted);font-size:9px}.response-values{display:flex;gap:14px;align-items:center}.response-values strong{font-size:10px;white-space:nowrap}.account-list{display:grid;gap:8px;margin-top:14px}.account-list button{width:100%;border:1px solid var(--line);background:#fff;border-radius:14px;padding:12px;display:flex;align-items:center;gap:10px;text-align:left;cursor:pointer;box-shadow:var(--shadow)}.account-list button>span{width:34px;height:34px;border-radius:10px;background:#faf3ec;display:grid;place-items:center}.account-list button>div{min-width:0;flex:1}.account-list b{display:block;font-size:11px}.account-list small{display:block;color:var(--muted);font-size:9px;margin-top:2px}.account-list em{font-style:normal;color:var(--brown);font-size:20px}.profile-form{background:#fff;border:1px solid var(--line);border-radius:18px;padding:15px;box-shadow:var(--shadow);display:grid;gap:12px}.profile-form label{display:grid;gap:5px;color:#665d55;font-size:10px;font-weight:900}.profile-form input{width:100%;height:42px;border:1px solid var(--line);border-radius:11px;padding:0 11px;outline:none;background:#fff;color:var(--ink);font-size:12px}.profile-form input:focus{border-color:var(--brown);box-shadow:0 0 0 3px rgba(215,25,32,.07)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.form-section-title{font-size:9px;letter-spacing:1px;font-weight:1000;color:var(--brown);padding-top:3px;border-bottom:1px solid #eee5de;padding-bottom:7px}.page-head{margin-bottom:12px}.page-head h1{font-size:22px}@media(max-width:700px){.stats-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:0}.stats-summary-grid>div{padding:0 8px}.stats-summary-grid>div:first-child{padding-left:0}.stats-summary-grid>div:nth-child(2){border-right:1px solid #eee5de}.stats-summary-grid>div:last-child{padding-right:0}.stats-summary-grid strong{font-size:17px}.response-summary{display:block}.response-values{justify-content:space-between;margin-top:7px;gap:8px}.response-values strong{font-size:9px}.profile-menu{right:-2px}}

/* V109 — Courier red theme + lively functional bottom-nav icons */
.bottom-nav .nav-icon{
  font-family:"Noto Color Emoji","Apple Color Emoji","Segoe UI Emoji",sans-serif;
  font-size:21px;
  line-height:1;
  height:27px;
  width:27px;
  display:grid;
  place-items:center;
  filter:saturate(1.05);
}
.bottom-nav button.active .nav-icon{transform:translateY(-1px) scale(1.04)}
.bottom-nav button.active small{font-weight:950}
@media(min-width:701px){
  .bottom-nav{
    left:50%;
    right:auto;
    transform:translateX(-50%);
    width:min(720px,calc(100% - 32px));
    border:1px solid var(--line);
    border-bottom:0;
    border-radius:18px 18px 0 0;
  }
}

/* FIX7: detail actions keep status + WhatsApp side by side */
.delivery-actions .btn{display:flex;align-items:center;justify-content:center;gap:7px;text-decoration:none;line-height:1;}
.delivery-actions .contact-whatsapp{white-space:nowrap;}
.wa-icon{width:17px;height:17px;display:block;flex:0 0 17px;fill:currentColor;}
@media(max-width:420px){.delivery-actions{grid-template-columns:1fr 1fr;gap:8px}.delivery-actions .btn:first-child{grid-column:auto}.delivery-actions .btn{width:100%;min-width:0;}}

/* V-BANNER-HEADER — SuperAdmin-managed image banner inside Courier header */
.topbar{height:auto;min-height:68px;display:block;padding:0 clamp(12px,4vw,32px);background:rgba(255,255,255,.98)}
.topbar-row{height:68px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.header-banner{position:relative;margin:0 auto 10px;width:100%;max-width:1040px;height:118px;overflow:hidden;border-radius:16px;background:linear-gradient(135deg,#201913,#6e1b20);box-shadow:0 8px 22px rgba(0,0,0,.08)}
.header-banner-bg{position:absolute;inset:0;background-position:center;background-size:cover;background-repeat:no-repeat;transform:scale(1.01)}
.header-banner-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(12,12,12,.73),rgba(12,12,12,.28) 65%,rgba(12,12,12,.08))}
.header-banner-copy{position:absolute;z-index:1;left:18px;right:150px;top:50%;transform:translateY(-50%);color:#fff}
.header-banner-eyebrow{font-size:8px;letter-spacing:1.4px;font-weight:950;text-transform:uppercase;opacity:.86}
.header-banner-title{font-size:18px;font-weight:950;line-height:1.12;margin-top:5px;letter-spacing:-.3px}
.header-banner-message{font-size:10px;line-height:1.35;margin-top:4px;opacity:.9;max-width:560px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.header-banner-cta{position:absolute;z-index:2;right:16px;bottom:14px;height:34px;border:1px solid rgba(255,255,255,.26);border-radius:10px;padding:0 12px;background:rgba(255,255,255,.94);color:#7f151c;font-size:9px;font-weight:950;cursor:pointer;box-shadow:0 5px 14px rgba(0,0,0,.12)}
@media(max-width:700px){.topbar{padding:0 12px}.topbar-row{height:62px}.header-banner{height:104px;margin-bottom:8px;border-radius:14px}.header-banner-copy{left:13px;right:120px}.header-banner-eyebrow{font-size:7px}.header-banner-title{font-size:15px}.header-banner-message{font-size:9px}.header-banner-cta{right:11px;bottom:11px;height:31px;padding:0 10px;font-size:8px}}
@media(max-width:420px){.header-banner{height:96px}.header-banner-copy{right:105px}.header-banner-title{font-size:14px}.header-banner-message{-webkit-line-clamp:1}.header-banner-cta{right:9px;bottom:9px;height:29px;padding:0 9px;font-size:8px}}

/* ============================================================
   V3 DARK COURIER THEME — BLACK / RED / WHITE
   Banner-first layout: no content above the managed header banner.
   ============================================================ */
:root{
  --brown:#E31B23;
  --brown2:#FF4A4F;
  --ink:#F6F7F8;
  --muted:#A7ACB3;
  --bg:#090A0C;
  --card:#111317;
  --line:#252A30;
  --ok:#15351F;
  --warn:#3A2B0B;
  --danger:#3B171A;
  --shadow:0 10px 28px rgba(0,0,0,.34);
}
html,body{background:var(--bg);color:var(--ink)}
.topbar{
  padding:0 !important;
  min-height:0 !important;
  background:#090A0C !important;
  border-bottom:0 !important;
}
.topbar-row{display:none !important}
.header-banner{
  width:100vw !important;
  max-width:none !important;
  margin:0 !important;
  height:clamp(138px,24vw,230px) !important;
  border-radius:0 !important;
  box-shadow:0 10px 28px rgba(0,0,0,.34) !important;
  border:0 !important;
}
.header-banner-overlay{
  background:linear-gradient(90deg,rgba(0,0,0,.80),rgba(0,0,0,.42) 60%,rgba(0,0,0,.15)) !important;
}
.header-banner-copy{left:22px;right:180px}
.header-banner-title{color:#fff}
.header-banner-cta{background:#E31B23;color:#fff;border-color:#E31B23;box-shadow:0 8px 18px rgba(227,27,35,.28)}
.content{padding-top:16px !important;background:var(--bg)}
.hero-card,.stats-summary,.offer-card,.delivery-card,.empty,.profile-form,.account-list button,.auth-card,.panel,.section-card{
  background:#111317 !important;
  border-color:#252A30 !important;
  color:var(--ink);
  box-shadow:var(--shadow) !important;
}
.hero-card{background:linear-gradient(135deg,#15171B,#0E0F12) !important}
.stats-summary-grid>div,.response-summary{border-color:#252A30 !important}
.route{background:#171A1F !important;border-color:#2A2F35 !important;color:#F6F7F8}
.payment-row{background:#171A1F !important}
.availability{background:#15171B !important;border-color:#30353B !important;color:#fff}
.availability.online{background:#15351F !important;border-color:#225E35 !important;color:#8EF0AE}
.type-pill{background:#15171B !important;border-color:#30353B !important;color:#FF5A60}
.bottom-nav{
  background:rgba(11,12,15,.96) !important;
  border-top:1px solid #252A30 !important;
  box-shadow:0 -10px 28px rgba(0,0,0,.35);
}
.bottom-nav button{color:#7E858E}
.bottom-nav button.active{background:#351216 !important;color:#FF4A4F !important}
.profile-menu{background:#111317 !important;border-color:#2A2F35 !important;box-shadow:0 16px 38px rgba(0,0,0,.55)}
.profile-menu button{color:#F6F7F8}
.profile-menu button:hover{background:#191C21}
.account-list button>span{background:#1A1D22 !important}
.text-btn{color:#FF4A4F}
.btn{background:#15171B;color:#F6F7F8;border-color:#30353B}
.btn.primary{background:#E31B23 !important;border-color:#E31B23 !important;color:#fff !important}
.btn.ghost{background:#15171B !important;color:#FF5A60 !important}
.form-note,.muted{color:#A7ACB3}
.auth-page{background:#090A0C}
.auth-card input,.profile-form input,.auth-card input:focus{background:#0F1114;color:#F6F7F8;border-color:#2A2F35}
.error{background:#3B171A;color:#FFB4B9;border-color:#6A252B}
.badge.waiting{background:#3A2B0B;color:#FFD46A}
.badge.assigned,.badge.picked_up,.badge.on_delivery{background:#172636;color:#8FC7FF}
.badge.delivered,.badge.delivered_pending_confirmation{background:#15351F;color:#8EF0AE}
@media(max-width:700px){
  .header-banner{height:clamp(126px,31vw,170px) !important}
  .header-banner-copy{left:14px;right:118px}
  .content{padding-top:14px !important}
}
@media(max-width:420px){
  .header-banner{height:122px !important}
  .header-banner-copy{left:12px;right:104px}
  .header-banner-title{font-size:14px}
  .header-banner-message{font-size:8.5px}
}

/* V11 delivery detail dark theme */
.delivery-detail-card{background:#111318 !important;color:#f3f4f6 !important;border-color:#292d35 !important;box-shadow:0 10px 28px rgba(0,0,0,.25)}
.delivery-detail-card .muted,.delivery-detail-card .address,.delivery-detail-card p{color:#aeb4bf}
.delivery-detail-card .detail-address{background:#171a20;border:1px solid #2b3038;border-radius:16px;padding:14px;margin-top:12px}
.delivery-detail-card .route{background:#171a20;border-color:#2b3038}
.delivery-detail-card .payment-row,.delivery-detail-card .offer-type-row{color:#e8eaee}
.map-detail-btn{width:100%;margin-top:10px}
.btn:disabled{opacity:.6;pointer-events:none}

/* Courier offer readability + customer map actions */
.offer-card .address,
.offer-card .map-missing { color:#f1f3f6; }
.offer-card .map-detail-btn { display:flex; width:100%; min-height:42px; align-items:center; justify-content:center; margin:8px 0 12px; text-decoration:none; color:#ff6570; border-color:#343741; background:#17191f; }
.offer-card .map-detail-btn:active { background:#22252d; }
#homeOfferSummary .home-offer-card,
#homeOfferCard .home-offer-card { position:relative; overflow:hidden; padding:16px; border:1px solid rgba(255,255,255,.09); border-radius:18px; background:linear-gradient(145deg,#18191e,#111216); color:#f1f3f6; box-shadow:0 14px 34px rgba(0,0,0,.24); }
#homeOfferSummary .home-offer-card:before,
#homeOfferCard .home-offer-card:before { content:""; position:absolute; inset:0 auto 0 0; width:4px; background:#e11d2e; }
#homeOfferSummary .home-offer-customer,
#homeOfferCard .home-offer-customer { color:#fff; }
#homeOfferSummary .home-offer-order,
#homeOfferSummary .home-offer-more,
#homeOfferCard .home-offer-order,
#homeOfferCard .home-offer-more { color:#c3c8d1; }


/* V21 Home offer: canonical styling that persists across SPA navigation */
#homeOfferSummary .home-offer-card,
#homeOfferCard .home-offer-card {
  position:relative;
  overflow:hidden;
  padding:16px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:18px;
  background:linear-gradient(145deg,#18191e,#111216);
  color:#f1f3f6;
  box-shadow:0 14px 34px rgba(0,0,0,.24);
}
#homeOfferSummary .home-offer-card::before,
#homeOfferCard .home-offer-card::before {
  content:""; position:absolute; inset:0 auto 0 0; width:4px; background:#e11d2e;
}
#homeOfferSummary .home-offer-head,
#homeOfferCard .home-offer-head {
  display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:11px;
}
#homeOfferSummary .home-offer-kicker,
#homeOfferCard .home-offer-kicker {
  font-size:11px; font-weight:800; letter-spacing:.16em; color:#f04451; text-transform:uppercase;
}
#homeOfferSummary .home-offer-count,
#homeOfferCard .home-offer-count {
  min-width:28px; height:28px; padding:0 8px; border-radius:999px;
  display:grid; place-items:center; background:#8f1722; color:#fff; font-size:12px; font-weight:800;
}
#homeOfferSummary .home-offer-title,
#homeOfferCard .home-offer-title {
  display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:3px;
}
#homeOfferSummary .home-offer-order,
#homeOfferCard .home-offer-order {
  font-size:13px; color:#c3c8d1; font-weight:700;
}
#homeOfferSummary .home-offer-customer,
#homeOfferCard .home-offer-customer {
  font-size:19px; line-height:1.2; color:#fff; font-weight:800;
}
#homeOfferSummary .home-offer-timer,
#homeOfferCard .home-offer-timer {
  flex:0 0 auto; padding:6px 9px; border-radius:10px; background:#27161a; color:#ff6771;
  font-weight:900; font-variant-numeric:tabular-nums;
}
#homeOfferSummary .home-offer-timer.urgent,
#homeOfferCard .home-offer-timer.urgent {
  background:#5a151b; color:#fff;
}
#homeOfferSummary .home-offer-route,
#homeOfferCard .home-offer-route {
  display:flex; align-items:center; gap:8px; margin:12px 0 10px; padding:10px 11px;
  border-radius:12px; background:#191b20; color:#d9dce3; font-size:13px; font-weight:700;
}
#homeOfferSummary .home-offer-route b,
#homeOfferCard .home-offer-route b { color:#f04451; font-size:14px; }
#homeOfferSummary .home-offer-meta,
#homeOfferCard .home-offer-meta {
  display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:10px;
}
#homeOfferSummary .home-offer-meta-item,
#homeOfferCard .home-offer-meta-item {
  padding:9px 10px; border-radius:12px; background:#15171b; border:1px solid rgba(255,255,255,.06);
}
#homeOfferSummary .home-offer-meta-item span,
#homeOfferCard .home-offer-meta-item span {
  display:block; color:#8f96a3; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; margin-bottom:3px;
}
#homeOfferSummary .home-offer-meta-item strong,
#homeOfferCard .home-offer-meta-item strong {
  display:block; color:#f1f3f6; font-size:14px; font-weight:800;
}
#homeOfferSummary .home-offer-more,
#homeOfferCard .home-offer-more {
  margin:6px 0 10px; color:#c3c8d1; font-size:12px; font-weight:600;
}
#homeOfferSummary .home-offer-cta,
#homeOfferCard .home-offer-cta {
  width:100%; min-height:44px; border:0; border-radius:12px; background:#e11d2e; color:#fff;
  font-weight:900; font-size:14px; cursor:pointer; box-shadow:0 8px 20px rgba(225,29,46,.22);
  appearance:none; -webkit-appearance:none;
}
#homeOfferSummary .home-offer-cta:active,
#homeOfferCard .home-offer-cta:active { transform:translateY(1px); }
#homeOfferSummary .home-offer-cta:focus-visible,
#homeOfferCard .home-offer-cta:focus-visible { outline:2px solid #ff6a73; outline-offset:2px; }
@media(max-width:420px){
  #homeOfferSummary .home-offer-card, #homeOfferCard .home-offer-card { padding:14px; }
  #homeOfferSummary .home-offer-customer, #homeOfferCard .home-offer-customer { font-size:18px; }
  #homeOfferSummary .home-offer-meta-item strong, #homeOfferCard .home-offer-meta-item strong { font-size:13px; }
}


/* V30 — Professional WebView safe-area alignment.
 * Apply device insets exactly once at the web layer.
 */
.app-shell{
  min-height:100dvh;
  padding-top:var(--exsa-safe-top);
  padding-right:var(--exsa-safe-right);
  padding-bottom:calc(86px + var(--exsa-safe-bottom));
  padding-left:var(--exsa-safe-left);
  box-sizing:border-box;
}
.topbar{
  top:var(--exsa-safe-top);
  padding-left:calc(clamp(12px,4vw,32px) + var(--exsa-safe-left));
  padding-right:calc(clamp(12px,4vw,32px) + var(--exsa-safe-right));
}
.bottom-nav{
  height:calc(76px + var(--exsa-safe-bottom));
  padding-bottom:calc(6px + var(--exsa-safe-bottom));
  padding-left:calc(8px + var(--exsa-safe-left));
  padding-right:calc(8px + var(--exsa-safe-right));
}
.header-banner-copy{
    left:calc(22px + var(--exsa-safe-left));
    right:calc(180px + var(--exsa-safe-right));
  }
  .header-banner-cta{
    right:calc(16px + var(--exsa-safe-right));
    bottom:calc(14px + var(--exsa-safe-bottom));
  }
.auth-page{
  min-height:100dvh;
  padding-top:max(18px,var(--exsa-safe-top));
  padding-right:max(18px,var(--exsa-safe-right));
  padding-bottom:max(18px,var(--exsa-safe-bottom));
  padding-left:max(18px,var(--exsa-safe-left));
  box-sizing:border-box;
}


@media(max-width:700px){
  .bottom-nav{
    left:var(--exsa-safe-left);
    right:var(--exsa-safe-right);
    width:auto;
  }
}

/* V26 — suppress root pull-to-refresh overscroll while keeping native vertical pan. */
html { overscroll-behavior-y: none; }


/* V32 — Keep Courier topbar below the WebView status-bar inset while scrolling.
 * The shell owns the initial inset; sticky topbar keeps the same offset.
 */
.topbar{top:var(--exsa-safe-top)!important;}


/* V33 — Courier Android WebView: harden the TOP safe area.
 * Some Android WebViews expose safe-area-inset-top as 0 even though the
 * status bar is edge-to-edge. Courier's banner must never render underneath it.
 * Use the real inset when available, with a conservative 24px Android fallback.
 */
:root{
  --exsa-courier-safe-top:max(var(--exsa-safe-top),24px);
}
@media(max-width:700px){
  .app-shell{
    padding-top:var(--exsa-courier-safe-top)!important;
  }
  .topbar{
    top:var(--exsa-courier-safe-top)!important;
  }
  body.auth-page{
    padding-top:max(18px,var(--exsa-courier-safe-top))!important;
  }
  body::before{
    content:"";
    position:fixed;
    top:0;
    left:0;
    right:0;
    height:var(--exsa-courier-safe-top);
    background:var(--bg);
    z-index:99999;
    pointer-events:none;
  }
}


/* V34 camera-first delivery proof */
.proof-camera-overlay{
  position:fixed;inset:0;z-index:200;display:grid;align-items:end;
  background:rgba(0,0,0,.72);backdrop-filter:blur(10px);
  padding:0 var(--exsa-safe-right) var(--exsa-safe-bottom) var(--exsa-safe-left);
}
.proof-camera-overlay[hidden]{display:none}
.proof-camera-sheet{
  width:100%;max-height:92dvh;overflow:hidden;background:#101217;color:#f7f8fa;
  border:1px solid #2b3038;border-bottom:0;border-radius:26px 26px 0 0;
  padding:10px 14px 14px;box-shadow:0 -18px 48px rgba(0,0,0,.45);
}
.proof-camera-handle{width:52px;height:5px;border-radius:99px;background:#4b525c;margin:3px auto 12px}
.proof-camera-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:0 2px 12px}
.proof-camera-kicker{font-size:9px;letter-spacing:.14em;font-weight:900;color:#ff5a60}
.proof-camera-head h2{font-size:20px;margin:4px 0 3px;color:#fff}
.proof-camera-head p{margin:0;color:#9ea4ad;font-size:10px;line-height:1.45}
.proof-camera-close{width:38px;height:38px;border:1px solid #30353d;border-radius:12px;background:#171a1f;color:#fff;font-size:24px;line-height:1;cursor:pointer}
.proof-camera-stage{position:relative;aspect-ratio:4/3;max-height:58dvh;background:#050608;border:1px solid #2b3038;border-radius:18px;overflow:hidden}
.proof-camera-stage video{width:100%;height:100%;display:block;object-fit:cover;background:#050608}
.proof-camera-guide{position:absolute;inset:10% 9%;border:1px solid rgba(255,255,255,.34);border-radius:18px;box-shadow:0 0 0 999px rgba(0,0,0,.08) inset;pointer-events:none}
.proof-camera-status{position:absolute;left:12px;right:12px;bottom:10px;padding:8px 10px;border-radius:11px;background:rgba(0,0,0,.58);color:#fff;font-size:10px;text-align:center;backdrop-filter:blur(8px)}
.proof-camera-actions{display:grid;grid-template-columns:1fr 1.15fr;gap:9px;margin-top:11px;padding-bottom:max(2px,env(safe-area-inset-bottom,0px))}
.proof-camera-actions .btn{height:48px;border-radius:14px;font-size:12px}
.proof-camera-shutter{box-shadow:0 8px 20px rgba(227,27,35,.22)}
body.proof-camera-open{overflow:hidden}
@media(max-width:420px){.proof-camera-sheet{padding-left:12px;padding-right:12px;border-radius:22px 22px 0 0}.proof-camera-head h2{font-size:18px}.proof-camera-stage{aspect-ratio:3/4;max-height:56dvh}.proof-camera-actions{grid-template-columns:1fr 1.12fr}}
