/* cbaj.homes - Core base styles
   Prefix: s5b4-
   Palette: #FF5722 (primary) | #BAE1FF (light blue) | #1C2833 (dark bg) | #FFCCDB (soft pink)
   Mobile-first, max-width 430px
*/

:root {
  --s5b4-primary: #FF5722;
  --s5b4-primary-dark: #E64A19;
  --s5b4-bg: #1C2833;
  --s5b4-bg-soft: #243447;
  --s5b4-bg-card: #2A3B4F;
  --s5b4-text: #FFFFFF;
  --s5b4-text-muted: #BAE1FF;
  --s5b4-soft: #FFCCDB;
  --s5b4-border: rgba(186, 225, 255, 0.18);
  --s5b4-gold: #FFD27A;
  --s5b4-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --s5b4-radius: 14px;
}

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

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

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

img { max-width: 100%; display: block; }
a { color: var(--s5b4-text-muted); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* ===== Header ===== */
.s5b4-header {
  position: fixed;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: linear-gradient(135deg, #1C2833 0%, #243447 100%);
  border-bottom: 1px solid var(--s5b4-border);
  z-index: 1000;
  padding: 0.8rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--s5b4-shadow);
}
.s5b4-logo { display: flex; align-items: center; gap: 0.6rem; }
.s5b4-logo img { width: 28px; height: 28px; border-radius: 6px; }
.s5b4-logo-text { font-size: 1.6rem; font-weight: 800; color: var(--s5b4-primary); letter-spacing: 0.5px; }

.s5b4-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.s5b4-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.2rem; border-radius: 30px;
  font-size: 1.3rem; font-weight: 700;
  transition: transform 0.18s ease, opacity 0.18s ease;
  min-height: 36px;
}
.s5b4-btn:active { transform: scale(0.94); }
.s5b4-btn-register { background: linear-gradient(135deg, var(--s5b4-primary), var(--s5b4-primary-dark)); color: #fff; box-shadow: 0 3px 10px rgba(255, 87, 34, 0.4); }
.s5b4-btn-login { background: transparent; color: var(--s5b4-text-muted); border: 1.5px solid var(--s5b4-text-muted); }
.s5b4-menu-toggle { font-size: 2rem; color: var(--s5b4-text-muted); padding: 0.2rem 0.5rem; }

/* ===== Mobile Menu ===== */
.s5b4-mobile-menu {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 100vh;
  background: rgba(28, 40, 51, 0.98);
  backdrop-filter: blur(8px);
  z-index: 9999;
  padding: 6rem 1.5rem 2rem;
  transform: translate(-50%, -100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.s5b4-mobile-menu.s5b4-open { transform: translate(-50%, 0); }
.s5b4-menu-close { position: absolute; top: 1.2rem; right: 1.5rem; font-size: 2.4rem; color: var(--s5b4-text-muted); }
.s5b4-menu-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.s5b4-menu-list a {
  display: block; padding: 1.1rem 1.2rem; border-radius: 10px;
  background: var(--s5b4-bg-card); color: var(--s5b4-text);
  font-size: 1.5rem; font-weight: 600;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}
.s5b4-menu-list a:hover, .s5b4-menu-list a:active { border-left-color: var(--s5b4-primary); color: var(--s5b4-primary); }

/* ===== Hero Carousel ===== */
.s5b4-hero { margin-top: 5.6rem; padding: 1rem 1.2rem 0; }
.s5b4-carousel { position: relative; border-radius: var(--s5b4-radius); overflow: hidden; box-shadow: var(--s5b4-shadow); }
.s5b4-slides { display: flex; transition: transform 0.5s ease; }
.s5b4-slide { min-width: 100%; position: relative; cursor: pointer; }
.s5b4-slide img { width: 100%; height: 180px; object-fit: cover; }
.s5b4-slide-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(28,40,51,0.85) 100%); display: flex; align-items: flex-end; padding: 1rem; }
.s5b4-slide-text { font-size: 1.4rem; font-weight: 700; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,0.6); }
.s5b4-dots { position: absolute; bottom: 0.6rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; }
.s5b4-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.45); transition: all 0.2s; }
.s5b4-dot.s5b4-active { background: var(--s5b4-primary); width: 18px; border-radius: 4px; }

