/* x999.homes - Main Stylesheet */
/* All classes use pg98- prefix for namespace isolation */
/* Mobile-first design, max-width 430px */

:root {
  --pg98-primary: #80CBC4;
  --pg98-secondary: #E5E5E5;
  --pg98-highlight: #BAFFC9;
  --pg98-bg: #212F3D;
  --pg98-bg-light: #2A3B4D;
  --pg98-bg-card: #34495E;
  --pg98-text: #E5E5E5;
  --pg98-text-muted: #A0B0C0;
  --pg98-gold: #FFD700;
  --pg98-gradient: linear-gradient(135deg, #80CBC4, #BAFFC9);
  --pg98-header-height: 56px;
  --pg98-bottom-nav-height: 62px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 62.5%; }

body {
  font-family: 'Segoe UI', 'Noto Sans Bengali', 'SolaimanLipi', sans-serif;
  background: var(--pg98-bg);
  color: var(--pg98-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--pg98-primary); text-decoration: none; }

/* Layout containers */
.pg98-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.pg98-wrapper { padding-top: var(--pg98-header-height); padding-bottom: calc(var(--pg98-bottom-nav-height) + 2rem); }

/* Header */
.pg98-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--pg98-header-height);
  background: var(--pg98-bg); border-bottom: 2px solid var(--pg98-primary);
  z-index: 1000; display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem; box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.pg98-logo { display: flex; align-items: center; gap: 0.6rem; }
.pg98-logo img { width: 30px; height: 30px; border-radius: 5px; }
.pg98-logo-text { font-size: 1.7rem; font-weight: 700; color: var(--pg98-primary); }
.pg98-header-actions { display: flex; align-items: center; gap: 0.5rem; }

/* Buttons */
.pg98-btn {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.5rem 1rem; border-radius: 6px; font-size: 1.2rem;
  font-weight: 600; cursor: pointer; border: none;
  transition: transform 0.2s, box-shadow 0.2s; min-height: 34px;
}
.pg98-btn-register { background: var(--pg98-gradient); color: var(--pg98-bg); }
.pg98-btn-login { background: transparent; color: var(--pg98-primary); border: 1px solid var(--pg98-primary); }
.pg98-btn:hover { transform: scale(1.05); box-shadow: 0 3px 8px rgba(128,203,196,0.3); }

.pg98-menu-toggle {
  background: transparent; border: none; color: var(--pg98-primary);
  font-size: 1.8rem; cursor: pointer; padding: 0.4rem; min-width: 36px;
}

/* Mobile Menu */
.pg98-mobile-menu {
  position: fixed; top: var(--pg98-header-height); left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; background: var(--pg98-bg-light);
  border-bottom: 2px solid var(--pg98-primary); z-index: 9999;
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.pg98-mobile-menu.pg98-menu-open { max-height: 520px; }
.pg98-mobile-menu ul { list-style: none; padding: 0.5rem 0; }
.pg98-mobile-menu li a {
  display: block; padding: 1rem 1.5rem; color: var(--pg98-text);
  font-size: 1.3rem; border-bottom: 1px solid rgba(128,203,196,0.1);
}
.pg98-mobile-menu li a:hover { background: rgba(128,203,196,0.1); color: var(--pg98-primary); }

/* Carousel */
.pg98-carousel {
  position: relative; width: 100%; margin: 1.5rem 0;
  border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.pg98-carousel-track { position: relative; width: 100%; height: 190px; }
.pg98-carousel-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.5s ease; cursor: pointer;
}
.pg98-carousel-slide.pg98-active { opacity: 1; }
.pg98-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.pg98-carousel-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.pg98-carousel-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.5); cursor: pointer; border: none;
}
.pg98-carousel-dot.pg98-active { background: var(--pg98-primary); }

/* Sections */
.pg98-section { margin: 2rem 0; padding: 0 1.2rem; }
.pg98-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--pg98-primary);
  margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--pg98-primary);
  display: flex; align-items: center; gap: 0.5rem;
}
.pg98-h1 {
  font-size: 2rem; font-weight: 700; color: var(--pg98-highlight);
  text-align: center; margin: 1.5rem 0; line-height: 1.3;
}

