/* =========================================================
 * c186.click - Vietnamese online casino gaming site
 * All classes use pg3b- prefix for namespace isolation
 * Mobile-first design, max-width 430px
 * ========================================================= */

/* CSS custom properties */
:root {
  --pg3b-primary: #E91E63;
  --pg3b-primary-light: #FF91A4;
  --pg3b-primary-soft: #FFB3BA;
  --pg3b-bg: #1A1A2E;
  --pg3b-bg-alt: #25254a;
  --pg3b-bg-card: #2a2150;
  --pg3b-text: #FFFFFF;
  --pg3b-text-soft: #FFB3BA;
  --pg3b-accent: #D2B48C;
  --pg3b-gold: #FFD700;
  --pg3b-border: rgba(255, 145, 164, 0.22);
  --pg3b-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --pg3b-radius: 12px;
  --pg3b-header-h: 60px;
  --pg3b-bottom-h: 64px;
  --pg3b-transition: all 0.22s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Be Vietnam', 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--pg3b-bg);
  color: var(--pg3b-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
a { color: var(--pg3b-primary-light); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.35; font-weight: 800; }

/* Layout */
.pg3b-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.pg3b-wrapper { width: 100%; padding: 1.2rem; }

/* ============ Header ============ */
.pg3b-header {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--pg3b-header-h);
  background: linear-gradient(135deg, #1A1A2E 0%, #2a1a3a 100%);
  border-bottom: 2px solid var(--pg3b-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
  box-shadow: var(--pg3b-shadow);
}
.pg3b-logo { display: flex; align-items: center; gap: 0.6rem; }
.pg3b-logo img { width: 30px; height: 30px; border-radius: 6px; }
.pg3b-logo-text {
  font-size: 1.9rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pg3b-primary-light), var(--pg3b-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}
.pg3b-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.pg3b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  min-height: 38px;
  transition: var(--pg3b-transition);
}
.pg3b-btn:active { transform: scale(0.94); }
.pg3b-btn-login { background: transparent; color: var(--pg3b-text-soft); border: 1.5px solid var(--pg3b-primary); }
.pg3b-btn-register {
  background: linear-gradient(135deg, var(--pg3b-primary) 0%, var(--pg3b-primary-light) 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(233, 30, 99, 0.45);
}
.pg3b-menu-toggle {
  background: transparent;
  border: none;
  color: var(--pg3b-text-soft);
  font-size: 2rem;
  cursor: pointer;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
}

/* ============ Mobile menu ============ */
.pg3b-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s;
  z-index: 9998;
}
.pg3b-menu-overlay.pg3b-overlay-active { opacity: 1; visibility: visible; }
.pg3b-mobile-menu {
  position: fixed;
  top: 0; right: -82%;
  width: 82%;
  max-width: 320px;
  height: 100%;
  background: linear-gradient(180deg, #1A1A2E 0%, #2a1a3a 100%);
  padding: 6rem 1.5rem 2rem;
  transition: right 0.32s ease;
  z-index: 9999;
  overflow-y: auto;
}
.pg3b-mobile-menu.pg3b-menu-active { right: 0; }
.pg3b-mobile-menu h3 {
  color: var(--pg3b-primary-light);
  font-size: 1.5rem;
  margin: 1.5rem 0 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--pg3b-border);
}
.pg3b-mobile-menu a {
  display: block;
  padding: 0.85rem 0;
  color: var(--pg3b-text);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.pg3b-mobile-menu a:hover { color: var(--pg3b-primary-light); padding-left: 0.4rem; }

/* ============ Main ============ */
.pg3b-main { padding-top: calc(var(--pg3b-header-h) + 6px); padding-bottom: 80px; }
.pg3b-h1 {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--pg3b-text);
  text-align: center;
  margin: 1.2rem 0;
  line-height: 1.4;
  padding: 0 0.4rem;
}

/* ============ Carousel ============ */
.pg3b-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--pg3b-radius);
  overflow: hidden;
  margin: 1rem 0;
  box-shadow: var(--pg3b-shadow);
}
.pg3b-slides { position: relative; width: 100%; height: 185px; }
.pg3b-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; cursor: pointer; }
.pg3b-slide.pg3b-slide-active { opacity: 1; }
.pg3b-slide img { width: 100%; height: 100%; object-fit: cover; }
.pg3b-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.pg3b-arrow-prev { left: 8px; }
.pg3b-arrow-next { right: 8px; }
.pg3b-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.pg3b-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); border: none; cursor: pointer; transition: var(--pg3b-transition); }
.pg3b-dot.pg3b-dot-active { background: var(--pg3b-primary); width: 22px; border-radius: 4px; }

/* ============ Sections ============ */
.pg3b-section { margin: 1.8rem 0; }
.pg3b-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--pg3b-primary-light);
  margin-bottom: 1rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--pg3b-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pg3b-section-title .pg3b-title-icon { font-size: 2rem; color: var(--pg3b-accent); }

