/* ============================================================
   888bet casino login - Core base stylesheet
   All custom classes use the g08b- prefix.
   Palette: #8A2BE2 | #2E4057 | #FAFAFA | #800080 | #9400D3
   Mobile-first. Root font 62.5% so 1rem = 10px.
   ============================================================ */

:root {
  --g08b-primary: #8A2BE2;
  --g08b-secondary: #2E4057;
  --g08b-bg: #FAFAFA;
  --g08b-purple: #800080;
  --g08b-violet: #9400D3;
  --g08b-dark: #1b1430;
  --g08b-dark2: #241a3d;
  --g08b-card: #ffffff;
  --g08b-text: #2E4057;
  --g08b-light: #FAFAFA;
  --g08b-muted: #8a8aa3;
  --g08b-gold: #f5c542;
  --g08b-radius: 1.2rem;
}

* { 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", Roboto, sans-serif;
  background: linear-gradient(180deg, #241a3d 0%, #1b1430 100%);
  color: var(--g08b-light);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a { color: var(--g08b-violet); text-decoration: none; }
a:hover { color: var(--g08b-primary); }

/* ============ Header ============ */
.g08b-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: rgba(27, 20, 48, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(138, 43, 226, 0.35);
  z-index: 1000;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.g08b-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}
.g08b-logo {
  width: 2.8rem; height: 2.8rem;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, var(--g08b-primary), var(--g08b-violet));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.4rem;
  flex-shrink: 0;
}
.g08b-brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g08b-brand-name span { color: var(--g08b-violet); }

.g08b-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.g08b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 0.8rem;
  padding: 0.7rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 4.4rem;
  transition: transform .15s ease, opacity .15s ease;
  color: #fff;
}
.g08b-btn:active { transform: scale(0.96); opacity: .9; }
.g08b-btn-login {
  background: transparent;
  border: 1px solid rgba(138, 43, 226, 0.6);
  color: var(--g08b-light);
}
.g08b-btn-register {
  background: linear-gradient(135deg, var(--g08b-primary), var(--g08b-violet));
  box-shadow: 0 4px 14px rgba(138, 43, 226, 0.45);
}
.g08b-menu-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  width: 4.4rem; height: 4.4rem;
  border-radius: 0.6rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ============ Mobile menu (expandable) ============ */
.g08b-mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--g08b-dark2);
  border-bottom: 1px solid rgba(138, 43, 226, 0.4);
  padding: 6rem 1.2rem 1.4rem;
  z-index: 9999;
  transform: translateY(-120%);
  transition: transform .3s ease;
  max-height: 85vh;
  overflow-y: auto;
}
.g08b-mobile-menu.g08b-menu-open { transform: translateY(0); }
.g08b-menu-close {
  position: absolute;
  top: 1rem; right: 1.2rem;
  background: transparent; border: none; color: #fff;
  font-size: 2rem; cursor: pointer;
  width: 4rem; height: 4rem;
}
.g08b-menu-title {
  font-size: 1.4rem; color: var(--g08b-muted);
  margin-bottom: 0.8rem; text-transform: uppercase; letter-spacing: .05em;
}
.g08b-menu-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.g08b-menu-list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(138, 43, 226, 0.12);
  border: 1px solid rgba(138, 43, 226, 0.25);
  border-radius: 0.8rem;
  padding: 1rem;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  min-height: 4.4rem;
}
.g08b-menu-list a i { color: var(--g08b-violet); font-size: 1.6rem; }

/* ============ Layout ============ */
.g08b-wrapper {
  max-width: 430px;
  margin: 0 auto;
  padding-top: 6rem;
}
main.g08b-main {
  padding: 1rem 1.2rem 8rem;
}

/* ============ Hero carousel ============ */
.g08b-carousel {
  position: relative;
  border-radius: var(--g08b-radius);
  overflow: hidden;
  margin-bottom: 1.6rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.g08b-slides { position: relative; aspect-ratio: 16 / 9; }
.g08b-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  cursor: pointer;
}
.g08b-slide img { width: 100%; height: 100%; object-fit: cover; }
.g08b-slide-active { opacity: 1; }
.g08b-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(27,20,48,0.92));
  padding: 1.2rem;
  font-size: 1.4rem; font-weight: 700; color: #fff;
}
.g08b-dots {
  position: absolute; bottom: 0.6rem; left: 0; right: 0;
  display: flex; justify-content: center; gap: 0.5rem;
}
.g08b-dot {
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: rgba(255,255,255,0.4);
}
.g08b-dot-active { background: var(--g08b-gold); }

