/**
 * BD777 - Theme Stylesheet
 * All classes use w669a- prefix for namespace isolation
 * Color palette: #3A3A3A (bg), #FFEBCD (light), #F0F0F0 (neutral), #FF8C00 (accent), #9932CC (secondary)
 * Mobile-first design, max-width: 430px
 */

/* === CSS Variables === */
:root {
  --w669a-primary: #FF8C00;
  --w669a-secondary: #9932CC;
  --w669a-bg: #3A3A3A;
  --w669a-bg-dark: #2A2A2A;
  --w669a-bg-card: #4A4A4A;
  --w669a-text: #FFEBCD;
  --w669a-text-light: #F0F0F0;
  --w669a-text-muted: #B0B0B0;
  --w669a-border: #5A5A5A;
  --w669a-success: #4CAF50;
  --w669a-danger: #E53935;
  --w669a-gradient-start: #3A3A3A;
  --w669a-gradient-end: #2A2A2A;
  --w669a-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --w669a-radius: 8px;
  --w669a-radius-lg: 12px;
  --w669a-font-size-base: 1.4rem;
  --w669a-header-height: 56px;
  --w669a-bottom-nav-height: 60px;
}

/* === Reset & Base === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--w669a-bg);
  color: var(--w669a-text);
  font-size: var(--w669a-font-size-base);
  line-height: 1.5;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--w669a-primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === Container & Layout === */
.w669a-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.w669a-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.w669a-grid {
  display: grid;
  gap: 1rem;
}
.w669a-grid-2 { grid-template-columns: repeat(2, 1fr); }
.w669a-grid-3 { grid-template-columns: repeat(3, 1fr); }
.w669a-grid-4 { grid-template-columns: repeat(4, 1fr); }
.w669a-flex { display: flex; }
.w669a-flex-center { display: flex; align-items: center; justify-content: center; }
.w669a-flex-between { display: flex; align-items: center; justify-content: space-between; }

/* === Header === */
.w669a-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--w669a-header-height);
  background: var(--w669a-bg-dark);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  border-bottom: 1px solid var(--w669a-border);
  transition: box-shadow 0.3s ease;
}
.w669a-header-scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.w669a-header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}
.w669a-header-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}
.w669a-header-logo span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w669a-primary);
  letter-spacing: 0.5px;
}
.w669a-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.w669a-header-menu-btn {
  background: none;
  border: none;
  color: var(--w669a-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Buttons === */
.w669a-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: var(--w669a-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  gap: 0.4rem;
  min-height: 36px;
}
.w669a-btn-primary {
  background: var(--w669a-primary);
  color: var(--w669a-bg-dark);
}
.w669a-btn-primary:hover {
  background: #e07b00;
  transform: translateY(-1px);
}
.w669a-btn-secondary {
  background: var(--w669a-secondary);
  color: var(--w669a-text-light);
}
.w669a-btn-secondary:hover {
  background: #7e28a8;
}
.w669a-btn-outline {
  background: transparent;
  border: 1.5px solid var(--w669a-primary);
  color: var(--w669a-primary);
}
.w669a-btn-outline:hover {
  background: var(--w669a-primary);
  color: var(--w669a-bg-dark);
}
.w669a-btn-lg {
  padding: 1rem 2rem;
  font-size: 1.5rem;
  border-radius: var(--w669a-radius-lg);
}
.w669a-btn-block {
  display: flex;
  width: 100%;
  text-align: center;
}

/* === Mobile Menu === */
.w669a-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.w669a-overlay-active {
  opacity: 1;
  visibility: visible;
}
.w669a-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--w669a-bg-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 2rem 1.5rem;
}
.w669a-menu-active {
  right: 0;
}
.w669a-menu-close {
  background: none;
  border: none;
  color: var(--w669a-text);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}
.w669a-menu-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.w669a-menu-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 0.8rem;
  color: var(--w669a-text-light);
  font-size: 1.4rem;
  border-radius: var(--w669a-radius);
  transition: background 0.2s;
  text-decoration: none;
}
.w669a-menu-item:hover {
  background: var(--w669a-bg-card);
}
.w669a-menu-item i,
.w669a-menu-item .material-icons {
  font-size: 2rem;
  width: 24px;
  text-align: center;
}
.w669a-menu-promo {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--w669a-border);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* === Carousel === */
.w669a-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: var(--w669a-header-height);
  border-radius: 0 0 var(--w669a-radius-lg) var(--w669a-radius-lg);
}
.w669a-slides-wrapper {
  display: flex;
  transition: transform 0.5s ease;
}
.w669a-slide {
  min-width: 100%;
  display: none;
  cursor: pointer;
}
.w669a-slide-active {
  display: block;
}
.w669a-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.w669a-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.w669a-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.w669a-dot-active {
  background: var(--w669a-primary);
  width: 20px;
  border-radius: 4px;
}
.w669a-carousel-arrows {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 0.5rem;
  pointer-events: none;
}
.w669a-carousel-arrow {
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Cards === */
.w669a-card {
  background: var(--w669a-bg-card);
  border-radius: var(--w669a-radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--w669a-border);
}
.w669a-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--w669a-shadow);
}

