/* Localee — application client (téléphone d'abord), d'après les plaquettes du 2026-10-27.
   Couleurs : variables de shared/base.css (jamais de blanc ni de noir purs). */

html, body { background: var(--paper); }
body { overscroll-behavior-y: none; }
#app { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; position: relative; }
@media (min-width: 600px) {
  body { background: var(--paper-2); }
  #app { background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
}
#view { outline: none; padding-bottom: calc(92px + var(--safe-bottom)); }
#view.no-tabs { padding-bottom: 0; }
.ic { width: 22px; height: 22px; flex: none; }
.ic-s { width: 17px; height: 17px; }
.ic-xs { width: 14px; height: 14px; }
.ic.fill path:first-child { fill: currentColor; fill-opacity: .14; }
.hidden { display: none !important; }
.pad-x { padding-left: 20px; padding-right: 20px; }
.small { font-size: 13px; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.link {
  display: inline-flex; align-items: center; gap: 2px; background: none; border: 0; padding: 6px 0;
  font: 500 14px/1 var(--ui); color: var(--ink-2); text-decoration: none; cursor: pointer;
}
.btn-xl { min-height: 58px; font-size: 17px; border-radius: 16px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn-brand { border-radius: 14px; }
.btn-lg { border-radius: 16px; }
.btn .ic { width: 19px; height: 19px; }
.btn-cream { background: #f3eee4; color: #17392a; }
.btn-danger { background: var(--danger); color: #fbf1e6; }
.badge-cold { background: var(--cold); color: var(--brand-ink); }
.badge .ic { width: 12px; height: 12px; margin-right: 2px; }
.tag-new { background: var(--new-soft); color: var(--new); }
.tag.t-exclu { background: var(--gold-soft); color: var(--gold); }
.tag.t-destockage { background: var(--cold-soft); color: var(--cold); }
.tag.t-flash { background: var(--flash-soft); color: var(--flash); }
.tag .ic { width: 13px; height: 13px; }

/* ── Barre d'onglets ─────────────────────────────────────────────── */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 50;
  width: 100%; max-width: 560px; display: flex; justify-content: space-around;
  padding: 8px 6px calc(8px + var(--safe-bottom));
  background: color-mix(in srgb, var(--card) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px);
  border-top: 1px solid var(--line);
}
.tabbar.hidden { display: none; }
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 48px;
  padding: 4px 0; text-decoration: none; color: var(--ink-3);
  font-size: 11.5px; font-weight: 500; -webkit-tap-highlight-color: transparent;
}
.tab-ic { position: relative; display: grid; place-items: center; }
.tab .ic { width: 25px; height: 25px; }
.tab.on { color: var(--brand); font-weight: 700; }
.tab.on .ic { stroke-width: 2.1; }
.tab.on .ic.fill path:first-child { fill-opacity: 1; }
.tab .dot {
  position: absolute; top: -4px; left: 16px; min-width: 17px; height: 17px; padding: 0 5px;
  border-radius: 999px; background: var(--price); color: var(--brand-ink);
  font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center;
}

/* ── En-tête de l'accueil ────────────────────────────────────────── */
.home-top {
  position: sticky; top: 0; z-index: 30; padding: calc(12px + var(--safe-top)) 20px 12px;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.home-top.scrolled { border-bottom-color: var(--line); }
.ht-row { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.wordmark {
  font: 800 36px/1 var(--display); letter-spacing: -.045em; color: var(--brand); text-decoration: none; margin-right: auto;
}
.city-btn {
  display: inline-flex; align-items: center; gap: 5px; height: 44px; padding: 0 6px; border: 0; background: none;
  font: 600 15px/1 var(--ui); color: var(--ink); cursor: pointer; white-space: nowrap; max-width: 46vw;
}
.city-btn span { overflow: hidden; text-overflow: ellipsis; }
.city-btn .ic:first-child { width: 19px; height: 19px; color: var(--brand); }
.icon-btn {
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; display: grid; place-items: center; cursor: pointer; flex: none; color: var(--ink);
  position: relative; text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.icon-btn.plain { border-color: transparent; }
.bell { border-color: transparent; }
.bdot {
  position: absolute; top: 5px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--price); color: var(--brand-ink); font: 700 10.5px/18px var(--ui); text-align: center;
  box-shadow: 0 0 0 2px var(--paper);
}

.searchbar {
  display: flex; align-items: center; height: 52px; border-radius: 16px; background: var(--card);
  box-shadow: 0 1px 2px rgba(25, 40, 30, .05), 0 6px 18px -10px rgba(25, 40, 30, .25); border: 1px solid var(--line);
}
.searchbar label { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 14px; min-width: 0; height: 100%; }
.searchbar label .ic { color: var(--ink-3); }
.searchbar input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 16px; color: var(--ink); height: 100%; }
.searchbar input::placeholder { color: var(--ink-3); }
.searchbar input::-webkit-search-cancel-button { -webkit-appearance: none; }
.searchbar > button {
  position: relative; width: 54px; height: 100%; border: 0; border-left: 1px solid var(--line); background: none;
  display: grid; place-items: center; color: var(--ink); cursor: pointer;
}
.fdot { position: absolute; top: 13px; right: 13px; width: 8px; height: 8px; border-radius: 99px; background: var(--price); }

.cat-row { display: flex; gap: 6px; padding: 6px 14px 16px; justify-content: space-between; border-bottom: 1px solid var(--line); margin: 0 6px; }
.cat-q {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0;
  background: none; border: 0; padding: 0; cursor: pointer; font: 500 12.5px/1.1 var(--ui); color: var(--ink-2);
  -webkit-tap-highlight-color: transparent;
}
.cq-ic {
  width: 58px; height: 52px; border-radius: 18px; display: grid; place-items: center;
  background: var(--paper-2); color: var(--ink); transition: background .15s, color .15s;
}
.cq-ic .ic { width: 24px; height: 24px; }
.cat-q.on { color: var(--brand); font-weight: 700; }
.cat-q.on .cq-ic { background: var(--brand); color: var(--brand-ink); }

/* ── Sections et cartes d'offres ─────────────────────────────────── */
.sec { padding-top: 22px; }
.sec + .sec { border-top: 1px solid var(--line); margin: 0 20px; padding-left: 0; padding-right: 0; }
.sec + .sec .sec-h, .sec + .sec .sec-sub { padding-left: 0; padding-right: 0; }
.sec + .sec .hrail { margin: 0 -20px; }
.sec + .sec .grid { padding: 0; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 20px; }
.sec-h h2 { font-size: 22px; letter-spacing: -.025em; display: inline-flex; align-items: center; gap: 6px; }
.flash-ic { color: var(--flash); width: 20px; height: 20px; }
.sec-sub { margin: 4px 0 0; padding: 0 20px; color: var(--ink-2); font-size: 14px; }
#feed > .sec-h { padding-top: 20px; }
.chips { display: flex; gap: 8px; padding: 12px 20px 4px; overflow-x: auto; scrollbar-width: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chips::-webkit-scrollbar { display: none; }
.chip { height: 38px; padding: 0 15px; }
.chip .ic { margin-left: 2px; }
.chips.wrap .chip .ic { margin: 0 2px 0 0; }

.hrail {
  display: flex; gap: 14px; overflow-x: auto; padding: 14px 20px 20px; scroll-snap-type: x mandatory;
  scrollbar-width: none; scroll-padding: 0 20px;
}
.hrail::-webkit-scrollbar { display: none; }
.hrail.flush { margin: 0 -20px; padding-top: 6px; }
.hrail .oc { flex: none; width: calc((100% - 54px) / 2); min-width: 158px; max-width: 220px; scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 14px; padding: 14px 20px 10px; }

.oc { display: block; text-decoration: none; color: inherit; min-width: 0; -webkit-tap-highlight-color: transparent; }
.oc:active { opacity: .8; }
.oc-img { position: relative; aspect-ratio: 1 / .8; border-radius: 16px; overflow: hidden; background: var(--paper-2); }
.oc-img img { width: 100%; height: 100%; object-fit: cover; }
.oc-tl { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; }
.oc-tr { position: absolute; top: 8px; right: 8px; }
.oc-img .badge { height: 26px; padding: 0 9px; font-size: 14px; border-radius: 9px; box-shadow: 0 2px 8px rgba(25, 30, 25, .18); }
.oc-img .badge-new, .oc-img .badge-exclu, .oc-img .badge-flash, .oc-img .badge-cold { font-size: 12.5px; }
.oc-body { padding: 10px 2px 0; display: flex; flex-direction: column; }
.oc-m { font: 700 15.5px/1.2 var(--ui); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-t {
  margin-top: 3px; font-size: 14px; line-height: 1.3; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.oc-price { display: flex; align-items: baseline; gap: 7px; margin-top: 6px; flex-wrap: wrap; }
.oc-price .price { font-size: 22px; }
.price-old { font-size: 14px; }
.oc-meta { display: flex; gap: 12px; margin-top: 5px; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.oc-meta span, .orow-days { display: inline-flex; align-items: center; gap: 4px; }

/* lignes (fiche commerce, favoris) */
.rows { display: flex; flex-direction: column; }
.orow { display: flex; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.orow:last-child { border-bottom: 0; }
.orow-link { flex: 1; display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; text-decoration: none; color: inherit; min-width: 0; }
.orow-img { position: relative; width: 96px; height: 80px; border-radius: 14px; overflow: hidden; background: var(--paper-2); }
.orow-img img { width: 100%; height: 100%; object-fit: cover; }
.orow-img .badge { position: absolute; top: 6px; left: 6px; height: 22px; font-size: 12.5px; padding: 0 7px; }
.orow-main { min-width: 0; }
.orow-m { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 600; margin-bottom: 2px; }
.orow-main b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: 15.5px; line-height: 1.25; }
.orow-line { display: flex; align-items: baseline; gap: 7px; margin-top: 6px; flex-wrap: wrap; }
.orow-line .price { font-size: 20px; }
.orow-days { margin-left: auto; font-size: 13px; color: var(--ink-3); }
.orow.ended { opacity: .55; }
.heart {
  width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; cursor: pointer;
  color: var(--ink-2); flex: none; -webkit-tap-highlight-color: transparent;
}
.heart.on { color: var(--deal); }

.empty { text-align: center; padding: 56px 28px; color: var(--ink-2); }
.empty .ic { width: 40px; height: 40px; color: var(--ink-3); margin: 0 auto 14px; }
.empty h3 { font-size: 21px; color: var(--ink); margin-bottom: 8px; }
.empty p { margin: 0; }
.empty .btn { margin-top: 18px; }
.sk { background: linear-gradient(90deg, var(--paper-2) 0%, var(--line) 50%, var(--paper-2) 100%); background-size: 200% 100%; animation: sk 1.3s infinite linear; border-radius: 10px; }
.oc-img.sk { border-radius: 16px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ── En-têtes de page ────────────────────────────────────────────── */
.page-h { display: flex; align-items: center; gap: 8px; padding: calc(18px + var(--safe-top)) 20px 10px; }
.page-h h1 { font-size: 30px; letter-spacing: -.03em; flex: 1; }
.page-h.with-back { padding-left: 10px; }
.page-h.with-back .icon-btn { border-color: transparent; }
.page-h.with-back h1 { font-size: 25px; }
.page-sub { margin: 0; padding: 0 20px 6px; color: var(--ink-2); font-size: 14.5px; }
.h-sec { font-size: 19px; letter-spacing: -.02em; margin: 26px 0 8px; }

/* segments (Offres / Infos / Avis, Disponibles / Mes récompenses) */
.seg2 { display: flex; border-bottom: 1px solid var(--line); margin: 14px 0 4px; }
.seg2 button {
  flex: 1; background: none; border: 0; padding: 13px 0; cursor: pointer; position: relative;
  font: 500 15px/1 var(--ui); color: var(--ink-3); min-height: 44px;
}
.seg2 button.on { color: var(--brand); font-weight: 700; }
.seg2 button.on::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -1px; height: 2.5px; border-radius: 3px; background: var(--brand); }
.page-h + .pad-x .seg2, .pad-x > .seg2 { margin-top: 4px; }
/* segments en pastilles */
#cs.seg2 { border: 0; background: var(--paper-2); border-radius: 14px; padding: 4px; gap: 4px; }
#cs.seg2 button { border-radius: 11px; min-height: 42px; }
#cs.seg2 button.on { background: var(--brand); color: var(--brand-ink); }
#cs.seg2 button.on::after { display: none; }

/* ── Fiche offre ─────────────────────────────────────────────────── */
.od-hero { position: relative; height: 42vh; min-height: 280px; max-height: 420px; width: 100%; overflow: hidden; background: var(--paper-2); }
.od-hero.short { height: 30vh; min-height: 210px; }
.od-hero img { width: 100%; height: 100%; object-fit: cover; }
.od-hero::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 110px; background: linear-gradient(180deg, rgba(15, 22, 18, .38), rgba(15, 22, 18, 0)); pointer-events: none; }
.float-bar {
  position: absolute; top: calc(12px + var(--safe-top)); left: 14px; right: 14px; z-index: 5;
  display: flex; gap: 8px; align-items: center;
}
.float-bar > span { flex: 1; }
.float-btn {
  width: 44px; height: 44px; border-radius: 14px; border: 0; display: grid; place-items: center;
  background: rgba(251, 248, 242, .92); color: #1f2a23; cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(15, 25, 20, .16);
}
.float-btn.on { color: #e5485a; }
.od-sheet, .shop-sheet {
  position: relative; margin-top: -26px; border-radius: 26px 26px 0 0; background: var(--paper);
  padding: 26px 20px 28px; z-index: 2;
}
.od-off { position: absolute; top: -22px; right: 20px; height: 44px; padding: 0 16px; font-size: 22px; border-radius: 14px; box-shadow: 0 6px 18px -6px rgba(229, 72, 90, .6); }
.od-m { text-decoration: none; color: inherit; display: block; padding-right: 96px; }
.od-sheet h1 { font-size: 28px; letter-spacing: -.03em; }
.od-t { margin: 6px 0 0; color: var(--ink-2); font-size: 17px; line-height: 1.35; }
.od-price { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.od-price .sp { flex: 1; }
.price.big { font-size: 40px; }
.od-price .price-old { font-size: 19px; }
.od-price .tag { align-self: center; }
.od-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; padding: 16px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.od-stats > div { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; padding: 0 6px; min-width: 0; }
.od-stats > div + div { border-left: 1px solid var(--line); }
.od-stats .ic { width: 22px; height: 22px; color: var(--ink); margin-bottom: 4px; }
.od-stats b { font-size: 16px; font-weight: 600; }
.od-stats span { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.od-cta { margin-top: 20px; }
.cta-sub { text-align: center; color: var(--ink-3); font-size: 14px; margin: 10px 0 0; }
.cta-done { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ok); font-weight: 600; padding: 16px; border-radius: 16px; background: var(--ok-soft); }
.cta-off { padding: 16px 18px; border-radius: 16px; background: var(--paper-2); color: var(--ink-2); font-size: 14px; }
.cta-off b { display: block; color: var(--ink); font-size: 15.5px; margin-bottom: 2px; }
.od-sec { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.od-sec h2 { font-size: 20px; letter-spacing: -.02em; margin-bottom: 10px; }
.od-sec p { margin: 0 0 8px; color: var(--ink-2); white-space: pre-line; font-size: 15.5px; line-height: 1.5; }
.od-facts { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 9px; }
.od-facts li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-2); }
.od-facts .ic { color: var(--brand); }
.legal { font-size: 12.5px !important; color: var(--ink-3) !important; font-style: italic; margin-top: 12px !important; }
.shop-line { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.shop-line > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.shop-line b { font: 700 17px/1.2 var(--display); letter-spacing: -.01em; }
.shop-line div > span { font-size: 13.5px; color: var(--ink-2); }
.hours { display: flex; align-items: center; gap: 6px; font-size: 13.5px !important; margin: 12px 0 0 !important; }
.two-btn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.two-btn .btn { min-height: 50px; border-radius: 14px; }
.two-btn .btn-ghost { border-color: var(--line-2); }
.rating { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; color: var(--ink-2); }
.rating b { color: var(--ink); font-weight: 700; }
.rating .gold, .stars .st { color: var(--gold); }
.rating .ic { width: 17px; height: 17px; }
.stars { display: inline-flex; gap: 1px; }
.stars .st { width: 15px; height: 15px; stroke-width: 1.2; }

/* monogramme (le commerce n'a pas encore de logo) */
.mono {
  display: grid; place-items: center; flex: none; border-radius: 999px;
  background: var(--card); color: var(--brand); font: 700 22px/1 var(--display); letter-spacing: -.04em;
  border: 1px solid var(--line);
}
.mono.sm { width: 52px; height: 52px; }
.mono.lg {
  position: absolute; top: -56px; left: 20px; width: 96px; height: 96px; font-size: 46px;
  border: 4px solid var(--paper); box-shadow: 0 8px 24px -10px rgba(15, 25, 20, .35);
}

/* ── Fiche commerce ──────────────────────────────────────────────── */
.shop-hero { position: relative; height: 270px; overflow: hidden; background: var(--paper-2); }
.shop-hero img { width: 100%; height: 100%; object-fit: cover; }
.shop-hero::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 110px; background: linear-gradient(180deg, rgba(15, 22, 18, .38), rgba(15, 22, 18, 0)); }
.shop-sheet { padding-top: 52px; }
.shop-sheet h1 { font-size: 28px; letter-spacing: -.03em; }
.shop-sub { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.shop-meta { display: flex; gap: 16px; align-items: center; margin-top: 10px; font-size: 14px; color: var(--ink-2); flex-wrap: wrap; }
.shop-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.btn.following { color: var(--brand); }
.btn.following svg { color: var(--deal); }
.shop-desc { color: var(--ink-2); margin: 16px 0 0; line-height: 1.55; }
.info-list { list-style: none; margin: 12px 0 0; padding: 0; }
.info-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list .ic { color: var(--ink-3); margin-top: 1px; }
.info-list b { display: block; font-weight: 600; }
.info-list span, .info-list a { color: var(--ink-2); font-size: 14px; }
.info-list a { color: var(--brand); text-decoration: none; font-weight: 600; }

.rv-sum { display: flex; align-items: center; gap: 14px; padding: 18px 0 6px; }
.rv-sum > b { font: 800 44px/1 var(--display); letter-spacing: -.04em; }
.rv-sum .stars .st { width: 18px; height: 18px; }
.rv-sum div > span:not(.stars) { display: block; color: var(--ink-3); font-size: 13.5px; margin-top: 4px; }
.rv-form { margin-top: 14px; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 12px; }
.rv-stars { display: flex; gap: 4px; }
.rv-stars button { width: 44px; height: 44px; border: 0; background: none; padding: 0; color: var(--line-2); cursor: pointer; display: grid; place-items: center; }
.rv-stars button .ic { width: 32px; height: 32px; }
.rv-stars button.on { color: var(--gold); }
.rv-form textarea { min-height: 84px; resize: vertical; line-height: 1.45; }
.rv-actions { display: flex; gap: 8px; justify-content: flex-end; }
.rv-note { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 4px; padding: 12px 14px; border-radius: 14px; background: var(--paper-2); color: var(--ink-2); font-size: 13.5px; }
.rv-note .ic { color: var(--brand); margin-top: 1px; }
.reviews { list-style: none; margin: 10px 0 0; padding: 0; }
.reviews li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.rv-h { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.rv-h span { color: var(--ink-3); font-size: 12.5px; margin-left: auto; }
.reviews p { margin: 6px 0 0; color: var(--ink); line-height: 1.45; }
.rv-reply { margin-top: 10px; padding: 10px 14px; border-left: 3px solid var(--brand); background: var(--paper-2); border-radius: 0 12px 12px 0; }
.rv-reply b { font-size: 13px; color: var(--brand); }
.rv-reply p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }

/* récompenses */
.rrow { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rrow:last-child { border-bottom: 0; }
.rrow img { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; flex: none; background: var(--paper-2); }
.rrow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rrow-main b { font-weight: 700; font-size: 15.5px; line-height: 1.25; }
.rrow-main a { color: var(--ink-3); font-size: 13.5px; text-decoration: none; }
.pts { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-top: 3px; }
.pts .ic, .pts-note .ic, .t-pts .ic { color: var(--gold); fill: var(--gold); }
.rrow .btn { flex: none; }
.rrow .btn[disabled] { background: var(--paper-2); color: var(--ink-3); opacity: 1; }
.pts-card {
  display: flex; align-items: center; gap: 12px; width: calc(100% - 40px); margin: 6px 20px 0; padding: 14px 16px;
  border-radius: 18px; border: 0; background: var(--forest-soft); color: var(--ink); cursor: pointer; text-align: left;
}
.pc-star { width: 46px; height: 46px; border-radius: 99px; background: var(--gold); color: var(--brand-ink); display: grid; place-items: center; flex: none; }
.pc-star .ic { width: 24px; height: 24px; }
.pts-card > b { font: 800 34px/1 var(--display); letter-spacing: -.03em; color: var(--brand); }
.pts-card > span:not(.pc-star):not(.pc-more) { font: 600 18px/1 var(--ui); margin-top: 6px; }
.pc-more { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; font-size: 13.5px; color: var(--ink-2); }
.earn { margin: 24px 0 10px; padding: 16px 18px; border-radius: 18px; background: var(--paper-2); }
.earn b { font-weight: 700; }
.earn ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.earn li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-2); }
.earn .ic { color: var(--brand); }
.earn a { color: var(--brand); font-weight: 600; }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ledger li > div { flex: 1; min-width: 0; }
.ledger b { display: block; font-weight: 600; font-size: 14.5px; }
.ledger span { font-size: 12.5px; color: var(--ink-3); }
.ledger .plus, .ledger .minus { font: 800 18px/1 var(--display); color: var(--new); }
.ledger .minus { color: var(--ink-3); }
.pts-note { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink-2); }

/* ── Notifications ───────────────────────────────────────────────── */
#nf { padding-top: 4px; }
#nf .chip { height: 38px; }
.notifs { list-style: none; margin: 8px 0 0; padding: 0 20px; }
.notifs a { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.notifs a > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notifs b { font-weight: 600; font-size: 15px; line-height: 1.3; }
.notifs a.unread b::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 99px; background: var(--price); margin-left: 7px; vertical-align: 2px; }
.notifs span { font-size: 14px; color: var(--ink-2); }
.notifs small { font-size: 12.5px; color: var(--ink-3); }
.n-ic { width: 48px; height: 48px; border-radius: 99px; display: grid; place-items: center; flex: none; }
.n-offre { background: var(--flash-soft); color: var(--flash); }
.n-commerce { background: var(--new-soft); color: var(--new); }
.n-defi { background: var(--gold-soft); color: var(--gold); }
.n-points { background: var(--gold-soft); color: var(--gold); }
.n-selection { background: var(--cold-soft); color: var(--cold); }
.n-points .ic, .n-selection .ic { fill: currentColor; }

/* ── Compte ──────────────────────────────────────────────────────── */
.me-card { display: flex; align-items: center; gap: 16px; padding: 10px 20px 18px; }
.avatar {
  width: 64px; height: 64px; border-radius: 999px; background: var(--cold-soft); color: var(--cold);
  display: grid; place-items: center; font: 700 24px/1 var(--display); flex: none;
}
.me-card b { display: block; font: 700 21px/1.2 var(--display); letter-spacing: -.02em; }
.me-card span { color: var(--ink-3); font-size: 14px; }
.menu { list-style: none; margin: 6px 0 0; padding: 0 20px; }
.menu + .menu { margin-top: 18px; }
.menu li > * {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; padding: 0; border: 0; border-bottom: 1px solid var(--line);
  background: none; text-align: left; text-decoration: none; font-size: 15.5px; font-weight: 500; cursor: pointer; color: var(--ink);
}
.menu li > * > span:first-of-type { flex: 1; }
.menu li > * .ic { color: var(--ink); }
.menu .chev { color: var(--ink-3) !important; }
.menu .val { color: var(--ink-3); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--price); color: var(--brand-ink); font: 700 11.5px/20px var(--ui); text-align: center; }
.menu .danger, .menu .danger .ic { color: var(--danger); }
.menu-h { padding: 18px 20px 0; }
.foot-note { padding: 22px 20px 10px; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.stack-btn { display: grid; gap: 10px; margin: 16px 0 10px; }
.toggles { list-style: none; margin: 8px 0 0; padding: 0 20px; }
.toggles label { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.toggles label > div { flex: 1; }
.toggles b { display: block; font-weight: 600; }
.toggles span { font-size: 13.5px; color: var(--ink-3); }
.tgl {
  -webkit-appearance: none; appearance: none; width: 52px; height: 32px; border-radius: 99px; background: var(--line-2);
  position: relative; cursor: pointer; flex: none; transition: background .2s; margin: 0;
}
.tgl::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 99px; background: var(--card); box-shadow: 0 1px 3px rgba(15, 25, 20, .25); transition: transform .2s; }
.tgl:checked { background: var(--brand); }
.tgl:checked::after { transform: translateX(20px); }
.pick { list-style: none; margin: 4px 0 0; padding: 0; }
.pick button {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; border: 0; border-bottom: 1px solid var(--line);
  background: none; font: 500 16px/1 var(--ui); color: var(--ink); cursor: pointer; text-align: left; padding: 0;
}
.pick button span { flex: 1; }
.pick button .ic { color: var(--ink-3); }
.pick button.on { font-weight: 700; color: var(--brand); }
.pick button.on .ic { color: var(--brand); }
.f-row { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 0 10px; }
.f-row b { font: 700 17px/1 var(--ui); color: var(--brand); }
.faq dt { font-weight: 700; margin-top: 16px; }
.faq dd { margin: 4px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }

.wallet-card {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; margin: 12px 20px 0;
  padding: 18px; border-radius: 22px; background: #17392a; color: #eef2ea; text-decoration: none; position: relative; overflow: hidden;
}
.pad-x .wallet-card { margin-left: 0; margin-right: 0; }
.wallet-card::before { content: ""; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; border-radius: 99px; background: rgba(238, 242, 234, .07); }
.wallet-card .eyebrow { color: rgba(238, 242, 234, .7); }
.wallet-card h3 { font-size: 19px; margin: 6px 0 4px; color: #eef2ea; }
.wallet-card small { color: rgba(238, 242, 234, .8); font-size: 13px; }
.wallet-card .go { width: 50px; height: 50px; border-radius: 16px; background: #eef2ea; color: #17392a; display: grid; place-items: center; }
.wallet-card .go .ic { width: 26px; height: 26px; }
.hist { list-style: none; margin: 0; padding: 0; }
.hist li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hist img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.hist a, .hist li > div { text-decoration: none; color: inherit; min-width: 0; }
.hist b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.hist span { font-size: 12.5px; color: var(--ink-3); }
.follow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; padding: 16px 0; }
.follow-grid a { text-decoration: none; color: inherit; }
.follow-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; background: var(--paper-2); }
.follow-grid b { display: block; font: 700 15px/1.2 var(--display); margin-top: 8px; }
.follow-grid span { font-size: 12.5px; color: var(--ink-3); }

/* ── Feuilles (bottom sheets) et filtres ─────────────────────────── */
.sheet-bg { position: fixed; inset: 0; z-index: 200; background: rgba(15, 25, 20, .42); opacity: 0; transition: opacity .22s; }
.sheet-bg.show { opacity: 1; }
.sheet {
  position: fixed; left: 50%; bottom: 0; z-index: 201; width: 100%; max-width: 560px;
  transform: translate(-50%, 100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
  background: var(--paper); border-radius: 26px 26px 0 0; max-height: 92vh; overflow-y: auto;
  padding: 10px 22px calc(24px + var(--safe-bottom)); box-shadow: 0 -10px 40px rgba(15, 25, 20, .2);
}
.sheet.show { transform: translate(-50%, 0); }
.sheet .grab { width: 40px; height: 5px; border-radius: 9px; background: var(--line-2); margin: 0 auto 16px; }
.sheet h2 { font-size: 25px; letter-spacing: -.025em; margin-bottom: 8px; }
.sheet p { color: var(--ink-2); margin: 0 0 16px; }
.sheet .stack { display: grid; gap: 14px; }
.sheet .actions { display: grid; gap: 10px; margin-top: 20px; }
.sheet-h { display: flex; align-items: center; justify-content: space-between; }
.sheet-h h2 { margin: 0; }
.f-label { font: 700 16px/1 var(--ui); margin: 22px 0 12px; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 8px; }
.cat-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px; min-height: 92px;
  border: 0; background: none; border-radius: 18px; cursor: pointer; font: 500 13px/1.2 var(--ui); color: var(--ink); text-align: center;
}
.ct-ic { width: 56px; height: 52px; border-radius: 16px; background: var(--paper-2); display: grid; place-items: center; }
.cat-tile.on { background: var(--brand); color: var(--brand-ink); }
.cat-tile.on .ct-ic { background: transparent; }
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type-pill {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border-radius: 14px;
  border: 2px solid transparent; font: 600 14.5px/1 var(--ui); cursor: pointer; text-align: left;
}
.type-pill .ic { width: 19px; height: 19px; }
.t-promo { background: var(--price-soft); color: var(--price); }
.t-exclu { background: var(--gold-soft); color: var(--gold); }
.t-destockage { background: var(--cold-soft); color: var(--cold); }
.t-flash { background: var(--flash-soft); color: var(--flash); }
.type-pill span, .type-pill { color: inherit; }
.type-pill.on { border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.type-pill.t-promo.on, .type-pill.t-exclu.on, .type-pill.t-destockage.on, .type-pill.t-flash.on { font-weight: 700; }
.f-hint { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.f-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 24px; }
.f-actions .btn { min-height: 56px; }
input[type="range"] { width: 100%; accent-color: var(--brand); height: 32px; }

/* ── Écran du code ───────────────────────────────────────────────── */
.code-screen {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  padding: calc(14px + var(--safe-top)) 20px calc(20px + var(--safe-bottom));
  background: #17392a; color: #eef2ea;
}
.code-top { display: flex; align-items: center; justify-content: space-between; }
.code-top .float-btn { background: rgba(238, 242, 234, .14); color: #eef2ea; box-shadow: none; }
.code-top .eyebrow { color: rgba(238, 242, 234, .75); }
/* le billet reste clair même en mode sombre : un QR se lit mieux sur fond clair */
.ticket {
  margin: 18px 0 0; background: #fbf8f2; color: #1f2a23; border-radius: 26px; padding: 24px 22px 20px;
  text-align: center; position: relative; overflow: hidden; box-shadow: 0 20px 50px -20px rgba(5, 12, 8, .55);
}
.ticket .eyebrow { color: #8a918b; }
.ticket h1 { font-size: 23px; margin: 8px 0 4px; color: #1f2a23; }
.ticket .t-shop { color: #56605a; font-size: 14px; }
.ticket .t-price { margin: 10px 0 0; display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.ticket .price { color: #e2552c; font-size: 26px; }
.ticket .price-old { color: #8a918b; }
.t-pts { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: #56605a; }
.qr-wrap { width: 232px; height: 232px; margin: 18px auto 0; }
.qr { width: 100%; height: 100%; }
.qr svg, .qr img { width: 100%; height: 100%; display: block; }
.qbar { width: 150px; height: 4px; border-radius: 99px; background: #ede7db; margin: 12px auto 12px; overflow: hidden; }
.qbar i { display: block; height: 100%; width: 100%; background: #17392a; border-radius: 99px; transform-origin: left; transition: transform .25s linear; }
.manual { font: 800 30px/1 var(--display); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.manual b { color: #e2552c; }
.live-line { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: #56605a; }
.live-dot { width: 8px; height: 8px; border-radius: 99px; background: #3a7d55; box-shadow: 0 0 0 0 rgba(58, 125, 85, .6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(58, 125, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(58, 125, 85, 0); } }
/* bandeau animé : une capture d'écran se reconnaît à ce qu'il ne bouge pas */
.band {
  margin: 18px -22px -20px; height: 34px; display: flex; align-items: center; overflow: hidden;
  background: repeating-linear-gradient(115deg, #e2552c 0 16px, #ea6c45 16px 32px);
  background-size: 200% 100%; animation: band 3s linear infinite; color: #fdf1ea;
  font: 700 12px/1 var(--ui); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
}
.band span { display: inline-block; padding-left: 100%; animation: marquee 9s linear infinite; }
@keyframes band { to { background-position: -74px 0; } }
@keyframes marquee { to { transform: translateX(-100%); } }
.code-help { text-align: center; margin: 18px 8px 0; font-size: 14px; color: rgba(238, 242, 234, .85); line-height: 1.45; }
.code-help b { color: #eef2ea; }
.code-foot { margin-top: auto; padding-top: 18px; display: grid; gap: 10px; }
.code-foot .btn-ghost { border-color: rgba(238, 242, 234, .3); color: #eef2ea; }
.code-foot .btn-ghost.plain { border: 0; opacity: .8; }
.code-clock { font-variant-numeric: tabular-nums; }
.done-screen { text-align: center; padding-top: 12vh; }
.done-check {
  width: 108px; height: 108px; border-radius: 999px; background: #eef2ea; color: #17392a;
  display: grid; place-items: center; margin: 0 auto 26px; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1);
}
.done-check .ic { width: 56px; height: 56px; stroke-width: 2.4; }
.done-check.small { width: 72px; height: 72px; margin: 6px auto 12px; background: var(--ok); color: var(--ok-soft); }
.done-check.small .ic { width: 38px; height: 38px; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.done-screen h1 { font-size: 34px; color: #eef2ea; }
.done-screen p { color: rgba(238, 242, 234, .85); margin: 12px 20px 0; }
.done-pts { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #f3c27a !important; }

/* ── Carte ───────────────────────────────────────────────────────── */
.map-view { position: fixed; inset: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; }
#map { position: absolute; inset: 0; background: var(--paper-2); }
.map-top { position: absolute; z-index: 5; top: calc(12px + var(--safe-top)); left: 16px; right: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.map-top .searchbar { width: 100%; box-shadow: var(--shadow); }
.here {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 99px; border: 0;
  background: var(--brand); color: var(--brand-ink); font: 600 14px/1 var(--ui); box-shadow: var(--shadow); cursor: pointer;
}
.map-loc {
  position: absolute; z-index: 5; right: 16px; bottom: calc(256px + var(--safe-bottom)); width: 54px; height: 54px; border-radius: 99px;
  border: 0; background: var(--card); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow); cursor: pointer;
}
.pin { position: relative; width: 66px; height: 78px; cursor: pointer; transition: transform .15s; transform-origin: 50% 100%; }
.pin::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 16px; height: 16px; background: #fbf8f2;
  transform: translateX(-50%) rotate(45deg); border-radius: 0 0 4px 0; box-shadow: 3px 3px 6px rgba(15, 25, 20, .18);
}
.pin-ph {
  position: absolute; top: 0; left: 0; width: 66px; height: 66px; border-radius: 99px; overflow: hidden; z-index: 1;
  border: 4px solid #fbf8f2; background: #ede7db; box-shadow: 0 4px 14px rgba(15, 25, 20, .28);
}
.pin-ph img { width: 100%; height: 100%; object-fit: cover; }
.pin .badge { position: absolute; z-index: 2; top: -6px; right: -18px; height: 22px; font-size: 12px; padding: 0 6px; border-radius: 8px; }
.pin-n { position: absolute; z-index: 2; bottom: 8px; left: -6px; min-width: 22px; height: 22px; border-radius: 99px; background: #17392a; color: #eef2ea; font: 700 12px/22px var(--ui); text-align: center; border: 2px solid #fbf8f2; }
.pin.on { transform: scale(1.14); z-index: 5; }
.pin.on .pin-ph { border-color: #17392a; }
.cluster {
  width: 42px; height: 42px; border-radius: 99px; background: #17392a; color: #eef2ea; border: 3px solid #fbf8f2;
  display: grid; place-items: center; font: 700 15px/1 var(--ui); box-shadow: 0 3px 10px rgba(15, 25, 20, .3); cursor: pointer;
}
.me-dot { width: 18px; height: 18px; border-radius: 99px; background: #3f6fa6; border: 3px solid #fbf8f2; box-shadow: 0 0 0 6px rgba(63, 111, 166, .25); }
.map-cards {
  position: absolute; z-index: 5; left: 0; right: 0; bottom: calc(86px + var(--safe-bottom));
  display: flex; gap: 12px; overflow-x: auto; padding: 0 20px 6px; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.map-cards::-webkit-scrollbar { display: none; }
.map-card {
  flex: none; width: calc(100% - 40px); max-width: 400px; scroll-snap-align: center; position: relative;
  padding: 12px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); display: flex; gap: 6px;
}
.map-card.empty-card { align-items: center; gap: 12px; padding: 18px; color: var(--ink-2); }
.map-card.empty-card b { display: block; color: var(--ink); }
.map-card.empty-card span { font-size: 13.5px; }
.mc-link { flex: 1; display: grid; grid-template-columns: 104px 1fr; gap: 14px; text-decoration: none; color: inherit; min-width: 0; }
.mc-img { position: relative; width: 104px; height: 104px; border-radius: 16px; overflow: hidden; background: var(--paper-2); }
.mc-img img { width: 100%; height: 100%; object-fit: cover; }
.mc-img .badge { height: 22px; font-size: 11.5px; padding: 0 7px; }
.mc-body { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.mc-body > b { font: 700 18px/1.2 var(--display); letter-spacing: -.02em; padding-right: 30px; }
.mc-t { color: var(--ink-2); font-size: 14.5px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-line { display: flex; align-items: baseline; gap: 7px; margin-top: 8px; }
.mc-line .price { font-size: 24px; }
.mc-d { margin-left: auto; font-size: 13.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 3px; }
.mc-more { font-size: 12.5px; color: var(--brand); font-weight: 600; margin-top: 4px; }
.map-card .heart { position: absolute; top: 6px; right: 6px; }
.maplibregl-ctrl-attrib { font-size: 10px !important; }
.maplibregl-ctrl-bottom-right { bottom: calc(210px + var(--safe-bottom)) !important; }

/* ── Connexion / bienvenue ───────────────────────────────────────── */
.auth { padding: calc(14px + var(--safe-top)) 22px 40px; }
.auth .icon-btn { border-color: transparent; margin-left: -10px; }
.auth h1 { font-size: 32px; margin: 18px 0 8px; letter-spacing: -.03em; }
.auth > p { color: var(--ink-2); margin: 0 0 22px; }
.auth form { display: grid; gap: 14px; }
.auth .switch { text-align: center; margin-top: 18px; color: var(--ink-2); font-size: 14.5px; -webkit-appearance: none; }
.auth .switch button { background: none; border: 0; color: var(--brand); font-weight: 700; cursor: pointer; padding: 10px 6px; }
.form-err { color: var(--danger); font-size: 14px; min-height: 1em; }

.welcome { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.mosaic { position: relative; height: 50vh; min-height: 320px; display: grid; grid-template-columns: 1.1fr .9fr; grid-template-rows: 1fr 1fr; gap: 6px; padding: calc(6px + var(--safe-top)) 6px 6px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; background: var(--paper-2); }
.mosaic img:first-child { grid-row: span 2; }
.mosaic .stamp {
  position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%) rotate(-3deg);
  background: var(--brand); color: var(--brand-ink); padding: 12px 18px; border-radius: 16px;
  font: 800 17px/1.1 var(--display); box-shadow: var(--shadow); white-space: nowrap;
}
.welcome-body { padding: 44px 24px calc(24px + var(--safe-bottom)); display: flex; flex-direction: column; flex: 1; }
.welcome-body h1 { font-size: 34px; letter-spacing: -.03em; }
.welcome-body h1 em { font-style: normal; color: var(--price); }
.welcome-body > p { color: var(--ink-2); margin: 12px 0 0; font-size: 16px; }
.welcome-body .actions { margin-top: auto; padding-top: 24px; display: grid; gap: 10px; }

/* ── Caisse ──────────────────────────────────────────────────────── */
.scan-box { position: relative; margin: 10px 20px 0; border-radius: 24px; overflow: hidden; background: #1b231e; aspect-ratio: 1 / 1; }
.scan-box video { width: 100%; height: 100%; object-fit: cover; }
.scan-box .frame { position: absolute; inset: 18%; border: 3px solid rgba(251, 248, 242, .85); border-radius: 22px; box-shadow: 0 0 0 999px rgba(10, 16, 12, .35); }
.scan-box .scan-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #e8e5db; padding: 30px; font-size: 14.5px; }
.manual-form { display: flex; gap: 8px; padding: 18px 20px 0; }
.manual-form .input { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.verdict { margin: 18px 20px 0; padding: 20px; border-radius: 22px; }
.verdict.ok { background: var(--ok-soft); }
.verdict.bad { background: color-mix(in srgb, var(--danger) 14%, var(--paper)); }
.verdict h2 { font-size: 22px; margin: 6px 0; }
.verdict p { margin: 4px 0 0; color: var(--ink-2); }
.verdict .btn { margin-top: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
