:root {
  /* Premium dark — deep teal-blue base */
  --tb-cream: #062B36;            /* page background */
  --tb-cream-dark: #073B4C;       /* secondary/header */
  --tb-teal: #073B4C;
  --tb-teal-dark: #062B36;
  --tb-teal-darker: #051f26;
  
  /* Accent — mint, used sparingly */
  --tb-gold: #58E0C1;
  --tb-gold-light: #45C9AC;
  
  /* Premium gold (used very rarely, e.g. spiritual references) */
  --tb-gold-premium: #D4AF5A;
  
  /* Cause/event colors */
  --tb-rose: #ec6195;
  --tb-green: #58E0C1;
  --tb-red: #ff6b6b;
  
  /* Text */
  --tb-text: #F5F7FA;             /* main text — off-white, less harsh */
  --tb-text-soft: #A9BCC5;
  --tb-text-light: #6f8693;
  
  /* Borders — very subtle */
  --tb-border: rgba(255, 255, 255, 0.06);
  --tb-border-light: rgba(255, 255, 255, 0.03);
  
  /* Surfaces — translucent white over dark base, not coloured */
  --surface-1: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-3: rgba(255, 255, 255, 0.08);
  
  --display: 'Fraunces', Georgia, serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --safe-top: env(safe-area-inset-top, 0);
  --safe-bottom: env(safe-area-inset-bottom, 0);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body {
  background: #062B36 !important;
  color: #F5F7FA !important;
  height: 100%;
  overscroll-behavior-y: none;
  color-scheme: dark !important;
  forced-color-adjust: none;
  -webkit-text-fill-color: initial;
}
html, body { overflow-x: hidden; }
body {
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
  line-height: 1.5;
  touch-action: manipulation; /* désactive le double-tap zoom iOS Safari */
}

/* Disable iOS forced colors that override the dark theme */
@media (forced-colors: active) {
  * { forced-color-adjust: none !important; }
}

/* Block iOS Safari Reader-style auto color adjustments */
* {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* Force opaque dark background on all top-level containers — iOS sometimes
   applies a "smart invert" or auto-light filter, this defeats it */
#app, .page, .page.active {
  background-color: #062B36;
}

button { font-family: var(--body); }
input, textarea { font-family: var(--body); -webkit-appearance: none; }

/* ============================================================================
   APP SHELL
============================================================================ */
.app {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: flex;
  flex-direction: column;
}


/* ============================================================================
   PAGES (router)
============================================================================ */
.page {
  display: none;
  min-height: calc(100vh - 72px - var(--safe-bottom));
  min-height: calc(100dvh - 72px - var(--safe-bottom));
  background: #062B36;
}
.page.active {
  display: block;
  animation: pageIn 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================================================
   HEADER
============================================================================ */
.header {
  background: linear-gradient(180deg, var(--tb-cream) 0%, var(--tb-cream-dark) 100%);
  color: var(--tb-text);
  padding: calc(var(--safe-top) + 14px) 18px 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--tb-border);
}

/* Page-specific header (back nav) */
.page-header {
  background: var(--tb-cream-dark);
  color: var(--tb-text);
  padding: calc(var(--safe-top) + 12px) 16px 14px;
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--tb-border);
}
.page-header-back {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--tb-border);
  color: var(--tb-text);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.page-header-back:active { background: rgba(255,255,255,0.12); transform: scale(0.92); }
.page-header-title {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: 18px;
  letter-spacing: -0.3px;
  color: var(--tb-text);
  flex: 1;
}

/* ============================================================================
   CONTAINERS
============================================================================ */
.container { padding: 16px 16px calc(120px + var(--safe-bottom)); max-width: 600px; margin: 0 auto; }

/* CTA "Compléter mon Maasser" */
.cta-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(180deg, #58E0C1 0%, #42C5A7 100%);
  color: #FFFFFF;
  border: none;
  padding: 17px 22px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  margin-top: 16px;
  box-shadow: 0 8px 22px rgba(88, 224, 193, 0.12);
  transition: all 0.2s ease;
  letter-spacing: -0.2px;
  position: relative;
  overflow: hidden;
}
.cta-primary strong {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 17px;
  letter-spacing: -0.5px;
  color: #FFFFFF;
}
.cta-primary:active { transform: translateY(2px); box-shadow: 0 3px 10px rgba(88, 224, 193, 0.10); }

/* ============================================================================
   SECTIONS
============================================================================ */
.section {
  background: var(--surface-1);
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--tb-border);
}

/* ============================================================================
   BOTTOM NAV
============================================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(7, 59, 76, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--tb-border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 100;
  padding-bottom: var(--safe-bottom);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 0 10px;
  cursor: pointer;
  color: var(--tb-text-soft);
  font-size: 10.5px;
  font-weight: 600;
  transition: all 0.25s;
  position: relative;
}
.nav-item.active { color: var(--tb-gold-premium); }
.nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background: var(--tb-gold-premium);
  border-radius: 0 0 2px 2px;
}
.nav-icon {
  width: 22px;
  height: 22px;
  transition: transform 0.25s;
  color: currentColor;
  display: block;
  stroke-width: 1.8;
  opacity: 0.7;
}
.nav-item.active .nav-icon {
  transform: scale(1.05) translateY(-1px);
  opacity: 1;
  stroke-width: 2.2;
}

/* ============================================================================
   LOGIN SCREEN
============================================================================ */
.login-screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--safe-top) + 32px) 32px calc(var(--safe-bottom) + 32px);
  text-align: center;
  background: linear-gradient(180deg, var(--tb-cream) 0%, var(--surface-2) 100%);
  position: fixed;
  inset: 0;
  z-index: 200;
}
.login-logo {
  width: 88px;
  height: 88px;
  background: var(--tb-teal-darker);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 46px;
  color: var(--tb-gold);
  margin-bottom: 26px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  position: relative;
}
.login-logo::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  opacity: 0.3;
}
.login-title {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 36px;
  color: var(--tb-text);
  letter-spacing: -1.2px;
  margin-bottom: 8px;
  line-height: 1.05;
}
.login-title .gold { color: var(--tb-gold); }
.login-subtitle {
  color: var(--tb-text-soft);
  font-size: 14.5px;
  margin-bottom: 36px;
  line-height: 1.5;
  max-width: 320px;
}
.login-btn {
  width: 100%;
  max-width: 340px;
  padding: 14px 18px;
  border-radius: 100px;
  border: none;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  letter-spacing: -0.2px;
}
.login-btn-google {
  background: var(--surface-1);
  color: var(--tb-text);
  border: 1.5px solid var(--tb-border);
}
.login-btn-google:active { background: #f5f5f7; transform: translateY(1px); }
.login-btn-email {
  background: var(--tb-gold);
  color: #0a1c22;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}
.login-btn-email:active { transform: translateY(1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); }
.login-skip {
  margin-top: 22px;
  font-size: 12px;
  color: var(--tb-text-soft);
  cursor: pointer;
  text-decoration: underline;
  padding: 6px 12px;
}
.login-close {
  position: absolute;
  top: calc(var(--safe-top) + 14px);
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(20, 56, 67, 0.08);
  border: none;
  color: var(--tb-text);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.login-close:active { background: rgba(20, 56, 67, 0.15); transform: scale(0.92); }

/* ============================================================================
   ONBOARDING
============================================================================ */
.onboarding {
  position: fixed;
  inset: 0;
  background: var(--tb-cream);
  z-index: 190;
  display: flex;
  flex-direction: column;
  padding: calc(var(--safe-top) + 24px) 24px calc(var(--safe-bottom) + 24px);
}
.onboarding-skip {
  align-self: flex-end;
  font-size: 13px;
  color: var(--tb-text-soft);
  cursor: pointer;
  padding: 6px 10px;
  font-weight: 600;
}
.onboarding-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.onboarding-emoji {
  font-size: 88px;
  margin-bottom: 24px;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.1));
}
.onboarding-title {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 28px;
  color: var(--tb-text);
  letter-spacing: -0.8px;
  margin-bottom: 12px;
  line-height: 1.1;
  max-width: 320px;
}
.onboarding-text {
  color: var(--tb-text-soft);
  font-size: 15px;
  line-height: 1.55;
  max-width: 320px;
}
.onboarding-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}
.onboarding-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tb-border);
  transition: all 0.3s;
}
.onboarding-dot.active { background: var(--tb-gold); width: 22px; border-radius: 4px; }
.onboarding-btn {
  width: 100%;
  background: var(--tb-gold);
  color: #0a1c22;
  border: none;
  padding: 16px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  letter-spacing: -0.2px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}
.onboarding-btn:active { transform: translateY(1px); }

.frequency-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--tb-cream-dark);
  border-radius: 100px;
  padding: 4px;
  margin-bottom: 16px;
}
.freq-btn {
  border: none;
  background: transparent;
  padding: 11px;
  border-radius: 100px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  color: var(--tb-text-soft);
  transition: all 0.2s;
}
.freq-btn.active {
  background: linear-gradient(180deg, #58E0C1 0%, #42C5A7 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(88, 224, 193, 0.12);
}

/* ============================================================================
   TOAST
============================================================================ */
.toast {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tb-green);
  color: white;
  padding: 13px 22px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 13.5px;
  z-index: 300;
  box-shadow: 0 14px 36px rgba(58, 157, 110, 0.4);
  transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  max-width: 90vw;
}
.toast.show { top: calc(var(--safe-top) + 16px); }
.toast.error { background: var(--tb-red); box-shadow: 0 14px 36px rgba(196, 72, 72, 0.4); }

/* ============================================================================
   PWA install prompt (subtle, dismissible)
============================================================================ */
.install-prompt {
  position: fixed;
  bottom: calc(72px + var(--safe-bottom) + 12px);
  left: 12px;
  right: 12px;
  background: var(--surface-3);
  color: var(--tb-text);
  border: 1px solid var(--tb-border);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 90;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 600px;
  margin: 0 auto;
}
.install-prompt.show { transform: translateY(0); }
.install-prompt-icon { font-size: 26px; }
.install-prompt-text { flex: 1; font-size: 12.5px; line-height: 1.4; color: var(--tb-text-soft); }
.install-prompt-text strong { display: block; font-size: 13.5px; margin-bottom: 2px; color: var(--tb-text); }
.install-prompt-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--tb-border);
  color: var(--tb-text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 2;
  transition: all 0.15s;
}
.install-prompt-close:active {
  background: rgba(255,255,255,0.14);
  transform: scale(0.92);
}

/* ============================================================================
   MICRO INTERACTIONS
============================================================================ */
@keyframes checkBurst {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}


