/* Binly visual refresh.
   Preserves existing component class names so the JS keeps working. */
:root {
  --cream: #f7fbf6;
  --cream-card: #ffffff;
  --cream-deep: #e5f2ed;
  --binly-green: #16a34a;
  --binly-green-dark: #15803d;
  --binly-green-darker: #14532d;
  --binly-green-light: #dcfce7;
  --binly-green-leaf: #22c55e;
  --binly-blue: #0ea5e9;
  --binly-blue-sky: #bae6fd;
  --binly-coral: #fb7185;
  --binly-coral-light: #ffe4e6;
  --binly-gold: #fbbf24;
  --binly-amber: #f59e0b;
  --binly-dark: #0f172a;
  --binly-slate: #475569;
  --binly-slate-muted: #64748b;
  --binly-border: #dbe7e1;
  --binly-border-strong: #b7d7c8;
  --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.08);
  --shadow-tight: 0 2px 8px rgba(15, 23, 42, 0.06);
  --base-font: 17px;
  /* Theme surfaces — light values match the previous hardcoded hexes
     exactly, so light mode is pixel-identical to before the dark-mode
     work. Dark mode flips these under [data-theme="dark"]. */
  --app-bg: #eef6f1;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --border-soft: #e2e8f0;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #64748b;
}

/* ── Dark mode (beta) ───────────────────────────────────────────────
   Variable flip covers everything that reads the theme vars. Hardcoded
   dark-on-dark leftovers are accepted beta papercuts; report them via
   Profile → Report a bug. Camera UIs (Bin Session, AR) were already
   dark and are untouched. */
html[data-theme="dark"] {
  color-scheme: dark;
  --app-bg: #0b1120;
  --cream: #0f172a;
  --cream-card: #131e33;
  --cream-deep: #182441;
  --surface: #131e33;
  --surface-2: #182441;
  --surface-3: #1d2a4a;
  --border-soft: #263452;
  --binly-border: #263452;
  --binly-border-strong: #31436b;
  --ink: #e8eef7;
  --ink-2: #b9c5d6;
  --ink-3: #8e9cb1;
  --binly-dark: #e8eef7;
  --binly-slate: #b9c5d6;
  --binly-slate-muted: #8e9cb1;
  --binly-green-light: #11301f;
  --binly-blue-sky: #14344a;
  --binly-coral-light: #3a1722;
  --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.45);
  --shadow-tight: 0 2px 8px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
html { font-size: var(--base-font); }
body {
  background: var(--app-bg);
  min-height: 100vh;
  color: var(--binly-dark);
  line-height: 1.55;
}

/* Accessibility — text-size modes */
html[data-textsize="large"] { --base-font: 20px; }
html[data-textsize="xlarge"] { --base-font: 24px; }
html[data-textsize="large"] body, html[data-textsize="xlarge"] body { line-height: 1.65; }
html[data-textsize="large"] button, html[data-textsize="xlarge"] button { min-height: 60px; }

