/* ==========================================================================
   nustar gaming app apk - core stylesheet
   Prefix: wa727-  | All custom classes use this prefix.
   Palette: #3CB371 / #FFE4B5 / #008000 / #1B263B / #FFEFD5
   Mobile-first. Primary container width capped at max-width: 430px.
   ========================================================================== */

:root {
  --wa727-primary: #3CB371;
  --wa727-cream: #FFE4B5;
  --wa727-deep-green: #008000;
  --wa727-bg: #1B263B;
  --wa727-bg-soft: #23314a;
  --wa727-bg-deep: #131c2b;
  --wa727-text: #FFEFD5;
  --wa727-text-muted: #c5cfde;
  --wa727-accent: #FFD166;
  --wa727-danger: #ef5350;
  --wa727-border: rgba(255, 239, 213, 0.12);
  --wa727-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --wa727-radius: 14px;
}

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

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  background: var(--wa727-bg-deep);
  background: linear-gradient(180deg, #131c2b 0%, #1B263B 60%, #102135 100%);
  color: var(--wa727-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a { color: var(--wa727-cream); text-decoration: none; }
a:hover, a:focus { color: var(--wa727-accent); }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Layout core ---------- */
.wa727-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

.wa727-container {
  width: 100%;
  max-width: 430px;
  padding: 0 1.4rem;
  margin: 0 auto;
}

main { padding-bottom: 90px; }

/* ---------- Header ---------- */
.wa727-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: rgba(19, 28, 43, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wa727-border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.wa727-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.wa727-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.wa727-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.wa727-brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--wa727-cream);
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa727-brand-name span { color: var(--wa727-primary); }

.wa727-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wa727-menu-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(60, 179, 113, 0.15);
  color: var(--wa727-cream);
  font-size: 1.8rem;
}

.wa727-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.25rem;
  min-height: 38px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.wa727-btn-login {
  background: transparent;
  border: 1.5px solid var(--wa727-primary);
  color: var(--wa727-cream);
}

.wa727-btn-register {
  background: linear-gradient(135deg, #008000 0%, #3CB371 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 128, 0, 0.35);
}

.wa727-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }

/* ---------- Mobile menu ---------- */
.wa727-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  z-index: 1500;
  transition: opacity 0.25s ease;
}

.wa727-overlay-show { opacity: 1; pointer-events: auto; }

.wa727-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 78%;
  max-width: 320px;
  background: var(--wa727-bg);
  background: linear-gradient(180deg, #1B263B 0%, #131c2b 100%);
  padding: 2rem 1.4rem;
  z-index: 9999;
  transform: translateX(110%);
  transition: transform 0.28s ease;
  overflow-y: auto;
  border-left: 1px solid var(--wa727-border);
}

.wa727-menu-open { transform: translateX(0); }

.wa727-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.4rem;
}

.wa727-menu-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--wa727-cream);
}

.wa727-menu-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--wa727-text);
  font-size: 1.7rem;
}

.wa727-menu-list li { margin-bottom: 0.4rem; }

.wa727-menu-list a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 0.7rem;
  border-radius: 10px;
  font-size: 1.35rem;
  color: var(--wa727-text);
  border: 1px solid transparent;
}

.wa727-menu-list a:hover {
  background: rgba(60, 179, 113, 0.12);
  border-color: var(--wa727-border);
  color: var(--wa727-cream);
}

.wa727-menu-list .material-icons,
.wa727-menu-list i { font-size: 2rem; color: var(--wa727-primary); }

.wa727-menu-cta {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

/* ---------- Hero carousel ---------- */
.wa727-hero {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0.8rem auto 1.2rem;
  padding: 0 1rem;
}

.wa727-hero-track {
  position: relative;
  border-radius: var(--wa727-radius);
  overflow: hidden;
  box-shadow: var(--wa727-shadow);
  aspect-ratio: 16 / 9;
}

.wa727-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.wa727-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wa727-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19,28,43,0) 35%, rgba(19,28,43,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.1rem;
}

.wa727-slide-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.3rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.wa727-slide-sub {
  font-size: 1.15rem;
  color: var(--wa727-cream);
  margin-bottom: 0.5rem;
}

.wa727-slide-active { opacity: 1; }

.wa727-hero-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.wa727-hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.wa727-dot-active {
  background: var(--wa727-primary);
  width: 22px;
  border-radius: 4px;
}

/* ---------- Section ---------- */
.wa727-section {
  margin: 1.6rem 0;
  padding: 0;
}

.wa727-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.wa727-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--wa727-cream);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wa727-section-title .material-icons,
.wa727-section-title i { font-size: 2rem; color: var(--wa727-primary); }