.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.06);
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
}
.success-overlay.show { display: flex; }
.success-check {
  width: 110px;
  height: 110px;
  background: var(--tb-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: white;
  margin-bottom: 24px;
  animation: checkBurst 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 50px rgba(58, 157, 110, 0.4);
}
.success-title {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 28px;
  color: var(--tb-text);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.6px;
}
.success-amount {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 36px;
  color: var(--tb-green);
  margin-bottom: 24px;
  letter-spacing: -1px;
}

/* iPhone safe area */
@supports (padding: max(0px)) {
  body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Hide nav locks for anonymous - just show muted state */
body.mode-anonymous .nav-item[data-nav="history"],
body.mode-anonymous .nav-item[data-nav="settings"] {
  opacity: 0.55;
}
body.mode-anonymous .nav-item[data-nav="history"]::after,
body.mode-anonymous .nav-item[data-nav="settings"]::after {
  content: '🔒';
  position: absolute;
  top: 6px;
  right: 28%;
  font-size: 9px;
  opacity: 0.6;
}

/* QUICK DONATE */
.qd-amount-card {
  background: var(--surface-1);
  color: var(--tb-text);
  border: 1px solid var(--tb-border);
  border-radius: 22px;
  padding: 22px 22px;
  text-align: center;
  margin-bottom: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  position: relative;
  width: 100%;
  cursor: pointer;
  font-family: var(--body);
  display: block;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease;
}
.qd-amount-card:active {
  transform: scale(0.985);
  border-color: rgba(255, 255, 255, 0.10);
}
.qd-amount-card::before {
  display: none;
}
.qd-amount-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--tb-text-soft); font-weight: 700; margin-bottom: 12px;
}
.qd-amount-input-wrap {
  display: flex; align-items: baseline; justify-content: center;
  gap: 6px; margin-bottom: 6px;
}
.qd-amount-display {
  font-family: var(--display); font-weight: 900; font-style: italic;
  font-size: 52px; color: var(--tb-gold-premium);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: inline-block;
}
.qd-amount-card.empty .qd-amount-display { color: rgba(212, 175, 90, 0.30); }
.qd-amount-currency {
  font-family: var(--display); font-weight: 900; font-style: italic;
  font-size: 32px; color: var(--tb-gold-premium); letter-spacing: -1px;
  opacity: 0.85;
}
.qd-amount-period {
  font-size: 12.5px; color: var(--tb-text-soft);
  font-weight: 500; margin-top: 4px;
}
.qd-amount-card.empty .qd-amount-period {
  color: var(--tb-gold);
  font-weight: 600;
}

.qd-suggestion {
  background: var(--surface-1); border: 1.5px solid var(--tb-border);
  padding: 13px 6px; border-radius: 12px; cursor: pointer;
  font-family: var(--display); font-weight: 900; font-style: italic;
  font-size: 15px; color: var(--tb-text);
  transition: all 0.2s; letter-spacing: -0.3px;
  font-variant-numeric: tabular-nums;
}
.qd-suggestion:active { transform: scale(0.94); }
.qd-suggestion.active {
  background: var(--tb-teal-darker); color: var(--tb-gold-light);
  border-color: var(--tb-text);
}

/* DISPATCH PAGE */
.dispatch-recap {
  background: linear-gradient(135deg, var(--surface-1) 0%, var(--surface-2) 100%);
  border: 1px solid var(--tb-border); border-radius: 18px;
  padding: 16px 18px; margin-bottom: 14px;
  text-align: center; position: relative; overflow: hidden;
}
.dispatch-recap::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--tb-gold) 0%, var(--tb-gold-light) 50%, var(--tb-gold) 100%);
}
.dispatch-recap-label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.8px;
  color: var(--tb-text-soft); font-weight: 700; margin-bottom: 4px;
}
.dispatch-recap-amount {
  font-family: var(--display); font-weight: 900; font-style: italic;
  font-size: 36px; color: var(--tb-gold-premium);
  letter-spacing: -1px; font-variant-numeric: tabular-nums; line-height: 1;
}
.dispatch-recap-freq {
  display: block; font-family: var(--body);
  font-weight: 500; font-style: normal;
  font-size: 12px; color: var(--tb-text-soft);
  margin-top: 4px; letter-spacing: 0;
}

/* Citation Malakhi : blockquote premium */
.dispatch-intro-quote {
  margin: 22px auto;
  padding: 18px 20px;
  max-width: 500px;
  background: rgba(212, 175, 90, 0.06);
  border-left: 3px solid var(--tb-gold-premium);
  border-radius: 0 12px 12px 0;
  text-align: left;
}
.dispatch-intro-quote p {
  margin: 0 0 8px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: var(--tb-text);
  letter-spacing: -0.2px;
}
.dispatch-intro-quote p em {
  font-style: italic;
  color: var(--tb-gold-premium);
  font-weight: 600;
}
.dispatch-intro-quote cite {
  display: block;
  font-family: var(--body);
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--tb-gold-premium);
}

/* Section title with numbered badge (used on dispatch & quick-donate pages) */
.dispatch-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 15px;
  color: var(--tb-text);
  letter-spacing: -0.3px;
  margin: 0 0 12px;
}
.dispatch-section-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--tb-gold);
  color: #0a1c22;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* MAASSER INFO POPUP (educational content) */
.maasser-info {
  padding: 4px 4px 0;
}
.maasser-info-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid rgba(88, 224, 193, 0.18);
}
.maasser-info-emoji { font-size: 24px; line-height: 1; }
.maasser-info-title {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 19px;
  color: var(--tb-text);
  letter-spacing: -0.4px;
}
.maasser-info-lead {
  font-size: 13.5px;
  color: var(--tb-text);
  line-height: 1.55;
  margin: 0 0 16px;
  font-weight: 500;
}
.maasser-info-lead strong {
  color: var(--tb-text);
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 15px;
  letter-spacing: -0.3px;
}
.maasser-info-section {
  margin-bottom: 14px;
}
.maasser-info-section:last-child { margin-bottom: 0; }
.maasser-info-subtitle {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 14px;
  color: var(--tb-text);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.maasser-info-section p {
  font-size: 12.5px;
  color: var(--tb-text);
  line-height: 1.55;
  margin: 0 0 6px;
  font-weight: 500;
}
.maasser-info-section p:last-child { margin-bottom: 0; }
.maasser-info-section p strong {
  color: var(--tb-text);
  font-weight: 700;
}
.maasser-info-source {
  font-size: 11px !important;
  color: var(--tb-gold) !important;
  font-style: italic;
  font-weight: 600 !important;
  margin: -2px 0 8px !important;
}

.halakha-faq-item {
  background: var(--surface-1);
  border: 1px solid var(--tb-border);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: all 0.25s;
}
.halakha-faq-item.open {
  border-color: var(--tb-text-soft);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.maasser-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--tb-cream-dark);
  border-radius: 100px;
  padding: 4px;
  margin-bottom: 16px;
}
.maasser-tab {
  border: none;
  background: transparent;
  padding: 10px 8px;
  border-radius: 100px;
  cursor: pointer;
  font-family: var(--body);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--tb-text-soft);
  transition: all 0.2s;
  letter-spacing: -0.1px;
  -webkit-tap-highlight-color: transparent;
}
.maasser-tab.active {
  background: var(--tb-gold);
  color: #0a1c22;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.maasser-tab:active { transform: scale(0.97); }

.maasser-tab-content { display: none; }
.maasser-tab-content.active {
  display: block;
  animation: detailIn 0.25s ease;
}

/* Story cards */





















/* Color tokens per cause */
.cause-tile[data-cat="orphelins"], .dispatch-detail[data-cat="orphelins"] { --c-color: #4a6fa5; }
.cause-tile[data-cat="chabbath"], .dispatch-detail[data-cat="chabbath"] { --c-color: #d68c2a; }
.cause-tile[data-cat="torah"], .dispatch-detail[data-cat="torah"] { --c-color: #8e5cb3; }
.cause-tile[data-cat="malades"], .dispatch-detail[data-cat="malades"] { --c-color: #c44848; }
.cause-tile[data-cat="collel"], .dispatch-detail[data-cat="collel"] { --c-color: #3a9d6e; }
.cause-tile[data-cat="mariages"], .dispatch-detail[data-cat="mariages"] { --c-color: #d4477a; }

/* Grid 3x2 of cause tiles */
.dispatch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.cause-tile {
  background: var(--surface-1);
  border: 1.5px solid var(--tb-border);
  border-radius: 14px;
  padding: 10px 6px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
  font-family: var(--body);
  position: relative;
}
.cause-tile:active { transform: scale(0.95); }
.cause-tile.has-share {
  border-color: var(--c-color, var(--tb-teal));
  border-width: 2px;
  background: color-mix(in srgb, var(--c-color, var(--tb-teal-dark)) 5%, var(--surface-1));
}
.cause-tile.selected {
  background: color-mix(in srgb, var(--c-color, var(--tb-teal-dark)) 10%, var(--surface-1));
  border-color: var(--c-color, var(--tb-teal));
  border-width: 2px;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--c-color, var(--tb-teal)) 25%, transparent);
}

/* Photo round + percentage badge overlay */
.cause-tile-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35), 0 0 0 2.5px white;
  overflow: visible;
}
.cause-tile-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px solid var(--c-color, var(--tb-teal));
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.2s, border-width 0.2s;
}
.cause-tile.has-share .cause-tile-photo::after {
  opacity: 1;
  border-width: 3px;
}
.cause-tile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.cause-tile-pct {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--c-color, var(--tb-teal));
  color: white;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 100px;
  letter-spacing: -0.3px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.20);
  z-index: 2;
  line-height: 1.2;
}

.cause-tile-name {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--tb-text);
  text-align: center;
  line-height: 1.2;
  letter-spacing: -0.1px;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cause-tile.selected .cause-tile-name { color: var(--c-color, var(--tb-teal)); }

