/**
 * 88fa - Main Stylesheet
 * All classes use pg89- prefix for namespace isolation
 * Color palette: #8A2BE2 (violet) | #EE82EE (orchid) | #0E1621 (dark navy)
 * Mobile-first design, max-width 430px viewport
 */

/* CSS Variables */
:root {
  --pg89-primary: #8A2BE2;
  --pg89-secondary: #EE82EE;
  --pg89-bg-dark: #0E1621;
  --pg89-bg-card: #1a2332;
  --pg89-bg-card-hover: #243447;
  --pg89-text-light: #f0f0f0;
  --pg89-text-muted: #a0aec0;
  --pg89-accent: #FFD700;
  --pg89-gradient: linear-gradient(135deg, #8A2BE2 0%, #EE82EE 100%);
  --pg89-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
  --pg89-radius: 10px;
  --pg89-radius-sm: 6px;
  --pg89-font-base: 62.5%;
}

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

html {
  font-size: var(--pg89-font-base);
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--pg89-bg-dark);
  color: var(--pg89-text-light);
  line-height: 1.5rem;
  font-size: 1.6rem;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--pg89-secondary);
}

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

/* Header */
.pg89-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--pg89-bg-dark) 0%, rgba(14, 22, 33, 0.95) 100%);
  border-bottom: 1px solid rgba(138, 43, 226, 0.3);
  padding: 0 1.2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.pg89-header-logo span {
  font-size: 2rem;
  font-weight: 800;
  background: var(--pg89-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}

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

.pg89-btn-register, .pg89-btn-login {
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pg89-btn-register {
  background: var(--pg89-gradient);
  color: #fff;
  box-shadow: 0 2px 8px rgba(138, 43, 226, 0.4);
}

.pg89-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.6);
}

.pg89-btn-login {
  background: transparent;
  color: var(--pg89-secondary);
  border: 1.5px solid var(--pg89-secondary);
}

.pg89-btn-login:hover {
  background: rgba(238, 130, 238, 0.15);
}

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

/* Mobile Menu */
.pg89-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

.pg89-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 260px;
  height: 100%;
  background: var(--pg89-bg-dark);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 2rem 1.5rem;
  border-left: 1px solid rgba(138, 43, 226, 0.3);
  overflow-y: auto;
}

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

.pg89-mobile-menu a {
  display: block;
  padding: 1.2rem 0;
  color: var(--pg89-text-light);
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.2s;
}

.pg89-mobile-menu a:hover {
  color: var(--pg89-secondary);
}

/* Main Content */
.pg89-main {
  margin-top: 56px;
  padding: 0 1rem 2rem;
}

@media (max-width: 768px) {
  .pg89-main {
    padding-bottom: 80px;
  }
}

/* Carousel */
.pg89-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--pg89-radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--pg89-shadow);
}

.pg89-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.pg89-slide img {
  width: 100%;
  height: auto;
  display: block;
}

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

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

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

/* Section Titles */
.pg89-section-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 2rem 0 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--pg89-primary);
  color: var(--pg89-text-light);
}

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

.pg89-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.pg89-game-item:hover {
  transform: scale(1.05);
}

.pg89-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--pg89-radius-sm);
  object-fit: cover;
  border: 2px solid rgba(138, 43, 226, 0.2);
  transition: border-color 0.3s;
}

.pg89-game-item:hover img {
  border-color: var(--pg89-primary);
}

.pg89-game-name {
  font-size: 1.1rem;
  color: var(--pg89-text-muted);
  margin-top: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

/* Category Label */
.pg89-category-label {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--pg89-secondary);
}

.pg89-category-label i {
  font-size: 2rem;
  color: var(--pg89-primary);
}

/* Promo Buttons */
.pg89-promo-btn {
  display: inline-block;
  padding: 1.2rem 2.5rem;
  background: var(--pg89-gradient);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.pg89-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.6);
}

/* Cards */
.pg89-card {
  background: var(--pg89-bg-card);
  border-radius: var(--pg89-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(138, 43, 226, 0.15);
}

.pg89-card h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--pg89-secondary);
}

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

