/* ============================================================
   PH JL4 - theme-f1cb.css
   All custom classes use the "vb77-" prefix.
   Palette: #A0522D | #D2691E | #141414 | #495057 | #FFDEAD | #004D40
   Dark backgrounds, light text. Mobile-first, max 430px.
   ============================================================ */

:root {
  --vb77-primary: #D2691E;
  --vb77-primary-dark: #A0522D;
  --vb77-bg: #141414;
  --vb77-bg-2: #1f1a16;
  --vb77-bg-3: #2a221c;
  --vb77-text: #FFDEAD;
  --vb77-text-dim: #cbb48a;
  --vb77-muted: #495057;
  --vb77-accent: #004D40;
  --vb77-accent-2: #0a6b5c;
  --vb77-white: #fff;
  --vb77-border: rgba(255, 222, 173, 0.14);
  --vb77-shadow: 0 4px 18px rgba(0,0,0,0.45);
  --vb77-radius: 10px;
  --vb77-header-h: 56px;
  --vb77-bottomnav-h: 62px;
}

* { 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(--vb77-bg);
  color: var(--vb77-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---------- Layout ---------- */
.vb77-wrapper { max-width: 430px; margin: 0 auto; position: relative; }
.vb77-container { padding: 0 1.2rem; }
.vb77-section { padding: 2rem 1.2rem; }
.vb77-section-alt { background: var(--vb77-bg-2); }

/* ---------- Header ---------- */
.vb77-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #1a140f 0%, #141414 100%);
  border-bottom: 2px solid var(--vb77-primary-dark);
  box-shadow: var(--vb77-shadow);
}
.vb77-header-inner {
  max-width: 430px; margin: 0 auto; height: var(--vb77-header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem;
}
.vb77-brand { display: flex; align-items: center; gap: 0.6rem; }
.vb77-brand img { width: 30px; height: 30px; border-radius: 6px; }
.vb77-brand-name { font-size: 1.7rem; font-weight: 800; color: var(--vb77-text); letter-spacing: 0.5px; }
.vb77-brand-name span { color: var(--vb77-primary); }
.vb77-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.vb77-menu-btn {
  background: none; border: 1px solid var(--vb77-border); color: var(--vb77-text);
  width: 38px; height: 38px; border-radius: 8px; cursor: pointer; font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
}
.vb77-menu-btn:hover { background: var(--vb77-bg-3); }

/* ---------- Auth buttons ---------- */
.vb77-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-weight: 700; border: none; cursor: pointer; border-radius: 8px;
  padding: 0.7rem 1.2rem; font-size: 1.3rem; text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease;
  min-height: 40px;
}
.vb77-btn:hover { transform: translateY(-1px); color: var(--vb77-white); }
.vb77-btn-login {
  background: transparent; color: var(--vb77-text);
  border: 1px solid var(--vb77-primary);
}
.vb77-btn-login:hover { background: var(--vb77-primary-dark); }
.vb77-btn-register {
  background: linear-gradient(90deg, var(--vb77-primary) 0%, var(--vb77-primary-dark) 100%);
  color: var(--vb77-white);
}
.vb77-btn-register:hover { background: var(--vb77-primary); }
.vb77-btn-block { display: flex; width: 100%; padding: 1rem; font-size: 1.5rem; }
.vb77-btn-ghost {
  background: var(--vb77-bg-3); color: var(--vb77-text); border: 1px solid var(--vb77-border);
}
.vb77-btn-ghost:hover { background: var(--vb77-accent); color: var(--vb77-white); }

/* ---------- Nav menu ---------- */
.vb77-nav-menu {
  position: fixed; top: var(--vb77-header-h); right: 0; left: 0; z-index: 9999;
  max-width: 430px; margin: 0 auto;
  background: var(--vb77-bg-2);
  border-bottom: 2px solid var(--vb77-primary-dark);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  box-shadow: var(--vb77-shadow);
}
.vb77-nav-open { max-height: 520px; }
.vb77-nav-menu ul { list-style: none; padding: 0.5rem 1rem 1rem; }
.vb77-nav-menu li { border-bottom: 1px solid var(--vb77-border); }
.vb77-nav-menu li:last-child { border-bottom: none; }
.vb77-nav-menu a {
  display: block; padding: 1rem 0.5rem; color: var(--vb77-text); font-weight: 600;
}
.vb77-nav-menu a:hover { color: var(--vb77-primary); padding-left: 1rem; }
.vb77-nav-menu .vb77-nav-promo {
  color: var(--vb77-primary); font-weight: 800;
}

/* ---------- Hero / Carousel ---------- */
.vb77-hero { margin-top: var(--vb77-header-h); }
.vb77-carousel { position: relative; overflow: hidden; }
.vb77-slide { display: none; position: relative; }
.vb77-slide img { width: 100%; height: 180px; object-fit: cover; }
.vb77-slide-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(20,20,20,0.9) 100%);
  padding: 1.2rem 1rem 1rem; color: var(--vb77-text);
}
.vb77-slide-overlay h2 { font-size: 1.8rem; margin-bottom: 0.3rem; color: var(--vb77-white); }
.vb77-slide-overlay p { font-size: 1.2rem; color: var(--vb77-text-dim); margin-bottom: 0.6rem; }
.vb77-dots { text-align: center; padding: 0.5rem 0; background: var(--vb77-bg); }
.vb77-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--vb77-muted); margin: 0 3px; cursor: pointer; transition: background 0.2s;
}
.vb77-dot-active { background: var(--vb77-primary); }

