/* ==========================================================================
   AriPay — design system
   Dérivé strictement de style.txt : canvas minuit, accent bleu unique (#1c6cff),
   corps de texte en graisse 100, profondeur par ombres INTERNES uniquement,
   étiquettes colorées inclinées comme seule respiration visuelle.
   ========================================================================== */

:root {
  /* Couleurs */
  --color-midnight-canvas: #000814;
  --color-deep-surface: #010d1e;
  --color-indigo-surface: #001533;
  --color-cobalt-surface: #00215e;
  --color-paper-white: #ffffff;
  --color-fog: #ccced0;
  --color-mist: #999ca1;
  --color-steel-border: #11263b;
  --color-signal-blue: #1c6cff;
  --color-tag-coral: #ff4433;
  --color-tag-lime: #00cc4b;
  --color-tag-tangerine: #ff8833;
  --color-tag-hot-pink: #ff33aa;
  --color-tag-violet: #9019e6;
  --color-tag-sunflower: #ffcc02;
  --color-tag-sky: #00acfe;
  --color-tag-ember: #ea687c;
  --color-tag-olive: #94ae43;
  --color-tag-slate: #5c6f8a;

  /* Typographies — Jokker (display) et Matter (corps) remplacés par des
     substituts système si les fontes sous licence ne sont pas déposées
     dans /assets/fonts (voir docs/ARCHITECTURE.md). */
  --font-display: 'Jokker', 'Space Grotesk', 'ABC Monument Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Matter Variable Thin', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Échelle typographique */
  --text-caption: 12px;
  --text-body-sm: 14px;
  --text-body: 16px;
  --text-body-lg: 18px;
  --text-subheading: 24px;
  --text-eyebrow: 28px;
  --text-heading-sm: 38px;
  --text-heading: 56px;
  --text-heading-lg: 64px;

  /* Graisses */
  --weight-thin: 100;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-eyebrow: 670;

  /* Espacements (base 4px) */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-28: 28px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-56: 56px;
  --space-64: 64px;
  --space-80: 80px;

  /* Rayons */
  --radius-images: 8px;
  --radius-buttons: 16px;
  --radius-tags: 20px;
  --radius-cards: 24px;
  --radius-large: 40px;
  --radius-pill: 9999px;

  /* Élévation : exclusivement en inset (jamais de drop shadow) */
  --elevation-card:
    rgba(255, 255, 255, 0.08) 4px 4px 8px 0 inset,
    rgba(255, 255, 255, 0.16) 4px 4px 16px -4px inset,
    rgba(0, 0, 0, 0.2) -4px -4px 16px -4px inset;
  --elevation-pressed: rgba(0, 0, 0, 0.2) -4px -4px 16px -4px inset;
  --elevation-glow:
    rgba(38, 113, 217, 0.08) 0 0 12px 0 inset,
    rgba(0, 0, 0, 0.32) 0 -4px 8px 0 inset;

  --page-max-width: 1200px;
  --app-max-width: 480px;
  --nav-height: 72px;
}

/* ------------------------------------------------------------------ reset */

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-midnight-canvas);
  color: var(--color-paper-white);
  font-family: var(--font-body);
  font-weight: var(--weight-thin);
  font-size: var(--text-body);
  line-height: 1.4;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--color-signal-blue); text-decoration: none; }
[hidden] { display: none !important; }

/* Pas de sélection de texte hors champs (parité avec la WebView Android). */
body { user-select: none; }
input, textarea, [contenteditable], .is-selectable { user-select: text; }

/* ------------------------------------------------------------- typographie */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 0.95;
}
h1 { font-size: var(--text-heading-sm); }
h2 { font-size: var(--text-subheading); letter-spacing: -0.01em; }
h3 { font-size: var(--text-body-lg); }

p { margin: 0 0 var(--space-12); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: var(--weight-eyebrow);
  font-size: var(--text-caption);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-signal-blue);
}
.muted { color: var(--color-fog); }
.dim { color: var(--color-mist); }
.caption { font-size: var(--text-caption); letter-spacing: 0.02em; }
.numeric { font-variant-numeric: tabular-nums; }
.center { text-align: center; }

/* ------------------------------------------------------------- app shell */

