/**
 * jljl13 ph - Main Stylesheet
 * Prefix: pg88-
 * Color Palette: #FF8C00 | #008B8B | #FFD700 | #0C0C0C | #E0F2F1 | #F0F0F0
 */

/* CSS Variables */
:root {
  --pg88-primary: #FF8C00;
  --pg88-secondary: #008B8B;
  --pg88-accent: #FFD700;
  --pg88-bg-dark: #0C0C0C;
  --pg88-bg-light: #E0F2F1;
  --pg88-text-light: #F0F0F0;
  --pg88-text-dark: #0C0C0C;
  --pg88-radius: 8px;
  --pg88-radius-lg: 12px;
  --pg88-shadow: 0 2px 10px rgba(0,0,0,0.3);
  --pg88-shadow-lg: 0 4px 20px rgba(0,0,0,0.4);
  --pg88-transition: all 0.3s ease;
}

/* Base Reset & Setup */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--pg88-bg-dark);
  color: var(--pg88-text-light);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--pg88-accent); text-decoration: none; transition: var(--pg88-transition); }
a:hover { color: var(--pg88-primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* =================== HEADER =================== */
.pg88-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(135deg, #0C0C0C 0%, #1a1a2e 100%);
  border-bottom: 2px solid var(--pg88-primary);
  padding: 0 1rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pg88-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pg88-logo {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}
.pg88-site-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg88-accent);
  letter-spacing: 0.5px;
}
.pg88-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pg88-btn-register, .pg88-btn-login {
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: var(--pg88-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--pg88-transition);
}
.pg88-btn-register {
  background: linear-gradient(135deg, var(--pg88-primary), #e67600);
  color: #fff;
}
.pg88-btn-register:hover { transform: scale(1.05); box-shadow: 0 0 10px rgba(255,140,0,0.5); }
.pg88-btn-login {
  background: transparent;
  color: var(--pg88-accent);
  border: 1px solid var(--pg88-accent);
}
.pg88-btn-login:hover { background: var(--pg88-accent); color: var(--pg88-bg-dark); }
.pg88-menu-toggle {
  background: none;
  border: none;
  color: var(--pg88-text-light);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =================== MOBILE MENU =================== */
.pg88-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  display: none;
}
.pg88-overlay-active { display: block; }
.pg88-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: linear-gradient(180deg, #1a1a2e 0%, #0C0C0C 100%);
  z-index: 9999;
  transition: right 0.35s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.pg88-menu-active { right: 0; }
.pg88-menu-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--pg88-text-light);
  font-size: 2.2rem;
  cursor: pointer;
}
.pg88-menu-nav { margin-top: 3rem; }
.pg88-menu-nav a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 0;
  font-size: 1.4rem;
  color: var(--pg88-text-light);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: var(--pg88-transition);
}
.pg88-menu-nav a:hover { color: var(--pg88-primary); padding-left: 0.5rem; }
.pg88-menu-nav a .material-icons { font-size: 2rem; color: var(--pg88-secondary); }

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

/* =================== CAROUSEL =================== */
.pg88-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: pointer;
}
.pg88-carousel-slide {
  display: none;
  width: 100%;
}
.pg88-carousel-slide:first-child { display: block; }
.pg88-carousel-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.pg88-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.pg88-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: var(--pg88-transition);
}
.pg88-dot-active { background: var(--pg88-accent); transform: scale(1.2); }

/* =================== SECTION =================== */
.pg88-section {
  padding: 2rem 1.2rem;
}
.pg88-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg88-accent);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--pg88-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pg88-section-title i, .pg88-section-title .material-icons {
  font-size: 2rem;
  color: var(--pg88-primary);
}

/* =================== GAME GRID =================== */
.pg88-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.pg88-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--pg88-transition);
  border-radius: var(--pg88-radius);
  padding: 0.5rem;
}
.pg88-game-item:hover {
  transform: translateY(-3px);
  background: rgba(255,140,0,0.1);
}
.pg88-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--pg88-radius);
  margin-bottom: 0.3rem;
  border: 2px solid rgba(255,215,0,0.2);
}
.pg88-game-item span {
  font-size: 1rem;
  color: var(--pg88-text-light);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pg88-cat-label {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pg88-primary);
  margin: 1.5rem 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* =================== CONTENT CARD =================== */
.pg88-card {
  background: linear-gradient(135deg, rgba(26,26,46,0.9), rgba(12,12,12,0.95));
  border-radius: var(--pg88-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255,140,0,0.15);
  box-shadow: var(--pg88-shadow);
}
.pg88-card h3 {
  font-size: 1.5rem;
  color: var(--pg88-accent);
  margin-bottom: 0.8rem;
}
.pg88-card p {
  font-size: 1.3rem;
  line-height: 1.8rem;
  color: var(--pg88-text-light);
  margin-bottom: 0.6rem;
}

/* =================== PROMO BUTTONS =================== */
.pg88-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--pg88-primary), #e67600);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--pg88-transition);
  text-align: center;
  min-width: 180px;
}
.pg88-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255,140,0,0.5);
}
.pg88-promo-link {
  color: var(--pg88-primary);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.pg88-promo-link:hover { color: var(--pg88-accent); }

/* =================== RTP TABLE =================== */
.pg88-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}
.pg88-rtp-table th {
  background: var(--pg88-secondary);
  color: #fff;
  padding: 0.6rem 0.8rem;
  text-align: left;
  font-weight: 600;
}
.pg88-rtp-table td {
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--pg88-text-light);
}
.pg88-rtp-table tr:hover td { background: rgba(255,140,0,0.05); }
.pg88-rtp-high { color: #4caf50; font-weight: 600; }
.pg88-rtp-mid { color: var(--pg88-accent); font-weight: 600; }

/* =================== TESTIMONIALS =================== */
.pg88-testimonial {
  background: linear-gradient(135deg, rgba(0,139,139,0.15), rgba(12,12,12,0.9));
  border-radius: var(--pg88-radius);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--pg88-primary);
}
.pg88-testimonial-name {
  font-weight: 600;
  color: var(--pg88-accent);
  font-size: 1.2rem;
}
.pg88-testimonial-text {
  font-size: 1.2rem;
  color: var(--pg88-text-light);
  margin-top: 0.4rem;
  line-height: 1.6rem;
}
.pg88-testimonial-stars { color: var(--pg88-accent); font-size: 1rem; }

