/* NH88 APK - Core stylesheet
   Prefix: w72d6- | Site: nh88apk.click | Locale: vi-VN
   Palette: #AD1457 (primary) | #98FB98 (mint) | #1E1E1E (bg dark)
            #8B4513 (saddle brown) | #FFC0CB (pink light)
   Mobile-first, max-width 430px.
*/
:root {
  --w72d6-primary: #AD1457;
  --w72d6-primary-dark: #8a0f44;
  --w72d6-mint: #98FB98;
  --w72d6-bg: #1E1E1E;
  --w72d6-bg-2: #2a2326;
  --w72d6-card: #2b1f23;
  --w72d6-brown: #8B4513;
  --w72d6-pink: #FFC0CB;
  --w72d6-text: #fdf3f6;
  --w72d6-text-muted: #d8c2cb;
  --w72d6-gold: #f5c451;
  --w72d6-radius: 14px;
  --w72d6-shadow: 0 6px 22px rgba(0, 0, 0, 0.32);
}

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

html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  background: var(--w72d6-bg);
  color: var(--w72d6-text);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--w72d6-mint); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }

.w72d6-container { width: 100%; padding: 0 14px; }
.w72d6-wrapper { width: 100%; }

/* ============ Header ============ */
.w72d6-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--w72d6-primary), var(--w72d6-primary-dark));
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.w72d6-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 12px;
}
.w72d6-logo {
  display: flex; align-items: center; gap: 8px; font-weight: 800;
  font-size: 1.8rem; color: #fff;
}
.w72d6-logo img { width: 28px; height: 28px; border-radius: 6px; }
.w72d6-logo .w72d6-logo-accent { color: var(--w72d6-mint); }

.w72d6-actions { display: flex; align-items: center; gap: 8px; }

.w72d6-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 4px; padding: 8px 14px; border: none; border-radius: 999px;
  font-size: 1.3rem; font-weight: 700; cursor: pointer;
  min-height: 34px; line-height: 1;
}
.w72d6-btn-login {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.55);
}
.w72d6-btn-register {
  background: linear-gradient(135deg, var(--w72d6-gold), #ffb347);
  color: #2b1f23; box-shadow: 0 3px 10px rgba(245,196,81,0.45);
}
.w72d6-btn:hover { transform: translateY(-1px); }

.w72d6-menu-toggle {
  background: transparent; border: none; color: #fff;
  font-size: 2.2rem; cursor: pointer; padding: 4px 6px;
}

/* ============ Mobile expandable menu ============ */
.w72d6-mobile-menu {
  position: fixed; top: 0; right: -100%;
  width: 82%; max-width: 340px; height: 100vh;
  background: var(--w72d6-bg-2); z-index: 9999;
  padding: 70px 18px 24px; transition: right 0.28s ease;
  box-shadow: -4px 0 22px rgba(0,0,0,0.4); overflow-y: auto;
}
.w72d6-mobile-menu.w72d6-menu-open { right: 0; }
.w72d6-mobile-menu a {
  display: block; padding: 12px 14px; margin: 6px 0;
  border-radius: 10px; color: var(--w72d6-text);
  background: rgba(255,255,255,0.04); font-size: 1.45rem;
}
.w72d6-mobile-menu a:hover { background: var(--w72d6-primary); text-decoration: none; }
.w72d6-menu-close {
  position: absolute; top: 14px; right: 14px;
  background: transparent; border: none; color: #fff;
  font-size: 2.4rem; cursor: pointer;
}
.w72d6-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 9998; display: none;
}
.w72d6-overlay.w72d6-menu-open { display: block; }

/* ============ Hero / Carousel ============ */
.w72d6-hero { margin: 12px 0; }
.w72d6-carousel {
  position: relative; border-radius: var(--w72d6-radius);
  overflow: hidden; box-shadow: var(--w72d6-shadow); background: #000;
}
.w72d6-slides { position: relative; }
.w72d6-slide {
  display: none; position: relative; cursor: pointer;
}
.w72d6-slide img { width: 100%; height: 180px; object-fit: cover; }
.w72d6-slide-active { display: block; }
.w72d6-slide-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 10px 14px; font-size: 1.3rem; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
}
.w72d6-dots {
  display: flex; justify-content: center; gap: 6px;
  padding: 8px 0; background: var(--w72d6-bg-2);
}
.w72d6-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.35); border: none; cursor: pointer;
}
.w72d6-dot-active { background: var(--w72d6-gold); }