.wa727-section-more {
  font-size: 1.2rem;
  color: var(--wa727-accent);
}

.wa727-intro {
  font-size: 1.32rem;
  color: var(--wa727-text-muted);
  line-height: 1.65rem;
  margin: 0.8rem 0 1.2rem;
}

.wa727-intro strong { color: var(--wa727-cream); }

/* ---------- Game grid ---------- */
.wa727-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.wa727-game-card {
  background: var(--wa727-bg-soft);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--wa727-border);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wa727-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  border-color: rgba(60, 179, 113, 0.45);
}

.wa727-game-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #0d1422;
}

.wa727-game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wa727-game-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  background: linear-gradient(135deg, #008000, #3CB371);
  color: #fff;
  font-size: 0.95rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-weight: 700;
}

.wa727-game-name {
  padding: 0.45rem 0.4rem 0.55rem;
  font-size: 1.05rem;
  color: var(--wa727-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Category nav ---------- */
.wa727-cat-pills {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.3rem 0 0.8rem;
  scrollbar-width: none;
}
.wa727-cat-pills::-webkit-scrollbar { display: none; }

.wa727-cat-pill {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--wa727-text);
  font-size: 1.15rem;
  white-space: nowrap;
  border: 1px solid var(--wa727-border);
}

/* ---------- Cards / Feature / Info ---------- */
.wa727-card {
  background: var(--wa727-bg-soft);
  border-radius: var(--wa727-radius);
  padding: 1.2rem;
  border: 1px solid var(--wa727-border);
  margin-bottom: 1rem;
  box-shadow: var(--wa727-shadow);
}

.wa727-card h3 {
  font-size: 1.35rem;
  color: var(--wa727-cream);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wa727-card p {
  font-size: 1.25rem;
  color: var(--wa727-text-muted);
  line-height: 1.6rem;
}

.wa727-feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}

.wa727-feature {
  background: rgba(60, 179, 113, 0.08);
  border-radius: 12px;
  padding: 0.9rem;
  border: 1px solid var(--wa727-border);
}

.wa727-feature i, .wa727-feature .material-icons {
  font-size: 2.2rem;
  color: var(--wa727-primary);
  margin-bottom: 0.3rem;
}

.wa727-feature h4 {
  font-size: 1.2rem;
  color: var(--wa727-cream);
  margin-bottom: 0.25rem;
}

.wa727-feature p {
  font-size: 1.1rem;
  color: var(--wa727-text-muted);
  line-height: 1.45rem;
}

/* ---------- CTA banner ---------- */
.wa727-cta {
  background: linear-gradient(135deg, #008000 0%, #3CB371 100%);
  border-radius: var(--wa727-radius);
  padding: 1.3rem;
  text-align: center;
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 128, 0, 0.4);
  margin: 1.4rem 0;
}

.wa727-cta h3 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
  color: #fff;
}

.wa727-cta p {
  font-size: 1.2rem;
  color: #FFEFD5;
  margin-bottom: 0.8rem;
}

.wa727-cta .wa727-btn {
  background: #fff;
  color: #008000;
  font-size: 1.3rem;
  padding: 0.7rem 1.8rem;
}

/* ---------- Testimonials ---------- */
.wa727-testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.wa727-testimonial {
  background: var(--wa727-bg-soft);
  border-radius: 12px;
  padding: 1rem;
  border-left: 3px solid var(--wa727-primary);
  border-top: 1px solid var(--wa727-border);
  border-right: 1px solid var(--wa727-border);
  border-bottom: 1px solid var(--wa727-border);
}

.wa727-testimonial-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.wa727-testimonial-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #008000, #3CB371);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}

.wa727-testimonial-name {
  font-size: 1.2rem;
  color: var(--wa727-cream);
  font-weight: 700;
}

.wa727-stars { color: var(--wa727-accent); font-size: 1.1rem; }

.wa727-testimonial p {
  font-size: 1.18rem;
  color: var(--wa727-text-muted);
  line-height: 1.55rem;
}

/* ---------- Payment ---------- */
.wa727-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.wa727-pay-item {
  background: var(--wa727-bg-soft);
  border: 1px solid var(--wa727-border);
  border-radius: 10px;
  padding: 0.7rem 0.3rem;
  text-align: center;
  font-size: 1.05rem;
  color: var(--wa727-text-muted);
}

.wa727-pay-item i, .wa727-pay-item .material-icons {
  font-size: 1.9rem;
  color: var(--wa727-primary);
  display: block;
  margin-bottom: 0.2rem;
}

/* ---------- RTP table ---------- */
.wa727-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.15rem;
}

.wa727-rtp-table th, .wa727-rtp-table td {
  padding: 0.55rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--wa727-border);
}