/* Detail panel for selected cause */
.dispatch-detail {
  background: linear-gradient(135deg, var(--surface-1) 0%, color-mix(in srgb, var(--c-color, var(--tb-teal-dark)) 5%, var(--surface-1)) 100%);
  border: 2px solid var(--c-color, var(--tb-teal));
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 4px;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--c-color, var(--tb-teal)) 18%, transparent);
  position: relative;
  overflow: hidden;
  animation: detailIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.dispatch-detail:empty {
  display: none;
}
.dispatch-detail.collapsing {
  animation: detailOut 0.25s ease forwards;
}
@keyframes detailIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes detailOut { to { opacity: 0; transform: translateY(-8px); max-height: 0; padding: 0; margin: 0; border-width: 0; } }
.dispatch-detail::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--c-color, var(--tb-teal));
}
.dispatch-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.dispatch-detail-photo {
  width: 56px; height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 0 2.5px white;
  border: 2.5px solid var(--c-color, var(--tb-teal));
}
.dispatch-detail-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.dispatch-detail-info { flex: 1; min-width: 0; }
.dispatch-detail-name {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 16px;
  color: var(--tb-text);
  letter-spacing: -0.3px;
  line-height: 1.1;
  margin-bottom: 2px;
}
.dispatch-detail-kpi {
  font-size: 11px;
  color: var(--tb-text-soft);
  line-height: 1.3;
  margin-bottom: 4px;
}
.dispatch-detail-kpi strong {
  color: var(--c-color, var(--tb-teal));
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 12px;
  margin-right: 1px;
}
.dispatch-detail-tagline {
  font-size: 11.5px;
  color: var(--tb-text);
  line-height: 1.4;
  font-weight: 500;
}
.dispatch-detail-amount {
  text-align: right;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-width: 60px;
}
.dispatch-detail-amount .d-pct {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 22px;
  color: var(--c-color, var(--tb-teal));
  letter-spacing: -0.5px;
  line-height: 1;
}
.dispatch-detail-amount .d-amt {
  font-family: var(--display);
  font-weight: 700;
  font-style: italic;
  font-size: 13px;
  color: var(--tb-text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
  margin-top: 2px;
}
.dispatch-detail-amount .d-empty {
  font-size: 22px;
  color: var(--tb-text-light);
  font-weight: 700;
}

.dispatch-detail-presets {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}

.dispatch-preset-btn {
  aspect-ratio: 1 / 1;
  background: var(--surface-1);
  border: 1.5px solid var(--tb-border);
  border-radius: 11px;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 12px;
  color: var(--tb-text);
  cursor: pointer;
  transition: all 0.18s;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.4px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.dispatch-preset-btn:active { transform: scale(0.92); }
.dispatch-preset-btn.active {
  background: var(--c-color, var(--tb-teal));
  color: white;
  border-color: var(--c-color, var(--tb-teal));
  box-shadow: 0 4px 12px color-mix(in srgb, var(--c-color, var(--tb-teal)) 35%, transparent);
  transform: scale(1.06);
}



.dispatch-freq-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--tb-cream-dark);
  border-radius: 100px;
  padding: 4px;
}
.dispatch-freq-toggle .freq-btn {
  border: none;
  background: transparent;
  padding: 10px 8px;
  border-radius: 100px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--tb-text-soft);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.dispatch-freq-toggle .freq-btn.active {
  background: linear-gradient(180deg, #58E0C1 0%, #42C5A7 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(88, 224, 193, 0.12);
}
.dispatch-freq-toggle .freq-btn:active { transform: scale(0.96); }

.dispatch-status {
  margin: 14px 0; padding: 12px 14px; border-radius: 14px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(20, 56, 67, 0.05); transition: all 0.3s;
}
.dispatch-status.partial { background: rgba(255, 255, 255, 0.1); }
.dispatch-status.over { background: rgba(196, 72, 72, 0.12); border: 1px solid rgba(196, 72, 72, 0.25); }
.dispatch-status.complete { background: rgba(58, 157, 110, 0.15); border: 1px solid rgba(58, 157, 110, 0.35); }
.dispatch-status-icon {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(20, 56, 67, 0.1); color: var(--tb-text-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0; font-weight: 700;
}
.dispatch-status.partial .dispatch-status-icon { background: var(--tb-gold); color: white; }
.dispatch-status.over .dispatch-status-icon { background: var(--tb-red); color: white; }
.dispatch-status.complete .dispatch-status-icon { background: var(--tb-green); color: white; }
.dispatch-status-content { flex: 1; min-width: 0; }
.dispatch-status-text { font-size: 12.5px; font-weight: 600; color: var(--tb-text); margin-bottom: 4px; }
.dispatch-status-bar { height: 4px; background: rgba(20, 56, 67, 0.08); border-radius: 2px; overflow: hidden; }
.dispatch-status-bar-fill {
  height: 100%; width: 0; background: var(--tb-gold);
  border-radius: 2px; transition: width 0.4s ease, background 0.3s;
}
.dispatch-status.complete .dispatch-status-bar-fill { background: var(--tb-green); }
.dispatch-status.over .dispatch-status-bar-fill { background: var(--tb-red); }

/* ============================================================================
   CALCULATE PAGE — Modern fintech style
============================================================================ */
.calc-help-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none; color: white;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.calc-help-btn:active { background: rgba(255,255,255,0.22); }

/* Hero amount card — sticky/animated */










/* Rate switcher inside hero */







/* Body grid */







/* Cards grid (tactile cards instead of form) */













/* Save button — sticky bottom */






/* ============================================================================
   INPUT MODAL — full screen for entering amounts (numeric keypad)
============================================================================ */
.input-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 56, 67, 0.45);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: flex-end;
  animation: modalFadeIn 0.25s ease;
}
.input-modal.show { display: flex; }
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }

.input-modal-content {
  background: var(--tb-cream);
  border-radius: 22px 22px 0 0;
  padding: 0 14px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  animation: modalSlideUp 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.25);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@keyframes modalSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.input-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: calc(var(--safe-top) + 12px);
  padding-bottom: 10px;
  flex-shrink: 0;
}
.input-modal-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--tb-border);
  color: var(--tb-text);
  font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.input-modal-close:active { background: rgba(255, 255, 255, 0.14); transform: scale(0.92); }
.input-modal-title-wrap { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; justify-content: center; padding: 0 4px; }
.input-modal-emoji { font-size: 20px; line-height: 1; flex-shrink: 0; }
.input-modal-title {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 16px;
  color: var(--tb-text);
  letter-spacing: -0.3px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.input-modal-info-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 12px;
  border-radius: 100px;
  background: rgba(212, 175, 90, 0.10);
  border: 1px solid rgba(212, 175, 90, 0.30);
  color: var(--tb-gold-premium);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--body);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.input-modal-info-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.input-modal-info-btn:active { background: rgba(212, 175, 90, 0.20); transform: scale(0.96); }

.input-modal-display {
  background: var(--surface-1);
  color: var(--tb-text);
  border: 1px solid var(--tb-border);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  min-height: 70px;
  max-width: 100%;
}
.input-modal-display::before { display: none; }
.input-modal-amount {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(20px, 9vw, 42px);
  color: var(--tb-gold-premium);
  letter-spacing: -1.5px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  max-width: 75%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}
/* Auto-shrink for big numbers via length-based class added by JS */











.input-modal-validate-wrap {
  flex-shrink: 0;
  padding: 6px 0 calc(var(--safe-bottom) + 14px);
}
.input-modal-validate {
  width: 100%;
  background: linear-gradient(180deg, #58E0C1 0%, #42C5A7 100%);
  color: #FFFFFF;
  border: none;
  padding: 15px 22px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(88, 224, 193, 0.12);
  letter-spacing: -0.2px;
  -webkit-tap-highlight-color: transparent;
}
.input-modal-validate:active { transform: translateY(1px); }

/* Halakha popup (separate overlay over the modal) */
.halakha-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.25s ease;
}
.halakha-popup.show { display: flex; }
.halakha-popup-content {
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-3) 100%);
  border-radius: 22px;
  padding: 22px 22px 18px;
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  animation: modalSlideUp 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.halakha-popup-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--tb-border);
  color: var(--tb-text);
  font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.halakha-popup-close:active { background: rgba(255, 255, 255, 0.16); }



/* Halakhic explanation block */























/* ============================================================================
   WIZARD (3 steps - guided onboarding)
============================================================================ */
#page-calculate { padding-bottom: 0; }

.wizard-progress {
  background: var(--tb-cream);
  padding: 12px 18px 8px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.wizard-progress-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
}
.wizard-progress-fill {
  height: 100%;
  width: 33.33%;
  background: linear-gradient(90deg, #58E0C1 0%, #42C5A7 100%);
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.wizard-step {
  display: none;
  padding: 0 0 calc(220px + var(--safe-bottom));
}
.wizard-step.active {
  display: block;
  animation: wizardIn 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes wizardIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.wizard-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 22px 0;
}
.wizard-eyebrow {
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--tb-gold-premium);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.wizard-title {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: 26px;
  color: var(--tb-text);
  letter-spacing: -0.6px;
  line-height: 1.1;
  margin-bottom: 10px;
}
.wizard-title .gold { color: var(--tb-gold-premium); }
.wizard-subtitle {
  font-size: 13.5px;
  color: var(--tb-text-soft);
  line-height: 1.5;
  margin-bottom: 20px;
}




/* Wizard input button (Step 1) */








/* Wizard list (steps 2 & 3) — compact list */
.wizard-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.wizard-list-item {
  background: var(--surface-1);
  border: 1px solid var(--tb-border);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.18s;
  text-align: left;
  font-family: var(--body);
  position: relative;
  min-height: 52px;
}
.wizard-list-item:active { transform: scale(0.985); background: var(--tb-cream-dark); }
.wizard-list-item.filled {
  background: var(--surface-1);
  border-color: var(--tb-gold);
  box-shadow: 0 2px 8px rgba(88, 224, 193, 0.08);
}
.wizard-list-emoji {
  font-size: 20px;
  width: 34px;
  height: 34px;
  background: var(--tb-cream);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wizard-list-item.filled .wizard-list-emoji {
  background: rgba(88, 224, 193, 0.10);
}
.wizard-list-info { flex: 1; min-width: 0; }
.wizard-list-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--tb-text);
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Sub-text masquée par défaut — l'info détaillée est dans la modal de saisie.
   On la conserve dans le DOM pour les lecteurs d'écran et un éventuel "voir plus" futur. */
.wizard-list-sub {
  display: none;
}
.wizard-list-amount {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 15px;
  color: var(--tb-gold);
  letter-spacing: -0.3px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  white-space: nowrap;
}
.wizard-list-item:not(.filled) .wizard-list-amount {
  color: var(--tb-text-light);
  font-family: var(--body);
  font-style: normal;
  font-weight: 600;
  font-size: 12.5px;
}



.wizard-skip-hint {
  font-size: 11.5px;
  color: var(--tb-text-light);
  text-align: center;
  font-style: italic;
  padding: 4px 8px;
  margin-top: 4px;
}

/* Wizard footer — fixed above the bottom-nav. Hidden by default; JS shows it on calculate page */
.wizard-footer {
  display: none;
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: calc(72px + var(--safe-bottom)) !important;
  width: 100% !important;
  background: rgba(7, 59, 76, 0.96);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-top: 1px solid var(--tb-border);
  padding: 10px 16px 12px;
  z-index: 105;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
}
.wizard-footer.show { display: block; }
.wizard-footer-inner { max-width: 600px; margin: 0 auto; }

.wizard-recap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  background: var(--surface-1);
  color: var(--tb-text);
  padding: 8px 14px;
  border-radius: 12px;
  position: relative;
  border: 1px solid var(--tb-border);
  overflow: hidden;
}
.wizard-recap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--tb-gold) 0%, var(--tb-gold-light) 50%, var(--tb-gold) 100%);
}
.wizard-recap-info { flex: 1; min-width: 0; }
.wizard-recap-label {
  font-size: 9px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--tb-text-soft);
  font-weight: 700;
  margin-bottom: 0;
}
.wizard-recap-amount-wrap { 
  display: flex; 
  align-items: baseline; 
  gap: 3px; 
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
.wizard-recap-amount {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(15px, 5vw, 20px);
  color: var(--tb-gold-premium);
  letter-spacing: -0.6px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.wizard-recap-amount.bump { animation: bumpAmount 0.4s ease; }
@keyframes bumpAmount { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.wizard-recap-currency {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 16px;
  color: var(--tb-gold-premium);
  letter-spacing: -0.3px;
  opacity: 0.85;
}
.wizard-recap-period {
  font-size: 11px;
  color: var(--tb-text-soft);
  font-weight: 500;
  margin-left: 2px;
}
/* Rate badge — clearly tappable */
.wizard-recap-rate {
  font-family: var(--body);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(212, 175, 90, 0.10);
  padding: 7px 11px 7px 13px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid rgba(212, 175, 90, 0.28);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.wizard-recap-rate:active {
  background: rgba(212, 175, 90, 0.20);
  transform: scale(0.96);
}
.wizard-recap-rate-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--tb-text-soft);
}
.wizard-recap-rate-value {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: 17px;
  color: var(--tb-gold-premium);
  letter-spacing: -0.3px;
  line-height: 1;
}
.wizard-recap-rate-icon {
  width: 13px;
  height: 13px;
  color: var(--tb-gold-premium);
  opacity: 0.75;
  margin-left: -2px;
}
/* subtle pulsing dot to hint interactivity on first visit */
@keyframes ratePulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
.wizard-recap-rate-icon { animation: ratePulse 2.4s ease-in-out infinite; }

.wizard-continue {
  width: 100%;
  background: linear-gradient(180deg, #58E0C1 0%, #42C5A7 100%);
  color: #FFFFFF;
  border: none;
  padding: 13px 22px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 22px rgba(88, 224, 193, 0.12);
  transition: all 0.2s;
  letter-spacing: -0.2px;
}
.wizard-continue:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 4px 14px rgba(88, 224, 193, 0.18); }
.wizard-continue:disabled {
  background: rgba(255, 255, 255, 0.04);
  color: var(--tb-text-soft);
  cursor: not-allowed;
  box-shadow: none;
}
.wizard-continue-arrow { font-size: 18px; line-height: 1; }



/* ============================================================================
   RATE MODAL — explains 5/10/20% Maasser options with halakhic rationale
============================================================================ */
.rate-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.rate-modal.show {
  display: flex;
  animation: rateModalFadeIn 0.25s ease;
}
@keyframes rateModalFadeIn { from { opacity: 0; } to { opacity: 1; } }
.rate-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.rate-modal-content {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 92vh;
  overflow-y: auto;
  background: #062B36;
  border: 1px solid var(--tb-border);
  border-radius: 24px 24px 0 0;
  padding: 22px 22px calc(20px + var(--safe-bottom));
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.50);
  animation: rateModalSlideUp 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 600px) {
  .rate-modal { align-items: center; }
  .rate-modal-content {
    border-radius: 24px;
    margin: 0 16px;
    max-height: 88vh;
  }
}
@keyframes rateModalSlideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.rate-modal-header { position: relative; margin-bottom: 18px; padding-right: 36px; }
.rate-modal-close {
  position: absolute;
  top: -4px;
  right: -8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--tb-border);
  color: var(--tb-text-soft);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.rate-modal-close:active { background: rgba(255, 255, 255, 0.10); }
.rate-modal-eyebrow {
  font-size: 10px;
  letter-spacing: 2.2px;
  color: var(--tb-gold-premium);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.rate-modal-title {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: 24px;
  color: var(--tb-text);
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 8px;
}
.rate-modal-title .gold { color: var(--tb-gold-premium); }
.rate-modal-subtitle {
  font-size: 13px;
  color: var(--tb-text-soft);
  line-height: 1.5;
}

.rate-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.rate-option {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-1);
  border: 1px solid var(--tb-border);
  border-radius: 16px;
  padding: 16px 16px 16px 14px;
  cursor: pointer;
  text-align: left;
  font-family: var(--body);
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.rate-option:active {
  transform: scale(0.985);
  background: rgba(255, 255, 255, 0.06);
}
.rate-option.recommended {
  border-color: rgba(212, 175, 90, 0.30);
  background: rgba(212, 175, 90, 0.04);
}
.rate-option.selected {
  border-color: var(--tb-gold);
  background: rgba(88, 224, 193, 0.06);
}
.rate-option-badge {
  position: absolute;
  top: -8px;
  right: 16px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #062B36;
  background: var(--tb-gold-premium);
  padding: 3px 8px;
  border-radius: 100px;
}
.rate-option-pct {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 32px;
  color: var(--tb-gold-premium);
  letter-spacing: -1px;
  line-height: 1;
  flex-shrink: 0;
  width: 60px;
  text-align: center;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
}
.rate-option-pct span {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.5px;
  opacity: 0.7;
}
.rate-option-body { flex: 1; min-width: 0; }
.rate-option-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--tb-text);
  margin-bottom: 3px;
  letter-spacing: -0.2px;
}
.rate-option-desc {
  font-size: 12px;
  color: var(--tb-text-soft);
  line-height: 1.4;
}
.rate-option-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--tb-border);
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s;
}
.rate-option.selected .rate-option-check {
  border-color: var(--tb-gold);
  background: var(--tb-gold);
}
.rate-option.selected .rate-option-check::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 5px;
  border-left: 2px solid #062B36;
  border-bottom: 2px solid #062B36;
  transform: translate(-50%, -65%) rotate(-45deg);
}

