/* ===== MONINVEST v2.0 — DESIGN SYSTÈME ===== */
/* Palette : Vert profond + Or + Blanc cassé — Finance haut de gamme */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  /* Couleurs principales */
  --primary: #1a6e3c;
  --primary-dark: #145530;
  --primary-light: #22913f;
  --primary-glow: rgba(26, 110, 60, 0.15);
  --gold: #d4af37;
  --gold-light: #e8c94a;
  --gold-dark: #b8962e;
  --gold-glow: rgba(212, 175, 55, 0.2);

  /* Fonds */
  --bg: #f4f6f0;
  --bg-card: #ffffff;
  --bg-dark: #0d1f14;
  --bg-glass: rgba(255,255,255,0.85);

  /* Texte */
  --text: #0d1f14;
  --text-secondary: #5a7a66;
  --text-muted: #9ab0a2;
  --white: #ffffff;

  /* États */
  --success: #1a6e3c;
  --danger: #c0392b;
  --warning: #d4af37;
  --info: #1a5276;

  /* UI */
  --border: #dde8e0;
  --shadow-sm: 0 2px 8px rgba(26,110,60,0.06);
  --shadow: 0 4px 20px rgba(26,110,60,0.10);
  --shadow-lg: 0 12px 40px rgba(26,110,60,0.16);
  --shadow-gold: 0 4px 20px rgba(212,175,55,0.25);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;

  /* Typographie */
  --font-display: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Nav */
  --nav-height: 72px;
}

/* ===== RESET ===== */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== LAYOUT MOBILE-FIRST ===== */
.app-wrapper {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
}

.page {
  padding: 0 20px;
  padding-bottom: calc(var(--nav-height) + 20px);
  padding-top: 24px;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: var(--nav-height);
  background: var(--white);
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(26,110,60,0.08);
  z-index: 1000;
  border-radius: 24px 24px 0 0;
  padding: 0 8px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  font-family: var(--font-display);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  min-width: 52px;
}

.nav-item i {
  font-size: 20px;
  transition: transform 0.25s ease;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active i {
  transform: translateY(-2px);
}

.nav-item.active span {
  color: var(--primary);
  font-weight: 600;
}

/* Nav center button */
.nav-item.nav-center {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: 20px;
  padding: 10px 16px;
  box-shadow: var(--shadow-sm);
  margin-top: -10px;
}

.nav-item.nav-center i { color: white; font-size: 22px; }
.nav-item.nav-center span { color: white; font-size: 9px; }

@media (min-width: 768px) {
  .app-wrapper {
    max-width: 760px;
    margin: 24px auto;
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
  }

  .page {
    padding: 32px 28px calc(var(--nav-height) + 32px);
  }

  .top-bar {
    margin-bottom: 32px;
  }

  .quick-actions {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pass-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .modal {
    max-width: 720px;
  }
}

@media (min-width: 1024px) {
  .app-wrapper {
    max-width: 980px;
  }

  .page {
    padding: 36px 40px calc(var(--nav-height) + 40px);
  }

  .quick-actions {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .pass-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .card,
  .chart-card,
  .balance-card {
    padding: 28px;
  }

  .bottom-nav {
    max-width: 980px;
  }
}

/* ===== HEADER / TOP BAR ===== */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.top-bar-left h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.top-bar-left p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.avatar-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary);
  cursor: pointer;
  position: relative;
}

.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

.notif-dot {
  position: absolute;
  top: -2px; right: -2px;
  width: 14px; height: 14px;
  background: var(--danger);
  border: 2px solid white;
  border-radius: 50%;
}

.icon-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.icon-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* ===== BALANCE CARD ===== */
.balance-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #0a2d18 100%);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.balance-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.balance-card::after {
  content: '';
  position: absolute;
  bottom: -20px; left: -20px;
  width: 100px; height: 100px;
  background: rgba(212,175,55,0.08);
  border-radius: 50%;
}

.balance-label {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  margin-bottom: 6px;
  font-family: var(--font-display);
  display: flex; align-items: center; gap: 8px;
}

.balance-amount {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 4px;
  letter-spacing: -1px;
}

.balance-amount span {
  font-size: 18px;
  font-weight: 500;
  opacity: 0.8;
}

.balance-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}

.balance-actions {
  display: flex;
  gap: 10px;
  position: relative; z-index: 1;
}

.balance-btn {
  flex: 1;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 11px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none;
  transition: all 0.2s;
  font-family: var(--font-display);
  backdrop-filter: blur(4px);
}

