/* 39999 layout CSS - base file */
/* All classes use v4c5- prefix for namespace isolation */
/* Comments in English per project rules */

:root {
  --v4c5-primary: #32CD32;
  --v4c5-secondary: #2E8B57;
  --v4c5-accent: #E0FFFF;
  --v4c5-silver: #C0C0C0;
  --v4c5-light: #F0FDFF;
  --v4c5-bg: #1A1A2E;
  --v4c5-bg-soft: #22223a;
  --v4c5-text: #F0FDFF;
  --v4c5-text-muted: #C0C0C0;
  --v4c5-danger: #ff5c5c;
  --v4c5-gold: #ffd24a;
  --v4c5-radius: 10px;
}

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

html { font-size: 62.5%; }

body {
  font-family: 'Segoe UI', 'Noto Sans Bengali', 'SolaimanLipi', sans-serif;
  background: var(--v4c5-bg);
  color: var(--v4c5-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* Header */
.v4c5-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  max-width: 430px; margin: 0 auto;
  background: linear-gradient(135deg, #1A1A2E 0%, #2E8B57 100%);
  border-bottom: 1px solid rgba(50, 205, 50, 0.3);
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.v4c5-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1rem; height: 5.2rem;
}
.v4c5-logo { display: flex; align-items: center; gap: 0.6rem; }
.v4c5-logo img { width: 2.8rem; height: 2.8rem; border-radius: 6px; }
.v4c5-logo-text { font-size: 1.7rem; font-weight: 700; color: var(--v4c5-primary); letter-spacing: 0.5px; }
.v4c5-header-actions { display: flex; align-items: center; gap: 0.5rem; }

/* Buttons */
.v4c5-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.2rem; font-size: 1.3rem; font-weight: 600;
  border-radius: 20px; border: none; cursor: pointer;
  min-height: 36px; transition: transform 0.15s, opacity 0.15s;
}
.v4c5-btn:active { transform: scale(0.95); }
.v4c5-btn-login {
  background: transparent; color: var(--v4c5-light);
  border: 1px solid var(--v4c5-silver);
}
.v4c5-btn-register {
  background: linear-gradient(90deg, var(--v4c5-gold), #ff9d2a);
  color: #1A1A2E; font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 210, 74, 0.4);
}
.v4c5-menu-toggle {
  background: transparent; border: none; color: var(--v4c5-light);
  font-size: 2rem; cursor: pointer; padding: 0.4rem 0.6rem;
  display: flex; align-items: center;
}

/* Mobile menu */
.v4c5-mobile-menu {
  position: fixed; top: 5.2rem; left: 0; right: 0; z-index: 9999;
  max-width: 430px; margin: 0 auto;
  background: var(--v4c5-bg-soft);
  border-bottom: 1px solid rgba(50, 205, 50, 0.3);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.v4c5-mobile-menu.v4c5-menu-open { max-height: 420px; }
.v4c5-mobile-menu ul { list-style: none; padding: 0.6rem 0; }
.v4c5-mobile-menu li a {
  display: block; padding: 1rem 1.5rem; color: var(--v4c5-light);
  font-size: 1.4rem; border-bottom: 1px solid rgba(192,192,192,0.1);
}
.v4c5-mobile-menu li a:active { background: rgba(50,205,50,0.1); }

/* Main content */
main { padding-top: 5.2rem; padding-bottom: 0; }
@media (max-width: 768px) { main { padding-bottom: 80px; } }

/* Carousel */
.v4c5-carousel {
  position: relative; width: 100%; margin: 0 0 1.5rem 0;
  border-radius: var(--v4c5-radius); overflow: hidden;
  aspect-ratio: 16/9; background: var(--v4c5-bg-soft);
}
.v4c5-slides { position: relative; width: 100%; height: 100%; }
.v4c5-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease;
  cursor: pointer;
}
.v4c5-slide.v4c5-slide-active { opacity: 1; }
.v4c5-slide img { width: 100%; height: 100%; object-fit: cover; }
.v4c5-slide-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.2rem; background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--v4c5-light); font-size: 1.5rem; font-weight: 600;
}
.v4c5-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.4); color: var(--v4c5-light);
  border: none; width: 3.2rem; height: 3.2rem; border-radius: 50%;
  font-size: 1.6rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.v4c5-carousel-arrow:active { background: rgba(50,205,50,0.6); }
