/* ===========================================================
   aa99.homes - style.css
   All custom classes use the "g870-" prefix.
   Palette: #E8F5E8 (mint) | #141414 (ink) | #F8F9FA (snow)
   Mobile-first, max container 430px.
   =========================================================== */

:root {
  --g870-mint: #E8F5E8;
  --g870-ink: #141414;
  --g870-snow: #F8F9FA;
  --g870-primary: #1F8A4C;
  --g870-primary-dark: #145C32;
  --g870-accent: #FFB300;
  --g870-accent-dark: #C78700;
  --g870-text: #1c1c1c;
  --g870-muted: #6b7280;
  --g870-bg: #ffffff;
  --g870-border: #e6e9ee;
  --g870-card: #ffffff;
  --g870-shadow: 0 4px 18px rgba(20, 20, 20, .08);
  --g870-radius: 14px;
  --g870-radius-lg: 18px;
}

/* Reset & base ------------------------------------------------ */
* { box-sizing: border-box; }
html {
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, sans-serif;
  background: var(--g870-snow);
  color: var(--g870-text);
  line-height: 1.5;
  font-size: 1.6rem;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--g870-primary-dark); text-decoration: none; }
a:hover { color: var(--g870-primary); }

/* Layout helpers ---------------------------------------------- */
.g870-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--g870-bg);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 40px rgba(0,0,0,.05);
}
.g870-container {
  width: 100%;
  padding: 0 1.4rem;
}
.g870-section {
  padding: 2.4rem 0 1.6rem;
}
.g870-section--alt { background: var(--g870-mint); }

/* Typography -------------------------------------------------- */
.g870-h1, .g870-h2, .g870-h3 { margin: 0 0 1rem; line-height: 1.3; }
.g870-h1 { font-size: 2.2rem; color: var(--g870-ink); font-weight: 800; }
.g870-h2 {
  font-size: 1.9rem; color: var(--g870-ink); font-weight: 700;
  display: flex; align-items: center; gap: .6rem;
}
.g870-h2::before {
  content: ""; width: 4px; height: 1.7rem;
  background: linear-gradient(var(--g870-primary), var(--g870-accent));
  border-radius: 4px;
}
.g870-h3 { font-size: 1.5rem; color: var(--g870-primary-dark); font-weight: 700; }
.g870-lead { font-size: 1.45rem; color: #374151; }
.g870-muted { color: var(--g870-muted); font-size: 1.35rem; }
.g870-text-link {
  color: var(--g870-primary-dark);
  font-weight: 700;
  border-bottom: 1px dashed var(--g870-primary);
}
.g870-text-link:hover { color: var(--g870-primary); }

/* Header ------------------------------------------------------ */
.g870-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(120deg, var(--g870-ink) 0%, #1f2a23 100%);
  color: #fff;
  padding: .8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  border-bottom: 3px solid var(--g870-primary);
}
.g870-logo {
  display: flex; align-items: center; gap: .6rem;
  flex: 1; min-width: 0;
}
.g870-logo img {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--g870-mint); padding: 2px;
}
.g870-logo b { font-size: 1.6rem; color: #fff; font-weight: 800; }
.g870-logo span { color: var(--g870-accent); }

.g870-menu-btn {
  background: rgba(255,255,255,.08);
  border: 0; color: #fff;
  width: 36px; height: 36px; border-radius: 8px;
  font-size: 1.8rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.g870-menu-btn:hover { background: rgba(255,255,255,.18); }

.g870-header-actions { display: flex; gap: .5rem; }
.g870-btn {
  border: 0; border-radius: 10px;
  padding: .65rem 1.1rem;
  font-size: 1.35rem; font-weight: 700;
  cursor: pointer; line-height: 1;
  display: inline-flex; align-items: center; gap: .4rem;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.g870-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.g870-btn--register {
  background: linear-gradient(135deg, var(--g870-accent), var(--g870-accent-dark));
  color: #1a1a1a;
  box-shadow: 0 3px 10px rgba(255,179,0,.35);
}
.g870-btn--login {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.55);
}
.g870-btn--cta {
  background: linear-gradient(135deg, var(--g870-primary), var(--g870-primary-dark));
  color: #fff; width: 100%;
  justify-content: center;
  padding: 1.1rem; font-size: 1.55rem;
  box-shadow: 0 6px 18px rgba(31,138,76,.35);
}
.g870-btn--ghost {
  background: #fff; color: var(--g870-primary-dark);
  border: 1.5px solid var(--g870-primary);
}

/* Nav drawer -------------------------------------------------- */
.g870-nav-drawer {
  position: fixed;
  top: 0; left: 0;
  width: 80%; max-width: 320px;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  transform: translateX(-105%);
  transition: transform .25s ease;
  padding: 2rem 1.4rem;
  overflow-y: auto;
  box-shadow: 4px 0 30px rgba(0,0,0,.15);
}
.g870-nav-drawer.g870-nav-open { transform: translateX(0); }
.g870-nav-drawer h4 {
  font-size: 1.4rem; color: var(--g870-muted);
  text-transform: uppercase; letter-spacing: .08em; margin: 1.4rem 0 .6rem;
}
.g870-nav-drawer a {
  display: block;
  padding: .85rem .8rem;
  border-radius: 10px;
  font-size: 1.45rem; color: var(--g870-ink);
  border-bottom: 1px solid var(--g870-border);
}
.g870-nav-drawer a:hover { background: var(--g870-mint); color: var(--g870-primary-dark); }
.g870-nav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 9998; opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.g870-nav-overlay.g870-nav-open { opacity: 1; pointer-events: auto; }

/* Hero / Carousel -------------------------------------------- */
.g870-hero { padding: 1.2rem 0 .4rem; }
.g870-carousel {
  position: relative;
  border-radius: var(--g870-radius-lg);
  overflow: hidden;
  box-shadow: var(--g870-shadow);
  aspect-ratio: 16 / 9;
  background: #111;
}
.g870-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .5s ease;
  cursor: pointer;
}
.g870-slide.g870-slide-active { opacity: 1; }
.g870-slide img { width: 100%; height: 100%; object-fit: cover; }
.g870-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: #fff; font-weight: 700; font-size: 1.4rem;
}
.g870-dots {
  display: flex; gap: .5rem; justify-content: center;
  margin-top: .8rem;
}
.g870-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #c9ced6; cursor: pointer; transition: all .2s;
}
.g870-dot.g870-dot-active {
  background: var(--g870-primary); width: 22px; border-radius: 5px;
}

