/* ============================================================
   DM88 Stylesheet (Vietnamese site)
   All custom classes use s946- prefix for namespace isolation
   Palette: #0000CD | #ADD8E6 | #495057 | #262626 | #00CED1 | #8B0000
   ============================================================ */

:root {
  --s946-primary: #0000CD;
  --s946-primary-light: #3a5bff;
  --s946-accent: #00CED1;
  --s946-accent-soft: rgba(0, 206, 209, 0.18);
  --s946-alert: #8B0000;
  --s946-alert-bright: #e23b3b;
  --s946-bg: #0b0b16;
  --s946-bg-2: #14142a;
  --s946-bg-card: #262626;
  --s946-bg-card-2: #1c1c33;
  --s946-text: #ADD8E6;
  --s946-text-bright: #ffffff;
  --s946-text-muted: #8a93a8;
  --s946-border: rgba(0, 206, 209, 0.2);
  --s946-gold: #FFD55a;
  --s946-radius: 14px;
  --s946-radius-lg: 22px;
  --s946-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
  --s946-shadow-accent: 0 10px 28px rgba(0, 206, 209, 0.35);
  --s946-transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Be Vietnam Pro', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #1a1a3a 0%, var(--s946-bg) 60%);
  background-attachment: fixed;
  color: var(--s946-text-bright);
  line-height: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--s946-accent); text-decoration: none; transition: color var(--s946-transition); }
a:hover { color: var(--s946-text-bright); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.s946-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
  position: relative;
}

.s946-wrapper { width: 100%; }

/* ---------- Header ---------- */
.s946-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(11, 11, 22, 0.97) 0%, rgba(11, 11, 22, 0.88) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--s946-border);
}

.s946-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.7rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.s946-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--s946-text-bright);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 0.5px;
}

.s946-logo img { width: 30px; height: 30px; border-radius: 8px; }
.s946-logo span {
  background: linear-gradient(90deg, var(--s946-accent), var(--s946-primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.s946-header-actions { display: flex; align-items: center; gap: 0.5rem; }

.s946-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 700;
  min-height: 36px;
  transition: transform var(--s946-transition), box-shadow var(--s946-transition), background var(--s946-transition);
  white-space: nowrap;
}

.s946-btn-login {
  background: transparent;
  color: var(--s946-text);
  border: 1px solid var(--s946-border);
}
.s946-btn-login:hover { color: var(--s946-text-bright); border-color: var(--s946-accent); }

.s946-btn-register {
  background: linear-gradient(135deg, var(--s946-primary) 0%, var(--s946-primary-light) 100%);
  color: #fff;
  box-shadow: var(--s946-shadow-accent);
}
.s946-btn-register:hover { transform: translateY(-1px); }

.s946-btn-cta {
  background: linear-gradient(135deg, var(--s946-accent) 0%, var(--s946-primary-light) 100%);
  color: #04121a;
  font-weight: 800;
  padding: 1rem 2rem;
  font-size: 1.5rem;
  box-shadow: var(--s946-shadow-accent);
}
.s946-btn-cta:hover { transform: translateY(-2px); }

.s946-menu-toggle {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--s946-text-bright);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.8rem;
}

/* ---------- Mobile slide menu ---------- */
.s946-mobile-menu {
  position: fixed;
  top: 0; right: -80%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: linear-gradient(180deg, #11112a 0%, #0b0b16 100%);
  border-left: 1px solid var(--s946-border);
  z-index: 9999;
  padding: 7rem 1.6rem 2rem;
  transition: right 0.34s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.s946-mobile-menu.s946-active { right: 0; box-shadow: -20px 0 60px rgba(0,0,0,0.6); }

.s946-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--s946-transition);
}
body.s946-menu-open .s946-menu-overlay { opacity: 1; pointer-events: auto; }

.s946-menu-title {
  font-size: 1.5rem;
  color: var(--s946-text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 1.4rem 0 0.8rem;
}
.s946-menu-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1rem;
  border-radius: 12px;
  color: var(--s946-text);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  border: 1px solid transparent;
  transition: all var(--s946-transition);
}
.s946-menu-link:hover { background: var(--s946-accent-soft); color: var(--s946-text-bright); border-color: var(--s946-border); }
.s946-menu-link i { color: var(--s946-accent); font-size: 1.6rem; }

/* ---------- Main / spacing ---------- */
.s946-main { padding-top: 6rem; padding-bottom: 2rem; }
@media (max-width: 768px) { .s946-main { padding-bottom: 9rem; } }

/* ---------- Hero carousel ---------- */
.s946-hero {
  position: relative;
  border-radius: var(--s946-radius-lg);
  overflow: hidden;
  margin: 1rem 0;
  box-shadow: var(--s946-shadow);
}
.s946-slides { position: relative; height: 200px; }
.s946-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  cursor: pointer;
}
.s946-slide.s946-active { opacity: 1; }
.s946-slide img { width: 100%; height: 100%; object-fit: cover; }
.s946-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,11,22,0.85) 0%, rgba(11,11,22,0.25) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.4rem;
}
.s946-slide-title { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 0.3rem; }
.s946-slide-sub { font-size: 1.25rem; color: var(--s946-text); margin-bottom: 0.8rem; }

