/* =====================================================================
   NE88 (ne88.homes) - Basefile stylesheet
   Class prefix: v14b-
   Palette: #34495E (dark bg) / #F8F8FF (light text) / #FFCC33 (gold)
            #FFF8DC #EEE8AA (cream accents) #DEE2E6 (muted)
   Mobile first, root font 62.5% so 1rem = 10px.
   ===================================================================== */

:root {
  --v14b-bg: #34495e;
  --v14b-bg-deep: #2c3e50;
  --v14b-bg-soft: #3d556e;
  --v14b-bg-card: #41597a;
  --v14b-text: #f8f8ff;
  --v14b-text-muted: #dee2e6;
  --v14b-primary: #ffcc33;
  --v14b-primary-deep: #f5b923;
  --v14b-accent: #fff8dc;
  --v14b-accent-2: #eee8aa;
  --v14b-border: rgba(255, 204, 51, 0.28);
  --v14b-shadow: 0 0.4rem 1.8rem rgba(0, 0, 0, 0.35);
  --v14b-radius: 1.2rem;
  --v14b-radius-sm: 0.8rem;
  --v14b-header-h: 6rem;
  --v14b-bottom-h: 6.2rem;
}

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

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  background: var(--v14b-bg-deep);
  color: var(--v14b-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--v14b-accent); text-decoration: none; }
ul { list-style: none; }

.v14b-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.v14b-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }

/* ---------------- Header ---------------- */
.v14b-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, var(--v14b-bg) 0%, var(--v14b-bg-deep) 100%);
  border-bottom: 0.1rem solid var(--v14b-border);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.v14b-header--scrolled { box-shadow: var(--v14b-shadow); background: var(--v14b-bg-deep); }
.v14b-header-inner {
  max-width: 430px; margin: 0 auto; padding: 0.8rem 1.2rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.v14b-logo { display: flex; align-items: center; gap: 0.6rem; flex: 1; min-width: 0; }
.v14b-logo img { width: 3.2rem; height: 3.2rem; border-radius: 0.6rem; }
.v14b-logo-text { font-size: 2rem; font-weight: 800; color: var(--v14b-primary); letter-spacing: 0.05rem; }
.v14b-logo-text span { color: var(--v14b-text); }

.v14b-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.v14b-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-size: 1.3rem; font-weight: 700; padding: 0.7rem 1.2rem; border-radius: 2rem;
  cursor: pointer; border: 0.15rem solid transparent; transition: transform 0.15s ease, background 0.2s ease;
  min-height: 3.6rem; text-align: center;
}
.v14b-btn:active { transform: scale(0.95); }
.v14b-btn-register {
  background: linear-gradient(135deg, var(--v14b-primary) 0%, var(--v14b-primary-deep) 100%);
  color: var(--v14b-bg-deep); border-color: var(--v14b-primary);
  box-shadow: 0 0.3rem 0.8rem rgba(255, 204, 51, 0.35);
}
.v14b-btn-login {
  background: transparent; color: var(--v14b-accent); border-color: var(--v14b-border);
}
.v14b-nav-toggle {
  width: 3.6rem; height: 3.6rem; background: transparent; border: 0.1rem solid var(--v14b-border);
  border-radius: 0.8rem; color: var(--v14b-primary); cursor: pointer; font-size: 1.6rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.v14b-nav-toggle--active { background: var(--v14b-primary); color: var(--v14b-bg-deep); }

/* ---------------- Nav menu ---------------- */
.v14b-nav-menu {
  position: fixed; top: var(--v14b-header-h); left: 0; right: 0; z-index: 999;
  background: var(--v14b-bg-deep); border-bottom: 0.1rem solid var(--v14b-border);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.v14b-nav-menu--open { max-height: 50rem; box-shadow: var(--v14b-shadow); }
.v14b-nav-menu-inner { max-width: 430px; margin: 0 auto; padding: 1rem 1.2rem 1.4rem; }
.v14b-nav-menu a {
  display: block; padding: 1rem 1.2rem; color: var(--v14b-text); font-size: 1.4rem; font-weight: 600;
  border-bottom: 0.1rem solid rgba(255, 255, 255, 0.06); border-radius: 0.6rem;
}
.v14b-nav-menu a:active { background: var(--v14b-bg-soft); color: var(--v14b-primary); }

/* ---------------- Main / sections ---------------- */
.v14b-main { padding-top: var(--v14b-header-h); padding-bottom: var(--v14b-bottom-h); }
.v14b-section { padding: 2rem 0; }
.v14b-section-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.2rem; }
.v14b-section-title {
  font-size: 1.9rem; font-weight: 800; color: var(--v14b-primary);
  line-height: 2.2rem; flex: 1;
}
.v14b-section-title small { display: block; font-size: 1.2rem; color: var(--v14b-text-muted); font-weight: 500; margin-top: 0.2rem; }
.v14b-section-icon { font-size: 2.2rem; color: var(--v14b-primary); }
.v14b-lead { color: var(--v14b-text-muted); font-size: 1.4rem; line-height: 2.1rem; margin-bottom: 1rem; }
.v14b-text-link { color: var(--v14b-primary); font-weight: 700; border-bottom: 0.1rem dotted var(--v14b-primary); }

/* ---------------- Carousel ---------------- */
.v14b-carousel { position: relative; border-radius: var(--v14b-radius); overflow: hidden; box-shadow: var(--v14b-shadow); }
.v14b-carousel-track { position: relative; }
.v14b-carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; cursor: pointer;
}
.v14b-carousel-slide--active { position: relative; opacity: 1; }
.v14b-carousel-slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.v14b-carousel-caption {
  position: absolute; left: 1.2rem; bottom: 1.2rem; right: 1.2rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.65) 100%);
  padding: 1.4rem 1rem 0.6rem; border-radius: 0.8rem; color: #fff;
}
.v14b-carousel-caption strong { color: var(--v14b-primary); font-size: 1.6rem; display: block; }
.v14b-carousel-caption span { font-size: 1.2rem; color: var(--v14b-accent); }
.v14b-carousel-dots { display: flex; justify-content: center; gap: 0.6rem; padding: 0.8rem 0; }
.v14b-carousel-dot {
  width: 0.9rem; height: 0.9rem; border-radius: 50%; background: rgba(255,255,255,0.3);
  border: 0; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease;
}
.v14b-carousel-dot--active { background: var(--v14b-primary); transform: scale(1.25); }

