/* ==========================================================================
   AfriKash v5 — Design System (full rewrite)
   Premium African fintech: warm ivory + deep forest green + matte gold.
   Mobile-first · RTL-ready (logical properties) · zero external resources.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --brand-900: #0B2E21;
  --brand-700: #14513A;
  --brand-500: #1E7A55;
  --brand-100: #E3F0E8;
  --accent: #C9962E;
  --accent-600: #A97B1F;
  --accent-soft: #F5EBCF;
  --bg: #FAF6EE;
  --card: #FFFFFF;
  --ink: #1A2420;
  --muted: #5D6B63;
  --line: #E8E1D2;
  --danger: #B4452F;
  --ok: #1E7A55;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --sh-sm: 0 1px 2px rgba(26,36,32,.06), 0 2px 8px rgba(26,36,32,.05);
  --sh-lg: 0 2px 6px rgba(26,36,32,.06), 0 18px 44px -12px rgba(11,46,33,.18);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1140px;
  --field-bg: #FDFBF5;
  --ease: 200ms ease;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand-700); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--accent-600); text-decoration: underline; }
ul, ol { list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
::selection { background: var(--accent-soft); color: var(--brand-900); }

/* --------------------------------------------------------------------------
   3. Utilities
   -------------------------------------------------------------------------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 60px; }
.section-alt { background: #F3EDE0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
/* Native selects replaced by the custom .csel component (kept for a11y) */
.sr-hide {
  position: absolute !important; width: 1px !important; height: 1px !important;
  opacity: 0; pointer-events: none; overflow: hidden;
}

.badge {
  display: inline-block; padding: 4px 13px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-600);
  font-size: .8rem; font-weight: 700; letter-spacing: .02em;
}
.badge-success { background: var(--brand-100); color: var(--brand-700); }

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3 { line-height: 1.18; letter-spacing: -.015em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 5.4vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3.6vw, 2rem); font-weight: 800; margin-bottom: 12px; }
h3 { font-size: 1.1rem; font-weight: 700; }
.lead { font-size: clamp(1rem, 2.5vw, 1.18rem); color: var(--muted); max-width: 52ch; }

