/* ============================================================
   cv9.homes - Core stylesheet (design-7aa4.css)
   All custom classes use the v41a- prefix for namespace isolation.
   Mobile-first design, max-width 430px viewport target.
   Palette: #32CD32 | #2E8B57 | #FFB347 | #0C0C0C
   ============================================================ */

:root {
  --v41a-primary: #32CD32;       /* LimeGreen - primary accent */
  --v41a-secondary: #2E8B57;     /* SeaGreen - secondary */
  --v41a-accent: #FFB347;        /* Light Orange - CTA highlight */
  --v41a-bg: #0C0C0C;            /* Near black - base background */
  --v41a-bg-2: #15191a;          /* Card surface */
  --v41a-bg-3: #1e2421;          /* Raised surface */
  --v41a-text: #f4f8f4;          /* Main text */
  --v41a-text-dim: #a9b8ad;      /* Muted text */
  --v41a-border: #2a3a30;        /* Hairline border */
  --v41a-danger: #ff5e62;        /* Warning red */
  --v41a-radius: 1.2rem;
  --v41a-header-h: 5.6rem;
  --v41a-bottom-h: 6.4rem;
}

/* ---- Reset ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, sans-serif;
  background: var(--v41a-bg);
  color: var(--v41a-text);
  line-height: 1.5;
  font-size: 1.6rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.v41a-lock { overflow: hidden; }
a { color: var(--v41a-primary); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
:focus-visible { outline: 0.2rem solid var(--v41a-accent); outline-offset: 0.2rem; }

/* ---- Layout helpers ---- */
.v41a-wrapper { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; position: relative; }
.v41a-section { padding: 2.4rem 0 1.2rem; }
.v41a-section-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.2rem; }
.v41a-section-title {
  font-size: 1.9rem; font-weight: 700; color: var(--v41a-text);
  border-left: 0.4rem solid var(--v41a-primary); padding-left: 0.8rem;
}
.v41a-section-title em { color: var(--v41a-accent); font-style: normal; }
.v41a-muted { color: var(--v41a-text-dim); font-size: 1.35rem; }