/* ---------- Section titles ---------- */
.vb77-section-title {
  font-size: 1.9rem; font-weight: 800; color: var(--vb77-text);
  margin-bottom: 1rem; padding-left: 0.8rem; border-left: 4px solid var(--vb77-primary);
}
.vb77-section-title small { display:block; font-size:1.2rem; font-weight:500; color: var(--vb77-text-dim); margin-top:0.2rem; }
.vb77-h1 {
  font-size: 2.2rem; font-weight: 800; color: var(--vb77-white);
  text-align: center; margin: 1.5rem 0; line-height: 1.3;
}
.vb77-h1 span { color: var(--vb77-primary); }

/* ---------- Filter chips ---------- */
.vb77-chips { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.5rem 0 1rem; }
.vb77-chips::-webkit-scrollbar { display: none; }
.vb77-chip {
  flex: 0 0 auto; padding: 0.5rem 1rem; border-radius: 20px;
  background: var(--vb77-bg-3); color: var(--vb77-text-dim);
  font-size: 1.2rem; font-weight: 600; cursor: pointer; border: 1px solid var(--vb77-border);
}
.vb77-chip-active { background: var(--vb77-primary); color: var(--vb77-white); border-color: var(--vb77-primary); }

/* ---------- Game grid ---------- */
.vb77-game-group { margin-bottom: 2rem; }
.vb77-game-group-title {
  display: flex; align-items: center; gap: 0.5rem; font-size: 1.5rem; font-weight: 700;
  color: var(--vb77-text); margin-bottom: 0.8rem;
}
.vb77-game-group-title i { color: var(--vb77-primary); }
.vb77-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
}
.vb77-game-card {
  background: var(--vb77-bg-2); border-radius: var(--vb77-radius); overflow: hidden;
  border: 1px solid var(--vb77-border); transition: transform 0.15s ease, border-color 0.2s;
  cursor: pointer; display: block;
}
.vb77-game-card:hover { transform: translateY(-2px); border-color: var(--vb77-primary); }
.vb77-game-card img { width: 100%; height: 80px; object-fit: cover; }
.vb77-game-card .vb77-game-name {
  font-size: 1.05rem; color: var(--vb77-text); padding: 0.4rem 0.3rem;
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Cards ---------- */
.vb77-card {
  background: var(--vb77-bg-2); border-radius: var(--vb77-radius);
  padding: 1.2rem; border: 1px solid var(--vb77-border); margin-bottom: 1rem;
}
.vb77-card h3 { font-size: 1.5rem; color: var(--vb77-text); margin-bottom: 0.5rem; }
.vb77-card p { color: var(--vb77-text-dim); font-size: 1.25rem; line-height: 1.6; }
.vb77-card .vb77-card-icon { color: var(--vb77-primary); font-size: 2.2rem; margin-bottom: 0.5rem; }

/* ---------- Promo banner ---------- */
.vb77-promo-banner {
  background: linear-gradient(135deg, var(--vb77-accent) 0%, var(--vb77-primary-dark) 100%);
  border-radius: var(--vb77-radius); padding: 1.5rem 1.2rem; text-align: center;
  margin: 1.5rem 0; color: var(--vb77-white);
}
.vb77-promo-banner h3 { font-size: 1.7rem; margin-bottom: 0.4rem; color: var(--vb77-white); }
.vb77-promo-banner p { font-size: 1.2rem; margin-bottom: 0.8rem; color: var(--vb77-text); }

/* ---------- RTP table ---------- */
.vb77-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.vb77-rtp-table th, .vb77-rtp-table td { padding: 0.6rem 0.4rem; border-bottom: 1px solid var(--vb77-border); text-align: left; }
.vb77-rtp-table th { color: var(--vb77-primary); font-weight: 700; }
.vb77-rtp-table td { color: var(--vb77-text-dim); }
.vb77-rtp-table td.vb77-rtp-val { color: var(--vb77-text); font-weight: 700; }

/* ---------- Testimonials ---------- */
.vb77-testi { display: flex; gap: 0.8rem; padding: 1rem; background: var(--vb77-bg-3); border-radius: var(--vb77-radius); margin-bottom: 0.8rem; }
.vb77-testi-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--vb77-primary); display:flex; align-items:center; justify-content:center; color: var(--vb77-white); font-weight: 800; flex: 0 0 40px; }
.vb77-testi-name { font-weight: 700; color: var(--vb77-text); font-size: 1.25rem; }
.vb77-testi-stars { color: #FFD700; font-size: 1.1rem; margin: 0.2rem 0; }
.vb77-testi-text { color: var(--vb77-text-dim); font-size: 1.2rem; }

/* ---------- Payment ---------- */
.vb77-pay-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0.6rem; }
.vb77-pay-item { background: var(--vb77-bg-3); border-radius: 8px; padding: 0.7rem 0.3rem; text-align: center; font-size: 1rem; color: var(--vb77-text-dim); border: 1px solid var(--vb77-border); }
.vb77-pay-item i { display:block; font-size: 1.8rem; color: var(--vb77-primary); margin-bottom: 0.2rem; }

