/* =========================================================
 * JLJLPH Register - Theme Stylesheet
 * All custom classes use prefix: g9d5-
 * Palette: #2D2D2D | #32CD32 | #2E8B57 | #3CB371 | #ADB5BD
 * Mobile first (max-width: 430px target).
 * ========================================================= */

:root {
  --g9d5-bg: #2D2D2D;
  --g9d5-bg-soft: #1f1f1f;
  --g9d5-bg-card: #353535;
  --g9d5-primary: #32CD32;
  --g9d5-secondary: #2E8B57;
  --g9d5-tertiary: #3CB371;
  --g9d5-text: #FFFFFF;
  --g9d5-text-muted: #ADB5BD;
  --g9d5-border: rgba(173, 181, 189, 0.22);
  --g9d5-gradient: linear-gradient(135deg, #32CD32 0%, #2E8B57 55%, #3CB371 100%);
  --g9d5-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  --g9d5-radius: 14px;
  --g9d5-radius-sm: 10px;
  --g9d5-transition: all 0.25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
  background: var(--g9d5-bg);
  color: var(--g9d5-text);
  line-height: 1.5;
  font-size: 1.6rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--g9d5-primary); text-decoration: none; transition: var(--g9d5-transition); }
a:hover { color: var(--g9d5-text); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

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

/* ============ HEADER ============ */
.g9d5-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(45, 45, 45, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--g9d5-border);
  transition: var(--g9d5-transition);
}
.g9d5-header-scrolled { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5); }
.g9d5-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 1.2rem;
}
.g9d5-logo { display: flex; align-items: center; gap: 0.6rem; }
.g9d5-logo img { width: 30px; height: 30px; border-radius: 6px; }
.g9d5-logo-text { font-size: 1.6rem; font-weight: 800; color: var(--g9d5-primary); letter-spacing: -0.3px; }
.g9d5-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.g9d5-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.8rem 1.4rem; border-radius: 30px;
  font-weight: 700; font-size: 1.3rem; cursor: pointer;
  border: none; transition: var(--g9d5-transition);
  min-height: 36px;
}
.g9d5-btn-primary { background: var(--g9d5-gradient); color: #fff; box-shadow: 0 3px 10px rgba(50, 205, 50, 0.35); }
.g9d5-btn-primary:hover { transform: translateY(-1px); color: #fff; box-shadow: 0 6px 16px rgba(50, 205, 50, 0.55); }
.g9d5-btn-outline { background: transparent; color: var(--g9d5-primary); border: 1.5px solid var(--g9d5-primary); }
.g9d5-btn-outline:hover { background: var(--g9d5-primary); color: #fff; }
.g9d5-menu-toggle {
  display: flex; flex-direction: column; gap: 4px; cursor: pointer;
  padding: 6px; border: none; background: transparent;
}
.g9d5-menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--g9d5-text); border-radius: 2px;
}

/* ============ MOBILE MENU ============ */
.g9d5-mobile-menu {
  position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px;
  height: 100vh; background: var(--g9d5-bg-soft); z-index: 9999;
  padding: 80px 1.6rem 2rem; transition: right 0.35s ease;
  overflow-y: auto; box-shadow: -6px 0 22px rgba(0, 0, 0, 0.5);
}
.g9d5-menu-active { right: 0; }
.g9d5-menu-close {
  position: absolute; top: 18px; right: 18px;
  background: transparent; border: none; color: var(--g9d5-text);
  font-size: 2.2rem; cursor: pointer; line-height: 1;
}
.g9d5-menu-title {
  font-size: 1.4rem; color: var(--g9d5-text-muted);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem;
}
.g9d5-mobile-menu a {
  display: block; padding: 1.2rem 1rem;
  border-bottom: 1px solid var(--g9d5-border);
  color: var(--g9d5-text); font-weight: 600; font-size: 1.5rem;
}
.g9d5-mobile-menu a:hover { background: rgba(50, 205, 50, 0.12); color: var(--g9d5-primary); padding-left: 1.4rem; }
.g9d5-menu-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.65);
  z-index: 9998; opacity: 0; visibility: hidden; transition: var(--g9d5-transition);
}
.g9d5-overlay-active { opacity: 1; visibility: visible; }