.v4c5-arrow-prev { left: 0.8rem; }
.v4c5-arrow-next { right: 0.8rem; }
.v4c5-dots {
  position: absolute; bottom: 0.8rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.5rem;
}
.v4c5-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer; transition: background 0.2s;
}
.v4c5-dot.v4c5-dot-active { background: var(--v4c5-primary); }

/* Section */
.v4c5-section { padding: 1.5rem 1.2rem; }
.v4c5-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--v4c5-primary);
  margin-bottom: 1rem; padding-left: 0.8rem;
  border-left: 4px solid var(--v4c5-gold);
}
.v4c5-section-title small { color: var(--v4c5-text-muted); font-size: 1.2rem; font-weight: 400; }

/* Game grid */
.v4c5-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
.v4c5-game-card {
  background: var(--v4c5-bg-soft); border-radius: var(--v4c5-radius);
  overflow: hidden; cursor: pointer; transition: transform 0.15s;
  border: 1px solid rgba(50,205,50,0.15);
}
.v4c5-game-card:active { transform: scale(0.96); }
.v4c5-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.v4c5-game-name {
  padding: 0.5rem 0.4rem; font-size: 1.1rem; color: var(--v4c5-light);
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Category title */
.v4c5-cat-title {
  font-size: 1.6rem; font-weight: 700; color: var(--v4c5-gold);
  margin: 1.8rem 0 1rem; display: flex; align-items: center; gap: 0.6rem;
}
.v4c5-cat-title .v4c5-cat-icon { color: var(--v4c5-primary); }

/* Info card */
.v4c5-info-card {
  background: var(--v4c5-bg-soft); border-radius: var(--v4c5-radius);
  padding: 1.2rem; margin-bottom: 1rem; border: 1px solid rgba(50,205,50,0.1);
}
.v4c5-info-card h3 { color: var(--v4c5-primary); font-size: 1.5rem; margin-bottom: 0.6rem; }
.v4c5-info-card p { color: var(--v4c5-text-muted); font-size: 1.3rem; line-height: 1.6; }
.v4c5-info-card ul { padding-left: 1.6rem; color: var(--v4c5-text-muted); }
.v4c5-info-card li { margin: 0.4rem 0; font-size: 1.3rem; line-height: 1.6; }

/* Promo link inline */
.v4c5-promo-link {
  color: var(--v4c5-gold); font-weight: 700; cursor: pointer;
  text-decoration: underline;
}
.v4c5-promo-link:active { color: var(--v4c5-primary); }

/* Play now button */
.v4c5-play-cta {
  display: block; width: 100%; max-width: 320px; margin: 1.5rem auto;
  padding: 1.2rem; text-align: center; font-size: 1.6rem; font-weight: 700;
  background: linear-gradient(90deg, var(--v4c5-primary), var(--v4c5-secondary));
  color: #1A1A2E; border-radius: 30px; border: none; cursor: pointer;
  box-shadow: 0 4px 12px rgba(50,205,50,0.4);
}
.v4c5-play-cta:active { transform: scale(0.97); }

/* Testimonial */
.v4c5-testimonial {
  background: var(--v4c5-bg-soft); border-radius: var(--v4c5-radius);
  padding: 1rem; margin-bottom: 0.8rem; border-left: 3px solid var(--v4c5-gold);
}
.v4c5-testimonial-name { color: var(--v4c5-primary); font-weight: 600; font-size: 1.3rem; }
.v4c5-testimonial-text { color: var(--v4c5-text-muted); font-size: 1.2rem; margin-top: 0.3rem; }

/* Winners */
.v4c5-winner-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1rem; background: var(--v4c5-bg-soft);
  border-radius: 8px; margin-bottom: 0.5rem; font-size: 1.2rem;
}
.v4c5-winner-name { color: var(--v4c5-light); }
.v4c5-winner-amount { color: var(--v4c5-gold); font-weight: 700; }

