/**
 * kg999.sbs - Main Stylesheet
 * All classes prefixed with w24bf- for namespace isolation
 * Color palette: #00695C | #FFCCCB | #4B0082 | #8470FF | #0D1117
 */

/* CSS Variables */
:root {
  --w24bf-primary: #00695C;
  --w24bf-secondary: #4B0082;
  --w24bf-accent: #8470FF;
  --w24bf-bg-dark: #0D1117;
  --w24bf-bg-card: #161B22;
  --w24bf-bg-section: #1A1F2B;
  --w24bf-text-light: #FFCCCB;
  --w24bf-text-white: #E6EDF3;
  --w24bf-text-muted: #8B949E;
  --w24bf-border: #30363D;
  --w24bf-gold: #FFD700;
  --w24bf-success: #2EA043;
  --w24bf-gradient-primary: linear-gradient(135deg, #00695C, #4B0082);
  --w24bf-gradient-accent: linear-gradient(135deg, #8470FF, #4B0082);
  --w24bf-gradient-gold: linear-gradient(135deg, #FFD700, #FFA500);
  --w24bf-radius: 8px;
  --w24bf-radius-lg: 12px;
  --w24bf-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --w24bf-shadow-lg: 0 4px 16px rgba(0,0,0,0.4);
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Noto Sans Bengali', Tahoma, sans-serif;
  background-color: var(--w24bf-bg-dark);
  color: var(--w24bf-text-white);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
.w24bf-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--w24bf-bg-dark);
  border-bottom: 1px solid var(--w24bf-border);
  z-index: 1000;
  padding: 0 1.2rem;
  transition: box-shadow 0.3s;
}

.w24bf-header-scrolled {
  box-shadow: var(--w24bf-shadow-lg);
}

.w24bf-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.w24bf-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.w24bf-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.w24bf-logo-area span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w24bf-text-light);
  letter-spacing: 0.5px;
}

.w24bf-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.w24bf-btn-register {
  background: var(--w24bf-gradient-primary);
  color: #fff;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: var(--w24bf-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  min-height: 34px;
}

.w24bf-btn-login {
  background: transparent;
  color: var(--w24bf-accent);
  border: 1px solid var(--w24bf-accent);
  padding: 0.5rem 1.2rem;
  border-radius: var(--w24bf-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  min-height: 34px;
}

.w24bf-btn-register:hover, .w24bf-btn-login:hover {
  opacity: 0.85;
  transform: scale(1.03);
}

.w24bf-menu-toggle {
  background: none;
  border: none;
  color: var(--w24bf-text-white);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
.w24bf-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--w24bf-bg-card);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 2rem 1.5rem;
}

.w24bf-menu-active {
  right: 0 !important;
}

.w24bf-mobile-menu .w24bf-menu-close {
  background: none;
  border: none;
  color: var(--w24bf-text-white);
  font-size: 2.2rem;
  cursor: pointer;
  float: right;
  margin-bottom: 1.5rem;
}

.w24bf-mobile-menu nav a {
  display: block;
  padding: 1rem 0;
  color: var(--w24bf-text-white);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--w24bf-border);
  transition: color 0.2s, padding-left 0.2s;
}

.w24bf-mobile-menu nav a:hover {
  color: var(--w24bf-accent);
  padding-left: 0.8rem;
}

/* Overlay */
.w24bf-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  display: none;
}

.w24bf-overlay-active {
  display: block !important;
}

/* Main Content */
.w24bf-main {
  padding-top: 52px;
  min-height: 100vh;
}

/* Carousel */
.w24bf-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16/8;
}

.w24bf-slides-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.w24bf-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s;
}

.w24bf-slide-active {
  opacity: 1;
  z-index: 1;
}

.w24bf-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w24bf-carousel-controls {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.w24bf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.w24bf-dot-active {
  background: var(--w24bf-accent);
  width: 18px;
  border-radius: 4px;
}

/* Section */
.w24bf-section {
  padding: 1.5rem 1.2rem;
}

.w24bf-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w24bf-text-light);
  margin-bottom: 1rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--w24bf-accent);
}

.w24bf-section-title i {
  margin-right: 0.4rem;
  color: var(--w24bf-accent);
}

/* Game Grid */
.w24bf-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.w24bf-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.w24bf-game-item:hover {
  transform: translateY(-2px);
}

.w24bf-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--w24bf-radius);
  margin-bottom: 0.3rem;
  border: 1px solid var(--w24bf-border);
}

.w24bf-game-item span {
  font-size: 1.1rem;
  color: var(--w24bf-text-white);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Category Header */
.w24bf-cat-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--w24bf-border);
}

.w24bf-cat-header i {
  color: var(--w24bf-accent);
  font-size: 1.8rem;
}

.w24bf-cat-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--w24bf-text-light);
}

/* Promo Section */
.w24bf-promo-card {
  background: var(--w24bf-gradient-primary);
  border-radius: var(--w24bf-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.w24bf-promo-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.w24bf-promo-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.w24bf-promo-card p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.8rem;
  line-height: 1.6rem;
}

.w24bf-promo-btn {
  display: inline-block;
  background: var(--w24bf-gold);
  color: #000;
  padding: 0.5rem 1.6rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.15s;
}

.w24bf-promo-btn:hover {
  transform: scale(1.05);
}

/* Info Cards */
.w24bf-info-card {
  background: var(--w24bf-bg-card);
  border: 1px solid var(--w24bf-border);
  border-radius: var(--w24bf-radius-lg);
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.w24bf-info-card h3 {
  font-size: 1.4rem;
  color: var(--w24bf-accent);
  margin-bottom: 0.6rem;
}

.w24bf-info-card p {
  font-size: 1.2rem;
  color: var(--w24bf-text-muted);
  line-height: 1.6rem;
}

.w24bf-info-card a {
  color: var(--w24bf-accent);
  font-weight: 600;
}

/* FAQ */
.w24bf-faq-item {
  background: var(--w24bf-bg-card);
  border-radius: var(--w24bf-radius);
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--w24bf-primary);
}

.w24bf-faq-item strong {
  display: block;
  font-size: 1.3rem;
  color: var(--w24bf-text-light);
  margin-bottom: 0.4rem;
}

.w24bf-faq-item p {
  font-size: 1.2rem;
  color: var(--w24bf-text-muted);
  line-height: 1.6rem;
}

/* Winner Display */
.w24bf-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--w24bf-border);
}