/* Buttons */
button, .binly-btn { min-height: 56px; }
.binly-btn {
  background: linear-gradient(135deg, var(--binly-green), #059669);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  min-height: 56px;
  transition: transform 0.1s, background 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 18px rgba(22,163,74,0.2), 0 2px 0 rgba(20,83,45,0.55);
}
.binly-btn:hover { background: linear-gradient(135deg, var(--binly-green-dark), #047857); }
.binly-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(20,83,45,0.5); }
.binly-btn-secondary {
  background: var(--surface);
  color: var(--binly-green-dark);
  border: 1px solid var(--binly-border-strong);
  box-shadow: var(--shadow-tight);
}
.binly-btn-secondary:hover { background: #f0fdf4; }

/* Phone frame */
.phone-frame {
  max-width: 440px;
  margin: 0 auto;
  background: var(--cream);
  min-height: 100vh;
  box-shadow: 0 30px 70px -28px rgba(15, 23, 42, 0.55);
  position: relative;
  overflow: hidden;
  /* Push content below the iOS Dynamic Island / status bar when running as
     an installed PWA. status-bar-style is black-translucent so we draw under
     the system UI; this inset reserves space for it. */
  padding-top: env(safe-area-inset-top);
}

/* Tablet+ — wrap the phone in a clearly-intentional mockup. The phone-
   frame stays the scrollable column (existing nav + scroll handlers keep
   working); we just put a branded backdrop behind it and bump its
   proportions so it doesn't look like a tiny mobile window on a big
   screen. */
@media (min-width: 640px) {
  body {
    padding: 0;
    background:
      radial-gradient(circle at 18% 12%, rgba(34,197,94,0.18) 0, transparent 38%),
      radial-gradient(circle at 82% 88%, rgba(14,165,233,0.14) 0, transparent 42%),
      linear-gradient(160deg, #f0fdf4 0%, #ecfdf5 60%, #dcfce7 100%);
    background-attachment: fixed;
    min-height: 100vh;
  }
  .phone-frame {
    margin: 24px auto;
    min-height: calc(100vh - 48px);
    border-radius: 44px;
    border: 12px solid #12201a;
    box-shadow:
      0 40px 80px -24px rgba(15, 23, 42, 0.42),
      0 0 0 2px rgba(255,255,255,0.6) inset;
  }
}

/* iPad portrait (768–1023) — bigger frame, more breathing room */
@media (min-width: 768px) {
  .phone-frame {
    max-width: 480px;
    border-radius: 50px;
    margin: 40px auto;
    min-height: calc(100vh - 80px);
  }
}

/* iPad landscape / small desktop — flank the phone with a branded headline.
   Body uses flex so the two halves auto-balance. Modals (position:fixed;
   inset:0) and toasts (position:fixed) ignore body's display, so this
   doesn't affect them. */
@media (min-width: 1024px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 64px;
    padding: 40px;
    min-height: 100vh;
  }
  .phone-frame {
    flex: 0 0 460px;
    margin: 0;
    max-width: 460px;
    /* Make sure modals appended to body (with position:fixed inset:0)
       still overlay the phone, not get caught in the flex flow */
  }
  body::before {
    content: "Recycle right.\A Rewards for you.";
    white-space: pre-wrap;
    flex: 0 1 420px;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    font-size: 52px;
    line-height: 1.02;
    letter-spacing: -2px;
    font-weight: 900;
    color: var(--ink);
    text-align: left;
    pointer-events: none;
  }
}

/* Wider desktop — bigger headline */
@media (min-width: 1280px) {
  body::before {
    font-size: 64px;
    flex-basis: 460px;
  }
  body { gap: 80px; }
}

/* Cards */
.card {
  background: var(--cream-card);
  border: 1px solid var(--binly-border);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow-tight);
  margin-bottom: 14px;
}
.card-tight { padding: 16px; }
.card-green {
  background: #123524;
  color: white;
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 14px 30px rgba(18, 53, 36, 0.2);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.card-green::after {
  content: "";
  position: absolute;
  inset: auto -20px -44px 55%;
  height: 110px;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.18) 0 8px, rgba(255,255,255,0) 8px 16px);
  transform: rotate(-4deg);
}
.card-green > * { position: relative; z-index: 1; }
.card-green strong, .card-green h3, .card-green h4 { color: white; }

/* Bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--cream-card);
  border-top: 1px solid var(--binly-border);
  display: flex;
  padding: 10px 0 max(14px, env(safe-area-inset-bottom));
  z-index: 100;
}
@media (min-width: 640px) {
  .bottom-nav {
    max-width: 440px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 34px;
    border: 1px solid var(--binly-border);
    border-radius: 0 0 26px 26px;
    padding: 10px 0 16px;
  }
}
.bottom-nav button {
  flex: 1;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  cursor: pointer;
  color: var(--binly-slate-muted);
  font-size: 12px;
  font-weight: 600;
  min-height: 60px;
}
.bottom-nav button.active { color: var(--binly-green-dark); font-weight: 700; }
.bottom-nav button svg { width: 24px; height: 24px; }
.bottom-nav button.active svg { color: var(--binly-green-dark); }
.bottom-nav button.active svg {
  background: var(--binly-green-light);
  border-radius: 8px;
  padding: 3px;
  width: 30px;
  height: 30px;
}

/* Section headers */
.section-eyebrow { font-size: 12px; font-weight: 800; color: var(--binly-green-dark); text-transform: uppercase; letter-spacing: 0.8px; margin: 24px 0 10px; }
.section-title { font-size: 25px; font-weight: 850; margin: 0 0 8px; line-height: 1.12; letter-spacing: 0; }
.section-sub { color: var(--binly-slate); margin: 0 0 16px; font-size: 15px; line-height: 1.5; }

/* Stats numbers */
.stat-number { font-size: 36px; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.stat-label { font-size: 12px; color: var(--binly-slate-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }

/* Badges */
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid transparent; }
.badge-green { background: var(--binly-green-light); color: var(--binly-green-darker); }
.badge-blue  { background: #dbeafe; color: #1e40af; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-red   { background: #fee2e2; color: #991b1b; }

/* Progress bars */
.progress { background: #e5eef0; border-radius: 999px; height: 10px; overflow: hidden; }
.progress-bar { background: linear-gradient(90deg, var(--binly-green), var(--binly-green-leaf)); height: 100%; border-radius: 999px; transition: width 0.5s ease; }

/* Toast — slide up from below with a slight spring */
.toast {
  position: fixed;
  bottom: 110px; left: 50%;
  background: var(--binly-dark);
  color: white;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  z-index: 200;
  opacity: 0;
  transform: translate(-50%, 40px) scale(0.9);
  transition: opacity 0.35s ease, transform 0.42s cubic-bezier(.34,1.56,.64,1);
  max-width: 320px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

.hidden { display: none !important; }

/* Council partnership strip — used on welcome */
.partner-strip {
  background: var(--surface);
  border: 1px solid var(--binly-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--binly-slate);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Hero illustration block */
.hero-illustration { width: 100%; display: block; border-radius: 8px; }

/* Item cards (Learn, scan result) */
.item-card { background: var(--cream-card); border: 1px solid var(--binly-border); border-radius: 8px; padding: 14px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-tight); }
.item-card .icon { width: 48px; height: 48px; border-radius: 8px; background: var(--binly-green-light); display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; overflow: hidden; }
.item-card .meta { flex: 1; min-width: 0; }
.item-card .meta strong { display: block; font-weight: 700; font-size: 15px; }
.item-card .meta small { display: block; font-size: 12px; color: var(--binly-slate-muted); margin-top: 2px; }
.item-card .action { flex-shrink: 0; }

/* Reward cards */
.reward-card { background: var(--cream-card); border: 1px solid var(--binly-border); border-radius: 8px; padding: 16px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-tight); margin-bottom: 10px; cursor: pointer; }
.reward-card img { width: 56px; height: 56px; flex-shrink: 0; }
.reward-card .meta { flex: 1; }
.reward-card .meta strong { display: block; font-size: 15px; font-weight: 700; }
.reward-card .meta small { display: block; font-size: 12px; color: var(--binly-slate-muted); margin-top: 2px; }
.reward-card .price { font-weight: 700; color: var(--binly-green-dark); font-size: 14px; flex-shrink: 0; padding: 6px 12px; background: var(--binly-green-light); border-radius: 999px; white-space: nowrap; }
.reward-card.locked { opacity: 0.55; }
.reward-card.locked .price { background: var(--border-soft); color: var(--binly-slate-muted); }

/* Tabs (for Rewards) */
.tab-row { display: flex; gap: 8px; background: var(--cream-deep); padding: 4px; border-radius: 8px; margin-bottom: 14px; }
.tab-row button { flex: 1; min-height: 40px; background: none; border: none; padding: 8px; font-weight: 700; font-size: 13px; color: var(--binly-slate-muted); cursor: pointer; border-radius: 6px; }
.tab-row button.active { background: var(--surface); color: var(--binly-green-dark); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

/* Search input */
.search-input { width: 100%; padding: 14px 18px; border: 1px solid var(--binly-border); background: var(--cream-card); border-radius: 8px; font-size: 16px; box-shadow: var(--shadow-tight); }
.search-input:focus { outline: 2px solid var(--binly-green); }

/* Chip row */
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin: 12px 0; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { background: var(--cream-card); border: 1px solid var(--binly-border); padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--binly-slate); white-space: nowrap; cursor: pointer; flex-shrink: 0; }
.chip.active { background: var(--binly-green); color: white; border-color: var(--binly-green); }

/* Profile menu rows */
.menu-row { background: var(--cream-card); border: 1px solid var(--binly-border); border-radius: 8px; padding: 14px 18px; display: flex; align-items: center; gap: 14px; margin-bottom: 8px; cursor: pointer; min-height: 56px; box-shadow: var(--shadow-tight); }
.menu-row .menu-icon { width: 34px; height: 34px; border-radius: 8px; background: #eef7f2; color: var(--binly-green-dark); display: inline-flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.menu-row .menu-icon svg { width: 18px; height: 18px; stroke: currentColor; }
.menu-row .menu-label { flex: 1; font-weight: 600; font-size: 15px; }
.menu-row .menu-chev { color: var(--binly-slate-muted); font-size: 18px; }

/* Big collection-day card */
.collection-day-card {
  background: linear-gradient(135deg, #123524, #14532d);
  color: white;
  border-radius: 8px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  box-shadow: 0 14px 30px rgba(18, 53, 36, 0.2);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.collection-day-card::before {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -24px;
  width: 205px;
  height: 138px;
  background: url("../assets/illustration-collections.svg") right bottom / contain no-repeat;
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}
.collection-day-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.collection-day-card > * { position: relative; z-index: 1; }
.collection-day-card .collection-copy {
  flex: 1;
  max-width: min(68%, 270px);
}
.collection-day-card .label { font-size: 13px; opacity: 0.9; font-weight: 600; letter-spacing: 0.5px; }
.collection-day-card .day { font-size: 28px; font-weight: 800; line-height: 1.1; }
.collection-day-card .next { font-size: 14px; opacity: 0.95; margin-top: 4px; }
.collection-day-card img.bin-art { width: 78px; height: 86px; object-fit: contain; flex-shrink: 0; position: relative; z-index: 1; }

/* ──────────────────────────────────────────────────────────────────
   Mode switch (Adult ↔ Kids) - always visible in app header
   ────────────────────────────────────────────────────────────────── */
.mode-switch {
  display: flex;
  padding: 10px 16px 12px;
  background: linear-gradient(180deg, #ffffff, var(--surface-2));
  border-bottom: 1px solid var(--border-soft);
  justify-content: center;
}
.mode-toggle {
  position: relative;
  display: inline-flex;
  background: var(--surface-3);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 4px;
  cursor: pointer;
  user-select: none;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}
.mode-toggle::before {
  content: '';
  position: absolute;
  top: 4px; left: 4px;
  height: calc(100% - 8px);
  width: calc(50% - 4px);
  background: var(--binly-green, #16a34a);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(22,163,74,0.35);
  transition: transform 0.32s cubic-bezier(.4,1.4,.5,1), background 0.25s, box-shadow 0.25s;
  z-index: 0;
}
.mode-toggle[data-state="kids"]::before {
  transform: translateX(100%);
  background: linear-gradient(135deg, #f472b6, #ec4899);
  box-shadow: 0 2px 10px rgba(236,72,153,0.40);
}
.mode-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--binly-slate-muted, #64748b);
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.24s ease;
  min-width: 100px;
}
.mode-pill .mode-icon { width: 18px; height: 18px; display: inline-block; transition: transform 0.32s cubic-bezier(.4,1.4,.5,1); }
.mode-pill .mode-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; }
.mode-toggle[data-state="adult"] .mode-pill[data-val="adult"],
.mode-toggle[data-state="kids"]  .mode-pill[data-val="kids"]  { color: white; }
.mode-toggle[data-state="adult"] .mode-pill[data-val="adult"] .mode-icon,
.mode-toggle[data-state="kids"]  .mode-pill[data-val="kids"]  .mode-icon { transform: scale(1.2); }
html[data-kids="1"] .mode-switch {
  background: linear-gradient(180deg, #fef3c7, #fde68a);
  border-bottom-color: #fbbf24;
}
html[data-kids="1"] .mode-toggle {
  background: rgba(255,255,255,0.6);
  border-color: rgba(219,39,119,0.25);
}
html[data-kids="1"] .mode-pill { font-size: 14px; padding: 10px 20px; }

/* ──────────────────────────────────────────────────────────────────
   Kids mode - strong overlay (palette, scale, shape, copy emphasis)
   ────────────────────────────────────────────────────────────────── */
html[data-kids="1"] body {
  background: linear-gradient(180deg, #fef8e4 0%, #fce7f3 100%);
  font-size: 17px;
}
html[data-kids="1"] .binly-btn {
  border-radius: 999px;
  font-size: 17px;
  font-weight: 800;
  padding: 16px 20px;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 0 #0f5132, 0 6px 14px rgba(22,163,74,0.25);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
html[data-kids="1"] .binly-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #0f5132, 0 3px 6px rgba(22,163,74,0.2); }
html[data-kids="1"] .card { border-radius: 18px; border-width: 2px; }

/* Bigger hero in kids mode */
html[data-kids="1"] .hero-action {
  border-radius: 22px;
  border-width: 3px;
  padding: 22px 22px 24px;
}
html[data-kids="1"] .hero-action .title { font-size: 28px; line-height: 1.18; }
html[data-kids="1"] .hero-action .label { font-size: 13px; letter-spacing: 0.6px; text-transform: uppercase; color: #db2777; font-weight: 800; }
html[data-kids="1"] .hero-action .sub { font-size: 15px; }
html[data-kids="1"] .badge-pts {
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  color: #78350f;
  font-weight: 800;
  font-size: 14px;
  padding: 7px 14px;
  border-radius: 999px;
}

/* Bigger quick cards */
html[data-kids="1"] .quick-card { border-radius: 18px; padding: 18px 16px 16px; min-height: 132px; }
html[data-kids="1"] .quick-card .icon-tile { width: 56px; height: 56px; border-radius: 16px; }
html[data-kids="1"] .quick-card .icon-tile img { width: 42px; height: 42px; }
html[data-kids="1"] .quick-card .label { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
html[data-kids="1"] .quick-card .value { font-size: 24px; font-weight: 900; }

/* Friendlier top bar */
html[data-kids="1"] .v2-greet { font-size: 20px; }
html[data-kids="1"] .v2-greet strong { font-size: 22px; }

/* Bottom nav scales up + livelier active accent */
html[data-kids="1"] .bottom-nav { padding-top: 6px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
html[data-kids="1"] .bottom-nav button { font-size: 13px; font-weight: 800; padding: 8px 4px; }
html[data-kids="1"] .bottom-nav button svg { width: 26px; height: 26px; }
html[data-kids="1"] .bottom-nav button.active { color: #db2777; }
html[data-kids="1"] .bottom-nav button.active::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f472b6, #ec4899);
}
html[data-kids="1"] .bottom-nav button { position: relative; }

/* Mission card pops more in kids mode */
html[data-kids="1"] .mission-card { border-radius: 20px; border-width: 3px; }
html[data-kids="1"] .mission-card .title { font-size: 19px; }

/* Streak chip louder in kids mode */
html[data-kids="1"] .streak-chip {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #78350f;
  font-weight: 800;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 999px;
}

/* ──────────────────────────────────────────────────────────────────
   Mascot reaction overlay (kids mode, fires on scan result)
   ────────────────────────────────────────────────────────────────── */
.mascot-pop {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: mascot-pop-bg 1.6s ease forwards;
}
@keyframes mascot-pop-bg {
  0%   { background: rgba(15,23,42,0); }
  20%  { background: rgba(15,23,42,0.18); }
  80%  { background: rgba(15,23,42,0.18); }
  100% { background: rgba(15,23,42,0); }
}
.mascot-pop-card {
  background: var(--surface);
  border: 4px solid var(--binly-green);
  border-radius: 28px;
  padding: 24px 28px 28px;
  box-shadow: 0 20px 40px rgba(15,23,42,0.25);
  text-align: center;
  max-width: 280px;
  transform: translateY(20px) scale(0.92);
  opacity: 0;
  animation: mascot-pop-in 0.45s cubic-bezier(0.18, 1.25, 0.55, 1) forwards, mascot-pop-out 0.4s ease 1.6s forwards;
}
.mascot-pop.cheer .mascot-pop-card { border-color: #f59e0b; box-shadow: 0 20px 40px rgba(245,158,11,0.4); }
.mascot-pop.huh   .mascot-pop-card { border-color: #f97316; box-shadow: 0 20px 40px rgba(249,115,22,0.3); }
@keyframes mascot-pop-in {
  to { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes mascot-pop-out {
  0%   { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-12px) scale(0.92); opacity: 0; }
}
.mascot-pop-card img {
  width: 120px;
  height: 150px;
  display: block;
  margin: 0 auto 8px;
  animation: mascot-pop-bounce 0.5s ease-out;
}
@keyframes mascot-pop-bounce {
  0%   { transform: translateY(-20px) rotate(-8deg); }
  60%  { transform: translateY(2px)   rotate(4deg);  }
  100% { transform: translateY(0)     rotate(0);     }
}
.mascot-pop-cheer { font-size: 22px; font-weight: 900; color: var(--ink); line-height: 1.15; margin: 0; }
.mascot-pop-sub   { font-size: 15px; font-weight: 700; color: var(--ink-2); margin: 6px 0 0; }
.mascot-pop-pts {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  color: #78350f;
  font-size: 16px;
  font-weight: 900;
  border-radius: 999px;
}

/* Kids mode - scan screen */
html[data-kids="1"] .scan-mode-btn { padding: 12px 6px; }
html[data-kids="1"] .scan-mode-btn strong { font-size: 15px; }
html[data-kids="1"] .scan-mode-btn small { font-size: 11px; }
html[data-kids="1"] .scan-mode-btn .sm-icon { width: 42px; height: 42px; border-radius: 14px; }
html[data-kids="1"] .scan-mode-btn .sm-icon svg { width: 26px; height: 26px; }
html[data-kids="1"] .scanner-live { border-width: 3px; border-radius: 20px; }
html[data-kids="1"] .scanner-target {
  border-width: 5px;
  border-color: #f472b6;
  border-radius: 18px;
}
html[data-kids="1"] .scanner-status {
  font-size: 14px;
  font-weight: 700;
}
html[data-kids="1"] #scan-btn,
html[data-kids="1"] #ar-btn,
html[data-kids="1"] #voice-btn {
  font-size: 19px !important;
  padding: 20px 22px !important;
  min-height: 64px;
}
html[data-kids="1"] .voice-big-btn {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f472b6, #ec4899);
}
html[data-kids="1"] .voice-big-btn svg { width: 56px; height: 56px; }
html[data-kids="1"] .scan-mode-pane .quick-btn {
  border-radius: 18px;
  border-width: 3px;
  padding: 14px 8px;
  font-size: 14px;
  font-weight: 700;
}
html[data-kids="1"] .scan-mode-pane .quick-btn .quick-art {
  width: 56px;
  height: 56px;
}
html[data-kids="1"] .scanner-intro img {
  width: 72px;
  height: 88px;
  animation: mascot-bounce 2s ease-in-out infinite;
}

/* Kids mode - Stickers tab (rewards) */
html[data-kids="1"] .hero-action.kids-balance {
  background: linear-gradient(135deg, #ec4899 0%, #f472b6 60%, #fbbf24 100%);
  box-shadow: 0 18px 36px -10px rgba(236,72,153,0.45);
  border-radius: 26px;
  border-width: 3px;
}
html[data-kids="1"] .hero-action.kids-balance .title { font-size: 44px !important; line-height: 1.05; }
html[data-kids="1"] .hero-action.kids-balance .label { color: white; }
html[data-kids="1"] .hero-action.kids-balance .sub { color: rgba(255,255,255,0.92); font-weight: 700; }
html[data-kids="1"] .v2-reward-card {
  border-radius: 20px;
  border-width: 3px;
  padding: 16px 14px;
  gap: 14px;
  margin-bottom: 10px;
}
html[data-kids="1"] .v2-reward-card .rc-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}
html[data-kids="1"] .v2-reward-card .rc-icon img { width: 46px; height: 46px; }
html[data-kids="1"] .v2-reward-card .rc-body strong { font-size: 16px; }
html[data-kids="1"] .v2-reward-card .rc-body small { font-size: 13px; }
html[data-kids="1"] .v2-reward-card .price-num { font-size: 20px; color: #db2777; }
html[data-kids="1"] .v2-reward-card .price-word { font-size: 11px; }
html[data-kids="1"] .v2-reward-card .rc-chev {
  font-size: 12px;
  font-weight: 900;
  color: white;
  background: var(--binly-green);
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
html[data-kids="1"] .v2-reward-card .rc-locked {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 800;
}
html[data-kids="1"] .v2-reward-card.close {
  border-color: #f59e0b;
  background: linear-gradient(180deg, #fffbeb, #ffffff);
  opacity: 1;
}
.v2-reward-card .rc-close-cta {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 800;
  color: #92400e;
  background: #fde68a;
  border-radius: 999px;
}

/* Mascot bubble (kids mode home greeting) */
.mascot-bubble {
  background: #ffffff;
  border: 3px solid var(--binly-green);
  border-radius: 20px;
  padding: 14px 18px 14px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  box-shadow: 0 4px 0 rgba(22,163,74,0.25);
}
.mascot-bubble::before {
  content: "";
  position: absolute;
  left: 72px;
  bottom: -10px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-right: 3px solid var(--binly-green);
  border-bottom: 3px solid var(--binly-green);
  transform: rotate(45deg);
}
.mascot-bubble img {
  width: 72px;
  height: 88px;
  flex-shrink: 0;
  transform-origin: 50% 90%;
  animation: mascot-bounce 2s ease-in-out infinite;
}
.mascot-bubble .speech {
  font-size: 16px;
  font-weight: 700;
  color: var(--binly-dark);
  line-height: 1.35;
}
@keyframes mascot-bounce {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-4px) rotate(2deg); }
}

/* Confetti */
.confetti-container { position: fixed; inset: 0; pointer-events: none; z-index: 200; overflow: hidden; }
.confetti-piece { position: absolute; top: -20px; animation: confetti-fall 1.8s ease-out forwards; }
@keyframes confetti-fall { 0% { transform: translateY(0) rotate(0deg); opacity: 1; } 100% { transform: translateY(120vh) rotate(720deg); opacity: 0; } }

/* Admin */
.admin-layout { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--cream-card); border-radius: 8px; padding: 20px; box-shadow: var(--shadow-tight); }
.stat-card h3 { margin: 0 0 8px; font-size: 13px; color: var(--binly-slate-muted); font-weight: 600; }
.stat-card .value { font-size: 32px; font-weight: 800; color: var(--binly-dark); }
.stat-card .delta { font-size: 13px; margin-top: 4px; }
.stat-card .delta.up { color: var(--binly-green); }
.stat-card .delta.down { color: #ef4444; }
.ward-list { background: var(--cream-card); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-tight); }
.ward-row { display: flex; align-items: center; padding: 14px 20px; border-bottom: 1px solid #f1ead0; gap: 16px; }
.ward-row:last-child { border-bottom: none; }
.ward-row .ward-name { flex: 1; font-weight: 600; }
.ward-row .ward-bar { flex: 2; }
.ward-row .ward-rate { font-weight: 700; min-width: 60px; text-align: right; }

/* Visual refresh components */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-lockup img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(22, 163, 74, 0.2);
}
.brand-lockup span {
  font-size: 22px;
  font-weight: 850;
}
.welcome-hero {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 26px;
  flex: 1;
}
.welcome-hero h1 {
  font-size: 37px;
  line-height: 1.08;
  margin: 0;
  letter-spacing: 0;
  font-weight: 850;
}
.welcome-hero p {
  color: var(--binly-slate);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}
.welcome-visual {
  background: #e8f7ff;
  border: 1px solid #bee8f8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.welcome-visual img {
  width: 100%;
  height: auto;
  display: block;
}
.visual-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.visual-chip {
  min-height: 74px;
  background: var(--surface);
  border: 1px solid var(--binly-border);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  box-shadow: var(--shadow-tight);
}
.visual-chip img {
  width: 28px;
  height: 28px;
  display: block;
  margin: 0 auto 4px;
}
.visual-chip strong {
  display: block;
  font-size: 11px;
  line-height: 1.2;
}
.visual-chip small {
  display: block;
  color: var(--binly-slate-muted);
  font-size: 10px;
  margin-top: 2px;
}
.icon-button {
  width: 48px;
  height: 48px;
  min-height: 48px;
  border-radius: 10px;
  border: 1px solid var(--binly-border);
  background: var(--surface);
  color: var(--binly-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-tight);
  position: relative;
}
.icon-button svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}
.icon-button .dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid white;
}
.impact-hero {
  background: var(--surface);
  border: 1px solid var(--binly-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin-bottom: 14px;
  min-height: 430px;
  padding-bottom: 150px;
  position: relative;
}
.impact-hero::before,
.journey-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 225px;
  background: url("../assets/illustration-hills.svg") center bottom / cover no-repeat;
  z-index: 0;
}
.impact-hero::after,
.journey-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.96) 44%, rgba(255,255,255,0.58) 64%, rgba(255,255,255,0) 100%);
  z-index: 0;
  pointer-events: none;
}
.impact-hero > *,
.journey-card > * {
  position: relative;
  z-index: 1;
}
.impact-hero-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px 8px;
}
.impact-hero-head img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  flex-shrink: 0;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 18px 0;
}
.metric-card {
  background: rgba(246, 251, 248, 0.88);
  border: 1px solid var(--binly-border);
  border-radius: 8px;
  padding: 10px 8px;
  min-height: 86px;
  backdrop-filter: blur(8px);
}
.metric-card .metric-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: var(--binly-green-dark);
  background: var(--binly-green-light);
}
.metric-card .metric-icon svg {
  width: 17px;
  height: 17px;
}
.metric-card:nth-child(2) .metric-icon { background: #e0f2fe; color: #0369a1; }
.metric-card:nth-child(3) .metric-icon { background: #fef3c7; color: #92400e; }
.metric-card strong {
  display: block;
  font-size: 20px;
  line-height: 1;
}
.metric-card small {
  color: var(--binly-slate-muted);
  display: block;
  font-size: 11px;
  line-height: 1.2;
  margin-top: 4px;
}
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.action-card {
  background: var(--surface);
  border: 1px solid var(--binly-border);
  border-radius: 8px;
  min-height: 126px;
  padding: 14px;
  box-shadow: var(--shadow-tight);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.action-card img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.action-card:nth-child(2) { background: #f7fbff; }
.action-card:nth-child(3) { background: #fffaf0; }
.action-card:nth-child(4) { background: #fff5f6; }
.action-card strong {
  font-size: 14px;
  display: block;
  margin-top: 8px;
}
.action-card small {
  color: var(--binly-slate-muted);
  font-size: 12px;
  line-height: 1.3;
}
.history-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #eef7f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.scanner-intro {
  display: grid;
  grid-template-columns: 1fr 88px;
  gap: 14px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--binly-border);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow-tight);
  margin-bottom: 14px;
}
.scanner-intro img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 8px;
}
.info-callout {
  background: #eff8ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--binly-blue);
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  color: #075985;
}
.quick-btn .quick-art,
.bin-choice-art {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.bin-recommendation {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 5px 10px 5px 7px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: var(--surface);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.bin-recommendation img {
  width: 24px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}
.item-card .bin-recommendation {
  min-height: 34px;
  padding: 4px 9px 4px 6px;
  font-size: 12px;
}
.item-card .bin-recommendation img {
  width: 21px;
  height: 25px;
}
.material-card {
  border: 1px solid var(--binly-border);
  border-radius: 8px;
  padding: 16px;
  margin-top: 14px;
  background: #fbfefd;
}
.material-medallion {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: var(--binly-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.bin-button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}
.bin-choice {
  padding: 12px 8px;
  border: 1px solid var(--binly-border);
  background: var(--surface);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.bin-choice.recommended {
  border-color: var(--binly-green);
  background: #f0fdf4;
}
.bin-choice small {
  font-size: 10px;
  color: var(--binly-green-dark);
  font-weight: 700;
}
.reward-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 12px;
  align-items: center;
  padding-right: 18px;
}
.reward-hero img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  justify-self: center;
}
.profile-hero {
  background: var(--surface);
  border: 1px solid var(--binly-border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-tight);
  display: flex;
  align-items: center;
  gap: 14px;
}
.profile-avatar {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: #123524;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
  font-size: 18px;
  flex-shrink: 0;
}
.journey-card {
  overflow: hidden;
  margin-top: 14px;
  min-height: 350px;
  padding: 0;
  position: relative;
}
.journey-card-content {
  padding: 18px 20px 160px;
}

/* ─────────────────────────────────────────────────────────────────
   v2 Uber-style card system
   Sticky header, large hero CTA, big tappable cards with chevrons.
   ───────────────────────────────────────────────────────────────── */

.v2-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px 6px;
}
.v2-topbar .v2-greet { font-size: 13px; color: var(--binly-slate-muted); font-weight: 600; }
.v2-topbar .v2-greet strong { color: var(--binly-dark); font-size: 15px; display: block; font-weight: 800; }
.v2-topbar-actions { display: flex; align-items: center; gap: 8px; }
.streak-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, #fb923c, #f59e0b);
  color: white;
  padding: 6px 11px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(245,158,11,0.3);
  position: relative;
}
.streak-chip.dim {
  background: var(--border-soft);
  color: var(--binly-slate);
  box-shadow: none;
}
.bell-btn {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--binly-border);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  position: relative;
  min-height: 38px;
  /* Kill iOS Safari's grey tap-flash on touch */
  -webkit-tap-highlight-color: transparent;
  /* Disable the iOS press-and-hold callout (select / copy bubble) */
  -webkit-touch-callout: none;
  /* Snappy press-down feedback instead */
  transition: transform 120ms cubic-bezier(.2,.7,.3,1), background 180ms ease;
}
.bell-btn:active { transform: scale(0.92); background: var(--binly-cream); }
.bell-btn .dot { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; background: var(--binly-coral); border-radius: 50%; border: 2px solid white; }

.hero-action {
  margin-top: 12px;
  background: linear-gradient(135deg, var(--binly-green-darker) 0%, var(--binly-green-dark) 60%, var(--binly-green) 100%);
  color: white;
  border-radius: 22px;
  padding: 22px 22px 24px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.1s;
  box-shadow: 0 18px 36px -10px rgba(20,83,45,0.45);
}
.hero-action:active { transform: scale(0.985); }
.hero-action::after {
  content: ""; position: absolute; right: -40px; bottom: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.18), rgba(255,255,255,0));
  z-index: 0;
}
.hero-action > * { position: relative; z-index: 1; }
.hero-action .label { font-size: 12px; opacity: 0.85; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; }
.hero-action .title { font-size: 26px; font-weight: 850; line-height: 1.1; margin-top: 6px; }
.hero-action .sub { font-size: 13px; opacity: 0.92; margin-top: 6px; }
.hero-action .row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px;
}
.hero-action .badge-pts {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800; font-size: 14px;
}
.hero-action .arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--binly-green-dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.graphic-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  line-height: 1;
  flex-shrink: 0;
}
.graphic-icon svg {
  width: 1em;
  height: 1em;
  stroke: currentColor;
}
.streak-icon {
  font-size: 16px;
}
.title-graphic {
  font-size: 25px;
  margin-right: 8px;
  vertical-align: -5px;
}
.heading-graphic {
  font-size: 22px;
  color: var(--binly-green-dark);
}
.modal-heading-icon,
.inline-heading-icon {
  display: flex;
  align-items: center;
  gap: 9px;
}
.rank-graphic {
  font-size: 20px;
}
.hero-action.graphic-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 12px;
  align-items: center;
  padding: 20px 20px 22px;
}
.hero-action.graphic-hero::after {
  right: -54px;
  bottom: -62px;
  width: 230px;
  height: 230px;
}
.hero-action.graphic-hero .hero-copy { min-width: 0; }
.hero-action.graphic-hero .row {
  grid-column: 1 / -1;
  margin-top: 4px;
}
.home-hero-graphic {
  position: relative;
  height: 126px;
  min-width: 0;
}
.home-hero-graphic::before,
.home-hero-graphic::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.home-hero-graphic::before {
  right: -18px;
  bottom: 1px;
  width: 158px;
  height: 76px;
  background: linear-gradient(180deg, rgba(134,239,172,0.46), rgba(22,163,74,0.3));
  clip-path: polygon(0 74%, 22% 43%, 48% 58%, 70% 28%, 100% 50%, 100% 100%, 0 100%);
}
.home-hero-graphic::after {
  right: -10px;
  bottom: 0;
  width: 138px;
  height: 34px;
  background: linear-gradient(90deg, rgba(187,247,208,0.34), rgba(240,253,244,0.16));
  border-radius: 999px 999px 0 0;
}
.home-hero-graphic img {
  position: absolute;
  display: block;
  pointer-events: none;
}
.home-hero-graphic .hero-bin {
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,0.18));
}
.home-hero-graphic .hero-bin-main {
  width: 66px;
  height: 82px;
  right: 34px;
  bottom: 2px;
}
.home-hero-graphic .hero-bin-side {
  width: 48px;
  height: 60px;
  right: -2px;
  bottom: 4px;
}
.home-hero-graphic .hero-item {
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.18));
  animation: float-soft 3.6s ease-in-out infinite;
}
.home-hero-graphic .hero-item-bottle {
  width: 38px;
  height: 54px;
  right: 76px;
  top: 8px;
  transform: rotate(-11deg);
}
.home-hero-graphic .hero-item-can {
  width: 36px;
  height: 42px;
  right: 22px;
  top: 0;
  animation-delay: 0.45s;
}
.home-hero-graphic .hero-item-paper {
  width: 32px;
  height: 38px;
  right: 94px;
  top: 58px;
  animation-delay: 0.9s;
}
@keyframes float-soft {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}

