/*
 * 777 Means - Core Stylesheet
 * All classes use va32- prefix for namespace isolation
 * Color palette: #FF6347 | #FFA500 | #AFEEEE | #BF360C | #0D1117
 */

/* CSS Variables */
:root {
  --va32-primary: #FF6347;
  --va32-accent: #FFA500;
  --va32-light: #AFEEEE;
  --va32-deep: #BF360C;
  --va32-bg: #0D1117;
  --va32-bg-card: #161B22;
  --va32-bg-alt: #1C2333;
  --va32-text: #E6EDF3;
  --va32-text-muted: #8B949E;
  --va32-border: #30363D;
  --va32-gold: #FFD700;
  --va32-radius: 8px;
  --va32-radius-lg: 12px;
  --va32-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--va32-bg);
  color: var(--va32-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--va32-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--va32-primary); }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.va32-container { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; width: 100%; }
.va32-wrapper { width: 100%; overflow: hidden; }

/* Header */
.va32-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--va32-bg) 0%, #1a1f2e 100%);
  border-bottom: 1px solid var(--va32-border);
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem;
  backdrop-filter: blur(10px);
}
.va32-header-logo {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none;
}
.va32-header-logo img { width: 28px; height: 28px; border-radius: 6px; }
.va32-header-logo span {
  font-size: 1.6rem; font-weight: 700;
  background: linear-gradient(90deg, var(--va32-primary), var(--va32-accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.va32-header-actions { display: flex; gap: 0.6rem; align-items: center; }
.va32-header-menu-btn {
  background: none; border: none; color: var(--va32-text);
  font-size: 2.2rem; cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* Buttons */
.va32-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.2rem; border-radius: var(--va32-radius);
  font-size: 1.2rem; font-weight: 600; cursor: pointer;
  transition: all 0.25s ease; border: none; text-decoration: none;
  min-height: 36px; line-height: 1.4;
}
.va32-btn-primary {
  background: linear-gradient(135deg, var(--va32-primary), var(--va32-deep));
  color: #fff;
}
.va32-btn-primary:hover {
  background: linear-gradient(135deg, var(--va32-deep), var(--va32-primary));
  color: #fff; transform: translateY(-1px);
}
.va32-btn-accent {
  background: linear-gradient(135deg, var(--va32-accent), #e69500);
  color: var(--va32-bg);
}
.va32-btn-accent:hover {
  background: linear-gradient(135deg, #e69500, var(--va32-accent));
  color: var(--va32-bg); transform: translateY(-1px);
}
.va32-btn-outline {
  background: transparent; color: var(--va32-primary);
  border: 1.5px solid var(--va32-primary);
}
.va32-btn-outline:hover {
  background: var(--va32-primary); color: #fff;
}
.va32-btn-lg {
  padding: 1rem 2rem; font-size: 1.5rem; border-radius: var(--va32-radius-lg);
  min-height: 48px;
}

/* Mobile Menu */
.va32-menu-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9998; display: none;
}
.va32-mobile-menu {
  position: fixed; top: 0; left: 0; bottom: 0; width: 280px;
  background: var(--va32-bg-alt); z-index: 9999;
  transform: translateX(-100%); transition: transform 0.3s ease;
  padding: 2rem 1.5rem; overflow-y: auto;
}
.va32-mobile-menu-header {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 2rem; padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--va32-border);
}
.va32-mobile-menu-header img { width: 32px; height: 32px; border-radius: 8px; }
.va32-mobile-menu-header span { font-size: 1.6rem; font-weight: 700; color: var(--va32-primary); }
.va32-mobile-menu-close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  background: none; border: none; color: var(--va32-text-muted);
  font-size: 2rem; cursor: pointer;
}
.va32-mobile-menu nav { display: flex; flex-direction: column; gap: 0.4rem; }
.va32-mobile-menu a {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem; border-radius: var(--va32-radius);
  color: var(--va32-text); font-size: 1.4rem; font-weight: 500;
  transition: all 0.2s;
}
.va32-mobile-menu a:hover {
  background: rgba(255, 99, 71, 0.1); color: var(--va32-primary);
}
.va32-mobile-menu a i, .va32-mobile-menu a .material-icons {
  font-size: 2rem; width: 2.4rem; text-align: center;
}

/* Bottom Navigation */
.va32-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #1a1f2e 0%, var(--va32-bg) 100%);
  border-top: 1px solid var(--va32-border);
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; padding: 0 0.4rem;
}
.va32-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; background: none; border: none;
  color: var(--va32-text-muted); font-size: 1rem; cursor: pointer;
  min-width: 60px; min-height: 48px; transition: all 0.25s ease;
  padding: 0.4rem; position: relative;
}
.va32-bottom-nav-btn i,
.va32-bottom-nav-btn .material-icons,
.va32-bottom-nav-btn ion-icon,
.va32-bottom-nav-btn bi {
  font-size: 2.2rem; margin-bottom: 0.2rem; transition: all 0.25s;
}
.va32-bottom-nav-btn span { font-size: 1rem; font-weight: 500; }
.va32-bottom-nav-btn:hover,
.va32-nav-active {
  color: var(--va32-primary) !important;
}
.va32-nav-active::after {
  content: ''; position: absolute; top: -1px; left: 50%;
  transform: translateX(-50%); width: 24px; height: 3px;
  background: var(--va32-primary); border-radius: 0 0 3px 3px;
}