/* ============ Game grid ============ */
.pg3b-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.pg3b-game-card {
  background: var(--pg3b-bg-alt);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--pg3b-transition);
  border: 1px solid var(--pg3b-border);
}
.pg3b-game-card:active { transform: scale(0.95); }
.pg3b-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pg3b-game-name {
  padding: 0.4rem 0.3rem;
  font-size: 1.1rem;
  text-align: center;
  color: var(--pg3b-text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ Cards ============ */
.pg3b-card {
  background: linear-gradient(135deg, var(--pg3b-bg-alt) 0%, var(--pg3b-bg-card) 100%);
  border-radius: var(--pg3b-radius);
  padding: 1.3rem;
  margin-bottom: 1rem;
  border: 1px solid var(--pg3b-border);
  box-shadow: var(--pg3b-shadow);
}
.pg3b-card h2 { color: var(--pg3b-primary-light); font-size: 1.6rem; margin-bottom: 0.6rem; }
.pg3b-card h3 { color: var(--pg3b-primary-light); font-size: 1.4rem; margin-bottom: 0.5rem; }
.pg3b-card p { color: var(--pg3b-text); font-size: 1.3rem; margin-bottom: 0.6rem; line-height: 1.65; }
.pg3b-card ul { padding-left: 1.4rem; }
.pg3b-card li { font-size: 1.3rem; margin-bottom: 0.4rem; line-height: 1.55; color: var(--pg3b-text); list-style: disc; }

.pg3b-text-link { color: var(--pg3b-primary-light); font-weight: 700; cursor: pointer; }
.pg3b-text-link:hover { text-decoration: underline; }

/* CTA */
.pg3b-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--pg3b-primary) 0%, var(--pg3b-primary-light) 100%);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(233, 30, 99, 0.5);
  transition: var(--pg3b-transition);
  min-height: 48px;
  text-align: center;
}
.pg3b-cta:active { transform: scale(0.96); }
.pg3b-cta-center { display: flex; justify-content: center; margin: 1rem 0; }

/* Feature grid */
.pg3b-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.pg3b-feature-item {
  background: var(--pg3b-bg-alt);
  border-radius: 10px;
  padding: 1rem 0.6rem;
  text-align: center;
  border: 1px solid var(--pg3b-border);
}
.pg3b-feature-item .pg3b-icon { font-size: 2.5rem; color: var(--pg3b-accent); margin-bottom: 0.4rem; }
.pg3b-feature-item h4 { color: var(--pg3b-primary-light); font-size: 1.3rem; margin-bottom: 0.3rem; }
.pg3b-feature-item p { font-size: 1.1rem; color: var(--pg3b-text-soft); line-height: 1.4; }

/* Payment grid */
.pg3b-payment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.pg3b-payment-item {
  background: var(--pg3b-bg-alt);
  border-radius: 8px;
  padding: 0.8rem 0.3rem;
  text-align: center;
  border: 1px solid var(--pg3b-border);
  font-size: 1.1rem;
  color: var(--pg3b-text-soft);
}
.pg3b-payment-item .pg3b-icon { font-size: 2rem; color: var(--pg3b-accent); margin-bottom: 0.2rem; }

/* Winners */
.pg3b-winner-list { display: grid; gap: 0.6rem; }
.pg3b-winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--pg3b-bg-alt);
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--pg3b-primary);
  font-size: 1.2rem;
}
.pg3b-winner-name { color: var(--pg3b-text-soft); }
.pg3b-winner-game { color: var(--pg3b-text); font-size: 1.1rem; }
.pg3b-winner-amount { color: var(--pg3b-gold); font-weight: 700; }

/* Testimonials */
.pg3b-testimonial {
  background: var(--pg3b-bg-alt);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--pg3b-accent);
}
.pg3b-testimonial-stars { color: var(--pg3b-gold); margin-bottom: 0.4rem; font-size: 1.2rem; }
.pg3b-testimonial p { font-size: 1.28rem; color: var(--pg3b-text); margin-bottom: 0.4rem; line-height: 1.55; }
.pg3b-testimonial-author { font-size: 1.1rem; color: var(--pg3b-primary-light); font-weight: 700; }

/* RTP table */
.pg3b-rtp-table { display: grid; grid-template-columns: 2fr 1fr 1fr; background: var(--pg3b-bg-alt); border-radius: 8px; overflow: hidden; }
.pg3b-rtp-row { display: contents; }
.pg3b-rtp-row > div { padding: 0.65rem 0.8rem; font-size: 1.2rem; border-bottom: 1px solid var(--pg3b-border); color: var(--pg3b-text); }
.pg3b-rtp-row.pg3b-rtp-head > div { background: var(--pg3b-primary); color: #fff; font-weight: 700; font-size: 1.2rem; }
.pg3b-rtp-value { color: var(--pg3b-gold); font-weight: 700; }

/* Steps */
.pg3b-steps { display: grid; gap: 0.8rem; }
.pg3b-step {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--pg3b-bg-alt);
  padding: 0.9rem;
  border-radius: 10px;
  border-left: 3px solid var(--pg3b-primary-light);
}
.pg3b-step-num {
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pg3b-primary), var(--pg3b-primary-light));
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.pg3b-step-body h4 { color: var(--pg3b-primary-light); font-size: 1.3rem; margin-bottom: 0.2rem; }
.pg3b-step-body p { color: var(--pg3b-text); font-size: 1.22rem; line-height: 1.5; }

