/* 8kdb.homes - style-af1b.css
   All custom classes use the waf1b- prefix.
   Mobile-first responsive design (max-width 430px reference).
   Color palette: #ADD8E6 | #DEE2E6 | #FFB3FF | #3CB371 | #87CEFA | #0E1621 */

:root {
  --waf1b-primary: #87CEFA;
  --waf1b-accent: #FFB3FF;
  --waf1b-success: #3CB371;
  --waf1b-bg: #0E1621;
  --waf1b-bg-2: #16223a;
  --waf1b-card: #1b2942;
  --waf1b-text: #DEE2E6;
  --waf1b-text-dim: #9fb3c8;
  --waf1b-border: #2a3a5a;
  --waf1b-light: #ADD8E6;
  --waf1b-gold: #f5c451;
  --waf1b-radius: 12px;
  --waf1b-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  --waf1b-header-h: 56px;
  --waf1b-bottomnav-h: 62px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--waf1b-bg);
  color: var(--waf1b-text);
  font-size: 1.5rem;
  line-height: 1.5;
  overflow-x: hidden;
}

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

.waf1b-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== Header ===== */
.waf1b-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--waf1b-header-h);
  background: linear-gradient(90deg, #0E1621 0%, #16223a 100%);
  border-bottom: 1px solid var(--waf1b-border);
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
}
.waf1b-logo {
  display: flex; align-items: center; gap: 8px; color: var(--waf1b-text);
  font-weight: 700; font-size: 1.8rem;
}
.waf1b-logo img { width: 28px; height: 28px; border-radius: 6px; }
.waf1b-logo span { background: linear-gradient(90deg, var(--waf1b-light), var(--waf1b-accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.waf1b-header-actions { display: flex; align-items: center; gap: 8px; }
.waf1b-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 0 14px; border: none; border-radius: 20px;
  font-size: 1.3rem; font-weight: 600; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  font-family: inherit;
}
.waf1b-btn:active { transform: scale(.96); }
.waf1b-btn-login { background: transparent; color: var(--waf1b-light); border: 1px solid var(--waf1b-light); }
.waf1b-btn-register { background: linear-gradient(90deg, var(--waf1b-success), var(--waf1b-primary)); color: #07121f; font-weight: 700; box-shadow: 0 4px 14px rgba(60,179,113,.35); }
.waf1b-btn-promo { background: linear-gradient(90deg, var(--waf1b-accent), var(--waf1b-primary)); color: #07121f; font-weight: 700; }

.waf1b-menu-btn {
  background: transparent; border: 1px solid var(--waf1b-border); color: var(--waf1b-text);
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer; font-size: 1.6rem;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ===== Mobile menu (slide-down) ===== */
.waf1b-mobile-menu {
  position: fixed; top: var(--waf1b-header-h); left: 0; right: 0;
  background: var(--waf1b-bg-2); border-bottom: 1px solid var(--waf1b-border);
  z-index: 9999; max-height: 0; overflow: hidden; transition: max-height .28s ease;
}
.waf1b-mobile-menu.waf1b-menu-open { max-height: 420px; }
.waf1b-mobile-menu.waf1b-menu-closed { max-height: 0; }
.waf1b-mobile-menu ul { list-style: none; margin: 0; padding: 8px 12px; }
.waf1b-mobile-menu li a, .waf1b-mobile-menu li button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 12px 10px; color: var(--waf1b-text); background: transparent; border: none;
  border-bottom: 1px solid rgba(255,255,255,.06); cursor: pointer; font-size: 1.4rem; text-align: left; font-family: inherit;
}
.waf1b-mobile-menu li a:hover, .waf1b-mobile-menu li button:hover { color: var(--waf1b-accent); }

/* ===== Layout ===== */
.waf1b-main { padding-top: calc(var(--waf1b-header-h) + 6px); min-height: 100vh; }
.waf1b-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 12px; }
.waf1b-section { padding: 18px 0; }
.waf1b-section-title {
  font-size: 1.8rem; font-weight: 700; margin: 0 0 12px;
  color: var(--waf1b-text); display: flex; align-items: center; gap: 8px;
}
.waf1b-section-title i, .waf1b-section-title .material-icons-outlined { color: var(--waf1b-accent); }
.waf1b-lead { color: var(--waf1b-text-dim); font-size: 1.4rem; margin: 0 0 10px; }

/* ===== Hero carousel ===== */
.waf1b-carousel {
  position: relative; border-radius: var(--waf1b-radius); overflow: hidden;
  box-shadow: var(--waf1b-shadow); background: var(--waf1b-card);
}
.waf1b-carousel-track { position: relative; height: 170px; }
.waf1b-carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; cursor: pointer;
}
.waf1b-carousel-slide.waf1b-slide-active { opacity: 1; }
.waf1b-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.waf1b-carousel-caption {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  background: rgba(14,22,33,.55); padding: 8px 10px; border-radius: 8px;
  font-size: 1.3rem; color: #fff;
}
.waf1b-carousel-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.waf1b-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); border: none; cursor: pointer; padding: 0; }
.waf1b-carousel-dot.waf1b-dot-active { background: var(--waf1b-accent); width: 18px; border-radius: 4px; }

