.cc-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0A1628 0%, #1E6091 50%, #0D1B2A 100%);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.cc-loading-overlay.cc-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cc-loading-logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1E6091, #4DA8C4);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: white;
  margin-bottom: 24px;
  animation: cc-pulse 2s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(77, 168, 196, 0.4);
}

@keyframes cc-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(77, 168, 196, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 60px rgba(77, 168, 196, 0.6); }
}

.cc-loading-waves {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}

.cc-loading-waves span {
  width: 4px;
  height: 20px;
  background: linear-gradient(to top, #1E6091, #4DA8C4);
  border-radius: 4px;
  animation: cc-wave 1.2s ease-in-out infinite;
}

.cc-loading-waves span:nth-child(2) { animation-delay: 0.1s; }
.cc-loading-waves span:nth-child(3) { animation-delay: 0.2s; }
.cc-loading-waves span:nth-child(4) { animation-delay: 0.3s; }
.cc-loading-waves span:nth-child(5) { animation-delay: 0.4s; }

@keyframes cc-wave {
  0%, 100% { height: 20px; opacity: 0.5; }
  50% { height: 40px; opacity: 1; }
}

.cc-loading-text {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #A8D8EA;
  margin-bottom: 8px;
}

.cc-loading-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  color: rgba(168, 216, 234, 0.6);
}

.cc-loading-progress {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-top: 20px;
  overflow: hidden;
}

.cc-loading-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #1E6091, #4DA8C4);
  border-radius: 3px;
  animation: cc-progress 35s linear;
}

@keyframes cc-progress {
  0% { width: 0%; }
  100% { width: 100%; }
}

.cc-loading-error {
  display: none;
  text-align: center;
}

.cc-loading-error.cc-visible {
  display: block;
}

.cc-loading-error .cc-loading-text {
  color: #F4978E;
}

.cc-loading-retry {
  margin-top: 16px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #1E6091, #4DA8C4);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cc-loading-retry:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(77, 168, 196, 0.4);
}
