/**
 * 520jl - Main Stylesheet
 * All classes prefixed with vb8d- for namespace isolation
 * Color palette: #008000 | #0E1621 | #006400 | #F8F8FF
 * Mobile-first design, max-width 430px
 */

/* CSS Variables */
:root {
  --vb8d-primary: #008000;
  --vb8d-dark: #0E1621;
  --vb8d-deeper: #006400;
  --vb8d-light: #F8F8FF;
  --vb8d-accent: #00b340;
  --vb8d-gold: #FFD700;
  --vb8d-hover: #00a02e;
  --vb8d-bg-card: #131f2e;
  --vb8d-border: #1e3a2a;
  --vb8d-text-secondary: #b0c4b8;
  --vb8d-shadow: rgba(0, 128, 0, 0.15);
}

/* Base Reset */
*, *::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, Oxygen, sans-serif;
  background-color: var(--vb8d-dark);
  color: var(--vb8d-light);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--vb8d-accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--vb8d-gold);
}

img {
  max-width: 100%;
  height: auto;
}

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

.vb8d-wrapper {
  width: 100%;
  padding: 1.5rem 0;
}

/* Header */
.vb8d-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #0a1f12 0%, var(--vb8d-dark) 100%);
  border-bottom: 2px solid var(--vb8d-primary);
  max-width: 430px;
  margin: 0 auto;
}

.vb8d-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  height: 56px;
}

.vb8d-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.vb8d-logo-area img {
  width: 28px;
  height: 28px;
}

.vb8d-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--vb8d-primary);
  letter-spacing: 0.5px;
}

.vb8d-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.vb8d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  min-height: 36px;
}

.vb8d-btn-register {
  background: var(--vb8d-primary);
  color: #fff;
  box-shadow: 0 2px 8px var(--vb8d-shadow);
}
.vb8d-btn-register:hover {
  background: var(--vb8d-hover);
  transform: scale(1.03);
}

.vb8d-btn-login {
  background: transparent;
  color: var(--vb8d-primary);
  border: 1.5px solid var(--vb8d-primary);
}
.vb8d-btn-login:hover {
  background: rgba(0, 128, 0, 0.1);
}

.vb8d-menu-toggle {
  background: none;
  border: none;
  color: var(--vb8d-light);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

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

.vb8d-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100%;
  background: var(--vb8d-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  border-left: 2px solid var(--vb8d-primary);
  overflow-y: auto;
}
.vb8d-menu-active {
  right: 0;
}

.vb8d-mobile-menu .vb8d-menu-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: var(--vb8d-light);
  font-size: 2.2rem;
  cursor: pointer;
}

.vb8d-mobile-menu nav a {
  display: block;
  padding: 1rem 0;
  color: var(--vb8d-light);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--vb8d-border);
  transition: color 0.2s;
}
.vb8d-mobile-menu nav a:hover {
  color: var(--vb8d-primary);
}

/* Carousel */
.vb8d-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 56px;
  border-radius: 0 0 12px 12px;
}

.vb8d-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
  position: relative;
}

.vb8d-slide-active {
  display: block;
}

.vb8d-carousel-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.vb8d-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.vb8d-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(248, 248, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s;
}
.vb8d-dot-active {
  background: var(--vb8d-primary);
}

/* Main Content */
.vb8d-main {
  padding-top: 1rem;
}

@media (max-width: 768px) {
  .vb8d-main {
    padding-bottom: 80px;
  }
}

/* Section */
.vb8d-section {
  padding: 1.5rem 1.2rem;
}

.vb8d-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--vb8d-light);
  margin-bottom: 1.2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--vb8d-primary);
}

.vb8d-section-subtitle {
  font-size: 1.4rem;
  color: var(--vb8d-text-secondary);
  margin-bottom: 1rem;
}

/* Game Grid */
.vb8d-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.vb8d-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.vb8d-game-item:hover {
  transform: scale(1.05);
}

.vb8d-game-item img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid var(--vb8d-border);
  margin-bottom: 0.4rem;
}

.vb8d-game-name {
  font-size: 1.1rem;
  color: var(--vb8d-light);
  line-height: 1.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Card */
.vb8d-card {
  background: var(--vb8d-bg-card);
  border-radius: 10px;
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--vb8d-border);
}

.vb8d-card h3 {
  font-size: 1.5rem;
  color: var(--vb8d-light);
  margin-bottom: 0.8rem;
}

.vb8d-card p {
  font-size: 1.3rem;
  color: var(--vb8d-text-secondary);
  line-height: 1.6rem;
}

