/**
 * X Game Booster - Main Stylesheet
 * File: css/style-5f1d.css
 * All classes use prefix "vdc8-" for namespace isolation
 * Color palette: #0E1621 | #FFFFFF | #CD853F | #FFB6C1 | #48D1CC | #E9967A
 */

/* Root font: 62.5% = 10px base, enabling rem-based scaling */
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

:root {
  --vdc8-primary: #CD853F;
  --vdc8-bg: #0E1621;
  --vdc8-text: #FFFFFF;
  --vdc8-accent1: #FFB6C1;
  --vdc8-accent2: #48D1CC;
  --vdc8-accent3: #E9967A;
  --vdc8-card-bg: #162032;
  --vdc8-card-border: #1e2d44;
  --vdc8-header-h: 5.4rem;
  --vdc8-bnav-h: 6rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--vdc8-bg);
  color: var(--vdc8-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

/* ========== HEADER ========== */
.vdc8-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--vdc8-header-h);
  background: linear-gradient(135deg, #0E1621 0%, #162032 100%);
  border-bottom: 2px solid var(--vdc8-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
}

.vdc8-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.vdc8-logo-area img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.4rem;
}

.vdc8-logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--vdc8-primary);
  white-space: nowrap;
}

.vdc8-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vdc8-btn-register {
  background: linear-gradient(135deg, var(--vdc8-primary), #D4963F);
  color: var(--vdc8-bg);
  font-weight: 700;
  font-size: 1.2rem;
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.vdc8-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 10px rgba(205, 133, 63, 0.4);
}

.vdc8-btn-login {
  background: transparent;
  color: var(--vdc8-accent2);
  font-weight: 600;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--vdc8-accent2);
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.2s;
}

.vdc8-btn-login:hover {
  background: rgba(72, 209, 204, 0.1);
}

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

/* ========== MOBILE MENU ========== */
.vdc8-mobile-menu {
  position: fixed;
  top: 0;
  right: -80%;
  width: 80%;
  max-width: 344px;
  height: 100vh;
  background: linear-gradient(180deg, #0E1621, #162032);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem;
  overflow-y: auto;
}

.vdc8-menu-active {
  right: 0;
}

.vdc8-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.vdc8-overlay-active {
  opacity: 1;
  pointer-events: all;
}

.vdc8-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--vdc8-card-border);
}

.vdc8-menu-title {
  font-size: 1.6rem;
  color: var(--vdc8-primary);
  font-weight: 700;
}

.vdc8-menu-close {
  background: none;
  border: none;
  color: var(--vdc8-text);
  font-size: 2.2rem;
  cursor: pointer;
}

.vdc8-menu-links {
  list-style: none;
}

.vdc8-menu-links li {
  margin-bottom: 0.5rem;
}

.vdc8-menu-links a {
  display: block;
  padding: 1rem 0.8rem;
  color: var(--vdc8-text);
  text-decoration: none;
  font-size: 1.4rem;
  border-radius: 0.6rem;
  transition: background 0.2s, color 0.2s;
}

.vdc8-menu-links a:hover {
  background: rgba(205, 133, 63, 0.15);
  color: var(--vdc8-primary);
}

/* ========== CAROUSEL ========== */
.vdc8-carousel {
  position: relative;
  width: 100%;
  margin-top: var(--vdc8-header-h);
  overflow: hidden;
  aspect-ratio: 430/200;
}

.vdc8-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.vdc8-slide-active {
  opacity: 1;
}

.vdc8-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vdc8-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}

.vdc8-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.vdc8-dot-active {
  background: var(--vdc8-primary);
}

/* ========== MAIN CONTENT ========== */
.vdc8-main {
  padding: 1rem;
  padding-bottom: 2rem;
}

.vdc8-section {
  margin-bottom: 2rem;
}

.vdc8-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--vdc8-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--vdc8-card-border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.vdc8-section-title i,
.vdc8-section-title .material-icons {
  font-size: 2rem;
  color: var(--vdc8-accent2);
}

/* ========== GAME GRID ========== */
.vdc8-cat-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--vdc8-accent2);
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.4rem;
  border-left: 3px solid var(--vdc8-primary);
}

