/*!
 * shuvo777 - theme.css
 * Mobile-first casino/gaming styles for shuvo777.cfd (bn-BD)
 * All custom classes use the g5d4- prefix.
 * Palette: #40E0D0 | #FFCCCB | #BF360C | #0F0F23 | #48D1CC
 * Dark background (#0F0F23), light text, turquoise + coral accents.
 */

/* ---------- CSS variables ---------- */
:root {
  --g5d4-primary: #40E0D0;
  --g5d4-primary-2: #48D1CC;
  --g5d4-coral: #FFCCCB;
  --g5d4-rust: #BF360C;
  --g5d4-bg: #0F0F23;
  --g5d4-bg-2: #161635;
  --g5d4-bg-3: #1f1f47;
  --g5d4-text: #f5f7fa;
  --g5d4-text-dim: #b6c2d0;
  --g5d4-gold: #ffd76b;
  --g5d4-radius: 14px;
  --g5d4-radius-sm: 10px;
  --g5d4-shadow: 0 6px 20px rgba(0,0,0,.45);
  --g5d4-shadow-glow: 0 0 24px rgba(64,224,208,.35);
  --g5d4-header-h: 56px;
  --g5d4-bottomnav-h: 60px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Noto Sans Bengali", "Hind Siliguri", "Roboto", system-ui, sans-serif;
  background: var(--g5d4-bg);
  color: var(--g5d4-text);
  line-height: 1.55;
  font-size: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--g5d4-primary); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* root font: 10px on mobile for rem sizing */
html { font-size: 62.5%; }

/* ---------- Layout helpers ---------- */
.g5d4-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 12px; }
.g5d4-wrapper { max-width: 430px; margin: 0 auto; position: relative; }
.g5d4-section { padding: 18px 0; }
.g5d4-section--alt { background: var(--g5d4-bg-2); }
.g5d4-grid { display: grid; gap: 10px; }
.g5d4-text-center { text-align: center; }
.g5d4-mt-8 { margin-top: 8px; } .g5d4-mt-16 { margin-top: 16px; }
.g5d4-mb-8 { margin-bottom: 8px; } .g5d4-mb-16 { margin-bottom: 16px; }
.g5d4-hidden { display: none !important; }

/* ---------- Header ---------- */
.g5d4-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--g5d4-header-h);
  background: linear-gradient(90deg, #0F0F23 0%, #1a1a3d 60%, #11203a 100%);
  border-bottom: 1px solid rgba(64,224,208,.25);
  box-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.g5d4-header-inner {
  max-width: 430px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px;
}
.g5d4-logo { display: flex; align-items: center; gap: 8px; color: var(--g5d4-text); }
.g5d4-logo img { width: 28px; height: 28px; border-radius: 6px; }
.g5d4-logo-text { font-weight: 800; font-size: 1.8rem; letter-spacing: .3px; }
.g5d4-logo-text span { color: var(--g5d4-primary); }
.g5d4-header-actions { display: flex; align-items: center; gap: 6px; }
.g5d4-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 1.3rem;
  min-height: 36px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.g5d4-btn:active { transform: scale(.96); }
.g5d4-btn--login { background: transparent; color: var(--g5d4-primary); border: 1px solid var(--g5d4-primary); }
.g5d4-btn--login:hover { background: rgba(64,224,208,.12); }
.g5d4-btn--register {
  background: linear-gradient(90deg, var(--g5d4-primary), var(--g5d4-primary-2));
  color: #062028; box-shadow: var(--g5d4-shadow-glow);
}
.g5d4-btn--register:hover { filter: brightness(1.08); }
.g5d4-menu-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  color: var(--g5d4-primary); font-size: 2rem; background: rgba(64,224,208,.08);
  border-radius: 8px;
}

