/* ============================================================
 * ll88 - design-488e.css
 * Shared styles for ll88.lol (Vietnamese mobile-first casino site)
 * All custom classes use the s488- prefix.
 * Color palette: #FFCCCB | #34495E | #C9C9FF | #FFB3FF
 * Dark tones (#34495E) are backgrounds; light tones are text.
 * Root font 62.5% so 1rem = 10px for easy rem math.
 * ============================================================ */

:root {
  --s488-primary: #FFB3FF;
  --s488-accent: #FFCCCB;
  --s488-violet: #C9C9FF;
  --s488-bg: #34495E;
  --s488-bg-deep: #2b3a4c;
  --s488-bg-soft: #3e5167;
  --s488-text: #ffffff;
  --s488-text-dim: rgba(255, 255, 255, 0.72);
  --s488-text-muted: rgba(255, 255, 255, 0.55);
  --s488-gold: #ffd76b;
  --s488-green: #6ee7b7;
  --s488-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  --s488-radius: 14px;
  --s488-radius-sm: 10px;
  --s488-header-h: 6rem;
  --s488-bottomnav-h: 6.2rem;
  --s488-maxw: 430px;
  --s488-grad: linear-gradient(135deg, #FFB3FF 0%, #FFCCCB 55%, #C9C9FF 100%);
}

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

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

body {
  font-family: "Segoe UI", "Helvetica Neue", system-ui, -apple-system, Arial, sans-serif;
  background: var(--s488-bg);
  color: var(--s488-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  overflow-x: hidden;
  max-width: var(--s488-maxw);
  margin: 0 auto;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.s488-container {
  width: 100%;
  max-width: var(--s488-maxw);
  margin: 0 auto;
  padding: 0 1.2rem;
}
.s488-wrapper { width: 100%; padding: 1.2rem; }

/* ---------- Header / top navigation ---------- */
.s488-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: var(--s488-maxw);
  margin: 0 auto;
  height: var(--s488-header-h);
  background: rgba(52, 73, 94, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 179, 255, 0.18);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.s488-header-scrolled {
  background: rgba(43, 58, 76, 0.99);
  box-shadow: var(--s488-shadow);
}

.s488-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}
.s488-logo {
  width: 3.2rem; height: 3.2rem;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 179, 255, 0.4);
}
.s488-brand-text {
  display: flex; flex-direction: column; line-height: 1.2;
}
.s488-brand-name {
  font-size: 2rem; font-weight: 800;
  background: var(--s488-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}
.s488-brand-tag {
  font-size: 1.05rem; color: var(--s488-text-dim);
}

.s488-head-actions {
  display: flex; align-items: center; gap: 0.7rem;
}
.s488-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  border: none; cursor: pointer;
  font-weight: 700; font-size: 1.4rem;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  min-height: 4rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  text-align: center;
  font-family: inherit;
}
.s488-btn:active { transform: scale(0.95); }
.s488-btn-primary {
  background: var(--s488-grad);
  color: #34495E;
  box-shadow: 0 4px 14px rgba(255, 179, 255, 0.35);
}
.s488-btn-ghost {
  background: rgba(201, 201, 255, 0.16);
  color: var(--s488-text);
  border: 1px solid rgba(201, 201, 255, 0.5);
}
.s488-btn-block { width: 100%; }
.s488-btn-lg { padding: 1.1rem 2.2rem; font-size: 1.6rem; }

.s488-menu-btn {
  background: transparent; border: none; color: var(--s488-text);
  font-size: 2.2rem; cursor: pointer;
  width: 4.4rem; height: 4.4rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
}

/* ---------- Mobile slide menu ---------- */
.s488-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 9998;
}
body.s488-menu-open .s488-menu-overlay { opacity: 1; visibility: visible; }

