/* =========================================================================
   bongdanet.cfd - core stylesheet
   All custom classes use the w8d32- prefix to avoid collisions.
   Palette: #FFB6C1 (light pink) | #E91E63 (brand magenta) | #0C0C0C (deep ink)
   Mobile-first, max 430px design width.
   ========================================================================= */

:root {
  --w8d32-primary: #E91E63;
  --w8d32-primary-dark: #b3124a;
  --w8d32-primary-light: #FFB6C1;
  --w8d32-bg: #0C0C0C;
  --w8d32-bg-2: #161418;
  --w8d32-bg-3: #1f1c22;
  --w8d32-text: #f7f5f8;
  --w8d32-text-dim: #c9bfc9;
  --w8d32-muted: #8a7d8d;
  --w8d32-gold: #ffd36e;
  --w8d32-border: rgba(255, 255, 255, 0.08);
  --w8d32-radius: 14px;
  --w8d32-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  --w8d32-header-h: 58px;
  --w8d32-bottomnav-h: 62px;
  --w8d32-max-w: 430px;
}

* { box-sizing: border-box; }

html {
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: var(--w8d32-bg);
  color: var(--w8d32-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--w8d32-primary-light); text-decoration: none; }
a:hover { color: var(--w8d32-gold); }

h1, h2, h3, h4 { margin: 0 0 1rem; line-height: 1.3; color: var(--w8d32-text); }
h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.7rem; }
h4 { font-size: 1.5rem; }
p { margin: 0 0 1.2rem; }

.w8d32-container {
  width: 100%;
  max-width: var(--w8d32-max-w);
  margin: 0 auto;
  padding: 0 1.2rem;
}

.w8d32-wrapper { padding: 1.4rem 0; }

/* ===================== Header ===================== */
.w8d32-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--w8d32-header-h);
  background: linear-gradient(90deg, #0C0C0C 0%, #1a0a12 100%);
  border-bottom: 1px solid var(--w8d32-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.w8d32-header-inner {
  width: 100%;
  max-width: var(--w8d32-max-w);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.w8d32-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}

.w8d32-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.w8d32-logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--w8d32-text);
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w8d32-logo-text span { color: var(--w8d32-primary); }

.w8d32-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.w8d32-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  text-decoration: none;
  min-height: 36px;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.w8d32-btn:active { transform: scale(0.96); }

.w8d32-btn-register {
  background: linear-gradient(135deg, var(--w8d32-primary) 0%, var(--w8d32-primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(233, 30, 99, 0.45);
}
.w8d32-btn-register:hover { color: #fff; box-shadow: 0 6px 18px rgba(233, 30, 99, 0.6); }

.w8d32-btn-login {
  background: transparent;
  color: var(--w8d32-text);
  border: 1px solid var(--w8d32-primary);
}
.w8d32-btn-login:hover { background: rgba(233, 30, 99, 0.12); color: var(--w8d32-text); }

.w8d32-menu-toggle {
  background: transparent;
  border: none;
  color: var(--w8d32-text);
  font-size: 2rem;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
}
.w8d32-menu-toggle:hover { background: rgba(255, 255, 255, 0.08); }

/* Desktop: hide hamburger, show inline nav */
.w8d32-desktop-nav {
  display: none;
  gap: 1.2rem;
  align-items: center;
}
.w8d32-desktop-nav a {
  color: var(--w8d32-text-dim);
  font-size: 1.35rem;
  font-weight: 600;
  padding: 0.4rem 0.2rem;
}
.w8d32-desktop-nav a:hover { color: var(--w8d32-primary-light); }

/* ===================== Mobile slide-down menu ===================== */
.w8d32-mobile-menu {
  position: fixed;
  top: var(--w8d32-header-h);
  left: 0; right: 0;
  background: #110c12;
  border-bottom: 1px solid var(--w8d32-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 9999;
}
.w8d32-mobile-menu.w8d32-open { max-height: 80vh; overflow-y: auto; }

.w8d32-mobile-menu-inner {
  width: 100%;
  max-width: var(--w8d32-max-w);
  margin: 0 auto;
  padding: 0.6rem 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.w8d32-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 0.6rem;
  color: var(--w8d32-text);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.w8d32-mobile-menu a:last-child { border-bottom: none; }
.w8d32-mobile-menu a i { color: var(--w8d32-primary); width: 22px; text-align: center; }
.w8d32-mobile-menu a:hover { background: rgba(233, 30, 99, 0.08); color: var(--w8d32-primary-light); }

/* ===================== Main ===================== */
.w8d32-main {
  padding-top: calc(var(--w8d32-header-h) + 1rem);
  padding-bottom: 1.5rem;
  min-height: 80vh;
}

/* ===================== Carousel ===================== */
.w8d32-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--w8d32-radius);
  overflow: hidden;
  box-shadow: var(--w8d32-shadow);
  margin-bottom: 1.4rem;
  aspect-ratio: 16 / 7;
  background: #000;
}
.w8d32-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.w8d32-slide.w8d32-active { opacity: 1; }
.w8d32-slide img { width: 100%; height: 100%; object-fit: cover; }
.w8d32-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
}
.w8d32-dots {
  position: absolute;
  bottom: 8px; right: 10px;
  display: flex;
  gap: 5px;
  z-index: 2;
}
.w8d32-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}
.w8d32-dot.w8d32-active { background: var(--w8d32-primary); }

/* ===================== Section ===================== */
.w8d32-section {
  margin-bottom: 1.8rem;
  padding: 1.2rem;
  background: var(--w8d32-bg-2);
  border-radius: var(--w8d32-radius);
  border: 1px solid var(--w8d32-border);
}
.w8d32-section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--w8d32-text);
  margin-bottom: 0.8rem;
}
.w8d32-section-title i { color: var(--w8d32-primary); }
.w8d32-section-intro { color: var(--w8d32-text-dim); font-size: 1.3rem; margin-bottom: 1rem; }

