/* ===========================================================
   kg99.homes - Core Stylesheet (CSS Basefile)
   Prefix: gd09-
   Palette: #1B263B (dark bg) | #F0F8FF (light text) | #FFB6C1 (accent)
   Mobile-first, max 430px viewport.
   =========================================================== */

:root {
  --gd09-primary: #1B263B;
  --gd09-bg: #1B263B;
  --gd09-bg-2: #243454;
  --gd09-text: #F0F8FF;
  --gd09-accent: #FFB6C1;
  --gd09-accent-2: #ffd6da;
  --gd09-muted: #9fb3d6;
  --gd09-card: #2a3a5e;
  --gd09-border: rgba(240, 248, 255, 0.12);
  --gd09-shadow: 0 4px 18px rgba(0,0,0,0.35);
  --gd09-radius: 14px;
  --gd09-radius-sm: 10px;
  --gd09-header-h: 56px;
  --gd09-bottomnav-h: 60px;
}

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

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

body {
  font-family: "Segoe UI", "Noto Sans Bengali", "SolaimanLipi", system-ui, sans-serif;
  background: var(--gd09-bg);
  color: var(--gd09-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---------- Layout ---------- */
.gd09-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.4rem;
}
.gd09-wrapper { padding-top: var(--gd09-header-h); padding-bottom: calc(var(--gd09-bottomnav-h) + 1rem); }

/* ---------- Header ---------- */
.gd09-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--gd09-header-h);
  background: var(--gd09-bg);
  border-bottom: 1px solid var(--gd09-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.gd09-header-inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.gd09-logo {
  display: flex; align-items: center; gap: 0.7rem;
  color: var(--gd09-text);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 0.5px;
}
.gd09-logo img { width: 30px; height: 30px; border-radius: 8px; }
.gd09-logo .gd09-logo-accent { color: var(--gd09-accent); }

.gd09-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.gd09-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 34px;
  padding: 0 1.1rem;
  border: none;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.gd09-btn:active { transform: scale(0.94); }
.gd09-btn-login {
  background: transparent;
  color: var(--gd09-text);
  border: 1px solid var(--gd09-border);
}
.gd09-btn-register {
  background: linear-gradient(135deg, var(--gd09-accent), var(--gd09-accent-2));
  color: #1B263B;
  box-shadow: 0 2px 10px rgba(255,182,193,0.35);
}
.gd09-menu-toggle {
  background: transparent;
  border: 1px solid var(--gd09-border);
  color: var(--gd09-text);
  width: 34px; height: 34px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* ---------- Mobile slide-down menu ---------- */
.gd09-mobile-menu {
  position: fixed;
  top: var(--gd09-header-h);
  left: 0; right: 0;
  background: var(--gd09-bg-2);
  border-bottom: 1px solid var(--gd09-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 9999;
}
.gd09-mobile-menu.gd09-menu-open { max-height: 520px; }
.gd09-mobile-menu-inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 1.2rem 1.4rem 1.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.gd09-menu-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--gd09-border);
  border-radius: var(--gd09-radius-sm);
  color: var(--gd09-text);
  font-size: 1.35rem;
  font-weight: 600;
}
.gd09-menu-link i, .gd09-menu-link .material-icons-outlined { font-size: 18px; color: var(--gd09-accent); }
.gd09-menu-link:active { background: rgba(255,182,193,0.12); }

/* ---------- Carousel ---------- */
.gd09-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--gd09-radius);
  overflow: hidden;
  margin: 1.2rem 0 1.6rem;
  box-shadow: var(--gd09-shadow);
}
.gd09-carousel-track { position: relative; width: 100%; aspect-ratio: 16/9; }
.gd09-carousel-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.6s ease;
  cursor: pointer;
}
.gd09-carousel-slide.gd09-active { opacity: 1; }
.gd09-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.gd09-carousel-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem 1.4rem;
  background: linear-gradient(to top, rgba(27,38,59,0.92), transparent);
  color: var(--gd09-text);
  font-size: 1.4rem;
  font-weight: 700;
}
.gd09-carousel-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
  z-index: 2;
}
.gd09-carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(240,248,255,0.45);
  border: none; cursor: pointer;
}
.gd09-carousel-dot.gd09-active { background: var(--gd09-accent); width: 18px; border-radius: 4px; }

