/* ==========================================================================
   fun88 bet - design-b374.css
   Mobile-first gaming site styles. All classes use the "pgb3-" prefix.
   Color palette:
     --pgb3-primary  #FF5722 (orange)
     --pgb3-accent   #8B008B (magenta)
     --pgb3-pink     #FFB3FF
     --pgb3-soft     #FFFFBA (highlight)
     --pgb3-bg       #1A1A2E (dark navy background)
   ========================================================================== */

:root {
  --pgb3-primary: #FF5722;
  --pgb3-accent: #8B008B;
  --pgb3-pink: #FFB3FF;
  --pgb3-soft: #FFFFBA;
  --pgb3-bg: #1A1A2E;
  --pgb3-bg2: #20213b;
  --pgb3-card: #262846;
  --pgb3-text: #FFFFBA;
  --pgb3-text-dim: #FFB3FF;
  --pgb3-border: rgba(255, 179, 255, 0.18);
  --pgb3-radius: 14px;
  --pgb3-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Be Vietnam Pro", sans-serif;
  background: linear-gradient(160deg, var(--pgb3-bg) 0%, #15162b 60%, #2a0a2e 100%);
  color: var(--pgb3-text);
  line-height: 1.5;
  font-size: 1.5rem;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { color: #fff; margin: 0 0 0.6em; line-height: 1.3; font-weight: 700; }
h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1em; }

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

/* ---------- Header ---------- */
.pgb3-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--pgb3-bg) 0%, #2a0a3a 100%);
  border-bottom: 2px solid var(--pgb3-primary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.pgb3-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 1rem;
  max-width: 430px;
  margin: 0 auto;
}
.pgb3-brand { display: flex; align-items: center; gap: 0.7rem; color: #fff; }
.pgb3-brand .pgb3-logo {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--pgb3-primary), var(--pgb3-accent));
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 1.4rem;
}
.pgb3-brand-name { font-size: 1.6rem; font-weight: 800; color: var(--pgb3-soft); letter-spacing: 0.4px; }
.pgb3-brand-name span { color: var(--pgb3-primary); }

.pgb3-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.pgb3-menu-btn {
  background: transparent; border: none; color: #fff;
  font-size: 2.2rem; cursor: pointer; padding: 0.3rem 0.6rem;
  min-width: 44px; min-height: 44px;
  border-radius: 8px;
}
.pgb3-menu-btn:hover { background: rgba(255, 87, 34, 0.18); }

/* ---------- Buttons ---------- */
.pgb3-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  font-size: 1.4rem; font-weight: 700;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: none; cursor: pointer;
  min-height: 40px;
  text-transform: uppercase; letter-spacing: 0.4px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.pgb3-btn:hover { transform: translateY(-1px); }
.pgb3-btn-register {
  background: linear-gradient(135deg, var(--pgb3-primary), #ff8a3d);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.45);
}
.pgb3-btn-login {
  background: transparent;
  color: var(--pgb3-soft);
  border: 2px solid var(--pgb3-primary);
}
.pgb3-btn-login:hover { background: rgba(255, 87, 34, 0.12); }
.pgb3-btn-block { width: 100%; padding: 1rem; font-size: 1.6rem; }

/* ---------- Mobile Menu Drawer ---------- */
.pgb3-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s ease;
}
.pgb3-overlay-show { opacity: 1; visibility: visible; }

.pgb3-mobile-menu {
  position: fixed;
  top: 0; right: -85%;
  width: 80%; max-width: 320px;
  height: 100vh;
  background: linear-gradient(160deg, #1f1130 0%, #2c0a2e 100%);
  z-index: 9999;
  padding: 2.2rem 1.4rem;
  overflow-y: auto;
  transition: right 0.25s ease;
  border-left: 2px solid var(--pgb3-primary);
}
.pgb3-menu-open { right: 0; }
.pgb3-mobile-menu h3 { color: var(--pgb3-soft); font-size: 1.5rem; margin-top: 1.6rem; }
.pgb3-mobile-menu a {
  display: block;
  color: var(--pgb3-text-dim);
  padding: 0.85rem 0.4rem;
  border-bottom: 1px solid var(--pgb3-border);
  font-size: 1.4rem;
}
.pgb3-mobile-menu a:hover { color: var(--pgb3-soft); background: rgba(255, 87, 34, 0.1); }
.pgb3-close-btn {
  background: transparent; border: none; color: #fff;
  font-size: 2.4rem; position: absolute; top: 0.8rem; right: 1rem;
  cursor: pointer; min-width: 44px; min-height: 44px;
}

/* ---------- Main ---------- */
.pgb3-main { padding-top: 70px; padding-bottom: 90px; }

/* ---------- Hero Carousel ---------- */
.pgb3-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--pgb3-radius);
  margin: 1rem 0;
  box-shadow: var(--pgb3-shadow);
}
.pgb3-hero-track {
  display: flex;
  transition: transform 0.45s ease;
}
.pgb3-hero-slide {
  flex: 0 0 100%;
  position: relative;
  cursor: pointer;
}
.pgb3-hero-slide img { width: 100%; height: 200px; object-fit: cover; }
.pgb3-hero-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(0deg, rgba(26, 26, 46, 0.92) 30%, transparent);
  color: #fff;
}
.pgb3-hero-caption strong { color: var(--pgb3-soft); font-size: 1.5rem; display: block; }
.pgb3-hero-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.pgb3-hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.4); border: none; cursor: pointer;
}

