/* ============================================================
 * 28bet facebook - Core stylesheet
 * All custom classes use the pg01- prefix.
 * Palette: #FFB347 | #8470FF | #F8F8FF | #495057 | #0E1621 | #8A2BE2
 * Mobile-first; max content width 430px.
 * ============================================================ */

:root {
  --pg01-primary: #8470FF;
  --pg01-accent: #FFB347;
  --pg01-purple: #8A2BE2;
  --pg01-bg: #0E1621;
  --pg01-bg-2: #141d2e;
  --pg01-bg-3: #1b2638;
  --pg01-text: #F8F8FF;
  --pg01-muted: #aeb6c6;
  --pg01-grey: #495057;
  --pg01-success: #2ecc71;
  --pg01-danger: #ff4d6d;
  --pg01-radius: 14px;
  --pg01-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  --pg01-header-h: 60px;
  --pg01-bottom-h: 62px;
  --pg01-gradient: linear-gradient(135deg, #8470FF 0%, #8A2BE2 55%, #FFB347 130%);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", system-ui, sans-serif;
  background: var(--pg01-bg);
  color: var(--pg01-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--pg01-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.5; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }

.pg01-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}

/* ===================== Header ===================== */

.pg01-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(14, 22, 33, 0.98), rgba(14, 22, 33, 0.92));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(132, 112, 255, 0.25);
}

.pg01-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--pg01-header-h);
  padding: 0 12px;
}

.pg01-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pg01-text);
  font-weight: 700;
  font-size: 1.6rem;
}

.pg01-brand img { width: 30px; height: 30px; border-radius: 8px; }
.pg01-brand .pg01-brand-dot { color: var(--pg01-accent); }

.pg01-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pg01-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 30px;
  padding: 9px 16px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  color: #fff;
  background: var(--pg01-gradient);
  box-shadow: 0 4px 14px rgba(132, 112, 255, 0.35);
}
.pg01-btn:hover { transform: translateY(-1px); text-decoration: none; }

.pg01-btn-login {
  background: transparent;
  border: 1.5px solid var(--pg01-primary);
  color: var(--pg01-text);
  box-shadow: none;
}

.pg01-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--pg01-text);
  box-shadow: none;
}

.pg01-menu-toggle {
  background: transparent;
  border: 0;
  color: var(--pg01-text);
  font-size: 2.2rem;
  padding: 4px 8px;
  cursor: pointer;
}

/* ===================== Mobile slide menu ===================== */

.pg01-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
  z-index: 9998;
}
.pg01-overlay-show { opacity: 1; visibility: visible; }

.pg01-mobile-menu {
  position: fixed;
  top: 0; right: -78%;
  width: 78%;
  max-width: 320px;
  height: 100%;
  background: var(--pg01-bg-2);
  padding: 22px 18px;
  transition: right .28s ease;
  z-index: 9999;
  overflow-y: auto;
}
.pg01-menu-open { right: 0; }

.pg01-mobile-menu h3 {
  color: var(--pg01-accent);
  font-size: 1.5rem;
  margin: 18px 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
}

.pg01-mobile-menu a {
  display: block;
  color: var(--pg01-text);
  padding: 11px 10px;
  border-radius: 10px;
  font-size: 1.4rem;
}
.pg01-mobile-menu a:hover { background: rgba(132, 112, 255, 0.15); text-decoration: none; }

.pg01-menu-cta {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.pg01-menu-cta .pg01-btn { flex: 1; justify-content: center; }

/* ===================== Main / sections ===================== */

main { padding-bottom: calc(var(--pg01-bottom-h) + 24px); }

.pg01-section { padding: 26px 0; }

.pg01-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 1.8rem;
  color: var(--pg01-text);
}
.pg01-section-title::before {
  content: "";
  width: 5px; height: 22px;
  border-radius: 4px;
  background: var(--pg01-gradient);
}
.pg01-section-title .pg01-tag {
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--pg01-accent);
  font-weight: 600;
}

.pg01-muted { color: var(--pg01-muted); }
.pg01-text-accent { color: var(--pg01-accent); }
.pg01-text-purple { color: var(--pg01-primary); }

/* ===================== Hero carousel ===================== */