.rate-modal-footer {
  text-align: center;
  padding-top: 6px;
  border-top: 1px solid var(--tb-border-light);
}
.rate-modal-source {
  font-size: 10.5px;
  color: var(--tb-text-light);
  font-style: italic;
  line-height: 1.5;
  padding-top: 12px;
  letter-spacing: 0.1px;
}

/* ============================================================================
   PAYMENT MODALS — Stripe-style integrated payment
============================================================================ */














/* Card visual preview */











/* Form */









.pay-submit {
  width: 100%;
  background: linear-gradient(180deg, #58E0C1 0%, #42C5A7 100%);
  color: #FFFFFF;
  border: none;
  padding: 16px 22px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  box-shadow: 0 8px 22px rgba(88, 224, 193, 0.18);
  transition: all 0.2s;
  letter-spacing: -0.2px;
  position: relative;
  overflow: hidden;
}
.pay-submit:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 4px 12px rgba(88, 224, 193, 0.18); }
.pay-submit:disabled {
  background: rgba(255, 255, 255, 0.04);
  color: var(--tb-text-soft);
  cursor: not-allowed;
  box-shadow: none;
}

.pay-submit.loading::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}




/* Confirm cause card */

















/* ============================================================================
   MERCI PAGE — thank you screen after payment
============================================================================ */



/* Animated check mark */





















































/* ============================================================================
   SETTINGS — payment methods section
============================================================================ */












/* ============================================================================
   DEMO OVERLAY — auto-running tour
============================================================================ */




/* Top progress bar */






/* Bottom narration card */





/* Animation when narration text changes */



/* End card */












/* Demo cursor — animated finger pointer */





/* Welcome demo button */




/* When demo is active, lock scroll for the user but allow JS scrollIntoView */



/* During demo: lift wizard-footer and input-modal validate button above the narration card */


/* Push toast above narration too */


/* Fake demo notification */









/* ============================================================================
   EDIT MAASSER MODAL — edit revenues/deductions of any month
============================================================================ */
.edit-maasser-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.edit-maasser-modal.show {
  display: flex;
  animation: rateModalFadeIn 0.25s ease;
}
.edit-maasser-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.edit-maasser-content {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 92vh;
  overflow-y: auto;
  background: #062B36;
  border: 1px solid var(--tb-border);
  border-radius: 24px 24px 0 0;
  padding: 22px 22px calc(20px + var(--safe-bottom));
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.55);
  animation: rateModalSlideUp 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 600px) {
  .edit-maasser-modal { align-items: center; }
  .edit-maasser-content { border-radius: 24px; margin: 0 16px; }
}
.edit-maasser-header { position: relative; margin-bottom: 16px; padding-right: 36px; }
.edit-maasser-close {
  position: absolute;
  top: -4px;
  right: -8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--tb-border);
  color: var(--tb-text-soft);
  font-size: 16px;
  cursor: pointer;
}
.edit-maasser-eyebrow {
  font-size: 10px;
  letter-spacing: 2.2px;
  color: var(--tb-gold-premium);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.edit-maasser-title {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: 22px;
  color: var(--tb-text);
  letter-spacing: -0.4px;
  line-height: 1.2;
  margin-bottom: 6px;
}
.edit-maasser-subtitle { font-size: 12.5px; color: var(--tb-text-soft); line-height: 1.5; }

/* Action choice (Recalculate all / Add entry) */
.edit-actions-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 14px;
}
.edit-action-btn {
  background: transparent;
  border: none;
  color: var(--tb-text-soft);
  padding: 10px 8px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--body);
  text-align: center;
  line-height: 1.2;
}
.edit-action-btn.active {
  background: rgba(88, 224, 193, 0.10);
  color: var(--tb-gold);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.edit-action-btn svg { flex-shrink: 0; }

/* Sections */
.edit-section { margin-bottom: 14px; }
.edit-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.edit-section-title {
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--tb-text-soft);
  font-weight: 700;
}
.edit-section-add {
  background: rgba(88, 224, 193, 0.08);
  border: 1px solid rgba(88, 224, 193, 0.25);
  color: var(--tb-gold);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  cursor: pointer;
  font-family: var(--body);
}

.edit-lines { display: flex; flex-direction: column; gap: 6px; }









/* Summary */
.edit-summary {
  background: var(--surface-2);
  border: 1px solid var(--tb-border);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.edit-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--tb-text-soft);
}
.edit-summary-row.edit-summary-total {
  padding-top: 8px;
  border-top: 1px solid var(--tb-border-light);
  font-size: 14px;
  font-weight: 700;
  color: var(--tb-text);
}
.edit-summary-value {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: 16px;
  color: var(--tb-gold-premium);
  font-variant-numeric: tabular-nums;
}
.edit-summary-total .edit-summary-value { font-size: 20px; }

/* Make the Maasser amount on dashboard tappable */




/* ============================================================================
   LANGUAGE SELECTOR (in Settings)
============================================================================ */







/* Language picker modal (bottom sheet) */
.lang-modal {
  position: fixed;
  inset: 0;
  z-index: 270;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.lang-modal.show {
  display: flex;
  animation: rateModalFadeIn 0.25s ease;
}
.lang-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}
.lang-modal-content {
  position: relative;
  width: 100%;
  max-width: 600px;
  background: #062B36;
  border: 1px solid var(--tb-border);
  border-radius: 24px 24px 0 0;
  padding: 22px 22px calc(20px + var(--safe-bottom));
  animation: rateModalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 600px) {
  .lang-modal { align-items: center; }
  .lang-modal-content { border-radius: 24px; margin: 0 16px; }
}
.lang-modal-title {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: 22px;
  color: var(--tb-text);
  margin-bottom: 16px;
}
.lang-options { display: flex; flex-direction: column; gap: 8px; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-1);
  border: 1px solid var(--tb-border);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  font-family: var(--body);
  text-align: start;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
}
.lang-option:active { background: rgba(255, 255, 255, 0.06); }
.lang-option.selected {
  border-color: var(--tb-gold);
  background: rgba(88, 224, 193, 0.06);
}
.lang-option-flag { font-size: 28px; flex-shrink: 0; }
.lang-option-name { flex: 1; font-size: 15px; color: var(--tb-text); font-weight: 600; }
.lang-option-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--tb-border);
  position: relative;
  flex-shrink: 0;
}
.lang-option.selected .lang-option-check {
  border-color: var(--tb-gold);
  background: var(--tb-gold);
}
.lang-option.selected .lang-option-check::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 5px;
  border-left: 2px solid #062B36;
  border-bottom: 2px solid #062B36;
  transform: translate(-50%, -65%) rotate(-45deg);
}

/* ============================================================================
   RTL (Hebrew) adjustments
============================================================================ */
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .page-header-back { transform: scaleX(-1); }
html[dir="rtl"] .wizard-continue-arrow { transform: scaleX(-1); }

html[dir="rtl"] .edit-maasser-header { padding-right: 0; padding-left: 36px; }
html[dir="rtl"] .edit-maasser-close { right: auto; left: -8px; }


html[dir="rtl"] .rate-modal-header { padding-right: 0; padding-left: 36px; }
html[dir="rtl"] .rate-modal-close { right: auto; left: -8px; }
html[dir="rtl"] .lang-modal-content { text-align: right; }




/* Currency button (clickable symbol) inside input modal */
.input-modal-currency-btn {
  cursor: pointer;
  background: rgba(212, 175, 90, 0.10);
  border: 1px solid rgba(212, 175, 90, 0.28);
  border-radius: 100px;
  padding: 4px 12px;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s;
  font-family: var(--display);
}
.input-modal-currency-btn:active {
  background: rgba(212, 175, 90, 0.22);
  transform: scale(0.95);
}



