/**
 * funph.cfd - Theme Stylesheet
 * All classes prefixed with pg52- for namespace isolation
 * Color palette: #0E1621 #34495E #00695C #778899 #BBBBBB #BDC3C7
 * Mobile-first design, max-width 430px
 */
:root {
  font-size: 62.5%;
  --pg52-bg-dark: #0E1621;
  --pg52-bg-mid: #34495E;
  --pg52-primary: #00695C;
  --pg52-text-muted: #778899;
  --pg52-text-light: #BBBBBB;
  --pg52-border-light: #BDC3C7;
  --pg52-accent: #00695C;
  --pg52-accent-hover: #00897B;
  --pg52-gold: #F0C040;
  --pg52-card-bg: #1A2332;
  --pg52-header-bg: #0E1621;
  --pg52-footer-bg: #0A0F18;
  --pg52-radius: 8px;
  --pg52-radius-lg: 12px;
  --pg52-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --pg52-transition: all 0.3s ease;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--pg52-text-light);
  background: var(--pg52-bg-dark);
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--pg52-accent);
  text-decoration: none;
  transition: var(--pg52-transition);
}

a:hover {
  color: var(--pg52-accent-hover);
}

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

/* ========== HEADER ========== */
.pg52-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 56px;
  background: var(--pg52-header-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
  border-bottom: 1px solid rgba(0,105,92,0.3);
  backdrop-filter: blur(10px);
}

.pg52-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.pg52-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.pg52-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.pg52-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pg52-btn-register,
.pg52-btn-login {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: var(--pg52-radius);
  border: none;
  cursor: pointer;
  transition: var(--pg52-transition);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.pg52-btn-register {
  background: var(--pg52-primary);
  color: #fff;
}

.pg52-btn-register:hover {
  background: var(--pg52-accent-hover);
  transform: scale(1.05);
}

.pg52-btn-login {
  background: transparent;
  color: var(--pg52-text-light);
  border: 1px solid var(--pg52-text-muted);
}

.pg52-btn-login:hover {
  border-color: var(--pg52-accent);
  color: var(--pg52-accent);
}

.pg52-menu-btn {
  background: none;
  border: none;
  color: var(--pg52-text-light);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== MOBILE MENU ========== */
.pg52-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--pg52-transition);
}

.pg52-overlay-active {
  opacity: 1;
  visibility: visible;
}

.pg52-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--pg52-bg-mid);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.pg52-menu-open {
  right: 0;
}

.pg52-menu-close {
  background: none;
  border: none;
  color: var(--pg52-text-light);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1.2rem;
}

.pg52-menu-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--pg52-primary);
}

.pg52-menu-list {
  list-style: none;
}

.pg52-menu-list li {
  margin-bottom: 0.3rem;
}

.pg52-menu-list a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0.8rem;
  color: var(--pg52-text-light);
  font-size: 1.5rem;
  border-radius: var(--pg52-radius);
  transition: var(--pg52-transition);
}

.pg52-menu-list a:hover {
  background: rgba(0,105,92,0.2);
  color: #fff;
}

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

/* ========== MAIN CONTENT ========== */
.pg52-main {
  padding-top: 56px;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* ========== CAROUSEL ========== */
.pg52-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--pg52-radius-lg) var(--pg52-radius-lg);
}

.pg52-carousel-track {
  position: relative;
  width: 100%;
  height: 200px;
}

.pg52-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

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

.pg52-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.pg52-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.pg52-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: var(--pg52-transition);
}

.pg52-dot-active {
  background: #fff;
  transform: scale(1.3);
}

/* ========== SECTION LAYOUT ========== */
.pg52-section {
  padding: 2rem 1.2rem;
}

.pg52-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--pg52-primary);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.pg52-section-title .material-icons,
.pg52-section-title .pg52-title-icon {
  font-size: 2.2rem;
  color: var(--pg52-primary);
}

.pg52-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

/* ========== GAME GRID ========== */
.pg52-game-section {
  padding: 1.5rem 1.2rem;
}

.pg52-category-title {
  font-size: 1.7rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--pg52-primary);
}

