.kralopen-loader-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(20,20,20,0.98) 0%, rgba(10,10,10,0.99) 100%);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: none;
}

.kralopen-loader-overlay.active {
  opacity: 1;
  visibility: visible;
}

.kralopen-loader-overlay.hiding {
  opacity: 0;
  transform: scale(0.98);
}

/* Increased container size by 25% */
.loader-container {
  position: relative;
  width: 225px; /* Increased from 180px */
  height: 225px; /* Increased from 180px */
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid transparent; /* Thicker border */
  border-top-color: rgba(245, 215, 110, 0.8);
  border-bottom-color: rgba(245, 215, 110, 0.4);
  animation: rotate 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.loader-circle:nth-child(2) {
  width: 80%;
  height: 80%;
  border-top-color: rgba(245, 215, 110, 0.6);
  border-bottom-color: rgba(245, 215, 110, 0.2);
  animation-direction: reverse;
  animation-duration: 2.2s;
}

.loader-content {
  z-index: 2;
  text-align: center;
  transform: translateY(25px); /* Increased from 20px */
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.kralopen-loader-overlay.active .loader-content {
  transform: translateY(0);
}

.kralopen-loader-overlay.hiding .loader-content {
  transform: translateY(-25px); /* Increased from -20px */
  opacity: 0.7;
}

/* Larger logo with enhanced glow */
.loader-logo {
  width: 140px; /* Increased from 120px */
  height: auto;
  margin-bottom: 24px; /* Increased from 16px */
  opacity: 0;
  transform: scale(0.9);
  animation: logoFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
  filter: drop-shadow(0 0 4px rgba(245, 215, 110, 0.3)); /* Initial glow */
}

/* Larger text with better readability */
.loader-text {
  color: #f5d76e;
  font-size: 20px; /* Increased from 16px */
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.8px; /* Increased from 0.5px */
  margin-top: 12px; /* Increased from 8px */
  opacity: 0;
  animation: textFadeIn 0.8s ease-out 0.5s forwards;
}

/* Progress bar adjustments */
.loader-progress {
  width: 70%; /* Increased from 60% */
  height: 4px; /* Thicker bar */
  background: rgba(245, 215, 110, 0.2);
  border-radius: 4px; /* Larger radius */
  margin-top: 24px; /* Increased from 20px */
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 0.5s ease 0.7s forwards;
}

.loader-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f5d76e, #f9e8a1);
  border-radius: 4px; /* Larger radius */
  transition: width 0.3s ease;
}

/* Animations with enhanced effects */
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes logoFadeIn {
  to {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 16px rgba(245, 215, 110, 0.5)); /* Stronger glow */
  }
}

@keyframes textFadeIn {
  to {
    opacity: 0.9;
    text-shadow: 0 0 12px rgba(245, 215, 110, 0.4); /* Enhanced glow */
  }
}

@keyframes fadeIn {
  to { opacity: 1; }
}