.app {
  width: 100%;
  max-width: var(--app-max-width);
  margin: 0 auto;
  padding: 0 var(--space-20) calc(var(--nav-height) + var(--space-32));
  min-height: 100dvh;
  position: relative;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
  padding: var(--space-20) 0 var(--space-16);
  position: sticky;
  top: 0;
  background: linear-gradient(var(--color-midnight-canvas) 70%, rgba(0, 8, 20, 0));
  z-index: 20;
}

/* --------------------------------------------------------------- logo AP */

.brand { display: flex; align-items: center; gap: var(--space-12); }

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-buttons);
  background: var(--color-paper-white);
  color: var(--color-midnight-canvas);
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: 15px;
  letter-spacing: -0.04em;
  display: grid;
  place-items: center;
  flex: none;
}
.brand-mark--lg { width: 64px; height: 64px; font-size: 26px; border-radius: var(--space-20); }
.brand-mark--blue { background: var(--color-signal-blue); color: var(--color-paper-white); }
.brand-word {
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  font-size: var(--text-body);
  letter-spacing: -0.01em;
}
.brand-sub { font-size: var(--text-caption); color: var(--color-mist); }

/* ------------------------------------------------------------- composants */

.card {
  background: var(--color-deep-surface);
  border: 1px solid rgba(17, 38, 59, 0.4);
  border-radius: var(--radius-cards);
  padding: var(--space-24);
  box-shadow: var(--elevation-card);
}
.card + .card { margin-top: var(--space-16); }
.card--flush { padding: var(--space-16); }
.card--glow { background: var(--color-indigo-surface); box-shadow: var(--elevation-glow); }

.stack { display: flex; flex-direction: column; gap: var(--space-16); }
.stack--sm { gap: var(--space-8); }
.row { display: flex; align-items: center; gap: var(--space-12); }
.row--between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }

.btn {
  appearance: none;
  border: 0;
  border-radius: var(--radius-buttons);
  padding: 14px var(--space-20);
  background: var(--color-signal-blue);
  color: var(--color-paper-white);
  font-weight: var(--weight-thin);
  font-size: var(--text-body);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease, box-shadow 160ms ease;
  min-height: 48px;
  width: 100%;
}
.btn:active { transform: scale(0.985); box-shadow: var(--elevation-pressed); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn--ghost { background: transparent; border: 1px solid var(--color-paper-white); }
.btn--quiet { background: var(--color-indigo-surface); box-shadow: var(--elevation-card); }
.btn--danger { background: var(--color-tag-coral); }
.btn--inline { width: auto; min-height: 40px; padding: 10px var(--space-16); font-size: var(--text-body-sm); }
.btn--icon { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: var(--radius-buttons); background: var(--color-deep-surface); box-shadow: var(--elevation-card); }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); }
.action-big {
  border: 0;
  cursor: pointer;
  border-radius: var(--radius-cards);
  padding: var(--space-24) var(--space-16);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-12);
  min-height: 116px;
  font-size: var(--text-body-lg);
  letter-spacing: -0.02em;
  transition: transform 140ms ease;
}
.action-big:active { transform: scale(0.98); }
.action-big--send { background: var(--color-signal-blue); color: var(--color-paper-white); }
.action-big--receive {
  background: var(--color-deep-surface);
  color: var(--color-paper-white);
  border: 1px solid rgba(17, 38, 59, 0.6);
  box-shadow: var(--elevation-card);
}
.action-big .icon { width: 26px; height: 26px; }

/* Étiquettes colorées inclinées — la signature visuelle de style.txt */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-tags);
  padding: var(--space-8) var(--space-16);
  font-size: var(--text-caption);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-paper-white);
  box-shadow: rgba(255, 255, 255, 0.18) 2px 2px 8px -2px inset;
}
.tag--coral { background: var(--color-tag-coral); }
.tag--lime { background: var(--color-tag-lime); }
.tag--tangerine { background: var(--color-tag-tangerine); }
.tag--pink { background: var(--color-tag-hot-pink); }
.tag--violet { background: var(--color-tag-violet); }
.tag--sunflower { background: var(--color-tag-sunflower); color: var(--color-midnight-canvas); }
.tag--sky { background: var(--color-tag-sky); }
.tag--ember { background: var(--color-tag-ember); }
.tag--olive { background: var(--color-tag-olive); }
.tag--slate { background: var(--color-tag-slate); }