.pg01-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin: 16px 0 4px;
  box-shadow: var(--pg01-shadow);
}
.pg01-slide {
  position: relative;
  display: none;
  height: 200px;
}
.pg01-slide img { width: 100%; height: 100%; object-fit: cover; }
.pg01-slide-active { display: block; }
.pg01-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px;
  background: linear-gradient(0deg, rgba(14, 22, 33, 0.92), rgba(14, 22, 33, 0));
}
.pg01-slide-caption h2 { font-size: 1.7rem; margin-bottom: 4px; color: #fff; }
.pg01-slide-caption p { margin: 0; color: var(--pg01-muted); font-size: 1.25rem; }

.pg01-hero-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}
.pg01-hero-arrow {
  pointer-events: auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 0;
  font-size: 1.4rem;
  cursor: pointer;
  margin: 0 8px;
}

.pg01-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0 4px;
}
.pg01-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
}
.pg01-dot-active { background: var(--pg01-accent); width: 22px; border-radius: 6px; }

/* ===================== Quick category chips ===================== */

.pg01-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 6px 0 4px;
}
.pg01-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  background: var(--pg01-bg-2);
  border-radius: 12px;
  color: var(--pg01-text);
  font-size: 1.15rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.pg01-chip i { font-size: 2rem; color: var(--pg01-accent); }
.pg01-chip:hover { text-decoration: none; background: var(--pg01-bg-3); }

/* ===================== Game grid ===================== */

