/* ===========================================================
 * DigiPlus Pacquiao - Core Stylesheet
 * All classes use prefix `pge1-`
 * Palette: #006400 primary | #2C3E50 dark surface
 * Mobile-first, max-width 430px reference
 * =========================================================== */

:root {
  --pge1-primary: #006400;
  --pge1-primary-light: #1f8a1f;
  --pge1-primary-dark: #004f00;
  --pge1-surface: #2C3E50;
  --pge1-surface-2: #34495e;
  --pge1-surface-3: #3d556e;
  --pge1-gold: #f5c518;
  --pge1-bg: #0f1c12;
  --pge1-bg-2: #14241a;
  --pge1-text: #f4f7f2;
  --pge1-text-muted: #c3d0c3;
  --pge1-text-dim: #9bb09b;
  --pge1-white: #ffffff;
  --pge1-danger: #e74c3c;
  --pge1-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --pge1-radius: 14px;
}

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

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, var(--pge1-bg) 0%, var(--pge1-bg-2) 100%);
  color: var(--pge1-text);
  line-height: 1.5;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  padding-top: 60px;
}

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

a { color: var(--pge1-gold); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ========================= Header ========================= */
.pge1-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--pge1-primary-dark) 0%, var(--pge1-surface) 100%);
  border-bottom: 2px solid var(--pge1-gold);
  box-shadow: var(--pge1-shadow);
}
.pge1-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  gap: 0.6rem;
}
.pge1-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--pge1-white);
  font-weight: 700;
  font-size: 1.5rem;
}
.pge1-logo img {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 1px solid var(--pge1-gold);
}
.pge1-logo span { color: var(--pge1-gold); }

.pge1-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pge1-menu-toggle {
  background: transparent;
  border: 1px solid var(--pge1-gold);
  color: var(--pge1-gold);
  border-radius: 8px;
  width: 36px; height: 36px;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ========================= Buttons ========================= */
.pge1-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 24px;
  padding: 0.7rem 1.4rem;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
  min-height: 38px;
}
.pge1-btn-primary {
  background: linear-gradient(180deg, var(--pge1-gold) 0%, #d8a500 100%);
  color: #2c1f00;
  box-shadow: 0 3px 10px rgba(245, 197, 24, 0.35);
}
.pge1-btn-primary:hover { transform: translateY(-1px); text-decoration: none; }
.pge1-btn-outline {
  background: transparent;
  border: 2px solid var(--pge1-white);
  color: var(--pge1-white);
}
.pge1-btn-outline:hover { background: rgba(255, 255, 255, 0.12); text-decoration: none; }
.pge1-btn-green {
  background: linear-gradient(180deg, var(--pge1-primary-light) 0%, var(--pge1-primary) 100%);
  color: var(--pge1-white);
  box-shadow: 0 3px 10px rgba(0, 100, 0, 0.4);
}
.pge1-btn-block { width: 100%; }
.pge1-btn-lg { padding: 1rem 1.6rem; font-size: 1.55rem; }
.pge1-btn-pulse { transform: scale(0.95); }

.pge1-text-link {
  color: var(--pge1-gold);
  font-weight: 700;
  text-decoration: underline;
}

/* ========================= Mobile Menu ========================= */
.pge1-mobile-menu {
  position: fixed;
  top: 58px; left: 0; right: 0;
  background: var(--pge1-surface);
  border-bottom: 2px solid var(--pge1-gold);
  padding: 0.8rem 1rem 1.2rem;
  z-index: 9999;
  transform: translateY(-130%);
  transition: transform 0.28s ease;
  max-height: calc(100vh - 58px);
  overflow-y: auto;
}
.pge1-mobile-menu.pge1-menu-open { transform: translateY(0); }
.pge1-mobile-menu a {
  display: block;
  color: var(--pge1-text);
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1.4rem;
  font-weight: 600;
}
.pge1-mobile-menu a:hover { color: var(--pge1-gold); text-decoration: none; }
.pge1-mobile-menu .pge1-menu-promo {
  color: var(--pge1-gold);
  font-weight: 800;
}

/* ========================= Hero / Carousel ========================= */
.pge1-hero { margin-top: 1rem; }
.pge1-carousel {
  position: relative;
  border-radius: var(--pge1-radius);
  overflow: hidden;
  box-shadow: var(--pge1-shadow);
  background: var(--pge1-surface);
}
.pge1-carousel-track { position: relative; }
.pge1-carousel-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.pge1-carousel-slide.pge1-active { display: block; }
.pge1-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.pge1-carousel-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.78) 100%);
  padding: 1.6rem 1rem 1rem;
  color: var(--pge1-white);
}
.pge1-carousel-caption h2 {
  font-size: 1.7rem;
  margin-bottom: 0.3rem;
}
.pge1-carousel-caption p {
  font-size: 1.25rem;
  color: var(--pge1-text-muted);
  margin-bottom: 0.6rem;
}
.pge1-carousel-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 6px;
}
.pge1-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
}
.pge1-carousel-dot.pge1-active { background: var(--pge1-gold); }

