/* ───────────────────────────────────────────────────────────
   Mwahmart — styles
   Palette: cream paper, cherry, bubblegum, butter, deep plum ink.
   ─────────────────────────────────────────────────────────── */
:root {
  --paper: #fff6ee;
  --paper-2: #ffeee2;
  --card: #ffffff;
  --ink: #3a1030;
  --ink-2: #6b3459;
  --muted: #8a5f78;
  --cherry: #e0245e;
  --cherry-d: #a8143f;
  --pink: #ff8fb8;
  --blush: #ffdce7;
  --blush-2: #ffeef3;
  --butter: #ffe08a;
  --mint: #cdefd9;
  --mint-ink: #1d6a43;
  --lilac: #e9defc;
  --peach: #ffe2cc;
  --line: #f1d3dd;
  --track: #f6e3ea;
  --scrim: rgba(58, 16, 48, 0.45);
  --shadow: 0 1px 0 rgba(58, 16, 48, 0.05), 0 14px 34px -16px rgba(58, 16, 48, 0.28);
  --shadow-lg: 0 30px 60px -24px rgba(58, 16, 48, 0.45);
  --receipt-bg: #fffdf8;
  --receipt-ink: #2b1a22;
  --heart: rgba(224, 36, 94, 0.06);
  --hl: #ffe08a;
  --radius: 22px;
  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'DM Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --f-hand: 'Caveat', 'Segoe Print', cursive;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #1c0a17;
    --paper-2: #26101f;
    --card: #2b1225;
    --ink: #ffe8f0;
    --ink-2: #f4c3d6;
    --muted: #c697b1;
    --cherry: #ff4f86;
    --cherry-d: #b81d50;
    --pink: #ff8fb8;
    --blush: #4a1c3a;
    --blush-2: #3a152e;
    --butter: #ffd66b;
    --mint: #1f4a35;
    --mint-ink: #9fe3bd;
    --lilac: #3b2a57;
    --peach: #4a2a22;
    --line: #4a2341;
    --track: #43203a;
    --scrim: rgba(10, 2, 8, 0.65);
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 14px 34px -16px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, 0.8);
    --heart: rgba(255, 79, 134, 0.07);
    --hl: rgba(255, 214, 107, 0.22);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --paper: #1c0a17; --paper-2: #26101f; --card: #2b1225; --ink: #ffe8f0; --ink-2: #f4c3d6; --muted: #c697b1;
  --cherry: #ff4f86; --cherry-d: #b81d50; --blush: #4a1c3a; --blush-2: #3a152e; --butter: #ffd66b;
  --mint: #1f4a35; --mint-ink: #9fe3bd; --lilac: #3b2a57; --peach: #4a2a22; --line: #4a2341; --track: #43203a;
  --scrim: rgba(10, 2, 8, 0.65); --heart: rgba(255, 79, 134, 0.07); --hl: rgba(255, 214, 107, 0.22); color-scheme: dark;
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font: 400 16px/1.55 var(--f-body);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(60rem 30rem at 110% -10%, var(--blush) 0, transparent 60%),
    radial-gradient(40rem 30rem at -20% 30%, var(--paper-2) 0, transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M16 22c-2-4-8-3-8 1 0 4 8 8 8 8s8-4 8-8c0-4-6-5-8-1z' fill='%23e0245e' fill-opacity='.055'/%3E%3Cpath d='M48 54c-1.5-3-6-2.2-6 .8 0 3 6 6 6 6s6-3 6-6c0-3-4.5-3.8-6-.8z' fill='%23e0245e' fill-opacity='.04'/%3E%3C/svg%3E");
  background-attachment: fixed;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--cherry); }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.1; margin: 0 0 0.4em; letter-spacing: -0.01em; }
h2 { font-size: 1.45rem; font-weight: 700; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 0.8em; }
code { font-family: var(--f-mono); font-size: 0.85em; background: var(--blush-2); padding: 0.1em 0.4em; border-radius: 6px; word-break: break-all; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cherry); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.fine { font-size: 0.8rem; color: var(--muted); margin-top: 1rem; }