/* ============ Section / Heading ============ */
.g08b-section { margin-bottom: 2.4rem; }
.g08b-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.6rem;
  border-left: 0.4rem solid var(--g08b-violet);
  padding-left: 0.8rem;
}
.g08b-section-title i { color: var(--g08b-violet); }

h1.g08b-h1 {
  font-size: 1.9rem; font-weight: 800; color: #fff;
  margin-bottom: 1rem; line-height: 2.6rem;
}
h2.g08b-h2 { font-size: 1.7rem; font-weight: 700; color: #fff; margin: 1.6rem 0 0.8rem; }
h3.g08b-h3 { font-size: 1.5rem; font-weight: 700; color: var(--g08b-primary); margin: 1.2rem 0 0.6rem; }

.g08b-lead { font-size: 1.4rem; color: #d8d6e8; line-height: 2.2rem; margin-bottom: 1.2rem; }
.g08b-p { font-size: 1.35rem; color: #cfcde3; line-height: 2.2rem; margin-bottom: 1rem; }
.g08b-p b, .g08b-p strong { color: var(--g08b-gold); }

/* Inline promo text link */
.g08b-promo-link {
  color: var(--g08b-gold);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* ============ Category + game grid ============ */
.g08b-cat-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 1.8rem 0 0.8rem;
}
.g08b-cat-head h2 {
  font-size: 1.6rem; font-weight: 800; color: #fff;
  display: flex; align-items: center; gap: 0.5rem;
}
.g08b-cat-head h2 i { color: var(--g08b-violet); }
.g08b-cat-tag {
  font-size: 1.1rem; color: var(--g08b-muted);
  background: rgba(138,43,226,0.15);
  padding: 0.2rem 0.8rem; border-radius: 1rem;
}

.g08b-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.g08b-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(138,43,226,0.2);
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  text-align: center;
}
.g08b-card:active { transform: scale(0.97); }
.g08b-card:hover { box-shadow: 0 6px 16px rgba(138,43,226,0.35); border-color: var(--g08b-violet); }
.g08b-card-img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  background: #000;
}
.g08b-card-name {
  font-size: 1.1rem;
  color: #fff;
  padding: 0.5rem 0.4rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-weight: 600;
}

/* ============ Feature / info cards ============ */
.g08b-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.g08b-feature {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(138,43,226,0.25);
  border-radius: 1rem;
  padding: 1.2rem;
}
.g08b-feature i { font-size: 2.2rem; color: var(--g08b-violet); margin-bottom: 0.6rem; }
.g08b-feature h3 { font-size: 1.3rem; color: #fff; margin-bottom: 0.4rem; }
.g08b-feature p { font-size: 1.2rem; color: #cfcde3; line-height: 1.8rem; }

/* ============ RTP compact table ============ */
.g08b-rtp {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(138,43,226,0.25);
  border-radius: 1rem;
  padding: 1.2rem;
}
.g08b-rtp-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 1.3rem;
}
.g08b-rtp-row:last-child { border-bottom: none; }
.g08b-rtp-row span:first-child { color: #cfcde3; }
.g08b-rtp-row span:last-child { color: var(--g08b-gold); font-weight: 700; }

/* ============ Testimonials ============ */
.g08b-testimonial {
  background: rgba(255,255,255,0.06);
  border-left: 0.3rem solid var(--g08b-violet);
  border-radius: 0.8rem;
  padding: 1.2rem;
  margin-bottom: 1rem;
}
.g08b-testimonial p { font-size: 1.3rem; color: #cfcde3; font-style: italic; margin-bottom: 0.6rem; }
.g08b-testimonial .g08b-author { font-size: 1.2rem; color: var(--g08b-gold); font-weight: 700; }

/* ============ Payment methods ============ */
.g08b-pay {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
}
.g08b-pay-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(138,43,226,0.3);
  border-radius: 0.8rem;
  padding: 0.8rem 1.2rem;
  font-size: 1.3rem; color: #fff;
  display: flex; align-items: center; gap: 0.5rem;
}
.g08b-pay-item i { color: var(--g08b-violet); }

/* ============ Winners showcase ============ */
.g08b-winner {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(255,255,255,0.06);
  border-radius: 0.8rem; padding: 1rem; margin-bottom: 0.8rem;
}
.g08b-winner .g08b-w-avatar {
  width: 3.6rem; height: 3.6rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--g08b-primary), var(--g08b-violet));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.4rem;
}
.g08b-winner .g08b-w-info { flex: 1; }
.g08b-winner .g08b-w-name { font-size: 1.3rem; color: #fff; font-weight: 700; }
.g08b-winner .g08b-w-game { font-size: 1.1rem; color: var(--g08b-muted); }
.g08b-winner .g08b-w-amount { font-size: 1.4rem; color: var(--g08b-gold); font-weight: 800; }

/* ============ App download CTA ============ */
.g08b-app-cta {
  background: linear-gradient(135deg, rgba(138,43,226,0.25), rgba(148,0,211,0.25));
  border: 1px solid var(--g08b-violet);
  border-radius: 1rem;
  padding: 1.6rem;
  text-align: center;
}
.g08b-app-cta h3 { color: #fff; margin-bottom: 0.6rem; }
.g08b-app-cta p { color: #d8d6e8; margin-bottom: 1rem; }
.g08b-app-cta .g08b-btn { margin: 0 auto; }

/* ============ Play now bar ============ */
.g08b-play-bar {
  position: sticky; bottom: 7rem;
  background: linear-gradient(135deg, var(--g08b-primary), var(--g08b-violet));
  border-radius: 1rem;
  padding: 1.2rem;
  display: flex; align-items: center; justify-content: space-between;
  margin: 1.6rem 0;
  box-shadow: 0 6px 18px rgba(138,43,226,0.4);
}
.g08b-play-bar span { color: #fff; font-size: 1.4rem; font-weight: 700; }
.g08b-play-bar .g08b-btn {
  background: #fff; color: var(--g08b-purple);
}

/* ============ Footer ============ */
.g08b-footer {
  background: #1b1430;
  border-top: 1px solid rgba(138,43,226,0.3);
  padding: 2rem 1.2rem;
  margin-top: 2rem;
}
.g08b-footer-brand {
  font-size: 1.4rem; color: #fff; font-weight: 700; margin-bottom: 0.8rem;
}
.g08b-footer-brand span { color: var(--g08b-violet); }
.g08b-footer-desc { font-size: 1.2rem; color: #a9a7c4; line-height: 1.9rem; margin-bottom: 1.4rem; }
.g08b-footer-promos {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-bottom: 1.4rem;
}
.g08b-footer-promos button, .g08b-footer-promos a {
  flex: 1 1 40%;
  background: rgba(138,43,226,0.18);
  border: 1px solid rgba(138,43,226,0.4);
  border-radius: 0.6rem;
  padding: 0.8rem; color: #fff; font-size: 1.2rem; font-weight: 600;
  text-align: center; cursor: pointer; min-height: 4rem;
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
}
.g08b-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem;
  margin-bottom: 1.2rem;
}
.g08b-footer-links a {
  font-size: 1.2rem; color: #cfcde3;
}
.g08b-footer-links a:hover { color: var(--g08b-violet); }
.g08b-footer-copy {
  font-size: 1.1rem; color: var(--g08b-muted);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1rem; text-align: center;
}

/* ============ Mobile bottom nav ============ */
.g08b-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 6rem;
  background: rgba(27, 20, 48, 0.98);
  border-top: 1px solid rgba(138, 43, 226, 0.4);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0.3rem 0;
}
.g08b-bottomnav-btn {
  flex: 1;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 6rem;
  min-height: 5.6rem;
  color: #a9a7c4;
  cursor: pointer;
  transition: color .2s ease, transform .15s ease;
  position: relative;
}
.g08b-bottomnav-btn i, .g08b-bottomnav-btn .material-icons-outlined,
.g08b-bottomnav-btn ion-icon { font-size: 2.2rem; }
.g08b-bottomnav-btn span { font-size: 1rem; }
.g08b-bottomnav-btn:active { transform: scale(0.92); }
.g08b-bottomnav-btn:hover { color: var(--g08b-violet); }
.g08b-bottomnav-active { color: var(--g08b-violet) !important; }
.g08b-bottomnav-active::before {
  content: ""; position: absolute; top: 0;
  width: 2.4rem; height: 0.3rem; border-radius: 0 0 0.4rem 0.4rem;
  background: var(--g08b-violet);
}

/* ============ Desktop ============ */
@media (min-width: 769px) {
  .g08b-bottomnav { display: none; }
  main.g08b-main { padding-bottom: 2rem; }
  .g08b-play-bar { position: static; }
}
@media (max-width: 768px) {
  main.g08b-main { padding-bottom: 8rem; }
}
