/* ============================================================
   bingoplus app - core stylesheet (class prefix: pga4-)
   Palette: #6A5ACD primary | #F8F8FF light | #2D2D2D dark | #8A2BE2 accent
   Mobile-first. Root font-size 62.5% (1rem = 10px).
   ============================================================ */

:root {
  --pga4-primary: #6A5ACD;
  --pga4-light: #F8F8FF;
  --pga4-dark: #2D2D2D;
  --pga4-accent: #8A2BE2;
  --pga4-bg: #1a1730;
  --pga4-card-bg: #25203f;
  --pga4-text: #F8F8FF;
  --pga4-muted: #b9b3d6;
  --pga4-gold: #FFD36b;
  --pga4-radius: 14px;
  --pga4-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5rem;
  background: radial-gradient(circle at top, #2a234d 0%, var(--pga4-bg) 55%, #110f24 100%);
  color: var(--pga4-text);
  overflow-x: hidden;
}

p, li, span, small { line-height: 1.5; }
a { color: var(--pga4-primary); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.pga4-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }
.pga4-container { width: 100%; padding: 0 1.2rem; }
.pga4-section { padding: 2.4rem 0; }
.pga4-section-title {
  font-size: 1.85rem; font-weight: 800; margin-bottom: 1.2rem;
  color: var(--pga4-light);
  display: flex; align-items: center; gap: .8rem;
}
.pga4-section-title::before {
  content: ''; width: 5px; height: 2rem; border-radius: 4px;
  background: linear-gradient(180deg, var(--pga4-primary), var(--pga4-accent));
}
.pga4-subtitle { font-size: 1.6rem; color: var(--pga4-primary); font-weight: 700; margin: 1.2rem 0 .6rem; }
.pga4-text-muted { color: var(--pga4-muted); }
.pga4-hr { border: none; border-top: 1px solid rgba(138, 43, 226, .25); margin: 1.6rem 0; }

/* ---------- Header ---------- */
.pga4-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(90deg, #1d1838, #2a234d);
  border-bottom: 1px solid rgba(106, 90, 205, .35);
  box-shadow: var(--pga4-shadow);
}
.pga4-header-inner {
  max-width: 430px; margin: 0 auto; padding: .6rem 1rem;
  display: flex; align-items: center; gap: .8rem;
}
.pga4-logo { display: flex; align-items: center; gap: .6rem; flex: 1; min-width: 0; }
.pga4-logo img { width: 30px; height: 30px; border-radius: 8px; }
.pga4-logo-text { font-size: 1.5rem; font-weight: 800; color: var(--pga4-light); white-space: nowrap; }
.pga4-logo-text span { color: var(--pga4-primary); }

.pga4-header-btns { display: flex; align-items: center; gap: .5rem; }
.pga4-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 36px; padding: 0 1rem; border-radius: 999px;
  font-size: 1.25rem; font-weight: 700; border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.pga4-btn-login { background: transparent; color: var(--pga4-light); border: 1.5px solid var(--pga4-primary); }
.pga4-btn-register { background: linear-gradient(90deg, var(--pga4-primary), var(--pga4-accent)); color: #fff; box-shadow: 0 4px 12px rgba(138, 43, 226, .45); }
.pga4-btn:hover { transform: translateY(-1px); }

.pga4-menu-btn {
  background: transparent; border: none; color: var(--pga4-light); font-size: 1.6rem; cursor: pointer; padding: .4rem;
}

/* ---------- Nav menu (expandable) ---------- */
.pga4-nav-menu {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  background: #1d1838; border-top: 1px solid rgba(106, 90, 205, .2);
}
.pga4-nav-menu.pga4-menu-open { max-height: 520px; }
.pga4-nav-menu-inner { max-width: 430px; margin: 0 auto; padding: .6rem 1rem 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.pga4-nav-menu-inner a {
  display: block; padding: .8rem .9rem; border-radius: 10px;
  background: rgba(106, 90, 205, .12); color: var(--pga4-light); font-size: 1.3rem; font-weight: 600;
}
.pga4-nav-menu-inner a:hover { background: rgba(138, 43, 226, .3); }

/* ---------- Main ---------- */
.pga4-main { padding-top: 60px; }
@media (max-width: 768px) {
  .pga4-main { padding-bottom: 88px; }
}

/* ---------- Hero carousel ---------- */
.pga4-carousel {
  position: relative; width: 100%; height: 200px; border-radius: 16px; overflow: hidden; margin: 1rem 0;
  box-shadow: var(--pga4-shadow);
}
.pga4-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease;
  display: flex; align-items: flex-end;
}
.pga4-slide img { width: 100%; height: 100%; object-fit: cover; }
.pga4-slide.pga4-active { opacity: 1; }
.pga4-slide-overlay {
  position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,11,30,.85) 10%, rgba(13,11,30,.1) 70%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1rem 1.2rem; cursor: pointer;
}
.pga4-slide-overlay h2 { font-size: 1.7rem; color: var(--pga4-gold); margin-bottom: .3rem; }
.pga4-slide-overlay p { font-size: 1.25rem; color: var(--pga4-light); }
.pga4-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: .4rem; }
.pga4-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(248, 248, 255, .4); cursor: pointer; }
.pga4-dot.pga4-active { background: var(--pga4-primary); width: 16px; border-radius: 4px; }

