/* ============================================================================
   TCP 3.0 — Retailer (shop-staff) App  ·  "Continental Control — Pro / Dark"
   App-specific styles only. Primitives/tokens live in ../shared/tokens.css.
   The phone INTERIOR is dark (mirrors the real Continental retailer app) to
   set the staff tool apart from the light consumer app.
   ========================================================================== */

:root {
  --r-bg:      #0d0f12;   /* phone screen base (graphite-black) */
  --r-bg-2:    #14171c;   /* raised surface */
  --r-card:    #181b21;   /* card surface */
  --r-card-2:  #1f232b;   /* card hover / input */
  --r-line:    rgba(255,255,255,.08);
  --r-line-2:  rgba(255,255,255,.14);
  --r-text:    #eef0f3;
  --r-soft:    #a3a8b2;
  --r-faint:   #6b7079;
}

/* ---------------- stage / atmospheric backdrop ---------------- */
.stage {
  position: relative; min-height: 100vh; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 64px;
  padding: 40px 28px; overflow: hidden; background: #050608;
}
.stage-bg {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(1200px 680px at 84% -12%, rgba(255,122,0,.22), transparent 58%),
    radial-gradient(820px 540px at 0% 112%, rgba(255,178,69,.08), transparent 56%),
    radial-gradient(600px 600px at 120% 60%, rgba(232,93,4,.12), transparent 60%),
    #060709;
}
.stage-bg::after {
  content:''; position:absolute; inset:0; opacity:.6;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0 7px, transparent 7px 16px);
}

.stage-caption { position: relative; z-index: 1; max-width: 360px; color: #d8d2c8; }
.stage-caption .eyebrow { color: var(--conti-amber); }
.stage-caption h1.display { font-size: 46px; color: #fff; margin: 16px 0 18px; }
.stage-caption p { font-size: 16px; line-height: 1.55; color: #aeb3bc; }
.caption-link { display: inline-block; margin-top: 22px; color: var(--conti-orange);
  text-decoration: none; font-size: 13px; letter-spacing: .04em; }
.caption-link:hover { color: var(--conti-amber); }
@media (max-width: 900px) { .stage-caption { display: none; } .stage { gap: 0; } }

/* ---------------- phone frame ---------------- */
.phone {
  position: relative; z-index: 1; flex: none;
  width: 390px; height: 844px; border-radius: 52px;
  background: #050608; padding: 12px;
  box-shadow:
    0 0 0 2px #26282d, 0 0 0 11px #0a0b0e, 0 0 0 12px #2c2e34,
    0 50px 100px rgba(0,0,0,.65), 0 18px 50px rgba(255,122,0,.12);
}
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 128px; height: 34px; z-index: 40;
  display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.dyn-island { width: 116px; height: 30px; border-radius: 999px; background: #000;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }

/* inner screen — DARK */
.statusbar, .viewport, .tabbar { background: var(--r-bg); }
.phone > .statusbar { border-radius: 40px 40px 0 0; }

.statusbar {
  position: relative; z-index: 30;
  height: 54px; display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 30px 6px; color: var(--r-text);
}
.sb-time { font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.sb-right { display: flex; align-items: center; gap: 6px; }
.sb-ic { height: 12px; width: auto; fill: var(--r-text); }
.sb-batt { width: 24px; height: 12px; border: 1px solid var(--r-text); border-radius: 3px;
  position: relative; padding: 1.5px; display: inline-flex; }
.sb-batt::after { content:''; position:absolute; right:-3px; top:3.5px; width:2px; height:5px;
  background: var(--r-text); border-radius:0 1px 1px 0; }
.sb-batt i { display:block; width: 82%; height: 100%; background: var(--r-text); border-radius: 1px; }

.viewport {
  position: relative; height: 716px; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; color: var(--r-text);
}
.viewport::-webkit-scrollbar { display: none; }

.tabbar {
  position: relative; z-index: 30;
  height: 74px; border-radius: 0 0 40px 40px;
  display: flex; align-items: stretch; padding: 6px 6px 0;
  box-shadow: 0 -1px 0 var(--r-line), 0 -14px 30px rgba(0,0,0,.4);
}
.tab {
  flex: 1; background: none; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--r-faint); font-family: var(--body); font-size: 9.5px; font-weight: 600;
  transition: color .2s var(--ease); padding-top: 4px;
}
.tab-ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease-bounce); }
.tab[aria-selected="true"] { color: var(--conti-orange); }
.tab[aria-selected="true"] .tab-ic { transform: translateY(-2px) scale(1.08); }
.tab:active .tab-ic { transform: scale(.9); }

.home-indicator { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  width: 134px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.28); z-index: 41; }

@media (max-height: 900px) { .phone { transform: scale(.92); } }
@media (max-height: 800px) { .phone { transform: scale(.82); } }

/* ---------------- generic in-app layout ---------------- */
.view { padding: 8px 18px 30px; }
.view-pad-lg { padding-bottom: 42px; }

.r-topbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 14px; }
.r-brand { display: flex; align-items: center; gap: 9px; }
.r-mark { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center;
  border: 2px solid var(--conti-orange); background: rgba(255,122,0,.1); }