.w24bf-winner-row:last-child {
  border-bottom: none;
}

.w24bf-winner-name {
  font-size: 1.2rem;
  color: var(--w24bf-text-white);
}

.w24bf-winner-amount {
  font-size: 1.2rem;
  color: var(--w24bf-gold);
  font-weight: 700;
}

.w24bf-winner-game {
  font-size: 1rem;
  color: var(--w24bf-text-muted);
}

/* Payment Methods */
.w24bf-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.w24bf-payment-item {
  background: var(--w24bf-bg-card);
  border: 1px solid var(--w24bf-border);
  border-radius: var(--w24bf-radius);
  padding: 0.6rem 1rem;
  font-size: 1.1rem;
  color: var(--w24bf-text-white);
}

/* Testimonial */
.w24bf-testimonial {
  background: var(--w24bf-bg-card);
  border-radius: var(--w24bf-radius-lg);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  border: 1px solid var(--w24bf-border);
}

.w24bf-testimonial p {
  font-size: 1.2rem;
  color: var(--w24bf-text-muted);
  line-height: 1.6rem;
  font-style: italic;
  margin-bottom: 0.4rem;
}

.w24bf-testimonial strong {
  font-size: 1.1rem;
  color: var(--w24bf-accent);
}

/* Stats Grid */
.w24bf-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.w24bf-stat-item {
  background: var(--w24bf-bg-card);
  border: 1px solid var(--w24bf-border);
  border-radius: var(--w24bf-radius);
  padding: 1rem;
  text-align: center;
}

.w24bf-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--w24bf-gold);
}

.w24bf-stat-label {
  font-size: 1.1rem;
  color: var(--w24bf-text-muted);
  margin-top: 0.2rem;
}

/* Footer */
.w24bf-footer {
  background: var(--w24bf-bg-card);
  border-top: 1px solid var(--w24bf-border);
  padding: 2rem 1.2rem 8rem;
  margin-top: 2rem;
}

.w24bf-footer-brand {
  margin-bottom: 1.2rem;
}

.w24bf-footer-brand h3 {
  font-size: 1.5rem;
  color: var(--w24bf-text-light);
  margin-bottom: 0.5rem;
}

.w24bf-footer-brand p {
  font-size: 1.2rem;
  color: var(--w24bf-text-muted);
  line-height: 1.6rem;
}

.w24bf-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.w24bf-footer-promo button {
  background: var(--w24bf-gradient-accent);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.15s;
}

.w24bf-footer-promo button:hover {
  transform: scale(1.05);
}

.w24bf-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  margin-bottom: 1.2rem;
}

.w24bf-footer-links a {
  font-size: 1.2rem;
  color: var(--w24bf-text-muted);
  transition: color 0.2s;
}

.w24bf-footer-links a:hover {
  color: var(--w24bf-accent);
}

.w24bf-footer-copyright {
  font-size: 1.1rem;
  color: var(--w24bf-text-muted);
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--w24bf-border);
}

/* Bottom Fixed Nav */
.w24bf-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--w24bf-bg-card);
  border-top: 1px solid var(--w24bf-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  z-index: 1000;
  padding: 0 0.3rem;
}

.w24bf-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: var(--w24bf-text-muted);
  cursor: pointer;
  transition: color 0.2s, transform 0.15s;
  padding: 0.3rem;
}

.w24bf-bottom-nav-btn:hover,
.w24bf-bottom-nav-btn:focus {
  color: var(--w24bf-accent);
  transform: scale(1.08);
}

.w24bf-bottom-nav-btn i,
.w24bf-bottom-nav-btn .material-icons,
.w24bf-bottom-nav-btn ion-icon {
  font-size: 22px;
  margin-bottom: 1px;
}

.w24bf-bottom-nav-btn span {
  font-size: 1rem;
  line-height: 1.2rem;
}

.w24bf-bottom-nav-btn.w24bf-nav-active {
  color: var(--w24bf-accent);
}

.w24bf-bottom-nav-btn.w24bf-nav-active::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--w24bf-accent);
  border-radius: 1px;
  margin-top: 1px;
}

/* Text link style promo */
.w24bf-text-link {
  color: var(--w24bf-accent);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.w24bf-text-link:hover {
  color: var(--w24bf-text-light);
  text-decoration: underline;
}

/* Responsive */
@media (min-width: 769px) {
  .w24bf-bottom-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .w24bf-main {
    padding-bottom: 80px;
  }
}

@media (max-width: 360px) {
  .w24bf-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Utility classes */
.w24bf-text-center { text-align: center; }
.w24bf-text-gold { color: var(--w24bf-gold); }
.w24bf-text-accent { color: var(--w24bf-accent); }
.w24bf-mb-1 { margin-bottom: 0.8rem; }
.w24bf-mb-2 { margin-bottom: 1.6rem; }
.w24bf-mt-1 { margin-top: 0.8rem; }
.w24bf-mt-2 { margin-top: 1.6rem; }
.w24bf-fw-bold { font-weight: 700; }