/* 2x2 quick card grid - large tappable tiles (home screen v2) */
.home-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.quick-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 14px;
  border: 1px solid var(--binly-border);
  cursor: pointer;
  position: relative;
  transition: transform 0.1s, box-shadow 0.15s;
  display: flex; flex-direction: column;
  min-height: 110px;
}
.quick-card:active { transform: scale(0.97); }
.quick-card:hover { box-shadow: var(--shadow-soft); }
.quick-card .icon-tile {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 8px;
  overflow: hidden;
}
.quick-card .icon-tile img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.quick-card.tone-sky .icon-tile img {
  width: 42px;
  height: 30px;
}
.quick-card.tone-mint .icon-tile { background: #dcfce7; color: #15803d; }
.quick-card.tone-sky .icon-tile  { background: #e0f2fe; color: #0369a1; }
.quick-card.tone-amber .icon-tile{ background: #fef3c7; color: #92400e; }
.quick-card.tone-coral .icon-tile{ background: #ffe4e6; color: #be123c; }
.quick-card.tone-violet .icon-tile{ background: #ede9fe; color: #6d28d9; }
.quick-card .label { font-size: 11px; color: var(--binly-slate-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.quick-card .value { font-size: 20px; font-weight: 800; line-height: 1.15; margin-top: 2px; }
.quick-card .sub { font-size: 12px; color: var(--binly-slate); margin-top: 2px; }
.quick-card .chev { position: absolute; top: 14px; right: 14px; color: var(--binly-slate-muted); font-size: 18px; }

/* Mission card - full-width with progress */
.mission-card {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 18px;
  padding: 16px 18px;
  margin-top: 12px;
  border: 1px solid #fcd34d;
  cursor: pointer;
  position: relative;
}
.mission-card.claimed {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  border-color: #86efac;
}
.mission-card .head {
  display: flex; align-items: center; gap: 12px;
}
.mission-card .mission-art {
  width: 54px;
  height: 54px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(146,64,14,0.14);
}
.mission-card.claimed .mission-art {
  box-shadow: 0 8px 18px rgba(22,163,74,0.14);
}
.mission-card .mission-art img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.mission-modal-art {
  width: 84px;
  height: 84px;
  margin: 0 auto;
  border-radius: 24px;
  background: linear-gradient(135deg, #f0fdf4, #e0f2fe);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--binly-border);
}
.mission-modal-art img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.mission-card .copy { flex: 1; min-width: 0; }
.mission-card .copy .label { font-size: 11px; font-weight: 800; color: #92400e; text-transform: uppercase; letter-spacing: 0.8px; }
.mission-card.claimed .copy .label { color: #15803d; }
.mission-card .copy .title { font-size: 15px; font-weight: 800; color: var(--binly-dark); line-height: 1.25; margin-top: 2px; }
.mission-card .copy .bonus { font-size: 12px; color: var(--binly-slate); margin-top: 2px; }
.mission-card .prog-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; gap: 12px;
}
.mission-card .prog-bar {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 999px;
  overflow: hidden;
}
.mission-card .prog-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--binly-green), var(--binly-green-leaf));
  transition: width 0.4s;
}
.mission-card .prog-text { font-size: 13px; font-weight: 800; color: var(--binly-dark); white-space: nowrap; }
.mission-card .claim-btn {
  background: var(--binly-green-dark);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  min-height: 40px;
}

/* Bin-truck tracker card */
.tracker-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  border-radius: 20px;
  padding: 16px 18px;
  margin-top: 12px;
  position: relative;
  overflow: hidden;
}
.tracker-card .label { font-size: 11px; color: #94a3b8; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.tracker-card .title { font-size: 18px; font-weight: 800; margin-top: 4px; }
.tracker-card .sub { font-size: 13px; color: #cbd5e1; margin-top: 4px; }
.tracker-card .route-vis {
  position: relative;
  height: 6px;
  margin-top: 14px;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
}
.tracker-card .route-progress {
  position: absolute; top: 0; left: 0; height: 100%;
  background: linear-gradient(90deg, var(--binly-green-leaf), var(--binly-green));
  border-radius: 999px;
}
.tracker-card .route-marker {
  position: absolute; top: 50%;
  width: 18px; height: 18px;
  background: var(--surface);
  border: 3px solid var(--binly-green);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 6px rgba(255,255,255,0.15);
}
.tracker-card .truck-marker {
  position: absolute; top: 50%;
  transform: translate(-50%, -55%);
  font-size: 20px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--binly-green-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
  transition: left 0.6s;
}
.tracker-card .legend {
  display: flex; justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 8px;
}

/* Weekly recap card */
.recap-card {
  background: var(--surface);
  border: 1px solid var(--binly-border);
  border-radius: 18px;
  padding: 16px 18px;
  margin-top: 12px;
  cursor: pointer;
}
.recap-card .head { display: flex; align-items: center; gap: 12px; }
.recap-card .icon-tile {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, #ddd6fe, #c4b5fd);
  color: #5b21b6;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.recap-card .icon-tile svg { width: 22px; height: 22px; }
.recap-card .label { font-size: 11px; font-weight: 800; color: var(--binly-slate-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.recap-card .title { font-size: 16px; font-weight: 800; margin-top: 1px; }
.recap-card .stats { display: flex; gap: 18px; margin-top: 12px; }
.recap-card .stat { flex: 1; }
.recap-card .stat-value { font-size: 22px; font-weight: 800; }
.recap-card .stat-label { font-size: 11px; color: var(--binly-slate-muted); font-weight: 600; }
.recap-card .delta-up { color: var(--binly-green-dark); }
.recap-card .delta-down { color: var(--binly-coral); }

/* Recent activity strip */
.activity-strip {
  margin-top: 18px;
}
.activity-strip .head {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px;
}
.activity-strip .head h3 { font-size: 12px; color: var(--binly-slate-muted); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 800; margin: 0; }
.activity-strip .head a { font-size: 12px; color: var(--binly-green-dark); font-weight: 700; text-decoration: none; }
.activity-row {
  background: var(--surface);
  border: 1px solid var(--binly-border);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.activity-row:hover { background: var(--cream); }
.activity-row .ar-icon {
  width: 36px; height: 36px;
  background: var(--cream);
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.activity-row .ar-icon img { width: 26px; height: 32px; object-fit: contain; }
.activity-row .ar-main { flex: 1; min-width: 0; }
.activity-row .ar-name { font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-row .ar-meta { font-size: 11px; color: var(--binly-slate-muted); margin-top: 2px; }
.activity-row .ar-pts { font-weight: 800; font-size: 13px; color: var(--binly-green-dark); flex-shrink: 0; }

/* Voice mic button - sits over the scan tab */
.voice-fab {
  position: absolute;
  right: 18px;
  bottom: 100px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--binly-blue), #0284c7);
  color: white;
  border: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(14,165,233,0.4);
  z-index: 50;
  min-height: 56px;
}
.voice-fab.listening {
  background: linear-gradient(135deg, var(--binly-coral), #dc2626);
  animation: voice-pulse 1.2s infinite;
}
@keyframes voice-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251,113,133,0.55); }
  50% { box-shadow: 0 0 0 14px rgba(251,113,133,0); }
}

/* Scan-tab QUICK_ITEMS multi-col grid (distinct from .home-quick-grid 2x2) */
.scan-mode-pane .quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.scan-mode-pane .quick-btn {
  background: var(--surface);
  border: 1px solid var(--binly-border);
  border-radius: 12px;
  padding: 12px 6px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--binly-dark);
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-height: 76px;
  transition: transform 0.1s, box-shadow 0.15s;
}
.scan-mode-pane .quick-btn:hover { box-shadow: var(--shadow-tight); }
.scan-mode-pane .quick-btn:active { transform: scale(0.96); }

/* Scan mode switcher */
.scan-modes {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 14px 0 12px;
}
.scan-mode-btn {
  background: var(--surface);
  border: 1px solid var(--binly-border);
  border-radius: 14px;
  padding: 10px 8px;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: transform 0.1s, border-color 0.15s, background 0.15s;
  min-height: 80px;
}
.scan-mode-btn .sm-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--cream);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--binly-green-dark);
}
.scan-mode-btn .sm-icon svg { width: 22px; height: 22px; }
.scan-mode-btn strong { font-size: 13px; font-weight: 800; }
.scan-mode-btn small { font-size: 10px; color: var(--binly-slate-muted); font-weight: 600; }
.scan-mode-btn.active {
  border-color: var(--binly-green);
  background: var(--binly-green-light);
}
.scan-mode-btn.active .sm-icon { background: var(--binly-green); color: white; }

/* Voice scan stage */
.voice-stage {
  background: var(--surface);
  border: 1px solid var(--binly-border);
  border-radius: 18px;
  padding: 28px 18px 22px;
  text-align: center;
  margin-top: 4px;
}
.voice-big-btn {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--binly-blue), #0284c7);
  color: white;
  border: none;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(14,165,233,0.35);
  min-height: 110px;
  transition: transform 0.1s;
}
.voice-big-btn:active { transform: scale(0.94); }
.voice-big-btn svg { width: 44px; height: 44px; }
.voice-big-btn.listening {
  background: linear-gradient(135deg, var(--binly-coral), #dc2626);
  animation: voice-pulse 1.2s infinite;
}
.voice-status { margin-top: 16px; font-size: 14px; color: var(--binly-slate); font-weight: 600; }
.voice-transcript {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--binly-dark);
  min-height: 24px;
}

/* AR stage */
.ar-stage {
  position: relative;
  background: #0f172a;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/3;
  margin-top: 4px;
}
.ar-stage video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ar-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.ar-hud {
  position: absolute; inset: 0;
  pointer-events: none;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}
/* Reticle removed - real bounding boxes from the model take over */
.ar-hud-tag {
  align-self: flex-start;
  background: rgba(15,23,42,0.85);
  color: white;
  padding: 8px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  max-width: 80%;
  backdrop-filter: blur(6px);
  /* Parent .ar-hud has pointer-events:none so taps pass through to the
     camera. Override here so the HUD pill itself stays tappable when it
     shows a 'tap to log' state. */
  pointer-events: auto;
  cursor: pointer;
  /* Spring on tap so it feels like a real button */
  transition: transform 140ms cubic-bezier(.2,.7,.3,1);
}
.ar-hud-tag:active { transform: scale(0.96); }

/* v2 page header (Rewards / Profile / Collections / Learn) */
.v2-page-head { margin: 14px 0 12px; }
.v2-page-head h2 { font-size: 26px; font-weight: 850; margin: 0 0 4px; line-height: 1.1; letter-spacing: -0.3px; }
.v2-page-head p { font-size: 13px; color: var(--binly-slate-muted); margin: 0; }

/* v2 reward card (Uber-style row with icon tile + chevron) */
.reward-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.v2-reward-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--binly-border);
  border-radius: 16px;
  padding: 12px 14px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s;
}
.v2-reward-card:hover { box-shadow: var(--shadow-soft); }
.v2-reward-card:active { transform: scale(0.985); }
.v2-reward-card.locked { opacity: 0.55; cursor: not-allowed; }
.v2-reward-card .rc-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--cream);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.v2-reward-card .rc-icon img { width: 36px; height: 36px; object-fit: contain; }
.v2-reward-card .rc-body { flex: 1; min-width: 0; }
.v2-reward-card .rc-body strong { display: block; font-size: 14px; font-weight: 800; line-height: 1.25; }
.v2-reward-card .rc-body small { display: block; font-size: 12px; color: var(--binly-slate-muted); margin-top: 2px; }
.v2-reward-card .rc-price {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  flex-shrink: 0;
}
.v2-reward-card .price-num { font-size: 16px; font-weight: 800; color: var(--binly-green-dark); }
.v2-reward-card .price-word { font-size: 10px; color: var(--binly-slate-muted); text-transform: uppercase; font-weight: 700; }
.v2-reward-card .rc-locked { font-size: 10px; color: var(--binly-coral); font-weight: 700; text-transform: uppercase; }
.v2-reward-card .rc-chev { font-size: 18px; color: var(--binly-slate-muted); }

/* v2 section eyebrow */
.v2-section-eyebrow {
  font-size: 11px; font-weight: 800;
  color: var(--binly-slate-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 22px 0 10px;
}

/* Profile hero */
.v2-profile-hero {
  background: var(--surface);
  border: 1px solid var(--binly-border);
  border-radius: 18px;
  padding: 16px;
  display: flex; align-items: center; gap: 14px;
  margin-top: 4px;
}
.v2-profile-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--binly-green-darker), var(--binly-green));
  color: white;
  font-size: 22px;
  font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Profile stat grid */
.v2-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.v2-stat-card {
  background: var(--surface);
  border: 1px solid var(--binly-border);
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
}
.v2-stat-val {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}
.v2-stat-lbl {
  font-size: 10px;
  color: var(--binly-slate-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  margin-top: 4px;
}

/* Bin strip */
.v2-bin-strip {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--binly-border);
  border-radius: 14px;
  align-items: center;
}

/* v2 menu list (Profile) */
.v2-menu-list {
  background: var(--surface);
  border: 1px solid var(--binly-border);
  border-radius: 18px;
  overflow: hidden;
}
.v2-menu-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--binly-border);
  cursor: pointer;
  transition: background 0.15s;
}
.v2-menu-row:last-child { border-bottom: none; }
.v2-menu-row:hover { background: var(--cream); }
.v2-menu-row:active { background: var(--cream-deep); }
.v2-menu-icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.v2-menu-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}
.v2-menu-icon.tone-mint { background: #dcfce7; }
.v2-menu-icon.tone-sky { background: #e0f2fe; }
.v2-menu-icon.tone-amber { background: #fef3c7; }
.v2-menu-icon.tone-coral { background: #ffe4e6; }
.v2-menu-icon.tone-violet { background: #ede9fe; }
.v2-menu-body { flex: 1; min-width: 0; }
.v2-menu-body strong { display: block; font-size: 14px; font-weight: 800; }
.v2-menu-body small { display: block; font-size: 12px; color: var(--binly-slate-muted); margin-top: 1px; }

/* v2 back link */
.v2-back-link {
  background: none;
  border: none;
  color: var(--binly-green-dark);
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0 8px;
  font-size: 13px;
  min-height: auto;
}

/* v2 search input */
.v2-search-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--binly-border);
  border-radius: 14px;
  font-size: 15px;
  background: var(--surface);
  margin-top: 4px;
  box-shadow: var(--shadow-tight);
}
.v2-search-input:focus { outline: none; border-color: var(--binly-green); }

/* ──────────────────────────────────────────────────────────────────
   UI POLISH ANIMATIONS — added Phase 2
   Sliding mode toggle, bell drawer, tab crossfade, hero ripple,
   scan-result slide-up, streak pulse, AR HUD settle.
   ────────────────────────────────────────────────────────────────── */

/* Bell drawer */
.bell-wrap { position: relative; display: inline-flex; }
.bell-wrap .bell-btn {
  transition: transform 0.35s cubic-bezier(.4,1.4,.5,1), background 0.22s, border-color 0.22s;
}
.bell-wrap.open .bell-btn {
  transform: scale(1.18) rotate(-12deg);
  background: var(--binly-green);
  border-color: var(--binly-green-dark);
}
.bell-wrap.open .bell-btn svg { stroke: white; }
.bell-wrap.open .bell-btn .dot { background: var(--surface); border-color: var(--binly-green); }
html[data-kids="1"] .bell-wrap.open .bell-btn {
  background: var(--binly-coral, #fb7185);
  border-color: #db2777;
}
.bell-tray {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: var(--surface);
  border: 1px solid var(--binly-border);
  border-radius: 14px;
  box-shadow: 0 20px 40px -10px rgba(15,23,42,0.25);
  transform-origin: top right;
  transform: scale(0.4) translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.36s cubic-bezier(.4,1.4,.5,1), opacity 0.25s;
  z-index: 100;
  overflow: hidden;
  max-height: 70vh;
  overflow-y: auto;
}
.bell-wrap.open .bell-tray {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.bell-tray .bell-tray-head {
  padding: 12px 14px 8px;
  border-bottom: 1px solid var(--surface-3);
  font-size: 14px;
  font-weight: 800;
  color: var(--binly-green-dark);
}
.bell-tray-list { padding: 4px 0 6px; }
.bell-notif {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--surface-3);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s, transform 0.3s;
}
.bell-notif:last-child { border-bottom: none; }
.bell-wrap.open .bell-notif { opacity: 1; transform: translateY(0); }
.bell-wrap.open .bell-notif:nth-child(2) { transition-delay: 0.08s; }
.bell-wrap.open .bell-notif:nth-child(3) { transition-delay: 0.14s; }
.bell-wrap.open .bell-notif:nth-child(4) { transition-delay: 0.20s; }
.bell-wrap.open .bell-notif:nth-child(5) { transition-delay: 0.26s; }
.bell-notif .notif-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--binly-green-light);
  color: var(--binly-green-dark);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bell-notif .notif-icon svg { width: 16px; height: 16px; stroke: currentColor; }
.bell-notif .notif-body { flex: 1; min-width: 0; }
.bell-notif .notif-title { font-weight: 700; font-size: 13px; color: var(--binly-dark); }
.bell-notif .notif-text { font-size: 12px; color: var(--binly-slate); margin: 2px 0 0; }
.bell-notif .notif-time { font-size: 11px; color: var(--binly-slate-muted); margin-top: 2px; }
.bell-notif.unread { background: #f0f9ff; }
.bell-tray-empty { padding: 28px 16px; text-align: center; color: var(--binly-slate-muted); font-size: 13px; }

/* Tab content crossfade */
#tab-content.fading > * {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.22s ease;
}
#tab-content.entering > * {
  animation: tabFadeIn 0.32s cubic-bezier(.2,.6,.3,1);
}
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero card press ripple */
.hero-action .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.32);
  transform: scale(0);
  animation: rippleOut 0.6s ease-out forwards;
  pointer-events: none;
  z-index: 0;
}
@keyframes rippleOut {
  to { transform: scale(4); opacity: 0; }
}