/* Payment */
.v4c5-pay-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.v4c5-pay-item {
  flex: 1 1 30%; background: var(--v4c5-bg-soft); border-radius: 8px;
  padding: 0.8rem; text-align: center; font-size: 1.1rem; color: var(--v4c5-light);
  border: 1px solid rgba(50,205,50,0.15);
}

/* App download CTA */
.v4c5-app-cta {
  background: linear-gradient(135deg, #2E8B57, #1A1A2E);
  border-radius: var(--v4c5-radius); padding: 1.5rem; text-align: center;
  border: 1px solid rgba(50,205,50,0.3);
}
.v4c5-app-cta h3 { color: var(--v4c5-gold); font-size: 1.6rem; margin-bottom: 0.6rem; }
.v4c5-app-cta p { color: var(--v4c5-light); font-size: 1.2rem; margin-bottom: 1rem; }

/* RTP table */
.v4c5-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.v4c5-rtp-table th, .v4c5-rtp-table td {
  padding: 0.6rem 0.8rem; text-align: left;
  border-bottom: 1px solid rgba(50,205,50,0.15);
}
.v4c5-rtp-table th { color: var(--v4c5-gold); }
.v4c5-rtp-table td { color: var(--v4c5-text-muted); }
.v4c5-rtp-table td.v4c5-rtp-high { color: var(--v4c5-primary); font-weight: 700; }

/* Footer */
.v4c5-footer {
  background: #15152a; padding: 2rem 1.2rem 1rem;
  border-top: 1px solid rgba(50,205,50,0.2); margin-top: 2rem;
}
.v4c5-footer-brand { color: var(--v4c5-text-muted); font-size: 1.2rem; line-height: 1.6; margin-bottom: 1rem; }
.v4c5-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin-bottom: 1rem;
}
.v4c5-footer-links a { color: var(--v4c5-light); font-size: 1.2rem; }
.v4c5-footer-links a:active { color: var(--v4c5-primary); }
.v4c5-footer-copy {
  text-align: center; color: var(--v4c5-silver); font-size: 1.1rem;
  padding-top: 1rem; border-top: 1px solid rgba(192,192,192,0.1);
}

/* Bottom nav */
.v4c5-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  max-width: 430px; margin: 0 auto;
  height: 62px; background: #15152a;
  border-top: 1px solid rgba(50,205,50,0.3);
  display: flex; justify-content: space-around; align-items: center;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.4);
}
.v4c5-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px; background: transparent; border: none;
  color: var(--v4c5-silver); cursor: pointer; padding: 0.3rem;
  transition: color 0.2s, transform 0.15s;
}
.v4c5-bottom-nav-btn:active { transform: scale(0.92); }
.v4c5-bottom-nav-btn .v4c5-nav-icon { font-size: 2.2rem; line-height: 1; }
.v4c5-bottom-nav-btn .v4c5-nav-label { font-size: 1rem; margin-top: 0.2rem; }
.v4c5-bottom-nav-btn.v4c5-nav-active { color: var(--v4c5-primary); }
.v4c5-bottom-nav-btn.v4c5-nav-promo { color: var(--v4c5-gold); }

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .v4c5-bottom-nav { display: none; }
  main { padding-bottom: 0; }
  body { max-width: 430px; }
}

/* Utility */
.v4c5-text-center { text-align: center; }
.v4c5-mt-1 { margin-top: 1rem; }
.v4c5-mt-2 { margin-top: 2rem; }
.v4c5-divider {
  height: 1px; background: rgba(50,205,50,0.15); margin: 1.5rem 0; border: none;
}
.v4c5-badge {
  display: inline-block; padding: 0.2rem 0.6rem; font-size: 1rem;
  background: var(--v4c5-gold); color: #1A1A2E; border-radius: 4px; font-weight: 700;
}