/* ---------- Promo CTA banner ---------- */
.pga4-cta {
  background: linear-gradient(120deg, var(--pga4-primary), var(--pga4-accent));
  border-radius: var(--pga4-radius); padding: 1.4rem 1.2rem; margin: 1.2rem 0;
  display: flex; align-items: center; gap: 1rem; cursor: pointer;
}
.pga4-cta-text { flex: 1; color: #fff; }
.pga4-cta-text strong { display: block; font-size: 1.5rem; }
.pga4-cta-text span { font-size: 1.2rem; opacity: .9; }

/* ---------- Games grid ---------- */
.pga4-game-section { padding: 1.4rem 0; }
.pga4-game-section.pga4-dim { opacity: .35; }
.pga4-cat-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.pga4-cat-head h2 { font-size: 1.7rem; font-weight: 800; color: var(--pga4-light); }
.pga4-cat-head .pga4-cat-more { font-size: 1.2rem; color: var(--pga4-primary); font-weight: 700; }
.pga4-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.pga4-game-card { background: var(--pga4-card-bg); border-radius: 12px; overflow: hidden; text-align: center; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; border: 1px solid rgba(106, 90, 205, .2); }
.pga4-game-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(138, 43, 226, .35); }
.pga4-game-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.pga4-game-card-name { font-size: 1.1rem; padding: .4rem .3rem .5rem; color: var(--pga4-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Feature / info cards ---------- */
.pga4-card-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.pga4-card {
  background: var(--pga4-card-bg); border-radius: var(--pga4-radius); padding: 1.4rem;
  border: 1px solid rgba(106, 90, 205, .25); box-shadow: var(--pga4-shadow);
}
.pga4-card h3 { font-size: 1.6rem; color: var(--pga4-primary); margin-bottom: .6rem; }
.pga4-card p { font-size: 1.35rem; color: var(--pga4-muted); line-height: 1.5; }

/* ---------- Info / list rows ---------- */
.pga4-list { list-style: none; padding: 0; }
.pga4-list li { padding: .9rem 1rem; background: rgba(106, 90, 205, .1); margin-bottom: .6rem; border-radius: 10px; border-left: 3px solid var(--pga4-accent); font-size: 1.3rem; color: var(--pga4-light); }

/* ---------- Testimonials ---------- */
.pga4-testimonials { display: grid; grid-template-columns: 1fr; gap: .8rem; }
.pga4-testimonial { background: var(--pga4-card-bg); border-radius: 12px; padding: 1rem 1.1rem; border: 1px solid rgba(106, 90, 205, .25); }
.pga4-testimonial-stars { color: var(--pga4-gold); font-size: 1.2rem; margin-bottom: .3rem; }
.pga4-testimonial p { font-size: 1.3rem; color: var(--pga4-light); margin-bottom: .4rem; }
.pga4-testimonial cite { font-size: 1.15rem; color: var(--pga4-muted); font-style: normal; }

/* ---------- Payment / winners ---------- */
.pga4-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.pga4-chip { background: rgba(106, 90, 205, .15); border: 1px solid rgba(106, 90, 205, .35); border-radius: 999px; padding: .5rem 1rem; font-size: 1.2rem; color: var(--pga4-light); }

.pga4-winners { display: grid; grid-template-columns: 1fr; gap: .6rem; }
.pga4-winner { display: flex; align-items: center; justify-content: space-between; background: var(--pga4-card-bg); border-radius: 10px; padding: .8rem 1rem; }
.pga4-winner .pga4-w-name { font-size: 1.3rem; color: var(--pga4-light); font-weight: 600; }
.pga4-winner .pga4-w-amount { color: var(--pga4-gold); font-weight: 800; font-size: 1.35rem; }

/* ---------- Content text ---------- */
.pga4-content p { margin-bottom: 1rem; font-size: 1.35rem; color: var(--pga4-light); line-height: 1.55; }
.pga4-content a { color: var(--pga4-primary); font-weight: 600; }
.pga4-content a:hover { color: var(--pga4-accent); text-decoration: underline; }
.pga4-content h2 { font-size: 1.8rem; color: var(--pga4-light); margin: 1.6rem 0 .8rem; }
.pga4-content h3 { font-size: 1.55rem; color: var(--pga4-primary); margin: 1.2rem 0 .5rem; }

/* ---------- Inline promo text link ---------- */
.pga4-promo-link { color: var(--pga4-gold); font-weight: 700; cursor: pointer; text-decoration: underline; }

/* ---------- Footer ---------- */
.pga4-footer { background: #110f24; padding: 2.4rem 0 1.4rem; border-top: 1px solid rgba(106, 90, 205, .25); }
.pga4-footer-inner { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.pga4-footer-brand { font-size: 1.35rem; color: var(--pga4-muted); margin-bottom: 1rem; line-height: 1.5; }
.pga4-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1.4rem; }
.pga4-footer-links a { font-size: 1.25rem; color: var(--pga4-light); padding: .4rem 0; }
.pga4-footer-links a:hover { color: var(--pga4-primary); }
.pga4-footer-btns { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.pga4-footer-btn {
  flex: 1 1 auto; min-width: 120px; text-align: center;
  background: linear-gradient(90deg, var(--pga4-primary), var(--pga4-accent));
  color: #fff; padding: .8rem 1rem; border-radius: 999px; font-size: 1.25rem; font-weight: 700;
}
.pga4-footer-copy { font-size: 1.15rem; color: var(--pga4-muted); text-align: center; margin-top: 1rem; }

/* ---------- Bottom navigation (mobile) ---------- */
.pga4-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  max-width: 430px; margin: 0 auto; height: 62px;
  background: linear-gradient(180deg, #1d1838, #110f24);
  border-top: 1px solid rgba(106, 90, 205, .35);
  display: flex; justify-content: space-around; align-items: center;
}
.pga4-bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px; color: var(--pga4-muted);
  font-size: 1.1rem; gap: .2rem; transition: color .15s ease, transform .15s ease;
}
.pga4-bottom-nav a .material-icons,
.pga4-bottom-nav a i { font-size: 24px; }
.pga4-bottom-nav a.pga4-current,
.pga4-bottom-nav a:active { color: var(--pga4-primary); transform: scale(1.05); }
.pga4-bottom-nav a.pga4-current { color: var(--pga4-gold); }
.pga4-bottom-nav .pga4-badge {
  position: absolute; top: 6px; right: 22%; background: #ff3b6b; color: #fff;
  font-size: 1rem; padding: 1px 5px; border-radius: 999px;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .pga4-bottom-nav { display: none; }
  .pga4-main { padding-bottom: 0 !important; }
}

/* Hide desktop nav on mobile */
.pga4-desktop-nav { display: none; }
@media (min-width: 769px) {
  .pga4-desktop-nav { display: flex; gap: 1rem; }
  .pga4-desktop-nav a { color: var(--pga4-light); font-size: 1.3rem; font-weight: 600; }
  .pga4-wrapper { max-width: 100%; }
  .pga4-header-inner, .pga4-nav-menu-inner, .pga4-footer-inner { max-width: 100%; }
  .pga4-grid { grid-template-columns: repeat(6, 1fr); }
  .pga4-card-grid { grid-template-columns: repeat(3, 1fr); }
  .pga4-testimonials { grid-template-columns: repeat(2, 1fr); }
}

/* Back-to-top floating button */
.pga4-top-btn {
  position: fixed; right: 14px; bottom: 78px; z-index: 900;
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pga4-primary), var(--pga4-accent));
  color: #fff; border: none; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: var(--pga4-shadow); cursor: pointer;
}
@media (min-width: 769px) { .pga4-top-btn { bottom: 20px; } }
