/* ================================================
   CEJE OPDS ONG — Design System v3
   Reproduction pixel-perfect de modele.png
   ================================================ */

/* ===== VARIABLES ===== */
:root {
  --blue:    #0D47D9;
  --blue-2:  #1565FF;
  --blue-dk: #0A3BC2;
  --green:   #18A63D;
  --green-2: #22C55E;
  --bg:      #F0F2F7;
  --white:   #FFFFFF;
  --t1: #111827;
  --t2: #374151;
  --t3: #6B7280;
  --t4: #9CA3AF;
  --border: #E5E7EB;
  --red:    #EF4444;
  --orange: #F97316;
  --gold:   #F59E0B;
  --purple: #8B5CF6;

  --sh-xs: 0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.06);
  --sh-sm: 0 2px 8px rgba(0,0,0,.08);
  --sh:    0 4px 16px rgba(0,0,0,.10);
  --sh-lg: 0 10px 32px rgba(0,0,0,.14);
  --sh-xl: 0 20px 48px rgba(0,0,0,.18);
  --sh-blue:  0 8px 24px rgba(13,71,217,.30);
  --sh-green: 0 8px 24px rgba(24,166,61,.28);

  --r-sm: 12px;
  --r:    18px;
  --r-lg: 24px;
  --r-xl: 32px;

  --nav-h: 72px;
  --f: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--f); cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
input, select, textarea { font-family: var(--f); }
ul { list-style: none; }

body {
  font-family: var(--f);
  background: var(--bg);
  color: var(--t1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  justify-content: center;
  min-height: 100%;
  margin: 0;
}

@media (min-width: 540px) {
  body { background: #B8BED0; align-items: flex-start; }
}

/* ===== APP SHELL ===== */
main {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

@media (min-width: 540px) {
  main { box-shadow: 0 0 80px rgba(0,0,0,.28); }
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  min-height: var(--nav-h);
  height: auto;
  background: #fff;
  border-top: 1px solid #eee;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -4px 24px rgba(0,0,0,.09);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 10px env(safe-area-inset-bottom, 0);
  z-index: 1000;
}

.bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--t4);
  text-decoration: none;
  cursor: pointer;
  padding: 4px 0;
  transition: color .2s;
}
.bn-item .bni { font-size: 22px; }
.bn-item .bnl { font-size: 10px; font-weight: 500; }
.bn-item.active { color: var(--blue); }

.bn-fab-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bn-fab {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 28px;
  box-shadow: var(--sh-blue);
  margin-top: -22px;
  text-decoration: none;
  border: none;
  transition: transform .15s;
}
.bn-fab:active { transform: scale(.94); }

/* ===== PAGE HEADER BAR ===== */
.pg-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 12px;
}

.btn-back {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--t1); font-size: 18px;
  text-decoration: none; border: none;
  flex-shrink: 0;
}

.pg-hdr-title {
  font-size: 17px; font-weight: 700; color: var(--t1);
  flex: 1; text-align: center;
}

.pg-hdr-action {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--t2); font-size: 18px;
  text-decoration: none; border: none;
  flex-shrink: 0;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .15s, opacity .15s;
  text-decoration: none;
  font-family: var(--f);
  gap: 8px;
  white-space: nowrap;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color:#fff; box-shadow:var(--sh-blue); }
.btn-green   { background: linear-gradient(135deg, var(--green), var(--green-2)); color:#fff; box-shadow:var(--sh-green); }
.btn-white   { background: #fff; color: var(--blue); border: 1.5px solid rgba(255,255,255,.3); box-shadow: 0 4px 14px rgba(0,0,0,.10); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--t1); }
.btn-ghost   { background: rgba(255,255,255,.15); color:#fff; border:1.5px solid rgba(255,255,255,.28); }
.btn-danger  { background: var(--red); color:#fff; box-shadow: 0 6px 18px rgba(239,68,68,.25); }
.btn-sm  { height: 38px; font-size: 13px; padding: 0 14px; border-radius: 10px; font-weight: 600; }
.btn-lg  { height: 56px; font-size: 16px; border-radius: 16px; }
.btn-block { width: 100%; }

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--sh);
  border: none;
}
.card-sm { padding: 14px; border-radius: var(--r); }

/* ===== FORM INPUTS ===== */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 11px; font-weight: 700;
  color: var(--t3); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .6px;
}

.input-wrap { position: relative; }

.input-icon {
  position: absolute; left: 15px;
  top: 50%; transform: translateY(-50%);
  color: var(--t4); font-size: 17px;
  pointer-events: none; z-index: 1;
}

.form-control {
  width: 100%; height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: #F8F9FB;
  font-size: 14px; font-family: var(--f); color: var(--t1);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
.form-control.has-icon { padding-left: 46px; }
.form-control:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(13,71,217,.08);
}
.form-control::placeholder { color: var(--t4); }

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239CA3AF' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: #F8F9FB;
  padding-right: 40px;
  cursor: pointer;
}