.pg01-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pg01-game-card {
  background: var(--pg01-bg-2);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.pg01-game-card:hover { transform: translateY(-2px); box-shadow: var(--pg01-shadow); }
.pg01-game-card .pg01-game-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #050a12;
}
.pg01-game-name {
  font-size: 1.15rem;
  color: var(--pg01-text);
  padding: 7px 8px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.pg01-game-badge {
  position: absolute;
  top: 6px; left: 6px;
  background: var(--pg01-gradient);
  color: #fff;
  font-size: 1rem;
  padding: 2px 7px;
  border-radius: 8px;
  font-weight: 700;
}
.pg01-game-hot {
  position: absolute;
  top: 6px; right: 6px;
  color: var(--pg01-danger);
  font-size: 1.3rem;
}

/* ===================== Promo CTA banners ===================== */

.pg01-cta-banner {
  background: var(--pg01-gradient);
  border-radius: 16px;
  padding: 18px 18px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--pg01-shadow);
  margin: 6px 0;
}
.pg01-cta-banner h3 { margin: 0 0 4px; font-size: 1.7rem; color: #fff; }
.pg01-cta-banner p { margin: 0; font-size: 1.25rem; opacity: .92; }
.pg01-cta-banner .pg01-btn {
  background: #fff;
  color: var(--pg01-purple);
  box-shadow: none;
  white-space: nowrap;
}

.pg01-promo-link {
  color: var(--pg01-accent);
  font-weight: 700;
  cursor: pointer;
}
.pg01-promo-link:hover { text-decoration: underline; }

/* ===================== Info / feature cards ===================== */

.pg01-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.pg01-card {
  background: var(--pg01-bg-2);
  border-radius: var(--pg01-radius);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.pg01-card h3 { color: var(--pg01-accent); font-size: 1.5rem; margin-bottom: 8px; }
.pg01-card p { margin: 0; color: var(--pg01-muted); font-size: 1.3rem; }

.pg01-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.pg01-feature {
  background: var(--pg01-bg-2);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.pg01-feature i { font-size: 2.4rem; color: var(--pg01-primary); margin-bottom: 6px; }
.pg01-feature h4 { margin: 4px 0 4px; font-size: 1.35rem; color: #fff; }
.pg01-feature p { margin: 0; font-size: 1.2rem; color: var(--pg01-muted); }

/* ===================== RTP table ===================== */

.pg01-rtp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--pg01-bg-2);
  border-radius: 12px;
  overflow: hidden;
  font-size: 1.25rem;
}
.pg01-rtp-table th, .pg01-rtp-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.pg01-rtp-table th { background: rgba(132, 112, 255, 0.18); color: var(--pg01-accent); }
.pg01-rtp-table td.pg01-rtp-high { color: var(--pg01-success); font-weight: 700; }

/* ===================== Testimonials ===================== */

.pg01-testimonial {
  background: var(--pg01-bg-2);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  border-left: 4px solid var(--pg01-accent);
}
.pg01-testimonial .pg01-stars { color: var(--pg01-accent); margin-bottom: 6px; font-size: 1.2rem; }
.pg01-testimonial p { margin: 0 0 8px; color: var(--pg01-text); font-size: 1.3rem; }
.pg01-testimonial .pg01-author { font-size: 1.2rem; color: var(--pg01-muted); }

/* ===================== Payment methods ===================== */

.pg01-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.pg01-pay {
  background: var(--pg01-bg-2);
  border-radius: 10px;
  padding: 10px 4px;
  text-align: center;
  font-size: 1.05rem;
  color: var(--pg01-muted);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.pg01-pay i { display: block; font-size: 1.8rem; color: var(--pg01-accent); margin-bottom: 4px; }

/* ===================== Winners ===================== */

.pg01-winner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--pg01-bg-2);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 1.25rem;
}
.pg01-winner .pg01-amount { color: var(--pg01-success); font-weight: 700; }
.pg01-winner .pg01-game { color: var(--pg01-muted); font-size: 1.15rem; }

/* ===================== FAQ ===================== */

.pg01-faq-item {
  background: var(--pg01-bg-2);
  border-radius: 10px;
  margin-bottom: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.pg01-faq-item h4 { margin: 0 0 6px; color: var(--pg01-accent); font-size: 1.35rem; }
.pg01-faq-item p { margin: 0; color: var(--pg01-muted); font-size: 1.25rem; }

/* ===================== Footer ===================== */

.pg01-footer {
  background: var(--pg01-bg-2);
  border-top: 1px solid rgba(132, 112, 255, 0.2);
  padding: 26px 0 20px;
  margin-top: 10px;
}
.pg01-footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
.pg01-footer h4 { color: var(--pg01-accent); font-size: 1.35rem; margin-bottom: 8px; }
.pg01-footer a { display: block; color: var(--pg01-muted); padding: 4px 0; font-size: 1.2rem; }
.pg01-footer .pg01-foot-brand { font-size: 1.4rem; color: #fff; margin-bottom: 8px; font-weight: 700; }
.pg01-footer p { color: var(--pg01-muted); font-size: 1.2rem; }
.pg01-footer-bottom {
  text-align: center;
  font-size: 1.15rem;
  color: var(--pg01-grey);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
}

/* ===================== Bottom nav ===================== */

.pg01-bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--pg01-bottom-h);
  background: rgba(14, 22, 33, 0.98);
  border-top: 1px solid rgba(132, 112, 255, 0.3);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.pg01-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  color: var(--pg01-muted);
  font-size: 1.05rem;
  gap: 3px;
  transition: color .15s ease, transform .15s ease;
}
.pg01-bottom-nav a i { font-size: 2.2rem; }
.pg01-bottom-nav a:active { transform: scale(0.92); }
.pg01-bottom-nav a.pg01-nav-current,
.pg01-bottom-nav a:hover { color: var(--pg01-accent); text-decoration: none; }
.pg01-bottom-nav .pg01-nav-promo {
  position: relative;
  top: -14px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--pg01-gradient);
  color: #fff;
  box-shadow: 0 6px 16px rgba(138, 43, 226, 0.5);
}
.pg01-bottom-nav .pg01-nav-promo i { font-size: 2.4rem; }

/* ===================== Back to top ===================== */

.pg01-to-top {
  position: fixed;
  right: 14px; bottom: calc(var(--pg01-bottom-h) + 14px);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--pg01-primary);
  color: #fff;
  border: 0;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 900;
}
.pg01-to-top-show { opacity: 1; visibility: visible; }

/* ===================== Reveal animation ===================== */

.pg01-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.pg01-revealed { opacity: 1; transform: none; }

/* ===================== Desktop ===================== */

@media (min-width: 769px) {
  body { background: #0a0f17; }
  .pg01-container { max-width: 960px; }
  .pg01-header-inner { max-width: 960px; margin: 0 auto; }
  .pg01-game-grid { grid-template-columns: repeat(6, 1fr); }
  .pg01-chips { grid-template-columns: repeat(5, 1fr); }
  .pg01-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .pg01-pay-grid { grid-template-columns: repeat(8, 1fr); }
  .pg01-footer-cols { grid-template-columns: repeat(4, 1fr); }
  .pg01-bottom-nav { display: none; }
  main { padding-bottom: 30px; }
  .pg01-slide { height: 340px; }
}