/* Category & game grid --------------------------------------- */
.g870-cat-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.g870-cat-head .g870-more {
  font-size: 1.3rem; color: var(--g870-primary-dark); font-weight: 700;
}
.g870-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}
.g870-card {
  background: var(--g870-card);
  border-radius: var(--g870-radius);
  overflow: hidden;
  box-shadow: var(--g870-shadow);
  border: 1px solid var(--g870-border);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  display: flex; flex-direction: column;
}
.g870-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(20,20,20,.12); }
.g870-card-img {
  aspect-ratio: 1 / 1;
  background: var(--g870-mint);
  display: flex; align-items: center; justify-content: center;
}
.g870-card-img img { width: 100%; height: 100%; object-fit: cover; }
.g870-card-name {
  padding: .5rem .4rem;
  font-size: 1.2rem;
  text-align: center;
  color: var(--g870-ink);
  font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.g870-card-tag {
  position: absolute;
  background: var(--g870-accent); color: #1a1a1a;
  font-size: 1rem; padding: 2px 6px; border-radius: 6px;
  font-weight: 700;
}

/* Info / feature modules ------------------------------------- */
.g870-card-block {
  background: #fff;
  border-radius: var(--g870-radius);
  padding: 1.4rem;
  box-shadow: var(--g870-shadow);
  border: 1px solid var(--g870-border);
  margin-bottom: 1rem;
}
.g870-features {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem;
}
.g870-feature {
  background: var(--g870-mint);
  border-radius: 12px;
  padding: 1rem; text-align: center;
}
.g870-feature i { color: var(--g870-primary); font-size: 2.2rem; }
.g870-feature b { display: block; font-size: 1.35rem; margin: .4rem 0 .2rem; color: var(--g870-ink); }
.g870-feature span { font-size: 1.2rem; color: var(--g870-muted); }

.g870-rtp-row {
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem 0; border-bottom: 1px dashed var(--g870-border);
}
.g870-rtp-row:last-child { border-bottom: 0; }
.g870-rtp-name { flex: 1; font-size: 1.35rem; font-weight: 600; }
.g870-rtp-bar {
  flex: 1.4; height: 8px; border-radius: 5px;
  background: #eef0f3; overflow: hidden;
}
.g870-rtp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--g870-primary), var(--g870-accent));
}
.g870-rtp-val { width: 4rem; text-align: right; font-weight: 700; color: var(--g870-primary-dark); }

