/**
 * ph958 Main Stylesheet - All classes use vd2f- prefix
 * Color palette: #BAE1FF | #0E1621 | #5D5D5D | #BF360C | #696969
 * Mobile-first responsive design, max-width 430px
 */

/* CSS Variables */
:root {
  --vd2f-primary: #BAE1FF;
  --vd2f-bg: #0E1621;
  --vd2f-bg-light: #152030;
  --vd2f-bg-card: #1a2840;
  --vd2f-text: #BAE1FF;
  --vd2f-text-muted: #696969;
  --vd2f-accent: #BF360C;
  --vd2f-accent-light: #e84e1b;
  --vd2f-gray: #5D5D5D;
  --vd2f-white: #f0f4f8;
  --vd2f-border: #253550;
  --vd2f-radius: 8px;
  --vd2f-radius-lg: 12px;
  --vd2f-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  --vd2f-transition: all 0.3s ease;
}

/* Reset and 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(--vd2f-bg);
  color: var(--vd2f-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--vd2f-primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== HEADER ===== */
.vd2f-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--vd2f-bg);
  border-bottom: 1px solid var(--vd2f-border);
  z-index: 1000;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vd2f-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.vd2f-header-logo {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}
.vd2f-header-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--vd2f-primary);
  letter-spacing: 0.5px;
}
.vd2f-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.vd2f-header-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--vd2f-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--vd2f-transition);
}
.vd2f-btn-register {
  background: var(--vd2f-accent);
  color: #fff;
}
.vd2f-btn-register:hover {
  background: var(--vd2f-accent-light);
  transform: scale(1.05);
}
.vd2f-btn-login {
  background: transparent;
  color: var(--vd2f-primary);
  border: 1px solid var(--vd2f-primary);
}
.vd2f-btn-login:hover {
  background: var(--vd2f-primary);
  color: var(--vd2f-bg);
}
.vd2f-menu-toggle {
  background: none;
  border: none;
  color: var(--vd2f-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* ===== MOBILE MENU ===== */
.vd2f-menu-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--vd2f-transition);
}
.vd2f-overlay-active {
  opacity: 1;
  visibility: visible;
}
.vd2f-mobile-menu {
  position: fixed;
  top: 0; right: -280px;
  width: 280px;
  height: 100%;
  background: var(--vd2f-bg-light);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.vd2f-menu-active { right: 0; }
.vd2f-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--vd2f-border);
}
.vd2f-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--vd2f-primary);
}
.vd2f-menu-close {
  background: none;
  border: none;
  color: var(--vd2f-text-muted);
  font-size: 2.2rem;
  cursor: pointer;
}
.vd2f-menu-nav a {
  display: block;
  padding: 1.2rem 0;
  color: var(--vd2f-white);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--vd2f-border);
  transition: var(--vd2f-transition);
}
.vd2f-menu-nav a:hover {
  color: var(--vd2f-accent);
  padding-left: 0.8rem;
}

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

/* ===== SLIDER / BANNER ===== */
.vd2f-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--vd2f-radius) var(--vd2f-radius);
}
.vd2f-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.vd2f-slide-active { display: block; }
.vd2f-slide img {
  width: 100%;
  height: auto;
  min-height: 180px;
  object-fit: cover;
}
.vd2f-slider-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.vd2f-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  border: none;
}
.vd2f-dot-active { background: var(--vd2f-primary); }

/* ===== SECTIONS ===== */
.vd2f-section {
  padding: 2rem 1rem;
}
.vd2f-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--vd2f-primary);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--vd2f-accent);
}
.vd2f-section-title i,
.vd2f-section-title .material-icons {
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* ===== GAME GRID ===== */
.vd2f-game-category {
  margin-bottom: 2rem;
}
.vd2f-cat-label {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--vd2f-primary);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.vd2f-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.vd2f-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--vd2f-transition);
  border-radius: var(--vd2f-radius);
  padding: 0.5rem;
}
.vd2f-game-item:hover {
  background: var(--vd2f-bg-card);
  transform: translateY(-2px);
}
.vd2f-game-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--vd2f-radius);
  margin-bottom: 0.4rem;
  object-fit: cover;
}
.vd2f-game-name {
  font-size: 1rem;
  color: var(--vd2f-white);
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70px;
}

/* ===== CARDS ===== */
.vd2f-card {
  background: var(--vd2f-bg-card);
  border-radius: var(--vd2f-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--vd2f-border);
}
.vd2f-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--vd2f-primary);
  margin-bottom: 0.8rem;
}

/* ===== CTA BUTTONS ===== */
.vd2f-cta {
  display: inline-block;
  background: var(--vd2f-accent);
  color: #fff;
  padding: 1rem 2.4rem;
  border-radius: var(--vd2f-radius);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--vd2f-transition);
  text-align: center;
}
.vd2f-cta:hover {
  background: var(--vd2f-accent-light);
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(191, 54, 12, 0.4);
}
.vd2f-cta-outline {
  background: transparent;
  border: 2px solid var(--vd2f-accent);
  color: var(--vd2f-accent);
}
.vd2f-cta-outline:hover {
  background: var(--vd2f-accent);
  color: #fff;
}