/* Carousel */
.va32-carousel { position: relative; width: 100%; overflow: hidden; border-radius: var(--va32-radius-lg); margin: 1rem 0; }
.va32-carousel-track { position: relative; width: 100%; aspect-ratio: 16/9; }
.va32-carousel-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.5s ease; cursor: pointer;
}
.va32-carousel-slide.va32-active { opacity: 1; }
.va32-carousel-slide img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--va32-radius-lg); }
.va32-carousel-dots {
  position: absolute; bottom: 8px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 6px; z-index: 5;
}
.va32-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: none; cursor: pointer;
  transition: all 0.3s;
}
.va32-carousel-dot.va32-active { background: var(--va32-primary); width: 20px; border-radius: 4px; }

/* Section Styles */
.va32-section { padding: 2rem 0; }
.va32-section-title {
  font-size: 1.8rem; font-weight: 700; margin-bottom: 1.2rem;
  color: var(--va32-text); display: flex; align-items: center; gap: 0.8rem;
}
.va32-section-title i { color: var(--va32-primary); font-size: 2rem; }

/* Game Grid */
.va32-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem; padding: 0.5rem 0;
}
.va32-game-item {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; cursor: pointer; transition: transform 0.2s;
}
.va32-game-item:hover { transform: scale(1.05); }
.va32-game-item img {
  width: 72px; height: 72px; border-radius: var(--va32-radius);
  margin-bottom: 0.4rem; border: 2px solid var(--va32-border);
  transition: border-color 0.2s;
}
.va32-game-item:hover img { border-color: var(--va32-primary); }
.va32-game-item span {
  font-size: 1.1rem; color: var(--va32-text); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; max-width: 80px;
}

/* Category Header */
.va32-cat-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--va32-border);
}
.va32-cat-title {
  font-size: 1.5rem; font-weight: 700; color: var(--va32-accent);
  display: flex; align-items: center; gap: 0.6rem;
}

/* Cards */
.va32-card {
  background: var(--va32-bg-card); border-radius: var(--va32-radius-lg);
  padding: 1.5rem; border: 1px solid var(--va32-border);
  margin-bottom: 1.2rem;
}
.va32-card-title {
  font-size: 1.4rem; font-weight: 600; margin-bottom: 0.8rem;
  color: var(--va32-accent);
}
.va32-card p { font-size: 1.3rem; line-height: 1.6rem; color: var(--va32-text-muted); }

/* FAQ */
.va32-faq-item { margin-bottom: 1rem; }
.va32-faq-q {
  font-size: 1.3rem; font-weight: 600; color: var(--va32-accent);
  margin-bottom: 0.4rem; display: flex; gap: 0.6rem;
}
.va32-faq-a { font-size: 1.2rem; color: var(--va32-text-muted); line-height: 1.5rem; padding-left: 1.8rem; }

/* Stats */
.va32-stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem; margin: 1rem 0;
}
.va32-stat-card {
  background: var(--va32-bg-alt); border-radius: var(--va32-radius);
  padding: 1rem; text-align: center; border: 1px solid var(--va32-border);
}
.va32-stat-value { font-size: 2rem; font-weight: 700; color: var(--va32-primary); }
.va32-stat-label { font-size: 1.1rem; color: var(--va32-text-muted); margin-top: 0.3rem; }

