:root {
  /* Couleurs de thème (surchargées par JS selon le choix de l'utilisateur) */
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-darker: #134e4a;
  --teal-flash: #19f0a0;
  --teal-bright: #14b8a6;
  --teal-light: #ccfbf1;
  --teal-50: #f0fdfa;
  --tint1: #e3fbf4;
  --tint2: #d2f3ff;
  --bg: #eef7f6;
  --bg-g1: #c4f5ec;
  --bg-g2: #d7f3ff;
  --bg-g3: #cdf4ec;
  --glow-rgb: 20, 184, 166;
  --shadow-rgb: 13, 148, 136;
  --icon-flash: #ff5e3a; /* couleur flashy des icônes dans les tuiles */
  /* Neutres */
  --amber: #f59e0b;
  --rose: #e11d48;
  --green: #16a34a;
  --ink: #0e1a24;
  --slate: #64748b;
  --slate-light: #94a3b8;
  --line: #e6eef0;
  --card: rgba(255, 255, 255, .82);
  --shadow: 0 1px 2px rgba(var(--shadow-rgb), .06), 0 10px 30px rgba(var(--shadow-rgb), .08);
  --shadow-lg: 0 16px 44px rgba(var(--shadow-rgb), .22);
  --glow: 0 8px 24px rgba(var(--glow-rgb), .35);
  --radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 760px at 100% -4%, var(--bg-g1) 0%, transparent 64%),
    radial-gradient(1000px 760px at 0% 18%, var(--bg-g2) 0%, transparent 62%),
    radial-gradient(900px 700px at 100% 60%, var(--bg-g1) 0%, transparent 60%),
    radial-gradient(1100px 900px at 50% 112%, var(--bg-g3) 0%, transparent 66%),
    var(--bg);
  background-attachment: fixed;
  transition: background .35s ease;
}

#app {
  max-width: 440px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 132px;
  position: relative;
}
/* Sur grand écran : la zone autour reste teintée, l'app reste en format téléphone centré */
@media (min-width: 480px) {
  body { padding: 0; }
  #app { box-shadow: 0 0 0 1px rgba(15,23,42,.04), 0 30px 80px rgba(15,23,42,.12); }
}

/* Icônes vectorielles */
.ic { display: block; flex-shrink: 0; }
.ic-btn { display: grid; place-items: center; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(135deg, #11151e 0%, #2b3242 100%);
  color: #fff;
  padding: calc(20px + env(safe-area-inset-top)) 20px 24px;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 14px 38px rgba(17,24,39,.3);
  overflow: hidden;
}
/* reflet brillant en diagonale */
.topbar::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.03) 30%, rgba(255,255,255,0) 52%);
  pointer-events: none;
}
.topbar::after {
  content: ""; position: absolute; top: -60%; right: -10%;
  width: 60%; height: 180%; transform: rotate(18deg);
  background: radial-gradient(closest-side, rgba(255,255,255,.12), rgba(255,255,255,0) 70%);
  pointer-events: none;
}
.topbar > * { position: relative; z-index: 1; }
.topbar-row { display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 23px; letter-spacing: -.5px; }
.wordmark { font-family: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Nunito", system-ui, sans-serif; font-weight: 800; font-size: 25px; letter-spacing: -.3px; }
.wordmark span { color: #fff; }
.brand .logo {
  height: 42px; display: grid; place-items: center; flex-shrink: 0;
}
.brand .logo svg { display: block; border-radius: 13px; box-shadow: 0 5px 13px rgba(0,0,0,.18); }
.brand .logo img { height: 42px; width: auto; display: block; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0,0,0,.28)); }
.topbar .sub { opacity: .9; font-size: 13.5px; margin-top: 5px; font-weight: 500; }
.back-btn {
  background: #fff; border: none; color: var(--icon-flash);
  width: 42px; height: 42px; border-radius: 50%;
  cursor: pointer; display: grid; place-items: center; flex-shrink: 0;
  box-shadow: 0 5px 14px rgba(0,0,0,.16);
  transition: transform .12s, box-shadow .15s;
}
.back-btn:hover { box-shadow: 0 7px 18px rgba(0,0,0,.2); }
.back-btn:active { transform: scale(.9); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.topbar .title { font-weight: 700; font-size: 21px; letter-spacing: -.4px; flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; }
.topbar .title .t-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.title-ic { display: inline-grid; place-items: center; }

/* ---------- Content ---------- */
.content { padding: 20px; }
.section-title { font-size: 13px; font-weight: 700; color: #334155; text-transform: uppercase; letter-spacing: .6px; margin: 26px 4px 12px; }

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 14px;
}

.group-card {
  display: block; overflow: hidden; padding: 0 16px 13px;
  cursor: pointer; transition: transform .12s, box-shadow .12s;
  background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.group-card:active { transform: scale(.985); }
.group-name-bar {
  margin: 0 -16px 12px; padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-flash) 100%);
  color: #fff; font-size: 16px; font-weight: 700; letter-spacing: -.3px;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.05);
}
.gnb-icon {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center; color: var(--icon-flash);
  background: rgba(255,255,255,.92); box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}