/* ---------- Winners ---------- */
.vb77-winner { display:flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px dashed var(--vb77-border); font-size: 1.2rem; }
.vb77-winner-name { color: var(--vb77-text); font-weight: 600; }
.vb77-winner-amount { color: var(--vb77-primary); font-weight: 800; }

/* ---------- FAQ ---------- */
.vb77-faq { border: 1px solid var(--vb77-border); border-radius: var(--vb77-radius); margin-bottom: 0.6rem; overflow: hidden; background: var(--vb77-bg-2); }
.vb77-faq-q { width:100%; text-align:left; background:none; border:none; padding: 1rem; color: var(--vb77-text); font-weight:700; font-size: 1.3rem; cursor: pointer; display:flex; justify-content: space-between; align-items: center; }
.vb77-faq-q .vb77-faq-icon { color: var(--vb77-primary); transition: transform 0.2s; }
.vb77-faq-open .vb77-faq-icon { transform: rotate(45deg); }
.vb77-faq-a { max-height:0; overflow:hidden; transition: max-height 0.25s ease; padding: 0 1rem; color: var(--vb77-text-dim); font-size: 1.2rem; }
.vb77-faq-open .vb77-faq-a { max-height: 300px; padding: 0 1rem 1rem; }

/* ---------- SEO content text ---------- */
.vb77-seo-text { font-size: 1.25rem; color: var(--vb77-text-dim); line-height: 1.7; margin-bottom: 1rem; }
.vb77-seo-text a { color: var(--vb77-primary); font-weight: 600; text-decoration: underline; }
.vb77-seo-text strong { color: var(--vb77-text); }

