/*CAPTCHA - DESIGN UNIFIÉ*/

/* ==========================================
   CAPTCHA - THÈME DORÉ UNIFIÉ
   ========================================== */

.captcha-puzzle-container {
  position: relative;
  width: 100%;
}

.captcha-canvas-wrapper {
  position: relative;
  width: 300px;
  height: 150px;
  margin: 0 auto 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(240, 185, 11, 0.2);
  background: #1a1a1a;
  border: 1px dashed rgba(240, 185, 11, 0.3);
}

.captcha-canvas {
  display: block;
  width: 300px !important;
  height: 150px !important;
  max-width: 100% !important;
}

.captcha-puzzle-piece {
  position: absolute;
  top: 0;
  left: 0;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
  width: auto !important;
  height: 150px !important;
}

.captcha-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-size: 14px;
  z-index: 5;
}

.captcha-loading i {
  font-size: 24px;
  color: #f0b90b;
}

.captcha-status {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  z-index: 10;
}

.captcha-status.success {
  display: flex;
  background: rgba(46, 204, 113, 0.95);
  color: white;
  animation: slideIn 0.3s ease;
}

.captcha-status.error {
  display: flex;
  background: rgba(231, 76, 60, 0.95);
  color: white;
  animation: slideIn 0.3s ease;
}

.captcha-slider-wrapper {
  position: relative;
  width: 300px;
  height: 50px;
  margin: 0 auto;
}

.captcha-slider-track {
  position: absolute;
  width: 100%;
  height: 40px;
  background: linear-gradient(to right, rgba(240, 185, 11, 0.1), rgba(240, 185, 11, 0.2));
  border: 2px solid rgba(240, 185, 11, 0.3);
  border-radius: 25px;
  overflow: hidden;
}

.captcha-slider-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(240, 185, 11, 0.4), rgba(240, 185, 11, 0.6));
  transition: width 0.05s linear;
}

