/*
 * Fidèle : système de design partagé (site vitrine, pages publiques, espace).
 * Rayons : contrôles 12px, cartes 20px, puces et avatars en pilule.
 * Couleurs : vert encre (marque) + laiton réservé aux tampons et repères.
 */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --bg: #f3f6f3;
  --surface: #fcfdfc;
  --surface-2: #ebf0ec;
  --surface-3: #e0e8e2;
  --line: #d6dfd8;
  --line-strong: #b9c7bd;
  --text: #13201a;
  --text-2: #33433b;
  --muted: #56655e;
  --primary: #1b4d3e;
  --primary-hover: #153e32;
  --primary-ink: #f3f8f5;
  --primary-soft: #dfece5;
  --primary-soft-ink: #164234;
  --accent: #c99a44;
  --accent-soft: #f5ead3;
  --accent-ink: #5c4113;
  --danger: #b42318;
  --danger-soft: #fdeceb;
  --success: #1c7a4b;
  --success-soft: #e2f3e9;
  --warning: #9a5b07;
  --warning-soft: #fcf0d9;
  --info: #255d8c;
  --info-soft: #e5eff8;
  --focus: #2f8a69;
  --shadow-color: 150deg 18% 30%;
  --shadow-sm: 0 1px 2px hsl(var(--shadow-color) / 0.08);
  --shadow: 0 1px 2px hsl(var(--shadow-color) / 0.06), 0 8px 24px -12px hsl(var(--shadow-color) / 0.22);
  --shadow-lg: 0 2px 6px hsl(var(--shadow-color) / 0.06), 0 24px 48px -20px hsl(var(--shadow-color) / 0.32);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --z-sticky: 20;
  --z-drawer: 40;
  --z-dialog: 50;
  --z-toast: 60;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d1311;
    --surface: #141c19;
    --surface-2: #1a2420;
    --surface-3: #22302a;
    --line: #26332d;
    --line-strong: #364740;
    --text: #e6eee9;
    --text-2: #c3cfc8;
    --muted: #93a39b;
    --primary: #63c39b;
    --primary-hover: #7dd1ad;
    --primary-ink: #08130e;
    --primary-soft: #1b3a2f;
    --primary-soft-ink: #a5e3c8;
    --accent: #ddb468;
    --accent-soft: #3a2f1a;
    --accent-ink: #f0d7a6;
    --danger: #f2877d;
    --danger-soft: #3b1d1a;
    --success: #6bd19c;
    --success-soft: #16332a;
    --warning: #f0b45a;
    --warning-soft: #3a2b14;
    --info: #8cbfe8;
    --info-soft: #172a3a;
    --focus: #7dd1ad;
    --shadow-color: 160deg 30% 2%;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1311;
  --surface: #141c19;
  --surface-2: #1a2420;
  --surface-3: #22302a;
  --line: #26332d;
  --line-strong: #364740;
  --text: #e6eee9;
  --text-2: #c3cfc8;
  --muted: #93a39b;
  --primary: #63c39b;
  --primary-hover: #7dd1ad;
  --primary-ink: #08130e;
  --primary-soft: #1b3a2f;
  --primary-soft-ink: #a5e3c8;
  --accent: #ddb468;
  --accent-soft: #3a2f1a;
  --accent-ink: #f0d7a6;
  --danger: #f2877d;
  --danger-soft: #3b1d1a;
  --success: #6bd19c;
  --success-soft: #16332a;
  --warning: #f0b45a;
  --warning-soft: #3a2b14;
  --info: #8cbfe8;
  --info-soft: #172a3a;
  --focus: #7dd1ad;
  --shadow-color: 160deg 30% 2%;
}