.balance-btn:hover { background: rgba(255,255,255,0.2); }
.balance-btn.gold { background: var(--gold); border-color: var(--gold); color: var(--text); }
.balance-btn.gold:hover { background: var(--gold-light); }

.balance-gain-today {
  position: absolute;
  top: 24px; right: 24px;
  background: rgba(212,175,55,0.2);
  border: 1px solid rgba(212,175,55,0.4);
  color: var(--gold-light);
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-display);
}

/* ===== QUICK ACTIONS ===== */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.quick-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  background: none; border: none;
}

.quick-action-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  border: 1px solid var(--border);
}

.quick-action-item:hover .quick-action-icon {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.quick-action-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  font-family: var(--font-display);
}

/* ===== SECTION TITLE ===== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.section-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  font-family: var(--font-display);
}

/* ===== CARTES GÉNÉRIQUES ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

/* ===== GRAPHIQUE GAINS ===== */
.chart-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.chart-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 80px;
  gap: 4px;
}

.chart-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar {
  width: 100%;
  border-radius: 6px 6px 0 0;
  background: var(--primary-glow);
  position: relative;
  transition: height 0.6s cubic-bezier(.22,1,.36,1);
  min-height: 4px;
  cursor: pointer;
}

.chart-bar.active { background: var(--primary); }
.chart-bar:hover { background: var(--primary); opacity: 0.8; }

.chart-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  font-family: var(--font-display);
}

.chart-legend {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.legend-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}

/* ===== TEMOIGNAGES ===== */
.testimonial-grid {
  display: grid;
  gap: 12px;
}

.testimonial-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,250,248,1));
  border: 1px solid rgba(26,110,60,0.12);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.testimonial-card.featured {
  background: linear-gradient(135deg, rgba(26,110,60,0.08), rgba(212,175,55,0.12));
  border-color: rgba(212,175,55,0.24);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: var(--gold-dark);
  margin-bottom: 10px;
  font-size: 12px;
}

.testimonial-text {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
}

.testimonial-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.testimonial-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== TRANSACTIONS ===== */
.transaction-list { list-style: none; }

.transaction-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.transaction-item:last-child { border-bottom: none; }

.tx-icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.tx-icon.income { background: rgba(26,110,60,0.10); color: var(--primary); }
.tx-icon.expense { background: rgba(192,57,43,0.10); color: var(--danger); }
.tx-icon.pending { background: rgba(212,175,55,0.12); color: var(--gold-dark); }

.tx-info { flex: 1; min-width: 0; }

.tx-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-display);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.tx-amount {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.amount-positive { color: var(--primary); }
.amount-negative { color: var(--danger); }
.amount-pending { color: var(--gold-dark); }

/* ===== PASS CARDS ===== */
.pass-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.pass-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  border: 2px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}

