/* ==========================================================================
   123win casino - Core Base Stylesheet (mobile-first, max-width 430px)
   Prefix: pg8a-  |  Palette: teal/violet/dark navy
   ========================================================================== */

:root {
  --pg8a-bg: #0E1621;
  --pg8a-bg-2: #14213d;
  --pg8a-bg-3: #1c2c4a;
  --pg8a-teal: #20B2AA;
  --pg8a-teal-d: #00695C;
  --pg8a-violet: #D8BFD8;
  --pg8a-grey: #A9A9A9;
  --pg8a-text: #EAF2FF;
  --pg8a-muted: #9fb0c8;
  --pg8a-gold: #F2C94C;
  --pg8a-danger: #FF5C7A;
  --pg8a-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --pg8a-radius: 14px;
  --pg8a-radius-sm: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "Be Vietnam Pro", Roboto, system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #1a2c4d 0%, var(--pg8a-bg) 60%);
  color: var(--pg8a-text);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--pg8a-violet); text-decoration: none; }
a:hover { color: var(--pg8a-teal); }
button { font-family: inherit; cursor: pointer; border: none; }

/* ===== Layout helpers ===== */
.pg8a-wrap { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 14px; }
.pg8a-section { padding: 32px 0; }
.pg8a-section-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 2rem; font-weight: 800; margin-bottom: 14px;
  color: #fff;
}
.pg8a-section-title i { color: var(--pg8a-teal); }
.pg8a-section-title::after {
  content: ""; flex: 1; height: 2px;
  background: linear-gradient(90deg, var(--pg8a-teal), transparent);
}
.pg8a-eyebrow {
  display: inline-block; font-size: 1.2rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--pg8a-teal); margin-bottom: 6px;
}