.tag-constellation {
  position: relative;
  height: 0;
  pointer-events: none;
}
.tag-constellation .tag { position: absolute; opacity: 0.95; }
.tag-float-1 { top: 12px; left: 2%; transform: rotate(-9deg); }
.tag-float-2 { top: 58px; right: 1%; transform: rotate(7deg); }
.tag-float-3 { top: 112px; left: 8%; transform: rotate(11deg); }
.tag-float-4 { top: 156px; right: 8%; transform: rotate(-6deg); }

/* Solde */
.balance { padding: var(--space-28) var(--space-24); }
.balance__label { display: flex; align-items: center; gap: var(--space-8); color: var(--color-mist); font-size: var(--text-caption); letter-spacing: 0.08em; text-transform: uppercase; }
.balance__value {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: 46px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: var(--space-12) 0 var(--space-4);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}
.balance__value--hidden { letter-spacing: 0.08em; }
.balance__mga { color: var(--color-fog); font-size: var(--text-body-sm); }
.balance__meta { margin-top: var(--space-16); display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  padding: 6px var(--space-12);
  font-size: var(--text-caption);
  letter-spacing: 0.04em;
  background: var(--color-indigo-surface);
  color: var(--color-fog);
  box-shadow: var(--elevation-card);
}
.status-pill--verified { color: var(--color-tag-lime); }
.status-pill--pending { color: var(--color-tag-sunflower); }
.status-pill--rejected { color: var(--color-tag-coral); }

/* Liste de transactions */
.tx-list { display: flex; flex-direction: column; }
.tx {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  padding: var(--space-16) 0;
  border-bottom: 1px solid rgba(17, 38, 59, 0.55);
  background: none;
  border-left: 0; border-right: 0; border-top: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.tx:last-child { border-bottom: 0; }
.tx__glyph {
  width: 40px; height: 40px; flex: none;
  border-radius: var(--radius-buttons);
  display: grid; place-items: center;
  background: var(--color-indigo-surface);
  box-shadow: var(--elevation-card);
}
.tx__glyph .icon { width: 18px; height: 18px; }
.tx__glyph--in { color: var(--color-tag-lime); }
.tx__glyph--out { color: var(--color-signal-blue); }
.tx__glyph--bonus { color: var(--color-tag-sunflower); }
.tx__title { font-size: var(--text-body-sm); }
.tx__sub { font-size: var(--text-caption); color: var(--color-mist); }
.tx__amount { font-size: var(--text-body-sm); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tx__amount--in { color: var(--color-tag-lime); }

/* Champs */
.field { display: flex; flex-direction: column; gap: var(--space-8); }
.field > label { font-size: var(--text-caption); letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-mist); }
.input {
  width: 100%;
  background: var(--color-indigo-surface);
  border: 1px solid rgba(17, 38, 59, 0.8);
  border-radius: var(--radius-buttons);
  padding: 14px var(--space-16);
  box-shadow: var(--elevation-pressed);
  font-weight: var(--weight-thin);
  min-height: 48px;
}
.input:focus { outline: 2px solid var(--color-signal-blue); outline-offset: 1px; }
.input--amount {
  font-family: var(--font-display);
  font-size: var(--text-heading-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
  text-align: center;
  padding: var(--space-20);
}
.field__error { color: var(--color-tag-coral); font-size: var(--text-caption); }
.field__hint { color: var(--color-mist); font-size: var(--text-caption); }

/* Pavé PIN */
.pin-dots { display: flex; gap: var(--space-12); justify-content: center; margin: var(--space-24) 0; }
.pin-dot { width: 14px; height: 14px; border-radius: var(--radius-pill); background: var(--color-indigo-surface); box-shadow: var(--elevation-pressed); }
.pin-dot--filled { background: var(--color-signal-blue); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-12); }
.keypad button {
  background: var(--color-deep-surface);
  border: 0;
  border-radius: var(--radius-cards);
  box-shadow: var(--elevation-card);
  padding: var(--space-20) 0;
  font-family: var(--font-display);
  font-size: var(--text-subheading);
  font-weight: var(--weight-medium);
  cursor: pointer;
}
.keypad button:active { box-shadow: var(--elevation-pressed); transform: scale(0.97); }

/* QR */
.qr-frame {
  background: var(--color-paper-white);
  border-radius: var(--radius-cards);
  padding: var(--space-16);
  width: fit-content;
  margin: 0 auto;
}
.qr-frame svg { width: 220px; height: 220px; }
.address-box {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  font-size: var(--text-body-lg);
  text-align: center;
  padding: var(--space-16);
  border-radius: var(--radius-buttons);
  background: var(--color-indigo-surface);
  box-shadow: var(--elevation-pressed);
  word-break: break-all;
}

/* Caméra / capture */
.capture { position: relative; border-radius: var(--radius-cards); overflow: hidden; background: #000; aspect-ratio: 4 / 3; }
.capture__guide {
  position: absolute; inset: 8%;
  border: 2px dashed rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-images);
}
.capture__guide--oval { inset: 6% 18%; border-radius: 50%; }
.capture__hint {
  position: absolute; left: 0; right: 0; bottom: var(--space-12);
  text-align: center; font-size: var(--text-body-sm);
  color: var(--color-paper-white); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}
.capture video, .capture canvas, .capture img { width: 100%; height: 100%; object-fit: cover; }

/* Étapes */
.steps { display: flex; gap: var(--space-8); }
.step-dot { height: 4px; flex: 1; border-radius: var(--radius-pill); background: rgba(17, 38, 59, 0.9); }
.step-dot--done { background: var(--color-signal-blue); }

/* Navigation basse */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(1, 13, 30, 0.96);
  border-top: 1px solid rgba(17, 38, 59, 0.7);
  display: flex;
  z-index: 30;
  backdrop-filter: blur(12px);
}
.tabbar__inner { max-width: var(--app-max-width); margin: 0 auto; width: 100%; display: flex; }
.tabbar button {
  flex: 1;
  background: none;
  border: 0;
  color: var(--color-mist);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0;
}
.tabbar button[aria-current='page'] { color: var(--color-signal-blue); }
.tabbar .icon { width: 22px; height: 22px; }