/* Currency selector in Settings page */







/* ============================================================================
   MONTH PROMPT — "Last month you gave X, do you want to give the same?"
============================================================================ */












/* ============================================================================
   RECURRING BADGE — shown when recurring donation is active
============================================================================ */









/* Recurring section in settings */



















/* ============================================================================
   STATS — Streak + Annual total
============================================================================ */







/* Add extra donation button */



/* Halakha of the month */







/* Frequency choice in confirm payment modal */














/* ============================================================================
   CONFIRM MODAL — custom replacement for native confirm() 
============================================================================ */
.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.confirm-modal.show {
  display: flex;
  animation: rateModalFadeIn 0.2s ease;
}
.confirm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.confirm-modal-content {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: #062B36;
  border: 1px solid var(--tb-border);
  border-radius: 20px;
  padding: 24px 22px 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: confirmModalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}
@keyframes confirmModalPop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.confirm-modal-title {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: 20px;
  color: var(--tb-text);
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}
.confirm-modal-text {
  font-size: 13.5px;
  color: var(--tb-text-soft);
  line-height: 1.5;
  margin-bottom: 22px;
}
.confirm-modal-actions {
  display: flex;
  gap: 10px;
}
.confirm-modal-cancel,
.confirm-modal-ok {
  flex: 1;
  padding: 13px 16px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--body);
  -webkit-tap-highlight-color: transparent;
  border: none;
  transition: all 0.2s;
}
.confirm-modal-cancel {
  background: rgba(255, 255, 255, 0.06);
  color: var(--tb-text);
  border: 1px solid var(--tb-border);
}
.confirm-modal-cancel:active { background: rgba(255, 255, 255, 0.12); }
.confirm-modal-ok {
  background: linear-gradient(180deg, #58E0C1 0%, #42C5A7 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(88, 224, 193, 0.18);
}
.confirm-modal-ok:active { transform: translateY(1px); }
.confirm-modal-ok.danger {
  background: linear-gradient(180deg, #e57373 0%, #c44848 100%);
  box-shadow: 0 6px 18px rgba(229, 115, 115, 0.25);
}

/* ============================================================================
   INSTALL MODAL — visual instructions to add to home screen
============================================================================ */



























/* Big "Install" CTA card on dashboard, only shown if not standalone yet */









/* ============================================================================
   INSTALL APP CARD (in Settings) + GUIDE MODAL
============================================================================ */










/* Install guide modal */

































/* Causes pills under each history month */









/* ============================================================================
   MERCI — Mitsva grandeur + Causes impact
============================================================================ */




















/* ============================================================================
   WELCOME INTRO — Hook for new users who don't know what Maasser is
============================================================================ */


/* Verse: subtle, italic, with vertical line separators */







/* Definition: clean and centered */




/* Promise pill — small, refined, glows slightly */



/* 4 benefits grid: santé / richesse / enfants / bénédictions */





/* Gaon de Vilna guarantee — the killer argument */












/* ── Welcome flow : Tu donnes → Hachem bénit → Tu t'enrichis ── */










/* ============================================================================
   WELCOME V2 — Nouvelle structure inspirée du mockup mai 2026
============================================================================ */


/* HERO PHOTO */








/* BODY */


/* VERSET HERO */










/* 2 CTAs côte à côte */
















/* PROMISE */



/* GAON DE VILNA — 2 cards côte à côte */








/* Top row : icon + pct côte à côte */













/* Flow Tu donnes → Hachem bénit → Tu t'enrichis (intégré dans vilna) */








/* ACTIVEZ UNE SOURCE DE BÉNÉDICTION */









/* TRUST FOOTER */








/* ── FAQ Search bar (moteur de recherche dans la FAQ Halakha) ── */






/* Cacher les flèches natives de l'input search */






/* État "aucun résultat" */






/* Items filtrés / catégories vides */


/* Highlight du terme cherché dans la question */


/* FAQ category headers — separate groups of questions */



/* ============================================================================
   QUICK DONATE — Clearer flow with intro and steps
============================================================================ */
.qd-intro {
  background: linear-gradient(145deg, rgba(212, 175, 90, 0.08) 0%, rgba(212, 175, 90, 0.02) 100%);
  border: 1px solid rgba(212, 175, 90, 0.22);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.qd-intro::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--tb-gold-premium) 50%, transparent);
}
.qd-intro-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: 14px;
  color: var(--tb-text);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.qd-intro-eyebrow > span:first-child { font-size: 16px; flex-shrink: 0; }
.qd-intro-text {
  font-size: 12.5px;
  color: var(--tb-text-soft);
  line-height: 1.5;
  margin-bottom: 12px;
}
.qd-intro-steps {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}
.qd-intro-step {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  background: rgba(0, 0, 0, 0.18);
  padding: 6px 8px;
  border-radius: 8px;
}
.qd-intro-step-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(212, 175, 90, 0.20);
  color: var(--tb-gold-premium);
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.qd-intro-step-text {
  font-size: 11px;
  color: var(--tb-text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qd-intro-step-sep {
  color: var(--tb-text-soft);
  font-size: 12px;
  opacity: 0.5;
  flex-shrink: 0;
}

/* Section numbered titles */
.calc-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 15px;
  color: var(--tb-text);
  letter-spacing: -0.3px;
  margin: 0 0 12px;
}
.calc-section-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--tb-gold);
  color: #0a1c22;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Help card for users who don't know their Maasser amount */
.qd-help-card {
  width: 100%;
  background: rgba(88, 224, 193, 0.05);
  border: 1px solid rgba(88, 224, 193, 0.22);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  font-family: var(--body);
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s ease;
}
.qd-help-card:active {
  transform: scale(0.98);
  background: rgba(88, 224, 193, 0.10);
}
.qd-help-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(88, 224, 193, 0.10);
  border: 1px solid rgba(88, 224, 193, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--tb-gold);
}
.qd-help-icon svg { width: 18px; height: 18px; }
.qd-help-body { flex: 1; min-width: 0; }
.qd-help-title {
  font-size: 13px;
  color: var(--tb-text);
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: -0.1px;
}
.qd-help-text {
  font-size: 11.5px;
  color: var(--tb-text-soft);
  line-height: 1.3;
}
.qd-help-arrow {
  color: var(--tb-gold);
  font-size: 16px;
  flex-shrink: 0;
}

/* Frequency hint below toggle */


/* ============================================================================
   INCOME MODE MODAL — asked after first calc to personalize the experience
============================================================================ */
.income-mode-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.income-mode-modal.show { display: flex; }
.income-mode-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.income-mode-content {
  position: relative;
  background: var(--tb-cream-dark);
  border: 1px solid var(--tb-border);
  border-radius: 22px;
  padding: 26px 22px 22px;
  max-width: 420px;
  width: 100%;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.50);
  animation: modalSlideIn 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalSlideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.income-mode-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 11px;
  color: var(--tb-gold-premium);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.income-mode-eyebrow > span:first-child { font-size: 14px; opacity: 0.9; }
.income-mode-title {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 22px;
  color: var(--tb-text);
  letter-spacing: -0.6px;
  line-height: 1.15;
  text-align: center;
  margin: 0 0 12px;
}
.income-mode-text {
  font-size: 13px;
  color: var(--tb-text-soft);
  line-height: 1.55;
  text-align: center;
  margin: 0 0 20px;
}
.income-mode-option {
  width: 100%;
  background: var(--surface-1);
  border: 1.5px solid var(--tb-border);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  font-family: var(--body);
  -webkit-tap-highlight-color: transparent;
}
.income-mode-option:hover {
  border-color: rgba(88, 224, 193, 0.40);
  background: rgba(88, 224, 193, 0.04);
}
.income-mode-option:active {
  transform: scale(0.98);
  background: rgba(88, 224, 193, 0.08);
}
.income-mode-option-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(212, 175, 90, 0.10);
  border: 1px solid rgba(212, 175, 90, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.income-mode-option-body { flex: 1; min-width: 0; }
.income-mode-option-title {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 16px;
  color: var(--tb-text);
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}
.income-mode-option-text {
  font-size: 12px;
  color: var(--tb-text-soft);
  line-height: 1.4;
}
.income-mode-option-arrow {
  color: var(--tb-gold);
  font-size: 18px;
  flex-shrink: 0;
}
.income-mode-skip {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--tb-text-soft);
  font-family: var(--body);
  font-size: 12.5px;
  padding: 10px 0 4px;
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.income-mode-skip:active { color: var(--tb-text); }

/* ============================================================================
   NEW MONTH CARD — Priority #1 on dashboard at start of each month
============================================================================ */
















/* Spinner */

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================================
   LANDING PAGE OVERLAY — shown first, hidden when user clicks "Calculer"
============================================================================ */
#landingPage {
  position: fixed;
  inset: 0;
  z-index: 99;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #062B36;
  color: #F5F7FA;
  font-family: var(--body);
  line-height: 1.5;
}
body.landing-hidden #landingPage { display: none; }
body:not(.landing-hidden) #app { display: none !important; }


:root {
  --bg: #062B36;
  --bg-dark: #04212B;
  --bg-soft: #0A3641;
  --surface: rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --mint: #58E0C1;
  --mint-dark: #42C5A7;
  --gold: #D4AF5A;
  --gold-warm: #E8C679;
  --text: #F5F7FA;
  --text-soft: #A9BCC5;
  --text-faint: #6B8693;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Inter', -apple-system, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}



/* ============================================================================
   GLOBAL TYPOGRAPHY
============================================================================ */
.display { font-family: var(--display); font-weight: 900; font-style: italic; letter-spacing: -0.03em; }
.gold { color: var(--gold); }



/* ============================================================================
   NAVIGATION
============================================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: calc(var(--safe-top) + 14px) 20px 14px;
  background: rgba(6,43,54,0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}









/* ============================================================================
   HERO
============================================================================ */
.hero {
  padding: 60px 20px 80px;
  text-align: center;
  position: relative;
}














/* ============================================================================
   VERSE — full-width pull quote
============================================================================ */







/* ============================================================================
   SECTION (general)
============================================================================ */
.section {
  padding: 70px 24px;
  max-width: 1080px;
  margin: 0 auto;
}




/* ============================================================================
   BENEFITS GRID — the 4 promised treasures
============================================================================ */









/* The Gaon de Vilna guarantee block */










/* ============================================================================
   HOW IT WORKS — 3 steps
============================================================================ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto 40px;
}
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 22px;
  position: relative;
}




/* ============================================================================
   CAUSES — 6 photos
============================================================================ */











/* ============================================================================
   TESTIMONIALS
============================================================================ */










/* ============================================================================
   FAQ
============================================================================ */

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item.open {
  border-color: rgba(88,224,193,0.30);
}
.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  font-family: var(--body);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}






/* ============================================================================
   FINAL CTA
============================================================================ */






/* ============================================================================
   FOOTER
============================================================================ */
.footer {
  padding: 40px 24px calc(40px + var(--safe-bottom));
  border-top: 1px solid var(--border);
  text-align: center;
  background: var(--bg-dark);
}







/* ============================================================================
   ANIMATIONS
============================================================================ */










