/* 98wi website stylesheet - Vietnamese casino gaming platform */
/* All class names use g785- prefix for namespace isolation */
/* Color palette: #FFEF94 | #BDB76B | #495057 | #0A0A0A */
/* Dark backgrounds, light text for high contrast mobile readability */

:root {
  --g785-primary: #FFEF94;
  --g785-accent: #BDB76B;
  --g785-muted: #495057;
  --g785-bg: #0A0A0A;
  --g785-bg-alt: #161616;
  --g785-card: #1f1f1f;
  --g785-text: #FFEF94;
  --g785-text-light: #f5f5dc;
  --g785-border: #2a2a2a;
  --g785-gold: #BDB76B;
  --g785-danger: #c9302c;
}

/* Root font 62.5% so 1rem = 10px for rem-based sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
  background: var(--g785-bg);
  color: var(--g785-text-light);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

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

.g785-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

/* ===== Header ===== */
.g785-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(180deg, #0A0A0A 0%, #161616 100%);
  border-bottom: 0.1rem solid var(--g785-gold);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.6);
}

.g785-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.g785-logo-img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.6rem;
  border: 0.1rem solid var(--g785-gold);
}

.g785-logo-text {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--g785-primary);
  letter-spacing: 0.05rem;
}

.g785-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.g785-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.6rem 1.2rem;
  border-radius: 2.4rem;
  font-size: 1.3rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  min-height: 3.4rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.g785-btn:active {
  transform: scale(0.95);
}

.g785-btn-register {
  background: linear-gradient(135deg, #FFEF94 0%, #BDB76B 100%);
  color: #0A0A0A;
  box-shadow: 0 0.2rem 0.6rem rgba(255, 239, 148, 0.35);
}

.g785-btn-login {
  background: transparent;
  color: var(--g785-primary);
  border: 0.12rem solid var(--g785-gold);
}

.g785-menu-toggle {
  background: transparent;
  border: none;
  color: var(--g785-primary);
  font-size: 2.2rem;
  cursor: pointer;
  width: 3.4rem;
  height: 3.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
}

/* ===== Mobile Slide-in Menu ===== */
.g785-mobile-menu {
  position: fixed;
  top: 0;
  right: -85%;
  width: 75%;
  max-width: 320px;
  height: 100vh;
  background: var(--g785-bg-alt);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 6rem 1.5rem 2rem;
  overflow-y: auto;
  border-left: 0.1rem solid var(--g785-gold);
}

.g785-mobile-menu.g785-menu-open {
  right: 0;
}

.g785-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.g785-menu-overlay.g785-overlay-active {
  opacity: 1;
  visibility: visible;
}

.g785-menu-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  color: var(--g785-primary);
  font-size: 2.4rem;
  cursor: pointer;
  width: 3.4rem;
  height: 3.4rem;
}

.g785-menu-title {
  font-size: 1.6rem;
  color: var(--g785-gold);
  margin-bottom: 1.5rem;
  font-weight: 700;
  border-bottom: 0.1rem solid var(--g785-border);
  padding-bottom: 1rem;
}

.g785-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.g785-menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1rem;
  color: var(--g785-text-light);
  text-decoration: none;
  border-radius: 0.8rem;
  background: var(--g785-card);
  font-size: 1.4rem;
  font-weight: 600;
  transition: background 0.2s ease;
  min-height: 4.4rem;
}

.g785-menu-link:active {
  background: var(--g785-gold);
  color: #0A0A0A;
}

.g785-menu-link i,
.g785-menu-link .material-icons-outlined,
.g785-menu-link .bi {
  font-size: 2rem;
  color: var(--g785-primary);
}

/* ===== Main Content ===== */
main {
  padding-top: 6rem;
}

.g785-section {
  padding: 2rem 0 1.5rem;
}

.g785-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--g785-primary);
  margin-bottom: 1.2rem;
  padding-left: 1rem;
  border-left: 0.3rem solid var(--g785-gold);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.g785-h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--g785-primary);
  text-align: center;
  margin: 1.5rem 0;
  line-height: 1.3;
}

.g785-subtitle {
  font-size: 1.4rem;
  color: var(--g785-text-light);
  text-align: center;
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

/* ===== Carousel ===== */
.g785-carousel {
  position: relative;
  width: 100%;
  height: 16rem;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.5);
}

