/* ============================================================
   kuving.cfd - theme.css
   All custom classes use prefix wb16e-
   Color palette: #6C757D | #2C3E50 | #4682B4 | #34495E | #E0FFFF
   Mobile-first, max-width 430px primary, rem units (root 62.5%)
   ============================================================ */

:root {
  --wb16e-primary: #4682B4;
  --wb16e-secondary: #2C3E50;
  --wb16e-dark: #34495E;
  --wb16e-gray: #6C757D;
  --wb16e-light: #E0FFFF;
  --wb16e-bg: #1c2733;
  --wb16e-bg-soft: #243447;
  --wb16e-bg-card: #2a3a4d;
  --wb16e-text: #E0FFFF;
  --wb16e-text-muted: #9fb3c8;
  --wb16e-accent: #4682B4;
  --wb16e-accent-bright: #5a9fd4;
  --wb16e-gold: #e6b94a;
  --wb16e-success: #2ecc71;
  --wb16e-danger: #e74c3c;
  --wb16e-radius: 14px;
  --wb16e-radius-sm: 8px;
  --wb16e-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  --wb16e-shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.25);
  --wb16e-header-h: 5.4rem;
  --wb16e-nav-h: 6.2rem;
  --wb16e-max: 430px;
}

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

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

body {
  font-family: 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  background: var(--wb16e-bg);
  color: var(--wb16e-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--wb16e-light); text-decoration: none; }
ul { list-style: none; }

/* Layout containers */
.wb16e-container { width: 100%; max-width: var(--wb16e-max); margin: 0 auto; padding: 0 1.2rem; position: relative; }
.wb16e-wrapper { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.6rem; }
main { padding-bottom: calc(var(--wb16e-nav-h) + 1rem); }

/* ========== Header ========== */
.wb16e-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--wb16e-header-h);
  background: linear-gradient(180deg, var(--wb16e-secondary), var(--wb16e-dark));
  border-bottom: 1px solid rgba(70, 130, 180, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.wb16e-header-inner {
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.wb16e-logo {
  display: flex; align-items: center; gap: 0.7rem; font-size: 1.8rem; font-weight: 800;
  color: var(--wb16e-light); letter-spacing: 0.5px;
}
.wb16e-logo img { width: 2.6rem; height: 2.6rem; border-radius: 6px; }
.wb16e-logo-text { background: linear-gradient(90deg, var(--wb16e-light), var(--wb16e-accent-bright)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.wb16e-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.wb16e-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.4rem; padding: 0 1.4rem; border: none; border-radius: var(--wb16e-radius-sm);
  font-size: 1.3rem; font-weight: 700; cursor: pointer; transition: transform .15s, box-shadow .2s, filter .2s;
  font-family: inherit; color: #fff;
}
.wb16e-btn:active { transform: scale(0.96); }
.wb16e-btn-primary { background: linear-gradient(135deg, var(--wb16e-accent), var(--wb16e-accent-bright)); box-shadow: 0 3px 10px rgba(70, 130, 180, 0.4); }
.wb16e-btn-primary:hover { filter: brightness(1.1); }
.wb16e-btn-ghost { background: rgba(224, 255, 255, 0.08); border: 1px solid rgba(224, 255, 255, 0.25); color: var(--wb16e-light); }
.wb16e-btn-ghost:hover { background: rgba(224, 255, 255, 0.16); }
.wb16e-btn-gold { background: linear-gradient(135deg, #e6b94a, #d4a017); color: #2C3E50; }
.wb16e-menu-toggle {
  width: 3.4rem; height: 3.4rem; background: rgba(224, 255, 255, 0.08); border: 1px solid rgba(224, 255, 255, 0.2);
  border-radius: 8px; color: var(--wb16e-light); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}

/* ========== Mobile Menu Drawer ========== */
.wb16e-menu-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); opacity: 0; visibility: hidden;
  transition: opacity .25s; z-index: 9990;
}
.wb16e-menu-overlay.wb16e-overlay-show { opacity: 1; visibility: visible; }
.wb16e-mobile-menu {
  position: fixed; top: 0; right: -78%; width: 78%; max-width: 320px; height: 100vh;
  background: var(--wb16e-secondary); z-index: 9999; transition: right .3s ease; padding: 2rem 1.4rem;
  overflow-y: auto; box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
}
.wb16e-mobile-menu.wb16e-menu-open { right: 0; }
.wb16e-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; }
.wb16e-menu-head h3 { font-size: 1.6rem; color: var(--wb16e-light); }
.wb16e-menu-close { background: transparent; border: none; color: var(--wb16e-light); font-size: 2rem; cursor: pointer; }
.wb16e-menu-list { display: flex; flex-direction: column; gap: 0.2rem; }
.wb16e-menu-list a, .wb16e-menu-list button {
  display: flex; align-items: center; gap: 0.8rem; padding: 1.1rem 1rem; border-radius: 8px;
  background: transparent; border: none; color: var(--wb16e-text); font-size: 1.4rem; text-align: left; width: 100%; cursor: pointer; font-family: inherit;
}
.wb16e-menu-list a:hover, .wb16e-menu-list button:hover { background: rgba(70, 130, 180, 0.2); }
.wb16e-menu-list .material-icons, .wb16e-menu-list .fas, .wb16e-menu-list .bi { width: 2rem; color: var(--wb16e-accent-bright); }
.wb16e-menu-cta { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 0.8rem; }

/* ========== Hero / Carousel ========== */
.wb16e-hero { padding-top: calc(var(--wb16e-header-h) + 1.2rem); }
.wb16e-carousel { position: relative; border-radius: var(--wb16e-radius); overflow: hidden; box-shadow: var(--wb16e-shadow); background: #000; }
.wb16e-carousel-track { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.wb16e-carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; cursor: pointer;
}
.wb16e-carousel-slide.wb16e-slide-active { opacity: 1; }
.wb16e-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.wb16e-carousel-cap {
  position: absolute; left: 1.2rem; bottom: 1.2rem; right: 1.2rem; z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75)); padding: 1.5rem 1rem 1rem; border-radius: 10px;
}
.wb16e-carousel-cap h2 { font-size: 1.7rem; color: #fff; margin-bottom: 0.4rem; font-weight: 700; }
.wb16e-carousel-cap p { font-size: 1.2rem; color: rgba(255, 255, 255, 0.9); margin-bottom: 0.6rem; }
.wb16e-carousel-cap .wb16e-link-btn {
  display: inline-block; background: linear-gradient(135deg, var(--wb16e-accent), var(--wb16e-accent-bright));
  color: #fff; padding: 0.7rem 1.3rem; border-radius: 20px; font-size: 1.2rem; font-weight: 700;
}
.wb16e-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 3.4rem; height: 3.4rem; border-radius: 50%;
  background: rgba(0, 0, 0, 0.45); border: none; color: #fff; font-size: 1.6rem; cursor: pointer; z-index: 3;
  display: flex; align-items: center; justify-content: center;
}
.wb16e-carousel-arrow:hover { background: rgba(70, 130, 180, 0.75); }
.wb16e-carousel-prev { left: 0.8rem; }
.wb16e-carousel-next { right: 0.8rem; }
.wb16e-carousel-dots { position: absolute; bottom: 0.8rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; z-index: 3; }
.wb16e-carousel-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: rgba(255, 255, 255, 0.5); border: none; cursor: pointer; }
.wb16e-carousel-dot.wb16e-dot-active { background: var(--wb16e-accent-bright); width: 2rem; border-radius: 4px; }