/* ===== Filter chips ===== */
.waf1b-filter-row { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 10px; -webkit-overflow-scrolling: touch; }
.waf1b-filter-row::-webkit-scrollbar { display: none; }
.waf1b-filter-chip {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 18px; background: var(--waf1b-card);
  color: var(--waf1b-text-dim); border: 1px solid var(--waf1b-border); cursor: pointer;
  font-size: 1.3rem; font-family: inherit;
}
.waf1b-filter-chip.waf1b-chip-active { background: linear-gradient(90deg, var(--waf1b-primary), var(--waf1b-accent)); color: #07121f; border-color: transparent; font-weight: 600; }

/* ===== Game grid ===== */
.waf1b-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.waf1b-game-card {
  background: var(--waf1b-card); border: 1px solid var(--waf1b-border); border-radius: 10px;
  padding: 8px; text-align: center; cursor: pointer; transition: transform .15s ease, border-color .15s ease;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.waf1b-game-card:active { transform: scale(.96); border-color: var(--waf1b-accent); }
.waf1b-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #0b1322; }
.waf1b-game-name { font-size: 1.15rem; color: var(--waf1b-text); line-height: 1.25; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.waf1b-game-badge { font-size: 1rem; color: var(--waf1b-gold); }

/* ===== Cards / features ===== */
.waf1b-card {
  background: var(--waf1b-card); border: 1px solid var(--waf1b-border); border-radius: var(--waf1b-radius);
  padding: 14px; margin-bottom: 12px; box-shadow: var(--waf1b-shadow);
}
.waf1b-card h3 { margin: 0 0 8px; font-size: 1.6rem; color: var(--waf1b-light); }
.waf1b-card p { margin: 0 0 8px; color: var(--waf1b-text-dim); font-size: 1.35rem; }
.waf1b-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.waf1b-feature-item { background: var(--waf1b-bg-2); border-radius: 10px; padding: 12px; text-align: center; border: 1px solid var(--waf1b-border); }
.waf1b-feature-item i, .waf1b-feature-item .material-icons-outlined { font-size: 26px; color: var(--waf1b-accent); margin-bottom: 6px; }
.waf1b-feature-item h4 { margin: 4px 0 2px; font-size: 1.3rem; color: var(--waf1b-text); }
.waf1b-feature-item p { margin: 0; font-size: 1.15rem; color: var(--waf1b-text-dim); }

/* ===== CTA banner ===== */
.waf1b-cta {
  background: linear-gradient(120deg, #16223a, #1b2942); border: 1px solid var(--waf1b-primary);
  border-radius: var(--waf1b-radius); padding: 16px; text-align: center; margin: 16px 0;
}
.waf1b-cta h3 { margin: 0 0 6px; color: var(--waf1b-accent); font-size: 1.7rem; }
.waf1b-cta p { margin: 0 0 12px; color: var(--waf1b-text-dim); font-size: 1.3rem; }
.waf1b-cta .waf1b-btn { padding: 10px 22px; font-size: 1.4rem; }

/* ===== Promo text link ===== */
.waf1b-promo-link { color: var(--waf1b-accent); font-weight: 700; cursor: pointer; }
.waf1b-promo-link:hover { color: var(--waf1b-light); text-decoration: underline; }

/* ===== Testimonials ===== */
.waf1b-testimonial { background: var(--waf1b-bg-2); border-radius: 10px; padding: 12px; margin-bottom: 10px; border-left: 3px solid var(--waf1b-success); }
.waf1b-testimonial .waf1b-stars { color: var(--waf1b-gold); font-size: 1.2rem; margin-bottom: 4px; }
.waf1b-testimonial p { margin: 0 0 6px; font-size: 1.3rem; color: var(--waf1b-text); }
.waf1b-testimonial .waf1b-author { font-size: 1.15rem; color: var(--waf1b-text-dim); }

/* ===== Payment chips ===== */
.waf1b-pay-row { display: flex; flex-wrap: wrap; gap: 8px; }
.waf1b-pay-chip { background: var(--waf1b-card); border: 1px solid var(--waf1b-border); border-radius: 8px; padding: 8px 12px; font-size: 1.2rem; color: var(--waf1b-text); display: inline-flex; align-items: center; gap: 6px; }

/* ===== Winners ===== */
.waf1b-winner-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--waf1b-border); font-size: 1.25rem; }
.waf1b-winner-row span:first-child { color: var(--waf1b-text); }
.waf1b-winner-row span:last-child { color: var(--waf1b-success); font-weight: 700; }

/* ===== RTP table ===== */
.waf1b-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.25rem; }
.waf1b-rtp-table th, .waf1b-rtp-table td { padding: 8px 6px; text-align: left; border-bottom: 1px solid var(--waf1b-border); }
.waf1b-rtp-table th { color: var(--waf1b-light); font-size: 1.2rem; }
.waf1b-rtp-table td:last-child { color: var(--waf1b-success); font-weight: 700; }

/* ===== FAQ ===== */
.waf1b-faq-item { background: var(--waf1b-card); border: 1px solid var(--waf1b-border); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.waf1b-faq-q { width: 100%; background: transparent; border: none; color: var(--waf1b-text); padding: 12px; text-align: left; font-size: 1.35rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: inherit; }
.waf1b-faq-q .waf1b-faq-icon { color: var(--waf1b-accent); transition: transform .2s ease; }
.waf1b-faq-item.waf1b-faq-open .waf1b-faq-icon { transform: rotate(45deg); }
.waf1b-faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 12px; color: var(--waf1b-text-dim); font-size: 1.25rem; }
.waf1b-faq-item.waf1b-faq-open .waf1b-faq-a { max-height: 220px; padding: 0 12px 12px; }

/* ===== Tricks list ===== */
.waf1b-tricks { list-style: none; padding: 0; margin: 0; }
.waf1b-tricks li { padding: 8px 0 8px 26px; position: relative; font-size: 1.3rem; color: var(--waf1b-text-dim); border-bottom: 1px solid rgba(255,255,255,.05); }
.waf1b-tricks li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--waf1b-success); position: absolute; left: 0; top: 8px; }