.g785-slides {
  width: 100%;
  height: 100%;
}

.g785-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.g785-slide.g785-slide-active {
  opacity: 1;
}

.g785-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g785-slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 100%);
  padding: 2rem 1.2rem 1rem;
  color: var(--g785-primary);
}

.g785-slide-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.g785-slide-text {
  font-size: 1.2rem;
  color: var(--g785-text-light);
}

.g785-carousel-dots {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}

.g785-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 239, 148, 0.4);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.g785-dot.g785-dot-active {
  background: var(--g785-primary);
  width: 2rem;
  border-radius: 0.4rem;
}

/* ===== Game Grid ===== */
.g785-game-block {
  margin-bottom: 2rem;
}

.g785-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0 0.4rem;
}

.g785-cat-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--g785-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.g785-cat-badge {
  font-size: 1rem;
  color: var(--g785-gold);
  background: rgba(189, 183, 107, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
}

.g785-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.g785-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: var(--g785-card);
  border-radius: 0.8rem;
  padding: 0.5rem;
  border: 0.1rem solid var(--g785-border);
  transition: transform 0.15s ease, border-color 0.15s ease;
  overflow: hidden;
}

.g785-game-card:active {
  transform: scale(0.96);
  border-color: var(--g785-gold);
}

.g785-game-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.6rem;
  background: #000;
}

.g785-game-name {
  font-size: 1rem;
  color: var(--g785-text-light);
  text-align: center;
  margin-top: 0.4rem;
  line-height: 1.2;
  height: 2.4rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.g785-game-card .g785-game-hot {
  position: relative;
}

.g785-hot-tag {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  background: var(--g785-danger);
  color: #fff;
  font-size: 0.9rem;
  padding: 0.1rem 0.4rem;
  border-radius: 0.4rem;
  font-weight: 700;
}

/* ===== Content modules ===== */
.g785-content-card {
  background: var(--g785-card);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 0.1rem solid var(--g785-border);
  border-left: 0.3rem solid var(--g785-gold);
}

.g785-content-card h2 {
  font-size: 1.7rem;
  color: var(--g785-primary);
  margin-bottom: 1rem;
  font-weight: 800;
}

.g785-content-card h3 {
  font-size: 1.4rem;
  color: var(--g785-gold);
  margin: 1rem 0 0.5rem;
  font-weight: 700;
}

.g785-content-card p {
  font-size: 1.3rem;
  color: var(--g785-text-light);
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.g785-text-link {
  color: var(--g785-primary);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.g785-text-link:hover {
  text-decoration: underline;
}

.g785-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.g785-cta .g785-btn {
  padding: 1rem 2rem;
  font-size: 1.4rem;
}

/* ===== Lists ===== */
.g785-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.g785-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 1.3rem;
  color: var(--g785-text-light);
  line-height: 1.5;
}

.g785-list-item i,
.g785-list-item .material-icons,
.g785-list-item .bi {
  color: var(--g785-primary);
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* ===== Testimonials ===== */
.g785-testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.g785-testimonial {
  background: var(--g785-bg-alt);
  border-radius: 0.8rem;
  padding: 1.2rem;
  border: 0.1rem solid var(--g785-border);
}

.g785-testimonial-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.g785-avatar {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFEF94, #BDB76B);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0A0A0A;
  font-weight: 800;
  font-size: 1.4rem;
}

.g785-testimonial-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--g785-primary);
}

.g785-stars {
  color: var(--g785-gold);
  font-size: 1.2rem;
}

.g785-testimonial-text {
  font-size: 1.25rem;
  color: var(--g785-text-light);
  line-height: 1.5;
}

/* ===== Payment / Winners / Stats compact grids ===== */
.g785-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.g785-chip {
  background: var(--g785-bg-alt);
  border-radius: 0.8rem;
  padding: 1rem 0.6rem;
  text-align: center;
  border: 0.1rem solid var(--g785-border);
}

.g785-chip i,
.g785-chip .material-icons,
.g785-chip .bi {
  font-size: 2.2rem;
  color: var(--g785-primary);
}

.g785-chip-label {
  font-size: 1.1rem;
  color: var(--g785-text-light);
  margin-top: 0.4rem;
}

.g785-winners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.g785-winner {
  background: var(--g785-bg-alt);
  border-radius: 0.6rem;
  padding: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 0.1rem solid var(--g785-border);
}

.g785-winner-amount {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--g785-primary);
}

