/* ===========================================================
   88q.click - layout.css
   Vietnamese mobile-first online casino promotion site.
   All custom classes use the "g070-" prefix.
   Palette: #7B68EE (primary) | #273746 (bg) | #9370DB (accent)
   =========================================================== */

:root {
  --g070-primary: #7B68EE;
  --g070-bg: #273746;
  --g070-accent: #9370DB;
  --g070-bg-dark: #1c2733;
  --g070-bg-light: #324354;
  --g070-text: #f3f4f8;
  --g070-text-muted: #b8c0d0;
  --g070-gold: #ffd36b;
  --g070-danger: #ff6b6b;
  --g070-success: #4ade80;
  --g070-border: rgba(123, 104, 238, 0.25);
  --g070-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --g070-radius: 14px;
}

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

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

body {
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, Arial, sans-serif;
  background: linear-gradient(160deg, var(--g070-bg) 0%, var(--g070-bg-dark) 100%);
  color: var(--g070-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ---------- Layout containers ---------- */
.g070-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.g070-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }
.g070-section { padding: 2rem 0; }
.g070-section-title {
  font-size: 2rem; font-weight: 800; margin-bottom: 1rem;
  color: var(--g070-text); display: flex; align-items: center; gap: 0.6rem;
}
.g070-section-title::before {
  content: ""; width: 4px; height: 2rem; border-radius: 3px;
  background: linear-gradient(180deg, var(--g070-primary), var(--g070-accent));
}

/* ---------- Header ---------- */
.g070-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(28, 39, 51, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--g070-border);
  box-shadow: var(--g070-shadow);
}
.g070-header-inner {
  max-width: 430px; margin: 0 auto; height: 5.4rem;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem;
}
.g070-logo {
  display: flex; align-items: center; gap: 0.6rem; cursor: pointer;
  color: var(--g070-text); font-weight: 800; font-size: 1.8rem;
}
.g070-logo img { width: 28px; height: 28px; border-radius: 6px; }
.g070-logo span { background: linear-gradient(90deg, var(--g070-primary), var(--g070-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.g070-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.g070-menu-btn {
  background: transparent; border: 1px solid var(--g070-border);
  color: var(--g070-text); width: 3.6rem; height: 3.6rem;
  border-radius: 10px; font-size: 1.8rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.g070-btn {
  border: none; border-radius: 10px; cursor: pointer;
  font-weight: 700; font-size: 1.35rem; padding: 0.75rem 1.2rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 44px; display: inline-flex; align-items: center; gap: 0.4rem;
}
.g070-btn:active { transform: scale(0.96); }
.g070-btn-login {
  background: transparent; color: var(--g070-text);
  border: 1px solid var(--g070-primary);
}
.g070-btn-register {
  background: linear-gradient(90deg, var(--g070-primary), var(--g070-accent));
  color: #fff; box-shadow: 0 4px 12px rgba(123, 104, 238, 0.45);
}
.g070-btn-block { display: flex; justify-content: center; width: 100%; padding: 1rem; font-size: 1.5rem; }
.g070-btn-gold { background: linear-gradient(90deg, var(--g070-gold), #ff9f43); color: #2a1a00; }

/* ---------- Mobile menu ---------- */
.g070-mobile-menu {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  background: var(--g070-bg-dark); border-bottom: 1px solid var(--g070-border);
}
.g070-mobile-menu.g070-menu-open { max-height: 480px; }
.g070-mobile-menu-inner { max-width: 430px; margin: 0 auto; padding: 0.8rem 1rem 1.2rem; }
.g070-mobile-menu a {
  display: block; padding: 1rem 0.8rem; color: var(--g070-text);
  border-bottom: 1px solid rgba(123, 104, 238, 0.12); font-size: 1.5rem;
}
.g070-mobile-menu a:active { background: rgba(123, 104, 238, 0.12); }

/* ---------- Body spacer for fixed header ---------- */
.g070-body-spacer { height: 5.4rem; }

/* ---------- Hero carousel ---------- */
.g070-carousel {
  position: relative; border-radius: var(--g070-radius); overflow: hidden;
  margin: 1.2rem 0; box-shadow: var(--g070-shadow);
}
.g070-slides { position: relative; height: 200px; }
.g070-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease;
  cursor: pointer;
}
.g070-slide.g070-slide-active { opacity: 1; }
.g070-slide img { width: 100%; height: 100%; object-fit: cover; }
.g070-slide-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem; background: linear-gradient(180deg, transparent, rgba(28,39,51,0.92));
}
.g070-slide-overlay h3 { font-size: 1.6rem; color: #fff; margin-bottom: 0.2rem; }
.g070-slide-overlay p { font-size: 1.25rem; color: var(--g070-text-muted); }

.g070-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 5;
}
.g070-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.45); cursor: pointer;
}
.g070-dot.g070-dot-active { background: var(--g070-primary); width: 18px; border-radius: 4px; }

/* ---------- Hero CTA ---------- */
.g070-hero-cta {
  display: flex; gap: 0.8rem; justify-content: center; margin: 1rem 0 1.4rem;
}

/* ---------- Game grid ---------- */
.g070-cat-block { margin-bottom: 1.6rem; }
.g070-cat-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.8rem;
}
.g070-cat-head h2 { font-size: 1.7rem; font-weight: 800; color: var(--g070-text); }
.g070-cat-tag {
  font-size: 1.1rem; padding: 0.2rem 0.7rem; border-radius: 999px;
  background: rgba(123, 104, 238, 0.2); color: var(--g070-primary);
}
.g070-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
}
.g070-card {
  background: var(--g070-bg-light); border: 1px solid var(--g070-border);
  border-radius: 12px; overflow: hidden; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.g070-card:active { transform: scale(0.95); }
.g070-card-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #202b37; }
.g070-card-name {
  padding: 0.5rem 0.4rem; font-size: 1.15rem; color: var(--g070-text);
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Info / feature cards ---------- */
.g070-info-grid { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
.g070-info-card {
  background: var(--g070-bg-light); border: 1px solid var(--g070-border);
  border-radius: var(--g070-radius); padding: 1.2rem;
}
.g070-info-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--g070-primary); }
.g070-info-card p { font-size: 1.3rem; color: var(--g070-text-muted); }
.g070-info-card ul { list-style: none; margin-top: 0.5rem; }
.g070-info-card li { font-size: 1.3rem; color: var(--g070-text-muted); padding: 0.3rem 0; }

/* ---------- Steps list ---------- */
.g070-steps { display: flex; flex-direction: column; gap: 0.7rem; }
.g070-step {
  display: flex; gap: 0.8rem; align-items: flex-start;
  background: var(--g070-bg-light); padding: 1rem; border-radius: 10px;
  border-left: 3px solid var(--g070-primary);
}
.g070-step-num {
  flex: 0 0 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--g070-primary), var(--g070-accent));
  color: #fff; font-weight: 800; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
}
.g070-step-text { font-size: 1.35rem; color: var(--g070-text); }