.captcha-slider-button {
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 40px;
  background: linear-gradient(135deg, #f0b90b, #a68005);
  border-radius: 25px;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  box-shadow: 0 4px 15px rgba(240, 185, 11, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 10;
}

.captcha-slider-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(240, 185, 11, 0.6);
}

.captcha-slider-button.active {
  cursor: grabbing;
  transform: scale(1.1);
}

.captcha-slider-button.success {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.captcha-slider-button.error {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.captcha-slider-text {
position: absolute;
  top: 40%;
  left: 55%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  color: rgba(80, 80, 80, 0.6);
  pointer-events: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.captcha-refresh-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 32px;
  height: 32px;
  background: rgba(240, 185, 11, 0.3);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 11;
  font-size: 14px;
}

.captcha-refresh-btn:hover {
  background: rgba(240, 185, 11, 0.5);
  transform: rotate(180deg);
}

/* ==========================================
   MESSAGE DE SUCCÃˆS DU CAPTCHA
   ========================================== */

.captcha-success-message {
  width: 300px;
  height: 110px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(39, 174, 96, 0.1));
  border: 2px solid rgba(46, 204, 113, 0.5);
  border-radius: 8px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.4s ease;
}

.captcha-success-message.show {
  opacity: 1;
  transform: scale(1);
}

.captcha-success-message .success-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: successPulse 0.6s ease;
}

.captcha-success-message .success-icon i {
  font-size: 32px;
  color: white;
}

.captcha-success-message h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #2ecc71;
}
.captcha-section-login {
  transition: border 0.3s ease;
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes successPulse {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ==========================================
   SECTIONS CAPTCHA (NEWSLETTER & LOGIN)
   ========================================== */

/* Section pour newsletter popup */
.captcha-section {
  margin: 20px 0;
}

.captcha-section label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #f0b90b;
  margin-bottom: 15px;
  font-size: 14px;
}

.captcha-section label i {
  font-size: 16px;
}
.captcha-section-login label{
  color: #f0b90b;
}
.captcha-section-signup i {
  font-size: 16px;
}
.captcha-section-signup label{
  color: #f0b90b;
}

/* Adapter le captcha aux différents conteneurs */
.login-card .captcha-puzzle-container,
.newsletter-popup-body .captcha-puzzle-container {
  margin: 0;
}

/* Message d'erreur pour le captcha */
.error-message {
  margin-bottom: 20px;
  padding: 12px;
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: 8px;
  color: #e74c3c;
  font-size: 14px;
  text-align: center;
  display: none;
}

.error-message:not(:empty) {
  display: block;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
  .captcha-canvas-wrapper,
  .captcha-slider-wrapper {
    width: 280px;
  }

  .captcha-slider-text {
    font-size: 11px;
  }

  .captcha-section-login {
    padding: 15px;
    margin: 20px 0;
  }
  
  .captcha-success-message {
    width: 280px;
  }
  
  .captcha-success-message .success-icon {
    width: 50px;
    height: 50px;
  }
  
  .captcha-success-message .success-icon i {
    font-size: 26px;
  }
  
  .captcha-success-message h4 {
    font-size: 16px;
  }
  
  .captcha-success-message p {
    font-size: 13px;
  }
}








/* ================================
   🎨 STYLES POUR LE MODULE DE STATISTIQUES BNB
   ================================ */



.notif-stats-section {
  background: #151515;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.notif-stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.notif-stats-header h4 {
  margin: 0;
  font-size: 18px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.notif-stats-header h4 i {
  color: #707070;
}

.notif-stats-period-buttons {
  display: flex;
  gap: 8px;
  background: #1a1a1a;
  padding: 4px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.notif-period-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: #666;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.notif-period-btn:hover {
  background: #f0f0f0;
  color: #333;
}

.notif-period-btn.active {
  background: linear-gradient(135deg, #707070 0%, #5a5a5a 100%);
  color: white;
  box-shadow: 0 2px 6px rgba(112, 112, 112, 0.3);
}

.notif-period-btn i {
  font-size: 12px;
}

/* Loading et Error states */
.notif-stats-loading,
.notif-stats-error {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.notif-stats-loading i {
  font-size: 32px;
  color: #707070;
  margin-bottom: 10px;
  display: block;
}

.notif-stats-error {
  background: #fff3f3;
  border-radius: 8px;
  color: #e74c3c;
}

.notif-stats-error i {
  font-size: 32px;
  margin-bottom: 10px;
  display: block;
}

.notif-stats-error p {
  margin: 10px 0;
  font-size: 14px;
}

/* Graphique */
.notif-stats-chart-container {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.notif-stats-avg-icon i {
  margin-left:0px;
}

#bnbStatsChart {
  max-height: 300px;
}

/* Moyennes */
.notif-stats-averages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.notif-stats-avg-card {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 15px;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.notif-stats-avg-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.notif-stats-avg-icon {
  background: linear-gradient(135deg, #707070 0%, #5a5a5a 100%);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(112, 112, 112, 0.3);
}

.notif-stats-avg-icon i {
  font-size: 20px;
}

.notif-stats-avg-content {
  flex: 1;
  min-width: 0;
}

.notif-stats-avg-content h5 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.notif-stats-avg-values {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notif-stats-avg-values p {
  margin: 0;
  font-size: 13px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notif-stats-avg-bnb {
  font-weight: 600;
  color: #F3BA2F !important;
  font-size: 14px !important;
}

.notif-stats-avg-usd {
  font-weight: 600;
  color: #00D1B2 !important;
}

.notif-stats-avg-ncoin {
  font-weight: 600;
  color: #707070 !important;
}

.notif-stats-avg-tx {
  color: #FF6B6B !important;
}

/* Totaux */
.notif-stats-totals {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.notif-stats-totals h5 {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notif-stats-totals h5 i {
  color: #707070;
}

.notif-stats-totals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.notif-stats-total-item {
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #242424;
  transition: all 0.3s ease;
}
.notif-stats-total-item i{
   height: 50px;
  font-size: 30px;
  align-items: center;
  display: flex;
  justify-content: center;
  width: 100%;
  color: #9a9a9a;
}

.notif-stats-total-item:hover {
  border-color: #707070;
  transform: translateY(-2px);
}

.notif-stats-total-label {
  display: block;
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  font-weight: 600;
}

.notif-stats-total-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #9a9a9a;
}

.notif-set-content{
  width: 100%;
}
.notif-stats-content{
  width: 100%;
}
.notif-history-content{
  width: 100%;
}


/* Responsive Design */
@media (max-width: 768px) {
  .notif-stats-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .notif-stats-period-buttons {
    width: 100%;
    justify-content: space-between;
  }

  .notif-period-btn {
    flex: 1;
    justify-content: center;
    padding: 10px 8px;
    font-size: 12px;
  }

  .notif-period-btn span {
    display: none;
  }

  .notif-stats-averages {
    grid-template-columns: 1fr;
  }

  .notif-stats-totals-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #bnbStatsChart {
    max-height: 250px;
  }
}

@media (max-width: 480px) {
  .notif-stats-section {
    padding: 15px;
    margin: 15px 0;
  }

  .notif-stats-chart-container {
    padding: 15px;
  }

  .notif-stats-avg-card {
    padding: 15px;
  }

  .notif-stats-avg-icon {
    width: 40px;
    height: 40px;
  }

  .notif-stats-avg-icon i {
    font-size: 18px;
  }

  .notif-stats-total-value {
    font-size: 18px;
  }
}

/* Animation d'entrée */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notif-stats-section {
  animation: fadeInUp 0.4s ease-out;
}

/* Styles pour les boutons dans error state */
#retryStats {
  margin-top: 15px;
  padding: 10px 20px;
  background: #707070;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#retryStats:hover {
  background: #5a5a5a;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(112, 112, 112, 0.3);
}

#retryStats:active {
  transform: translateY(0);
}







































/* ── Nav Partners ─────────────────────────────────────────── */
.nav-link-partners {
  position: relative;
  color: #f0b90b !important;
  font-weight: 600;
}
.nav-link-partners i { color: #f0b90b; }
.nav-partners-badge {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #1a1a1a;
  background: #f0b90b;
  padding: 1px 6px;
  border-radius: 20px;
  margin-left: 4px;
  vertical-align: middle;
  line-height: 1.6;
}
.mobile-nav-link-partners {
  color: #f0b90b !important;
  font-weight: 600;
}
.mobile-nav-link-partners i { color: #f0b90b !important; }
.mobile-partners-badge {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 800;
  color: #1a1a1a;
  background: #f0b90b;
  padding: 1px 6px;
  border-radius: 20px;
  margin-left: 4px;
  vertical-align: middle;
}
