/* ============================================================
   888jili.homes - Layout CSS (css/layout-2763.css)
   All classes use prefix: v3cf-
   Palette: #7CFC00 #0C0C0C #008000 #00FF00 #8470FF
   ============================================================ */

:root {
  --v3cf-primary: #7CFC00;
  --v3cf-accent: #00FF00;
  --v3cf-deep: #008000;
  --v3cf-purple: #8470FF;
  --v3cf-bg: #0C0C0C;
  --v3cf-bg2: #141414;
  --v3cf-card: #1a1a1a;
  --v3cf-text: #f5fff0;
  --v3cf-muted: #9fb89a;
  --v3cf-border: rgba(124, 252, 0, 0.18);
  --v3cf-radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 62.5%; }

html, body {
  background: var(--v3cf-bg);
  color: var(--v3cf-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5rem;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

a { color: var(--v3cf-primary); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Mobile-first container (max 430px) ===== */
.v3cf-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
}

.v3cf-wrapper { min-height: 100vh; display: flex; flex-direction: column; }

main { flex: 1; padding-bottom: 80px; }

/* ===== Header ===== */
.v3cf-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(12,12,12,0.98), rgba(12,12,12,0.92));
  border-bottom: 1px solid var(--v3cf-border);
  backdrop-filter: blur(8px);
}
.v3cf-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.v3cf-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--v3cf-primary);
  letter-spacing: 0.5px;
}
.v3cf-logo img { width: 28px; height: 28px; border-radius: 6px; }
.v3cf-logo .v3cf-logo-text { color: var(--v3cf-accent); }

.v3cf-header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }

.v3cf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.v3cf-btn:active { transform: scale(0.94); }
.v3cf-btn-primary {
  background: linear-gradient(135deg, var(--v3cf-primary), var(--v3cf-deep));
  color: #06120a;
  box-shadow: 0 3px 10px rgba(124,252,0,0.35);
}
.v3cf-btn-ghost {
  background: transparent;
  color: var(--v3cf-text);
  border: 1px solid var(--v3cf-border);
}
.v3cf-btn-purple {
  background: linear-gradient(135deg, var(--v3cf-purple), #5d4dff);
  color: #fff;
  box-shadow: 0 3px 10px rgba(132,112,255,0.35);
}

.v3cf-menu-toggle {
  background: transparent;
  border: 1px solid var(--v3cf-border);
  color: var(--v3cf-primary);
  width: 36px; height: 36px;
  border-radius: 10px;
  font-size: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Expandable mobile menu */
.v3cf-mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--v3cf-bg2);
  border-top: 1px solid transparent;
}
.v3cf-mobile-menu.v3cf-menu-open {
  max-height: 420px;
  border-top: 1px solid var(--v3cf-border);
}
.v3cf-mobile-menu-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.v3cf-menu-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: var(--v3cf-card);
  border: 1px solid var(--v3cf-border);
  border-radius: 10px;
  font-size: 1.3rem;
  color: var(--v3cf-text);
}
.v3cf-menu-link .material-icons,
.v3cf-menu-link i { font-size: 18px; color: var(--v3cf-primary); }

/* ===== Hero / Carousel ===== */
.v3cf-hero {
  margin-top: 64px;
  padding: 12px 0 4px;
}
.v3cf-carousel {
  position: relative;
  border-radius: var(--v3cf-radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}
.v3cf-carousel-track { position: relative; }
.v3cf-carousel-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.v3cf-carousel-slide.v3cf-slide-active { display: block; }
.v3cf-carousel-slide img { width: 100%; height: 180px; object-fit: cover; }
.v3cf-carousel-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px 14px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
}
.v3cf-carousel-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.v3cf-carousel-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}
.v3cf-carousel-dot.v3cf-dot-active { background: var(--v3cf-primary); width: 18px; border-radius: 4px; }

