/**
 * u888vip Core Stylesheet
 * Class prefix: v5d9-
 * Color palette: #1E1E1E (dark bg) | #7B68EE (accent) | #800080 (deep purple) | #F8F8FF (text)
 * Mobile-first responsive design, max-width: 430px
 */

/* CSS Variables */
:root {
  --v5d9-primary: #7B68EE;
  --v5d9-secondary: #800080;
  --v5d9-bg: #1E1E1E;
  --v5d9-bg-light: #2A2A2A;
  --v5d9-bg-card: #333333;
  --v5d9-text: #F8F8FF;
  --v5d9-text-muted: #B0B0C0;
  --v5d9-accent: #7B68EE;
  --v5d9-accent-hover: #9B88FF;
  --v5d9-gold: #FFD700;
  --v5d9-gradient: linear-gradient(135deg, #7B68EE 0%, #800080 100%);
  --v5d9-radius: 10px;
  --v5d9-radius-sm: 6px;
  --v5d9-shadow: 0 4px 16px rgba(123, 104, 238, 0.2);
  --v5d9-transition: all 0.3s ease;
}

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

/* ==================== HEADER ==================== */
.v5d9-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 56px;
  background: linear-gradient(180deg, #1E1E1E 0%, #252525 100%);
  border-bottom: 1px solid rgba(123, 104, 238, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
}
.v5d9-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.v5d9-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.v5d9-brand {
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--v5d9-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.v5d9-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.v5d9-btn {
  padding: 6px 14px;
  border-radius: var(--v5d9-radius-sm);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--v5d9-transition);
}
.v5d9-btn-register {
  background: var(--v5d9-gradient);
  color: #fff;
}
.v5d9-btn-register:hover {
  opacity: 0.9;
  transform: scale(1.03);
}
.v5d9-btn-login {
  background: transparent;
  color: var(--v5d9-primary);
  border: 1px solid var(--v5d9-primary);
}
.v5d9-btn-login:hover {
  background: rgba(123, 104, 238, 0.1);
}
.v5d9-menu-toggle {
  background: none;
  border: none;
  color: var(--v5d9-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* ==================== MOBILE MENU ==================== */
.v5d9-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--v5d9-transition);
}
.v5d9-overlay-active {
  opacity: 1;
  visibility: visible;
}
.v5d9-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--v5d9-bg-light);
  z-index: 9999;
  transition: right 0.35s ease;
  padding: 20px;
  overflow-y: auto;
}
.v5d9-menu-active {
  right: 0;
}
.v5d9-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(123, 104, 238, 0.2);
}
.v5d9-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v5d9-primary);
}
.v5d9-menu-close {
  background: none;
  border: none;
  color: var(--v5d9-text-muted);
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
}
.v5d9-menu-nav {
  list-style: none;
}
.v5d9-menu-nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.v5d9-menu-nav a {
  display: block;
  padding: 14px 0;
  color: var(--v5d9-text);
  font-size: 1.4rem;
  transition: var(--v5d9-transition);
}
.v5d9-menu-nav a:hover {
  color: var(--v5d9-primary);
  padding-left: 8px;
}

/* ==================== MAIN CONTENT ==================== */
.v5d9-main {
  padding-top: 56px;
  min-height: 100vh;
}
@media (max-width: 768px) {
  .v5d9-main {
    padding-bottom: 80px;
  }
}

/* ==================== CAROUSEL ==================== */
.v5d9-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16/7;
  cursor: pointer;
}
.v5d9-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.v5d9-slide-active {
  opacity: 1;
}
.v5d9-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v5d9-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.v5d9-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--v5d9-transition);
}
.v5d9-dot-active {
  background: var(--v5d9-primary);
  width: 20px;
  border-radius: 4px;
}

/* ==================== SECTIONS ==================== */
.v5d9-section {
  padding: 16px 12px;
}
.v5d9-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v5d9-text);
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 3px solid var(--v5d9-primary);
}
.v5d9-section-title i {
  margin-right: 6px;
  color: var(--v5d9-primary);
}

