/* =========================================================
 * sz777 app login - layout stylesheet (layout-cfad)
 * All custom classes use the "pgcf-" prefix.
 * Mobile-first: base styles target <=430px, media queries
 * progressively enhance for tablet/desktop.
 * Comments in English only.
 * =======================================================*/

:root {
  --pgcf-bg: #212F3D;
  --pgcf-bg-soft: #2a3a4d;
  --pgcf-bg-card: #32465c;
  --pgcf-text: #E0E0E0;
  --pgcf-text-muted: #b6c2cf;
  --pgcf-primary: #CC99FF;
  --pgcf-primary-dark: #a06bd6;
  --pgcf-accent: #FA8072;
  --pgcf-danger: #CD5C5C;
  --pgcf-light: #FF8A80;
  --pgcf-gold: #ffd479;
  --pgcf-radius: 14px;
  --pgcf-radius-sm: 9px;
  --pgcf-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
  --pgcf-shadow-strong: 0 12px 36px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--pgcf-bg);
  color: var(--pgcf-text);
  line-height: 1.55;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--pgcf-primary); text-decoration: none; }
a:hover { color: var(--pgcf-accent); text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout primitives ---------- */
.pgcf-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 14px; }
.pgcf-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* ---------- Header ---------- */
.pgcf-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #212F3D 0%, #2c3e50 100%);
  border-bottom: 2px solid var(--pgcf-primary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.pgcf-header-inner {
  max-width: 430px; margin: 0 auto;
  padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.pgcf-brand { display: flex; align-items: center; gap: 8px; color: var(--pgcf-text); }
.pgcf-brand img { width: 30px; height: 30px; border-radius: 6px; }
.pgcf-brand strong { font-size: 1.5rem; color: var(--pgcf-primary); font-weight: 700; letter-spacing: 0.3px; }
.pgcf-header-actions { display: flex; align-items: center; gap: 8px; }
.pgcf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: 999px;
  padding: 9px 18px; font-size: 1.3rem; font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-decoration: none;
}
.pgcf-btn:hover { transform: translateY(-1px); text-decoration: none; }
.pgcf-btn-register {
  background: linear-gradient(135deg, var(--pgcf-accent) 0%, var(--pgcf-danger) 100%);
  color: #fff; box-shadow: 0 4px 14px rgba(250, 128, 114, 0.5);
}
.pgcf-btn-login {
  background: linear-gradient(135deg, var(--pgcf-primary) 0%, var(--pgcf-primary-dark) 100%);
  color: #fff; box-shadow: 0 4px 14px rgba(204, 153, 255, 0.45);
}
.pgcf-menu-toggle {
  background: transparent; border: none; color: var(--pgcf-text);
  font-size: 2.2rem; padding: 4px 8px; display: inline-flex; align-items: center;
}

/* ---------- Mobile slide menu ---------- */
.pgcf-mobilemenu {
  position: fixed; top: 0; right: -80%;
  width: 80%; max-width: 320px; height: 100vh;
  background: var(--pgcf-bg-soft); z-index: 9999;
  padding: 70px 18px 30px; overflow-y: auto;
  transition: right 0.28s ease; box-shadow: var(--pgcf-shadow-strong);
}
.pgcf-mobilemenu.pgcf-is-open { right: 0; }
.pgcf-mobilemenu a {
  display: block; color: var(--pgcf-text);
  padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 1.45rem;
}
.pgcf-mobilemenu a:hover { background: rgba(204,153,255,0.12); color: var(--pgcf-primary); text-decoration: none; }
.pgcf-mobilemenu-close {
  position: absolute; top: 14px; right: 14px;
  background: transparent; border: none; color: var(--pgcf-text);
  font-size: 2.4rem; line-height: 1;
}
.pgcf-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55); z-index: 9998;
  visibility: hidden; opacity: 0; transition: opacity 0.25s ease;
}
.pgcf-overlay.pgcf-is-visible { visibility: visible; opacity: 1; }