/* ===== Section heading ===== */
.v3cf-section {
  padding: 18px 0 8px;
}
.v3cf-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--v3cf-text);
}
.v3cf-section-title i,
.v3cf-section-title .material-icons { color: var(--v3cf-primary); font-size: 20px; }
.v3cf-section-title .v3cf-bar {
  display: inline-block; width: 4px; height: 18px;
  background: linear-gradient(180deg, var(--v3cf-primary), var(--v3cf-deep));
  border-radius: 3px;
}

/* ===== H1 ===== */
.v3cf-h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 14px 0 8px;
  color: var(--v3cf-text);
}
.v3cf-h1 b { color: var(--v3cf-primary); }

.v3cf-sub {
  color: var(--v3cf-muted);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

/* ===== Filter chips ===== */
.v3cf-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 6px;
  scrollbar-width: none;
}
.v3cf-filters::-webkit-scrollbar { display: none; }
.v3cf-filter-btn {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 16px;
  background: var(--v3cf-card);
  border: 1px solid var(--v3cf-border);
  color: var(--v3cf-text);
  font-size: 1.2rem;
  cursor: pointer;
}
.v3cf-filter-btn.v3cf-filter-active {
  background: linear-gradient(135deg, var(--v3cf-primary), var(--v3cf-deep));
  color: #06120a;
  font-weight: 700;
  border-color: transparent;
}

/* ===== Game grid ===== */
.v3cf-game-section { margin-bottom: 14px; }
.v3cf-game-section-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--v3cf-primary);
  margin: 12px 0 8px;
  display: flex; align-items: center; gap: 6px;
}
.v3cf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.v3cf-game-card {
  background: var(--v3cf-card);
  border: 1px solid var(--v3cf-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  text-align: center;
}
.v3cf-game-card:active { transform: scale(0.96); border-color: var(--v3cf-primary); }
.v3cf-game-card img {
  width: 100%; height: 88px; object-fit: cover;
}
.v3cf-game-name {
  font-size: 1.1rem;
  color: var(--v3cf-text);
  padding: 5px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Cards / generic blocks ===== */
.v3cf-card {
  background: var(--v3cf-card);
  border: 1px solid var(--v3cf-border);
  border-radius: var(--v3cf-radius);
  padding: 14px;
  margin-bottom: 12px;
}
.v3cf-card h2 {
  font-size: 1.6rem;
  color: var(--v3cf-primary);
  margin-bottom: 8px;
}
.v3cf-card h3 {
  font-size: 1.35rem;
  color: var(--v3cf-accent);
  margin: 8px 0 4px;
}
.v3cf-card p {
  font-size: 1.3rem;
  color: var(--v3cf-text);
  margin-bottom: 6px;
}

/* ===== Promo banner CTA ===== */
.v3cf-cta {
  background: linear-gradient(135deg, rgba(124,252,0,0.16), rgba(132,112,255,0.16));
  border: 1px solid var(--v3cf-primary);
  border-radius: var(--v3cf-radius);
  padding: 16px;
  text-align: center;
  margin: 14px 0;
}
.v3cf-cta h3 { color: var(--v3cf-primary); font-size: 1.7rem; margin-bottom: 6px; }
.v3cf-cta p { color: var(--v3cf-text); font-size: 1.3rem; margin-bottom: 10px; }

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

/* ===== RTP compact table ===== */
.v3cf-rtp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dashed var(--v3cf-border);
  font-size: 1.25rem;
}
.v3cf-rtp-row:last-child { border-bottom: none; }
.v3cf-rtp-bar {
  flex: 1;
  margin: 0 10px;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.v3cf-rtp-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--v3cf-primary), var(--v3cf-accent));
}
.v3cf-rtp-val { color: var(--v3cf-accent); font-weight: 700; }