.s488-menu {
  position: fixed; top: 0; right: 0;
  width: 80%; max-width: 320px;
  height: 100vh;
  background: var(--s488-bg-deep);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  padding: var(--s488-header-h) 1.4rem 2rem;
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
}
body.s488-menu-open .s488-menu { transform: translateX(0); }
.s488-menu-close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  background: transparent; border: none; color: var(--s488-text);
  font-size: 2.4rem; cursor: pointer;
  width: 4.4rem; height: 4.4rem; line-height: 1;
}
.s488-menu-title {
  font-size: 1.8rem; font-weight: 800; margin: 1rem 0 1.2rem;
  color: var(--s488-primary);
}
.s488-menu-list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.s488-menu-list a {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.2rem 1.2rem;
  border-radius: var(--s488-radius-sm);
  color: var(--s488-text);
  font-size: 1.5rem; font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.s488-menu-list a:hover, .s488-menu-list a:active {
  background: rgba(255, 179, 255, 0.12);
  border-color: rgba(255, 179, 255, 0.3);
}
.s488-menu-list .material-icons-outlined,
.s488-menu-list .material-icons { font-size: 2.2rem; color: var(--s488-violet); }

/* ---------- Main content spacing ---------- */
.s488-main {
  padding-top: var(--s488-header-h);
  padding-bottom: calc(var(--s488-bottomnav-h) + 1.6rem);
  min-height: 100vh;
}
section.s488-section { padding: 2rem 1.2rem; }

/* ---------- Hero carousel ---------- */
.s488-hero {
  position: relative;
  margin: 1.2rem 1.2rem 0;
  border-radius: var(--s488-radius);
  overflow: hidden;
  box-shadow: var(--s488-shadow);
}
.s488-carousel { position: relative; }
.s488-slide {
  position: relative;
  display: none;
  cursor: pointer;
}
.s488-slide-active { display: block; }
.s488-slide img {
  width: 100%; height: 18rem; object-fit: cover;
}
.s488-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.4rem 1.6rem;
  background: linear-gradient(to top, rgba(43, 58, 76, 0.92), rgba(43, 58, 76, 0));
  display: flex; flex-direction: column; gap: 0.4rem;
}
.s488-slide-cap h2 {
  font-size: 2rem; font-weight: 800; color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.s488-slide-cap p {
  font-size: 1.25rem; color: var(--s488-text-dim);
}
.s488-dots {
  position: absolute; bottom: 0.6rem; left: 0; right: 0;
  display: flex; justify-content: center; gap: 0.6rem;
  z-index: 3;
}
.s488-dot {
  width: 0.9rem; height: 0.9rem; border-radius: 50%;
  background: rgba(255,255,255,0.45); border: none; cursor: pointer;
  padding: 0; transition: background 0.2s ease, transform 0.2s ease;
}
.s488-dot-active {
  background: var(--s488-primary); transform: scale(1.25);
}

/* ---------- Section headings ---------- */
.s488-sec-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 1.4rem 0 1.2rem; gap: 1rem;
}
.s488-sec-title {
  font-size: 2rem; font-weight: 800;
  display: flex; align-items: center; gap: 0.7rem;
  color: var(--s488-text);
}
.s488-sec-title .s488-bar {
  width: 0.45rem; height: 2rem; border-radius: 4px;
  background: var(--s488-grad);
}
.s488-sec-more {
  font-size: 1.25rem; color: var(--s488-primary); font-weight: 600;
}

/* ---------- Game category tabs (non-functional labels per spec) ---------- */
.s488-cat-labels {
  display: flex; flex-wrap: wrap; gap: 0.7rem;
  margin: 1rem 0 1.4rem;
}
.s488-cat-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.2rem; border-radius: 999px;
  font-size: 1.3rem; font-weight: 700;
  background: rgba(201, 201, 255, 0.14);
  color: var(--s488-violet);
  border: 1px solid rgba(201, 201, 255, 0.3);
}

