/* Fullscreen Loader – E‑Tineret */
.et-loader {
  position: fixed;
  inset: 0;
  z-index: 5500;
  display: grid;
  place-items: center;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .28s ease, visibility 0s linear;
}
.et-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility 0s linear .28s;
}

/* Backdrop */
.et-loader__backdrop {
  position: absolute;
  inset: 0;
  background: #154ADC;
}

/* Content */
.et-loader__inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 20px;
  color: #fff;
  transform: translateY(0);
  transition: transform .28s ease, opacity .28s ease;
}
.et-loader.is-hidden .et-loader__inner {
  transform: translateY(-6px);
  opacity: 0;
}

/* Brand */
.et-loader__brand { display: grid; justify-items: center; gap: 10px; }
.et-loader__logo {
  display: block;
  max-width: min(220px, 60vw);
  max-height: 64px;
  width: auto;
  height: auto;
  filter: brightness(0) invert(1);
}
.et-loader__brand-text {
  font-family: var(--et-font-onest, system-ui, sans-serif);
  font-weight: 800;
  font-size: clamp(20px, 5vw, 28px);
  letter-spacing: -.2px;
  color: #fff;
}

/* Spinner SVG */
.et-loader__svg {
  display: block;
  width: 64px;
  height: 64px;
  animation: etLoaderRotate 1.4s linear infinite;
}
.et-loader__circle {
  stroke: #fff;
  stroke-linecap: round;
  animation: etLoaderDash 1.4s ease-in-out infinite;
}

/* Text */
.et-loader__text {
  margin: 4px 0 0;
  font-size: 14px;
  opacity: .9;
  color: #fff;
}

/* Skip (SR only, dar focusabil pentru tastatură) */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.et-loader__skip:focus {
  position: fixed !important;
  inset: auto 12px 12px auto !important;
  width: auto !important;
  height: auto !important;
  clip: auto !important;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  color: #154ADC;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  z-index: 2;
}

/* Animations */
@keyframes etLoaderRotate {
  100% { transform: rotate(360deg); }
}
@keyframes etLoaderDash {
  0%   { stroke-dasharray: 1, 126; stroke-dashoffset: 0; }
  50%  { stroke-dasharray: 80, 126; stroke-dashoffset: -28; }
  100% { stroke-dasharray: 1, 126; stroke-dashoffset: -110; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .et-loader__svg { animation: none; }
  .et-loader__circle { animation: none; }
}

/* A11y themes interoperability (păstrează lizibilitate) */
html.a11y-theme-high .et-loader__backdrop,
html.a11y-theme-negative .et-loader__backdrop,
html.a11y-theme-light .et-loader__backdrop {
  background-color: #154ADC !important;
}
html.a11y-theme-high .et-loader__skip:focus,
html.a11y-theme-negative .et-loader__skip:focus,
html.a11y-theme-light .et-loader__skip:focus {
  background: #fff !important;
  color: #154ADC !important;
}