/* ============================================================
 * be999.homes - design.css
 * Mobile-first casino/gaming styles. All custom classes use the
 * "v979-" prefix to avoid collisions with third-party CSS.
 * Color palette: #212F3D / #FFDFBA / #9400D3 / #0097A7 / #FFC0CB
 * ============================================================ */

:root {
  --v979-bg: #212F3D;
  --v979-bg-soft: #2b3c50;
  --v979-bg-deep: #18222e;
  --v979-text: #FFDFBA;
  --v979-text-soft: #FFC0CB;
  --v979-primary: #9400D3;
  --v979-accent: #0097A7;
  --v979-gold: #FFDFBA;
  --v979-pink: #FFC0CB;
  --v979-border: rgba(255, 223, 186, 0.18);
  --v979-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  --v979-radius: 14px;
}

/* ---------- Reset / base ---------- */
* { 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: radial-gradient(circle at top, var(--v979-bg-soft), var(--v979-bg-deep));
  color: var(--v979-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--v979-pink); text-decoration: none; }
a:hover { color: var(--v979-text); }

/* ---------- Layout helpers ---------- */
.v979-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.v979-wrapper { padding: 1.6rem 1.2rem; }
.v979-section { margin: 2.4rem 0; }
.v979-grid { display: grid; gap: 1rem; }

/* ---------- Header ---------- */
.v979-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(90deg, var(--v979-bg-deep), #3a0d52 65%, var(--v979-bg-deep));
  border-bottom: 1px solid var(--v979-border);
  box-shadow: var(--v979-shadow);
}
.v979-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  gap: 0.8rem;
}
.v979-brand { display: flex; align-items: center; gap: 0.7rem; }
.v979-brand img { width: 30px; height: 30px; border-radius: 8px; }
.v979-brand-text { font-weight: 700; font-size: 1.7rem; color: var(--v979-gold); letter-spacing: 0.05rem; }
.v979-brand-text span { color: var(--v979-pink); }