/* FAQ */
.pg3b-faq-item {
  background: var(--pg3b-bg-alt);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.6rem;
  border: 1px solid var(--pg3b-border);
}
.pg3b-faq-q { color: var(--pg3b-primary-light); font-size: 1.3rem; font-weight: 700; margin-bottom: 0.3rem; }
.pg3b-faq-a { color: var(--pg3b-text); font-size: 1.25rem; line-height: 1.55; }

/* Trust badges */
.pg3b-trust-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pg3b-trust-badge {
  flex: 1 1 45%;
  background: var(--pg3b-bg-alt);
  border: 1px solid var(--pg3b-border);
  border-radius: 8px;
  padding: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  color: var(--pg3b-text);
}
.pg3b-trust-badge .pg3b-icon { font-size: 1.8rem; color: var(--pg3b-accent); }

/* App download CTA */
.pg3b-app-cta {
  background: linear-gradient(135deg, var(--pg3b-primary) 0%, #7a1845 100%);
  border-radius: var(--pg3b-radius);
  padding: 1.2rem;
  text-align: center;
  color: #fff;
  margin: 1rem 0;
}
.pg3b-app-cta h3 { font-size: 1.6rem; margin-bottom: 0.4rem; color: #fff; }
.pg3b-app-cta p { font-size: 1.25rem; margin-bottom: 0.8rem; color: #fff; line-height: 1.5; }
.pg3b-app-btns { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.pg3b-app-btn {
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  min-height: 44px;
  display: inline-flex; align-items: center; gap: 0.3rem;
}

/* ============ Footer ============ */
.pg3b-footer {
  background: linear-gradient(180deg, #1A1A2E 0%, #0f0f1f 100%);
  padding: 2rem 1.2rem 1rem;
  margin-top: 2rem;
  border-top: 2px solid var(--pg3b-primary);
}
.pg3b-footer-brand { font-size: 1.25rem; color: var(--pg3b-text-soft); line-height: 1.6; margin-bottom: 1.2rem; }
.pg3b-footer-buttons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin-bottom: 1.2rem; }
.pg3b-footer-btn {
  background: linear-gradient(135deg, var(--pg3b-primary) 0%, var(--pg3b-primary-light) 100%);
  color: #fff;
  padding: 0.8rem 0.5rem;
  border-radius: 8px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  min-height: 44px;
}
.pg3b-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin-bottom: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--pg3b-border); }
.pg3b-footer-links a { color: var(--pg3b-text-soft); font-size: 1.15rem; }
.pg3b-footer-links a:hover { color: var(--pg3b-primary-light); }
.pg3b-copyright { text-align: center; font-size: 1.1rem; color: var(--pg3b-text-soft); padding-top: 1rem; border-top: 1px solid var(--pg3b-border); }

/* ============ Bottom nav ============ */
.pg3b-bottom-nav {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--pg3b-bottom-h);
  background: linear-gradient(180deg, #2a1a3a 0%, #1A1A2E 100%);
  border-top: 2px solid var(--pg3b-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.45);
}
.pg3b-bottom-nav-btn {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  color: var(--pg3b-text-soft);
  cursor: pointer;
  gap: 2px;
  transition: var(--pg3b-transition);
}
.pg3b-bottom-nav-btn:active { transform: scale(0.9); }
.pg3b-bottom-nav-btn .pg3b-nav-icon { font-size: 2.2rem; line-height: 1; }
.pg3b-bottom-nav-btn .pg3b-nav-label { font-size: 1rem; color: inherit; }
.pg3b-bottom-nav-btn.pg3b-nav-active,
.pg3b-bottom-nav-btn:hover { color: var(--pg3b-primary-light); }
/* Highlighted center promo button */
.pg3b-bottom-nav-btn.pg3b-nav-highlight {
  background: linear-gradient(135deg, var(--pg3b-primary) 0%, var(--pg3b-primary-light) 100%);
  color: #fff;
  border-radius: 50%;
  width: 52px; height: 52px;
  flex: 0 0 auto;
  margin-top: -20px;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.65);
  border: 3px solid #fff;
}
.pg3b-bottom-nav-btn.pg3b-nav-highlight .pg3b-nav-icon { font-size: 2.4rem; }

/* ============ Responsive ============ */
@media (min-width: 769px) { .pg3b-bottom-nav { display: none; } }
@media (max-width: 768px) { .pg3b-main { padding-bottom: 80px; } }
