:root {
  --gold: #c8a84e;
  --gold-light: #e8d48b;
  --gold-dark: #a07a2e;
  --blue: #2980b9;
  --blue-dark: #1a5276;
  --red: #c0392b;
  --accent: #e67e22;
  --accent-dark: #d35400;
  --success: #27ae60;
  --success-dark: #1e8449;
  --danger: #e74c3c;
  --warning: #f39c12;
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-lg: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== HEADER ========== */
.header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f3460 100%);
  color: white;
  padding: 0.9rem 1rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  max-width: 800px;
  margin: 0 auto;
}

.header-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
  flex-shrink: 0;
}

.header-text h1 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-text .subtitle {
  font-size: 0.7rem;
  opacity: 0.7;
  letter-spacing: 0.5px;
  color: #94a3b8;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.2rem;
  color: white;
  text-align: center;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(200,168,78,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero .objectif-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.hero .objectif-montant {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero .objectif-but {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.3rem;
}

/* ========== COUNTDOWN ========== */
.countdown {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin: 1rem 0;
}

.countdown-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 0.5rem 0.8rem;
  text-align: center;
  box-shadow: var(--shadow);
  min-width: 60px;
  border-top: 3px solid var(--gold);
}

.countdown-item .number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

.countdown-item .label {
  font-size: 0.6rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* ========== CTA BUTTONS ========== */
.cta-section {
  display: flex;
  gap: 0.6rem;
  margin: 1rem 0;
}

.cta-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 0.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  transition: all 0.2s;
  box-shadow: var(--shadow-md);
}

.cta-btn .icon {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

.cta-btn.gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}

.cta-btn.green {
  background: linear-gradient(135deg, var(--success), var(--success-dark));
}

.cta-btn.blue {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.cta-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ========== CHART CARDS ========== */
.chart-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 0.8rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.chart-card-header {
  padding: 1rem 1.2rem 0.5rem;
}

.chart-card-header h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.chart-card-header .chart-subtitle {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 0.1rem;
}

.chart-body {
  padding: 0.5rem 1rem 1rem;
  position: relative;
}

.chart-body-sm {
  max-width: 260px;
  margin: 0 auto;
}

.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

/* Gauge */
.gauge-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.gauge-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.gauge-pct {
  font-size: 2rem;
  font-weight: 800;
  color: var(--success);
}

.gauge-label {
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.gauge-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  justify-content: center;
  padding: 0.8rem 1rem 1rem;
  font-size: 0.75rem;
  color: var(--text);
}

.gauge-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot.green { background: var(--success); }
.dot.orange { background: var(--warning); }
.dot.gold { background: var(--gold); }
.dot.grey { background: #cbd5e1; }

/* ========== STATS GRID ========== */
.stats-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.stat-card-v2 {
  background: var(--card);
  border-radius: var(--radius);
  padding: 0.9rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
}

.stat-card-v2.gold-accent { border-left-color: var(--gold); }
.stat-card-v2.green-accent { border-left-color: var(--success); }
.stat-card-v2.blue-accent { border-left-color: var(--blue); }
.stat-card-v2.red-accent { border-left-color: var(--danger); }

.stat-card-v2 .stat-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stat-card-v2 .stat-info { min-width: 0; }

.stat-card-v2 .stat-number {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-card-v2 .stat-label {
  font-size: 0.6rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
}

/* Old stats grid (admin) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--border);
  border-top: 3px solid var(--border);
}

.stat-card.gold-border { border-top-color: var(--gold); }
.stat-card.green-border { border-top-color: var(--success); }

.stat-card .label {
  font-size: 0.65rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.stat-card .value {
  font-size: 1.4rem;
  font-weight: 800;
}

.stat-card .value.gold { color: var(--gold-dark); }
.stat-card .value.green { color: var(--success); }

.stat-card .sub {
  font-size: 0.65rem;
  color: var(--text-light);
}

/* ========== PROGRESS BARS ========== */
.progress-section {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 0.6rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.progress-header h3 {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.progress-header .amount {
  font-size: 0.85rem;
  font-weight: 700;
}

.progress-header .amount.gold { color: var(--gold-dark); }
.progress-header .amount.green { color: var(--success); }

.progress-bar-container {
  position: relative;
  height: 24px;
  background: #f1f5f9;
  border-radius: 12px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 12px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.7rem;
  color: white;
  font-weight: 700;
  font-size: 0.7rem;
  min-width: 2.5rem;
}

.progress-bar.engagements {
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
}

.progress-bar.versements {
  background: linear-gradient(90deg, var(--success), var(--success-dark));
}

/* ========== VIDEO SECTION ========== */
.video-section {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.video-section .video-header {
  background: linear-gradient(135deg, #0f172a, #0f3460);
  padding: 1rem;
  color: white;
  text-align: center;
}

.video-section .video-header h3 {
  font-size: 0.9rem;
  color: var(--gold-light);
  margin-bottom: 0.15rem;
}

.video-section .video-header p {
  font-size: 0.75rem;
  color: #94a3b8;
}

.video-section video {
  width: 100%;
  display: block;
  max-height: 380px;
  background: #000;
}

/* ========== NAV TABS ========== */
.nav-tabs {
  display: flex;
  gap: 0;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.nav-tab {
  flex: 1;
  padding: 0.8rem;
  text-align: center;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  border: none;
  background: none;
  transition: all 0.2s;
  position: relative;
}

.nav-tab.active {
  color: white;
  background: linear-gradient(135deg, #0f172a, var(--blue-dark));
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ========== FORMS ========== */
.form-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.form-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.form-card .form-desc {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  background: #f8fafc;
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,168,78,0.1);
  background: white;
}

.form-group textarea {
  height: 70px;
  resize: vertical;
}

.form-group .hint {
  font-size: 0.68rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

/* ========== DIVIDER ========== */
.form-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.5rem 0;
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ========== TOGGLE SWITCH ========== */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.toggle-row:hover {
  border-color: var(--success);
}

.toggle-row .toggle-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--success-dark);
}

.toggle-row .toggle-sub {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 0.1rem;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 24px;
  transition: 0.3s;
  cursor: pointer;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--success);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* ========== VERSEMENT INLINE SECTION ========== */
.versement-inline {
  background: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  animation: slideDown 0.3s ease;
}

.versement-inline h4 {
  font-size: 0.85rem;
  color: var(--success-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== PAYMENT INFO BOXES ========== */
.payment-info-box {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
  padding: 0.7rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  animation: slideDown 0.25s ease;
}

.payment-info-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  line-height: 1;
}

.payment-info-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.payment-info-content strong {
  font-size: 0.78rem;
  color: var(--text);
}

.payment-info-sub {
  font-size: 0.72rem;
  color: var(--text-light);
}

.rib-box {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: white;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}

.rib-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold-dark);
  background: #fef3c7;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.rib-value {
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'SF Mono', 'Courier New', monospace;
  color: var(--text);
  letter-spacing: 0.3px;
  word-break: break-all;
}

.rib-copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.15rem;
  border-radius: 4px;
  transition: background 0.15s;
  flex-shrink: 0;
}

.rib-copy-btn:hover {
  background: #fef3c7;
}

.gofundme-btn {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.45rem 1rem;
  background: linear-gradient(135deg, #00b964, #00a355);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
}

.gofundme-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, #0f172a, var(--blue-dark));
  color: white;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-accent {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white;
}
.btn-accent:hover { opacity: 0.9; }

.btn-success {
  background: linear-gradient(135deg, var(--success), var(--success-dark));
  color: white;
}
.btn-success:hover { opacity: 0.9; }

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

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-light);
}
.btn-outline:hover { border-color: var(--text-light); color: var(--text); }

.btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  border-radius: 6px;
}

.btn-block { width: 100%; }

/* ========== SEARCH ========== */
.search-box {
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 0.7rem 0.8rem 0.7rem 2.3rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  background: #f8fafc;
}

.search-box input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,168,78,0.1);
  background: white;
}

.search-box::before {
  content: '\1F50D';
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
}

.search-results {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  box-shadow: var(--shadow-md);
  margin-top: 0.3rem;
}

.search-results.show { display: block; }

.search-result-item {
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  transition: background 0.15s;
}

.search-result-item:hover { background: #f8fafc; }
.search-result-item:last-child { border-bottom: none; }

/* ========== ENGAGEMENT CARD (selected) ========== */
.engagement-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
}

.engagement-card .info h4 {
  font-size: 0.85rem;
  font-weight: 600;
}

.engagement-card .info .detail {
  font-size: 0.72rem;
  color: var(--text-light);
}

.engagement-card .amounts {
  text-align: right;
}

.engagement-card .amounts .engaged {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.engagement-card .amounts .paid {
  font-size: 0.72rem;
  color: var(--success);
  font-weight: 600;
}

/* ========== UPLOAD ========== */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-light);
  font-size: 0.82rem;
}

.upload-area:hover, .upload-area.dragover {
  border-color: var(--gold);
  background: #fffbeb;
}

.upload-area input[type="file"] { display: none; }

.upload-area .preview {
  max-width: 100%;
  max-height: 120px;
  border-radius: 6px;
  margin-top: 0.5rem;
}

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text);
  color: white;
  padding: 0.7rem 1.3rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  z-index: 1000;
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.modal-overlay.show { display: flex; }

.modal {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.modal h3 {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 1rem;
}

/* ========== BADGE ========== */
.badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-success { background: #dcfce7; color: var(--success-dark); }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }

/* ========== ADMIN CARDS ========== */
.admin-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin-bottom: 0.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: box-shadow 0.15s;
}

.admin-card:hover {
  box-shadow: var(--shadow-md);
}

.admin-card .row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.admin-card .actions {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.admin-card .preuve-img {
  max-width: 100%;
  max-height: 150px;
  border-radius: 6px;
  margin-top: 0.5rem;
  cursor: pointer;
}

.mini-progress {
  width: 70px;
  height: 4px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}

.mini-progress .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--success), var(--success-dark));
  border-radius: 3px;
  transition: width 0.5s;
}

/* ========== SECTION TITLE ========== */
.section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.2rem 0 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ========== LOGIN ========== */
.login-card {
  max-width: 380px;
  margin: 2rem auto;
}

.login-card .logo-center {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 3px solid var(--gold);
}

/* ========== FAB ========== */
.fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(200,168,78,0.35);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.fab:hover { transform: scale(1.1); }

/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
  font-size: 0.85rem;
}

