/* vipta - core stylesheet (basefiles) */
/* All custom classes use the sab4- prefix. */
/* Palette: #FFE135 (accent/gold), #495057 (slate), #DB7093 (rose), #273746 (dark bg) */

:root {
  --sab4-primary: #FFE135;
  --sab4-secondary: #DB7093;
  --sab4-bg: #273746;
  --sab4-bg-dark: #1c2733;
  --sab4-bg-light: #2f4254;
  --sab4-text: #f3f6f8;
  --sab4-text-muted: #b8c4ce;
  --sab4-slate: #495057;
  --sab4-radius: 1.2rem;
  --sab4-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.28);
}

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

html { font-size: 62.5%; scroll-behavior: smooth; }

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

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

.sab4-container { width: 100%; padding: 0 1.2rem; }
.sab4-wrapper { max-width: 430px; margin: 0 auto; }

/* ===== Header ===== */
.sab4-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: linear-gradient(135deg, var(--sab4-bg-dark), var(--sab4-bg-light));
  border-bottom: 0.2rem solid var(--sab4-primary);
  z-index: 1000;
  padding: 0.8rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.sab4-logo { display: flex; align-items: center; gap: 0.6rem; color: var(--sab4-primary); font-weight: 700; font-size: 1.6rem; }
.sab4-logo img { width: 2.8rem; height: 2.8rem; border-radius: 0.6rem; }
.sab4-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.sab4-btn {
  border: none; cursor: pointer; border-radius: 2rem;
  font-weight: 600; font-size: 1.2rem; padding: 0.7rem 1.4rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  min-height: 3.2rem; display: inline-flex; align-items: center; gap: 0.4rem;
}
.sab4-btn:active { transform: scale(0.96); }
.sab4-btn-register { background: var(--sab4-primary); color: var(--sab4-bg-dark); box-shadow: var(--sab4-shadow); }
.sab4-btn-login { background: transparent; color: var(--sab4-text); border: 0.15rem solid var(--sab4-secondary); }
.sab4-menu-icon {
  background: transparent; border: none; color: var(--sab4-primary);
  font-size: 2.2rem; cursor: pointer; padding: 0.3rem;
}

/* ===== Mobile menu ===== */
.sab4-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  opacity: 0; pointer-events: none; transition: opacity 0.25s; z-index: 9998;
}
.sab4-menu-overlay.sab4-overlay-show { opacity: 1; pointer-events: auto; }
.sab4-mobile-menu {
  position: fixed; top: 0; right: -85%; width: 80%; max-width: 320px;
  height: 100%; background: var(--sab4-bg-dark); z-index: 9999;
  transition: right 0.3s ease; padding: 1.5rem 1.2rem; overflow-y: auto;
}
.sab4-mobile-menu.sab4-menu-open { right: 0; }
.sab4-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.sab4-menu-head span { color: var(--sab4-primary); font-weight: 700; font-size: 1.6rem; }
.sab4-menu-close { background: transparent; border: none; color: var(--sab4-text); font-size: 2rem; cursor: pointer; }
.sab4-menu-list { list-style: none; }
.sab4-menu-list li { margin-bottom: 0.8rem; }
.sab4-menu-list a {
  display: block; padding: 0.9rem 1rem; border-radius: 0.8rem;
  color: var(--sab4-text); background: var(--sab4-bg-light); font-size: 1.3rem;
  transition: background 0.2s;
}
.sab4-menu-list a:hover, .sab4-menu-list a:active { background: var(--sab4-secondary); color: #fff; }

/* ===== Main ===== */
.sab4-main { padding-top: 6rem; padding-bottom: 8rem; }
@media (max-width: 768px) { .sab4-main { padding-bottom: 8rem; } }

/* ===== Carousel ===== */
.sab4-carousel { position: relative; width: 100%; height: 18rem; overflow: hidden; border-radius: 1.2rem; margin-bottom: 1.4rem; }
.sab4-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease;
  cursor: pointer;
}
.sab4-slide.sab4-slide-active { opacity: 1; }
.sab4-slide img { width: 100%; height: 100%; object-fit: cover; }
.sab4-slide-caption {
  position: absolute; left: 1rem; bottom: 1rem; color: #fff;
  font-size: 1.4rem; font-weight: 700; text-shadow: 0 0.1rem 0.4rem rgba(0,0,0,0.6);
  background: rgba(39,55,70,0.55); padding: 0.4rem 0.8rem; border-radius: 0.6rem;
}
.sab4-dots { position: absolute; bottom: 0.8rem; right: 1rem; display: flex; gap: 0.4rem; }
.sab4-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; }
.sab4-dot.sab4-dot-active { background: var(--sab4-primary); }

/* ===== Section titles ===== */
.sab4-section { margin-bottom: 2rem; }
.sab4-section-title {
  font-size: 1.7rem; color: var(--sab4-primary); margin-bottom: 0.8rem;
  padding-left: 0.8rem; border-left: 0.35rem solid var(--sab4-secondary);
}
.sab4-h1 { font-size: 1.8rem; color: var(--sab4-primary); margin: 0.6rem 0 1rem; line-height: 1.3; }
.sab4-lead { color: var(--sab4-text-muted); font-size: 1.3rem; margin-bottom: 1rem; }

/* ===== Filter tabs ===== */
.sab4-filter-bar { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.4rem 0 1rem; }
.sab4-filter-tab {
  background: var(--sab4-bg-light); color: var(--sab4-text-muted);
  border: 0.15rem solid transparent; border-radius: 2rem;
  padding: 0.5rem 1.2rem; font-size: 1.2rem; cursor: pointer; white-space: nowrap;
}
.sab4-filter-tab.sab4-filter-active { background: var(--sab4-primary); color: var(--sab4-bg-dark); border-color: var(--sab4-primary); font-weight: 600; }

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