/* ===== Header ===== */
.pg8a-header {
  position: sticky; top: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(14,22,33,.96), rgba(14,22,33,.86));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(32,178,170,.25);
}
.pg8a-header-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 58px;
}
.pg8a-logo {
  display: flex; align-items: center; gap: 8px; color: #fff;
  font-weight: 800; font-size: 1.85rem;
}
.pg8a-logo .pg8a-logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--pg8a-teal), var(--pg8a-teal-d));
  display: grid; place-items: center; color: #06251f; font-weight: 900;
  box-shadow: 0 4px 12px rgba(32,178,170,.45);
}
.pg8a-logo small { color: var(--pg8a-violet); font-weight: 600; font-size: 1.05rem; }
.pg8a-header-actions { display: flex; gap: 8px; align-items: center; }
.pg8a-menu-btn {
  background: transparent; color: #fff; font-size: 2rem; padding: 6px 8px;
  border-radius: 8px;
}
.pg8a-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 1.35rem;
  transition: transform .15s ease, filter .15s ease;
}
.pg8a-btn:active { transform: scale(.96); }
.pg8a-btn-login {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.4);
}
.pg8a-btn-register {
  background: linear-gradient(135deg, var(--pg8a-gold), #ff9a3c);
  color: #2a1500; box-shadow: 0 6px 16px rgba(242,201,76,.35);
}

/* ===== Mobile menu ===== */
.pg8a-menu {
  position: fixed; inset: 0 0 0 auto; width: 84%; max-width: 360px;
  background: var(--pg8a-bg-2);
  transform: translateX(105%); transition: transform .28s ease;
  z-index: 9999; padding: 18px 16px 30px; overflow-y: auto;
  border-left: 1px solid rgba(32,178,170,.25);
}
.pg8a-menu.open { transform: translateX(0); }
.pg8a-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 9998; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.pg8a-menu-overlay.show { opacity: 1; pointer-events: auto; }
.pg8a-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.pg8a-menu-close { background: transparent; color: #fff; font-size: 2.4rem; line-height: 1; }
.pg8a-menu-list { list-style: none; }
.pg8a-menu-list li { border-bottom: 1px solid rgba(255,255,255,.07); }
.pg8a-menu-list a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 8px; color: var(--pg8a-text); font-size: 1.5rem; font-weight: 600;
}
.pg8a-menu-list a i { color: var(--pg8a-teal); width: 22px; text-align: center; }
.pg8a-menu-promo {
  margin-top: 18px; padding: 14px; border-radius: var(--pg8a-radius);
  background: linear-gradient(135deg, var(--pg8a-teal-d), #0a3a33);
  text-align: center;
}
.pg8a-menu-promo p { color: #cfeae8; font-size: 1.3rem; margin-bottom: 10px; }

/* ===== Hero / carousel ===== */
.pg8a-hero {
  position: relative; padding: 22px 0 8px; overflow: hidden;
}
.pg8a-hero-card {
  position: relative; border-radius: 20px; padding: 24px 18px;
  background: linear-gradient(135deg, #0d4f49 0%, #1c2c4a 60%, #3a2456 100%);
  box-shadow: var(--pg8a-shadow); overflow: hidden;
}
.pg8a-hero-card::before {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(216,191,216,.5), transparent 70%);
}
.pg8a-hero h1 {
  font-size: 2.5rem; line-height: 1.2; margin-bottom: 10px; color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.pg8a-hero h1 span { color: var(--pg8a-gold); }
.pg8a-hero p { color: #d6e8ff; font-size: 1.4rem; margin-bottom: 16px; max-width: 32ch; }
.pg8a-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 2; }
.pg8a-hero-badges {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; position: relative; z-index: 2;
}
.pg8a-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.15);
  padding: 6px 12px; border-radius: 999px; font-size: 1.15rem; color: #fff;
}
.pg8a-badge i { color: var(--pg8a-gold); }

.pg8a-carousel { margin-top: 14px; }
.pg8a-carousel-track {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.pg8a-carousel-track::-webkit-scrollbar { display: none; }
.pg8a-slide {
  flex: 0 0 86%; scroll-snap-align: center;
  border-radius: 16px; overflow: hidden; position: relative;
  min-height: 150px; padding: 16px;
  background: linear-gradient(135deg, #00695C, #20B2AA);
  color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
}
.pg8a-slide.s2 { background: linear-gradient(135deg, #5b2a86, #b3489e); }
.pg8a-slide.s3 { background: linear-gradient(135deg, #1c2c4a, #3a2456); }
.pg8a-slide.s4 { background: linear-gradient(135deg, #b3540e, #F2C94C); color: #2a1500; }
.pg8a-slide h3 { font-size: 1.7rem; margin-bottom: 4px; position: relative; z-index: 2; }
.pg8a-slide p, .pg8a-slide .pg8a-btn { position: relative; z-index: 2; }
.pg8a-slide p { font-size: 1.25rem; opacity: .9; }
.pg8a-slide-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .28; filter: saturate(1.1) contrast(1.05);
}

/* ===== Category chips ===== */
.pg8a-chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px;
}
.pg8a-chips::-webkit-scrollbar { display: none; }
.pg8a-chip {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.06); color: var(--pg8a-text);
  font-size: 1.25rem; font-weight: 600; white-space: nowrap;
  border: 1px solid rgba(255,255,255,.08);
}
.pg8a-chip.active {
  background: linear-gradient(135deg, var(--pg8a-teal), var(--pg8a-teal-d));
  color: #fff; border-color: transparent;
}

/* ===== Game grid & cards ===== */
.pg8a-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.pg8a-card {
  position: relative; border-radius: var(--pg8a-radius); overflow: hidden;
  background: var(--pg8a-bg-3); box-shadow: 0 4px 12px rgba(0,0,0,.35);
  transition: transform .18s ease;
}
.pg8a-card:active { transform: scale(.97); }
.pg8a-card .pg8a-card-img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #0a1424;
}
.pg8a-card-body {
  padding: 7px 8px 10px;
}
.pg8a-card-title {
  font-size: 1.15rem; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pg8a-card-tag {
  position: absolute; top: 6px; left: 6px;
  background: rgba(0,0,0,.6); color: var(--pg8a-gold);
  font-size: 1rem; font-weight: 700; padding: 3px 7px; border-radius: 6px;
}
.pg8a-card-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(8,18,30,.55); opacity: 0; transition: opacity .2s;
}
.pg8a-card:hover .pg8a-card-play { opacity: 1; }
.pg8a-card-play span {
  background: var(--pg8a-gold); color: #2a1500; padding: 7px 14px;
  border-radius: 999px; font-weight: 700; font-size: 1.2rem;
}
.pg8a-grid.large { grid-template-columns: repeat(2, 1fr); }
.pg8a-grid.large .pg8a-card .pg8a-card-img { aspect-ratio: 4/3; }

/* ===== Promo banner ===== */
.pg8a-promo {
  border-radius: var(--pg8a-radius); padding: 18px;
  background: linear-gradient(135deg, #2a0d4a, #00695C);
  display: flex; gap: 14px; align-items: center; box-shadow: var(--pg8a-shadow);
}
.pg8a-promo-ico {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 14px;
  background: rgba(255,255,255,.12); display: grid; place-items: center;
  color: var(--pg8a-gold); font-size: 2.4rem;
}
.pg8a-promo-text h3 { font-size: 1.55rem; margin-bottom: 4px; color: #fff; }
.pg8a-promo-text p { color: #d6e8ff; font-size: 1.2rem; }

/* ===== Feature / steps ===== */
.pg8a-features {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.pg8a-feature {
  background: var(--pg8a-bg-3); padding: 14px; border-radius: var(--pg8a-radius);
  border: 1px solid rgba(32,178,170,.18);
}
.pg8a-feature i { font-size: 2.4rem; color: var(--pg8a-teal); margin-bottom: 8px; }
.pg8a-feature h4 { font-size: 1.35rem; margin-bottom: 4px; color: #fff; }
.pg8a-feature p { color: var(--pg8a-muted); font-size: 1.15rem; }

.pg8a-steps { counter-reset: step; list-style: none; display: grid; gap: 10px; }
.pg8a-steps li {
  position: relative; padding: 14px 14px 14px 52px;
  background: var(--pg8a-bg-3); border-radius: var(--pg8a-radius);
  border-left: 3px solid var(--pg8a-teal);
}
.pg8a-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 12px; top: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pg8a-teal), var(--pg8a-teal-d));
  color: #06251f; font-weight: 800; display: grid; place-items: center; font-size: 1.4rem;
}
.pg8a-steps h4 { font-size: 1.35rem; color: #fff; margin-bottom: 3px; }
.pg8a-steps p { color: var(--pg8a-muted); font-size: 1.15rem; }

/* ===== SEO long text ===== */
.pg8a-seo {
  background: var(--pg8a-bg-3); border-radius: var(--pg8a-radius); padding: 18px;
  border: 1px solid rgba(255,255,255,.06);
}
.pg8a-seo h2 { font-size: 1.85rem; color: #fff; margin: 14px 0 8px; }
.pg8a-seo h2:first-child { margin-top: 0; }
.pg8a-seo h3 { font-size: 1.5rem; color: var(--pg8a-teal); margin: 12px 0 6px; }
.pg8a-seo p { color: #cdd9ec; font-size: 1.3rem; margin-bottom: 10px; }
.pg8a-seo ul { padding-left: 18px; margin-bottom: 10px; }
.pg8a-seo li { color: #cdd9ec; font-size: 1.3rem; margin-bottom: 4px; }
.pg8a-seo a { color: var(--pg8a-gold); text-decoration: underline; }

/* ===== FAQ ===== */
.pg8a-faq { display: grid; gap: 8px; }
.pg8a-faq-item {
  background: var(--pg8a-bg-3); border-radius: var(--pg8a-radius-sm);
  border: 1px solid rgba(255,255,255,.06); overflow: hidden;
}
.pg8a-faq-q {
  width: 100%; text-align: left; padding: 13px 14px;
  background: transparent; color: #fff; font-size: 1.35rem; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.pg8a-faq-q .pg8a-faq-ico { color: var(--pg8a-teal); transition: transform .2s; }
.pg8a-faq-item.open .pg8a-faq-ico { transform: rotate(45deg); }
.pg8a-faq-a {
  max-height: 0; overflow: hidden; transition: max-height .25s ease;
  padding: 0 14px; color: var(--pg8a-muted); font-size: 1.25rem;
}
.pg8a-faq-item.open .pg8a-faq-a { max-height: 320px; padding: 0 14px 12px; }

/* ===== Footer ===== */
.pg8a-footer {
  background: #0a121d; padding: 28px 0 24px; margin-top: 20px;
  border-top: 1px solid rgba(32,178,170,.2);
}
.pg8a-footer h4 { color: #fff; font-size: 1.4rem; margin-bottom: 8px; }
.pg8a-footer p, .pg8a-footer a { color: var(--pg8a-muted); font-size: 1.2rem; }
.pg8a-footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pg8a-footer ul { list-style: none; }
.pg8a-footer li { margin-bottom: 6px; }
.pg8a-footer-bottom {
  text-align: center; margin-top: 18px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.06); color: #6c7d96; font-size: 1.1rem;
}
.pg8a-pay {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px;
}
.pg8a-pay span {
  background: rgba(255,255,255,.08); color: #fff; font-size: 1rem;
  padding: 4px 8px; border-radius: 6px;
}

/* ===== Mobile bottom nav ===== */
.pg8a-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  display: flex; justify-content: space-around; align-items: stretch;
  height: 62px;
  background: linear-gradient(180deg, rgba(20,33,61,.97), rgba(10,18,29,.99));
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(32,178,170,.35);
  box-shadow: 0 -6px 20px rgba(0,0,0,.5);
}
.pg8a-bottom-nav a, .pg8a-bottom-nav button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; background: transparent; color: var(--pg8a-muted);
  font-size: 1.05rem; font-weight: 600; min-width: 60px; min-height: 60px;
  position: relative; transition: color .2s;
}
.pg8a-bottom-nav a i, .pg8a-bottom-nav button i { font-size: 22px; }
.pg8a-bottom-nav a.active, .pg8a-bottom-nav button.active { color: var(--pg8a-teal); }
.pg8a-bottom-nav a.active::before, .pg8a-bottom-nav button.active::before {
  content: ""; position: absolute; top: 0; width: 28px; height: 3px;
  background: var(--pg8a-teal); border-radius: 0 0 4px 4px;
}
.pg8a-bottom-nav .pg8a-nav-fab {
  flex: 0 0 64px; margin-top: -22px;
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pg8a-gold), #ff9a3c);
  color: #2a1500; box-shadow: 0 6px 16px rgba(242,201,76,.5);
  border: 3px solid #0a121d;
}
.pg8a-bottom-nav .pg8a-nav-fab i { font-size: 26px; }

main { padding-bottom: 80px; }

/* ===== Desktop ===== */
@media (min-width: 769px) {
  .pg8a-bottom-nav { display: none; }
  main { padding-bottom: 0; }
  .pg8a-wrap { max-width: 960px; }
  .pg8a-grid { grid-template-columns: repeat(6, 1fr); }
  .pg8a-grid.large { grid-template-columns: repeat(4, 1fr); }
  .pg8a-features { grid-template-columns: repeat(4, 1fr); }
  .pg8a-footer-cols { grid-template-columns: repeat(4, 1fr); }
  .pg8a-slide { flex: 0 0 48%; }
}

/* ===== Utility ===== */
.pg8a-hidden { display: none !important; }
.pg8a-text-center { text-align: center; }
.pg8a-mt-12 { margin-top: 12px; }
.pg8a-link-text { color: var(--pg8a-gold); font-weight: 700; }
.pg8a-link-text:hover { color: var(--pg8a-teal); text-decoration: underline; }