/* ---- Header ---- */
.v41a-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--v41a-header-h);
  background: linear-gradient(180deg, rgba(12,12,12,0.96), rgba(12,12,12,0.85));
  backdrop-filter: blur(10px);
  border-bottom: 0.1rem solid var(--v41a-border);
}
.v41a-header-inner {
  max-width: 430px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 0.6rem; padding: 0 1rem;
}
.v41a-brand { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.v41a-brand-logo {
  width: 3.2rem; height: 3.2rem; border-radius: 0.8rem; object-fit: cover;
  border: 0.15rem solid var(--v41a-primary);
}
.v41a-brand-name { font-size: 1.9rem; font-weight: 800; color: var(--v41a-primary); letter-spacing: 0.05rem; }
.v41a-brand-name span { color: var(--v41a-accent); }
.v41a-spacer { flex: 1; }
.v41a-header-btns { display: flex; align-items: center; gap: 0.5rem; }
.v41a-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-size: 1.35rem; font-weight: 700; padding: 0.6rem 1.1rem;
  border-radius: 1rem; border: 0; cursor: pointer; transition: transform 0.15s ease, filter 0.15s ease;
  min-height: 3.6rem; white-space: nowrap;
}
.v41a-btn:active { transform: scale(0.94); }
.v41a-btn-login { background: transparent; color: var(--v41a-text); border: 0.15rem solid var(--v41a-primary); }
.v41a-btn-register { background: linear-gradient(135deg, var(--v41a-accent), #ff8c42); color: #1a1208; }
.v41a-btn-primary { background: linear-gradient(135deg, var(--v41a-primary), var(--v41a-secondary)); color: #06140a; }
.v41a-btn-ghost { background: rgba(255,255,255,0.06); color: var(--v41a-text); }
.v41a-menu-btn {
  background: transparent; border: 0; color: var(--v41a-text);
  width: 3.6rem; height: 3.6rem; font-size: 2.1rem; display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 0.8rem;
}
.v41a-menu-btn.v41a-active { background: rgba(50,205,50,0.12); }

/* ---- Mobile menu drawer ---- */
.v41a-mobile-menu {
  position: fixed; top: var(--v41a-header-h); left: 0; right: 0; z-index: 9999;
  background: var(--v41a-bg-2); border-bottom: 0.2rem solid var(--v41a-primary);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.v41a-mobile-menu.v41a-open { max-height: 32rem; overflow-y: auto; }
.v41a-mobile-menu ul { padding: 0.6rem 0; }
.v41a-mobile-menu li a, .v41a-mobile-menu li button {
  display: flex; align-items: center; gap: 0.9rem; width: 100%;
  padding: 1.1rem 1.6rem; color: var(--v41a-text); font-size: 1.5rem;
  background: transparent; border: 0; cursor: pointer; text-align: left;
}
.v41a-mobile-menu li a:active, .v41a-mobile-menu li button:hover { background: rgba(50,205,50,0.1); }
.v41a-mobile-menu li i { color: var(--v41a-primary); width: 2.2rem; text-align: center; }

/* ---- Main content spacer for fixed header ---- */
main { padding-top: var(--v41a-header-h); }

/* ---- Hero carousel ---- */
.v41a-carousel {
  position: relative; border-radius: var(--v41a-radius); overflow: hidden;
  margin: 1.2rem 0 0; height: 17rem; background: var(--v41a-bg-2);
}
.v41a-carousel-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.6s ease; cursor: pointer;
}
.v41a-carousel-slide.v41a-active { opacity: 1; }
.v41a-carousel-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12,12,12,0.78) 0%, rgba(12,12,12,0.25) 70%, rgba(12,12,12,0) 100%);
}
.v41a-carousel-cap {
  position: absolute; left: 1.4rem; top: 50%; transform: translateY(-50%);
  z-index: 2; max-width: 70%;
}
.v41a-carousel-cap h2 { font-size: 1.7rem; color: var(--v41a-accent); font-weight: 800; line-height: 1.2; }
.v41a-carousel-cap p { color: var(--v41a-text); font-size: 1.25rem; margin-top: 0.3rem; }
.v41a-carousel-cap .v41a-btn { margin-top: 0.8rem; font-size: 1.25rem; padding: 0.5rem 1rem; }
.v41a-carousel-dots {
  position: absolute; bottom: 0.8rem; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: center; gap: 0.5rem;
}
.v41a-carousel-dot {
  width: 0.7rem; height: 0.7rem; border-radius: 50%; background: rgba(255,255,255,0.4);
  border: 0; cursor: pointer; padding: 0; transition: all 0.2s ease;
}
.v41a-carousel-dot.v41a-active { background: var(--v41a-accent); width: 1.6rem; border-radius: 0.4rem; }

/* ---- Hero / H1 ---- */
.v41a-hero { padding: 1.6rem 0 0.6rem; text-align: center; }
.v41a-hero h1 { font-size: 2.3rem; font-weight: 800; line-height: 1.25; color: var(--v41a-text); }
.v41a-hero h1 em { color: var(--v41a-primary); font-style: normal; }
.v41a-hero p { color: var(--v41a-text-dim); font-size: 1.4rem; margin-top: 0.6rem; }
.v41a-hero-cta { display: flex; gap: 0.7rem; justify-content: center; margin-top: 1.2rem; }
.v41a-hero-cta .v41a-btn { flex: 1; max-width: 16rem; padding: 0.9rem 1rem; font-size: 1.4rem; }

