/* =========================================================
 * fun88 dang nhap - theme.css
 * Prefix: v8f5-
 * Mobile-first HTML5 casino/gaming theme.
 * All custom classes use the v8f5- prefix.
 * ========================================================= */

:root {
  --v8f5-primary: #FFB74D;
  --v8f5-bg: #1E1E1E;
  --v8f5-text: #F0FDFF;
  --v8f5-cta: #B22222;
  --v8f5-gold: #FFBF00;
  --v8f5-dark2: #151515;
  --v8f5-card: #262626;
  --v8f5-muted: #b9c4cc;
  --v8f5-border: rgba(255, 183, 77, 0.25);
  --v8f5-radius: 12px;
  --v8f5-header-h: 56px;
}

* { 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(--v8f5-bg);
  color: var(--v8f5-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

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

a { color: var(--v8f5-gold); text-decoration: none; }

/* ============ Layout ============ */
.v8f5-container {
  width: 100%;
  padding: 0 14px;
}

.v8f5-wrapper {
  padding-top: var(--v8f5-header-h);
  padding-bottom: 80px;
}

/* ============ Header ============ */
.v8f5-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--v8f5-header-h);
  background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 100%);
  border-bottom: 2px solid var(--v8f5-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
}

.v8f5-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--v8f5-primary);
  font-size: 1.5rem;
}

.v8f5-logo img { width: 28px; height: 28px; border-radius: 6px; }

.v8f5-header-actions { display: flex; align-items: center; gap: 8px; }

.v8f5-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.25rem;
  padding: 8px 14px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  min-height: 36px;
}
.v8f5-btn:hover { transform: translateY(-1px); }
.v8f5-btn:active { transform: scale(.96); }