/* ---------- FAQ ---------- */
.g070-faq-item {
  background: var(--g070-bg-light); border: 1px solid var(--g070-border);
  border-radius: 10px; padding: 1rem; margin-bottom: 0.7rem;
}
.g070-faq-item h3 { font-size: 1.4rem; color: var(--g070-gold); margin-bottom: 0.4rem; }
.g070-faq-item p { font-size: 1.3rem; color: var(--g070-text-muted); }

/* ---------- Testimonials ---------- */
.g070-testimonials { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
.g070-testimonial {
  background: var(--g070-bg-light); border-radius: 12px; padding: 1.1rem;
  border: 1px solid var(--g070-border);
}
.g070-testimonial-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.g070-testimonial-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--g070-primary), var(--g070-accent));
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800;
}
.g070-testimonial-name { font-size: 1.35rem; font-weight: 700; color: var(--g070-text); }
.g070-testimonial-stars { color: var(--g070-gold); font-size: 1.2rem; }
.g070-testimonial p { font-size: 1.3rem; color: var(--g070-text-muted); }

/* ---------- Winners ---------- */
.g070-winners { display: flex; flex-direction: column; gap: 0.5rem; }
.g070-winner {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--g070-bg-light); padding: 0.7rem 1rem; border-radius: 8px;
  font-size: 1.25rem;
}
.g070-winner-name { color: var(--g070-text); font-weight: 600; }
.g070-winner-amount { color: var(--g070-gold); font-weight: 800; }

/* ---------- Payment methods ---------- */
.g070-payments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.g070-payment {
  background: var(--g070-bg-light); border: 1px solid var(--g070-border);
  border-radius: 8px; height: 48px; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--g070-text-muted); font-weight: 700;
}

/* ---------- Promo / text link ---------- */
.g070-promo-link {
  color: var(--g070-gold); font-weight: 800; cursor: pointer;
  border-bottom: 1px dashed var(--g070-gold);
}
.g070-promo-link:active { opacity: 0.7; }

