/* ============================================================
   AA88 Login - Base Stylesheet (Vietnamese market)
   All custom classes use the "vad7-" prefix for namespace safety.
   Palette: #00FF7F (mint accent) | #1A1A1A (dark bg) | #495057 (muted text)
   Mobile-first: optimized for max-width 430px viewports.
   ============================================================ */

:root {
  --vad7-primary: #00ff7f;
  --vad7-primary-dark: #00cc66;
  --vad7-bg: #1a1a1a;
  --vad7-bg-2: #232323;
  --vad7-bg-3: #2d2d2d;
  --vad7-text: #f5f7f5;
  --vad7-muted: #495057;
  --vad7-muted-light: #8a948f;
  --vad7-gold: #ffd24a;
  --vad7-danger: #ff5470;
  --vad7-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  --vad7-radius: 14px;
  --vad7-radius-sm: 8px;
  --vad7-font: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--vad7-font);
  background: var(--vad7-bg);
  color: var(--vad7-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--vad7-primary); text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- Layout helpers ---------- */
.vad7-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; position: relative; }
.vad7-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.vad7-section { padding: 2.4rem 0; }
.vad7-section-alt { background: var(--vad7-bg-2); }
.vad7-grid { display: grid; gap: 1rem; }

main { flex: 1; padding-bottom: 80px; }