/* Filter tabs */
.pg98-filter-bar { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.5rem 0; margin-bottom: 1rem; }
.pg98-filter-tab {
  padding: 0.4rem 1rem; border-radius: 20px; background: var(--pg98-bg-card);
  color: var(--pg98-text); font-size: 1.1rem; cursor: pointer; border: 1px solid transparent;
  white-space: nowrap;
}
.pg98-filter-tab.pg98-active { background: var(--pg98-primary); color: var(--pg98-bg); font-weight: 600; }

/* Game Grid */
.pg98-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin: 1rem 0; }
.pg98-game-card {
  background: var(--pg98-bg-card); border-radius: 8px; overflow: hidden;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; text-align: center;
}
.pg98-game-card:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(128,203,196,0.3); }
.pg98-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pg98-game-name {
  padding: 0.4rem; font-size: 1rem; color: var(--pg98-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Cards */
.pg98-card {
  background: var(--pg98-bg-card); border-radius: 10px; padding: 1.2rem;
  margin: 1rem 0; border-left: 3px solid var(--pg98-primary);
}
.pg98-card h3 { color: var(--pg98-primary); font-size: 1.5rem; margin-bottom: 0.6rem; }
.pg98-card p { color: var(--pg98-text); font-size: 1.2rem; line-height: 1.6; margin-bottom: 0.5rem; }

/* Promo links and buttons */
.pg98-promo-link { color: var(--pg98-highlight); font-weight: 700; cursor: pointer; text-decoration: underline; }
.pg98-promo-btn {
  display: inline-block; background: var(--pg98-gradient); color: var(--pg98-bg);
  padding: 0.9rem 2rem; border-radius: 8px; font-weight: 700; font-size: 1.3rem;
  margin: 0.8rem 0; cursor: pointer; text-align: center; border: none;
  transition: transform 0.2s;
}
.pg98-promo-btn:hover { transform: scale(1.05); }

/* Feature grid */
.pg98-feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin: 1rem 0; }
.pg98-feature-item { background: var(--pg98-bg-card); padding: 1rem; border-radius: 8px; text-align: center; }
.pg98-feature-item .pg98-feature-icon { font-size: 2.2rem; color: var(--pg98-primary); margin-bottom: 0.4rem; }
.pg98-feature-item h4 { font-size: 1.2rem; color: var(--pg98-highlight); margin-bottom: 0.3rem; }
.pg98-feature-item p { font-size: 1rem; color: var(--pg98-text-muted); }

/* RTP table */
.pg98-rtp-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 1.1rem; }
.pg98-rtp-table th, .pg98-rtp-table td { padding: 0.6rem; text-align: left; border-bottom: 1px solid rgba(128,203,196,0.2); }
.pg98-rtp-table th { background: var(--pg98-bg-card); color: var(--pg98-primary); }
.pg98-rtp-table td { color: var(--pg98-text); }
.pg98-rtp-table td.pg98-rtp-high { color: var(--pg98-highlight); font-weight: 700; }

/* Testimonials */
.pg98-testimonial { background: var(--pg98-bg-card); border-radius: 8px; padding: 1rem; margin: 0.6rem 0; border-left: 3px solid var(--pg98-highlight); }
.pg98-testimonial p { font-size: 1.2rem; color: var(--pg98-text); font-style: italic; }
.pg98-testimonial .pg98-author { display: block; margin-top: 0.5rem; color: var(--pg98-primary); font-weight: 600; font-size: 1.1rem; }

/* Payment methods */
.pg98-payment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin: 1rem 0; }
.pg98-payment-item { background: var(--pg98-bg-card); padding: 0.8rem; border-radius: 6px; text-align: center; }
.pg98-payment-item i, .pg98-payment-item .material-icons-outlined { font-size: 1.9rem; color: var(--pg98-primary); }
.pg98-payment-item span { display: block; font-size: 0.95rem; margin-top: 0.3rem; }

