/* ============================================================
   222bet app - Core stylesheet
   All custom classes use the "sf98-" prefix.
   Color palette: #8B0000 | #3A3A3A | #C71585 | #FF0000
   Mobile-first, max-width 430px.
   ============================================================ */

:root {
  --sf98-primary: #8B0000;
  --sf98-dark: #3A3A3A;
  --sf98-magenta: #C71585;
  --sf98-red: #FF0000;
  --sf98-bg: #1a0d10;
  --sf98-bg2: #2a1418;
  --sf98-card: #241318;
  --sf98-text: #f4e9ec;
  --sf98-muted: #c9b6bc;
  --sf98-gold: #f5c451;
  --sf98-border: rgba(255, 255, 255, 0.08);
}

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

html { font-size: 62.5%; }

body {
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", Tahoma, sans-serif;
  background: var(--sf98-bg);
  color: var(--sf98-text);
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--sf98-gold); text-decoration: none; }
a:hover { color: var(--sf98-red); }

/* ---------- Layout ---------- */
.sf98-wrapper { max-width: 430px; margin: 0 auto; position: relative; background: var(--sf98-bg); min-height: 100vh; }
.sf98-container { padding: 0 1.2rem; width: 100%; }

/* ---------- Header ---------- */
.sf98-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(90deg, var(--sf98-primary), var(--sf98-dark));
  border-bottom: 2px solid var(--sf98-magenta);
  transition: background 0.3s ease;
}
.sf98-header-scrolled { box-shadow: 0 4px 16px rgba(0,0,0,0.45); }
.sf98-header-inner {
  max-width: 430px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; padding: 0.6rem 1.2rem; min-height: 5.4rem;
}
.sf98-logo { display: flex; align-items: center; gap: 0.8rem; color: #fff; font-weight: 700; font-size: 1.5rem; }
.sf98-logo img { width: 30px; height: 30px; border-radius: 6px; }
.sf98-logo span { background: linear-gradient(90deg, var(--sf98-gold), var(--sf98-red)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.sf98-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.sf98-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: none; border-radius: 2.0rem; padding: 0.7rem 1.3rem; font-size: 1.25rem;
  font-weight: 700; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 3.6rem; line-height: 1; color: #fff;
}
.sf98-btn:hover { transform: translateY(-1px); }
.sf98-btn-register { background: linear-gradient(90deg, var(--sf98-red), var(--sf98-magenta)); box-shadow: 0 4px 12px rgba(255,0,0,0.35); }
.sf98-btn-login { background: transparent; border: 2px solid var(--sf98-gold); color: var(--sf98-gold); }
.sf98-menu-toggle { background: transparent; border: none; color: #fff; font-size: 2.2rem; cursor: pointer; min-width: 4.4rem; min-height: 4.4rem; }

/* ---------- Mobile Menu ---------- */
.sf98-mobile-menu {
  position: fixed; top: 0; right: -85%; width: 80%; max-width: 340px; height: 100vh;
  background: var(--sf98-bg2); z-index: 9999; padding: 2rem 1.6rem; overflow-y: auto;
  transition: right 0.3s ease; border-left: 2px solid var(--sf98-magenta);
}
.sf98-menu-open { right: 0; }
.sf98-menu-close { background: transparent; border: none; color: #fff; font-size: 2.6rem; float: right; cursor: pointer; }
.sf98-mobile-menu h3 { color: var(--sf98-gold); margin: 1.5rem 0 0.8rem; font-size: 1.4rem; }
.sf98-mobile-menu ul { list-style: none; }
.sf98-mobile-menu li { border-bottom: 1px solid var(--sf98-border); }
.sf98-mobile-menu a { display: block; padding: 1.1rem 0.5rem; color: var(--sf98-text); font-size: 1.3rem; }
.sf98-mobile-menu a:hover { color: var(--sf98-red); padding-left: 1rem; }
.sf98-menu-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 9998;
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease;
}
.sf98-backdrop-show { opacity: 1; visibility: visible; }

/* ---------- Main content ---------- */
.sf98-main { padding-top: 6.6rem; padding-bottom: 8.5rem; }

/* ---------- Carousel ---------- */
.sf98-carousel { position: relative; overflow: hidden; border-radius: 1.2rem; margin: 1rem 0; }
.sf98-carousel-track { display: flex; transition: transform 0.5s ease; }
.sf98-slide { min-width: 100%; position: relative; }
.sf98-slide img { width: 100%; height: 180px; object-fit: cover; border-radius: 1.2rem; cursor: pointer; }
.sf98-slide-cap { position: absolute; left: 1.2rem; bottom: 1.2rem; color: #fff; font-size: 1.5rem; font-weight: 700; text-shadow: 0 2px 6px rgba(0,0,0,0.7); }
.sf98-carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.4); color: #fff; border: none; width: 3.2rem; height: 3.2rem; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.sf98-carousel-arrow.prev { left: 0.6rem; }
.sf98-carousel-arrow.next { right: 0.6rem; }
.sf98-carousel-dots { position: absolute; bottom: 0.6rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; }
.sf98-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; cursor: pointer; }
.sf98-dot-active { background: var(--sf98-red); }

/* ---------- Section / Headings ---------- */
.sf98-section { margin: 2rem 0; }
.sf98-section-title {
  font-size: 1.7rem; font-weight: 700; margin-bottom: 1rem; padding-left: 1rem;
  border-left: 4px solid var(--sf98-red); color: var(--sf98-text);
}
.sf98-section-title span { color: var(--sf98-gold); }
.sf98-h1 {
  font-size: 2.0rem; font-weight: 800; margin: 1.5rem 0 1rem; line-height: 1.3;
  background: linear-gradient(90deg, var(--sf98-gold), var(--sf98-red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sf98-lead { font-size: 1.35rem; color: var(--sf98-muted); margin-bottom: 1.2rem; }
.sf98-intro { font-size: 1.3rem; color: var(--sf98-text); margin-bottom: 1.5rem; }
.sf98-intro a, .sf98-body-text a { font-weight: 700; color: var(--sf98-red); }

/* ---------- Filter buttons ---------- */
.sf98-filters { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.5rem 0 1rem; }
.sf98-filter-btn {
  background: var(--sf98-card); color: var(--sf98-text); border: 1px solid var(--sf98-border);
  padding: 0.6rem 1.2rem; border-radius: 2rem; font-size: 1.2rem; white-space: nowrap; cursor: pointer;
}
.sf98-filter-active { background: linear-gradient(90deg, var(--sf98-primary), var(--sf98-magenta)); border-color: transparent; color: #fff; }

/* ---------- Game grid ---------- */
.sf98-game-group { margin-bottom: 2rem; }
.sf98-game-group-title { font-size: 1.5rem; color: var(--sf98-gold); margin: 1.2rem 0 0.8rem; font-weight: 700; display: flex; align-items: center; gap: 0.6rem; }
.sf98-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.sf98-card {
  background: var(--sf98-card); border: 1px solid var(--sf98-border); border-radius: 1rem;
  overflow: hidden; cursor: pointer; transition: transform 0.15s ease, border-color 0.15s ease; text-align: center;
}
.sf98-card:hover { transform: translateY(-2px); border-color: var(--sf98-red); }
.sf98-card img { width: 100%; height: 78px; object-fit: cover; }
.sf98-card-name { font-size: 1.05rem; color: var(--sf98-text); padding: 0.5rem 0.3rem; line-height: 1.25; min-height: 3.2rem; display: flex; align-items: center; justify-content: center; }

/* ---------- Feature / promo modules ---------- */
.sf98-feature-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.sf98-feature-card { background: linear-gradient(135deg, var(--sf98-bg2), var(--sf98-card)); border: 1px solid var(--sf98-border); border-left: 4px solid var(--sf98-magenta); border-radius: 1rem; padding: 1.4rem; }
.sf98-feature-card h3 { color: var(--sf98-gold); font-size: 1.4rem; margin-bottom: 0.6rem; }
.sf98-feature-card p { font-size: 1.25rem; color: var(--sf98-muted); }
.sf98-feature-card .sf98-link-text { display: inline-block; margin-top: 0.8rem; color: var(--sf98-red); font-weight: 700; }

.sf98-promo-box { background: linear-gradient(135deg, var(--sf98-primary), var(--sf98-dark)); border-radius: 1.2rem; padding: 1.6rem; text-align: center; margin: 1.5rem 0; border: 1px solid var(--sf98-magenta); }
.sf98-promo-box h3 { color: #fff; font-size: 1.6rem; margin-bottom: 0.6rem; }
.sf98-promo-box p { color: var(--sf98-muted); font-size: 1.25rem; margin-bottom: 1rem; }
.sf98-promo-box .sf98-btn { display: inline-flex; }

/* ---------- Stats / RTP ---------- */
.sf98-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.sf98-stat { background: var(--sf98-card); border-radius: 0.8rem; padding: 1rem; text-align: center; border: 1px solid var(--sf98-border); }
.sf98-stat-num { font-size: 2rem; font-weight: 800; color: var(--sf98-gold); }
.sf98-stat-label { font-size: 1.1rem; color: var(--sf98-muted); }

/* ---------- Testimonials ---------- */
.sf98-testi { background: var(--sf98-card); border-radius: 1rem; padding: 1.2rem; margin-bottom: 0.8rem; border-left: 3px solid var(--sf98-gold); }
.sf98-testi-name { color: var(--sf98-gold); font-weight: 700; font-size: 1.25rem; }
.sf98-testi-text { color: var(--sf98-muted); font-size: 1.2rem; margin-top: 0.4rem; }
.sf98-stars { color: var(--sf98-gold); font-size: 1.2rem; }

/* ---------- Payment / winners ---------- */
.sf98-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.sf98-chip { background: var(--sf98-card); border: 1px solid var(--sf98-border); border-radius: 2rem; padding: 0.5rem 1rem; font-size: 1.15rem; color: var(--sf98-text); display: inline-flex; align-items: center; gap: 0.4rem; }
.sf98-winner { display: flex; align-items: center; justify-content: space-between; background: var(--sf98-card); border-radius: 0.8rem; padding: 0.8rem 1rem; margin-bottom: 0.5rem; }
.sf98-winner-name { color: var(--sf98-text); font-size: 1.2rem; }
.sf98-winner-amt { color: var(--sf98-gold); font-weight: 700; font-size: 1.3rem; }

/* ---------- FAQ ---------- */
.sf98-faq-item { background: var(--sf98-card); border-radius: 0.8rem; margin-bottom: 0.7rem; padding: 1rem 1.2rem; border: 1px solid var(--sf98-border); }
.sf98-faq-item h4 { color: var(--sf98-gold); font-size: 1.3rem; margin-bottom: 0.4rem; }
.sf98-faq-item p { color: var(--sf98-muted); font-size: 1.2rem; }

/* ---------- CTA ---------- */
.sf98-cta { background: linear-gradient(135deg, var(--sf98-red), var(--sf98-magenta)); border-radius: 1.2rem; padding: 1.8rem; text-align: center; margin: 1.5rem 0; }
.sf98-cta h3 { color: #fff; font-size: 1.7rem; margin-bottom: 0.6rem; }
.sf98-cta p { color: #fff; font-size: 1.25rem; margin-bottom: 1rem; opacity: 0.95; }
.sf98-cta .sf98-btn { background: #fff; color: var(--sf98-primary); font-size: 1.4rem; }

/* ---------- Footer ---------- */
.sf98-footer { background: var(--sf98-bg2); border-top: 2px solid var(--sf98-primary); padding: 2rem 1.2rem 2.5rem; margin-top: 2rem; }
.sf98-footer-brand { color: var(--sf98-text); font-size: 1.25rem; line-height: 1.6; margin-bottom: 1.2rem; }
.sf98-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin-bottom: 1.2rem; }
.sf98-footer-links a { color: var(--sf98-muted); font-size: 1.15rem; }
.sf98-footer-links a:hover { color: var(--sf98-red); }
.sf98-footer-promo { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.sf98-footer-promo .sf98-btn { font-size: 1.15rem; padding: 0.5rem 1rem; min-height: 3.2rem; }
.sf98-footer-copy { color: var(--sf98-muted); font-size: 1.1rem; border-top: 1px solid var(--sf98-border); padding-top: 1rem; }

/* ---------- Bottom nav ---------- */
.sf98-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; height: 6.2rem;
  background: linear-gradient(90deg, var(--sf98-primary), var(--sf98-dark));
  border-top: 2px solid var(--sf98-magenta); display: flex; justify-content: space-around; align-items: center;
}
.sf98-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px; background: transparent; border: none; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; cursor: pointer;
  font-size: 1.05rem; transition: transform 0.15s ease, color 0.15s ease;
}
.sf98-nav-btn i, .sf98-nav-btn .material-icons-outlined, .sf98-nav-btn ion-icon { font-size: 24px; }
.sf98-nav-btn .bi { font-size: 24px; }
.sf98-nav-btn:hover, .sf98-nav-btn.sf98-nav-active { color: var(--sf98-gold); transform: scale(1.08); }
.sf98-nav-btn.sf98-nav-active { color: var(--sf98-red); }

/* ---------- Back to top ---------- */
.sf98-back-top {
  position: fixed; right: 1.2rem; bottom: 7.5rem; z-index: 999; width: 4rem; height: 4rem; border-radius: 50%;
  background: var(--sf98-red); color: #fff; border: none; font-size: 1.8rem; cursor: pointer; opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease;
}
.sf98-back-show { opacity: 1; visibility: visible; }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .sf98-bottom-nav { display: none; }
  .sf98-wrapper { max-width: 760px; }
  .sf98-grid { grid-template-columns: repeat(5, 1fr); }
  .sf98-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .sf98-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .sf98-main { padding-bottom: 8.5rem; }
}
