/*
 * 88f.click - Design Stylesheet
 * All classes use wd5fb- prefix for namespace isolation
 * Color palette: #800080 | #6A5ACD | #2F2F2F | #9370DB | #212F3D
 * Mobile-first responsive design, max-width: 430px
 */

/* CSS Custom Properties */
:root {
  --wd5fb-primary: #800080;
  --wd5fb-secondary: #6A5ACD;
  --wd5fb-accent: #9370DB;
  --wd5fb-bg-dark: #2F2F2F;
  --wd5fb-bg-deep: #212F3D;
  --wd5fb-text: #F0E6FF;
  --wd5fb-text-muted: #B8A9D4;
  --wd5fb-border: #4A3F5C;
  --wd5fb-gold: #FFD700;
  --wd5fb-success: #32CD32;
  --wd5fb-danger: #FF4757;
  --wd5fb-radius: 8px;
  --wd5fb-radius-lg: 12px;
  --wd5fb-shadow: 0 4px 15px rgba(128, 0, 128, 0.3);
  --wd5fb-transition: all 0.3s ease;
  font-size: 62.5%;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Segoe UI', 'Noto Sans Bengali', Tahoma, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  background: var(--wd5fb-bg-dark);
  color: var(--wd5fb-text);
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography */
h1 { font-size: 2.2rem; line-height: 1.3; }
h2 { font-size: 1.9rem; line-height: 1.3; }
h3 { font-size: 1.7rem; line-height: 1.4; }
p { margin-bottom: 1rem; }
a { color: var(--wd5fb-accent); text-decoration: none; transition: var(--wd5fb-transition); }
a:hover { color: var(--wd5fb-gold); }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.wd5fb-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 56px;
  background: linear-gradient(135deg, var(--wd5fb-bg-deep), #1a1a2e);
  border-bottom: 2px solid var(--wd5fb-primary);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem; z-index: 1000;
  box-shadow: 0 2px 12px rgba(128, 0, 128, 0.4);
}
.wd5fb-logo { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; }
.wd5fb-logo img { width: 32px; height: 32px; border-radius: 6px; }
.wd5fb-logo span { font-size: 1.8rem; font-weight: 800; color: var(--wd5fb-gold); letter-spacing: 1px; }
.wd5fb-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.wd5fb-menu-btn {
  background: none; border: none; color: var(--wd5fb-text);
  font-size: 2.2rem; cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center;
}
.wd5fb-menu-btn:hover { color: var(--wd5fb-accent); }

/* Buttons */
.wd5fb-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.2rem; border: none; border-radius: var(--wd5fb-radius);
  font-size: 1.3rem; font-weight: 700; cursor: pointer;
  transition: var(--wd5fb-transition); text-align: center;
  min-height: 36px; gap: 0.4rem;
}
.wd5fb-btn:hover { transform: scale(1.03); }
.wd5fb-btn:active { transform: scale(0.97); }
.wd5fb-btn-register {
  background: linear-gradient(135deg, var(--wd5fb-primary), #9932CC);
  color: #fff; box-shadow: 0 2px 8px rgba(128, 0, 128, 0.5);
}
.wd5fb-btn-login {
  background: linear-gradient(135deg, var(--wd5fb-secondary), var(--wd5fb-accent));
  color: #fff; box-shadow: 0 2px 8px rgba(106, 90, 205, 0.5);
}
.wd5fb-btn-promo {
  background: linear-gradient(135deg, var(--wd5fb-primary), var(--wd5fb-secondary));
  color: var(--wd5fb-gold); padding: 0.8rem 1.6rem; font-size: 1.5rem;
  border-radius: var(--wd5fb-radius-lg); box-shadow: var(--wd5fb-shadow);
  width: 100%;
}
.wd5fb-btn-promo:hover { box-shadow: 0 6px 20px rgba(128, 0, 128, 0.6); }

/* Mobile Menu Overlay */
.wd5fb-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7); z-index: 9998;
  display: none; opacity: 0; transition: opacity 0.3s ease;
}
.wd5fb-mobile-menu {
  position: fixed; top: 0; left: 0; width: 80%; max-width: 320px;
  height: 100%; background: linear-gradient(180deg, #1a1a2e, var(--wd5fb-bg-dark));
  z-index: 9999; transform: translateX(-100%); visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s ease;
  padding: 2rem 1.5rem; overflow-y: auto;
  border-right: 2px solid var(--wd5fb-primary);
}
.wd5fb-mobile-menu-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 2rem; }
.wd5fb-mobile-menu-header img { width: 40px; height: 40px; border-radius: 8px; }
.wd5fb-mobile-menu-header span { font-size: 2rem; font-weight: 800; color: var(--wd5fb-gold); }
.wd5fb-mobile-menu-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; color: var(--wd5fb-text);
  font-size: 2.4rem; cursor: pointer;
}
.wd5fb-mobile-menu nav { display: flex; flex-direction: column; gap: 0.3rem; }
.wd5fb-mobile-menu a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1rem; color: var(--wd5fb-text); font-size: 1.5rem;
  border-radius: var(--wd5fb-radius); transition: var(--wd5fb-transition);
}
.wd5fb-mobile-menu a:hover, .wd5fb-mobile-menu a:focus {
  background: rgba(128, 0, 128, 0.2); color: var(--wd5fb-gold);
}
.wd5fb-mobile-menu a i, .wd5fb-mobile-menu a span.material-icons-outlined {
  font-size: 2rem; width: 2.4rem; text-align: center;
}
.wd5fb-mobile-menu-divider {
  height: 1px; background: var(--wd5fb-border); margin: 0.8rem 0;
}

