/*!
 * Nustar PH - Base stylesheet
 * Mobile-first casino gaming portal for Philippine players
 * All custom class names use the pgad- prefix to avoid collisions
 * Color palette: #1A1A2E (bg) | #8470FF (primary) | #D2691E (accent) | #DA70D6 (highlight)
 */

/* ---------- CSS variables ---------- */
:root {
  --pgad-bg: #1A1A2E;
  --pgad-bg-soft: #232347;
  --pgad-bg-card: #262648;
  --pgad-primary: #8470FF;
  --pgad-primary-dark: #6a58e0;
  --pgad-accent: #D2691E;
  --pgad-highlight: #DA70D6;
  --pgad-text: #f3f3fb;
  --pgad-text-muted: #b8b8d6;
  --pgad-border: rgba(132, 112, 255, 0.25);
  --pgad-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.35);
  --pgad-radius: 0.8rem;
  --pgad-header-h: 5.6rem;
  --pgad-bottomnav-h: 6.4rem;
  --pgad-gradient: linear-gradient(135deg, #8470FF 0%, #DA70D6 100%);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--pgad-bg);
  color: var(--pgad-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--pgad-highlight); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 1rem; line-height: 1.6rem; font-weight: 700; color: var(--pgad-text); }
h1 { font-size: 2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1rem; color: var(--pgad-text-muted); }

/* ---------- Layout ---------- */
.pgad-container { width: 100%; max-width: 43rem; margin: 0 auto; padding: 0 1.2rem; }
.pgad-wrapper { width: 100%; max-width: 76rem; margin: 0 auto; padding: 0 1.2rem; }
.pgad-section { padding: 2.4rem 0; }
.pgad-section-alt { background: var(--pgad-bg-soft); padding: 2.4rem 0; }
.pgad-center { text-align: center; }

