/* Fallback UI Styles */
.fallback-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #e0e0e0;
  text-align: center;
  padding: 20px;
  max-width: 450px;
  margin: 0 auto;
  background: rgba(21, 21, 21, 0.9);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(65, 105, 225, 0.2);
  position: relative;
  overflow: hidden;
}

/* Add the background glow effect */
.fallback-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    farthest-side circle at center,
    rgba(65, 105, 225, 0.15),
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.fallback-container > * {
  position: relative;
  z-index: 1;
}

.fallback-logo {
  width: 90px;
  height: 90px;
  margin-bottom: 8px;
  animation: pulseGlow 3s ease-in-out infinite;
}

.fallback-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: 0.5px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.fallback-description {
  font-size: 1rem;
  line-height: 1.5;
  color: #ccc;
  margin-bottom: 20px;
}

.fallback-button {
  display: inline-block;
  background: #4169E1;
  color: #fff;
  padding: 0.8em 1.6em;
  border-radius: 4px;
  font-weight: 500;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(65, 105, 225, 0.4);
  transition: background 150ms ease, transform 150ms ease;
  animation: buttonPulse 1s infinite alternate;
}

.fallback-button:hover {
  background: #548af2;
  transform: translateY(-2px);
}

.fallback-button:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 2px 8px rgba(65, 105, 225, 0.4);
}

.fallback-trust-signal {
  font-size: 0.9rem;
  color: #999;
  margin-top: 15px;
}

/* Animations */
@keyframes pulseGlow {
  0%   { filter: drop-shadow(0 4px 8px rgba(65, 105, 225, 0.4)); }
  50%  { filter: drop-shadow(0 8px 16px rgba(65, 105, 225, 0.8)); }
  100% { filter: drop-shadow(0 4px 8px rgba(65, 105, 225, 0.4)); }
}

@keyframes buttonPulse {
  from { box-shadow: 0 4px 12px rgba(65, 105, 225, 0.4); }
  to { box-shadow: 0 6px 18px rgba(65, 105, 225, 0.6); }
}

/* Responsive styles */
@media (max-width: 480px) {
  .fallback-container {
    max-width: 90%;
    padding: 15px;
  }
  
  .fallback-logo {
    width: 75px;
    height: 75px;
  }
  
  .fallback-title {
    font-size: 1.6rem;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .fallback-container {
    max-width: 400px;
  }
  
  .fallback-logo {
    width: 80px;
    height: 80px;
  }
  
  .fallback-title {
    font-size: 1.7rem;
  }
}