/* Barangay 777 - Main Stylesheet */
/* All classes use g65d- prefix for namespace isolation */

/* CSS Variables */
:root {
  --g65d-bg: #0E1621;
  --g65d-bg-light: #151f2e;
  --g65d-bg-card: #1a2738;
  --g65d-primary: #FFA500;
  --g65d-secondary: #E91E63;
  --g65d-text: #f0f0f0;
  --g65d-text-muted: #8a9bb5;
  --g65d-border: #243447;
  --g65d-success: #4caf50;
  --g65d-radius: 8px;
  --g65d-radius-lg: 14px;
  --g65d-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --g65d-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: var(--g65d-font);
  background: var(--g65d-bg);
  color: var(--g65d-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--g65d-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--g65d-secondary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Utility */
.g65d-container { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.g65d-wrapper { max-width: 430px; margin: 0 auto; }

/* ============ HEADER ============ */
.g65d-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #0c1119 0%, var(--g65d-bg) 100%);
  border-bottom: 1px solid var(--g65d-border);
  height: 56px;
}
.g65d-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 100%;
}
.g65d-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}
.g65d-logo-area img { width: 28px; height: 28px; border-radius: 4px; }
.g65d-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g65d-primary);
  letter-spacing: 0.5px;
}
.g65d-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.g65d-btn-register, .g65d-btn-login {
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}
.g65d-btn-register {
  background: linear-gradient(135deg, var(--g65d-primary) 0%, #e89400 100%);
  color: #0E1621;
  box-shadow: 0 2px 10px rgba(255, 165, 0, 0.3);
}
.g65d-btn-login {
  background: transparent;
  color: var(--g65d-primary);
  border: 1.5px solid var(--g65d-primary);
}
.g65d-btn-register:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(255, 165, 0, 0.4); }
.g65d-btn-login:hover { background: rgba(255, 165, 0, 0.1); }
.g65d-menu-toggle {
  background: none;
  border: none;
  color: var(--g65d-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* ============ MOBILE MENU ============ */
.g65d-menu-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.g65d-overlay-active { opacity: 1; visibility: visible; }

.g65d-mobile-menu {
  position: fixed;
  top: 0; right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--g65d-bg-light);
  z-index: 9999;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 2rem 1.5rem;
}
.g65d-menu-active { right: 0; }
.g65d-menu-header { display: flex; justify-content: flex-end; margin-bottom: 2rem; }
.g65d-menu-close {
  background: none; border: none; color: var(--g65d-text); font-size: 2.4rem;
  cursor: pointer; padding: 0.4rem;
}
.g65d-menu-nav a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1rem;
  color: var(--g65d-text);
  font-size: 1.4rem;
  border-radius: var(--g65d-radius);
  transition: background 0.2s, color 0.2s;
  margin-bottom: 0.4rem;
}
.g65d-menu-nav a:hover { background: var(--g65d-bg-card); color: var(--g65d-primary); }
.g65d-menu-nav a span.material-symbols-outlined,
.g65d-menu-nav a span.material-icons { font-size: 2rem; color: var(--g65d-primary); }

/* ============ SLIDER ============ */
.g65d-slider {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 56px auto 0;
  overflow: hidden;
  border-radius: 0 0 var(--g65d-radius-lg) var(--g65d-radius-lg);
}
.g65d-slides-wrapper { position: relative; width: 100%; aspect-ratio: 430/200; }
.g65d-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity var(--g65d-slider-transition, 500ms) ease;
  cursor: pointer;
}
.g65d-slide img { width: 100%; height: 100%; object-fit: cover; }
.g65d-slide-active { opacity: 1; z-index: 1; }
.g65d-slider-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.g65d-slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}
.g65d-dot-active { background: var(--g65d-primary); width: 20px; border-radius: 4px; }

/* ============ MAIN CONTENT ============ */
main { padding-top: 1.5rem; padding-bottom: 2rem; }
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

.g65d-section {
  padding: 2rem 0;
}
.g65d-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--g65d-text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.g65d-section-title i,
.g65d-section-title .material-icons,
.g65d-section-title .material-symbols-outlined {
  color: var(--g65d-primary);
  font-size: 2rem;
}