/* ---------- Header ---------- */
.vad7-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.96), rgba(20, 20, 20, 0.88));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 255, 127, 0.18);
}
.vad7-header-inner {
  max-width: 430px; margin: 0 auto; padding: 0.6rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
}
.vad7-brand { display: flex; align-items: center; gap: 0.55rem; color: var(--vad7-text); }
.vad7-brand img { width: 30px; height: 30px; border-radius: 50%; }
.vad7-brand-name { font-weight: 700; font-size: 1.5rem; letter-spacing: 0.02em; }
.vad7-brand-name b { color: var(--vad7-primary); }
.vad7-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.vad7-menu-btn {
  background: transparent; border: 1px solid rgba(0, 255, 127, 0.3);
  color: var(--vad7-primary); width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.vad7-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-weight: 600; font-size: 1.3rem; padding: 0.55rem 1rem; border-radius: 999px;
  border: none; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 38px; line-height: 1;
}
.vad7-btn-primary { background: linear-gradient(135deg, var(--vad7-primary), var(--vad7-primary-dark)); color: #06210f; box-shadow: 0 4px 14px rgba(0, 255, 127, 0.25); }
.vad7-btn-outline { background: transparent; color: var(--vad7-primary); border: 1px solid var(--vad7-primary); }
.vad7-btn-gold { background: linear-gradient(135deg, #ffd24a, #f0a020); color: #2a1d00; }
.vad7-btn:active { transform: scale(0.97); }

/* ---------- Mobile slide-in menu ---------- */
.vad7-menu-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 9998;
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease;
}
.vad7-overlay-active { opacity: 1; visibility: visible; }
.vad7-mobile-menu {
  position: fixed; top: 0; right: -80%; width: 80%; max-width: 320px; height: 100vh;
  background: var(--vad7-bg-2); z-index: 9999; padding: 4.5rem 1.4rem 2rem;
  transition: right 0.28s ease; overflow-y: auto;
  border-left: 1px solid rgba(0, 255, 127, 0.18);
}
.vad7-menu-open { right: 0; }
.vad7-mobile-menu h4 { color: var(--vad7-muted-light); font-size: 1.2rem; text-transform: uppercase; margin: 1.2rem 0 0.6rem; letter-spacing: 0.05em; }
.vad7-mobile-menu a {
  display: block; padding: 0.75rem 0.4rem; color: var(--vad7-text); font-size: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.vad7-mobile-menu a:hover { color: var(--vad7-primary); }
.vad7-menu-close {
  position: absolute; top: 1rem; right: 1rem; background: transparent; border: none;
  color: var(--vad7-text); font-size: 1.8rem; cursor: pointer;
}

/* ---------- Hero ---------- */
.vad7-hero { padding: 6rem 0 1.5rem; background: radial-gradient(800px 200px at 50% -40px, rgba(0, 255, 127, 0.18), transparent); }
.vad7-hero h1 { font-size: 2.4rem; line-height: 1.25; margin-bottom: 0.8rem; }
.vad7-hero h1 b { color: var(--vad7-primary); }
.vad7-hero p { color: var(--vad7-muted-light); margin-bottom: 1.2rem; }
.vad7-hero-cta { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.vad7-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-top: 1.4rem; }
.vad7-stat { background: var(--vad7-bg-2); border-radius: var(--vad7-radius-sm); padding: 0.8rem; text-align: center; border: 1px solid rgba(255, 255, 255, 0.05); }
.vad7-stat-num { display: block; font-size: 1.7rem; font-weight: 800; color: var(--vad7-primary); }
.vad7-stat-label { font-size: 1.1rem; color: var(--vad7-muted-light); }

/* ---------- Carousel ---------- */
.vad7-carousel { position: relative; border-radius: var(--vad7-radius); overflow: hidden; margin: 1.2rem 0; box-shadow: var(--vad7-shadow); }
.vad7-carousel-track { position: relative; height: 180px; }
.vad7-carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.vad7-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.vad7-slide-active { opacity: 1; }
.vad7-carousel-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.vad7-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); border: none; cursor: pointer; }
.vad7-dot-active { background: var(--vad7-primary); width: 22px; border-radius: 5px; }

/* ---------- Section heading ---------- */
.vad7-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.vad7-section-head h2 { font-size: 1.9rem; color: var(--vad7-text); }
.vad7-section-head h2 b { color: var(--vad7-primary); }
.vad7-section-head a { font-size: 1.2rem; color: var(--vad7-primary); }

/* ---------- Chips ---------- */
.vad7-chips { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.6rem; margin-bottom: 1rem; }
.vad7-chip {
  white-space: nowrap; padding: 0.5rem 1rem; border-radius: 999px; background: var(--vad7-bg-3);
  color: var(--vad7-text); font-size: 1.25rem; border: 1px solid rgba(255, 255, 255, 0.07); cursor: pointer;
}
.vad7-chip-active { background: var(--vad7-primary); color: #06210f; border-color: var(--vad7-primary); }

/* ---------- Game grid ---------- */
.vad7-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.vad7-game-card { background: var(--vad7-bg-2); border-radius: var(--vad7-radius-sm); overflow: hidden; text-align: center; cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.05); transition: transform 0.18s ease, border-color 0.18s ease; }
.vad7-game-card:active { transform: scale(0.97); border-color: var(--vad7-primary); }
.vad7-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.vad7-game-card span { display: block; padding: 0.5rem 0.4rem; font-size: 1.15rem; color: var(--vad7-text); min-height: 36px; }

/* ---------- Card / Panel ---------- */
.vad7-card { background: var(--vad7-bg-2); border-radius: var(--vad7-radius); padding: 1.4rem; border: 1px solid rgba(255, 255, 255, 0.05); }
.vad7-card h3 { font-size: 1.55rem; margin-bottom: 0.6rem; color: var(--vad7-text); }
.vad7-card h3 b { color: var(--vad7-primary); }
.vad7-card p { color: var(--vad7-muted-light); margin-bottom: 0.8rem; }
.vad7-card ul { padding-left: 1.2rem; }
.vad7-card ul li { color: var(--vad7-muted-light); margin-bottom: 0.4rem; list-style: disc; }

/* ---------- Featured row ---------- */
.vad7-feature-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.vad7-feature { background: var(--vad7-bg-2); border-radius: var(--vad7-radius-sm); padding: 1rem; text-align: center; border: 1px solid rgba(0, 255, 127, 0.12); }
.vad7-feature i { font-size: 2.2rem; color: var(--vad7-primary); }
.vad7-feature h4 { font-size: 1.25rem; margin: 0.4rem 0; }
.vad7-feature p { font-size: 1.15rem; color: var(--vad7-muted-light); }

/* ---------- Testimonials ---------- */
.vad7-testimonial { background: var(--vad7-bg-2); border-radius: var(--vad7-radius-sm); padding: 1rem; border-left: 3px solid var(--vad7-primary); margin-bottom: 0.7rem; }
.vad7-testimonial p { font-style: italic; color: var(--vad7-text); }
.vad7-testimonial cite { display: block; margin-top: 0.5rem; color: var(--vad7-muted-light); font-size: 1.1rem; }

/* ---------- Payment ---------- */
.vad7-payment-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.vad7-payment-row span { background: var(--vad7-bg-3); color: var(--vad7-text); padding: 0.5rem 0.9rem; border-radius: 8px; font-size: 1.15rem; border: 1px solid rgba(255, 255, 255, 0.06); }

/* ---------- FAQ ---------- */
.vad7-faq { border-bottom: 1px solid rgba(255, 255, 255, 0.06); padding: 0.9rem 0; }
.vad7-faq summary { cursor: pointer; font-weight: 600; color: var(--vad7-text); list-style: none; position: relative; padding-right: 1.6rem; }
.vad7-faq summary::after { content: "+"; position: absolute; right: 0; color: var(--vad7-primary); font-size: 1.5rem; }
.vad7-faq[open] summary::after { content: "−"; }
.vad7-faq p { margin-top: 0.6rem; color: var(--vad7-muted-light); }

/* ---------- Winners ---------- */
.vad7-winner { display: flex; justify-content: space-between; padding: 0.55rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.04); font-size: 1.2rem; }
.vad7-winner b { color: var(--vad7-gold); }