/* ---------- Mobile slide menu ---------- */
.g5d4-menu-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,.55); opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.g5d4-menu-open .g5d4-menu-overlay { opacity: 1; pointer-events: auto; }
.g5d4-mobile-menu {
  position: fixed; top: 0; right: -85%; width: 78%; max-width: 320px;
  height: 100%; z-index: 9999; background: var(--g5d4-bg-2);
  padding: 70px 16px 24px; transition: right .28s ease;
  border-left: 1px solid rgba(64,224,208,.25); box-shadow: -8px 0 24px rgba(0,0,0,.5);
  overflow-y: auto;
}
.g5d4-menu-open .g5d4-mobile-menu { right: 0; }
.g5d4-mobile-menu h3 { font-size: 1.5rem; color: var(--g5d4-text-dim); margin: 14px 0 8px; }
.g5d4-mobile-menu a {
  display: block; padding: 11px 12px; border-radius: 10px;
  color: var(--g5d4-text); font-size: 1.4rem; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.g5d4-mobile-menu a:hover { background: rgba(64,224,208,.12); color: var(--g5d4-primary); }
.g5d4-menu-close { position: absolute; top: 14px; right: 14px; font-size: 2.2rem; color: var(--g5d4-coral); }

/* ---------- Main content padding ---------- */
.g5d4-main { padding-top: var(--g5d4-header-h); }
@media (max-width: 768px) {
  .g5d4-main { padding-bottom: calc(var(--g5d4-bottomnav-h) + 20px); }
}

/* ---------- Hero carousel ---------- */
.g5d4-carousel {
  position: relative; width: 100%; height: 200px; border-radius: var(--g5d4-radius);
  overflow: hidden; box-shadow: var(--g5d4-shadow); margin: 12px 0;
}
.g5d4-carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease;
  cursor: pointer;
}
.g5d4-carousel-slide.g5d4-slide-active { opacity: 1; }
.g5d4-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.g5d4-carousel-caption {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  background: linear-gradient(90deg, rgba(15,15,35,.85), rgba(15,15,35,.4));
  padding: 10px 12px; border-radius: 10px; font-size: 1.35rem; font-weight: 700;
}
.g5d4-carousel-caption small { display: block; color: var(--g5d4-coral); font-size: 1.1rem; font-weight: 500; }
.g5d4-carousel-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 3;
}
.g5d4-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); }
.g5d4-carousel-dot.g5d4-dot-active { background: var(--g5d4-primary); box-shadow: 0 0 6px var(--g5d4-primary); }

/* ---------- Section heading ---------- */
.g5d4-section-head { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; }
.g5d4-section-head h2 { font-size: 1.7rem; font-weight: 800; color: var(--g5d4-text); }
.g5d4-section-head .g5d4-bar { width: 4px; height: 20px; background: var(--g5d4-primary); border-radius: 3px; }
.g5d4-section-head .g5d4-link { margin-left: auto; font-size: 1.2rem; color: var(--g5d4-primary); }

/* ---------- Promo CTA ---------- */
.g5d4-cta {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin: 12px 0;
  background: linear-gradient(90deg, rgba(64,224,208,.18), rgba(72,209,204,.06));
  border: 1px solid rgba(64,224,208,.4); border-radius: var(--g5d4-radius);
}
.g5d4-cta-text { flex: 1; font-size: 1.35rem; }
.g5d4-cta-text strong { color: var(--g5d4-primary); }
.g5d4-cta .g5d4-btn--register { flex-shrink: 0; }

/* ---------- Category anchors ---------- */
.g5d4-cat-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 10px; }
.g5d4-cat-tabs::-webkit-scrollbar { display: none; }
.g5d4-cat-tab {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; font-size: 1.25rem; font-weight: 700;
  background: var(--g5d4-bg-3); color: var(--g5d4-text-dim); white-space: nowrap;
}
.g5d4-cat-tab:hover { color: var(--g5d4-primary); border-color: var(--g5d4-primary); }

/* ---------- Game grid ---------- */
.g5d4-cat-block { margin: 14px 0 20px; scroll-margin-top: 70px; }
.g5d4-cat-title {
  font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; padding-left: 10px;
  border-left: 4px solid var(--g5d4-primary); color: var(--g5d4-text);
}
.g5d4-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.g5d4-game-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--g5d4-bg-2); border-radius: var(--g5d4-radius-sm);
  padding: 6px; text-align: center; cursor: pointer;
  border: 1px solid rgba(255,255,255,.04); transition: transform .15s ease, border-color .15s ease;
}
.g5d4-game-card:hover { transform: translateY(-2px); border-color: rgba(64,224,208,.5); }
.g5d4-game-card:active { transform: scale(.96); }
.g5d4-game-card img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px;
  background: #0a0a1e;
}
.g5d4-game-name {
  font-size: 1.05rem; color: var(--g5d4-text-dim); font-weight: 600;
  line-height: 1.25; height: 2.6em; overflow: hidden;
}
.g5d4-game-card:hover .g5d4-game-name { color: var(--g5d4-primary); }