/* ========================= Section ========================= */
.pge1-section {
  padding: 1.6rem 0 0.4rem;
}
.pge1-section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--pge1-white);
  margin-bottom: 0.8rem;
  border-left: 4px solid var(--pge1-gold);
  padding-left: 0.8rem;
}
.pge1-section-title i { color: var(--pge1-gold); }
.pge1-section-sub {
  color: var(--pge1-text-muted);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-left: 0.8rem;
}

/* ========================= Game Grid ========================= */
.pge1-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.pge1-game-card {
  background: var(--pge1-surface);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border: 1px solid rgba(245, 197, 24, 0.12);
  display: block;
}
.pge1-game-card:hover { transform: translateY(-2px); box-shadow: var(--pge1-shadow); }
.pge1-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #1c2a36;
}
.pge1-game-card-name {
  font-size: 1.15rem;
  color: var(--pge1-text);
  padding: 0.45rem 0.5rem;
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pge1-game-card:hover .pge1-game-card-name { color: var(--pge1-gold); }

/* ========================= Category Tab Strip ========================= */
.pge1-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}
.pge1-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 100, 0, 0.25);
  border: 1px solid var(--pge1-primary-light);
  color: var(--pge1-gold);
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  font-size: 1.15rem;
  font-weight: 700;
}

/* ========================= Info Cards ========================= */
.pge1-card {
  background: var(--pge1-surface);
  border-radius: var(--pge1-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--pge1-shadow);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.pge1-card h3 {
  color: var(--pge1-gold);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.pge1-card p {
  color: var(--pge1-text-muted);
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.pge1-card ul { list-style: none; padding-left: 0; }
.pge1-card li {
  padding: 0.4rem 0 0.4rem 1.6rem;
  position: relative;
  color: var(--pge1-text-muted);
  font-size: 1.3rem;
}
.pge1-card li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--pge1-gold);
  position: absolute;
  left: 0;
}

.pge1-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.pge1-mini-card {
  background: var(--pge1-surface);
  border-radius: 10px;
  padding: 0.9rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.pge1-mini-card i { color: var(--pge1-gold); font-size: 2.2rem; margin-bottom: 0.4rem; }
.pge1-mini-card .pge1-num {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--pge1-white);
}
.pge1-mini-card .pge1-label {
  font-size: 1.15rem;
  color: var(--pge1-text-dim);
}

/* ========================= RTP Table ========================= */
.pge1-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.25rem; }
.pge1-rtp-table th, .pge1-rtp-table td {
  padding: 0.55rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pge1-rtp-table th { color: var(--pge1-gold); font-size: 1.2rem; }
.pge1-rtp-table td { color: var(--pge1-text-muted); }
.pge1-rtp-bar {
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-top: 0.3rem;
}
.pge1-rtp-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--pge1-primary-light), var(--pge1-gold));
}

/* ========================= Testimonials ========================= */
.pge1-testimonial {
  background: var(--pge1-surface);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.7rem;
  border-left: 3px solid var(--pge1-gold);
}
.pge1-testimonial .pge1-stars { color: var(--pge1-gold); margin-bottom: 0.3rem; }
.pge1-testimonial p { color: var(--pge1-text-muted); font-size: 1.3rem; font-style: italic; }
.pge1-testimonial .pge1-author {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  color: var(--pge1-white);
  font-weight: 700;
}

/* ========================= Winners ========================= */
.pge1-winner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--pge1-surface);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(245, 197, 24, 0.1);
}
.pge1-winner .pge1-w-name { font-weight: 700; color: var(--pge1-white); font-size: 1.25rem; }
.pge1-winner .pge1-w-game { color: var(--pge1-text-dim); font-size: 1.1rem; }
.pge1-winner .pge1-w-amount { color: var(--pge1-gold); font-weight: 800; font-size: 1.4rem; }