/* ============================================================================
   LANDING PAGE V2 — Refonte mai 2026 (brief Jonathan)
   Direction : Apple / luxe discret / émotion juive / mobile-first
   Préfixe .lp- pour éviter tout conflit avec l'app
============================================================================ */

/* Surcharge du fond #landingPage en cohérence */
#landingPage {
  background: #062B36;
  color: #F5F7FA;
  font-family: var(--body);
  line-height: 1.55;
  padding-bottom: 90px; /* espace pour le sticky CTA en bas */
}
#landingPage * { box-sizing: border-box; }

/* Variables locales LP */
#landingPage {
  --lp-bg: #062B36;
  --lp-bg-deep: #04212B;
  --lp-bg-card: #0A3641;
  --lp-cream: #FAF6EC;
  --lp-cream-soft: #F1ECDC;
  --lp-text: #F5F7FA;
  --lp-text-soft: rgba(245, 247, 250, 0.65);
  --lp-text-mute: rgba(245, 247, 250, 0.45);
  --lp-gold: #D4AF5A;
  --lp-gold-light: #E8C975;
  --lp-mint: #58E0C1;
  --lp-mint-soft: rgba(88, 224, 193, 0.10);
  --lp-border: rgba(255, 255, 255, 0.08);
  --lp-border-soft: rgba(255, 255, 255, 0.05);
}

/* Containers */
.lp-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Eyebrow (petits titres au-dessus) */
.lp-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--lp-mint);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.lp-eyebrow.lp-center { text-align: center; }

/* H2 — titres de section */
.lp-h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--lp-text);
  margin: 0 0 18px;
}
.lp-h2.lp-center { text-align: center; }
.lp-h2.lp-h2-sm { font-size: 28px; }
.lp-h2 em {
  font-style: italic;
  color: var(--lp-mint);
}

.lp-body {
  font-size: 15px;
  color: var(--lp-text-soft);
  line-height: 1.65;
  margin: 0 0 14px;
}
.lp-body.lp-center { text-align: center; }
.lp-body.lp-narrow { max-width: 580px; margin-left: auto; margin-right: auto; }
.lp-body strong { color: var(--lp-text); font-weight: 600; }

/* ─────────────────── HEADER STICKY ─────────────────── */










/* ─────────────────── CTAs ─────────────────── */
.lp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: -0.2px;
  transition: transform 0.15s, box-shadow 0.2s, background 0.15s;
  white-space: nowrap;
}
.lp-cta:active { transform: scale(0.97); }

.lp-cta-primary {
  background: var(--lp-mint);
  color: #04212B;
  border-radius: 100px;
  padding: 12px 22px;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(88, 224, 193, 0.18);
}
.lp-cta-primary:hover {
  background: #4FD6B6;
  box-shadow: 0 6px 22px rgba(88, 224, 193, 0.30);
}
.lp-cta-primary svg { width: 16px; height: 16px; }

.lp-cta-large {
  padding: 17px 28px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(88, 224, 193, 0.22);
}
.lp-cta-large svg { width: 18px; height: 18px; }



.lp-center-cta {
  display: flex;
  margin: 26px auto 0;
}

/* Lien secondaire sous le CTA hero principal — bouton ghost outline pour clarté */
.lp-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lp-mint);
  background: transparent;
  border: 1.5px solid rgba(88, 224, 193, 0.4);
  border-radius: 100px;
  text-decoration: none;
  letter-spacing: -0.1px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s, border-color 0.18s, transform 0.15s;
}
.lp-secondary-link:hover {
  background: rgba(88, 224, 193, 0.10);
  border-color: var(--lp-mint);
}
.lp-secondary-link:active {
  transform: scale(0.97);
}

/* Trust list (✓ Gratuit · Sans inscription · …) — une seule ligne */
.lp-trust-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 20px 0;
  white-space: nowrap;
}
.lp-trust-list-center { justify-content: center; }
.lp-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--lp-text-soft);
}
/* Séparateur · entre les items (sauf le premier) */
.lp-trust-item + .lp-trust-item::before {
  content: '';
  margin-right: 2px;
}
/* Une seule coche en tête de liste, on masque les autres */
.lp-trust-item svg { width: 13px; height: 13px; color: var(--lp-mint); flex-shrink: 0; }
.lp-trust-item:not(:first-child) svg { display: inline-flex; }
@media (max-width: 420px) {
  .lp-trust-item { font-size: 10.5px; gap: 4px; }
  .lp-trust-list { gap: 5px; }
  .lp-trust-item + .lp-trust-item::before { margin-right: 3px; }
}

/* Player vidéo héro (format portrait 9:16) */
.lp-hero-video {
  display: flex;
  justify-content: center;
  margin: 24px auto 0;
}
.lp-hero-video-player {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  border: 1px solid var(--lp-border);
  background: var(--lp-bg-deep);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  object-fit: cover;
  display: block;
}
@media (max-width: 420px) {
  .lp-hero-video-player { max-width: 260px; }
}

/* ─────────────────── 1. HERO ─────────────────── */
.lp-hero {
  position: relative;
  padding: 40px 0 48px;
  background:
    radial-gradient(ellipse 90% 60% at 70% 30%, rgba(212, 175, 90, 0.06) 0%, transparent 60%),
    var(--lp-bg);
  overflow: hidden;
}
.lp-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 50px;
  align-items: center;
}
.lp-hero-text { max-width: 620px; margin: 0 auto; }

.lp-hero-logo {
  margin-bottom: 2rem;
}

.lp-hero-logo img {
  min-width: 260px;
  max-width: 60%;
}

.lp-hero-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: -1.8px;
  color: var(--lp-text);
  margin: 0 0 18px;
}
.lp-hero-title em {
  font-style: italic;
  font-weight: 700;
}
.lp-hero-title em.gold {
  color: var(--lp-gold);
}

.lp-hero-sub {
  font-size: 16px;
  color: var(--lp-text-soft);
  line-height: 1.6;
  margin: 0 auto 28px auto;
  max-width: 480px;
}
.lp-hero-sub strong {
  color: var(--lp-text);
  font-weight: 600;
}


/* Instance mobile de la vidéo (insérée avant le CTA) — masquée sur desktop */

@media (max-width: 860px) {
  .lp-hero-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ─────────────────── 1b. RÉASSURANCE ─────────────────── */
.lp-reassure {
  padding: 8px 0 28px;
}
.lp-reassure-list {
  list-style: none;
  margin: 0 auto;
  padding: 26px 28px;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(88, 224, 193, 0.05);
  border: 1px solid rgba(88, 224, 193, 0.18);
  border-radius: 18px;
}
.lp-reassure-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--lp-text-soft);
}
.lp-reassure-list li strong {
  color: var(--lp-text);
  font-weight: 600;
}
.lp-reassure-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lp-mint);
  color: #04212B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}
@media (max-width: 860px) {
  .lp-reassure { padding: 4px 0 20px; }
  .lp-reassure-list { gap: 12px; padding: 22px 20px; }
  .lp-reassure-list li { font-size: 14px; }
}

/* ─────────────────── 2. VERSET ─────────────────── */







/* ─────────────────── 3. POURQUOI ─────────────────── */
.lp-pourquoi {
  padding: 64px 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 90, 0.06) 0%, rgba(6, 43, 54, 0) 60%),
    #062B36;
  color: var(--lp-text);
  position: relative;
}
.lp-pourquoi .lp-section-inner {
  position: relative;
  z-index: 1;
}
.lp-pourquoi-title {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 8px;
}
.lp-pourquoi-title em {
  color: var(--lp-mint);
  font-style: italic;
}

/* Citations stylées premium pour les 3 sources Torah */
.lp-quotes {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 32px;
}
/* Variante sur fond foncé */
.lp-quotes-dark {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.lp-quotes-dark .lp-quote {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--lp-gold);
}
.lp-quotes-dark .lp-quote p {
  color: var(--lp-text);
}
.lp-quotes-dark .lp-quote p em {
  color: var(--lp-gold-light, #D4AF5A);
}
.lp-quote {
  position: relative;
  margin: 0;
  padding: 22px 26px 22px 32px;
  background: rgba(255, 255, 255, 0.55);
  border-left: 3px solid var(--lp-gold);
  border-radius: 0 12px 12px 0;
}
.lp-quote p {
  margin: 0 0 12px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: #2a3b40;
  letter-spacing: -0.2px;
}
.lp-quote p em {
  font-style: italic;
  color: #B98F32;
  font-weight: 600;
}
.lp-quote cite {
  display: block;
  font-family: var(--body);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #B98F32;
}
.lp-pourquoi .lp-eyebrow {
  color: #B98F32;
}














/* ─────────────────── 4. COMMENT ÇA MARCHE ─────────────────── */
.lp-howto {
  padding: 64px 0 56px;
  background: var(--lp-bg);
}
.lp-howto-inner { text-align: center; }
/* Grille : étapes à gauche, vidéo à droite (desktop) */
.lp-howto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin: 36px 0 10px;
}
.lp-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}
.lp-step {
  background: var(--lp-bg-card);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  padding: 20px 22px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
}
/* Gros chiffre en tête de chaque étape */
.lp-step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(88, 224, 193, 0.12);
  border: 1px solid rgba(88, 224, 193, 0.25);
  color: var(--lp-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 900;
  font-size: 24px;
  font-style: italic;
}
.lp-step-body { flex: 1; }
.lp-step-title {
  font-family: var(--display);
  font-weight: 700;
  font-style: italic;
  font-size: 18px;
  color: var(--lp-text);
  margin-bottom: 5px;
  letter-spacing: -0.3px;
}
.lp-step-text {
  font-size: 13.5px;
  color: var(--lp-text-soft);
  line-height: 1.5;
}
/* Bloc "Une confiance qui se mesure" : chiffres + avantages */













/* ─────────────────── FAQ ─────────────────── */
.lp-faq { padding: 64px 0; }
.lp-faq-inner { max-width: 760px; }
.lp-faq-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}
.lp-faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s;
}
.lp-faq-item[open] {
  border-color: rgba(88, 224, 193, 0.30);
  background: rgba(88, 224, 193, 0.04);
}
.lp-faq-q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
  color: var(--lp-text);
}
.lp-faq-q::-webkit-details-marker { display: none; }
.lp-faq-q::marker { content: ''; }
.lp-faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(88, 224, 193, 0.12);
  color: var(--lp-mint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.25s ease;
}
.lp-faq-item[open] .lp-faq-icon { transform: rotate(45deg); }
.lp-faq-a {
  padding: 0 20px 20px;
  color: var(--lp-text-soft);
}
.lp-faq-a p {
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 12px;
}
.lp-faq-a p:last-child { margin-bottom: 0; }
.lp-faq-a strong { color: var(--lp-text); font-weight: 600; }
.lp-faq-source {
  margin-top: 14px !important;
  font-size: 11.5px !important;
  font-style: italic;
  line-height: 1.5 !important;
  color: var(--lp-gold);
  opacity: 0.75;
}


@media (max-width: 860px) {
  .lp-faq-q { font-size: 15px; padding: 16px 16px; }
  .lp-faq-a { padding: 0 16px 18px; }
}