/* Section header with a gold "eyebrow" accent bar */
.section-head { max-width: 660px; margin-bottom: 36px; }
.section-head::before {
  content: ""; display: block; width: 46px; height: 4px;
  border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-600));
  margin-bottom: 14px;
}
.section-head.center { margin-inline: auto; }
.section-head.center::before { margin-inline: auto; }
.section-head .lead { margin-inline: auto; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 13px 24px;
  border-radius: var(--r-md); border: 1.5px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease,
              background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(165deg, var(--brand-500), var(--brand-700));
  color: #fff; box-shadow: var(--sh-sm);
}
.btn-primary:hover { background: linear-gradient(165deg, #238A61, var(--brand-900)); color: #fff; box-shadow: var(--sh-lg); }
.btn-outline { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-600); }
.btn-ghost { background: transparent; border-color: var(--brand-500); color: var(--brand-700); }
.btn-ghost:hover { background: var(--brand-100); }
.btn-block { width: 100%; }
.btn-sm { min-height: 42px; padding: 8px 16px; font-size: .9rem; border-radius: var(--r-sm); }

/* --------------------------------------------------------------------------
   6. Sticky header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 238, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 14px;
  padding-block: 11px; padding-inline: 20px;
  max-width: var(--wrap); margin-inline: auto;
}
.logo {
  font-size: 1.35rem; font-weight: 800; color: var(--brand-900);
  letter-spacing: -.02em; text-decoration: none; white-space: nowrap;
}
.logo:hover { text-decoration: none; color: var(--brand-900); }
.logo span { color: var(--accent); }
.mini-ticker {
  display: none; align-items: center; gap: 7px;
  font-size: .8rem; color: var(--muted);
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 14px; white-space: nowrap;
  box-shadow: var(--sh-sm);
}
.mini-ticker strong { color: var(--brand-900); font-weight: 700; }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang-select {
  min-height: 42px; padding-inline: 10px; border: 1.5px solid var(--line);
  border-radius: var(--r-sm); background: var(--card);
  font-size: .88rem; cursor: pointer; transition: border-color var(--ease);
}
.lang-select:hover { border-color: var(--brand-500); }

/* --------------------------------------------------------------------------
   7. Live price ticker band
   -------------------------------------------------------------------------- */
.ticker-band {
  background: linear-gradient(90deg, var(--brand-900), #0E3A2A 50%, var(--brand-900));
  color: #D8E7DD; overflow: hidden; padding-block: 11px;
  border-block: 1px solid rgba(201, 150, 46, .28);
}
.ticker-track {
  display: flex; gap: 34px; width: max-content;
  animation: ticker-scroll 42s linear infinite;
}
.ticker-band:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: baseline; gap: 7px; font-size: .88rem; white-space: nowrap; }
.ticker-item .sym { font-weight: 800; color: var(--accent); letter-spacing: .02em; }
.ticker-item .px { font-weight: 600; }
.ticker-item .chg { font-size: .78rem; color: #9DB5A8; }
.ticker-item .chg.up { color: #82CFA4; }
.ticker-item .chg.down { color: #E8A08D; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ticker-scroll-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* --------------------------------------------------------------------------
   8. Hero with warm radial halo
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: 46px 56px;
  background:
    radial-gradient(640px 360px at 16% -4%, rgba(201, 150, 46, .16), transparent 66%),
    radial-gradient(780px 460px at 88% 14%, rgba(30, 122, 85, .11), transparent 62%),
    var(--bg);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 34px; align-items: start; position: relative;
}
.hero-grid > * { min-width: 0; }
.hero h1 { margin-bottom: 16px; }
.hero h1 em {
  font-style: normal; color: var(--brand-700);
  background: linear-gradient(transparent 62%, rgba(201, 150, 46, .32) 62%);
  padding-inline: 2px;
}
.hero .lead { margin-bottom: 22px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }

/* --------------------------------------------------------------------------
   9. Calculator card — the centerpiece
   -------------------------------------------------------------------------- */
.calc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 22px;
  position: relative;
}
.calc-card::before {
  content: ""; position: absolute; inset-inline: 22px; top: 0; height: 4px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--brand-500), var(--accent));
}
.calc-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 4px;
}
.calc-head h2, .calc-card > h2 { font-size: 1.22rem; margin-bottom: 4px; }
.calc-sub { font-size: .87rem; color: var(--muted); margin-bottom: 16px; }
.calc-head .calc-sub { margin-bottom: 0; }

/* Live badge with pulsing dot */
.live-badge {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 5px 12px; border-radius: 999px;
  background: var(--brand-100); color: var(--brand-700);
  font-size: .73rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; white-space: nowrap; margin-top: 2px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-500);
  animation: live-pulse 1.7s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30, 122, 85, .45); }
  55% { box-shadow: 0 0 0 6px rgba(30, 122, 85, 0); }
}

