/**
 * 499 Bet APK - Core Stylesheet
 * All classes use g1a7- prefix for namespace isolation
 * Color Palette: #9966CC | #BA55D3 | #999999 | #1E1E1E | #9370DB
 * Mobile-first responsive design (max-width: 430px)
 */

/* === CSS Variables === */
:root {
  --g1a7-primary: #9966CC;
  --g1a7-accent: #BA55D3;
  --g1a7-muted: #999999;
  --g1a7-bg: #1E1E1E;
  --g1a7-secondary: #9370DB;
  --g1a7-bg-light: #2A2A2A;
  --g1a7-bg-card: #252525;
  --g1a7-text: #F0E6FF;
  --g1a7-text-light: #D4C4E8;
  --g1a7-border: #3D2E50;
  --g1a7-gradient: linear-gradient(135deg, #9966CC, #BA55D3);
  --g1a7-radius: 8px;
  --g1a7-radius-lg: 12px;
  --g1a7-shadow: 0 2px 12px rgba(153, 102, 204, 0.2);
  font-size: 62.5%;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Segoe UI', 'Noto Sans Bengali', Tahoma, sans-serif;
  background: var(--g1a7-bg);
  color: var(--g1a7-text);
  line-height: 1.5rem;
  font-size: 1.6rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--g1a7-accent); text-decoration: none; }
a:hover { color: var(--g1a7-primary); }
img { max-width: 100%; height: auto; display: block; }

/* === Layout === */
.g1a7-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.g1a7-wrapper { width: 100%; }
.g1a7-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--g1a7-border);
}

/* === Header === */
.g1a7-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--g1a7-bg);
  border-bottom: 1px solid var(--g1a7-border);
  height: 56px;
}
.g1a7-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 56px;
}
.g1a7-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}
.g1a7-logo img { width: 28px; height: 28px; border-radius: 4px; }
.g1a7-logo span {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--g1a7-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.g1a7-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.g1a7-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: var(--g1a7-radius);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 36px;
  min-width: 44px;
}
.g1a7-btn-register {
  background: var(--g1a7-gradient);
  color: #fff;
}
.g1a7-btn-register:hover { opacity: 0.9; transform: scale(1.02); }
.g1a7-btn-login {
  background: transparent;
  color: var(--g1a7-accent);
  border: 1px solid var(--g1a7-accent);
}
.g1a7-btn-login:hover { background: rgba(186, 85, 211, 0.1); }
.g1a7-menu-toggle {
  background: none;
  border: none;
  color: var(--g1a7-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Mobile Menu === */
.g1a7-mobile-menu {
  position: fixed;
  top: 56px;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: var(--g1a7-bg-light);
  border-bottom: 2px solid var(--g1a7-primary);
  transition: all 0.3s ease;
  max-height: 0;
  overflow: hidden;
}
.g1a7-menu-open { max-height: 500px; opacity: 1; }
.g1a7-menu-closed { max-height: 0; opacity: 0; }
.g1a7-menu-nav { padding: 0.8rem 1rem; }
.g1a7-menu-nav a {
  display: block;
  padding: 1rem 1.2rem;
  color: var(--g1a7-text);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--g1a7-border);
  transition: all 0.2s ease;
}
.g1a7-menu-nav a:last-child { border-bottom: none; }
.g1a7-menu-nav a:hover {
  background: rgba(153, 102, 204, 0.15);
  color: var(--g1a7-accent);
  padding-left: 1.8rem;
}

/* === Carousel === */
.g1a7-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--g1a7-radius-lg);
  margin-top: 56px;
  aspect-ratio: 16/8;
}
.g1a7-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.g1a7-slide img { width: 100%; height: 100%; object-fit: cover; }
.g1a7-slide-active { opacity: 1; }
.g1a7-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.g1a7-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}
.g1a7-dot-active { background: var(--g1a7-accent); transform: scale(1.3); }

/* === Game Grid === */
.g1a7-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--g1a7-accent);
  color: var(--g1a7-text);
}
.g1a7-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.g1a7-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  background: var(--g1a7-bg-card);
  border-radius: var(--g1a7-radius);
  padding: 0.5rem;
  border: 1px solid transparent;
}
.g1a7-game-item:hover {
  transform: translateY(-2px);
  border-color: var(--g1a7-border);
}
.g1a7-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.3rem;
}
.g1a7-game-name {
  font-size: 1.1rem;
  color: var(--g1a7-text-light);
  line-height: 1.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === Content Modules === */
.g1a7-card {
  background: var(--g1a7-bg-card);
  border-radius: var(--g1a7-radius-lg);
  padding: 1.6rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--g1a7-border);
}
.g1a7-card h2 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
  color: var(--g1a7-accent);
}
.g1a7-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--g1a7-secondary);
}
.g1a7-card p {
  font-size: 1.4rem;
  line-height: 1.8rem;
  color: var(--g1a7-text-light);
  margin-bottom: 0.8rem;
}
.g1a7-promo-link {
  color: var(--g1a7-accent);
  font-weight: 700;
  cursor: pointer;
  border-bottom: 1px dashed var(--g1a7-accent);
  transition: color 0.2s;
}
.g1a7-promo-link:hover { color: var(--g1a7-primary); }