/* ============ GAME GRID ============ */
.g65d-cat-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1.6rem 0 1rem;
  color: var(--g65d-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.g65d-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.g65d-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  background: var(--g65d-bg-card);
  border-radius: var(--g65d-radius);
  padding: 0.6rem;
  border: 1px solid var(--g65d-border);
}
.g65d-game-item:hover { transform: translateY(-2px); border-color: var(--g65d-primary); }
.g65d-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
  margin-bottom: 0.3rem;
}
.g65d-game-name {
  font-size: 1.05rem;
  color: var(--g65d-text);
  line-height: 1.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============ CONTENT BLOCKS ============ */
.g65d-content-block {
  background: var(--g65d-bg-card);
  border-radius: var(--g65d-radius-lg);
  padding: 1.6rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--g65d-border);
}
.g65d-content-block h2 {
  font-size: 1.7rem;
  color: var(--g65d-primary);
  margin-bottom: 1rem;
  font-weight: 700;
}
.g65d-content-block h3 {
  font-size: 1.4rem;
  color: var(--g65d-text);
  margin: 1rem 0 0.6rem;
  font-weight: 600;
}
.g65d-content-block p {
  color: var(--g65d-text-muted);
  line-height: 1.7rem;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}
.g65d-content-block ul {
  padding-left: 1.6rem;
  margin-bottom: 0.8rem;
}
.g65d-content-block li {
  color: var(--g65d-text-muted);
  line-height: 1.7rem;
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
  list-style: disc;
}

/* Promo Link Styles */
.g65d-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--g65d-primary), #e89400);
  color: #0E1621;
  padding: 0.8rem 2rem;
  border-radius: 24px;
  font-weight: 700;
  font-size: 1.3rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.2s;
  text-align: center;
  margin: 0.5rem 0;
}
.g65d-promo-btn:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(255,165,0,0.4); }
.g65d-promo-btn-secondary {
  background: linear-gradient(135deg, var(--g65d-secondary), #c2185b);
  color: #fff;
}
.g65d-promo-text {
  color: var(--g65d-primary);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px dashed var(--g65d-primary);
  transition: color 0.2s;
}
.g65d-promo-text:hover { color: var(--g65d-secondary); }

/* ============ FEATURES GRID ============ */
.g65d-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.g65d-feature-card {
  background: var(--g65d-bg-light);
  border-radius: var(--g65d-radius);
  padding: 1.2rem;
  text-align: center;
  border: 1px solid var(--g65d-border);
}
.g65d-feature-card i,
.g65d-feature-card .material-icons,
.g65d-feature-card .material-symbols-outlined {
  font-size: 2.8rem;
  color: var(--g65d-primary);
  margin-bottom: 0.5rem;
}
.g65d-feature-card h4 {
  font-size: 1.2rem;
  color: var(--g65d-text);
  margin-bottom: 0.3rem;
}
.g65d-feature-card p {
  font-size: 1.1rem;
  color: var(--g65d-text-muted);
}

/* ============ TESTIMONIALS ============ */
.g65d-testimonial {
  background: var(--g65d-bg-light);
  border-radius: var(--g65d-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--g65d-primary);
}
.g65d-testimonial-name {
  font-weight: 600;
  color: var(--g65d-primary);
  font-size: 1.2rem;
}
.g65d-testimonial-stars { color: #ffc107; font-size: 1.1rem; }
.g65d-testimonial-text { color: var(--g65d-text-muted); font-size: 1.2rem; margin-top: 0.4rem; }

/* ============ PAYMENT METHODS ============ */
.g65d-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}
.g65d-payment-item {
  background: var(--g65d-bg-light);
  border-radius: var(--g65d-radius);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--g65d-border);
}
.g65d-payment-item span { font-size: 1.1rem; color: var(--g65d-text-muted); }

/* ============ WINNERS ============ */
.g65d-winner-list { display: flex; flex-direction: column; gap: 0.6rem; }
.g65d-winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  background: var(--g65d-bg-light);
  border-radius: var(--g65d-radius);
  border: 1px solid var(--g65d-border);
}
.g65d-winner-name { font-weight: 600; color: var(--g65d-text); font-size: 1.2rem; }
.g65d-winner-game { color: var(--g65d-text-muted); font-size: 1.1rem; }
.g65d-winner-amount { font-weight: 700; color: var(--g65d-primary); font-size: 1.3rem; }

/* ============ FOOTER ============ */
.g65d-footer {
  background: var(--g65d-bg-light);
  border-top: 1px solid var(--g65d-border);
  padding: 2rem 0 1rem;
  margin-top: 2rem;
}
.g65d-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}
.g65d-footer-brand p {
  color: var(--g65d-text-muted);
  font-size: 1.2rem;
  line-height: 1.6rem;
  max-width: 360px;
  margin: 0 auto;
}
.g65d-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.g65d-footer-links a {
  background: var(--g65d-bg-card);
  color: var(--g65d-text-muted);
  padding: 0.4rem 1rem;
  border-radius: 16px;
  font-size: 1.1rem;
  border: 1px solid var(--g65d-border);
  transition: border-color 0.2s, color 0.2s;
}
.g65d-footer-links a:hover { border-color: var(--g65d-primary); color: var(--g65d-primary); }
.g65d-footer-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.g65d-footer-partners img { width: 40px; height: 40px; border-radius: 6px; opacity: 0.7; transition: opacity 0.2s; }
.g65d-footer-partners img:hover { opacity: 1; }
.g65d-footer-copy {
  text-align: center;
  color: var(--g65d-text-muted);
  font-size: 1.1rem;
  border-top: 1px solid var(--g65d-border);
  padding-top: 1rem;
}