/* ---------- Section headings ---------- */
.gd09-section { margin: 2rem 0; }
.gd09-section-title {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--gd09-text);
}
.gd09-section-title::before {
  content: ""; width: 4px; height: 20px;
  background: var(--gd09-accent); border-radius: 3px;
}
.gd09-section-sub {
  font-size: 1.35rem;
  color: var(--gd09-muted);
  margin-bottom: 1rem;
}

/* ---------- H1 hero ---------- */
.gd09-hero-h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 1.4rem 0 1rem;
  color: var(--gd09-text);
}
.gd09-hero-h1 span { color: var(--gd09-accent); }
.gd09-hero-lead {
  font-size: 1.4rem;
  color: var(--gd09-muted);
  margin-bottom: 1.4rem;
}

/* ---------- Game groups ---------- */
.gd09-game-group { margin-bottom: 2.2rem; }
.gd09-game-group-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.gd09-game-group-title {
  font-size: 1.7rem; font-weight: 800; color: var(--gd09-text);
  display: flex; align-items: center; gap: 0.5rem;
}
.gd09-game-group-title i { color: var(--gd09-accent); font-size: 18px; }
.gd09-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.gd09-game-card {
  background: var(--gd09-card);
  border: 1px solid var(--gd09-border);
  border-radius: var(--gd09-radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  text-align: center;
}
.gd09-game-card:active { transform: scale(0.96); }
.gd09-game-card img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  background: rgba(255,255,255,0.04);
}
.gd09-game-name {
  font-size: 1.15rem;
  color: var(--gd09-text);
  padding: 0.5rem 0.3rem 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

/* ---------- Info / content cards ---------- */
.gd09-card {
  background: var(--gd09-card);
  border: 1px solid var(--gd09-border);
  border-radius: var(--gd09-radius);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--gd09-shadow);
}
.gd09-card h2 { font-size: 1.8rem; margin-bottom: 0.8rem; color: var(--gd09-text); }
.gd09-card h3 { font-size: 1.5rem; margin: 1rem 0 0.5rem; color: var(--gd09-accent); }
.gd09-card p { font-size: 1.35rem; color: var(--gd09-muted); margin-bottom: 0.8rem; }
.gd09-card ul { padding-left: 1.4rem; color: var(--gd09-muted); font-size: 1.35rem; }
.gd09-card li { margin-bottom: 0.4rem; }

.gd09-card-link {
  color: var(--gd09-accent);
  font-weight: 700;
  cursor: pointer;
}
.gd09-card-link:hover { text-decoration: underline; }

/* ---------- Promo CTA ---------- */
.gd09-cta {
  background: linear-gradient(135deg, #2a3a5e, #1B263B);
  border: 1px solid var(--gd09-accent);
  border-radius: var(--gd09-radius);
  padding: 1.6rem;
  text-align: center;
  margin: 1.6rem 0;
}
.gd09-cta h3 { color: var(--gd09-accent); font-size: 1.8rem; margin-bottom: 0.6rem; }
.gd09-cta p { color: var(--gd09-muted); font-size: 1.35rem; margin-bottom: 1.2rem; }
.gd09-btn-cta {
  background: linear-gradient(135deg, var(--gd09-accent), var(--gd09-accent-2));
  color: #1B263B;
  padding: 1rem 2rem;
  border-radius: 26px;
  font-weight: 800;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255,182,193,0.4);
}
.gd09-btn-cta:active { transform: scale(0.96); }

/* ---------- Info grid (features/testimonials etc.) ---------- */
.gd09-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}
.gd09-info-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--gd09-border);
  border-radius: var(--gd09-radius-sm);
  padding: 1.1rem;
  text-align: center;
}
.gd09-info-item .gd09-info-icon {
  font-size: 26px; color: var(--gd09-accent); margin-bottom: 0.5rem;
}
.gd09-info-item h4 { font-size: 1.3rem; color: var(--gd09-text); margin-bottom: 0.3rem; }
.gd09-info-item p { font-size: 1.2rem; color: var(--gd09-muted); }