/* === Buttons === */
.g1a7-btn-promo {
  display: block;
  width: 100%;
  background: var(--g1a7-gradient);
  color: #fff;
  text-align: center;
  padding: 1.2rem;
  border: none;
  border-radius: var(--g1a7-radius-lg);
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  margin: 1.5rem 0;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(153, 102, 204, 0.35);
}
.g1a7-btn-promo:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(186, 85, 211, 0.45);
}

/* === Footer === */
.g1a7-footer {
  background: var(--g1a7-bg-light);
  padding: 2rem 0 8rem;
  border-top: 2px solid var(--g1a7-primary);
  margin-top: 2rem;
}
.g1a7-footer-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.g1a7-footer-brand {
  font-size: 1.3rem;
  color: var(--g1a7-muted);
  line-height: 1.8rem;
  margin-bottom: 1.5rem;
}
.g1a7-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.g1a7-footer-links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--g1a7-bg-card);
  border: 1px solid var(--g1a7-border);
  border-radius: var(--g1a7-radius);
  color: var(--g1a7-text-light);
  font-size: 1.2rem;
  transition: all 0.2s;
}
.g1a7-footer-links a:hover {
  background: rgba(153, 102, 204, 0.2);
  color: var(--g1a7-accent);
}
.g1a7-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.g1a7-footer-promo button {
  flex: 1;
  min-width: calc(50% - 0.6rem);
  padding: 0.8rem;
  border: none;
  border-radius: var(--g1a7-radius);
  background: var(--g1a7-gradient);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
}
.g1a7-footer-copy {
  text-align: center;
  font-size: 1.2rem;
  color: var(--g1a7-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--g1a7-border);
}

/* === Bottom Navigation === */
.g1a7-bnav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--g1a7-bg-light);
  border-top: 2px solid var(--g1a7-primary);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 0.4rem;
}
.g1a7-bnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--g1a7-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0.2rem;
  border-radius: 8px;
}
.g1a7-bnav-btn:hover, .g1a7-bnav-btn:focus {
  color: var(--g1a7-accent);
  background: rgba(186, 85, 211, 0.08);
  transform: scale(1.05);
}
.g1a7-bnav-btn-active {
  color: var(--g1a7-accent);
}
.g1a7-bnav-btn i, .g1a7-bnav-btn span.material-symbols-outlined,
.g1a7-bnav-btn ion-icon, .g1a7-bnav-btn bi {
  font-size: 22px;
  width: 22px;
  height: 22px;
  margin-bottom: 2px;
}
.g1a7-bnav-btn span.g1a7-bnav-label {
  font-size: 1rem;
  line-height: 1.2rem;
  font-weight: 500;
}

/* === Testimonials === */
.g1a7-testimonial {
  background: var(--g1a7-bg-card);
  border-left: 3px solid var(--g1a7-accent);
  border-radius: 0 var(--g1a7-radius) var(--g1a7-radius) 0;
  padding: 1.2rem;
  margin-bottom: 0.8rem;
}
.g1a7-testimonial p { font-size: 1.3rem; margin-bottom: 0.4rem; }
.g1a7-testimonial-author {
  font-size: 1.1rem;
  color: var(--g1a7-secondary);
  font-weight: 600;
}

/* === Stats === */
.g1a7-stats-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.g1a7-stat-item {
  flex: 1;
  background: var(--g1a7-bg-card);
  border-radius: var(--g1a7-radius);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--g1a7-border);
}
.g1a7-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--g1a7-accent);
  line-height: 2.4rem;
}
.g1a7-stat-label {
  font-size: 1.1rem;
  color: var(--g1a7-muted);
}

/* === Payment Icons === */
.g1a7-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}
.g1a7-payment-item {
  background: var(--g1a7-bg-card);
  border: 1px solid var(--g1a7-border);
  border-radius: var(--g1a7-radius);
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--g1a7-text-light);
}

/* === Winners === */
.g1a7-winner-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  background: var(--g1a7-bg-card);
  border-radius: var(--g1a7-radius);
  margin-bottom: 0.5rem;
  border: 1px solid var(--g1a7-border);
}
.g1a7-winner-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--g1a7-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
}
.g1a7-winner-info { flex: 1; }
.g1a7-winner-name { font-size: 1.2rem; font-weight: 600; color: var(--g1a7-text); }
.g1a7-winner-game { font-size: 1.1rem; color: var(--g1a7-muted); }
.g1a7-winner-amount { font-size: 1.4rem; font-weight: 700; color: #4CAF50; }

/* === Help Page Styles === */
.g1a7-help-content {
  padding-top: 68px;
}
.g1a7-help-content h1 {
  font-size: 2rem;
  color: var(--g1a7-accent);
  margin-bottom: 1.2rem;
  padding-top: 1rem;
}
.g1a7-help-content h2 {
  font-size: 1.7rem;
  color: var(--g1a7-secondary);
  margin: 1.5rem 0 0.8rem;
}
.g1a7-faq-item {
  background: var(--g1a7-bg-card);
  border-radius: var(--g1a7-radius);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  border: 1px solid var(--g1a7-border);
}
.g1a7-faq-q {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--g1a7-accent);
  margin-bottom: 0.5rem;
}
.g1a7-faq-a {
  font-size: 1.3rem;
  color: var(--g1a7-text-light);
  line-height: 1.7rem;
}

/* === Desktop: hide bottom nav === */
@media (min-width: 769px) {
  .g1a7-bnav { display: none; }
}
/* === Mobile: bottom padding === */
@media (max-width: 768px) {
  .g1a7-main-content { padding-bottom: 80px; }
}