/* Winners */
.pg98-winner {
  display: flex; justify-content: space-between; padding: 0.6rem 1rem;
  background: var(--pg98-bg-card); margin: 0.4rem 0; border-radius: 6px; font-size: 1.1rem;
}
.pg98-winner .pg98-amount { color: var(--pg98-gold); font-weight: 700; }
.pg98-winner .pg98-winner-game { color: var(--pg98-primary); }

/* App download CTA */
.pg98-app-cta {
  background: linear-gradient(135deg, var(--pg98-bg-card), var(--pg98-bg-light));
  border-radius: 12px; padding: 1.5rem; text-align: center; margin: 1.5rem 0;
  border: 1px solid var(--pg98-primary);
}
.pg98-app-cta h3 { color: var(--pg98-primary); font-size: 1.6rem; margin-bottom: 0.5rem; }
.pg98-app-cta p { color: var(--pg98-text); font-size: 1.2rem; margin-bottom: 0.8rem; }

/* Tricks list */
.pg98-trick-item { display: flex; gap: 0.6rem; padding: 0.6rem 0; border-bottom: 1px solid rgba(128,203,196,0.1); }
.pg98-trick-item .pg98-trick-icon { color: var(--pg98-highlight); font-size: 1.4rem; flex-shrink: 0; }
.pg98-trick-item p { font-size: 1.15rem; color: var(--pg98-text); }

/* FAQ */
.pg98-faq-item { background: var(--pg98-bg-card); border-radius: 8px; padding: 1rem; margin: 0.5rem 0; }
.pg98-faq-item h4 { color: var(--pg98-primary); font-size: 1.2rem; margin-bottom: 0.4rem; }
.pg98-faq-item p { font-size: 1.1rem; color: var(--pg98-text); }

/* Footer */
.pg98-footer {
  background: var(--pg98-bg-light); padding: 2rem 1.2rem; margin-top: 2rem;
  border-top: 2px solid var(--pg98-primary);
}
.pg98-footer-brand { font-size: 1.2rem; color: var(--pg98-text-muted); line-height: 1.6; margin-bottom: 1rem; }
.pg98-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.pg98-footer-links a {
  color: var(--pg98-primary); font-size: 1.1rem; padding: 0.3rem 0.6rem;
  background: var(--pg98-bg-card); border-radius: 4px;
}
.pg98-footer-links a:hover { background: var(--pg98-primary); color: var(--pg98-bg); }
.pg98-footer-promo { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
.pg98-footer-copyright {
  text-align: center; color: var(--pg98-text-muted); font-size: 1rem;
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(128,203,196,0.2);
}

/* Bottom Nav */
.pg98-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--pg98-bottom-nav-height);
  background: var(--pg98-bg-light); border-top: 2px solid var(--pg98-primary);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}
.pg98-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: transparent; border: none; color: var(--pg98-text-muted);
  font-size: 1rem; cursor: pointer; padding: 0.3rem; min-width: 60px; min-height: 58px;
  transition: color 0.2s, transform 0.2s; flex: 1;
}
.pg98-nav-btn i, .pg98-nav-btn .material-icons-outlined, .pg98-nav-btn ion-icon, .pg98-nav-btn .bi {
  font-size: 24px; margin-bottom: 2px;
}
.pg98-nav-btn:hover { color: var(--pg98-primary); transform: scale(1.08); }
.pg98-nav-btn.pg98-active { color: var(--pg98-highlight); }
.pg98-nav-btn .pg98-nav-badge {
  position: absolute; top: 4px; right: 16px; background: var(--pg98-gold);
  color: var(--pg98-bg); font-size: 0.8rem; border-radius: 50%; width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* Desktop: hide bottom nav, widen layout */
@media (min-width: 769px) {
  .pg98-bottom-nav { display: none; }
  body { max-width: 768px; }
}

/* Mobile: ensure bottom padding for nav clearance */
@media (max-width: 768px) {
  .pg98-wrapper { padding-bottom: calc(var(--pg98-bottom-nav-height) + 2rem); }
}

/* Utility */
.pg98-text-center { text-align: center; }
.pg98-mt-1 { margin-top: 1rem; }
.pg98-mb-1 { margin-bottom: 1rem; }
.pg98-highlight-text { color: var(--pg98-highlight); font-weight: 700; }
