body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  background: linear-gradient(to bottom right, #0a1d3a, #13294b);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}

.splash-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  color: white;
  animation: fadeIn 0.5s ease-in-out forwards;
  padding: 20px 10px;
}

.logo-img {
  width: 100px;
  margin-bottom: 20px;
  animation: bounceFadeIn 1s ease-out forwards;
}

.app-name {
  font-size: 2em;
  margin-top: 10px;
  opacity: 0;
  animation: fadeUp 1s 1s forwards;
}

.tagline {
  font-size: 1.1em;
  margin-top: 10px;
  opacity: 0;
  animation: fadeIn 1s 2s forwards;
}

.loading-dots {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.dot {
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  margin: 0 5px;
  animation: pulse 1.5s infinite;
}

.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

.button-box {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid white;
  border-radius: 12px;
  padding: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.dropdown-button {
  background-color: #ffffff22;
  color: white;
  padding: 10px 20px;
  border: 1px solid white;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1em;
}

.dropdown-button:hover {
  background-color: #ffffff44;
}

.dropdown-menu {
  margin-top: 5px;
  background: #ffffff11;
  border: 1px solid white;
  border-radius: 10px;
  overflow: hidden;
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.button-box.open .dropdown-menu {
  transform: scaleY(1);
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: white;
  text-decoration: none;
  border-bottom: 1px solid white;
  background-color: #13294b;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background-color: #0a1d3a;
}

@keyframes bounceFadeIn {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeUp {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.icon {
  font-size: 1.1em;
}

/* Popup ad styles */
.popup-ad {
  position: fixed;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  z-index: 9999;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  display: none;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.popup-ad img {
  width: 100%;
  display: block;
}

.close-btn {
  background: red;
  color: white;
  padding: 5px 10px;
  font-weight: bold;
  border: none;
  position: absolute;
  top: 5px;
  right: 5px;
  cursor: pointer;
  border-radius: 5px;
}