/* ---------- Section ---------- */
.pgb3-section {
  margin: 1.6rem 0;
  padding: 1.4rem;
  background: rgba(38, 40, 70, 0.55);
  border: 1px solid var(--pgb3-border);
  border-radius: var(--pgb3-radius);
}
.pgb3-section-title {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--pgb3-soft);
  font-size: 1.9rem;
  border-left: 4px solid var(--pgb3-primary);
  padding-left: 0.8rem;
  margin-bottom: 1rem;
}

/* ---------- Game grid ---------- */
.pgb3-filter-bar {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.pgb3-filter-btn {
  background: transparent; color: var(--pgb3-text-dim);
  border: 1px solid var(--pgb3-border);
  padding: 0.5rem 0.9rem; border-radius: 999px;
  font-size: 1.3rem; cursor: pointer; min-height: 36px;
}
.pgb3-filter-active {
  background: var(--pgb3-primary); color: #fff; border-color: var(--pgb3-primary);
}
.pgb3-game-group-title {
  color: var(--pgb3-pink); font-size: 1.7rem; margin: 1.2rem 0 0.8rem;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.pgb3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.pgb3-card {
  background: var(--pgb3-card);
  border: 1px solid var(--pgb3-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}
.pgb3-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(255, 87, 34, 0.35); }
.pgb3-card img { width: 100%; height: 92px; object-fit: cover; }
.pgb3-card-name {
  padding: 0.4rem 0.5rem;
  font-size: 1.1rem; color: var(--pgb3-text);
  text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pgb3-card-tag {
  position: absolute; top: 4px; left: 4px;
  background: var(--pgb3-primary); color: #fff;
  font-size: 1rem; padding: 1px 6px;
  border-radius: 6px; font-weight: 700;
}

/* ---------- Feature / Steps ---------- */
.pgb3-feature-list { list-style: none; padding: 0; margin: 0; }
.pgb3-feature-list li {
  display: flex; gap: 0.8rem; align-items: flex-start;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--pgb3-border);
}
.pgb3-feature-list li:last-child { border-bottom: none; }
.pgb3-feature-icon {
  flex: 0 0 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pgb3-primary), var(--pgb3-accent));
  display: grid; place-items: center; color: #fff; font-size: 1.6rem;
}

.pgb3-steps { counter-reset: step; padding: 0; list-style: none; }
.pgb3-steps li {
  position: relative;
  padding: 0.6rem 0 0.6rem 3rem;
  counter-increment: step;
  border-bottom: 1px solid var(--pgb3-border);
}
.pgb3-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0.6rem;
  width: 2.2rem; height: 2.2rem;
  background: var(--pgb3-primary); color: #fff;
  border-radius: 50%;
  display: grid; place-items: center; font-weight: 800;
}

/* ---------- Testimonials ---------- */
.pgb3-testimonial {
  background: var(--pgb3-card);
  border-left: 3px solid var(--pgb3-pink);
  padding: 0.9rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.8rem;
}
.pgb3-testimonial strong { color: var(--pgb3-soft); }

/* ---------- Payment ---------- */
.pgb3-pay-row {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.pgb3-pay-chip {
  background: #fff; color: var(--pgb3-bg);
  border-radius: 6px; padding: 0.4rem 0.8rem;
  font-size: 1.2rem; font-weight: 700;
}

/* ---------- Winners ---------- */
.pgb3-winner-row {
  display: flex; justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--pgb3-border);
  font-size: 1.3rem;
}
.pgb3-winner-amount { color: var(--pgb3-primary); font-weight: 800; }