/* ============ MAIN LAYOUT ============ */
main { padding-top: 60px; }
@media (max-width: 768px) { main { padding-bottom: 84px; } }
.g9d5-section { padding: 3.2rem 0; }
.g9d5-section-alt { background: var(--g9d5-bg-soft); }

/* ============ CAROUSEL ============ */
.g9d5-carousel { position: relative; overflow: hidden; border-radius: var(--g9d5-radius); }
.g9d5-carousel-track { position: relative; height: 220px; }
.g9d5-carousel-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity var(--carousel-transition, 0.6s) ease;
  display: flex; align-items: center; justify-content: center;
}
.g9d5-carousel-slide img {
  width: 100%; height: 100%; object-fit: cover; border-radius: var(--g9d5-radius);
}
.g9d5-slide-active { opacity: 1; }
.g9d5-carousel-cap {
  position: absolute; left: 1.4rem; bottom: 1.4rem;
  background: rgba(45, 45, 45, 0.78); padding: 0.8rem 1.2rem;
  border-radius: 10px; border-left: 3px solid var(--g9d5-primary);
}
.g9d5-carousel-cap strong { display: block; color: var(--g9d5-primary); font-size: 1.4rem; }
.g9d5-carousel-cap span { color: var(--g9d5-text); font-size: 1.2rem; }
.g9d5-carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5); color: #fff; border: none;
  width: 36px; height: 36px; border-radius: 50%; font-size: 1.6rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.g9d5-carousel-prev { left: 8px; }
.g9d5-carousel-next { right: 8px; }
.g9d5-carousel-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.g9d5-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.4);
  cursor: pointer; border: none;
}
.g9d5-dot-active { background: var(--g9d5-primary); width: 22px; border-radius: 4px; }

/* ============ TYPOGRAPHY ============ */
.g9d5-h1 { font-size: 2.2rem; font-weight: 800; line-height: 1.25; margin-bottom: 1.2rem; color: var(--g9d5-text); }
.g9d5-h2 {
  font-size: 1.9rem; font-weight: 700; margin-bottom: 1rem;
  padding-bottom: 0.6rem; border-bottom: 2px solid var(--g9d5-secondary);
  display: inline-block; color: var(--g9d5-text);
}
.g9d5-h3 { font-size: 1.6rem; font-weight: 700; color: var(--g9d5-primary); margin-bottom: 0.8rem; }
.g9d5-text { color: var(--g9d5-text); font-size: 1.4rem; line-height: 1.6; }
.g9d5-muted { color: var(--g9d5-text-muted); }
.g9d5-kw { color: var(--g9d5-primary); font-weight: 600; }

