/**
 * 111bed Layout Stylesheet
 * Prefix: vb67-
 * Color palette: #6495ED | #E0FFFF | #00FF7F | #2C3E50 | #AFEEEE
 * Dark background, light text for mobile readability
 */

/* CSS Variables */
:root {
  --vb67-primary: #6495ED;
  --vb67-accent: #00FF7F;
  --vb67-dark: #2C3E50;
  --vb67-light: #E0FFFF;
  --vb67-muted: #AFEEEE;
  --vb67-bg: #1a2332;
  --vb67-card: #22303f;
  --vb67-border: #2f4256;
  --vb67-text: #E0FFFF;
  --vb67-text-dim: #8fa3b8;
  --vb67-gradient-start: #1e2d3d;
  --vb67-gradient-end: #0f1923;
  --vb67-radius: 0.8rem;
  --vb67-radius-sm: 0.5rem;
  --vb67-header-h: 5.6rem;
  --vb67-bottom-h: 6.4rem;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--vb67-bg);
  color: var(--vb67-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(--vb67-accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--vb67-primary); }

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

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

.vb67-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.vb67-logo-area img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
}
.vb67-logo-area span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--vb67-primary);
  letter-spacing: 0.5px;
}

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

.vb67-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: var(--vb67-radius-sm);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.vb67-btn-register {
  background: linear-gradient(135deg, var(--vb67-accent), #00cc66);
  color: var(--vb67-dark);
}
.vb67-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(0, 255, 127, 0.4);
}
.vb67-btn-login {
  background: transparent;
  border: 2px solid var(--vb67-primary);
  color: var(--vb67-primary);
}
.vb67-btn-login:hover {
  background: var(--vb67-primary);
  color: #fff;
}

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

/* ===================== MOBILE MENU ===================== */
.vb67-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 25, 35, 0.97);
  z-index: 9999;
  display: none;
  flex-direction: column;
  padding: 7rem 2rem 2rem;
  overflow-y: auto;
}
.vb67-mobile-menu.vb67-menu-active {
  display: flex;
}
.vb67-mobile-menu a {
  display: block;
  padding: 1.2rem 1rem;
  font-size: 1.5rem;
  color: var(--vb67-text);
  border-bottom: 1px solid var(--vb67-border);
  transition: all 0.2s;
}
.vb67-mobile-menu a:hover {
  color: var(--vb67-accent);
  padding-left: 1.5rem;
  background: rgba(100, 149, 237, 0.08);
}
.vb67-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--vb67-text);
  font-size: 2.4rem;
  cursor: pointer;
}

/* ===================== BOTTOM NAV ===================== */
.vb67-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--vb67-bottom-h);
  background: linear-gradient(180deg, #162030 0%, #0d1520 100%);
  border-top: 2px solid var(--vb67-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0.3rem 0;
}
.vb67-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--vb67-text-dim);
  cursor: pointer;
  transition: all 0.25s;
  padding: 0.3rem;
  border-radius: 0.6rem;
  position: relative;
}
.vb67-bottom-nav-btn:hover,
.vb67-bottom-nav-btn.vb67-nav-active {
  color: var(--vb67-accent);
  transform: scale(1.08);
}
.vb67-bottom-nav-btn.vb67-nav-active::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--vb67-accent);
  border-radius: 0 0 3px 3px;
}
.vb67-bottom-nav-btn i,
.vb67-bottom-nav-btn .material-icons {
  font-size: 22px;
  margin-bottom: 2px;
}
.vb67-bottom-nav-btn span {
  font-size: 1rem;
  line-height: 1.2;
}

/* ===================== MAIN CONTENT ===================== */
.vb67-main {
  padding-top: var(--vb67-header-h);
  padding-bottom: 2rem;
  min-height: 100vh;
}
@media (max-width: 768px) {
  .vb67-main {
    padding-bottom: calc(var(--vb67-bottom-h) + 1rem);
  }
  .vb67-bottom-nav {
    display: flex;
  }
}
@media (min-width: 769px) {
  .vb67-bottom-nav {
    display: none;
  }
}

/* ===================== CAROUSEL ===================== */
.vb67-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
}
.vb67-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.vb67-slide img {
  width: 100%;
  height: auto;
  min-height: 160px;
  object-fit: cover;
}
.vb67-slide.vb67-slide-active {
  display: block;
  animation: vb67fadeSlide 0.6s ease;
}
@keyframes vb67fadeSlide {
  from { opacity: 0.3; }
  to { opacity: 1; }
}
.vb67-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.vb67-carousel-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
}
.vb67-carousel-dots span.vb67-dot-active {
  background: var(--vb67-accent);
  width: 20px;
  border-radius: 4px;
}

/* ===================== SECTION COMMON ===================== */
.vb67-section {
  padding: 2rem 1.2rem;
}
.vb67-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--vb67-primary);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--vb67-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.vb67-section-title i,
.vb67-section-title .material-icons {
  font-size: 2rem;
  color: var(--vb67-accent);
}