/* Scan result slide-up */
#scan-result.scan-anim > * {
  animation: scanSlideUp 0.5s cubic-bezier(.34,1.56,.64,1) backwards;
}
@keyframes scanSlideUp {
  0%   { opacity: 0; transform: translateY(50px) scale(0.97); }
  60%  { opacity: 1; transform: translateY(-3px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Streak chip pulse + embers */
.streak-chip .streak-icon { transform-origin: bottom center; }
.streak-chip.pulse .streak-icon { animation: flamePulse 0.6s ease-out; }
@keyframes flamePulse {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.5) rotate(-8deg); }
  60%  { transform: scale(1.2) rotate(4deg); }
  100% { transform: scale(1) rotate(0); }
}
.streak-chip.pulse { animation: countPop 0.5s ease-out; }
@keyframes countPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.streak-chip .ember {
  position: absolute;
  top: 2px;
  left: 14px;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  animation: emberRise 1s ease-out forwards;
}
@keyframes emberRise {
  0%   { opacity: 1; transform: translate(0,0) scale(0.7); }
  100% { opacity: 0; transform: translate(var(--dx,4px),-36px) scale(1.2); }
}

/* Scanner viewfinder collapses when a result is on screen, so the result
   lands at the top of the visible area instead of below the camera. */
.scanner-live {
  transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease;
  max-height: 600px;
  overflow: hidden;
}
.scanner-live.collapsed,
.ar-stage.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  transition: max-height 220ms ease, opacity 180ms ease;
  overflow: hidden;
}

