/* ============================================================
   777bet cash - layout.css
   All custom classes use prefix "w4c41-"
   Mobile-first responsive design, max-width 430px
   Color palette: #0D1117 | #34495E | #FFFACD | #3C3C3C
   ============================================================ */

:root {
  --w4c41-primary: #34495E;
  --w4c41-bg: #0D1117;
  --w4c41-text: #FFFACD;
  --w4c41-dark: #3C3C3C;
  --w4c41-accent: #FFD700;
  --w4c41-accent2: #E74C3C;
  --w4c41-success: #2ECC71;
  --w4c41-border: rgba(255, 250, 205, 0.12);
  --w4c41-radius: 12px;
  --w4c41-header-h: 56px;
  --w4c41-bottomnav-h: 62px;
  --w4c41-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', 'Segoe UI', Tahoma, sans-serif;
  background: var(--w4c41-bg);
  color: var(--w4c41-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--w4c41-accent); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============================================================
   Header
   ============================================================ */
.w4c41-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--w4c41-header-h);
  background: linear-gradient(90deg, #0D1117 0%, #1a2530 100%);
  border-bottom: 1px solid var(--w4c41-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  max-width: 430px;
  margin: 0 auto;
}
.w4c41-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--w4c41-accent);
}
.w4c41-logo img { width: 28px; height: 28px; border-radius: 6px; }
.w4c41-header-actions { display: flex; align-items: center; gap: 8px; }
.w4c41-menu-toggle {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--w4c41-text);
  border-radius: 8px;
}
.w4c41-menu-toggle.w4c41-active { background: rgba(255, 215, 0, 0.15); }

.w4c41-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 1.3rem;
  min-height: 36px;
  transition: transform 0.15s, opacity 0.15s;
}
.w4c41-btn:active { transform: scale(0.95); }
.w4c41-btn-register {
  background: linear-gradient(90deg, #E74C3C, #FFD700);
  color: #0D1117;
}
.w4c41-btn-login {
  background: transparent;
  color: var(--w4c41-text);
  border: 1px solid var(--w4c41-accent);
}

/* Mobile menu drawer */
.w4c41-mobile-menu {
  position: fixed;
  top: var(--w4c41-header-h);
  left: 0; right: 0;
  background: #11181f;
  border-bottom: 1px solid var(--w4c41-border);
  padding: 8px 12px 16px;
  transform: translateY(-150%);
  transition: transform 0.3s ease;
  z-index: 9999;
  max-width: 430px;
  margin: 0 auto;
  max-height: 70vh;
  overflow-y: auto;
}
.w4c41-mobile-menu.w4c41-menu-open { transform: translateY(0); }
.w4c41-mobile-menu a {
  display: block;
  padding: 12px 10px;
  border-bottom: 1px solid var(--w4c41-border);
  color: var(--w4c41-text);
  font-size: 1.4rem;
}
.w4c41-mobile-menu a:active { background: rgba(255, 215, 0, 0.08); }

/* ============================================================
   Layout
   ============================================================ */
.w4c41-main {
  padding-top: var(--w4c41-header-h);
  padding-bottom: calc(var(--w4c41-bottomnav-h) + 20px);
  min-height: 100vh;
}
.w4c41-section {
  padding: 20px 12px;
  border-bottom: 1px solid var(--w4c41-border);
}
.w4c41-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w4c41-accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.w4c41-section-title i { font-size: 2.2rem; }
.w4c41-intro {
  font-size: 1.35rem;
  line-height: 1.7rem;
  color: rgba(255, 250, 205, 0.88);
}

/* ============================================================
   Carousel
   ============================================================ */
.w4c41-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--w4c41-radius);
  margin: 12px 0;
}
.w4c41-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.w4c41-carousel-slide {
  min-width: 100%;
  position: relative;
}
.w4c41-carousel-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--w4c41-radius);
}
.w4c41-carousel-cap {
  position: absolute;
  left: 14px; bottom: 14px;
  background: rgba(13, 17, 23, 0.75);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--w4c41-accent);
}
.w4c41-carousel-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.w4c41-carousel-dot {
  width: 8px; height: 8px;
  background: rgba(255, 250, 205, 0.4);
  border-radius: 50%;
}
.w4c41-carousel-dot.w4c41-dot-active { background: var(--w4c41-accent); }

/* ============================================================
   Game grid
   ============================================================ */
