/**
 * 639club103 Main Stylesheet
 * All classes use pg48- prefix for namespace isolation
 * Color palette: #00FF7F | #006400 | #2E4057 | #00FA9A
 * Mobile-first responsive design
 */

:root {
  --pg48-primary: #00FF7F;
  --pg48-primary-dark: #006400;
  --pg48-secondary: #00FA9A;
  --pg48-bg-dark: #2E4057;
  --pg48-bg-darker: #1a2a3a;
  --pg48-bg-card: #243447;
  --pg48-text-light: #f0f8ff;
  --pg48-text-muted: #a8c0d8;
  --pg48-accent-gold: #ffd700;
  --pg48-accent-orange: #ff8c00;
  --pg48-gradient-green: linear-gradient(135deg, #006400, #00FF7F);
  --pg48-gradient-dark: linear-gradient(180deg, #1a2a3a, #2E4057);
  --pg48-radius: 8px;
  --pg48-radius-lg: 12px;
  --pg48-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  --pg48-shadow-glow: 0 0 20px rgba(0, 255, 127, 0.2);
}

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

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

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

a { color: var(--pg48-primary); text-decoration: none; }
a:hover { color: var(--pg48-secondary); }

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

/* Container */
.pg48-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* Header */
.pg48-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(135deg, #1a2a3a 0%, #2E4057 100%);
  border-bottom: 2px solid var(--pg48-primary-dark);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(10px);
}

.pg48-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.pg48-logo-wrap img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.pg48-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg48-primary);
  white-space: nowrap;
}

.pg48-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pg48-btn-register {
  background: var(--pg48-gradient-green);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.pg48-btn-login {
  background: transparent;
  color: var(--pg48-primary);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--pg48-primary);
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.pg48-btn-register:hover, .pg48-btn-login:hover {
  transform: scale(1.05);
  box-shadow: var(--pg48-shadow-glow);
}

.pg48-menu-toggle {
  background: none;
  border: none;
  color: var(--pg48-primary);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.3rem;
  line-height: 1;
}

/* Mobile Menu */
.pg48-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

.pg48-overlay-active { display: block; }

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

.pg48-menu-active { right: 0; }

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

.pg48-menu-list {
  list-style: none;
  margin-top: 3rem;
}

.pg48-menu-list li {
  margin-bottom: 0.2rem;
}

.pg48-menu-list a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0.8rem;
  color: var(--pg48-text-light);
  font-size: 1.4rem;
  font-weight: 500;
  border-radius: var(--pg48-radius);
  transition: all 0.2s;
}

.pg48-menu-list a:hover {
  background: rgba(0, 255, 127, 0.1);
  color: var(--pg48-primary);
}

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

/* Carousel */
.pg48-carousel {
  position: relative;
  width: 100%;
  margin-top: 5.2rem;
  overflow: hidden;
  border-radius: 0 0 var(--pg48-radius-lg) var(--pg48-radius-lg);
  aspect-ratio: 16/8;
}

.pg48-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

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

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

.pg48-carousel-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}

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

.pg48-dot-active {
  background: var(--pg48-primary);
  width: 20px;
  border-radius: 4px;
}

/* Main Content */
main {
  padding-bottom: 8rem;
}

.pg48-section {
  padding: 2rem 1.2rem;
}

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

.pg48-section-title .material-icons,
.pg48-section-title .bi,
.pg48-section-title .fas {
  font-size: 2.2rem;
}

/* Game Grid */
.pg48-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.pg48-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.6rem;
  border-radius: var(--pg48-radius);
  background: var(--pg48-bg-card);
  border: 1px solid rgba(0, 255, 127, 0.1);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.pg48-game-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--pg48-shadow-glow);
  border-color: var(--pg48-primary);
}

.pg48-game-card img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  margin-bottom: 0.4rem;
  object-fit: cover;
}

.pg48-game-card span {
  font-size: 1rem;
  color: var(--pg48-text-muted);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Promo Buttons & Links */
.pg48-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  font-size: 1.5rem;
  font-weight: 700;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
}

.pg48-btn-primary {
  background: var(--pg48-gradient-green);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 255, 127, 0.3);
}

.pg48-btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 255, 127, 0.5);
}

.pg48-btn-outline {
  background: transparent;
  color: var(--pg48-primary);
  border: 2px solid var(--pg48-primary);
}

.pg48-btn-outline:hover {
  background: rgba(0, 255, 127, 0.1);
  transform: scale(1.05);
}

.pg48-promo-link {
  color: var(--pg48-primary);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: underline;
}

.pg48-promo-link:hover {
  color: var(--pg48-accent-gold);
}

/* Content Cards */
.pg48-card {
  background: var(--pg48-bg-card);
  border-radius: var(--pg48-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(0, 255, 127, 0.08);
}

.pg48-card h3 {
  font-size: 1.6rem;
  color: var(--pg48-primary);
  margin-bottom: 0.8rem;
}

.pg48-card p {
  font-size: 1.3rem;
  color: var(--pg48-text-muted);
  line-height: 1.6;
}

/* Stats Grid */
.pg48-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.pg48-stat-item {
  background: var(--pg48-bg-card);
  padding: 1rem;
  border-radius: var(--pg48-radius);
  text-align: center;
  border: 1px solid rgba(0, 255, 127, 0.1);
}

.pg48-stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--pg48-primary);
}

