/* ============================================================
 * jaya.homes - style-d0ed.css
 * Mobile-first styles. All custom classes use the "sd0e-" prefix.
 * Palette: #2C3E50 / #F5F5F5 / #36454F / #FFDEAD / #A9A9A9
 * Max mobile width: 430px. Root font 62.5%.
 * ============================================================ */

:root {
  --sd0e-primary: #2C3E50;
  --sd0e-bg: #36454F;
  --sd0e-text: #F5F5F5;
  --sd0e-accent: #FFDEAD;
  --sd0e-muted: #A9A9A9;
  --sd0e-dark: #1f2b36;
  --sd0e-darker: #16202a;
  --sd0e-line: rgba(245,245,245,0.10);
  --sd0e-shadow: 0 6px 22px rgba(0,0,0,0.28);
  --sd0e-radius: 12px;
  --sd0e-radius-lg: 18px;
  --sd0e-header-h: 58px;
  --sd0e-bottom-h: 62px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--sd0e-primary);
  color: var(--sd0e-text);
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--sd0e-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.sd0e-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 12px; }
.sd0e-wrapper { padding-top: var(--sd0e-header-h); padding-bottom: calc(var(--sd0e-bottom-h) + 18px); min-height: 100vh; }

/* ---------- Header ---------- */
.sd0e-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #1f2b36 0%, var(--sd0e-primary) 100%);
  border-bottom: 1px solid var(--sd0e-line);
  box-shadow: var(--sd0e-shadow);
}
.sd0e-header-inner {
  max-width: 430px; margin: 0 auto; height: var(--sd0e-header-h);
  display: flex; align-items: center; gap: 8px; padding: 0 10px;
}
.sd0e-brand { display: flex; align-items: center; gap: 8px; color: var(--sd0e-text); }
.sd0e-brand img { width: 30px; height: 30px; border-radius: 8px; }
.sd0e-brand-name { font-size: 1.8rem; font-weight: 700; letter-spacing: .3px; }
.sd0e-brand-name b { color: var(--sd0e-accent); }

.sd0e-header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.sd0e-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 0 14px; border: none; border-radius: 999px;
  font-size: 1.35rem; font-weight: 700; cursor: pointer; transition: transform .12s ease, filter .12s ease;
}
.sd0e-btn:active { transform: scale(0.96); }
.sd0e-btn-primary { background: var(--sd0e-accent); color: #2a2a2a; }
.sd0e-btn-primary:hover { filter: brightness(1.05); text-decoration: none; }
.sd0e-btn-ghost { background: transparent; color: var(--sd0e-text); border: 1px solid var(--sd0e-line); }
.sd0e-btn-ghost:hover { background: rgba(255,255,255,0.06); text-decoration: none; }
.sd0e-btn-block { width: 100%; min-height: 44px; font-size: 1.5rem; }

.sd0e-menu-btn {
  background: transparent; border: 1px solid var(--sd0e-line); color: var(--sd0e-text);
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.sd0e-menu-btn:hover { background: rgba(255,255,255,0.06); }

/* ---------- Mobile dropdown menu ---------- */
.sd0e-mobile-menu {
  position: fixed; top: var(--sd0e-header-h); left: 0; right: 0; z-index: 9999;
  background: var(--sd0e-dark);
  border-bottom: 1px solid var(--sd0e-line);
  max-height: 0; overflow: hidden; transition: max-height .25s ease;
}
.sd0e-mobile-menu.sd0e-is-open { max-height: 460px; }
.sd0e-mobile-menu-inner { max-width: 430px; margin: 0 auto; padding: 8px 12px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sd0e-mobile-menu a {
  display: block; padding: 10px 12px; color: var(--sd0e-text);
  background: rgba(255,255,255,0.04); border-radius: 10px; font-size: 1.4rem;
}
.sd0e-mobile-menu a:hover { background: rgba(255,222,173,0.16); text-decoration: none; }

/* ---------- Hero carousel ---------- */
.sd0e-hero { position: relative; border-radius: var(--sd0e-radius-lg); overflow: hidden; margin: 12px 0; box-shadow: var(--sd0e-shadow); }
.sd0e-hero-track { position: relative; }
.sd0e-hero-slide {
  display: none; position: relative; cursor: pointer;
}
.sd0e-hero-slide.sd0e-is-active { display: block; }
.sd0e-hero-slide img { width: 100%; height: 180px; object-fit: cover; }
.sd0e-hero-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0) 100%);
  color: var(--sd0e-text); font-size: 1.4rem; font-weight: 600;
}
.sd0e-hero-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.sd0e-hero-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(245,245,245,0.45); border: none; cursor: pointer; padding: 0;
}
.sd0e-hero-dot.sd0e-is-active { background: var(--sd0e-accent); width: 18px; border-radius: 5px; }

/* ---------- Sections ---------- */
.sd0e-section { margin: 22px 0; }
.sd0e-section-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.sd0e-section-title { font-size: 1.8rem; font-weight: 700; color: var(--sd0e-text); margin: 0; }
.sd0e-section-title b { color: var(--sd0e-accent); }
.sd0e-section-sub { color: var(--sd0e-muted); font-size: 1.3rem; margin: 4px 0 0; }