.eyebrow {
  font: 500 0.75rem/1 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cherry);
  margin-bottom: 0.9rem;
}
.display {
  font-size: clamp(2.1rem, 5.2vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
  font-variation-settings: 'opsz' 144;
}
.display i { font-weight: 500; color: var(--cherry); }
.lede { font-size: 1.08rem; color: var(--ink-2); max-width: 60ch; }
.hl {
  color: var(--cherry);
  background: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 94%, transparent 94%);
  padding: 0 0.08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.scribble {
  font: 700 1.6rem/1.15 var(--f-hand);
  color: var(--cherry);
  transform: rotate(-1.2deg);
  margin: 0.6rem 0 0;
}
.scribble b { font-weight: 700; text-decoration: underline wavy var(--pink) 2px; text-underline-offset: 4px; }
.scribble--small { font-size: 1.35rem; margin-top: 1rem; }

/* ── Ticker ───────────────────────────────────────────────── */
.ticker {
  background: var(--cherry);
  color: #fff3c4;
  overflow: hidden;
  font: 500 0.72rem/1 var(--f-mono);
  letter-spacing: 0.16em;
  padding: 9px 0;
  white-space: nowrap;
  text-transform: uppercase;
}
.ticker__track { display: inline-flex; gap: 1.6rem; animation: tick 48s linear infinite; padding-left: 1.6rem; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ── Layout shell ─────────────────────────────────────────── */
#app { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.page { padding: 8px 0 40px; }

.demo {
  display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; align-items: center;
  margin: 14px 0 0; padding: 10px 16px; border-radius: 14px;
  background: var(--butter); color: #4a2a05; font-size: 0.88rem;
}
.demo__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.demo .linkbtn { color: #4a2a05; }

.masthead {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 20px;
  align-items: center;
  padding: 22px 0 10px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__icon { border-radius: 12px; box-shadow: 0 6px 16px -6px rgba(224, 36, 94, 0.6); transform: rotate(-6deg); transition: transform 0.3s; }
.brand:hover .brand__icon { transform: rotate(6deg) scale(1.06); }
.brand__text { display: grid; }
.brand__name { font: 900 1.9rem/1 var(--f-display); letter-spacing: -0.03em; }
.brand__name i, .mcard__brand i { color: var(--cherry); font-weight: 600; }
.brand__tag { font: 400 0.95rem/1.2 var(--f-hand); color: var(--muted); font-size: 1.15rem; }

.who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.who__chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.who__role { font: 500 0.65rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--paper); background: var(--ink); padding: 3px 6px; border-radius: 6px; font-style: normal; vertical-align: 2px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--pink), var(--cherry)); color: #fff; font: 800 0.95rem var(--f-display);
}
.viewas { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--muted); }
.viewas select {
  border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px; font-weight: 600; color: var(--ink);
}