/* ===== Section ===== */
.s5b4-section { padding: 1.8rem 1.2rem; }
.s5b4-section-title { font-size: 1.9rem; font-weight: 800; color: var(--s5b4-text); margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.5rem; }
.s5b4-section-title::before { content: ""; width: 4px; height: 1.8rem; background: var(--s5b4-primary); border-radius: 3px; }
.s5b4-section-sub { font-size: 1.3rem; color: var(--s5b4-text-muted); margin-bottom: 1.2rem; }

/* ===== Category Tabs (non-switch list) ===== */
.s5b4-cat-header { display: flex; align-items: center; justify-content: space-between; margin: 1.6rem 0 0.8rem; }
.s5b4-cat-name { font-size: 1.7rem; font-weight: 800; color: var(--s5b4-gold); display: flex; align-items: center; gap: 0.5rem; }
.s5b4-cat-count { font-size: 1.1rem; color: var(--s5b4-text-muted); background: var(--s5b4-bg-card); padding: 0.2rem 0.7rem; border-radius: 10px; }

/* ===== Game Grid ===== */
.s5b4-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.s5b4-card {
  background: var(--s5b4-bg-card);
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--s5b4-border);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}
.s5b4-card:active { transform: scale(0.95); box-shadow: 0 6px 14px rgba(255,87,34,0.3); }
.s5b4-card-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #0f1822; }
.s5b4-card-name { padding: 0.5rem 0.4rem; font-size: 1.1rem; color: var(--s5b4-text); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 2.4rem; display: flex; align-items: center; justify-content: center; }

/* ===== Content blocks ===== */
.s5b4-card-block { background: var(--s5b4-bg-card); border-radius: var(--s5b4-radius); padding: 1.4rem; margin-bottom: 1.2rem; border: 1px solid var(--s5b4-border); }
.s5b4-card-block h2 { font-size: 1.8rem; color: var(--s5b4-primary); margin-bottom: 0.6rem; }
.s5b4-card-block h3 { font-size: 1.5rem; color: var(--s5b4-gold); margin: 0.8rem 0 0.4rem; }
.s5b4-card-block p { font-size: 1.35rem; color: var(--s5b4-text); margin-bottom: 0.6rem; line-height: 1.6; }

.s5b4-promo-link { color: var(--s5b4-primary); font-weight: 800; cursor: pointer; text-decoration: underline; }
.s5b4-promo-link:hover { color: var(--s5b4-gold); }

.s5b4-cta { display: inline-flex; align-items: center; gap: 0.5rem; background: linear-gradient(135deg, var(--s5b4-primary), var(--s5b4-primary-dark)); color: #fff; padding: 1rem 2rem; border-radius: 30px; font-size: 1.5rem; font-weight: 800; box-shadow: 0 4px 14px rgba(255,87,34,0.45); margin: 0.6rem 0; }
.s5b4-cta:active { transform: scale(0.96); }

/* ===== Feature list ===== */
.s5b4-feature-list { list-style: none; display: grid; gap: 0.6rem; }
.s5b4-feature-list li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 1.35rem; color: var(--s5b4-text); background: rgba(186,225,255,0.06); padding: 0.8rem; border-radius: 8px; }
.s5b4-feature-list li i { color: var(--s5b4-primary); font-size: 1.6rem; margin-top: 0.1rem; }

/* ===== RTP compact table ===== */
.s5b4-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.25rem; }
.s5b4-rtp-table th, .s5b4-rtp-table td { padding: 0.7rem 0.6rem; text-align: left; border-bottom: 1px solid var(--s5b4-border); }
.s5b4-rtp-table th { color: var(--s5b4-gold); font-weight: 700; }
.s5b4-rtp-table td .s5b4-rtp-bar { display: inline-block; height: 6px; background: var(--s5b4-primary); border-radius: 3px; vertical-align: middle; margin-left: 0.4rem; }

/* ===== Testimonials ===== */
.s5b4-testimonial { background: var(--s5b4-bg-card); border-radius: 10px; padding: 1rem; margin-bottom: 0.7rem; border-left: 3px solid var(--s5b4-primary); }
.s5b4-testimonial-name { font-size: 1.3rem; font-weight: 700; color: var(--s5b4-gold); }
.s5b4-testimonial-text { font-size: 1.25rem; color: var(--s5b4-text); margin-top: 0.3rem; }
.s5b4-stars { color: var(--s5b4-gold); font-size: 1.2rem; }

