/* ==========================================================================
   456db Core Stylesheet
   Prefix: v8b9-
   Mobile-first responsive design for Bangla (bn-BD) gaming website
   ========================================================================== */

/* CSS Variables - Brand palette */
:root {
  --v8b9-primary: #7B68EE;
  --v8b9-primary-dark: #5a4fcf;
  --v8b9-secondary: #BAE1FF;
  --v8b9-accent: #80CBC4;
  --v8b9-light: #AFEEEE;
  --v8b9-bg: #0E1621;
  --v8b9-bg-alt: #16203a;
  --v8b9-bg-card: #1b2745;
  --v8b9-text: #f2f6ff;
  --v8b9-text-muted: #ADB5BD;
  --v8b9-border: rgba(123, 104, 238, 0.25);
  --v8b9-gold: #ffd479;
  --v8b9-success: #4ade80;
  --v8b9-danger: #f87171;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', system-ui, sans-serif;
  background: var(--v8b9-bg);
  color: var(--v8b9-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--v8b9-secondary); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Container & Wrapper */
.v8b9-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.v8b9-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }

/* Header */
.v8b9-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, #0E1621 0%, #1b2745 100%);
  border-bottom: 1px solid var(--v8b9-border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.v8b9-header-inner {
  max-width: 430px; margin: 0 auto; padding: 0.6rem 1rem;
  display: flex; align-items: center; gap: 0.6rem; height: 5.2rem;
}
.v8b9-logo { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.v8b9-logo img { width: 3rem; height: 3rem; border-radius: 0.6rem; }
.v8b9-logo-text {
  font-size: 1.8rem; font-weight: 700; color: var(--v8b9-primary);
  letter-spacing: 0.5px;
}
.v8b9-header-actions { margin-left: auto; display: flex; gap: 0.5rem; align-items: center; }
.v8b9-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.6rem 1.2rem; border-radius: 2rem; font-size: 1.3rem; font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease; min-height: 3.6rem;
  white-space: nowrap;
}
.v8b9-btn:active { transform: scale(0.94); }
.v8b9-btn-register {
  background: linear-gradient(135deg, var(--v8b9-primary) 0%, var(--v8b9-primary-dark) 100%);
  color: #fff; box-shadow: 0 3px 10px rgba(123,104,238,0.45);
}
.v8b9-btn-login {
  background: transparent; color: var(--v8b9-light);
  border: 1px solid var(--v8b9-accent);
}
.v8b9-menu-toggle {
  width: 3.6rem; height: 3.6rem; display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 0.35rem;
  border-radius: 0.6rem; background: rgba(123,104,238,0.15);
}
.v8b9-menu-toggle span {
  width: 2rem; height: 0.2rem; background: var(--v8b9-text);
  border-radius: 0.2rem; transition: 0.25s;
}
.v8b9-menu-toggle.v8b9-active span:nth-child(1) { transform: translateY(0.55rem) rotate(45deg); }
.v8b9-menu-toggle.v8b9-active span:nth-child(2) { opacity: 0; }
.v8b9-menu-toggle.v8b9-active span:nth-child(3) { transform: translateY(-0.55rem) rotate(-45deg); }

/* Mobile Menu */
.v8b9-mobile-menu {
  position: fixed; top: 5.2rem; left: 0; right: 0; z-index: 9999;
  background: linear-gradient(180deg, #16203a 0%, #0E1621 100%);
  border-bottom: 1px solid var(--v8b9-border);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.v8b9-mobile-menu.v8b9-open { max-height: 32rem; overflow-y: auto; }
.v8b9-mobile-menu ul { list-style: none; padding: 0.5rem 1rem 1rem; }
.v8b9-mobile-menu li a {
  display: block; padding: 1rem 1.2rem; color: var(--v8b9-text);
  font-size: 1.4rem; border-radius: 0.8rem; margin-bottom: 0.3rem;
  transition: background 0.15s;
}
.v8b9-mobile-menu li a:hover, .v8b9-mobile-menu li a:active {
  background: rgba(123,104,238,0.18); color: var(--v8b9-light);
}
.v8b9-mobile-menu li a i { margin-right: 0.8rem; color: var(--v8b9-accent); width: 2rem; text-align: center; }

/* Main */
.v8b9-main { padding-top: 5.2rem; }
@media (max-width: 768px) { .v8b9-main { padding-bottom: 8rem; } }

/* Hero Carousel */
.v8b9-hero { position: relative; padding: 1rem 0 0.5rem; }
.v8b9-carousel { position: relative; border-radius: 1.2rem; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,0.4); }
.v8b9-carousel-track { display: flex; transition: transform 0.45s ease; }
.v8b9-carousel-slide { min-width: 100%; position: relative; cursor: pointer; }
.v8b9-carousel-slide img { width: 100%; height: 18rem; object-fit: cover; }
.v8b9-carousel-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(14,22,33,0.85) 100%);
}
.v8b9-carousel-caption {
  position: absolute; bottom: 1rem; left: 1rem; right: 1rem; z-index: 2;
}
.v8b9-carousel-caption h2 { font-size: 1.8rem; color: #fff; font-weight: 700; margin-bottom: 0.3rem; }
.v8b9-carousel-caption p { font-size: 1.2rem; color: var(--v8b9-light); }
.v8b9-carousel-dots { display: flex; justify-content: center; gap: 0.5rem; padding: 0.8rem 0; }
.v8b9-carousel-dots button {
  width: 0.8rem; height: 0.8rem; border-radius: 50%; background: rgba(255,255,255,0.3);
  transition: 0.2s;
}
.v8b9-carousel-dots button.v8b9-active { background: var(--v8b9-primary); width: 2rem; border-radius: 0.4rem; }

/* Section */
.v8b9-section { padding: 1.5rem 0; }
.v8b9-section-title {
  font-size: 1.8rem; font-weight: 700; margin-bottom: 0.8rem;
  color: var(--v8b9-light); display: flex; align-items: center; gap: 0.6rem;
}
.v8b9-section-title i { color: var(--v8b9-accent); }
.v8b9-section-title::before {
  content: ''; display: inline-block; width: 0.4rem; height: 1.8rem;
  background: var(--v8b9-primary); border-radius: 0.3rem; margin-right: 0.2rem;
}
.v8b9-intro-text {
  font-size: 1.4rem; color: var(--v8b9-text-muted); line-height: 2.2rem;
  margin-bottom: 1rem;
}
.v8b9-intro-text strong { color: var(--v8b9-light); }
.v8b9-intro-text a { color: var(--v8b9-primary); font-weight: 600; }

/* H1 */
.v8b9-h1 {
  font-size: 2.1rem; font-weight: 700; line-height: 2.8rem;
  margin: 1rem 0 0.6rem; color: #fff;
}
.v8b9-h1 span { color: var(--v8b9-primary); }

/* Category tabs (static labels, non-interactive) */
.v8b9-cat-label {
  font-size: 1.6rem; font-weight: 700; margin: 1.5rem 0 0.8rem;
  color: var(--v8b9-accent); display: flex; align-items: center; gap: 0.5rem;
  border-bottom: 1px dashed var(--v8b9-border); padding-bottom: 0.5rem;
}
.v8b9-cat-label .material-icons-outlined { font-size: 2rem; }

/* Game Grid */
.v8b9-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
  margin-bottom: 1rem;
}
.v8b9-game-card {
  background: var(--v8b9-bg-card); border-radius: 0.9rem; overflow: hidden;
  border: 1px solid var(--v8b9-border); cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s; position: relative;
}
.v8b9-game-card:active { transform: scale(0.95); box-shadow: 0 4px 14px rgba(123,104,238,0.5); }
.v8b9-game-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.v8b9-game-name {
  font-size: 1.1rem; text-align: center; padding: 0.4rem 0.2rem 0.5rem;
  color: var(--v8b9-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(180deg, transparent, rgba(14,22,33,0.6));
}
.v8b9-game-badge {
  position: absolute; top: 0.3rem; left: 0.3rem; background: var(--v8b9-gold);
  color: #1a1a1a; font-size: 0.9rem; font-weight: 700; padding: 0.1rem 0.4rem;
  border-radius: 0.4rem;
}

/* Promo link */
.v8b9-promo-link {
  color: var(--v8b9-primary); font-weight: 700; cursor: pointer;
  border-bottom: 1px dotted var(--v8b9-primary);
}
.v8b9-promo-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, var(--v8b9-primary), var(--v8b9-primary-dark));
  color: #fff; padding: 0.7rem 1.6rem; border-radius: 2rem; font-size: 1.4rem;
  font-weight: 700; box-shadow: 0 4px 14px rgba(123,104,238,0.5);
  transition: transform 0.15s;
}
.v8b9-promo-btn:active { transform: scale(0.95); }
.v8b9-promo-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.8rem 0; }