.s946-dots {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.s946-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all var(--s946-transition);
}
.s946-dot.s946-active { background: var(--s946-accent); width: 22px; border-radius: 4px; }

/* ---------- Section heading ---------- */
.s946-section { margin: 2.2rem 0; }
.s946-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.s946-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--s946-text-bright);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.s946-section-title i { color: var(--s946-accent); }
.s946-section-more { font-size: 1.2rem; color: var(--s946-text-muted); }

.s946-h1 {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 1.2rem 0 0.6rem;
  background: linear-gradient(90deg, #fff 0%, var(--s946-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.s946-lead { font-size: 1.32rem; color: var(--s946-text); line-height: 1.65; }

/* ---------- Game grid ---------- */
.s946-game-section { margin-bottom: 2.2rem; }
.s946-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.s946-game-card {
  background: var(--s946-bg-card-2);
  border: 1px solid var(--s946-border);
  border-radius: var(--s946-radius);
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform var(--s946-transition), border-color var(--s946-transition), box-shadow var(--s946-transition);
  position: relative;
  overflow: hidden;
}
.s946-game-card:hover {
  transform: translateY(-3px);
  border-color: var(--s946-accent);
  box-shadow: var(--s946-shadow-accent);
}
.s946-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.4rem;
}
.s946-game-name {
  font-size: 1.1rem;
  color: var(--s946-text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s946-game-tag {
  position: absolute;
  top: 6px; left: 6px;
  background: var(--s946-alert);
  color: #fff;
  font-size: 0.9rem;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Cards / modules ---------- */
.s946-card {
  background: linear-gradient(160deg, var(--s946-bg-card-2) 0%, var(--s946-bg-card) 100%);
  border: 1px solid var(--s946-border);
  border-radius: var(--s946-radius-lg);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--s946-shadow);
}

.s946-card-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--s946-text-bright);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.s946-card-title i { color: var(--s946-accent); }

.s946-card p, .s946-card li { font-size: 1.28rem; color: var(--s946-text); line-height: 1.65; }
.s946-card p + p, .s946-card li + li { margin-top: 0.6rem; }
.s946-card strong { color: var(--s946-accent); font-weight: 700; }
.s946-card a { color: var(--s946-accent); font-weight: 600; text-decoration: underline; }
.s946-card ul { list-style: none; padding: 0; }
.s946-card ul li { padding-left: 1.6rem; position: relative; }
.s946-card ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0; top: 0.2rem;
  color: var(--s946-accent);
  font-size: 1rem;
}

/* ---------- Steps ---------- */
.s946-steps { list-style: none; padding: 0; counter-reset: step; }
.s946-steps li {
  position: relative;
  padding: 0.6rem 0 0.6rem 3.4rem;
  font-size: 1.28rem;
  color: var(--s946-text);
  line-height: 1.6;
  counter-increment: step;
}
.s946-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0.4rem;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--s946-primary), var(--s946-accent));
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- FAQ ---------- */
.s946-faq-item {
  border: 1px solid var(--s946-border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.7rem;
  background: rgba(255,255,255,0.02);
}
.s946-faq-q {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--s946-text-bright);
  margin-bottom: 0.4rem;
  display: flex;
  gap: 0.5rem;
}
.s946-faq-q i { color: var(--s946-accent); margin-top: 0.3rem; }
.s946-faq-a { font-size: 1.25rem; color: var(--s946-text); line-height: 1.6; }

/* ---------- Stats / RTP ---------- */
.s946-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.s946-stat {
  background: rgba(0, 206, 209, 0.06);
  border: 1px solid var(--s946-border);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}
.s946-stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--s946-accent), var(--s946-primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.s946-stat-label { font-size: 1.1rem; color: var(--s946-text-muted); margin-top: 0.2rem; }

/* ---------- Testimonials ---------- */
.s946-testi {
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--s946-accent);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
}
.s946-testi p { font-size: 1.25rem; color: var(--s946-text); font-style: italic; line-height: 1.55; }
.s946-testi-meta { font-size: 1.1rem; color: var(--s946-accent); margin-top: 0.5rem; font-weight: 700; }