/* Form fields */
.field { margin-bottom: 15px; min-width: 0; }
.field label {
  display: block; font-size: .84rem; font-weight: 700;
  color: var(--muted); margin-bottom: 6px; letter-spacing: .01em;
}
.field input, .field select {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: var(--field-bg); font-size: 1rem;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}
.field input:hover, .field select:hover { border-color: #CFC5AF; }
.field input:focus, .field select:focus {
  border-color: var(--accent); outline: none; background: #fff;
  box-shadow: 0 0 0 3px rgba(201, 150, 46, .18);
}
.field-row { display: grid; grid-template-columns: 1fr; gap: 0; }

/* Amount input with currency tag + live crypto equivalent */
.amount-box {
  display: flex; align-items: stretch;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: var(--field-bg); overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}
.amount-box:hover { border-color: #CFC5AF; }
.amount-box:focus-within {
  border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 3px rgba(201, 150, 46, .18);
}
.amount-box input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  min-height: 52px; padding: 12px 14px;
  font-size: 1.08rem; font-weight: 700; color: var(--ink);
  outline: none; box-shadow: none;
}
.amount-box input:focus { box-shadow: none; background: transparent; }
.amount-ccy {
  display: inline-flex; align-items: center; padding-inline: 15px;
  background: var(--brand-100); color: var(--brand-900);
  font-weight: 800; font-size: .84rem; letter-spacing: .03em;
  border-inline-start: 1.5px solid var(--line);
}
.crypto-equiv {
  margin-top: 8px; min-height: 1.25em;
  font-size: .89rem; font-weight: 600; color: var(--brand-700);
}
.crypto-equiv:empty { margin-top: 0; }

/* Extra blocks (cash / delivery / bank / wallet note) */
.calc-extra {
  border-top: 1px dashed var(--line);
  margin-top: 16px; padding-top: 14px;
}
.extra-title { font-weight: 700; margin-bottom: 10px; font-size: .95rem; color: var(--ink); }
.extra-note { font-size: .82rem; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.points-list {
  margin-top: 10px; padding-inline-start: 20px;
  font-size: .9rem; color: var(--muted); list-style: disc;
}
.points-list li { margin: 3px 0; }
.wallet-note {
  border-top: 1px dashed var(--line);
  margin-top: 16px; padding-top: 12px;
  word-break: break-word;
}
#cash-geo-status:not(:empty) { margin-top: 8px; color: var(--muted); }

/* Result panel */
.calc-result {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.calc-line {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  font-size: .9rem; padding: 4px 0; color: var(--muted);
}
.calc-line strong {
  color: var(--ink); font-weight: 650; text-align: end;
  font-variant-numeric: tabular-nums;
}
.send-line {
  margin-top: 8px; padding: 9px 13px;
  background: var(--accent-soft); border-radius: var(--r-sm);
  color: var(--accent-600); font-weight: 600;
}
.send-line strong { color: var(--brand-900); font-weight: 800; }

/* Net amount — displayed BIG */
.calc-net {
  margin-top: 14px; padding: 16px 14px;
  border-radius: var(--r-md); text-align: center;
  background: linear-gradient(155deg, var(--brand-100), #EFF6EC);
  border: 1px solid #D3E5D9;
}
.net-label {
  display: block; font-size: .74rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em; color: var(--brand-700);
}
.net-value {
  display: block; margin-top: 3px;
  font-size: clamp(1.8rem, 7.5vw, 2.45rem);
  font-weight: 800; color: var(--brand-900); line-height: 1.15;
  word-break: break-word; font-variant-numeric: tabular-nums;
}
.calc-note { font-size: .79rem; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.calc-result 
/* Offline notice */
.offline-note {
  display: none; margin-bottom: 14px; padding: 10px 13px;
  background: var(--accent-soft); border: 1px solid #E9D9AE;
  border-radius: var(--r-sm);
  font-size: .85rem; color: var(--accent-600); font-weight: 600;
}
.offline .offline-note { display: block; }

/* --------------------------------------------------------------------------
   10. Secure payment block + wallet panel
   -------------------------------------------------------------------------- */
.pay-block {
  margin-top: 18px; padding: 18px;
  border-radius: var(--r-md);
  background:
    radial-gradient(320px 160px at 90% 0%, rgba(201, 150, 46, .22), transparent 70%),
    linear-gradient(160deg, var(--brand-900), var(--brand-700));
  color: #E4EFE8;
  box-shadow: var(--sh-sm);
}
.pay-title { font-weight: 800; font-size: .95rem; letter-spacing: .03em; }
.pay-amount {
  margin: 7px 0 14px; font-size: 1.02rem; font-weight: 600;
  color: var(--accent-soft); line-height: 1.4;
}
.btn-wallet {
  background: linear-gradient(165deg, #D9A83C, var(--accent));
  color: var(--brand-900); box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.btn-wallet:hover { background: linear-gradient(165deg, #E4B54A, var(--accent-600)); color: var(--brand-900); }
.btn-wallet.is-connected { background: var(--brand-100); color: var(--brand-900); }

.wallet-panel {
  margin-top: 15px; padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}
.wallet-status {
  font-size: .88rem; color: #C7DECF; margin-bottom: 10px;
  word-break: break-word; line-height: 1.5;
}
.wallet-manual-row { margin-top: 10px; text-align: center; }
.wallet-fallback {
  margin-top: 12px; padding: 13px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-sm);
}
.wf-label { font-size: .82rem; color: #C7DECF; margin-bottom: 9px; line-height: 1.5; }
.wf-addr-row { display: flex; align-items: center; gap: 8px; }
.wf-addr {
  flex: 1; min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
  font-size: .79rem; padding: 9px 11px;
  background: rgba(0, 0, 0, .28); color: var(--accent-soft);
  border-radius: 8px; direction: ltr; unicode-bidi: embed;
}
.wf-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
/* Ghost/outline buttons sitting on the dark pay panel */
.pay-block .btn-ghost { border-color: rgba(255, 255, 255, .45); color: #E4EFE8; }
.pay-block .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.pay-block .btn-outline {
  background: transparent; border-color: rgba(255, 255, 255, .3); color: #E4EFE8;
}
.pay-block .btn-outline:hover { border-color: var(--accent); color: var(--accent-soft); }

/* --------------------------------------------------------------------------
   11. Custom select component (.csel)
   -------------------------------------------------------------------------- */
.csel { position: relative; }
.csel-btn {
  width: 100%; min-height: 52px;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; text-align: start;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: var(--field-bg); cursor: pointer;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}
.csel-btn:hover { border-color: var(--brand-500); }
.csel-btn:focus-visible { outline-offset: 1px; }
.csel-btn[aria-expanded="true"] {
  border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 3px rgba(201, 150, 46, .18);
}
.csel-current {
  flex: 1; min-width: 0; overflow: hidden;
  display: flex; align-items: center; gap: 10px;
}
.csel-caret {
  flex: none; color: var(--muted);
  transition: transform var(--ease);
}
.csel-btn[aria-expanded="true"] .csel-caret { transform: rotate(180deg); }

.csel-panel {
  position: absolute; z-index: 60;
  inset-inline: 0; top: calc(100% + 6px);
  min-width: min(270px, calc(100vw - 40px));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  animation: csel-in 150ms ease;
}
@keyframes csel-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.csel-search {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 13px; color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.csel-filter {
  flex: 1; min-width: 0; border: 0; outline: none;
  background: transparent; font-size: .95rem; min-height: 30px;
}
.csel-list {
  max-height: 248px; overflow-y: auto; padding: 6px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.csel-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--r-sm);
  cursor: pointer; transition: background 120ms ease;
}
.csel-opt:hover, .csel-opt.is-active { background: var(--brand-100); }
.csel-opt.is-selected { font-weight: 600; }
.csel-opt.is-selected::after {
  content: "\2713"; margin-inline-start: auto; flex: none;
  color: var(--accent); font-weight: 800; font-size: 1rem;
}
.csel-empty {
  padding: 16px; text-align: center;
  color: var(--muted); font-size: .88rem;
}

/* Option content pieces (crypto / currency / country / method) */
.cbadge {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-700); color: #fff;
  font-size: .8rem; font-weight: 800;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, .18);
}
.cbadge.ccy {
  width: auto; min-width: 36px; height: 26px; padding-inline: 9px;
  border-radius: 999px; box-shadow: none;
  background: var(--accent-soft); color: var(--brand-900);
  font-size: 11px; letter-spacing: .05em;
}
.cflag { flex: none; font-size: 1.3rem; line-height: 1; }
.csel-opt-text {
  display: flex; flex-direction: column;
  flex: 1 1 auto; min-width: 58px; line-height: 1.28;
}
.csel-opt-text strong {
  font-size: .95rem; font-weight: 700; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.csel-opt-text small {
  font-size: .77rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.csel-chips {
  margin-inline-start: auto; flex: 0 12 auto; min-width: 0;
  overflow: hidden; display: flex; gap: 4px;
}
.csel-chips i {
  font-style: normal; font-size: .68rem; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  background: var(--brand-100); color: var(--brand-700);
}
.csel-chips i.more { background: var(--accent-soft); color: var(--accent-600); }
.fee-chip {
  margin-inline-start: auto; flex: none;
  font-size: .74rem; font-weight: 800;
  padding: 3px 10px; border-radius: 999px;
  background: var(--brand-100); color: var(--brand-700);
}
.fee-chip.fixed { background: var(--accent-soft); color: var(--accent-600); }

/* --------------------------------------------------------------------------
   12. Steps ("How it works")
   -------------------------------------------------------------------------- */
.steps { display: grid; gap: 16px; }
.step {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px;
  box-shadow: var(--sh-sm);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.step:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: #DCD2BC; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(160deg, var(--brand-500), var(--brand-700));
  color: #fff; font-weight: 800; font-size: 1.05rem;
  margin-bottom: 14px;
  box-shadow: 0 0 0 4px var(--brand-100);
}
.step h3 { margin-bottom: 7px; }
.step p { color: var(--muted); font-size: .95rem; }

/* --------------------------------------------------------------------------
   13. Method & country cards
   -------------------------------------------------------------------------- */
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.method-card, .country-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px;
  box-shadow: var(--sh-sm);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.method-card:hover, .country-card:hover {
  transform: translateY(-3px); box-shadow: var(--sh-lg);
  border-color: rgba(201, 150, 46, .55);
}
.method-card h3 { display: flex; align-items: center; gap: 11px; margin-bottom: 7px; }
.method-icon {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-600);
}
.method-card p { font-size: .94rem; color: var(--muted); }
.method-card .fee { font-size: .82rem; color: var(--muted); margin-top: 9px; font-weight: 600; }
.method-card .delay { margin-top: 11px; }
.country-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 15px 19px;
}
.country-card .name { font-weight: 700; }
.country-card .cur { font-size: .8rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   14. "Why" trust grid
   -------------------------------------------------------------------------- */
.why-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); }
.why-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px;
  transition: transform var(--ease), box-shadow var(--ease);
}
.why-item:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.why-item h3 { font-size: 1rem; margin-bottom: 7px; }
.why-item h3::before {
  content: ""; display: inline-block; width: 9px; height: 9px;
  border-radius: 50%; background: var(--accent);
  margin-inline-end: 9px; vertical-align: 1px;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.why-item p { font-size: .92rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   15. FAQ accordion
   -------------------------------------------------------------------------- */
.faq details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); margin-bottom: 11px; overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.faq details:hover { border-color: #DCD2BC; }
.faq details[open] { border-color: rgba(201, 150, 46, .5); box-shadow: var(--sh-sm); }
.faq summary {
  cursor: pointer; padding: 17px 19px; font-weight: 700;
  list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 14px;
  transition: color var(--ease);
}
.faq summary:hover { color: var(--brand-700); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 auto;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A97B1F' stroke-width='2.6'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  background-size: 13px; background-repeat: no-repeat; background-position: center;
  transition: transform var(--ease), background-color var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--accent-soft); }
.faq details .answer { padding: 0 19px 17px; color: var(--muted); font-size: .95rem; }

/* --------------------------------------------------------------------------
   16. Disclaimer & final CTA
   -------------------------------------------------------------------------- */
.disclaimer {
  background: var(--accent-soft); border: 1px solid #E7D6AC;
  border-radius: var(--r-lg); padding: 22px;
  font-size: .88rem; color: #6B5417; line-height: 1.6;
}
.disclaimer strong { display: block; margin-bottom: 7px; color: var(--accent-600); }
.cta-final { text-align: center; }
.cta-final .lead { margin-inline: auto; }
.cta-final .btn { margin-top: 20px; }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 60px; padding-block: 44px 30px;
  background:
    radial-gradient(560px 240px at 12% 0%, rgba(201, 150, 46, .1), transparent 65%),
    var(--brand-900);
  color: #C3D5CA; font-size: .9rem;
}
.site-footer a { color: #E6EFE9; }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; gap: 26px; }
.footer-grid h3 { color: #fff; font-size: .95rem; margin-bottom: 11px; }
.footer-grid h3::after {
  content: ""; display: block; width: 26px; height: 2px;
  background: var(--accent); border-radius: 1px; margin-top: 6px;
}
.footer-grid li { margin-bottom: 7px; }
.footer-grid .small { color: #A9BFB2; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 30px; padding-top: 19px;
  font-size: .79rem; color: #8FA89A;
}

/* --------------------------------------------------------------------------
   18. Language picker page + blog/prose
   -------------------------------------------------------------------------- */
.lang-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.lang-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  padding: 38px 30px; max-width: 460px; width: 100%; text-align: center;
}
.lang-card .logo { font-size: 1.65rem; display: inline-block; margin-bottom: 9px; }
.lang-links { display: grid; gap: 10px; margin-top: 24px; }
.lang-links a {
  display: block; padding: 14px; border: 1.5px solid var(--line);
  border-radius: var(--r-md); font-weight: 700; color: var(--ink);
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
}
.lang-links a:hover {
  border-color: var(--accent); text-decoration: none;
  background: var(--accent-soft); transform: translateY(-1px);
}
.breadcrumb { font-size: .85rem; color: var(--muted); margin: 16px 0 4px; }
.breadcrumb a { color: var(--brand-700); }
.breadcrumb a:hover { text-decoration: underline; }
.prose { max-width: 720px; margin-inline: auto; padding-bottom: 34px; }
.prose h1 { font-size: clamp(1.55rem, 4vw, 2.1rem); line-height: 1.25; margin: 7px 0 13px; }
.prose h2 { font-size: clamp(1.18rem, 3vw, 1.45rem); margin: 28px 0 11px; }
.prose h3 { margin: 22px 0 9px; }
.prose p { margin-bottom: 15px; line-height: 1.72; }
.prose .lead { margin-bottom: 19px; }
.prose ul { list-style: disc; padding-inline-start: 22px; margin-bottom: 15px; color: var(--muted); }
.prose li { margin-bottom: 5px; }
.cta-box {
  margin-top: 30px; padding: 24px; text-align: center;
  background: var(--brand-100); border: 1px solid #CFE2D6;
  border-radius: var(--r-lg);
}
.cta-box .btn { margin-top: 12px; }

/* --------------------------------------------------------------------------
   19. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* --------------------------------------------------------------------------
   20. RTL adjustments ([dir="rtl"]) — logical properties cover most of it
   -------------------------------------------------------------------------- */
[dir="rtl"] .ticker-track { animation-name: ticker-scroll-rtl; }
/* Latin-only values injected by JS: keep digits/symbols in logical order */
[dir="rtl"] .calc-line strong { direction: ltr; unicode-bidi: embed; }
[dir="rtl"] .mini-ticker { direction: ltr; }
[dir="rtl"] .net-value { unicode-bidi: plaintext; }
[dir="rtl"] .breadcrumb, [dir="rtl"] .prose { text-align: right; }
[dir="rtl"] .csel-list { direction: rtl; }

/* --------------------------------------------------------------------------
   21. Breakpoints
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .field-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .calc-card { padding: 26px; }
  .mini-ticker { display: inline-flex; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .section { padding-block: 76px; }
  .hero { padding-block: 72px 80px; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 52px; align-items: center; }
  .calc-card { padding: 30px; }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

/* --------------------------------------------------------------------------
   22. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; padding-inline: 20px; }
  .live-dot { animation: none; }
  .csel-panel { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}


/* --------------------------------------------------------------------------
   23. Header : boutons compte + menu burger (mobile)
   -------------------------------------------------------------------------- */
.hdr-auth { display: none; }
.hdr-burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
  width: 42px; height: 42px; padding: 0 10px; flex: none;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer; transition: border-color var(--ease);
}
.hdr-burger:hover { border-color: var(--brand-500); }
.hdr-burger span { display: block; height: 2px; background: var(--brand-900); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.hdr-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hdr-burger.is-open span:nth-child(2) { opacity: 0; }
.hdr-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.hdr-menu {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 49;
  background: var(--bg); border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px -18px rgba(11, 46, 33, .25);
  display: flex; flex-direction: column; padding: 6px 20px 12px;
}
.hdr-menu a {
  padding: 12px 4px; border-bottom: 1px solid var(--line);
  color: var(--brand-900); font-weight: 600; text-decoration: none; font-size: .95rem;
}
.hdr-menu a:last-child { border-bottom: 0; }
.hdr-menu a:hover { color: var(--accent); text-decoration: none; }
.hdr-menu .hdr-menu-cta { color: var(--accent); }
@media (min-width: 640px) {
  .hdr-auth { display: inline-flex; }
  .hdr-burger { display: none; }
  .hdr-menu { display: none !important; }
}
@media (max-width: 420px) {
  .header-inner { gap: 8px; padding-inline: 14px; }
  .logo { font-size: 1.18rem; }
  .lang-select { max-width: 118px; text-overflow: ellipsis; }
}

/* --------------------------------------------------------------------------
   24. Ticket de commande (modale)
   -------------------------------------------------------------------------- */
.order-modal {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(11, 46, 33, .55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.order-modal[hidden] { display: none; }
.order-card {
  background: var(--bg); border-radius: 18px; border: 1px solid var(--line);
  max-width: 460px; width: 100%; padding: 26px 24px; position: relative;
  box-shadow: 0 30px 60px -20px rgba(11, 46, 33, .45);
  max-height: 90vh; overflow: auto;
}
.order-close {
  position: absolute; top: 10px; inset-inline-end: 12px;
  background: none; border: 0; font-size: 1.6rem; color: var(--muted); cursor: pointer; line-height: 1;
}
.order-close:hover { color: var(--brand-900); }
.order-ref { font-size: .9rem; color: var(--muted); }
.order-ref strong { color: var(--brand-900); letter-spacing: .04em; }
.order-lines { margin: 14px 0; }
.order-line { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.order-line span { color: var(--muted); }
.order-addr { margin: 12px 0; }
.order-timer { font-size: .9rem; color: var(--muted); margin: 10px 0 14px; }
.order-timer strong { color: var(--accent); font-variant-numeric: tabular-nums; }
.order-tx { font-size: .8rem; word-break: break-all; color: var(--brand-700, #16503A); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }

/* --------------------------------------------------------------------------
   25. Page Compte + support en direct
   -------------------------------------------------------------------------- */
.hero-slim { padding-block: 40px 26px; }
.acct-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .acct-grid { grid-template-columns: 1fr 1fr; } }
.acct-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--sh-sm); }
.acct-form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.acct-form input { min-height: 46px; padding-inline: 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--bg); font-size: .95rem; }
.acct-form input:focus { border-color: var(--brand-500); outline: none; }
.feat-item h3 { font-size: .98rem; font-weight: 600; }
.sup-chat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--sh-sm); }
.sup-log { max-height: 320px; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.sup-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: .92rem; line-height: 1.45; }
.sup-bot { background: var(--bg); border: 1px solid var(--line); align-self: flex-start; border-start-start-radius: 4px; }
.sup-user { background: var(--brand-900); color: #F2F7F3; align-self: flex-end; border-start-end-radius: 4px; }
.sup-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.sup-chip { border: 1.5px solid var(--line); background: var(--bg); border-radius: 999px; padding: 7px 14px; font-size: .85rem; cursor: pointer; color: var(--brand-900); font-weight: 600; }
.sup-chip:hover { border-color: var(--brand-500); }
.sup-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.sup-input input { flex: 1; min-height: 44px; padding-inline: 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--bg); font-size: .95rem; }
.sup-input input:focus { border-color: var(--brand-500); outline: none; }

/* --- Logo crypto officiel dans le sélecteur (pack cryptocurrency-icons) --- */
.cbadge.cico { background: transparent; padding: 0; overflow: hidden; }
.cbadge.cico svg { display: block; width: 100%; height: 100%; border-radius: 50%; }

.acct-done { margin: 10px 0 0; }
.acct-done a { text-align: center; }