/* ===== Testimonial ===== */
.v3cf-testi {
  background: var(--v3cf-card);
  border-left: 3px solid var(--v3cf-purple);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.v3cf-testi p { font-size: 1.25rem; color: var(--v3cf-text); }
.v3cf-testi span { color: var(--v3cf-muted); font-size: 1.15rem; }

/* ===== Payment grid ===== */
.v3cf-pay-row { display: flex; flex-wrap: wrap; gap: 8px; }
.v3cf-pay-chip {
  background: var(--v3cf-card);
  border: 1px solid var(--v3cf-border);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 1.2rem;
  color: var(--v3cf-text);
  display: inline-flex; align-items: center; gap: 4px;
}

/* ===== Winners list ===== */
.v3cf-winner {
  display: flex;
  justify-content: space-between;
  padding: 6px 8px;
  background: var(--v3cf-card);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 1.2rem;
}
.v3cf-winner b { color: var(--v3cf-primary); }

/* ===== Steps list ===== */
.v3cf-steps { counter-reset: step; }
.v3cf-step {
  position: relative;
  padding: 8px 8px 8px 38px;
  margin-bottom: 8px;
  background: var(--v3cf-card);
  border-radius: 10px;
  border: 1px solid var(--v3cf-border);
}
.v3cf-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 8px; top: 8px;
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--v3cf-primary), var(--v3cf-deep));
  color: #06120a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
}
.v3cf-step b { color: var(--v3cf-accent); }
.v3cf-step p { font-size: 1.2rem; color: var(--v3cf-text); margin-top: 2px; }

/* ===== Reveal animation ===== */
.v3cf-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.v3cf-reveal.v3cf-revealed { opacity: 1; transform: none; }

/* ===== Footer ===== */
.v3cf-footer {
  background: var(--v3cf-bg2);
  border-top: 1px solid var(--v3cf-border);
  padding: 18px 0 24px;
}
.v3cf-footer p { font-size: 1.2rem; color: var(--v3cf-muted); margin-bottom: 8px; }
.v3cf-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}
.v3cf-footer-links a {
  flex: 1 1 auto;
  background: var(--v3cf-card);
  border: 1px solid var(--v3cf-border);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 1.15rem;
  color: var(--v3cf-text);
  text-align: center;
  min-width: 28%;
}
.v3cf-footer-links a:hover { color: var(--v3cf-primary); border-color: var(--v3cf-primary); }
.v3cf-copy { text-align: center; color: var(--v3cf-muted); font-size: 1.1rem; margin-top: 12px; }

/* ===== Bottom Nav (mobile only) ===== */
.v3cf-bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  height: 60px;
  background: linear-gradient(180deg, rgba(20,20,20,0.98), rgba(12,12,12,1));
  border-top: 1px solid var(--v3cf-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  backdrop-filter: blur(8px);
}
.v3cf-bottom-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--v3cf-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1.05rem;
  transition: color .15s ease, transform .15s ease;
}
.v3cf-bottom-nav-btn .material-icons,
.v3cf-bottom-nav-btn i { font-size: 22px; }
.v3cf-bottom-nav-btn:active { transform: scale(0.9); }
.v3cf-bottom-nav-btn.v3cf-nav-current { color: var(--v3cf-primary); }
.v3cf-bottom-nav-btn.v3cf-nav-current i,
.v3cf-bottom-nav-btn.v3cf-nav-current .material-icons { color: var(--v3cf-primary); }
.v3cf-nav-badge {
  position: absolute;
  top: 6px; right: 18px;
  background: #ff3b3b;
  color: #fff;
  font-size: 0.9rem;
  border-radius: 8px;
  padding: 0 4px;
  line-height: 14px;
  min-width: 14px;
}

/* ===== Desktop: hide bottom nav ===== */
@media (min-width: 769px) {
  .v3cf-bottom-nav { display: none; }
  main { padding-bottom: 24px; }
}

/* ===== Mobile small padding ===== */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* Utility */
.v3cf-text-center { text-align: center; }
.v3cf-mt-8 { margin-top: 8px; }
.v3cf-mt-16 { margin-top: 16px; }
