/* ============================================================
   fun88 casino - style-8c4d.css
   All custom classes use the "vdef-" prefix.
   Mobile-first design (max-width 430px reference).
   Palette: #FF9500 | #FFCCCB | #1C2833 | #6C757D | #FFF176
   ============================================================ */

:root {
  --vdef-primary: #FF9500;
  --vdef-accent: #FFF176;
  --vdef-pink: #FFCCCB;
  --vdef-bg: #1C2833;
  --vdef-bg-2: #16202b;
  --vdef-bg-3: #21303d;
  --vdef-muted: #6C757D;
  --vdef-text: #f4f6f8;
  --vdef-text-dim: #c7ced6;
  --vdef-line: rgba(255, 255, 255, 0.08);
  --vdef-gold: #ffd24d;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

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

body {
  font-family: "Be Vietnam Pro", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--vdef-bg);
  color: var(--vdef-text);
  line-height: 1.5;
  font-size: 1.5rem;
  overflow-x: hidden;
}

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

a { color: var(--vdef-primary); text-decoration: none; }

.vdef-wrapper { width: 100%; max-width: 430px; margin: 0 auto; position: relative; }

.vdef-container { padding: 0 1.4rem; width: 100%; }

/* ===================== HEADER ===================== */
.vdef-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(28,40,51,0.98), rgba(28,40,51,0.92));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--vdef-line);
}
.vdef-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.2rem; min-height: 5.2rem;
}
.vdef-logo { display: flex; align-items: center; gap: 0.6rem; }
.vdef-logo img { width: 3rem; height: 3rem; border-radius: 0.6rem; }
.vdef-logo-text { font-weight: 800; font-size: 1.6rem; color: var(--vdef-primary); letter-spacing: 0.2px; }
.vdef-logo-text span { color: var(--vdef-text); }
.vdef-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.vdef-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.65rem 1.1rem; border-radius: 999px;
  font-weight: 700; font-size: 1.25rem; border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  min-height: 3.6rem;
}
.vdef-btn:active { transform: scale(0.96); }
.vdef-btn-register {
  background: linear-gradient(135deg, var(--vdef-primary), #ff6a00);
  color: #1a1205;
  box-shadow: 0 4px 14px rgba(255,149,0,0.35);
}
.vdef-btn-login {
  background: transparent; color: var(--vdef-text);
  border: 1.5px solid var(--vdef-primary);
}
.vdef-burger {
  display: inline-flex; flex-direction: column; gap: 4px;
  width: 3.6rem; height: 3.6rem; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer; margin-left: 0.2rem;
}
.vdef-burger span {
  display: block; width: 2rem; height: 2px; background: var(--vdef-text); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.vdef-burger-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.vdef-burger-active span:nth-child(2) { opacity: 0; }
.vdef-burger-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===================== MOBILE MENU ===================== */
.vdef-mobile-menu {
  position: fixed; top: 5.2rem; left: 0; right: 0; z-index: 9999;
  background: var(--vdef-bg-2);
  border-bottom: 1px solid var(--vdef-line);
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
}
.vdef-menu-open { max-height: 70vh; overflow-y: auto; }
.vdef-mobile-menu ul { list-style: none; padding: 0.5rem 0; }
.vdef-mobile-menu li a {
  display: block; padding: 1.1rem 1.6rem;
  color: var(--vdef-text); font-size: 1.45rem; font-weight: 600;
  border-bottom: 1px solid var(--vdef-line);
}
.vdef-mobile-menu li a:active { background: var(--vdef-bg-3); }
.vdef-mobile-menu li i { color: var(--vdef-primary); margin-right: 0.8rem; width: 1.8rem; text-align: center; }

/* ===================== MAIN ===================== */
main { padding-top: 5.2rem; }
@media (max-width: 768px) { main { padding-bottom: 8rem; } }

.vdef-section { padding: 2.4rem 0; }
.vdef-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.2rem;
}
.vdef-section-title {
  font-size: 1.7rem; font-weight: 800; color: var(--vdef-text);
  display: flex; align-items: center; gap: 0.6rem;
}
.vdef-section-title i { color: var(--vdef-primary); }
.vdef-section-link { color: var(--vdef-primary); font-size: 1.25rem; font-weight: 700; }

/* ===================== HERO SLIDER ===================== */
.vdef-hero { position: relative; border-radius: 1.4rem; overflow: hidden; margin: 1.4rem 0 0; }
.vdef-slides { position: relative; }
.vdef-slide {
  display: none; cursor: pointer; position: relative;
}
.vdef-slide-active { display: block; }
.vdef-slide img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.vdef-slide-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem; background: linear-gradient(180deg, transparent, rgba(28,40,51,0.92));
}
.vdef-slide-overlay h2 { font-size: 1.7rem; color: var(--vdef-accent); margin-bottom: 0.3rem; }
.vdef-slide-overlay p { font-size: 1.25rem; color: var(--vdef-text-dim); }
.vdef-dots { display: flex; gap: 0.5rem; justify-content: center; padding: 0.8rem 0; }
.vdef-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; }
.vdef-dot-active { background: var(--vdef-primary); width: 1.8rem; border-radius: 999px; }

