/*!
 * 89ok.click - Core stylesheet
 * Mobile-first casino portal (Vietnam market)
 * All custom classes use the sfe8- prefix
 * Color palette: #0E1621 #00FF7F #008000 #FFDEAD #7CFC00
 */
:root {
  --sfe8-bg: #0E1621;
  --sfe8-bg-2: #142235;
  --sfe8-bg-3: #1b2c47;
  --sfe8-primary: #00FF7F;
  --sfe8-secondary: #008000;
  --sfe8-accent: #7CFC00;
  --sfe8-cream: #FFDEAD;
  --sfe8-text: #f3fff7;
  --sfe8-muted: #93a7bf;
  --sfe8-border: rgba(0, 255, 127, 0.18);
  --sfe8-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --sfe8-radius: 14px;
  --sfe8-radius-sm: 10px;
  --sfe8-max: 430px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", system-ui, sans-serif;
  background: radial-gradient(circle at top, #142a3d 0%, var(--sfe8-bg) 55%);
  color: var(--sfe8-text);
  font-size: 15px;
  line-height: 1.5rem;
  overflow-x: hidden;
}

/* Root font tuned for rem usage (62.5% -> 1rem = 10px) */
html { font-size: 62.5%; }

.sfe8-no-scroll { overflow: hidden; }

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

.sfe8-container {
  width: 100%;
  max-width: var(--sfe8-max);
  margin: 0 auto;
  padding: 0 12px;
}
.sfe8-wrapper { max-width: var(--sfe8-max); margin: 0 auto; }

/* ===== Header ===== */
.sfe8-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(14,22,33,0.98), rgba(14,22,33,0.92));
  border-bottom: 1px solid var(--sfe8-border);
  backdrop-filter: blur(10px);
}
.sfe8-header-inner {
  max-width: var(--sfe8-max);
  margin: 0 auto;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 56px;
}
.sfe8-brand { display: flex; align-items: center; gap: 8px; }
.sfe8-logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--sfe8-primary), var(--sfe8-accent));
  display: flex; align-items: center; justify-content: center;
  color: #042314; font-weight: 800; font-size: 1.4rem;
}
.sfe8-brand-name {
  font-size: 1.9rem; font-weight: 800; letter-spacing: 0.4px;
  color: var(--sfe8-primary);
}
.sfe8-brand-name span { color: var(--sfe8-text); }

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

.sfe8-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: var(--sfe8-radius-sm);
  padding: 9px 16px;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s;
  min-height: 38px;
  line-height: 1;
}
.sfe8-btn:active { transform: scale(0.96); }
.sfe8-btn-login {
  background: transparent;
  color: var(--sfe8-text);
  border: 1px solid var(--sfe8-border);
}
.sfe8-btn-register {
  background: linear-gradient(135deg, var(--sfe8-primary), var(--sfe8-accent));
  color: #042314;
  box-shadow: 0 4px 12px rgba(0,255,127,0.25);
}
.sfe8-btn-cream {
  background: var(--sfe8-cream);
  color: #3a2400;
}
.sfe8-btn-block { width: 100%; padding: 14px; font-size: 1.6rem; }

.sfe8-menu-btn {
  background: transparent;
  border: 1px solid var(--sfe8-border);
  color: var(--sfe8-text);
  border-radius: 10px;
  width: 38px; height: 38px;
  font-size: 1.7rem;
  cursor: pointer;
}

/* ===== Mobile slide-in menu ===== */
.sfe8-menu-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.sfe8-backdrop-show { opacity: 1; pointer-events: auto; }

.sfe8-mobile-menu {
  position: fixed;
  top: 0; right: -85%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--sfe8-bg-2);
  z-index: 9999;
  padding: 18px 16px;
  transition: right 0.3s ease;
  overflow-y: auto;
  border-left: 1px solid var(--sfe8-border);
}
.sfe8-menu-open { right: 0; }
.sfe8-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.sfe8-menu-title { font-size: 1.8rem; font-weight: 800; color: var(--sfe8-primary); }
.sfe8-menu-close {
  background: transparent; border: none; color: var(--sfe8-text);
  font-size: 2.2rem; cursor: pointer;
}
.sfe8-menu-list { list-style: none; padding: 0; margin: 0; }
.sfe8-menu-list li { margin-bottom: 8px; }
.sfe8-menu-list a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--sfe8-bg-3);
  color: var(--sfe8-text);
  font-size: 1.45rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.sfe8-menu-list a i { color: var(--sfe8-primary); font-size: 1.6rem; }
