/* NK77 Theme Stylesheet - All classes prefixed with g39b- */
/* Root font-size for rem units */
:root {
  --g39b-primary: #FF8000;
  --g39b-secondary: #E91E63;
  --g39b-bg: #273746;
  --g39b-bg-light: #2c3e50;
  --g39b-bg-dark: #1a252f;
  --g39b-text: #FFEB3B;
  --g39b-text-light: #fff;
  --g39b-text-muted: #bdc3c7;
  --g39b-highlight: #FFB3FF;
  --g39b-border: #34495e;
  --g39b-success: #2ecc71;
  --g39b-danger: #e74c3c;
  --g39b-radius: 8px;
  --g39b-radius-lg: 12px;
  --g39b-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --g39b-shadow-lg: 0 4px 16px rgba(0,0,0,0.4);
  font-size: 62.5%;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
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.4rem;
  line-height: 1.5;
  color: var(--g39b-text);
  background-color: var(--g39b-bg);
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--g39b-primary); text-decoration: none; }
a:hover { color: var(--g39b-highlight); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ========== HEADER ========== */
.g39b-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 56px;
  background: var(--g39b-bg-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
  border-bottom: 2px solid var(--g39b-primary);
}
.g39b-header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.g39b-header-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}
.g39b-header-logo span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g39b-primary);
  letter-spacing: 1px;
}
.g39b-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.g39b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: var(--g39b-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  min-height: 36px;
}
.g39b-btn-register {
  background: var(--g39b-primary);
  color: var(--g39b-bg-dark);
}
.g39b-btn-register:hover { background: #ff9428; transform: scale(1.03); }
.g39b-btn-login {
  background: transparent;
  color: var(--g39b-text);
  border: 1.5px solid var(--g39b-text);
}
.g39b-btn-login:hover { background: rgba(255,235,59,0.1); }
.g39b-hamburger {
  background: none;
  border: none;
  color: var(--g39b-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* ========== SIDE MENU ========== */
.g39b-side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: var(--g39b-bg-dark);
  z-index: 9999;
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 2rem 0;
}
.g39b-menu-closed { transform: translateX(-100%); }
.g39b-menu-open { transform: translateX(0); }
.g39b-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.g39b-overlay-active { opacity: 1; pointer-events: auto; }
.g39b-menu-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0 1.6rem 1.6rem;
  border-bottom: 1px solid var(--g39b-border);
  margin-bottom: 1rem;
}
.g39b-menu-header img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
}
.g39b-menu-header span {
  font-size: 2rem;
  font-weight: 700;
  color: var(--g39b-primary);
}
.g39b-menu-links { padding: 0.5rem 0; }
.g39b-menu-links a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.6rem;
  color: var(--g39b-text-light);
  font-size: 1.4rem;
  transition: background 0.2s;
}
.g39b-menu-links a:hover {
  background: var(--g39b-bg-light);
  color: var(--g39b-primary);
}
.g39b-menu-links a i,
.g39b-menu-links a .material-icons {
  font-size: 2rem;
  width: 24px;
  text-align: center;
}

/* ========== CAROUSEL ========== */
.g39b-carousel {
  position: relative;
  width: 100%;
  margin-top: 56px;
  overflow: hidden;
  border-radius: 0 0 var(--g39b-radius) var(--g39b-radius);
}
.g39b-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.g39b-slide-active { display: block; }
.g39b-carousel-slide img {
  width: 100%;
  height: auto;
  min-height: 180px;
  object-fit: cover;
}
.g39b-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.g39b-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.g39b-dot-active { background: var(--g39b-primary); transform: scale(1.2); }

/* ========== MAIN CONTENT ========== */
.g39b-main {
  padding: 1.2rem;
  padding-top: 0.8rem;
}
@media (max-width: 768px) {
  .g39b-main { padding-bottom: 80px; }
}
.g39b-container { max-width: 430px; margin: 0 auto; }

/* ========== SECTION HEADINGS ========== */
.g39b-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g39b-text);
  margin: 1.6rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--g39b-primary);
}
.g39b-section-title i {
  margin-right: 0.5rem;
  color: var(--g39b-primary);
}

/* ========== H1 TITLE ========== */
.g39b-h1-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--g39b-primary);
  text-align: center;
  margin: 1.2rem 0;
  line-height: 1.3;
}