.wa727-rtp-table th {
  color: var(--wa727-cream);
  font-weight: 700;
  background: rgba(60, 179, 113, 0.12);
}

.wa727-rtp-table td { color: var(--wa727-text-muted); }
.wa727-rtp-table .wa727-rtp-high { color: var(--wa727-primary); font-weight: 700; }

/* ---------- Winners ---------- */
.wa727-winner-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.wa727-winner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.8rem;
  background: var(--wa727-bg-soft);
  border-radius: 8px;
  border: 1px solid var(--wa727-border);
  font-size: 1.15rem;
}

.wa727-winner .wa727-winner-amount { color: var(--wa727-accent); font-weight: 700; }

/* ---------- FAQ ---------- */
.wa727-faq-list { display: flex; flex-direction: column; gap: 0.6rem; }

.wa727-faq-item {
  background: var(--wa727-bg-soft);
  border: 1px solid var(--wa727-border);
  border-radius: 10px;
  overflow: hidden;
}

.wa727-faq-q {
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  font-size: 1.22rem;
  color: var(--wa727-cream);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.wa727-faq-q .wa727-faq-icon { color: var(--wa727-primary); transition: transform 0.2s ease; }

.wa727-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 1rem;
  color: var(--wa727-text-muted);
  font-size: 1.15rem;
  line-height: 1.55rem;
}

.wa727-faq-open .wa727-faq-a { max-height: 400px; padding: 0 1rem 0.9rem; }
.wa727-faq-open .wa727-faq-icon { transform: rotate(45deg); }

/* ---------- Steps ---------- */
.wa727-steps {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  counter-reset: step;
}

.wa727-step {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: var(--wa727-bg-soft);
  padding: 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--wa727-border);
}

.wa727-step-num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #008000, #3CB371);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.wa727-step-body h4 { font-size: 1.2rem; color: var(--wa727-cream); margin-bottom: 0.2rem; }
.wa727-step-body p { font-size: 1.12rem; color: var(--wa727-text-muted); line-height: 1.5rem; }

/* ---------- Promo links ---------- */
.wa727-link {
  color: var(--wa727-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wa727-link:hover { color: var(--wa727-primary); }

/* ---------- Footer ---------- */
.wa727-footer {
  background: var(--wa727-bg-deep);
  border-top: 1px solid var(--wa727-border);
  padding: 1.6rem 1.4rem 1.2rem;
  margin-top: 1.4rem;
}

.wa727-footer-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--wa727-cream);
  margin-bottom: 0.4rem;
}

.wa727-footer-desc {
  font-size: 1.18rem;
  color: var(--wa727-text-muted);
  line-height: 1.6rem;
  margin-bottom: 1rem;
}

.wa727-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 0.8rem;
  margin-bottom: 1rem;
}

.wa727-footer-links a {
  font-size: 1.15rem;
  color: var(--wa727-text-muted);
  padding: 0.35rem 0;
}

.wa727-footer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.wa727-footer-cta .wa727-btn { flex: 1 1 auto; }

.wa727-copyright {
  font-size: 1.1rem;
  color: var(--wa727-text-muted);
  text-align: center;
  border-top: 1px solid var(--wa727-border);
  padding-top: 0.8rem;
}

/* ---------- Bottom navigation ---------- */
.wa727-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 62px;
  background: rgba(19, 28, 43, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--wa727-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.35);
}

.wa727-bottom-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  color: var(--wa727-text-muted);
  font-size: 1rem;
  transition: color 0.15s ease, transform 0.15s ease;
  position: relative;
}

.wa727-bottom-nav-btn .material-icons,
.wa727-bottom-nav-btn i,
.wa727-bottom-nav-btn ion-icon { font-size: 2.2rem; }

.wa727-bottom-nav-btn:hover { color: var(--wa727-cream); transform: translateY(-1px); }

.wa727-bottom-nav-btn.wa727-nav-active { color: var(--wa727-primary); }

.wa727-bottom-nav-btn.wa727-nav-active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 26px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--wa727-primary);
}

.wa727-nav-badge {
  position: absolute;
  top: 6px;
  right: 16px;
  background: var(--wa727-danger);
  color: #fff;
  font-size: 0.85rem;
  padding: 0 5px;
  border-radius: 8px;
  min-width: 14px;
  height: 14px;
  line-height: 14px;
  text-align: center;
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .wa727-bottom-nav { display: none; }
  main { padding-bottom: 1.5rem; }
}

/* ---------- Responsive tuning ---------- */
@media (max-width: 360px) {
  .wa727-grid { grid-template-columns: repeat(2, 1fr); }
  .wa727-feature-row { grid-template-columns: 1fr; }
  .wa727-brand-name { font-size: 1.2rem; }
}