/* ---------- base ---------- */
.fi, .fi *, .fi *::before, .fi *::after { box-sizing: border-box; }
body.fi {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.fi img, .fi svg, .fi video, .fi canvas { max-width: 100%; }
:where(.fi) a { color: inherit; }
.fi :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
:where(.fi) :where(h1, h2, h3, h4) { font-family: var(--font-display); font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; margin: 0; color: var(--text); text-wrap: balance; }
:where(.fi) p { margin: 0; text-wrap: pretty; }
:where(.fi) :where(button, input, select, textarea) { font: inherit; color: inherit; }
.fi ::selection { background: var(--primary-soft); color: var(--primary-soft-ink); }

.i { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.25em; }
.i-sm { width: 1em; height: 1em; }
.i-lg { width: 1.5em; height: 1.5em; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--primary); color: var(--primary-ink); padding: 8px 14px; border-radius: var(--radius); text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.xs { font-size: 0.78rem; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-size: 0.9em; }
.display { font-family: var(--font-display); }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.center { text-align: center; }
.hidden, [hidden] { display: none !important; }

.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.row { display: flex; align-items: center; gap: var(--gap, 12px); flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- boutons ---------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  --btn-line: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid var(--btn-line);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 0.94rem; line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease), box-shadow .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { --btn-bg: var(--primary); --btn-fg: var(--primary-ink); --btn-line: var(--primary); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-ghost { --btn-bg: transparent; --btn-line: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-soft { --btn-bg: var(--primary-soft); --btn-fg: var(--primary-soft-ink); --btn-line: transparent; }
.btn-soft:hover { background: var(--surface-3); }
.btn-danger { --btn-bg: var(--danger); --btn-fg: #fff; --btn-line: var(--danger); }
.btn-danger:hover { background: var(--danger); filter: brightness(0.95); }
.btn-danger-ghost { --btn-bg: transparent; --btn-fg: var(--danger); --btn-line: transparent; }
.btn-danger-ghost:hover { background: var(--danger-soft); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 0.86rem; border-radius: 10px; }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 1rem; }
.btn-xl { min-height: 64px; padding: 0 28px; font-size: 1.15rem; border-radius: 16px; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; padding: 0; }
.btn-icon.btn-sm { width: 34px; }
.btn .spinner { width: 16px; height: 16px; }

.spinner { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: fi-spin .7s linear infinite; }
@keyframes fi-spin { to { transform: rotate(360deg); } }

.link { color: var(--primary); font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 0.875rem; font-weight: 600; color: var(--text-2); }
.field .help { font-size: 0.8rem; color: var(--muted); }
.field .error, .form-error { font-size: 0.82rem; color: var(--danger); font-weight: 500; }
.form-error { background: var(--danger-soft); padding: 10px 12px; border-radius: var(--radius); }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 14px;
  border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  font-size: 0.95rem;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: .85; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.select { appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 52%, calc(100% - 14px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.input-color { width: 52px; min-width: 52px; height: 44px; padding: 4px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; }
.input-group { display: flex; gap: 8px; align-items: center; }
.input-icon { position: relative; }
.input-icon > .i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon > .input { padding-left: 40px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 0.92rem; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); }

.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 44px; height: 26px; border-radius: var(--radius-pill); background: var(--line-strong); position: relative; transition: background .2s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease); }
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--focus); outline-offset: 2px; }

.segmented { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface-2); border-radius: 14px; border: 1px solid var(--line); flex-wrap: wrap; }
.segmented button { border: 0; background: transparent; padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 0.88rem; color: var(--muted); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.segmented button[aria-pressed="true"], .segmented button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); min-width: 0; }
.card-tight { padding: 16px; }
.card-flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { font-size: 1.12rem; }
.card-head p { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.card-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); border: 0; margin: 20px 0; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 0.76rem; font-weight: 650; line-height: 1.5; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.badge-primary { background: var(--primary-soft); color: var(--primary-soft-ink); }
.badge-accent { background: var(--accent-soft); color: var(--accent-ink); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-outline { background: transparent; border: 1px solid var(--line-strong); }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--surface-2); color: var(--text-2); font-size: 0.92rem; }
.notice > .i { margin-top: 2px; }
.notice-info { background: var(--info-soft); color: var(--info); }
.notice-warning { background: var(--warning-soft); color: var(--warning); }
.notice-success { background: var(--success-soft); color: var(--success); }
.notice-danger { background: var(--danger-soft); color: var(--danger); }
.notice-accent { background: var(--accent-soft); color: var(--accent-ink); }
.notice strong { color: inherit; }

.avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-soft-ink); font-weight: 700; font-size: 0.88rem; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; font-size: 0.78rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.1rem; }
.avatar-square { border-radius: 12px; }

/* ---------- tableaux ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th { text-align: left; font-weight: 600; font-size: 0.78rem; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr.is-link { cursor: pointer; transition: background .12s; }
.table tbody tr.is-link:hover { background: var(--surface-2); }
.table .t-right { text-align: right; }
@media (max-width: 720px) {
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .table-cards tbody tr:last-child { border-bottom: 0; }
  .table-cards td { padding: 3px 0; border: 0; display: flex; justify-content: space-between; gap: 16px; }
  .table-cards td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 0.82rem; font-weight: 500; }
  .table-cards td.t-main { display: block; padding-bottom: 6px; }
  .table-cards td.t-main::before { content: none; }
  .table-cards .t-right { text-align: left; }
}

/* ---------- états ---------- */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .empty-icon { width: 56px; height: 56px; border-radius: 18px; background: var(--primary-soft); color: var(--primary-soft-ink); display: grid; place-items: center; margin-bottom: 6px; }
.empty .empty-icon .i { width: 26px; height: 26px; }
.empty h3 { font-size: 1.1rem; color: var(--text); }
.empty p { max-width: 42ch; font-size: 0.92rem; }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: fi-shimmer 1.4s ease infinite; border-radius: 10px; min-height: 14px; }
@keyframes fi-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.progress { height: 10px; border-radius: var(--radius-pill); background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--primary); transition: width .6s var(--ease); }
.progress-accent > span { background: var(--accent); }

