/* ============================================================
 * phdream rewards center - design.css
 * All custom classes use the prefix "va5d-".
 * CSS variables use the prefix "--va5d-".
 * Palette: #F8F8FF | #0C0C0C | #9966CC | #9932CC | #FF6347
 * ============================================================ */

:root {
  --va5d-light: #F8F8FF;
  --va5d-dark: #0C0C0C;
  --va5d-primary: #9966CC;
  --va5d-secondary: #9932CC;
  --va5d-accent: #FF6347;
  --va5d-bg: #0C0C0C;
  --va5d-text: #F8F8FF;
  --va5d-muted: #b9a9d6;
  --va5d-card: #1a1322;
  --va5d-card-border: rgba(153, 102, 204, 0.25);
  --va5d-radius: 12px;
  --va5d-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  --va5d-max-width: 430px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; }

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: radial-gradient(circle at top, #1a0b2e 0%, var(--va5d-bg) 70%);
  color: var(--va5d-text);
  line-height: 1.5rem;
  min-height: 100vh;
  font-size: 1.4rem;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--va5d-accent); text-decoration: none; }

.va5d-wrapper {
  max-width: var(--va5d-max-width);
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

/* ===== Header ===== */
.va5d-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, rgba(15, 8, 24, 0.96), rgba(46, 18, 75, 0.96));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--va5d-card-border);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.va5d-logo-area { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.va5d-logo {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--va5d-primary), var(--va5d-accent));
  display: flex; align-items: center; justify-content: center;
  color: var(--va5d-light); font-weight: 700; font-size: 1.4rem; flex-shrink: 0;
}
.va5d-site-name {
  font-size: 1.3rem; font-weight: 700; color: var(--va5d-light);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.va5d-header-actions { display: flex; align-items: center; gap: 0.5rem; }

.va5d-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.2rem; border-radius: 999px;
  font-size: 1.2rem; font-weight: 600; border: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap; min-height: 36px;
}
.va5d-btn:active { transform: scale(0.96); }
.va5d-btn-login {
  background: transparent; color: var(--va5d-light);
  border: 1px solid var(--va5d-primary);
}
.va5d-btn-register {
  background: linear-gradient(135deg, var(--va5d-secondary), var(--va5d-accent));
  color: var(--va5d-light);
  box-shadow: 0 4px 14px rgba(255, 99, 71, 0.35);
}
.va5d-menu-toggle {
  background: transparent; border: none; color: var(--va5d-light);
  font-size: 1.8rem; cursor: pointer; padding: 0.4rem;
  min-width: 36px; min-height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ===== Mobile slide-in menu ===== */
.va5d-mobile-menu {
  position: fixed; top: 0; right: -82%;
  width: 82%; max-width: 320px; height: 100vh;
  background: linear-gradient(160deg, #150a23, #0a0510);
  z-index: 9999;
  padding: 6rem 1.2rem 2rem;
  transition: right 0.3s ease; overflow-y: auto;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.6);
}
.va5d-mobile-menu.va5d-open { right: 0; }
.va5d-mobile-menu h3 {
  color: var(--va5d-primary); font-size: 1.3rem;
  margin: 1.5rem 0 0.6rem;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.va5d-mobile-menu a {
  display: block; padding: 0.85rem 0.5rem;
  color: var(--va5d-light); font-size: 1.3rem;
  border-bottom: 1px solid rgba(153, 102, 204, 0.15);
}
.va5d-mobile-menu a:active { background: rgba(153, 102, 204, 0.12); }
.va5d-menu-close {
  position: absolute; top: 1rem; right: 1rem;
  background: transparent; border: none; color: var(--va5d-light);
  font-size: 2rem; cursor: pointer;
}
.va5d-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998; opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.va5d-menu-overlay.va5d-active { opacity: 1; pointer-events: auto; }

/* ===== Main content ===== */
.va5d-main { padding: 1rem; padding-bottom: 90px; }

/* ===== Carousel ===== */
.va5d-carousel {
  position: relative; border-radius: var(--va5d-radius);
  overflow: hidden; margin-bottom: 1.5rem; box-shadow: var(--va5d-shadow);
}
.va5d-slide { display: none; position: relative; }
.va5d-slide.va5d-active { display: block; }
.va5d-slide img { width: 100%; height: 180px; object-fit: cover; }
.va5d-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: var(--va5d-light);
}
.va5d-slide-caption h2 { font-size: 1.5rem; margin-bottom: 0.3rem; color: var(--va5d-light); }
.va5d-slide-caption p { font-size: 1.2rem; color: var(--va5d-muted); }
.va5d-carousel-dots {
  position: absolute; bottom: 8px; left: 50%;
  transform: translateX(-50%); z-index: 2;
}
.va5d-carousel-dot {
  display: inline-block; width: 7px; height: 7px;
  background: rgba(248, 248, 255, 0.4); border-radius: 50%;
  margin: 0 3px; cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}
.va5d-carousel-dot.va5d-active { background: var(--va5d-accent); width: 18px; border-radius: 4px; }

/* ===== Sections ===== */
.va5d-section { margin-bottom: 2rem; }
.va5d-section-title {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--va5d-card-border);
}
.va5d-section-title h2 { font-size: 1.6rem; color: var(--va5d-light); }
.va5d-section-title .material-icons,
.va5d-section-title i { color: var(--va5d-accent); font-size: 2rem; }