/* ─────────────────── Camembert "Un seul don" ─────────────────── */
.lp-pie-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-top: 40px;
}
.lp-pie-chart {
  position: relative;
  width: 240px;
  height: 240px;
  flex-shrink: 0;
}
.lp-pie-chart svg { width: 100%; height: 100%; display: block; }
.lp-pie-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}
.lp-pie-center-num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
  color: var(--lp-text);
}
.lp-pie-center-label {
  font-size: 11px;
  color: var(--lp-text-soft);
  margin-top: 4px;
  max-width: 90px;
  line-height: 1.3;
}
.lp-pie-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 280px;
}
.lp-pie-legend li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  color: var(--lp-text-soft);
}
.lp-pie-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.lp-pie-label { flex: 1; color: var(--lp-text); }
.lp-pie-pct {
  flex-shrink: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  color: var(--lp-gold);
}
@media (max-width: 860px) {
  .lp-pie-legend li { font-size: 13.5px; }
}

/* Pilules de paiement (CB · Apple Pay · G Pay) */
.lp-payments {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 18px;
}
.lp-pay-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--lp-text-soft);
}
.lp-pay-pill svg {
  width: 22px;
  height: 16px;
  flex-shrink: 0;
  color: var(--lp-text-soft);
  opacity: 0.85;
}
.lp-pay-text {
  font-size: 11.5px;
  color: var(--lp-text-soft);
  opacity: 0.7;
}
@media (max-width: 480px) {
  .lp-payments { gap: 6px 12px; }
  .lp-pay-pill { font-size: 11px; }
  .lp-pay-text { width: 100%; text-align: center; margin-top: 2px; }
}

/* Démo animée : carrousel des vraies captures de l'app */
.lp-howto-video {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-demo {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  aspect-ratio: 360 / 720;
  border-radius: 32px;
  padding: 9px;
  background: linear-gradient(160deg, #1a1d24 0%, #0a0c10 100%);
  box-shadow: 0 25px 70px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.06);
}
.lp-demo-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #04212B;
}
.lp-demo-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.lp-demo-slide.is-active { opacity: 1; }
/* Petits points de navigation */



/* Curseur tactile animé */
.lp-demo-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }

/* Stepper "1 ─ 2 ─ 3 ─ 4" au-dessus du téléphone */
.lp-demo-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.lp-demo-step-node {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  font-size: 15px;
  color: rgba(245,247,250,0.4);
  background: transparent;
  transition: all 0.4s cubic-bezier(.34,1.56,.64,1);
}
.lp-demo-step-line {
  width: 26px;
  height: 2px;
  border-radius: 1px;
  background: rgba(255,255,255,0.15);
  transition: background 0.4s ease;
}
.lp-demo-step-node.is-active {
  border-color: var(--lp-mint);
  background: var(--lp-mint);
  color: #04212B;
  transform: scale(1.12);
  box-shadow: 0 4px 18px rgba(88,224,193,0.35);
}
.lp-demo-step-node.is-done {
  border-color: var(--lp-mint);
  background: var(--lp-mint);
  color: #04212B;
}
.lp-demo-step-line.is-done { background: var(--lp-mint); }

.lp-demo-caption {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center; min-height: 48px; max-width: 320px;
}
.lp-demo-cap-step {
  font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--lp-gold);
}
.lp-demo-cap-text {
  font-family: var(--display); font-style: italic; font-weight: 600;
  font-size: 18px; color: var(--lp-text); line-height: 1.3;
  transition: opacity 0.3s;
}
.lp-demo-cursor {
  position: absolute;
  left: 50%; top: 50%;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 2px solid rgba(255,255,255,0.85);
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: left 0.6s cubic-bezier(.4,0,.2,1), top 0.6s cubic-bezier(.4,0,.2,1), opacity 0.3s, transform 0.15s;
}
.lp-demo-cursor.is-visible { opacity: 1; }
.lp-demo-cursor.is-tapping { transform: translate(-50%, -50%) scale(0.7); }
.lp-demo-ripple {
  position: absolute;
  left: 50%; top: 50%;
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 2px solid var(--lp-mint);
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
}
.lp-demo-cursor.is-tapping .lp-demo-ripple {
  animation: lpDemoRipple 0.5s ease-out;
}
@keyframes lpDemoRipple {
  0% { transform: translate(-50%,-50%) scale(1); opacity: 0.9; }
  100% { transform: translate(-50%,-50%) scale(3); opacity: 0; }
}

@media (max-width: 860px) {
  .lp-howto { padding: 44px 0; }
  .lp-howto-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .lp-howto-video { order: 1; }
  .lp-steps { order: 2; gap: 12px; }
  .lp-step { padding: 16px 18px; gap: 14px; }
  .lp-step-num { width: 42px; height: 42px; font-size: 21px; }
  .lp-demo { max-width: 250px; }

  /* Causes */
  .lp-causes { padding: 44px 0; }
  .lp-pie-wrap {
    flex-direction: column;
    gap: 28px;
    margin-top: 30px;
  }
  .lp-pie-chart { width: 210px; height: 210px; }
  .lp-pie-legend { max-width: 320px; margin: 0 auto; }

  /* Témoignages → trust */
  
  
  
  
  

  /* FAQ */
  .lp-faq { padding: 44px 0; }

  /* Final CTA */
  .lp-final { padding: 48px 0 56px; }
.lp-final-inner { text-align: center; }
  
  .lp-cta-large.lp-center-cta { width: 100%; }

  /* H2 général */
  .lp-h2 { font-size: 26px; }
  .lp-h2.lp-h2-sm { font-size: 24px; }

  /* Sticky mobile : visible */
  

  /* Body padding-bottom pour ne pas masquer le contenu sous le sticky */
  #landingPage { padding-bottom: 90px; }
}

@media (max-width: 480px) {
  .lp-section-inner { padding: 0 16px; }
  .lp-hero-title { font-size: 30px; }
  .lp-trust-list { gap: 10px 14px; }
}

/* ============ LANDING B (audience froide) — design autonome, classes lpb-* ============ */




















































