/* ====================================================================================
   VISITOR COUNTER FOOTER
   ========================================== */
/* ==========================================
   SIDE-EDGE FLOATING VISITOR BADGES
   ========================================== */
/* ==========================================
   FOOTER VISITOR COUNTER STYLING
   ========================================== */
#visitor-counter-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  padding: 15px 0;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.counter-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.counter-number {
  font-size: 1.2rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 1px;
  line-height: 1;
}

.counter-label {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  font-weight: 600;
}

.counter-divider {
  color: #475569;
  /* font-size: 1.5rem; */
  font-weight: 300;
}

/* ==========================================
   FORM VALIDATION & SHAKE ANIMATIONS
   ========================================== */
.input-error {
  border: 2px solid #ef4444 !important;
  background-color: #fef2f2 !important;
}

.error-text {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 4px;
  display: block;
  font-weight: 600;
}

.shake {
  animation: shakeKeyframe 0.4s ease-in-out;
}

@keyframes shakeKeyframe {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-8px);
  }

  40%,
  80% {
    transform: translateX(8px);
  }
}

/* ==========================================
   CUSTOM MODAL POPUP
   ========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 1.5rem;
  font-weight: bold;
}

.modal-icon.success {
  background: #dcfce7;
  color: #16a34a;
}

.modal-icon.error {
  background: #fee2e2;
  color: #dc2626;
}

.modal-card h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  color: #1e293b;
}

.modal-card p {
  color: #64748b;
  margin: 0 0 20px;
  font-size: 0.95rem;
}

.modal-btn {
  background: #0284c7;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 800px) {
  #visitor-counter-footer {
    gap: 10px;
  }

  .counter-number {
    font-size: 1rem;
  }

  .counter-label {
    font-size: 0.7rem;
  }
}