.nav {
  grid-column: 1 / -1;
  display: flex; gap: 6px;
  padding: 6px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  overflow-x: auto;
  scrollbar-width: none;
  width: max-content;
  max-width: 100%;
}
.nav::-webkit-scrollbar { display: none; }
.nav__link {
  flex: none;
  text-decoration: none; color: var(--ink-2); font-weight: 600;
  padding: 9px 18px; border-radius: 999px; transition: background 0.2s, color 0.2s;
}
.nav__link:hover { background: var(--blush-2); color: var(--ink); }
.nav__link.is-active { background: var(--cherry); color: #fff; }
.nav__link .count { min-width: 20px; height: 20px; padding: 0 6px; font-size: 0.72rem; vertical-align: 1px; margin-left: 4px; }
.nav__link.is-active .count { background: #fff; color: var(--cherry); }

/* ── Buttons & chips ──────────────────────────────────────── */
.btn {
  --b: var(--cherry); --bd: var(--cherry-d); --bt: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; text-decoration: none;
  background: var(--b); color: var(--bt);
  font-weight: 700; padding: 11px 20px; border-radius: 999px;
  box-shadow: 0 4px 0 var(--bd);
  transition: transform 0.12s, box-shadow 0.12s, filter 0.2s;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 5px 0 var(--bd); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--bd); }
.btn--ghost { --b: transparent; --bd: transparent; --bt: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--pink); background: var(--blush-2); }
.btn--ghost:active { box-shadow: inset 0 0 0 2px var(--pink); }
.btn--ink { --b: var(--ink); --bd: #000; --bt: var(--paper); }
.btn--danger { --b: #c81e3a; --bd: #7c0f22; }
.btn--off, .btn:disabled { --b: var(--blush); --bd: var(--line); --bt: var(--muted); cursor: not-allowed; transform: none; filter: none; }
.btn--small { padding: 6px 12px; font-size: 0.82rem; box-shadow: 0 3px 0 var(--bd); }
.btn--ghost.btn--small, .btn--ghost.btn--small:active { box-shadow: inset 0 0 0 2px var(--line); }
.btn--ghost.btn--small:hover { box-shadow: inset 0 0 0 2px var(--pink); }
.btn--big { width: 100%; padding: 15px 22px; font-size: 1.02rem; }
.btn--google { --b: var(--card); --bd: var(--line); --bt: var(--ink); box-shadow: inset 0 0 0 2px var(--line), 0 4px 0 var(--line); }
.btn--google .g { font: 800 1.1rem var(--f-display); color: var(--cherry); }
.is-busy .btn, .is-busy [data-action] { opacity: 0.65; pointer-events: none; }

.linkbtn { background: none; border: 0; padding: 0; color: var(--cherry); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn--danger { color: #c81e3a; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink-2);
  border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 0.88rem; cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--pink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip--select { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }

/* ── Panels, grids ────────────────────────────────────────── */
.panel {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.panel__head h2 { margin: 0; }
.panel__acts { display: flex; gap: 10px; flex-wrap: wrap; }
.more { font-weight: 600; text-decoration: none; font-size: 0.9rem; }
.count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--cherry); color: #fff; font: 700 0.85rem var(--f-body); vertical-align: 4px; }

.hello, .pagehead { padding: 30px 0 26px; }
.pagehead--shop { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.grid-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: center; margin-bottom: 28px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-ledger { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.grid-admin { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 24px; }
.stack { display: grid; gap: 12px; }
.stack-lg { display: grid; gap: 24px; }
.page--admin > .panel + .panel { margin-top: 24px; }

/* ── Membership card ──────────────────────────────────────── */
.cardwrap { perspective: 1200px; }
.cardwrap__hint { font: 700 1.25rem/1.2 var(--f-hand); color: var(--muted); text-align: center; margin: 18px 0 0; transform: rotate(-1deg); }
.mcard {
  --c1: #ffb3c9; --c2: #ff7ba5; --c3: #f25c8e; --ct: #3a1030; --chip: #ffe08a;
  --rx: 0deg; --ry: 0deg; --mx: 30%; --my: 20%;
  position: relative;
  aspect-ratio: 1.586;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  border-radius: 22px;
  padding: clamp(16px, 4.2%, 26px);
  color: var(--ct);
  background: linear-gradient(135deg, var(--c1), var(--c2) 55%, var(--c3));
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.5s cubic-bezier(.2, .8, .2, 1);
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
}
.mcard.is-tilting { transition: transform 0.08s linear; }
.mcard::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 15c-1.6-3.2-6.4-2.4-6.4.8 0 3.2 6.4 6.4 6.4 6.4s6.4-3.2 6.4-6.4c0-3.2-4.8-4-6.4-.8z' fill='%23fff' fill-opacity='.13'/%3E%3C/svg%3E");
}
.mcard__shine {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.55), transparent 45%);
  mix-blend-mode: overlay;
}
.mcard__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; position: relative; z-index: 2; }
.mcard__brand { font: 900 clamp(1.1rem, 6cqw, 1.7rem)/1 var(--f-display); letter-spacing: -0.03em; }
.tstyle--black .mcard__brand i, .tstyle--peck .mcard__brand i { color: inherit; }
.mcard__club { font: 500 clamp(0.55rem, 2.3cqw, 0.72rem)/1 var(--f-mono); letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.85; }
.mcard__mid { align-self: center; justify-content: flex-start; gap: 6%; }
.mcard__chip {
  width: 15%; aspect-ratio: 1.25; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, #fff6c9, var(--chip) 50%, #d8a93c); color: #b2302f; font-size: clamp(0.9rem, 5cqw, 1.4rem);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.mcard__bal { display: grid; line-height: 1; }
.mcard__bal b { font: 900 clamp(2.2rem, 15cqw, 4.6rem)/0.9 var(--f-display); letter-spacing: -0.04em; }
.mcard__bal small { font: 700 clamp(0.95rem, 4.6cqw, 1.4rem)/1.1 var(--f-hand); opacity: 0.9; }
.mcard__num { font: 500 clamp(0.72rem, 3.6cqw, 1.05rem)/1 var(--f-mono); letter-spacing: 0.16em; position: relative; z-index: 2; margin-bottom: 4%; opacity: 0.85; }
.mcard__foot span { display: grid; gap: 2px; min-width: 0; }
.mcard__foot small { font: 500 clamp(0.5rem, 2cqw, 0.62rem)/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; }
.mcard__foot b { font-size: clamp(0.7rem, 3cqw, 0.92rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Tier designs, shared by the card, ladder badges and admin swatches */
.tstyle--peck { --c1: #ffb3c9; --c2: #ff7ba5; --c3: #f25c8e; --ct: #3a1030; }
.tstyle--silver { --c1: #f4f1f6; --c2: #cfc8d9; --c3: #9d94ad; --ct: #2d2238; }
.tstyle--gold { --c1: #fff0b8; --c2: #f5c24c; --c3: #c98420; --ct: #3a2205; }
.tstyle--platinum { --c1: #f1ecff; --c2: #b9aee8; --c3: #7d6fc4; --ct: #1f1640; }
.tstyle--diamond { --c1: #c9f3ff; --c2: #f4c8ff; --c3: #ffbcd4; --ct: #2a1840; }
.tstyle--black { --c1: #3a2531; --c2: #1d1018; --c3: #0d070b; --ct: #f5d27a; }
.mcard.tstyle--diamond::after, .mcard.tstyle--platinum::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.45) 45%, rgba(170, 240, 255, 0.35) 52%, transparent 65%);
  background-size: 250% 100%;
  background-position: var(--mx) 0;
}
.mcard.tstyle--black .mcard__bal b { background: linear-gradient(180deg, #ffefb0, #d9a441); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Tier panel / progress ────────────────────────────────── */
.tierpanel__name { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; }
.progress { position: relative; height: 14px; border-radius: 999px; background: var(--track); margin: 26px 0 8px; }
.progress__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--pink), var(--cherry)); transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.progress__lips { position: absolute; top: 50%; transform: translate(-50%, -55%); font-size: 1.5rem; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2)); transition: left 1s cubic-bezier(.2, .8, .2, 1); }
.progress__ends { display: flex; justify-content: space-between; font: 500 0.75rem var(--f-mono); color: var(--muted); }
.progress__text { margin: 12px 0 0; }
.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0; }
.minis div { background: var(--blush-2); border-radius: 14px; padding: 12px; }
.minis dt { font: 500 0.66rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.minis dd { margin: 4px 0 0; font: 800 1.6rem/1 var(--f-display); }

.perklist { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.perklist li { display: flex; gap: 10px; align-items: flex-start; }
.perk__tier { flex: none; width: 28px; height: 28px; display: grid; place-items: center; background: var(--blush-2); border-radius: 8px; font-size: 0.9rem; }
.perks__sub { margin-top: 8px; }
.orders { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.orders li { display: flex; gap: 8px; align-items: center; justify-content: space-between; }

/* ── Receipt lines ────────────────────────────────────────── */
.receipt { list-style: none; margin: 0; padding: 0; }
.rline {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: start;
  padding: 13px 0;
  border-bottom: 1.5px dashed var(--line);
}
.rline:last-child { border-bottom: 0; }
.rline__emoji { font-size: 1.35rem; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--blush-2); }
.rline--redeem .rline__emoji { background: var(--lilac); }
.rline--adjust .rline__emoji { background: var(--peach); }
.rline--adjust .rline__amt { color: var(--ink-2); }
.rline__main { display: grid; gap: 2px; min-width: 0; }
.rline__title { font-weight: 600; overflow-wrap: anywhere; }
.rline__meta { font: 400 0.74rem/1.4 var(--f-mono); color: var(--muted); }
.rline__note { font: 700 1.2rem/1.2 var(--f-hand); color: var(--cherry); }
.rline__amt { font: 800 1.25rem/38px var(--f-display); color: var(--cherry); white-space: nowrap; }
.rline--redeem .rline__amt { color: var(--ink-2); }
.rline.is-void .rline__amt, .rline.is-void .rline__title { text-decoration: line-through; opacity: 0.6; }
.rline__acts { grid-column: 2 / -1; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 6px; }

.status { justify-self: start; margin-top: 4px; font: 500 0.66rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.1em; padding: 5px 8px; border-radius: 6px; }
.status--pending { background: var(--butter); color: #5a3a00; }
.status--fulfilled { background: var(--mint); color: var(--mint-ink); }
.status--cancelled { background: var(--track); color: var(--muted); }
.status--modified { background: var(--lilac); color: var(--ink); }
.status--denied { background: #fbd5d9; color: #8a1027; }

/* Kiss claims */
.claims { list-style: none; margin: 0; padding: 0; }
.claim__note { font: 700 1.15rem/1.2 var(--f-hand); color: var(--ink-2); }
.claim__resp { font-size: 0.88rem; background: var(--blush-2); border-radius: 10px; padding: 8px 10px; margin-top: 6px; color: var(--ink-2); }
.claim__resp b { color: var(--ink); }
.rline--claim.is-denied .rline__amt { color: var(--muted); }
.claims-admin { margin-bottom: 24px; }
.claims-admin.has-pending { border-color: var(--cherry); box-shadow: 0 0 0 2px var(--cherry), var(--shadow); }
.claimform .presets { margin-top: 8px; }

/* ── Ledger page ──────────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.tile { background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 4px; box-shadow: var(--shadow); }
.tile__lbl { font: 500 0.7rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.tile__num { font: 800 2.4rem/1 var(--f-display); letter-spacing: -0.03em; }
.tile__num--txt { font-size: 1.15rem; line-height: 1.25; padding: 6px 0 3px; }
.tile__sub { font-size: 0.85rem; color: var(--muted); }
.tile--hot { background: var(--cherry); border-color: var(--cherry); color: #fff; transform: rotate(-1.2deg); }
.tile--hot .tile__lbl, .tile--hot .tile__sub { color: rgba(255, 255, 255, 0.85); }

.bars { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 4px; }
.bar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) 2.5rem;
  gap: 12px;
  align-items: center;
  padding: 7px 8px;
  margin: 0 -8px;
  border-radius: 10px;
  cursor: default;
}
.bar:hover, .bar:focus-visible { background: var(--blush-2); }
.bar__label { font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar__track { height: 12px; border-radius: 0 4px 4px 0; background: var(--track); overflow: hidden; }
.bar__fill { display: block; height: 100%; background: var(--cherry); border-radius: 0 4px 4px 0; }
.bar__val { font: 500 0.95rem var(--f-mono); text-align: right; color: var(--ink); }
.bar::after {
  content: attr(data-tip);
  position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translate(-50%, 4px);
  background: var(--ink); color: var(--paper); font-size: 0.8rem; padding: 6px 10px; border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: 0.15s; z-index: 5;
}
.bar:hover::after, .bar:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

.receipt-paper {
  --zig: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='10'%3E%3Cpath d='M0 0h20L10 10z' fill='%23fffdf8'/%3E%3C/svg%3E");
  --zag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='10'%3E%3Cpath d='M0 10h20L10 0z' fill='%23fffdf8'/%3E%3C/svg%3E");
  position: relative;
  background: var(--receipt-bg);
  color: var(--receipt-ink);
  padding: 26px 24px 24px;
  margin: 10px 0;
  filter: drop-shadow(0 16px 22px rgba(58, 16, 48, 0.18));
  transform: rotate(0.6deg);
  /* Receipt keeps its own light-paper tokens in dark mode too */
  --ink: #2b1a22; --ink-2: #5b3a4b; --muted: #8a6a79; --line: #ead8de; --blush-2: #fbecf1; --lilac: #eee6fb;
  --card: #ffffff; --track: #f3e6ea; --butter: #ffe08a; --mint: #cdefd9; --mint-ink: #1d6a43; --cherry: #d81f59; --paper: #fff;
}
.receipt-paper::before, .receipt-paper::after { content: ''; position: absolute; left: 0; right: 0; height: 10px; background-repeat: repeat-x; }
.receipt-paper::before { top: -10px; background-image: var(--zag); }
.receipt-paper::after { bottom: -10px; background-image: var(--zig); }
.receipt-paper__head { display: grid; justify-items: center; gap: 4px; font: 400 0.78rem/1.3 var(--f-mono); text-align: center; padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1.5px dashed var(--line); letter-spacing: 0.06em; }
.receipt-paper__head b { font-size: 1.05rem; letter-spacing: 0.12em; }
.receipt-paper .chips { margin-bottom: 8px; }
.receipt-paper .rline__title { font-family: var(--f-mono); font-weight: 500; font-size: 0.92rem; }
.receipt-paper .rline__amt { font-family: var(--f-mono); font-weight: 500; font-size: 1.05rem; }
.receipt-paper__total { display: flex; justify-content: space-between; align-items: baseline; font: 500 0.85rem var(--f-mono); letter-spacing: 0.08em; border-top: 2px solid var(--receipt-ink); padding-top: 14px; margin-top: 8px; }
.receipt-paper__total b { font-size: 1.35rem; }
.barcode {
  height: 48px; margin: 22px auto 10px; width: min(260px, 80%);
  background: repeating-linear-gradient(90deg, #2b1a22 0 2px, transparent 2px 4px, #2b1a22 4px 5px, transparent 5px 8px, #2b1a22 8px 11px, transparent 11px 12px, #2b1a22 12px 13px, transparent 13px 17px);
}
.receipt-paper__thanks { font: 400 0.72rem/1.5 var(--f-mono); text-align: center; letter-spacing: 0.1em; margin: 0; }
.receipt__empty { font-family: var(--f-mono); font-size: 0.9rem; color: var(--muted); padding: 20px 0; text-align: center; }

/* ── Rewards club ladder ──────────────────────────────────── */
.ladder { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: rung; }
.rung {
  position: relative;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 16px; align-items: start;
}
.rung__badge {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 1.7rem;
  background: linear-gradient(135deg, var(--c1), var(--c3)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.rung h2 { font-size: 1.35rem; margin-bottom: 4px; }
.rung__min { font: 500 0.7rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 4px 0 6px; }
.rung__tag { font: 700 1.2rem/1.2 var(--f-hand); color: var(--cherry); }
.rung ul { margin: 8px 0 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: 0.93rem; }
.rung ul li::marker { content: '♥  '; color: var(--pink); }
.rung__lock { margin: 14px 0 0; font-weight: 600; color: var(--muted); font-size: 0.9rem; }
.rung__lock--done { color: var(--mint-ink); }
.rung.is-locked { opacity: 0.72; }
.rung.is-locked .rung__badge { filter: grayscale(0.7); }
.rung.is-current { border-color: var(--cherry); box-shadow: 0 0 0 3px var(--cherry), var(--shadow-lg); transform: translateY(-4px); }
.stamp {
  position: absolute; top: -14px; right: 14px; transform: rotate(6deg);
  font: 500 0.7rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--cherry); background: var(--card);
  border: 2px solid var(--cherry); outline: 2px solid var(--card); border-radius: 6px; padding: 6px 8px;
}

.faq details { border-top: 1.5px dashed var(--line); padding: 14px 0; }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 700 1.3rem/1 var(--f-display); color: var(--cherry); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }

/* ── Shop ─────────────────────────────────────────────────── */
.wallet {
  background: var(--ink); color: var(--paper); border-radius: 20px; padding: 14px 22px; display: grid; gap: 2px; transform: rotate(1.5deg);
  box-shadow: var(--shadow-lg);
}
.wallet__lbl { font: 500 0.7rem var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; }
.wallet b { font: 900 2.2rem/1 var(--f-display); }
.chips--shop { margin-bottom: 24px; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 24px; margin-bottom: 36px; }

.coupon {
  --notch: 13px;
  --foot: 74px;
  --tint: var(--blush-2);
  position: relative;
  min-width: 0;
  container-type: inline-size; /* footer type scales with card width, so big prices still fit */
  display: grid;
  grid-template-rows: auto auto 1fr auto var(--foot);
  background: var(--card);
  border-radius: 20px;
  padding: 22px 22px 0;
  filter: drop-shadow(0 1px 0 var(--line)) drop-shadow(0 12px 18px rgba(58, 16, 48, 0.14));
  -webkit-mask:
    radial-gradient(circle var(--notch) at 0 calc(100% - var(--foot)), #0000 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% calc(100% - var(--foot)), #0000 97%, #000) right / 51% 100% no-repeat;
          mask:
    radial-gradient(circle var(--notch) at 0 calc(100% - var(--foot)), #0000 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% calc(100% - var(--foot)), #0000 97%, #000) right / 51% 100% no-repeat;
  transition: transform 0.25s cubic-bezier(.2, .8, .2, 1);
}
.coupon:hover { transform: translateY(-5px) rotate(-0.6deg); }
/* Fixed rows, so a product without description or fine print keeps its footer aligned with the notches */
.coupon__art { grid-row: 1; }
.coupon__name { grid-row: 2; }
.coupon__desc { grid-row: 3; }
.coupon__fine { grid-row: 4; }
.coupon__foot { grid-row: 5; }
.coupon--food { --tint: var(--peach); }
.coupon--gifts { --tint: var(--blush); }
.coupon--experiences { --tint: var(--mint); }
.coupon--privileges { --tint: var(--lilac); }
.coupon__art {
  width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; font-size: 2.4rem;
  background: var(--tint); margin-bottom: 14px; transform: rotate(-4deg);
}
/* Sales */
.coupon__sale {
  position: absolute; top: 8px; left: 74px; z-index: 2;
  width: 68px; height: 68px; display: grid; place-content: center; text-align: center; gap: 1px;
  background: var(--cherry); color: #fff; transform: rotate(-12deg);
  clip-path: polygon(50% 0%, 61% 11%, 75% 6%, 79% 21%, 94% 25%, 89% 39%, 100% 50%, 89% 61%, 94% 75%, 79% 79%, 75% 94%, 61% 89%, 50% 100%, 39% 89%, 25% 94%, 21% 79%, 6% 75%, 11% 61%, 0% 50%, 11% 39%, 6% 25%, 21% 21%, 25% 6%, 39% 11%);
}
.coupon__sale b { font: 900 1.05rem/1 var(--f-display); }
.coupon__sale small { font: 500 0.5rem/1.1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.04em; }
.price__was { font: 600 clamp(0.85rem, 5cqi, 1.05rem)/1 var(--f-display); color: var(--muted); text-decoration: line-through 2px var(--cherry); margin-right: 3px; }
.coupon.is-sale .price small { display: none; }
.salebanner {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--cherry), #ff7a45); color: #fff;
  border-radius: 20px; padding: 16px 22px; margin: 0 0 22px; box-shadow: var(--shadow-lg); transform: rotate(-0.5deg);
}
.salebanner__pct { font: 900 clamp(1.8rem, 5vw, 2.6rem)/1 var(--f-display); white-space: nowrap; }
.salebanner__txt { display: grid; gap: 2px; }
.salebanner__txt b { font: 800 1.2rem/1.2 var(--f-display); }
.salebanner__txt span { opacity: 0.92; font-size: 0.95rem; }
.coupon__badge {
  position: absolute; top: 18px; right: 16px; transform: rotate(5deg);
  font: 700 1.15rem/1 var(--f-hand); background: var(--butter); color: #4a2a05; padding: 6px 10px 5px; border-radius: 8px;
}
.coupon__name { font-size: 1.25rem; font-weight: 800; margin-bottom: 6px; }
.coupon__desc { font-size: 0.93rem; color: var(--ink-2); margin-bottom: 8px; }
.coupon__fine { font-size: 0.76rem; color: var(--muted); font-style: italic; margin-bottom: 14px; }
.coupon__fine::before { content: '* '; }
.coupon__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  border-top: 2px dashed var(--line); margin: 0 -22px; padding: 0 22px;
}
.price { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; min-width: 0; }
.coupon__foot .btn { flex: none; padding: 10px clamp(11px, 6cqi, 18px); font-size: clamp(0.8rem, 5.2cqi, 1rem); }
.coupon .price b { font-size: clamp(1.45rem, 11cqi, 2rem); }
.coupon .price small { font-size: clamp(0.9rem, 6cqi, 1.1rem); }
@container (max-width: 250px) { .coupon .price small { display: none; } }
.price b { font: 900 2rem/1 var(--f-display); color: var(--cherry); letter-spacing: -0.03em; }
.price small { font: 700 1.1rem/1 var(--f-hand); color: var(--muted); }
.orders-panel { margin-top: 8px; }

/* ── Admin ────────────────────────────────────────────────── */
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; }
.preset {
  display: inline-flex; align-items: center; gap: 6px; text-align: left;
  border: 1.5px solid var(--line); background: var(--blush-2); border-radius: 12px; padding: 7px 10px;
  font-size: 0.84rem; cursor: pointer; transition: 0.15s;
}
.preset em { font: 500 0.75rem var(--f-mono); font-style: normal; color: var(--cherry); }
.preset:hover { border-color: var(--pink); transform: translateY(-1px); }
.preset.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.preset.is-on em { color: var(--butter); }

.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.9rem; }
.form input:not([type='checkbox']), .form select, .form textarea {
  width: 100%; border: 1.5px solid var(--line); background: var(--paper); border-radius: 12px; padding: 11px 13px;
  font-weight: 400; transition: border-color 0.15s, box-shadow 0.15s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--cherry); box-shadow: 0 0 0 4px var(--blush); }
.form textarea { resize: vertical; }
.form__row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.form__row .grow { flex: 1 1 200px; }
.w-emoji { flex: 0 0 82px; }
.w-amt { flex: 0 0 110px; }
.form .check { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; }
.form .check input { width: 20px; height: 20px; accent-color: var(--cherry); }
.form__err { color: #c81e3a; font-weight: 600; margin: 0; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: -4px; }
.quick .chip { padding: 5px 12px; font-family: var(--f-mono); }

.tablewrap { overflow-x: auto; margin: 6px -6px 0; }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th { text-align: left; font: 500 0.68rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); padding: 10px 8px; border-bottom: 1.5px solid var(--line); }
.table td { padding: 11px 8px; border-bottom: 1.5px dashed var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-family: var(--f-mono); white-space: nowrap; }
.table .emoji { font-size: 1.4rem; width: 40px; }
.table .acts { text-align: right; white-space: nowrap; }
.table .acts .linkbtn + .linkbtn { margin-left: 12px; }
.table tr.is-off td:not(:last-child):not(:nth-last-child(2)) { opacity: 0.5; }
.tag { font: 700 0.95rem/1 var(--f-hand); background: var(--butter); color: #4a2a05; padding: 2px 6px; border-radius: 5px; margin-left: 4px; }
.tag--sale { background: var(--cherry); color: #fff; }
.tbadge {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem;
  background: linear-gradient(135deg, var(--c1), var(--c3)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.swatches { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.swatches legend { font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; padding: 0; }
.form .swatch {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer;
  padding: 6px; border-radius: 12px; border: 2px solid transparent; font-size: 0.75rem; font-weight: 600; color: var(--ink-2);
}
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch i { width: 58px; height: 37px; border-radius: 7px; background: linear-gradient(135deg, var(--c1), var(--c2) 55%, var(--c3)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.swatch:hover { background: var(--blush-2); }
.swatch:has(input:checked) { border-color: var(--cherry); background: var(--blush-2); color: var(--ink); }
.swatch:has(input:focus-visible) { outline: 3px solid var(--cherry); outline-offset: 2px; }
.adjust__now { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.adjust__now span { font: 500 0.75rem var(--f-mono); background: var(--blush-2); border-radius: 8px; padding: 6px 9px; color: var(--ink-2); }
.adjust__hint { margin: -4px 0 0; font-size: 0.88rem; color: var(--ink-2); }
.adjust__hint b { color: var(--cherry); }
.ticker-admin textarea { font-family: var(--f-mono); font-size: 0.9rem; line-height: 1.7; }
.form__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sale-admin { margin-top: 24px; }
.sale-admin__now { background: var(--blush-2); border-radius: 12px; padding: 10px 14px; }
.toggle {
  border: 0; cursor: pointer; border-radius: 999px; padding: 5px 12px 5px 26px; font-size: 0.8rem; font-weight: 700; position: relative;
  background: var(--track); color: var(--muted);
}
.toggle::before { content: ''; position: absolute; left: 9px; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: currentColor; transform: translateY(-50%); }
.toggle.is-on { background: var(--mint); color: var(--mint-ink); }

/* ── Login ────────────────────────────────────────────────── */
.login { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px; align-items: center; padding: 48px 0 32px; }
.login__pitch .display { margin-bottom: 18px; }
.login__bullets { list-style: none; padding: 0; margin: 22px 0 32px; display: grid; gap: 10px; }
.login__bullets li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.login__bullets span { width: 36px; height: 36px; display: grid; place-items: center; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; flex: none; }
.login__card { max-width: 400px; transform: rotate(-4deg); perspective: 1200px; }
.login__box { padding: 32px; }
.login__box h2 { font-size: 1.8rem; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.8rem; margin: 18px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1.5px; background: var(--line); }
.switch { margin: 18px 0 0; font-size: 0.9rem; color: var(--muted); text-align: center; }

/* ── Empty / boot ─────────────────────────────────────────── */
.boot, .empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 80px 20px; color: var(--muted); }
.boot__lips { font-size: 3rem; animation: smooch 1.1s ease-in-out infinite; }
@keyframes smooch { 0%, 100% { transform: scale(1) rotate(-6deg); } 50% { transform: scale(1.25) rotate(6deg); } }
.empty__art { font-size: 3.4rem; }
.empty h2 { color: var(--ink); }
.empty p { max-width: 46ch; }

/* ── Footer ───────────────────────────────────────────────── */
.footer { border-top: 1.5px dashed var(--line); margin-top: 24px; padding: 32px 0 48px; text-align: center; color: var(--muted); font-size: 0.8rem; }
.footer p { max-width: 78ch; margin: 0 auto 10px; }
.footer__lips { font-size: 1.6rem; margin-bottom: 8px; }
.footer__small { font-family: var(--f-mono); letter-spacing: 0.06em; }

/* ── Modal / toast / fx ───────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal__scrim { position: absolute; inset: 0; background: var(--scrim); backdrop-filter: blur(3px); animation: fade 0.2s; }
.modal__box {
  position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--card); border-radius: 26px; padding: 28px; box-shadow: var(--shadow-lg);
  animation: pop 0.28s cubic-bezier(.2, 1.4, .4, 1);
}
.modal__box h2 { font-size: 1.6rem; }
.modal__acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.mini-receipt { font-family: var(--f-mono); font-size: 0.92rem; background: var(--blush-2); border-radius: 14px; padding: 14px 16px; display: grid; gap: 8px; margin-bottom: 12px; }
.mini-receipt div { display: flex; justify-content: space-between; gap: 12px; }
.mini-receipt__total { border-top: 1.5px dashed var(--line); padding-top: 8px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.96); } }

#toast-root { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; display: grid; gap: 10px; width: min(460px, calc(100% - 32px)); }
.toast {
  display: flex; gap: 12px; align-items: center; background: var(--ink); color: var(--paper);
  padding: 13px 16px; border-radius: 16px; box-shadow: var(--shadow-lg); animation: pop 0.3s cubic-bezier(.2, 1.4, .4, 1);
  transition: opacity 0.4s, transform 0.4s;
}
.toast p { margin: 0; font-size: 0.92rem; }
.toast span { font-size: 1.3rem; }
.toast--error { background: #7c0f22; color: #fff; }
.toast.is-out { opacity: 0; transform: translateY(10px); }

.fx {
  position: fixed; z-index: 70; pointer-events: none; transform: translate(-50%, -50%);
  animation: burst 1.3s cubic-bezier(.15, .8, .3, 1) forwards;
}
@keyframes burst {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.3); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)) scale(1); }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-ledger, .grid-admin { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .grid-hero, .grid-2, .login { grid-template-columns: minmax(0, 1fr); }
  .login { gap: 28px; padding-top: 28px; }
  .login__card { margin: 0 auto; }
}
@media (max-width: 600px) {
  #app { padding: 0 16px; }
  .masthead { grid-template-columns: 1fr; }
  .who { justify-content: flex-start; }
  .nav { width: 100%; flex-wrap: wrap; justify-content: center; border-radius: 22px; }
  .nav__link { padding: 8px 13px; font-size: 0.92rem; }
  .ladder { grid-template-columns: minmax(0, 1fr); }
  .panel, .login__box { padding: 18px; }
  .receipt-paper { padding: 22px 16px 20px; transform: none; }
  .bar { grid-template-columns: minmax(0, 8rem) minmax(0, 1fr) 2rem; gap: 8px; }
  .minis dd { font-size: 1.3rem; }
  .tile__num { font-size: 2rem; }
  .shelf { grid-template-columns: minmax(0, 1fr); }
  .catalog .table th:nth-child(3), .catalog .table td:nth-child(3),
  .customers .table th:nth-child(2), .customers .table td:nth-child(2),
  .tiers-admin .table th:nth-child(4), .tiers-admin .table td:nth-child(4),
  .tiers-admin .table th:nth-child(5), .tiers-admin .table td:nth-child(5),
  .tiers-admin .table th:nth-child(6), .tiers-admin .table td:nth-child(6) { display: none; }
}

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