/* ============================================================
   spinph apk - style-caff.css
   All custom classes use the "vfbe-" prefix.
   Palette: #1C2833 (dark bg) | #FAF0E6 (light text) | #F0F0F0
   Accents: gold #E6B450 / red #E04F5F
   ============================================================ */

:root {
  --vfbe-bg: #1C2833;
  --vfbe-bg-2: #243341;
  --vfbe-bg-3: #2E4150;
  --vfbe-text: #FAF0E6;
  --vfbe-muted: #B9C3CC;
  --vfbe-surface: #F0F0F0;
  --vfbe-primary: #E6B450;
  --vfbe-primary-2: #D4A03C;
  --vfbe-accent: #E04F5F;
  --vfbe-success: #2ECC71;
  --vfbe-radius: 14px;
  --vfbe-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --vfbe-header-h: 60px;
  --vfbe-nav-h: 62px;
  --vfbe-max: 430px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--vfbe-bg);
  color: var(--vfbe-text);
  line-height: 1.5;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--vfbe-primary); text-decoration: none; }

.vfbe-wrapper {
  max-width: var(--vfbe-max);
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(180deg, #1C2833 0%, #243341 100%);
  position: relative;
  padding-bottom: 80px;
}

/* ===== Header ===== */
.vfbe-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--vfbe-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: rgba(28, 40, 51, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(230, 180, 80, 0.25);
}
.vfbe-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--vfbe-text);
  font-size: 16px;
  letter-spacing: 0.3px;
}
.vfbe-brand img { width: 30px; height: 30px; border-radius: 8px; }
.vfbe-brand .vfbe-brand-tag {
  font-size: 10px; color: var(--vfbe-primary);
  font-weight: 600; display: block; line-height: 1;
}
.vfbe-header-actions { display: flex; align-items: center; gap: 8px; }
.vfbe-btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
}
.vfbe-btn:active { transform: scale(0.96); }
.vfbe-btn-login {
  background: transparent;
  color: var(--vfbe-text);
  border: 1px solid rgba(250, 240, 230, 0.4);
}
.vfbe-btn-register {
  background: linear-gradient(135deg, var(--vfbe-primary), var(--vfbe-primary-2));
  color: #1C2833;
  box-shadow: 0 4px 12px rgba(230, 180, 80, 0.4);
}
.vfbe-menu-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--vfbe-bg-3);
  color: var(--vfbe-text);
  border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 20px;
}

/* ===== Mobile slide-down menu ===== */
.vfbe-mobile-menu {
  position: fixed;
  top: var(--vfbe-header-h);
  left: 0; right: 0;
  max-width: var(--vfbe-max);
  margin: 0 auto;
  background: var(--vfbe-bg-2);
  border-bottom: 1px solid rgba(230, 180, 80, 0.2);
  padding: 10px 12px 14px;
  transform: translateY(-130%);
  transition: transform 0.28s ease;
  z-index: 9999;
  border-radius: 0 0 16px 16px;
  box-shadow: var(--vfbe-shadow);
}
.vfbe-mobile-menu.vfbe-menu-open { transform: translateY(0); }
.vfbe-mobile-menu a {
  display: block;
  padding: 11px 12px;
  margin: 4px 0;
  color: var(--vfbe-text);
  background: var(--vfbe-bg-3);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}
.vfbe-mobile-menu a:active { background: var(--vfbe-primary); color: #1C2833; }

/* ===== Sections / layout ===== */
.vfbe-section { padding: 18px 12px 6px; }
.vfbe-section-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 12px;
  display: flex; align-items: center; gap: 8px;
  color: var(--vfbe-text);
}
.vfbe-section-title::before {
  content: "";
  width: 4px; height: 20px;
  background: var(--vfbe-primary);
  border-radius: 4px;
}
.vfbe-intro {
  color: var(--vfbe-muted);
  font-size: 13.5px;
  margin: 0 0 10px;
}

/* ===== Hero carousel ===== */
.vfbe-hero {
  margin: 12px;
  border-radius: var(--vfbe-radius);
  overflow: hidden;
  box-shadow: var(--vfbe-shadow);
  position: relative;
}
.vfbe-hero-viewport { overflow: hidden; border-radius: var(--vfbe-radius); }
.vfbe-hero-track {
  display: flex;
  transition: transform 0.6s ease;
  will-change: transform;
}
.vfbe-hero-slide {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}
.vfbe-hero-slide img { width: 100%; height: 190px; object-fit: cover; }
.vfbe-hero-cap {
  position: absolute;
  left: 12px; bottom: 12px;
  background: rgba(28, 40, 51, 0.78);
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  color: var(--vfbe-text);
}
.vfbe-hero-dots {
  position: absolute;
  bottom: 8px; right: 12px;
  display: flex; gap: 5px;
}
.vfbe-hero-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(250, 240, 230, 0.4);
}
.vfbe-hero-dot-active { background: var(--vfbe-primary); }

