/* ============================================================================
   TCP 3.0 — Mobile Consumer App  ·  "Continental Control"
   App-specific styles only. Primitives/tokens live in ../shared/tokens.css
   ========================================================================== */

/* ---------------- 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: var(--conti-ink);
}
.stage-bg {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(1200px 680px at 82% -12%, rgba(255,122,0,.26), transparent 58%),
    radial-gradient(820px 540px at 2% 112%, rgba(255,178,69,.12), transparent 56%),
    radial-gradient(600px 600px at 120% 60%, rgba(232,93,4,.14), transparent 60%),
    var(--conti-ink);
}
.stage-bg::after {
  content:''; position:absolute; inset:0; opacity:.5;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.022) 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: #b6b0a6; }
.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: #07080a;
  padding: 12px;
  box-shadow:
    0 0 0 2px #2a2c31,
    0 0 0 11px #0c0d10,
    0 0 0 12px #34363c,
    0 50px 100px rgba(0,0,0,.6),
    0 18px 50px rgba(255,122,0,.10);
}
.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,.04);
}

/* inner screen */
.statusbar, .viewport, .tabbar { background: var(--sand); }
.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(--ink);
}
.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(--ink); }
.sb-batt { width: 24px; height: 12px; border: 1px solid var(--ink); 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(--ink); border-radius:0 1px 1px 0; }
.sb-batt i { display:block; width: 78%; height: 100%; background: var(--ink); border-radius: 1px; }

/* viewport: the scrollable canvas */
.viewport {
  position: relative; height: 716px; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.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 8px 0;
  box-shadow: 0 -1px 0 var(--line), 0 -10px 24px rgba(40,30,15,.05);
}
.tab {
  flex: 1; background: none; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--ink-faint); font-family: var(--body); font-size: 10.5px; font-weight: 600;
  transition: color .2s var(--ease); padding-top: 4px;
}
.tab-ic { width: 23px; height: 23px; 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[aria-selected="true"] .tab-ic path[d^="M12 4.5"],
.tab[aria-selected="true"] .tab-ic path[d^="M12 21"] { fill: rgba(255,122,0,.16); }
.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(0,0,0,.32); z-index: 41; }

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

/* ===== Full-bleed inside the LINE client (html.in-line) =====
   When running as a LIFF app, drop the simulated phone frame and fill the
   screen — no bezel, notch, fake status bar, or scale transform. */
html.in-line, html.in-line body { background: var(--sand); }
html.in-line .stage { padding: 0; gap: 0; background: var(--sand); }
html.in-line .stage-bg { display: none; }
html.in-line .phone {
  width: 100%; max-width: 100%; height: 100vh; height: 100dvh; max-height: none;
  border-radius: 0; padding: 0; box-shadow: none; transform: none !important;
  display: flex; flex-direction: column; background: var(--sand);
}
html.in-line .phone-notch,
html.in-line .home-indicator,
html.in-line .statusbar { display: none; }
html.in-line .viewport { height: auto; flex: 1 1 auto; min-height: 0; }
html.in-line .tabbar { flex: 0 0 auto; border-radius: 0; padding-bottom: env(safe-area-inset-bottom, 0); }

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

.appbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 14px; }
.appbar .greeting { font-size: 13px; color: var(--ink-soft); }
.appbar .greeting b { color: var(--ink); font-weight: 700; }
.appbar h2.display { font-size: 26px; margin: 2px 0 0; }
.appbar-avatar { width: 42px; height: 42px; border-radius: 50%; flex: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800;
  font-family: var(--display); font-size: 17px; box-shadow: var(--sh-1); }

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

/* tyre-tread divider */
.tread-divider { height: 14px; margin: 6px -18px; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); }

/* ---------------- ENTRY / LOGIN ---------------- */
.entry { position: relative; height: 716px; padding: 0; display: flex; flex-direction: column;
  color: #f3efe8; overflow: hidden;
  background:
    radial-gradient(700px 380px at 80% -6%, rgba(255,122,0,.42), transparent 60%),
    radial-gradient(520px 360px at -10% 108%, rgba(255,178,69,.18), transparent 60%),
    var(--conti-ink); }
.entry::after { content:''; position:absolute; inset:0; opacity:.55; pointer-events:none;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 6px, transparent 6px 15px); }
.entry-inner { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column;
  padding: 30px 26px 26px; }
