/* css/layout.css - bee9.homes - all classes use v9d9- prefix */
/* Color palette: #87CEFA | #B0E0E6 | #E8F5E8 | #3A3A3A (dark bg, light text) */

:root {
  --v9d9-primary: #87CEFA;
  --v9d9-secondary: #B0E0E6;
  --v9d9-accent: #E8F5E8;
  --v9d9-bg: #3A3A3A;
  --v9d9-bg-dark: #2a2a2a;
  --v9d9-bg-darker: #1f1f1f;
  --v9d9-bg-light: #4a4a4a;
  --v9d9-text: #E8F5E8;
  --v9d9-text-muted: #B0E0E6;
  --v9d9-gold: #FFD700;
  --v9d9-orange: #FFA500;
  --v9d9-red: #FF6B6B;
  --v9d9-header-h: 5.6rem;
  --v9d9-bottomnav-h: 6.4rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Segoe UI', 'Noto Sans Bengali', 'SolaimanLipi', Arial, sans-serif;
  background: var(--v9d9-bg);
  color: var(--v9d9-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--v9d9-primary); text-decoration: none; }
button { font-family: inherit; }

/* Layout containers */
.v9d9-container { width: 100%; padding: 0 1.2rem; }
.v9d9-wrapper { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }

/* Header */
.v9d9-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, #1f1f1f, #3A3A3A);
  border-bottom: 0.1rem solid var(--v9d9-primary);
  padding: 0 1.2rem;
  height: var(--v9d9-header-h);
  display: flex; align-items: center; justify-content: space-between;
  max-width: 430px; margin: 0 auto;
  box-shadow: 0 0.2rem 0.8rem rgba(0,0,0,0.4);
}
.v9d9-logo { display: flex; align-items: center; gap: 0.7rem; }
.v9d9-logo img { width: 2.8rem; height: 2.8rem; border-radius: 0.5rem; }
.v9d9-logo-text { font-size: 1.8rem; font-weight: 800; color: var(--v9d9-primary); letter-spacing: 0.05rem; }
.v9d9-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.v9d9-menu-toggle {
  background: transparent; border: 0; color: var(--v9d9-primary);
  font-size: 2.2rem; cursor: pointer; padding: 0.4rem 0.6rem; line-height: 1;
}

/* Buttons */
.v9d9-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.2rem; border: 0; border-radius: 2rem;
  font-size: 1.2rem; font-weight: 700; cursor: pointer;
  transition: transform 0.15s, opacity 0.15s; line-height: 1.2;
}
.v9d9-btn:active { transform: scale(0.95); }
.v9d9-btn-register { background: linear-gradient(135deg, var(--v9d9-gold), var(--v9d9-orange)); color: #1f1f1f; }
.v9d9-btn-login { background: var(--v9d9-primary); color: #1f1f1f; }
.v9d9-btn-promo { background: linear-gradient(135deg, var(--v9d9-primary), var(--v9d9-secondary)); color: #1f1f1f; }

/* Mobile menu */
.v9d9-mobile-menu {
  position: fixed; top: var(--v9d9-header-h); left: 0; right: 0;
  background: #2a2a2a; z-index: 9999;
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  max-width: 430px; margin: 0 auto;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.5);
}
.v9d9-mobile-menu.v9d9-menu-open { max-height: 60rem; }
.v9d9-mobile-menu a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1.2rem 1.5rem; color: var(--v9d9-text);
  border-bottom: 0.1rem solid #4a4a4a; font-size: 1.4rem;
  cursor: pointer;
}
.v9d9-mobile-menu a:active { background: #4a4a4a; }
.v9d9-mobile-menu a i, .v9d9-mobile-menu a span.mi { color: var(--v9d9-primary); font-size: 1.8rem; }

/* Main content */
.v9d9-main { padding-top: var(--v9d9-header-h); }

/* Carousel */
.v9d9-carousel { position: relative; width: 100%; overflow: hidden; border-radius: 1rem; margin: 1.2rem 0; box-shadow: 0 0.4rem 1rem rgba(0,0,0,0.4); }
.v9d9-carousel-track { position: relative; height: 17rem; }
.v9d9-carousel-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.5s; cursor: pointer;
}
.v9d9-carousel-slide.v9d9-active { opacity: 1; }
.v9d9-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.v9d9-carousel-dots { position: absolute; bottom: 0.8rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; z-index: 2; }
.v9d9-carousel-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: rgba(255,255,255,0.45); cursor: pointer; border: 0; }
.v9d9-carousel-dot.v9d9-active { background: var(--v9d9-gold); width: 2rem; border-radius: 0.4rem; }

