/* ===========================================================
   ju88n.homes - Theme Stylesheet
   Prefix: w71fd-
   Palette: #2E4057 (dark bg) | #4DB6AC (primary) | #48D1CC (accent)
   Mobile-first, max-width 430px. Root font 62.5% => 1rem = 10px.
   =========================================================== */

:root {
  --w71fd-bg: #2E4057;
  --w71fd-bg-deep: #21303f;
  --w71fd-bg-soft: #35506970;
  --w71fd-primary: #4DB6AC;
  --w71fd-accent: #48D1CC;
  --w71fd-text: #eaf6f5;
  --w71fd-text-dim: #b9d2cf;
  --w71fd-gold: #ffd166;
  --w71fd-rose: #ff7a8a;
  --w71fd-card: rgba(255, 255, 255, 0.06);
  --w71fd-border: rgba(72, 209, 204, 0.22);
  --w71fd-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  --w71fd-radius: 12px;
  --w71fd-radius-lg: 18px;
}

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

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

body {
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, system-ui, sans-serif;
  background: linear-gradient(160deg, var(--w71fd-bg-deep) 0%, var(--w71fd-bg) 60%, #243c52 100%);
  color: var(--w71fd-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--w71fd-accent); text-decoration: none; }

.w71fd-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

.w71fd-container {
  padding: 0 1.4rem;
  width: 100%;
}

main.w71fd-main { padding-bottom: 90px; }

/* ============== Header ============== */
.w71fd-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, rgba(46,64,87,0.96), rgba(33,48,63,0.96));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--w71fd-border);
}
.w71fd-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.7rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.w71fd-brand {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--w71fd-text); font-weight: 700; font-size: 1.7rem;
}
.w71fd-brand img { width: 28px; height: 28px; border-radius: 6px; }
.w71fd-brand-name span { color: var(--w71fd-primary); }

.w71fd-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.w71fd-btn {
  border: none; cursor: pointer; font-family: inherit; font-weight: 600;
  border-radius: 999px; padding: 0.7rem 1.4rem; font-size: 1.3rem;
  min-height: 36px; transition: transform 0.15s ease, filter 0.15s ease;
}
.w71fd-btn:active { transform: scale(0.95); }
.w71fd-btn-login {
  background: transparent; color: var(--w71fd-text);
  border: 1px solid var(--w71fd-border);
}
.w71fd-btn-register {
  background: linear-gradient(90deg, var(--w71fd-primary), var(--w71fd-accent));
  color: #0e2230; box-shadow: 0 4px 12px rgba(72,209,204,0.35);
}
.w71fd-menu-btn {
  background: transparent; border: none; color: var(--w71fd-text);
  width: 36px; height: 36px; font-size: 2rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* ============== Expandable nav menu ============== */
.w71fd-nav-menu {
  max-height: 0; overflow: hidden;
  background: rgba(33,48,63,0.98);
  border-top: 1px solid var(--w71fd-border);
  transition: max-height 0.3s ease;
}
.w71fd-nav-menu.w71fd-nav-open { max-height: 480px; }
.w71fd-nav-list {
  list-style: none; padding: 0.6rem 1.4rem 1rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem;
}
.w71fd-nav-list a {
  display: block; padding: 0.7rem 0.4rem;
  color: var(--w71fd-text-dim); font-size: 1.25rem;
  border-radius: 8px; border: 1px solid transparent;
}
.w71fd-nav-list a:hover, .w71fd-nav-list a:focus {
  background: var(--w71fd-card); color: var(--w71fd-primary);
  border-color: var(--w71fd-border);
}

/* ============== Hero / carousel ============== */
.w71fd-hero {
  margin-top: 58px;
  position: relative;
  border-radius: 0 0 var(--w71fd-radius-lg) var(--w71fd-radius-lg);
  overflow: hidden;
}
.w71fd-hero-slide {
  display: none; position: relative; cursor: pointer;
}
.w71fd-hero-slide.w71fd-hero-active { display: block; }
.w71fd-hero-slide img { width: 100%; height: 200px; object-fit: cover; }
.w71fd-hero-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.4rem; color: #fff;
  background: linear-gradient(transparent, rgba(14,34,48,0.92));
}
.w71fd-hero-caption h2 { font-size: 1.7rem; font-weight: 700; margin-bottom: 0.2rem; }
.w71fd-hero-caption p { font-size: 1.2rem; color: var(--w71fd-text-dim); }
.w71fd-hero-dots {
  position: absolute; bottom: 8px; right: 12px;
  display: flex; gap: 6px;
}
.w71fd-hero-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.45); cursor: pointer;
}
.w71fd-hero-dot.w71fd-dot-active { background: var(--w71fd-gold); width: 18px; border-radius: 4px; }