.entry-logo { display: flex; align-items: center; gap: 10px; }
.entry-logo .mark { width: 34px; height: 34px; border-radius: 9px; background: var(--conti-orange);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-orange); }
.entry-logo .mark svg { width: 20px; height: 20px; fill: #fff; }
.entry-logo b { font-family: var(--display); font-size: 18px; letter-spacing: -.01em; }
.entry-logo b span { color: var(--conti-orange); }

.entry-hero { margin-top: auto; }
.entry-hero .eyebrow { color: var(--conti-amber); }
.entry-hero h1 { font-family: var(--display); font-weight: 700; letter-spacing: -.03em;
  font-size: 42px; line-height: 1.02; margin: 14px 0 12px; }
.entry-hero h1 .o { color: var(--conti-orange); }
.entry-hero p { color: #c4bdb2; font-size: 15px; line-height: 1.5; max-width: 300px; }

.entry-channels { margin: 26px 0 18px; }
.entry-channels .lbl { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: #8d8madj; color: #948d82; margin-bottom: 11px; }
.chan-row { display: flex; gap: 9px; flex-wrap: wrap; }
.chan {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  color: #ece7df; border-radius: var(--r-pill); padding: 9px 14px; font-size: 13px; font-weight: 600;
  transition: transform .15s var(--ease-bounce), background .2s, border-color .2s;
}
.chan:hover { background: rgba(255,255,255,.12); border-color: rgba(255,122,0,.5); }
.chan:active { transform: scale(.95); }
.chan .g { font-size: 15px; }

.entry-cta { margin-top: 8px; }
.btn-line { width: 100%; background: #06c755; color: #fff; box-shadow: 0 10px 30px rgba(6,199,85,.35);
  font-size: 16px; padding: 16px; }
.btn-line:hover { filter: brightness(1.05); }
.btn-line svg { width: 20px; height: 20px; fill: #fff; }
.entry-fine { text-align: center; color: #8d877d; font-size: 11.5px; margin-top: 16px; line-height: 1.5; }
.entry-fine b { color: var(--conti-amber); font-weight: 600; }

/* ---------------- vehicle banner ---------------- */
.vehicle-banner {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 16px 18px;
  background: linear-gradient(135deg, var(--conti-ink) 0%, #25282f 100%);
  color: #fff; box-shadow: var(--sh-2); display: flex; align-items: center; gap: 14px;
}
.vehicle-banner::before { content:''; position:absolute; inset:0; opacity:.5;
  background-image: repeating-linear-gradient(135deg, rgba(255,122,0,.16) 0 5px, transparent 5px 13px); }
.vehicle-banner .vb-glyph { position: relative; font-size: 30px; flex: none; filter: drop-shadow(0 4px 8px rgba(0,0,0,.3)); }
.vehicle-banner .vb-body { position: relative; flex: 1; }
.vehicle-banner .vb-eye { font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--conti-amber); }
.vehicle-banner .vb-name { font-family: var(--display); font-size: 17px; font-weight: 700; margin: 2px 0; }
.vehicle-banner .vb-size { font-family: var(--mono); font-size: 12px; color: #c9c3b8; }
.vehicle-banner .vb-change { position: relative; flex: none; font-size: 12px; font-weight: 600;
  color: var(--conti-amber); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-pill); padding: 7px 12px; cursor: pointer; }
.vehicle-banner .vb-change:active { transform: scale(.95); }

/* ---------------- search field ---------------- */
.search {
  display: flex; align-items: center; gap: 10px; margin: 16px 0 4px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 12px 16px; box-shadow: var(--sh-1);
}
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--ink-faint); stroke-width: 2; }
.search input { flex: 1; border: 0; outline: 0; background: none; font-family: var(--body);
  font-size: 14px; color: var(--ink); }
.search input::placeholder { color: var(--ink-faint); }

/* category chips row */
.cat-row { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 4px; scrollbar-width: none; }
.cat-row::-webkit-scrollbar { display: none; }
.cat {
  flex: none; cursor: pointer; font-size: 13px; font-weight: 600; padding: 8px 15px;
  border-radius: var(--r-pill); background: var(--paper); border: 1px solid var(--line);
  color: var(--ink-soft); transition: all .18s var(--ease);
}
.cat[aria-selected="true"] { background: var(--conti-ink); color: #fff; border-color: var(--conti-ink); }
.cat:active { transform: scale(.95); }

/* ---------------- product cards ---------------- */
.prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.prod-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; cursor: pointer; box-shadow: var(--sh-1);
  transition: transform .18s var(--ease-bounce), box-shadow .25s var(--ease);
}
.prod-card:active { transform: scale(.97); }
.prod-card:hover { box-shadow: var(--sh-2); }
.prod-tile {
  position: relative; height: 104px; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.prod-tile .glyph { font-size: 46px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); transition: transform .3s var(--ease-bounce); }
.prod-card:hover .prod-tile .glyph { transform: scale(1.08) rotate(-4deg); }
.prod-tile .tag { position: absolute; top: 9px; left: 9px; font-size: 10px; font-weight: 700;
  padding: 4px 8px; border-radius: var(--r-pill); background: rgba(255,255,255,.92); color: var(--conti-ink-2);
  backdrop-filter: blur(4px); }
.prod-tile .rating { position: absolute; bottom: 9px; right: 9px; font-size: 10.5px; font-weight: 700;
  padding: 3px 7px; border-radius: var(--r-pill); background: rgba(22,24,29,.78); color: var(--conti-amber); }
.prod-body { padding: 11px 12px 13px; }
.prod-body .name { font-weight: 700; font-size: 13.5px; line-height: 1.2; }
.prod-body .spec { font-family: var(--mono); font-size: 10.5px; color: var(--ink-soft); margin: 4px 0 9px; }
.prod-body .price { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--conti-ink); }
.prod-body .price.pts { color: var(--conti-orange-deep); }

/* ---------------- retailer list ---------------- */
.retailer-card {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 15px 16px; margin-bottom: 12px; box-shadow: var(--sh-1);
  transition: transform .15s var(--ease-bounce), box-shadow .25s;
}
.retailer-card:active { transform: scale(.985); }
.rc-top { display: flex; align-items: flex-start; gap: 10px; }
.rc-top .rc-name { font-weight: 700; font-size: 14.5px; line-height: 1.25; flex: 1; }
.rc-meta { display: flex; align-items: center; gap: 10px; margin: 8px 0 10px; flex-wrap: wrap; }
.stars { color: var(--conti-amber); font-size: 12px; letter-spacing: .5px; }
.rc-meta .mt { font-size: 12px; color: var(--ink-soft); }
.rc-meta .mt b { color: var(--ink); }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-faint); }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.rc-actions { display: flex; gap: 8px; margin-top: 12px; }
.rc-actions .btn { flex: 1; padding: 10px; font-size: 13px; }
.badge-auth { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700;
  color: var(--conti-orange-deep); background: rgba(255,122,0,.12); padding: 4px 9px; border-radius: var(--r-pill); }