.pg52-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.pg52-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--pg52-transition);
  border-radius: var(--pg52-radius);
  padding: 0.5rem;
}

.pg52-game-item:hover {
  transform: translateY(-2px);
  background: rgba(0,105,92,0.15);
}

.pg52-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--pg52-radius);
  margin-bottom: 0.4rem;
  border: 1px solid rgba(255,255,255,0.08);
}

.pg52-game-name {
  font-size: 1.1rem;
  color: var(--pg52-text-light);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========== CONTENT MODULES ========== */
.pg52-content-block {
  padding: 1.5rem 1.2rem;
  background: var(--pg52-card-bg);
  margin: 0.8rem 1.2rem;
  border-radius: var(--pg52-radius-lg);
  border: 1px solid rgba(255,255,255,0.05);
}

.pg52-content-block h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.pg52-content-block h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
}

.pg52-content-block p {
  color: var(--pg52-text-light);
  line-height: 1.6;
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
}

.pg52-content-block ul {
  padding-left: 1.8rem;
  margin-bottom: 1rem;
}

.pg52-content-block li {
  color: var(--pg52-text-light);
  line-height: 1.6;
  margin-bottom: 0.4rem;
  font-size: 1.4rem;
}

/* ========== PROMO LINK STYLES ========== */
.pg52-promo-link {
  display: inline-block;
  color: var(--pg52-accent);
  font-weight: 600;
  cursor: pointer;
  transition: var(--pg52-transition);
  border-bottom: 1px dashed var(--pg52-accent);
}

.pg52-promo-link:hover {
  color: var(--pg52-accent-hover);
  border-bottom-color: var(--pg52-accent-hover);
}

.pg52-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--pg52-primary), var(--pg52-accent-hover));
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: var(--pg52-radius);
  cursor: pointer;
  transition: var(--pg52-transition);
  text-align: center;
  border: none;
}

.pg52-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,105,92,0.4);
}

.pg52-promo-large {
  display: block;
  width: 100%;
  padding: 1.4rem;
  font-size: 1.6rem;
  margin: 1.5rem 0;
  border-radius: var(--pg52-radius-lg);
  text-align: center;
}

/* ========== CTA BANNER ========== */
.pg52-cta-banner {
  background: linear-gradient(135deg, var(--pg52-primary), #004D40);
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 1.5rem 1.2rem;
  border-radius: var(--pg52-radius-lg);
  box-shadow: var(--pg52-shadow);
}

.pg52-cta-banner h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 0.8rem;
}

.pg52-cta-banner p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

/* ========== FEATURES GRID ========== */
.pg52-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 0 1.2rem;
}

.pg52-feature-card {
  background: var(--pg52-card-bg);
  border-radius: var(--pg52-radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  border: 1px solid rgba(0,105,92,0.2);
  transition: var(--pg52-transition);
}

.pg52-feature-card:hover {
  border-color: var(--pg52-primary);
  transform: translateY(-2px);
}

.pg52-feature-card .material-icons,
.pg52-feature-card .pg52-feat-icon {
  font-size: 3rem;
  color: var(--pg52-primary);
  margin-bottom: 0.8rem;
}

.pg52-feature-card h3 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.pg52-feature-card p {
  font-size: 1.2rem;
  color: var(--pg52-text-muted);
  line-height: 1.4;
}

/* ========== TESTIMONIALS ========== */
.pg52-testimonial {
  background: var(--pg52-card-bg);
  border-radius: var(--pg52-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--pg52-primary);
}

.pg52-testimonial-name {
  font-weight: 600;
  color: #fff;
  font-size: 1.4rem;
}

.pg52-testimonial-stars {
  color: var(--pg52-gold);
  font-size: 1.2rem;
  margin: 0.3rem 0;
}

.pg52-testimonial-text {
  color: var(--pg52-text-light);
  font-size: 1.3rem;
  line-height: 1.5;
  font-style: italic;
}

/* ========== PAYMENT METHODS ========== */
.pg52-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  padding: 1rem 0;
}

