/* ===========================================================
   sunwin bh - Common CSS module
   Class prefix: vcb7-
   Palette: #1E1E1E | #AFEEEE | #E0FFFF | #FFDEAD | #00B8D4
   Mobile-first design, max-width 430px
   =========================================================== */

:root {
  --vcb7-bg: #1E1E1E;
  --vcb7-bg-soft: #262626;
  --vcb7-bg-card: #2b2b2b;
  --vcb7-text: #E0FFFF;
  --vcb7-muted: #AFEEEE;
  --vcb7-accent: #00B8D4;
  --vcb7-warm: #FFDEAD;
  --vcb7-border: rgba(175, 238, 238, 0.18);
  --vcb7-radius: 14px;
  --vcb7-radius-sm: 10px;
}

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

html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: var(--vcb7-bg);
  color: var(--vcb7-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

/* Layout containers */
.vcb7-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--vcb7-bg);
  min-height: 100vh;
  position: relative;
}

.vcb7-container {
  width: 100%;
  padding: 0 1.2rem;
}

main.vcb7-main {
  padding-top: 6.4rem;
  padding-bottom: 2rem;
}

@media (max-width: 768px) {
  main.vcb7-main { padding-bottom: 8.4rem; }
}

/* ============ Header ============ */
.vcb7-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: rgba(30, 30, 30, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--vcb7-border);
  z-index: 1000;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.vcb7-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1 1 auto;
  min-width: 0;
}

.vcb7-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex: 0 0 auto;
}

.vcb7-brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--vcb7-warm);
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.vcb7-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0 1rem;
  border: none;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.vcb7-btn:active { transform: scale(0.94); }

.vcb7-btn-register {
  background: linear-gradient(135deg, #00B8D4, #0096b3);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 184, 212, 0.35);
}

.vcb7-btn-login {
  background: transparent;
  color: var(--vcb7-text);
  border: 1px solid var(--vcb7-accent);
}

.vcb7-menu-btn {
  background: transparent;
  border: none;
  color: var(--vcb7-text);
  font-size: 1.8rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vcb7-menu-btn:hover { background: rgba(175, 238, 238, 0.08); }

/* ============ Mobile expandable menu ============ */
.vcb7-mobile-menu {
  position: fixed;
  top: 5.6rem; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--vcb7-bg-soft);
  border-bottom: 1px solid var(--vcb7-border);
  padding: 0.6rem 1rem 1rem;
  transform: translateY(-130%);
  transition: transform 0.28s ease;
  z-index: 9999;
  max-height: 70vh;
  overflow-y: auto;
}

.vcb7-mobile-menu.vcb7-menu-open { transform: translateY(0); }

.vcb7-mobile-menu a {
  display: block;
  padding: 0.9rem 0.8rem;
  color: var(--vcb7-text);
  border-bottom: 1px dashed var(--vcb7-border);
  font-size: 1.35rem;
}

.vcb7-mobile-menu a:last-child { border-bottom: none; }
.vcb7-mobile-menu a:hover { color: var(--vcb7-warm); background: rgba(0, 184, 212, 0.06); }

/* ============ Hero carousel ============ */
.vcb7-hero {
  position: relative;
  width: 100%;
  border-radius: var(--vcb7-radius);
  overflow: hidden;
  margin: 1rem 0;
}

.vcb7-slides { position: relative; width: 100%; height: 180px; }

.vcb7-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

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

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

.vcb7-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.vcb7-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(224, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
}

.vcb7-dot.vcb7-dot-active { background: var(--vcb7-warm); width: 18px; border-radius: 4px; }

/* ============ Section / Headings ============ */
.vcb7-section {
  padding: 1.4rem 0;
}

.vcb7-section-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--vcb7-warm);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vcb7-h1 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--vcb7-text);
  line-height: 2.4rem;
  margin: 1rem 0;
}

.vcb7-lead {
  color: var(--vcb7-muted);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.vcb7-text p { margin-bottom: 0.8rem; color: var(--vcb7-text); }
.vcb7-text a { color: var(--vcb7-accent); font-weight: 600; }
.vcb7-text h2 { color: var(--vcb7-warm); font-size: 1.6rem; margin: 1.2rem 0 0.6rem; }
.vcb7-text h3 { color: var(--vcb7-muted); font-size: 1.4rem; margin: 1rem 0 0.4rem; }
.vcb7-text ul { margin: 0.4rem 0 0.8rem 1.4rem; }
.vcb7-text li { margin-bottom: 0.4rem; }

/* ============ Game grid ============ */
.vcb7-cat-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--vcb7-accent);
  margin: 1.2rem 0 0.6rem;
  padding-left: 0.4rem;
  border-left: 3px solid var(--vcb7-warm);
}