/* Sections */
.v9d9-section { padding: 1.5rem 1.2rem; }
.v9d9-section-title {
  font-size: 1.8rem; color: var(--v9d9-primary); margin-bottom: 1rem;
  border-left: 0.3rem solid var(--v9d9-gold); padding-left: 0.8rem; font-weight: 800;
}
.v9d9-h1 {
  font-size: 2.2rem; color: var(--v9d9-accent); text-align: center;
  margin: 1.5rem 0.5rem; font-weight: 800; line-height: 1.3;
}
.v9d9-h2 { font-size: 1.8rem; color: var(--v9d9-primary); margin: 1.2rem 0 0.8rem; font-weight: 800; }
.v9d9-h3 { font-size: 1.5rem; color: var(--v9d9-secondary); margin: 1rem 0 0.5rem; font-weight: 700; }
.v9d9-para { font-size: 1.3rem; color: var(--v9d9-text); line-height: 1.7; margin-bottom: 0.8rem; }

/* Filter tabs */
.v9d9-filter-tabs { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.5rem 0; margin-bottom: 1rem; -webkit-overflow-scrolling: touch; }
.v9d9-filter-tabs::-webkit-scrollbar { display: none; }
.v9d9-filter-tab {
  padding: 0.5rem 1.1rem; background: #4a4a4a; color: var(--v9d9-text);
  border-radius: 1.5rem; font-size: 1.2rem; white-space: nowrap; cursor: pointer;
  border: 0.1rem solid transparent; font-weight: 600;
}
.v9d9-filter-tab.v9d9-active { background: var(--v9d9-primary); color: #1f1f1f; }

/* Game grid */
.v9d9-game-group { margin-bottom: 2rem; }
.v9d9-game-group-title {
  font-size: 1.6rem; color: var(--v9d9-secondary); margin-bottom: 0.8rem;
  font-weight: 800; display: flex; align-items: center; gap: 0.5rem;
}
.v9d9-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.v9d9-game-card {
  background: #4a4a4a; border-radius: 0.8rem; overflow: hidden;
  cursor: pointer; transition: transform 0.15s; text-align: center;
  padding: 0.4rem; border: 0.1rem solid #5a5a5a; display: block;
}
.v9d9-game-card:active { transform: scale(0.93); }
.v9d9-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0.5rem; }
.v9d9-game-name {
  font-size: 1.05rem; color: var(--v9d9-text); margin-top: 0.35rem;
  line-height: 1.25; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-weight: 600;
}

/* Cards */
.v9d9-card {
  background: #4a4a4a; border-radius: 1rem; padding: 1.2rem;
  margin-bottom: 1rem; border: 0.1rem solid #5a5a5a;
}
.v9d9-card-title { font-size: 1.5rem; color: var(--v9d9-primary); margin-bottom: 0.6rem; font-weight: 800; }
.v9d9-card p { color: var(--v9d9-text); font-size: 1.3rem; line-height: 1.7; margin-bottom: 0.6rem; }

/* Promo text link */
.v9d9-link-text { color: var(--v9d9-gold); font-weight: 700; cursor: pointer; }
.v9d9-link-text:hover, .v9d9-link-text:active { text-decoration: underline; }