/* ---------------- CTA banner ---------------- */
.v14b-cta {
  background: linear-gradient(135deg, var(--v14b-bg-soft) 0%, var(--v14b-bg-card) 100%);
  border: 0.1rem solid var(--v14b-border); border-radius: var(--v14b-radius);
  padding: 1.6rem; text-align: center; box-shadow: var(--v14b-shadow);
}
.v14b-cta h2 { color: var(--v14b-primary); font-size: 1.7rem; margin-bottom: 0.4rem; }
.v14b-cta p { color: var(--v14b-text-muted); font-size: 1.3rem; margin-bottom: 1.2rem; }
.v14b-cta-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ---------------- Game grid ---------------- */
.v14b-game-section { margin-bottom: 1rem; }
.v14b-cat-badge {
  display: inline-block; background: var(--v14b-primary); color: var(--v14b-bg-deep);
  font-size: 1.1rem; font-weight: 800; padding: 0.3rem 0.9rem; border-radius: 1rem; letter-spacing: 0.05rem;
}
.v14b-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin-top: 0.8rem;
}
.v14b-game-card { cursor: pointer; transition: transform 0.15s ease; }
.v14b-game-card:active { transform: scale(0.94); }
.v14b-game-img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--v14b-radius-sm);
  border: 0.1rem solid var(--v14b-border); background: var(--v14b-bg-soft);
}
.v14b-game-name {
  font-size: 1.15rem; color: var(--v14b-text); text-align: center; margin-top: 0.4rem;
  line-height: 1.3rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------------- Cards / features / generic ---------------- */
.v14b-card {
  background: var(--v14b-bg-soft); border: 0.1rem solid var(--v14b-border);
  border-radius: var(--v14b-radius); padding: 1.4rem; margin-bottom: 1rem; box-shadow: var(--v14b-shadow);
}
.v14b-card h3 { color: var(--v14b-primary); font-size: 1.5rem; margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.5rem; }
.v14b-card p { color: var(--v14b-text-muted); font-size: 1.35rem; line-height: 2rem; }
.v14b-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.v14b-feature {
  background: var(--v14b-bg-soft); border: 0.1rem solid var(--v14b-border);
  border-radius: var(--v14b-radius-sm); padding: 1.2rem; text-align: center;
}
.v14b-feature .v14b-feature-ico { font-size: 2.6rem; color: var(--v14b-primary); margin-bottom: 0.4rem; }
.v14b-feature strong { display: block; color: var(--v14b-text); font-size: 1.3rem; margin-bottom: 0.2rem; }
.v14b-feature span { color: var(--v14b-text-muted); font-size: 1.2rem; line-height: 1.6rem; }

/* ---------------- Steps ---------------- */
.v14b-steps { counter-reset: step; }
.v14b-step { display: flex; gap: 1rem; margin-bottom: 1rem; align-items: flex-start; }
.v14b-step-num {
  flex: 0 0 3rem; width: 3rem; height: 3rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--v14b-primary), var(--v14b-primary-deep));
  color: var(--v14b-bg-deep); font-weight: 800; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
}
.v14b-step-body h4 { color: var(--v14b-accent); font-size: 1.4rem; margin-bottom: 0.2rem; }
.v14b-step-body p { color: var(--v14b-text-muted); font-size: 1.3rem; line-height: 1.9rem; }