/* Promo text link */
.pg89-promo-text {
  color: var(--pg89-accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.pg89-promo-text:hover {
  color: var(--pg89-secondary);
}

/* Bottom Navigation */
.pg89-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(14, 22, 33, 0.98) 0%, #0a0f18 100%);
  border-top: 1px solid rgba(138, 43, 226, 0.3);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 0.5rem;
}

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

.pg89-bottom-nav-btn:hover,
.pg89-bottom-nav-btn.pg89-nav-active {
  color: var(--pg89-primary);
}

.pg89-bottom-nav-btn.pg89-nav-active {
  background: rgba(138, 43, 226, 0.12);
}

.pg89-bottom-nav-btn:active {
  transform: scale(0.9);
}

.pg89-bottom-nav-btn .pg89-nav-icon {
  font-size: 2.2rem;
  margin-bottom: 0.1rem;
}

.pg89-bottom-nav-btn .pg89-nav-label {
  font-size: 1rem;
  font-weight: 500;
}

/* Footer */
.pg89-footer {
  background: #080c14;
  padding: 2.5rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(138, 43, 226, 0.2);
  margin-top: 3rem;
}

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

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

.pg89-footer-links a {
  padding: 0.5rem 1.2rem;
  background: var(--pg89-bg-card);
  color: var(--pg89-text-muted);
  border-radius: 15px;
  font-size: 1.2rem;
  transition: all 0.2s;
  border: 1px solid rgba(138, 43, 226, 0.15);
}

.pg89-footer-links a:hover {
  color: var(--pg89-secondary);
  border-color: var(--pg89-secondary);
}

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

.pg89-footer-promo-btn {
  padding: 0.8rem 1.8rem;
  background: var(--pg89-gradient);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.pg89-footer-promo-btn:hover {
  transform: scale(1.05);
}

.pg89-footer-copy {
  text-align: center;
  font-size: 1.2rem;
  color: #555;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (min-width: 769px) {
  .pg89-bottom-nav {
    display: none;
  }
  .pg89-game-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .pg89-main {
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
  }
  .pg89-header {
    max-width: 430px;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
  }
  .pg89-footer {
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 3rem;
  }
  .pg89-mobile-menu {
    display: none;
  }
  .pg89-menu-overlay {
    display: none !important;
  }
}

/* FAQ Section */
.pg89-faq-item {
  background: var(--pg89-bg-card);
  border-radius: var(--pg89-radius-sm);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(138, 43, 226, 0.1);
}

.pg89-faq-item strong {
  display: block;
  font-size: 1.4rem;
  color: var(--pg89-secondary);
  margin-bottom: 0.4rem;
}

.pg89-faq-item p {
  font-size: 1.3rem;
  color: var(--pg89-text-muted);
}

/* Features grid */
.pg89-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pg89-feature-item {
  background: var(--pg89-bg-card);
  border-radius: var(--pg89-radius-sm);
  padding: 1.2rem;
  text-align: center;
  border: 1px solid rgba(138, 43, 226, 0.1);
}

.pg89-feature-item i {
  font-size: 2.4rem;
  color: var(--pg89-primary);
  margin-bottom: 0.5rem;
}

.pg89-feature-item h3 {
  font-size: 1.3rem;
  color: var(--pg89-text-light);
  margin-bottom: 0.3rem;
}

.pg89-feature-item p {
  font-size: 1.1rem;
  color: var(--pg89-text-muted);
}

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

.pg89-testimonial p {
  font-size: 1.3rem;
  color: var(--pg89-text-muted);
  font-style: italic;
}

.pg89-testimonial span {
  font-size: 1.2rem;
  color: var(--pg89-secondary);
  margin-top: 0.5rem;
  display: block;
}

/* Payment methods */
.pg89-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.pg89-payment-item {
  background: var(--pg89-bg-card);
  padding: 0.8rem 1.5rem;
  border-radius: 20px;
  font-size: 1.2rem;
  color: var(--pg89-text-muted);
  border: 1px solid rgba(138, 43, 226, 0.15);
}

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

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

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

/* Utility classes */
.pg89-text-center { text-align: center; }
.pg89-mt-1 { margin-top: 1rem; }
.pg89-mt-2 { margin-top: 2rem; }
.pg89-mb-1 { margin-bottom: 1rem; }
.pg89-mb-2 { margin-bottom: 2rem; }
.pg89-hidden { display: none; }

/* App Download CTA */
.pg89-app-cta {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.2) 0%, rgba(238, 130, 238, 0.1) 100%);
  border-radius: var(--pg89-radius);
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(138, 43, 226, 0.3);
  margin-bottom: 1.5rem;
}

.pg89-app-cta h3 {
  font-size: 1.8rem;
  color: var(--pg89-secondary);
  margin-bottom: 1rem;
}

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

/* Badge */
.pg89-badge {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
}

.pg89-badge-hot {
  background: rgba(255, 0, 0, 0.2);
  color: #ff4444;
}

.pg89-badge-new {
  background: rgba(138, 43, 226, 0.2);
  color: var(--pg89-secondary);
}

/* Internal link */
.pg89-internal-link {
  color: var(--pg89-secondary);
  text-decoration: underline;
  cursor: pointer;
}

.pg89-internal-link:hover {
  color: var(--pg89-primary);
}