/* ---------- Info / feature blocks ---------- */
.g5d4-card {
  background: var(--g5d4-bg-2); border-radius: var(--g5d4-radius); padding: 14px;
  box-shadow: var(--g5d4-shadow); margin: 10px 0;
  border: 1px solid rgba(255,255,255,.04);
}
.g5d4-card h3 { font-size: 1.5rem; margin-bottom: 8px; color: var(--g5d4-primary); }
.g5d4-card p { font-size: 1.3rem; color: var(--g5d4-text-dim); margin-bottom: 8px; }
.g5d4-card ul { padding-left: 16px; }
.g5d4-card ul li { font-size: 1.3rem; color: var(--g5d4-text-dim); margin-bottom: 5px; list-style: disc; }

/* ---------- Steps ---------- */
.g5d4-steps { counter-reset: step; }
.g5d4-step { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,.08); }
.g5d4-step:last-child { border-bottom: none; }
.g5d4-step-num {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--g5d4-primary), var(--g5d4-primary-2));
  color: #062028; font-weight: 800; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
}
.g5d4-step-body h4 { font-size: 1.4rem; color: var(--g5d4-text); margin-bottom: 3px; }
.g5d4-step-body p { font-size: 1.25rem; color: var(--g5d4-text-dim); }

/* ---------- Testimonials ---------- */
.g5d4-testimonials { display: grid; gap: 10px; }
.g5d4-testimonial {
  background: var(--g5d4-bg-2); border-left: 3px solid var(--g5d4-coral);
  padding: 12px 14px; border-radius: 10px;
}
.g5d4-testimonial p { font-size: 1.3rem; color: var(--g5d4-text); margin-bottom: 6px; }
.g5d4-testimonial .g5d4-author { font-size: 1.15rem; color: var(--g5d4-gold); font-weight: 700; }

/* ---------- Winners strip ---------- */
.g5d4-winners { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0; }
.g5d4-winners::-webkit-scrollbar { display: none; }
.g5d4-winner {
  flex: 0 0 auto; background: var(--g5d4-bg-3); border-radius: 10px;
  padding: 8px 12px; font-size: 1.15rem; white-space: nowrap;
  border: 1px solid rgba(255,215,107,.2);
}
.g5d4-winner strong { color: var(--g5d4-gold); }
.g5d4-winner small { display: block; color: var(--g5d4-text-dim); font-size: 1rem; }

/* ---------- Payment methods ---------- */
.g5d4-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.g5d4-pay {
  background: var(--g5d4-bg-3); border-radius: 10px; padding: 10px 6px; text-align: center;
  font-size: 1.1rem; color: var(--g5d4-text-dim); font-weight: 600;
  border: 1px solid rgba(255,255,255,.05);
}
.g5d4-pay .g5d4-pay-icon { font-size: 2.2rem; color: var(--g5d4-primary); display: block; margin-bottom: 4px; }

/* ---------- RTP table ---------- */
.g5d4-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.g5d4-rtp-table th, .g5d4-rtp-table td { padding: 8px 6px; border-bottom: 1px solid rgba(255,255,255,.07); text-align: left; }
.g5d4-rtp-table th { color: var(--g5d4-primary); font-size: 1.15rem; }
.g5d4-rtp-table td.g5d4-rtp-num { color: var(--g5d4-gold); font-weight: 700; text-align: right; }

/* ---------- App download CTA ---------- */
.g5d4-app-cta {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  background: linear-gradient(120deg, rgba(191,54,12,.18), rgba(64,224,208,.12));
  border: 1px solid rgba(191,54,12,.4); border-radius: var(--g5d4-radius); margin: 12px 0;
}
.g5d4-app-cta-text { flex: 1; }
.g5d4-app-cta-text h3 { font-size: 1.5rem; color: var(--g5d4-coral); margin-bottom: 4px; }
.g5d4-app-cta-text p { font-size: 1.2rem; color: var(--g5d4-text-dim); }

/* ---------- FAQ ---------- */
.g5d4-faq-item { border-bottom: 1px solid rgba(255,255,255,.08); padding: 10px 0; }
.g5d4-faq-item h4 { font-size: 1.35rem; color: var(--g5d4-primary); margin-bottom: 5px; }
.g5d4-faq-item p { font-size: 1.25rem; color: var(--g5d4-text-dim); }