/* AR HUD settles */
.ar-hud-tag.settle { animation: arSettle 0.7s cubic-bezier(.34,1.56,.64,1); }
@keyframes arSettle {
  0%   { opacity: 0.4; transform: translateY(-18px) rotate(-5deg); }
  45%  { opacity: 1;   transform: translateY(3px) rotate(3deg); }
  70%  {                transform: translateY(-1px) rotate(-1.5deg); }
  100% { opacity: 1;   transform: translateY(0) rotate(0deg); }
}

/* ──────────────────────────────────────────────────────────────────
   Polish pass — touch-feel + animation upgrades
   ────────────────────────────────────────────────────────────────── */

/* Kill iOS Safari's translucent grey tap-flash everywhere. Buttons get
   real CSS press feedback instead (below). */
* { -webkit-tap-highlight-color: transparent; }

/* Block the iOS press-and-hold callout (copy/select bubble) on
   things that are clearly interactive — keeps it for actual text. */
button, .btn, .binly-btn, .bell-btn, .quick-card, .hero-action,
.scan-mode, .reward-card, .bin-card, .step-card, .nav-tab, [role="button"] {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Snappy spring on press for most interactive surfaces — replaces the
   default grey flash with a tactile shrink. */
.binly-btn, .btn, .quick-card, .hero-action, .scan-mode,
.reward-card, .bin-card, .step-card {
  transition: transform 140ms cubic-bezier(.2,.7,.3,1),
              box-shadow 200ms ease,
              background 180ms ease;
}
.binly-btn:active, .btn:active,
.quick-card:active, .hero-action:active, .scan-mode:active,
.reward-card:active, .bin-card:active, .step-card:active {
  transform: scale(0.97);
}

/* Bottom nav tabs — subtle bounce on tap, no grey square */
.nav-tab {
  transition: transform 160ms cubic-bezier(.2,.9,.3,1.2), color 180ms ease;
}
.nav-tab:active { transform: scale(0.88); }

/* Smooth-scroll the whole document so anchor jumps + programmatic
   scrolls (collection card → home, etc.) feel native */
html { scroll-behavior: smooth; }

/* Tab content cross-fade — when switchTab swaps innerHTML the new tab
   fades in instead of popping */
#tab-content { animation: tabIn 0.28s cubic-bezier(.2,.7,.3,1); }
@keyframes tabIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Toast — gentler entrance + warmer shadow */
.toast {
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 14px 40px -10px rgba(15,23,42,0.25);
}

/* Reduce-motion: respect the OS preference, drop the bouncy springs */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ── Recent-scans chip strip (Scan tab) ──────────────────────────── */
.recent-strip {
  margin: 14px 0 4px;
}
.recent-strip-head {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--binly-green-dark);
  margin: 0 4px 8px;
}
.recent-strip-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 2px 4px 8px;
  margin: 0 -4px;
}
.recent-strip-row::-webkit-scrollbar { display: none; }
.recent-chip {
  scroll-snap-align: start;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  background: var(--surface);
  border: 1px solid var(--binly-border);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow-tight);
  transition: transform 140ms cubic-bezier(.2,.7,.3,1), box-shadow 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.recent-chip:active { transform: scale(0.95); box-shadow: 0 0 0 transparent; }
