/**
 * aec444.click - Core CSS Stylesheet
 * Prefix: vd51-
 * All classes use vd51- prefix for namespace isolation
 */

/* ===== CSS Variables ===== */
:root {
  --vd51-primary: #00FFFF;
  --vd51-bg: #1B263B;
  --vd51-text: #EEEEEE;
  --vd51-accent: #00695C;
  --vd51-highlight: #EEE8AA;
  --vd51-secondary: #AFEEEE;
  --vd51-dark: #0f1525;
  --vd51-card-bg: #243049;
  --vd51-border: #2e3d58;
  --vd51-radius: 8px;
  --vd51-font: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 62.5%;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--vd51-font);
  background-color: var(--vd51-bg);
  color: var(--vd51-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(--vd51-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--vd51-highlight);
}

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

ul, ol {
  list-style: none;
}

/* ===== Header ===== */
.vd51-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: var(--vd51-dark);
  border-bottom: 1px solid var(--vd51-border);
  padding: 0 1rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.3s;
}

.vd51-header-scrolled {
  box-shadow: 0 2px 16px rgba(0, 255, 255, 0.12);
}

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

.vd51-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

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

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

.vd51-btn-register,
.vd51-btn-login {
  padding: 0.5rem 1.2rem;
  border-radius: var(--vd51-radius);
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 32px;
}

.vd51-btn-register {
  background: var(--vd51-primary);
  color: var(--vd51-dark);
}

.vd51-btn-register:hover {
  background: #33ffff;
  transform: scale(1.03);
}

.vd51-btn-login {
  background: transparent;
  color: var(--vd51-primary);
  border: 1px solid var(--vd51-primary);
}

.vd51-btn-login:hover {
  background: rgba(0, 255, 255, 0.1);
}

.vd51-menu-btn {
  background: none;
  border: none;
  color: var(--vd51-secondary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

/* ===== Mobile Menu ===== */
.vd51-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--vd51-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 6rem 1.5rem 2rem;
  border-left: 1px solid var(--vd51-border);
  overflow-y: auto;
}

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

.vd51-mobile-menu a {
  display: block;
  padding: 1rem 0;
  color: var(--vd51-secondary);
  font-size: 1.5rem;
  border-bottom: 1px solid var(--vd51-border);
  transition: color 0.2s, padding-left 0.2s;
}

.vd51-mobile-menu a:hover {
  color: var(--vd51-primary);
  padding-left: 0.5rem;
}

.vd51-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--vd51-text);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

.vd51-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  display: none;
}

.vd51-overlay-active {
  display: block;
}

/* ===== Main Content ===== */
.vd51-main {
  padding-top: 52px;
  min-height: 100vh;
}

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

/* ===== Carousel ===== */
.vd51-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--vd51-radius) var(--vd51-radius);
}

.vd51-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

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

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

.vd51-carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 0.5rem;
  pointer-events: none;
}

.vd51-carousel-btn {
  background: rgba(0, 0, 0, 0.45);
  color: var(--vd51-primary);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.vd51-carousel-btn:hover {
  background: rgba(0, 255, 255, 0.25);
}

.vd51-carousel-dots {
  position: absolute;
  bottom: 8px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.vd51-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(238, 238, 238, 0.4);
  cursor: pointer;
  transition: background 0.2s;
}

.vd51-dot-active {
  background: var(--vd51-primary);
  width: 20px;
  border-radius: 4px;
}

/* ===== Section ===== */
.vd51-section {
  padding: 2rem 1rem;
}

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

.vd51-section-title .material-icons,
.vd51-section-title .fas,
.vd51-section-title .bi {
  font-size: 2rem;
  color: var(--vd51-highlight);
}

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

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

.vd51-game-item:hover {
  transform: translateY(-2px);
}

.vd51-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--vd51-radius);
  border: 1px solid var(--vd51-border);
  object-fit: cover;
}

.vd51-game-name {
  font-size: 1.1rem;
  color: var(--vd51-secondary);
  margin-top: 0.3rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Category Label ===== */
.vd51-cat-label {
  display: inline-block;
  background: var(--vd51-accent);
  color: var(--vd51-primary);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ===== Content Modules ===== */
.vd51-card {
  background: var(--vd51-card-bg);
  border-radius: var(--vd51-radius);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--vd51-border);
}

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

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

.vd51-card ul {
  padding-left: 1.5rem;
}

.vd51-card li {
  list-style: disc;
  color: var(--vd51-secondary);
  font-size: 1.3rem;
  line-height: 1.8;
}

/* ===== Promo Button ===== */
.vd51-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--vd51-primary), var(--vd51-accent));
  color: var(--vd51-dark);
  padding: 0.8rem 2rem;
  border-radius: var(--vd51-radius);
  font-weight: 700;
  font-size: 1.4rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
  min-height: 44px;
}

.vd51-promo-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(0, 255, 255, 0.3);
}