.pg48-stat-label {
  font-size: 1.1rem;
  color: var(--pg48-text-muted);
  margin-top: 0.2rem;
}

/* Winners List */
.pg48-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pg48-winner-item:last-child { border-bottom: none; }

.pg48-winner-name {
  font-size: 1.3rem;
  color: var(--pg48-text-light);
}

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

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

/* Testimonials */
.pg48-testimonial {
  background: var(--pg48-bg-card);
  border-radius: var(--pg48-radius-lg);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--pg48-primary);
}

.pg48-testimonial-text {
  font-size: 1.3rem;
  color: var(--pg48-text-muted);
  font-style: italic;
  margin-bottom: 0.6rem;
}

.pg48-testimonial-author {
  font-size: 1.2rem;
  color: var(--pg48-primary);
  font-weight: 600;
}

/* Payment Icons */
.pg48-payment-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.pg48-payment-item {
  background: var(--pg48-bg-card);
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-size: 1.2rem;
  color: var(--pg48-text-muted);
  border: 1px solid rgba(0, 255, 127, 0.1);
}

/* Footer */
.pg48-footer {
  background: linear-gradient(180deg, var(--pg48-bg-dark), #0f1923);
  padding: 2rem 1.2rem 3rem;
  border-top: 2px solid var(--pg48-primary-dark);
}

.pg48-footer-brand {
  font-size: 1.3rem;
  color: var(--pg48-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.pg48-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.pg48-footer-link {
  background: rgba(0, 255, 127, 0.08);
  color: var(--pg48-text-light);
  padding: 0.5rem 1rem;
  border-radius: 15px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid rgba(0, 255, 127, 0.15);
}

.pg48-footer-link:hover {
  background: rgba(0, 255, 127, 0.15);
  color: var(--pg48-primary);
}

.pg48-footer-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: rgba(168, 192, 216, 0.5);
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Bottom Navigation */
.pg48-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, #2E4057, #1a2a3a);
  border-top: 2px solid var(--pg48-primary-dark);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.3rem;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
}

.pg48-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 60px;
  min-height: 52px;
  background: none;
  border: none;
  color: var(--pg48-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 8px;
  padding: 0.3rem;
}

.pg48-nav-btn:hover,
.pg48-nav-btn.pg48-nav-active {
  color: var(--pg48-primary);
  background: rgba(0, 255, 127, 0.08);
}

.pg48-nav-btn .material-icons,
.pg48-nav-btn .fas,
.pg48-nav-btn .bi,
.pg48-nav-btn .iconify {
  font-size: 2.2rem;
}

.pg48-nav-btn span {
  font-size: 1rem;
  line-height: 1;
}

/* Touch Active State */
.pg48-touch-active {
  opacity: 0.8;
  transform: scale(0.96);
}

/* Category Badge */
.pg48-cat-badge {
  display: inline-block;
  background: var(--pg48-gradient-green);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.3rem 1rem;
  border-radius: 15px;
  margin-bottom: 1rem;
}

/* FAQ Item */
.pg48-faq-item {
  background: var(--pg48-bg-card);
  border-radius: var(--pg48-radius);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--pg48-primary);
}

.pg48-faq-item h4 {
  font-size: 1.4rem;
  color: var(--pg48-primary);
  margin-bottom: 0.5rem;
}

.pg48-faq-item p {
  font-size: 1.3rem;
  color: var(--pg48-text-muted);
  line-height: 1.5;
}

/* Mobile App CTA */
.pg48-app-cta {
  background: var(--pg48-gradient-dark);
  border-radius: var(--pg48-radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--pg48-primary-dark);
}

.pg48-app-cta h3 {
  font-size: 1.8rem;
  color: var(--pg48-primary);
  margin-bottom: 0.8rem;
}

.pg48-app-cta p {
  font-size: 1.3rem;
  color: var(--pg48-text-muted);
  margin-bottom: 1.2rem;
}

/* Steps */
.pg48-steps {
  counter-reset: pg48-step;
}

.pg48-step-item {
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: 1.5rem;
}

.pg48-step-item::before {
  counter-increment: pg48-step;
  content: counter(pg48-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.6rem;
  height: 2.6rem;
  background: var(--pg48-gradient-green);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg48-step-item h4 {
  font-size: 1.4rem;
  color: var(--pg48-text-light);
  margin-bottom: 0.3rem;
}

.pg48-step-item p {
  font-size: 1.3rem;
  color: var(--pg48-text-muted);
  line-height: 1.5;
}

/* Desktop Responsive */
@media (min-width: 769px) {
  body { max-width: 430px; }
  .pg48-bottom-nav { display: none; }
  main { padding-bottom: 2rem; }
}

/* Mobile padding for bottom nav */
@media (max-width: 768px) {
  main { padding-bottom: 8rem; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--pg48-bg-darker); }
::-webkit-scrollbar-thumb { background: var(--pg48-primary-dark); border-radius: 2px; }