/* ===== Hero CTA + highlights ===== */
.va5d-hero-cta { display: flex; gap: 0.6rem; margin-bottom: 1rem; }
.va5d-hero-cta .va5d-btn { flex: 1; }
.va5d-highlights {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem; margin-bottom: 1.2rem;
}
.va5d-highlight {
  background: rgba(153, 102, 204, 0.12);
  border-left: 3px solid var(--va5d-accent);
  border-radius: 8px; padding: 0.7rem;
  font-size: 1.1rem; color: var(--va5d-light);
  display: flex; align-items: center; gap: 0.4rem;
}
.va5d-highlight i,
.va5d-highlight .material-icons { color: var(--va5d-accent); font-size: 1.4rem; }

/* ===== Game grid ===== */
.va5d-game-section h3 {
  font-size: 1.4rem; color: var(--va5d-primary);
  margin: 1.4rem 0 0.7rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.va5d-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem;
}
.va5d-card {
  background: var(--va5d-card);
  border: 1px solid var(--va5d-card-border);
  border-radius: 10px; overflow: hidden; cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  display: block; color: inherit;
}
.va5d-card:active { transform: scale(0.96); border-color: var(--va5d-accent); }
.va5d-card img { width: 100%; height: 80px; object-fit: cover; }
.va5d-card-name {
  padding: 0.4rem; font-size: 1.1rem; color: var(--va5d-light);
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ===== Info / content card ===== */
.va5d-info-card {
  background: var(--va5d-card);
  border: 1px solid var(--va5d-card-border);
  border-radius: var(--va5d-radius);
  padding: 1.2rem; margin-bottom: 1rem;
}
.va5d-info-card h3 { font-size: 1.4rem; color: var(--va5d-primary); margin-bottom: 0.5rem; }
.va5d-info-card p {
  font-size: 1.25rem; line-height: 1.7rem;
  color: var(--va5d-light); margin-bottom: 0.5rem;
}
.va5d-info-card ul { list-style: none; padding-left: 0; }
.va5d-info-card li {
  position: relative; padding-left: 1.6rem;
  margin-bottom: 0.4rem; font-size: 1.25rem; line-height: 1.7rem;
}
.va5d-info-card li::before {
  content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  color: var(--va5d-accent); position: absolute; left: 0; top: 0; font-size: 1rem;
}

/* ===== FAQ ===== */
.va5d-faq-item {
  background: var(--va5d-card);
  border: 1px solid var(--va5d-card-border);
  border-radius: 10px; margin-bottom: 0.6rem; overflow: hidden;
}
.va5d-faq-q {
  padding: 1rem; font-size: 1.25rem; color: var(--va5d-light); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
}
.va5d-faq-q i { color: var(--va5d-accent); transition: transform 0.2s ease; }
.va5d-faq-item.va5d-open .va5d-faq-q i { transform: rotate(45deg); }
.va5d-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1rem; color: var(--va5d-muted); font-size: 1.2rem;
}
.va5d-faq-item.va5d-open .va5d-faq-a { max-height: 400px; padding: 0 1rem 1rem; }