.vd51-promo-text {
  color: var(--vd51-highlight);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.vd51-promo-text:hover {
  color: var(--vd51-primary);
  text-decoration: underline;
}

/* ===== Footer ===== */
.vd51-footer {
  background: var(--vd51-dark);
  padding: 2rem 1rem 1rem;
  border-top: 1px solid var(--vd51-border);
}

.vd51-footer-brand {
  color: var(--vd51-secondary);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

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

.vd51-footer-links a {
  color: var(--vd51-secondary);
  font-size: 1.2rem;
  padding: 0.3rem 0.6rem;
  background: var(--vd51-card-bg);
  border-radius: 4px;
  transition: all 0.2s;
}

.vd51-footer-links a:hover {
  color: var(--vd51-primary);
  background: var(--vd51-accent);
}

.vd51-footer-copy {
  text-align: center;
  color: #667788;
  font-size: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--vd51-border);
}

.vd51-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.vd51-footer-promos .vd51-promo-btn {
  padding: 0.5rem 1.2rem;
  font-size: 1.2rem;
}

/* ===== Bottom Navigation ===== */
.vd51-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: var(--vd51-dark);
  border-top: 1px solid var(--vd51-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.vd51-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--vd51-secondary);
  cursor: pointer;
  min-width: 60px;
  min-height: 56px;
  transition: all 0.2s;
  padding: 0.3rem;
  border-radius: 8px;
}

.vd51-bottom-btn:hover,
.vd51-bottom-btn:focus {
  color: var(--vd51-primary);
  background: rgba(0, 255, 255, 0.08);
}

.vd51-bottom-btn:active {
  transform: scale(0.92);
}

.vd51-bottom-btn .material-icons,
.vd51-bottom-btn .fas,
.vd51-bottom-btn .far,
.vd51-bottom-btn .fad,
.vd51-bottom-btn .bi {
  font-size: 22px;
  margin-bottom: 2px;
}

.vd51-bottom-label {
  font-size: 1rem;
  color: inherit;
  white-space: nowrap;
}

.vd51-bottom-active {
  color: var(--vd51-primary) !important;
}

.vd51-bottom-active .vd51-bottom-label {
  font-weight: 600;
}

/* ===== Back to Top ===== */
#vd51-back-top {
  position: fixed;
  bottom: 72px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: var(--vd51-accent);
  color: var(--vd51-primary);
  border: 1px solid var(--vd51-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  font-size: 1.8rem;
}

.vd51-back-top-visible {
  opacity: 1;
  visibility: visible;
}

#vd51-back-top:hover {
  background: var(--vd51-primary);
  color: var(--vd51-dark);
}

/* ===== Scroll Reveal ===== */
.vd51-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.vd51-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Desktop Override ===== */
@media (min-width: 769px) {
  .vd51-bottom-nav {
    display: none;
  }
}

/* ===== Utilities ===== */
.vd51-text-center { text-align: center; }
.vd51-text-primary { color: var(--vd51-primary); }
.vd51-text-highlight { color: var(--vd51-highlight); }
.vd51-mt-1 { margin-top: 1rem; }
.vd51-mb-1 { margin-bottom: 1rem; }
.vd51-mb-2 { margin-bottom: 2rem; }
.vd51-fw-700 { font-weight: 700; }

.vd51-highlight-box {
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.08), rgba(0, 105, 92, 0.15));
  border: 1px solid var(--vd51-primary);
  border-radius: var(--vd51-radius);
  padding: 1.2rem;
  margin: 1rem 0;
}

.vd51-winner-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--vd51-border);
}

.vd51-winner-item:last-child {
  border-bottom: none;
}

.vd51-winner-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--vd51-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vd51-primary);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.vd51-winner-info {
  flex: 1;
  min-width: 0;
}

.vd51-winner-name {
  color: var(--vd51-text);
  font-size: 1.2rem;
  font-weight: 600;
}

.vd51-winner-game {
  color: var(--vd51-secondary);
  font-size: 1.1rem;
}

.vd51-winner-amount {
  color: var(--vd51-highlight);
  font-weight: 700;
  font-size: 1.3rem;
  white-space: nowrap;
}

/* FAQ Module */
.vd51-faq-item {
  margin-bottom: 1rem;
}

.vd51-faq-q {
  color: var(--vd51-primary);
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.vd51-faq-a {
  color: var(--vd51-secondary);
  font-size: 1.2rem;
  line-height: 1.6;
  padding-left: 1rem;
  border-left: 2px solid var(--vd51-accent);
}

/* Payment Method Icons */
.vd51-payment-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 0.8rem 0;
}

.vd51-payment-icon {
  background: var(--vd51-card-bg);
  border: 1px solid var(--vd51-border);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  color: var(--vd51-secondary);
}

/* H1 styling */
.vd51-h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--vd51-text);
  text-align: center;
  padding: 1.5rem 1rem;
  line-height: 1.4;
}

.vd51-h1 span {
  color: var(--vd51-primary);
}