/* ===== App download CTA ===== */
.waf1b-app-cta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.waf1b-app-cta .waf1b-btn { flex: 1 1 auto; }

/* ===== Footer ===== */
.waf1b-footer { background: #0a1018; border-top: 1px solid var(--waf1b-border); padding: 18px 12px calc(var(--waf1b-bottomnav-h) + 18px); margin-top: 18px; }
.waf1b-footer .waf1b-container { padding: 0; }
.waf1b-footer-brand { color: var(--waf1b-text-dim); font-size: 1.25rem; margin: 0 0 10px; line-height: 1.5; }
.waf1b-footer-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.waf1b-footer-links a, .waf1b-footer-links button { background: var(--waf1b-card); border: 1px solid var(--waf1b-border); color: var(--waf1b-text); padding: 6px 12px; border-radius: 16px; font-size: 1.15rem; cursor: pointer; font-family: inherit; }
.waf1b-footer-links a:hover, .waf1b-footer-links button:hover { color: var(--waf1b-accent); border-color: var(--waf1b-accent); }
.waf1b-footer-copy { color: var(--waf1b-text-dim); font-size: 1.1rem; margin-top: 10px; }

/* ===== Mobile bottom nav ===== */
.waf1b-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; height: var(--waf1b-bottomnav-h);
  background: linear-gradient(180deg, #16223a, #0E1621); border-top: 1px solid var(--waf1b-border);
  display: flex; justify-content: space-around; align-items: center; z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}
.waf1b-bottomnav-btn {
  flex: 1; min-width: 60px; min-height: 60px; background: transparent; border: none;
  color: var(--waf1b-text-dim); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer; font-family: inherit; transition: color .15s ease, transform .15s ease;
}
.waf1b-bottomnav-btn i, .waf1b-bottomnav-btn .material-icons-outlined, .waf1b-bottomnav-btn .icon { font-size: 22px; }
.waf1b-bottomnav-btn span { font-size: 1.05rem; }
.waf1b-bottomnav-btn:active { transform: scale(.92); }
.waf1b-bottomnav-btn.waf1b-nav-active { color: var(--waf1b-accent); }
.waf1b-bottomnav-btn.waf1b-nav-active i, .waf1b-bottomnav-btn.waf1b-nav-active .material-icons-outlined { color: var(--waf1b-accent); }
.waf1b-nav-badge { background: var(--waf1b-accent); color: #07121f; font-size: .9rem; border-radius: 8px; padding: 0 4px; margin-left: 4px; font-weight: 700; }

/* ===== Desktop adjustments ===== */
@media (min-width: 769px) {
  .waf1b-bottomnav { display: none; }
  .waf1b-menu-btn { display: none; }
  .waf1b-mobile-menu { display: none; }
  .waf1b-container { max-width: 960px; }
  .waf1b-game-grid { grid-template-columns: repeat(6, 1fr); }
  .waf1b-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .waf1b-carousel-track { height: 260px; }
  .waf1b-footer { padding-bottom: 18px; }
}

/* Mobile: ensure content not hidden behind bottom nav */
@media (max-width: 768px) {
  .waf1b-main { padding-bottom: calc(var(--waf1b-bottomnav-h) + 12px); }
}

/* Back to top floating button */
.waf1b-to-top {
  position: fixed; right: 12px; bottom: calc(var(--waf1b-bottomnav-h) + 12px);
  width: 40px; height: 40px; border-radius: 50%; background: var(--waf1b-card);
  border: 1px solid var(--waf1b-primary); color: var(--waf1b-light); cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 900; box-shadow: var(--waf1b-shadow);
}