/* ---------- Game grid ---------- */
.s488-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.s488-card {
  background: var(--s488-bg-soft);
  border-radius: var(--s488-radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 179, 255, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  text-align: center;
  position: relative;
}
.s488-card:hover, .s488-card:active {
  transform: translateY(-3px);
  box-shadow: var(--s488-shadow);
  border-color: rgba(255, 179, 255, 0.4);
}
.s488-card-img {
  width: 100%; aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #243140;
}
.s488-card-name {
  font-size: 1.2rem; font-weight: 600;
  padding: 0.6rem 0.5rem 0.8rem;
  color: var(--s488-text);
  line-height: 1.3;
  min-height: 3.4rem;
  display: flex; align-items: center; justify-content: center;
}
.s488-card-hot {
  position: absolute; top: 0.5rem; left: 0.5rem;
  background: linear-gradient(135deg, #ff7a7a, #ffb3ff);
  color: #34495E; font-size: 1rem; font-weight: 800;
  padding: 0.2rem 0.6rem; border-radius: 6px;
  line-height: 1.2;
}

/* ---------- Promo strip / CTA ---------- */
.s488-cta {
  background: var(--s488-grad);
  color: #34495E;
  border-radius: var(--s488-radius);
  padding: 2rem 1.6rem;
  margin: 1.6rem 1.2rem;
  text-align: center;
  box-shadow: var(--s488-shadow);
}
.s488-cta h3 { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.6rem; }
.s488-cta p { font-size: 1.4rem; margin-bottom: 1.4rem; color: #2b3a4c; }
.s488-cta .s488-btn { background: #34495E; color: #fff; }

/* ---------- Info / feature cards ---------- */
.s488-info-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.2rem;
}
.s488-info-card {
  background: var(--s488-bg-soft);
  border-radius: var(--s488-radius);
  padding: 1.6rem;
  border: 1px solid rgba(201, 201, 255, 0.18);
}
.s488-info-card h3 {
  font-size: 1.8rem; font-weight: 800; margin-bottom: 0.8rem;
  color: var(--s488-primary);
  display: flex; align-items: center; gap: 0.7rem;
}
.s488-info-card p { font-size: 1.4rem; color: var(--s488-text-dim); line-height: 1.6; }
.s488-info-card ul { list-style: none; margin-top: 0.8rem; }
.s488-info-card ul li {
  font-size: 1.35rem; color: var(--s488-text-dim);
  padding: 0.5rem 0 0.5rem 1.8rem; position: relative;
}
.s488-info-card ul li::before {
  content: ''; position: absolute; left: 0.4rem; top: 1.1rem;
  width: 0.6rem; height: 0.6rem; border-radius: 50%;
  background: var(--s488-primary);
}

/* ---------- Stats / RTP compact ---------- */
.s488-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.s488-stat {
  background: var(--s488-bg-soft);
  border-radius: var(--s488-radius-sm);
  padding: 1.2rem; text-align: center;
  border: 1px solid rgba(255, 179, 255, 0.14);
}
.s488-stat-num {
  font-size: 2.4rem; font-weight: 800;
  background: var(--s488-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.s488-stat-label { font-size: 1.2rem; color: var(--s488-text-dim); margin-top: 0.2rem; }

/* ---------- Testimonials ---------- */
.s488-testi-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.s488-testi {
  background: var(--s488-bg-soft);
  border-radius: var(--s488-radius);
  padding: 1.4rem;
  border-left: 4px solid var(--s488-primary);
}
.s488-testi p { font-size: 1.4rem; color: var(--s488-text); line-height: 1.6; font-style: italic; }
.s488-testi-foot { margin-top: 1rem; display: flex; align-items: center; gap: 0.8rem; }
.s488-testi-av {
  width: 3.6rem; height: 3.6rem; border-radius: 50%;
  background: var(--s488-grad); display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #34495E; font-size: 1.6rem;
}
.s488-testi-name { font-size: 1.3rem; font-weight: 700; }
.s488-testi-role { font-size: 1.1rem; color: var(--s488-text-muted); }
.s488-stars { color: var(--s488-gold); font-size: 1.3rem; }

/* ---------- Winners showcase ---------- */
.s488-winner-list { display: flex; flex-direction: column; gap: 0.8rem; }
.s488-winner {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--s488-bg-soft); padding: 1rem 1.2rem;
  border-radius: var(--s488-radius-sm);
  border: 1px solid rgba(201, 201, 255, 0.14);
}
.s488-winner-name { font-size: 1.35rem; font-weight: 700; }
.s488-winner-game { font-size: 1.15rem; color: var(--s488-text-muted); }
.s488-winner-amount { font-size: 1.5rem; font-weight: 800; color: var(--s488-gold); }

/* ---------- Payment methods ---------- */
.s488-pay-row {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
}
.s488-pay-chip {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--s488-bg-soft); color: var(--s488-text);
  padding: 0.8rem 1.2rem; border-radius: 999px;
  font-size: 1.3rem; font-weight: 600;
  border: 1px solid rgba(255, 179, 255, 0.18);
}
.s488-pay-chip i, .s488-pay-chip .material-icons-outlined { color: var(--s488-violet); font-size: 2rem; }

/* ---------- App download CTA ---------- */
.s488-app-cta {
  background: linear-gradient(135deg, rgba(255,179,255,0.16), rgba(201,201,255,0.16));
  border: 1px solid rgba(255, 179, 255, 0.3);
  border-radius: var(--s488-radius);
  padding: 1.8rem 1.4rem; text-align: center;
}
.s488-app-cta h3 { font-size: 2rem; font-weight: 800; margin-bottom: 0.6rem; }
.s488-app-cta p { font-size: 1.35rem; color: var(--s488-text-dim); margin-bottom: 1.4rem; }
.s488-app-btns { display: flex; flex-direction: column; gap: 0.8rem; }

/* ---------- FAQ accordion ---------- */
.s488-faq-item {
  background: var(--s488-bg-soft);
  border-radius: var(--s488-radius-sm);
  margin-bottom: 0.9rem;
  border: 1px solid rgba(201, 201, 255, 0.14);
  overflow: hidden;
}
.s488-faq-q {
  width: 100%; text-align: left;
  background: transparent; border: none; color: var(--s488-text);
  font-size: 1.45rem; font-weight: 700;
  padding: 1.3rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; font-family: inherit; gap: 1rem;
}
.s488-faq-q .s488-faq-icon { font-size: 1.8rem; color: var(--s488-primary); transition: transform 0.25s ease; }
.s488-faq-open .s488-faq-q .s488-faq-icon { transform: rotate(45deg); }
.s488-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.4rem;
  font-size: 1.35rem; color: var(--s488-text-dim); line-height: 1.6;
}
.s488-faq-open .s488-faq-a { max-height: 400px; padding: 0 1.4rem 1.3rem; }

/* ---------- Inline promo link ---------- */
.s488-promo-link {
  color: var(--s488-primary); font-weight: 700; cursor: pointer;
  border-bottom: 1px dashed rgba(255, 179, 255, 0.6);
}
.s488-promo-link:hover { color: var(--s488-accent); }

/* ---------- Footer ---------- */
.s488-footer {
  background: var(--s488-bg-deep);
  padding: 2.4rem 1.2rem calc(var(--s488-bottomnav-h) + 2rem);
  border-top: 1px solid rgba(255, 179, 255, 0.16);
}
.s488-footer-brand {
  font-size: 2.2rem; font-weight: 800; margin-bottom: 0.6rem;
  background: var(--s488-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.s488-footer-desc { font-size: 1.3rem; color: var(--s488-text-dim); line-height: 1.6; margin-bottom: 1.4rem; }
.s488-footer-promos {
  display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.4rem;
}
.s488-footer-promos .s488-btn { padding: 0.7rem 1.2rem; font-size: 1.25rem; }
.s488-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem;
  margin: 1rem 0;
}
.s488-footer-links a {
  font-size: 1.25rem; color: var(--s488-text-dim);
  border-bottom: 1px solid transparent;
}
.s488-footer-links a:hover { color: var(--s488-primary); border-bottom-color: var(--s488-primary); }
.s488-footer-copy {
  font-size: 1.15rem; color: var(--s488-text-muted);
  margin-top: 1.2rem; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.2rem;
}

/* ---------- Back to top ---------- */
.s488-top-btn {
  position: fixed; right: 1.4rem; bottom: calc(var(--s488-bottomnav-h) + 1.4rem);
  width: 4.4rem; height: 4.4rem; border-radius: 50%;
  background: var(--s488-grad); color: #34495E;
  border: none; cursor: pointer; font-size: 2rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  z-index: 900; box-shadow: var(--s488-shadow);
}
.s488-top-btn-show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Mobile bottom navigation ---------- */
.s488-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0;
  max-width: var(--s488-maxw); margin: 0 auto;
  height: var(--s488-bottomnav-h);
  background: rgba(43, 58, 76, 0.99);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; justify-content: space-around; align-items: stretch;
  z-index: 1000;
  border-top: 1px solid rgba(255, 179, 255, 0.22);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.28);
}
.s488-nav-item {
  flex: 1; min-width: 60px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem;
  background: transparent; border: none; color: var(--s488-text-dim);
  cursor: pointer; font-family: inherit;
  font-size: 1.1rem; font-weight: 600;
  padding: 0.4rem 0.2rem;
  position: relative;
  transition: color 0.2s ease, transform 0.18s ease;
}
.s488-nav-item:active { transform: scale(0.92); }
.s488-nav-item i,
.s488-nav-item .material-icons-outlined,
.s488-nav-item .material-icons,
.s488-nav-item .ion-icon { font-size: 2.4rem; line-height: 1; }
.s488-nav-item .ion-icon { font-size: 2.4rem; }
.s488-nav-item.s488-nav-promo { color: var(--s488-primary); }
.s488-nav-item.s488-nav-active { color: var(--s488-primary); }
.s488-nav-item.s488-nav-active::after {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 2.4rem; height: 0.35rem; border-radius: 0 0 4px 4px;
  background: var(--s488-grad);
}
.s488-nav-badge {
  position: absolute; top: 0.5rem; right: 1.1rem;
  min-width: 1.5rem; height: 1.5rem; padding: 0 0.4rem;
  border-radius: 999px; background: #ff5b6e; color: #fff;
  font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Desktop: hide bottom nav, show desktop nav ---------- */
.s488-desktop-nav { display: none; }

@media (min-width: 769px) {
  body { max-width: 100%; }
  .s488-bottomnav { display: none; }
  .s488-header { max-width: 100%; }
  .s488-main { padding-bottom: 2rem; }
  .s488-footer { padding-bottom: 2.4rem; }
  .s488-grid { grid-template-columns: repeat(6, 1fr); }
  .s488-info-grid { grid-template-columns: repeat(2, 1fr); }
  .s488-testi-grid { grid-template-columns: repeat(2, 1fr); }
  .s488-stats { grid-template-columns: repeat(4, 1fr); }
  .s488-slide img { height: 28rem; }
}

/* Ensure mobile content is not hidden behind bottom nav. */
@media (max-width: 768px) {
  .s488-main { padding-bottom: calc(var(--s488-bottomnav-h) + 1.6rem); }
}

/* ---------- Utility ---------- */
.s488-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.s488-text-center { text-align: center; }
.s488-mt-1 { margin-top: 1rem; } .s488-mt-2 { margin-top: 2rem; }
.s488-mb-1 { margin-bottom: 1rem; } .s488-mb-2 { margin-bottom: 2rem; }