/* Icônes */
.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Squelettes de chargement */
.skeleton {
  border-radius: var(--radius-buttons);
  background: linear-gradient(90deg, rgba(17, 38, 59, 0.35) 25%, rgba(17, 38, 59, 0.7) 37%, rgba(17, 38, 59, 0.35) 63%);
  background-size: 400% 100%;
  animation: skeleton 1.4s ease infinite;
}
.skeleton--text { height: 14px; margin-bottom: var(--space-8); }
.skeleton--line { height: 56px; margin-bottom: var(--space-12); }
.skeleton--hero { height: 150px; }
@keyframes skeleton { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* États */
.empty { text-align: center; padding: var(--space-40) var(--space-16); color: var(--color-mist); }
.empty .icon { width: 28px; height: 28px; margin: 0 auto var(--space-12); }

.banner {
  border-radius: var(--radius-buttons);
  padding: var(--space-16);
  font-size: var(--text-body-sm);
  background: var(--color-indigo-surface);
  box-shadow: var(--elevation-card);
  display: flex;
  gap: var(--space-12);
  align-items: flex-start;
}
.banner--warn { color: var(--color-tag-sunflower); }
.banner--error { color: var(--color-tag-coral); }
.banner--ok { color: var(--color-tag-lime); }
.banner .icon { flex: none; margin-top: 2px; }

/* Toasts */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-height) + var(--space-16)); display: flex; flex-direction: column; align-items: center; gap: var(--space-8); z-index: 60; pointer-events: none; }
.toast {
  background: var(--color-indigo-surface);
  box-shadow: var(--elevation-card);
  border-radius: var(--radius-pill);
  padding: var(--space-12) var(--space-20);
  font-size: var(--text-body-sm);
  max-width: min(440px, 92vw);
  animation: toast-in 220ms ease;
}
.toast--error { color: var(--color-tag-coral); }
.toast--ok { color: var(--color-tag-lime); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Feuille modale */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(0, 8, 20, 0.72);
  z-index: 50; display: flex; align-items: flex-end; justify-content: center;
  animation: fade-in 160ms ease;
}
.sheet {
  width: 100%; max-width: var(--app-max-width);
  background: var(--color-deep-surface);
  border-radius: var(--radius-large) var(--radius-large) 0 0;
  padding: var(--space-24) var(--space-20) var(--space-32);
  box-shadow: var(--elevation-card);
  animation: sheet-up 240ms cubic-bezier(0.2, 0.9, 0.2, 1);
  max-height: 92dvh; overflow-y: auto;
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Transitions d'écran (jamais de rechargement complet) */
.screen { animation: screen-in 220ms ease; }
@keyframes screen-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.receipt__amount {
  font-family: var(--font-display);
  font-size: var(--text-heading-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
}
.hash { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--text-caption); word-break: break-all; color: var(--color-fog); }

.kv { display: flex; justify-content: space-between; gap: var(--space-16); padding: var(--space-8) 0; font-size: var(--text-body-sm); }
.kv + .kv { border-top: 1px solid rgba(17, 38, 59, 0.5); }
.kv dt { color: var(--color-mist); }
.kv dd { margin: 0; text-align: right; }

.splash {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
  gap: var(--space-24);
}
.splash__inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-16); }
.spinner {
  width: 22px; height: 22px; border-radius: var(--radius-pill);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--color-signal-blue);
  animation: spin 800ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.offline-banner {
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--color-tag-coral);
  color: var(--color-paper-white);
  text-align: center;
  font-size: var(--text-caption);
  padding: 6px;
  z-index: 70;
}