.badge-auth svg { width: 11px; height: 11px; fill: var(--conti-orange); }

/* ---------------- retailer detail ---------------- */
.detail-strip { position: relative; height: 178px; margin: 0 -18px 16px; overflow: hidden;
  display: flex; align-items: flex-end; }
.detail-strip::before { content:''; position:absolute; inset:0; opacity:.55;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.12) 0 6px, transparent 6px 16px); }
.detail-strip .ds-glyph { position: absolute; top: 22px; right: 22px; font-size: 64px; opacity: .9;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.25)); }
.detail-strip .ds-grad-veil { position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 30%, rgba(22,24,29,.55) 100%); }
.detail-strip .ds-cap { position: relative; z-index: 1; padding: 18px; color: #fff; }
.detail-strip .ds-cap .ds-name { font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1.05; }
.back-btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 14px 8px 11px;
  font-size: 13px; font-weight: 600; color: var(--ink); box-shadow: var(--sh-1); margin: 4px 0 0; }
.back-btn:active { transform: scale(.95); }
.back-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.info-rows { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.info-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row .ir-ic { width: 18px; text-align: center; }
.info-row .ir-k { font-size: 13px; color: var(--ink-soft); flex: 1; }
.info-row .ir-v { font-size: 13px; font-weight: 600; }

/* ---------------- make appointment ---------------- */
.date-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 6px; scrollbar-width: none; }
.date-row::-webkit-scrollbar { display: none; }
.date-cell { flex: none; width: 58px; cursor: pointer; text-align: center; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--paper); padding: 10px 0; transition: all .15s var(--ease); }
.date-cell .dow { font-size: 10.5px; color: var(--ink-soft); font-weight: 600; }
.date-cell .dnum { font-family: var(--display); font-size: 19px; font-weight: 700; margin-top: 2px; }
.date-cell[aria-selected="true"] { background: var(--conti-orange); border-color: var(--conti-orange); color: #fff; box-shadow: var(--sh-orange); }
.date-cell[aria-selected="true"] .dow { color: rgba(255,255,255,.85); }
.date-cell:active { transform: scale(.94); }

.slot-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; }
.slot { cursor: pointer; text-align: center; padding: 12px 0; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--paper); font-family: var(--mono); font-size: 13px;
  font-weight: 600; color: var(--ink); transition: all .15s var(--ease); }