.r-mark svg { width: 16px; height: 16px; }
.r-brand b { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--r-text); letter-spacing: -.01em; }
.r-brand b span { color: var(--conti-orange); }
.r-brand .who { display: block; font-size: 11px; color: var(--r-faint); font-family: var(--mono); margin-top: 1px; }
.r-inbox { width: 38px; height: 38px; border-radius: 12px; flex: none; cursor: pointer;
  background: var(--r-card); border: 1px solid var(--r-line); color: var(--r-soft);
  display: grid; place-items: center; position: relative; transition: background .2s; }
.r-inbox:hover { background: var(--r-card-2); }
.r-inbox svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.r-inbox .dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--conti-orange); box-shadow: 0 0 8px rgba(255,122,0,.9); }

.appbar { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 14px; }
.appbar .greeting { font-size: 12px; color: var(--r-faint); font-family: var(--mono); letter-spacing: .04em; }
.appbar h2.display { font-size: 26px; margin: 3px 0 0; color: var(--r-text); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 2px 12px; }
.section-head h3 { font-family: var(--display); font-size: 16px; margin: 0; letter-spacing: -.01em; color: var(--r-text); }
.section-head .more { font-size: 12px; color: var(--conti-orange); font-weight: 600; cursor: pointer; }

.eyebrow { color: var(--conti-orange); }

/* dark card primitive (overrides the light .card from tokens) */
.r-card { background: var(--r-card); border: 1px solid var(--r-line); border-radius: var(--r-md);
  box-shadow: 0 8px 22px rgba(0,0,0,.35); }

.spacer { height: 16px; } .spacer-sm { height: 8px; }

.back-btn { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0;
  color: var(--r-soft); font-family: var(--body); font-weight: 600; font-size: 13px; cursor: pointer;
  padding: 4px 0 12px; margin-top: 2px; }
.back-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.back-btn:hover { color: var(--conti-orange); }

/* dark chips */
.chip { background: var(--r-card-2); color: var(--r-soft); border: 1px solid var(--r-line); }
.chip-ok { background: rgba(31,157,99,.18); color: #56d39a; border-color: transparent; }
.chip-warn { background: rgba(217,138,0,.2); color: var(--conti-amber); border-color: transparent; }
.chip-orange { background: rgba(255,122,0,.18); color: var(--conti-orange); border-color: transparent; }

/* mono helper tint */
.mono-dim { font-family: var(--mono); color: var(--r-faint); font-size: 11px; }

/* ====================================================================
   SIGN IN
   ==================================================================== */
.signin { position: relative; min-height: 716px; display: flex; flex-direction: column;
  padding: 0 22px 26px; overflow: hidden;
  background:
    radial-gradient(640px 360px at 82% -8%, rgba(255,122,0,.34), transparent 60%),
    radial-gradient(480px 340px at -8% 110%, rgba(255,178,69,.12), transparent 60%),
    var(--r-bg); }
.signin::after { content:''; position:absolute; inset:0; opacity:.5; pointer-events:none;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 6px, transparent 6px 15px); }
.signin > * { position: relative; z-index: 1; }
.si-logo { display: flex; align-items: center; gap: 11px; margin: 28px 0 0; }
.si-logo .r-mark { width: 38px; height: 38px; } .si-logo .r-mark svg { width: 20px; height: 20px; }
.si-logo b { font-family: var(--display); font-size: 21px; color: #fff; letter-spacing: -.01em; }
.si-logo b span { color: var(--conti-orange); }
.si-hero { margin: 38px 0 24px; }
.si-hero h1 { font-family: var(--display); font-size: 33px; line-height: 1.05; color: #fff; margin: 12px 0 10px; letter-spacing: -.02em; }
.si-hero h1 .o { color: var(--conti-orange); }
.si-hero p { color: var(--r-soft); font-size: 14px; line-height: 1.55; margin: 0; }

.si-tabs { display: flex; gap: 4px; background: var(--r-card); border: 1px solid var(--r-line);
  border-radius: var(--r-pill); padding: 4px; margin-bottom: 18px; }
.si-tab { flex: 1; border: 0; background: none; cursor: pointer; border-radius: var(--r-pill);
  padding: 10px; font-family: var(--body); font-weight: 700; font-size: 13px; color: var(--r-faint);
  transition: background .2s, color .2s; }
.si-tab[aria-selected="true"] { background: var(--conti-orange); color: #fff; box-shadow: var(--sh-orange); }

.field { margin-bottom: 13px; }
.field label { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--r-faint); margin: 0 0 6px 2px; }
.input, .select, .textarea {
  width: 100%; box-sizing: border-box; padding: 13px 14px; border-radius: 12px;
  border: 1px solid var(--r-line-2); background: var(--r-card-2); color: var(--r-text);
  font-family: var(--body); font-size: 14px; transition: border-color .2s, box-shadow .2s; }
.input.mono, .select.mono { font-family: var(--mono); letter-spacing: .04em; }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--conti-orange);
  box-shadow: 0 0 0 3px rgba(255,122,0,.16); }