/* ============== Section title ============== */
.w71fd-section { padding: 1.6rem 0 0.4rem; }
.w71fd-section-title {
  font-size: 1.55rem; font-weight: 700; margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.5rem; color: var(--w71fd-text);
}
.w71fd-section-title i, .w71fd-section-title .material-icons-outlined {
  color: var(--w71fd-primary); font-size: 1.9rem;
}
.w71fd-section-title .w71fd-hl { color: var(--w71fd-gold); }
.w71fd-lead { font-size: 1.3rem; color: var(--w71fd-text-dim); margin-bottom: 0.8rem; }

/* ============== Filter chips ============== */
.w71fd-filter-row {
  display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.4rem;
  margin-bottom: 0.6rem; scrollbar-width: none;
}
.w71fd-filter-row::-webkit-scrollbar { display: none; }
.w71fd-filter-btn {
  flex: 0 0 auto; border: 1px solid var(--w71fd-border);
  background: var(--w71fd-card); color: var(--w71fd-text-dim);
  padding: 0.5rem 1rem; border-radius: 999px; font-size: 1.2rem;
  cursor: pointer; white-space: nowrap;
}
.w71fd-filter-btn.w71fd-filter-active {
  background: linear-gradient(90deg, var(--w71fd-primary), var(--w71fd-accent));
  color: #0e2230; border-color: transparent; font-weight: 600;
}

/* ============== Game grid ============== */
.w71fd-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
.w71fd-game-tile {
  background: var(--w71fd-card);
  border: 1px solid var(--w71fd-border);
  border-radius: var(--w71fd-radius);
  padding: 0.5rem; cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
  transition: transform 0.15s ease, border-color 0.15s ease;
  min-height: 44px;
}
.w71fd-game-tile:active { transform: scale(0.95); border-color: var(--w71fd-primary); }
.w71fd-game-tile img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 8px; margin-bottom: 0.35rem;
}
.w71fd-game-tile-name {
  font-size: 1.1rem; color: var(--w71fd-text-dim);
  text-align: center; line-height: 1.25rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============== Cards ============== */
.w71fd-card {
  background: var(--w71fd-card);
  border: 1px solid var(--w71fd-border);
  border-radius: var(--w71fd-radius-lg);
  padding: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--w71fd-shadow);
}
.w71fd-card h3 {
  font-size: 1.4rem; margin-bottom: 0.5rem; color: var(--w71fd-primary);
}
.w71fd-card p { font-size: 1.28rem; color: var(--w71fd-text-dim); margin-bottom: 0.6rem; }
.w71fd-card ul { padding-left: 1.4rem; color: var(--w71fd-text-dim); font-size: 1.25rem; }
.w71fd-card ul li { margin-bottom: 0.3rem; }

.w71fd-promo-link {
  color: var(--w71fd-gold); font-weight: 700; cursor: pointer;
  border-bottom: 1px dashed var(--w71fd-gold);
}
.w71fd-promo-btn {
  display: inline-block; margin-top: 0.4rem;
  background: linear-gradient(90deg, var(--w71fd-primary), var(--w71fd-accent));
  color: #0e2230; font-weight: 700; padding: 0.7rem 1.4rem;
  border-radius: 999px; font-size: 1.3rem; border: none; cursor: pointer;
}

/* ============== RTP / compact data ============== */
.w71fd-rtp-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem;
}
.w71fd-rtp-item {
  background: rgba(33,48,63,0.6); border-radius: var(--w71fd-radius);
  padding: 0.8rem; border: 1px solid var(--w71fd-border);
}
.w71fd-rtp-item .w71fd-rtp-name { font-size: 1.15rem; color: var(--w71fd-text-dim); }
.w71fd-rtp-item .w71fd-rtp-value { font-size: 1.8rem; color: var(--w71fd-gold); font-weight: 700; }

/* ============== Testimonials / winners ============== */
.w71fd-people-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem;
}
.w71fd-people-card {
  background: var(--w71fd-card); border-radius: var(--w71fd-radius);
  padding: 0.8rem; border: 1px solid var(--w71fd-border);
}
.w71fd-people-card .w71fd-name { font-size: 1.2rem; color: var(--w71fd-primary); font-weight: 600; }
.w71fd-people-card .w71fd-amount { font-size: 1.5rem; color: var(--w71fd-gold); font-weight: 700; }
.w71fd-people-card .w71fd-quote { font-size: 1.15rem; color: var(--w71fd-text-dim); margin-top: 0.3rem; }

