/*!
 * z777.homes core stylesheet
 * Class prefix: w4b54-
 * Palette: #B2DFDB | #20B2AA | #006400 | #0C0C0C | #98FB98
 * Mobile-first, max-width 430px
 */

:root {
  --w4b54-primary: #20B2AA;
  --w4b54-accent: #98FB98;
  --w4b54-light: #B2DFDB;
  --w4b54-deep: #006400;
  --w4b54-bg: #0C0C0C;
  --w4b54-bg-alt: #141414;
  --w4b54-card: #1c1c1c;
  --w4b54-text: #f5fff8;
  --w4b54-muted: #a9c7bd;
  --w4b54-border: rgba(178, 223, 219, 0.18);
  --w4b54-gold: #ffd76a;
  --w4b54-radius: 14px;
  --w4b54-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}

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

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

body {
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", sans-serif;
  background: var(--w4b54-bg);
  color: var(--w4b54-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

img { max-width: 100%; display: block; }
a { color: var(--w4b54-accent); text-decoration: none; }
a:hover { color: var(--w4b54-light); }

/* ---------- Layout ---------- */
.w4b54-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.w4b54-wrapper { padding: 1rem 0; }
.w4b54-section { padding: 2rem 0; }
.w4b54-section-alt { background: var(--w4b54-bg-alt); }

/* ---------- Header ---------- */
.w4b54-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, rgba(0,100,0,0.92), rgba(12,12,12,0.96));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--w4b54-border);
}
.w4b54-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1rem; gap: 0.6rem;
}
.w4b54-brand { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.w4b54-brand img { width: 28px; height: 28px; border-radius: 6px; }
.w4b54-brand-name {
  font-size: 1.7rem; font-weight: 800; color: var(--w4b54-accent);
  letter-spacing: 0.5px;
}
.w4b54-brand-name span { color: var(--w4b54-gold); }
.w4b54-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.w4b54-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-size: 1.25rem; font-weight: 700; border: none; cursor: pointer;
  padding: 0.55rem 1rem; border-radius: 999px; transition: transform .15s, box-shadow .15s;
  min-height: 36px; text-decoration: none;
}
.w4b54-btn:hover { transform: translateY(-1px); }
.w4b54-btn-primary {
  background: linear-gradient(135deg, var(--w4b54-deep), var(--w4b54-primary));
  color: #fff; box-shadow: 0 4px 12px rgba(32,178,170,0.35);
}
.w4b54-btn-ghost {
  background: transparent; color: var(--w4b54-light);
  border: 1px solid var(--w4b54-border);
}
.w4b54-btn-gold {
  background: linear-gradient(135deg, var(--w4b54-gold), #ff9d3a);
  color: #2a1500; font-weight: 800;
}
.w4b54-menu-toggle {
  background: transparent; border: none; color: var(--w4b54-light);
  font-size: 2rem; cursor: pointer; padding: 0.2rem 0.4rem; line-height: 1;
}

/* ---------- Mobile menu ---------- */
.w4b54-mobile-menu {
  position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px;
  height: 100vh; z-index: 9999;
  background: var(--w4b54-bg-alt);
  border-left: 1px solid var(--w4b54-border);
  padding: 6rem 1.2rem 2rem; transition: right .28s ease;
  overflow-y: auto;
}
.w4b54-mobile-menu.w4b54-active { right: 0; box-shadow: var(--w4b54-shadow); }
.w4b54-menu-close {
  position: absolute; top: 1rem; right: 1rem;
  background: transparent; border: none; color: var(--w4b54-light);
  font-size: 2.4rem; line-height: 1; cursor: pointer;
}
.w4b54-mobile-menu h4 {
  color: var(--w4b54-gold); font-size: 1.3rem; margin: 1.2rem 0 0.6rem;
  text-transform: uppercase; letter-spacing: 1px;
}
.w4b54-mobile-menu ul { list-style: none; }
.w4b54-mobile-menu li { border-bottom: 1px solid var(--w4b54-border); }
.w4b54-nav-link {
  display: block; padding: 0.9rem 0.4rem; color: var(--w4b54-text);
  font-size: 1.35rem;
}
.w4b54-nav-link:hover { color: var(--w4b54-accent); padding-left: 0.8rem; }
body.w4b54-menu-open::before {
  content: ""; position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,0.55);
}

/* ---------- Main ---------- */
main { padding-top: 5.4rem; }

/* ---------- Hero / Carousel ---------- */
.w4b54-carousel {
  position: relative; overflow: hidden; border-radius: var(--w4b54-radius);
  box-shadow: var(--w4b54-shadow); margin-bottom: 1rem;
}
.w4b54-carousel-track { display: flex; transition: transform .4s ease; }
.w4b54-carousel-slide { min-width: 100%; position: relative; cursor: pointer; }
.w4b54-carousel-slide img { width: 100%; height: 180px; object-fit: cover; }
.w4b54-carousel-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.8rem 1rem; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  font-size: 1.25rem; font-weight: 700;
}
.w4b54-carousel-dots {
  display: flex; gap: 0.5rem; justify-content: center; padding: 0.6rem 0;
}
.w4b54-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; cursor: pointer;
  background: var(--w4b54-border); border: none; transition: all .2s;
}
.w4b54-carousel-dot.w4b54-active {
  background: var(--w4b54-gold); width: 22px; border-radius: 4px;
}