.v979-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.v979-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.3rem;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
  min-height: 38px;
}
.v979-btn:active { transform: scale(0.94); }
.v979-btn-register { background: linear-gradient(135deg, #ffb347, #ffcc33); color: #4a2900; }
.v979-btn-login { background: linear-gradient(135deg, var(--v979-accent), #4ad3e0); color: #06222a; }
.v979-btn-promo { background: linear-gradient(135deg, var(--v979-primary), #c44dff); color: #fff; }
.v979-btn-ghost { background: transparent; border: 1px solid var(--v979-border); color: var(--v979-text); }

#v979-menu-btn {
  background: transparent;
  border: 1px solid var(--v979-border);
  color: var(--v979-text);
  border-radius: 10px;
  width: 38px; height: 38px;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- Expandable mobile menu ---------- */
.v979-mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--v979-bg-deep);
  border-bottom: 1px solid var(--v979-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease, padding 0.32s ease;
  z-index: 9999;
  padding: 0 1.2rem;
}
.v979-mobile-menu.v979-menu-open {
  max-height: 80vh;
  padding: 1.4rem 1.2rem 2rem;
  overflow-y: auto;
}
.v979-mobile-menu a {
  display: block;
  padding: 0.9rem 1rem;
  border-bottom: 1px dashed var(--v979-border);
  color: var(--v979-text);
  font-size: 1.4rem;
}
.v979-mobile-menu a:hover { color: var(--v979-pink); padding-left: 1.4rem; }
.v979-menu-title { font-size: 1.2rem; color: var(--v979-text-soft); margin: 0.8rem 0 0.4rem; text-transform: uppercase; letter-spacing: 0.1rem; }

/* ---------- Main ---------- */
main { padding-top: 76px; padding-bottom: 1rem; }

/* ---------- Hero / carousel ---------- */
.v979-hero { position: relative; border-radius: var(--v979-radius); overflow: hidden; box-shadow: var(--v979-shadow); }
.v979-slide { display: none; cursor: pointer; }
.v979-slide.v979-slide-active { display: block; }
.v979-slide img { width: 100%; height: 190px; object-fit: cover; }
.v979-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.9rem 1.2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  font-weight: 700; color: var(--v979-gold); font-size: 1.4rem;
}
.v979-dots {
  position: absolute; bottom: 10px; right: 14px;
  display: flex; gap: 6px;
}
.v979-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
}
.v979-dot.v979-dot-active { background: var(--v979-gold); }

/* ---------- Headings ---------- */
.v979-h1 {
  font-size: 2.1rem; line-height: 1.25; font-weight: 800;
  margin: 1.4rem 0 0.8rem; color: var(--v979-gold);
}
.v979-h2 {
  font-size: 1.7rem; font-weight: 700;
  margin: 2rem 0 0.8rem; color: var(--v979-pink);
  border-left: 4px solid var(--v979-primary);
  padding-left: 0.9rem;
}
.v979-h3 { font-size: 1.45rem; font-weight: 700; margin: 1.2rem 0 0.6rem; color: var(--v979-text); }
.v979-lead { color: var(--v979-text-soft); margin-bottom: 1rem; line-height: 1.6; }
.v979-p { margin-bottom: 0.9rem; line-height: 1.6; color: var(--v979-text); }
.v979-p b, .v979-p strong { color: var(--v979-gold); }

/* ---------- Cards / sections ---------- */
.v979-card {
  background: rgba(43, 60, 80, 0.85);
  border: 1px solid var(--v979-border);
  border-radius: var(--v979-radius);
  padding: 1.2rem;
  margin: 1rem 0;
  box-shadow: var(--v979-shadow);
}
.v979-card-accent { border-left: 4px solid var(--v979-accent); }
.v979-card-gold { border-left: 4px solid var(--v979-gold); }

/* ---------- Game grid ---------- */
.v979-cat-title {
  font-size: 1.5rem; font-weight: 700; margin: 1.8rem 0 1rem;
  color: var(--v979-gold);
  display: flex; align-items: center; gap: 0.6rem;
}
.v979-cat-title i { color: var(--v979-pink); }
.v979-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.v979-game {
  background: linear-gradient(160deg, #2c4258, #1d2c3c);
  border: 1px solid var(--v979-border);
  border-radius: 12px;
  padding: 0.6rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.v979-game:active { transform: scale(0.95); border-color: var(--v979-gold); }
.v979-game img {
  width: 100%; height: 78px; object-fit: cover; border-radius: 8px; margin-bottom: 0.4rem;
}
.v979-game-name {
  font-size: 1.1rem; color: var(--v979-text); line-height: 1.25;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  min-height: 2.8em;
}

/* ---------- Feature list ---------- */
.v979-features { display: grid; gap: 0.8rem; }
.v979-feature {
  display: flex; gap: 0.9rem; align-items: flex-start;
  background: rgba(0, 151, 167, 0.1);
  padding: 0.9rem; border-radius: 10px;
  border: 1px solid var(--v979-border);
}
.v979-feature i { font-size: 2rem; color: var(--v979-accent); margin-top: 0.2rem; }
.v979-feature h3 { margin: 0 0 0.3rem; color: var(--v979-gold); }
.v979-feature p { margin: 0; font-size: 1.25rem; color: var(--v979-text-soft); }

/* ---------- RTP table ---------- */
.v979-rtp { width: 100%; border-collapse: collapse; font-size: 1.25rem; }
.v979-rtp th, .v979-rtp td { padding: 0.6rem; border-bottom: 1px solid var(--v979-border); text-align: left; }
.v979-rtp th { color: var(--v979-gold); background: rgba(148,0,211,0.25); }
.v979-rtp td b { color: var(--v979-accent); }

/* ---------- Testimonials ---------- */
.v979-testimonials { display: grid; gap: 0.9rem; }
.v979-testimonial {
  background: rgba(255, 192, 203, 0.08);
  border-left: 3px solid var(--v979-pink);
  border-radius: 8px; padding: 0.9rem;
}
.v979-testimonial .v979-stars { color: #ffd54f; margin-bottom: 0.4rem; }
.v979-testimonial p { font-size: 1.25rem; color: var(--v979-text); }
.v979-testimonial cite { display: block; margin-top: 0.5rem; color: var(--v979-pink); font-style: normal; font-weight: 700; }

/* ---------- Payment methods ---------- */
.v979-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.v979-pay {
  background: #fff; border-radius: 8px; padding: 0.5rem;
  text-align: center; color: #212F3D; font-size: 1rem; font-weight: 700;
}
.v979-pay i { font-size: 1.8rem; display: block; margin-bottom: 0.2rem; color: var(--v979-primary); }

/* ---------- Winners ---------- */
.v979-winners { display: grid; gap: 0.6rem; }
.v979-winner {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255, 223, 186, 0.08);
  padding: 0.7rem 0.9rem; border-radius: 8px;
  border: 1px solid var(--v979-border);
  font-size: 1.25rem;
}
.v979-winner b { color: var(--v979-gold); }

/* ---------- CTA block ---------- */
.v979-cta {
  background: linear-gradient(135deg, var(--v979-primary), #c44dff);
  border-radius: var(--v979-radius);
  padding: 1.6rem; text-align: center; color: #fff;
  margin: 1.6rem 0; box-shadow: var(--v979-shadow);
}
.v979-cta h2 { color: #fff; border: none; padding: 0; margin: 0 0 0.5rem; }
.v979-cta p { margin-bottom: 1rem; }

/* ---------- App download ---------- */
.v979-app {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(0, 151, 167, 0.14);
  border-radius: var(--v979-radius); padding: 1.2rem;
  border: 1px solid var(--v979-border);
}
.v979-app-icon { font-size: 3.2rem; color: var(--v979-accent); }
.v979-app h3 { margin: 0 0 0.3rem; color: var(--v979-gold); }
.v979-app p { margin: 0 0 0.8rem; font-size: 1.2rem; }
.v979-app-btns { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.v979-faq-item {
  border-bottom: 1px solid var(--v979-border);
  padding: 0.8rem 0;
}
.v979-faq-item h3 { color: var(--v979-gold); margin: 0 0 0.4rem; font-size: 1.3rem; }
.v979-faq-item p { margin: 0; font-size: 1.25rem; color: var(--v979-text-soft); }

/* ---------- Footer ---------- */
.v979-footer {
  background: var(--v979-bg-deep);
  border-top: 1px solid var(--v979-border);
  padding: 2rem 1.2rem 5.5rem;
  margin-top: 2rem;
}
.v979-footer-brand { color: var(--v979-text-soft); font-size: 1.25rem; line-height: 1.6; margin-bottom: 1.2rem; }
.v979-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1rem;
  margin: 1rem 0;
}
.v979-footer-links a {
  color: var(--v979-pink); font-size: 1.2rem;
  padding: 0.3rem 0.6rem; border-radius: 6px;
  background: rgba(148,0,211,0.15);
}
.v979-footer-promos {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin: 1rem 0;
}
.v979-footer-promos button, .v979-footer-promos a {
  flex: 1 1 calc(50% - 0.6rem);
  text-align: center;
  padding: 0.7rem;
  border-radius: 8px;
  font-weight: 700; font-size: 1.2rem;
  background: linear-gradient(135deg, var(--v979-accent), #4ad3e0);
  color: #06222a; cursor: pointer; border: none;
}
.v979-footer-promos .v979-promo-secondary {
  background: linear-gradient(135deg, #ffb347, #ffcc33); color: #4a2900;
}
.v979-copy {
  text-align: center; color: var(--v979-text-soft); font-size: 1.15rem;
  border-top: 1px dashed var(--v979-border); padding-top: 1rem; margin-top: 1rem;
}

/* ---------- Bottom navigation ---------- */
.v979-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 62px;
  background: linear-gradient(180deg, #2b3c50, #18222e);
  border-top: 1px solid var(--v979-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.35);
}
.v979-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; cursor: pointer;
  color: var(--v979-text-soft); font-size: 1rem;
  gap: 0.2rem; padding: 0.4rem;
  transition: color 0.18s ease, transform 0.18s ease;
}
.v979-bottomnav-btn:active { transform: scale(0.9); }
.v979-bottomnav-btn i, .v979-bottomnav-btn .material-icons {
  font-size: 22px;
}
.v979-bottomnav-btn span { font-size: 1rem; line-height: 1; }
.v979-bottomnav-btn.v979-bottomnav-active { color: var(--v979-gold); }
.v979-bottomnav-btn.v979-bottomnav-promo { color: var(--v979-pink); }
.v979-bottomnav-btn.v979-bottomnav-promo i { color: var(--v979-gold); }

/* ---------- Utilities ---------- */
.v979-text-center { text-align: center; }
.v979-mt-1 { margin-top: 0.6rem; }
.v979-mt-2 { margin-top: 1.2rem; }
.v979-mb-1 { margin-bottom: 0.6rem; }
.v979-hidden { display: none; }

/* ---------- Desktop / larger screens ---------- */
@media (min-width: 769px) {
  body { max-width: 480px; box-shadow: 0 0 60px rgba(0,0,0,0.4); }
  .v979-bottomnav { display: none; }
  .v979-footer { padding-bottom: 2rem; }
  #v979-menu-btn { display: none; }
}

/* ---------- Mobile bottom padding for fixed nav ---------- */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
  .v979-footer { padding-bottom: 80px; }
}

/* Larger touch targets on very small phones */
@media (max-width: 360px) {
  .v979-game-grid { grid-template-columns: repeat(2, 1fr); }
  .v979-h1 { font-size: 1.85rem; }
}
