@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
}

body {
  background: linear-gradient(135deg, #1a0033, #33001a, #001a33);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* MÀN HÌNH CHỜ (SPLASH SCREEN) 5 GIÂY */
#splashScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url('../images/background.png') no-repeat center center;
  background-size: cover;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 50px;
  transition: opacity 0.8s ease;
}

#splashScreen::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.splash-content {
  position: relative;
  z-index: 2;
  width: 80%;
  max-width: 500px;
  text-align: center;
}

.splash-logo h1 {
  font-size: 28px;
  color: #ffcc00;
  text-shadow: 0 0 10px #ff6600, 0 0 20px #ff0000;
  margin-bottom: 5px;
}

.splash-logo p {
  font-size: 14px;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.loader-box {
  width: 100%;
  height: 18px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid #ffcc00;
  border-radius: 10px;
  overflow: hidden;
  padding: 2px;
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.6);
}

.loader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ff6600, #ffcc00, #ffff66);
  border-radius: 6px;
  transition: width 0.1s linear;
}

.loader-text {
  margin-top: 10px;
  font-size: 14px;
  font-weight: bold;
  color: #ffcc00;
  text-shadow: 1px 1px 2px #000;
}

/* HIỆU ỨNG HOA MAI RƠI */
.apricot-falling-container {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 999;
  overflow: hidden;
}

.apricot-flower {
  position: absolute;
  top: -50px;
  width: 24px;
  height: 24px;
  background: radial-gradient(circle, #fff033 30%, #ff9900 80%);
  border-radius: 50% 0 50% 50%;
  box-shadow: 0 0 8px #ffcc00;
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    transform: translateY(-50px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(105vh) rotate(360deg);
    opacity: 0.2;
  }
}

/* LAYOUT CHÍNH */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(20, 0, 40, 0.85);
  backdrop-filter: blur(10px);
  padding: 15px 30px;
  border-radius: 15px;
  border: 1px solid rgba(255, 204, 0, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 15px;
  z-index: 99;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: #ffcc00;
  text-shadow: 0 0 10px rgba(255, 204, 0, 0.7);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: #ddd;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
  color: #ffcc00;
  text-shadow: 0 0 8px #ffcc00;
}

/* BUTTONS */
.btn-primary, .btn-secondary, .btn-logout, .btn-user {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn-primary {
  background: linear-gradient(135deg, #ff6600, #ff3300);
  color: #fff;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #ff8533, #ff4d4d);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 102, 0, 0.5);
}

.btn-secondary {
  background: linear-gradient(135deg, #ffcc00, #ff9900);
  color: #1a0033;
}
.btn-secondary:hover {
  background: linear-gradient(135deg, #ffdb4d, #ffb31a);
  transform: translateY(-2px);
}

.btn-logout {
  background: #dc3545;
  color: #fff;
}
.btn-logout:hover {
  background: #bd2130;
}

/* USER DROPDOWN */
.user-dropdown {
  position: relative;
  display: inline-block;
}

.btn-user {
  background: rgba(255, 204, 0, 0.2);
  color: #ffcc00;
  border: 1px solid #ffcc00;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  background: #1a0033;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 204, 0, 0.3);
  z-index: 10;
  margin-top: 5px;
}

.dropdown-menu a {
  color: #fff;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 14px;
}

.dropdown-menu a:hover {
  background: rgba(255, 204, 0, 0.2);
  color: #ffcc00;
}

.user-dropdown:hover .dropdown-menu {
  display: block;
}

/* HERO BANNER & FEATURES */
.main-content {
  margin-top: 40px;
}

.hero-banner {
  text-align: center;
  background: rgba(0, 0, 0, 0.45);
  border: 2px dashed rgba(255, 204, 0, 0.4);
  padding: 50px 20px;
  border-radius: 20px;
  margin-bottom: 40px;
  box-shadow: inset 0 0 20px rgba(255, 204, 0, 0.15);
}

.hero-banner h2 {
  font-size: 32px;
  color: #ffcc00;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

.hero-banner p {
  font-size: 16px;
  color: #ccc;
  max-width: 700px;
  margin: 0 auto 25px auto;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-glow {
  padding: 12px 25px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s;
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
}

.btn-download-large {
  background: #28a745;
  color: white;
}
.btn-download-large:hover {
  background: #218838;
  box-shadow: 0 0 25px #28a745;
}

.btn-zalo-large {
  background: #0068ff;
  color: white;
  box-shadow: 0 0 15px rgba(0, 104, 255, 0.5);
}
.btn-zalo-large:hover {
  background: #0052cc;
  box-shadow: 0 0 25px #0068ff;
}

/* FEATURES GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.feature-card {
  background: rgba(30, 10, 50, 0.8);
  border: 1px solid rgba(255, 204, 0, 0.3);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  transition: 0.3s;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: #ffcc00;
  box-shadow: 0 15px 35px rgba(255, 204, 0, 0.2);
}

.feature-card h3 {
  color: #ffcc00;
  margin-bottom: 12px;
  font-size: 20px;
}

.feature-card p {
  color: #bbb;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-store {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #fff;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.btn-store:hover {
  background: #ffcc00;
  color: #1a0033;
  border-color: #ffcc00;
}

.select-custom {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #ffcc00;
  border-radius: 8px;
  color: #fff;
}

/* MODALS */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: linear-gradient(145deg, #220033, #11001a);
  border: 2px solid #ffcc00;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 0 30px rgba(255, 204, 0, 0.4);
}

.modal-content h2 {
  color: #ffcc00;
  margin-bottom: 20px;
  text-align: center;
}

.modal-content input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255, 204, 0, 0.5);
  border-radius: 8px;
  color: #fff;
}

.modal-content input:focus {
  border-color: #ffcc00;
  outline: none;
  box-shadow: 0 0 8px rgba(255, 204, 0, 0.5);
}

.modal-content p {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
  color: #ccc;
}

.modal-content p a {
  color: #ffcc00;
  text-decoration: none;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  color: #ffcc00;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.message {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
}