/* layout-12d4.css - nustarph.homes stylesheet */
/* All custom classes use the "w12d4-" prefix. CSS variables use --w12d4-* */

:root {
  --w12d4-primary: #8A2BE2;
  --w12d4-accent1: #EE82EE;
  --w12d4-accent2: #6495ED;
  --w12d4-bg: #1B263B;
  --w12d4-accent3: #8470FF;
  --w12d4-bg-darker: #0F1828;
  --w12d4-bg-card: #23324A;
  --w12d4-text: #FFFFFF;
  --w12d4-text-muted: #B8C4D9;
  --w12d4-gold: #FFD700;
  --w12d4-success: #4ADE80;
  --w12d4-danger: #FF6B6B;
  --w12d4-radius: 14px;
  --w12d4-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --w12d4-grad: linear-gradient(135deg, #8A2BE2 0%, #8470FF 50%, #6495ED 100%);
  --w12d4-grad-warm: linear-gradient(135deg, #EE82EE 0%, #8A2BE2 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
  font-family: 'Poppins', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(160deg, #1B263B 0%, #0F1828 100%);
  color: var(--w12d4-text);
  font-size: 1.5rem;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
}

a { color: var(--w12d4-accent1); text-decoration: none; }
a:hover { color: var(--w12d4-gold); }
img { max-width: 100%; display: block; }

.w12d4-skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--w12d4-primary); color: #fff; padding: 8px 14px; z-index: 2000;
}
.w12d4-skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.w12d4-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15, 24, 40, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(132, 112, 255, 0.25);
  transition: padding .25s ease, background .25s ease;
}
.w12d4-header.w12d4-scrolled { background: rgba(15, 24, 40, 0.98); }
.w12d4-header-inner {
  max-width: 1200px; margin: 0 auto; padding: 8px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.w12d4-brand { display: flex; align-items: center; gap: 8px; color: #fff; }
.w12d4-brand img { width: 30px; height: 30px; border-radius: 8px; }
.w12d4-brand-name { font-size: 1.7rem; font-weight: 700; letter-spacing: .4px;
  background: var(--w12d4-grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }

.w12d4-header-actions { display: flex; align-items: center; gap: 8px; }
.w12d4-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 1.35rem; font-weight: 600; padding: 8px 14px;
  border: none; border-radius: 999px; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  min-height: 38px; white-space: nowrap;
}
.w12d4-btn i { font-size: 1.4rem; }
.w12d4-btn-login { background: transparent; color: #fff; border: 1.5px solid var(--w12d4-accent2); }
.w12d4-btn-login:hover { background: rgba(100, 149, 237, 0.18); color: #fff; }
.w12d4-btn-register { background: var(--w12d4-grad-warm); color: #fff; box-shadow: 0 4px 14px rgba(238, 130, 238, 0.4); }
.w12d4-btn-register:hover { transform: translateY(-1px); color: #fff; }
.w12d4-icon-btn {
  width: 40px; height: 40px; border-radius: 10px; background: transparent;
  border: 1px solid rgba(184, 196, 217, 0.25); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.8rem;
}
.w12d4-icon-btn:hover, .w12d4-icon-btn.w12d4-active { background: rgba(138, 43, 226, 0.25); color: #fff; }

/* ---------- Mobile menu ---------- */
.w12d4-mobile-menu {
  position: fixed; top: 0; right: -85%; width: 80%; max-width: 320px;
  height: 100vh; background: var(--w12d4-bg-darker); z-index: 9999;
  transform: translateX(0); transition: right .28s ease;
  padding: 70px 18px 24px; overflow-y: auto;
  border-left: 1px solid rgba(132, 112, 255, 0.3);
}
.w12d4-mobile-menu.w12d4-menu-open { right: 0; }
.w12d4-mobile-menu h3 { font-size: 1.4rem; color: var(--w12d4-accent1); margin: 18px 0 8px; text-transform: uppercase; letter-spacing: 1px; }
.w12d4-mobile-menu a {
  display: block; padding: 11px 12px; border-radius: 8px;
  color: var(--w12d4-text-muted); font-size: 1.45rem;
}
.w12d4-mobile-menu a:hover { background: rgba(138, 43, 226, 0.2); color: #fff; }
.w12d4-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55);
  z-index: 9998; opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.w12d4-overlay.w12d4-active { opacity: 1; pointer-events: auto; }

/* ---------- Layout ---------- */
.w12d4-main { padding-top: 60px; }
.w12d4-container { max-width: 1200px; margin: 0 auto; padding: 0 14px; }
.w12d4-section { padding: 22px 0; }
.w12d4-section-title {
  font-size: 2rem; font-weight: 700; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.w12d4-section-title .w12d4-ico { color: var(--w12d4-accent1); font-size: 2.2rem; }
.w12d4-eyebrow {
  display: inline-block; font-size: 1.2rem; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--w12d4-gold); padding: 4px 10px;
  border: 1px solid rgba(255, 215, 0, 0.4); border-radius: 999px; margin-bottom: 8px;
}
.w12d4-text-muted { color: var(--w12d4-text-muted); }
.w12d4-lead { font-size: 1.55rem; color: var(--w12d4-text-muted); margin-bottom: 14px; line-height: 1.65; }

/* ---------- Carousel ---------- */
.w12d4-carousel {
  position: relative; border-radius: var(--w12d4-radius); overflow: hidden;
  box-shadow: var(--w12d4-shadow); margin-bottom: 18px;
}
.w12d4-slides { position: relative; }
.w12d4-slide {
  position: relative; display: none;
}
.w12d4-slide.w12d4-active { display: block; }
.w12d4-slide img { width: 100%; height: 210px; object-fit: cover; }
.w12d4-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 14px;
  background: linear-gradient(to top, rgba(15, 24, 40, 0.95) 0%, transparent 100%);
}
.w12d4-slide-cap h2 { font-size: 1.9rem; color: #fff; margin-bottom: 4px; }
.w12d4-slide-cap p { font-size: 1.3rem; color: var(--w12d4-text-muted); }
.w12d4-dots {
  position: absolute; bottom: 10px; right: 12px; display: flex; gap: 6px; z-index: 5;
}
.w12d4-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.4);
  cursor: pointer; border: none; transition: background .2s, transform .2s;
}
.w12d4-dot.w12d4-active { background: var(--w12d4-gold); transform: scale(1.3); }

/* ---------- Hero CTA ---------- */
.w12d4-hero-cta {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0;
}
.w12d4-hero-cta .w12d4-btn { font-size: 1.45rem; padding: 11px 18px; }
.w12d4-cta-primary { background: var(--w12d4-grad-warm); color: #fff; }
.w12d4-cta-secondary { background: transparent; color: #fff; border: 1.5px solid var(--w12d4-accent2); }

/* ---------- Filter chips ---------- */
.w12d4-filters { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 14px; }
.w12d4-filter-btn {
  padding: 8px 14px; border-radius: 999px; font-size: 1.3rem; cursor: pointer;
  background: var(--w12d4-bg-card); color: var(--w12d4-text-muted);
  border: 1px solid rgba(132, 112, 255, 0.3); white-space: nowrap;
}
.w12d4-filter-btn.w12d4-active { background: var(--w12d4-grad); color: #fff; border-color: transparent; }

/* ---------- Game grid ---------- */
.w12d4-game-section { margin-bottom: 26px; }
.w12d4-game-section h2 { font-size: 1.85rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.w12d4-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.w12d4-game-card {
  background: var(--w12d4-bg-card); border-radius: var(--w12d4-radius);
  overflow: hidden; cursor: pointer; position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
  border: 1px solid rgba(132, 112, 255, 0.18);
}
.w12d4-game-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5); }
.w12d4-game-card img { width: 100%; height: 92px; object-fit: cover; }
.w12d4-game-card .w12d4-game-name {
  padding: 6px 8px; font-size: 1.15rem; text-align: center; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.w12d4-game-badge {
  position: absolute; top: 6px; left: 6px; font-size: 1rem; padding: 2px 6px;
  background: var(--w12d4-grad-warm); color: #fff; border-radius: 4px; font-weight: 700;
}

/* ---------- Info cards ---------- */
.w12d4-card {
  background: var(--w12d4-bg-card); border-radius: var(--w12d4-radius);
  padding: 16px; box-shadow: var(--w12d4-shadow);
  border: 1px solid rgba(132, 112, 255, 0.18); margin-bottom: 14px;
}
.w12d4-card h2, .w12d4-card h3 { color: #fff; margin-bottom: 8px; }
.w12d4-card p { color: var(--w12d4-text-muted); margin-bottom: 8px; }
.w12d4-card ul { list-style: none; padding: 0; }
.w12d4-card li { padding: 6px 0 6px 22px; position: relative; color: var(--w12d4-text-muted); }
.w12d4-card li::before {
  content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; left: 0; color: var(--w12d4-success); font-size: 1.2rem;
}

.w12d4-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0; }
.w12d4-feature {
  background: rgba(15, 24, 40, 0.6); border-radius: 12px; padding: 12px; text-align: center;
  border: 1px solid rgba(132, 112, 255, 0.2);
}
.w12d4-feature .material-icons, .w12d4-feature i, .w12d4-feature .bi { font-size: 2.6rem; color: var(--w12d4-accent1); }
.w12d4-feature h3 { font-size: 1.35rem; margin: 6px 0 4px; color: #fff; }
.w12d4-feature p { font-size: 1.2rem; color: var(--w12d4-text-muted); margin: 0; }

/* ---------- RTP / stats ---------- */
.w12d4-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0; }
.w12d4-stat { background: rgba(15, 24, 40, 0.6); padding: 12px; border-radius: 12px; text-align: center; }
.w12d4-stat-num { font-size: 2.2rem; font-weight: 800; background: var(--w12d4-grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.w12d4-stat-lbl { font-size: 1.2rem; color: var(--w12d4-text-muted); }

.w12d4-rtp-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed rgba(184, 196, 217, 0.18); font-size: 1.35rem; }
.w12d4-rtp-row:last-child { border-bottom: none; }
.w12d4-rtp-bar { flex: 1; height: 8px; margin: 0 10px; background: rgba(255, 255, 255, 0.1); border-radius: 4px; overflow: hidden; align-self: center; }
.w12d4-rtp-fill { height: 100%; background: var(--w12d4-grad); }

/* ---------- Testimonials ---------- */
.w12d4-testi {
  background: var(--w12d4-bg-card); border-radius: 12px; padding: 14px; margin-bottom: 10px;
  border-left: 3px solid var(--w12d4-accent1);
}
.w12d4-testi-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.w12d4-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--w12d4-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.4rem; }
.w12d4-stars { color: var(--w12d4-gold); font-size: 1.2rem; }

/* ---------- Payment ---------- */
.w12d4-pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.w12d4-pay {
  background: rgba(255, 255, 255, 0.06); border-radius: 10px; padding: 10px 6px;
  text-align: center; border: 1px solid rgba(132, 112, 255, 0.2);
}
.w12d4-pay i { font-size: 2.2rem; color: var(--w12d4-accent2); }
.w12d4-pay span { display: block; font-size: 1.15rem; color: var(--w12d4-text-muted); margin-top: 4px; }

/* ---------- Winners ---------- */
.w12d4-winner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; background: rgba(15, 24, 40, 0.6); border-radius: 8px; margin-bottom: 6px;
  border: 1px solid rgba(132, 112, 255, 0.18);
}
.w12d4-winner .w12d4-w-amount { color: var(--w12d4-gold); font-weight: 700; font-size: 1.4rem; }

/* ---------- FAQ ---------- */
.w12d4-faq summary { cursor: pointer; font-weight: 600; font-size: 1.4rem; padding: 10px 0; color: #fff; list-style: none; display: flex; justify-content: space-between; }
.w12d4-faq summary::after { content: '+'; color: var(--w12d4-accent1); font-size: 1.7rem; }
.w12d4-faq[open] summary::after { content: '\2212'; }
.w12d4-faq p { color: var(--w12d4-text-muted); padding-bottom: 8px; }

/* ---------- Promo link inline ---------- */
.w12d4-promo-link {
  color: var(--w12d4-gold); font-weight: 700; cursor: pointer;
  border-bottom: 1px dashed rgba(255, 215, 0, 0.5);
}

/* ---------- Footer ---------- */
.w12d4-footer {
  background: var(--w12d4-bg-darker); padding: 26px 0 90px;
  border-top: 1px solid rgba(132, 112, 255, 0.25); margin-top: 20px;
}
.w12d4-footer-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 18px; }
.w12d4-footer-col h4 { font-size: 1.4rem; color: var(--w12d4-accent1); margin-bottom: 10px; }
.w12d4-footer-col a { display: block; color: var(--w12d4-text-muted); font-size: 1.3rem; padding: 4px 0; }
.w12d4-footer-col a:hover { color: var(--w12d4-gold); }
.w12d4-footer-bottom { text-align: center; padding-top: 16px; border-top: 1px solid rgba(184, 196, 217, 0.12); font-size: 1.2rem; color: var(--w12d4-text-muted); }

/* ---------- Bottom nav ---------- */
.w12d4-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(35, 50, 74, 0.98), rgba(15, 24, 40, 1));
  border-top: 1px solid rgba(132, 112, 255, 0.35);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 62px; padding: 4px 0 calc(env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.4);
}
.w12d4-navbtn {
  flex: 1; min-width: 60px; min-height: 54px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: none; border: none; color: var(--w12d4-text-muted); cursor: pointer;
  font-size: 1.05rem; gap: 3px; position: relative; transition: color .18s, transform .18s;
}
.w12d4-navbtn i, .w12d4-navbtn .material-icons, .w12d4-navbtn .bi {
  font-size: 2.2rem; transition: transform .18s;
}
.w12d4-navbtn:hover, .w12d4-navbtn:focus { color: #fff; }
.w12d4-navbtn:hover i, .w12d4-navbtn:hover .material-icons { transform: scale(1.12); }
.w12d4-navbtn.w12d4-current { color: var(--w12d4-gold); }
.w12d4-navbtn.w12d4-current::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--w12d4-grad-warm);
}
.w12d4-nav-promo i, .w12d4-nav-promo .material-icons { color: var(--w12d4-accent1); }
.w12d4-nav-badge {
  position: absolute; top: 4px; right: 18px; background: var(--w12d4-danger);
  color: #fff; font-size: 0.95rem; font-weight: 700; min-width: 16px; height: 16px;
  border-radius: 8px; padding: 0 4px; display: flex; align-items: center; justify-content: center;
}

/* ---------- Back to top ---------- */
.w12d4-backtop {
  position: fixed; right: 14px; bottom: 78px; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--w12d4-grad); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--w12d4-shadow); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.w12d4-backtop.w12d4-show { opacity: 1; pointer-events: auto; }
.w12d4-backtop:hover { transform: translateY(-3px); }

/* ---------- Responsive ---------- */
@media (min-width: 600px) {
  .w12d4-game-grid { grid-template-columns: repeat(4, 1fr); }
  .w12d4-feature-grid { grid-template-columns: repeat(3, 1fr); }
  .w12d4-stats { grid-template-columns: repeat(4, 1fr); }
  .w12d4-slide img { height: 280px; }
}
@media (min-width: 768px) {
  .w12d4-game-grid { grid-template-columns: repeat(5, 1fr); }
  .w12d4-footer-grid { grid-template-columns: repeat(4, 1fr); }
  .w12d4-pay-grid { grid-template-columns: repeat(5, 1fr); }
  .w12d4-section-title { font-size: 2.4rem; }
}
@media (min-width: 769px) {
  /* Hide mobile-only nav on desktop */
  .w12d4-bottom-nav { display: none; }
  .w12d4-mobile-menu-trigger { display: none; }
  .w12d4-main { padding-bottom: 0; }
  .w12d4-footer { padding-bottom: 26px; }
  .w12d4-backtop { bottom: 24px; }
}
@media (max-width: 768px) {
  /* Mobile bottom nav clearance */
  .w12d4-main { padding-bottom: 80px; }
}