/* ---------- Section heading ---------- */
.w4b54-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.w4b54-section-title {
  font-size: 1.55rem; font-weight: 800; color: var(--w4b54-accent);
  display: flex; align-items: center; gap: 0.5rem;
}
.w4b54-section-title i { color: var(--w4b54-gold); }
.w4b54-more { font-size: 1.2rem; color: var(--w4b54-light); }

/* ---------- Game grid ---------- */
.w4b54-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
}
.w4b54-game-card {
  background: var(--w4b54-card); border-radius: var(--w4b54-radius);
  overflow: hidden; cursor: pointer; text-align: center;
  border: 1px solid var(--w4b54-border); transition: transform .15s, border-color .15s;
}
.w4b54-game-card:hover {
  transform: translateY(-3px); border-color: var(--w4b54-primary);
}
.w4b54-game-thumb {
  width: 100%; aspect-ratio: 1; object-fit: cover; background: #0a0a0a;
}
.w4b54-game-name {
  font-size: 1.1rem; padding: 0.45rem 0.3rem; color: var(--w4b54-text);
  font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.w4b54-game-badge {
  position: relative;
}
.w4b54-game-badge::after {
  content: "HOT"; position: absolute; top: 4px; left: 4px;
  background: var(--w4b54-gold); color: #2a1500;
  font-size: 0.85rem; font-weight: 800; padding: 1px 5px; border-radius: 4px;
}

/* ---------- Filter chips ---------- */
.w4b54-filters {
  display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.4rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}
.w4b54-filter-btn {
  background: var(--w4b54-card); color: var(--w4b54-light);
  border: 1px solid var(--w4b54-border); padding: 0.45rem 0.9rem;
  border-radius: 999px; font-size: 1.15rem; cursor: pointer;
  white-space: nowrap; transition: all .15s;
}
.w4b54-filter-btn.w4b54-active, .w4b54-filter-btn:hover {
  background: var(--w4b54-deep); color: #fff; border-color: var(--w4b54-primary);
}

/* ---------- Cards / Features ---------- */
.w4b54-card {
  background: var(--w4b54-card); border: 1px solid var(--w4b54-border);
  border-radius: var(--w4b54-radius); padding: 1.1rem; margin-bottom: 0.8rem;
}
.w4b54-card h3 {
  color: var(--w4b54-gold); font-size: 1.3rem; margin-bottom: 0.5rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.w4b54-card p { color: var(--w4b54-muted); font-size: 1.25rem; line-height: 1.7rem; }
.w4b54-card a { color: var(--w4b54-accent); font-weight: 700; }

.w4b54-feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem;
}
.w4b54-feature {
  background: var(--w4b54-card); border-radius: var(--w4b54-radius);
  padding: 1rem; text-align: center; border: 1px solid var(--w4b54-border);
}
.w4b54-feature .w4b54-icon {
  font-size: 2.6rem; color: var(--w4b54-primary); margin-bottom: 0.4rem;
}
.w4b54-feature h4 { color: var(--w4b54-accent); font-size: 1.2rem; margin-bottom: 0.3rem; }
.w4b54-feature p { color: var(--w4b54-muted); font-size: 1.1rem; line-height: 1.5rem; }

/* ---------- RTP table ---------- */
.w4b54-rtp-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 0; border-bottom: 1px solid var(--w4b54-border); font-size: 1.2rem;
}
.w4b54-rtp-row:last-child { border-bottom: none; }
.w4b54-rtp-bar {
  flex: 1; height: 6px; background: rgba(255,255,255,0.1); border-radius: 4px;
  margin: 0 0.8rem; overflow: hidden;
}
.w4b54-rtp-fill { height: 100%; background: linear-gradient(90deg, var(--w4b54-deep), var(--w4b54-accent)); }
.w4b54-rtp-val { color: var(--w4b54-gold); font-weight: 700; }

/* ---------- Testimonials ---------- */
.w4b54-testimonial {
  background: var(--w4b54-card); border-left: 3px solid var(--w4b54-primary);
  padding: 0.9rem 1rem; border-radius: 8px; margin-bottom: 0.7rem;
}
.w4b54-testimonial p { color: var(--w4b54-text); font-size: 1.2rem; font-style: italic; }
.w4b54-testimonial cite { color: var(--w4b54-light); font-size: 1.1rem; margin-top: 0.4rem; display: block; }

/* ---------- Payment icons ---------- */
.w4b54-pay-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.w4b54-pay {
  background: var(--w4b54-card); border: 1px solid var(--w4b54-border);
  border-radius: 8px; padding: 0.5rem 0.8rem; font-size: 1.05rem; color: var(--w4b54-light);
}