/* ============ Section ============ */
.w72d6-section {
  padding: 20px 14px; border-top: 1px solid rgba(255,255,255,0.06);
}
.w72d6-section h2 {
  font-size: 1.85rem; color: var(--w72d6-gold); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.w72d6-section h3 {
  font-size: 1.55rem; color: var(--w72d6-mint); margin: 14px 0 8px;
}
.w72d6-section p {
  font-size: 1.35rem; color: var(--w72d6-text-muted); margin-bottom: 8px;
}

/* ============ Game grid ============ */
.w72d6-cat-header {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0 10px; padding: 8px 12px;
  background: linear-gradient(90deg, var(--w72d6-primary), transparent);
  border-left: 4px solid var(--w72d6-mint); border-radius: 8px;
}
.w72d6-cat-header h3 {
  font-size: 1.55rem; color: #fff; margin: 0;
}
.w72d6-cat-header i { color: var(--w72d6-gold); font-size: 1.8rem; }

.w72d6-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.w72d6-game-card {
  background: var(--w72d6-card); border-radius: 10px;
  overflow: hidden; cursor: pointer; position: relative;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.w72d6-game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(173,20,87,0.4);
}
.w72d6-game-card img {
  width: 100%; height: 88px; object-fit: cover;
}
.w72d6-game-card .w72d6-game-name {
  padding: 6px 8px; font-size: 1.15rem; color: var(--w72d6-text);
  text-align: center; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; min-height: 30px;
}
.w72d6-game-card .w72d6-game-tag {
  position: absolute; top: 4px; left: 4px;
  background: var(--w72d6-primary); color: #fff;
  font-size: 0.95rem; padding: 2px 6px; border-radius: 4px;
}

/* ============ Cards / features ============ */
.w72d6-card {
  background: var(--w72d6-card); border-radius: var(--w72d6-radius);
  padding: 14px; margin: 10px 0; box-shadow: var(--w72d6-shadow);
  border: 1px solid rgba(255,255,255,0.05);
}
.w72d6-card h4 { color: var(--w72d6-gold); font-size: 1.4rem; margin-bottom: 6px; }
.w72d6-card ul { padding-left: 18px; }
.w72d6-card li { font-size: 1.3rem; color: var(--w72d6-text-muted); margin: 4px 0; }

.w72d6-feature-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.w72d6-feature {
  background: var(--w72d6-card); padding: 12px; border-radius: 10px;
  text-align: center; border: 1px solid rgba(255,255,255,0.05);
}
.w72d6-feature i { font-size: 2.4rem; color: var(--w72d6-mint); margin-bottom: 6px; }
.w72d6-feature h4 { font-size: 1.3rem; color: var(--w72d6-gold); margin-bottom: 4px; }
.w72d6-feature p { font-size: 1.2rem; color: var(--w72d6-text-muted); }

/* ============ CTA banner ============ */
.w72d6-cta {
  background: linear-gradient(135deg, var(--w72d6-primary), var(--w72d6-brown));
  border-radius: var(--w72d6-radius); padding: 18px 14px;
  text-align: center; margin: 14px 0; color: #fff;
}
.w72d6-cta h3 { color: var(--w72d6-mint); font-size: 1.7rem; margin-bottom: 6px; }
.w72d6-cta p { font-size: 1.3rem; color: var(--w72d6-pink); margin-bottom: 10px; }
.w72d6-cta .w72d6-btn {
  background: var(--w72d6-gold); color: #2b1f23;
  padding: 10px 22px; font-size: 1.45rem;
}

/* ============ Testimonial ============ */
.w72d6-testimonial {
  background: var(--w72d6-card); border-left: 4px solid var(--w72d6-mint);
  padding: 12px 14px; border-radius: 8px; margin: 8px 0;
}
.w72d6-testimonial p { font-size: 1.3rem; color: var(--w72d6-text); font-style: italic; }
.w72d6-testimonial .w72d6-stars { color: var(--w72d6-gold); font-size: 1.2rem; margin-top: 4px; }
.w72d6-testimonial .w72d6-author {
  display: block; margin-top: 4px; font-size: 1.15rem;
  color: var(--w72d6-pink);
}

/* ============ Payment ============ */
.w72d6-pay-row {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.w72d6-pay-chip {
  background: var(--w72d6-card); border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 12px; border-radius: 8px; font-size: 1.2rem;
  color: var(--w72d6-text);
}

/* ============ Footer ============ */
.w72d6-footer {
  background: var(--w72d6-bg-2); padding: 22px 14px 30px;
  border-top: 2px solid var(--w72d6-primary);
}
.w72d6-footer h4 {
  color: var(--w72d6-gold); font-size: 1.4rem; margin: 10px 0 6px;
}
.w72d6-footer p { font-size: 1.25rem; color: var(--w72d6-text-muted); }
.w72d6-footer-links {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0;
}
.w72d6-footer-links a {
  background: var(--w72d6-card); padding: 6px 10px;
  border-radius: 6px; font-size: 1.2rem; color: var(--w72d6-mint);
}
.w72d6-footer-buttons {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0;
}
.w72d6-footer-buttons .w72d6-btn {
  background: var(--w72d6-primary); color: #fff; width: 100%;
}
.w72d6-footer-buttons .w72d6-btn-register { background: var(--w72d6-gold); color: #2b1f23; }
.w72d6-copyright {
  text-align: center; font-size: 1.15rem; color: var(--w72d6-text-muted);
  margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.06);
}

/* ============ Bottom mobile nav ============ */
.w72d6-bottom-nav {
  position: fixed; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: linear-gradient(180deg, #2a2326, #1E1E1E);
  border-top: 2px solid var(--w72d6-primary);
  display: flex; justify-content: space-around; align-items: center;
  height: 62px; z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.45);
}
.w72d6-navbtn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px;
  min-width: 60px; min-height: 58px;
  background: transparent; border: none; cursor: pointer;
  color: var(--w72d6-text-muted); padding: 4px;
  transition: transform 0.15s ease, color 0.15s ease;
}
.w72d6-navbtn i, .w72d6-navbtn span.material-icons-outlined,
.w72d6-navbtn ion-icon { font-size: 24px; }
.w72d6-navbtn span { font-size: 1.05rem; line-height: 1; }
.w72d6-navbtn:hover { transform: scale(1.08); }
.w72d6-navbtn-active { color: var(--w72d6-mint); }
.w72d6-navbtn-promo {
  color: var(--w72d6-gold);
}
.w72d6-navbtn-promo span { color: var(--w72d6-gold); }

/* Add bottom padding on mobile so content isn't hidden behind nav */
main { padding-bottom: 80px; }

/* ============ Desktop ============ */
@media (min-width: 769px) {
  body { max-width: 768px; }
  .w72d6-bottom-nav { display: none; }
  main { padding-bottom: 24px; }
  .w72d6-grid { grid-template-columns: repeat(6, 1fr); }
  .w72d6-slide img { height: 320px; }
  .w72d6-feature-row { grid-template-columns: repeat(4, 1fr); }
}

/* ============ Accessibility ============ */
.w72d6-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.w72d6-link-text { color: var(--w72d6-mint); font-weight: 600; }
.w72d6-link-text:hover { color: var(--w72d6-gold); }

.w72d6-pull-quote {
  border-left: 4px solid var(--w72d6-primary);
  padding: 10px 14px; background: rgba(255,255,255,0.04);
  border-radius: 8px; margin: 10px 0;
  font-size: 1.32rem; color: var(--w72d6-text);
}
.w72d6-promo-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--w72d6-gold); font-weight: 800;
  border-bottom: 1px dashed var(--w72d6-gold);
  cursor: pointer; text-decoration: none;
}
.w72d6-promo-link:hover { color: var(--w72d6-mint); border-color: var(--w72d6-mint); text-decoration: none; }
.w72d6-step-list { counter-reset: w72d6-step; display: grid; gap: 10px; }
.w72d6-step {
  background: var(--w72d6-card); border-radius: var(--w72d6-radius);
  padding: 12px 12px 12px 48px; position: relative;
  border: 1px solid rgba(255,255,255,0.06);
}
.w72d6-step:before {
  counter-increment: w72d6-step; content: counter(w72d6-step);
  position: absolute; left: 12px; top: 12px; width: 26px; height: 26px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--w72d6-primary); color: #fff; font-weight: 800;
}
.w72d6-alert { background: rgba(173,20,87,0.18); border: 1px solid rgba(255,192,203,0.22); border-radius: var(--w72d6-radius); padding: 12px; margin: 10px 0; }
.w72d6-mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.w72d6-stat { background: var(--w72d6-card); border-radius: 10px; padding: 10px 6px; text-align: center; border: 1px solid rgba(255,255,255,0.06); }
.w72d6-stat strong { display: block; color: var(--w72d6-gold); font-size: 1.55rem; }
.w72d6-stat span { color: var(--w72d6-text-muted); font-size: 1.05rem; }