/* === Game Grid === */
.w669a-game-section {
  padding: 1.5rem 0;
}
.w669a-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w669a-text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.w669a-section-title i {
  color: var(--w669a-primary);
  font-size: 2rem;
}
.w669a-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.w669a-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  text-decoration: none;
}
.w669a-game-item:hover {
  transform: scale(1.05);
}
.w669a-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--w669a-radius);
  object-fit: cover;
  border: 2px solid var(--w669a-border);
  transition: border-color 0.2s;
}
.w669a-game-item:hover img {
  border-color: var(--w669a-primary);
}
.w669a-game-item span {
  font-size: 1.1rem;
  color: var(--w669a-text-light);
  text-align: center;
  margin-top: 0.3rem;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === Content Sections === */
.w669a-section {
  padding: 1.5rem 1.2rem;
}
.w669a-section-header {
  margin-bottom: 1rem;
}
.w669a-section-header h2 {
  font-size: 1.8rem;
  color: var(--w669a-primary);
  margin-bottom: 0.4rem;
}
.w669a-section-header p {
  font-size: 1.3rem;
  color: var(--w669a-text-muted);
  line-height: 1.6;
}
.w669a-content-text {
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--w669a-text-light);
}
.w669a-content-text p {
  margin-bottom: 1rem;
}
.w669a-content-text strong {
  color: var(--w669a-primary);
}
.w669a-promo-link {
  color: var(--w669a-primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.w669a-promo-link:hover {
  color: #e07b00;
}

/* === Feature List === */
.w669a-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.w669a-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.8rem;
  background: var(--w669a-bg-card);
  border-radius: var(--w669a-radius);
  border-left: 3px solid var(--w669a-primary);
}
.w669a-feature-item i {
  color: var(--w669a-primary);
  font-size: 1.8rem;
  margin-top: 0.2rem;
}
.w669a-feature-item div {
  flex: 1;
}
.w669a-feature-item h4 {
  font-size: 1.3rem;
  color: var(--w669a-text);
  margin-bottom: 0.2rem;
}
.w669a-feature-item p {
  font-size: 1.2rem;
  color: var(--w669a-text-muted);
  line-height: 1.4;
}

/* === Testimonials === */
.w669a-testimonials {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.w669a-testimonial {
  background: var(--w669a-bg-card);
  border-radius: var(--w669a-radius-lg);
  padding: 1.2rem;
  border: 1px solid var(--w669a-border);
}
.w669a-testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}
.w669a-testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--w669a-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
}
.w669a-testimonial-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--w669a-text);
}
.w669a-testimonial-stars {
  color: #FFD700;
  font-size: 1.2rem;
}
.w669a-testimonial-text {
  font-size: 1.2rem;
  color: var(--w669a-text-muted);
  line-height: 1.5;
  font-style: italic;
}

/* === Winners Section === */
.w669a-winners {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.w669a-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: var(--w669a-bg-card);
  border-radius: var(--w669a-radius);
  border: 1px solid var(--w669a-border);
}
.w669a-winner-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.w669a-winner-game {
  font-size: 1.2rem;
  color: var(--w669a-text);
  font-weight: 500;
}
.w669a-winner-amount {
  font-size: 1.3rem;
  color: var(--w669a-primary);
  font-weight: 700;
}

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

/* === FAQ Accordion === */
.w669a-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.w669a-faq-item {
  background: var(--w669a-bg-card);
  border-radius: var(--w669a-radius);
  border: 1px solid var(--w669a-border);
  overflow: hidden;
}
.w669a-faq-question {
  padding: 1rem 1.2rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--w669a-text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.w669a-faq-question i {
  color: var(--w669a-primary);
}
.w669a-faq-answer {
  padding: 0 1.2rem 1rem;
  font-size: 1.3rem;
  color: var(--w669a-text-muted);
  line-height: 1.6;
}

/* === Footer === */
.w669a-footer {
  background: var(--w669a-bg-dark);
  padding: 2rem 1.2rem 6rem;
  border-top: 1px solid var(--w669a-border);
}
.w669a-footer-brand {
  margin-bottom: 1.5rem;
}
.w669a-footer-brand h3 {
  font-size: 1.8rem;
  color: var(--w669a-primary);
  margin-bottom: 0.6rem;
}
.w669a-footer-brand p {
  font-size: 1.2rem;
  color: var(--w669a-text-muted);
  line-height: 1.5;
}
.w669a-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.w669a-footer-link {
  font-size: 1.3rem;
  color: var(--w669a-text-muted);
  text-decoration: none;
  padding: 0.3rem 0;
  transition: color 0.2s;
}
.w669a-footer-link:hover {
  color: var(--w669a-primary);
}
.w669a-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.w669a-footer-promo .w669a-btn {
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
}
.w669a-footer-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: var(--w669a-text-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--w669a-border);
}