/* Main Content */
.wd5fb-main { padding-top: 56px; }
main { padding-top: 56px; }
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
  .wd5fb-main { padding-bottom: 80px; }
}

/* Carousel */
.wd5fb-carousel {
  position: relative; width: 100%; overflow: hidden;
  border-radius: 0 0 var(--wd5fb-radius-lg) var(--wd5fb-radius-lg);
}
.wd5fb-carousel-track {
  display: flex; transition: transform 0.5s ease;
}
.wd5fb-carousel-slide {
  min-width: 100%; position: relative; cursor: pointer;
}
.wd5fb-carousel-slide img { width: 100%; height: auto; display: block; }
.wd5fb-carousel-dots {
  position: absolute; bottom: 10px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 6px;
}
.wd5fb-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.4); border: none; cursor: pointer;
  transition: var(--wd5fb-transition);
}
.wd5fb-carousel-dot.wd5fb-active {
  background: var(--wd5fb-gold); width: 24px; border-radius: 4px;
}

/* Section */
.wd5fb-section { padding: 1.5rem 1rem; }
.wd5fb-section-title {
  font-size: 1.9rem; font-weight: 800; margin-bottom: 1rem;
  color: var(--wd5fb-gold); display: flex; align-items: center; gap: 0.6rem;
  border-bottom: 2px solid var(--wd5fb-primary); padding-bottom: 0.6rem;
}
.wd5fb-section-title i { font-size: 2rem; color: var(--wd5fb-accent); }

/* Category Tabs */
.wd5fb-cat-label {
  font-size: 1.6rem; font-weight: 700; margin-bottom: 0.8rem;
  color: var(--wd5fb-accent); display: flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0; border-left: 3px solid var(--wd5fb-primary); padding-left: 0.8rem;
}