/* ── Mini-site : nav app désactivée, logo en-têtes, footer, pavé desktop ── */
.bottom-nav { display: none !important; }
.ph-brand { display: inline-flex; align-items: center; gap: 7px; margin: 0 4px; text-decoration: none; cursor: pointer; }
.ph-brand-mark { width: 24px; height: 24px; border-radius: 7px; background: #58E0C1; color: #04212B; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); flex-shrink: 0; }
.ph-brand-name { font-size: 13px; font-weight: 700; color: inherit; white-space: nowrap; }
@media (max-width: 400px) { .ph-brand-name { display: none; } }

.sp-foot { text-align: center; font-size: 12.5px; color: var(--lp-text-mute, #7d949b); padding: 26px 16px 34px; border-top: 1px solid var(--lp-border-soft, rgba(255,255,255,0.07)); }
.sp-foot a { color: var(--lp-gold, #D4AF5A); text-decoration: none; cursor: pointer; }
@media (min-width: 600px) {
  .input-modal { align-items: center; }
  .input-modal-content { height: auto; max-height: 640px; border-radius: 22px; }
}

/* Mini-site : plus d'invitation à installer l'application (PWA) */
.install-prompt { display: none !important; }

/* ── Étanchéité landing : AUCUN élément de l'app (barre wizard, onboarding,
   overlays, modales) ne doit apparaître tant que la landing est affichée ── */
body:not(.landing-hidden) #loginScreen, body:not(.landing-hidden) #onboarding, body:not(.landing-hidden) #wizardFooter, body:not(.landing-hidden) #successOverlay, body:not(.landing-hidden) #toast, body:not(.landing-hidden) #installPrompt, body:not(.landing-hidden) #rateModal, body:not(.landing-hidden) #currencyModal, body:not(.landing-hidden) #installGuideModal, body:not(.landing-hidden) #confirmModal, body:not(.landing-hidden) #incomeModeModal, body:not(.landing-hidden) #langModal, body:not(.landing-hidden) #editMaasserModal { display: none !important; }

/* ── Wizard sans barre sticky : boutons dans le flux + page Résultat ── */
.wizard-footer { display: none !important; }
.wz-next { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 26px 0 8px; background: #58E0C1; color: #04212B; border: none; border-radius: 100px; padding: 17px; font-size: 16px; font-weight: 700; font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.wz-next:disabled { opacity: 0.4; pointer-events: none; }
.wz-next:active { transform: scale(0.985); }
.wz-reset { display: block; margin: 2px auto 0; background: none; border: none; color: rgba(237,245,243,0.45); font-size: 13px; font-family: inherit; cursor: pointer; text-decoration: underline; padding: 8px; }
.res-hero { text-align: center; background: rgba(255,255,255,0.04); border: 1px solid rgba(88,224,193,0.2); border-radius: 22px; padding: 30px 18px 26px; margin: 18px 0 14px; }
.res-eyebrow { font-size: 11.5px; letter-spacing: 0.14em; color: rgba(237,245,243,0.55); font-weight: 700; margin-bottom: 10px; text-transform: uppercase; }
.res-amount { font-family: var(--display); font-weight: 700; font-size: 54px; letter-spacing: -1.5px; color: #58E0C1; line-height: 1; }
.res-rate-line { font-size: 13.5px; color: rgba(237,245,243,0.6); margin-top: 8px; }
.res-detail { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; margin: 0 0 14px; overflow: hidden; }
.res-detail-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: none; color: #EDF5F3; font-family: inherit; font-size: 14.5px; font-weight: 600; padding: 15px 16px; cursor: pointer; }
.res-detail-body { display: none; padding: 2px 16px 14px; }
.res-detail.open .res-detail-body { display: block; }
.res-detail.open .res-detail-chev { transform: rotate(180deg); }
.res-line { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 14px; color: rgba(237,245,243,0.75); border-bottom: 1px dashed rgba(255,255,255,0.07); }
.res-line:last-child { border-bottom: none; }
.res-line.neg .res-line-val { color: #E8A09A; }
.res-line.base { font-weight: 700; color: #EDF5F3; }
.res-line.total .res-line-val { color: #58E0C1; font-weight: 700; }






















/* ── Tunnel de don simplifié ── */


.mm-quote { border-left: 3px solid #D4AF5A; background: rgba(212,175,90,0.07); border-radius: 0 14px 14px 0; padding: 13px 15px; margin: 20px 0 14px; }
.mm-quote p { margin: 0; font-size: 13.5px; line-height: 1.55; font-style: italic; color: rgba(237,245,243,0.8); }
.mm-quote em { color: #E8C97A; }
.mm-quote cite { display: block; margin-top: 6px; font-style: normal; font-size: 11.5px; letter-spacing: 0.08em; color: #D4AF5A; }


.dispatch-secure { text-align: center; font-size: 12.5px; color: rgba(237,245,243,0.55); margin: 12px 0 4px; }




.dispatch-impact { font-size: 14.5px; line-height: 1.55; color: rgba(237,245,243,0.85); margin: 10px 0 6px; }
.dispatch-impact em { color: #E8C97A; font-style: italic; }

/* ── Retouches v86 ── */
.lp-trust-check { color: #58E0C1; font-weight: 800; margin-right: 5px; }
.input-modal-amount { line-height: 1.45 !important; padding: 5px 3px !important; }
.input-modal-display { align-items: center !important; }
.wizard-list-name { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; line-height: 1.3; }
.dispatch-deduct-wrap { text-align: center; margin: -6px 0 14px; }
.dispatch-deduct { background: none; border: none; padding: 6px; color: #E8C97A; font-size: 13.5px; font-weight: 600; font-family: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.dispatch-deduct-line { font-size: 13.5px; line-height: 1.7; color: rgba(237,245,243,0.75); }
.dispatch-deduct-line b { color: #58E0C1; }
.dispatch-deduct-mini { background: none; border: none; padding: 2px 4px; color: #58E0C1; font-size: 12.5px; font-family: inherit; cursor: pointer; text-decoration: underline; }

/* ── Démo simulateur en frames HTML (fidèle au produit) ── */
div.lp-demo-slide.df { display: flex; flex-direction: column; padding: 0; background: linear-gradient(180deg, #0B2530 0%, #04212B 100%); text-align: left; }
.df-head { display: flex; align-items: center; gap: 7px; padding: 11px 11px 9px; }
.df-back { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.08); color: #EDF5F3; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.df-mark { width: 19px; height: 19px; border-radius: 6px; background: #58E0C1; color: #04212B; font-family: var(--display); font-weight: 800; font-size: 10.5px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.df-htitle { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 13px; color: #EDF5F3; flex: 1; white-space: nowrap; overflow: hidden; }
.df-help { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(212,175,90,0.5); color: #D4AF5A; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.df-prog { height: 3px; background: rgba(255,255,255,0.08); }
.df-prog i { display: block; height: 100%; background: #58E0C1; border-radius: 2px; }
.df-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 13px 12px 14px; min-height: 0; }
.df-body-center { justify-content: center; align-items: center; gap: 12px; }
.df-spacer { flex: 1; }
.df-eyebrow { font-size: 9px; letter-spacing: 0.16em; color: #58E0C1; font-weight: 800; }
.df-title { font-family: var(--display); font-weight: 700; font-size: 17.5px; line-height: 1.25; color: #EDF5F3; }
.df-title em { font-style: italic; color: #D4AF5A; }



.df-row { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 11px 10px; font-size: 12px; color: #EDF5F3; font-weight: 600; }
.df-row.is-filled { border-color: rgba(88,224,193,0.55); }
.df-row.is-dim { opacity: 0.55; }
.df-row-emoji { font-size: 14px; }
.df-row-name { flex: 1; }
.df-row-amt { font-family: var(--display); font-style: italic; font-weight: 800; color: #58E0C1; }

.df-btn { width: 100%; background: #58E0C1; color: #04212B; border-radius: 100px; padding: 12px; font-size: 13px; font-weight: 800; text-align: center; }




.df-recap { display: flex; flex-direction: column; align-items: center; gap: 3px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-top: 3px solid #58E0C1; border-radius: 14px; padding: 12px; }
.df-recap-label { font-size: 9px; letter-spacing: 0.16em; color: rgba(237,245,243,0.6); font-weight: 800; }
.df-recap-amt { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 26px; color: #E8C97A; }
.df-recap-sub { font-size: 10px; color: rgba(237,245,243,0.55); }
.df-tiles { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.df-tile { position: relative; background: rgba(255,255,255,0.05); border: 1px solid rgba(88,224,193,0.35); border-radius: 11px; padding: 8px 4px 7px; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.df-tile img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.7); }
.df-tile b { font-size: 8.5px; color: #EDF5F3; font-weight: 600; }
.df-tile i { position: absolute; top: -6px; right: -4px; font-style: normal; font-size: 9px; color: #04212B; background: #58E0C1; font-weight: 800; border-radius: 100px; padding: 2px 6px; }
.df-check { width: 54px; height: 54px; border-radius: 50%; background: #58E0C1; color: #04212B; font-size: 26px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 34px rgba(88,224,193,0.45); }



.df-oneline { font-size: 10.5px; line-height: 1.45; color: rgba(237,245,243,0.7); text-align: center; }
.df-oneline em { color: #E8C97A; font-style: italic; }
.df-tile.is-dim { opacity: 0.42; border-color: rgba(255,255,255,0.15); }
.df-receipt2 { width: 88%; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.df-receipt2 .r { display: flex; justify-content: space-between; gap: 10px; font-size: 10.5px; color: rgba(237,245,243,0.75); }
.df-receipt2 .r b { color: #EDF5F3; font-weight: 700; }
.df-receipt2 .tot { border-top: 1px dashed rgba(255,255,255,0.18); padding-top: 6px; font-weight: 800; color: #EDF5F3; }
.df-receipt2 .tot span:last-child { font-family: var(--display); font-style: italic; color: #E8C97A; font-size: 13px; }
.df-cerfa { font-size: 10.5px; color: #58E0C1; font-weight: 700; text-align: center; }
.hkp-card { border-left: 3px solid #D4AF5A; padding: 4px 0 4px 14px; }
.hkp-head { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.hkp-bulb { font-size: 21px; }
.hkp-eyebrow { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 18px; color: #EDF5F3; }
.hkp-text { font-size: 14.5px; line-height: 1.55; color: rgba(237,245,243,0.82); margin: 0 0 14px; }
.hkp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hkp-chips span { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 100px; padding: 7px 13px; font-size: 13px; font-weight: 600; color: #EDF5F3; }
.hkp-chips span { color: #EDF5F3; }
.wizard-more { margin: 6px 0 6px; }




.wizard-more .wizard-list { display: none; margin-top: 8px; margin-bottom: 0; }
.wizard-more.open .wizard-list { display: flex; }

.wizard-more .wizard-list { display: flex !important; margin-top: 8px; margin-bottom: 0; }
.wizard-more-label { display: flex; align-items: baseline; gap: 7px; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 15.5px; color: var(--tb-text); margin: 20px 0 2px; }
.wizard-more-label span { font-family: var(--body); font-style: normal; font-weight: 700; font-size: 10px; color: var(--tb-gold-premium); letter-spacing: 1.4px; text-transform: uppercase; }
.wizard-more-hint { font-size: 12px; color: var(--tb-text-soft); line-height: 1.45; margin: 0 0 10px; }


.wizard-list-item--main { border-color: var(--tb-gold); border-width: 1.5px; background: linear-gradient(135deg, rgba(88,224,193,0.06) 0%, var(--surface-1) 100%); }
.wizard-list-item--main .wizard-list-emoji { background: rgba(88,224,193,0.12); }
.wizard-list-item--main .wizard-list-name { font-weight: 700; }
.wizard-list-item--main:not(.filled) .wizard-list-amount { color: var(--tb-gold); font-family: var(--body); font-weight: 700; font-size: 13px; }
#wizardSalaireRow { margin-bottom: 4px; }

.dispatch-calc-link { display:block; margin: 10px auto 0; background:none; border:none; color:#E8C97A; font-family: var(--body, 'Inter', sans-serif); font-size:13.5px; font-weight:600; text-decoration:underline; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.dispatch-calc-link:active { opacity:.7; }
.calc-detail { padding: 2px 2px; color: var(--tb-text, #EDF5F3); }
.calc-detail-title { font-family: var(--display, 'Fraunces', serif); font-style:italic; font-weight:700; font-size:21px; margin-bottom:16px; color: var(--tb-text, #EDF5F3); }
.calc-detail-section { margin-bottom: 14px; }
.calc-detail-head { font-size:11px; font-weight:700; letter-spacing:1.3px; text-transform:uppercase; color: var(--tb-text-soft, #9fb6b2); margin-bottom:6px; }
.calc-detail-row { display:flex; justify-content:space-between; gap:16px; padding:6px 0; font-size:15px; color: var(--tb-text, #EDF5F3); }
.calc-detail-row span:last-child { font-variant-numeric: tabular-nums; white-space:nowrap; }
.calc-detail-sub { font-weight:700; border-top:1px solid rgba(255,255,255,.10); margin-top:2px; }
.calc-detail-base { font-weight:700; border-top:1px solid rgba(255,255,255,.16); padding-top:10px; margin-top:4px; }
.calc-detail-total { display:flex; justify-content:space-between; align-items:baseline; gap:16px; margin-top:14px; padding-top:14px; border-top:2px solid #E8C97A; font-family: var(--display, 'Fraunces', serif); font-weight:700; font-size:21px; color:#E8C97A; }

/* Devise : pastille claire dans le pavé */
.input-modal-currency-btn { display:inline-flex; align-items:center; gap:5px; font-family: var(--body, 'Inter', sans-serif); font-weight:700; font-size:14px; color:#D4AF5A; }
.input-modal-currency-btn .imc-code { letter-spacing:0.5px; }
.input-modal-currency-btn .imc-chev { font-size:12px; opacity:0.8; }
/* Devise : pastille visible sur l'écran Entrées */
.currency-row { display:flex; justify-content:flex-end; margin: 2px 0 10px; }
.currency-chip { display:inline-flex; align-items:center; gap:8px; background: rgba(212,175,90,0.10); border:1px solid rgba(212,175,90,0.32); border-radius:100px; padding:7px 14px; color: var(--tb-text, #EDF5F3); font-family: var(--body,'Inter',sans-serif); font-size:13px; font-weight:600; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.currency-chip:active { background: rgba(212,175,90,0.18); }
.currency-chip-lbl { color: var(--tb-text-soft, #9fb6b2); font-size:11px; text-transform:uppercase; letter-spacing:1px; font-weight:700; }
.currency-chip-val { color:#E8C97A; font-weight:700; }
.currency-chip-chev { color: var(--tb-text-soft, #9fb6b2); font-size:12px; }

/* Saisie : champ natif (clavier numérique du téléphone) */
.input-modal-content { height: auto; max-height: 92dvh; padding-bottom: calc(var(--safe-bottom) + 6px); }
input.input-modal-field { background: transparent; border: none; outline: none; text-align: center; flex: 1 1 auto; width: auto; min-width: 0; caret-color: var(--tb-gold-premium); -webkit-appearance: none; appearance: none; }
input.input-modal-field::placeholder { color: rgba(212,175,90,0.45); }


/* Wizard : champ de saisie inline (clavier natif du téléphone) */
.wizard-list-amount { display: flex; align-items: baseline; gap: 3px; }
input.wizard-inline-input { background: transparent; border: none; outline: none; text-align: right; width: 88px; max-width: 38vw; min-width: 30px; font: inherit; color: inherit; -webkit-appearance: none; appearance: none; caret-color: var(--tb-gold-premium); font-variant-numeric: tabular-nums; padding: 0; }
input.wizard-inline-input::placeholder { color: rgba(255,255,255,0.26); }
.wizard-inline-cur { opacity: 0.75; }

/* Don manuel : champ de montant inline (clavier natif) — style propre */
input.qd-amount-field {
  background: transparent;
  border: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  text-align: right;
  width: min(52%, 200px);
  min-width: 40px;
  padding: 0;
  caret-color: var(--tb-gold-premium);
  font-variant-numeric: tabular-nums;
}
input.qd-amount-field::placeholder { color: var(--tb-gold-premium); opacity: 0.32; }

/* Mini-site en euros uniquement : sélecteurs de devise masqués */
.currency-row, .input-modal-currency-btn { display: none !important; }

/* Don manuel : € cliquable pour changer la devise */
.qd-currency-btn { background: transparent; border: none; padding: 0; cursor: pointer; display: inline-flex; align-items: baseline; gap: 3px; -webkit-tap-highlight-color: transparent; }
.qd-currency-btn:active { opacity: 0.65; }
.qd-currency-btn .qd-cur-chev { font-size: 18px; font-weight: 700; color: var(--tb-gold-premium); opacity: 0.65; font-family: var(--body, 'Inter', sans-serif); align-self: center; }
/* Pastille devise centrée et plus visible sur le don manuel */
.currency-row { justify-content: center; }