/* ---------- Payment chips ---------- */
.s946-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.s946-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--s946-border);
  border-radius: 999px;
  font-size: 1.2rem;
  color: var(--s946-text);
}
.s946-chip i { color: var(--s946-accent); }

/* ---------- Winners ---------- */
.s946-winner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-bottom: 1px dashed var(--s946-border);
  font-size: 1.25rem;
}
.s946-winner:last-child { border-bottom: none; }
.s946-winner-name { color: var(--s946-text-bright); font-weight: 600; }
.s946-winner-amt { color: var(--s946-gold); font-weight: 800; }

/* ---------- Promo banner ---------- */
.s946-promo {
  background: linear-gradient(120deg, var(--s946-primary) 0%, var(--s946-alert) 100%);
  border-radius: var(--s946-radius-lg);
  padding: 1.4rem;
  color: #fff;
  text-align: center;
  margin: 1.4rem 0;
  box-shadow: var(--s946-shadow);
}
.s946-promo h3 { font-size: 1.7rem; margin-bottom: 0.3rem; }
.s946-promo p { font-size: 1.25rem; opacity: 0.95; margin-bottom: 1rem; }

/* ---------- Reveal animation ---------- */
.s946-reveal { opacity: 0; transform: translateY(20px); transition: all 0.55s ease; }
.s946-reveal.s946-revealed { opacity: 1; transform: translateY(0); }

/* ---------- Footer ---------- */
.s946-footer {
  background: linear-gradient(180deg, #0d0d1d 0%, #06060f 100%);
  border-top: 1px solid var(--s946-border);
  padding: 2.2rem 1.2rem 2rem;
  margin-top: 2rem;
}
.s946-footer-inner { max-width: 430px; margin: 0 auto; }
.s946-footer-brand {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--s946-accent), var(--s946-primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.6rem;
}
.s946-footer-text { font-size: 1.2rem; color: var(--s946-text-muted); line-height: 1.55; margin-bottom: 1.2rem; }
.s946-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  margin-bottom: 1.2rem;
}
.s946-footer-links a {
  font-size: 1.15rem;
  color: var(--s946-text);
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--s946-border);
  border-radius: 8px;
}
.s946-footer-links a:hover { background: var(--s946-accent-soft); color: var(--s946-text-bright); }
.s946-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.s946-footer-copy { font-size: 1.1rem; color: var(--s946-text-muted); border-top: 1px solid var(--s946-border); padding-top: 1rem; }

/* ---------- Bottom navigation ---------- */
.s946-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, #11112a 0%, #08081a 100%);
  border-top: 1px solid var(--s946-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.s946-bottomnav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--s946-text-muted);
  font-size: 1rem;
  min-width: 60px;
  min-height: 60px;
  position: relative;
  transition: color var(--s946-transition);
}
.s946-bottomnav-btn i, .s946-bottomnav-btn .material-icons,
.s946-bottomnav-btn .ion { font-size: 22px; transition: transform var(--s946-transition); }
.s946-bottomnav-btn:hover { color: var(--s946-text-bright); }
.s946-bottomnav-btn:hover i, .s946-bottomnav-btn:hover .material-icons,
.s946-bottomnav-btn:hover .ion { transform: scale(1.15); }
.s946-bottomnav-btn.s946-current { color: var(--s946-accent); }
.s946-bottomnav-btn.s946-current::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 30px; height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--s946-accent);
}
.s946-bottomnav-btn.s946-promo {
  color: #fff;
}
.s946-bottomnav-btn.s946-promo .s946-nav-icon {
  width: 42px; height: 42px;
  margin-top: -18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--s946-accent), var(--s946-primary));
  box-shadow: 0 6px 18px rgba(0, 206, 209, 0.5);
  color: #04121a;
}
.s946-bottomnav-btn .s946-badge {
  position: absolute;
  top: 6px; right: 18px;
  background: var(--s946-alert-bright);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Desktop: hide bottom nav ---------- */
@media (min-width: 769px) {
  .s946-bottomnav { display: none; }
  .s946-main { padding-bottom: 3rem; }
  .s946-container { max-width: 720px; }
}

/* ---------- Small screens tuning ---------- */
@media (max-width: 360px) {
  .s946-grid { grid-template-columns: repeat(2, 1fr); }
  .s946-h1 { font-size: 1.85rem; }
  .s946-logo { font-size: 1.6rem; }
}