.input::placeholder { color: var(--r-faint); }
.textarea { resize: none; min-height: 74px; }
.select { -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--r-soft) 50%), linear-gradient(135deg, var(--r-soft) 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }

.otp-row { display: flex; gap: 8px; align-items: flex-end; }
.otp-row .field { flex: 1; margin-bottom: 0; }
.btn-otp { flex: none; white-space: nowrap; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--conti-orange);
  background: rgba(255,122,0,.12); color: var(--conti-orange); font-family: var(--body); font-weight: 700; font-size: 13px; cursor: pointer;
  transition: background .2s, transform .12s var(--ease-bounce); }
.btn-otp:active { transform: scale(.95); }
.btn-otp:disabled { opacity: .55; cursor: default; }
.otp-hint { font-family: var(--mono); font-size: 11px; color: #56d39a; margin: 6px 2px 0; }

.consent { display: flex; gap: 10px; align-items: flex-start; padding: 11px 2px; cursor: pointer; }
.consent input { display: none; }
.consent .box { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--r-line-2);
  display: grid; place-items: center; margin-top: 1px; transition: background .15s, border-color .15s; }
.consent .box svg { width: 12px; height: 12px; opacity: 0; stroke: #fff; stroke-width: 3; fill: none; transition: opacity .15s; }
.consent input:checked + .box { background: var(--conti-orange); border-color: var(--conti-orange); }
.consent input:checked + .box svg { opacity: 1; }
.consent span.t { font-size: 12.5px; color: var(--r-soft); line-height: 1.45; }

.si-quick { margin-top: 16px; text-align: center; }
.si-quick button { background: none; border: 0; color: var(--conti-orange); font-family: var(--mono);
  font-size: 12px; letter-spacing: .02em; cursor: pointer; padding: 8px; }
.si-quick button:hover { color: var(--conti-amber); }
.si-fine { font-size: 11px; color: var(--r-faint); text-align: center; line-height: 1.5; margin: 14px 4px 0; }

.btn-block { width: 100%; }
.btn-primary { background: var(--conti-orange); color: #fff; box-shadow: var(--sh-orange); }
.btn-ghost { background: transparent; color: var(--r-text); border: 1.5px solid var(--r-line-2); }
.btn-ghost:hover { border-color: var(--r-soft); }
.btn[disabled] { opacity: .45; cursor: default; box-shadow: none; }

/* ====================================================================
   HOME
   ==================================================================== */
.hero-promo { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 20px 20px 22px;
  margin: 4px 0 18px; color: #fff;
  background: linear-gradient(135deg, #2a1607 0%, #5a2c06 45%, #ff7a00 140%); }
.hero-promo::after { content:''; position:absolute; inset:0; opacity:.4;
  background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.16) 0 6px, transparent 6px 16px); }
.hero-promo > * { position: relative; z-index: 1; }
.hero-promo .hp-glyph { position: absolute; right: -8px; bottom: -18px; font-size: 110px; opacity: .5; z-index: 0; transform: rotate(-8deg); }
.hero-promo .hp-eye { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--conti-amber); }
.hero-promo .hp-title { font-family: var(--display); font-size: 24px; margin: 7px 0 4px; letter-spacing: -.01em; }
.hero-promo .hp-sub { font-size: 13px; color: rgba(255,255,255,.86); }
.hero-promo .hp-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,.18); padding: 5px 12px; border-radius: var(--r-pill); }