/* ---------------- RTP / data table ---------------- */
.v14b-rtp-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.8rem 1rem; border-bottom: 0.1rem solid rgba(255,255,255,0.06); font-size: 1.3rem;
}
.v14b-rtp-row:last-child { border-bottom: 0; }
.v14b-rtp-row strong { color: var(--v14b-text); }
.v14b-rtp-bar {
  flex: 1; height: 0.6rem; margin: 0 1rem; border-radius: 0.4rem;
  background: rgba(255,255,255,0.1); overflow: hidden;
}
.v14b-rtp-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--v14b-primary), var(--v14b-accent-2)); }
.v14b-rtp-row em { color: var(--v14b-primary); font-style: normal; font-weight: 700; }

/* ---------------- FAQ ---------------- */
.v14b-faq { border: 0.1rem solid var(--v14b-border); border-radius: var(--v14b-radius); overflow: hidden; background: var(--v14b-bg-soft); }
.v14b-faq-item { border-bottom: 0.1rem solid rgba(255,255,255,0.06); padding: 1rem 1.2rem; }
.v14b-faq-item:last-child { border-bottom: 0; }
.v14b-faq-item h4 { color: var(--v14b-primary); font-size: 1.35rem; margin-bottom: 0.4rem; }
.v14b-faq-item p { color: var(--v14b-text-muted); font-size: 1.25rem; line-height: 1.8rem; }

/* ---------------- Testimonials ---------------- */
.v14b-testimonial {
  background: var(--v14b-bg-soft); border-left: 0.3rem solid var(--v14b-primary);
  border-radius: var(--v14b-radius-sm); padding: 1rem 1.2rem; margin-bottom: 0.8rem;
}
.v14b-testimonial p { color: var(--v14b-text); font-size: 1.25rem; font-style: italic; line-height: 1.8rem; }
.v14b-testimonial cite { display: block; color: var(--v14b-primary); font-size: 1.2rem; margin-top: 0.4rem; font-weight: 700; font-style: normal; }

/* ---------------- Winners ---------------- */
.v14b-winner {
  display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 1rem;
  border-bottom: 0.1rem solid rgba(255,255,255,0.06);
}
.v14b-winner:last-child { border-bottom: 0; }
.v14b-winner-ico { font-size: 1.8rem; color: var(--v14b-primary); }
.v14b-winner-name { flex: 1; color: var(--v14b-text); font-size: 1.25rem; }
.v14b-winner-amount { color: var(--v14b-accent-2); font-weight: 800; font-size: 1.3rem; }

/* ---------------- Payment ---------------- */
.v14b-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.v14b-pay {
  background: var(--v14b-bg-soft); border: 0.1rem solid var(--v14b-border);
  border-radius: 0.8rem; padding: 0.8rem 0.4rem; text-align: center;
}
.v14b-pay i, .v14b-pay span.material-icons { font-size: 2.2rem; color: var(--v14b-primary); }
.v14b-pay small { display: block; color: var(--v14b-text-muted); font-size: 1rem; margin-top: 0.3rem; }

