:root {
  --primary: #1b4332;
  --accent: #2d6a4f;
  --success: #38b000;
  --warning: #f77f00;
  --danger: #e63946;
  --gold: #ffc107;
  --info: #17a2b8;
  --light: #f8f9fa;
  --dark: #212529;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', system-ui, sans-serif; }

body { background: #f0f2f5; color: var(--dark); min-height: 100vh; padding-bottom: 40px; }

/* RTL pour l'arabe */
body[dir="rtl"] { direction: rtl; }
body[dir="rtl"] .admin-link { right: auto; left: 15px; }
body[dir="rtl"] .member-card { text-align: center; }

/* HEADER */
header {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white; text-align: center; padding: 15px 15px 20px;
  border-radius: 0 0 30px 30px; box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  position: relative;
}
header h1 { font-size: 1.4rem; font-weight: 900; letter-spacing: 2px; }
header h1 span { color: var(--gold); }
header p { font-size: 0.65rem; opacity: 0.85; margin-top: 2px; }
header .admin-link {
  position: absolute; top: 10px; right: 15px;
  color: rgba(255,255,255,0.85); text-decoration: none;
  font-size: 0.7rem; padding: 5px 12px; border-radius: 20px;
  background: rgba(255,255,255,0.15); transition: all 0.2s;
  font-weight: 600;
}
header .admin-link:hover { background: rgba(255,255,255,0.3); color: white; }

/* Photo Ayoub header */
.ayoub-header {
  width: 50px; height: 50px; border-radius: 50%; overflow: hidden;
  margin: 0 auto 8px; border: 3px solid rgba(255,215,0,0.5);
  background: #e9ecef; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.ayoub-header img { width: 100%; height: 100%; object-fit: cover; }
.ayoub-label { font-size: 0.5rem; font-weight: 700; color: #ffd700; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

/* LANG SWITCH */
.lang-switch {
  position: absolute; top: 10px; right: 15px;
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15); padding: 3px 10px;
  border-radius: 20px; border: 1px solid rgba(255,255,255,0.2);
  z-index: 10;
}
.lang-switch button {
  background: transparent; border: none; color: rgba(255,255,255,0.6);
  font-size: 0.65rem; font-weight: 700; cursor: pointer;
  padding: 3px 8px; border-radius: 10px; transition: all 0.3s;
  text-transform: uppercase;
}
.lang-switch button.active { color: white; background: rgba(255,255,255,0.25); }
.lang-switch button:hover { color: white; }

/* En RTL, le lien admin va à gauche, le lang-switch aussi */
body[dir="rtl"] .admin-link { right: auto; left: 15px; }
body[dir="rtl"] .lang-switch { right: auto; left: 15px; }

/* SOLD CARD */
.solde-card {
  background: white; width: 92%; max-width: 550px; margin: -15px auto 15px;
  padding: 16px 20px; border-radius: 18px; text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10); position: relative;
}
.solde-card .solde-header { display: flex; justify-content: center; align-items: center; gap: 10px; }
.solde-card h2 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; color: #6c757d; font-weight: 700; }
.solde-card .info-btn {
  background: var(--info); color: white; border: none; border-radius: 50%;
  width: 22px; height: 22px; font-size: 0.75rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s; display: inline-flex;
  align-items: center; justify-content: center;
}
.solde-card .info-btn:hover { transform: scale(1.1); }
.solde-card .montant { font-size: 2.6rem; font-weight: 900; color: var(--primary); line-height: 1.2; }
.solde-card .montant small { font-size: 1.1rem; color: #6c757d; }
.solde-card .pending { font-size: 0.65rem; color: #6c757d; margin-top: 4px; }
.solde-card .pending span { font-weight: 700; color: var(--warning); }
.solde-card .add-money-btn {
  position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
  background: var(--success); color: white; border: none; border-radius: 30px;
  padding: 8px 16px; font-size: 0.7rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
}
.solde-card .add-money-btn:hover { transform: translateY(-50%) scale(1.05); }
body[dir="rtl"] .solde-card .add-money-btn { right: auto; left: 15px; }

/* CONTAINER */
.container { max-width: 1100px; margin: 0 auto; padding: 0 12px; }
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin: 20px 0 12px; border-bottom: 2.5px solid var(--accent); padding-bottom: 5px;
}
.section-title { font-size: 0.95rem; font-weight: 800; text-transform: uppercase; color: var(--primary); letter-spacing: 0.3px; }
.section-badge { font-size: 0.7rem; background: #e9ecef; padding: 2px 12px; border-radius: 20px; font-weight: 600; color: #6c757d; }

/* MEMBERS GRID */
.members-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px;
}
.member-card {
  background: white; border-radius: 16px; padding: 14px 10px 16px;
  text-align: center; box-shadow: 0 3px 12px rgba(0,0,0,0.06);
  cursor: pointer; transition: all 0.25s; border: 3px solid transparent;
  position: relative;
}
.member-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.member-card:active { transform: scale(0.96); }
.avatar-wrapper {
  position: relative; width: 100%; aspect-ratio: 1/1; border-radius: 14px;
  overflow: hidden; background: #e9ecef; margin-bottom: 10px;
  border: 3px solid #dee2e6; transition: border-color 0.3s;
}
.avatar-wrapper img, .avatar-wrapper .avatar-placeholder {
  width: 100%; height: 100%; object-fit: cover; display: block;
  position: absolute; top: 0; left: 0;
}
.avatar-wrapper .avatar-placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; font-weight: 800; color: var(--primary);
  background: linear-gradient(135deg, #e9ecef, #d4d8dd);
  position: relative;
}
.member-name {
  font-weight: 800; font-size: 1rem; text-transform: uppercase;
  color: var(--dark); letter-spacing: 0.5px; margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.total-received {
  display: inline-block; background: var(--gold); color: var(--dark);
  font-size: 0.65rem; font-weight: 800; padding: 1px 12px;
  border-radius: 20px; margin-top: 2px;
}
.need-bar-container {
  background: #e9ecef; height: 6px; border-radius: 10px;
  overflow: hidden; margin: 5px 0 3px;
}
.need-bar { height: 100%; transition: width 0.8s ease, background 0.8s ease; border-radius: 10px; }
.need-label {
  font-size: 0.55rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.3px;
}
.pending-tag {
  background: #fff3cd; color: #856404; font-size: 0.55rem;
  font-weight: 800; padding: 2px 10px; border-radius: 20px;
  display: inline-block; margin-top: 4px; border: 1px solid #ffeba2;
  text-transform: uppercase;
}
.status-badge {
  position: absolute; bottom: 4px; right: 4px; width: 24px; height: 24px;
  border-radius: 50%; border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25); z-index: 2;
}

/* FAMILY GROUP */
.family-group { margin-bottom: 18px; }
.family-group .group-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  color: #6c757d; letter-spacing: 1px; margin-bottom: 8px;
  padding-left: 10px; border-left: 3px solid var(--accent);
}
body[dir="rtl"] .family-group .group-label {
  padding-left: 0; padding-right: 10px; border-left: none;
  border-right: 3px solid var(--accent);
}

/* PENDING GRID */
.pending-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px;
}
.pending-card {
  background: white; border-left: 5px solid var(--warning); border-radius: 14px;
  padding: 14px; box-shadow: 0 3px 12px rgba(0,0,0,0.05);
  display: flex; flex-direction: column; justify-content: space-between;
}
.pending-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.pending-card-avatar {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--warning); flex-shrink: 0; background: #e9ecef;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; color: var(--primary);
}
.pending-info h4 { font-size: 0.95rem; font-weight: 800; text-transform: uppercase; }
.pending-info span { font-size: 0.65rem; color: #6c757d; }
.pending-amount { font-size: 1.3rem; font-weight: 900; color: var(--danger); }
.pending-reason {
  font-size: 0.8rem; background: #f8f9fa; padding: 8px 12px;
  border-radius: 10px; margin: 6px 0; color: #495057;
  font-style: italic; border-left: 3px solid #dee2e6;
}

/* HISTORY */
.history-wrapper {
  background: white; border-radius: 14px; box-shadow: 0 3px 12px rgba(0,0,0,0.05);
  max-height: 400px; overflow-y: auto;
}
.history-wrapper table { width: 100%; border-collapse: collapse; font-size: 0.82rem; min-width: 320px; }
.history-wrapper thead { position: sticky; top: 0; z-index: 5; }
.history-wrapper thead th {
  background: #f8f9fa; color: var(--primary); text-transform: uppercase;
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.5px;
  padding: 10px 12px; border-bottom: 2px solid var(--accent);
}
.history-wrapper tbody td {
  padding: 10px 12px; border-bottom: 1px solid #e9ecef;
  text-align: left; vertical-align: middle;
}
body[dir="rtl"] .history-wrapper tbody td { text-align: right; }
.histo-avatar {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
  vertical-align: middle; margin-right: 8px; border: 2px solid #dee2e6;
}
body[dir="rtl"] .histo-avatar { margin-right: 0; margin-left: 8px; }
.histo-name { font-weight: 600; }
.histo-amount { font-weight: 900; color: var(--accent); }
.btn-loadmore {
  background: white; color: var(--accent); border: 2px solid var(--accent);
  margin: 12px auto; display: block; max-width: 200px; padding: 8px;
  font-size: 0.75rem; border-radius: 12px; font-weight: 800;
  cursor: pointer; transition: all 0.2s;
}
.btn-loadmore:hover { background: var(--accent); color: white; }

/* BUTTONS */
.btn {
  padding: 10px 18px; border: none; border-radius: 12px; font-weight: 800;
  cursor: pointer; font-size: 0.85rem; transition: all 0.2s; width: 100%;
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--accent); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-secondary { background: #6c757d; color: white; }
.btn-warning { background: var(--warning); color: white; }
.btn-inline { width: auto; padding: 6px 14px; font-size: 0.75rem; margin: 0; }

/* MODAL */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; padding: 16px; backdrop-filter: blur(4px);
}
.modal-overlay.visible { display: flex; }
.modal {
  background: white; padding: 24px 20px; border-radius: 24px;
  width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal h3 { text-align: center; color: var(--primary); font-size: 1.1rem; font-weight: 800; margin-bottom: 15px; }

/* STEP INDICATOR */
.step-indicator { display: flex; justify-content: center; gap: 10px; margin-bottom: 15px; }
.step-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #dee2e6; transition: all 0.3s;
}
.step-dot.active { background: var(--accent); transform: scale(1.2); }
.step-dot.done { background: var(--success); }
.step-title { text-align: center; font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.step-subtitle { text-align: center; font-size: 0.8rem; color: #6c757d; margin-bottom: 10px; }

/* FORMS */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-weight: 700; font-size: 0.75rem;
  color: #495057; margin-bottom: 6px; text-transform: uppercase;
  letter-spacing: 0.3px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; border: 2px solid #e9ecef;
  border-radius: 12px; font-size: 0.95rem; outline: none;
  transition: border-color 0.2s; background: white; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { min-height: 70px; resize: vertical; }

/* NUMPAD */
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.numpad button {
  padding: 16px; font-size: 1.4rem; font-weight: 700;
  border: 2px solid #dee2e6; border-radius: 12px; background: white;
  cursor: pointer; transition: all 0.15s; user-select: none;
  color: var(--dark); touch-action: manipulation;
}
.numpad button:active { transform: scale(0.92); background: var(--accent); color: white; }
.numpad .btn-clear { background: #f8f9fa; color: var(--danger); font-size: 0.9rem; }
.numpad .btn-clear:active { background: var(--danger); color: white; }

.pin-display {
  background: #f8f9fa; border-radius: 12px; padding: 14px;
  text-align: center; font-size: 1.8rem; font-weight: 800;
  letter-spacing: 12px; border: 2px solid #dee2e6;
  color: var(--primary); margin-bottom: 10px;
  font-family: 'Courier New', monospace; min-height: 56px;
}
.pin-display.error { border-color: var(--danger); background: #fde8e8; animation: shake 0.4s; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-10px); } 75% { transform: translateX(10px); } }

.amount-display {
  font-size: 2.8rem; font-weight: 900; color: var(--primary);
  text-align: center; padding: 12px; background: #f8f9fa;
  border-radius: 12px; margin-bottom: 10px;
}
.amount-display small { font-size: 1.2rem; color: #6c757d; }
.max-indicator { text-align: center; font-size: 0.7rem; color: #6c757d; margin-bottom: 10px; }
.max-indicator span { font-weight: 700; color: var(--primary); }

/* CONGRATS POPUP */
.congrats-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75);
  display: none; align-items: center; justify-content: center;
  z-index: 2000; padding: 16px; backdrop-filter: blur(6px);
}
.congrats-overlay.visible { display: flex; }
.congrats-card {
  background: linear-gradient(135deg, #ffffff, #f0f8f4);
  border-radius: 28px; padding: 30px 25px; max-width: 420px; width: 100%;
  text-align: center; position: relative; border: 4px solid var(--gold);
  box-shadow: 0 25px 70px rgba(0,0,0,0.4);
  animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}
.congrats-card .crown {
  font-size: 3rem; margin-bottom: 10px;
  animation: crownPulse 1.5s ease-in-out infinite;
}
@keyframes crownPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.congrats-card h2 { color: var(--primary); font-size: 1.5rem; font-weight: 900; margin-bottom: 5px; }
.congrats-card .subtitle { color: #6c757d; font-size: 0.85rem; margin-bottom: 20px; }
.congrats-card .member-photo {
  width: 90px; height: 90px; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--gold); margin: 0 auto 15px; display: block;
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}
.congrats-card .member-photo-placeholder {
  width: 90px; height: 90px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: white; font-size: 2.5rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 15px; border: 4px solid var(--gold);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}
.congrats-card .amount-big {
  font-size: 3rem; font-weight: 900; color: var(--success);
  margin: 10px 0; text-shadow: 0 3px 10px rgba(56, 176, 0, 0.3);
}
.congrats-card .amount-big small { font-size: 1.5rem; color: #6c757d; }
.congrats-card .payment-info {
  background: white; padding: 14px; border-radius: 14px; margin: 15px 0;
  border: 2px dashed var(--accent); text-align: left;
}
.congrats-card .payment-info strong {
  color: var(--primary); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.congrats-card .payment-info p { color: #495057; font-size: 0.9rem; margin-top: 4px; }
.congrats-card .close-btn {
  background: var(--success); color: white; border: none;
  padding: 14px 30px; border-radius: 30px; font-size: 1rem;
  font-weight: 800; cursor: pointer; margin-top: 10px;
  width: 100%; transition: all 0.2s;
}
.congrats-card .close-btn:hover { transform: scale(1.03); }

/* INFO MODAL */
.modal-info-content { text-align: left; line-height: 1.6; }
body[dir="rtl"] .modal-info-content { text-align: right; }
.modal-info-content ul { padding-left: 20px; margin: 10px 0; }
body[dir="rtl"] .modal-info-content ul { padding-left: 0; padding-right: 20px; }
.modal-info-content li { margin-bottom: 6px; }
.modal-info-content .highlight { color: var(--accent); font-weight: 700; }
.modal-info-content .highlight-gold { color: var(--gold); font-weight: 700; }

/* CONFETTI */
.confetti {
  position: fixed; width: 10px; height: 10px;
  animation: confetti-fall 3s linear forwards;
  z-index: 1999; pointer-events: none;
}
@keyframes confetti-fall {
  0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ============================================================
   AJOUTS — Erreur PIN (message texte sous le champ)
   ============================================================ */
.pin-error {
  text-align: center;
  color: var(--danger);
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 6px;
  animation: shake 0.4s;
}

/* ============================================================
   AJOUTS — Badge PIN admin (affichage + bouton crayon)
   ============================================================ */
.pin-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f3f5;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  margin-left: 6px;
  vertical-align: middle;
}
.pin-badge button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0 2px;
  line-height: 1;
  transition: transform 0.15s;
}
.pin-badge button:hover { transform: scale(1.2); }

/* Édition PIN inline dans l'admin */
.pin-edit-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.pin-edit-inline input {
  width: 72px;
  padding: 4px 6px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  outline: none;
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
}
.pin-edit-inline button {
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
}
.btn-pin-save { background: var(--success); color: white; }
.btn-pin-cancel { background: #dee2e6; color: #495057; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  header h1 { font-size: 1.1rem; }
  .ayoub-header { width: 40px; height: 40px; font-size: 1.2rem; }
  .solde-card .montant { font-size: 2.2rem; }
  .solde-card .add-money-btn { font-size: 0.6rem; padding: 6px 12px; right: 10px; }
  .members-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .member-card { padding: 10px 8px 12px; }
  .member-name { font-size: 0.85rem; white-space: normal; word-break: break-word; line-height: 1.2; }
  .status-badge { width: 20px; height: 20px; bottom: 3px; right: 3px; border-width: 2px; }
  .pending-grid { grid-template-columns: 1fr; }
  .congrats-card { padding: 24px 18px; }
  .congrats-card h2 { font-size: 1.2rem; }
  .congrats-card .amount-big { font-size: 2.4rem; }
  .numpad button { padding: 14px; font-size: 1.2rem; }
  .pin-display { font-size: 1.5rem; letter-spacing: 8px; min-height: 48px; }
  .lang-switch { top: 5px; right: 8px; padding: 2px 6px; }
  .lang-switch button { font-size: 0.55rem; padding: 1px 5px; }

  /* Plaque mobile — solde compact */
  .solde-card {
    margin: -10px 8px 12px;
    padding: 12px 14px;
    border-radius: 16px;
  }
  .solde-card h2 { font-size: 0.6rem; letter-spacing: 1px; }
  .solde-card .montant { font-size: 2rem; }
  .solde-card .montant small { font-size: 0.9rem; }
  .solde-card .info-btn { width: 20px; height: 20px; font-size: 0.7rem; }

  /* Plaque mobile — boutons admin */
  .btn-inline { padding: 5px 10px; font-size: 0.65rem; }
  .pin-badge { font-size: 0.7rem; padding: 2px 8px; margin-left: 4px; }
  .pin-edit-inline input { width: 60px; font-size: 0.72rem; padding: 3px 4px; }
  .pin-edit-inline button { padding: 3px 6px; font-size: 0.65rem; }

  /* Plaque mobile — historique scrollable proprement */
  .history-wrapper { border-radius: 12px; }
  .history-wrapper table { font-size: 0.72rem; }
  .history-wrapper thead th { padding: 8px 6px; font-size: 0.55rem; }
  .history-wrapper tbody td { padding: 8px 6px; }
  .histo-avatar { width: 26px; height: 26px; margin-right: 5px; border-width: 1px; }
  .histo-name { font-size: 0.72rem; }
  .histo-amount { font-size: 0.78rem; }

  /* Plaque mobile — modales compactes */
  .modal { padding: 20px 16px; border-radius: 18px; max-height: 95vh; }
  .modal h3 { font-size: 1rem; margin-bottom: 12px; }
  .step-title { font-size: 0.9rem; }
  .amount-display { font-size: 2.2rem; padding: 10px; }
  .amount-display small { font-size: 1rem; }
  .form-group input, .form-group textarea { padding: 10px 12px; font-size: 0.9rem; }
  .form-group label { font-size: 0.68rem; }
}

/* ============================================================
   ÉCRANS TRÈS PETITS (≤ 400px)
   ============================================================ */
@media (max-width: 400px) {
  .members-grid { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 8px; }
  .member-name { font-size: 0.7rem; }
  .avatar-wrapper .avatar-placeholder { font-size: 2.2rem; }
  .solde-card .montant { font-size: 1.8rem; }

  .numpad button { padding: 12px; font-size: 1.05rem; }
  .pin-display { font-size: 1.3rem; letter-spacing: 6px; }
  .amount-display { font-size: 1.9rem; }

  .congrats-card { padding: 20px 14px; border-radius: 22px; }
  .congrats-card h2 { font-size: 1.05rem; }
  .congrats-card .amount-big { font-size: 2rem; }
  .congrats-card .member-photo,
  .congrats-card .member-photo-placeholder { width: 70px; height: 70px; font-size: 2rem; }
  .congrats-card .crown { font-size: 2.4rem; }
  .congrats-card .payment-info { padding: 10px; font-size: 0.8rem; }
}