/* ---------- Achievement / feature list ---------- */
.vb77-feature-list { list-style: none; }
.vb77-feature-list li { display:flex; gap: 0.8rem; padding: 0.6rem 0; border-bottom: 1px solid var(--vb77-border); }
.vb77-feature-list i { color: var(--vb77-accent-2); font-size: 1.6rem; flex: 0 0 auto; margin-top: 0.2rem; }
.vb77-feature-list strong { color: var(--vb77-text); }

/* ---------- Footer ---------- */
.vb77-footer { background: #0f0c09; border-top: 2px solid var(--vb77-primary-dark); padding: 2rem 1.2rem 1rem; margin-top: 2rem; }
.vb77-footer-brand { color: var(--vb77-text-dim); font-size: 1.2rem; margin-bottom: 1rem; line-height: 1.6; }
.vb77-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 1rem; }
.vb77-footer-links a { color: var(--vb77-text-dim); font-size: 1.15rem; }
.vb77-footer-links a:hover { color: var(--vb77-primary); }
.vb77-footer-promos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.vb77-footer-promos .vb77-btn { flex: 1 1 auto; min-width: 120px; }
.vb77-footer-copy { border-top: 1px solid var(--vb77-border); padding-top: 1rem; color: var(--vb77-muted); font-size: 1.1rem; text-align: center; }

/* ---------- Mobile bottom nav ---------- */
.vb77-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #1a140f 0%, #0f0c09 100%);
  border-top: 2px solid var(--vb77-primary-dark);
  height: var(--vb77-bottomnav-h);
  display: flex; justify-content: space-around; align-items: stretch;
  max-width: 430px; margin: 0 auto;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.5);
}
.vb77-navbtn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: none; border: none; color: var(--vb77-text-dim);
  font-size: 1rem; gap: 0.2rem; cursor: pointer; padding: 0.3rem;
  text-decoration: none; transition: color 0.2s, transform 0.15s;
  min-width: 60px; min-height: 60px;
}
.vb77-navbtn i { font-size: 22px; }
.vb77-navbtn .material-icons-outlined,
.vb77-navbtn .material-icons { font-size: 24px; }
.vb77-navbtn:hover, .vb77-navbtn:active { color: var(--vb77-primary); transform: scale(1.08); }
.vb77-navbtn-active { color: var(--vb77-primary); }
.vb77-navbtn-active i { color: var(--vb77-primary); }
.vb77-navbtn-badge {
  position: absolute; top: 4px; right: 18px; background: #d6342f; color: #fff;
  font-size: 9px; min-width: 14px; height: 14px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px; font-weight: 700;
}
.vb77-navbtn { position: relative; }

/* ---------- Spacers ---------- */
.vb77-content-spacer { height: 80px; }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .vb77-bottomnav { display: none; }
  .vb77-wrapper { max-width: 900px; }
  .vb77-header-inner { max-width: 900px; }
  .vb77-nav-menu { max-width: 900px; }
  .vb77-grid { grid-template-columns: repeat(5, 1fr); }
  .vb77-slide img { height: 300px; }
  .vb77-content-spacer { height: 40px; }
}

/* ---------- Mobile clearance ---------- */
@media (max-width: 768px) {
  main.vb77-main { padding-bottom: 80px; }
}