/* ========== PENDING SECTION ========== */
.pending-section {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 1rem;
}

.pending-section .section-title {
  border-bottom-color: var(--warning);
}

.pending-section .admin-card {
  border-left: 4px solid var(--warning);
}

/* ========== ADMIN STATS GRID ========== */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.admin-stats-grid .stat-card {
  padding: 0.7rem;
}

.admin-stats-grid .stat-card .value {
  font-size: 1.15rem;
}

/* ========== TAB BADGE ========== */
.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--danger);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 5px;
  margin-left: 4px;
  vertical-align: middle;
  line-height: 1;
}

/* ========== FILTER BAR ========== */
.filter-bar {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.filter-select {
  padding: 0.4rem 0.6rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: inherit;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  border-color: var(--gold);
}

.filter-bar .search-box input {
  padding: 0.4rem 0.6rem 0.4rem 2rem;
  font-size: 0.8rem;
  height: auto;
}

/* ========== SHARE SECTION ========== */
.share-section {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.share-header {
  background: linear-gradient(135deg, #0f172a, #0f3460);
  padding: 1rem;
  color: white;
  text-align: center;
}

.share-header h3 {
  font-size: 0.9rem;
  color: var(--gold-light);
  margin-bottom: 0.15rem;
}

.share-header p {
  font-size: 0.75rem;
  color: #94a3b8;
}

.share-body {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.qr-container {
  text-align: center;
  flex-shrink: 0;
}

.qr-container canvas {
  border-radius: 8px;
  border: 2px solid var(--border);
}

.qr-label {
  font-size: 0.68rem;
  color: var(--text-light);
  margin-top: 0.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.share-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  min-width: 180px;
}

@media (max-width: 600px) {
  .share-body {
    flex-direction: column;
  }
  .share-actions {
    width: 100%;
  }
}

/* ========== REMOVE MEMBER BUTTON ========== */
.btn-remove-membre {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0 0.3rem;
  margin-left: 0.3rem;
  line-height: 1;
  vertical-align: middle;
  border-radius: 50%;
  transition: background 0.15s;
}

.btn-remove-membre:hover {
  background: #fee2e2;
}

.membre-row {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.3rem;
  margin-bottom: 0.3rem;
}

.membre-row:last-child {
  border-bottom: none;
}

/* ========== VERSET BIBLIQUE ========== */
.verset-box {
  background: linear-gradient(135deg, #f8f6f0, #fefcf3);
  border: 1px solid var(--gold-light);
  border-radius: 10px;
  padding: 1rem;
  margin-top: 0.8rem;
}

.verset-text {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 0.4rem;
}

.verset-ref {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-align: right;
}

/* ========== FOOTER ========== */
.footer {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--text-light);
  font-size: 0.7rem;
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  .cta-section { flex-direction: column; }
  .hero .objectif-montant { font-size: 2rem; }
  .countdown { gap: 0.4rem; }
  .countdown-item { min-width: 52px; padding: 0.4rem 0.5rem; }
  .countdown-item .number { font-size: 1.3rem; }
  .header-logo { width: 36px; height: 36px; }
  .header-text h1 { font-size: 0.9rem; }
  .charts-row { grid-template-columns: 1fr; }
  .stats-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-card-v2 .stat-number { font-size: 0.85rem; }
  .gauge-container { width: 170px; height: 170px; }
  .gauge-pct { font-size: 1.7rem; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 1.2rem; }
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 601px) {
  .stats-grid-4 { grid-template-columns: repeat(4, 1fr); }
}