/* ========== Section ========== */
.wb16e-section { padding: 2rem 0; }
.wb16e-section-head { margin-bottom: 1.2rem; }
.wb16e-section-head h2 { font-size: 1.7rem; color: var(--wb16e-light); font-weight: 700; margin-bottom: 0.4rem; }
.wb16e-section-head p { font-size: 1.25rem; color: var(--wb16e-text-muted); }
.wb16e-section-title {
  font-size: 1.8rem; font-weight: 800; color: var(--wb16e-light); margin: 1.6rem 0 1rem;
  display: flex; align-items: center; gap: 0.6rem; border-left: 4px solid var(--wb16e-accent); padding-left: 0.9rem;
}
.wb16e-text-link { color: var(--wb16e-accent-bright); font-weight: 600; cursor: pointer; }
.wb16e-text-link:hover { text-decoration: underline; }

/* ========== Filter chips ========== */
.wb16e-filter-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 1.4rem; }
.wb16e-filter-chip {
  padding: 0.6rem 1.1rem; border-radius: 20px; background: rgba(224, 255, 255, 0.06);
  border: 1px solid rgba(224, 255, 255, 0.15); color: var(--wb16e-text); font-size: 1.2rem; cursor: pointer;
  transition: all .2s; font-family: inherit;
}
.wb16e-filter-chip:hover { background: rgba(70, 130, 180, 0.2); }
.wb16e-filter-chip.wb16e-chip-active {
  background: linear-gradient(135deg, var(--wb16e-accent), var(--wb16e-accent-bright));
  border-color: transparent; color: #fff; font-weight: 700;
}