/* CTA Button */
.vb8d-cta-btn {
  display: block;
  width: 100%;
  padding: 1.2rem;
  background: linear-gradient(135deg, var(--vb8d-primary) 0%, var(--vb8d-deeper) 100%);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  margin: 1.5rem 0;
}
.vb8d-cta-btn:hover {
  background: linear-gradient(135deg, var(--vb8d-hover) 0%, var(--vb8d-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--vb8d-shadow);
}

/* Promo Link */
.vb8d-promo-link {
  color: var(--vb8d-gold);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.vb8d-promo-link:hover {
  color: var(--vb8d-accent);
}

/* Footer */
.vb8d-footer {
  background: #080f16;
  padding: 2rem 1.2rem 6rem;
  border-top: 2px solid var(--vb8d-primary);
}

.vb8d-footer-brand {
  font-size: 1.3rem;
  color: var(--vb8d-text-secondary);
  line-height: 1.7rem;
  margin-bottom: 1.5rem;
}

.vb8d-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.vb8d-footer-links a {
  padding: 0.5rem 1rem;
  background: var(--vb8d-bg-card);
  border-radius: 6px;
  font-size: 1.2rem;
  color: var(--vb8d-text-secondary);
  border: 1px solid var(--vb8d-border);
  transition: all 0.2s;
}
.vb8d-footer-links a:hover {
  color: var(--vb8d-primary);
  border-color: var(--vb8d-primary);
}

.vb8d-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.vb8d-footer-promo .vb8d-btn {
  font-size: 1.1rem;
  padding: 0.5rem 0.8rem;
}

.vb8d-copyright {
  font-size: 1.1rem;
  color: #4a5568;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--vb8d-border);
}

/* Bottom Navigation */
.vb8d-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #0a1610 0%, #070d09 100%);
  border-top: 2px solid var(--vb8d-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  max-width: 430px;
  margin: 0 auto;
}

.vb8d-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--vb8d-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 2px;
}

.vb8d-bottom-nav-btn .vb8d-nav-icon {
  font-size: 22px;
  transition: transform 0.2s, color 0.2s;
}

.vb8d-bottom-nav-btn .vb8d-nav-label {
  font-size: 1rem;
  white-space: nowrap;
}

.vb8d-bottom-nav-btn:hover,
.vb8d-bottom-nav-btn.vb8d-nav-active {
  color: var(--vb8d-primary);
}
.vb8d-bottom-nav-btn:hover .vb8d-nav-icon,
.vb8d-bottom-nav-btn.vb8d-nav-active .vb8d-nav-icon {
  transform: scale(1.15);
  color: var(--vb8d-primary);
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .vb8d-bottom-nav {
    display: none;
  }
  .vb8d-footer {
    padding-bottom: 2rem;
  }
}

/* Utility */
.vb8d-text-center { text-align: center; }
.vb8d-text-gold { color: var(--vb8d-gold); }
.vb8d-text-green { color: var(--vb8d-primary); }
.vb8d-mt-1 { margin-top: 0.5rem; }
.vb8d-mt-2 { margin-top: 1rem; }
.vb8d-mb-2 { margin-bottom: 1rem; }
.vb8d-py-2 { padding-top: 1rem; padding-bottom: 1rem; }

/* FAQ */
.vb8d-faq-item {
  margin-bottom: 1rem;
}
.vb8d-faq-item h4 {
  font-size: 1.35rem;
  color: var(--vb8d-light);
  margin-bottom: 0.4rem;
}
.vb8d-faq-item p {
  font-size: 1.25rem;
  color: var(--vb8d-text-secondary);
  line-height: 1.6rem;
}

/* Testimonials */
.vb8d-testimonial {
  background: var(--vb8d-bg-card);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--vb8d-primary);
}
.vb8d-testimonial p {
  font-size: 1.25rem;
  color: var(--vb8d-text-secondary);
  line-height: 1.5rem;
}
.vb8d-testimonial-author {
  font-size: 1.1rem;
  color: var(--vb8d-primary);
  margin-top: 0.4rem;
}

/* Winner showcase */
.vb8d-winner-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--vb8d-border);
}
.vb8d-winner-item:last-child {
  border-bottom: none;
}
.vb8d-winner-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--vb8d-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  flex-shrink: 0;
}
.vb8d-winner-info {
  flex: 1;
}
.vb8d-winner-name {
  font-size: 1.2rem;
  color: var(--vb8d-light);
}
.vb8d-winner-amount {
  font-size: 1.1rem;
  color: var(--vb8d-gold);
  font-weight: 600;
}

/* Payment methods */
.vb8d-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.vb8d-payment-item {
  background: var(--vb8d-bg-card);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 1.2rem;
  color: var(--vb8d-text-secondary);
  border: 1px solid var(--vb8d-border);
}

/* App download CTA */
.vb8d-app-cta {
  background: linear-gradient(135deg, var(--vb8d-deeper) 0%, var(--vb8d-dark) 100%);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--vb8d-primary);
}
.vb8d-app-cta h3 {
  font-size: 1.6rem;
  color: var(--vb8d-light);
  margin-bottom: 0.6rem;
}
.vb8d-app-cta p {
  font-size: 1.2rem;
  color: var(--vb8d-text-secondary);
  margin-bottom: 1rem;
}

/* Achievements */
.vb8d-achievement {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.vb8d-achievement-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--vb8d-deeper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.vb8d-achievement-text {
  flex: 1;
}
.vb8d-achievement-text strong {
  display: block;
  font-size: 1.3rem;
  color: var(--vb8d-light);
}
.vb8d-achievement-text span {
  font-size: 1.1rem;
  color: var(--vb8d-text-secondary);
}

/* Content paragraphs */
.vb8d-content p {
  font-size: 1.3rem;
  color: var(--vb8d-text-secondary);
  line-height: 1.7rem;
  margin-bottom: 0.8rem;
}

.vb8d-content h2 {
  font-size: 1.8rem;
  color: var(--vb8d-light);
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

.vb8d-content h3 {
  font-size: 1.5rem;
  color: var(--vb8d-light);
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
}

/* Responsive tweaks */
@media (max-width: 360px) {
  .vb8d-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .vb8d-game-item img {
    width: 64px;
    height: 64px;
  }
}
