/* ===================================================
   ZAYTO GLOBAL CUSTOM LOADING SCREEN
   =================================================== */

#zayto-global-loader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: #F8FAFC;
  color: #0B192C;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: env(safe-area-inset-top, 24px) 24px env(safe-area-inset-bottom, 24px) 24px;
  box-sizing: border-box;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.45s ease;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
}

#zayto-global-loader.loader-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.zloader-header {
  width: 100%;
  max-width: 420px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
}

.zloader-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(8px);
}

.zloader-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
  animation: zloaderPulse 2s infinite ease-in-out;
}

.zloader-badge-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #0F172A;
  text-transform: uppercase;
}

.zloader-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 380px;
  margin: auto 0;
  padding: 0 16px;
  box-sizing: border-box;
}

.zloader-logo-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.zloader-logo-glow {
  position: absolute;
  inset: -12px;
  background: radial-gradient(circle, rgba(255, 94, 0, 0.18) 0%, rgba(255, 161, 0, 0.1) 45%, rgba(2, 132, 199, 0.06) 70%, transparent 80%);
  border-radius: 50%;
  filter: blur(18px);
  z-index: 1;
  pointer-events: none;
}

.zloader-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 8px 16px rgba(255, 94, 0, 0.12));
  animation: zloaderFloat 3.6s ease-in-out infinite;
}

.zloader-progress-box {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.zloader-labels {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 9px;
  padding: 0 2px;
  box-sizing: border-box;
}

.zloader-msg {
  color: #0B192C;
  letter-spacing: -0.2px;
}

.zloader-percent {
  font-family: 'Inter', monospace, sans-serif;
  color: #FF5E00;
  font-weight: 800;
  font-size: 13.5px;
}

.zloader-bar-bg {
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: #E2E8F0;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
  padding: 1px;
  box-sizing: border-box;
}

.zloader-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #FF5E00 0%, #FFA100 50%, #FF5E00 100%);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  width: 12%;
}

.zloader-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  animation: zloaderShimmer 1.8s infinite;
}

.zloader-status-text {
  margin-top: 12px;
  font-size: 12px;
  color: #64748B;
  font-family: 'Inter', monospace, sans-serif;
  text-align: center;
  letter-spacing: 0.2px;
}

.zloader-footer {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 8px;
  text-align: center;
}

.zloader-copy {
  font-size: 12px;
  font-family: 'Inter', monospace, sans-serif;
  font-weight: 500;
  color: #94A3B8;
  letter-spacing: 0.4px;
  margin: 0;
}

@keyframes zloaderFloat {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.02);
  }
}

@keyframes zloaderShimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(200%);
  }
}

@keyframes zloaderPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.25);
    opacity: 0.7;
  }
}