/* ========== Game grid ========== */
.wb16e-game-group { margin-bottom: 1.8rem; }
.wb16e-game-group-title {
  font-size: 1.5rem; font-weight: 700; color: var(--wb16e-gold); margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.wb16e-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.wb16e-card {
  background: var(--wb16e-bg-card); border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 1px solid rgba(70, 130, 180, 0.25); transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
}
.wb16e-card:hover { transform: translateY(-3px); box-shadow: var(--wb16e-shadow); border-color: var(--wb16e-accent); }
.wb16e-card-img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #1a2533; }
.wb16e-card-name {
  font-size: 1.1rem; color: var(--wb16e-light); padding: 0.5rem 0.4rem; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600;
}
.wb16e-card-badge {
  position: absolute; top: 0.3rem; left: 0.3rem; background: var(--wb16e-danger); color: #fff;
  font-size: 0.9rem; font-weight: 700; padding: 0.1rem 0.4rem; border-radius: 4px;
}
.wb16e-card-badge.wb16e-badge-hot { background: linear-gradient(135deg, #e74c3c, #ff6b35); }
.wb16e-card-badge.wb16e-badge-new { background: linear-gradient(135deg, #2ecc71, #27ae60); }

/* ========== Info / Feature blocks ========== */
.wb16e-info-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.wb16e-info-card {
  background: var(--wb16e-bg-soft); border-radius: var(--wb16e-radius); padding: 1.4rem;
  border: 1px solid rgba(70, 130, 180, 0.2);
}
.wb16e-info-card h3 { font-size: 1.4rem; color: var(--wb16e-light); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.wb16e-info-card p { font-size: 1.25rem; color: var(--wb16e-text-muted); line-height: 1.5; }
.wb16e-info-card .material-icons, .wb16e-info-card .fas { color: var(--wb16e-accent-bright); font-size: 2rem; }

.wb16e-steps { display: flex; flex-direction: column; gap: 0.8rem; counter-reset: step; }
.wb16e-step {
  display: flex; gap: 1rem; align-items: flex-start; background: var(--wb16e-bg-soft); padding: 1.2rem; border-radius: 10px;
  border-left: 3px solid var(--wb16e-accent);
}
.wb16e-step-num {
  flex-shrink: 0; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: linear-gradient(135deg, var(--wb16e-accent), var(--wb16e-accent-bright));
  color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.wb16e-step-body h4 { font-size: 1.3rem; color: var(--wb16e-light); margin-bottom: 0.3rem; }
.wb16e-step-body p { font-size: 1.2rem; color: var(--wb16e-text-muted); }

/* ========== FAQ ========== */
.wb16e-faq-item {
  background: var(--wb16e-bg-soft); border-radius: 10px; margin-bottom: 0.7rem; overflow: hidden; border: 1px solid rgba(70, 130, 180, 0.18);
}
.wb16e-faq-q { padding: 1rem 1.2rem; font-size: 1.3rem; color: var(--wb16e-light); font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.wb16e-faq-q .wb16e-faq-icon { color: var(--wb16e-accent-bright); transition: transform .2s; }
.wb16e-faq-a { padding: 0 1.2rem 1rem; font-size: 1.2rem; color: var(--wb16e-text-muted); display: none; }
.wb16e-faq-item.wb16e-faq-open .wb16e-faq-a { display: block; }
.wb16e-faq-item.wb16e-faq-open .wb16e-faq-icon { transform: rotate(45deg); }

/* ========== Testimonials ========== */
.wb16e-testimonials { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
.wb16e-testimonial {
  background: var(--wb16e-bg-soft); border-radius: 10px; padding: 1.1rem; border-left: 3px solid var(--wb16e-gold);
}
.wb16e-testimonial-stars { color: var(--wb16e-gold); font-size: 1.2rem; margin-bottom: 0.4rem; }
.wb16e-testimonial-text { font-size: 1.2rem; color: var(--wb16e-text); margin-bottom: 0.5rem; font-style: italic; }
.wb16e-testimonial-author { font-size: 1.1rem; color: var(--wb16e-text-muted); }

/* ========== Winners ========== */
.wb16e-winners { background: var(--wb16e-bg-soft); border-radius: var(--wb16e-radius); padding: 1rem 1.2rem; overflow: hidden; }
.wb16e-winners-list { display: flex; flex-direction: column; gap: 0.5rem; }
.wb16e-winner-row { display: flex; justify-content: space-between; align-items: center; font-size: 1.15rem; padding: 0.5rem 0; border-bottom: 1px dashed rgba(224, 255, 255, 0.1); }
.wb16e-winner-name { color: var(--wb16e-light); font-weight: 600; }
.wb16e-winner-game { color: var(--wb16e-text-muted); }
.wb16e-winner-amount { color: var(--wb16e-gold); font-weight: 700; }

/* ========== Payment ========== */
.wb16e-payments { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.wb16e-payment {
  background: var(--wb16e-bg-soft); border-radius: 8px; padding: 0.8rem 1.1rem; border: 1px solid rgba(70, 130, 180, 0.2);
  font-size: 1.15rem; color: var(--wb16e-text); display: flex; align-items: center; gap: 0.5rem;
}

/* ========== CTA ========== */
.wb16e-cta {
  background: linear-gradient(135deg, var(--wb16e-secondary), var(--wb16e-dark)); border-radius: var(--wb16e-radius);
  padding: 1.6rem; text-align: center; border: 1px solid var(--wb16e-accent); margin: 1.5rem 0;
}
.wb16e-cta h3 { font-size: 1.6rem; color: var(--wb16e-light); margin-bottom: 0.5rem; }
.wb16e-cta p { font-size: 1.25rem; color: var(--wb16e-text-muted); margin-bottom: 1rem; }
.wb16e-cta-btns { display: flex; flex-direction: column; gap: 0.6rem; }

/* ========== Footer ========== */
.wb16e-footer { background: var(--wb16e-secondary); padding: 2rem 0 1.5rem; margin-top: 2rem; border-top: 1px solid rgba(70, 130, 180, 0.3); }
.wb16e-footer-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
.wb16e-footer-col h4 { font-size: 1.3rem; color: var(--wb16e-light); margin-bottom: 0.6rem; }
.wb16e-footer-col ul li { margin-bottom: 0.4rem; }
.wb16e-footer-col a { color: var(--wb16e-text-muted); font-size: 1.15rem; }
.wb16e-footer-col a:hover { color: var(--wb16e-accent-bright); }
.wb16e-footer-brand { font-size: 1.2rem; color: var(--wb16e-text-muted); line-height: 1.6; margin-bottom: 0.8rem; }
.wb16e-footer-promo { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
.wb16e-footer-promo .wb16e-btn { flex: 1 1 auto; min-width: 8rem; padding: 0.8rem 1rem; font-size: 1.15rem; }
.wb16e-footer-copy { text-align: center; font-size: 1.1rem; color: var(--wb16e-text-muted); border-top: 1px solid rgba(224, 255, 255, 0.08); padding-top: 1rem; }

/* ========== Bottom Nav ========== */
.wb16e-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; height: var(--wb16e-nav-h);
  background: linear-gradient(180deg, var(--wb16e-dark), var(--wb16e-secondary));
  border-top: 1px solid rgba(70, 130, 180, 0.45);
  display: flex; justify-content: space-around; align-items: center; z-index: 1000;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.4);
}
.wb16e-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px; background: transparent; border: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
  color: var(--wb16e-text-muted); cursor: pointer; font-family: inherit; font-size: 1rem; font-weight: 600;
  transition: color .2s, transform .15s; padding: 0.3rem;
}
.wb16e-nav-btn:active { transform: scale(0.9); }
.wb16e-nav-btn .material-icons, .wb16e-nav-btn .fas, .wb16e-nav-btn .far, .wb16e-nav-btn .bi, .wb16e-nav-btn .icon, .wb16e-nav-btn .ion-icon { font-size: 2.2rem; }
.wb16e-nav-btn:hover { color: var(--wb16e-accent-bright); }
.wb16e-nav-btn.wb16e-nav-active { color: var(--wb16e-accent-bright); }
.wb16e-nav-btn.wb16e-nav-active::before {
  content: ''; position: absolute; top: 0; width: 2.4rem; height: 3px; border-radius: 0 0 4px 4px;
  background: var(--wb16e-accent-bright);
}
.wb16e-nav-btn { position: relative; }
.wb16e-nav-promo { color: var(--wb16e-gold); }

/* ========== Desktop ========== */
@media (min-width: 769px) {
  .wb16e-bottom-nav { display: none; }
  main { padding-bottom: 2rem; }
  .wb16e-container { max-width: 900px; }
  .wb16e-grid { grid-template-columns: repeat(5, 1fr); }
  .wb16e-info-grid { grid-template-columns: repeat(3, 1fr); }
  .wb16e-testimonials { grid-template-columns: repeat(3, 1fr); }
  .wb16e-footer-grid { grid-template-columns: repeat(4, 1fr); }
  .wb16e-menu-toggle { display: none; }
  .wb16e-desktop-nav { display: flex; gap: 1.2rem; }
  .wb16e-desktop-nav a { color: var(--wb16e-text); font-size: 1.3rem; }
  .wb16e-desktop-nav a:hover { color: var(--wb16e-accent-bright); }
}

.wb16e-desktop-nav { display: none; }
@media (min-width: 769px) { .wb16e-desktop-nav { display: flex; gap: 1.2rem; } }

/* Utility */
.wb16e-mt-1 { margin-top: 1rem; }
.wb16e-mt-2 { margin-top: 2rem; }
.wb16e-mb-1 { margin-bottom: 1rem; }
.wb16e-text-center { text-align: center; }
.wb16e-hidden { display: none; }
.wb16e-promo-text { color: var(--wb16e-gold); font-weight: 700; }