/* === Bottom Navigation === */
.w669a-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--w669a-bottom-nav-height);
  background: var(--w669a-bg-dark);
  border-top: 2px solid var(--w669a-primary);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.4rem;
}
.w669a-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 50px;
  background: none;
  border: none;
  color: var(--w669a-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0.4rem;
  gap: 0.2rem;
  border-radius: var(--w669a-radius);
}
.w669a-bottom-btn:hover,
.w669a-bottom-btn:focus {
  color: var(--w669a-primary);
  background: rgba(255,140,0,0.1);
}
.w669a-bottom-btn.active {
  color: var(--w669a-primary);
}
.w669a-bottom-btn i,
.w669a-bottom-btn .material-icons,
.w669a-bottom-btn ion-icon,
.w669a-bottom-btn bi {
  font-size: 22px;
}
.w669a-bottom-btn span {
  font-size: 1rem;
  white-space: nowrap;
}

/* === Badges & Tags === */
.w669a-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
}
.w669a-badge-hot {
  background: var(--w669a-danger);
  color: #fff;
}
.w669a-badge-new {
  background: var(--w669a-success);
  color: #fff;
}
.w669a-badge-vip {
  background: var(--w669a-secondary);
  color: #fff;
}

/* === RTP Table === */
.w669a-rtp-table {
  width: 100%;
  border-collapse: collapse;
}
.w669a-rtp-table th,
.w669a-rtp-table td {
  padding: 0.6rem 0.8rem;
  text-align: left;
  font-size: 1.2rem;
  border-bottom: 1px solid var(--w669a-border);
}
.w669a-rtp-table th {
  background: var(--w669a-bg-card);
  color: var(--w669a-primary);
  font-weight: 600;
}
.w669a-rtp-table td {
  color: var(--w669a-text-light);
}

/* === Utility Classes === */
.w669a-text-center { text-align: center; }
.w669a-text-primary { color: var(--w669a-primary); }
.w669a-text-secondary { color: var(--w669a-secondary); }
.w669a-mt-1 { margin-top: 1rem; }
.w669a-mt-2 { margin-top: 2rem; }
.w669a-mb-1 { margin-bottom: 1rem; }
.w669a-mb-2 { margin-bottom: 2rem; }
.w669a-p-1 { padding: 1rem; }
.w669a-p-2 { padding: 2rem; }
.w669a-hidden { display: none; }

/* === Divider === */
.w669a-divider {
  height: 1px;
  background: var(--w669a-border);
  margin: 1.5rem 0;
}

/* === App Download Section === */
.w669a-app-section {
  background: linear-gradient(135deg, var(--w669a-bg-card), var(--w669a-bg-dark));
  border-radius: var(--w669a-radius-lg);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--w669a-border);
}
.w669a-app-section h3 {
  font-size: 1.6rem;
  color: var(--w669a-primary);
  margin-bottom: 0.6rem;
}
.w669a-app-section p {
  font-size: 1.2rem;
  color: var(--w669a-text-muted);
  margin-bottom: 1rem;
}

/* === Responsive: Desktop === */
@media (min-width: 769px) {
  .w669a-bottom-nav {
    display: none;
  }
  .w669a-footer {
    padding-bottom: 2rem;
  }
}

/* === Responsive: Mobile === */
@media (max-width: 768px) {
  .w669a-main-content {
    padding-bottom: 80px;
  }
}

/* === Animations === */
@keyframes w669a-fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.w669a-animate-in {
  animation: w669a-fadeIn 0.3s ease forwards;
}

/* === Help Page Specific === */
.w669a-help-section {
  padding: 1.5rem 1.2rem;
}
.w669a-help-section h2 {
  font-size: 1.6rem;
  color: var(--w669a-primary);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.w669a-help-section h3 {
  font-size: 1.4rem;
  color: var(--w669a-text);
  margin-bottom: 0.6rem;
}
.w669a-help-content {
  font-size: 1.3rem;
  color: var(--w669a-text-light);
  line-height: 1.8;
}
.w669a-help-content p {
  margin-bottom: 0.8rem;
}
.w669a-step-list {
  counter-reset: w669a-step;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.w669a-step-item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.8rem;
  background: var(--w669a-bg-card);
  border-radius: var(--w669a-radius);
}
.w669a-step-num {
  min-width: 28px;
  height: 28px;
  background: var(--w669a-primary);
  color: var(--w669a-bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}
.w669a-step-text {
  font-size: 1.3rem;
  color: var(--w669a-text-light);
  line-height: 1.5;
}