/* ===================== Hero ===================== */
.w8d32-hero {
  padding: 1.6rem 1.2rem;
  text-align: center;
  background: radial-gradient(circle at 30% 20%, rgba(233, 30, 99, 0.25) 0%, transparent 60%);
  border-radius: var(--w8d32-radius);
  margin-bottom: 1.4rem;
}
.w8d32-hero h1 {
  font-size: 2.6rem;
  background: linear-gradient(90deg, var(--w8d32-primary-light), var(--w8d32-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.6rem;
}
.w8d32-hero p { color: var(--w8d32-text-dim); font-size: 1.35rem; margin-bottom: 1.2rem; }
.w8d32-hero-cta { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

.w8d32-btn-cta {
  background: linear-gradient(135deg, var(--w8d32-gold), #ff9b3d);
  color: #1a0a02;
  font-weight: 800;
  padding: 0.9rem 1.8rem;
  font-size: 1.4rem;
}
.w8d32-btn-cta:hover { color: #1a0a02; }

/* ===================== Tabs / Filters ===================== */
.w8d32-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.w8d32-tabs::-webkit-scrollbar { display: none; }
.w8d32-tab {
  flex: 0 0 auto;
  background: var(--w8d32-bg-3);
  color: var(--w8d32-text-dim);
  border: 1px solid var(--w8d32-border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.w8d32-tab.w8d32-active {
  background: var(--w8d32-primary);
  color: #fff;
  border-color: var(--w8d32-primary);
}

/* ===================== Game grid ===================== */
.w8d32-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.w8d32-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--w8d32-bg-3);
  border-radius: 10px;
  padding: 0.6rem 0.4rem;
  border: 1px solid var(--w8d32-border);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease;
  text-align: center;
}
.w8d32-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--w8d32-primary);
}
.w8d32-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.4rem;
}
.w8d32-game-name {
  font-size: 1.15rem;
  color: var(--w8d32-text-dim);
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.8rem;
}

.w8d32-hidden { display: none !important; }

/* ===================== Info / feature cards ===================== */
.w8d32-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}
.w8d32-card {
  background: var(--w8d32-bg-3);
  border-radius: 10px;
  padding: 1rem;
  border: 1px solid var(--w8d32-border);
}
.w8d32-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--w8d32-primary-light);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.w8d32-card-text { color: var(--w8d32-text-dim); font-size: 1.25rem; }

.w8d32-step-list { counter-reset: step; padding-left: 0; list-style: none; }
.w8d32-step-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 2.6rem;
  color: var(--w8d32-text-dim);
  font-size: 1.3rem;
}
.w8d32-step-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0.5rem;
  width: 22px; height: 22px;
  background: var(--w8d32-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ===================== FAQ ===================== */
.w8d32-faq-item {
  border-bottom: 1px solid var(--w8d32-border);
  padding: 0.6rem 0;
}
.w8d32-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--w8d32-text);
  font-size: 1.35rem;
  padding: 0.4rem 0;
}
.w8d32-faq-q i { color: var(--w8d32-primary); transition: transform 0.2s ease; }
.w8d32-faq-item.w8d32-open .w8d32-faq-q i { transform: rotate(180deg); }
.w8d32-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--w8d32-text-dim);
  font-size: 1.25rem;
}
.w8d32-faq-item.w8d32-open .w8d32-faq-a { max-height: 240px; padding: 0.4rem 0 0.6rem; }

/* ===================== Testimonials ===================== */
.w8d32-testimonials { display: grid; gap: 0.8rem; }
.w8d32-testimonial {
  background: var(--w8d32-bg-3);
  border-radius: 10px;
  padding: 0.9rem;
  border-left: 3px solid var(--w8d32-primary);
}
.w8d32-testimonial-text { font-style: italic; color: var(--w8d32-text-dim); font-size: 1.25rem; margin-bottom: 0.4rem; }
.w8d32-testimonial-author { font-weight: 700; color: var(--w8d32-primary-light); font-size: 1.2rem; }

