/* ============================================================
   xpinay.homes - Core theme stylesheet
   All custom classes use the v7b0- prefix for isolation.
   Palette: #CD853F | #1C2833 | #FAF0E6 | #C71585
   Mobile-first, max-width 430px. Root font 62.5% (1rem=10px).
   ============================================================ */

:root {
  --v7b0-primary: #CD853F;
  --v7b0-bg: #1C2833;
  --v7b0-text: #FAF0E6;
  --v7b0-accent: #C71585;
  --v7b0-bg-alt: #22323f;
  --v7b0-bg-deep: #141c25;
  --v7b0-muted: #b9a98f;
  --v7b0-border: rgba(205, 133, 63, 0.28);
  --v7b0-radius: 1.2rem;
  --v7b0-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --v7b0-header-h: 6rem;
  --v7b0-nav-h: 6.4rem;
}

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

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--v7b0-bg);
  color: var(--v7b0-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  padding-top: var(--v7b0-header-h);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---------- Layout helpers ---------- */
.v7b0-container { width: 100%; padding: 0 1.2rem; }
.v7b0-wrapper { max-width: 430px; margin: 0 auto; }
.v7b0-section { padding: 2.4rem 1.2rem; }
.v7b0-section-alt { background: var(--v7b0-bg-alt); }

/* ---------- Header ---------- */
.v7b0-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--v7b0-header-h);
  background: var(--v7b0-bg-deep);
  border-bottom: 2px solid var(--v7b0-primary);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem; z-index: 1000; box-shadow: var(--v7b0-shadow);
}
.v7b0-logo { display: flex; align-items: center; gap: 0.8rem; }
.v7b0-logo img { width: 3rem; height: 3rem; border-radius: 0.6rem; }
.v7b0-logo-text { font-size: 1.8rem; font-weight: 800; color: var(--v7b0-primary); letter-spacing: 0.5px; }
.v7b0-logo-text span { color: var(--v7b0-accent); }

