/* ============================================================
 * cbaji.sbs - Theme stylesheet (theme.css)
 * All custom classes use the "se83-" dynamic prefix for isolation.
 * Palette: #2E4057 (dark bg) | #A9A9A9 (muted) | #CED4DA (light text)
 * Mobile-first; layout clamped to max-width: 430px.
 * ============================================================ */

:root {
  --se83-bg: #2E4057;
  --se83-bg-2: #243447;
  --se83-bg-3: #1a2735;
  --se83-muted: #A9A9A9;
  --se83-light: #CED4DA;
  --se83-accent: #E9B949;
  --se83-accent-2: #FF6B6B;
  --se83-success: #4CAF7C;
  --se83-radius: 14px;
  --se83-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
  --se83-header-h: 58px;
  --se83-bottom-h: 62px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, sans-serif;
  background: var(--se83-bg);
  color: var(--se83-light);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

body {
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  background: linear-gradient(180deg, var(--se83-bg) 0%, var(--se83-bg-3) 100%);
  min-height: 100vh;
}

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

/* ---------- Layout helpers ---------- */
.se83-container { width: 100%; padding: 0 14px; }
.se83-wrapper { padding: 16px 14px; }
.se83-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.se83-section { padding: 22px 14px; }
.se83-section-alt { background: var(--se83-bg-2); }

.se83-section-title {
  font-size: 1.18rem;
  margin: 0 0 14px;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.se83-section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--se83-accent);
  border-radius: 2px;
}
.se83-lead { color: var(--se83-muted); font-size: 0.95rem; }

/* ---------- Header ---------- */
.se83-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--se83-header-h);
  padding: 0 12px;
  background: rgba(46, 64, 87, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(206, 212, 218, 0.12);
  transition: box-shadow .25s ease, background .25s ease;
}
.se83-header.se83-scrolled { box-shadow: var(--se83-shadow); }
.se83-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 0.4px;
}
.se83-brand img { width: 30px; height: 30px; border-radius: 8px; }
.se83-brand small { color: var(--se83-accent); font-size: 0.66rem; display: block; font-weight: 600; }

.se83-header-actions { display: flex; align-items: center; gap: 8px; }
.se83-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
  font-family: inherit;
  text-decoration: none;
}
.se83-btn:active { transform: scale(0.95); }
.se83-btn-primary {
  background: linear-gradient(135deg, var(--se83-accent) 0%, #d99c2b 100%);
  color: #1a2735;
}
.se83-btn-ghost {
  background: transparent;
  color: var(--se83-light);
  border: 1px solid rgba(206, 212, 218, 0.45);
}
.se83-btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 1rem;
}
.se83-menu-btn {
  background: transparent;
  border: 1px solid rgba(206, 212, 218, 0.3);
  color: var(--se83-light);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- Mobile expandable menu ---------- */
.se83-mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(26, 39, 53, 0.97);
  z-index: 9999;
  padding: 80px 18px 40px;
  transform: translateX(100%);
  transition: transform .3s ease;
  overflow-y: auto;
}
.se83-mobile-menu.se83-open { transform: translateX(0); }
.se83-mobile-menu h3 {
  color: var(--se83-accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 18px 0 8px;
}
.se83-mobile-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 6px;
  background: rgba(206, 212, 218, 0.07);
  color: var(--se83-light);
  font-weight: 600;
}
.se83-mobile-menu a:active { background: rgba(233, 185, 73, 0.18); }
.se83-menu-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: 0;
  color: var(--se83-light);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- Hero / Carousel ---------- */
.se83-hero {
  position: relative;
  padding: 24px 14px 18px;
  text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, rgba(233,185,73,0.18), transparent 60%);
}
.se83-hero h1 {
  font-size: 1.7rem;
  margin: 0 0 8px;
  color: #fff;
  line-height: 1.25;
}
.se83-hero h1 span { color: var(--se83-accent); }
.se83-hero p { color: var(--se83-muted); margin: 0 auto 16px; max-width: 360px; }
.se83-hero-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.se83-carousel {
  position: relative;
  border-radius: var(--se83-radius);
  overflow: hidden;
  margin: 14px;
  box-shadow: var(--se83-shadow);
}
.se83-carousel-track { position: relative; }
.se83-slide {
  position: relative;
  opacity: 0;
  transition: opacity .6s ease;
  display: none;
}
.se83-slide.se83-active { opacity: 1; display: block; }
.se83-slide img { width: 100%; height: 180px; object-fit: cover; }
.se83-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px;
  background: linear-gradient(0deg, rgba(26,39,53,0.92), transparent);
  font-weight: 700;
  color: #fff;
}