/* ===== Testimonials + winners + payment ===== */
.va5d-testimonial {
  background: var(--va5d-card); border: 1px solid var(--va5d-card-border);
  border-radius: 10px; padding: 0.9rem; margin-bottom: 0.6rem;
}
.va5d-testimonial-stars { color: #FFD700; font-size: 1.1rem; margin-bottom: 0.3rem; }
.va5d-testimonial p { font-size: 1.2rem; color: var(--va5d-light); margin-bottom: 0.3rem; }
.va5d-testimonial cite { font-size: 1.1rem; color: var(--va5d-muted); font-style: normal; }
.va5d-winner {
  display: flex; justify-content: space-between;
  padding: 0.5rem 0.7rem; background: var(--va5d-card);
  border-radius: 8px; margin-bottom: 0.4rem; font-size: 1.15rem;
}
.va5d-winner-name { color: var(--va5d-light); }
.va5d-winner-amount { color: var(--va5d-accent); font-weight: 600; }
.va5d-pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.va5d-pay-item {
  background: var(--va5d-card); border: 1px solid var(--va5d-card-border);
  border-radius: 8px; padding: 0.7rem; text-align: center;
  font-size: 1.1rem; color: var(--va5d-light);
}
.va5d-pay-item i,
.va5d-pay-item .material-icons { color: var(--va5d-primary); font-size: 1.6rem; margin-bottom: 0.2rem; }

/* ===== Footer ===== */
.va5d-footer {
  background: linear-gradient(180deg, transparent, rgba(15, 8, 24, 0.9));
  border-top: 1px solid var(--va5d-card-border);
  padding: 1.5rem 1rem 5rem; margin-top: 2rem;
}
.va5d-footer h3 { color: var(--va5d-primary); font-size: 1.3rem; margin-bottom: 0.5rem; }
.va5d-footer p { color: var(--va5d-muted); font-size: 1.2rem; margin-bottom: 1rem; line-height: 1.6rem; }
.va5d-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.va5d-footer-links a {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: rgba(153, 102, 204, 0.15); color: var(--va5d-light);
  padding: 0.5rem 0.9rem; border-radius: 999px;
  font-size: 1.1rem; border: 1px solid rgba(153, 102, 204, 0.25);
}
.va5d-footer-links a:active { background: rgba(255, 99, 71, 0.25); }
.va5d-copyright { text-align: center; color: var(--va5d-muted); font-size: 1.1rem; margin-top: 1rem; }

/* ===== Bottom nav ===== */
.va5d-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, rgba(20, 10, 35, 0.98), rgba(8, 4, 14, 1));
  border-top: 1px solid var(--va5d-card-border);
  display: flex; justify-content: space-around; align-items: stretch;
  z-index: 1000; height: 62px;
}
.va5d-bottom-nav-btn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  background: transparent; border: none; color: var(--va5d-muted);
  font-size: 1rem; cursor: pointer; padding: 0.4rem 0;
  min-width: 60px; min-height: 60px;
  transition: color 0.2s ease, transform 0.15s ease;
}
.va5d-bottom-nav-btn .material-icons,
.va5d-bottom-nav-btn i { font-size: 22px; }
.va5d-bottom-nav-btn:active { transform: scale(0.92); }
.va5d-bottom-nav-btn.va5d-active,
.va5d-bottom-nav-btn.va5d-promo { color: var(--va5d-accent); }

/* ===== Toast ===== */
.va5d-toast {
  position: fixed; bottom: 90px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 8, 24, 0.95); color: var(--va5d-light);
  padding: 0.8rem 1.4rem; border-radius: 999px;
  border: 1px solid var(--va5d-accent); font-size: 1.2rem;
  z-index: 10000; opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.va5d-toast.va5d-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Responsive ===== */
@media (min-width: 769px) {
  .va5d-bottom-nav { display: none; }
  .va5d-wrapper { max-width: 720px; }
  .va5d-main { padding-bottom: 2rem; }
  .va5d-footer { padding-bottom: 2rem; }
}
@media (min-width: 600px) and (max-width: 768px) {
  .va5d-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 430px) {
  .va5d-slide img { height: 220px; }
}

/* ===== A11y focus ===== */
.va5d-btn:focus-visible,
.va5d-card:focus-visible,
.va5d-bottom-nav-btn:focus-visible {
  outline: 2px solid var(--va5d-accent); outline-offset: 2px;
}