/* =================== FOOTER =================== */
.pg88-footer {
  background: linear-gradient(180deg, #1a1a2e 0%, #0C0C0C 100%);
  padding: 2rem 1.2rem;
  border-top: 2px solid var(--pg88-secondary);
}
.pg88-footer-brand {
  font-size: 1.2rem;
  color: rgba(240,240,240,0.7);
  line-height: 1.8rem;
  margin-bottom: 1.2rem;
}
.pg88-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.pg88-footer-links a {
  background: rgba(255,140,0,0.1);
  color: var(--pg88-text-light);
  padding: 0.5rem 1rem;
  border-radius: var(--pg88-radius);
  font-size: 1.1rem;
  border: 1px solid rgba(255,140,0,0.2);
  transition: var(--pg88-transition);
}
.pg88-footer-links a:hover {
  background: var(--pg88-primary);
  color: #fff;
}
.pg88-footer-copy {
  font-size: 1.1rem;
  color: rgba(240,240,240,0.5);
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* =================== BOTTOM NAV =================== */
.pg88-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(135deg, #1a1a2e, #0C0C0C);
  border-top: 2px solid var(--pg88-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.3rem;
}
.pg88-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: rgba(240,240,240,0.6);
  cursor: pointer;
  transition: var(--pg88-transition);
  padding: 0.3rem;
  border-radius: var(--pg88-radius);
}
.pg88-bottom-btn i, .pg88-bottom-btn .material-icons {
  font-size: 22px;
  margin-bottom: 2px;
}
.pg88-bottom-btn span {
  font-size: 10px;
  font-weight: 500;
}
.pg88-bottom-btn:hover, .pg88-bottom-btn.pg88-active {
  color: var(--pg88-accent);
  transform: scale(1.08);
}
.pg88-bottom-btn.pg88-active {
  background: rgba(255,215,0,0.08);
}
@media (min-width: 769px) {
  .pg88-bottom-nav { display: none; }
  .pg88-main { padding-bottom: 2rem; }
}

/* =================== WINNER SHOWCASE =================== */
.pg88-winner-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.pg88-winner-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pg88-primary), var(--pg88-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
}
.pg88-winner-info { flex: 1; }
.pg88-winner-name { font-size: 1.1rem; color: var(--pg88-text-light); font-weight: 500; }
.pg88-winner-game { font-size: 1rem; color: rgba(240,240,240,0.5); }
.pg88-winner-amount { font-size: 1.3rem; color: #4caf50; font-weight: 700; }

/* =================== CTA SECTION =================== */
.pg88-cta-box {
  background: linear-gradient(135deg, var(--pg88-primary), #e67600);
  border-radius: var(--pg88-radius-lg);
  padding: 2rem;
  text-align: center;
  margin: 1.5rem 0;
}
.pg88-cta-box h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.pg88-cta-box p {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
}

/* =================== ANIMATIONS =================== */
.pg88-animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.pg88-visible { opacity: 1; transform: translateY(0); }

/* =================== PAYMENT ICONS =================== */
.pg88-payment-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.pg88-payment-item {
  background: rgba(255,255,255,0.05);
  padding: 0.6rem 1.2rem;
  border-radius: var(--pg88-radius);
  font-size: 1.1rem;
  color: var(--pg88-text-light);
  border: 1px solid rgba(255,255,255,0.08);
}

/* =================== HELP PAGE STYLES =================== */
.pg88-help-content { font-size: 1.3rem; line-height: 1.8rem; }
.pg88-help-content h2 { color: var(--pg88-accent); font-size: 1.6rem; margin: 1.5rem 0 0.8rem; }
.pg88-help-content h3 { color: var(--pg88-primary); font-size: 1.4rem; margin: 1.2rem 0 0.6rem; }
.pg88-help-content p { margin-bottom: 0.8rem; color: var(--pg88-text-light); }
.pg88-help-content ul { padding-left: 1.5rem; margin-bottom: 0.8rem; }
.pg88-help-content ul li { list-style: disc; margin-bottom: 0.4rem; color: var(--pg88-text-light); }
.pg88-faq-item { margin-bottom: 1rem; }
.pg88-faq-q { font-weight: 600; color: var(--pg88-accent); font-size: 1.3rem; margin-bottom: 0.3rem; }
.pg88-faq-a { color: var(--pg88-text-light); font-size: 1.2rem; padding-left: 1rem; border-left: 2px solid var(--pg88-secondary); }

/* =================== PARTNER LOGOS =================== */
.pg88-partners {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.pg88-partners img {
  height: 28px;
  opacity: 0.7;
  transition: var(--pg88-transition);
}
.pg88-partners img:hover { opacity: 1; }
