/**
 * 399bet APK - Core CSS Module
 * Prefix: s83f-
 * Color palette: #2D2D2D | #4B0082 | #DDA0DD
 */

:root {
  --s83f-primary: #4B0082;
  --s83f-secondary: #DDA0DD;
  --s83f-bg: #2D2D2D;
  --s83f-bg-dark: #1a1a1a;
  --s83f-bg-card: #3a3a3a;
  --s83f-text: #f0e6f6;
  --s83f-text-muted: #c4a8d4;
  --s83f-accent: #9b30ff;
  --s83f-gold: #ffd700;
  --s83f-border: #5a2d82;
  --s83f-radius: 0.8rem;
  --s83f-transition: 0.3s ease;
  font-size: 62.5%;
}

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

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

a { color: var(--s83f-secondary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.s83f-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 5.2rem;
  background: linear-gradient(135deg, #1a0033 0%, #3d0066 100%);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem; z-index: 1000;
  border-bottom: 1px solid var(--s83f-border);
  box-shadow: 0 2px 12px rgba(75,0,130,0.5);
}
.s83f-logo-wrap {
  display: flex; align-items: center; gap: 0.6rem;
}
.s83f-logo-wrap img { width: 2.8rem; height: 2.8rem; border-radius: 0.4rem; }
.s83f-logo-text { font-size: 1.5rem; font-weight: 700; color: var(--s83f-secondary); }
.s83f-header-btns { display: flex; gap: 0.5rem; }
.s83f-btn-register {
  background: linear-gradient(135deg, var(--s83f-accent), #6a0dad);
  color: #fff; border: none; padding: 0.6rem 1.2rem; border-radius: 2rem;
  font-size: 1.2rem; font-weight: 600; cursor: pointer;
  transition: transform var(--s83f-transition);
}
.s83f-btn-login {
  background: transparent; color: var(--s83f-secondary);
  border: 1px solid var(--s83f-secondary); padding: 0.6rem 1.2rem;
  border-radius: 2rem; font-size: 1.2rem; cursor: pointer;
  transition: background var(--s83f-transition);
}
.s83f-btn-register:active { transform: scale(0.95); }
.s83f-btn-login:active { background: rgba(221,160,221,0.15); }

/* Mobile menu toggle */
.s83f-menu-toggle {
  background: none; border: none; color: var(--s83f-secondary);
  font-size: 2rem; cursor: pointer; padding: 0.4rem;
}

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

/* Mobile slide menu */
.s83f-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: linear-gradient(180deg, #1a0033, #2D2D2D);
  z-index: 9999; transition: right 0.35s ease;
  padding: 6rem 0 2rem; overflow-y: auto;
}
.app83f-menu-active { right: 0 !important; }
.s83f-mobile-menu a {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.2rem 1.6rem; color: var(--s83f-text);
  font-size: 1.4rem; border-bottom: 1px solid rgba(75,0,130,0.3);
  transition: background var(--s83f-transition);
}
.s83f-mobile-menu a:hover, .s83f-mobile-menu a:active {
  background: rgba(155,48,255,0.15);
}

/* Main content spacing for fixed header */
.s83f-main { padding-top: 5.6rem; }

/* Carousel */
.s83f-carousel {
  position: relative; width: 100%; overflow: hidden;
  border-radius: 0 0 var(--s83f-radius) var(--s83f-radius);
}
.s83f-slide {
  width: 100%; aspect-ratio: 16/8; object-fit: cover;
  display: block; transition: opacity 0.5s ease; cursor: pointer;
}
.s83f-dots {
  position: absolute; bottom: 0.8rem; left: 50%;
  transform: translateX(-50%); display: flex; gap: 0.5rem;
}
.s83f-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: rgba(221,160,221,0.5); border: none; cursor: pointer;
}
.s83f-dot-active { background: var(--s83f-secondary); }

/* Section container */
.s83f-section {
  padding: 1.6rem 1rem; margin-bottom: 0.4rem;
}
.s83f-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--s83f-secondary);
  margin-bottom: 1rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--s83f-primary);
}

/* Game grid */
.s83f-cat-title {
  font-size: 1.5rem; font-weight: 600; color: var(--s83f-gold);
  margin: 1.2rem 0 0.8rem; padding-left: 0.4rem;
  border-left: 3px solid var(--s83f-accent);
}
.s83f-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem; margin-bottom: 1rem;
}
.s83f-game-item {
  text-align: center; cursor: pointer;
  transition: transform var(--s83f-transition);
}
.s83f-game-item:active { transform: scale(0.92); }
.s83f-game-icon {
  width: 100%; aspect-ratio: 1; border-radius: 0.6rem;
  object-fit: cover; border: 1px solid var(--s83f-border);
}
.s83f-game-name {
  font-size: 1rem; color: var(--s83f-text-muted);
  margin-top: 0.3rem; line-height: 1.2rem;
  overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}