.v8f5-btn-login {
  background: transparent;
  color: var(--v8f5-text);
  border: 1px solid var(--v8f5-primary);
}
.v8f5-btn-register {
  background: linear-gradient(90deg, var(--v8f5-cta), #d63030);
  color: #fff;
  box-shadow: 0 2px 8px rgba(178, 34, 34, .45);
}

.v8f5-menu-btn {
  background: transparent;
  border: none;
  color: var(--v8f5-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px 6px;
}

/* ============ Mobile menu ============ */
.v8f5-mobile-menu {
  display: none;
  position: fixed;
  top: var(--v8f5-header-h);
  left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: #1c1c1c;
  border-bottom: 1px solid var(--v8f5-border);
  padding: 10px 14px 16px;
  z-index: 9999;
  flex-direction: column;
  gap: 4px;
}
.v8f5-mobile-menu.v8f5-menu-open { display: flex; }

.v8f5-mobile-menu a {
  color: var(--v8f5-text);
  padding: 10px 8px;
  border-radius: 8px;
  font-size: 1.35rem;
  border-bottom: 1px dashed rgba(255, 255, 255, .06);
}
.v8f5-mobile-menu a:hover { background: rgba(255, 183, 77, .12); color: var(--v8f5-gold); }

/* ============ Hero / Carousel ============ */
.v8f5-hero {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  border-radius: 0 0 var(--v8f5-radius) var(--v8f5-radius);
}
.v8f5-slide {
  display: none;
  width: 100%;
  height: 100%;
}
.v8f5-slide img { width: 100%; height: 100%; object-fit: cover; }
.v8f5-slide-active { display: block; }

.v8f5-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.v8f5-dot {
  width: 8px; height: 8px;
  background: rgba(255, 255, 255, .45);
  border-radius: 50%;
  border: none; cursor: pointer;
}
.v8f5-dot-active { background: var(--v8f5-gold); }

/* ============ Section ============ */
.v8f5-section { padding: 18px 14px; }
.v8f5-section h2 {
  font-size: 1.7rem;
  color: var(--v8f5-primary);
  margin-bottom: 10px;
  border-left: 4px solid var(--v8f5-gold);
  padding-left: 8px;
}
.v8f5-section h3 {
  font-size: 1.45rem;
  color: var(--v8f5-gold);
  margin: 12px 0 6px;
}
.v8f5-section p { color: var(--v8f5-text); margin-bottom: 8px; }

.v8f5-h1 {
  font-size: 2rem;
  color: var(--v8f5-gold);
  text-align: center;
  padding: 14px 12px 4px;
}

/* ============ Filter ============ */
.v8f5-filter {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 14px 4px;
  scrollbar-width: none;
}
.v8f5-filter::-webkit-scrollbar { display: none; }
.v8f5-filter-btn {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--v8f5-border);
  background: #232323;
  color: var(--v8f5-text);
  font-size: 1.2rem;
  cursor: pointer;
  white-space: nowrap;
}
.v8f5-filter-active {
  background: var(--v8f5-primary);
  color: #1a1a1a;
  border-color: var(--v8f5-primary);
  font-weight: 700;
}

/* ============ Game Grid ============ */
.v8f5-game-block { margin-bottom: 6px; }
.v8f5-game-block-title {
  font-size: 1.4rem;
  color: var(--v8f5-primary);
  padding: 8px 14px 6px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.v8f5-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 14px;
}
.v8f5-card {
  background: var(--v8f5-card);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding: 6px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  border: 1px solid transparent;
}
.v8f5-card:hover {
  transform: translateY(-2px);
  border-color: var(--v8f5-border);
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
}
.v8f5-card img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  border-radius: 8px;
}
.v8f5-card-name {
  font-size: 1.1rem;
  color: var(--v8f5-text);
  margin-top: 4px;
  line-height: 1.3;
  min-height: 30px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============ Promo / CTA ============ */
.v8f5-promo-banner {
  margin: 14px;
  padding: 16px;
  border-radius: var(--v8f5-radius);
  background: linear-gradient(135deg, #b22222, #7a1818);
  text-align: center;
}
.v8f5-promo-banner h3 { color: #fff; font-size: 1.6rem; margin-bottom: 6px; }
.v8f5-promo-banner p { color: #ffe6e6; font-size: 1.25rem; margin-bottom: 10px; }

.v8f5-text-link {
  color: var(--v8f5-gold);
  font-weight: 700;
  text-decoration: underline;
}

.v8f5-cta-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 14px 0;
}
.v8f5-cta-row .v8f5-btn { padding: 12px 22px; font-size: 1.35rem; }

/* ============ Info cards / lists ============ */
.v8f5-info-card {
  background: var(--v8f5-card);
  border-radius: var(--v8f5-radius);
  padding: 14px;
  margin: 8px 14px;
  border-left: 4px solid var(--v8f5-primary);
}
.v8f5-info-card h3 { color: var(--v8f5-gold); margin-bottom: 6px; }

.v8f5-list { padding-left: 18px; margin: 8px 14px; }
.v8f5-list li { color: var(--v8f5-text); margin-bottom: 6px; }

.v8f5-table {
  width: calc(100% - 28px);
  margin: 8px 14px;
  border-collapse: collapse;
  background: var(--v8f5-card);
  border-radius: 8px;
  overflow: hidden;
  font-size: 1.2rem;
}
.v8f5-table th, .v8f5-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-align: left;
}
.v8f5-table th { background: rgba(255, 183, 77, .15); color: var(--v8f5-gold); }

.v8f5-testimonial {
  background: var(--v8f5-card);
  border-radius: 10px;
  padding: 12px;
  margin: 8px 14px;
  border-left: 3px solid var(--v8f5-gold);
}
.v8f5-testimonial .v8f5-stars { color: var(--v8f5-gold); }

.v8f5-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 14px;
}
.v8f5-pay-grid .v8f5-pay-item {
  background: var(--v8f5-card);
  border-radius: 8px;
  text-align: center;
  padding: 10px 4px;
  font-size: 1.1rem;
  color: var(--v8f5-text);
}
.v8f5-pay-grid .v8f5-pay-item i { font-size: 2rem; color: var(--v8f5-primary); display: block; margin-bottom: 4px; }

/* ============ Footer ============ */
.v8f5-footer {
  background: var(--v8f5-dark2);
  padding: 22px 14px 30px;
  border-top: 2px solid var(--v8f5-primary);
  margin-top: 16px;
}
.v8f5-footer-brand { color: var(--v8f5-text); font-size: 1.25rem; line-height: 1.6; margin-bottom: 12px; }
.v8f5-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.v8f5-footer-links a {
  background: #2a2a2a;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 1.15rem;
  color: var(--v8f5-text);
}
.v8f5-footer-links a:hover { background: var(--v8f5-primary); color: #1a1a1a; }
.v8f5-footer-copy { color: var(--v8f5-muted); font-size: 1.1rem; border-top: 1px dashed rgba(255,255,255,.08); padding-top: 10px; }

/* ============ Bottom Navigation ============ */
.v8f5-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 62px;
  background: linear-gradient(180deg, #1f1f1f, #111);
  border-top: 2px solid var(--v8f5-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}
.v8f5-bottomnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  color: var(--v8f5-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  gap: 2px;
  text-decoration: none;
  transition: color .15s ease, transform .15s ease;
}
.v8f5-bottomnav-item .material-icons,
.v8f5-bottomnav-item i { font-size: 24px; }
.v8f5-bottomnav-item:hover { color: var(--v8f5-gold); transform: translateY(-2px); }
.v8f5-bottomnav-active { color: var(--v8f5-gold); }
.v8f5-bottomnav-active i,
.v8f5-bottomnav-active .material-icons { color: var(--v8f5-gold); }
.v8f5-bottomnav-badge {
  position: absolute;
  top: 6px;
  background: var(--v8f5-cta);
  color: #fff;
  font-size: .9rem;
  padding: 1px 5px;
  border-radius: 8px;
}
.v8f5-bottomnav-item { position: relative; }

/* ============ Responsive ============ */
@media (min-width: 769px) {
  .v8f5-bottomnav { display: none; }
  body { max-width: 430px; }
  .v8f5-wrapper { padding-bottom: 24px; }
}

@media (max-width: 768px) {
  .v8f5-wrapper { padding-bottom: 80px; }
}

@media (max-width: 360px) {
  .v8f5-grid { grid-template-columns: repeat(2, 1fr); }
  .v8f5-card img { height: 90px; }
  .v8f5-h1 { font-size: 1.7rem; }
}