.vdc8-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.vdc8-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.vdc8-game-item:hover {
  transform: scale(1.06);
}

.vdc8-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.8rem;
  border: 2px solid var(--vdc8-card-border);
  transition: border-color 0.2s;
}

.vdc8-game-item:hover img {
  border-color: var(--vdc8-primary);
}

.vdc8-game-name {
  font-size: 1.1rem;
  margin-top: 0.3rem;
  color: var(--vdc8-text);
  line-height: 1.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== PROMO BUTTONS ========== */
.vdc8-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--vdc8-primary), #D4963F);
  color: var(--vdc8-bg);
  font-weight: 700;
  font-size: 1.4rem;
  padding: 1rem 2.4rem;
  border: none;
  border-radius: 2.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.vdc8-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(205, 133, 63, 0.45);
}

.vdc8-promo-btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--vdc8-accent2);
  font-weight: 600;
  font-size: 1.3rem;
  padding: 0.8rem 2rem;
  border: 2px solid var(--vdc8-accent2);
  border-radius: 2.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.vdc8-promo-btn-outline:hover {
  background: rgba(72, 209, 204, 0.12);
}

/* ========== TEXT LINK ========== */
.vdc8-text-link {
  color: var(--vdc8-accent2);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 500;
}

.vdc8-text-link:hover {
  color: var(--vdc8-accent1);
}

/* ========== CARDS ========== */
.vdc8-card {
  background: var(--vdc8-card-bg);
  border: 1px solid var(--vdc8-card-border);
  border-radius: 1rem;
  padding: 1.4rem;
  margin-bottom: 1rem;
}

.vdc8-card h3 {
  font-size: 1.5rem;
  color: var(--vdc8-primary);
  margin-bottom: 0.6rem;
}

.vdc8-card p {
  font-size: 1.3rem;
  line-height: 1.6rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ========== FEATURES GRID ========== */
.vdc8-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.vdc8-feature-item {
  background: var(--vdc8-card-bg);
  border: 1px solid var(--vdc8-card-border);
  border-radius: 0.8rem;
  padding: 1.2rem;
  text-align: center;
}

.vdc8-feature-item i,
.vdc8-feature-item .material-icons {
  font-size: 2.4rem;
  color: var(--vdc8-primary);
  margin-bottom: 0.4rem;
}

.vdc8-feature-item h4 {
  font-size: 1.2rem;
  color: var(--vdc8-accent2);
  margin-bottom: 0.3rem;
}

.vdc8-feature-item p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ========== TESTIMONIALS ========== */
.vdc8-testimonial {
  background: linear-gradient(135deg, var(--vdc8-card-bg), #1a2840);
  border-left: 3px solid var(--vdc8-accent1);
  border-radius: 0.8rem;
  padding: 1.2rem;
  margin-bottom: 0.8rem;
}

.vdc8-testimonial-name {
  font-weight: 700;
  color: var(--vdc8-accent3);
  font-size: 1.3rem;
}

.vdc8-testimonial-text {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.4rem;
  font-style: italic;
}

/* ========== WINNERS TABLE ========== */
.vdc8-winners-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}

.vdc8-winners-table th {
  background: var(--vdc8-primary);
  color: var(--vdc8-bg);
  padding: 0.6rem;
  text-align: left;
  font-size: 1.1rem;
}

.vdc8-winners-table td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--vdc8-card-border);
}

.vdc8-winners-table tr:hover td {
  background: rgba(205, 133, 63, 0.08);
}

/* ========== PAYMENT METHODS ========== */
.vdc8-payment-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.vdc8-payment-item {
  background: var(--vdc8-card-bg);
  border: 1px solid var(--vdc8-card-border);
  border-radius: 0.8rem;
  padding: 0.8rem 1.2rem;
  font-size: 1.2rem;
  color: var(--vdc8-accent2);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ========== CTA SECTION ========== */
.vdc8-cta {
  background: linear-gradient(135deg, rgba(205, 133, 63, 0.15), rgba(72, 209, 204, 0.1));
  border: 1px solid var(--vdc8-primary);
  border-radius: 1.2rem;
  padding: 2rem 1.2rem;
  text-align: center;
}

.vdc8-cta h2 {
  font-size: 1.8rem;
  color: var(--vdc8-primary);
  margin-bottom: 0.6rem;
}

.vdc8-cta p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.2rem;
}