.slot[aria-disabled="true"] { color: var(--ink-faint); background: var(--paper-2); cursor: not-allowed;
  text-decoration: line-through; opacity: .6; }
.slot[aria-selected="true"] { background: var(--conti-ink); border-color: var(--conti-ink); color: #fff; }
.slot:not([aria-disabled="true"]):active { transform: scale(.94); }

/* ---------------- appointment detail / timeline ---------------- */
.timeline { display: flex; justify-content: space-between; position: relative; margin: 8px 4px 4px; }
.timeline::before { content:''; position:absolute; top: 11px; left: 22px; right: 22px; height: 2px;
  background: var(--line); }
.timeline .tl-prog { content:''; position:absolute; top: 11px; left: 22px; height: 2px;
  background: var(--conti-orange); transition: width .6s var(--ease); border-radius: 2px; }
.tl-step { position: relative; z-index: 1; text-align: center; flex: 1; }
.tl-dot { width: 24px; height: 24px; border-radius: 50%; margin: 0 auto 7px; background: var(--paper);
  border: 2px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--ink-faint); transition: all .4s var(--ease); }
.tl-step.done .tl-dot { background: var(--conti-orange); border-color: var(--conti-orange); color: #fff; }
.tl-step.current .tl-dot { border-color: var(--conti-orange); color: var(--conti-orange);
  box-shadow: 0 0 0 4px rgba(255,122,0,.18); }
.tl-lbl { font-size: 10px; font-weight: 600; color: var(--ink-soft); line-height: 1.2; }
.tl-step.done .tl-lbl, .tl-step.current .tl-lbl { color: var(--ink); }

/* ---------------- QR card ---------------- */
.qr-card { position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--conti-ink) 0%, #292c34 100%); color: #fff;
  padding: 22px; box-shadow: var(--sh-3); }
.qr-card::before { content:''; position:absolute; inset:0; opacity:.4;
  background-image: repeating-linear-gradient(135deg, rgba(255,122,0,.14) 0 5px, transparent 5px 14px); }