/* Testimonials */
.va32-testimonial {
  background: var(--va32-bg-alt); border-radius: var(--va32-radius);
  padding: 1.2rem; margin-bottom: 0.8rem;
  border-left: 3px solid var(--va32-accent);
}
.va32-testimonial-text { font-size: 1.2rem; color: var(--va32-text); font-style: italic; line-height: 1.5rem; }
.va32-testimonial-author { font-size: 1.1rem; color: var(--va32-text-muted); margin-top: 0.6rem; }

/* Promo Banner */
.va32-promo-banner {
  background: linear-gradient(135deg, var(--va32-deep), var(--va32-primary));
  border-radius: var(--va32-radius-lg); padding: 1.5rem;
  text-align: center; margin: 1.5rem 0;
}
.va32-promo-banner h3 { font-size: 1.6rem; color: #fff; margin-bottom: 0.6rem; }
.va32-promo-banner p { font-size: 1.2rem; color: rgba(255,255,255,0.85); margin-bottom: 1rem; }

/* Winner Item */
.va32-winner {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.8rem 0; border-bottom: 1px solid var(--va32-border);
}
.va32-winner:last-child { border-bottom: none; }
.va32-winner-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--va32-bg-alt); display: flex; align-items: center; justify-content: center; color: var(--va32-accent); font-size: 1.4rem; flex-shrink: 0; }
.va32-winner-info { flex: 1; }
.va32-winner-name { font-size: 1.2rem; color: var(--va32-text); font-weight: 500; }
.va32-winner-game { font-size: 1.1rem; color: var(--va32-text-muted); }
.va32-winner-amount { font-size: 1.4rem; font-weight: 700; color: var(--va32-primary); }

/* Payment Methods */
.va32-payment-grid { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.va32-payment-item {
  background: var(--va32-bg-alt); border-radius: var(--va32-radius);
  padding: 0.8rem 1.2rem; display: flex; align-items: center; gap: 0.6rem;
  border: 1px solid var(--va32-border);
}
.va32-payment-item i { font-size: 1.8rem; color: var(--va32-accent); }
.va32-payment-item span { font-size: 1.2rem; color: var(--va32-text); }

/* Footer */
.va32-footer {
  background: var(--va32-bg-alt); padding: 2.5rem 0 1.5rem;
  border-top: 1px solid var(--va32-border); margin-top: 2rem;
}
.va32-footer-brand { font-size: 1.3rem; color: var(--va32-text-muted); line-height: 1.6rem; margin-bottom: 1.5rem; }
.va32-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.5rem; }
.va32-footer-links a {
  font-size: 1.1rem; color: var(--va32-text-muted); padding: 0.3rem 0.6rem;
  border: 1px solid var(--va32-border); border-radius: var(--va32-radius);
  transition: all 0.2s;
}
.va32-footer-links a:hover { border-color: var(--va32-primary); color: var(--va32-primary); }
.va32-footer-copy { font-size: 1.1rem; color: var(--va32-text-muted); text-align: center; padding-top: 1rem; border-top: 1px solid var(--va32-border); }

/* Content Typography */
.va32-content h2 { font-size: 1.6rem; font-weight: 700; color: var(--va32-text); margin: 1.5rem 0 0.8rem; }
.va32-content h3 { font-size: 1.4rem; font-weight: 600; color: var(--va32-accent); margin: 1.2rem 0 0.6rem; }
.va32-content p { font-size: 1.3rem; line-height: 1.6rem; color: var(--va32-text-muted); margin-bottom: 0.8rem; }
.va32-content ul { padding-left: 1.6rem; margin-bottom: 0.8rem; }
.va32-content li { font-size: 1.3rem; line-height: 1.6rem; color: var(--va32-text-muted); margin-bottom: 0.4rem; }
.va32-promo-text { color: var(--va32-primary); font-weight: 600; cursor: pointer; }
.va32-promo-text:hover { text-decoration: underline; }

/* Main padding for fixed header & bottom nav */
.va32-main { padding-top: 60px; }

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .va32-bottom-nav { display: none; }
  .va32-container { max-width: 768px; }
}

/* Mobile: add bottom padding for bottom nav */
@media (max-width: 768px) {
  .va32-main { padding-bottom: 72px; }
  .va32-footer { padding-bottom: 4rem; }
}

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