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

body, html {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #fff;
  height: 100%;
  overflow-x: hidden;
  background: linear-gradient(135deg, #0a0a23 0%, #1a1a3a 50%, #2a2a4a 100%);
}

/* Stars Animation */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.stars, .stars2, .stars3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

.stars::after, .stars2::after, .stars3::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #eee, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, #fff, transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: sparkle 12s linear infinite;
  opacity: 0.3;
}

.stars2::after {
  animation-delay: -4s;
  opacity: 0.2;
}

.stars3::after {
  animation-delay: -8s;
  opacity: 0.1;
}

@keyframes sparkle {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-100px); }
}

#bg-image {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  background: url('../images/bg.svg') no-repeat center center;
  background-size: cover;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Header Styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding: 20px 0;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.lang-switch {
  display: flex;
  gap: 8px;
}

.lang-switch button {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.lang-switch button:hover,
.lang-switch button.active {
  background: linear-gradient(135deg, #B22234, #3C3B6E);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(178, 34, 52, 0.4);
}

/* Main Content */
main {
  padding: 40px 0;
}

.hero-section {
  margin-bottom: 50px;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #B22234, #FFFFFF, #3C3B6E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { filter: drop-shadow(0 0 5px rgba(178, 34, 52, 0.5)); }
  to { filter: drop-shadow(0 0 20px rgba(178, 34, 52, 0.8)); }
}

.subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Input Section */
.input-section {
  margin-bottom: 50px;
}

.input-box {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.input-wrapper {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.6);
  z-index: 2;
}

.input-box input {
  width: 100%;
  padding: 15px 15px 15px 45px;
  border-radius: 25px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.input-box input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.input-box input:focus {
  outline: none;
  border-color: #B22234;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 20px rgba(178, 34, 52, 0.3);
}

.input-box button {
  padding: 15px 30px;
  border: none;
  background: linear-gradient(135deg, #B22234, #3C3B6E);
  color: white;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(178, 34, 52, 0.3);
}

.input-box button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(178, 34, 52, 0.5);
  background: linear-gradient(135deg, #c42a3e, #4a4a7a);
}

/* Stats Section */
.stats-section {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 25px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.stat-icon {
  width: 24px;
  height: 24px;
  color: #B22234;
}

.users-count,
.online-count {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  padding: 20px;
  z-index: 100;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-content p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #B22234;
  text-decoration: underline;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: linear-gradient(135deg, #1a1a3a, #2a2a4a);
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 450px;
  text-align: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.modal-icon {
  width: 32px;
  height: 32px;
  color: #B22234;
  animation: spin 2s linear infinite;
}

.modal-icon.success {
  color: #00c853;
  animation: none;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.modal-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-btn:hover {
  color: #B22234;
  transform: scale(1.1);
}

.progress {
  background: rgba(255, 255, 255, 0.1);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 20px;
}

.bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #B22234, #3C3B6E);
  transition: width 3s ease-in-out;
  border-radius: 4px;
}

.cta {
  display: inline-block;
  margin-top: 25px;
  padding: 15px 30px;
  background: linear-gradient(135deg, #B22234, #3C3B6E);
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(178, 34, 52, 0.3);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(178, 34, 52, 0.5);
  background: linear-gradient(135deg, #c42a3e, #4a4a7a);
}

/* Cookie Banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 15px 20px;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 99999;
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#cookie-banner a {
  color: #B22234;
  text-decoration: underline;
  margin-left: 5px;
}

#cookie-banner button {
  background: linear-gradient(135deg, #B22234, #3C3B6E);
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  color: #fff;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

#cookie-banner button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(178, 34, 52, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  .subtitle {
    font-size: 1.1rem;
  }
  
  .input-box {
    flex-direction: column;
    gap: 15px;
  }
  
  .input-wrapper {
    max-width: 100%;
  }
  
  .stats-section {
    flex-direction: column;
    gap: 20px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .lang-switch {
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  .modal-content {
    padding: 30px 20px;
  }
  
  #cookie-banner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