/* ==================== GAME GRID ==================== */
.v5d9-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.v5d9-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--v5d9-transition);
  border-radius: var(--v5d9-radius-sm);
  padding: 6px 4px;
}
.v5d9-game-item:hover {
  background: rgba(123, 104, 238, 0.1);
  transform: translateY(-2px);
}
.v5d9-game-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--v5d9-radius);
  margin: 0 auto 4px;
  object-fit: cover;
  border: 1px solid rgba(123, 104, 238, 0.15);
}
.v5d9-game-name {
  font-size: 1.1rem;
  color: var(--v5d9-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

/* ==================== CATEGORY LABEL ==================== */
.v5d9-cat-label {
  display: inline-block;
  background: var(--v5d9-gradient);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ==================== CONTENT CARDS ==================== */
.v5d9-card {
  background: var(--v5d9-bg-card);
  border-radius: var(--v5d9-radius);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(123, 104, 238, 0.1);
}
.v5d9-card h3 {
  font-size: 1.5rem;
  color: var(--v5d9-primary);
  margin-bottom: 8px;
}
.v5d9-card p {
  font-size: 1.3rem;
  color: var(--v5d9-text-muted);
  line-height: 1.6;
}
.v5d9-card-highlight {
  border-left: 3px solid var(--v5d9-primary);
}

/* ==================== PROMO BUTTONS ==================== */
.v5d9-promo-btn {
  display: inline-block;
  background: var(--v5d9-gradient);
  color: #fff;
  padding: 10px 24px;
  border-radius: 25px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--v5d9-transition);
  text-align: center;
}
.v5d9-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(123, 104, 238, 0.4);
}
.v5d9-promo-link {
  color: var(--v5d9-primary);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.v5d9-promo-link:hover {
  color: var(--v5d9-accent-hover);
}

/* ==================== FOOTER ==================== */
.v5d9-footer {
  background: var(--v5d9-bg-light);
  padding: 20px 12px;
  border-top: 1px solid rgba(123, 104, 238, 0.15);
}
.v5d9-footer-brand {
  font-size: 1.3rem;
  color: var(--v5d9-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.v5d9-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.v5d9-footer-link {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(123, 104, 238, 0.1);
  border-radius: var(--v5d9-radius-sm);
  font-size: 1.1rem;
  color: var(--v5d9-text);
  cursor: pointer;
  transition: var(--v5d9-transition);
}
.v5d9-footer-link:hover {
  background: rgba(123, 104, 238, 0.25);
  color: var(--v5d9-primary);
}
.v5d9-footer-copy {
  font-size: 1.1rem;
  color: var(--v5d9-text-muted);
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==================== BOTTOM NAV ==================== */
.v5d9-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, #252525 0%, #1a1a1a 100%);
  border-top: 1px solid rgba(123, 104, 238, 0.3);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 4px;
}
.v5d9-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  background: none;
  border: none;
  color: var(--v5d9-text-muted);
  cursor: pointer;
  transition: var(--v5d9-transition);
  border-radius: 8px;
  padding: 4px 2px;
}
.v5d9-bottom-nav-btn:hover,
.v5d9-nav-active {
  color: var(--v5d9-primary);
}
.v5d9-bottom-nav-btn:active {
  transform: scale(0.92);
}
.v5d9-bottom-nav-btn i,
.v5d9-bottom-nav-btn span.material-symbols-outlined {
  font-size: 22px;
  margin-bottom: 2px;
}
.v5d9-bottom-nav-label {
  font-size: 1rem;
  line-height: 1.2;
}
@media (min-width: 769px) {
  .v5d9-bottom-nav { display: none; }
}

/* ==================== TESTIMONIALS ==================== */
.v5d9-testimonial {
  background: var(--v5d9-bg-card);
  border-radius: var(--v5d9-radius);
  padding: 14px;
  margin-bottom: 10px;
  border-left: 3px solid var(--v5d9-primary);
}
.v5d9-testimonial-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--v5d9-primary);
}
.v5d9-testimonial-text {
  font-size: 1.2rem;
  color: var(--v5d9-text-muted);
  margin-top: 6px;
  line-height: 1.5;
}
.v5d9-stars {
  color: var(--v5d9-gold);
  font-size: 1.2rem;
  margin-top: 4px;
}

/* ==================== WINNERS ==================== */
.v5d9-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.v5d9-winner-name {
  font-size: 1.2rem;
  color: var(--v5d9-text);
}
.v5d9-winner-game {
  font-size: 1.1rem;
  color: var(--v5d9-text-muted);
}
.v5d9-winner-amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--v5d9-gold);
}

/* ==================== PAYMENT / DOWNLOAD ==================== */
.v5d9-icon-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.v5d9-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.1rem;
  color: var(--v5d9-text-muted);
}
.v5d9-icon-item i {
  font-size: 28px;
  color: var(--v5d9-primary);
  margin-bottom: 4px;
}

/* ==================== HELP PAGES ==================== */
.v5d9-help-content {
  padding: 16px 12px;
}
.v5d9-help-content h2 {
  font-size: 1.6rem;
  color: var(--v5d9-primary);
  margin: 16px 0 8px;
}
.v5d9-help-content h3 {
  font-size: 1.4rem;
  color: var(--v5d9-text);
  margin: 12px 0 6px;
}
.v5d9-help-content p {
  font-size: 1.3rem;
  color: var(--v5d9-text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}
.v5d9-faq-item {
  background: var(--v5d9-bg-card);
  border-radius: var(--v5d9-radius-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
}
.v5d9-faq-q {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--v5d9-text);
  margin-bottom: 4px;
}
.v5d9-faq-a {
  font-size: 1.2rem;
  color: var(--v5d9-text-muted);
  line-height: 1.5;
}

/* ==================== UTILITIES ==================== */
.v5d9-text-center { text-align: center; }
.v5d9-mt-8 { margin-top: 8px; }
.v5d9-mt-16 { margin-top: 16px; }
.v5d9-mb-8 { margin-bottom: 8px; }
.v5d9-mb-16 { margin-bottom: 16px; }
.v5d9-hidden { display: none; }

/* ==================== DESKTOP ENHANCEMENTS ==================== */
@media (min-width: 769px) {
  body { max-width: 430px; }
  .v5d9-header { max-width: 430px; }
  .v5d9-bottom-nav { display: none; }
  .v5d9-game-grid { grid-template-columns: repeat(5, 1fr); }
}