.pass-card.bronze::before { background: linear-gradient(90deg, #cd7f32, #e8a46a); }
.pass-card.silver::before { background: linear-gradient(90deg, #9e9e9e, #d0d0d0); }
.pass-card.gold::before { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.pass-card.platinum::before { background: linear-gradient(90deg, #a0c4ff, #6a9fd8); }
.pass-card.diamant::before { background: linear-gradient(90deg, #74b9ff, #a29bfe); }

.pass-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.pass-card.popular {
  border-color: var(--gold);
}

.pass-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--gold);
  color: var(--text);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pass-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.pass-amount {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.pass-amount span { font-size: 12px; font-weight: 500; color: var(--text-muted); }

.pass-detail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.pass-detail i { color: var(--primary); font-size: 11px; width: 14px; }

.pass-total {
  background: var(--primary-glow);
  border-radius: var(--radius-xs);
  padding: 8px 10px;
  margin: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pass-total-label { font-size: 11px; color: var(--text-secondary); }
.pass-total-value {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

/* ===== BOUTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-display);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
  min-height: 48px;
  position: relative;
  overflow: hidden;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 4px 16px rgba(26,110,60,0.3);
}

.btn-primary:hover { box-shadow: 0 6px 20px rgba(26,110,60,0.4); transform: translateY(-1px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--text);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover { box-shadow: 0 6px 20px rgba(212,175,55,0.4); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover { background: var(--primary); color: white; }

.btn-ghost {
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover { background: var(--border); }

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-block { display: flex; width: 100%; }

.btn-sm { padding: 9px 16px; font-size: 12px; min-height: 36px; }

/* Spinner bouton */
.btn .spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

.btn.loading .spinner { display: block; }
.btn.loading .btn-text { display: none; }

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

/* ===== FORMULAIRES ===== */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-family: var(--font-display);
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  font-family: var(--font-body);
  transition: all 0.2s;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control.error { border-color: var(--danger); }

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap .form-control { padding-left: 44px; }

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%; transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
}

.input-suffix {
  position: absolute;
  right: 14px;
  top: 50%; transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
}

.form-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 5px;
  display: none;
}

/* ===== BADGES ET STATUTS ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.badge-success { background: rgba(26,110,60,0.1); color: var(--primary); }
.badge-danger { background: rgba(192,57,43,0.1); color: var(--danger); }
.badge-warning { background: rgba(212,175,55,0.15); color: var(--gold-dark); }
.badge-info { background: rgba(26,82,118,0.1); color: var(--info); }

/* ===== TOAST NOTIFICATIONS ===== */
#toast-container {
  position: fixed;
  top: 16px;
  left: 50%; transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: calc(100% - 32px);
  max-width: 440px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-display);
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.35s cubic-bezier(.22,1,.36,1);
  backdrop-filter: blur(12px);
}

.toast.toast-success { background: var(--primary); color: white; }
.toast.toast-error { background: var(--danger); color: white; }
.toast.toast-info { background: var(--info); color: white; }
.toast.toast-warning { background: var(--gold-dark); color: white; }
.toast i { font-size: 18px; flex-shrink: 0; }
.toast-close {
  margin-left: auto;
  background: none; border: none; color: inherit;
  cursor: pointer; opacity: 0.7; font-size: 14px;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(-8px) scale(0.95); }
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 24px;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(.22,1,.36,1);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-handle {
  width: 36px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 20px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ===== AFFILIATION CARD ===== */
.affiliation-card {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: var(--radius);
  padding: 20px;
  color: white;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.affiliation-card::after {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: rgba(212,175,55,0.1);
  border-radius: 50%;
}

.affil-code {
  background: rgba(255,255,255,0.15);
  border: 1px dashed rgba(255,255,255,0.4);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  margin: 12px 0;
}

/* ===== PASS ACTIF CARD ===== */
.active-pass-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.pass-icon-circle {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.progress-bar-wrap {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  border-radius: 3px;
  transition: width 1s ease;
}

/* ===== STATS CARDS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  margin-bottom: 10px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
  font-family: var(--font-display);
}

/* ===== LOADING STATES ===== */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-xs);
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.empty-state-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeInUp 0.5s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.05s; }
.fade-in:nth-child(2) { animation-delay: 0.10s; }
.fade-in:nth-child(3) { animation-delay: 0.15s; }
.fade-in:nth-child(4) { animation-delay: 0.20s; }
.fade-in:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== PAGE CONNEXION / REGISTER ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #0d1f14 0%, #1a6e3c 60%, #0d1f14 100%);
}

.auth-top {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 24px;
  text-align: center;
}

.logo-circle {
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(212,175,55,0.5);
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.auth-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: white;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.auth-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 28px 24px 40px;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.2);
}

.auth-tab {
  display: flex;
  background: var(--bg);
  border-radius: 30px;
  padding: 4px;
  margin-bottom: 24px;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  border-radius: 26px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-display);
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}

.auth-tab-btn.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* ===== ADMIN PAGE ===== */
.admin-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 24px 20px 20px;
  margin: -24px -20px 20px;
}

.admin-stat-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
  flex: 1;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-display);
  background: var(--bg);
}

.admin-table td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }

/* ===== PAIEMENT MODAL ===== */
.payment-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.payment-step {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s;
}

.payment-step.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

.payment-amount-display {
  text-align: center;
  padding: 20px;
  background: var(--primary-glow);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.payment-amount-display .amount {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
}

/* ===== PROGRESS PAIEMENT ===== */
.payment-progress-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
  flex-direction: column;
  gap: 16px;
}

.spinner-ring {
  width: 64px; height: 64px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

/* ===== RESPONSIVE TABLET ===== */
@media (min-width: 480px) {
  .app-wrapper {
    box-shadow: 0 0 60px rgba(0,0,0,0.1);
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-gold { color: var(--gold-dark); }
.text-muted { color: var(--text-muted); }
.fw-bold { font-weight: 700; }
.fw-600 { font-weight: 600; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.w-100 { width: 100%; }
.font-display { font-family: var(--font-display); }

/* ===== ADMIN WEB SHELL ===== */
.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 300px 1fr;
  background:
    radial-gradient(circle at top left, rgba(212,175,55,0.12), transparent 26%),
    linear-gradient(180deg, #eef4ec 0%, #f7f9f5 100%);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 20px;
  background: linear-gradient(180deg, #0d1f14 0%, #123724 100%);
  color: white;
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 1200;
}

.admin-sidebar-head,
.admin-panel-head,
.admin-claim-head,
.admin-user-overview,
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-sidebar-head h1,
.admin-topbar h2,
.admin-panel-head h3,
.admin-hero-card h3 {
  font-family: var(--font-display);
}

.admin-sidebar-head h1 {
  font-size: 24px;
  font-weight: 800;
}

.admin-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  opacity: 0.72;
  font-weight: 700;
}

.admin-sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.84);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
}

.admin-nav-link i {
  width: 18px;
  text-align: center;
}

.admin-nav-link.active,
.admin-nav-link:hover {
  background: linear-gradient(135deg, rgba(26,110,60,0.95), rgba(34,145,63,0.95));
  color: white;
  border-color: rgba(212,175,55,0.35);
  box-shadow: 0 12px 24px rgba(0,0,0,0.16);
}

.admin-sidebar-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-main {
  padding: 28px;
}

.admin-topbar {
  margin-bottom: 24px;
}

.admin-topbar-left,
.admin-topbar-right,
.admin-toolbar,
.admin-actions-row,
.admin-quick-grid,
.admin-summary-item,
.admin-user-cell,
.admin-hero-meta {
  display: flex;
}

.admin-topbar-left,
.admin-toolbar,
.admin-actions-row,
.admin-quick-grid {
  gap: 12px;
}

.admin-topbar-left {
  align-items: center;
}

.admin-topbar h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.admin-hero-card {
  background: linear-gradient(135deg, #103120 0%, #1a6e3c 65%, #d4af37 140%);
  color: white;
  border-radius: 28px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-lg);
}

.admin-hero-card h3 {
  font-size: 30px;
  line-height: 1.15;
  margin: 6px 0 12px;
}

.admin-hero-text {
  color: rgba(255,255,255,0.78);
  max-width: 640px;
}

.admin-hero-meta {
  flex-direction: column;
  gap: 12px;
}

.admin-hero-pill {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 14px 16px;
}

.admin-hero-pill span {
  display: block;
  font-size: 12px;
  opacity: 0.72;
}

.admin-hero-pill strong {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  margin-top: 4px;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

.admin-quick-grid {
  flex-wrap: wrap;
}

.admin-summary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-summary-item {
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg);
}

.admin-toolbar {
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.admin-toolbar-grow {
  flex: 1 1 300px;
}

.admin-toolbar-select {
  flex: 0 0 190px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table td,
.admin-table th {
  white-space: nowrap;
}

.admin-user-cell {
  flex-direction: column;
  gap: 2px;
}

.admin-user-cell strong {
  font-size: 13px;
}

.admin-user-cell span {
  font-size: 12px;
  color: var(--text-muted);
}

.admin-actions-row {
  align-items: center;
}

.admin-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.admin-claim-card {
  margin-bottom: 14px;
}

.admin-claim-head h4,
.admin-user-block h5 {
  font-family: var(--font-display);
  font-size: 15px;
  margin-bottom: 4px;
}

.admin-claim-head p,
.admin-user-overview p {
  color: var(--text-muted);
  font-size: 12px;
}

.admin-claim-body {
  margin: 14px 0;
  color: var(--text-secondary);
}

.admin-claim-response {
  background: var(--primary-glow);
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
}

.admin-notif-card {
  max-width: 760px;
}

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-user-modal {
  max-width: 720px;
}

.admin-user-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-user-overview {
  align-items: flex-start;
}

.admin-user-overview h4 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 6px;
}

.admin-user-balance {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--primary-glow);
  font-size: 14px;
}

.admin-user-block {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.admin-sidebar-overlay {
  display: none;
}

.admin-sidebar-close {
  display: none;
}

@media (max-width: 1100px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(86vw, 320px);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.22);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .admin-sidebar-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .admin-sidebar-close {
    display: flex;
  }

  .admin-main {
    padding: 20px;
  }

  .admin-hero-card,
  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .admin-hero-card h3 {
    font-size: 24px;
  }
}

@media (max-width: 720px) {
  .admin-main {
    padding: 16px;
  }

  .admin-topbar h2 {
    font-size: 22px;
  }

  .admin-toolbar-select,
  .admin-toolbar-grow {
    flex: 1 1 100%;
  }

  .admin-actions-row {
    flex-wrap: wrap;
  }

  .admin-quick-grid .btn {
    width: 100%;
  }

  .admin-topbar-right {
    display: none;
  }
}
