/* ============================================================
 * 777bet cash - theme-37c9.css
 * All custom classes use the "pg37-" prefix.
 * Palette: #0C0C0C (bg) | #9966CC (primary) | #F8F8FF (text)
 * Mobile-first; root font 62.5% for rem units.
 * ============================================================ */

:root {
  --pg37-primary: #9966CC;
  --pg37-primary-dark: #6f44a3;
  --pg37-primary-light: #b894d8;
  --pg37-bg: #0C0C0C;
  --pg37-bg-alt: #161616;
  --pg37-bg-card: #1d1d1d;
  --pg37-text: #F8F8FF;
  --pg37-text-muted: #b8b8c4;
  --pg37-gold: #f4c95d;
  --pg37-danger: #e84855;
  --pg37-success: #2ecc71;
  --pg37-border: rgba(153, 102, 204, 0.28);
  --pg37-radius: 12px;
  --pg37-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

* { 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", sans-serif;
  background: var(--pg37-bg);
  color: var(--pg37-text);
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--pg37-primary-light); text-decoration: none; }
a:hover { color: var(--pg37-gold); }

.pg37-skip {
  position: absolute; left: -9999px; top: 0;
}
.pg37-skip:focus { left: 8px; top: 8px; background: #fff; color: #000; padding: 8px; z-index: 99999; }

/* ---------- Layout ---------- */
.pg37-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
}

.pg37-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main.pg37-main {
  flex: 1;
  padding-bottom: 90px; /* clearance for fixed bottom nav */
}

/* ---------- Header ---------- */
.pg37-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #141414 0%, #0C0C0C 100%);
  border-bottom: 1px solid var(--pg37-border);
}

.pg37-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.pg37-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pg37-text);
  font-weight: 700;
  font-size: 1.6rem;
}
.pg37-logo img { width: 30px; height: 30px; border-radius: 6px; }
.pg37-logo span { background: linear-gradient(90deg, var(--pg37-primary-light), var(--pg37-gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.pg37-header-actions { display: flex; align-items: center; gap: 8px; }

.pg37-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  min-height: 36px;
}
.pg37-btn:active { transform: scale(0.96); }

.pg37-btn-register {
  background: linear-gradient(90deg, var(--pg37-primary) 0%, var(--pg37-primary-light) 100%);
  color: #fff;
  box-shadow: 0 3px 12px rgba(153, 102, 204, 0.45);
}
.pg37-btn-register:hover { box-shadow: 0 4px 16px rgba(153, 102, 204, 0.7); color: #fff; }

.pg37-btn-login {
  background: transparent;
  color: var(--pg37-text);
  border: 1px solid var(--pg37-primary);
}
.pg37-btn-login:hover { background: rgba(153,102,204,0.15); color: #fff; }

.pg37-btn-block {
  display: flex;
  width: 100%;
  padding: 14px;
  font-size: 1.5rem;
}

.pg37-menu-btn {
  background: transparent;
  border: none;
  color: var(--pg37-text);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 6px 8px;
}

/* ---------- Nav menu (expandable) ---------- */
.pg37-nav {
  background: var(--pg37-bg-alt);
  border-bottom: 1px solid var(--pg37-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
}
.pg37-nav-open { max-height: 480px; }

.pg37-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 12px;
}
.pg37-nav-grid a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--pg37-bg-card);
  border: 1px solid var(--pg37-border);
  border-radius: 10px;
  color: var(--pg37-text);
  font-size: 1.3rem;
}
.pg37-nav-grid a:hover { background: rgba(153,102,204,0.18); color: var(--pg37-gold); }

/* ---------- Carousel ---------- */
.pg37-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  margin: 14px 0;
  box-shadow: var(--pg37-shadow);
}
.pg37-carousel-track {
  display: flex;
  transition: transform .5s ease;
}
.pg37-carousel-slide {
  min-width: 100%;
  position: relative;
}
.pg37-carousel-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.pg37-carousel-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(12,12,12,0.55);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 1.3rem;
  color: var(--pg37-text);
  border-left: 3px solid var(--pg37-gold);
}
.pg37-carousel-dots {
  position: absolute;
  right: 12px;
  bottom: 10px;
  display: flex;
  gap: 5px;
}
.pg37-carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(248,248,255,0.45);
}
.pg37-dot-active { background: var(--pg37-gold); }