.recent-chip-icon {
  width: 36px; height: 36px;
  border-radius: 12px;
  background: var(--cream-deep);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.recent-chip-icon img { width: 24px; height: 24px; object-fit: contain; }
.recent-chip-text { text-align: left; display: flex; flex-direction: column; line-height: 1.2; }
.recent-chip-text strong { font-size: 13px; color: var(--binly-dark); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-chip-text small { font-size: 11px; color: var(--binly-green-dark); font-weight: 700; margin-top: 2px; }

/* ── Bin Session CTA card (Scan tab) ─────────────────────────────── */
.bin-session-cta {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin: 14px 0;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--binly-green) 0%, var(--binly-green-dark) 100%);
  color: white;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 32px -10px rgba(22,163,74,0.45);
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms cubic-bezier(.2,.7,.3,1), box-shadow 240ms ease;
}
.bin-session-cta:active { transform: scale(0.97); box-shadow: 0 6px 16px -6px rgba(22,163,74,0.4); }
.bin-session-cta-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.22);
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  color: white;
}
.bin-session-cta-icon svg { width: 26px; height: 26px; stroke: white; }
.bin-session-cta-text { flex: 1; min-width: 0; line-height: 1.25; }
.bin-session-cta-text strong { display: block; font-size: 16px; font-weight: 800; letter-spacing: -0.2px; }
.bin-session-cta-text small { display: block; font-size: 12.5px; color: rgba(255,255,255,0.9); margin-top: 2px; font-weight: 500; }
.bin-session-cta-chev { font-size: 22px; opacity: 0.85; }