/* ---------- Hero / carousel ---------- */
.pgcf-main { padding-top: 60px; }
.pgcf-hero { margin: 8px 0 16px; }
.pgcf-hero-carousel {
  position: relative; border-radius: var(--pgcf-radius);
  overflow: hidden; box-shadow: var(--pgcf-shadow);
}
.pgcf-slide {
  position: relative; display: none; cursor: pointer;
}
.pgcf-slide.pgcf-is-active { display: block; }
.pgcf-slide img { width: 100%; height: 200px; object-fit: cover; }
.pgcf-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 14px 14px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  color: #fff; font-size: 1.5rem; font-weight: 700;
}
.pgcf-carousel-controls {
  position: absolute; top: 50%; width: 100%;
  display: flex; justify-content: space-between; transform: translateY(-50%);
  pointer-events: none;
}
.pgcf-carousel-controls button {
  pointer-events: auto;
  background: rgba(33,47,61,0.7); color: #fff;
  border: none; width: 34px; height: 34px; border-radius: 50%;
  font-size: 1.6rem; display: flex; align-items: center; justify-content: center;
}
.pgcf-carousel-dots {
  display: flex; justify-content: center; gap: 6px;
  padding: 8px 0;
}
.pgcf-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.3); border: none;
}
.pgcf-dot.pgcf-is-active { background: var(--pgcf-primary); width: 22px; border-radius: 4px; }

/* ---------- Sections ---------- */
.pgcf-section { margin: 24px 0; padding: 0; }
.pgcf-section-title {
  font-size: 1.85rem; font-weight: 800; margin: 0 0 12px;
  color: var(--pgcf-text);
  display: flex; align-items: center; gap: 8px;
  border-left: 4px solid var(--pgcf-primary);
  padding-left: 10px;
}
.pgcf-section-title i, .pgcf-section-title span.mi { color: var(--pgcf-accent); font-size: 2rem; }
.pgcf-section-subtitle {
  font-size: 1.4rem; color: var(--pgcf-text-muted); margin: -6px 0 12px;
}

/* ---------- Category pills ---------- */
.pgcf-pills { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 12px; }
.pgcf-pill {
  flex: 0 0 auto;
  padding: 7px 14px; border-radius: 999px;
  background: var(--pgcf-bg-card); color: var(--pgcf-text);
  font-size: 1.25rem; border: 1px solid rgba(204,153,255,0.2);
  white-space: nowrap;
}
.pgcf-pill.pgcf-is-active {
  background: linear-gradient(135deg, var(--pgcf-primary), var(--pgcf-accent));
  color: #fff; border-color: transparent;
}

/* ---------- Game grid ---------- */
.pgcf-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pgcf-game-card {
  background: var(--pgcf-bg-card); border-radius: var(--pgcf-radius-sm);
  overflow: hidden; text-align: center; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border: 1px solid rgba(255,255,255,0.05);
}
.pgcf-game-card:hover { transform: translateY(-3px); box-shadow: var(--pgcf-shadow); }
.pgcf-game-card img { width: 100%; height: 92px; object-fit: cover; }
.pgcf-game-name {
  padding: 6px 4px; font-size: 1.15rem; color: var(--pgcf-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Feature / card grid ---------- */
.pgcf-feature-grid {
  display: grid; grid-template-columns: 1fr; gap: 10px;
}
.pgcf-card {
  background: var(--pgcf-bg-card); border-radius: var(--pgcf-radius);
  padding: 14px; border: 1px solid rgba(255,255,255,0.05);
  box-shadow: var(--pgcf-shadow);
}
.pgcf-card h3 { margin: 0 0 6px; font-size: 1.55rem; color: var(--pgcf-primary); }
.pgcf-card p { margin: 0; font-size: 1.3rem; color: var(--pgcf-text-muted); }

/* ---------- CTA ---------- */
.pgcf-cta {
  background: linear-gradient(135deg, var(--pgcf-primary) 0%, var(--pgcf-accent) 100%);
  color: #fff; padding: 18px 14px; border-radius: var(--pgcf-radius);
  text-align: center; margin: 16px 0; box-shadow: var(--pgcf-shadow);
}
.pgcf-cta h2 { margin: 0 0 8px; font-size: 1.8rem; color: #fff; }
.pgcf-cta p { margin: 0 0 12px; font-size: 1.35rem; color: rgba(255,255,255,0.92); }
.pgcf-cta .pgcf-btn { background: #fff; color: var(--pgcf-danger); }

/* ---------- FAQ accordion ---------- */
.pgcf-faq-item {
  background: var(--pgcf-bg-card); border-radius: var(--pgcf-radius-sm);
  margin-bottom: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05);
}
.pgcf-faq-q {
  width: 100%; background: transparent; border: none;
  text-align: left; padding: 12px 14px; color: var(--pgcf-text);
  font-size: 1.35rem; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
}
.pgcf-faq-q .pgcf-faq-icon { color: var(--pgcf-primary); transition: transform 0.2s ease; }
.pgcf-faq-item.pgcf-is-open .pgcf-faq-icon { transform: rotate(45deg); }
.pgcf-faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  padding: 0 14px;
}
.pgcf-faq-item.pgcf-is-open .pgcf-faq-a { max-height: 280px; padding-bottom: 12px; }
.pgcf-faq-a p { margin: 0; font-size: 1.3rem; color: var(--pgcf-text-muted); }

/* ---------- Testimonials ---------- */
.pgcf-testimonial {
  background: var(--pgcf-bg-card); border-radius: var(--pgcf-radius);
  padding: 14px; margin-bottom: 10px;
  border-left: 3px solid var(--pgcf-accent);
}
.pgcf-testimonial-name { font-weight: 700; color: var(--pgcf-primary); font-size: 1.4rem; }
.pgcf-testimonial-stars { color: var(--pgcf-gold); font-size: 1.2rem; margin: 4px 0; }
.pgcf-testimonial-text { font-size: 1.3rem; color: var(--pgcf-text-muted); margin: 0; }

/* ---------- Winners ---------- */
.pgcf-winner-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: var(--pgcf-bg-card);
  border-radius: var(--pgcf-radius-sm); margin-bottom: 6px; font-size: 1.25rem;
}
.pgcf-winner-name { color: var(--pgcf-primary); font-weight: 600; }
.pgcf-winner-amount { color: var(--pgcf-gold); font-weight: 700; }

/* ---------- Payment ---------- */
.pgcf-payment-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.pgcf-payment-grid .pgcf-card {
  padding: 10px; text-align: center; font-size: 1.1rem;
}

/* ---------- Inline promo text link ---------- */
.pgcf-promo-link {
  color: var(--pgcf-accent); font-weight: 700;
  text-decoration: underline; cursor: pointer;
}
.pgcf-promo-link:hover { color: var(--pgcf-primary); }

/* ---------- Back to top ---------- */
.pgcf-backtop {
  position: fixed; right: 16px; bottom: 84px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--pgcf-primary); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; opacity: 0; visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 999; box-shadow: var(--pgcf-shadow);
}
.pgcf-backtop.pgcf-is-visible { opacity: 1; visibility: visible; }