.sfe8-menu-list a:active { border-color: var(--sfe8-primary); }

/* ===== Hero / Carousel ===== */
.sfe8-main { padding-top: 64px; padding-bottom: 90px; }
.sfe8-hero {
  margin: 12px 0 16px;
  border-radius: var(--sfe8-radius);
  overflow: hidden;
  box-shadow: var(--sfe8-shadow);
}
.sfe8-carousel { position: relative; }
.sfe8-slides { position: relative; }
.sfe8-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.sfe8-slide-active { display: block; }
.sfe8-slide img { width: 100%; height: 190px; object-fit: cover; }
.sfe8-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.78), transparent);
  font-size: 1.4rem; font-weight: 700; color: #fff;
}
.sfe8-slide-cap span { color: var(--sfe8-primary); }

.sfe8-carousel-ctrl {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px;
  background: rgba(0,0,0,0.45);
  border: 1px solid var(--sfe8-border);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
}
.sfe8-slide-prev { left: 8px; }
.sfe8-slide-next { right: 8px; }

.sfe8-dots {
  display: flex; justify-content: center; gap: 6px;
  padding: 8px 0;
}
.sfe8-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer; transition: background 0.2s;
  border: none;
}
.sfe8-dot-active { background: var(--sfe8-primary); width: 22px; border-radius: 6px; }

/* ===== Hero CTA banner ===== */
.sfe8-hero-cta {
  background: linear-gradient(135deg, rgba(0,255,127,0.15), rgba(124,252,0,0.08));
  border: 1px solid var(--sfe8-border);
  border-radius: var(--sfe8-radius);
  padding: 16px;
  margin: 12px 0;
  text-align: center;
}
.sfe8-hero-cta h1 {
  font-size: 2.4rem; font-weight: 800; margin: 0 0 6px;
  color: var(--sfe8-primary); line-height: 1.25;
}
.sfe8-hero-cta p { font-size: 1.35rem; color: var(--sfe8-cream); margin: 0 0 12px; }
.sfe8-hero-cta .sfe8-btn { margin: 0 auto; }

/* ===== Section ===== */
.sfe8-section { margin: 22px 0; }
.sfe8-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; gap: 8px;
}
.sfe8-section-title {
  font-size: 1.8rem; font-weight: 800;
  display: flex; align-items: center; gap: 8px;
  color: var(--sfe8-text);
}
.sfe8-section-title i { color: var(--sfe8-primary); font-size: 1.9rem; }
.sfe8-section-title b { color: var(--sfe8-primary); }
.sfe8-section-link { font-size: 1.25rem; color: var(--sfe8-primary); font-weight: 600; }

/* ===== Category chips ===== */
.sfe8-chips {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: none;
}
.sfe8-chips::-webkit-scrollbar { display: none; }
.sfe8-chip {
  flex: 0 0 auto;
  background: var(--sfe8-bg-2);
  border: 1px solid var(--sfe8-border);
  color: var(--sfe8-text);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
}
.sfe8-chip-active {
  background: linear-gradient(135deg, var(--sfe8-primary), var(--sfe8-accent));
  color: #042314; border-color: transparent;
}