.gnb-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gnb-count { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; }
.gnb-count .ic { opacity: .9; }
.group-status {
  flex-shrink: 0; align-self: center; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px; font-size: 12px; font-weight: 800;
}
.group-status .st-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.group-status.ongoing { background: #eef1f6; color: #64748b; }
.group-status.done { background: #ecfdf3; color: #15a34a; }
.group-body {
  display: flex; align-items: center; gap: 13px;
  background-image: radial-gradient(rgba(15,23,42,.05) 1px, transparent 1.5px);
  background-size: 12px 12px; background-position: -2px -2px;
}
.group-emoji {
  width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
  display: grid; place-items: center; color: var(--icon-flash);
  background: linear-gradient(150deg, #eef2f7 0%, #e4eaf2 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.group-card .info { flex: 1; min-width: 0; }
.group-card .info h3 { font-size: 17px; font-weight: 700; letter-spacing: -.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { color: var(--slate-light); display: inline-grid; place-items: center; }

/* Petites pastilles (mini-boutons) pour les infos */
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.group-emoji-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; }
.group-count { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: var(--slate); }
.group-count .ic { color: var(--slate-light); }
.group-stats { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.gstat {
  min-width: 0; text-align: center; border-radius: 13px; padding: 9px 8px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.gstat-label { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--slate-light); }
.gstat-val { font-size: 15px; font-weight: 800; color: var(--ink); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gstat.pos { background: #ecfdf3; border-color: #b7f0cb; }
.gstat.pos .gstat-label, .gstat.pos .gstat-val { color: #15a34a; }
.gstat.neg { background: #fef2f2; border-color: #fbcaca; }
.gstat.neg .gstat-label, .gstat.neg .gstat-val { color: #dc2626; }
.mini-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: #eef1f6; color: #334155;
  font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 8px;
  white-space: nowrap; line-height: 1.4;
}
.mini-chip .ic { color: #334155; }
.mini-chip.accent { background: #18212e; color: #fff; font-weight: 700; }
.mini-chip.accent .ic { color: #fff; }

/* ---------- Empty state ---------- */
.empty {
  text-align: center; padding: 50px 24px; color: var(--slate);
}
.empty .icon { font-size: 54px; margin-bottom: 14px; }
.empty h3 { font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.empty p { font-size: 14px; line-height: 1.5; }

/* ---------- Buttons ---------- */
.btn {
  border: none; border-radius: 14px; font-family: inherit; font-weight: 700;
  font-size: 15px; cursor: pointer; padding: 14px 20px;
  transition: transform .1s, filter .15s; display: inline-flex;
  align-items: center; justify-content: center; gap: 8px;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: #18212e;
  color: #fff; box-shadow: 0 10px 24px rgba(15,23,42,.28), inset 0 1px 0 rgba(255,255,255,.12);
}
.btn-primary:hover { filter: brightness(1.04); }
.btn-ghost { background: #eef1f6; color: #334155; }
.btn-danger { background: #fff1f2; color: var(--rose); }
.btn-block { width: 100%; }

.fab {
  position: fixed; bottom: calc(24px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  z-index: 30; color: #fff; border: none;
  background: #18212e;
  padding: 15px 26px; border-radius: 999px; font-weight: 700; font-size: 16px;
  box-shadow: 0 14px 34px rgba(15,23,42,.4), inset 0 1px 0 rgba(255,255,255,.12);
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; gap: 8px;
  transition: transform .12s, filter .15s;
}
.fab:hover { filter: brightness(1.04); }
.fab:active { transform: translateX(-50%) scale(.96); }
/* Le bouton flottant reste centré sous la carte (téléphone) à toutes les largeurs */
@media (min-width: 480px) {
  .fab { left: 50%; right: auto; transform: translateX(-50%); }
}

/* ---------- Expense row ---------- */
.exp-row { display: flex; align-items: center; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.exp-row:last-child { border-bottom: none; }
.exp-emoji { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; color: var(--icon-flash); background: linear-gradient(150deg, #eef2f7 0%, #e4eaf2 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.exp-info { flex: 1; min-width: 0; }
.exp-info h4 { font-size: 15px; font-weight: 600; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exp-info p { font-size: 12.5px; color: var(--slate); margin-top: 2px; }
.exp-amount { font-weight: 700; font-size: 16px; text-align: right; flex-shrink: 0; color: var(--ink); }
.exp-amount small { display: block; font-weight: 500; font-size: 11px; color: var(--slate-light); margin-top: 2px; }

/* ---------- Balance ---------- */
.balance-card { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.balance-card:last-child { border-bottom: none; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 16px; flex-shrink: 0; }
.balance-card .name { flex: 1; font-weight: 600; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.payer-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 800; letter-spacing: .2px;
  padding: 2px 8px 2px 6px; border-radius: 999px; color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.18); white-space: nowrap;
}
.payer-badge.badge-joker { background: linear-gradient(135deg, #8b5cf6, #d946ef); }
.payer-badge.badge-roi   { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #4a2c00; }
.payer-badge.badge-valet { background: linear-gradient(135deg, #64748b, #94a3b8); }
.balance-amount { font-weight: 700; font-size: 15px; }
.pos { color: var(--green); }
.neg { color: var(--rose); }
.zero { color: var(--slate-light); }

/* Avatar emoji de personnage (soldes + remboursements) */
.p-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 23px; flex-shrink: 0; }
.balance-card .b-note { font-size: 11.5px; color: var(--slate-light); font-weight: 600; }

/* ---------- Remboursements conseillés (cartes) ---------- */
.settle-card {
  display: flex; flex-direction: column; gap: 11px;
  background: linear-gradient(135deg, #eef1f6 0%, #ffffff 70%);
  border: 1.5px solid #e3e8ef; border-radius: 18px;
  padding: 14px 12px; margin-bottom: 11px; box-shadow: var(--shadow);
}
.settle-card:last-of-type { margin-bottom: 0; }
.settle-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.settle-sentence { text-align: center; font-size: 13.5px; color: var(--slate); margin-top: -2px; }
.settle-sentence b { color: var(--ink); font-weight: 700; }
.settle-action { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.settle-btn { padding: 12px; font-size: 14.5px; }
.settle-status { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--green); }
.settle-undo { background: none; border: none; color: var(--slate-light); font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 2px 8px; }
.settle-wait { font-size: 13px; color: var(--slate); font-weight: 500; padding: 4px 0; }

/* Dettes payées */
.paid-row { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.paid-row:last-child { border-bottom: none; }
.paid-txt { flex: 1; font-size: 14px; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paid-txt b { color: var(--ink); font-weight: 600; }
.paid-amt { font-weight: 700; color: var(--ink); font-size: 14px; }
.paid-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--green); background: #e9f9ef; padding: 4px 8px; border-radius: 8px; flex-shrink: 0; }
.s-person { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 78px; flex-shrink: 0; }
.s-person span { font-size: 13px; font-weight: 700; color: var(--ink); max-width: 78px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-mid { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--slate); min-width: 0; }
.s-amt { font-weight: 800; font-size: 16.5px; color: var(--ink); letter-spacing: -.3px; white-space: nowrap; }
.s-arrow { width: 60px; max-width: 100%; height: 10px; display: block; }
.all-settled { display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--green); font-weight: 700; padding: 22px; }

/* ---------- Summary header inside group ---------- */
.group-summary { display: flex; gap: 12px; margin-bottom: 4px; }
.stat { flex: 1; background: rgba(255,255,255,.14); border-radius: 16px; padding: 13px 15px; }
.stat-tap { cursor: pointer; transition: background .14s, transform .1s; }
.stat-tap:active { transform: scale(.97); background: rgba(255,255,255,.24); }
.stat-tap .label .ic { vertical-align: -2px; opacity: .8; }
.stat .label { font-size: 12px; opacity: .85; font-weight: 600; }
.stat .value { font-size: 22px; font-weight: 800; margin-top: 3px; letter-spacing: -.5px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 6px; background: var(--card); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.6); border-radius: 16px; padding: 5px; box-shadow: var(--shadow); margin-bottom: 18px; }
.tab { flex: 1; text-align: center; padding: 12px; border-radius: 12px; font-weight: 600; font-size: 14.5px; color: var(--slate); cursor: pointer; transition: all .15s; border: none; background: none; font-family: inherit; }
.tab.active { background: #18212e; color: #fff; box-shadow: 0 6px 16px rgba(15,23,42,.25); }

/* ---------- Members chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { display: flex; align-items: center; gap: 7px; background: #eef1f6; color: #334155; padding: 8px 8px 8px 13px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.chip .x { cursor: pointer; width: 20px; height: 20px; border-radius: 50%; background: rgba(13,148,136,.15); display: grid; place-items: center; font-size: 13px; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.5);
  z-index: 100; display: flex; align-items: flex-end; justify-content: center;
  backdrop-filter: blur(3px); padding: 0;
}
@media (min-width: 600px) { .modal-overlay { align-items: center; padding: 20px; } }
.modal {
  position: relative; /* le bouton ✕ se positionne par rapport à la fenêtre, pas à l'écran */
  background: #fff; width: 100%; max-width: 440px;
  border-radius: 26px 26px 0 0; padding: 8px 22px calc(26px + env(safe-area-inset-bottom));
  /* ne jamais passer sous la barre d'état (heure/encoche) */
  max-height: calc(100vh - env(safe-area-inset-top) - 12px);
  overflow-y: auto;
  animation: slideUp .28s cubic-bezier(.16,1,.3,1);
}
@media (min-width: 600px) { .modal { border-radius: 26px; max-height: 92vh; } }

/* Alerte centrée (confirmations) — pas une feuille du bas */
.modal-overlay.center { align-items: center; padding: 24px; }
.modal-overlay.center .modal {
  border-radius: 24px; max-width: 360px;
  padding: 24px 22px calc(22px + env(safe-area-inset-bottom));
  animation: popIn .22s cubic-bezier(.16,1,.3,1);
}
@keyframes popIn { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal .grab { width: 40px; height: 5px; background: var(--line); border-radius: 99px; margin: 8px auto 18px; }
.modal h2 { font-size: 21px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 4px; }
.modal .modal-sub { color: var(--slate); font-size: 14px; margin-bottom: 20px; }

/* ---------- Form ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--slate); margin-bottom: 7px; }
.field input, .field select {
  width: 100%; border: 2px solid var(--line); border-radius: 13px;
  padding: 13px 15px; font-size: 16px; font-family: inherit; color: var(--ink);
  background: #fff; transition: border-color .15s; outline: none;
}
.field input:focus, .field select:focus { border-color: var(--ink); }
.name-with-icon { display: flex; align-items: center; gap: 10px; }
.name-with-icon input { flex: 1; min-width: 0; }
.auto-icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 13px;
  display: grid; place-items: center; color: var(--icon-flash);
  background: linear-gradient(150deg, #eef2f7 0%, #e4eaf2 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.emoji-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(46px, 1fr)); gap: 9px; }
.emoji-opt { width: 100%; aspect-ratio: 1; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--slate); cursor: pointer; display: grid; place-items: center; transition: all .14s; }
.emoji-opt:hover { border-color: #e3e8ef; }
.emoji-opt.sel { border-color: var(--ink); color: var(--icon-flash); background: linear-gradient(150deg, #eef2f7 0%, #e4eaf2 100%); transform: scale(1.06); box-shadow: 0 4px 12px rgba(var(--glow-rgb), .22); }

.split-list { display: flex; flex-direction: column; gap: 4px; }
.split-item { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.split-item:last-child { border: none; }
.split-item .name { flex: 1; font-weight: 600; }
.checkbox { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; cursor: pointer; transition: all .12s; color: #fff; font-size: 15px; }
.checkbox.on { background: #141923; border-color: #141923; }
.split-share { font-size: 13px; color: var(--slate); font-weight: 600; }

/* ---------- Qui a payé : mode + multi ---------- */
.paymode { display: flex; gap: 8px; background: var(--bg); padding: 5px; border-radius: 13px; margin-bottom: 16px; }
.pill { flex: 1; border: none; background: none; padding: 10px; border-radius: 9px; font-family: inherit; font-weight: 700; font-size: 14px; color: var(--slate); cursor: pointer; transition: all .15s; }
.pill.on { background: #fff; color: #334155; box-shadow: var(--shadow); }
.pay-list { display: flex; flex-direction: column; gap: 4px; }
.pay-item { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pay-item:last-child { border: none; }
.pay-item .name { flex: 1; font-weight: 600; }
.pay-item .cur { color: var(--slate); font-weight: 600; }
.pay-input { width: 92px; border: 2px solid var(--line); border-radius: 11px; padding: 10px 12px; font-size: 16px; font-family: inherit; text-align: right; outline: none; transition: border-color .15s; }
.pay-input:focus { border-color: var(--ink); }
.pay-total { margin-top: 12px; text-align: right; font-size: 14px; color: var(--slate); }
.pay-total b { color: var(--ink); font-size: 16px; }

.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 14px;
  font-weight: 600; font-size: 14px; z-index: 200; box-shadow: var(--shadow-lg);
  animation: toastIn .25s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Avatar bouton (top-bar accueil) ---------- */
.avatar-btn {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; cursor: pointer;
  background: rgba(255,255,255,.22); color: #fff; border: none;
  display: grid; place-items: center; font-weight: 700; font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4); transition: transform .1s;
}
.avatar-btn:active { transform: scale(.94); }

/* ---------- Profil : en-tête héros ---------- */
.profile-hero {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background: linear-gradient(150deg, #11151e 0%, #2b3242 100%);
  border-radius: 0 0 34px 34px; padding: calc(18px + env(safe-area-inset-top)) 20px 24px;
  box-shadow: 0 16px 40px rgba(17,24,39,.3);
}
.profile-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.13) 0%, rgba(255,255,255,.03) 32%, rgba(255,255,255,0) 54%);
  pointer-events: none;
}
.profile-hero::after {
  content: ""; position: absolute; top: -55%; right: -12%; width: 62%; height: 170%;
  transform: rotate(18deg); background: radial-gradient(closest-side, rgba(255,255,255,.12), rgba(255,255,255,0) 70%);
  pointer-events: none;
}
.profile-hero > * { position: relative; z-index: 1; }
.profile-hero .back-btn { position: absolute; left: 18px; top: calc(env(safe-area-inset-top) + 10px); }
.avatar-wrap { position: relative; width: 96px; height: 96px; margin: 8px auto 12px; }
.profile-avatar {
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 36px; color: #fff;
  background: rgba(255,255,255,.18);
  border: 4px solid rgba(255,255,255,.7);
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
}
.cam-badge {
  position: absolute; right: -2px; bottom: -2px; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; color: #334155; border: none; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.18);
  transition: transform .1s;
}
.cam-badge:active { transform: scale(.9); }
.profile-hero h2 { font-size: 23px; font-weight: 700; letter-spacing: -.4px; }
.profile-hero p { opacity: .9; font-size: 13.5px; margin-top: 4px; }
.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 18px; background: rgba(255,255,255,.15); border-radius: 16px; padding: 12px 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.hero-stats > div { display: flex; flex-direction: column; align-items: center; min-width: 60px; }
.hero-stats b { font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.hero-stats span { font-size: 11.5px; opacity: .85; margin-top: 1px; }
.hero-stats .sep { width: 1px; min-width: 1px; height: 26px; background: rgba(255,255,255,.3); }

.menu-ic { color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }

/* ---------- Onboarding ---------- */
.onb {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: calc(40px + env(safe-area-inset-top)) 28px calc(34px + env(safe-area-inset-bottom)); position: relative;
  background: linear-gradient(160deg, var(--teal) 0%, var(--teal-flash) 100%);
}
.onb-skip { position: absolute; top: calc(22px + env(safe-area-inset-top)); right: 22px; background: none; border: none; color: rgba(255,255,255,.85); font-family: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.onb-illus { width: 230px; max-width: 70vw; margin-bottom: 30px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.18)); }
.onb-illus svg { width: 100%; height: auto; }
.onb-dots { display: flex; gap: 8px; margin-bottom: 22px; }
.onb-dots .dot { width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.4); transition: all .25s; }
.onb-dots .dot.on { width: 24px; background: #fff; }
.onb-title { font-size: 27px; font-weight: 800; line-height: 1.2; letter-spacing: -.6px; }
.onb-text { font-size: 15px; line-height: 1.55; opacity: .92; margin-top: 14px; max-width: 360px; }
.onb-actions { width: 100%; max-width: 360px; margin-top: 24px; }
/* Page de choix de la langue (1re page d'intro) */
.lang-globe { font-size: 52px; line-height: 1; margin-bottom: 14px; }
.lang-list { width: 100%; max-width: 360px; margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.lang-card {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 13px 16px; border-radius: 16px; cursor: pointer; font-family: inherit;
  background: rgba(255,255,255,.16); border: 2px solid rgba(255,255,255,.35);
  color: #fff; transition: all .14s; text-align: left;
}
.lang-card.on { background: #fff; border-color: #fff; color: var(--ink); box-shadow: 0 8px 20px rgba(0,0,0,.16); }
.lang-flag {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 24px; line-height: 1;
  background: rgba(255,255,255,.9); box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
}
.lang-name { flex: 1; font-size: 16.5px; font-weight: 700; }
.lang-check { width: 22px; display: grid; place-items: center; color: var(--teal); }
.lang-check .ic { stroke-width: 3; }
.btn-white { background: #fff; color: #334155; box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.btn-white:hover { filter: brightness(.98); }
.btn-white .ic { display: inline-block; vertical-align: -3px; }

.onb-auth { justify-content: space-between; }
.auth-top { display: flex; flex-direction: column; align-items: center; margin-top: 40px; }
.auth-logo { width: 86px; height: 86px; border-radius: 26px; background: rgba(255,255,255,.95); display: grid; place-items: center; margin-bottom: 22px; box-shadow: 0 14px 32px rgba(0,0,0,.2); }
.auth-logo img { width: 60px; height: 60px; object-fit: contain; }
.auth-actions { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 6px; }
.auth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 15px 16px; border-radius: 15px; font-family: inherit; font-size: 16px; font-weight: 700; cursor: pointer; border: none; transition: filter .14s, transform .1s; }
.auth-btn:active { transform: scale(.985); }
.auth-ic { display: inline-flex; align-items: center; }
.auth-apple { background: #000; color: #fff; }
.auth-google { background: #fff; color: #1f2937; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.auth-email { background: rgba(255,255,255,.18); color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.auth-email .ic { color: #fff; }
.auth-skip { background: none; border: none; color: #fff; opacity: .92; font-family: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; padding: 10px; text-decoration: underline; margin-top: 2px; }
.onb-signup { justify-content: center; }
.onb-logo { width: 60px; height: 60px; border-radius: 18px; background: rgba(255,255,255,.2); display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.onb-form { width: 100%; max-width: 360px; margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.onb-input { border: none; border-radius: 14px; padding: 15px 17px; font-size: 16px; font-family: inherit; outline: none; background: rgba(255,255,255,.95); color: var(--ink); box-shadow: 0 6px 18px rgba(0,0,0,.1); }
.onb-input::placeholder { color: var(--slate-light); }
.onb-fine { font-size: 12.5px; opacity: .82; margin-top: 22px; }
.onb-avatar { width: 100px; height: 100px; border-radius: 50%; overflow: hidden; border: 4px solid rgba(255,255,255,.75); box-shadow: 0 12px 26px rgba(0,0,0,.2); }
.onb-avatar svg { width: 100%; height: 100%; display: block; }

/* Avatar personnage (remplit le cercle) */
.av-char { overflow: hidden; }
.av-char svg { width: 100%; height: 100%; display: block; }

/* Choix Homme / Femme */
.gender-pills { display: flex; gap: 10px; }
.gpill { flex: 1; padding: 13px 10px; border-radius: 13px; border: 2px solid var(--line); background: #fff; font-family: inherit; font-weight: 600; font-size: 15px; color: var(--slate); cursor: pointer; transition: all .14s; }
.gpill.on { border-color: #141923; background: #141923; color: #fff; }

.menu { background: var(--card); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.6); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.menu-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; border-bottom: 1px solid var(--line); transition: background .12s; }
.menu-row:last-child { border-bottom: none; }
.menu-row:active { background: rgba(var(--glow-rgb), .06); }
.menu-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(150deg, var(--tint1), var(--tint2)); flex-shrink: 0; }
.menu-row .m-label { flex: 1; font-weight: 600; font-size: 15.5px; }
.menu-row .m-sub { font-size: 12.5px; color: var(--slate-light); font-weight: 500; margin-top: 1px; }
.menu-row .m-chev { color: var(--slate-light); }

/* ---------- Sélecteur de couleurs ---------- */
.swatches { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; padding: 8px 0 4px; }
.swatch { width: 60px; display: flex; flex-direction: column; align-items: center; gap: 7px; cursor: pointer; }
.swatch .dot { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); border: 3px solid transparent; transition: transform .12s; }
.swatch.sel .dot { border-color: #fff; outline: 3px solid currentColor; transform: scale(1.06); }
.swatch .lab { font-size: 12px; font-weight: 600; color: var(--slate); }

/* ---------- Statistiques ---------- */
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 6px; }
.kpi { background: linear-gradient(150deg, #f1f4f8, #e8edf3); border-radius: 16px; padding: 15px; }
.kpi .k-val { font-size: 23px; font-weight: 800; letter-spacing: -.5px; color: var(--ink); }
.kpi .k-lab { font-size: 12.5px; color: var(--slate); font-weight: 600; margin-top: 3px; }
.bar-row { padding: 11px 0; border-bottom: 1px solid var(--line); }
.bar-row:last-child { border: none; }
.bar-top { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.bar-top .b-amt { color: var(--ink); }
.bar-track { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #475569, #1f2937); }

/* ---------- Amis ---------- */
.friend-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.friend-row:last-child { border: none; }
.friend-row .name { flex: 1; font-weight: 600; }
.friend-sub { font-size: 12px; color: var(--slate-light); font-weight: 600; margin-top: 1px; }
.friend-row .del { color: var(--slate-light); cursor: pointer; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.friend-row .del:active { background: #fff1f2; color: var(--rose); }

/* ---------- Justificatif (reçu) ---------- */
.receipt-add { display: flex; gap: 10px; }
.receipt-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 16px 8px; border-radius: 14px; border: 2px dashed #94a3b8; background: #eef1f6;
  color: #334155; font-family: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer;
  transition: transform .1s;
}
.receipt-btn.ghost { border-color: var(--line); background: #fff; color: var(--slate); }
.receipt-btn:active { transform: scale(.97); }
.receipt-preview { display: flex; flex-direction: column; gap: 10px; }
.receipt-preview img { width: 100%; max-height: 240px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); cursor: zoom-in; }
.receipt-actions { display: flex; gap: 9px; }
.receipt-actions .btn { flex: 1; padding: 11px; }
.receipt-tag {
  display: inline-grid; place-items: center; vertical-align: -2px;
  width: 20px; height: 20px; border-radius: 6px; color: #334155;
  background: #eef1f6; margin-left: 2px;
}
.receipt-viewer {
  position: fixed; inset: 0; z-index: 300; background: rgba(8, 14, 20, .92);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: toastIn .2s ease;
}
.receipt-viewer img { max-width: 100%; max-height: 90vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.rv-close {
  position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff; border: none; cursor: pointer; display: grid; place-items: center;
}

/* ---------- Budget ---------- */
.budget-bar {
  margin-top: 12px; background: rgba(255,255,255,.15); border-radius: 14px;
  padding: 11px 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.25); position: relative; z-index: 1;
}
.budget-bar .bb-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.bb-track { height: 8px; border-radius: 99px; background: rgba(255,255,255,.25); overflow: hidden; }
.bb-fill { height: 100%; border-radius: 99px; background: #fff; transition: width .4s ease; }
.budget-bar.over .bb-fill { background: linear-gradient(90deg, #ffd166, #ff5d5d); }
.bb-warn { display: flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 12.5px; font-weight: 700; color: #fff; background: rgba(225,29,72,.55); padding: 6px 10px; border-radius: 10px; }
.bb-warn .ic { flex-shrink: 0; }

.alert-emoji { font-size: 52px; line-height: 1; }
.budget-alert-box { background: var(--bg); border-radius: 14px; padding: 4px 16px; text-align: left; }
.budget-alert-box > div { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.budget-alert-box > div:last-child { border-bottom: none; }
.budget-alert-box span { color: var(--slate); }
.budget-alert-box b { font-weight: 700; font-size: 16px; }
.budget-alert-box .over b { color: var(--rose); }

/* ---------- Payé par : boutons ---------- */
.payer-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.payer-chip {
  border: 2px solid var(--line); background: #fff; color: var(--ink);
  font-family: inherit; font-weight: 600; font-size: 14.5px; padding: 10px 14px;
  border-radius: 12px; cursor: pointer; transition: all .14s;
}
.payer-chip.on { border-color: #141923; background: #141923; color: #fff; }

/* ---------- Petit texte de partage ---------- */
.share-note {
  display: flex; align-items: center; gap: 8px; margin-top: 16px;
  font-size: 13.5px; color: var(--slate); background: #eef1f6;
  border-radius: 12px; padding: 12px 14px; line-height: 1.4;
}
.share-note .ic { color: #334155; flex-shrink: 0; }

/* ---------- Bouton définir un budget ---------- */
.budget-add {
  margin-top: 12px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px;
  background: rgba(255,255,255,.18); color: #fff; border: 1.5px dashed rgba(255,255,255,.5);
  border-radius: 14px; padding: 11px; font-family: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer; position: relative; z-index: 1;
}
.budget-add:active { background: rgba(255,255,255,.28); }

/* ---------- Bouton fermer (modales) ---------- */
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--bg); color: var(--slate); display: grid; place-items: center;
  transition: background .12s, transform .1s;
}
.modal-close:active { transform: scale(.9); background: var(--line); }
.modal h2 { padding-right: 38px; }

/* ---------- Swipe groupe (Modifier / Supprimer) ---------- */
.swipe-wrap { position: relative; margin-bottom: 14px; border-radius: var(--radius); overflow: hidden; }
.swipe-actions {
  position: absolute; top: 0; right: 0; bottom: 0; display: flex; align-items: stretch;
}
.swipe-actions button {
  border: none; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 12.5px;
  color: #fff; width: 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.swipe-actions .swipe-done { background: #16a34a; }
.swipe-actions .swipe-done.reopen { background: #d97706; }
.swipe-actions .swipe-edit { background: #64748b; }
.swipe-actions .swipe-del { background: #e11d48; }
.swipe-card { position: relative; z-index: 1; margin-bottom: 0 !important; touch-action: pan-y; transition: transform .28s cubic-bezier(.22,1,.36,1); will-change: transform; }
.swipe-card.swiping { transition: none; }

/* ---------- Icône réglages collée à l'avatar (accueil) ---------- */
.avatar-slot { position: relative; flex-shrink: 0; }
.avatar-gear {
  position: absolute; right: -3px; bottom: -3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; color: var(--ink); border: none; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.25);
  transition: transform .1s;
}
.avatar-gear:active { transform: scale(.85); }

/* ---------- Remboursement : barre dégradé animée (coule de gauche → droite) ---------- */
.s-flowbar {
  width: 100%; height: 10px; border-radius: 99px;
  background-image: linear-gradient(90deg, var(--c1), var(--c2), var(--c1), var(--c2), var(--c1));
  background-size: 200% 100%;
  animation: flowbar 1.1s linear infinite;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.03);
}
@keyframes flowbar { from { background-position: 200% 50%; } to { background-position: 0% 50%; } }

/* ---------- Cloche notifications ---------- */
.bell-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.22); color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .1s;
}
.bell-btn:active { transform: scale(.92); }
.bell-badge {
  position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 99px; background: #ff3b30; color: #fff; font-size: 11px; font-weight: 800;
  display: grid; place-items: center; box-shadow: 0 0 0 2px rgba(0,0,0,.05);
}
.notif-row { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.notif-row:last-child { border-bottom: none; }
.notif-ic { width: 34px; height: 34px; border-radius: 10px; background: #eef1f6; color: #475569; display: grid; place-items: center; flex-shrink: 0; }
.notif-row.unread .notif-ic { background: #141923; color: #fff; }
.notif-body { flex: 1; min-width: 0; }
.notif-text { font-size: 14px; color: var(--ink); font-weight: 500; line-height: 1.35; }
.notif-row.unread .notif-text { font-weight: 700; }
.notif-meta { font-size: 12px; color: var(--slate-light); margin-top: 2px; }

/* ---------- Lecture seule (non-créateur) ---------- */
.readonly-pill {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  background: rgba(255,255,255,.2); color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 8px 12px; border-radius: 13px; box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
}
.readonly-bar {
  position: fixed; bottom: calc(20px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  z-index: 30; display: flex; align-items: center; gap: 8px; max-width: 90%;
  background: #141923; color: #fff; font-size: 13.5px; font-weight: 600;
  padding: 12px 18px; border-radius: 999px; box-shadow: 0 12px 30px rgba(15,23,42,.35);
}
@media (min-width: 480px) { .readonly-bar { left: 50%; } }

/* ---------- Abonnement (paywall) ---------- */
.paywall-feats { text-align: left; background: #f4f6f9; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.paywall-feats > div { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--ink); }
.paywall-feats .ic { color: var(--green); flex-shrink: 0; }
.paywall-feats b { font-weight: 700; }
.paywall-price { font-size: 15px; color: var(--slate); margin-bottom: 16px; }
.paywall-price b { font-size: 26px; color: var(--ink); font-weight: 800; letter-spacing: -.5px; }
.sub-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #f4f6f9; border-radius: 13px; padding: 11px 13px; font-size: 13.5px; font-weight: 600; color: var(--slate); }
.sub-status.on { background: #e9f9ef; color: var(--green); }

/* ---------- Vue dépense (lecture seule) ---------- */
.exp-view-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.exp-view-head h2 { font-size: 21px; letter-spacing: -.4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exp-view-amt { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.5px; margin-top: 2px; }
.exp-view-rows { background: #f4f6f9; border-radius: 14px; padding: 4px 14px; }
.evr { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.evr:last-child { border-bottom: none; }
.evr span { color: var(--slate); flex-shrink: 0; }
.evr b { color: var(--ink); font-weight: 600; text-align: right; }
.ev-section-title { font-size: 12px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--slate-light); margin: 16px 2px 8px; }
.ev-card { margin: 0 !important; padding: 2px 16px; }
.ev-person { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ev-person:last-child { border-bottom: none; }
.ev-name { flex: 1; font-weight: 600; }
.ev-amt { font-weight: 700; color: var(--ink); white-space: nowrap; }
.ev-amt.faded { color: var(--slate-light); font-weight: 600; }
.ev-receipt { position: relative; border-radius: 14px; overflow: hidden; cursor: pointer; }
.ev-receipt img { width: 100%; max-height: 160px; object-fit: cover; display: block; }
.ev-receipt span { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; }
.ev-receipt span .ic { color: #fff; }

.hidden { display: none !important; }

.muted-note { font-size: 12.5px; color: var(--slate-light); text-align: center; margin-top: 20px; line-height: 1.5; }

.info-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: #eef1f6; border: 1px solid #e3e8ef;
  border-radius: 14px; padding: 13px 15px; margin-top: 14px;
  font-size: 13px; line-height: 1.5; color: var(--slate);
}
.info-note .ic { color: #334155; flex-shrink: 0; margin-top: 1px; }
.info-note b { color: var(--ink); font-weight: 600; }