/* ---------- Header ---------- */
.pgad-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--pgad-header-h);
  background: var(--pgad-bg);
  border-bottom: 1px solid var(--pgad-border);
  z-index: 1000;
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.pgad-header-scrolled { box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.45); }
.pgad-header-inner {
  height: 100%;
  max-width: 43rem; margin: 0 auto;
  padding: 0 1.2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.pgad-logo { display: flex; align-items: center; gap: 0.6rem; color: var(--pgad-text); font-weight: 700; font-size: 1.6rem; }
.pgad-logo img { width: 2.6rem; height: 2.6rem; border-radius: 0.5rem; }
.pgad-logo span { background: var(--pgad-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.pgad-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.pgad-menu-btn {
  background: transparent; border: 0; color: var(--pgad-text); font-size: 1.8rem;
  width: 3.6rem; height: 3.6rem; border-radius: 0.5rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Buttons ---------- */
.pgad-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.8rem 1.4rem; border-radius: var(--pgad-radius);
  font-size: 1.3rem; font-weight: 700; cursor: pointer; border: 0;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-height: 4.4rem; text-decoration: none;
}
.pgad-btn:hover { text-decoration: none; transform: translateY(-1px); }
.pgad-btn-register { background: var(--pgad-gradient); color: #fff; box-shadow: 0 0.4rem 1rem rgba(132, 112, 255, 0.45); }
.pgad-btn-login { background: var(--pgad-accent); color: #fff; box-shadow: 0 0.4rem 1rem rgba(210, 105, 30, 0.45); }
.pgad-btn-promo { background: var(--pgad-gradient); color: #fff; box-shadow: var(--pgad-shadow); }
.pgad-btn-ghost { background: transparent; color: var(--pgad-text); border: 1px solid var(--pgad-border); }
.pgad-btn-sm { padding: 0.6rem 1rem; font-size: 1.2rem; min-height: 3.6rem; }
.pgad-btn-block { width: 100%; display: flex; }

/* ---------- Mobile slide-down menu ---------- */
.pgad-mobile-menu {
  position: fixed; top: var(--pgad-header-h); left: 0; right: 0;
  background: var(--pgad-bg-soft);
  border-bottom: 1px solid var(--pgad-border);
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 9999;
}
.pgad-menu-open { max-height: 60rem; }
.pgad-mobile-menu ul { padding: 1rem 1.2rem; }
.pgad-mobile-menu li { border-bottom: 1px solid rgba(132, 112, 255, 0.12); }
.pgad-mobile-menu li:last-child { border-bottom: 0; }
.pgad-mobile-menu a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1.2rem 0.5rem; color: var(--pgad-text); font-size: 1.4rem;
}
.pgad-mobile-menu a:hover { color: var(--pgad-highlight); }
.pgad-mobile-menu .pgad-menu-icon { color: var(--pgad-primary); font-size: 1.6rem; }

/* ---------- Hero / Carousel ---------- */
.pgad-main { padding-top: calc(var(--pgad-header-h) + 1rem); }
.pgad-hero { position: relative; overflow: hidden; border-radius: 1rem; margin: 1rem 0; }
.pgad-slides { position: relative; height: 18rem; }
.pgad-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.6s ease;
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
  border-radius: 1rem;
}
.pgad-slide-active { opacity: 1; }
.pgad-slide-overlay {
  width: 100%; padding: 1.4rem;
  background: linear-gradient(to top, rgba(26, 26, 46, 0.92), rgba(26, 26, 46, 0));
  border-bottom-left-radius: 1rem; border-bottom-right-radius: 1rem;
}
.pgad-slide-title { font-size: 1.6rem; font-weight: 700; color: #fff; margin: 0 0 0.4rem; }
.pgad-slide-text { font-size: 1.2rem; color: var(--pgad-text-muted); margin: 0 0 0.6rem; }
.pgad-slide-cta { display: inline-flex; }
.pgad-hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 3.6rem; height: 3.6rem; border-radius: 50%;
  background: rgba(26, 26, 46, 0.7); color: #fff; border: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; cursor: pointer; z-index: 5;
}
.pgad-hero-arrow:hover { background: var(--pgad-primary); }
.pgad-hero-prev { left: 0.6rem; }
.pgad-hero-next { right: 0.6rem; }
.pgad-slide-dots { position: absolute; bottom: 0.6rem; left: 0; right: 0; display: flex; justify-content: center; gap: 0.4rem; z-index: 5; }
.pgad-dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: rgba(255,255,255,0.4); border: 0; cursor: pointer; padding: 0; }
.pgad-dot-active { background: var(--pgad-highlight); }

/* ---------- Promo strip ---------- */
.pgad-promo-strip {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--pgad-bg-card); border: 1px solid var(--pgad-border);
  border-radius: 1rem; padding: 1.2rem; margin: 1rem 0; gap: 1rem;
}
.pgad-promo-strip-text { font-size: 1.3rem; color: var(--pgad-text); font-weight: 600; }
.pgad-promo-strip-text small { display: block; color: var(--pgad-text-muted); font-weight: 400; font-size: 1.1rem; margin-top: 0.2rem; }

/* ---------- Section heading ---------- */
.pgad-section-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 1.2rem; }
.pgad-section-title { font-size: 1.7rem; font-weight: 700; color: var(--pgad-text); margin: 0; }
.pgad-section-title .pgad-accent { color: var(--pgad-highlight); }
.pgad-section-link { color: var(--pgad-primary); font-size: 1.2rem; font-weight: 600; }

/* ---------- Game grid ---------- */
.pgad-game-group { margin: 0 0 2.4rem; }
.pgad-game-group-head { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 1rem; }
.pgad-game-group-head i, .pgad-game-group-head .material-icons-outlined { font-size: 1.8rem; color: var(--pgad-highlight); }
.pgad-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem;
}
.pgad-game-card {
  background: var(--pgad-bg-card); border: 1px solid var(--pgad-border);
  border-radius: 0.8rem; overflow: hidden; cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease;
  display: flex; flex-direction: column;
}
.pgad-game-card:hover { transform: translateY(-2px); border-color: var(--pgad-primary); }
.pgad-game-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.pgad-game-card .pgad-game-name {
  font-size: 1rem; color: var(--pgad-text); text-align: center;
  padding: 0.4rem 0.2rem; line-height: 1.3rem; height: 2.6rem; overflow: hidden;
}

/* ---------- Cards ---------- */
.pgad-card {
  background: var(--pgad-bg-card); border: 1px solid var(--pgad-border);
  border-radius: var(--pgad-radius); padding: 1.4rem; margin: 0 0 1.2rem;
  box-shadow: var(--pgad-shadow);
}
.pgad-card h3 { color: var(--pgad-highlight); margin-bottom: 0.8rem; }
.pgad-card p { color: var(--pgad-text-muted); margin: 0 0 0.8rem; }
.pgad-card ul { padding-left: 1.4rem; }
.pgad-card ul li { list-style: disc; color: var(--pgad-text-muted); margin: 0 0 0.4rem; }

/* ---------- Feature list ---------- */
.pgad-features { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.pgad-feature {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--pgad-bg-card); border-radius: var(--pgad-radius);
  padding: 1.2rem; border: 1px solid var(--pgad-border);
}
.pgad-feature .pgad-feature-icon {
  flex: 0 0 3.6rem; height: 3.6rem; border-radius: 0.8rem;
  background: var(--pgad-gradient); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.6rem;
}
.pgad-feature h4 { margin: 0 0 0.3rem; font-size: 1.4rem; color: var(--pgad-text); }
.pgad-feature p { margin: 0; font-size: 1.2rem; color: var(--pgad-text-muted); }