.vcb7-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.vcb7-game-card {
  background: var(--vcb7-bg-card);
  border: 1px solid var(--vcb7-border);
  border-radius: var(--vcb7-radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.vcb7-game-card:hover, .vcb7-game-card:active {
  transform: translateY(-2px);
  border-color: var(--vcb7-accent);
}

.vcb7-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.vcb7-game-name {
  font-size: 1.05rem;
  color: var(--vcb7-text);
  text-align: center;
  padding: 0.4rem 0.2rem 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ Cards / features ============ */
.vcb7-card {
  background: var(--vcb7-bg-card);
  border: 1px solid var(--vcb7-border);
  border-radius: var(--vcb7-radius);
  padding: 1.1rem;
  margin-bottom: 0.9rem;
}

.vcb7-card-title {
  color: var(--vcb7-warm);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.vcb7-feature-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--vcb7-border);
}

.vcb7-feature-row:last-child { border-bottom: none; }

.vcb7-feature-icon {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(0, 184, 212, 0.14);
  color: var(--vcb7-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
}

.vcb7-feature-text strong { color: var(--vcb7-warm); display: block; font-size: 1.3rem; }
.vcb7-feature-text span { color: var(--vcb7-muted); font-size: 1.2rem; }

/* ============ CTA banner ============ */
.vcb7-cta {
  background: linear-gradient(135deg, #00B8D4, #007a8f);
  border-radius: var(--vcb7-radius);
  padding: 1.2rem;
  text-align: center;
  margin: 1rem 0;
}

.vcb7-cta h3 { color: #fff; font-size: 1.6rem; margin-bottom: 0.4rem; }
.vcb7-cta p { color: #e0ffff; font-size: 1.25rem; margin-bottom: 0.8rem; }

.vcb7-cta .vcb7-btn {
  background: var(--vcb7-warm);
  color: #1E1E1E;
  font-size: 1.4rem;
  padding: 0 1.6rem;
  min-height: 42px;
}

/* =inline promo link ============ */
.vcb7-promo-link {
  color: var(--vcb7-warm);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* ============ Testimonials ============ */
.vcb7-testimonial {
  background: var(--vcb7-bg-card);
  border-left: 3px solid var(--vcb7-accent);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.7rem;
}

.vcb7-testimonial p { font-size: 1.25rem; color: var(--vcb7-text); font-style: italic; }
.vcb7-testimonial .vcb7-author { color: var(--vcb7-muted); font-size: 1.1rem; margin-top: 0.3rem; }

/* ============ Winners ============ */
.vcb7-winner {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--vcb7-border);
  font-size: 1.2rem;
}
.vcb7-winner span:first-child { color: var(--vcb7-text); }
.vcb7-winner span:last-child { color: var(--vcb7-warm); font-weight: 700; }

/* ============ Payment ============ */
.vcb7-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.vcb7-pay-chip {
  background: var(--vcb7-bg-card);
  border: 1px solid var(--vcb7-border);
  border-radius: 20px;
  padding: 0.4rem 0.9rem;
  font-size: 1.15rem;
  color: var(--vcb7-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ============ Footer ============ */
.vcb7-footer {
  background: var(--vcb7-bg-soft);
  border-top: 1px solid var(--vcb7-border);
  padding: 1.4rem 1.2rem 2rem;
  margin-top: 1.4rem;
}

.vcb7-footer-about { color: var(--vcb7-muted); font-size: 1.2rem; margin-bottom: 0.9rem; }

.vcb7-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  margin-bottom: 0.9rem;
}

.vcb7-footer-links a {
  color: var(--vcb7-text);
  font-size: 1.15rem;
  text-decoration: underline;
}

.vcb7-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.vcb7-footer-promo .vcb7-btn {
  min-height: 34px;
  font-size: 1.15rem;
  padding: 0 0.8rem;
}

.vcb7-copyright {
  color: var(--vcb7-muted);
  font-size: 1.1rem;
  border-top: 1px solid var(--vcb7-border);
  padding-top: 0.8rem;
  text-align: center;
}

/* ============ Mobile bottom nav ============ */
.vcb7-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 60px;
  background: var(--vcb7-bg-soft);
  border-top: 1px solid var(--vcb7-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.45);
}

.vcb7-bottom-nav a {
  flex: 1 1 0;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--vcb7-muted);
  text-decoration: none;
  font-size: 1.05rem;
  position: relative;
  transition: color 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.vcb7-bottom-nav a .vcb7-bn-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.vcb7-bottom-nav a .vcb7-bn-label {
  font-size: 1rem;
  line-height: 1;
}

.vcb7-bottom-nav a:active { transform: scale(0.92); }

.vcb7-bottom-nav a.vcb7-bn-active {
  color: var(--vcb7-warm);
}

.vcb7-bottom-nav a.vcb7-bn-active::before {
  content: "";
  position: absolute;
  top: 0; left: 25%; right: 25%;
  height: 3px;
  background: var(--vcb7-warm);
  border-radius: 0 0 4px 4px;
}

.vcb7-bottom-nav a[onclick] { color: var(--vcb7-accent); }

@media (min-width: 769px) {
  .vcb7-bottom-nav { display: none; }
  main.vcb7-main { padding-bottom: 2rem; }
}

/* ============ Utility ============ */
.vcb7-hide-desktop { display: block; }
@media (min-width: 769px) {
  .vcb7-hide-desktop { display: none; }
}
.vcb7-center { text-align: center; }