/* ---------- FAQ ---------- */
.pgb3-faq-item {
  background: var(--pgb3-card);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.6rem;
  border: 1px solid var(--pgb3-border);
}
.pgb3-faq-item h4 { color: var(--pgb3-soft); font-size: 1.4rem; margin-bottom: 0.3rem; }
.pgb3-faq-item p { margin: 0; color: var(--pgb3-text-dim); font-size: 1.3rem; }

/* ---------- CTA banner ---------- */
.pgb3-cta {
  background: linear-gradient(135deg, var(--pgb3-accent), var(--pgb3-primary));
  border-radius: var(--pgb3-radius);
  padding: 1.2rem;
  text-align: center;
  margin: 1.4rem 0;
  box-shadow: var(--pgb3-shadow);
}
.pgb3-cta h3 { color: #fff; margin-bottom: 0.4rem; }
.pgb3-cta p { color: var(--pgb3-soft); margin-bottom: 0.8rem; }

/* ---------- Footer ---------- */
.pgb3-footer {
  background: linear-gradient(0deg, #0f0f1f 0%, var(--pgb3-bg) 100%);
  border-top: 2px solid var(--pgb3-primary);
  padding: 1.6rem 1rem 2rem;
  margin-top: 1.6rem;
}
.pgb3-footer h4 { color: var(--pgb3-soft); font-size: 1.5rem; margin-bottom: 0.6rem; }
.pgb3-footer p { color: var(--pgb3-text-dim); font-size: 1.3rem; }
.pgb3-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
  margin: 0.6rem 0;
}
.pgb3-footer-links a {
  color: var(--pgb3-text-dim); font-size: 1.25rem;
  text-decoration: underline;
}
.pgb3-footer-links a:hover { color: var(--pgb3-primary); }
.pgb3-promo-row {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 0.8rem 0;
}
.pgb3-promo-btn {
  background: var(--pgb3-primary); color: #fff;
  border: none; cursor: pointer;
  padding: 0.5rem 0.9rem; border-radius: 999px;
  font-size: 1.2rem; font-weight: 700;
}
.pgb3-copyright {
  text-align: center; font-size: 1.2rem;
  color: var(--pgb3-text-dim); margin-top: 1rem;
}

/* ---------- Bottom Navigation ---------- */
.pgb3-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(0deg, #0f0f1f 0%, var(--pgb3-bg) 100%);
  border-top: 2px solid var(--pgb3-primary);
  display: flex; justify-content: space-around; align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.45);
}
.pgb3-bottom-nav-btn {
  flex: 1;
  background: transparent; border: none;
  color: var(--pgb3-text-dim);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  cursor: pointer;
  min-width: 60px; min-height: 60px;
  font-size: 1rem;
  padding: 4px 2px;
  transition: color 0.15s ease, transform 0.15s ease;
}
.pgb3-bottom-nav-btn .material-icons,
.pgb3-bottom-nav-btn ion-icon,
.pgb3-bottom-nav-btn i { font-size: 24px; }
.pgb3-bottom-nav-btn:hover { color: var(--pgb3-soft); transform: translateY(-2px); }
.pgb3-nav-current { color: var(--pgb3-primary); }
.pgb3-nav-current::after {
  content: ""; display: block; width: 22px; height: 3px;
  background: var(--pgb3-primary); border-radius: 2px; margin-top: 2px;
}

/* ---------- Back to top ---------- */
.pgb3-top-btn {
  position: fixed; right: 14px; bottom: 76px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--pgb3-primary); color: #fff;
  border: none; cursor: pointer;
  font-size: 2rem; line-height: 1;
  z-index: 999;
  box-shadow: var(--pgb3-shadow);
  display: grid; place-items: center;
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  body { background: linear-gradient(160deg, #15162b 0%, #1A1A2E 60%, #2a0a2e 100%); }
  .pgb3-container { max-width: 960px; }
  .pgb3-header-inner { max-width: 960px; }
  .pgb3-grid { grid-template-columns: repeat(6, 1fr); }
  .pgb3-bottom-nav { display: none; }
  .pgb3-main { padding-bottom: 30px; }
  .pgb3-hero-slide img { height: 340px; }
}

/* ---------- Small screens tweaks ---------- */
@media (max-width: 360px) {
  .pgb3-grid { grid-template-columns: repeat(2, 1fr); }
  .pgb3-brand-name { font-size: 1.4rem; }
}