/* ===== Info cards ===== */
.sab4-card {
  background: var(--sab4-bg-light); border-radius: var(--sab4-radius);
  padding: 1.2rem; margin-bottom: 1rem; box-shadow: var(--sab4-shadow);
}
.sab4-card h3 { color: var(--sab4-primary); font-size: 1.4rem; margin-bottom: 0.6rem; }
.sab4-card p { color: var(--sab4-text-muted); font-size: 1.25rem; margin-bottom: 0.6rem; }
.sab4-card a { color: var(--sab4-secondary); font-weight: 600; }

/* ===== Promo banner ===== */
.sab4-promo {
  background: linear-gradient(135deg, var(--sab4-secondary), #b85479);
  border-radius: var(--sab4-radius); padding: 1.4rem; text-align: center; margin-bottom: 1.2rem; color: #fff;
}
.sab4-promo h3 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.sab4-promo p { font-size: 1.25rem; margin-bottom: 0.8rem; color: #fff; }
.sab4-promo a { background: var(--sab4-primary); color: var(--sab4-bg-dark); padding: 0.7rem 1.6rem; border-radius: 2rem; font-weight: 700; display: inline-block; }

/* ===== Feature list ===== */
.sab4-feature-list { list-style: none; }
.sab4-feature-list li { display: flex; gap: 0.8rem; align-items: flex-start; margin-bottom: 0.8rem; font-size: 1.25rem; color: var(--sab4-text-muted); }
.sab4-feature-list i { color: var(--sab4-primary); font-size: 1.6rem; margin-top: 0.2rem; }

/* ===== Testimonials ===== */
.sab4-testimonial { background: var(--sab4-bg-light); border-radius: 1rem; padding: 1rem; margin-bottom: 0.8rem; border-left: 0.3rem solid var(--sab4-primary); }
.sab4-testimonial p { font-size: 1.2rem; color: var(--sab4-text); margin-bottom: 0.4rem; }
.sab4-testimonial span { color: var(--sab4-secondary); font-size: 1.1rem; }

/* ===== Payment row ===== */
.sab4-payment-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.sab4-payment-chip { background: var(--sab4-bg-light); color: var(--sab4-text); padding: 0.5rem 1rem; border-radius: 1.5rem; font-size: 1.1rem; border: 0.1rem solid var(--sab4-primary); }

/* ===== Winners ===== */
.sab4-winner { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 0.1rem solid var(--sab4-bg-light); font-size: 1.2rem; }
.sab4-winner span:first-child { color: var(--sab4-text); }
.sab4-winner span:last-child { color: var(--sab4-primary); font-weight: 700; }

/* ===== FAQ ===== */
.sab4-faq-item { background: var(--sab4-bg-light); border-radius: 0.8rem; margin-bottom: 0.6rem; padding: 0.9rem 1rem; }
.sab4-faq-item h4 { color: var(--sab4-primary); font-size: 1.25rem; margin-bottom: 0.3rem; }
.sab4-faq-item p { color: var(--sab4-text-muted); font-size: 1.2rem; }

/* ===== Footer ===== */
.sab4-footer {
  background: var(--sab4-bg-dark); padding: 1.6rem 1.2rem 2rem;
  border-top: 0.2rem solid var(--sab4-primary);
}
.sab4-footer-brand { color: var(--sab4-primary); font-weight: 700; font-size: 1.5rem; margin-bottom: 0.5rem; }
.sab4-footer-desc { color: var(--sab4-text-muted); font-size: 1.15rem; margin-bottom: 1rem; }
.sab4-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin-bottom: 1rem; }
.sab4-footer-links a { color: var(--sab4-text); font-size: 1.15rem; }
.sab4-footer-links a:hover { color: var(--sab4-primary); }
.sab4-footer-promos { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.sab4-footer-promos button, .sab4-footer-promos a {
  background: var(--sab4-primary); color: var(--sab4-bg-dark);
  padding: 0.6rem 1.2rem; border-radius: 2rem; font-weight: 600; font-size: 1.15rem; border: none; cursor: pointer;
}
.sab4-footer-copy { color: var(--sab4-text-muted); font-size: 1.1rem; border-top: 0.1rem solid var(--sab4-bg-light); padding-top: 0.8rem; }

/* ===== Back to top ===== */
.sab4-top-btn {
  position: fixed; right: 1.2rem; bottom: 7.5rem; z-index: 900;
  background: var(--sab4-primary); color: var(--sab4-bg-dark);
  border: none; border-radius: 50%; width: 4rem; height: 4rem; font-size: 1.8rem; cursor: pointer;
  box-shadow: var(--sab4-shadow); display: none;
}
@media (max-width: 768px) { .sab4-top-btn { display: block; } }

/* ===== Mobile bottom nav ===== */
.sab4-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 6rem;
  background: var(--sab4-bg-dark); border-top: 0.15rem solid var(--sab4-primary);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000;
}
.sab4-nav-btn {
  background: transparent; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  min-width: 6rem; min-height: 5rem; color: var(--sab4-text-muted);
  font-size: 1rem; transition: color 0.2s, transform 0.18s;
}
.sab4-nav-btn i, .sab4-nav-btn .material-icons-outlined, .sab4-nav-btn ion-icon { font-size: 2.2rem; }
.sab4-nav-btn:active { transform: scale(0.92); }
.sab4-nav-btn.sab4-nav-active { color: var(--sab4-primary); }
.sab4-nav-btn.sab4-nav-promo { color: var(--sab4-secondary); }
.sab4-nav-btn.sab4-nav-promo i { font-size: 2.4rem; }

@media (min-width: 769px) {
  .sab4-bottom-nav { display: none; }
  .sab4-top-btn { bottom: 2rem; }
}