/* ---------- Steps ---------- */
.pgad-steps { counter-reset: pgadstep; }
.pgad-step {
  position: relative; padding: 1rem 1rem 1rem 4.4rem; margin: 0 0 1rem;
  background: var(--pgad-bg-card); border-radius: var(--pgad-radius);
  border: 1px solid var(--pgad-border);
}
.pgad-step::before {
  counter-increment: pgadstep; content: counter(pgadstep);
  position: absolute; left: 1rem; top: 1rem;
  width: 2.8rem; height: 2.8rem; border-radius: 50%;
  background: var(--pgad-gradient); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.pgad-step h4 { margin: 0 0 0.2rem; font-size: 1.4rem; color: var(--pgad-text); }
.pgad-step p { margin: 0; font-size: 1.2rem; color: var(--pgad-text-muted); }

/* ---------- Promotions ---------- */
.pgad-promo-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.pgad-promo-card {
  background: var(--pgad-bg-card); border: 1px solid var(--pgad-border);
  border-radius: var(--pgad-radius); padding: 1.4rem; position: relative; overflow: hidden;
}
.pgad-promo-card::after {
  content: ""; position: absolute; right: -2rem; top: -2rem;
  width: 6rem; height: 6rem; border-radius: 50%;
  background: var(--pgad-gradient); opacity: 0.2;
}
.pgad-promo-card h4 { color: var(--pgad-highlight); margin: 0 0 0.4rem; font-size: 1.5rem; }
.pgad-promo-card p { color: var(--pgad-text-muted); font-size: 1.2rem; margin: 0 0 0.8rem; }
.pgad-promo-badge {
  display: inline-block; background: var(--pgad-accent); color: #fff;
  padding: 0.3rem 0.8rem; border-radius: 1rem; font-size: 1.1rem; font-weight: 700;
  margin-bottom: 0.6rem;
}

/* ---------- Winners ---------- */
.pgad-winners { display: flex; flex-direction: column; gap: 0.8rem; }
.pgad-winner {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--pgad-bg-card); border-radius: 0.8rem; padding: 1rem 1.2rem;
  border: 1px solid var(--pgad-border);
}
.pgad-winner-name { font-size: 1.3rem; color: var(--pgad-text); font-weight: 600; }
.pgad-winner-game { font-size: 1.1rem; color: var(--pgad-text-muted); }
.pgad-winner-amount { font-size: 1.4rem; font-weight: 700; color: var(--pgad-accent); }

/* ---------- Payments ---------- */
.pgad-payments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.pgad-payment {
  background: var(--pgad-bg-card); border-radius: 0.8rem;
  padding: 1rem 0.6rem; text-align: center; border: 1px solid var(--pgad-border);
}
.pgad-payment i, .pgad-payment .material-icons-outlined { font-size: 1.8rem; color: var(--pgad-primary); margin-bottom: 0.4rem; }
.pgad-payment span { display: block; font-size: 1.1rem; color: var(--pgad-text); }

