/* ============================================================
 * baji baji - layout-8d72.css
 * Mobile-first base stylesheet
 * All custom classes use the w8d72- prefix
 * Comments in English only
 * ============================================================ */

:root {
  --w8d72-primary: #6A5ACD;
  --w8d72-secondary: #9400D3;
  --w8d72-bg: #273746;
  --w8d72-bg-deep: #1c2733;
  --w8d72-bg-soft: #30445a;
  --w8d72-accent: #4B0082;
  --w8d72-text: #f3f4f8;
  --w8d72-text-muted: #b6bccc;
  --w8d72-gold: #ffcf4d;
  --w8d72-border: rgba(255, 255, 255, 0.08);
  --w8d72-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --w8d72-radius: 14px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at 20% -10%, var(--w8d72-bg-soft) 0%, var(--w8d72-bg) 35%, var(--w8d72-bg-deep) 100%);
  color: var(--w8d72-text);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--w8d72-gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.w8d72-wrap {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

/* ============ HEADER ============ */
.w8d72-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: linear-gradient(135deg, var(--w8d72-bg-deep) 0%, var(--w8d72-accent) 200%);
  border-bottom: 1px solid var(--w8d72-border);
  backdrop-filter: blur(10px);
}

.w8d72-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.w8d72-brand img { width: 28px; height: 28px; border-radius: 6px; }
.w8d72-brand-name {
  font-size: 16px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--w8d72-gold), #fff 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.w8d72-header-actions { display: flex; align-items: center; gap: 6px; }
.w8d72-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  min-height: 36px;
}
.w8d72-btn:hover { text-decoration: none; }
.w8d72-btn:active { transform: scale(0.94); }
.w8d72-btn-login {
  background: transparent;
  color: var(--w8d72-text);
  border: 1px solid var(--w8d72-border);
}
.w8d72-btn-register {
  background: linear-gradient(90deg, var(--w8d72-primary), var(--w8d72-secondary));
  color: #fff;
  box-shadow: 0 4px 12px rgba(106, 90, 205, 0.5);
}
.w8d72-btn-icon {
  background: transparent;
  color: var(--w8d72-text);
  border: 1px solid var(--w8d72-border);
  width: 36px; height: 36px;
  border-radius: 10px;
  font-size: 16px;
}

/* ============ MOBILE MENU ============ */
.w8d72-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 78%; max-width: 340px;
  height: 100vh;
  background: var(--w8d72-bg-deep);
  z-index: 9999;
  padding: 70px 18px 30px;
  overflow-y: auto;
  transition: right .3s ease;
  border-left: 1px solid var(--w8d72-border);
  box-shadow: -8px 0 30px rgba(0,0,0,.5);
}
.w8d72-menu-open { right: 0; }
.w8d72-menu a {
  display: block;
  color: var(--w8d72-text);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 4px;
  border: 1px solid transparent;
}
.w8d72-menu a:hover { background: var(--w8d72-bg-soft); text-decoration: none; }
.w8d72-menu-close {
  position: absolute; top: 14px; right: 14px;
  background: transparent; color: var(--w8d72-text);
  border: none; font-size: 22px; cursor: pointer;
}
.w8d72-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9998;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.w8d72-overlay.w8d72-menu-open { opacity: 1; pointer-events: auto; }

/* ============ HERO / CAROUSEL ============ */
.w8d72-main { padding: 12px 12px 20px; max-width: 430px; margin: 0 auto; }

.w8d72-carousel {
  position: relative;
  border-radius: var(--w8d72-radius);
  overflow: hidden;
  box-shadow: var(--w8d72-shadow);
  margin-bottom: 16px;
}
.w8d72-carousel-track {
  display: flex;
  transition: transform .5s ease;
}
.w8d72-carousel-slide {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}
.w8d72-carousel-slide img { width: 100%; height: 190px; object-fit: cover; }
.w8d72-carousel-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 14px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.8), transparent);
  font-size: 13px;
}
.w8d72-carousel-cap strong { color: var(--w8d72-gold); display: block; font-size: 16px; margin-bottom: 2px; }
.w8d72-carousel-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.w8d72-carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.4); border: none; padding: 0; cursor: pointer;
}
.w8d72-carousel-dot-active { background: var(--w8d72-gold); width: 18px; border-radius: 4px; }

/* ============ SECTION ============ */
.w8d72-section {
  margin: 18px 0;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--w8d72-border);
  border-radius: var(--w8d72-radius);
  padding: 14px;
}
.w8d72-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--w8d72-text);
}
.w8d72-section-title i { color: var(--w8d72-gold); }
.w8d72-section-title .w8d72-more {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--w8d72-gold);
}
.w8d72-muted { color: var(--w8d72-text-muted); font-size: 13px; }

/* ============ GAME GRID ============ */
.w8d72-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.w8d72-game-card {
  display: block;
  background: var(--w8d72-bg-soft);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  border: 1px solid var(--w8d72-border);
}
.w8d72-game-card:hover { text-decoration: none; transform: translateY(-2px); }
.w8d72-game-card img {
  width: 100%; height: 78px; object-fit: cover;
}
.w8d72-game-name {
  font-size: 11px;
  color: var(--w8d72-text);
  padding: 5px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w8d72-game-tag {
  display: inline-block;
  font-size: 9px;
  background: var(--w8d72-secondary);
  color: #fff;
  padding: 1px 6px;
  border-radius: 6px;
  margin-bottom: 4px;
  vertical-align: middle;
}

/* ============ FEATURES / CARDS ============ */
.w8d72-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.w8d72-feature-card {
  background: linear-gradient(135deg, var(--w8d72-bg-soft), var(--w8d72-accent));
  border-radius: 12px;
  padding: 14px;
  border: 1px solid var(--w8d72-border);
  text-align: center;
}
.w8d72-feature-card .ic {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,207,77,.15);
  color: var(--w8d72-gold);
  font-size: 20px;
  margin-bottom: 8px;
}
.w8d72-feature-card h3 { margin: 0 0 4px; font-size: 13px; }
.w8d72-feature-card p { margin: 0; font-size: 11px; color: var(--w8d72-text-muted); }