.w4c41-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 12px;
  scrollbar-width: none;
}
.w4c41-filter-bar::-webkit-scrollbar { display: none; }
.w4c41-filter-chip {
  padding: 6px 12px;
  border-radius: 16px;
  background: var(--w4c41-dark);
  color: var(--w4c41-text);
  font-size: 1.2rem;
  white-space: nowrap;
  border: 1px solid var(--w4c41-border);
}
.w4c41-filter-chip.w4c41-chip-active {
  background: linear-gradient(90deg, #E74C3C, #FFD700);
  color: #0D1117;
  border-color: transparent;
}
.w4c41-game-section { margin-bottom: 20px; }
.w4c41-game-cat-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--w4c41-accent);
  margin: 8px 0 10px;
  padding-left: 10px;
  border-left: 4px solid var(--w4c41-accent2);
}
.w4c41-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.w4c41-game-card {
  background: #161d24;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.15s;
  border: 1px solid var(--w4c41-border);
}
.w4c41-game-card:active { transform: scale(0.96); }
.w4c41-game-card img {
  width: 100%;
  height: 84px;
  object-fit: cover;
}
.w4c41-game-name {
  font-size: 1.1rem;
  padding: 6px 4px;
  color: var(--w4c41-text);
  line-height: 1.3rem;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   Promo / feature cards
   ============================================================ */
.w4c41-card {
  background: linear-gradient(135deg, #161d24, #1f2a36);
  border-radius: var(--w4c41-radius);
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid var(--w4c41-border);
}
.w4c41-card h3 {
  font-size: 1.5rem;
  color: var(--w4c41-accent);
  margin-bottom: 8px;
}
.w4c41-card p { font-size: 1.3rem; line-height: 1.6rem; color: rgba(255,250,205,0.85); }
.w4c41-card .w4c41-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--w4c41-accent2);
  font-weight: 700;
  text-decoration: underline;
}

.w4c41-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}
.w4c41-cta .w4c41-btn { flex: 1; min-width: 120px; }

/* RTP / stats compact list */
.w4c41-stat-list { list-style: none; }
.w4c41-stat-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--w4c41-border);
  font-size: 1.3rem;
}
.w4c41-stat-list span:last-child { color: var(--w4c41-accent); font-weight: 700; }

/* Testimonials */
.w4c41-testimonial {
  background: #161d24;
  border-left: 3px solid var(--w4c41-accent);
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.w4c41-testimonial strong { color: var(--w4c41-accent); display: block; margin-bottom: 4px; }

/* Payment icons row */
.w4c41-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.w4c41-pay-row .w4c41-pay {
  background: #1f2a36;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Winners showcase */
.w4c41-winner {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  background: #161d24;
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 1.25rem;
}
.w4c41-winner span:last-child { color: var(--w4c41-success); font-weight: 700; }

/* ============================================================
   Footer
   ============================================================ */
.w4c41-footer {
  background: #0a0e13;
  padding: 20px 12px calc(var(--w4c41-bottomnav-h) + 16px);
  border-top: 1px solid var(--w4c41-border);
  font-size: 1.25rem;
  color: rgba(255, 250, 205, 0.75);
}
.w4c41-footer-brand { font-size: 1.5rem; color: var(--w4c41-accent); margin-bottom: 8px; font-weight: 700; }
.w4c41-footer p { margin-bottom: 10px; line-height: 1.6rem; }
.w4c41-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.w4c41-footer-links a {
  flex: 1 1 45%;
  background: #161d24;
  padding: 8px 10px;
  border-radius: 6px;
  text-align: center;
  font-size: 1.2rem;
  color: var(--w4c41-text);
}
.w4c41-footer-copy {
  margin-top: 12px;
  font-size: 1.1rem;
  color: rgba(255, 250, 205, 0.55);
  text-align: center;
}

/* ============================================================
   Mobile bottom nav (5 buttons, fixed)
   ============================================================ */
.w4c41-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--w4c41-bottomnav-h);
  background: linear-gradient(180deg, #1a2530, #0D1117);
  border-top: 1px solid var(--w4c41-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.4);
}
.w4c41-bottom-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 58px;
  color: rgba(255, 250, 205, 0.7);
  font-size: 1rem;
  transition: color 0.2s, transform 0.2s;
  position: relative;
}
.w4c41-bottom-nav-btn i,
.w4c41-bottom-nav-btn .material-icons-outlined,
.w4c41-bottom-nav-btn ion-icon {
  font-size: 22px;
}
.w4c41-bottom-nav-btn ion-icon { font-size: 24px; }
.w4c41-bottom-nav-btn:active { transform: scale(0.9); }
.w4c41-bottom-nav-btn.w4c41-nav-current {
  color: var(--w4c41-accent);
}
.w4c41-bottom-nav-btn.w4c41-nav-current::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--w4c41-accent);
  border-radius: 0 0 3px 3px;
}
.w4c41-nav-badge {
  position: absolute;
  top: 6px; right: 18px;
  background: var(--w4c41-accent2);
  color: #fff;
  font-size: 0.9rem;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   Desktop: hide bottom nav, show desktop nav
   ============================================================ */
@media (min-width: 769px) {
  .w4c41-bottom-nav { display: none; }
  .w4c41-main { padding-bottom: 30px; }
  .w4c41-footer { padding-bottom: 20px; }
  body { max-width: 430px; }
}

@media (max-width: 768px) {
  .w4c41-main { padding-bottom: calc(var(--w4c41-bottomnav-h) + 20px); }
}

/* Utility */
.w4c41-text-center { text-align: center; }
.w4c41-mt-10 { margin-top: 10px; }
.w4c41-mb-10 { margin-bottom: 10px; }
.w4c41-hidden { display: none; }
.w4c41-promo-link {
  color: var(--w4c41-accent2);
  font-weight: 700;
  text-decoration: underline;
}
