.app-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(17, 87, 188, 0.08), transparent 35%), linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

.election-loader {
  position: relative;
  width: 280px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px 24px;
  border-radius: 24px;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: blur(6px);
}

.election-loader__ring {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #008c45 0deg,
    #008c45 70deg,
    #f4f7ff 70deg,
    #f4f7ff 120deg,
    #f4f7ff 160deg,
    #cd212a 160deg,
    #cd212a 230deg,
    #f4f7ff 230deg,
    #f4f7ff 290deg,
    #0b4ea2 290deg,
    #0b4ea2 360deg
  );
  animation: election-spin 1.9s linear infinite;
  filter: drop-shadow(0 8px 14px rgba(11, 78, 162, 0.18));
}

.election-loader__ring::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
}

.election-loader__logo-wrap {
  position: relative;
  z-index: 2;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 18px rgba(11, 78, 162, 0.12), inset 0 0 0 1px rgba(11, 78, 162, 0.08);
  animation: election-float 2.4s ease-in-out infinite;
}

.election-loader__logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.election-loader__text {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: small;
}

.election-loader__title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: #0b2f78;
  text-transform: uppercase;
}

.election-loader__subtitle {
  margin-top: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #5b6b88;
}

.election-loader__dots {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.election-loader__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: election-bounce 1.2s infinite ease-in-out;
}

.election-loader__dots span:nth-child(1) {
  background: #008c45;
  animation-delay: 0s;
}

.election-loader__dots span:nth-child(2) {
  background: #ffffff;
  border: 1px solid rgba(11, 78, 162, 0.25);
  animation-delay: 0.15s;
}

.election-loader__dots span:nth-child(3) {
  background: #cd212a;
  animation-delay: 0.3s;
}

@keyframes election-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes election-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes election-bounce {
  0%,
  80%,
  100% {
    transform: scale(0.7);
    opacity: 0.6;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 576px) {
  .election-loader {
    width: 240px;
    min-height: 280px;
    padding: 24px 18px;
    border-radius: 20px;
  }

  .election-loader__ring {
    width: 145px;
    height: 145px;
  }

  .election-loader__logo-wrap {
    width: 102px;
    height: 102px;
  }

  .election-loader__logo {
    width: 78px;
    height: 78px;
  }

  .election-loader__title {
    font-size: 1.15rem;
  }

  .election-loader__subtitle {
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .election-loader__ring,
  .election-loader__logo-wrap,
  .election-loader__dots span {
    animation: none;
  }
}