/* ============ STATS ============ */
.w8d72-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}
.w8d72-stat-item .num {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--w8d72-gold);
}
.w8d72-stat-item .label { font-size: 11px; color: var(--w8d72-text-muted); }

/* ============ CTA BANNER ============ */
.w8d72-cta {
  background: linear-gradient(135deg, var(--w8d72-primary), var(--w8d72-secondary));
  border-radius: var(--w8d72-radius);
  padding: 18px 14px;
  text-align: center;
  margin: 18px 0;
  box-shadow: var(--w8d72-shadow);
}
.w8d72-cta h3 { margin: 0 0 6px; font-size: 17px; color: #fff; }
.w8d72-cta p { margin: 0 0 12px; font-size: 12px; color: rgba(255,255,255,.85); }
.w8d72-btn-cta {
  display: inline-block;
  background: var(--w8d72-gold);
  color: #2a1a00;
  font-weight: 800;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 14px;
  border: none; cursor: pointer;
}
.w8d72-btn-cta:hover { text-decoration: none; filter: brightness(1.08); }

/* ============ TESTIMONIALS / WINNERS ============ */
.w8d72-list { list-style: none; padding: 0; margin: 0; }
.w8d72-list li {
  padding: 9px 0;
  border-bottom: 1px dashed var(--w8d72-border);
  font-size: 12px;
  display: flex; gap: 8px; align-items: center;
}
.w8d72-list li:last-child { border-bottom: none; }
.w8d72-list .amt { margin-left: auto; color: var(--w8d72-gold); font-weight: 700; }

/* ============ PAYMENT / LOGO ROW ============ */
.w8d72-chip-row {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.w8d72-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--w8d72-bg-soft);
  border: 1px solid var(--w8d72-border);
  color: var(--w8d72-text);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
}

/* ============ RTP TABLE ============ */
.w8d72-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.w8d72-table th, .w8d72-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--w8d72-border);
  text-align: left;
}
.w8d72-table th { color: var(--w8d72-gold); font-weight: 700; }
.w8d72-table td.num { color: var(--w8d72-gold); font-weight: 700; }

/* ============ FAQ ============ */
.w8d72-faq-item {
  background: var(--w8d72-bg-soft);
  border: 1px solid var(--w8d72-border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.w8d72-faq-item h4 { margin: 0 0 4px; font-size: 13px; color: var(--w8d72-gold); }
.w8d72-faq-item p { margin: 0; font-size: 12px; color: var(--w8d72-text-muted); }

/* ============ SEO ARTICLE ============ */
.w8d72-article { font-size: 13px; color: var(--w8d72-text-muted); }
.w8d72-article p { margin: 0 0 10px; }
.w8d72-article a { font-weight: 600; }
.w8d72-article h3 { color: var(--w8d72-text); font-size: 15px; margin: 14px 0 6px; }

/* ============ FOOTER ============ */
.w8d72-footer {
  background: var(--w8d72-bg-deep);
  border-top: 1px solid var(--w8d72-border);
  padding: 20px 14px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--w8d72-text-muted);
}
.w8d72-footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.w8d72-footer h4 {
  color: var(--w8d72-text);
  font-size: 13px;
  margin: 0 0 8px;
}
.w8d72-footer a {
  display: block;
  color: var(--w8d72-text-muted);
  padding: 3px 0;
  font-size: 12px;
}
.w8d72-footer-bottom {
  text-align: center;
  border-top: 1px solid var(--w8d72-border);
  padding-top: 12px;
  font-size: 11px;
}

/* ============ MOBILE BOTTOM NAV ============ */
.w8d72-bottom-nav {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 62px;
  background: linear-gradient(180deg, var(--w8d72-bg-soft), var(--w8d72-bg-deep));
  border-top: 1px solid var(--w8d72-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0,0,0,.35);
}
.w8d72-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  color: var(--w8d72-text-muted);
  font-size: 10px;
  gap: 3px;
  transition: color .2s ease, transform .2s ease;
}
.w8d72-bottom-nav a i { font-size: 22px; }
.w8d72-bottom-nav a:active { transform: scale(0.92); }
.w8d72-bottom-nav a:hover { text-decoration: none; color: var(--w8d72-text); }
.w8d72-bottom-nav .w8d72-nav-active { color: var(--w8d72-gold); }
.w8d72-bottom-nav .w8d72-nav-promo {
  position: relative;
  top: -14px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--w8d72-primary), var(--w8d72-secondary));
  color: #fff;
  box-shadow: 0 4px 12px rgba(106,90,205,.6);
  border: 3px solid var(--w8d72-bg);
}
.w8d72-bottom-nav .w8d72-nav-promo i { font-size: 22px; }
.w8d72-bottom-nav .w8d72-nav-promo span { display: none; }
.w8d72-nav-badge {
  position: absolute;
  top: 4px; right: 8px;
  background: #ff4d4d;
  color: #fff;
  font-size: 8px;
  border-radius: 8px;
  padding: 1px 4px;
}

/* Mobile bottom padding so content isn't hidden behind fixed nav */
@media (max-width: 768px) {
  .w8d72-main, .w8d72-footer { padding-bottom: 80px; }
}

/* Desktop: hide bottom nav, widen layout */
@media (min-width: 769px) {
  .w8d72-bottom-nav { display: none; }
  .w8d72-wrap, .w8d72-main, .w8d72-header { max-width: 430px; }
}