/* ---------- Sections ---------- */
.pg37-section { margin: 22px 0; }
.pg37-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.pg37-section-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--pg37-text);
  display: flex; align-items: center; gap: 8px;
}
.pg37-section-title i { color: var(--pg37-gold); }
.pg37-section-link { font-size: 1.25rem; color: var(--pg37-primary-light); }

.pg37-h1 {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 12px 0;
  background: linear-gradient(90deg, var(--pg37-gold), var(--pg37-primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pg37-lead {
  font-size: 1.4rem;
  color: var(--pg37-text-muted);
  margin-bottom: 12px;
}

.pg37-seo-text {
  font-size: 1.35rem;
  color: var(--pg37-text-muted);
  line-height: 1.55;
  margin: 10px 0;
}
.pg37-seo-text a { color: var(--pg37-primary-light); text-decoration: underline; }

/* ---------- Game grid ---------- */
.pg37-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pg37-card {
  background: var(--pg37-bg-card);
  border: 1px solid var(--pg37-border);
  border-radius: var(--pg37-radius);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.pg37-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(153,102,204,0.3); }
.pg37-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
}
.pg37-card-name {
  padding: 6px 8px;
  font-size: 1.15rem;
  text-align: center;
  color: var(--pg37-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pg37-cat-head {
  display: flex; align-items: center; gap: 8px;
  margin: 18px 0 10px;
  padding-left: 10px;
  border-left: 4px solid var(--pg37-primary);
}
.pg37-cat-head h2 {
  font-size: 1.55rem; font-weight: 700; color: var(--pg37-text);
}
.pg37-cat-head i { color: var(--pg37-gold); }

/* ---------- Features / highlights ---------- */
.pg37-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.pg37-feature {
  background: var(--pg37-bg-card);
  border: 1px solid var(--pg37-border);
  border-radius: var(--pg37-radius);
  padding: 14px;
  text-align: center;
}
.pg37-feature i { font-size: 2.4rem; color: var(--pg37-gold); margin-bottom: 6px; }
.pg37-feature h3 { font-size: 1.35rem; color: var(--pg37-text); margin-bottom: 4px; }
.pg37-feature p { font-size: 1.2rem; color: var(--pg37-text-muted); }

/* ---------- Testimonials ---------- */
.pg37-testimonials { display: grid; gap: 10px; }
.pg37-testimonial {
  background: var(--pg37-bg-card);
  border-left: 3px solid var(--pg37-primary);
  border-radius: 10px;
  padding: 12px 14px;
}
.pg37-testimonial p { font-size: 1.3rem; color: var(--pg37-text); }
.pg37-testimonial .pg37-stars { color: var(--pg37-gold); font-size: 1.2rem; margin-top: 6px; }
.pg37-testimonial .pg37-author { display: block; margin-top: 4px; font-size: 1.2rem; color: var(--pg37-text-muted); }

/* ---------- Payment row ---------- */
.pg37-pay-row {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.pg37-pay-row .pg37-pay {
  background: var(--pg37-bg-card);
  border: 1px solid var(--pg37-border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 1.2rem;
  color: var(--pg37-text);
  display: flex; align-items: center; gap: 6px;
}

/* ---------- Winners ticker ---------- */
.pg37-winners {
  background: var(--pg37-bg-card);
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid var(--pg37-border);
}
.pg37-winner-row {
  display: flex; justify-content: space-between;
  font-size: 1.25rem; padding: 4px 0;
  border-bottom: 1px dashed rgba(248,248,255,0.1);
}
.pg37-winner-row:last-child { border-bottom: none; }
.pg37-winner-amount { color: var(--pg37-gold); font-weight: 700; }

/* ---------- CTA banner ---------- */
.pg37-cta {
  background: linear-gradient(135deg, var(--pg37-primary-dark) 0%, var(--pg37-primary) 100%);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  color: #fff;
  margin: 18px 0;
  box-shadow: var(--pg37-shadow);
}
.pg37-cta h2 { font-size: 1.7rem; margin-bottom: 6px; }
.pg37-cta p { font-size: 1.3rem; margin-bottom: 12px; opacity: .95; }
.pg37-cta .pg37-btn { background: var(--pg37-gold); color: #0C0C0C; }

/* ---------- Footer ---------- */
.pg37-footer {
  background: #050505;
  border-top: 1px solid var(--pg37-border);
  padding: 22px 0 10px;
  margin-top: 14px;
}
.pg37-footer-brand { font-size: 1.35rem; color: var(--pg37-text); margin-bottom: 8px; line-height: 1.5; }
.pg37-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 12px 0;
}
.pg37-footer-links a {
  font-size: 1.2rem;
  color: var(--pg37-text-muted);
  padding: 4px 0;
}
.pg37-footer-promo {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 12px 0;
}
.pg37-footer-promo button {
  flex: 1 1 45%;
  background: var(--pg37-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px;
  font-size: 1.25rem;
  cursor: pointer;
}
.pg37-footer-copy {
  text-align: center;
  font-size: 1.15rem;
  color: var(--pg37-text-muted);
  padding-top: 10px;
  border-top: 1px solid rgba(248,248,255,0.06);
}

/* ---------- Bottom navigation (mobile only) ---------- */
.pg37-bottomnav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  height: 62px;
  background: linear-gradient(180deg, #141414 0%, #080808 100%);
  border-top: 1px solid var(--pg37-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 4px 0;
}
.pg37-bottomnav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--pg37-text-muted);
  font-size: 1.05rem;
  gap: 2px;
  cursor: pointer;
  transition: color .15s ease, transform .15s ease;
}
.pg37-bottomnav-btn i,
.pg37-bottomnav-btn .material-icons-outlined,
.pg37-bottomnav-btn ion-icon { font-size: 22px; }
.pg37-bottomnav-btn:hover { color: var(--pg37-primary-light); }
.pg37-bottomnav-btn:active { transform: scale(0.92); }
.pg37-bottomnav-active { color: var(--pg37-gold); }
.pg37-bottomnav-btn .pg37-nav-badge {
  position: absolute;
  transform: translateY(-14px);
  background: var(--pg37-danger);
  color: #fff;
  font-size: .9rem;
  padding: 1px 5px;
  border-radius: 8px;
}

/* ---------- Help / FAQ pages ---------- */
.pg37-article-card {
  background: var(--pg37-bg-card);
  border: 1px solid var(--pg37-border);
  border-radius: var(--pg37-radius);
  padding: 14px;
  margin: 12px 0;
  box-shadow: var(--pg37-shadow);
}
.pg37-article-card h2,
.pg37-article-card h3 { color: var(--pg37-text); margin-bottom: 8px; line-height: 1.3; }
.pg37-article-card h2 { font-size: 1.65rem; }
.pg37-article-card h3 { font-size: 1.45rem; }
.pg37-article-card p,
.pg37-article-card li { font-size: 1.32rem; color: var(--pg37-text-muted); line-height: 1.55; margin-bottom: 8px; }
.pg37-article-card ol,
.pg37-article-card ul { padding-left: 18px; }
.pg37-promo-link {
  color: var(--pg37-gold);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.pg37-note {
  border-left: 3px solid var(--pg37-gold);
  background: rgba(153,102,204,0.12);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 1.28rem;
  color: var(--pg37-text);
}
.pg37-mini-list { display: grid; gap: 8px; }
.pg37-mini-item {
  display: flex; gap: 8px; align-items: flex-start;
  background: rgba(248,248,255,0.04);
  border-radius: 9px;
  padding: 9px;
}
.pg37-mini-item i { color: var(--pg37-gold); margin-top: 2px; }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .pg37-bottomnav { display: none; }
  .pg37-container { max-width: 960px; }
  .pg37-grid { grid-template-columns: repeat(6, 1fr); }
  .pg37-features { grid-template-columns: repeat(4, 1fr); }
  .pg37-nav-grid { grid-template-columns: repeat(4, 1fr); }
  .pg37-footer-links { grid-template-columns: repeat(4, 1fr); }
  .pg37-carousel-slide img { height: 320px; }
}

/* Make sure literal max-width: 430px is present for mobile-first base */
.pg37-mobile-shell { max-width: 430px; }