/* Content blocks */
.s83f-content-block {
  background: var(--s83f-bg-card); border-radius: var(--s83f-radius);
  padding: 1.4rem; margin-bottom: 1rem;
  border: 1px solid rgba(75,0,130,0.3);
}
.s83f-content-block h2 {
  font-size: 1.6rem; color: var(--s83f-secondary); margin-bottom: 0.8rem;
}
.s83f-content-block h3 {
  font-size: 1.4rem; color: var(--s83f-accent); margin: 0.8rem 0 0.4rem;
}
.s83f-content-block p {
  font-size: 1.3rem; color: var(--s83f-text); line-height: 1.6rem;
  margin-bottom: 0.6rem;
}

/* Promo button / link */
.s83f-promo-btn {
  display: inline-block; background: linear-gradient(135deg, var(--s83f-accent), var(--s83f-primary));
  color: #fff; padding: 1rem 2rem; border-radius: 2.5rem;
  font-size: 1.4rem; font-weight: 600; text-align: center;
  cursor: pointer; border: none; margin: 0.6rem 0;
  transition: transform var(--s83f-transition);
  width: 100%;
}
.s83f-promo-btn:active { transform: scale(0.96); }
.s83f-promo-text {
  color: var(--s83f-secondary); font-weight: 600;
  cursor: pointer; text-decoration: underline;
}

/* Winner list */
.s83f-winner-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0; border-bottom: 1px solid rgba(75,0,130,0.2);
  font-size: 1.2rem;
}
.s83f-winner-name { color: var(--s83f-gold); }
.s83f-winner-amount { color: #4ade80; font-weight: 600; }

/* Payment methods */
.s83f-payment-row {
  display: flex; gap: 0.8rem; flex-wrap: wrap;
  justify-content: center; padding: 0.6rem 0;
}
.s83f-payment-item {
  background: rgba(75,0,130,0.2); border-radius: 0.6rem;
  padding: 0.5rem 1rem; font-size: 1.1rem; color: var(--s83f-text-muted);
}

/* Testimonials */
.s83f-testimonial {
  background: rgba(75,0,130,0.15); border-radius: 0.6rem;
  padding: 1rem; margin-bottom: 0.8rem; border-left: 3px solid var(--s83f-accent);
}
.s83f-testimonial p { font-size: 1.2rem; font-style: italic; margin-bottom: 0.4rem; }
.s83f-testimonial-author { color: var(--s83f-gold); font-size: 1.1rem; font-weight: 600; }

/* Footer */
.s83f-footer {
  background: var(--s83f-bg-dark); padding: 2rem 1rem 8rem;
  border-top: 2px solid var(--s83f-primary);
}
.s83f-footer-brand { font-size: 1.2rem; color: var(--s83f-text-muted); margin-bottom: 1rem; line-height: 1.5rem; }
.s83f-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0;
}
.s83f-footer-link {
  background: rgba(155,48,255,0.15); color: var(--s83f-secondary);
  padding: 0.5rem 1rem; border-radius: 2rem;
  font-size: 1.1rem; cursor: pointer; border: 1px solid var(--s83f-border);
}
.s83f-footer-copy {
  font-size: 1rem; color: #666; text-align: center; margin-top: 1.2rem;
}

/* Bottom navigation */
.s83f-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 6rem;
  background: linear-gradient(180deg, #2a004d 0%, #1a0033 100%);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000;
  border-top: 1px solid var(--s83f-border);
  box-shadow: 0 -2px 12px rgba(75,0,130,0.4);
}
.s83f-nav-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 6rem; min-height: 5rem;
  background: none; border: none; color: var(--s83f-text-muted);
  cursor: pointer; transition: all var(--s83f-transition);
  padding: 0.4rem;
}
.s83f-nav-btn:active { transform: scale(0.9); }
.s83f-nav-btn .nav-icon { font-size: 2.2rem; margin-bottom: 0.2rem; }
.s83f-nav-btn .nav-label { font-size: 1rem; }
.s83f-nav-active { color: var(--s83f-secondary); }
.s83f-nav-active .nav-icon { text-shadow: 0 0 8px rgba(221,160,221,0.6); }

/* Help page styles */
.s83f-help-section { margin-bottom: 1.6rem; }
.s83f-help-section h2 {
  font-size: 1.6rem; color: var(--s83f-secondary);
  margin-bottom: 0.6rem; padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--s83f-border);
}
.s83f-help-section p {
  font-size: 1.3rem; line-height: 1.6rem; margin-bottom: 0.6rem;
}
.s83f-faq-item {
  background: var(--s83f-bg-card); border-radius: 0.6rem;
  padding: 1rem; margin-bottom: 0.8rem;
  border-left: 3px solid var(--s83f-accent);
}
.s83f-faq-item h3 {
  font-size: 1.3rem; color: var(--s83f-gold); margin-bottom: 0.4rem;
}
.s83f-faq-item p {
  font-size: 1.2rem; color: var(--s83f-text-muted); line-height: 1.5rem;
}

/* Responsive */
@media (min-width: 769px) {
  .s83f-bottom-nav { display: none; }
  .s83f-footer { padding-bottom: 2rem; }
}
@media (max-width: 768px) {
  .s83f-main { padding-bottom: 7rem; }
}

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