/* ---------- Footer ---------- */
.g070-footer {
  background: var(--g070-bg-dark); border-top: 1px solid var(--g070-border);
  padding: 1.6rem 0 2rem; margin-top: 1.5rem;
}
.g070-footer-inner { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.g070-footer-brand { font-size: 1.3rem; color: var(--g070-text-muted); margin-bottom: 1rem; line-height: 1.6; }
.g070-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; margin-bottom: 1rem; }
.g070-footer-links a {
  font-size: 1.25rem; color: var(--g070-text-muted);
  padding: 0.3rem 0.6rem; border: 1px solid var(--g070-border); border-radius: 6px;
}
.g070-footer-links a:active { background: rgba(123,104,238,0.18); }
.g070-footer-copy { font-size: 1.15rem; color: var(--g070-text-muted); opacity: 0.8; }

/* ---------- Mobile bottom nav ---------- */
.g070-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: 60px; background: var(--g070-bg-dark);
  border-top: 1px solid var(--g070-border);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.4);
}
.g070-bottom-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--g070-text-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer; transition: color 0.15s ease, transform 0.15s ease;
  font-size: 1.1rem; padding: 4px 2px;
}
.g070-bottom-nav-btn .g070-nav-icon { font-size: 22px; line-height: 1; }
.g070-bottom-nav-btn .g070-nav-label { font-size: 1.05rem; line-height: 1; }
.g070-bottom-nav-btn:active { transform: scale(0.92); }
.g070-bottom-nav-btn.g070-nav-active { color: var(--g070-primary); }
.g070-bottom-nav-btn.g070-nav-promo { color: var(--g070-gold); }

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

@media (min-width: 769px) {
  .g070-bottom-nav { display: none; }
  .g070-container, .g070-wrapper, .g070-header-inner,
  .g070-mobile-menu-inner, .g070-footer-inner { max-width: 900px; }
  .g070-grid { grid-template-columns: repeat(6, 1fr); }
  .g070-info-grid { grid-template-columns: repeat(2, 1fr); }
  .g070-testimonials { grid-template-columns: repeat(2, 1fr); }
  .g070-payments { grid-template-columns: repeat(6, 1fr); }
  .g070-slides { height: 320px; }
  .g070-desktop-nav { display: flex; gap: 1rem; }
  .g070-desktop-nav a { color: var(--g070-text-muted); font-size: 1.3rem; }
  main { padding-bottom: 0 !important; }
}

/* ---------- Mobile bottom padding for fixed nav ---------- */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* ---------- Utility ---------- */
.g070-text-center { text-align: center; }
.g070-mt-1 { margin-top: 0.8rem; }
.g070-mt-2 { margin-top: 1.6rem; }
.g070-muted { color: var(--g070-text-muted); }
.g070-h1 {
  font-size: 2.2rem; font-weight: 800; line-height: 1.3;
  margin: 1rem 0; color: var(--g070-text);
}
.g070-h2 { font-size: 1.8rem; font-weight: 800; margin: 1.2rem 0 0.6rem; color: var(--g070-text); }
.g070-para { font-size: 1.35rem; color: var(--g070-text-muted); margin-bottom: 0.7rem; }
.g070-page-hero {
  margin: 1.2rem 0; padding: 1.6rem; border-radius: var(--g070-radius);
  background: radial-gradient(circle at top right, rgba(147,112,219,0.35), transparent 45%), var(--g070-bg-light);
  border: 1px solid var(--g070-border); box-shadow: var(--g070-shadow);
}
.g070-page-hero p { color: var(--g070-text-muted); font-size: 1.35rem; margin-top: 0.6rem; }
.g070-mini-list { display: grid; grid-template-columns: 1fr; gap: 0.7rem; margin-top: 0.8rem; }
.g070-mini-item {
  display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.9rem;
  background: rgba(28,39,51,0.66); border: 1px solid var(--g070-border); border-radius: 10px;
}
.g070-mini-icon {
  flex: 0 0 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--g070-primary), var(--g070-accent)); color: #fff;
}
.g070-mini-item strong { color: var(--g070-text); font-size: 1.32rem; display: block; }
.g070-mini-item span { color: var(--g070-text-muted); font-size: 1.22rem; }
.g070-alert {
  padding: 1rem; border-radius: 12px; border: 1px solid rgba(255,211,107,0.35);
  background: rgba(255,211,107,0.09); color: var(--g070-text); font-size: 1.32rem;
}
.g070-link-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.g070-text-link { color: var(--g070-gold); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