/* ===== Payment chips ===== */
.s5b4-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.s5b4-chip { background: var(--s5b4-bg-card); border: 1px solid var(--s5b4-border); border-radius: 20px; padding: 0.5rem 1rem; font-size: 1.2rem; color: var(--s5b4-text); display: flex; align-items: center; gap: 0.4rem; }

/* ===== Winners ===== */
.s5b4-winner { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 0.9rem; background: var(--s5b4-bg-card); border-radius: 8px; margin-bottom: 0.5rem; font-size: 1.25rem; }
.s5b4-winner-name { color: var(--s5b4-text-muted); }
.s5b4-winner-amount { color: var(--s5b4-primary); font-weight: 800; }

/* ===== App Download CTA ===== */
.s5b4-app-cta { background: linear-gradient(135deg, #243447, #2A3B4F); border: 1px solid var(--s5b4-primary); border-radius: var(--s5b4-radius); padding: 1.4rem; text-align: center; margin: 1.2rem 0; }
.s5b4-app-cta h3 { color: var(--s5b4-primary); font-size: 1.7rem; margin-bottom: 0.4rem; }
.s5b4-app-cta p { font-size: 1.3rem; color: var(--s5b4-text); margin-bottom: 0.8rem; }

/* ===== FAQ ===== */
.s5b4-faq-item { background: var(--s5b4-bg-card); border-radius: 10px; margin-bottom: 0.6rem; overflow: hidden; border: 1px solid var(--s5b4-border); }
.s5b4-faq-q { padding: 1rem; font-size: 1.35rem; font-weight: 700; color: var(--s5b4-gold); display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.s5b4-faq-a { padding: 0 1rem 1rem; font-size: 1.25rem; color: var(--s5b4-text); display: none; }
.s5b4-faq-item.s5b4-open .s5b4-faq-a { display: block; }

/* ===== Footer ===== */
.s5b4-footer { background: #0f1822; padding: 2rem 1.2rem 2rem; margin-top: 1.5rem; border-top: 1px solid var(--s5b4-border); }
.s5b4-footer-brand { font-size: 1.35rem; color: var(--s5b4-text-muted); line-height: 1.6; margin-bottom: 1.2rem; }
.s5b4-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.s5b4-footer-links a { background: var(--s5b4-bg-card); border: 1px solid var(--s5b4-border); padding: 0.5rem 0.9rem; border-radius: 18px; font-size: 1.15rem; color: var(--s5b4-text); }
.s5b4-footer-links a:hover { color: var(--s5b4-primary); border-color: var(--s5b4-primary); }
.s5b4-footer-copy { font-size: 1.1rem; color: rgba(186,225,255,0.6); text-align: center; padding-top: 1rem; border-top: 1px solid var(--s5b4-border); }

/* ===== Bottom Nav ===== */
.s5b4-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 62px;
  background: linear-gradient(180deg, #243447, #1C2833);
  border-top: 1px solid var(--s5b4-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.4);
}
.s5b4-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px;
  color: var(--s5b4-text-muted); font-size: 1.05rem; gap: 0.2rem;
  transition: color 0.2s, transform 0.2s;
  position: relative;
}
.s5b4-nav-btn i, .s5b4-nav-btn .material-icons-outlined, .s5b4-nav-btn .ion { font-size: 22px; }
.s5b4-nav-btn:active { transform: scale(0.9); }
.s5b4-nav-btn.s5b4-active { color: var(--s5b4-primary); }
.s5b4-nav-btn.s5b4-active::after { content: ""; position: absolute; top: 0; width: 28px; height: 3px; background: var(--s5b4-primary); border-radius: 0 0 4px 4px; }
.s5b4-nav-badge { position: absolute; top: 6px; right: 14px; background: var(--s5b4-primary); color: #fff; font-size: 0.9rem; font-weight: 700; padding: 0 5px; border-radius: 10px; min-width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; }

/* ===== Desktop hide bottom nav ===== */
@media (min-width: 769px) {
  .s5b4-bottom-nav { display: none; }
  body { max-width: 430px; }
}
@media (max-width: 768px) {
  .s5b4-wrapper, body { padding-bottom: 80px; }
}

/* ===== Utility ===== */
.s5b4-text-center { text-align: center; }
.s5b4-mt-1 { margin-top: 1rem; }
.s5b4-mb-1 { margin-bottom: 1rem; }
.s5b4-hidden { display: none; }
.s5b4-divider { height: 1px; background: var(--s5b4-border); margin: 1.2rem 0; }