/* ---------- Game grid & cards ---------- */
.se83-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: none;
}
.se83-tabs::-webkit-scrollbar { display: none; }
.se83-tab {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(206, 212, 218, 0.08);
  color: var(--se83-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.se83-tab.se83-tab-active { background: var(--se83-accent); color: #1a2735; }

.se83-card {
  background: var(--se83-bg-2);
  border-radius: var(--se83-radius);
  overflow: hidden;
  box-shadow: var(--se83-shadow);
  transition: transform .2s ease;
}
.se83-card:active { transform: scale(0.97); }
.se83-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
}
.se83-card-body { padding: 8px 10px 10px; }
.se83-card-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.se83-card-meta { font-size: 0.72rem; color: var(--se83-muted); }
.se83-card-play {
  display: block;
  margin-top: 8px;
  text-align: center;
  background: var(--se83-accent);
  color: #1a2735;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px;
  border-radius: 8px;
}

/* ---------- Feature / promo blocks ---------- */
.se83-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.se83-feature {
  background: var(--se83-bg-2);
  padding: 16px;
  border-radius: var(--se83-radius);
  text-align: center;
}
.se83-feature .material-icons,
.se83-feature ion-icon {
  font-size: 30px;
  color: var(--se83-accent);
}
.se83-feature h3 { margin: 8px 0 4px; font-size: 0.95rem; color: #fff; }
.se83-feature p { margin: 0; font-size: 0.78rem; color: var(--se83-muted); }

.se83-promo-banner {
  background: linear-gradient(135deg, #FF6B6B 0%, #E9B949 100%);
  color: #1a2735;
  border-radius: var(--se83-radius);
  padding: 18px;
  margin: 16px 14px;
  text-align: center;
  box-shadow: var(--se83-shadow);
}
.se83-promo-banner h3 { margin: 0 0 6px; font-size: 1.15rem; }
.se83-promo-banner p { margin: 0 0 12px; font-size: 0.85rem; font-weight: 600; }

/* ---------- Testimonials ---------- */
.se83-testimonial {
  background: var(--se83-bg-2);
  border-left: 3px solid var(--se83-accent);
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 10px;
}
.se83-testimonial p { margin: 0 0 6px; font-size: 0.85rem; }
.se83-testimonial .se83-stars { color: var(--se83-accent); font-size: 0.78rem; }
.se83-testimonial cite { color: var(--se83-muted); font-size: 0.78rem; font-style: normal; }

/* ---------- FAQ ---------- */
.se83-faq-item {
  background: var(--se83-bg-2);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
.se83-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: #fff;
  font-weight: 700;
  padding: 14px;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}
.se83-faq-q .se83-icon { transition: transform .25s ease; color: var(--se83-accent); }
.se83-faq-item.se83-open .se83-faq-q .se83-icon { transform: rotate(45deg); }
.se83-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 14px;
  color: var(--se83-muted);
  font-size: 0.86rem;
}
.se83-faq-item.se83-open .se83-faq-a { max-height: 320px; padding: 0 14px 14px; }

/* ---------- Winners ---------- */
.se83-winner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--se83-bg-2);
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 8px;
}
.se83-winner-badge {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--se83-accent);
  color: #1a2735;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.se83-winner-meta { flex: 1; }
.se83-winner-meta strong { color: #fff; font-size: 0.85rem; display: block; }
.se83-winner-meta span { color: var(--se83-muted); font-size: 0.74rem; }
.se83-winner-amount { color: var(--se83-success); font-weight: 700; font-size: 0.88rem; }

/* ---------- Payment icons ---------- */
.se83-pay-row { display: flex; flex-wrap: wrap; gap: 8px; }
.se83-pay-chip {
  background: var(--se83-bg-2);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--se83-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Help / article pages ---------- */
.se83-article { padding: 18px 14px; }
.se83-article h1 { font-size: 1.55rem; line-height: 1.25; color: #fff; margin: 0 0 10px; }
.se83-article h2 { font-size: 1.12rem; color: #fff; margin: 20px 0 8px; }
.se83-article h3 { font-size: 0.98rem; color: var(--se83-accent); margin: 14px 0 6px; }
.se83-article p, .se83-article li { color: var(--se83-muted); font-size: 0.9rem; line-height: 1.55; }
.se83-article ul, .se83-article ol { padding-left: 20px; }
.se83-text-link { color: var(--se83-accent); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.se83-note { border: 1px solid rgba(233,185,73,0.28); background: rgba(233,185,73,0.08); border-radius: var(--se83-radius); padding: 12px; margin: 14px 0; }

/* ---------- Reveal animation ---------- */
.se83-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.se83-reveal.se83-visible { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.se83-footer {
  background: var(--se83-bg-3);
  padding: 26px 14px 100px;
  border-top: 1px solid rgba(206, 212, 218, 0.1);
  font-size: 0.82rem;
  color: var(--se83-muted);
}
.se83-footer h4 { color: #fff; margin: 14px 0 8px; font-size: 0.95rem; }
.se83-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.se83-footer-links a { color: var(--se83-muted); }
.se83-footer-links a:hover { color: var(--se83-accent); }
.se83-footer-bottom {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(206, 212, 218, 0.08);
  text-align: center;
  font-size: 0.75rem;
}

/* ---------- Bottom navigation (mobile only) ---------- */
.se83-bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--se83-bottom-h);
  background: rgba(26, 39, 53, 0.98);
  border-top: 1px solid rgba(206, 212, 218, 0.12);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
}
.se83-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: 0;
  color: var(--se83-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.66rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: color .2s ease, transform .15s ease;
}
.se83-nav-btn .material-icons,
.se83-nav-btn ion-icon,
.se83-nav-btn i { font-size: 24px; }
.se83-nav-btn:active { transform: scale(0.92); }
.se83-nav-btn.se83-current { color: var(--se83-accent); }
.se83-nav-btn.se83-nav-promo { color: var(--se83-accent-2); }

/* ---------- Main content padding for bottom nav ---------- */
main { display: block; }
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* ---------- Desktop: hide bottom nav, widen shell ---------- */
@media (min-width: 769px) {
  .se83-bottom-nav { display: none; }
  .se83-footer { padding-bottom: 30px; }
  body { max-width: 430px; }
}