/* Game Grid */
.wd5fb-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem; margin-bottom: 1.5rem;
}
.wd5fb-game-item {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; transition: var(--wd5fb-transition);
  border-radius: var(--wd5fb-radius); padding: 0.4rem;
  background: rgba(128, 0, 128, 0.08);
}
.wd5fb-game-item:hover { background: rgba(128, 0, 128, 0.2); transform: translateY(-2px); }
.wd5fb-game-item img {
  width: 100%; aspect-ratio: 1; border-radius: var(--wd5fb-radius);
  object-fit: cover; border: 2px solid var(--wd5fb-border);
  transition: var(--wd5fb-transition);
}
.wd5fb-game-item:hover img { border-color: var(--wd5fb-primary); }
.wd5fb-game-item span {
  font-size: 1.1rem; text-align: center; margin-top: 0.3rem;
  color: var(--wd5fb-text); line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* Content Card */
.wd5fb-card {
  background: linear-gradient(135deg, rgba(33, 47, 61, 0.9), rgba(47, 47, 47, 0.9));
  border: 1px solid var(--wd5fb-border); border-radius: var(--wd5fb-radius-lg);
  padding: 1.2rem; margin-bottom: 1rem;
}
.wd5fb-card-title {
  font-size: 1.6rem; font-weight: 700; color: var(--wd5fb-gold);
  margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.5rem;
}
.wd5fb-card p { font-size: 1.3rem; line-height: 1.5; color: var(--wd5fb-text-muted); }

/* Testimonials */
.wd5fb-testimonial {
  background: rgba(128, 0, 128, 0.1); border-left: 3px solid var(--wd5fb-primary);
  padding: 1rem; border-radius: 0 var(--wd5fb-radius) var(--wd5fb-radius) 0;
  margin-bottom: 0.8rem;
}
.wd5fb-testimonial p { font-size: 1.3rem; font-style: italic; color: var(--wd5fb-text); }
.wd5fb-testimonial cite {
  display: block; margin-top: 0.4rem; font-size: 1.2rem;
  color: var(--wd5fb-accent); font-style: normal;
}

/* Payment Methods */
.wd5fb-payment-grid {
  display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center;
}
.wd5fb-payment-item {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(128, 0, 128, 0.1); padding: 0.8rem; border-radius: var(--wd5fb-radius);
  min-width: 70px; font-size: 1.1rem; color: var(--wd5fb-text-muted);
}
.wd5fb-payment-item i { font-size: 2rem; margin-bottom: 0.3rem; color: var(--wd5fb-accent); }

/* RTP Bar */
.wd5fb-rtp-bar {
  background: rgba(128, 0, 128, 0.1); border-radius: 20px;
  overflow: hidden; margin-bottom: 0.6rem; height: 24px;
}
.wd5fb-rtp-fill {
  height: 100%; border-radius: 20px;
  background: linear-gradient(90deg, var(--wd5fb-primary), var(--wd5fb-accent), var(--wd5fb-gold));
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 0.8rem; font-size: 1.1rem; font-weight: 700; color: #fff;
}

/* Winners List */
.wd5fb-winners-list { list-style: none; }
.wd5fb-winners-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0; border-bottom: 1px solid rgba(128, 0, 128, 0.15);
  font-size: 1.3rem;
}
.wd5fb-winners-list li:last-child { border-bottom: none; }
.wd5fb-winner-name { color: var(--wd5fb-text); }
.wd5fb-winner-amount { color: var(--wd5fb-gold); font-weight: 700; }
.wd5fb-winner-game { color: var(--wd5fb-text-muted); font-size: 1.1rem; }

/* FAQ */
.wd5fb-faq-item { margin-bottom: 0.8rem; }
.wd5fb-faq-q {
  font-weight: 700; color: var(--wd5fb-gold); font-size: 1.4rem;
  margin-bottom: 0.3rem; display: flex; gap: 0.5rem;
}
.wd5fb-faq-a { color: var(--wd5fb-text-muted); font-size: 1.3rem; padding-left: 1.5rem; }