/* ===================== H1 / INTRO ===================== */
.vdef-page-title {
  font-size: 2rem; font-weight: 800; line-height: 1.25;
  color: var(--vdef-text); margin: 0.4rem 0 1rem;
}
.vdef-page-title b { color: var(--vdef-primary); }
.vdef-intro { color: var(--vdef-text-dim); font-size: 1.4rem; margin-bottom: 1rem; }

/* ===================== CHIPS ===================== */
.vdef-chips { display: flex; gap: 0.6rem; overflow-x: auto; padding-bottom: 0.6rem; margin-bottom: 0.8rem; }
.vdef-chips::-webkit-scrollbar { display: none; }
.vdef-chip {
  flex: 0 0 auto; padding: 0.55rem 1.1rem; border-radius: 999px;
  background: var(--vdef-bg-3); color: var(--vdef-text-dim);
  font-size: 1.2rem; font-weight: 700; cursor: pointer;
  border: 1px solid var(--vdef-line);
}
.vdef-chip-active { background: var(--vdef-primary); color: #1a1205; border-color: var(--vdef-primary); }

/* ===================== GAME GRID ===================== */
.vdef-game-section { margin-bottom: 2rem; }
.vdef-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
}
.vdef-card {
  background: var(--vdef-bg-2); border-radius: 0.9rem; overflow: hidden;
  border: 1px solid var(--vdef-line); cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.vdef-card:active { transform: scale(0.97); }
.vdef-card-img { position: relative; aspect-ratio: 1/1; }
.vdef-card-img img { width: 100%; height: 100%; object-fit: cover; }
.vdef-card-tag {
  position: absolute; top: 0.3rem; left: 0.3rem;
  background: var(--vdef-primary); color: #1a1205;
  font-size: 0.9rem; font-weight: 800; padding: 0.15rem 0.5rem; border-radius: 0.4rem;
}
.vdef-card-name {
  font-size: 1.15rem; font-weight: 600; color: var(--vdef-text);
  padding: 0.5rem 0.5rem 0.7rem; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ===================== PROMO BANNER ===================== */
.vdef-cta-banner {
  background: linear-gradient(135deg, #ff6a00, var(--vdef-primary) 60%, var(--vdef-accent));
  border-radius: 1.2rem; padding: 1.5rem; color: #1a1205;
  display: flex; flex-direction: column; gap: 0.6rem; margin: 1.4rem 0;
}
.vdef-cta-banner h3 { font-size: 1.7rem; font-weight: 800; }
.vdef-cta-banner p { font-size: 1.25rem; }
.vdef-cta-banner .vdef-btn { background: #1C2833; color: var(--vdef-accent); align-self: flex-start; }

/* ===================== CONTENT BLOCKS ===================== */
.vdef-block { background: var(--vdef-bg-2); border-radius: 1rem; padding: 1.4rem; margin: 1rem 0; border: 1px solid var(--vdef-line); }
.vdef-block h2 { font-size: 1.6rem; color: var(--vdef-text); margin-bottom: 0.7rem; font-weight: 800; }
.vdef-block h2 b { color: var(--vdef-primary); }
.vdef-block h3 { font-size: 1.35rem; color: var(--vdef-primary); margin: 0.8rem 0 0.4rem; font-weight: 700; }
.vdef-block p { color: var(--vdef-text-dim); font-size: 1.35rem; margin-bottom: 0.7rem; }
.vdef-block ul { padding-left: 1.6rem; color: var(--vdef-text-dim); }
.vdef-block li { font-size: 1.3rem; margin-bottom: 0.4rem; }

/* ===================== FAQ ===================== */
.vdef-faq-item { border-bottom: 1px solid var(--vdef-line); padding: 0.8rem 0; }
.vdef-faq-q { font-weight: 700; color: var(--vdef-text); font-size: 1.35rem; }
.vdef-faq-a { color: var(--vdef-text-dim); font-size: 1.3rem; margin-top: 0.3rem; }

/* ===================== RTP TABLE ===================== */
.vdef-rtp-table { width: 100%; border-collapse: collapse; margin-top: 0.6rem; }
.vdef-rtp-table th, .vdef-rtp-table td {
  padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--vdef-line); font-size: 1.2rem; text-align: left;
}
.vdef-rtp-table th { color: var(--vdef-accent); font-weight: 700; }
.vdef-rtp-table td:last-child { color: var(--vdef-primary); font-weight: 700; }

/* ===================== TESTIMONIALS ===================== */
.vdef-testi { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.9rem; }
.vdef-testi-av {
  width: 3.2rem; height: 3.2rem; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--vdef-primary), var(--vdef-accent));
  display: flex; align-items: center; justify-content: center; color: #1a1205; font-weight: 800;
}
.vdef-testi-text { font-size: 1.25rem; color: var(--vdef-text-dim); }
.vdef-testi-name { font-size: 1.15rem; color: var(--vdef-primary); font-weight: 700; margin-top: 0.2rem; }
.vdef-stars { color: var(--vdef-gold); font-size: 1.1rem; }

/* ===================== PAY METHODS ===================== */
.vdef-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.vdef-pay-item {
  background: var(--vdef-bg-3); border-radius: 0.7rem; padding: 0.7rem; text-align: center;
  font-size: 1.05rem; color: var(--vdef-text-dim); font-weight: 600;
}
.vdef-pay-item i { font-size: 1.8rem; color: var(--vdef-primary); display: block; margin-bottom: 0.3rem; }

/* ===================== WINNERS ===================== */
.vdef-winner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0; border-bottom: 1px dashed var(--vdef-line);
}
.vdef-winner-name { color: var(--vdef-text); font-size: 1.25rem; font-weight: 700; }
.vdef-winner-amount { color: var(--vdef-gold); font-weight: 800; font-size: 1.3rem; }