/* ============== Payment / category chips ============== */
.w71fd-chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.w71fd-chip {
  background: var(--w71fd-card); border: 1px solid var(--w71fd-border);
  border-radius: 999px; padding: 0.4rem 0.9rem; font-size: 1.15rem;
  color: var(--w71fd-text-dim); display: inline-flex; align-items: center; gap: 0.3rem;
}
.w71fd-chip i { color: var(--w71fd-primary); }

/* ============== Steps ============== */
.w71fd-steps { list-style: none; counter-reset: step; }
.w71fd-steps li {
  counter-increment: step; position: relative;
  padding: 0.5rem 0 0.5rem 3rem; color: var(--w71fd-text-dim); font-size: 1.25rem;
}
.w71fd-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0.3rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: linear-gradient(90deg, var(--w71fd-primary), var(--w71fd-accent));
  color: #0e2230; font-weight: 700; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}

/* ============== App download CTA ============== */
.w71fd-app-cta {
  background: linear-gradient(135deg, rgba(77,182,172,0.18), rgba(72,209,204,0.12));
  border: 1px solid var(--w71fd-border); border-radius: var(--w71fd-radius-lg);
  padding: 1.2rem; text-align: center;
}
.w71fd-app-cta h3 { color: var(--w71fd-primary); font-size: 1.5rem; margin-bottom: 0.4rem; }
.w71fd-app-cta p { color: var(--w71fd-text-dim); font-size: 1.25rem; margin-bottom: 0.8rem; }
.w71fd-app-btns { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.w71fd-app-btns .w71fd-promo-btn { display: inline-flex; align-items: center; gap: 0.4rem; }

/* ============== FAQ ============== */
.w71fd-faq-item {
  border-bottom: 1px solid var(--w71fd-border); padding: 0.8rem 0;
}
.w71fd-faq-item h4 { font-size: 1.3rem; color: var(--w71fd-text); margin-bottom: 0.3rem; }
.w71fd-faq-item p { font-size: 1.22rem; color: var(--w71fd-text-dim); }

/* ============== Footer ============== */
.w71fd-footer {
  background: var(--w71fd-bg-deep);
  border-top: 1px solid var(--w71fd-border);
  padding: 1.6rem 1.4rem 2.4rem;
  margin-top: 1.4rem;
}
.w71fd-footer-brand { font-size: 1.3rem; color: var(--w71fd-text-dim); margin-bottom: 0.8rem; }
.w71fd-footer-links {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem 0.8rem;
  margin-bottom: 1rem;
}
.w71fd-footer-links a { color: var(--w71fd-text-dim); font-size: 1.15rem; }
.w71fd-footer-links a:hover { color: var(--w71fd-primary); }
.w71fd-footer-promos {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.8rem;
}
.w71fd-footer-copy { font-size: 1.1rem; color: var(--w71fd-text-dim); opacity: 0.8; }

/* ============== Mobile bottom nav ============== */
.w71fd-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1000; height: 62px;
  background: linear-gradient(90deg, rgba(33,48,63,0.98), rgba(46,64,87,0.98));
  border-top: 1px solid var(--w71fd-border);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.25);
}
.w71fd-bottom-nav a, .w71fd-bottom-nav button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; background: transparent; border: none; color: var(--w71fd-text-dim);
  font-size: 1rem; cursor: pointer; min-width: 60px; min-height: 60px;
  transition: color 0.15s ease, transform 0.15s ease;
}
.w71fd-bottom-nav a:active, .w71fd-bottom-nav button:active { transform: scale(0.9); }
.w71fd-bottom-nav .w71fd-nav-icon { font-size: 22px; line-height: 1; }
.w71fd-bottom-nav .w71fd-nav-label { font-size: 1rem; line-height: 1; }
.w71fd-bottom-nav .w71fd-active { color: var(--w71fd-gold); }
.w71fd-bottom-nav .w71fd-badge {
  position: absolute; top: 6px; right: 18px;
  background: var(--w71fd-rose); color: #fff; border-radius: 999px;
  font-size: 0.9rem; padding: 1px 5px; line-height: 1.2;
}

/* ============== Reveal animation ============== */
.w71fd-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.w71fd-reveal.w71fd-reveal-show { opacity: 1; transform: translateY(0); }

/* ============== Desktop ============== */
@media (min-width: 769px) {
  .w71fd-bottom-nav { display: none; }
  .w71fd-wrapper { max-width: 430px; }
}