/* Footer */
.wd5fb-footer {
  background: linear-gradient(180deg, var(--wd5fb-bg-deep), #0d1117);
  border-top: 2px solid var(--wd5fb-primary);
  padding: 1.5rem 1rem 2rem;
}
.wd5fb-footer-brand { text-align: center; margin-bottom: 1.5rem; }
.wd5fb-footer-brand img { width: 48px; margin: 0 auto 0.5rem; }
.wd5fb-footer-brand p { font-size: 1.2rem; color: var(--wd5fb-text-muted); line-height: 1.5; }
.wd5fb-footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
  margin-bottom: 1rem;
}
.wd5fb-footer-links a {
  font-size: 1.2rem; padding: 0.3rem 0.6rem; color: var(--wd5fb-text-muted);
  border: 1px solid var(--wd5fb-border); border-radius: 4px;
}
.wd5fb-footer-links a:hover { color: var(--wd5fb-gold); border-color: var(--wd5fb-primary); }
.wd5fb-footer-promo {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
  margin-bottom: 1rem;
}
.wd5fb-footer-copy {
  text-align: center; font-size: 1.1rem; color: var(--wd5fb-text-muted);
  border-top: 1px solid var(--wd5fb-border); padding-top: 1rem;
}

/* Bottom Navigation */
.wd5fb-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 60px;
  background: linear-gradient(135deg, var(--wd5fb-bg-deep), #1a1a2e);
  border-top: 2px solid var(--wd5fb-primary);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; box-shadow: 0 -2px 12px rgba(128, 0, 128, 0.3);
}
.wd5fb-nav-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; background: none; border: none;
  color: var(--wd5fb-text-muted); font-size: 1rem; cursor: pointer;
  min-width: 60px; min-height: 56px; gap: 2px;
  transition: var(--wd5fb-transition); position: relative;
}
.wd5fb-nav-btn i, .wd5fb-nav-btn span.material-icons-outlined {
  font-size: 22px;
}
.wd5fb-nav-btn span.wd5fb-nav-label {
  font-size: 1rem; white-space: nowrap;
}
.wd5fb-nav-btn:hover, .wd5fb-nav-btn.wd5fb-active {
  color: var(--wd5fb-gold);
}
.wd5fb-nav-btn.wd5fb-active::after {
  content: ''; position: absolute; top: -2px;
  width: 30px; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--wd5fb-gold);
}
@media (min-width: 769px) {
  .wd5fb-bottom-nav { display: none; }
}

/* Utility */
.wd5fb-text-center { text-align: center; }
.wd5fb-text-gold { color: var(--wd5fb-gold); }
.wd5fb-text-accent { color: var(--wd5fb-accent); }
.wd5fb-mb-1 { margin-bottom: 0.5rem; }
.wd5fb-mb-2 { margin-bottom: 1rem; }
.wd5fb-mb-3 { margin-bottom: 1.5rem; }
.wd5fb-mt-2 { margin-top: 1rem; }
.wd5fb-promo-text { color: var(--wd5fb-gold); font-weight: 700; cursor: pointer; }
.wd5fb-promo-text:hover { text-decoration: underline; }

/* Help Page Styles */
.wd5fb-help-section { margin-bottom: 1.5rem; }
.wd5fb-help-section h2 {
  font-size: 1.7rem; color: var(--wd5fb-gold);
  border-bottom: 1px solid var(--wd5fb-border);
  padding-bottom: 0.5rem; margin-bottom: 0.8rem;
}
.wd5fb-help-section p, .wd5fb-help-section li {
  font-size: 1.3rem; line-height: 1.6; color: var(--wd5fb-text-muted);
}
.wd5fb-help-section ul, .wd5fb-help-section ol {
  padding-left: 1.5rem; margin-bottom: 1rem;
}
.wd5fb-help-section li { margin-bottom: 0.4rem; }
.wd5fb-step-box {
  background: rgba(128, 0, 128, 0.1); border-radius: var(--wd5fb-radius);
  padding: 1rem; margin-bottom: 0.6rem; border-left: 3px solid var(--wd5fb-accent);
}
.wd5fb-step-box strong { color: var(--wd5fb-gold); }

/* Responsive fine-tuning */
@media (max-width: 360px) {
  .wd5fb-game-grid { grid-template-columns: repeat(3, 1fr); }
  .wd5fb-btn { padding: 0.5rem 0.8rem; font-size: 1.2rem; }
}
@media (min-width: 769px) {
  body { max-width: 430px; }
}