.sd0e-h1 {
  font-size: 2.2rem; font-weight: 800; line-height: 1.35; margin: 14px 0 6px;
  color: var(--sd0e-text);
}
.sd0e-h1 b, .sd0e-h2 b, .sd0e-h3 b { color: var(--sd0e-accent); }
.sd0e-h2 { font-size: 1.9rem; font-weight: 700; margin: 18px 0 8px; color: var(--sd0e-text); }
.sd0e-h3 { font-size: 1.6rem; font-weight: 700; margin: 14px 0 6px; color: var(--sd0e-text); }
.sd0e-lead { color: var(--sd0e-text); font-size: 1.45rem; line-height: 1.55; }
.sd0e-muted { color: var(--sd0e-muted); }

/* ---------- Category quick bar ---------- */
.sd0e-cattabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.sd0e-cattabs::-webkit-scrollbar { display: none; }
.sd0e-cattab {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--sd0e-line);
  background: rgba(255,255,255,0.04); color: var(--sd0e-text); font-size: 1.3rem; cursor: pointer;
  white-space: nowrap;
}
.sd0e-cattab.sd0e-is-active { background: var(--sd0e-accent); color: #2a2a2a; border-color: var(--sd0e-accent); font-weight: 700; }

/* ---------- Game grid ---------- */
.sd0e-game-section { margin: 18px 0; }
.sd0e-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.sd0e-game-card {
  display: block; background: var(--sd0e-dark); border: 1px solid var(--sd0e-line);
  border-radius: var(--sd0e-radius); overflow: hidden; cursor: pointer;
  transition: transform .12s ease, border-color .12s ease;
}
.sd0e-game-card:hover { transform: translateY(-2px); border-color: var(--sd0e-accent); text-decoration: none; }
.sd0e-game-thumb { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #0e161d; }
.sd0e-game-name {
  padding: 6px 8px; font-size: 1.2rem; color: var(--sd0e-text); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4rem;
}

/* ---------- Cards / panels ---------- */
.sd0e-card {
  background: var(--sd0e-dark); border: 1px solid var(--sd0e-line); border-radius: var(--sd0e-radius-lg);
  padding: 14px; box-shadow: var(--sd0e-shadow);
}
.sd0e-card h3 { margin-top: 0; }
.sd0e-card-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.sd0e-feature-row { display: flex; gap: 10px; align-items: flex-start; }
.sd0e-feature-row .sd0e-ico { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,222,173,0.14); display: inline-flex; align-items: center; justify-content: center; color: var(--sd0e-accent); }
.sd0e-feature-row h4 { margin: 0 0 4px; font-size: 1.45rem; color: var(--sd0e-text); }
.sd0e-feature-row p { margin: 0; color: var(--sd0e-muted); font-size: 1.3rem; line-height: 1.5rem; }

/* ---------- Steps list ---------- */
.sd0e-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.sd0e-steps li {
  position: relative; padding: 10px 10px 10px 42px; margin-bottom: 8px;
  background: rgba(255,255,255,0.04); border-radius: 10px; border: 1px solid var(--sd0e-line);
}
.sd0e-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: var(--sd0e-accent); color: #2a2a2a;
  font-weight: 700; font-size: 1.3rem; display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- FAQ ---------- */
.sd0e-faq { border: 1px solid var(--sd0e-line); border-radius: var(--sd0e-radius); overflow: hidden; background: var(--sd0e-dark); }
.sd0e-faq summary { padding: 12px 14px; font-size: 1.45rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sd0e-faq summary::-webkit-details-marker { display: none; }
.sd0e-faq summary::after { content: "+"; color: var(--sd0e-accent); font-size: 1.8rem; }
.sd0e-faq[open] summary::after { content: "-"; }
.sd0e-faq-body { padding: 0 14px 14px; color: var(--sd0e-text); font-size: 1.35rem; line-height: 1.55; }

/* ---------- Stats / RTP ---------- */
.sd0e-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sd0e-stat { background: rgba(255,255,255,0.04); border: 1px solid var(--sd0e-line); border-radius: var(--sd0e-radius); padding: 12px; text-align: center; }
.sd0e-stat-num { font-size: 2rem; font-weight: 800; color: var(--sd0e-accent); }
.sd0e-stat-label { font-size: 1.2rem; color: var(--sd0e-muted); }

.sd0e-bar { height: 8px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.sd0e-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--sd0e-accent), #ffd28a); }
.sd0e-rtp-row { margin-bottom: 10px; }
.sd0e-rtp-row .sd0e-rtp-top { display: flex; justify-content: space-between; font-size: 1.3rem; margin-bottom: 4px; }

/* ---------- Testimonials ---------- */
.sd0e-testi { background: var(--sd0e-dark); border: 1px solid var(--sd0e-line); border-radius: var(--sd0e-radius); padding: 12px; margin-bottom: 10px; }
.sd0e-testi-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sd0e-testi-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--sd0e-accent); color: #2a2a2a; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.sd0e-testi-name { font-weight: 700; font-size: 1.35rem; }
.sd0e-stars { color: var(--sd0e-accent); font-size: 1.2rem; }
.sd0e-testi p { margin: 0; font-size: 1.3rem; color: var(--sd0e-text); line-height: 1.5rem; }

/* ---------- Winners ---------- */
.sd0e-winner { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px dashed var(--sd0e-line); }
.sd0e-winner:last-child { border-bottom: none; }
.sd0e-winner-name { font-weight: 600; }
.sd0e-winner-amount { margin-left: auto; color: var(--sd0e-accent); font-weight: 700; }

/* ---------- Payment chips ---------- */
.sd0e-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sd0e-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--sd0e-line); color: var(--sd0e-text); font-size: 1.25rem;
}

