/* nightcap customer app: premium green theme.
   Loaded after app.css. Design tokens first, then reusable components, then per-screen touches.
   Only the customer app loads this file; the driver, store and dashboard apps keep base.css. */

/* ---------- 1. Tokens ---------- */
:root {
  --green: #16A333;
  --green-dark: #087A32;
  --lime: #8BEA35;
  --lime-2: #B6F36A;
  --bg: #F7F9FC;
  --ink: #111B3A;
  --ink-2: #4A5672;
  --muted: #718096;
  --tint: #E4F7E3;
  --tint-2: #F2FBF1;
  --surface: #EEF2F8;
  --line: #E5EAF2;
  --line-2: #EDF1F7;
  --red: #E5293F;
  --font: 'Inter', 'SF Pro Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-sm: 14px;
  --r: 22px;
  --r-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(17, 27, 58, .04), 0 4px 12px rgba(17, 27, 58, .05);
  --shadow: 0 2px 4px rgba(17, 27, 58, .03), 0 10px 28px rgba(17, 27, 58, .07);
  --shadow-lg: 0 18px 44px rgba(17, 27, 58, .16);
  --shadow-green: 0 10px 24px rgba(22, 163, 51, .32);
  --grad-hero: linear-gradient(150deg, #04501F 0%, #087A32 38%, #16A333 78%, #45C142 100%);
  --grad-green: linear-gradient(180deg, #22B13E 0%, #16A333 55%, #0E8F2B 100%);
  --grad-lime: linear-gradient(180deg, #B4F35E 0%, #8BEA35 100%);
  /* pastel icon tones */
  --t-green-bg: #DDF5D6; --t-green-fg: #0E7A2C; --t-green-edge: #16A333;
  --t-blue-bg: #DCEAFF;  --t-blue-fg: #1F5FD6;  --t-blue-edge: #2D7CF6;
  --t-purple-bg: #EEE1FD; --t-purple-fg: #7A2EDB; --t-purple-edge: #8B3CF0;
  --t-orange-bg: #FFE6D6; --t-orange-fg: #D5480F; --t-orange-edge: #F26B1D;
  --t-teal-bg: #D6F4F1;  --t-teal-fg: #0D857A;  --t-teal-edge: #14B8A6;
  --t-grey-bg: #E9EDF4;  --t-grey-fg: #44506B;  --t-grey-edge: #94A3B8;
}

/* ---------- 2. Base ---------- */
html, body { background: var(--bg); }
body { font-family: var(--font); color: var(--ink); font-feature-settings: 'cv11', 'ss01'; letter-spacing: -0.006em; }
.shell { background: var(--bg); }
.view { gap: 22px; padding: 14px 18px 32px; }
h1, h2, h3 { letter-spacing: -0.025em; }
.page-head h1, .auth h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.035em; }
.page-head { padding-top: 10px; }
.section-title { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.topbar { min-height: 52px; }
.topbar-title { font-size: 20px; font-weight: 800; }
.muted { color: var(--muted); }
a { color: var(--green-dark); }
a:hover { color: var(--green); }
.view-all { color: var(--green-dark); font-size: 14px; }
:focus-visible { outline: 3px solid rgba(22, 163, 51, .45); outline-offset: 2px; }

/* ---------- 3. Surfaces ---------- */
.card { background: #fff; border: 0; border-radius: var(--r); box-shadow: var(--shadow); }
.card-pad { padding: 16px 18px; }
.list-card { border-radius: var(--r); }
.divider { background: var(--line-2); margin: 0 16px; }
.banner { border-radius: 18px; }
.sheet { border-radius: 30px 30px 0 0; padding: 22px 20px 26px; }
.sheet::before { content: ''; display: block; width: 44px; height: 5px; border-radius: 99px; background: #D9DFEA; margin: -8px auto 14px; }
@media (min-width: 700px) { .sheet { border-radius: 30px; } .sheet::before { display: none; } }
.backdrop { background: rgba(10, 18, 40, .5); backdrop-filter: blur(2px); }
.toast { border-radius: 16px; box-shadow: var(--shadow-lg); }
.toast.is-ok { background: var(--green-dark); }

/* ---------- 4. Buttons, inputs, chips ---------- */
.btn { min-height: 52px; border-radius: 999px; background: var(--grad-green); box-shadow: var(--shadow-green); font-weight: 800; letter-spacing: -0.01em; }
.btn:hover { background: linear-gradient(180deg, #1CA838, #0B8A2B); }
.btn-sm { min-height: 38px; box-shadow: 0 6px 14px rgba(22, 163, 51, .25); }
.btn-lg { min-height: 58px; }
.btn[disabled], .btn.is-disabled { background: #CBD3DF; box-shadow: none; }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--surface); color: var(--ink); }
.btn-ghost { background: transparent; box-shadow: none; color: var(--green-dark); }
.btn-ghost:hover { background: var(--tint-2); color: var(--green-dark); }
.btn-danger { background: #FDECEE; color: #B4142A; box-shadow: none; }
.btn-danger:hover { background: #FAD6DB; color: #8F0F21; }
.btn-dark { background: var(--ink); box-shadow: 0 8px 20px rgba(17, 27, 58, .25); }
.cta-lime { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 22px 0 26px; border-radius: 999px; background: var(--grad-lime); color: #0B4A1C; font-weight: 800; font-size: 17px; letter-spacing: -0.02em; box-shadow: 0 10px 24px rgba(8, 60, 20, .35), inset 0 -3px 0 rgba(8, 122, 50, .18); }
.cta-lime:hover { color: #0B4A1C; filter: brightness(1.04); }
.icon-btn { border: 0; background: #fff; box-shadow: var(--shadow-sm); }
.input, select.input, textarea.input { min-height: 52px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; }
.input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(22, 163, 51, .14); }
.field > span, .label { color: var(--ink-2); font-weight: 700; }
.search, #q.search { height: 54px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); padding: 0 8px 0 18px; }
.search input { font-size: 15.5px; }
.search-filter { background: var(--tint); color: var(--green-dark); width: 40px; height: 40px; }
.chip { border: 0; background: #fff; box-shadow: var(--shadow-sm); }
.chip.is-on, .chips-scroll .chip.is-on { background: var(--grad-green); color: #fff; box-shadow: 0 6px 14px rgba(22, 163, 51, .28); }
.chips-scroll .chip { background: #fff; box-shadow: var(--shadow-sm); }
.chip-radio span, .chip-check span { background: #fff; box-shadow: var(--shadow-sm); }
.chip-radio input:checked + span, .chip-check input:checked + span { background: var(--grad-green); }
.badge-tint { background: var(--tint); color: var(--green-dark); }
.badge-grey { background: var(--surface); }
.near-btn { height: 34px; padding: 0 12px; background: #fff; box-shadow: var(--shadow-sm); font-weight: 700; }
.near-btn.is-on { background: var(--tint); color: var(--green-dark); }
.stepper { background: #fff; box-shadow: var(--shadow-sm); }
.stepper.sm { background: var(--tint); box-shadow: none; }
.step-btn { color: var(--green-dark); }

/* Round arrow used on cards */
.round-go { flex: none; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: #EEF1F7; color: var(--ink); transition: transform .15s ease, background .15s ease; }
a:hover .round-go, button:hover .round-go { background: #E2E7F0; transform: translateX(2px); }

/* ---------- 5. Home hero ---------- */
.hero2 { position: relative; margin: -14px -18px 0; padding: calc(18px + env(safe-area-inset-top)) 20px 34px; background: var(--grad-hero); color: #fff; border-radius: 0 0 38px 38px; overflow: hidden; isolation: isolate; box-shadow: 0 16px 34px rgba(8, 80, 30, .25); }
.hero2::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(120% 70% at 100% 0%, rgba(139, 234, 53, .35), transparent 55%),
  radial-gradient(60% 50% at 0% 100%, rgba(0, 40, 10, .35), transparent 70%); }
.hero2::after { content: ''; position: absolute; left: -10%; right: -10%; bottom: -52px; height: 96px; z-index: -1; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.hero2-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hero2-brand { display: flex; flex-direction: column; gap: 6px; }
.hero2 .wordmark { color: #fff; }
.hero2 .wordmark .cap { color: var(--lime); }
.hero2 .wordmark svg path { stroke: var(--lime); }
.hero2-tag { font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .9); }
.hero2-me { width: 52px; height: 52px; border-radius: 999px; display: grid; place-items: center; background: rgba(0, 50, 18, .55); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 6px 16px rgba(0, 0, 0, .18); flex: none; }
.hero2-me:hover { color: #fff; background: rgba(0, 50, 18, .75); }
.hero2-body { position: relative; display: flex; align-items: flex-end; min-height: 188px; margin-top: 6px; }
.hero2-copy { position: relative; z-index: 2; flex: 0 0 56%; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; padding-bottom: 6px; }
.hero2 h1 { font-size: 25px; line-height: 1.12; font-weight: 800; letter-spacing: -0.035em; color: #fff; text-wrap: balance; }
.hero2-art { position: absolute; z-index: 1; right: -22px; bottom: -40px; width: 54%; max-width: 230px; pointer-events: none; }
.hero2-art::before { content: ''; position: absolute; left: 4%; right: 4%; top: 10%; bottom: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .7) 45%, rgba(255, 255, 255, 0) 72%); }
.hero2-art img { position: relative; display: block; width: 100%; height: auto; -webkit-mask-image: radial-gradient(ellipse 60% 58% at 52% 52%, #000 66%, transparent 100%); mask-image: radial-gradient(ellipse 60% 58% at 52% 52%, #000 66%, transparent 100%); filter: drop-shadow(0 14px 18px rgba(0, 40, 10, .35)); }
@media (max-width: 360px) { .hero2 h1 { font-size: 22px; } .hero2-art { width: 50%; } .cta-lime { font-size: 16px; padding: 0 18px 0 22px; } }
@media (min-width: 420px) { .hero2 { margin-left: 0; margin-right: 0; border-radius: 0 0 38px 38px; } }
.home-tools { display: flex; flex-direction: column; gap: 12px; margin-top: -4px; }
.home-tools .loc-row { padding: 0 2px; }

/* ---------- 6. Service cards (Order again, Parcels, Notifications, Planning...) ---------- */
.svc-list { display: flex; flex-direction: column; gap: 14px; }
.svc-list:empty { display: none; }
.svc { position: relative; display: flex; align-items: center; gap: 16px; width: 100%; min-height: 96px; padding: 14px 16px 14px 18px; border: 0; border-radius: 26px; background: #fff; box-shadow: var(--shadow); color: var(--ink); text-align: left; font: inherit; cursor: pointer; overflow: hidden; transition: transform .12s ease, box-shadow .15s ease; }
.svc::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 5px; border-radius: 0 6px 6px 0; background: var(--edge, var(--green)); }
.svc:hover { color: var(--ink); box-shadow: 0 4px 8px rgba(17, 27, 58, .04), 0 16px 34px rgba(17, 27, 58, .1); }
.svc:active { transform: scale(.99); }
.svc[disabled] { opacity: .6; cursor: progress; }
.svc-ico { position: relative; flex: none; width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center; background: var(--ico-bg); color: var(--ico-fg); }
.svc-ico svg { width: 28px; height: 28px; }
.svc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.svc-body strong { font-size: 18px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.svc-text { font-size: 13.5px; color: var(--muted); font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-badge { position: absolute; top: -6px; right: -6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; border: 2.5px solid #fff; }
.tone-green  { --ico-bg: var(--t-green-bg);  --ico-fg: var(--t-green-fg);  --edge: var(--t-green-edge); }
.tone-blue   { --ico-bg: var(--t-blue-bg);   --ico-fg: var(--t-blue-fg);   --edge: var(--t-blue-edge); }
.tone-purple { --ico-bg: var(--t-purple-bg); --ico-fg: var(--t-purple-fg); --edge: var(--t-purple-edge); }
.tone-orange { --ico-bg: var(--t-orange-bg); --ico-fg: var(--t-orange-fg); --edge: var(--t-orange-edge); }
.tone-teal   { --ico-bg: var(--t-teal-bg);   --ico-fg: var(--t-teal-fg);   --edge: var(--t-teal-edge); }
.tone-grey   { --ico-bg: var(--t-grey-bg);   --ico-fg: var(--t-grey-fg);   --edge: var(--t-grey-edge); }
@media (max-width: 360px) { .svc { gap: 12px; padding-left: 14px; } .svc-ico { width: 52px; height: 52px; border-radius: 16px; } .svc-body strong { font-size: 16.5px; } .round-go { width: 34px; height: 34px; } }

/* ---------- 7. Category cards ---------- */
.cat-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cat-card { position: relative; display: flex; align-items: flex-end; justify-content: flex-end; gap: 8px; min-height: 124px; padding: 14px; border: 0; border-radius: 26px; color: var(--ink); font: inherit; text-align: left; cursor: pointer; overflow: hidden; isolation: isolate; box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(255, 255, 255, .6); background: var(--cc-bg); transition: transform .12s ease, box-shadow .15s ease; }
.cat-card::after { content: ''; position: absolute; z-index: -1; right: -30px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.cat-card:hover { color: var(--ink); box-shadow: var(--shadow); }
.cat-card:active { transform: scale(.985); }
.cat-card-art { position: absolute; left: 10px; top: 50%; transform: translateY(-54%); filter: drop-shadow(0 8px 10px rgba(17, 27, 58, .18)); }
.cat-card-art svg { width: 72px; height: 72px; display: block; }
.cat-card-label { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; position: relative; z-index: 1; }
.cat-card .round-go { width: 36px; height: 36px; background: rgba(255, 255, 255, .85); box-shadow: 0 2px 6px rgba(17, 27, 58, .08); }
.cc-beer   { --cc-bg: linear-gradient(140deg, #F2FBE8 0%, #DDF3C8 100%); }
.cc-wine   { --cc-bg: linear-gradient(140deg, #F7F0FE 0%, #E7D7FA 100%); }
.cc-spirits{ --cc-bg: linear-gradient(140deg, #ECFAF2 0%, #CDEFD9 100%); }
.cc-rtd    { --cc-bg: linear-gradient(140deg, #EEF5FF 0%, #D6E6FF 100%); }
.cc-cider  { --cc-bg: linear-gradient(140deg, #FFF8E6 0%, #FDE8B4 100%); }
.cc-more   { --cc-bg: linear-gradient(140deg, #F4F6FA 0%, #E3E8F1 100%); }
@media (max-width: 360px) { .cat-card { min-height: 110px; } .cat-card-art svg { width: 60px; height: 60px; } .cat-card-label { font-size: 17px; } }
/* Category tiles elsewhere (Browse strip) */
.cats .home-cat, .cats-scroll .home-cat { background: #fff; box-shadow: var(--shadow-sm); border-radius: 20px; min-height: 88px; }
.cats .home-cat:hover, .cats-scroll .home-cat:hover { background: var(--tint-2); }
.cats-scroll .home-cat { flex: 0 0 82px; }

/* ---------- 8. Floating bottom navigation ---------- */
.bottom-nav { left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 0; background: transparent; border: 0; }
.nav-inner { position: relative; max-width: 440px; height: 72px; margin: 0 auto; border-radius: 30px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); box-shadow: 0 10px 34px rgba(17, 27, 58, .14), 0 1px 0 rgba(17, 27, 58, .04); grid-template-columns: repeat(5, 1fr); }
.nav-item { color: #8A94A8; font-size: 12px; font-weight: 600; gap: 4px; }
.nav-item:hover { color: var(--ink); }
.nav-item.is-on { color: var(--green-dark); font-weight: 800; }
.nav-item.is-on .nav-ico { color: var(--green); }
.nav-item.is-on::after { bottom: 0; width: 36px; height: 4px; border-radius: 4px 4px 0 0; background: var(--green); }
.nav-cart { display: flex; align-items: flex-start; justify-content: center; }
.nav-cart-btn { position: relative; margin-top: -26px; width: 68px; height: 68px; border-radius: 999px; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 35% 28%, #2BC24A 0%, #16A333 45%, #087A32 100%); box-shadow: 0 12px 26px rgba(22, 163, 51, .45), 0 0 0 6px #fff; transition: transform .12s ease; }
.nav-cart:hover .nav-cart-btn { transform: translateY(-1px); color: #fff; }
.nav-cart.is-on .nav-cart-btn { box-shadow: 0 12px 26px rgba(22, 163, 51, .55), 0 0 0 6px #fff, 0 0 0 9px rgba(139, 234, 53, .5); }
.nav-cart .nav-badge { top: 4px; right: 2px; min-width: 22px; height: 22px; font-size: 12px; }
.nav-badge { background: var(--red); border: 2.5px solid #fff; }
body.has-nav .legal-foot { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
.cart-bar-wrap { bottom: calc(96px + env(safe-area-inset-bottom)); }
.sticky-cta { bottom: calc(92px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 75%, rgba(247, 249, 252, 0)); }
.cart-bar { background: var(--grad-green); box-shadow: var(--shadow-green); min-height: 58px; }
.toasts { z-index: 1100; }

/* ---------- 9. Stores ---------- */
.hstore { padding: 10px 12px 10px 10px; border-radius: 26px; box-shadow: var(--shadow); gap: 14px; }
.hstore-art { flex-basis: 108px; height: 90px; border-radius: 18px; }
.hstore-body h3 { font-size: 16px; }
.hstore-go { width: 40px; height: 40px; background: #EEF1F7; color: var(--ink); }
.hstore-pill { background: var(--green); }
.store-banner { border-radius: 28px; padding: 12px; background: linear-gradient(135deg, #E7F8E2 0%, #F6FCF3 70%, #FFFFFF 100%); box-shadow: var(--shadow-sm); }
.store-banner-art { border-radius: 20px; }
.mini-badge { background: var(--surface); }
.mini-badge.mb-green { background: var(--tint); color: var(--green-dark); }
.osm-row { border-radius: 20px; }
.osm-ico { border-radius: 14px; }
.proof-line { color: var(--green-dark); }

/* ---------- 10. Products ---------- */
.ptile, .ptile.home { padding: 8px; border-radius: 22px; box-shadow: var(--shadow); background: #fff; }
.ptile .art, .ptile.home .art { border-radius: 16px; background: linear-gradient(160deg, #F4F8F2 0%, #EAF4E6 100%) !important; }
.ptile-name, .ptile.home .ptile-name { font-weight: 700; color: var(--ink); }
.price { color: var(--ink); font-weight: 800; }
.size-pill { background: rgba(255, 255, 255, .92); color: var(--green-dark); box-shadow: 0 1px 4px rgba(17, 27, 58, .1); }
.add-btn, .ptile.home .add-btn { background: var(--grad-green); box-shadow: 0 6px 14px rgba(22, 163, 51, .35); }
.add-btn:hover { background: linear-gradient(180deg, #1CA838, #0B8A2B); }
.add-btn[aria-disabled="true"] { background: #CBD3DF; box-shadow: none; }
.grid-2 { gap: 14px; }
.grid-3 { gap: 10px; }
.product-hero .art { border-radius: 30px; background: radial-gradient(circle at 50% 40%, #FFFFFF 0%, #EAF7E5 60%, #DDF3D2 100%) !important; box-shadow: var(--shadow); }
.product-info h1 { font-size: 26px; letter-spacing: -0.035em; }
.price-lg { color: var(--ink); font-size: 28px; }
.buy-bar { background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-top: 0; box-shadow: 0 -8px 24px rgba(17, 27, 58, .08); border-radius: 26px 26px 0 0; margin: 0 -18px -32px; padding-left: 18px; padding-right: 18px; }
.fav-btn { border: 0; box-shadow: var(--shadow-sm); }
.kit { border-radius: 22px; }
.kit-art { background: linear-gradient(160deg, #F2FBEF, #E3F5DC); border-radius: 16px; }
.srow { border-radius: 22px; padding: 10px 12px 10px 10px; box-shadow: var(--shadow); }
.srow-art .art { border-radius: 16px; background: linear-gradient(160deg, #F4F8F2 0%, #EAF4E6 100%) !important; }
.srow-name { font-size: 15.5px; letter-spacing: -0.02em; }

/* ---------- 11. Cart & checkout ---------- */
.cart-store { border-radius: 22px; padding: 14px 16px; }
.cart-line { padding: 14px; gap: 14px; }
.thumb .art { border-radius: 14px; background: linear-gradient(160deg, #F4F8F2 0%, #EAF4E6 100%) !important; }
.total { font-size: 19px; letter-spacing: -0.02em; }
.id-card { border-radius: 22px; background: linear-gradient(135deg, #E7F8E2, #F4FCF1); }
.pay-opt { border-radius: 20px; border: 1.5px solid transparent; box-shadow: var(--shadow-sm); }
.pay-opt:has(input:checked) { border-color: var(--green); background: var(--tint-2); }
.pay-opt input { accent-color: var(--green); }

/* ---------- 12. Orders, tracking, notifications ---------- */
.active-order { border-radius: 24px; padding: 16px; }
.track-row { background: var(--grad-green); box-shadow: var(--shadow-green); }
.order-row { border-radius: 0; }
.order-row:hover, a.list-row:hover, button.list-row:hover { background: var(--tint-2); }
.card > .notif:first-child, .card > .order-row:first-child { border-radius: 22px 22px 0 0; }
.card > .notif:last-child, .card > .order-row:last-child { border-radius: 0 0 22px 22px; }
.card > .notif:only-child, .card > .order-row:only-child { border-radius: 22px; }
.notif { padding: 16px; gap: 12px; }
.notif.is-unread { background: #F3FBF1; }
.notif.is-unread .notif-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(22, 163, 51, .15); }
.pin-card { border-radius: 26px; background: var(--grad-hero); box-shadow: 0 14px 30px rgba(8, 80, 30, .28); }
.status-title { font-size: 24px; letter-spacing: -0.03em; }
.map { border: 0; border-radius: 26px; box-shadow: var(--shadow); }
.star { border-radius: 16px; }

/* ---------- 13. Lists, profile, wallets ---------- */
.list-row { min-height: 64px; padding: 12px 16px; gap: 14px; }
.row-ico { width: 42px; height: 42px; border-radius: 14px; background: var(--t-green-bg); color: var(--t-green-fg); }
.profile-head { border-radius: 26px; }
.avatar.lg { background: var(--grad-green); box-shadow: 0 6px 14px rgba(22, 163, 51, .3); }
.wallet, .credit-chip, .pass-hero { background: linear-gradient(140deg, #04501F 0%, #087A32 50%, #16A333 100%); box-shadow: 0 14px 30px rgba(8, 80, 30, .25); border-radius: 26px; }
.wallet-v, .credit-chip strong, .pass-hero strong { color: var(--lime); }
.credit-chip { padding: 14px 16px; border-radius: 22px; }
.code-box { border-radius: 22px; }
.me-card { display: flex; align-items: center; gap: 14px; padding: 16px 16px 16px 18px; border-radius: 26px; background: linear-gradient(140deg, #04501F 0%, #087A32 50%, #16A333 100%); color: #fff; box-shadow: 0 14px 30px rgba(8, 80, 30, .25); }
.me-card:hover { color: #fff; }
.me-card .small { color: rgba(255, 255, 255, .8); }
.me-card strong { font-size: 18px; }
.me-card .avatar.lg { background: var(--lime); color: #0B4A1C; box-shadow: none; }
.me-card .round-go { background: rgba(255, 255, 255, .16); color: #fff; }

/* ---------- 14. Deals ---------- */
.deal-hero { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 22px 20px; border-radius: 28px; background: var(--grad-hero); color: #fff; overflow: hidden; isolation: isolate; box-shadow: 0 16px 34px rgba(8, 80, 30, .25); }
.deal-hero::after { content: ''; position: absolute; z-index: -1; right: -40px; top: -50px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(139, 234, 53, .45), transparent 70%); }
.deal-k { color: rgba(255, 255, 255, .8); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.deal-v { font-size: 38px; font-weight: 800; letter-spacing: -0.04em; color: var(--lime); line-height: 1.05; }
.deal-s { color: rgba(255, 255, 255, .88); max-width: 30ch; }
.deal-chip { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 12.5px; font-weight: 700; }

/* ---------- 15. Promise, trust, states ---------- */
.promise { border-radius: 24px; background: linear-gradient(100deg, #E2F7DD, #F3FCF0); }
.promise-card { border: 0; border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); padding: 16px; }
.promise-card svg { color: var(--green); }
.trust { border-radius: 22px; }
.state-icon:not(.red-bg) { background: radial-gradient(circle at 35% 30%, #F1FBEE, #C9EFC1); color: var(--green-dark); }
.again { border-radius: 22px; }
.parcel-cta { border-radius: 24px; }
.ptype { border-radius: 18px; }
.ptype.is-on { border-color: var(--green); }
.coverage { border-radius: 16px; }
.addr-row { border-radius: 20px; }
.addr-ico { border-radius: 14px; background: var(--t-green-bg); color: var(--t-green-fg); }

/* ---------- 16. Sign-in screens ---------- */
.shell:has(.auth), .shell:has(.welcome) { background: linear-gradient(180deg, #FFFFFF 0%, #F7F9FC 50%, #EAF8E6 100%); }
.splash { background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 38%, #EEFAEA 70%, #DDF5D6 100%); }

@media (prefers-reduced-motion: reduce) { .svc, .cat-card, .round-go, .nav-cart-btn { transition: none; } }

/* ---------- 17. Gloss finish ----------
   A light top highlight and a soft sheen on icons, buttons and cards, so surfaces read as polished. */
:root {
  --gloss: linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .12) 48%, rgba(255, 255, 255, 0) 52%);
  --edge-hi: inset 0 1px 0 rgba(255, 255, 255, .95);
}
/* Cards: white-to-cool sheen and a bright top edge */
.card, .svc, .hstore, .ptile, .srow, .promise-card, .cart-store, .active-order {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 55%, #F8FAFD 100%);
  box-shadow: var(--edge-hi), 0 2px 4px rgba(17, 27, 58, .03), 0 12px 30px rgba(17, 27, 58, .08);
}
.svc { border: 1px solid rgba(255, 255, 255, .9); }

/* Glossy icon tiles: tone gradient, inner highlight, curved sheen, lifted glyph */
.svc-ico, .row-ico, .addr-ico, .store-ico, .again-ico, .parcel-ico, .osm-ico, .state-icon:not(.red-bg) {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, color-mix(in srgb, var(--ico-bg, var(--t-green-bg)) 70%, #fff) 0%, var(--ico-bg, var(--t-green-bg)) 55%, color-mix(in srgb, var(--ico-bg, var(--t-green-bg)) 82%, var(--ico-fg, var(--t-green-fg))) 100%);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .95), inset 0 -2px 6px color-mix(in srgb, var(--ico-fg, var(--t-green-fg)) 14%, transparent), 0 6px 14px color-mix(in srgb, var(--ico-fg, var(--t-green-fg)) 18%, transparent);
  color: var(--ico-fg, var(--t-green-fg));
}
.svc-ico::after, .row-ico::after, .addr-ico::after, .store-ico::after, .again-ico::after, .parcel-ico::after, .state-icon:not(.red-bg)::after {
  content: ''; position: absolute; z-index: -1; left: -20%; right: -20%; top: -55%; height: 95%; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 70%);
}
.svc-ico svg, .row-ico svg, .addr-ico svg, .store-ico svg, .again-ico svg, .parcel-ico svg { filter: drop-shadow(0 1.5px 1px color-mix(in srgb, var(--ico-fg, #0E7A2C) 30%, transparent)); stroke-width: 2.1; }
.svc-ico { border-radius: 22px; }
.svc-badge { z-index: 2; box-shadow: 0 4px 10px rgba(229, 41, 63, .4); }
.svc-ico .svc-badge { top: 4px; right: 4px; }
.svc-ico { overflow: visible; }
.svc-ico::after { inset: 0; left: 0; right: 0; top: 0; height: 52%; border-radius: 22px 22px 50% 50% / 22px 22px 18px 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .05)); }
.row-ico { --ico-bg: var(--t-green-bg); --ico-fg: var(--t-green-fg); }
.parcel-ico { --ico-bg: var(--t-blue-bg); --ico-fg: var(--t-blue-fg); }
.ev-ico { --ico-bg: var(--t-orange-bg); --ico-fg: var(--t-orange-fg); }
.hk-ico { --ico-bg: var(--t-purple-bg); --ico-fg: var(--t-purple-fg); }

/* Glossy buttons: the green pill gets a lit upper half */
.btn:not(.btn-secondary):not(.btn-ghost):not(.btn-danger):not(.btn-dark), .add-btn, .track-row, .cart-bar {
  background: var(--gloss), var(--grad-green);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 60, 20, .18), var(--shadow-green);
}
.btn:not(.btn-secondary):not(.btn-ghost):not(.btn-danger):not(.btn-dark):hover, .add-btn:hover { background: var(--gloss), linear-gradient(180deg, #1CA838, #0B8A2B); }
.btn[disabled], .btn.is-disabled, .add-btn[aria-disabled="true"] { background: #CBD3DF !important; box-shadow: none !important; }
.btn-dark { background: var(--gloss), linear-gradient(180deg, #24305A, #111B3A); }
.cta-lime { background: linear-gradient(180deg, rgba(255, 255, 255, .6) 0%, rgba(255, 255, 255, .1) 48%, rgba(255, 255, 255, 0) 52%), var(--grad-lime); }
.chip.is-on, .chips-scroll .chip.is-on, .chip-radio input:checked + span, .chip-check input:checked + span { background: var(--gloss), var(--grad-green); }

/* Round arrows: small glossy pearls */
.round-go, .hstore-go { background: linear-gradient(180deg, #FFFFFF 0%, #EEF1F7 60%, #E3E8F0 100%); box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgba(17, 27, 58, .1); color: var(--ink); }

/* Floating cart button and nav */
.nav-cart-btn { background: radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 60%), radial-gradient(circle at 35% 28%, #2BC24A 0%, #16A333 45%, #087A32 100%); }
.nav-cart-btn svg { filter: drop-shadow(0 2px 2px rgba(0, 50, 15, .35)); }
.nav-inner { background: linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(248, 250, 253, .94)); box-shadow: inset 0 1px 0 #fff, 0 10px 34px rgba(17, 27, 58, .14); }

/* Category cards: glassy highlight across the top */
.cat-card { box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .95), inset 0 -3px 10px rgba(17, 27, 58, .04), 0 10px 24px rgba(17, 27, 58, .08); }
.cat-card::before { content: ''; position: absolute; z-index: -1; inset: 0 0 50% 0; background: linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0)); }
.cats .home-cat, .cats-scroll .home-cat { background: linear-gradient(180deg, #FFFFFF, #F4F7FB); box-shadow: inset 0 1px 0 #fff, 0 6px 16px rgba(17, 27, 58, .07); }

/* Hero, wallets and deal cards: glass sheen */
.hero2 .hero2-me { background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(0, 50, 18, .45)); backdrop-filter: blur(6px); }
.deal-hero::before, .wallet::before, .me-card::before, .pin-card::before { content: ''; position: absolute; inset: 0 0 55% 0; z-index: -1; background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0)); border-radius: inherit; }
.wallet, .me-card, .pin-card { position: relative; isolation: isolate; overflow: hidden; }

/* Product art and search: subtle glass */
.ptile .art, .srow-art .art, .thumb .art { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -8px 16px rgba(22, 163, 51, .05); }
.search, #q.search { background: linear-gradient(180deg, #FFFFFF, #F9FBFD); box-shadow: inset 0 1px 0 #fff, 0 10px 26px rgba(17, 27, 58, .08); }
.search-filter { background: var(--gloss), linear-gradient(180deg, #E5F8E1, #CDEFC6); box-shadow: inset 0 1px 0 #fff; }
/* Category cards: art top-left, label and arrow along the bottom */
.cat-card { flex-direction: row; align-items: flex-end; justify-content: space-between; min-height: 136px; padding: 14px 14px 14px 16px; }
.cat-card-art { left: 12px; top: 10px; transform: none; }
.cat-card-art svg { width: 70px; height: 70px; }
.cat-card-label { font-size: 18px; }
@media (max-width: 360px) { .cat-card { min-height: 120px; } .cat-card-art svg { width: 58px; height: 58px; } }
/* Cards with their own colour keep it under the gloss */
.card.wallet { background: linear-gradient(140deg, #04501F 0%, #087A32 50%, #16A333 100%); color: #fff; box-shadow: 0 14px 30px rgba(8, 80, 30, .25); }
.card.pay-opt:has(input:checked) { background: linear-gradient(180deg, #F4FCF2, #E9F8E5); }
.card.addr-row.is-current { box-shadow: inset 0 0 0 2px var(--green), 0 12px 30px rgba(17, 27, 58, .08); }
.hero2-art img { -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%); }
.state-icon svg { width: 32px; height: 32px; }
/* Home hero: the light green card (kept by request) with the new finish */
.hero { border-radius: 28px; box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .9), 0 12px 30px rgba(22, 120, 40, .12); }
.hero .green { color: var(--green-dark); }
.home-btn { box-shadow: inset 0 1px 0 #fff, 0 6px 16px rgba(17, 27, 58, .1); }
.count-badge { background: var(--red); }

/* Profile pictures */
.avatar.has-photo { padding: 0; overflow: hidden; background: #E7ECE6; box-shadow: 0 6px 14px rgba(11, 74, 28, .18); }
.avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-edit { position: relative; display: inline-flex; cursor: pointer; flex: none; border-radius: 999px; }
.avatar-edit:focus-within { outline: 3px solid var(--green); outline-offset: 3px; }
.avatar-cam { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 999px; background: #fff; color: #0B4A1C; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.avatar-btn.has-photo { padding: 0; overflow: hidden; }
.avatar-btn.has-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.avatar-actions { margin-top: 6px; align-items: center; }
.avatar-actions .link-btn { min-height: 32px; padding: 0; display: inline-flex; align-items: center; font-size: 14px; }

/* Occasion kits */
#kitsHome .kit-row { padding-bottom: 8px; }
.occ-kit { flex: 0 0 216px; text-align: left; font: inherit; color: inherit; border: 1px solid rgba(15, 60, 25, .06); cursor: pointer; background: #fff; }
.occ-kit:focus-visible { outline: 3px solid rgba(30, 139, 44, .45); outline-offset: 2px; }
.occ-kit .occ-name { font-size: 16px; line-height: 1.2; }
.occ-kit .kit-foot { margin-top: auto; padding-top: 6px; }
.okit .okit-sizes { margin: 14px 0 4px; flex-wrap: wrap; }
.okit .switch-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line, #E7ECE6); margin-bottom: 12px; }
.okit .switch { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 999px; background: #D5DCD3; position: relative; cursor: pointer; flex: none; transition: background .2s; }
.okit .switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.okit .switch:checked { background: var(--green, #1E8B2C); }
.okit .switch:checked::after { transform: translateX(18px); }
.okit .switch:focus-visible { outline: 3px solid rgba(30, 139, 44, .45); outline-offset: 2px; }
.okit .okit-store { display: flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--ink-2, #4A5568); }
@media (prefers-reduced-motion: reduce) { .okit .switch, .okit .switch::after { transition: none; } }
.okit .switch-row .block { display: block; font-weight: 400; margin-top: 2px; }
.occ-kit .kit-group-tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; align-self: flex-start; }