/* ============ CTA BANNER ============ */
.g9d5-cta {
  background: var(--g9d5-gradient);
  border-radius: var(--g9d5-radius); padding: 1.8rem; text-align: center;
  box-shadow: var(--g9d5-shadow); margin: 2rem 0;
}
.g9d5-cta h2 { color: #fff; border-bottom: none; margin-bottom: 0.5rem; font-size: 1.8rem; }
.g9d5-cta p { color: rgba(255, 255, 255, 0.95); margin-bottom: 1.2rem; font-size: 1.3rem; }
.g9d5-cta .g9d5-btn { background: #fff; color: var(--g9d5-secondary); font-size: 1.4rem; padding: 1rem 2rem; }

/* ============ GAME GRID ============ */
.g9d5-cat-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 2.4rem 0 1.2rem;
}
.g9d5-cat-head h2 { font-size: 1.8rem; margin: 0; }
.g9d5-cat-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--g9d5-gradient);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.6rem; margin-right: 0.8rem;
}
.g9d5-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (min-width: 540px) { .g9d5-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) { .g9d5-grid { grid-template-columns: repeat(6, 1fr); } }
.g9d5-card {
  background: var(--g9d5-bg-card); border-radius: var(--g9d5-radius-sm);
  overflow: hidden; border: 1px solid var(--g9d5-border);
  transition: var(--g9d5-transition); cursor: pointer;
}
.g9d5-card:hover {
  transform: translateY(-3px);
  border-color: var(--g9d5-primary);
  box-shadow: 0 8px 20px rgba(50, 205, 50, 0.25);
}
.g9d5-card-img {
  position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden;
}
.g9d5-card-img img { width: 100%; height: 100%; object-fit: cover; }
.g9d5-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}
.g9d5-card-play {
  position: absolute; top: 6px; right: 6px;
  background: var(--g9d5-primary); color: #fff;
  font-size: 1rem; padding: 3px 8px; border-radius: 20px;
  z-index: 2; font-weight: 700;
}
.g9d5-card-name {
  padding: 0.6rem 0.5rem; text-align: center;
  font-size: 1.2rem; color: var(--g9d5-text);
  font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ============ FEATURES / HIGHLIGHTS ============ */
.g9d5-features { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 540px) { .g9d5-features { grid-template-columns: repeat(2, 1fr); } }
.g9d5-feature-card {
  background: var(--g9d5-bg-card); border-radius: var(--g9d5-radius-sm);
  padding: 1.4rem; border-left: 3px solid var(--g9d5-primary);
  transition: var(--g9d5-transition);
}
.g9d5-feature-card:hover { transform: translateY(-2px); box-shadow: var(--g9d5-shadow); }
.g9d5-feature-icon { font-size: 2.2rem; color: var(--g9d5-primary); margin-bottom: 0.6rem; }
.g9d5-feature-card h3 { margin-bottom: 0.5rem; }
.g9d5-feature-card p { font-size: 1.3rem; color: var(--g9d5-text-muted); }

/* ============ FAQ ============ */
.g9d5-faq { border-top: 1px solid var(--g9d5-border); }
.g9d5-faq-item { border-bottom: 1px solid var(--g9d5-border); padding: 1rem 0; }
.g9d5-faq-q { font-weight: 700; color: var(--g9d5-text); font-size: 1.4rem; margin-bottom: 0.5rem; display: flex; gap: 0.6rem; }
.g9d5-faq-q::before { content: 'Q'; color: var(--g9d5-primary); font-weight: 800; }
.g9d5-faq-a { color: var(--g9d5-text-muted); font-size: 1.3rem; padding-left: 1.6rem; }

/* ============ STEPS ============ */
.g9d5-steps { counter-reset: step; display: grid; gap: 1rem; }
.g9d5-step {
  position: relative; padding: 1.2rem 1.2rem 1.2rem 4.4rem;
  background: var(--g9d5-bg-card); border-radius: var(--g9d5-radius-sm);
  counter-increment: step;
}
.g9d5-step::before {
  content: counter(step);
  position: absolute; left: 1rem; top: 1rem;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--g9d5-gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.4rem;
}
.g9d5-step h3 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.g9d5-step p { font-size: 1.3rem; color: var(--g9d5-text-muted); }

/* ============ TESTIMONIALS ============ */
.g9d5-testimonials { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 540px) { .g9d5-testimonials { grid-template-columns: repeat(2, 1fr); } }
.g9d5-testi {
  background: var(--g9d5-bg-card); border-radius: var(--g9d5-radius-sm);
  padding: 1.2rem; border: 1px solid var(--g9d5-border);
}
.g9d5-testi-stars { color: #FFD700; margin-bottom: 0.5rem; font-size: 1.3rem; }
.g9d5-testi-text { font-size: 1.3rem; color: var(--g9d5-text); margin-bottom: 0.8rem; font-style: italic; }
.g9d5-testi-name { font-size: 1.2rem; color: var(--g9d5-primary); font-weight: 700; }

/* ============ PAYMENT / BADGE ROW ============ */
.g9d5-badge-row { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.g9d5-badge {
  background: var(--g9d5-bg-card); border: 1px solid var(--g9d5-border);
  padding: 0.6rem 1rem; border-radius: 8px; font-size: 1.3rem; color: var(--g9d5-text);
  display: inline-flex; align-items: center; gap: 0.4rem;
}

/* ============ WINNERS ============ */
.g9d5-winner-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1rem; border-bottom: 1px solid var(--g9d5-border);
  font-size: 1.3rem;
}
.g9d5-winner-row:last-child { border-bottom: none; }
.g9d5-winner-name { color: var(--g9d5-text); font-weight: 600; }
.g9d5-winner-amount { color: var(--g9d5-primary); font-weight: 800; }

/* ============ BACK TO TOP ============ */
.g9d5-back-top {
  position: fixed; right: 16px; bottom: 92px; z-index: 999;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--g9d5-primary); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; cursor: pointer; opacity: 0; visibility: hidden;
  transition: var(--g9d5-transition); box-shadow: var(--g9d5-shadow);
}
.g9d5-back-top-visible { opacity: 1; visibility: visible; }

/* ============ FOOTER ============ */
.g9d5-footer { background: var(--g9d5-bg-soft); padding: 2.4rem 0 1rem; border-top: 1px solid var(--g9d5-border); }
.g9d5-footer-grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem; margin-bottom: 1.6rem; }
@media (min-width: 540px) { .g9d5-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .g9d5-footer-grid { grid-template-columns: repeat(4, 1fr); } }
.g9d5-footer-col h4 { font-size: 1.4rem; color: var(--g9d5-primary); margin-bottom: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.g9d5-footer-col a, .g9d5-footer-col p { display: block; color: var(--g9d5-text-muted); font-size: 1.3rem; padding: 0.4rem 0; }
.g9d5-footer-col a:hover { color: var(--g9d5-primary); padding-left: 4px; }
.g9d5-footer-promo {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0;
}
.g9d5-footer-promo .g9d5-btn { font-size: 1.2rem; padding: 0.6rem 1.2rem; }
.g9d5-footer-bottom {
  text-align: center; padding-top: 1.4rem; border-top: 1px solid var(--g9d5-border);
  color: var(--g9d5-text-muted); font-size: 1.2rem;
}

/* ============ MOBILE BOTTOM NAV ============ */
.g9d5-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(31, 31, 31, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--g9d5-border);
  display: flex; justify-content: space-around; align-items: center;
  height: 62px; padding: 0 4px;
}
.g9d5-bottom-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--g9d5-text-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; cursor: pointer; transition: var(--g9d5-transition);
  font-size: 1rem; font-weight: 600; text-decoration: none;
}
.g9d5-bottom-nav-btn .g9d5-nav-icon { font-size: 22px; line-height: 1; }
.g9d5-bottom-nav-btn:hover { color: var(--g9d5-primary); transform: translateY(-2px); }
.g9d5-bottom-nav-btn:active { transform: scale(0.94); color: var(--g9d5-primary); }
.g9d5-nav-current { color: var(--g9d5-primary); }
.g9d5-nav-current::before {
  content: ''; position: absolute; top: 0;
  width: 30px; height: 3px; border-radius: 2px;
  background: var(--g9d5-primary);
}
.g9d5-bottom-nav-btn { position: relative; }

/* ============ DESKTOP ============ */
@media (min-width: 769px) {
  .g9d5-bottom-nav { display: none; }
  .g9d5-menu-toggle { display: none; }
  .g9d5-desktop-nav { display: flex !important; gap: 1.6rem; align-items: center; }
  .g9d5-desktop-nav a { color: var(--g9d5-text); font-size: 1.4rem; font-weight: 600; }
  .g9d5-desktop-nav a:hover { color: var(--g9d5-primary); }
}
.g9d5-desktop-nav { display: none; }

/* ============ UTILITIES ============ */
.g9d5-text-center { text-align: center; }
.g9d5-mt-2 { margin-top: 2rem; }
.g9d5-mb-2 { margin-bottom: 2rem; }
.g9d5-py-2 { padding-top: 2rem; padding-bottom: 2rem; }
.g9d5-hidden-mobile { display: none; }
@media (min-width: 769px) { .g9d5-hidden-mobile { display: block; } .g9d5-only-mobile { display: none; } }