/* ---------- CTA banner ---------- */
.sd0e-cta {
  background: linear-gradient(135deg, var(--sd0e-accent) 0%, #ffd9a0 100%);
  color: #2a2a2a; border-radius: var(--sd0e-radius-lg); padding: 18px; text-align: center; box-shadow: var(--sd0e-shadow);
}
.sd0e-cta h3 { margin: 0 0 6px; color: #2a2a2a; }
.sd0e-cta p { margin: 0 0 12px; color: #4a3a25; font-size: 1.35rem; }

/* ---------- SEO prose ---------- */
.sd0e-prose p { color: var(--sd0e-text); font-size: 1.4rem; line-height: 1.6; margin: 0 0 10px; }
.sd0e-prose a { color: var(--sd0e-accent); font-weight: 600; }
.sd0e-kw { color: var(--sd0e-accent); font-weight: 700; }

/* ---------- Reveal animation ---------- */
.sd0e-reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.sd0e-reveal.sd0e-is-visible { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.sd0e-footer { background: var(--sd0e-darker); border-top: 1px solid var(--sd0e-line); padding: 22px 12px 18px; margin-top: 24px; }
.sd0e-footer-brand { font-size: 1.5rem; font-weight: 700; color: var(--sd0e-text); }
.sd0e-footer-brand b { color: var(--sd0e-accent); }
.sd0e-footer-desc { color: var(--sd0e-muted); font-size: 1.3rem; line-height: 1.55; margin: 6px 0 12px; }
.sd0e-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.sd0e-footer-links a { color: var(--sd0e-text); font-size: 1.25rem; padding: 6px 0; }
.sd0e-footer-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.sd0e-footer-copy { color: var(--sd0e-muted); font-size: 1.2rem; border-top: 1px solid var(--sd0e-line); padding-top: 10px; }

/* ---------- Mobile bottom nav ---------- */
.sd0e-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--sd0e-bottom-h);
  background: linear-gradient(180deg, var(--sd0e-primary) 0%, var(--sd0e-darker) 100%);
  border-top: 1px solid var(--sd0e-line);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.35);
}
.sd0e-bottomnav a {
  flex: 1 1 0; min-width: 60px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--sd0e-muted); font-size: 1.05rem; cursor: pointer;
  transition: color .15s ease, transform .12s ease;
}
.sd0e-bottomnav a.sd0e-is-active { color: var(--sd0e-accent); }
.sd0e-bottomnav a:active { transform: scale(0.92); }
.sd0e-bottomnav a:hover { text-decoration: none; color: var(--sd0e-accent); }
.sd0e-bottomnav a i, .sd0e-bottomnav a span.material-icons-outlined, .sd0e-bottomnav a ion-icon, .sd0e-bottomnav a bi {
  font-size: 22px;
}
.sd0e-bottomnav-label { font-size: 1.05rem; line-height: 1.2rem; }
.sd0e-bottomnav-badge {
  position: absolute; margin-left: 18px; margin-top: -6px;
  background: #e0494a; color: #fff; font-size: .95rem; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}

/* ---------- Back to top ---------- */
.sd0e-totop {
  position: fixed; right: 14px; bottom: calc(var(--sd0e-bottom-h) + 14px); z-index: 999;
  width: 42px; height: 42px; border-radius: 50%; background: var(--sd0e-accent); color: #2a2a2a;
  border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  box-shadow: var(--sd0e-shadow);
}
.sd0e-totop.sd0e-is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Desktop: hide bottom nav, widen container ---------- */
@media (min-width: 769px) {
  .sd0e-bottomnav { display: none; }
  .sd0e-container { max-width: 720px; }
  .sd0e-wrapper { padding-bottom: 30px; }
  .sd0e-game-grid { grid-template-columns: repeat(5, 1fr); }
  .sd0e-stats { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Small phones fine-tune ---------- */
@media (max-width: 360px) {
  .sd0e-brand-name { font-size: 1.6rem; }
  .sd0e-btn { padding: 0 10px; font-size: 1.25rem; }
  .sd0e-hero-slide img { height: 150px; }
}