.g785-winner-game {
  font-size: 1rem;
  color: var(--g785-text-light);
  opacity: 0.8;
}

/* ===== Footer ===== */
.g785-footer {
  background: #050505;
  border-top: 0.15rem solid var(--g785-gold);
  padding: 2rem 1.2rem 6rem;
  margin-top: 2rem;
}

.g785-footer-brand {
  font-size: 1.4rem;
  color: var(--g785-text-light);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  opacity: 0.85;
}

.g785-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.g785-footer-link {
  font-size: 1.2rem;
  color: var(--g785-primary);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  background: var(--g785-card);
  border-radius: 1rem;
  border: 0.1rem solid var(--g785-border);
}

.g785-footer-link:active {
  background: var(--g785-gold);
  color: #0A0A0A;
}

.g785-footer-copy {
  font-size: 1.1rem;
  color: var(--g785-muted);
  text-align: center;
  border-top: 0.1rem solid var(--g785-border);
  padding-top: 1rem;
}

/* ===== Mobile Bottom Navigation ===== */
.g785-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 6rem;
  background: linear-gradient(180deg, #161616 0%, #0A0A0A 100%);
  border-top: 0.1rem solid var(--g785-gold);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -0.2rem 0.8rem rgba(0, 0, 0, 0.6);
}

.g785-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: transparent;
  border: none;
  color: var(--g785-text-light);
  text-decoration: none;
  min-width: 6rem;
  min-height: 6rem;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
  padding-top: 0.4rem;
}

.g785-nav-btn:active {
  transform: scale(0.9);
}

.g785-nav-btn i,
.g785-nav-btn .material-icons-outlined,
.g785-nav-btn .bi,
.g785-nav-btn .ionicon {
  font-size: 2.4rem;
  color: var(--g785-text-light);
  transition: color 0.15s ease;
}

.g785-nav-btn .g785-nav-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--g785-text-light);
}

.g785-nav-btn.g785-nav-btn-active i,
.g785-nav-btn.g785-nav-btn-active .material-icons-outlined,
.g785-nav-btn.g785-nav-btn-active .bi,
.g785-nav-btn.g785-nav-btn-active .ionicon {
  color: var(--g785-primary);
}

.g785-nav-btn.g785-nav-btn-active .g785-nav-label {
  color: var(--g785-primary);
}

.g785-nav-btn-promo {
  position: relative;
}

.g785-nav-btn-promo i,
.g785-nav-btn-promo .material-icons-outlined,
.g785-nav-btn-promo .bi {
  color: var(--g785-gold);
}

.g785-nav-badge {
  position: absolute;
  top: 0.6rem;
  right: 1.2rem;
  background: var(--g785-danger);
  color: #fff;
  font-size: 0.85rem;
  min-width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  padding: 0 0.3rem;
}

/* ===== Desktop: hide bottom nav, keep header ===== */
@media (min-width: 769px) {
  .g785-bottom-nav {
    display: none;
  }
  body {
    max-width: 430px;
  }
}

/* ===== Mobile bottom clearance ===== */
@media (max-width: 768px) {
  main {
    padding-top: 6rem;
    padding-bottom: 7rem;
  }
  .g785-footer {
    padding-bottom: 7rem;
  }
}

/* ===== Utility ===== */
.g785-divider {
  height: 0.1rem;
  background: var(--g785-border);
  margin: 1.5rem 0;
  border: none;
}

.g785-highlight {
  color: var(--g785-primary);
  font-weight: 700;
}

.g785-pill {
  display: inline-block;
  background: rgba(255, 239, 148, 0.12);
  color: var(--g785-primary);
  font-size: 1.1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 1rem;
  border: 0.1rem solid var(--g785-gold);
  margin: 0.2rem;
}

.g785-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.g785-step-num {
  flex-shrink: 0;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFEF94, #BDB76B);
  color: #0A0A0A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
}

.g785-step-text {
  font-size: 1.3rem;
  color: var(--g785-text-light);
  line-height: 1.5;
}