/* --------------------------------------- tableaux, badges et statistiques
   Partagés par l'explorateur public et le back-office. */

.stat { padding: var(--space-20); }
.stat__label { font-size: var(--text-caption); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-mist); }
.stat__value {
  font-family: var(--font-display); font-weight: var(--weight-semibold);
  font-size: var(--text-subheading); letter-spacing: -0.01em; margin-top: var(--space-8);
  font-variant-numeric: tabular-nums;
}
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-16); }

.section { margin-top: var(--space-48); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-16); margin-bottom: var(--space-20); flex-wrap: wrap; }

.filters { display: flex; gap: var(--space-8); flex-wrap: wrap; align-items: center; }
.filters .input { min-height: 42px; padding: 10px var(--space-12); width: auto; }

.table-wrap { overflow-x: auto; border-radius: var(--radius-cards); }
table.ledger { width: 100%; border-collapse: collapse; font-size: var(--text-body-sm); min-width: 720px; }
table.ledger th {
  text-align: left; font-weight: var(--weight-eyebrow); font-size: var(--text-caption);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-mist);
  padding: var(--space-12) var(--space-16); border-bottom: 1px solid rgba(17, 38, 59, 0.8);
  white-space: nowrap;
}
table.ledger td { padding: var(--space-12) var(--space-16); border-bottom: 1px solid rgba(17, 38, 59, 0.45); vertical-align: top; }
table.ledger tbody tr:hover { background: rgba(0, 21, 51, 0.5); }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--text-caption); color: var(--color-fog); }

.badge { display: inline-block; border-radius: var(--radius-pill); padding: 3px 10px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; background: rgba(28, 108, 255, 0.12); color: var(--color-fog); }
.badge--confirmed, .badge--verified { background: rgba(0, 204, 75, 0.14); color: var(--color-tag-lime); }
.badge--pending, .badge--processing, .badge--manual_review { background: rgba(255, 204, 2, 0.14); color: var(--color-tag-sunflower); }
.badge--failed, .badge--rejected, .badge--suspended { background: rgba(255, 68, 51, 0.14); color: var(--color-tag-coral); }
.badge--reversed { background: rgba(144, 25, 230, 0.16); color: var(--color-tag-violet); }
.badge--issuance, .badge--transfer, .badge--active { background: rgba(28, 108, 255, 0.16); color: var(--color-signal-blue); }

.pager { display: flex; gap: var(--space-12); align-items: center; justify-content: center; margin-top: var(--space-24); }
.footnote { color: var(--color-mist); font-size: var(--text-caption); line-height: 1.6; max-width: 70ch; }

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