/* ---- Category tabs ---- */
.v41a-cat-tabs {
  display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.4rem 0 1rem;
  scrollbar-width: none; -ms-overflow-style: none;
}
.v41a-cat-tabs::-webkit-scrollbar { display: none; }
.v41a-cat-tab {
  flex: 0 0 auto; padding: 0.6rem 1.2rem; border-radius: 2rem;
  background: var(--v41a-bg-2); color: var(--v41a-text-dim);
  font-size: 1.3rem; font-weight: 600; border: 0.1rem solid var(--v41a-border);
  cursor: pointer; white-space: nowrap;
}
.v41a-cat-tab.v41a-active { background: var(--v41a-primary); color: #06140a; border-color: var(--v41a-primary); }
.v41a-cat-head {
  font-size: 1.45rem; color: var(--v41a-accent); margin: 1rem 0 0.8rem;
  display: flex; align-items: center; gap: 0.5rem; font-weight: 800;
}

/* ---- Game grid ---- */
.v41a-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
.v41a-game-card {
  background: var(--v41a-bg-2); border: 0.1rem solid var(--v41a-border);
  border-radius: 1rem; overflow: hidden; cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease; text-align: center;
}
.v41a-game-card:active { transform: scale(0.96); border-color: var(--v41a-primary); }
.v41a-game-img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #0a0d0b;
}
.v41a-game-name {
  font-size: 1.15rem; font-weight: 600; color: var(--v41a-text);
  padding: 0.45rem 0.3rem 0.55rem; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.v41a-game-tag {
  display: inline-block; font-size: 0.95rem; color: var(--v41a-accent);
  background: rgba(255,179,71,0.12); padding: 0.05rem 0.5rem; border-radius: 0.4rem; margin-bottom: 0.3rem;
}

/* ---- Info / module cards ---- */
.v41a-card {
  background: var(--v41a-bg-2); border: 0.1rem solid var(--v41a-border);
  border-radius: var(--v41a-radius); padding: 1.4rem; margin-bottom: 1rem;
}
.v41a-card-title { font-size: 1.5rem; font-weight: 700; color: var(--v41a-accent); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.v41a-card p { color: var(--v41a-text-dim); font-size: 1.35rem; line-height: 1.55; }
.v41a-card p strong { color: var(--v41a-primary); }

/* Feature list */
.v41a-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.v41a-feature {
  background: var(--v41a-bg-3); border-radius: 1rem; padding: 1rem;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.4rem;
}
.v41a-feature i { font-size: 2.2rem; color: var(--v41a-primary); }
.v41a-feature span { font-size: 1.2rem; color: var(--v41a-text); font-weight: 600; }

/* Stat / RTP bar */
.v41a-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; margin-top: 0.8rem; }
.v41a-stat { background: var(--v41a-bg-3); border-radius: 1rem; padding: 0.8rem; text-align: center; }
.v41a-stat b { display: block; font-size: 1.7rem; color: var(--v41a-accent); }
.v41a-stat small { color: var(--v41a-text-dim); font-size: 1.1rem; }

/* Winners strip */
.v41a-winners { display: flex; flex-direction: column; gap: 0.5rem; }
.v41a-winner {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem;
  background: var(--v41a-bg-3); border-radius: 0.8rem; border-left: 0.3rem solid var(--v41a-primary);
}
.v41a-winner img { width: 3rem; height: 3rem; border-radius: 0.5rem; }
.v41a-winner div b { color: var(--v41a-text); font-size: 1.3rem; display: block; }
.v41a-winner div span { color: var(--v41a-accent); font-size: 1.2rem; font-weight: 700; }

/* Payment chips */
.v41a-payments { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.v41a-pay-chip {
  background: var(--v41a-bg-3); border: 0.1rem solid var(--v41a-border); border-radius: 0.8rem;
  padding: 0.5rem 0.9rem; font-size: 1.15rem; color: var(--v41a-text);
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.v41a-pay-chip i { color: var(--v41a-primary); }

/* Testimonial */
.v41a-quote {
  background: var(--v41a-bg-3); border-radius: 1rem; padding: 1rem; margin-bottom: 0.7rem;
  border-left: 0.3rem solid var(--v41a-accent);
}
.v41a-quote p { font-size: 1.3rem; color: var(--v41a-text); line-height: 1.5; }
.v41a-quote cite { display: block; margin-top: 0.5rem; color: var(--v41a-primary); font-style: normal; font-weight: 700; font-size: 1.2rem; }

/* FAQ */
.v41a-faq-item { background: var(--v41a-bg-3); border-radius: 0.8rem; padding: 0.9rem 1rem; margin-bottom: 0.6rem; }
.v41a-faq-item b { color: var(--v41a-accent); font-size: 1.35rem; display: block; margin-bottom: 0.3rem; }
.v41a-faq-item p { color: var(--v41a-text-dim); font-size: 1.25rem; line-height: 1.5; }

/* Inline CTA banner */
.v41a-cta-bar {
  background: linear-gradient(135deg, var(--v41a-secondary), var(--v41a-primary));
  border-radius: var(--v41a-radius); padding: 1.2rem; text-align: center; margin: 1rem 0;
}
.v41a-cta-bar h3 { color: #06140a; font-size: 1.55rem; font-weight: 800; }
.v41a-cta-bar p { color: rgba(6,20,10,0.8); font-size: 1.2rem; margin: 0.3rem 0 0.8rem; }
.v41a-cta-bar .v41a-btn { background: #0C0C0C; color: var(--v41a-accent); }

/* App download block */
.v41a-app-block { display: flex; gap: 1rem; align-items: center; background: var(--v41a-bg-3); border-radius: var(--v41a-radius); padding: 1.2rem; }
.v41a-app-block img { width: 7rem; height: 7rem; border-radius: 1rem; flex: 0 0 auto; }
.v41a-app-block div b { display: block; color: var(--v41a-accent); font-size: 1.4rem; }
.v41a-app-block div p { color: var(--v41a-text-dim); font-size: 1.2rem; margin: 0.3rem 0 0.6rem; }

/* ---- Footer ---- */
.v41a-footer {
  background: #06070a; border-top: 0.2rem solid var(--v41a-primary);
  padding: 1.8rem 0 2rem; margin-top: 1.5rem;
}
.v41a-footer-brand { font-size: 1.9rem; font-weight: 800; color: var(--v41a-primary); margin-bottom: 0.4rem; }
.v41a-footer-brand span { color: var(--v41a-accent); }
.v41a-footer-desc { color: var(--v41a-text-dim); font-size: 1.25rem; line-height: 1.5; margin-bottom: 1rem; }
.v41a-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; margin-bottom: 1rem; }
.v41a-footer-links a { font-size: 1.2rem; color: var(--v41a-text); text-decoration: underline; text-underline-offset: 0.2rem; }
.v41a-footer-promos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.v41a-footer-promos .v41a-btn { font-size: 1.15rem; padding: 0.5rem 0.9rem; }
.v41a-footer-copy { color: var(--v41a-text-dim); font-size: 1.1rem; border-top: 0.1rem solid var(--v41a-border); padding-top: 0.8rem; }

/* ---- Mobile bottom nav (hidden on desktop) ---- */
.v41a-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--v41a-bottom-h);
  background: linear-gradient(180deg, #0e1110, #06070a);
  border-top: 0.15rem solid var(--v41a-primary);
  display: flex; justify-content: space-around; align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.v41a-bottom-nav button, .v41a-bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; color: var(--v41a-text-dim); font-size: 1.05rem; font-weight: 600;
  background: transparent; border: 0; cursor: pointer; min-width: 6rem; min-height: 6rem;
  text-decoration: none; transition: color 0.15s ease, transform 0.15s ease; position: relative;
}
.v41a-bottom-nav button:active, .v41a-bottom-nav a:active { transform: scale(0.92); }
.v41a-bottom-nav i { font-size: 2.3rem; }
.v41a-bottom-nav .v41a-active { color: var(--v41a-primary); }
.v41a-bottom-nav .v41a-active::before {
  content: ""; position: absolute; top: 0; width: 2.4rem; height: 0.25rem;
  background: var(--v41a-accent); border-radius: 0 0 0.4rem 0.4rem;
}
.v41a-nav-badge {
  position: absolute; top: 0.7rem; right: 1.4rem; min-width: 1.4rem; height: 1.4rem;
  background: var(--v41a-danger); color: #fff; font-size: 0.9rem; font-weight: 700;
  border-radius: 0.8rem; display: flex; align-items: center; justify-content: center; padding: 0 0.3rem;
}

/* ---- Reveal animation ---- */
.v41a-reveal { opacity: 0; transform: translateY(1.6rem); transition: opacity 0.5s ease, transform 0.5s ease; }
.v41a-reveal.v41a-shown { opacity: 1; transform: translateY(0); }

/* ---- Responsive ---- */
@media (min-width: 431px) {
  body { background: #06070a; }
  .v41a-wrapper { box-shadow: 0 0 4rem rgba(0,0,0,0.6); min-height: 100vh; }
}
/* Desktop: hide bottom nav and desktop-optional tweaks */
@media (min-width: 769px) {
  .v41a-bottom-nav { display: none; }
  body { padding-bottom: 0; }
}
/* Mobile: add bottom padding so content isn't hidden behind fixed bottom nav */
@media (max-width: 768px) {
  main { padding-bottom: calc(var(--v41a-bottom-h) + 1.2rem); }
  .v41a-footer { padding-bottom: calc(2rem + var(--v41a-bottom-h)); }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
