/* ============================================================
 * l899.homes - theme-a793.css
 * All custom classes use the "sa79-" prefix.
 * Color palette: #FFA500 | #212F3D | #48D1CC | #FF8000 | #004D40
 * Mobile-first: max-width: 430px viewport optimized.
 * ============================================================ */

:root {
  --sa79-primary: #FFA500;
  --sa79-bg: #212F3D;
  --sa79-accent: #48D1CC;
  --sa79-warm: #FF8000;
  --sa79-deep: #004D40;
  --sa79-text: #F5F7FA;
  --sa79-muted: #B8C4CE;
  --sa79-card: #2A3A4C;
  --sa79-border: #3A4B5E;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, sans-serif;
  background: var(--sa79-bg);
  color: var(--sa79-text);
  line-height: 1.5rem;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  overflow-x: hidden;
}

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

/* ---------- Layout ---------- */
.sa79-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 12px; }
.sa79-wrapper { padding: 14px 12px; }
.sa79-grid { display: grid; gap: 10px; }

/* ---------- Header ---------- */
.sa79-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1b2632 0%, #004D40 100%);
  border-bottom: 2px solid var(--sa79-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.sa79-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  max-width: 430px;
  margin: 0 auto;
}
.sa79-logo { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 18px; }
.sa79-logo img { width: 30px; height: 30px; border-radius: 6px; }
.sa79-logo span b { color: var(--sa79-primary); }
.sa79-menu-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--sa79-border);
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
}
.sa79-menu-btn.sa79-active { background: var(--sa79-warm); }
.sa79-auth { display: flex; gap: 6px; }
.sa79-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .3px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.sa79-btn-login {
  background: transparent;
  color: #fff;
  border: 1px solid var(--sa79-accent);
}
.sa79-btn-register {
  background: linear-gradient(90deg, var(--sa79-warm), var(--sa79-primary));
  color: #1a1a1a;
  box-shadow: 0 3px 8px rgba(255,128,0,.35);
}
.sa79-btn:hover { transform: translateY(-1px); }

/* ---------- Expandable nav menu ---------- */
.sa79-nav-menu {
  max-height: 0;
  overflow: hidden;
  background: #18222e;
  transition: max-height .3s ease;
  border-top: 1px solid var(--sa79-border);
}
.sa79-nav-menu.sa79-open { max-height: 460px; }
.sa79-nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.sa79-nav-menu a {
  display: block;
  padding: 9px 10px;
  font-size: 13px;
  color: var(--sa79-text);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--sa79-border);
  border-radius: 8px;
}
.sa79-nav-menu a:hover { background: var(--sa79-deep); color: #fff; }

/* ---------- Carousel ---------- */
.sa79-carousel {
  position: relative;
  margin: 12px 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
  aspect-ratio: 16 / 9;
  background: #0e1620;
}
.sa79-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  cursor: pointer;
}
.sa79-slide.sa79-active { opacity: 1; }
.sa79-slide img { width: 100%; height: 100%; object-fit: cover; }
.sa79-slide-caption {
  position: absolute;
  left: 12px; bottom: 12px;
  background: rgba(0,0,0,.55);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}
.sa79-dots {
  position: absolute;
  right: 10px; bottom: 10px;
  display: flex; gap: 5px;
}
.sa79-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none; cursor: pointer;
}
.sa79-dot.sa79-active { background: var(--sa79-primary); }

/* ---------- Section title ---------- */
.sa79-section { margin: 18px 0; }
.sa79-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  padding-left: 10px;
  border-left: 4px solid var(--sa79-primary);
}
.sa79-section-title .material-icons,
.sa79-section-title i { color: var(--sa79-primary); font-size: 20px; }
.sa79-section-sub { color: var(--sa79-muted); font-size: 12px; margin: -6px 0 10px 14px; }

/* ---------- Game grid ---------- */
.sa79-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.sa79-game-card {
  background: var(--sa79-card);
  border: 1px solid var(--sa79-border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
  text-align: center;
}
.sa79-game-card:hover { transform: translateY(-2px); border-color: var(--sa79-primary); }
.sa79-game-card figure { margin: 0; }
.sa79-game-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0e1620;
}
.sa79-game-name {
  font-size: 11px;
  color: var(--sa79-text);
  padding: 5px 4px 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Category chips ---------- */
.sa79-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 10px;
  -webkit-overflow-scrolling: touch;
}
.sa79-chip {
  flex: 0 0 auto;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 16px;
  background: var(--sa79-card);
  border: 1px solid var(--sa79-border);
  color: var(--sa79-text);
  white-space: nowrap;
}
.sa79-chip.is-active {
  background: var(--sa79-warm);
  color: #1a1a1a;
  border-color: var(--sa79-warm);
  font-weight: 700;
}