/* ---------- FAQ ---------- */
.w4b54-faq-item {
  background: var(--w4b54-card); border: 1px solid var(--w4b54-border);
  border-radius: 10px; margin-bottom: 0.6rem; overflow: hidden; cursor: pointer;
}
.w4b54-faq-q {
  padding: 0.9rem 1rem; font-weight: 700; color: var(--w4b54-accent);
  font-size: 1.25rem; display: flex; justify-content: space-between; align-items: center;
}
.w4b54-faq-a { padding: 0 1rem; max-height: 0; overflow: hidden; transition: max-height .25s, padding .25s; color: var(--w4b54-muted); }
.w4b54-faq-item.w4b54-open .w4b54-faq-a { padding: 0 1rem 1rem; max-height: 500px; }

/* ---------- Winners ---------- */
.w4b54-winner {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0;
  border-bottom: 1px dashed var(--w4b54-border); font-size: 1.15rem;
}
.w4b54-winner:last-child { border-bottom: none; }
.w4b54-winner b { color: var(--w4b54-gold); }
.w4b54-winner small { color: var(--w4b54-muted); margin-left: auto; }

/* ---------- Promo CTA ---------- */
.w4b54-cta {
  background: linear-gradient(135deg, var(--w4b54-deep), var(--w4b54-primary));
  border-radius: var(--w4b54-radius); padding: 1.4rem; text-align: center;
  margin: 1rem 0;
}
.w4b54-cta h3 { color: #fff; font-size: 1.6rem; margin-bottom: 0.5rem; }
.w4b54-cta p { color: rgba(255,255,255,0.85); font-size: 1.2rem; margin-bottom: 0.9rem; }
.w4b54-cta .w4b54-btn { font-size: 1.4rem; padding: 0.8rem 2rem; }

/* ---------- SEO text ---------- */
.w4b54-seo-text { color: var(--w4b54-muted); font-size: 1.2rem; line-height: 1.8rem; }
.w4b54-seo-text h2, .w4b54-seo-text h3 { color: var(--w4b54-accent); margin: 1rem 0 0.5rem; }
.w4b54-seo-text p { margin-bottom: 0.7rem; }

/* ---------- Footer ---------- */
.w4b54-footer {
  background: var(--w4b54-bg-alt); border-top: 1px solid var(--w4b54-border);
  padding: 2rem 1.2rem 7rem; margin-top: 1.5rem;
}
.w4b54-footer-brand { color: var(--w4b54-muted); font-size: 1.15rem; line-height: 1.7rem; margin-bottom: 1rem; }
.w4b54-footer-brand b { color: var(--w4b54-accent); }
.w4b54-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 1rem;
}
.w4b54-footer-links a { color: var(--w4b54-light); font-size: 1.1rem; }
.w4b54-footer-links a:hover { color: var(--w4b54-accent); }
.w4b54-footer-promos {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0;
}
.w4b54-footer-copy { color: var(--w4b54-muted); font-size: 1.05rem; border-top: 1px solid var(--w4b54-border); padding-top: 0.8rem; }

/* ---------- Mobile bottom nav ---------- */
.w4b54-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  max-width: 430px; margin: 0 auto;
  height: 62px; display: flex; justify-content: space-around; align-items: center;
  background: linear-gradient(180deg, rgba(20,20,20,0.98), rgba(0,0,0,0.98));
  border-top: 1px solid var(--w4b54-border);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.5);
}
.w4b54-bottom-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px; background: transparent; border: none;
  color: var(--w4b54-muted); font-size: 1rem; cursor: pointer;
  transition: color .15s, transform .15s; gap: 2px;
}
.w4b54-bottom-btn:active { transform: scale(0.9); }
.w4b54-bottom-btn .w4b54-bn-icon { font-size: 22px; line-height: 1; }
.w4b54-bottom-btn .w4b54-bn-icon.material-icons,
.w4b54-bottom-btn .w4b54-bn-icon.bi { font-size: 22px; }
.w4b54-bottom-btn .w4b54-bn-label { font-size: 1rem; font-weight: 600; }
.w4b54-bottom-btn:hover, .w4b54-bottom-btn.w4b54-current { color: var(--w4b54-accent); }
.w4b54-bottom-btn.w4b54-promo {
  background: linear-gradient(135deg, var(--w4b54-gold), #ff9d3a);
  color: #2a1500; border-radius: 50%; width: 50px; height: 50px;
  margin-top: -22px; box-shadow: 0 4px 14px rgba(255,215,106,0.45);
}
.w4b54-bottom-btn.w4b54-promo .w4b54-bn-label { display: none; }

/* ---------- Back to top ---------- */
.w4b54-back-top {
  position: fixed; right: 14px; bottom: 78px; z-index: 999;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--w4b54-primary); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.w4b54-back-top.w4b54-show { opacity: 1; pointer-events: auto; }

/* ---------- Utility ---------- */
.w4b54-text-center { text-align: center; }
.w4b54-mt-1 { margin-top: 1rem; }
.w4b54-hidden { display: none; }

/* Desktop: hide bottom nav, widen container */
@media (min-width: 769px) {
  .w4b54-bottom-nav { display: none; }
  body { max-width: 430px; box-shadow: var(--w4b54-shadow); min-height: 100vh; }
}

/* Mobile bottom padding for fixed nav clearance */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
  .w4b54-footer { padding-bottom: 7rem; }
}