/* ===================== Winners ===================== */
.w8d32-winners {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.w8d32-winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--w8d32-bg-3);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  font-size: 1.2rem;
}
.w8d32-winner-name { color: var(--w8d32-text); font-weight: 600; }
.w8d32-winner-amount { color: var(--w8d32-gold); font-weight: 800; }

/* ===================== Payment ===================== */
.w8d32-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.w8d32-pay {
  background: var(--w8d32-bg-3);
  border: 1px solid var(--w8d32-border);
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  font-size: 1.2rem;
  color: var(--w8d32-text-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ===================== RTP table ===================== */
.w8d32-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.w8d32-rtp-table th, .w8d32-rtp-table td {
  padding: 0.5rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--w8d32-border);
}
.w8d32-rtp-table th { color: var(--w8d32-primary-light); font-weight: 700; }
.w8d32-rtp-table td { color: var(--w8d32-text-dim); }
.w8d32-rtp-pct { color: var(--w8d32-gold); font-weight: 700; }

/* ===================== Promo link ===================== */
.w8d32-promo-link {
  font-weight: 800;
  color: var(--w8d32-primary-light);
  text-decoration: underline;
  cursor: pointer;
}
.w8d32-promo-link:hover { color: var(--w8d32-gold); }

.w8d32-inline-link {
  color: var(--w8d32-primary-light);
  text-decoration: underline;
  font-weight: 600;
}
.w8d32-inline-link:hover { color: var(--w8d32-gold); }

/* ===================== Footer ===================== */
.w8d32-footer {
  background: #050305;
  border-top: 1px solid var(--w8d32-border);
  padding: 1.6rem 1.2rem;
  margin-top: 1.4rem;
}
.w8d32-footer-inner {
  width: 100%;
  max-width: var(--w8d32-max-w);
  margin: 0 auto;
}
.w8d32-footer-brand { color: var(--w8d32-text-dim); font-size: 1.25rem; margin-bottom: 0.8rem; }
.w8d32-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.w8d32-footer-links a {
  background: var(--w8d32-bg-3);
  border: 1px solid var(--w8d32-border);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  font-size: 1.2rem;
  color: var(--w8d32-text-dim);
}
.w8d32-footer-links a:hover { color: var(--w8d32-primary-light); border-color: var(--w8d32-primary); }
.w8d32-footer-copy {
  color: var(--w8d32-muted);
  font-size: 1.15rem;
  text-align: center;
  border-top: 1px solid var(--w8d32-border);
  padding-top: 0.8rem;
}

/* ===================== Mobile bottom nav ===================== */
.w8d32-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--w8d32-bottomnav-h);
  background: linear-gradient(180deg, #120910 0%, #050305 100%);
  border-top: 1px solid var(--w8d32-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.5);
}
.w8d32-bottomnav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--w8d32-muted);
  font-size: 1.05rem;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: color 0.18s ease;
}
.w8d32-bottomnav-btn i { font-size: 22px; }
.w8d32-bottomnav-btn .material-symbols-outlined,
.w8d32-bottomnav-btn ion-icon { font-size: 24px; }
.w8d32-bottomnav-btn:hover { color: var(--w8d32-primary-light); }
.w8d32-bottomnav-btn.w8d32-active { color: var(--w8d32-primary); }
.w8d32-bottomnav-btn.w8d32-active::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 3px;
  background: var(--w8d32-primary);
  border-radius: 0 0 4px 4px;
}
.w8d32-bottomnav-btn:active { transform: scale(0.92); }

.w8d32-bottomnav-badge {
  position: absolute;
  top: 4px; right: 18px;
  background: var(--w8d32-gold);
  color: #1a0a02;
  font-size: 0.9rem;
  font-weight: 800;
  border-radius: 999px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
}

/* ===================== Back to top ===================== */
.w8d32-totop {
  position: fixed;
  bottom: calc(var(--w8d32-bottomnav-h) + 12px);
  right: 14px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--w8d32-primary);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 900;
  box-shadow: var(--w8d32-shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.w8d32-totop.w8d32-show { opacity: 1; pointer-events: auto; }

/* ===================== Responsive: desktop ===================== */
@media (min-width: 769px) {
  .w8d32-bottomnav { display: none; }
  .w8d32-menu-toggle { display: none; }
  .w8d32-desktop-nav { display: flex; }
  .w8d32-totop { bottom: 24px; }
}

@media (max-width: 768px) {
  .w8d32-main { padding-bottom: calc(var(--w8d32-bottomnav-h) + 1rem); }
  .w8d32-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 360px) {
  .w8d32-grid { grid-template-columns: repeat(2, 1fr); }
  .w8d32-logo-text { font-size: 1.4rem; }
  .w8d32-btn { padding: 0.5rem 0.9rem; font-size: 1.2rem; }
}

/* ===================== Utilities ===================== */
.w8d32-text-center { text-align: center; }
.w8d32-mt-1 { margin-top: 0.6rem; }
.w8d32-mt-2 { margin-top: 1rem; }
.w8d32-mb-2 { margin-bottom: 1rem; }
.w8d32-row { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; }
.w8d32-spacer { height: 1rem; }