.big-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.big-action { position: relative; overflow: hidden; cursor: pointer; text-align: left;
  border: 1px solid var(--r-line); border-radius: var(--r-md); padding: 18px 16px 16px;
  background: linear-gradient(180deg, var(--r-card-2), var(--r-card)); color: var(--r-text);
  transition: transform .18s var(--ease-bounce), border-color .25s, box-shadow .25s; }
.big-action:hover { border-color: rgba(255,122,0,.5); box-shadow: 0 10px 26px rgba(0,0,0,.4); }
.big-action:active { transform: scale(.97); }
.big-action .ba-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 22px;
  background: rgba(255,122,0,.14); border: 1px solid rgba(255,122,0,.3); margin-bottom: 12px; }
.big-action .ba-t { font-family: var(--display); font-size: 17px; font-weight: 700; }
.big-action .ba-s { font-size: 11.5px; color: var(--r-faint); margin-top: 3px; }
.big-action .ba-arrow { position: absolute; top: 16px; right: 16px; color: var(--conti-orange); font-size: 16px; }

.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.stat-card { cursor: pointer; border: 1px solid var(--r-line); border-radius: var(--r-md); padding: 16px;
  background: var(--r-card); transition: border-color .2s, transform .15s; }
.stat-card:active { transform: scale(.98); }
.stat-card:hover { border-color: var(--r-line-2); }
.stat-card .sc-n { font-family: var(--display); font-size: 30px; font-weight: 700; color: var(--r-text); line-height: 1; }
.stat-card .sc-l { font-size: 12px; color: var(--r-soft); margin-top: 7px; }
.stat-card .sc-chev { float: right; color: var(--r-faint); font-size: 18px; }

.coc-card { border: 1px solid var(--r-line); border-radius: var(--r-md); padding: 16px 16px 15px;
  background: linear-gradient(160deg, rgba(31,157,99,.1), var(--r-card)); }