/* ---------- Footer ---------- */
.pgcf-footer {
  background: #1a2632; color: var(--pgcf-text-muted);
  padding: 22px 14px 18px; margin-top: 24px;
  border-top: 3px solid var(--pgcf-primary);
}
.pgcf-footer h4 { color: var(--pgcf-primary); font-size: 1.5rem; margin: 10px 0 8px; }
.pgcf-footer-links {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px;
  margin: 10px 0 14px;
}
.pgcf-footer-links a { color: var(--pgcf-text-muted); font-size: 1.2rem; }
.pgcf-footer-links a:hover { color: var(--pgcf-primary); }
.pgcf-footer-promos { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.pgcf-footer-promos .pgcf-btn { flex: 1 1 auto; min-width: 120px; padding: 8px 12px; font-size: 1.2rem; }
.pgcf-footer-copy { font-size: 1.15rem; color: rgba(255,255,255,0.4); margin-top: 12px; text-align: center; }

/* ---------- Mobile bottom nav ---------- */
.pgcf-bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: 62px; z-index: 1000;
  background: linear-gradient(135deg, #212F3D 0%, #2c3e50 100%);
  border-top: 2px solid var(--pgcf-primary);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.35);
}
.pgcf-bottomnav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--pgcf-text-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 6px 2px; transition: color 0.18s ease, transform 0.18s ease;
}
.pgcf-bottomnav-btn i, .pgcf-bottomnav-btn span.mi {
  font-size: 22px;
}
.pgcf-bottomnav-btn span:not(.mi) { font-size: 10px; font-weight: 600; }
.pgcf-bottomnav-btn:hover { color: var(--pgcf-primary); transform: translateY(-2px); }
.pgcf-bottomnav-btn.pgcf-is-active { color: var(--pgcf-accent); }
.pgcf-bottomnav-btn.pgcf-promo {
  position: relative;
}
.pgcf-bottomnav-btn.pgcf-promo::before {
  content: ""; position: absolute; top: 4px; right: 12px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pgcf-danger);
  box-shadow: 0 0 6px var(--pgcf-danger);
}

/* ---------- Responsive / Desktop ---------- */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}
@media (min-width: 769px) {
  .pgcf-container { max-width: 760px; }
  .pgcf-header-inner { max-width: 760px; }
  .pgcf-game-grid { grid-template-columns: repeat(5, 1fr); }
  .pgcf-feature-grid { grid-template-columns: 1fr 1fr; }
  .pgcf-bottomnav { display: none; }
  .pgcf-slide img { height: 280px; }
  main { padding-bottom: 30px; }
}
@media (min-width: 992px) {
  .pgcf-container { max-width: 900px; }
  .pgcf-header-inner { max-width: 900px; }
  .pgcf-game-grid { grid-template-columns: repeat(6, 1fr); }
}
