:root {
  --bg-color: #0b0d12;
  --card-bg: rgba(18, 22, 31, 0.85);
  --accent-cyan: #00f2fe;
  --accent-purple: #7928ca;
  --text-color: #e2e8f0;
}

.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-color);
  z-index: 99999; /* Legfelső réteg */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner-box {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.outer-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top-color: var(--accent-cyan);
  border-right-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin-right 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.6));
}

.inner-ring {
  position: absolute;
  width: 60%;
  height: 60%;
  border: 3px solid transparent;
  border-bottom-color: var(--accent-purple);
  border-left-color: var(--accent-purple);
  border-radius: 50%;
  animation: spin-left 0.8s linear infinite;
  filter: drop-shadow(0 0 8px rgba(121, 40, 202, 0.6));
}

.core-dot {
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 12px #ffffff, 0 0 20px var(--accent-cyan);
  animation: pulse 1.5s ease-in-out infinite;
}

.loading-text {
  color: var(--text-color);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  margin: 0;
  text-transform: uppercase;
}

.dots::after {
  content: '';
  animation: dots-animation 1.5s steps(4, end) infinite;
}

.loader-container.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes spin-right {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spin-left {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(0.8); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
}

@keyframes dots-animation {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
}