.g870-winners {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem;
}
.g870-winner {
  background: var(--g870-snow);
  border-radius: 10px; padding: .7rem;
  display: flex; align-items: center; gap: .6rem;
  border: 1px solid var(--g870-border);
}
.g870-winner i { color: var(--g870-accent); font-size: 1.6rem; }
.g870-winner b { font-size: 1.2rem; color: var(--g870-ink); }
.g870-winner span { font-size: 1.1rem; color: var(--g870-muted); display: block; }

.g870-testimonial {
  background: var(--g870-mint);
  border-radius: 12px; padding: 1rem;
  margin-bottom: .8rem;
}
.g870-testimonial b { color: var(--g870-primary-dark); }
.g870-testimonial p { margin: .4rem 0 0; font-size: 1.3rem; color: #2d3748; }

.g870-pay {
  display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center;
}
.g870-pay span {
  background: #fff; border: 1px solid var(--g870-border);
  border-radius: 8px; padding: .5rem .8rem;
  font-size: 1.2rem; font-weight: 600; color: var(--g870-ink);
  display: inline-flex; align-items: center; gap: .3rem;
}

.g870-cta-box {
  background: linear-gradient(135deg, var(--g870-ink), #1f2a23);
  color: #fff;
  border-radius: var(--g870-radius-lg);
  padding: 1.6rem; text-align: center;
  margin: 1.4rem 0;
}
.g870-cta-box h3 { color: var(--g870-accent); margin-bottom: .4rem; }
.g870-cta-box p { font-size: 1.3rem; margin: 0 0 1rem; color: #d1d5db; }

/* Footer ------------------------------------------------------ */
.g870-footer {
  background: var(--g870-ink);
  color: #d1d5db;
  padding: 2.4rem 1.4rem 6rem;
  margin-top: 2rem;
  font-size: 1.3rem;
}
.g870-footer h4 { color: #fff; font-size: 1.4rem; margin: 1rem 0 .6rem; }
.g870-footer-links {
  display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0;
}
.g870-footer-links a {
  color: #d1d5db; font-size: 1.25rem;
  background: rgba(255,255,255,.06);
  padding: .35rem .7rem; border-radius: 8px;
}
.g870-footer-links a:hover { background: var(--g870-primary); color: #fff; }
.g870-footer-copy {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 1.2rem; padding-top: 1rem;
  font-size: 1.2rem; color: #9ca3af; text-align: center;
}

/* Mobile bottom navigation ----------------------------------- */
.g870-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: #fff;
  border-top: 1px solid var(--g870-border);
  box-shadow: 0 -4px 18px rgba(20,20,20,.08);
  display: flex; justify-content: space-around; align-items: stretch;
  z-index: 1000;
  padding: 0;
}
.g870-bottomnav-btn {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  background: transparent; border: 0;
  font-size: 1.1rem; color: var(--g870-muted);
  cursor: pointer; padding: 4px 2px;
  transition: color .15s ease, transform .15s ease;
  min-width: 60px; min-height: 60px;
  text-decoration: none;
}
.g870-bottomnav-btn i,
.g870-bottomnav-btn .material-icons-outlined,
.g870-bottomnav-btn ion-icon { font-size: 24px; }
.g870-bottomnav-btn ion-icon { width: 24px; height: 24px; }
.g870-bottomnav-btn:hover { color: var(--g870-primary); transform: translateY(-1px); }
.g870-bottomnav-active {
  color: var(--g870-primary) !important;
}
.g870-bottomnav-active::before {
  content: ""; position: absolute; top: 0;
  width: 28px; height: 3px; border-radius: 0 0 4px 4px;
  background: var(--g870-primary);
}
.g870-bottomnav-btn--promo {
  color: var(--g870-accent-dark);
}

/* Desktop: hide bottom nav, widen wrapper -------------------- */
@media (min-width: 769px) {
  .g870-bottomnav { display: none; }
  .g870-footer { padding-bottom: 2.4rem; }
  .g870-wrapper {
    max-width: 430px;
    box-shadow: 0 0 60px rgba(0,0,0,.08);
  }
}

/* Mobile: reserve room for bottom nav ------------------------ */
@media (max-width: 768px) {
  main.g870-main { padding-bottom: 80px; }
}

/* Utility ----------------------------------------------------- */
.g870-row { display: flex; gap: .8rem; align-items: center; }
.g870-center { text-align: center; }
.g870-mt1 { margin-top: .6rem; }
.g870-mt2 { margin-top: 1.2rem; }
.g870-pill {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--g870-mint); color: var(--g870-primary-dark);
  padding: .3rem .8rem; border-radius: 999px;
  font-size: 1.15rem; font-weight: 700;
}
.g870-visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
