.loading-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
}

.loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.75rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.loading-rings {
  position: relative;
  width: 80px;
  height: 80px;
}

.loading-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  animation: spin 1.5s linear infinite;
}

.loading-ring.ring-outer {
  border-top-color: var(--color-primary);
}

.loading-ring.ring-middle {
  inset: 10px;
  border-right-color: var(--color-primary);
  animation-direction: reverse;
}

.loading-ring.ring-inner {
  inset: 20px;
  border-bottom-color: var(--color-secondary);
}

.loading-dot {
  position: absolute;
  top: 35px;
  left: 35px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
  animation: loading-pulse 1.5s ease-in-out infinite;
}

.loading-text {
  font-weight: 600;
  letter-spacing: -0.4px;
  background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.loading-bar {
  width: 150px;
  height: 4px;
  background: rgba(58, 123, 213, 0.2);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.loading-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 35%;
  background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
  border-radius: inherit;
  animation: loading-bar 2s ease-in-out infinite;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(58, 123, 213, 0.1);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.8rem;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.page-background,
.crypto-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.page-background-base,
.crypto-background-base {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f8fafc 0%, #eaf2f8 100%);
}

.page-background-waves,
.crypto-background-waves {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  opacity: 0.35;
}

.page-particles,
.crypto-particles {
  position: absolute;
  inset: 0;
}

.page-geo,
.crypto-geo {
  position: absolute;
  border: 1px solid rgba(58, 123, 213, 0.12);
  border-radius: 28px;
  backdrop-filter: blur(4px);
}

.page-geo-lg,
.crypto-geo-lg {
  width: 160px;
  height: 160px;
  top: 12%;
  right: 10%;
}

.page-geo-md,
.crypto-geo-md {
  width: 120px;
  height: 120px;
  top: 58%;
  right: 22%;
}

.page-geo-sm,
.crypto-geo-sm {
  width: 90px;
  height: 90px;
  bottom: 18%;
  left: 14%;
}

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

@keyframes loading-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(0, 210, 255, 0); }
  50% { transform: scale(1.5); box-shadow: 0 0 20px rgba(0, 210, 255, 0.5); }
}

@keyframes loading-bar {
  0% { width: 0; left: 0; }
  50% { width: 100%; left: 0; }
  50.01% { width: 100%; left: auto; right: 0; }
  100% { width: 0; left: auto; right: 0; }
}