/* ---------------- App download ---------------- */
.v14b-app {
  display: flex; gap: 1rem; align-items: center; background: var(--v14b-bg-soft);
  border: 0.1rem solid var(--v14b-border); border-radius: var(--v14b-radius); padding: 1.2rem;
}
.v14b-app-ico { font-size: 3rem; color: var(--v14b-primary); }
.v14b-app-body { flex: 1; }
.v14b-app-body h3 { color: var(--v14b-accent); font-size: 1.4rem; }
.v14b-app-body p { color: var(--v14b-text-muted); font-size: 1.2rem; line-height: 1.7rem; }

/* ---------------- Footer ---------------- */
.v14b-footer {
  background: var(--v14b-bg-deep); border-top: 0.1rem solid var(--v14b-border);
  padding: 2rem 0 1rem; margin-top: 1rem;
}
.v14b-footer-intro { color: var(--v14b-text-muted); font-size: 1.3rem; line-height: 2rem; margin-bottom: 1.2rem; }
.v14b-footer-promos { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.v14b-footer-promos .v14b-btn { flex: 1; min-width: 45%; font-size: 1.2rem; padding: 0.8rem 0.6rem; }
.v14b-footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem 1rem; margin-bottom: 1.2rem; }
.v14b-footer-links a { color: var(--v14b-text-muted); font-size: 1.2rem; padding: 0.3rem 0; }
.v14b-footer-links a:active { color: var(--v14b-primary); }
.v14b-footer-copy { border-top: 0.1rem solid rgba(255,255,255,0.08); padding-top: 1rem; color: var(--v14b-text-muted); font-size: 1.1rem; text-align: center; }

/* ---------------- Bottom nav ---------------- */
.v14b-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--v14b-bottom-h); background: var(--v14b-bg-deep);
  border-top: 0.15rem solid var(--v14b-primary);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -0.4rem 1.2rem rgba(0,0,0,0.3);
}
.v14b-bottom-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; color: var(--v14b-text-muted); cursor: pointer; background: transparent; border: 0;
  padding: 0.4rem 0; transition: color 0.2s ease, transform 0.15s ease;
}
.v14b-bottom-nav-item i,
.v14b-bottom-nav-item span.material-icons,
.v14b-bottom-nav-item ion-icon,
.v14b-bottom-nav-item span.bi { font-size: 2.2rem; color: var(--v14b-text-muted); }
.v14b-bottom-nav-item span { font-size: 1rem; line-height: 1.2rem; }
.v14b-bottom-nav-item:active { transform: scale(0.92); }
.v14b-bottom-nav-item--active i,
.v14b-bottom-nav-item--active span.material-icons,
.v14b-bottom-nav-item--active ion-icon,
.v14b-bottom-nav-item--active span.bi,
.v14b-bottom-nav-item--active span { color: var(--v14b-primary); }
.v14b-bottom-nav-badge {
  position: absolute; top: 0.4rem; transform: translateX(1.2rem);
  background: #ff4d4f; color: #fff; font-size: 0.9rem; font-weight: 700;
  border-radius: 0.8rem; padding: 0 0.4rem; min-width: 1.4rem; line-height: 1.4rem; text-align: center;
}
.v14b-bottom-nav-item { position: relative; }

/* ---------------- Back to top ---------------- */
.v14b-back-top {
  position: fixed; right: 1.2rem; bottom: calc(var(--v14b-bottom-h) + 1.2rem); z-index: 900;
  width: 4rem; height: 4rem; border-radius: 50%; border: 0.15rem solid var(--v14b-primary);
  background: var(--v14b-bg-deep); color: var(--v14b-primary); font-size: 2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--v14b-shadow);
}

/* ---------------- Desktop tweaks ---------------- */
@media (min-width: 769px) {
  .v14b-bottom-nav { display: none; }
  .v14b-main { padding-bottom: 2rem; }
  .v14b-container, .v14b-wrapper, .v14b-header-inner, .v14b-nav-menu-inner { max-width: 760px; }
  .v14b-game-grid { grid-template-columns: repeat(6, 1fr); }
  .v14b-grid-2 { grid-template-columns: repeat(4, 1fr); }
}