/* ========== GAME GRID ========== */
.g39b-game-section { margin-bottom: 2rem; }
.g39b-cat-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--g39b-highlight);
  margin: 1rem 0 0.6rem;
  padding-left: 0.4rem;
  border-left: 3px solid var(--g39b-primary);
}
.g39b-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.g39b-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  text-align: center;
}
.g39b-game-item:hover { transform: scale(1.05); }
.g39b-game-item:active { transform: scale(0.97); }
.g39b-game-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--g39b-radius);
  object-fit: cover;
  border: 2px solid var(--g39b-border);
  margin-bottom: 0.3rem;
}
.g39b-game-name {
  font-size: 1rem;
  color: var(--g39b-text-muted);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70px;
}

/* ========== CONTENT CARDS ========== */
.g39b-card {
  background: var(--g39b-bg-light);
  border-radius: var(--g39b-radius-lg);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--g39b-border);
}
.g39b-card h2 {
  font-size: 1.6rem;
  color: var(--g39b-primary);
  margin-bottom: 0.8rem;
}
.g39b-card h3 {
  font-size: 1.4rem;
  color: var(--g39b-highlight);
  margin: 0.8rem 0 0.4rem;
}
.g39b-card p {
  font-size: 1.3rem;
  color: var(--g39b-text-muted);
  line-height: 1.6;
  margin-bottom: 0.6rem;
}
.g39b-card ul { padding-left: 1.4rem; margin-bottom: 0.6rem; }
.g39b-card ul li {
  font-size: 1.3rem;
  color: var(--g39b-text-muted);
  line-height: 1.6;
  list-style: disc;
  margin-bottom: 0.3rem;
}

/* ========== PROMO LINKS ========== */
.g39b-promo-link {
  display: inline-block;
  color: var(--g39b-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  font-size: 1.3rem;
  transition: color 0.2s;
}
.g39b-promo-link:hover { color: var(--g39b-highlight); }
.g39b-btn-promo {
  display: block;
  width: 100%;
  padding: 1.2rem;
  background: linear-gradient(135deg, var(--g39b-primary), var(--g39b-secondary));
  color: var(--g39b-text-light);
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  border: none;
  border-radius: var(--g39b-radius);
  cursor: pointer;
  transition: all 0.2s;
  margin: 1rem 0;
}
.g39b-btn-promo:hover { transform: scale(1.02); box-shadow: var(--g39b-shadow-lg); }

/* ========== INTERNAL LINKS ========== */
.g39b-internal-link {
  color: var(--g39b-highlight);
  text-decoration: underline;
  font-weight: 600;
}

/* ========== TAB COMPONENT ========== */
.g39b-tabs-nav {
  display: flex;
  overflow-x: auto;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
}
.g39b-tab-btn {
  padding: 0.6rem 1.2rem;
  background: var(--g39b-bg-light);
  color: var(--g39b-text-muted);
  border: 1px solid var(--g39b-border);
  border-radius: var(--g39b-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.g39b-tab-active {
  background: var(--g39b-primary);
  color: var(--g39b-bg-dark);
  border-color: var(--g39b-primary);
}
.g39b-tab-panel { display: none; }
.g39b-panel-active { display: block; }

/* ========== FAQ ========== */
.g39b-faq-item {
  border-bottom: 1px solid var(--g39b-border);
  padding: 1rem 0;
}
.g39b-faq-q {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--g39b-text);
  margin-bottom: 0.4rem;
}
.g39b-faq-a {
  font-size: 1.3rem;
  color: var(--g39b-text-muted);
  line-height: 1.5;
}

/* ========== FOOTER ========== */
.g39b-footer {
  background: var(--g39b-bg-dark);
  padding: 2rem 1.2rem;
  margin-top: 2rem;
  border-top: 2px solid var(--g39b-primary);
}
.g39b-footer-brand {
  text-align: center;
  margin-bottom: 1.6rem;
}
.g39b-footer-brand h3 {
  font-size: 2rem;
  color: var(--g39b-primary);
  margin-bottom: 0.6rem;
}
.g39b-footer-brand p {
  font-size: 1.2rem;
  color: var(--g39b-text-muted);
  line-height: 1.5;
}
.g39b-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.6rem;
}
.g39b-footer-promos .g39b-btn {
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
}
.g39b-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.6rem;
}
.g39b-footer-links a {
  font-size: 1.2rem;
  color: var(--g39b-text-muted);
  transition: color 0.2s;
}
.g39b-footer-links a:hover { color: var(--g39b-primary); }
.g39b-footer-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.6rem;
}
.g39b-footer-partners img {
  height: 24px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.g39b-footer-partners img:hover { opacity: 1; }
.g39b-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--g39b-text-muted);
  opacity: 0.7;
}