/* ── Bin Session overlay (full-bleed) ────────────────────────────── */
.bin-session-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #0f172a;
  color: white;
  display: flex; flex-direction: column;
  animation: bsIn 0.25s cubic-bezier(.2,.7,.3,1);
}
@keyframes bsIn {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}
.bs-topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px;
  padding: 12px 14px;
  background: rgba(15,23,42,0.9);
  backdrop-filter: blur(6px);
}
.bs-topbar > .bs-counter { flex-shrink: 0; }
.bs-topbar > .bs-verify-pill { flex-shrink: 1; min-width: 0; }
.bs-topbar > .bs-verify-pill span:last-child { overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.bs-topbar > .bs-voice-btn, .bs-topbar > .bs-close { flex-shrink: 0; }
.bs-counter {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
}
.bs-counter span { font-size: 16px; color: white; }
.bs-close {
  background: var(--surface);
  color: var(--binly-green-dark);
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 140ms ease;
}
.bs-close:active { transform: scale(0.95); }
.bs-stage {
  flex: 1; position: relative; overflow: hidden;
  background: #000;
}
.bs-stage video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.bs-stage canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.bs-hint {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  background: rgba(15,23,42,0.85);
  padding: 8px 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  backdrop-filter: blur(6px);
}
.bs-bucket {
  position: absolute;
  bottom: 18px; left: 14px; right: 14px;
  display: flex; flex-direction: column;
  gap: 6px;
  pointer-events: none;
}
.bs-bucket-item {
  background: rgba(34,197,94,0.92);
  color: white;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  align-self: flex-end;
  animation: bsItemIn 0.4s cubic-bezier(.34,1.56,.64,1);
  max-width: 80%;
  box-shadow: 0 6px 16px -4px rgba(22,163,74,0.5);
}
.bs-bucket-item .bs-pts {
  background: rgba(255,255,255,0.25);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  font-weight: 800;
}
@keyframes bsItemIn {
  0%   { opacity: 0; transform: translateY(20px) scale(0.9); }
  60%  { opacity: 1; transform: translateY(-3px) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.bs-bottom {
  padding: 14px 18px env(safe-area-inset-bottom, 14px);
  background: rgba(15,23,42,0.92);
  backdrop-filter: blur(6px);
}
.bs-bottom .binly-btn { width: 100%; }

/* ── Bin Session: verify-bin pill (top bar) ─────────────────────── */
.bs-verify-pill {
  background: rgba(255,255,255,0.14);
  color: white;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 200ms ease, transform 140ms ease;
  white-space: nowrap;
}
.bs-verify-pill:active { transform: scale(0.96); }
.bs-verify-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  flex-shrink: 0;
}
.bs-verify-pill.scanning .bs-verify-dot {
  background: #fbbf24;
  animation: bsDotPulse 0.9s ease-in-out infinite;
}
@keyframes bsDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(1.4); }
}
.bs-verify-pill.verified {
  background: rgba(34,197,94,0.92);
  border-color: rgba(255,255,255,0.4);
  color: white;
}
.bs-verify-pill.verified .bs-verify-dot {
  background: var(--surface);
}
.bs-verify-pill.verified.bin-recycling   { background: rgba(14,165,233,0.92); }
.bs-verify-pill.verified.bin-paper_card  { background: rgba(234,179,8,0.92); }
.bs-verify-pill.verified.bin-food        { background: rgba(34,197,94,0.92); }
.bs-verify-pill.verified.bin-general     { background: rgba(100,116,139,0.92); }