/* ---------- tampons ---------- */
.stamps { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 10px; }
.stamp { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; border: 1.5px dashed var(--line-strong); color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.stamp.is-filled { border: 0; background: var(--accent); color: #2b1f08; }
.stamp.is-filled .i { width: 55%; height: 55%; stroke-width: 2.4; }
.stamp.is-reward { border-color: var(--accent); color: var(--accent-ink); }

/* ---------- carte de fidélité (aperçu) ---------- */
.loyalty-card { --card-bg: var(--primary); --card-fg: #fff; --card-label: rgba(255,255,255,.72); position: relative; border-radius: 22px; background: var(--card-bg); color: var(--card-fg); padding: 18px 20px 20px; box-shadow: var(--shadow-lg); overflow: hidden; isolation: isolate; max-width: 360px; width: 100%; }
.loyalty-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,.16), transparent 55%), radial-gradient(90% 70% at 0% 100%, rgba(0,0,0,.18), transparent 60%); }
.loyalty-card .lc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.loyalty-card .lc-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.loyalty-card .lc-logo { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.18); display: grid; place-items: center; overflow: hidden; font-family: var(--font-display); font-weight: 700; flex: none; }
.loyalty-card .lc-logo img { width: 100%; height: 100%; object-fit: contain; }
.loyalty-card .lc-name { font-family: var(--font-display); font-weight: 650; font-size: 1.05rem; line-height: 1.2; }
.loyalty-card .lc-label { font-size: 0.66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--card-label); font-weight: 600; }
.loyalty-card .lc-balance { text-align: right; }
.loyalty-card .lc-balance strong { display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.loyalty-card .lc-hero { margin: 14px -20px 14px; height: 92px; background-size: cover; background-position: center; }
.loyalty-card .lc-hero.is-empty { height: 0; margin-bottom: 8px; }
.loyalty-card .lc-fields { display: flex; justify-content: space-between; gap: 12px; }
.loyalty-card .lc-fields div { min-width: 0; }
.loyalty-card .lc-fields span:last-child { display: block; font-weight: 600; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loyalty-card .lc-qr { margin: 16px auto 0; width: 132px; background: #fff; border-radius: 12px; padding: 8px; color: #111; text-align: center; }
.loyalty-card .lc-qr svg { display: block; width: 100%; height: auto; }
.loyalty-card .lc-qr small { display: block; font-size: 0.58rem; color: #555; margin-top: 2px; }
.loyalty-card .stamps { margin-top: 14px; gap: 8px; }
.loyalty-card .stamp { border-color: rgba(255,255,255,.45); color: rgba(255,255,255,.75); }
.loyalty-card .stamp.is-filled { background: var(--accent); color: #2b1f08; }

/* ---------- dialogue & toasts ---------- */
dialog.modal { border: 0; padding: 0; border-radius: var(--radius-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 48px); overflow: auto; }
dialog.modal::backdrop { background: rgb(8 14 11 / .5); backdrop-filter: blur(2px); }
dialog.modal[open] { animation: fi-pop .28s var(--ease); }
.modal-body { padding: 24px; }
.modal-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.modal-head h2 { font-size: 1.2rem; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
@keyframes fi-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

.toasts { position: fixed; z-index: var(--z-toast); bottom: 20px; right: 20px; left: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; max-width: 420px; padding: 12px 16px; border-radius: 14px; background: var(--text); color: var(--bg); box-shadow: var(--shadow-lg); font-size: 0.92rem; font-weight: 500; animation: fi-toast .3s var(--ease); }
.toast.is-error { background: var(--danger); color: #fff; }
.toast.is-leaving { opacity: 0; transform: translateY(6px); transition: all .25s; }
@keyframes fi-toast { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 640px) { .toasts { align-items: stretch; bottom: 84px; } .toast { max-width: none; } }

.tooltip-wrap { position: relative; }

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