.pg52-payment-item {
  background: var(--pg52-card-bg);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--pg52-radius);
  padding: 0.8rem 1.2rem;
  font-size: 1.2rem;
  color: var(--pg52-text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ========== WINNERS SHOWCASE ========== */
.pg52-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: var(--pg52-card-bg);
  border-radius: var(--pg52-radius);
  margin-bottom: 0.6rem;
}

.pg52-winner-name {
  font-size: 1.3rem;
  color: #fff;
  font-weight: 500;
}

.pg52-winner-game {
  font-size: 1.1rem;
  color: var(--pg52-text-muted);
}

.pg52-winner-amount {
  font-size: 1.4rem;
  color: var(--pg52-gold);
  font-weight: 700;
}

/* ========== FOOTER ========== */
.pg52-footer {
  background: var(--pg52-footer-bg);
  padding: 2.5rem 1.2rem 1.5rem;
  border-top: 1px solid rgba(0,105,92,0.3);
}

.pg52-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.pg52-footer-brand p {
  font-size: 1.3rem;
  color: var(--pg52-text-muted);
  line-height: 1.5;
  max-width: 360px;
  margin: 0.5rem auto;
}

.pg52-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.pg52-footer-links a {
  font-size: 1.2rem;
  color: var(--pg52-text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: var(--pg52-radius);
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--pg52-transition);
}

.pg52-footer-links a:hover {
  color: #fff;
  border-color: var(--pg52-primary);
}

.pg52-footer-promos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.pg52-footer-promos a {
  display: inline-block;
  background: var(--pg52-primary);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: var(--pg52-radius);
  transition: var(--pg52-transition);
}

.pg52-footer-promos a:hover {
  background: var(--pg52-accent-hover);
  transform: scale(1.05);
}

.pg52-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--pg52-text-muted);
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ========== BOTTOM NAVIGATION ========== */
.pg52-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: var(--pg52-header-bg);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  border-top: 1px solid rgba(0,105,92,0.3);
  backdrop-filter: blur(10px);
}

.pg52-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: var(--pg52-text-muted);
  cursor: pointer;
  transition: var(--pg52-transition);
  padding: 0.3rem;
  border-radius: var(--pg52-radius);
}

.pg52-bottom-nav-btn:hover,
.pg52-bottom-nav-btn:active {
  color: var(--pg52-primary);
  transform: scale(1.1);
}

.pg52-bottom-nav-btn .material-icons,
.pg52-bottom-nav-btn .pg52-nav-icon {
  font-size: 2.2rem;
  margin-bottom: 0.1rem;
}

.pg52-bottom-nav-btn span {
  font-size: 1rem;
  line-height: 1.2;
}

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

.pg52-bottom-nav-btn.pg52-nav-active::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--pg52-primary);
  border-radius: 1px;
  margin-top: 0.2rem;
}

/* ========== INTERNAL LINKS ========== */
.pg52-internal-link {
  color: var(--pg52-accent);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}

.pg52-internal-link:hover {
  color: var(--pg52-accent-hover);
}

/* ========== FAQ STYLES ========== */
.pg52-faq-item {
  background: var(--pg52-card-bg);
  border-radius: var(--pg52-radius);
  margin-bottom: 0.8rem;
  border: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
}

.pg52-faq-question {
  padding: 1.2rem;
  font-weight: 600;
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  cursor: default;
}

.pg52-faq-question .material-icons {
  color: var(--pg52-primary);
  font-size: 2rem;
  flex-shrink: 0;
}

.pg52-faq-answer {
  padding: 0 1.2rem 1.2rem;
  color: var(--pg52-text-light);
  font-size: 1.3rem;
  line-height: 1.6;
}

/* ========== TIPS STEPS ========== */
.pg52-step-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  align-items: flex-start;
}

.pg52-step-num {
  background: var(--pg52-primary);
  color: #fff;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pg52-step-content h3 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.pg52-step-content p {
  font-size: 1.3rem;
  color: var(--pg52-text-light);
  line-height: 1.5;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .pg52-main {
    padding-bottom: 80px;
  }
}

@media (min-width: 769px) {
  .pg52-bottom-nav {
    display: none;
  }
}

@media (max-width: 360px) {
  .pg52-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }

  .pg52-features-grid {
    grid-template-columns: 1fr;
  }
}

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