/* Features grid */
.v9d9-features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.v9d9-feature-item { background: #4a4a4a; padding: 1rem; border-radius: 0.8rem; text-align: center; border: 0.1rem solid #5a5a5a; }
.v9d9-feature-icon { font-size: 2.4rem; color: var(--v9d9-primary); margin-bottom: 0.4rem; line-height: 1; }
.v9d9-feature-title { font-size: 1.3rem; color: var(--v9d9-secondary); font-weight: 700; margin-bottom: 0.2rem; }
.v9d9-feature-text { font-size: 1.1rem; color: var(--v9d9-text); line-height: 1.5; }

/* Steps */
.v9d9-step { display: flex; gap: 0.8rem; margin-bottom: 0.8rem; align-items: flex-start; }
.v9d9-step-num { flex-shrink: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--v9d9-primary); color: #1f1f1f; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.3rem; }
.v9d9-step-text { font-size: 1.3rem; color: var(--v9d9-text); line-height: 1.6; }

/* FAQ */
.v9d9-faq-item { background: #4a4a4a; border-radius: 0.8rem; padding: 1rem; margin-bottom: 0.8rem; border-left: 0.3rem solid var(--v9d9-primary); }
.v9d9-faq-q { font-size: 1.3rem; color: var(--v9d9-secondary); font-weight: 700; margin-bottom: 0.4rem; }
.v9d9-faq-a { font-size: 1.2rem; color: var(--v9d9-text); line-height: 1.6; }

/* Testimonials */
.v9d9-testimonial { background: #4a4a4a; border-radius: 0.8rem; padding: 1rem; margin-bottom: 0.8rem; border-left: 0.3rem solid var(--v9d9-gold); }
.v9d9-testimonial-name { font-size: 1.3rem; color: var(--v9d9-primary); font-weight: 700; }
.v9d9-stars { color: var(--v9d9-gold); font-size: 1.2rem; margin: 0.2rem 0; }
.v9d9-testimonial-text { font-size: 1.2rem; color: var(--v9d9-text); line-height: 1.6; }

/* Payment methods */
.v9d9-payment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.v9d9-payment-item { background: #4a4a4a; padding: 0.8rem 0.4rem; border-radius: 0.6rem; text-align: center; font-size: 1.1rem; color: var(--v9d9-text); border: 0.1rem solid #5a5a5a; font-weight: 600; }
.v9d9-payment-item i, .v9d9-payment-item span.mi { display: block; font-size: 1.8rem; color: var(--v9d9-primary); margin-bottom: 0.3rem; }

/* Winners */
.v9d9-winner { display: flex; justify-content: space-between; align-items: center; background: #4a4a4a; padding: 0.7rem 1rem; border-radius: 0.6rem; margin-bottom: 0.5rem; font-size: 1.2rem; border-left: 0.3rem solid var(--v9d9-gold); }
.v9d9-winner-name { color: var(--v9d9-secondary); font-weight: 600; }
.v9d9-winner-game { color: var(--v9d9-text-muted); font-size: 1.05rem; }
.v9d9-winner-amount { color: var(--v9d9-gold); font-weight: 800; }

/* CTA */
.v9d9-cta {
  display: block; text-align: center; background: linear-gradient(135deg, var(--v9d9-gold), var(--v9d9-orange));
  color: #1f1f1f; padding: 1.2rem; border-radius: 1rem; font-size: 1.5rem; font-weight: 800;
  margin: 1rem 0; cursor: pointer; border: 0; width: 100%;
}
.v9d9-cta:active { transform: scale(0.97); }

/* App download CTA */
.v9d9-app-cta { background: linear-gradient(135deg, #2a4a6a, #3A3A3A); border-radius: 1rem; padding: 1.2rem; text-align: center; border: 0.1rem solid var(--v9d9-primary); margin: 1rem 0; }
.v9d9-app-cta-title { font-size: 1.6rem; color: var(--v9d9-primary); font-weight: 800; margin-bottom: 0.4rem; }
.v9d9-app-cta-text { font-size: 1.2rem; color: var(--v9d9-text); margin-bottom: 0.8rem; line-height: 1.6; }

/* RTP table */
.v9d9-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; background: #4a4a4a; border-radius: 0.6rem; overflow: hidden; }
.v9d9-rtp-table th, .v9d9-rtp-table td { padding: 0.7rem 0.8rem; border-bottom: 0.1rem solid #5a5a5a; text-align: left; }
.v9d9-rtp-table th { color: var(--v9d9-primary); background: #3a3a3a; font-weight: 700; }
.v9d9-rtp-table td { color: var(--v9d9-text); }
.v9d9-rtp-table td:last-child { color: var(--v9d9-gold); font-weight: 700; }

/* Footer */
.v9d9-footer { background: #1f1f1f; padding: 2rem 1.2rem; margin-top: 2rem; border-top: 0.2rem solid var(--v9d9-primary); }
.v9d9-footer-brand { font-size: 1.8rem; color: var(--v9d9-primary); font-weight: 800; margin-bottom: 0.5rem; }
.v9d9-footer-desc { font-size: 1.2rem; color: var(--v9d9-text-muted); line-height: 1.7; margin-bottom: 1rem; }
.v9d9-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.v9d9-footer-links a { background: #4a4a4a; padding: 0.5rem 1rem; border-radius: 1.5rem; font-size: 1.1rem; color: var(--v9d9-text); cursor: pointer; }
.v9d9-footer-links a:active { background: var(--v9d9-primary); color: #1f1f1f; }
.v9d9-footer-promo { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.v9d9-footer-promo button { background: linear-gradient(135deg, var(--v9d9-primary), var(--v9d9-secondary)); color: #1f1f1f; padding: 0.6rem 1.1rem; border-radius: 1.5rem; font-size: 1.2rem; font-weight: 700; border: 0; cursor: pointer; }
.v9d9-footer-promo button:active { transform: scale(0.95); }
.v9d9-footer-copy { font-size: 1.1rem; color: var(--v9d9-text-muted); text-align: center; border-top: 0.1rem solid #4a4a4a; padding-top: 1rem; line-height: 1.6; }

/* Bottom nav - unique design with raised center promo button */
.v9d9-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #2a2a2a, #1a1a1a);
  border-top: 0.15rem solid var(--v9d9-primary);
  height: var(--v9d9-bottomnav-h);
  display: flex; justify-content: space-around; align-items: center;
  max-width: 430px; margin: 0 auto;
  box-shadow: 0 -0.3rem 1rem rgba(0,0,0,0.5);
}
.v9d9-nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px; background: transparent; border: 0;
  color: var(--v9d9-text-muted); font-size: 1rem; cursor: pointer; gap: 0.2rem;
  transition: color 0.2s, transform 0.15s; padding: 0.3rem; font-weight: 600;
}
.v9d9-nav-item:active { transform: scale(0.9); }
.v9d9-nav-item.v9d9-active { color: var(--v9d9-gold); }
.v9d9-nav-icon { font-size: 2.4rem; line-height: 1; }
.v9d9-nav-label { font-size: 1rem; line-height: 1; }
.v9d9-nav-promo {
  background: linear-gradient(135deg, var(--v9d9-gold), var(--v9d9-orange));
  color: #1f1f1f; width: 4.8rem; height: 4.8rem; border-radius: 50%;
  margin-top: -2.4rem; box-shadow: 0 0.3rem 0.8rem rgba(255,165,0,0.5);
  border: 0.2rem solid #1f1f1f;
}
.v9d9-nav-promo .v9d9-nav-icon { font-size: 2.6rem; }
.v9d9-nav-promo .v9d9-nav-label { font-size: 0.9rem; }

/* Mobile bottom padding for nav clearance */
@media (max-width: 768px) {
  .v9d9-main { padding-bottom: 8rem; }
  .v9d9-footer { padding-bottom: 8rem; }
}

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