/* ---------- Inline promo link ---------- */
.g5d4-promo-link {
  color: var(--g5d4-primary); font-weight: 800; cursor: pointer;
  border-bottom: 1px dashed var(--g5d4-primary);
}
.g5d4-promo-link:hover { color: var(--g5d4-coral); border-color: var(--g5d4-coral); }

/* ---------- Footer ---------- */
.g5d4-footer {
  background: #08081a; border-top: 1px solid rgba(64,224,208,.2);
  padding: 22px 12px 14px; margin-top: 24px;
}
.g5d4-footer-brand { font-size: 1.3rem; color: var(--g5d4-text-dim); margin-bottom: 10px; line-height: 1.6; }
.g5d4-footer-brand strong { color: var(--g5d4-primary); }
.g5d4-footer-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.g5d4-footer-links a {
  font-size: 1.15rem; color: var(--g5d4-text-dim); padding: 5px 10px;
  background: var(--g5d4-bg-3); border-radius: 6px;
}
.g5d4-footer-links a:hover { color: var(--g5d4-primary); }
.g5d4-footer-promo { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.g5d4-footer-promo .g5d4-btn { font-size: 1.15rem; padding: 7px 12px; }
.g5d4-footer-copy { font-size: 1.1rem; color: var(--g5d4-text-dim); border-top: 1px solid rgba(255,255,255,.06); padding-top: 10px; text-align: center; }

/* ---------- Back to top ---------- */
.g5d4-totop {
  position: fixed; right: 12px; bottom: calc(var(--g5d4-bottomnav-h) + 14px);
  z-index: 900; width: 38px; height: 38px; border-radius: 50%;
  background: var(--g5d4-bg-3); color: var(--g5d4-primary); font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--g5d4-shadow); border: 1px solid rgba(64,224,208,.4);
}
.g5d4-totop:active { transform: scale(.92); }
@media (min-width: 769px) { .g5d4-totop { display: none; } }

/* ---------- Mobile bottom nav ---------- */
.g5d4-bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  height: var(--g5d4-bottomnav-h);
  background: linear-gradient(180deg, #161635 0%, #0b0b1f 100%);
  border-top: 1px solid rgba(64,224,208,.3);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -3px 14px rgba(0,0,0,.55);
}
.g5d4-bottomnav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--g5d4-text-dim); font-size: 1rem; font-weight: 600;
  background: transparent; transition: color .15s ease, transform .15s ease;
  position: relative;
}
.g5d4-bottomnav-btn .g5d4-bn-icon { font-size: 2.2rem; line-height: 1; }
.g5d4-bottomnav-btn .g5d4-bn-label { font-size: 1rem; line-height: 1; }
.g5d4-bottomnav-btn:hover { color: var(--g5d4-primary); }
.g5d4-bottomnav-btn:active { transform: scale(.9); }
.g5d4-bottomnav-btn.g5d4-nav-active { color: var(--g5d4-primary); }
.g5d4-bottomnav-btn.g5d4-nav-active::before {
  content: ''; position: absolute; top: 0; left: 18%; right: 18%; height: 3px;
  background: linear-gradient(90deg, var(--g5d4-primary), var(--g5d4-gold)); border-radius: 0 0 4px 4px;
}
.g5d4-bottomnav-btn.g5d4-nav-active .g5d4-bn-icon { filter: drop-shadow(0 0 6px rgba(64,224,208,.6)); }
.g5d4-bn-badge {
  position: absolute; top: 6px; right: 18px; min-width: 16px; height: 16px;
  background: var(--g5d4-rust); color: #fff; border-radius: 8px; font-size: .9rem;
  display: flex; align-items: center; justify-content: center; padding: 0 4px; font-weight: 700;
}
@media (min-width: 769px) { .g5d4-bottomnav { display: none; } }

/* ---------- Desktop adjustments ---------- */
@media (min-width: 769px) {
  body { background: #0a0a1f; }
  .g5d4-header-inner { max-width: 900px; }
  .g5d4-container, .g5d4-wrapper { max-width: 900px; }
  .g5d4-game-grid { grid-template-columns: repeat(8, 1fr); }
  .g5d4-pay-grid { grid-template-columns: repeat(8, 1fr); }
  .g5d4-carousel { height: 320px; }
  .g5d4-menu-btn { display: none; }
}