/* Mismatch chip — recycling-item-in-general-bin etc.  */
.bs-bucket-item.mismatch {
  background: rgba(239,68,68,0.92);
  box-shadow: 0 6px 16px -4px rgba(239,68,68,0.5);
}
.bs-bucket-item.mismatch .bs-pts {
  background: rgba(255,255,255,0.3);
}
.bs-bucket-item.verified {
  border: 1px solid rgba(255,255,255,0.6);
}

/* ── Bin QR sticker sheet ────────────────────────────────────────── */
.bin-qr-sheet-overlay {
  position: fixed; inset: 0; z-index: 9100;
  background: rgba(15,23,42,0.7);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 12px;
  animation: bsIn 0.2s ease;
}
.bin-qr-sheet {
  background: var(--surface);
  width: 100%; max-width: 460px;
  border-radius: 22px 22px 14px 14px;
  padding: 18px;
  max-height: 86vh; overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
}
.bin-qr-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.bin-qr-header strong { font-size: 17px; }
.bin-qr-close {
  background: var(--surface-3); border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 14px; cursor: pointer;
}
.bin-qr-intro {
  font-size: 12.5px;
  color: var(--ink-3);
  margin: 0 0 14px;
  line-height: 1.4;
}
.bin-qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.bin-qr-card {
  background: var(--surface-2);
  border: 2px solid var(--c, #cbd5e1);
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
}
.bin-qr-card canvas { width: 100% !important; height: auto !important; max-width: 160px; background: var(--surface); border-radius: 6px; }
.bin-qr-card strong { font-size: 13px; color: var(--c, #0f172a); }
.bin-qr-card code { font-size: 10px; color: var(--ink-3); word-break: break-all; }
@media print {
  body * { visibility: hidden; }
  .bin-qr-sheet-overlay, .bin-qr-sheet-overlay * { visibility: visible; }
  .bin-qr-sheet-overlay { position: static; background: none; padding: 0; }
  .bin-qr-sheet { box-shadow: none; max-height: none; }
  .bin-qr-close, .bin-qr-sheet .binly-btn { display: none; }
}

/* ── Trust score chip (Home topbar) ──────────────────────────────── */
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px 6px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 140ms ease;
}
.trust-chip:active { transform: scale(0.94); }
.trust-chip .trust-dot { width: 8px; height: 8px; border-radius: 50%; }
.trust-chip.good { background: rgba(34,197,94,0.14); color: #15803d; border-color: rgba(34,197,94,0.35); }
.trust-chip.good .trust-dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.18); }
.trust-chip.warn { background: rgba(234,179,8,0.16); color: #a16207; border-color: rgba(234,179,8,0.35); }
.trust-chip.warn .trust-dot { background: #eab308; box-shadow: 0 0 0 3px rgba(234,179,8,0.18); }
.trust-chip.bad  { background: rgba(239,68,68,0.14); color: #b91c1c; border-color: rgba(239,68,68,0.35); }
.trust-chip.bad  .trust-dot { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.18); }

/* ── Bin Session: voice mute button ──────────────────────────────── */
.bs-voice-btn {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  width: 38px; height: 36px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 140ms ease, background 200ms ease;
}
.bs-voice-btn:active { transform: scale(0.94); }
.bs-voice-btn:hover { background: rgba(255,255,255,0.22); }

/* ── Scan tab: hero promotion ────────────────────────────────────── */
.bin-session-cta.hero {
  padding: 18px 20px;
  margin: 16px 0 4px;
  box-shadow: 0 18px 36px -12px rgba(22,163,74,0.5);
}
.bin-session-cta.hero .bin-session-cta-icon {
  width: 52px; height: 52px;
}
.bin-session-cta.hero .bin-session-cta-icon svg { width: 30px; height: 30px; }
.bin-session-cta.hero .bin-session-cta-text strong { font-size: 18px; }
.bin-session-cta.hero .bin-session-cta-text small { font-size: 13px; }
.scan-section-h {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin: 20px 0 10px;
}

/* ── Pre-pick Bin button (single-tap confirm) ────────────────────── */
.bin-prepick-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin-top: 12px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--binly-green) 0%, var(--binly-green-dark) 100%);
  color: white;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 30px -10px rgba(22,163,74,0.45);
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms cubic-bezier(.2,.7,.3,1);
}
.bin-prepick-btn:active { transform: scale(0.97); }
.bin-prepick-art {
  width: 42px; height: 50px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.bin-prepick-label { flex: 1; line-height: 1.25; }
.bin-prepick-label strong { display: block; font-size: 17px; font-weight: 800; letter-spacing: -0.2px; }
.bin-prepick-label small { display: block; font-size: 13px; opacity: 0.92; margin-top: 2px; font-weight: 600; }
.bin-prepick-chev { font-size: 24px; opacity: 0.85; }
.bin-prepick-other {
  background: none;
  border: none;
  color: var(--binly-slate-muted, #64748b);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 0;
  margin-top: 4px;
  cursor: pointer;
  text-decoration: underline;
  width: 100%;
  text-align: center;
}

/* ── Community / street signal card (Home tab) ───────────────────── */
.street-card {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.street-card::after {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(34,197,94,0.22), transparent 60%);
  pointer-events: none;
}
.street-card-top {
  display: flex; align-items: center; gap: 12px;
  position: relative; z-index: 1;
}
.street-card-icon {
  width: 42px; height: 42px;
  background: rgba(34,197,94,0.25);
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.street-card-icon svg { width: 22px; height: 22px; stroke: #86efac; }
.street-card-body { flex: 1; min-width: 0; }
.street-card-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: rgba(255,255,255,0.7);
  font-weight: 700;
}
.street-card-headline {
  display: flex; align-items: center; gap: 8px;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 800;
}
.street-card-headline strong { letter-spacing: -0.2px; }
.street-card-pill {
  background: rgba(251,191,36,0.22);
  color: #fcd34d;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.street-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  position: relative; z-index: 1;
}
.street-card-stat {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}
.street-card-stat .num {
  font-size: 18px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.4px;
}
.street-card-stat .lbl {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  margin-top: 1px;
  line-height: 1.2;
}
.street-card-footer {
  margin-top: 12px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.78);
  line-height: 1.45;
  position: relative; z-index: 1;
}

/* ── Member switcher (Scan tab) — who's binning? ─────────────────── */
.member-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 4px;
}
.member-switcher-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.member-chip {
  border: 2px solid var(--border-soft);
  background: var(--surface);
  color: var(--ink-2);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 160ms ease;
}
.member-chip.active {
  border-color: var(--binly-green);
  background: var(--binly-green-light);
  color: var(--binly-green-dark);
}