/* ============ BOTTOM NAV (Mobile) ============ */
.g65d-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--g65d-bg-light) 0%, #0a0f17 100%);
  border-top: 1px solid var(--g65d-border);
  height: 60px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.4rem;
}
.g65d-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  background: none;
  border: none;
  color: var(--g65d-text-muted);
  cursor: pointer;
  transition: color 0.2s, transform 0.15s;
  padding: 0.2rem;
  border-radius: 8px;
}
.g65d-bottom-nav-btn:hover,
.g65d-nav-active {
  color: var(--g65d-primary);
  transform: scale(1.08);
}
.g65d-bottom-nav-btn i,
.g65d-bottom-nav-btn .material-icons,
.g65d-bottom-nav-btn .material-symbols-outlined,
.g65d-bottom-nav-btn ion-icon,
.g65d-bottom-nav-btn bi {
  font-size: 22px;
  margin-bottom: 1px;
}
.g65d-bottom-nav-btn span.g65d-nav-label {
  font-size: 1rem;
  line-height: 1.2rem;
  font-weight: 500;
}
.g65d-bottom-nav-btn.g65d-nav-active .g65d-nav-label { color: var(--g65d-primary); }

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .g65d-bottom-nav { display: none; }
}

/* ============ CTA BANNER ============ */
.g65d-cta-banner {
  background: linear-gradient(135deg, var(--g65d-primary) 0%, var(--g65d-secondary) 100%);
  border-radius: var(--g65d-radius-lg);
  padding: 2rem 1.4rem;
  text-align: center;
  margin: 1.5rem 0;
}
.g65d-cta-banner h2 {
  color: #0E1621;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}
.g65d-cta-banner p {
  color: rgba(14,22,33,0.8);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.g65d-cta-banner .g65d-promo-btn {
  background: #0E1621;
  color: var(--g65d-primary);
  font-size: 1.4rem;
  padding: 1rem 2.5rem;
}

/* ============ APP DOWNLOAD ============ */
.g65d-app-section {
  background: var(--g65d-bg-card);
  border-radius: var(--g65d-radius-lg);
  padding: 1.6rem;
  text-align: center;
  border: 1px solid var(--g65d-border);
  margin-bottom: 1.5rem;
}
.g65d-app-section img {
  width: 100%;
  border-radius: var(--g65d-radius);
  margin-bottom: 1rem;
}

/* ============ RESPONSIVE ============ */
@media (min-width: 431px) {
  body { background: #080c12; }
  .g65d-wrapper, .g65d-container, .g65d-slider,
  .g65d-header-inner, .g65d-bottom-nav { max-width: 430px; margin-left: auto; margin-right: auto; }
}

/* Help page specific */
.g65d-help-section { margin-bottom: 1.5rem; }
.g65d-help-section h2 { font-size: 1.6rem; color: var(--g65d-primary); margin-bottom: 0.8rem; }
.g65d-help-section h3 { font-size: 1.3rem; color: var(--g65d-text); margin-bottom: 0.5rem; }
.g65d-faq-item {
  background: var(--g65d-bg-card);
  border-radius: var(--g65d-radius);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  border: 1px solid var(--g65d-border);
}
.g65d-faq-item h4 {
  font-size: 1.3rem;
  color: var(--g65d-primary);
  margin-bottom: 0.5rem;
}
.g65d-faq-item p {
  color: var(--g65d-text-muted);
  font-size: 1.2rem;
  line-height: 1.6rem;
}

/* Steps list */
.g65d-steps { counter-reset: g65d-step-counter; }
.g65d-step-item {
  counter-increment: g65d-step-counter;
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}
.g65d-step-item::before {
  content: counter(g65d-step-counter);
  background: var(--g65d-primary);
  color: #0E1621;
  font-weight: 700;
  font-size: 1.3rem;
  min-width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Badge */
.g65d-badge {
  display: inline-block;
  background: var(--g65d-secondary);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 10px;
  vertical-align: middle;
}