/* ===================== GAME GRID ===================== */
.vb67-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.vb67-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.vb67-game-item:hover {
  transform: scale(1.05);
}
.vb67-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--vb67-radius-sm);
  border: 2px solid var(--vb67-border);
  object-fit: cover;
  transition: border-color 0.2s;
}
.vb67-game-item:hover img {
  border-color: var(--vb67-primary);
}
.vb67-game-item span {
  font-size: 1.1rem;
  color: var(--vb67-text-dim);
  margin-top: 0.3rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vb67-cat-label {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--vb67-accent);
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--vb67-primary);
}

/* ===================== CARDS ===================== */
.vb67-card {
  background: var(--vb67-card);
  border-radius: var(--vb67-radius);
  border: 1px solid var(--vb67-border);
  padding: 1.4rem;
  margin-bottom: 1rem;
}
.vb67-card h3 {
  font-size: 1.5rem;
  color: var(--vb67-primary);
  margin-bottom: 0.6rem;
}
.vb67-card p {
  font-size: 1.3rem;
  color: var(--vb67-text-dim);
  line-height: 1.6rem;
}

/* ===================== CTA BUTTONS ===================== */
.vb67-cta {
  display: block;
  width: 100%;
  padding: 1.4rem;
  text-align: center;
  background: linear-gradient(135deg, var(--vb67-primary), #4a7bd4);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  border: none;
  border-radius: var(--vb67-radius);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  margin: 1.5rem 0;
}
.vb67-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(100, 149, 237, 0.4);
}
.vb67-cta-green {
  background: linear-gradient(135deg, var(--vb67-accent), #00cc66);
  color: var(--vb67-dark);
}

/* ===================== FOOTER ===================== */
.vb67-footer {
  background: #0d1520;
  padding: 2rem 1.2rem;
  border-top: 2px solid var(--vb67-border);
}
.vb67-footer-brand {
  font-size: 1.3rem;
  color: var(--vb67-text-dim);
  line-height: 1.6rem;
  margin-bottom: 1.2rem;
}
.vb67-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.vb67-footer-links a {
  padding: 0.5rem 1rem;
  background: var(--vb67-card);
  border: 1px solid var(--vb67-border);
  border-radius: var(--vb67-radius-sm);
  color: var(--vb67-text);
  font-size: 1.2rem;
  transition: all 0.2s;
}
.vb67-footer-links a:hover {
  background: var(--vb67-primary);
  color: #fff;
}
.vb67-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--vb67-text-dim);
  padding-top: 1rem;
  border-top: 1px solid var(--vb67-border);
}

/* ===================== FAQ ===================== */
.vb67-faq-item {
  border-bottom: 1px solid var(--vb67-border);
  padding: 1rem 0;
}
.vb67-faq-q {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--vb67-primary);
  margin-bottom: 0.4rem;
}
.vb67-faq-a {
  font-size: 1.3rem;
  color: var(--vb67-text-dim);
  line-height: 1.6rem;
}

/* ===================== FEATURES GRID ===================== */
.vb67-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.vb67-feature-item {
  background: var(--vb67-card);
  border-radius: var(--vb67-radius);
  padding: 1.2rem;
  text-align: center;
  border: 1px solid var(--vb67-border);
}
.vb67-feature-item i,
.vb67-feature-item .material-icons {
  font-size: 2.4rem;
  color: var(--vb67-accent);
  margin-bottom: 0.5rem;
}
.vb67-feature-item h4 {
  font-size: 1.3rem;
  color: var(--vb67-primary);
  margin-bottom: 0.3rem;
}
.vb67-feature-item p {
  font-size: 1.1rem;
  color: var(--vb67-text-dim);
}

/* ===================== WINNER LIST ===================== */
.vb67-winner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--vb67-border);
}
.vb67-winner:last-child { border-bottom: none; }
.vb67-winner-name {
  font-size: 1.3rem;
  color: var(--vb67-text);
  font-weight: 500;
}
.vb67-winner-game {
  font-size: 1.1rem;
  color: var(--vb67-text-dim);
}
.vb67-winner-amount {
  font-size: 1.4rem;
  color: var(--vb67-accent);
  font-weight: 700;
}

/* ===================== PAYMENT ===================== */
.vb67-payment-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.vb67-payment-item {
  background: var(--vb67-card);
  border: 1px solid var(--vb67-border);
  border-radius: var(--vb67-radius-sm);
  padding: 0.8rem 1.4rem;
  font-size: 1.3rem;
  color: var(--vb67-text);
}

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

/* ===================== HELP PAGE ===================== */
.vb67-help-content h2 {
  font-size: 1.6rem;
  color: var(--vb67-primary);
  margin: 1.5rem 0 0.8rem;
}
.vb67-help-content p,
.vb67-help-content li {
  font-size: 1.3rem;
  color: var(--vb67-text-dim);
  line-height: 1.6rem;
}
.vb67-help-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.vb67-help-content li {
  margin-bottom: 0.5rem;
}

/* ===================== DESKTOP NAV ===================== */
@media (min-width: 769px) {
  .vb67-desktop-nav {
    display: flex;
    gap: 1.2rem;
    align-items: center;
  }
  .vb67-desktop-nav a {
    color: var(--vb67-text);
    font-size: 1.3rem;
    padding: 0.5rem;
    transition: color 0.2s;
  }
  .vb67-desktop-nav a:hover {
    color: var(--vb67-accent);
  }
}
@media (max-width: 768px) {
  .vb67-desktop-nav { display: none; }
}