/* ===================== APP DOWNLOAD ===================== */
.vdef-app-cta { background: linear-gradient(135deg, #21303d, #16202b); border: 1px solid var(--vdef-primary); border-radius: 1.2rem; padding: 1.3rem; display: flex; gap: 1rem; align-items: center; }
.vdef-app-cta i { font-size: 3rem; color: var(--vdef-primary); }
.vdef-app-cta h3 { font-size: 1.45rem; color: var(--vdef-text); }
.vdef-app-cta p { font-size: 1.2rem; color: var(--vdef-text-dim); margin: 0.2rem 0 0.6rem; }

/* ===================== INLINE LINK LISTS ===================== */
.vdef-link-rows a { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--vdef-line); color: var(--vdef-text); font-size: 1.3rem; font-weight: 600; }
.vdef-link-rows a i { color: var(--vdef-primary); margin-right: 0.6rem; }

/* ===================== FOOTER ===================== */
.vdef-footer { background: var(--vdef-bg-2); border-top: 1px solid var(--vdef-line); padding: 2rem 0 7rem; margin-top: 2rem; }
.vdef-footer-brand { color: var(--vdef-text-dim); font-size: 1.3rem; margin-bottom: 1rem; }
.vdef-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 1rem; margin-bottom: 1.2rem; }
.vdef-footer-links a { font-size: 1.2rem; color: var(--vdef-text-dim); }
.vdef-footer-promos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
.vdef-footer-promos .vdef-btn { font-size: 1.1rem; padding: 0.5rem 0.9rem; min-height: 3rem; }
.vdef-footer-copy { font-size: 1.1rem; color: var(--vdef-muted); text-align: center; padding-top: 1rem; border-top: 1px solid var(--vdef-line); }

/* ===================== BOTTOM NAV ===================== */
.vdef-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(28,40,51,0.98), #11181f);
  border-top: 1px solid var(--vdef-line);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 6rem; max-width: 430px; margin: 0 auto;
}
.vdef-bottom-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer; color: var(--vdef-text-dim);
  font-size: 1rem; font-weight: 600; gap: 0.2rem;
  transition: color .15s ease, transform .15s ease;
  padding: 0.4rem 0.2rem;
}
.vdef-bottom-btn:active { transform: scale(0.92); }
.vdef-bottom-btn i, .vdef-bottom-btn .material-icons-outlined, .vdef-bottom-btn ion-icon { font-size: 2.2rem; line-height: 1; }
.vdef-bottom-btn .material-icons-outlined { font-family: 'Material Icons Outlined'; }
.vdef-bottom-btn-active { color: var(--vdef-primary); }
.vdef-bottom-btn-promo { color: var(--vdef-accent); }
@media (min-width: 769px) { .vdef-bottom-nav { display: none; } .vdef-footer { padding-bottom: 2rem; } main { padding-bottom: 2rem; } }

/* ===================== BACK TO TOP ===================== */
#vdefTopBtn {
  position: fixed; right: 1.2rem; bottom: 7rem; z-index: 999;
  width: 4rem; height: 4rem; border-radius: 50%;
  background: var(--vdef-primary); color: #1a1205;
  border: none; cursor: pointer; font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.vdef-top-visible { opacity: 1; pointer-events: auto; }

/* ===================== DESKTOP TWEAK ===================== */
@media (min-width: 431px) {
  .vdef-wrapper { max-width: 430px; }
}