.qr-card-head { position: relative; display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.qr-card-head .qh-t { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--conti-amber); }
.qr-frame { position: relative; width: 188px; margin: 0 auto; padding: 14px; border-radius: var(--r-md);
  background: #fff; box-shadow: 0 14px 30px rgba(0,0,0,.35); overflow: hidden; }
.qr-svg { display: block; width: 160px; height: 160px; }
.qr-svg rect.m { fill: var(--conti-ink); }
.qr-code-line { position: relative; text-align: center; margin-top: 16px; font-family: var(--mono);
  font-size: 13px; letter-spacing: .08em; color: #ece7df; }
.qr-sub { position: relative; text-align: center; font-size: 12px; color: #b8b2a8; margin-top: 4px; }

/* rules/reminders */
.rules { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.rules li { list-style: none; font-size: 12.5px; color: var(--ink-soft); line-height: 1.5;
  padding-left: 20px; position: relative; margin-bottom: 7px; }
.rules li:last-child { margin-bottom: 0; }
.rules li::before { content:'▸'; position: absolute; left: 2px; color: var(--conti-orange); }

/* ---------------- service card (punch card) ---------------- */
.svc-summary { display: flex; align-items: center; justify-content: space-between; margin: 18px 2px 0; }
.svc-count { font-family: var(--display); font-size: 32px; font-weight: 700; color: var(--conti-orange); }
.svc-count small { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.punch-row { display: flex; gap: 11px; justify-content: center; margin: 18px 0 6px; }
.punch { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all .4s var(--ease-bounce); }
.punch.used { background: var(--conti-orange); color: #fff; box-shadow: var(--sh-orange); }
.punch.free { background: var(--paper); border: 2px dashed var(--line); color: var(--ink-faint); }

/* ---------------- rewards / member ---------------- */
.member-card { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 20px;
  background: linear-gradient(135deg, #2a2118 0%, var(--conti-ink) 60%); color: #fff; box-shadow: var(--sh-3); }
.member-card::before { content:''; position:absolute; inset:0; opacity:.4;
  background-image: repeating-linear-gradient(135deg, rgba(255,178,69,.16) 0 5px, transparent 5px 14px); }
.mc-row { position: relative; display: flex; align-items: center; justify-content: space-between; }
.mc-tier { display: inline-flex; align-items: center; gap: 7px; font-family: var(--display); font-size: 20px; font-weight: 700; }
.mc-tier .gem { width: 22px; height: 22px; }
.mc-pts { position: relative; text-align: right; }
.mc-pts .n { font-family: var(--display); font-size: 30px; font-weight: 800; color: var(--conti-amber); line-height: 1; }
.mc-pts .l { font-size: 11px; color: #b8b2a8; }
.progress-track { position: relative; height: 9px; border-radius: var(--r-pill); background: rgba(255,255,255,.12);
  margin: 18px 0 9px; overflow: hidden; }
.progress-fill { position: absolute; inset: 0 auto 0 0; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--conti-orange), var(--conti-amber)); transition: width .8s var(--ease); }
.mc-next { position: relative; font-size: 12px; color: #d8d2c8; display: flex; justify-content: space-between; }
.mc-next b { color: #fff; }
.perk-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; position: relative; }

.reward-card { display: flex; align-items: center; gap: 13px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 13px 14px; margin-bottom: 11px; box-shadow: var(--sh-1); }
.reward-glyph { width: 50px; height: 50px; flex: none; border-radius: var(--r-sm); display: flex;
  align-items: center; justify-content: center; font-size: 25px; }
.reward-body { flex: 1; }
.reward-body .rt { font-weight: 700; font-size: 14px; }
.reward-body .rp { font-family: var(--mono); font-size: 12px; color: var(--conti-orange-deep); font-weight: 600; margin-top: 2px; }
.reward-card .btn { padding: 9px 16px; font-size: 13px; flex: none; }
.reward-card .btn:disabled { background: var(--paper-2); color: var(--ink-faint); box-shadow: none; cursor: not-allowed; }

.coupon { position: relative; display: flex; align-items: center; gap: 14px; background: var(--paper);
  border: 1px dashed var(--conti-orange); border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 11px;
  overflow: hidden; }
.coupon::before, .coupon::after { content:''; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  background: var(--sand); top: 50%; transform: translateY(-50%); }
.coupon::before { left: -8px; } .coupon::after { right: -8px; }
.coupon.redeemed { border-style: solid; border-color: var(--line); opacity: .62; }
.coupon-ic { font-size: 26px; flex: none; }
.coupon-body { flex: 1; }
.coupon-body .cl { font-weight: 700; font-size: 14px; }
.coupon-body .cc { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); letter-spacing: .06em; margin-top: 3px; }
.coupon-body .ce { font-size: 11px; color: var(--ink-faint); margin-top: 2px; }
.coupon .btn { flex: none; padding: 9px 14px; font-size: 12.5px; }
.coupon .redeemed-stamp { font-size: 11px; font-weight: 700; color: var(--ok); }

.referral { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 20px;
  background: linear-gradient(135deg, var(--conti-orange) 0%, var(--conti-orange-deep) 100%);
  color: #fff; box-shadow: var(--sh-orange); }
.referral::before { content:''; position:absolute; inset:0; opacity:.3;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.2) 0 5px, transparent 5px 14px); }
.referral .rf-body { position: relative; }
.referral h4 { font-family: var(--display); font-size: 20px; margin: 4px 0 6px; }
.referral p { font-size: 13px; color: rgba(255,255,255,.9); line-height: 1.45; margin: 0 0 14px; }
.referral .btn { background: #fff; color: var(--conti-orange-deep); box-shadow: 0 8px 20px rgba(0,0,0,.18); }

/* ---------------- profile ---------------- */
.profile-head { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 22px 20px;
  background: linear-gradient(150deg, #25282f, var(--conti-ink)); color: #fff; box-shadow: var(--sh-2);
  display: flex; align-items: center; gap: 16px; }
.profile-head::before { content:''; position:absolute; inset:0; opacity:.4;
  background-image: repeating-linear-gradient(135deg, rgba(255,122,0,.14) 0 5px, transparent 5px 14px); }
.profile-avatar { position: relative; width: 64px; height: 64px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--display);
  font-weight: 800; font-size: 26px; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.profile-head .ph-body { position: relative; flex: 1; }
.profile-head .ph-name { font-family: var(--display); font-size: 21px; font-weight: 700; }
.profile-head .ph-tier { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700;
  color: var(--conti-ink); background: var(--conti-amber); padding: 3px 10px; border-radius: var(--r-pill); margin-top: 6px; }
.profile-head .ph-pts { position: relative; text-align: right; }
.profile-head .ph-pts .n { font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--conti-amber); line-height: 1; }
.profile-head .ph-pts .l { font-size: 10px; color: #b8b2a8; letter-spacing: .04em; }

.wallet-row { display: flex; gap: 11px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.wallet-row::-webkit-scrollbar { display: none; }
.wallet-chip { flex: none; min-width: 138px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 13px 14px; box-shadow: var(--sh-1); }
.wallet-chip .wc-glyph { font-size: 22px; }
.wallet-chip .wc-t { font-weight: 700; font-size: 13px; margin-top: 6px; }
.wallet-chip .wc-s { font-family: var(--mono); font-size: 10.5px; color: var(--ink-soft); margin-top: 2px; }

.list-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line);
  width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-top: 0; cursor: pointer; }
.list-item:last-child { border-bottom: 0; }
.list-item:active { background: var(--paper-2); }
.list-item .li-ic { font-size: 17px; width: 22px; text-align: center; }
.list-item .li-body { flex: 1; }
.list-item .li-t { font-size: 14px; font-weight: 600; }
.list-item .li-s { font-size: 11.5px; color: var(--ink-soft); margin-top: 1px; }
.list-item .li-r { font-size: 12px; color: var(--ink-faint); }
.list-item .li-chev { color: var(--ink-faint); font-size: 16px; }
.order-pts { font-family: var(--mono); font-weight: 700; color: var(--ok); font-size: 13px; }

.reset-link { display: block; width: 100%; text-align: center; margin: 22px 0 4px; background: none; border: 0;
  cursor: pointer; font-family: var(--mono); font-size: 12px; color: var(--ink-faint); letter-spacing: .04em; }
.reset-link:hover { color: var(--danger); }

/* ---------------- bottom sheet ---------------- */
.sheet-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(12,10,8,.5);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); backdrop-filter: blur(2px); }
.sheet-scrim.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; z-index: 91; left: 50%; bottom: 0; transform: translate(-50%, 110%);
  width: 390px; max-width: calc(100vw - 24px); max-height: 78vh; overflow-y: auto;
  background: var(--sand); border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: 0 -20px 60px rgba(0,0,0,.4); transition: transform .42s var(--ease-bounce);
  padding: 8px 20px 28px; scrollbar-width: none;
}
.sheet::-webkit-scrollbar { display: none; }
.sheet.open { transform: translate(-50%, 0); }
.sheet-grip { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 14px; }

.sheet-prod-tile { height: 150px; border-radius: var(--r-lg); display: flex; align-items: center;
  justify-content: center; margin-bottom: 16px; position: relative; overflow: hidden; }
.sheet-prod-tile .glyph { font-size: 72px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.2)); }
.sheet h3.display { font-size: 22px; margin: 0; }
.sheet .sp-spec { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); margin: 6px 0 12px; }
.sheet .sp-blurb { font-size: 14px; color: var(--ink-soft); line-height: 1.5; margin-bottom: 16px; }
.sheet .sp-pricerow { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.sheet .sp-price { font-family: var(--display); font-size: 26px; font-weight: 800; }
.sheet .sp-actions { display: flex; gap: 10px; }
.sheet .sp-actions .btn { flex: 1; }

@media (max-width: 420px) { .sheet { width: 100vw; max-width: 100vw; } }

/* ---------------- toasts ---------------- */
.toast-wrap { position: fixed; z-index: 95; left: 50%; bottom: 96px; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; width: 360px; max-width: calc(100vw - 28px); }
.toast {
  display: flex; align-items: center; gap: 11px; width: 100%;
  background: var(--conti-ink); color: #fff; border-radius: var(--r-pill);
  padding: 13px 18px; box-shadow: var(--sh-3); font-size: 13.5px; font-weight: 600;
  opacity: 0; transform: translateY(16px) scale(.95);
  animation: toast-in .4s var(--ease-bounce) forwards;
}
.toast.out { animation: toast-out .35s var(--ease) forwards; }
@keyframes toast-in { to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px) scale(.95); } }
.toast .t-ic { width: 22px; height: 22px; border-radius: 50%; flex: none; display: flex; align-items: center;
  justify-content: center; background: var(--conti-orange); font-size: 13px; }