/* ---------- Testimonials ---------- */
.pgad-testimonials { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.pgad-testimonial {
  background: var(--pgad-bg-card); border-radius: var(--pgad-radius);
  padding: 1.4rem; border: 1px solid var(--pgad-border);
}
.pgad-testimonial-stars { color: var(--pgad-accent); margin-bottom: 0.4rem; font-size: 1.2rem; }
.pgad-testimonial-text { color: var(--pgad-text); font-size: 1.3rem; margin: 0 0 0.8rem; font-style: italic; }
.pgad-testimonial-author { font-size: 1.2rem; color: var(--pgad-text-muted); }

/* ---------- App download ---------- */
.pgad-app-cta {
  background: var(--pgad-gradient); border-radius: 1rem; padding: 1.6rem;
  text-align: center; color: #fff;
}
.pgad-app-cta h3 { color: #fff; margin-bottom: 0.4rem; }
.pgad-app-cta p { color: rgba(255,255,255,0.9); margin-bottom: 1rem; }
.pgad-app-buttons { display: flex; flex-direction: column; gap: 0.6rem; }
.pgad-app-btn {
  background: rgba(0,0,0,0.4); color: #fff; border: 1px solid rgba(255,255,255,0.3);
  border-radius: 0.8rem; padding: 1rem; display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-weight: 700; font-size: 1.3rem; cursor: pointer;
}
.pgad-app-btn:hover { background: rgba(0,0,0,0.6); }

/* ---------- FAQ ---------- */
.pgad-faq-item {
  background: var(--pgad-bg-card); border: 1px solid var(--pgad-border);
  border-radius: var(--pgad-radius); margin: 0 0 0.8rem; overflow: hidden;
}
.pgad-faq-q {
  width: 100%; background: transparent; border: 0; color: var(--pgad-text);
  text-align: left; padding: 1.2rem 1.4rem; font-size: 1.4rem; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.pgad-faq-q .pgad-faq-icon { color: var(--pgad-highlight); font-size: 1.4rem; transition: transform 0.2s ease; }
.pgad-faq-open .pgad-faq-icon { transform: rotate(180deg); }
.pgad-faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  padding: 0 1.4rem; color: var(--pgad-text-muted); font-size: 1.3rem;
}
.pgad-faq-open .pgad-faq-a { max-height: 30rem; padding: 0 1.4rem 1.2rem; }

/* ---------- RTP table ---------- */
.pgad-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.pgad-rtp-table th, .pgad-rtp-table td { padding: 0.8rem; text-align: left; border-bottom: 1px solid var(--pgad-border); }
.pgad-rtp-table th { color: var(--pgad-highlight); font-weight: 700; }
.pgad-rtp-table td { color: var(--pgad-text-muted); }
.pgad-rtp-table tr:last-child td { border-bottom: 0; }
.pgad-rtp-bar { height: 0.6rem; background: var(--pgad-bg); border-radius: 0.4rem; overflow: hidden; }
.pgad-rtp-bar-fill { height: 100%; background: var(--pgad-gradient); }

/* ---------- Inline promo links ---------- */
.pgad-link-promo { color: var(--pgad-highlight); font-weight: 700; text-decoration: underline; }
.pgad-link-promo:hover { color: var(--pgad-primary); }

/* ---------- Footer ---------- */
.pgad-footer { background: var(--pgad-bg-soft); border-top: 1px solid var(--pgad-border); padding: 2.4rem 0 calc(var(--pgad-bottomnav-h) + 2rem); margin-top: 2rem; }
.pgad-footer-brand { color: var(--pgad-text-muted); font-size: 1.2rem; margin-bottom: 1.2rem; }
.pgad-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 1.2rem; }
.pgad-footer-links a { color: var(--pgad-text-muted); font-size: 1.2rem; padding: 0.4rem 0; }
.pgad-footer-links a:hover { color: var(--pgad-highlight); }
.pgad-footer-promos { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.pgad-footer-promos .pgad-btn { flex: 1 1 calc(50% - 0.6rem); }
.pgad-footer-copy { color: var(--pgad-text-muted); font-size: 1.1rem; text-align: center; padding-top: 1.2rem; border-top: 1px solid var(--pgad-border); }

/* ---------- Bottom nav ---------- */
.pgad-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--pgad-bottomnav-h);
  background: var(--pgad-bg);
  border-top: 1px solid var(--pgad-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; box-shadow: 0 -0.4rem 1rem rgba(0,0,0,0.35);
}
.pgad-bottomnav-btn {
  flex: 1; background: transparent; border: 0; color: var(--pgad-text-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; min-width: 6rem; min-height: 6rem; cursor: pointer;
  font-size: 1rem; transition: color 0.2s ease, transform 0.15s ease;
}
.pgad-bottomnav-btn i, .pgad-bottomnav-btn .material-icons-outlined { font-size: 2.2rem; }
.pgad-bottomnav-btn:hover { color: var(--pgad-highlight); transform: scale(1.05); }
.pgad-bottomnav-active { color: var(--pgad-highlight); }
.pgad-bottomnav-active i, .pgad-bottomnav-active .material-icons-outlined { color: var(--pgad-highlight); }

/* ---------- Back to top ---------- */
.pgad-backtop {
  position: fixed; right: 1.2rem; bottom: calc(var(--pgad-bottomnav-h) + 1rem);
  width: 4rem; height: 4rem; border-radius: 50%;
  background: var(--pgad-gradient); color: #fff; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  z-index: 999; box-shadow: var(--pgad-shadow);
}

/* ---------- Desktop rules ---------- */
@media (min-width: 769px) {
  .pgad-bottomnav { display: none; }
  .pgad-menu-btn { display: none; }
  .pgad-mobile-menu { display: none; }
  .pgad-header-inner, .pgad-container, .pgad-wrapper { max-width: 76rem; }
  .pgad-grid { grid-template-columns: repeat(8, 1fr); }
  .pgad-features { grid-template-columns: repeat(2, 1fr); }
  .pgad-testimonials { grid-template-columns: repeat(2, 1fr); }
  .pgad-promo-grid { grid-template-columns: repeat(2, 1fr); }
  .pgad-footer-links { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Mobile clearance ---------- */
@media (max-width: 768px) {
  main, .pgad-main { padding-bottom: calc(var(--pgad-bottomnav-h) + 1.2rem); }
}