/* ===== Game grid ===== */
.vfbe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.vfbe-card {
  background: var(--vfbe-bg-2);
  border-radius: 12px;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.04);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.2s, border-color 0.2s;
}
.vfbe-card-in { opacity: 1; transform: translateY(0); }
.vfbe-card:active {
  transform: scale(0.97);
  border-color: var(--vfbe-primary);
}
.vfbe-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 6px;
}
.vfbe-card-name {
  font-size: 11.5px;
  color: var(--vfbe-text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vfbe-card-tag {
  display: inline-block;
  font-size: 9px;
  margin-top: 3px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(230, 180, 80, 0.15);
  color: var(--vfbe-primary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ===== Category strip ===== */
.vfbe-cat-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 18px 0 10px;
}
.vfbe-cat-head h2 { font-size: 16px; margin: 0; color: var(--vfbe-text); }
.vfbe-cat-head a { font-size: 12px; color: var(--vfbe-primary); font-weight: 600; }

/* ===== Promo CTA ===== */
.vfbe-cta {
  margin: 16px 12px;
  padding: 16px;
  border-radius: var(--vfbe-radius);
  background: linear-gradient(135deg, #E6B450 0%, #E04F5F 100%);
  color: #1C2833;
  text-align: center;
  box-shadow: var(--vfbe-shadow);
}
.vfbe-cta h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.vfbe-cta p { margin: 0 0 12px; font-size: 13px; font-weight: 600; }
.vfbe-cta .vfbe-btn {
  background: #1C2833; color: var(--vfbe-primary);
  padding: 10px 22px;
}

/* ===== Feature / info blocks ===== */
.vfbe-tile {
  background: var(--vfbe-bg-2);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.vfbe-tile .vfbe-tile-ico {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(230, 180, 80, 0.15);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--vfbe-primary);
  font-size: 22px; flex-shrink: 0;
}
.vfbe-tile h3 { margin: 0 0 4px; font-size: 14.5px; }
.vfbe-tile p { margin: 0; font-size: 12.5px; color: var(--vfbe-muted); }

/* RTP bars */
.vfbe-rtp-row { margin-bottom: 10px; }
.vfbe-rtp-top {
  display: flex; justify-content: space-between;
  font-size: 12.5px; margin-bottom: 4px;
}
.vfbe-rtp-bar {
  height: 8px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.vfbe-rtp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--vfbe-primary), var(--vfbe-accent));
  border-radius: 6px;
}

/* Testimonials */
.vfbe-quote {
  background: var(--vfbe-bg-2);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  font-size: 13px;
}
.vfbe-quote-author {
  margin-top: 8px;
  font-size: 12px;
  color: var(--vfbe-primary);
  font-weight: 700;
}

/* Payment chips */
.vfbe-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vfbe-chip {
  background: var(--vfbe-bg-2);
  color: var(--vfbe-text);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Winners list */
.vfbe-winners {
  background: var(--vfbe-bg-2);
  border-radius: 12px;
  padding: 12px;
}
.vfbe-winner-row {
  display: flex; justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
}
.vfbe-winner-row:last-child { border-bottom: 0; }
.vfbe-winner-amount { color: var(--vfbe-success); font-weight: 700; }

/* In-content promo links */
.vfbe-link {
  color: var(--vfbe-primary);
  font-weight: 700;
  cursor: pointer;
}
.vfbe-link:hover { text-decoration: underline; }

/* ===== Footer ===== */
.vfbe-footer {
  margin-top: 18px;
  padding: 18px 12px 22px;
  background: #161F29;
  border-top: 1px solid rgba(230, 180, 80, 0.18);
  font-size: 12.5px;
  color: var(--vfbe-muted);
}
.vfbe-footer h4 {
  color: var(--vfbe-text);
  font-size: 14px;
  margin: 0 0 8px;
}
.vfbe-footer p { margin: 0 0 12px; line-height: 1.55; }
.vfbe-footer-links {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 12px;
}
.vfbe-footer-links a {
  background: var(--vfbe-bg-3);
  color: var(--vfbe-text);
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 11.5px;
}
.vfbe-footer-promos {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 8px 0 14px;
}
.vfbe-footer-promos button {
  flex: 1 1 45%;
  background: linear-gradient(135deg, var(--vfbe-primary), var(--vfbe-primary-2));
  color: #1C2833;
  border: 0;
  border-radius: 8px;
  padding: 8px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}
.vfbe-copy { font-size: 11px; color: var(--vfbe-muted); text-align: center; }

/* ===== Mobile bottom nav ===== */
.vfbe-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: var(--vfbe-max);
  margin: 0 auto;
  height: var(--vfbe-nav-h);
  background: rgba(22, 31, 41, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(230, 180, 80, 0.25);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.35);
}
.vfbe-navbtn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: 0;
  color: var(--vfbe-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10.5px;
  cursor: pointer;
  padding: 4px 2px;
  transition: color 0.2s, transform 0.15s;
  position: relative;
}
.vfbe-navbtn .vfbe-nav-ico { font-size: 22px; line-height: 1; }
.vfbe-navbtn .material-icons,
.vfbe-navbtn .bi { font-size: 22px; }
.vfbe-navbtn:active { transform: scale(0.92); }
.vfbe-navbtn-active { color: var(--vfbe-primary); }
.vfbe-navbtn-active::after {
  content: "";
  position: absolute;
  top: 0;
  width: 26px; height: 3px;
  background: var(--vfbe-primary);
  border-radius: 0 0 4px 4px;
}
.vfbe-navbtn-promo { color: var(--vfbe-accent); }
.vfbe-nav-badge {
  position: absolute;
  top: 6px; right: 14px;
  background: var(--vfbe-accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 999px;
  min-width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ===== Desktop adjustments ===== */
@media (min-width: 769px) {
  .vfbe-bottomnav { display: none; }
  .vfbe-wrapper { padding-bottom: 24px; }
  .vfbe-menu-btn { display: none; }
}
@media (max-width: 768px) {
  .vfbe-wrapper { padding-bottom: 84px; }
}