.coc-card.warn { background: linear-gradient(160deg, rgba(217,138,0,.12), var(--r-card)); }
.coc-card .coc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.coc-card .coc-lbl { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--r-soft); }
.coc-card .coc-lbl svg { width: 16px; height: 16px; fill: none; stroke: #56d39a; stroke-width: 2; }
.coc-card .coc-standing { font-family: var(--display); font-size: 15px; color: #56d39a; }
.coc-card.warn .coc-standing { color: var(--conti-amber); }
.strike-row { display: flex; gap: 8px; }
.strike { flex: 1; height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); }
.strike.on { background: var(--danger); box-shadow: 0 0 10px rgba(192,57,43,.6); }
.coc-card .coc-note { font-size: 11.5px; color: var(--r-faint); margin-top: 11px; line-height: 1.45; }

/* ====================================================================
   STEPPER (wizards)
   ==================================================================== */
.stepper { display: flex; align-items: center; margin: 4px 0 20px; }
.step { display: flex; align-items: center; flex: 1; }
.step:last-child { flex: none; }
.step .sdot { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-family: var(--mono); font-size: 12px; font-weight: 600; background: var(--r-card-2);
  border: 1px solid var(--r-line-2); color: var(--r-faint); transition: all .25s var(--ease); }
.step .sline { flex: 1; height: 2px; background: var(--r-line-2); margin: 0 6px; transition: background .25s; }
.step.done .sdot { background: var(--conti-orange); border-color: var(--conti-orange); color: #fff; }
.step.current .sdot { background: rgba(255,122,0,.16); border-color: var(--conti-orange); color: var(--conti-orange); }
.step.done .sline { background: var(--conti-orange); }
.step-labels { display: flex; justify-content: space-between; margin: -14px 0 16px; }
.step-labels span { font-size: 9.5px; font-family: var(--mono); letter-spacing: .03em; color: var(--r-faint); width: 25%; text-align: center; }
.step-labels span.on { color: var(--conti-orange); }
.wiz-title { font-family: var(--display); font-size: 19px; margin: 0 0 16px; color: var(--r-text); }

.wiz-nav { display: flex; gap: 10px; margin-top: 22px; }
.wiz-nav .btn { flex: 1; }

/* segmented toggle (scan / manual) */
.seg { display: flex; gap: 4px; background: var(--r-card); border: 1px solid var(--r-line); border-radius: var(--r-pill);
  padding: 4px; margin-bottom: 14px; }
.seg button { flex: 1; border: 0; background: none; cursor: pointer; border-radius: var(--r-pill); padding: 9px;
  font-family: var(--body); font-weight: 700; font-size: 12.5px; color: var(--r-faint); transition: background .2s, color .2s; }
.seg button[aria-selected="true"] { background: var(--conti-orange); color: #fff; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

/* ====================================================================
   SCANNER (barcode / QR) — faux scan window with beam
   ==================================================================== */
.scanner { position: relative; height: 200px; border-radius: var(--r-md); overflow: hidden; margin-bottom: 14px;
  background: radial-gradient(120% 120% at 50% 0%, #1c2127, #0a0c0f); border: 1px solid var(--r-line-2); }
.scanner::after { content:''; position:absolute; inset:0; opacity:.5;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 6px, transparent 6px 15px); }
.scan-window { position: absolute; inset: 28px; border-radius: 12px; }
.scan-window .corner { position: absolute; width: 28px; height: 28px; border: 3px solid var(--conti-orange); }
.scan-window .corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.scan-window .corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.scan-window .corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.scan-window .corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.scan-hint { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; z-index: 2;
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--r-soft); }
.barcode-glyph { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  display: flex; gap: 3px; align-items: center; height: 56px; opacity: .55; }
.barcode-glyph i { width: 3px; background: var(--r-soft); border-radius: 1px; }

/* ====================================================================
   PHOTO SLOTS
   ==================================================================== */
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo-slot { position: relative; aspect-ratio: 1.35; border-radius: 12px; cursor: pointer;
  border: 1.5px dashed var(--r-line-2); background: var(--r-card-2); color: var(--r-faint);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  font-size: 11px; font-weight: 600; transition: border-color .2s, background .2s; overflow: hidden; }
.photo-slot:hover { border-color: var(--conti-orange); }
.photo-slot .ps-ic { font-size: 22px; }
.photo-slot.filled { border-style: solid; border-color: rgba(31,157,99,.5);
  background: linear-gradient(135deg, rgba(31,157,99,.12), var(--r-card-2)); color: #56d39a; }
.photo-slot.filled .ps-ic { font-size: 24px; }
.photo-slot .ps-check { position: absolute; top: 7px; right: 7px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 11px; }
.photo-slot.single { aspect-ratio: 2.4; grid-column: 1 / -1; }

/* ====================================================================
   LIST CARDS (cases / registrations)
   ==================================================================== */
.list-card { background: var(--r-card); border: 1px solid var(--r-line); border-radius: var(--r-md); overflow: hidden; }
.item { display: block; width: 100%; text-align: left; cursor: pointer; background: none; border: 0;
  padding: 15px 16px; border-bottom: 1px solid var(--r-line); transition: background .15s; color: var(--r-text); }
.item:last-child { border-bottom: 0; }
.item:hover { background: var(--r-card-2); }
.item:active { background: rgba(255,122,0,.06); }
.item-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.item-t { font-family: var(--display); font-size: 15px; font-weight: 700; }
.item-meta { font-size: 12px; color: var(--r-soft); display: flex; flex-wrap: wrap; gap: 5px 10px; }
.item-meta .mono { color: var(--r-faint); }
.item-sub { font-family: var(--mono); font-size: 11px; color: var(--r-faint); margin-top: 4px; letter-spacing: .02em; }
.item-actions { margin-top: 11px; }
.item-actions .btn { padding: 9px 16px; font-size: 13px; }

.empty { text-align: center; padding: 50px 20px; color: var(--r-faint); }
.empty .e-glyph { display: block; font-size: 40px; margin-bottom: 12px; opacity: .7; }

/* ====================================================================
   DETAIL VIEWS
   ==================================================================== */
.detail-banner { position: relative; overflow: hidden; border-radius: var(--r-md); padding: 18px;
  margin-bottom: 16px; color: #fff; background: linear-gradient(150deg, #20242c, #0d0f12); border: 1px solid var(--r-line); }
.detail-banner::after { content:''; position:absolute; inset:0; opacity:.4;
  background-image: repeating-linear-gradient(135deg, rgba(255,122,0,.14) 0 5px, transparent 5px 13px); }
.detail-banner > * { position: relative; z-index: 1; }
.detail-banner .db-no { font-family: var(--mono); font-size: 22px; font-weight: 600; color: #fff; letter-spacing: .02em; }
.detail-banner .db-lbl { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--conti-amber); }
.detail-banner .db-row { display: flex; justify-content: space-between; align-items: flex-start; }

.info-rows { background: var(--r-card); border: 1px solid var(--r-line); border-radius: var(--r-md); overflow: hidden; }
.info-row { display: flex; align-items: center; gap: 11px; padding: 13px 15px; border-bottom: 1px solid var(--r-line); }
.info-row:last-child { border-bottom: 0; }
.info-row .ir-ic { font-size: 17px; flex: none; width: 22px; text-align: center; }
.info-row .ir-k { font-size: 13px; color: var(--r-soft); flex: 1; }
.info-row .ir-v { font-size: 13px; font-weight: 600; color: var(--r-text); text-align: right; }
.info-row .ir-v.mono { font-family: var(--mono); font-weight: 500; letter-spacing: .02em; }

/* progress timeline (vertical) */
.timeline { padding: 6px 4px 2px; }
.tl-step { display: flex; gap: 13px; position: relative; padding-bottom: 22px; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before { content:''; position: absolute; left: 12px; top: 26px; bottom: -2px; width: 2px; background: var(--r-line-2); }
.tl-step:last-child::before { display: none; }
.tl-step.done::before { background: var(--conti-orange); }
.tl-dot { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; z-index: 1;
  font-family: var(--mono); font-size: 12px; background: var(--r-card-2); border: 1px solid var(--r-line-2); color: var(--r-faint); }
.tl-step.done .tl-dot { background: var(--conti-orange); border-color: var(--conti-orange); color: #fff; }
.tl-step.current .tl-dot { background: rgba(255,122,0,.16); border-color: var(--conti-orange); color: var(--conti-orange);
  box-shadow: 0 0 0 4px rgba(255,122,0,.12); }
.tl-body { padding-top: 2px; }
.tl-lbl { font-weight: 700; font-size: 14px; color: var(--r-text); }
.tl-step:not(.done):not(.current) .tl-lbl { color: var(--r-faint); }
.tl-when { font-family: var(--mono); font-size: 11px; color: var(--r-faint); margin-top: 2px; }

.img-thumb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.img-thumb { aspect-ratio: 1.35; border-radius: 11px; border: 1px solid rgba(31,157,99,.4);
  background: linear-gradient(135deg, rgba(31,157,99,.1), var(--r-card-2));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  color: #56d39a; font-size: 11px; font-weight: 600; }
.img-thumb .it-ic { font-size: 22px; }

/* success screen */
.success { text-align: center; padding: 40px 16px 24px; }
.success .s-badge { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center;
  background: radial-gradient(circle, rgba(31,157,99,.3), rgba(31,157,99,.06)); border: 1px solid rgba(31,157,99,.4);
  animation: pop .5s var(--ease-bounce); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success .s-badge svg { width: 46px; height: 46px; fill: none; stroke: #56d39a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.success h2 { font-family: var(--display); font-size: 25px; color: var(--r-text); margin: 0 0 8px; }
.success p { color: var(--r-soft); font-size: 14px; margin: 0 auto 8px; max-width: 280px; line-height: 1.5; }
.success .s-no { display: inline-block; font-family: var(--mono); font-size: 16px; color: var(--conti-orange);
  background: rgba(255,122,0,.12); border: 1px solid rgba(255,122,0,.3); padding: 8px 16px; border-radius: 10px; margin: 10px 0 4px; }

/* ====================================================================
   PROFILE
   ==================================================================== */
.profile-head { display: flex; align-items: center; gap: 14px; padding: 18px 16px; border-radius: var(--r-md);
  background: linear-gradient(150deg, var(--r-card-2), var(--r-card)); border: 1px solid var(--r-line); margin-bottom: 8px; }
.profile-avatar { width: 56px; height: 56px; border-radius: 16px; flex: none; display: grid; place-items: center;
  font-family: var(--display); font-size: 22px; font-weight: 700; color: #fff;
  background: linear-gradient(140deg, var(--conti-orange), var(--conti-orange-deep)); box-shadow: var(--sh-orange); }
.profile-head .ph-name { font-family: var(--display); font-size: 19px; color: var(--r-text); }
.profile-head .ph-ref { font-family: var(--mono); font-size: 12px; color: var(--conti-orange); margin-top: 3px; }
.profile-head .ph-sub { font-size: 11.5px; color: var(--r-faint); margin-top: 2px; }

.emp-row { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-bottom: 1px solid var(--r-line); }
.emp-row:last-child { border-bottom: 0; }
.emp-ic { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; font-size: 17px;
  background: var(--r-card-2); border: 1px solid var(--r-line); }
.emp-body { flex: 1; min-width: 0; }
.emp-name { font-weight: 700; font-size: 13.5px; color: var(--r-text); }
.emp-mobile { font-family: var(--mono); font-size: 11.5px; color: var(--r-faint); margin-top: 2px; }
.emp-x { flex: none; width: 30px; height: 30px; border-radius: 9px; cursor: pointer; border: 1px solid var(--r-line);
  background: none; color: var(--r-faint); font-size: 16px; transition: color .15s, border-color .15s; }
.emp-x:hover { color: var(--danger); border-color: var(--danger); }

.menu-row { display: flex; align-items: center; gap: 12px; padding: 14px 15px; cursor: pointer; width: 100%;
  text-align: left; background: none; border: 0; border-bottom: 1px solid var(--r-line); color: var(--r-text); transition: background .15s; }
.menu-row:last-child { border-bottom: 0; }
.menu-row:hover { background: var(--r-card-2); }
.menu-row .mr-ic { font-size: 18px; width: 22px; text-align: center; }
.menu-row .mr-t { flex: 1; font-size: 14px; font-weight: 600; }
.menu-row .mr-chev { color: var(--r-faint); font-size: 17px; }

.reset-link { display: block; width: 100%; text-align: center; margin: 22px 0 4px; background: none; border: 0;
  color: var(--r-faint); font-family: var(--mono); font-size: 12px; cursor: pointer; padding: 10px; }
.reset-link:hover { color: var(--conti-orange); }
.signout-btn { width: 100%; margin-top: 16px; }

/* ====================================================================
   BOTTOM SHEET
   ==================================================================== */
.sheet-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease); }
.sheet-scrim.open { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 100%); z-index: 61;
  width: 390px; max-width: 100vw; max-height: 80vh; overflow-y: auto; scrollbar-width: none;
  background: var(--r-bg-2); color: var(--r-text); border-radius: 26px 26px 0 0; padding: 8px 22px 30px;
  border: 1px solid var(--r-line); border-bottom: 0; box-shadow: 0 -20px 60px rgba(0,0,0,.6);
  transition: transform .38s var(--ease-bounce); }
.sheet::-webkit-scrollbar { display: none; }
.sheet.open { transform: translate(-50%, 0); }
.sheet-grip { width: 42px; height: 5px; border-radius: 3px; background: var(--r-line-2); margin: 6px auto 16px; }
.sheet h3 { font-family: var(--display); font-size: 20px; color: var(--r-text); margin: 0 0 4px; }
.sheet p { color: var(--r-soft); font-size: 13.5px; line-height: 1.5; }
.sheet-actions { display: flex; gap: 10px; margin-top: 20px; }
.sheet-actions .btn { flex: 1; }

/* ====================================================================
   TOASTS
   ==================================================================== */
.toast-wrap { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 80;
  display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 11px; background: #1c2026; color: #fff;
  border: 1px solid var(--r-line-2); padding: 12px 16px; border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.5);
  font-size: 13.5px; font-weight: 600; max-width: 330px; animation: toast-in .4s var(--ease-bounce); }
.toast.out { animation: toast-out .35s var(--ease) forwards; }
.toast .t-ic { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 12px; background: rgba(255,122,0,.2); color: var(--conti-orange); }
.toast.ok .t-ic { background: rgba(31,157,99,.25); color: #56d39a; }
.toast .t-sub { display: block; font-size: 11.5px; font-weight: 500; color: var(--r-soft); margin-top: 2px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

/* tyre-tread accent line for headers */
.tread-line { height: 8px; border-radius: 4px; margin: 0 0 4px;
  background-image: repeating-linear-gradient(135deg, rgba(255,122,0,.5) 0 5px, transparent 5px 12px); }

/* ====================================================================
   §4.4 MODULES — dashboard KPIs, tools grid, charts, etc.
   ==================================================================== */
/* dashboard KPI strip */
.dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.dash-kpi { border: 1px solid var(--r-line); border-radius: var(--r-md); padding: 15px 16px;
  background: linear-gradient(160deg, var(--r-card-2), var(--r-card)); }
.dash-kpi .dk-n { font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--r-text); line-height: 1; }
.dash-kpi .dk-l { font-size: 11px; color: var(--r-soft); margin-top: 7px; line-height: 1.3; }

/* tools grid */
.tools-head { margin: 22px 2px 12px; font-family: var(--display); font-size: 16px; color: var(--r-text); }
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.tool-tile { cursor: pointer; border: 1px solid var(--r-line); border-radius: 15px; padding: 13px 6px 11px;
  background: var(--r-card); color: var(--r-text); display: flex; flex-direction: column; align-items: center; gap: 7px;
  transition: border-color .2s, transform .14s var(--ease-bounce); }
.tool-tile:hover { border-color: rgba(255,122,0,.5); }
.tool-tile:active { transform: scale(.94); }
.tool-tile .tt-ic { font-size: 21px; line-height: 1; }
.tool-tile .tt-l { font-size: 9.5px; font-weight: 700; color: var(--r-soft); text-align: center; line-height: 1.1; }

/* CSS bar chart */
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar-col .bar { position: relative; width: 100%; min-height: 4px; border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--conti-orange), var(--conti-orange-deep)); transition: height .5s var(--ease); }
.bar-col .bar-v { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--r-soft); }
.bar-col .bar-x { font-family: var(--mono); font-size: 10px; color: var(--r-faint); margin-top: 6px; }

/* activity feed */
.act-row { display: flex; gap: 11px; padding: 12px 15px; border-bottom: 1px solid var(--r-line); }
.act-row:last-child { border-bottom: 0; }
.act-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; background: var(--conti-orange);
  box-shadow: 0 0 8px rgba(255,122,0,.7); }
.act-body { flex: 1; min-width: 0; }
.act-t { font-size: 13px; color: var(--r-text); line-height: 1.35; }
.act-when { font-size: 10px; color: var(--r-faint); margin-top: 3px; text-transform: uppercase; letter-spacing: .08em; }

/* campaign cards */
.camp-card { padding: 16px; margin-bottom: 12px; }
.camp-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.camp-name { font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--r-text); }
.camp-reward { font-size: 13px; color: var(--conti-amber); font-weight: 600; }
.camp-rule { font-size: 12px; color: var(--r-faint); margin: 6px 0 14px; line-height: 1.4; }
.camp-btn { padding: 11px; }

/* progress bar (incentives) */
.prog-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--r-soft); margin-bottom: 9px; }
.prog-track { height: 12px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.prog-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--conti-orange), var(--conti-amber));
  box-shadow: 0 0 12px rgba(255,122,0,.5); transition: width .6s var(--ease); }