/* ---------- Promo CTA blocks ---------- */
.sa79-cta {
  background: linear-gradient(135deg, var(--sa79-deep), #003a32);
  border: 1px solid var(--sa79-accent);
  border-radius: 14px;
  padding: 14px;
  margin: 14px 0;
}
.sa79-cta h3 { margin: 0 0 6px; font-size: 16px; color: #fff; }
.sa79-cta p { margin: 0 0 10px; font-size: 13px; color: var(--sa79-muted); }
.sa79-cta-link {
  display: inline-block;
  font-weight: 700;
  color: var(--sa79-primary);
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 22px;
  border: 2px solid var(--sa79-primary);
}
.sa79-cta-link:hover { background: var(--sa79-primary); color: #1a1a1a; }

/* ---------- Info / SEO article ---------- */
.sa79-article {
  background: #1b2632;
  border-radius: 14px;
  padding: 14px;
  border: 1px solid var(--sa79-border);
}
.sa79-article h2 {
  color: var(--sa79-primary);
  font-size: 18px;
  margin: 14px 0 8px;
}
.sa79-article h2:first-child { margin-top: 0; }
.sa79-article h3 { color: var(--sa79-accent); font-size: 15px; margin: 12px 0 6px; }
.sa79-article p { font-size: 13px; line-height: 1.7; color: var(--sa79-text); margin: 0 0 10px; }
.sa79-article ul { padding-left: 18px; font-size: 13px; line-height: 1.7; }
.sa79-article a { color: var(--sa79-warm); text-decoration: underline; }

/* ---------- Feature cards ---------- */
.sa79-features { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sa79-feature {
  background: var(--sa79-card);
  border: 1px solid var(--sa79-border);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.sa79-feature i, .sa79-feature .material-icons {
  color: var(--sa79-primary);
  font-size: 26px;
}
.sa79-feature h4 { margin: 6px 0 4px; font-size: 13px; color: #fff; }
.sa79-feature p { margin: 0; font-size: 11px; color: var(--sa79-muted); }

/* ---------- FAQ ---------- */
.sa79-faq-item {
  background: var(--sa79-card);
  border: 1px solid var(--sa79-border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.sa79-faq-item h4 { margin: 0 0 4px; color: var(--sa79-primary); font-size: 13px; }
.sa79-faq-item p { margin: 0; font-size: 12px; color: var(--sa79-text); line-height: 1.6; }

/* ---------- Payment methods ---------- */
.sa79-pay { display: flex; flex-wrap: wrap; gap: 8px; }
.sa79-pay span {
  background: #fff;
  color: #1b2632;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}

/* ---------- Footer ---------- */
.sa79-footer {
  background: #0f1822;
  border-top: 2px solid var(--sa79-primary);
  padding: 16px 12px 92px;
  margin-top: 18px;
}
.sa79-footer h4 { color: var(--sa79-accent); font-size: 14px; margin: 10px 0 6px; }
.sa79-footer p { color: var(--sa79-muted); font-size: 12px; line-height: 1.6; }
.sa79-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 10px 0;
}
.sa79-footer-links a {
  font-size: 12px;
  color: var(--sa79-text);
  padding: 5px 8px;
  background: rgba(255,255,255,.04);
  border-radius: 6px;
}
.sa79-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}
.sa79-footer-promo button, .sa79-footer-promo a {
  flex: 1 1 40%;
  min-width: 120px;
  font-size: 12px;
  font-weight: 700;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid var(--sa79-border);
  background: linear-gradient(90deg, var(--sa79-warm), var(--sa79-primary));
  color: #1a1a1a;
  text-align: center;
  cursor: pointer;
}
.sa79-footer-copy { text-align: center; color: #6a7682; font-size: 11px; margin-top: 12px; }

/* ---------- Bottom navigation (mobile only) ---------- */
.sa79-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 60px;
  background: linear-gradient(180deg, #18222e 0%, #0d1620 100%);
  border-top: 2px solid var(--sa79-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 14px rgba(0,0,0,.4);
}
.sa79-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  color: var(--sa79-muted);
  font-size: 11px;
  gap: 2px;
  transition: color .15s ease, transform .15s ease;
}
.sa79-bottom-nav a i,
.sa79-bottom-nav a .material-icons {
  font-size: 22px;
}
.sa79-bottom-nav a:active { transform: scale(.92); }
.sa79-bottom-nav a.sa79-current {
  color: var(--sa79-primary);
}
.sa79-bottom-nav a.sa79-current::after {
  content: "";
  width: 22px; height: 3px;
  background: var(--sa79-primary);
  border-radius: 3px;
  margin-top: 2px;
}
.sa79-pressed { transform: scale(.9); }

/* ---------- Desktop: hide bottom nav, expand layout ---------- */
@media (min-width: 769px) {
  body { max-width: 960px; padding-bottom: 0; }
  .sa79-header-row, .sa79-container, .sa79-footer { max-width: 960px; }
  .sa79-bottom-nav { display: none; }
  .sa79-game-grid { grid-template-columns: repeat(6, 1fr); }
  .sa79-features { grid-template-columns: repeat(4, 1fr); }
  .sa79-footer { padding-bottom: 24px; }
  .sa79-footer-links { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile content clearance for the fixed bottom nav. */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* ---------- Extended content modules ---------- */
.sa79-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sa79-stat {
  background: linear-gradient(135deg, #243549, #142432);
  border: 1px solid var(--sa79-border);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
}
.sa79-stat b { display: block; color: var(--sa79-primary); font-size: 17px; margin-bottom: 3px; }
.sa79-stat span { color: var(--sa79-muted); font-size: 10px; }
.sa79-timeline { display: grid; gap: 8px; }
.sa79-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--sa79-card);
  border: 1px solid var(--sa79-border);
  border-radius: 10px;
  padding: 10px;
}
.sa79-step b {
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sa79-primary);
  color: #10202d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sa79-step h4 { margin: 0 0 3px; font-size: 13px; color: #fff; }
.sa79-step p { margin: 0; font-size: 12px; color: var(--sa79-muted); line-height: 1.6; }
.sa79-review { background: #172331; border-left: 3px solid var(--sa79-accent); border-radius: 10px; padding: 10px; margin-bottom: 8px; }
.sa79-review p { margin: 0 0 4px; font-size: 12px; color: var(--sa79-text); line-height: 1.6; }
.sa79-review strong { color: var(--sa79-primary); font-size: 12px; }
.sa79-bottom-nav a ion-icon,
.sa79-bottom-nav a .bi { font-size: 22px; }

/* ---------- Utility ---------- */
.sa79-center { text-align: center; }
.sa79-mt-12 { margin-top: 12px; }
.sa79-hide-desktop { display: block; }