.toast.ok .t-ic { background: var(--ok); }
.toast .t-sub { display: block; font-weight: 500; font-size: 11.5px; color: #b8b2a8; margin-top: 1px; }

/* ---------------- login: social + email/OTP (§4.3 account creation) ---------------- */
.btn-line { position: relative; flex-wrap: wrap; }
.line-wired { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255,255,255,.22); color: #fff; padding: 3px 7px; border-radius: var(--r-pill); white-space: nowrap; }
.social-row { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.social { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #ece7df;
  border-radius: var(--r-md); padding: 10px 4px 8px; font-size: 17px;
  transition: transform .15s var(--ease-bounce), border-color .2s, background .2s; }
.social span { font-size: 10px; font-weight: 600; }
.social:hover { background: rgba(255,255,255,.12); border-color: rgba(255,122,0,.5); }
.social:active { transform: scale(.94); }
.entry-or { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; color: #8d877d; font-size: 11.5px; }
.entry-or::before, .entry-or::after { content:''; flex: 1; height: 1px; background: rgba(255,255,255,.12); }
.email-otp { display: flex; flex-direction: column; gap: 9px; }
.email-otp input { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #fff;
  font-family: var(--body); font-size: 14px; }
.email-otp input::placeholder { color: #8d877d; }
.email-otp .btn-ghost { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); color: #ece7df; }
.otp-sent { font-size: 11.5px; color: #c4bdb2; line-height: 1.5; }
.otp-sent .mono { color: var(--conti-amber); font-weight: 700; }

/* ---------------- discover: register banner + campaign promo + education ---------------- */
.reg-banner, .promo-banner { display: flex; align-items: center; gap: 13px; cursor: pointer;
  border-radius: var(--r-lg); padding: 14px 16px; margin-top: 12px; box-shadow: var(--sh-1);
  transition: transform .15s var(--ease-bounce); }
.reg-banner:active, .promo-banner:active { transform: scale(.985); }
.reg-banner { background: var(--paper); border: 1px solid var(--line); }
.reg-banner .rb-glyph { font-size: 28px; flex: none; }
.reg-banner .rb-body { flex: 1; }
.reg-banner .rb-t { font-weight: 700; font-size: 14px; }
.reg-banner .rb-s { font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }
.reg-banner .rb-go { color: var(--conti-orange); font-size: 20px; font-weight: 700; }
.promo-banner { position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--conti-orange) 0%, var(--conti-orange-deep) 100%); border: 0; box-shadow: var(--sh-orange); }
.promo-banner::before { content:''; position:absolute; inset:0; opacity:.28;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.22) 0 5px, transparent 5px 14px); }
.promo-banner .pb-glyph { position: relative; font-size: 28px; flex: none; }
.promo-banner .pb-body { position: relative; flex: 1; }
.promo-banner .pb-eye { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.promo-banner .pb-t { font-family: var(--display); font-weight: 700; font-size: 16px; margin: 1px 0; }
.promo-banner .pb-s { font-size: 11.5px; color: rgba(255,255,255,.92); }
.promo-banner .pb-go { position: relative; flex: none; font-weight: 700; font-size: 13px; }

.edu-list { display: flex; flex-direction: column; gap: 11px; }
.edu-card { display: flex; align-items: flex-start; gap: 13px; text-align: left; width: 100%; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 15px; box-shadow: var(--sh-1);
  transition: transform .15s var(--ease-bounce), box-shadow .25s; }
.edu-card:active { transform: scale(.985); }
.edu-card:hover { box-shadow: var(--sh-2); }
.edu-card .edu-glyph { font-size: 26px; flex: none; }
.edu-card .edu-t { font-weight: 700; font-size: 14px; }
.edu-card .edu-s { font-size: 12px; color: var(--ink-soft); line-height: 1.45; margin: 3px 0 6px; }
.edu-card .edu-m { font-size: 10.5px; color: var(--conti-orange-deep); font-weight: 600; }
.edu-hero { display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(150deg, #f2ede4, var(--paper-2)); border-radius: var(--r-lg); padding: 22px; }
.edu-hero-glyph { font-size: 52px; }

/* ---------------- buy online (future phase) ---------------- */
.buy-online { position: relative; width: 100%; margin-top: 10px; cursor: pointer;
  background: var(--paper-2); border: 1px dashed var(--line); border-radius: var(--r-md);
  padding: 13px; font-family: var(--body); font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.buy-online .bo-ph { position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--conti-ink); color: var(--conti-amber); padding: 3px 6px; border-radius: var(--r-pill); }

/* ---------------- segmented control + scan + reg form ---------------- */
.seg { display: flex; gap: 4px; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 4px; margin-bottom: 16px; }
.seg-btn { flex: 1; cursor: pointer; border: 0; background: none; border-radius: var(--r-pill);
  padding: 9px 0; font-family: var(--body); font-size: 13px; font-weight: 700; color: var(--ink-soft);
  transition: all .2s var(--ease); }
.seg-btn[aria-selected="true"] { background: var(--conti-ink); color: #fff; box-shadow: var(--sh-1); }

.scan-zone { margin-bottom: 4px; }
.scan-frame { position: relative; height: 168px; border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, #2a2e37, var(--conti-ink)); display: flex;
  align-items: center; justify-content: center; box-shadow: inset 0 0 40px rgba(0,0,0,.5); }
.scan-corner { position: absolute; width: 26px; height: 26px; border: 3px solid var(--conti-orange); }
.scan-corner.tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.scan-corner.tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.scan-corner.bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.scan-corner.br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.scan-hint { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center;
  font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,.7); }

.veh-row { display: flex; gap: 9px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.veh-row::-webkit-scrollbar { display: none; }
.veh-pick { flex: none; cursor: pointer; display: flex; flex-direction: column; gap: 2px; text-align: left;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 14px;
  font-size: 13px; font-weight: 700; color: var(--ink); transition: all .18s var(--ease); }
.veh-pick small { font-family: var(--mono); font-size: 10px; font-weight: 500; color: var(--ink-soft); }
.veh-pick[aria-selected="true"] { background: var(--conti-ink); border-color: var(--conti-ink); color: #fff; }
.veh-pick[aria-selected="true"] small { color: var(--conti-amber); }
.veh-pick:active { transform: scale(.95); }
.veh-add { color: var(--conti-orange); justify-content: center; align-items: center; }

.reg-form { display: flex; flex-direction: column; gap: 4px; }
.rf-l { font-size: 11.5px; font-weight: 700; color: var(--ink-soft); margin: 12px 2px 4px; }
.rf-i { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 14px; }
.rf-i.mono { font-family: var(--mono); font-size: 13px; }
.rf-i:focus { outline: 0; border-color: var(--conti-orange); }
.rf-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rf-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

/* ---------------- my tyres / warranty ---------------- */
.tyre-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 15px 16px; margin-bottom: 12px; box-shadow: var(--sh-1); }
.tyre-card .tc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tyre-card .tc-name { font-weight: 700; font-size: 14.5px; line-height: 1.25; flex: 1; }
.tyre-card .tc-meta { font-size: 11px; color: var(--ink-soft); margin: 7px 0 12px; }
.tyre-card .tc-valid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tyre-card .tc-valid > div { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 11px; }
.tyre-card .tcv-k { display: block; font-size: 10px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.tyre-card .tcv-v { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--ink); margin-top: 3px; }
.chip-ok { background: rgba(31,157,99,.14); color: var(--ok); }

/* ---------------- campaign cards (rewards) ---------------- */
.camp-card { display: flex; align-items: center; gap: 13px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 15px; margin-bottom: 11px; box-shadow: var(--sh-1); }
.camp-glyph { width: 48px; height: 48px; flex: none; border-radius: var(--r-sm); display: flex;
  align-items: center; justify-content: center; font-size: 25px;
  background: linear-gradient(150deg, hsla(28,80%,90%,1), hsla(22,72%,78%,1)); }
.camp-body { flex: 1; }
.camp-body .camp-t { font-weight: 700; font-size: 14px; }
.camp-body .camp-blurb { font-size: 11.5px; color: var(--ink-soft); line-height: 1.4; margin: 3px 0 5px; }
.camp-body .camp-reward { font-size: 11px; color: var(--conti-orange-deep); font-weight: 600; }
.camp-card .btn { flex: none; padding: 9px 14px; font-size: 13px; }
.camp-card .btn:disabled { background: var(--paper-2); color: var(--ok); box-shadow: none; cursor: default; border: 1px solid var(--line); }

/* ---------------- comms-preference toggles ---------------- */
.pref-toggle { flex: none; cursor: pointer; width: 44px; height: 26px; border-radius: var(--r-pill);
  background: var(--paper-2); border: 1px solid var(--line); position: relative; transition: background .25s var(--ease), border-color .25s; }
.pref-toggle .pt-knob { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: var(--sh-1); transition: transform .25s var(--ease-bounce); }
.pref-toggle.on { background: var(--conti-orange); border-color: var(--conti-orange); }
.pref-toggle.on .pt-knob { transform: translateX(18px); }

/* small util */
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.empty { text-align: center; color: var(--ink-faint); font-size: 13px; padding: 40px 20px; }
.empty .e-glyph { font-size: 38px; display: block; margin-bottom: 10px; opacity: .6; }
.spacer-sm { height: 8px; } .spacer { height: 16px; }
