/* =========================================
   VARIABLES & BASE DESIGN ZIK243
   ========================================= */
:root {
  --blue: #1a73e8; --blue-dark: #0d47a1;
  --orange: #ff6b35; --orange-dark: #e55a2b;
  --dark: #0a0e1a; --darker: #060912;
  --card: #111827; --text: #e5e7eb;
  --text-muted: #9ca3af; --border: #1f2937;
  --green: #25D366; --red: #ef4444;
  --sidebar-width: 260px;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background: var(--darker); color: var(--text); min-height: 100vh; overflow-x: hidden; }
.hidden { display: none !important; }

/* Boutons Actions Tableaux */
.action-btn {
  padding: 6px 12px; border-radius: 6px; font-size: 12px;
  font-weight: 600; cursor: pointer; border: none;
  transition: all 0.2s; margin-right: 5px;
}
.btn-withdraw { background: rgba(255,107,53,0.15); color: var(--orange); }
.btn-withdraw:hover { background: var(--orange); color: white; }
.btn-view { background: rgba(26,115,232,0.15); color: var(--blue); }
.btn-view:hover { background: var(--blue); color: white; }
.btn-send { background: rgba(37,211,102,0.15); color: var(--green); }
.btn-send:hover { background: var(--green); color: white; }
.btn-upload { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.btn-upload:hover { background: #8b5cf6; color: white; }

/* Status Pills */
.status-pill { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; display: inline-block; }
.status-paid { background: rgba(37,211,102,0.15); color: #25d366; }
.status-pending { background: rgba(245,158,11,0.15); color: #f59e0b; }
.status-video { background: rgba(26,115,232,0.15); color: #1a73e8; }

/* Tables */
.table-responsive { overflow-x: auto; margin-top: 20px; border-radius: 12px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th { text-align: left; padding: 15px; color: var(--text-muted); font-size: 12px; text-transform: uppercase; border-bottom: 1px solid var(--border); background: var(--dark); }
td { padding: 15px; border-bottom: 1px solid var(--border); font-size: 14px; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* Layout Dashboard */
.dashboard-layout { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-width); background: var(--dark); border-right: 1px solid var(--border); position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; transition: transform 0.3s; }
.main-content { flex: 1; margin-left: var(--sidebar-width); padding: 30px; }
.content-section { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 30px; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile Toggle */
.mobile-toggle { display: none; position: fixed; top: 20px; left: 20px; z-index: 101; width: 40px; height: 40px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; color: var(--text); align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 1024px) { .sidebar { transform: translateX(-100%); } .sidebar.open { transform: translateX(0); } .main-content { margin-left: 0; padding-top: 80px; } .mobile-toggle { display: flex; } }

/* =========================================
   AUTHENTIFICATION
   ========================================= */
.auth-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(circle at top right, rgba(26,115,232,0.1), transparent 40%), radial-gradient(circle at bottom left, rgba(255,107,53,0.1), transparent 40%); }
.auth-card { background: var(--card); border: 1px solid var(--border); border-radius: 24px; width: 100%; max-width: 500px; padding: 40px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.auth-header { text-align: center; margin-bottom: 30px; }
.auth-logo { width: 60px; height: 60px; margin-bottom: 15px; border-radius: 12px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-size: 13px; color: var(--text-muted); font-weight: 500; }
.form-input, .form-select { width: 100%; padding: 14px 16px; background: var(--dark); border: 1px solid var(--border); border-radius: 12px; color: var(--text); font-size: 14px; outline: none; transition: all 0.3s; }
.form-input:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,115,232,0.1); }
.file-upload { border: 2px dashed var(--border); border-radius: 12px; padding: 20px; text-align: center; cursor: pointer; transition: all 0.3s; position: relative; overflow: hidden; }
.file-upload:hover { border-color: var(--orange); background: rgba(255,107,53,0.05); }
.file-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-preview { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: none; }
.btn { width: 100%; padding: 14px; border: none; border-radius: 12px; font-weight: 700; font-size: 15px; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-primary { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,107,53,0.3); }
.auth-switch { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted); }
.auth-switch a { color: var(--orange); text-decoration: none; font-weight: 600; cursor: pointer; }

/* =========================================
   POP UP RETRAIT MOBILE MONEY
   ========================================= */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(12px); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.withdraw-modal { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 35px; max-width: 450px; width: 100%; position: relative; animation: slideUp 0.3s ease; }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close { position: absolute; top: 15px; right: 15px; width: 32px; height: 32px; border-radius: 8px; background: var(--dark); border: 1px solid var(--border); color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--red); color: white; border-color: var(--red); }
.withdraw-amount-display { text-align: center; margin-bottom: 25px; padding: 20px; background: linear-gradient(135deg, rgba(255,107,53,0.1), rgba(26,115,232,0.05)); border: 1px dashed var(--orange); border-radius: 16px; }
.withdraw-amount-display span { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 5px; }
.withdraw-amount-display strong { font-size: 32px; color: var(--orange); font-weight: 800; }
.phone-input-wrapper { display: flex; background: var(--dark); border: 2px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 20px; }
.phone-prefix { padding: 14px 16px; background: var(--card); color: var(--text-muted); font-weight: 600; border-right: 1px solid var(--border); display: flex; align-items: center; }
.phone-input-wrapper input { flex: 1; background: transparent; border: none; padding: 14px 16px; color: var(--text); font-size: 16px; font-weight: 600; outline: none; letter-spacing: 1px; }
.btn-confirm-withdraw { width: 100%; padding: 16px; background: linear-gradient(135deg, var(--orange), var(--orange-dark)); color: white; border: none; border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-confirm-withdraw:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,107,53,0.4); }

/* Resultat Modal */
.result-icon { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 40px; animation: pop 0.5s ease; }
@keyframes pop { 0% { transform: scale(0); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }
.result-icon.success { background: linear-gradient(135deg, var(--green), #128C7E); color: white; }
.result-icon.failed { background: linear-gradient(135deg, var(--red), #dc2626); color: white; }
.result-details { background: var(--dark); border-radius: 12px; padding: 18px; margin: 20px 0; }
.result-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
.result-row:last-child { border-bottom: none; }
.result-row span:first-child { color: var(--text-muted); }
.result-row span:last-child { font-weight: 600; }

/* Large Screens (4K/8K) */
@media (min-width: 2560px) { :root { --sidebar-width: 350px; font-size: 18px; } .main-content { padding: 60px; } table { font-size: 18px; } th, td { padding: 25px; } }










/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 9999 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active {
  display: flex !important;
}

/* Loading Popup */
.loading-popup {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 20px;
  padding: 40px 35px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.loading-title {
  font-size: 22px;
  font-weight: 700;
  color: #e5e7eb;
  margin-bottom: 8px;
}

.loading-subtitle {
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 25px;
}

/* Barre de progression arrondie avec animation infinie */
.progress-container {
  width: 100%;
  height: 10px;
  background: #0a0e1a;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-bar-animated {
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, #1a73e8, #ff6b35);
  border-radius: 10px;
  animation: progressMove 1.5s ease-in-out infinite;
}

@keyframes progressMove {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(400%);
  }
}












@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}