/* ===== PROMO LINK ===== */
.vd2f-promo-link {
  color: var(--vd2f-accent);
  font-weight: 700;
  cursor: pointer;
  transition: var(--vd2f-transition);
}
.vd2f-promo-link:hover {
  color: var(--vd2f-accent-light);
  text-decoration: underline;
}

/* ===== FAQ ===== */
.vd2f-faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--vd2f-border);
  border-radius: var(--vd2f-radius);
  overflow: hidden;
}
.vd2f-faq-q {
  padding: 1rem 1.2rem;
  font-weight: 600;
  color: var(--vd2f-primary);
  background: var(--vd2f-bg-light);
  font-size: 1.3rem;
}
.vd2f-faq-a {
  padding: 1rem 1.2rem;
  color: var(--vd2f-white);
  font-size: 1.2rem;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.vd2f-footer {
  background: var(--vd2f-bg-light);
  border-top: 1px solid var(--vd2f-border);
  padding: 2rem 1rem;
  text-align: center;
}
.vd2f-footer-desc {
  color: var(--vd2f-text-muted);
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}
.vd2f-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.vd2f-footer-links a {
  font-size: 1.1rem;
  color: var(--vd2f-primary);
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--vd2f-border);
  border-radius: var(--vd2f-radius);
  transition: var(--vd2f-transition);
}
.vd2f-footer-links a:hover {
  background: var(--vd2f-primary);
  color: var(--vd2f-bg);
}
.vd2f-footer-copy {
  color: var(--vd2f-gray);
  font-size: 1rem;
  margin-top: 0.8rem;
}

/* ===== BOTTOM NAVIGATION ===== */
.vd2f-bnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: var(--vd2f-bg-light);
  border-top: 1px solid var(--vd2f-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}
@media (min-width: 769px) {
  .vd2f-bnav { display: none; }
}
.vd2f-bnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 50px;
  background: none;
  border: none;
  color: var(--vd2f-text-muted);
  cursor: pointer;
  transition: var(--vd2f-transition);
  padding: 0.3rem;
  border-radius: var(--vd2f-radius);
}
.vd2f-bnav-btn i,
.vd2f-bnav-btn .material-icons {
  font-size: 22px;
  margin-bottom: 2px;
}
.vd2f-bnav-label {
  font-size: 1rem;
  color: inherit;
}
.vd2f-bnav-btn:hover,
.vd2f-bnav-active {
  color: var(--vd2f-accent);
  transform: scale(1.08);
}
.vd2f-bnav-active {
  background: rgba(191, 54, 12, 0.1);
  border-radius: var(--vd2f-radius);
}

/* ===== CONTENT UTILITIES ===== */
.vd2f-container { padding: 0 1rem; }
.vd2f-text-center { text-align: center; }
.vd2f-text-sm { font-size: 1.2rem; }
.vd2f-text-muted { color: var(--vd2f-text-muted); }
.vd2f-mb-1 { margin-bottom: 0.8rem; }
.vd2f-mb-2 { margin-bottom: 1.6rem; }
.vd2f-mt-1 { margin-top: 0.8rem; }
.vd2f-mt-2 { margin-top: 1.6rem; }

.vd2f-divider {
  border: none;
  height: 1px;
  background: var(--vd2f-border);
  margin: 1.5rem 0;
}

.vd2f-badge {
  display: inline-block;
  background: var(--vd2f-accent);
  color: #fff;
  font-size: 1rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
}

/* ===== TESTIMONIAL ===== */
.vd2f-testimonial {
  background: var(--vd2f-bg-card);
  border-radius: var(--vd2f-radius-lg);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--vd2f-accent);
}
.vd2f-testimonial-text {
  font-size: 1.2rem;
  color: var(--vd2f-white);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.vd2f-testimonial-author {
  font-size: 1.1rem;
  color: var(--vd2f-gray);
}

/* ===== WINNER SHOWCASE ===== */
.vd2f-winner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  background: var(--vd2f-bg-card);
  border-radius: var(--vd2f-radius);
  margin-bottom: 0.6rem;
}
.vd2f-winner-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.vd2f-winner-info {
  flex: 1;
}
.vd2f-winner-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--vd2f-primary);
}
.vd2f-winner-game {
  font-size: 1rem;
  color: var(--vd2f-text-muted);
}
.vd2f-winner-amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--vd2f-accent);
}

/* ===== PAYMENT METHODS ===== */
.vd2f-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}
.vd2f-payment-item {
  background: var(--vd2f-bg-card);
  border: 1px solid var(--vd2f-border);
  border-radius: var(--vd2f-radius);
  padding: 0.6rem 1rem;
  font-size: 1.1rem;
  color: var(--vd2f-white);
}

/* ===== DESKTOP NAV ===== */
.vd2f-desktop-nav {
  display: none;
}
@media (min-width: 769px) {
  .vd2f-desktop-nav {
    display: flex;
    gap: 1.2rem;
    align-items: center;
  }
  .vd2f-desktop-nav a {
    font-size: 1.3rem;
    color: var(--vd2f-white);
    transition: var(--vd2f-transition);
  }
  .vd2f-desktop-nav a:hover {
    color: var(--vd2f-accent);
  }
}