.form-check { display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.form-check input[type="checkbox"] {
  width:20px; height:20px; border-radius:6px;
  border:1.5px solid var(--border);
  cursor:pointer; accent-color:var(--blue); flex-shrink:0;
}
.form-check label { font-size:13px; color:var(--t2); cursor:pointer; }

/* ===== ALERTS ===== */
.alert {
  padding: 13px 16px;
  border-radius: 14px;
  margin-bottom: 16px;
  font-size: 13px; font-weight: 500;
  display: flex; gap: 10px; align-items: flex-start;
}
.alert-danger  { background:rgba(239,68,68,.08); color:var(--red); border:1px solid rgba(239,68,68,.16); }
.alert-success { background:rgba(24,166,61,.08); color:var(--green); border:1px solid rgba(24,166,61,.16); }
.alert ul { margin: 4px 0 0 16px; }

/* ===== STEPPER ===== */
.stepper {
  display: flex; align-items: center; justify-content: center;
  padding: 20px 40px 8px; gap: 0;
}
.step-dot {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
  background: var(--border); color: var(--t4);
  flex-shrink: 0; transition: .25s;
}
.step-dot.active { background: var(--blue); color: #fff; }
.step-dot.done   { background: var(--green); color: #fff; }
.step-line { flex:1; height:2px; background:var(--border); max-width:60px; transition:.25s; }
.step-line.done   { background: var(--green); }
.step-line.active { background: var(--blue); }

/* ===== BADGES ===== */
.badge {
  display:inline-flex; align-items:center; gap:4px;
  padding:4px 10px; border-radius:20px;
  font-size:11px; font-weight:600; line-height:1;
}
.badge-green  { background:rgba(24,166,61,.12); color:var(--green); }
.badge-blue   { background:rgba(13,71,217,.10); color:var(--blue); }
.badge-gold   { background:rgba(245,158,11,.12); color:var(--gold); }
.badge-red    { background:rgba(239,68,68,.10); color:var(--red); }
.badge-grey   { background:var(--bg); color:var(--t3); }
.badge-white  { background:rgba(255,255,255,.20); color:#fff; }

/* ===== UTILITIES ===== */
.w-full { width:100%; }
.pb-nav { padding-bottom: 200px !important; }
.text-center { text-align:center; }
.text-white { color:#fff; }
.text-green { color:var(--green); }
.text-red   { color:var(--red); }
.text-blue  { color:var(--blue); }
.text-muted { color:var(--t4); }
.fw-bold { font-weight:700; }
.fw-semi { font-weight:600; }
.d-flex { display:flex; }
.flex-col { flex-direction:column; }
.items-center { align-items:center; }
.justify-between { justify-content:space-between; }
.justify-center { justify-content:center; }
.gap-8 { gap:8px; }  .gap-10 { gap:10px; }
.gap-12 { gap:12px; } .gap-16 { gap:16px; }
.flex-1 { flex:1; }
.mt-4{margin-top:4px;} .mt-8{margin-top:8px;}
.mt-12{margin-top:12px;} .mt-16{margin-top:16px;} .mt-20{margin-top:20px;}
.mb-8{margin-bottom:8px;} .mb-12{margin-bottom:12px;}
.mb-16{margin-bottom:16px;} .mb-20{margin-bottom:20px;}
.px-16{padding:0 16px;} .px-20{padding:0 20px;}
.pt-16{padding-top:16px;} .pb-16{padding-bottom:16px;}

/* =====================================================
   1. LANDING PAGE
   ===================================================== */

.land-page { min-height:100vh; display:flex; flex-direction:column; }

/* Hero section — 65 % de l'écran */
.land-hero {
  position: relative;
  background: linear-gradient(170deg, #0D47D9 0%, #1460F0 45%, #0A38CC 100%);
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* People background overlay (image facultative) */
.land-bg {
  position: absolute; inset:0;
  background-size: cover;
  background-position: center bottom;
  opacity: .15;
  pointer-events: none;
}

/* Top bar */
.land-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  position: relative; z-index:2;
}

.land-hamburger {
  width:40px; height:40px; border-radius:12px;
  background:rgba(255,255,255,.15);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:5px; cursor:pointer; border:none;
}
.land-hamburger span { display:block; width:22px; height:2px; background:#fff; border-radius:2px; }

.land-sys {
  display:flex; align-items:center; gap:5px;
  color:rgba(255,255,255,.85); font-size:13px;
}

/* Hero body */
.land-body {
  flex:1;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding: 16px 28px 36px;
  text-align:center;
  position:relative; z-index:2;
}

.land-logo {
  width:130px; height:130px; border-radius:28px;
  background:transparent;
  box-shadow: 0 8px 32px rgba(0,0,0,.28), 0 2px 8px rgba(0,0,0,.12);
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 20px;
  overflow:hidden;
}
.land-logo img { width:130px; height:130px; object-fit:cover; border-radius:28px; }

.land-org-name {
  font-size:24px; font-weight:800;
  color:#fff; letter-spacing:-.2px;
  margin-bottom:8px; line-height:1.15;
}

.land-tagline {
  font-size:15px; font-weight:500;
  color:rgba(255,255,255,.92);
  margin-bottom:6px; line-height:1.5;
}

.land-desc {
  font-size:12px; color:rgba(255,255,255,.72);
  margin-bottom:28px; line-height:1.6;
  max-width:300px;
}

/* Two stacked CTA buttons */
.land-btns { width:100%; display:flex; flex-direction:column; gap:14px; }

.btn-cta-green {
  width:100%; height:56px; border-radius:16px;
  background:var(--green);
  color:#fff; border:none; font-weight:700; font-size:16px;
  display:flex; align-items:center; justify-content:center; gap:10px;
  cursor:pointer; text-decoration:none;
  box-shadow: 0 8px 24px rgba(24,166,61,.38);
  transition:transform .15s;
}
.btn-cta-green:active { transform:scale(.97); }

.btn-cta-white {
  width:100%; height:56px; border-radius:16px;
  background:#fff; color:var(--blue);
  border:none; font-weight:700; font-size:16px;
  display:flex; align-items:center; justify-content:center; gap:10px;
  cursor:pointer; text-decoration:none;
  box-shadow: 0 4px 18px rgba(0,0,0,.13);
  transition:transform .15s;
}
.btn-cta-white:active { transform:scale(.97); }

/* Bottom white card */
.land-bottom {
  background:#fff;
  border-radius:32px 32px 0 0;
  padding:28px 24px 24px;
  margin-top:-32px;
  position:relative; z-index:3;
  flex:1;
}

.land-values-title {
  font-size:11px; font-weight:700;
  color:var(--t4);
  text-transform:uppercase; letter-spacing:1px;
  text-align:center;
  margin-bottom:18px;
}

.land-grid {
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:14px; margin-bottom:20px;
}

.lv-card {
  display:flex; flex-direction:column; align-items:center; gap:7px;
}

.lv-ico {
  width:52px; height:52px; border-radius:16px;
  background:linear-gradient(135deg, var(--blue), var(--blue-2));
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:22px;
}

.lv-name { font-size:11px; font-weight:600; color:var(--t2); text-align:center; }

.land-motto {
  text-align:center; font-size:11px; color:var(--t4);
  border-top:1px solid var(--border); padding-top:16px;
  line-height:1.5;
}

/* =====================================================
   2. LOGIN PAGE
   ===================================================== */

.auth-hero {
  background:linear-gradient(170deg, #0D47D9 0%, #1460F0 50%, #0A38CC 100%);
  padding:40px 28px 52px;
  text-align:center;
  position:relative;
  border-radius:0 0 0 0;
}

.auth-logo {
  width:110px; height:110px; border-radius:24px;
  background:transparent;
  border:none;
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 16px; overflow:hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,.22);
}
.auth-logo img { width:110px; height:110px; object-fit:cover; border-radius:24px; }

.auth-hero-title { font-size:26px; font-weight:800; color:#fff; margin-bottom:6px; }
.auth-hero-sub   { font-size:13px; color:rgba(255,255,255,.78); }

/* Floating card */
.auth-card {
  background:#fff;
  border-radius:30px;
  padding:28px 22px 24px;
  margin:-26px 16px 0;
  box-shadow:var(--sh-xl);
  position:relative; z-index:2;
}

/* Tabs */
.tab-bar { display:flex; border-bottom:2px solid var(--border); margin-bottom:20px; }
.tab-item {
  flex:1; text-align:center; padding:10px;
  font-size:14px; font-weight:600; color:var(--t4);
  cursor:pointer; position:relative;
  border:none; background:none; font-family:var(--f);
  transition:color .2s;
}
.tab-item.active { color:var(--blue); }
.tab-item.active::after {
  content:''; position:absolute;
  bottom:-2px; left:15%; width:70%; height:2px;
  background:var(--blue); border-radius:2px;
}

/* =====================================================
   3. REGISTER PAGE
   ===================================================== */

.reg-hero {
  background:linear-gradient(170deg, #0D47D9 0%, #1460F0 50%, #0A38CC 100%);
  padding:24px 20px 20px;
  display:flex; align-items:center; gap:12px;
}

.reg-back {
  width:38px; height:38px; border-radius:11px;
  background:rgba(255,255,255,.15);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:18px; text-decoration:none;
  flex-shrink:0;
}

.reg-header-title { font-size:18px; font-weight:700; color:#fff; }
.reg-header-sub   { font-size:12px; color:rgba(255,255,255,.75); }

/* Gender segmented */
.gender-seg { display:flex; gap:10px; }
.gender-btn {
  flex:1; height:48px; border-radius:12px;
  border:1.5px solid var(--border);
  background:#F8F9FB; color:var(--t2);
  font-family:var(--f); font-size:14px; font-weight:600;
  cursor:pointer;
  display:flex; align-items:center; justify-content:center; gap:6px;
  transition:.2s;
}
.gender-btn.active { border-color:var(--blue); background:rgba(13,71,217,.08); color:var(--blue); }

/* =====================================================
   4. DASHBOARD PAGE
   ===================================================== */

.dash-hero {
  background:linear-gradient(160deg, #0B3FCC 0%, #1355F0 55%, #0935B8 100%);
  padding:18px 18px 28px;
}

.dash-top {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:18px;
}

.dash-user-info { display:flex; align-items:center; gap:10px; flex:1; min-width:0; }

.dash-ava {
  width:44px; height:44px; border-radius:50%;
  background:rgba(255,255,255,.22);
  border:2px solid rgba(255,255,255,.4);
  overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:700; font-size:16px; flex-shrink:0;
}
.dash-ava img { width:44px; height:44px; object-fit:cover; }

.dash-greet { font-size:11px; color:rgba(255,255,255,.70); }
.dash-uname { font-size:15px; font-weight:700; color:#fff; line-height:1.2; }
.dash-urole { font-size:10px; color:rgba(255,255,255,.65); }

.dash-notif {
  width:40px; height:40px; border-radius:12px;
  background:rgba(255,255,255,.14);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:19px; position:relative;
  text-decoration:none; border:none; flex-shrink:0;
}
.dash-notif-dot {
  position:absolute; top:8px; right:9px;
  width:8px; height:8px; border-radius:50%;
  background:var(--red); border:1.5px solid #1355F0;
}

/* Balance glass card */
.bal-card {
  background:rgba(255,255,255,.13);
  border:1px solid rgba(255,255,255,.18);
  border-radius:22px;
  padding:18px 18px 14px;
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.bal-lbl  { font-size:11px; color:rgba(255,255,255,.68); margin-bottom:8px; letter-spacing:.3px; }
.bal-row  { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.bal-amt  { font-size:26px; font-weight:800; color:#fff; letter-spacing:-.5px; line-height:1; }
.bal-eye  {
  width:36px; height:36px; border-radius:50%;
  background:rgba(255,255,255,.14);
  display:flex; align-items:center; justify-content:center;
  color:rgba(255,255,255,.85); font-size:16px;
  cursor:pointer; border:none; flex-shrink:0;
}

/* Green wallet button */
.btn-wallet {
  width:100%; height:44px; border-radius:13px;
  background:linear-gradient(135deg, #18A63D, #22C55E);
  color:#fff; font-weight:700; font-size:14px;
  display:flex; align-items:center; justify-content:center; gap:8px;
  cursor:pointer; text-decoration:none; border:none;
  box-shadow:0 4px 16px rgba(24,166,61,.38);
  transition:transform .15s;
}
.btn-wallet:active { transform:scale(.97); }

/* WHITE CARD wrapping stats + actions */
.dash-main-card {
  background:#fff;
  border-radius:24px 24px 0 0;
  margin-top:-6px;
  box-shadow:0 -2px 20px rgba(0,0,0,.06);
  padding-bottom:4px;
}

/* 3 stat cards */
.dash-stats {
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:10px; padding:18px 14px 14px;
}
.stat-card {
  background:var(--bg); border-radius:16px;
  padding:12px 6px; text-align:center;
}
.stat-ico {
  width:36px; height:36px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  font-size:15px; margin:0 auto 6px;
}
.stat-val { font-size:15px; font-weight:800; color:var(--t1); line-height:1.1; }
.stat-lbl { font-size:10px; color:var(--t4); margin-top:3px; font-weight:500; }

/* 4 action icons (one row) */
.dash-actions {
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:4px; padding:4px 14px 18px;
}
.da-item {
  display:flex; flex-direction:column; align-items:center; gap:8px;
  text-decoration:none; cursor:pointer; padding:6px 2px;
  transition:transform .15s;
}
.da-item:active { transform:scale(.93); }
.da-ico {
  width:54px; height:54px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:22px; box-shadow:var(--sh-xs);
}
.da-blue   { background:rgba(13,71,217,.10); color:var(--blue); }
.da-green  { background:rgba(24,166,61,.10); color:var(--green); }
.da-purple { background:rgba(139,92,246,.10); color:var(--purple); }
.da-orange { background:rgba(249,115,22,.10); color:var(--orange); }
.da-gold   { background:rgba(245,158,11,.10); color:var(--gold); }
.da-red    { background:rgba(239,68,68,.10); color:var(--red); }
.da-lbl { font-size:10px; font-weight:600; color:var(--t2); text-align:center; line-height:1.2; }

/* Section header */
.sec-row { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.sec-title { font-size:15px; font-weight:700; color:var(--t1); }
.sec-link  { font-size:12px; color:var(--blue); font-weight:600; text-decoration:none; }

/* =====================================================
   5. DEPOSIT PAGE
   ===================================================== */

.dep-bal-hero {
  background:linear-gradient(165deg, var(--blue), var(--blue-2));
  padding:24px 24px 40px; text-align:center;
}
.dep-bal-lbl { font-size:12px; color:rgba(255,255,255,.75); margin-bottom:4px; }
.dep-bal-amt { font-size:30px; font-weight:800; color:#fff; }

.dep-body {
  background:var(--bg);
  border-radius:28px 28px 0 0;
  margin-top:-20px; padding:24px 16px;
  min-height:400px; flex:1;
}

/* Method rows (vertical list) */
.method-list { display:flex; flex-direction:column; gap:10px; margin-bottom:20px; }

.method-row {
  display:flex; align-items:center; gap:14px;
  padding:14px 16px; background:#fff;
  border-radius:16px;
  border:2px solid var(--border);
  cursor:pointer; transition:.2s;
}
.method-row.sel { border-color:var(--blue); background:rgba(13,71,217,.04); }

.method-ico-wrap {
  width:46px; height:46px; border-radius:13px;
  display:flex; align-items:center; justify-content:center;
  font-size:23px; flex-shrink:0;
}
.method-details { flex:1; }
.method-name { font-size:14px; font-weight:600; color:var(--t1); }
.method-desc { font-size:11px; color:var(--t4); margin-top:2px; }

.method-radio {
  width:22px; height:22px; border-radius:50%;
  border:2px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; transition:.2s;
}
.method-row.sel .method-radio {
  background:var(--blue); border-color:var(--blue);
  color:#fff; font-size:12px;
}

/* Upload zone */
.upload-zone {
  border:2px dashed #CBD5E1;
  border-radius:16px; padding:32px 20px;
  text-align:center; cursor:pointer;
  transition:.2s; background:#F8F9FB;
  position:relative; overflow:hidden;
}
.upload-zone:hover { border-color:var(--blue); background:rgba(13,71,217,.03); }
.upload-zone input[type="file"] {
  position:absolute; inset:0; opacity:0;
  cursor:pointer; width:100%; height:100%;
}
.upload-ico  { font-size:40px; color:var(--t4); margin-bottom:8px; display:block; }
.upload-txt  { font-size:14px; font-weight:600; color:var(--t2); }
.upload-sub  { font-size:11px; color:var(--t4); margin-top:5px; }

/* =====================================================
   6. REFERRAL PAGE
   ===================================================== */

.ref-hero-card {
  background:linear-gradient(135deg, var(--blue), var(--blue-2));
  margin:16px; border-radius:24px;
  padding:24px 20px; color:#fff; text-align:center;
}

.ref-logo-circle {
  width:96px; height:96px; border-radius:22px;
  background:transparent;
  border:none;
  margin:0 auto 12px; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 4px 16px rgba(0,0,0,.20);
}
.ref-logo-circle img { width:96px; height:96px; object-fit:cover; border-radius:22px; }

.ref-org  { font-size:16px; font-weight:700; margin-bottom:3px; }
.ref-mem  { font-size:11px; color:rgba(255,255,255,.72); margin-bottom:16px; }

.ref-code-wrap {
  background:rgba(255,255,255,.16); border-radius:12px;
  padding:10px 20px; font-size:20px; font-weight:800;
  letter-spacing:3px; margin-bottom:14px;
  font-family:monospace;
}

.ref-link-box {
  background:rgba(0,0,0,.15); border-radius:10px;
  padding:8px 12px; font-size:11px; color:rgba(255,255,255,.8);
  word-break:break-all; margin-bottom:14px;
  text-align:left;
}

.ref-btns { display:flex; gap:10px; flex-wrap:wrap; }
.ref-btns .btn { flex:1; min-width:110px; }
.ref-btns .ref-qr-btn { flex:0 0 44px; min-width:44px; padding:0; font-size:16px; }

/* QR code modal */
.qr-modal-overlay {
  position:fixed; inset:0; background:rgba(17,24,39,.65);
  display:flex; align-items:center; justify-content:center;
  padding:20px; z-index:1300; /* > .bottom-nav (1000) et .drawer (1100/1200) : toujours au-dessus, y compris en version mobile */
  opacity:0; pointer-events:none; transition:opacity .18s;
}
.qr-modal-overlay.open { opacity:1; pointer-events:all; }
.qr-modal-box {
  background:#fff; border-radius:20px; padding:24px 20px;
  max-width:340px; width:100%; text-align:center; position:relative;
  box-shadow:0 20px 60px rgba(0,0,0,.3);
  max-height:calc(100vh - 40px); max-height:calc(100dvh - 40px);
  overflow-y:auto;
}
.qr-modal-close {
  position:absolute; top:12px; right:12px; width:30px; height:30px;
  border-radius:50%; background:var(--bg); border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center; color:var(--t3); font-size:14px;
  z-index:1;
}
.qr-modal-title { font-size:15px; font-weight:700; color:var(--t1); margin-bottom:4px; }
.qr-modal-sub { font-size:11px; color:var(--t3); margin-bottom:16px; }
.qr-modal-img-wrap {
  width:220px; height:220px; margin:0 auto 14px; border-radius:14px;
  background:var(--bg); display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.qr-modal-img-wrap img { width:220px; height:220px; }
@keyframes qrspin { to { transform:rotate(360deg); } }
.qr-modal-link {
  font-size:10px; color:var(--t3); word-break:break-all;
  background:var(--bg); border-radius:8px; padding:8px 10px; margin-bottom:14px;
}
.qr-modal-actions { display:flex; gap:10px; }
.qr-modal-actions .btn { flex:1; }

/* Petits écrans mobiles : réduire pour que tout tienne sans coupure */
@media (max-width:380px), (max-height:700px) {
  .qr-modal-box { padding:18px 16px; }
  .qr-modal-img-wrap, .qr-modal-img-wrap img { width:170px; height:170px; }
}

/* Stats */
.ref-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; padding:0 16px 16px; }
.rs-card { background:#fff; border-radius:16px; padding:16px 8px; text-align:center; box-shadow:var(--sh-xs); }
.rs-val { font-size:22px; font-weight:800; color:var(--t1); }
.rs-lbl { font-size:10px; color:var(--t4); margin-top:3px; }

/* Filleuls list */
.filleul-list { background:#fff; border-radius:18px; overflow:hidden; box-shadow:var(--sh-xs); }
.filleul-row {
  display:flex; align-items:center; gap:12px;
  padding:13px 16px;
  border-bottom:1px solid rgba(229,231,235,.45);
}
.filleul-row:last-child { border-bottom:none; }
.filleul-ava {
  width:42px; height:42px; border-radius:50%;
  background:rgba(13,71,217,.10); color:var(--blue);
  font-weight:700; font-size:15px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.filleul-info { flex:1; min-width:0; }
.filleul-name { font-size:13px; font-weight:600; color:var(--t1); }
.filleul-sub  { font-size:11px; color:var(--t4); margin-top:2px; }

/* =====================================================
   7. PROFILE PAGE
   ===================================================== */

.prof-hero {
  background:linear-gradient(165deg, var(--blue), var(--blue-2));
  padding:28px 20px 52px; text-align:center;
}

.prof-ava-wrap { position:relative; width:96px; height:96px; margin:0 auto 14px; }
.prof-ava {
  width:96px; height:96px; border-radius:50%;
  border:3px solid rgba(255,255,255,.42);
  object-fit:cover;
  background:rgba(255,255,255,.2);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:32px; font-weight:700; overflow:hidden;
}
.prof-ava img { width:96px; height:96px; object-fit:cover; }
.prof-edit-btn {
  position:absolute; bottom:0; right:0;
  width:30px; height:30px; border-radius:50%;
  background:#fff; border:none;
  display:flex; align-items:center; justify-content:center;
  color:var(--blue); font-size:13px; box-shadow:var(--sh);
  cursor:pointer;
}

.prof-name  { font-size:20px; font-weight:800; color:#fff; margin-bottom:4px; }
.prof-date  { font-size:12px; color:rgba(255,255,255,.72); margin-bottom:12px; }
.prof-badge {
  display:inline-flex; align-items:center; gap:5px;
  background:rgba(255,255,255,.18); color:#fff;
  padding:5px 14px; border-radius:20px;
  font-size:12px; font-weight:600;
  border:1px solid rgba(255,255,255,.28);
}

.prof-body {
  background:var(--bg);
  border-radius:30px 30px 0 0;
  margin-top:-28px;
  padding:24px 16px;
  min-height:400px; flex:1;
}

.menu-card { background:#fff; border-radius:18px; overflow:hidden; box-shadow:var(--sh-xs); margin-bottom:14px; }
.menu-row {
  display:flex; align-items:center; gap:14px;
  padding:15px 16px;
  border-bottom:1px solid var(--border);
  cursor:pointer; text-decoration:none; color:var(--t1);
  transition:background .15s;
}
.menu-row:last-child { border-bottom:none; }
.menu-row:active { background:var(--bg); }
.menu-ico { width:38px; height:38px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
.mi-blue   { background:rgba(13,71,217,.09); color:var(--blue); }
.mi-green  { background:rgba(24,166,61,.09); color:var(--green); }
.mi-orange { background:rgba(249,115,22,.09); color:var(--orange); }
.mi-purple { background:rgba(139,92,246,.09); color:var(--purple); }
.mi-grey   { background:var(--bg); color:var(--t3); }
.mi-red    { background:rgba(239,68,68,.09); color:var(--red); }
.menu-lbl  { flex:1; font-size:14px; font-weight:500; color:var(--t1); }
.menu-arr  { color:var(--t4); font-size:14px; }
.menu-row.danger .menu-lbl { color:var(--red); font-weight:600; }

/* =====================================================
   8. WALLET / PORTEFEUILLE PAGE
   ===================================================== */

.wallet-card {
  background:linear-gradient(135deg, var(--green), var(--green-2));
  margin:16px; border-radius:24px; padding:24px;
  color:#fff; box-shadow:var(--sh-green);
}
.wallet-ico { font-size:32px; opacity:.85; margin-bottom:8px; }
.wallet-lbl { font-size:12px; color:rgba(255,255,255,.78); margin-bottom:4px; }
.wallet-amt { font-size:30px; font-weight:800; }

.wallet-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; padding:0 16px 16px; }
.ws-card { background:#fff; border-radius:16px; padding:14px 10px; text-align:center; box-shadow:var(--sh-xs); }
.ws-val { font-size:15px; font-weight:800; color:var(--t1); }
.ws-lbl { font-size:10px; color:var(--t4); margin-top:3px; }

/* =====================================================
   SHARED: History + Notifications
   ===================================================== */

.hist-list { background:#fff; border-radius:18px; overflow:hidden; box-shadow:var(--sh-xs); }
.hist-row {
  display:flex; align-items:center; gap:12px;
  padding:13px 16px;
  border-bottom:1px solid rgba(229,231,235,.45);
}
.hist-row:last-child { border-bottom:none; }
.hist-ico { width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; }
.hist-info { flex:1; min-width:0; }
.hist-name { font-size:13px; font-weight:600; color:var(--t1); }
.hist-date { font-size:11px; color:var(--t4); margin-top:2px; }
.hist-right { text-align:right; flex-shrink:0; }
.hist-amt   { font-size:13px; font-weight:700; }
.hist-st    { font-size:10px; font-weight:600; margin-top:2px; }
.s-pending  { color:var(--gold); }
.s-approved { color:var(--green); }
.s-rejected { color:var(--red); }

.notif-list { background:#fff; border-radius:18px; overflow:hidden; box-shadow:var(--sh-xs); }
.notif-row {
  display:flex; align-items:flex-start; gap:12px;
  padding:14px 16px;
  border-bottom:1px solid rgba(229,231,235,.45);
}
.notif-row:last-child { border-bottom:none; }
.notif-row.unread { background:rgba(13,71,217,.03); }
.notif-ico { width:42px; height:42px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
.notif-body { flex:1; }
.notif-txt  { font-size:13px; color:var(--t1); line-height:1.5; }
.notif-time { font-size:11px; color:var(--t4); margin-top:3px; }
.notif-dot  { width:8px; height:8px; border-radius:50%; background:var(--blue); flex-shrink:0; margin-top:6px; }

/* =====================================================
   EMPTY STATE
   ===================================================== */
.empty-state { display:flex; flex-direction:column; align-items:center; padding:48px 24px; gap:10px; text-align:center; }
.empty-ico   { font-size:48px; color:var(--t4); }
.empty-title { font-size:15px; font-weight:700; color:var(--t2); }
.empty-sub   { font-size:12px; color:var(--t4); }

/* =====================================================
   ICON COLOR HELPERS
   ===================================================== */
.ico-blue   { background:rgba(13,71,217,.09); color:var(--blue); }
.ico-green  { background:rgba(24,166,61,.09); color:var(--green); }
.ico-orange { background:rgba(249,115,22,.09); color:var(--orange); }
.ico-purple { background:rgba(139,92,246,.09); color:var(--purple); }
.ico-gold   { background:rgba(245,158,11,.09); color:var(--gold); }
.ico-red    { background:rgba(239,68,68,.09); color:var(--red); }
.ico-grey   { background:var(--bg); color:var(--t3); }

/* =====================================================
   DRAWER / MENU LATÉRAL
   ===================================================== */

/* Overlay */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1100;
  opacity: 0; pointer-events: none;
  transition: opacity .28s ease;
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }

/* Panel */
.drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 288px;
  max-width: 88vw;
  background: #fff;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .30s cubic-bezier(.4,0,.2,1);
  box-shadow: 8px 0 40px rgba(0,0,0,.18);
  overflow: hidden;
}
.drawer.open { transform: translateX(0); }

/* Drawer header */
.drawer-hdr {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  padding: 32px 20px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  position: relative;
}

.drawer-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer;
}

.drawer-ava {
  width: 72px; height: 72px;
  border-radius: 18px;
  background: transparent;
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 18px;
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.drawer-ava img { width: 72px; height: 72px; object-fit: cover; border-radius: 18px; }

.drawer-uname { font-size: 15px; font-weight: 700; color: #fff; }
.drawer-urole { font-size: 11px; color: rgba(255,255,255,.72); margin-top: 2px; }

/* Drawer body */
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0 16px;
}
.drawer-body::-webkit-scrollbar { width: 3px; }
.drawer-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* Section label */
.drawer-section {
  font-size: 10px; font-weight: 700;
  color: var(--t4); text-transform: uppercase; letter-spacing: 1px;
  padding: 14px 20px 6px;
}

/* Menu row */
.drawer-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px;
  text-decoration: none; color: var(--t1);
  transition: background .15s;
  cursor: pointer;
}
.drawer-row:hover, .drawer-row:active { background: var(--bg); }
.drawer-row.active { background: rgba(13,71,217,.07); }
.drawer-row.active .dr-lbl { color: var(--blue); font-weight: 700; }

.dr-ico {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}

.dr-lbl { font-size: 14px; font-weight: 500; flex: 1; }
.dr-badge {
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 10px;
}

/* Divider */
.drawer-div { height: 1px; background: var(--border); margin: 6px 16px; }

/* Drawer footer */
.drawer-foot {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* =====================================================
   LANDING PAGE — SECTIONS DE CONTENU
   ===================================================== */

/* En-tête de section */
.lp-section-hdr {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.lp-section-ico {
  width: 42px; height: 42px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.14);
}
.lp-section-title {
  font-size: 16px; font-weight: 800; color: var(--t1);
  letter-spacing: -.2px;
}

/* Carte de contenu */
.lp-content-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 16px; padding: 16px;
  font-size: 13px; color: var(--t2); line-height: 1.7;
}

/* Listes */
.lp-list {
  padding-left: 0; list-style: none;
  display: flex; flex-direction: column; gap: 6px;
}
.lp-list li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--t2);
}
.lp-list li::before {
  content: ''; display: block;
  width: 7px; height: 7px; border-radius: 50%;
  margin-top: 5px; flex-shrink: 0;
}
.lp-list-blue  li::before { background: var(--blue); }
.lp-list-green li::before { background: var(--green); }
.lp-list-gold  li::before { background: var(--gold); }

/* Carte phase */
.phase-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 20px; padding: 18px;
  box-shadow: var(--sh-xs);
}
.phase-badge {
  display: inline-block;
  padding: 4px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 700;
  margin-bottom: 10px;
}
.phase-amount {
  font-size: 26px; font-weight: 800;
  letter-spacing: -.5px; margin-bottom: 6px;
}
.phase-max {
  font-size: 12px; color: var(--t3);
  display: flex; align-items: center; gap: 5px;
  margin-bottom: 10px;
}
.phase-divider {
  height: 1px; background: var(--border);
  margin: 12px 0;
}

/* Hamburger button in dash header */
.dash-hamburger {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: rgba(255,255,255,.14);
  border: none; color: #fff;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px; cursor: pointer; flex-shrink: 0;
}
.dash-hamburger span {
  display: block; width: 18px; height: 2px;
  background: rgba(255,255,255,.9); border-radius: 2px;
  transition: .25s;
}

/* Section transactions */
.section-block {
  padding: 16px;
  background: var(--bg);
}
.section-block + .section-block { padding-top: 0; }

/* Transactions: amélioration des items */
.tx-list { background:#fff; border-radius:18px; overflow:hidden; box-shadow:var(--sh-xs); }
.tx-row {
  display:flex; align-items:center; gap:12px;
  padding:14px 16px;
  border-bottom:1px solid rgba(229,231,235,.5);
  transition:background .12s;
}
.tx-row:last-child { border-bottom:none; }
.tx-row:active { background:var(--bg); }
.tx-ico {
  width:42px; height:42px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:17px; flex-shrink:0;
}
.tx-info { flex:1; min-width:0; }
.tx-name { font-size:13px; font-weight:600; color:var(--t1); }
.tx-date { font-size:11px; color:var(--t4); margin-top:2px; }
.tx-amt  { font-size:14px; font-weight:700; flex-shrink:0; }
.tx-credit { color:var(--green); }
.tx-debit  { color:var(--red); }