/* ========== BOTTOM NAV ========== */
.g39b-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: var(--g39b-bg-dark);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 2px solid var(--g39b-primary);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}
.g39b-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  color: var(--g39b-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  gap: 2px;
}
.g39b-nav-btn i,
.g39b-nav-btn .material-icons {
  font-size: 22px;
  transition: transform 0.2s;
}
.g39b-nav-btn span {
  font-size: 1rem;
  line-height: 1;
}
.g39b-nav-btn:hover,
.g39b-nav-btn.g39b-nav-active {
  color: var(--g39b-primary);
}
.g39b-nav-btn:hover i,
.g39b-nav-btn:hover .material-icons {
  transform: scale(1.15);
}
.g39b-nav-btn:active i,
.g39b-nav-btn:active .material-icons {
  transform: scale(0.9);
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .g39b-bottom-nav { display: none; }
}

/* ========== WINNERS LIST ========== */
.g39b-winners-list { margin-top: 0.6rem; }
.g39b-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--g39b-border);
  font-size: 1.2rem;
}
.g39b-winner-name { color: var(--g39b-text); font-weight: 600; }
.g39b-winner-game { color: var(--g39b-text-muted); flex: 1; margin-left: 0.8rem; }
.g39b-winner-amount { color: var(--g39b-success); font-weight: 700; }

/* ========== PAYMENT METHODS ========== */
.g39b-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 0.8rem;
}
.g39b-payment-item {
  background: var(--g39b-bg-light);
  border: 1px solid var(--g39b-border);
  border-radius: var(--g39b-radius);
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--g39b-text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ========== TESTIMONIALS ========== */
.g39b-testimonial {
  background: var(--g39b-bg-light);
  border-radius: var(--g39b-radius);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--g39b-primary);
}
.g39b-testimonial-text {
  font-size: 1.3rem;
  color: var(--g39b-text-muted);
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 0.4rem;
}
.g39b-testimonial-author {
  font-size: 1.1rem;
  color: var(--g39b-primary);
  font-weight: 600;
}

/* ========== FEATURES GRID ========== */
.g39b-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-top: 0.8rem;
}
.g39b-feature-item {
  background: var(--g39b-bg-light);
  border-radius: var(--g39b-radius);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--g39b-border);
}
.g39b-feature-item i,
.g39b-feature-item .material-icons {
  font-size: 2.4rem;
  color: var(--g39b-primary);
  margin-bottom: 0.4rem;
}
.g39b-feature-item h4 {
  font-size: 1.2rem;
  color: var(--g39b-text);
  margin-bottom: 0.2rem;
}
.g39b-feature-item p {
  font-size: 1.1rem;
  color: var(--g39b-text-muted);
}

/* ========== APP CTA ========== */
.g39b-app-cta {
  background: linear-gradient(135deg, var(--g39b-primary), #ff9428);
  border-radius: var(--g39b-radius-lg);
  padding: 1.6rem;
  text-align: center;
  margin: 1.2rem 0;
}
.g39b-app-cta h3 {
  font-size: 1.8rem;
  color: var(--g39b-bg-dark);
  margin-bottom: 0.6rem;
}
.g39b-app-cta p {
  font-size: 1.3rem;
  color: var(--g39b-bg-dark);
  margin-bottom: 1rem;
  opacity: 0.85;
}
.g39b-app-cta .g39b-btn {
  background: var(--g39b-bg-dark);
  color: var(--g39b-text);
  padding: 0.8rem 2rem;
  font-size: 1.4rem;
}

/* ========== RTP TABLE ========== */
.g39b-rtp-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.8rem;
  font-size: 1.2rem;
}
.g39b-rtp-table th {
  background: var(--g39b-primary);
  color: var(--g39b-bg-dark);
  padding: 0.6rem;
  text-align: left;
  font-weight: 700;
}
.g39b-rtp-table td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--g39b-border);
  color: var(--g39b-text-muted);
}
.g39b-rtp-table tr:nth-child(even) { background: var(--g39b-bg-light); }

/* ========== RESPONSIVE HELPERS ========== */
.g39b-text-center { text-align: center; }
.g39b-mt-1 { margin-top: 0.8rem; }
.g39b-mt-2 { margin-top: 1.6rem; }
.g39b-mb-1 { margin-bottom: 0.8rem; }
.g39b-mb-2 { margin-bottom: 1.6rem; }
.g39b-hidden { display: none; }

/* ========== DESKTOP OVERRIDES ========== */
@media (min-width: 769px) {
  body { max-width: 100%; }
  .g39b-header { max-width: 100%; }
  .g39b-bottom-nav { display: none; }
  .g39b-main { padding-bottom: 2rem; }
  .g39b-game-grid { grid-template-columns: repeat(6, 1fr); }
}