/* Info card */
.v8b9-card {
  background: var(--v8b9-bg-card); border: 1px solid var(--v8b9-border);
  border-radius: 1rem; padding: 1.2rem; margin-bottom: 1rem;
}
.v8b9-card h3 { font-size: 1.5rem; color: var(--v8b9-light); margin-bottom: 0.5rem; }
.v8b9-card p { font-size: 1.3rem; color: var(--v8b9-text-muted); line-height: 2.1rem; }
.v8b9-card ul { list-style: none; padding: 0; }
.v8b9-card li { padding: 0.4rem 0 0.4rem 1.8rem; position: relative; font-size: 1.3rem; color: var(--v8b9-text-muted); line-height: 2rem; }
.v8b9-card li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; color: var(--v8b9-accent); }

/* FAQ */
.v8b9-faq-item {
  background: var(--v8b9-bg-card); border: 1px solid var(--v8b9-border);
  border-radius: 0.8rem; margin-bottom: 0.6rem; overflow: hidden;
}
.v8b9-faq-q {
  padding: 1rem 1.2rem; font-size: 1.4rem; font-weight: 600; color: var(--v8b9-light);
  display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.v8b9-faq-q i { color: var(--v8b9-primary); transition: transform 0.2s; }
.v8b9-faq-item.v8b9-open .v8b9-faq-q i { transform: rotate(180deg); }
.v8b9-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.v8b9-faq-item.v8b9-open .v8b9-faq-a { max-height: 20rem; }
.v8b9-faq-a p { padding: 0 1.2rem 1rem; font-size: 1.3rem; color: var(--v8b9-text-muted); line-height: 2rem; }

/* Features grid */
.v8b9-features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.v8b9-feature-box {
  background: var(--v8b9-bg-card); border: 1px solid var(--v8b9-border);
  border-radius: 0.9rem; padding: 1rem; text-align: center;
}
.v8b9-feature-box i { font-size: 2.4rem; color: var(--v8b9-accent); margin-bottom: 0.4rem; }
.v8b9-feature-box h4 { font-size: 1.3rem; color: var(--v8b9-light); margin-bottom: 0.3rem; }
.v8b9-feature-box p { font-size: 1.1rem; color: var(--v8b9-text-muted); line-height: 1.6rem; }

/* Payment */
.v8b9-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.v8b9-pay-item {
  background: var(--v8b9-bg-card); border: 1px solid var(--v8b9-border);
  border-radius: 0.6rem; padding: 0.7rem 0.3rem; text-align: center;
}
.v8b9-pay-item i { font-size: 2rem; color: var(--v8b9-secondary); }
.v8b9-pay-item span { display: block; font-size: 1rem; color: var(--v8b9-text-muted); margin-top: 0.3rem; }

/* App download CTA */
.v8b9-app-cta {
  background: linear-gradient(135deg, rgba(123,104,238,0.25), rgba(128,203,196,0.18));
  border: 1px solid var(--v8b9-border); border-radius: 1rem; padding: 1.3rem; text-align: center;
}
.v8b9-app-cta h3 { font-size: 1.6rem; color: #fff; margin-bottom: 0.4rem; }
.v8b9-app-cta p { font-size: 1.2rem; color: var(--v8b9-text-muted); margin-bottom: 0.9rem; }
.v8b9-app-cta .v8b9-promo-btn { font-size: 1.5rem; padding: 0.9rem 2rem; }

/* Footer */
.v8b9-footer {
  background: #08101a; border-top: 1px solid var(--v8b9-border);
  padding: 1.5rem 0 1rem; margin-top: 1.5rem;
}
.v8b9-footer-brand { font-size: 1.3rem; color: var(--v8b9-text-muted); line-height: 2rem; margin-bottom: 1rem; }
.v8b9-footer-brand strong { color: var(--v8b9-primary); }
.v8b9-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.v8b9-footer-links a {
  font-size: 1.2rem; padding: 0.4rem 0.8rem; border: 1px solid var(--v8b9-border);
  border-radius: 0.5rem; color: var(--v8b9-light);
}
.v8b9-footer-copy { font-size: 1.1rem; color: var(--v8b9-text-muted); text-align: center; padding-top: 0.8rem; border-top: 1px solid rgba(123,104,238,0.15); }

/* Mobile Bottom Nav */
.v8b9-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #16203a 0%, #0a0f1a 100%);
  border-top: 1px solid var(--v8b9-border);
  display: flex; justify-content: space-around; align-items: center;
  height: 6rem; padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 14px rgba(0,0,0,0.4);
}
.v8b9-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 6rem; min-height: 6rem; color: var(--v8b9-text-muted);
  transition: color 0.18s, transform 0.18s; gap: 0.2rem; position: relative;
}
.v8b9-bottom-nav-btn i { font-size: 2.2rem; }
.v8b9-bottom-nav-btn .material-icons-outlined { font-size: 2.2rem; }
.v8b9-bottom-nav-btn span { font-size: 1rem; }
.v8b9-bottom-nav-btn:active { transform: scale(0.92); }
.v8b9-bottom-nav-btn.v8b9-active { color: var(--v8b9-primary); }
.v8b9-bottom-nav-btn.v8b9-active i { color: var(--v8b9-primary); }
.v8b9-bottom-nav-btn.v8b9-promo i { color: var(--v8b9-gold); }
.v8b9-bottom-nav-btn.v8b9-promo span { color: var(--v8b9-gold); font-weight: 600; }

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .v8b9-bottom-nav { display: none; }
  .v8b9-main { padding-bottom: 2rem; }
}

/* Desktop nav (hidden on mobile) */
.v8b9-desktop-nav { display: none; }
@media (min-width: 769px) {
  .v8b9-desktop-nav { display: flex; gap: 1.2rem; margin-left: auto; margin-right: 1rem; }
  .v8b9-desktop-nav a { color: var(--v8b9-text); font-size: 1.3rem; padding: 0.5rem 0.8rem; }
  .v8b9-header-inner { max-width: 1100px; }
  .v8b9-container, .v8b9-wrapper { max-width: 1100px; }
  .v8b9-game-grid { grid-template-columns: repeat(6, 1fr); }
  .v8b9-features-grid { grid-template-columns: repeat(4, 1fr); }
  .v8b9-carousel-slide img { height: 28rem; }
}

/* Utility */
.v8b9-text-center { text-align: center; }
.v8b9-mt-1 { margin-top: 0.6rem; }
.v8b9-mb-1 { margin-bottom: 0.6rem; }
.v8b9-hidden { display: none !important; }