/* service cards */
.svc-card { padding: 16px; margin-bottom: 12px; }
.svc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.svc-name { font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--r-text); }
.svc-token { font-size: 11px; color: var(--r-faint); margin-bottom: 12px; }
.punch-row { display: flex; gap: 9px; margin-bottom: 14px; }
.punch { flex: 1; height: 14px; border-radius: 50%; max-width: 22px; aspect-ratio: 1;
  border: 1.5px dashed var(--r-line-2); background: var(--r-card-2); }
.punch.on { border-style: solid; border-color: var(--conti-orange);
  background: radial-gradient(circle, var(--conti-orange), var(--conti-orange-deep)); box-shadow: 0 0 8px rgba(255,122,0,.5); }

/* map placeholder (store profile) */
.map-block { position: relative; height: 170px; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--r-line-2); background: radial-gradient(120% 120% at 30% 20%, #1b2733, #0c1116); }
.map-grid { position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
    repeating-linear-gradient(60deg, rgba(255,122,0,.06) 0 2px, transparent 2px 40px);
  background-size: 26px 26px, 26px 26px, auto; }
.map-pin { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -100%); width: 40px; height: 40px;
  fill: var(--conti-orange); stroke: #fff; stroke-width: .6; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.map-pin + .map-tag { position: absolute; top: calc(50% + 6px); left: 50%; transform: translateX(-50%);
  font-size: 11px; color: #fff; background: rgba(0,0,0,.55); padding: 3px 10px; border-radius: var(--r-pill);
  border: 1px solid var(--r-line-2); white-space: nowrap; }

/* support chat thread */
.chat-thread { display: flex; flex-direction: column; gap: 14px; padding: 8px 2px 16px; min-height: 320px; }
.chat-msg { display: flex; flex-direction: column; max-width: 80%; }
.chat-msg.me { align-self: flex-end; align-items: flex-end; }
.chat-msg.them { align-self: flex-start; align-items: flex-start; }
.chat-bubble { padding: 11px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.4; }
.chat-msg.me .chat-bubble { background: var(--conti-orange); color: #fff; border-bottom-right-radius: 5px; }
.chat-msg.them .chat-bubble { background: var(--r-card-2); color: var(--r-text); border: 1px solid var(--r-line); border-bottom-left-radius: 5px; }
.chat-from { font-size: 10px; color: var(--r-faint); margin-top: 4px; }
.chat-input { display: flex; gap: 8px; align-items: center; }
.chat-input .input { flex: 1; }
.chat-input .btn { flex: none; padding: 13px 18px; }