.v7b0-header-actions { display: flex; align-items: center; gap: 0.8rem; }
.v7b0-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; border: none; cursor: pointer;
  font-size: 1.3rem; font-weight: 700; border-radius: 2rem;
  padding: 0.7rem 1.4rem; min-height: 4rem; transition: transform .15s, box-shadow .15s;
}
.v7b0-btn:active { transform: scale(0.96); }
.v7b0-btn-register { background: linear-gradient(135deg, var(--v7b0-accent), #e23a9c); color: #fff; box-shadow: 0 3px 10px rgba(199,21,133,.45); }
.v7b0-btn-login { background: var(--v7b0-primary); color: var(--v7b0-bg-deep); box-shadow: 0 3px 10px rgba(205,133,63,.4); }

.v7b0-menu-toggle {
  background: transparent; border: 0; color: var(--v7b0-text);
  font-size: 2.2rem; cursor: pointer; min-width: 4.4rem; min-height: 4.4rem;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Mobile slide-down menu ---------- */
.v7b0-mobile-menu {
  position: fixed; top: var(--v7b0-header-h); left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; background: var(--v7b0-bg-deep);
  border-bottom: 2px solid var(--v7b0-primary);
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  z-index: 9999;
}
body.v7b0-menu-open .v7b0-mobile-menu { max-height: 60rem; }
.v7b0-mobile-menu ul { list-style: none; padding: 1rem 1.2rem 1.6rem; }
.v7b0-mobile-menu li { border-bottom: 1px solid var(--v7b0-border); }
.v7b0-mobile-menu li:last-child { border-bottom: 0; }
.v7b0-mobile-menu a {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.2rem 0.4rem; color: var(--v7b0-text); font-size: 1.5rem; font-weight: 600;
}
.v7b0-mobile-menu a i { color: var(--v7b0-primary); font-size: 1.8rem; }

/* ---------- Hero carousel ---------- */
.v7b0-carousel {
  position: relative; width: 100%; overflow: hidden; border-radius: 0 0 1.4rem 1.4rem;
}
.v7b0-carousel-track { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.v7b0-carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease;
  cursor: pointer;
}
.v7b0-carousel-slide.v7b0-active { opacity: 1; }
.v7b0-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.v7b0-carousel-caption {
  position: absolute; left: 1.2rem; bottom: 1.4rem; right: 1.2rem;
  background: rgba(20,28,37,.55); padding: 1rem 1.2rem; border-radius: 1rem;
  backdrop-filter: blur(2px);
}
.v7b0-carousel-caption h2 { font-size: 1.8rem; color: var(--v7b0-primary); margin-bottom: 0.4rem; }
.v7b0-carousel-caption p { font-size: 1.3rem; color: var(--v7b0-text); }
.v7b0-carousel-dots { position: absolute; bottom: 0.8rem; left: 0; right: 0; text-align: center; }
.v7b0-carousel-dot {
  display: inline-block; width: 0.9rem; height: 0.9rem; margin: 0 0.3rem;
  border-radius: 50%; background: rgba(250,240,230,.45); cursor: pointer; border: none;
}
.v7b0-carousel-dot.v7b0-active { background: var(--v7b0-accent); }

/* ---------- Headings ---------- */
.v7b0-h1 { font-size: 2.2rem; line-height: 2.8rem; font-weight: 800; color: var(--v7b0-primary); margin: 1.6rem 0 0.6rem; }
.v7b0-h2 { font-size: 1.9rem; font-weight: 800; color: var(--v7b0-text); margin: 2rem 0 1rem; border-left: 4px solid var(--v7b0-accent); padding-left: 1rem; }
.v7b0-h2 b { color: var(--v7b0-primary); }
.v7b0-h3 { font-size: 1.6rem; font-weight: 700; color: var(--v7b0-primary); margin: 1.4rem 0 0.6rem; }
.v7b0-lead { font-size: 1.45rem; color: var(--v7b0-muted); margin-bottom: 1.2rem; }
.v7b0-p { margin-bottom: 1rem; color: var(--v7b0-text); }

/* ---------- Category quick chips ---------- */
.v7b0-cat-chips { display: flex; gap: 0.8rem; overflow-x: auto; padding: 1.2rem; }
.v7b0-cat-chip {
  flex: 0 0 auto; padding: 0.6rem 1.2rem; border-radius: 2rem;
  background: var(--v7b0-bg-alt); color: var(--v7b0-text); font-size: 1.3rem; font-weight: 600;
  border: 1px solid var(--v7b0-border); cursor: pointer;
}
.v7b0-cat-chip:active { background: var(--v7b0-primary); color: var(--v7b0-bg-deep); }

/* ---------- Game grid ---------- */
.v7b0-game-section { padding: 1.4rem 1.2rem 2rem; }
.v7b0-game-section-title {
  display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.2rem;
  font-size: 1.7rem; font-weight: 800; color: var(--v7b0-primary);
}
.v7b0-game-section-title i { color: var(--v7b0-accent); font-size: 2rem; }
.v7b0-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
.v7b0-card {
  background: var(--v7b0-bg-alt); border-radius: 1rem; overflow: hidden;
  border: 1px solid var(--v7b0-border); text-align: center; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.v7b0-card:active { transform: scale(0.97); box-shadow: 0 4px 14px rgba(199,21,133,.4); }
.v7b0-card-img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--v7b0-bg-deep); }
.v7b0-card-name { padding: 0.6rem 0.4rem; font-size: 1.15rem; color: var(--v7b0-text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Info / feature blocks ---------- */
.v7b0-card-box {
  background: var(--v7b0-bg-alt); border-radius: var(--v7b0-radius);
  padding: 1.6rem; margin-bottom: 1.4rem; border: 1px solid var(--v7b0-border); box-shadow: var(--v7b0-shadow);
}
.v7b0-card-box p { color: var(--v7b0-text); }
.v7b0-feature-list { list-style: none; display: grid; gap: 1rem; }
.v7b0-feature-list li {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1rem; background: var(--v7b0-bg-deep);
  border-radius: 1rem; border-left: 3px solid var(--v7b0-primary);
}
.v7b0-feature-list i { color: var(--v7b0-accent); font-size: 2rem; margin-top: 0.2rem; }
.v7b0-feature-list b { color: var(--v7b0-primary); }

/* ---------- Promo CTA ---------- */
.v7b0-cta {
  display: flex; flex-direction: column; gap: 1rem; align-items: center; text-align: center;
  background: linear-gradient(135deg, rgba(199,21,133,.18), rgba(205,133,63,.18));
  border-radius: var(--v7b0-radius); padding: 2rem 1.4rem; margin: 1.6rem 0;
  border: 1px solid var(--v7b0-primary);
}
.v7b0-cta h3 { color: var(--v7b0-primary); font-size: 1.9rem; }
.v7b0-cta p { color: var(--v7b0-text); margin-bottom: 0.6rem; }
.v7b0-cta .v7b0-btn { font-size: 1.5rem; padding: 1rem 2.4rem; }

/* ---------- Inline link styles ---------- */
.v7b0-link { color: var(--v7b0-primary); font-weight: 700; border-bottom: 1px dashed var(--v7b0-primary); }
.v7b0-link:hover { color: var(--v7b0-accent); border-bottom-color: var(--v7b0-accent); }
.v7b0-text-link { color: var(--v7b0-accent); font-weight: 600; }

/* ---------- RTP / stats compact table ---------- */
.v7b0-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.8rem; }
.v7b0-stat {
  background: var(--v7b0-bg-deep); border-radius: 1rem; padding: 1rem;
  text-align: center; border: 1px solid var(--v7b0-border);
}
.v7b0-stat b { display: block; font-size: 1.8rem; color: var(--v7b0-accent); }
.v7b0-stat span { font-size: 1.2rem; color: var(--v7b0-muted); }

/* ---------- Testimonials ---------- */
.v7b0-testimonial { background: var(--v7b0-bg-deep); border-radius: 1rem; padding: 1.2rem; margin-bottom: 1rem; border-left: 3px solid var(--v7b0-accent); }
.v7b0-testimonial b { color: var(--v7b0-primary); display: block; margin-bottom: 0.4rem; }

/* ---------- Payment chips ---------- */
.v7b0-pay-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.v7b0-pay {
  flex: 1 1 30%; text-align: center; background: var(--v7b0-bg-deep);
  padding: 1rem 0.6rem; border-radius: 1rem; border: 1px solid var(--v7b0-border); font-size: 1.25rem; color: var(--v7b0-text);
}
.v7b0-pay i { font-size: 2rem; color: var(--v7b0-primary); display: block; margin-bottom: 0.4rem; }

/* ---------- Winners ---------- */
.v7b0-winner { display: flex; align-items: center; gap: 1rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--v7b0-border); }
.v7b0-winner img { width: 3.4rem; height: 3.4rem; border-radius: 50%; }
.v7b0-winner b { color: var(--v7b0-primary); }
.v7b0-winner span { margin-left: auto; color: var(--v7b0-accent); font-weight: 700; }

/* ---------- Footer ---------- */
.v7b0-footer {
  background: var(--v7b0-bg-deep); padding: 2.4rem 1.2rem 9rem; border-top: 2px solid var(--v7b0-primary);
}
.v7b0-footer-brand { font-size: 1.4rem; color: var(--v7b0-muted); margin-bottom: 1.4rem; }
.v7b0-footer-links { display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; margin-bottom: 1.4rem; }
.v7b0-footer-links a { color: var(--v7b0-text); font-size: 1.3rem; }
.v7b0-footer-links a:hover { color: var(--v7b0-primary); }
.v7b0-footer-promos { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.2rem 0; }
.v7b0-footer-promos .v7b0-btn { flex: 1 1 40%; font-size: 1.2rem; padding: 0.7rem 1rem; min-height: 3.8rem; }
.v7b0-footer-copy { font-size: 1.2rem; color: var(--v7b0-muted); border-top: 1px solid var(--v7b0-border); padding-top: 1rem; }

/* ---------- Mobile bottom nav ---------- */
.v7b0-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--v7b0-nav-h);
  background: var(--v7b0-bg-deep); border-top: 2px solid var(--v7b0-primary);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; box-shadow: 0 -3px 14px rgba(0,0,0,.4);
}
.v7b0-bottom-nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; background: transparent; border: 0; color: var(--v7b0-muted);
  font-size: 1.1rem; min-width: 6rem; min-height: 6rem; cursor: pointer;
  transition: color .15s, transform .15s; text-decoration: none;
}
.v7b0-bottom-nav-btn i, .v7b0-bottom-nav-btn .material-icons-outlined,
.v7b0-bottom-nav-btn .ion-icon { font-size: 2.4rem; }
.v7b0-bottom-nav-btn:active { transform: scale(0.92); }
.v7b0-bottom-nav-btn.v7b0-nav-active { color: var(--v7b0-accent); }
.v7b0-bottom-nav-btn.v7b0-nav-active i { color: var(--v7b0-accent); }
.v7b0-nav-badge {
  position: absolute; top: 0.6rem; right: 1.4rem; background: var(--v7b0-accent); color: #fff;
  font-size: 0.9rem; font-weight: 700; border-radius: 1rem; padding: 0 0.4rem; min-width: 1.6rem; line-height: 1.6rem;
}

/* ---------- Desktop / larger screens ---------- */
@media (min-width: 769px) {
  .v7b0-bottom-nav { display: none; }
  .v7b0-footer { padding-bottom: 2.4rem; }
}

/* Mobile content clearance for fixed bottom nav */
@media (max-width: 768px) {
  main { padding-bottom: 8rem; }
  body { padding-bottom: var(--v7b0-nav-h); }
}

/* Utility */
.v7b0-text-center { text-align: center; }
.v7b0-mt-1 { margin-top: 1rem; }
.v7b0-mb-1 { margin-bottom: 1rem; }
.v7b0-hidden { display: none !important; }
.v7b0-clearfix::after { content: ""; display: table; clear: both; }