/* ===== Game grid & cards ===== */
.sfe8-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.sfe8-card {
  background: var(--sfe8-bg-2);
  border-radius: var(--sfe8-radius-sm);
  border: 1px solid var(--sfe8-border);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
  color: var(--sfe8-text);
}
.sfe8-card:active { transform: scale(0.97); }
.sfe8-card-img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  background: #0a121d;
}
.sfe8-card-body { padding: 6px 8px; }
.sfe8-card-name {
  font-size: 1.15rem; font-weight: 600; line-height: 1.25;
  color: var(--sfe8-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 28px;
}
.sfe8-card-tag {
  display: inline-block;
  font-size: 1rem;
  color: var(--sfe8-cream);
  background: rgba(0,128,0,0.35);
  border-radius: 6px;
  padding: 2px 6px;
  margin-bottom: 4px;
}

/* ===== Promo banner strip ===== */
.sfe8-promo-strip {
  background: linear-gradient(135deg, var(--sfe8-secondary), var(--sfe8-primary));
  border-radius: var(--sfe8-radius);
  padding: 14px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin: 14px 0;
}
.sfe8-promo-strip-text { color: #042314; }
.sfe8-promo-strip-text strong { display: block; font-size: 1.7rem; }
.sfe8-promo-strip-text span { font-size: 1.2rem; opacity: 0.85; }
.sfe8-promo-strip .sfe8-btn {
  background: var(--sfe8-bg); color: var(--sfe8-primary);
}

/* ===== Feature cards ===== */
.sfe8-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.sfe8-feature {
  background: var(--sfe8-bg-2);
  border: 1px solid var(--sfe8-border);
  border-radius: var(--sfe8-radius-sm);
  padding: 14px;
  text-align: center;
}
.sfe8-feature i {
  font-size: 2.6rem; color: var(--sfe8-primary); margin-bottom: 8px;
}
.sfe8-feature h3 { font-size: 1.35rem; margin: 0 0 4px; color: var(--sfe8-text); }
.sfe8-feature p { font-size: 1.15rem; color: var(--sfe8-muted); margin: 0; }

/* ===== Long-form SEO content ===== */
.sfe8-article {
  background: var(--sfe8-bg-2);
  border-radius: var(--sfe8-radius);
  padding: 16px;
  border: 1px solid var(--sfe8-border);
}
.sfe8-article h2 {
  font-size: 1.8rem; margin: 0 0 10px; color: var(--sfe8-primary);
}
.sfe8-article h3 {
  font-size: 1.45rem; margin: 14px 0 6px; color: var(--sfe8-cream);
}
.sfe8-article p {
  font-size: 1.3rem; color: var(--sfe8-text); margin: 0 0 10px;
}
.sfe8-article ul { padding-left: 20px; margin: 0 0 10px; }
.sfe8-article li { font-size: 1.25rem; color: var(--sfe8-text); margin-bottom: 6px; }
.sfe8-article a { color: var(--sfe8-primary); font-weight: 600; text-decoration: underline; }

/* ===== FAQ ===== */
.sfe8-faq-item {
  background: var(--sfe8-bg-2);
  border: 1px solid var(--sfe8-border);
  border-radius: var(--sfe8-radius-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
}
.sfe8-faq-q {
  font-size: 1.35rem; font-weight: 700; color: var(--sfe8-primary);
  margin: 0 0 6px;
}
.sfe8-faq-a { font-size: 1.2rem; color: var(--sfe8-text); margin: 0; }

/* ===== Testimonials ===== */
.sfe8-testi {
  background: var(--sfe8-bg-2);
  border-radius: var(--sfe8-radius-sm);
  padding: 14px;
  border-left: 3px solid var(--sfe8-primary);
  margin-bottom: 10px;
}
.sfe8-testi p { margin: 0 0 8px; font-size: 1.25rem; color: var(--sfe8-text); font-style: italic; }
.sfe8-testi-meta { font-size: 1.1rem; color: var(--sfe8-cream); font-weight: 600; }
.sfe8-stars { color: #ffd166; font-size: 1.2rem; }

/* ===== Winners ===== */
.sfe8-winner {
  display: flex; align-items: center; gap: 10px;
  background: var(--sfe8-bg-2);
  border: 1px solid var(--sfe8-border);
  border-radius: var(--sfe8-radius-sm);
  padding: 8px 12px; margin-bottom: 6px;
}
.sfe8-winner-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sfe8-primary), var(--sfe8-secondary));
  display: flex; align-items: center; justify-content: center;
  color: #042314; font-weight: 800; font-size: 1.3rem;
}
.sfe8-winner-info { flex: 1; }
.sfe8-winner-name { font-size: 1.25rem; font-weight: 700; color: var(--sfe8-text); }
.sfe8-winner-game { font-size: 1.1rem; color: var(--sfe8-muted); }
.sfe8-winner-amount { font-size: 1.35rem; font-weight: 800; color: var(--sfe8-accent); }

/* ===== Payment methods ===== */
.sfe8-pay-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.sfe8-pay {
  background: var(--sfe8-bg-2);
  border: 1px solid var(--sfe8-border);
  border-radius: 10px;
  padding: 10px 4px;
  text-align: center;
  font-size: 1.05rem;
  color: var(--sfe8-text);
  font-weight: 600;
}
.sfe8-pay i { font-size: 2rem; color: var(--sfe8-primary); display: block; margin-bottom: 4px; }

/* ===== App download CTA ===== */
.sfe8-app-cta {
  background: linear-gradient(135deg, var(--sfe8-bg-3), var(--sfe8-bg-2));
  border: 1px solid var(--sfe8-border);
  border-radius: var(--sfe8-radius);
  padding: 16px;
  text-align: center;
  margin: 14px 0;
}
.sfe8-app-cta h3 { font-size: 1.7rem; margin: 0 0 6px; color: var(--sfe8-primary); }
.sfe8-app-cta p { font-size: 1.2rem; color: var(--sfe8-muted); margin: 0 0 12px; }
.sfe8-app-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ===== Footer ===== */
.sfe8-footer {
  background: var(--sfe8-bg-2);
  border-top: 1px solid var(--sfe8-border);
  padding: 20px 14px 24px;
  margin-top: 18px;
}
.sfe8-footer-brand {
  font-size: 1.4rem; color: var(--sfe8-muted); margin-bottom: 12px;
}
.sfe8-footer-brand b { color: var(--sfe8-primary); }
.sfe8-footer-promos {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
}
.sfe8-footer-promos .sfe8-btn { font-size: 1.2rem; padding: 8px 12px; }
.sfe8-footer-links {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 12px;
  margin-bottom: 12px;
}
.sfe8-footer-links a {
  color: var(--sfe8-text); font-size: 1.2rem; font-weight: 600;
  padding: 4px 0;
}
.sfe8-footer-links a:hover { color: var(--sfe8-primary); }
.sfe8-footer-copy {
  font-size: 1.1rem; color: var(--sfe8-muted); text-align: center;
  border-top: 1px solid var(--sfe8-border); padding-top: 10px;
}

/* ===== Mobile bottom navigation ===== */
.sfe8-bnav {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(14,22,33,0.96), rgba(14,22,33,1));
  border-top: 1px solid var(--sfe8-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: 62px;
  max-width: var(--sfe8-max);
  margin: 0 auto;
}
.sfe8-bnav-item {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--sfe8-muted);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  cursor: pointer;
  padding: 4px 2px;
  min-width: 60px; min-height: 60px;
  transition: color 0.2s, transform 0.2s;
  text-decoration: none;
  position: relative;
}
.sfe8-bnav-item i { font-size: 2.2rem; }
.sfe8-bnav-item .material-icons,
.sfe8-bnav-item .ion { font-size: 2.2rem; }
.sfe8-bnav-item span { font-size: 1rem; font-weight: 600; }
.sfe8-bnav-item:active { transform: scale(0.9); }
.sfe8-bnav-active { color: var(--sfe8-primary); }
.sfe8-bnav-active::before {
  content: ''; position: absolute; top: 0;
  width: 28px; height: 3px;
  background: var(--sfe8-primary);
  border-radius: 0 0 6px 6px;
}
.sfe8-bnav-promo {
  color: var(--sfe8-accent);
}
.sfe8-bnav-badge {
  position: absolute; top: 4px; right: 14px;
  background: #ff4d4d; color: #fff;
  font-size: 0.9rem; font-weight: 700;
  border-radius: 10px; padding: 1px 5px;
}

/* ===== Back to top ===== */
.sfe8-back-top {
  position: fixed; bottom: 76px; right: 14px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sfe8-primary), var(--sfe8-secondary));
  color: #042314;
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 999;
}
.sfe8-back-top-show { opacity: 1; pointer-events: auto; }

/* ===== Reveal animation ===== */
.sfe8-reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.sfe8-revealed { opacity: 1; transform: translateY(0); }

/* ===== Desktop: hide bottom nav, widen layout ===== */
@media (min-width: 769px) {
  .sfe8-bnav { display: none; }
  .sfe8-main { padding-bottom: 30px; }
  body { font-size: 16px; }
  .sfe8-grid { grid-template-columns: repeat(6, 1fr); }
  .sfe8-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .sfe8-pay-grid { grid-template-columns: repeat(6, 1fr); }
}

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