/* ========================= Payment ========================= */
.pge1-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pge1-pay-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--pge1-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--pge1-text);
  padding: 0.5rem 0.9rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
}
.pge1-pay-chip i { color: var(--pge1-gold); }

/* ========================= FAQ ========================= */
.pge1-faq-item {
  background: var(--pge1-surface);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.pge1-faq-item h4 {
  color: var(--pge1-gold);
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
}
.pge1-faq-item p { color: var(--pge1-text-muted); font-size: 1.25rem; }

/* ========================= Long-form SEO ========================= */
.pge1-seo-text { color: var(--pge1-text-muted); font-size: 1.35rem; }
.pge1-seo-text p { margin-bottom: 0.8rem; }
.pge1-seo-text strong { color: var(--pge1-gold); }

/* ========================= CTA Banner ========================= */
.pge1-cta-banner {
  background: linear-gradient(135deg, var(--pge1-primary) 0%, var(--pge1-surface) 100%);
  border-radius: var(--pge1-radius);
  padding: 1.3rem;
  text-align: center;
  border: 1px solid var(--pge1-gold);
  margin: 1rem 0;
}
.pge1-cta-banner h3 { color: var(--pge1-gold); font-size: 1.7rem; margin-bottom: 0.4rem; }
.pge1-cta-banner p { color: var(--pge1-text-muted); font-size: 1.3rem; margin-bottom: 0.9rem; }

/* ========================= Footer ========================= */
.pge1-footer {
  background: var(--pge1-surface);
  border-top: 2px solid var(--pge1-gold);
  padding: 1.6rem 1rem 2rem;
  margin-top: 1.6rem;
  color: var(--pge1-text-muted);
}
.pge1-footer-inner { max-width: 430px; margin: 0 auto; }
.pge1-footer h4 {
  color: var(--pge1-white);
  font-size: 1.4rem;
  margin: 0.8rem 0 0.5rem;
}
.pge1-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.8rem;
  margin: 0.5rem 0;
}
.pge1-footer-links a {
  color: var(--pge1-text-muted);
  font-size: 1.2rem;
}
.pge1-footer-brand { font-size: 1.25rem; line-height: 1.5; margin-bottom: 0.6rem; }
.pge1-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.6rem 0;
}
.pge1-footer-promos .pge1-btn { font-size: 1.15rem; padding: 0.5rem 0.9rem; }
.pge1-footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.8rem;
  margin-top: 0.8rem;
  font-size: 1.15rem;
  text-align: center;
  color: var(--pge1-text-dim);
}

/* ========================= Bottom Nav ========================= */
.pge1-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, var(--pge1-surface) 0%, var(--pge1-surface-2) 100%);
  border-top: 2px solid var(--pge1-gold);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.4);
}
.pge1-bottom-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--pge1-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.18s ease;
}
.pge1-bottom-nav-btn i, .pge1-bottom-nav-btn .material-icons-outlined {
  font-size: 22px;
}
.pge1-bottom-nav-btn:hover { color: var(--pge1-gold); transform: translateY(-1px); }
.pge1-bottom-nav-btn.pge1-nav-active { color: var(--pge1-gold); }
.pge1-bottom-nav-btn.pge1-nav-active::after {
  content: "";
  display: block;
  width: 24px;
  height: 3px;
  background: var(--pge1-gold);
  border-radius: 2px;
  margin-top: 2px;
}

main { padding-bottom: 80px; }

/* ========================= Desktop ========================= */
@media (min-width: 769px) {
  .pge1-bottom-nav { display: none; }
  .pge1-container { max-width: 760px; }
  .pge1-header-inner { max-width: 760px; }
  .pge1-footer-inner { max-width: 760px; }
  .pge1-game-grid { grid-template-columns: repeat(6, 1fr); }
  main { padding-bottom: 1rem; }
  body { padding-top: 64px; }
}

/* ========================= Utility ========================= */
.pge1-text-center { text-align: center; }
.pge1-mt-1 { margin-top: 0.5rem; }
.pge1-mt-2 { margin-top: 1rem; }
.pge1-mb-1 { margin-bottom: 0.5rem; }
.pge1-hidden { display: none; }
.pge1-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 1rem 0;
  border: none;
}