/* ---------- Footer ---------- */
.vad7-footer { background: #111; padding: 2.4rem 0 5.5rem; border-top: 1px solid rgba(0, 255, 127, 0.12); }
.vad7-footer h4 { color: var(--vad7-text); margin: 1.2rem 0 0.6rem; font-size: 1.3rem; }
.vad7-footer p { color: var(--vad7-muted-light); font-size: 1.2rem; }
.vad7-footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem; margin: 0.6rem 0; }
.vad7-footer-links a { color: var(--vad7-muted-light); font-size: 1.15rem; }
.vad7-footer-links a:hover { color: var(--vad7-primary); }
.vad7-footer-cta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.vad7-copyright { text-align: center; color: var(--vad7-muted); font-size: 1.1rem; margin-top: 1rem; }

/* ---------- Bottom nav ---------- */
.vad7-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; height: 62px; z-index: 1000;
  background: linear-gradient(180deg, #1d1d1d, #0e0e0e);
  border-top: 1px solid rgba(0, 255, 127, 0.22);
  display: flex; justify-content: space-around; align-items: stretch;
}
.vad7-bottomnav-btn {
  flex: 1; min-width: 60px; min-height: 60px; background: transparent; border: none;
  color: var(--vad7-muted-light); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer; transition: color 0.18s ease, transform 0.18s ease;
  font-size: 1rem;
}
.vad7-bottomnav-btn i, .vad7-bottomnav-btn .material-icons-outlined { font-size: 22px; }
.vad7-bottomnav-btn:active { transform: scale(0.92); }
.vad7-bottomnav-current { color: var(--vad7-primary); }
.vad7-bottomnav-current::before {
  content: ""; position: absolute; top: 0; width: 30px; height: 3px;
  background: var(--vad7-primary); border-radius: 0 0 4px 4px;
}

/* ---------- Back to top ---------- */
#vad7-back-top {
  position: fixed; right: 14px; bottom: 78px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--vad7-primary); color: #06210f; border: none; cursor: pointer; z-index: 999;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease;
}
.vad7-back-visible { opacity: 0.95; visibility: visible; }

/* ---------- Reveal animation ---------- */
.vad7-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.vad7-revealed { opacity: 1; transform: translateY(0); }

/* ---------- Helpers ---------- */
.vad7-text-center { text-align: center; }
.vad7-mt-1 { margin-top: 0.6rem; }
.vad7-mb-1 { margin-bottom: 0.6rem; }
.vad7-promo-text { color: var(--vad7-primary); font-weight: 700; }

/* ---------- Desktop layout ---------- */
@media (min-width: 768px) {
  body { font-size: 1.6rem; }
  .vad7-container { max-width: 960px; padding: 0 2rem; }
  .vad7-header-inner { max-width: 960px; }
  .vad7-game-grid { grid-template-columns: repeat(6, 1fr); }
  .vad7-feature-row { grid-template-columns: repeat(4, 1fr); }
  .vad7-bottomnav { display: none; }
  main { padding-bottom: 0; }
  .vad7-footer { padding-bottom: 2.4rem; }
  .vad7-carousel-track { height: 320px; }
  .vad7-hero h1 { font-size: 3rem; }
}

@media (min-width: 769px) { .vad7-bottomnav { display: none; } }
@media (max-width: 768px) { main { padding-bottom: 80px; } }
