* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0f0f23;
  color: #fff;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#loading-screen {
  text-align: center;
  animation: fadeIn 0.6s ease-in;
}

#loading-screen h1 {
  font-size: 2.5rem;
  margin: 20px 0 10px;
  background: linear-gradient(90deg, #6e8efb, #a777e6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#loading-screen p {
  color: #aaa;
  font-size: 1.1rem;
}

.spinner {
  width: 60px;
  height: 60px;
  animation: spin 1.2s linear infinite;
}

.lottie-container {
  width: 120px;
  height: 120px;
  margin: 20px auto;
}

/* 404 Page */
#not-found {
  display: none;
  text-align: center;
  animation: fadeIn 0.8s ease-in;
  max-width: 90%;
}

.brand-logo {
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

.brand-logo svg {
  filter: drop-shadow(0 0 10px rgba(110, 142, 251, 0.3));
}

#not-found h1 {
  font-size: 2.8rem;
  margin: 15px 0;
  background: linear-gradient(90deg, #ff6b6b, #feca57);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.actions {
  margin: 25px 0;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #6e8efb, #a777e6);
  color: white;
  box-shadow: 0 4px 15px rgba(110, 142, 251, 0.4);
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(110, 142, 251, 0.6);
}

/* Support */
.support {
  margin-top: 40px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 380px;
}

.support p {
  color: #ccc;
  margin-bottom: 12px;
  font-size: 1rem;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 15px 0;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  text-decoration: none;
  color: #fff;
  transition: 0.3s;
  background: rgba(255, 255, 255, 0.1);
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

.social-btn::before {
  content: "";
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
}

.telegram::before { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240"><circle cx="120" cy="120" r="120" fill="%2337AEE2"/><path fill="%23FFF" d="M54 125.5l26-11 11-5 55-24c4-2 7-1 6 3l-11 52c-1 4-3 6-7 5l-26-10-13 12c-3 3-5 2-6-1l-6-26-19-6c-4-1-4-4 1-6z"/></svg>'); }
.instagram::before { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23E4405F"><path d="M12 2.2c3.2 0 3.6 0 4.9.1 1.2.1 2 .3 2.7.5.8.2 1.4.7 1.7 1.5.2.7.4 1.5.5 2.7.1 1.3.1 1.7.1 4.9s0 3.6-.1 4.9c-.1 1.2-.3 2-.5 2.7-.3.8-.9 1.4-1.7 1.7-.7.2-1.5.4-2.7.5-1.3.1-1.7.1-4.9.1s-3.6 0-4.9-.1c-1.2-.1-2-.3-2.7-.5-.8-.3-1.4-.9-1.7-1.7-.2-.7-.4-1.5-.5-2.7-.1-1.3-.1-1.7-.1-4.9s0-3.6.1-4.9c.1-1.2.3-2 .5-2.7.3-.8.9-1.4 1.7-1.7.7-.2 1.5-.4 2.7-.5 1.3-.1 1.7-.1 4.9-.1zm0-2.2C8.8 0 8.4.1 7.1.2 5.8.3 4.8.6 3.9 1.5 3 2.4 2.5 3.4 2.3 4.7 2.2 6 2.1 6.4 2.1 12s.1 6 .2 7.3c.1 1.3.4 2.3 1.3 3.2.9.9 1.9 1.4 3.2 1.5 1.3.1 1.7.2 4.9.2s3.6-.1 4.9-.2c1.3-.1 2.3-.6 3.2-1.5.9-.9 1.4-1.9 1.5-3.2.1-1.3.2-1.7.2-4.9s-.1-3.6-.2-4.9c-.1-1.3-.6-2.3-1.5-3.2-.9-.9-1.9-1.4-3.2-1.5C15.6.1 15.2 0 12 0z"/><path d="M12 5.8a6.2 6.2 0 100 12.4 6.2 6.2 0 000-12.4zm0 10.2a4 4 0 110-8 4 4 0 010 8z"/><circle cx="18.4" cy="5.6" r="1.5"/></svg>'); }
.facebook::before { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%233B5998"><path d="M22.7 0H1.3C.6 0 0 .6 0 1.3v21.4c0 .7.6 1.3 1.3 1.3h11.5v-9.3H9.7V9.8h3.1V7.1c0-3.1 1.9-4.8 4.6-4.8 1.3 0 2.4.1 2.7.1v3.1h-1.9c-1.5 0-1.8.7-1.8 1.8v2.3h3.5l-.5 3.5h-3v9.3h5.9c.7 0 1.3-.6 1.3-1.3V1.3C24 .6 23.4 0 22.7 0z"/></svg>'); }

.brand {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #888;
  text-align: center;
}

/* Animations */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Responsive */
@media (max-width: 480px) {
  #loading-screen h1, #not-found h1 { font-size: 2rem; }
}