.vdc8-cta-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== FOOTER ========== */
.vdc8-footer {
  background: linear-gradient(180deg, #0E1621, #080d14);
  padding: 2rem 1rem 1rem;
  border-top: 2px solid var(--vdc8-card-border);
}

.vdc8-footer-brand {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6rem;
  margin-bottom: 1.2rem;
}

.vdc8-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.vdc8-footer-links a {
  color: var(--vdc8-accent2);
  font-size: 1.2rem;
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--vdc8-card-border);
  border-radius: 0.4rem;
  transition: all 0.2s;
}

.vdc8-footer-links a:hover {
  background: rgba(72, 209, 204, 0.1);
  border-color: var(--vdc8-accent2);
}

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

.vdc8-footer-promo button {
  background: var(--vdc8-primary);
  color: var(--vdc8-bg);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.vdc8-footer-promo button:hover {
  transform: scale(1.04);
}

.vdc8-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.4);
  padding-top: 1rem;
  border-top: 1px solid var(--vdc8-card-border);
}

/* ========== BOTTOM NAVIGATION ========== */
.vdc8-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--vdc8-bnav-h);
  background: linear-gradient(180deg, #162032, #0E1621);
  border-top: 2px solid var(--vdc8-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0.3rem 0;
}

.vdc8-bnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: color 0.2s, transform 0.15s;
  padding: 0.2rem;
  text-decoration: none;
}

.vdc8-bnav-btn:hover,
.vdc8-bnav-active {
  color: var(--vdc8-primary);
  transform: scale(1.08);
}

.vdc8-bnav-btn i,
.vdc8-bnav-btn .material-icons {
  font-size: 22px;
  margin-bottom: 0.2rem;
}

.vdc8-bnav-btn span {
  font-size: 1rem;
  line-height: 1.2rem;
}

/* ========== HELPER CLASSES ========== */
.vdc8-text-center { text-align: center; }
.vdc8-mt-1 { margin-top: 1rem; }
.vdc8-mt-2 { margin-top: 2rem; }
.vdc8-mb-1 { margin-bottom: 1rem; }
.vdc8-mb-2 { margin-bottom: 2rem; }

.vdc8-highlight {
  color: var(--vdc8-primary);
  font-weight: 600;
}

.vdc8-divider {
  border: none;
  border-top: 1px solid var(--vdc8-card-border);
  margin: 1.5rem 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .vdc8-main {
    padding-bottom: calc(var(--vdc8-bnav-h) + 1.5rem);
  }
}

@media (min-width: 769px) {
  .vdc8-bottom-nav {
    display: none;
  }
}

/* FAQ specific styles */
.vdc8-faq-item {
  background: var(--vdc8-card-bg);
  border: 1px solid var(--vdc8-card-border);
  border-radius: 0.8rem;
  padding: 1.2rem;
  margin-bottom: 0.8rem;
}

.vdc8-faq-q {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--vdc8-primary);
  margin-bottom: 0.4rem;
}

.vdc8-faq-a {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5rem;
}

/* Step list for guide pages */
.vdc8-steps {
  counter-reset: vdc8-step;
  list-style: none;
  padding: 0;
}

.vdc8-steps li {
  counter-increment: vdc8-step;
  background: var(--vdc8-card-bg);
  border: 1px solid var(--vdc8-card-border);
  border-radius: 0.8rem;
  padding: 1rem 1rem 1rem 3.5rem;
  margin-bottom: 0.6rem;
  position: relative;
}

.vdc8-steps li::before {
  content: counter(vdc8-step);
  position: absolute;
  left: 0.8rem;
  top: 0.8rem;
  width: 2rem;
  height: 2rem;
  background: var(--vdc8-primary);
  color: var(--vdc8-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

/* H1 styling */
.vdc8-page-h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--vdc8-text);
  margin-bottom: 1rem;
  line-height: 2.4rem;
}

.vdc8-page-h1 .vdc8-h1-accent {
  color: var(--vdc8-primary);
}