/* ---------- Payment row ---------- */
.gd09-pay-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.gd09-pay-chip {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--gd09-border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  color: var(--gd09-text);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.gd09-pay-chip i { color: var(--gd09-accent); }

/* ---------- Winners ---------- */
.gd09-winner {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.8rem; background: rgba(255,255,255,0.04);
  border-radius: var(--gd09-radius-sm); margin-bottom: 0.6rem;
}
.gd09-winner .gd09-winner-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gd09-accent); color: #1B263B;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.3rem;
}
.gd09-winner .gd09-winner-name { font-size: 1.3rem; color: var(--gd09-text); font-weight: 700; }
.gd09-winner .gd09-winner-meta { font-size: 1.15rem; color: var(--gd09-muted); }
.gd09-winner .gd09-winner-amount { margin-left: auto; color: var(--gd09-accent); font-weight: 800; font-size: 1.4rem; }

/* ---------- Footer ---------- */
.gd09-footer {
  background: var(--gd09-bg-2);
  border-top: 1px solid var(--gd09-border);
  padding: 2rem 0 calc(var(--gd09-bottomnav-h) + 2rem);
  margin-top: 2rem;
}
.gd09-footer-inner { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.4rem; }
.gd09-footer-brand { font-size: 1.3rem; color: var(--gd09-muted); margin-bottom: 1.2rem; }
.gd09-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem;
}
.gd09-footer-link {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--gd09-border);
  color: var(--gd09-text);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
}
.gd09-footer-link:active { background: rgba(255,182,193,0.15); }
.gd09-footer-copy { font-size: 1.15rem; color: var(--gd09-muted); border-top: 1px solid var(--gd09-border); padding-top: 1rem; }

/* ---------- Bottom nav ---------- */
.gd09-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--gd09-bottomnav-h);
  background: var(--gd09-bg-2);
  border-top: 1px solid var(--gd09-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
}
.gd09-bottom-nav-inner {
  width: 100%; max-width: 430px; margin: 0 auto;
  display: flex; justify-content: space-around; align-items: center; height: 100%;
}
.gd09-nav-btn {
  min-width: 60px; min-height: 60px;
  background: transparent; border: none;
  color: var(--gd09-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  position: relative;
  transition: color 0.2s ease, transform 0.15s ease;
}
.gd09-nav-btn i, .gd09-nav-btn .material-icons-outlined, .gd09-nav-btn .material-icons {
  font-size: 22px;
}
.gd09-nav-btn:active { transform: scale(0.92); color: var(--gd09-accent); }
.gd09-nav-btn.gd09-active { color: var(--gd09-accent); }
.gd09-nav-btn.gd09-active::after {
  content: ""; position: absolute; top: 0;
  width: 24px; height: 3px; border-radius: 0 0 4px 4px;
  background: var(--gd09-accent);
}
.gd09-nav-badge {
  position: absolute; top: 6px; right: 14px;
  background: var(--gd09-accent); color: #1B263B;
  font-size: 0.95rem; font-weight: 800;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Misc ---------- */
.gd09-text-accent { color: var(--gd09-accent); }
.gd09-divider { height: 1px; background: var(--gd09-border); margin: 1.4rem 0; border: none; }
.gd09-pill {
  display: inline-block; padding: 0.3rem 0.9rem;
  background: rgba(255,182,193,0.15); color: var(--gd09-accent);
  border-radius: 999px; font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem;
}

/* ---------- Responsive: desktop ---------- */
@media (min-width: 769px) {
  .gd09-bottom-nav { display: none; }
  .gd09-wrapper { padding-bottom: 2rem; }
  .gd09-footer { padding-bottom: 2rem; }
  .gd09-menu-toggle { display: none; }
}
@media (min-width: 431px) and (max-width: 768px) {
  .gd09-bottom-nav { display: flex; }
}
