/* pinas77 app login - Design CSS */
/* Prefix: pgaf- */
/* Palette: #2E4057 (bg) | #0097A7 (primary) | #F5B301 (accent) */

:root {
  --pgaf-bg: #2E4057;
  --pgaf-bg-alt: #243447;
  --pgaf-bg-card: #354B63;
  --pgaf-bg-deep: #1B2738;
  --pgaf-primary: #0097A7;
  --pgaf-primary-dark: #007A87;
  --pgaf-primary-light: #4DBDD0;
  --pgaf-accent: #F5B301;
  --pgaf-accent-2: #FFC857;
  --pgaf-danger: #E53935;
  --pgaf-success: #2E9B5C;
  --pgaf-text: #F4F7FB;
  --pgaf-text-muted: #B6C4D6;
  --pgaf-border: rgba(255,255,255,0.08);
  --pgaf-shadow: 0 6px 22px rgba(0,0,0,0.28);
  --pgaf-radius: 14px;
  --pgaf-radius-sm: 10px;
  --pgaf-header-h: 58px;
  --pgaf-bottom-h: 62px;
  font-size: 62.5%;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter','Segoe UI',system-ui,-apple-system,sans-serif;
  font-size: 1.5rem; line-height: 1.5;
  background: var(--pgaf-bg); color: var(--pgaf-text);
  max-width: 430px; margin: 0 auto;
  position: relative; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--pgaf-primary); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Header */
.pgaf-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--pgaf-header-h); max-width: 430px; margin: 0 auto;
  background: linear-gradient(90deg, var(--pgaf-bg-alt) 0%, var(--pgaf-bg) 100%);
  border-bottom: 1px solid var(--pgaf-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; z-index: 1000;
}
.pgaf-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.6rem; color: var(--pgaf-text); }
.pgaf-logo img { width: 28px; height: 28px; border-radius: 6px; }
.pgaf-logo .pgaf-logo-accent { color: var(--pgaf-primary); }
.pgaf-header-actions { display: flex; align-items: center; gap: 6px; }
.pgaf-menu-btn { font-size: 2rem; color: var(--pgaf-text); padding: 6px; min-width: 40px; min-height: 40px; }

/* Buttons */
.pgaf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 1.3rem;
  min-height: 40px; transition: transform .15s ease, opacity .15s ease;
}
.pgaf-btn:active { transform: scale(0.96); }
.pgaf-btn-primary { background: linear-gradient(135deg, var(--pgaf-accent) 0%, var(--pgaf-accent-2) 100%); color: #1A1206; }
.pgaf-btn-secondary { background: var(--pgaf-primary); color: #fff; }
.pgaf-btn-outline { border: 1px solid var(--pgaf-primary); color: var(--pgaf-primary); background: rgba(0,151,167,0.08); }
.pgaf-btn-block { display: flex; width: 100%; }

/* Mobile menu */
.pgaf-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 9998;
}
.pgaf-overlay-active { opacity: 1; pointer-events: auto; }
.pgaf-mobile-menu {
  position: fixed; top: 0; right: -82%; width: 82%; height: 100%;
  background: var(--pgaf-bg-alt); z-index: 9999;
  transition: right .3s ease; padding: 20px; overflow-y: auto;
}
.pgaf-menu-open { right: 0; }
.pgaf-mobile-menu h3 { color: var(--pgaf-accent); font-size: 1.5rem; margin: 18px 0 8px; }
.pgaf-mobile-menu a {
  display: block; padding: 12px 10px; color: var(--pgaf-text);
  border-bottom: 1px solid var(--pgaf-border); font-size: 1.4rem;
}
.pgaf-mobile-menu a:active { background: rgba(0,151,167,0.12); }
.pgaf-menu-close { position: absolute; top: 12px; right: 12px; font-size: 2rem; color: var(--pgaf-text); }

/* Main */
.pgaf-main { padding-top: calc(var(--pgaf-header-h) + 6px); }
@media (max-width: 768px) {
  .pgaf-main { padding-bottom: calc(var(--pgaf-bottom-h) + 14px); }
}

/* Carousel */
.pgaf-carousel { position: relative; overflow: hidden; border-radius: var(--pgaf-radius); margin: 10px 0; }
.pgaf-slide { display: none; position: relative; cursor: pointer; }
.pgaf-slide-active { display: block; }
.pgaf-slide img { width: 100%; height: 170px; object-fit: cover; }
.pgaf-slide-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 14px; background: linear-gradient(to top, rgba(0,0,0,0.78), transparent);
  color: #fff; font-size: 1.3rem; font-weight: 600;
}
.pgaf-carousel-dots { position: absolute; bottom: 8px; right: 12px; display: flex; gap: 6px; }
.pgaf-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); border: none; padding: 0; }
.pgaf-dot-active { background: var(--pgaf-accent); }

/* Section */
.pgaf-section { padding: 16px 12px; }
.pgaf-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.7rem; font-weight: 700; margin-bottom: 12px; color: var(--pgaf-text);
}
.pgaf-section-title i, .pgaf-section-title .material-icons { color: var(--pgaf-accent); font-size: 2rem; }
.pgaf-section-title .pgaf-more { margin-left: auto; font-size: 1.2rem; color: var(--pgaf-primary); font-weight: 500; }

/* Hero */
.pgaf-hero { padding: 14px 12px 4px; }
.pgaf-hero h1 { font-size: 2rem; line-height: 1.25; margin-bottom: 8px; }
.pgaf-hero p { color: var(--pgaf-text-muted); font-size: 1.35rem; }

/* Game grid */
.pgaf-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pgaf-game-card {
  background: var(--pgaf-bg-card); border-radius: var(--pgaf-radius-sm);
  padding: 8px; text-align: center; transition: transform .15s ease;
  border: 1px solid var(--pgaf-border); cursor: pointer;
}
.pgaf-game-card:active { transform: scale(0.96); }
.pgaf-game-card img { width: 100%; height: 78px; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }
.pgaf-game-name { font-size: 1.15rem; color: var(--pgaf-text); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Card / module */
.pgaf-card {
  background: var(--pgaf-bg-card); border-radius: var(--pgaf-radius);
  padding: 14px; margin-bottom: 12px; border: 1px solid var(--pgaf-border);
}
.pgaf-card h2 { font-size: 1.6rem; margin-bottom: 8px; color: var(--pgaf-accent-2); }
.pgaf-card h3 { font-size: 1.4rem; margin: 10px 0 6px; color: var(--pgaf-primary-light); }
.pgaf-card p { color: var(--pgaf-text-muted); margin-bottom: 8px; }
.pgaf-card ul { padding-left: 18px; color: var(--pgaf-text-muted); margin-bottom: 8px; }
.pgaf-card li { margin-bottom: 4px; }

/* Promo inline link */
.pgaf-promo-link { color: var(--pgaf-accent); font-weight: 600; cursor: pointer; text-decoration: underline; }

/* FAQ */
.pgaf-faq-item { border-bottom: 1px solid var(--pgaf-border); padding: 6px 0; }
.pgaf-faq-q {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; color: var(--pgaf-text); width: 100%; text-align: left;
  padding: 8px 0; font-size: 1.35rem;
}
.pgaf-faq-q i { transition: transform .25s ease; color: var(--pgaf-accent); }
.pgaf-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--pgaf-text-muted); }
.pgaf-faq-open .pgaf-faq-a { max-height: 500px; padding-top: 6px; padding-bottom: 6px; }
.pgaf-faq-open .pgaf-faq-q i { transform: rotate(45deg); }

/* Stats */
.pgaf-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pgaf-stat { background: var(--pgaf-bg-card); padding: 10px; border-radius: var(--pgaf-radius-sm); text-align: center; border: 1px solid var(--pgaf-border); }
.pgaf-stat-num { font-size: 1.8rem; font-weight: 800; color: var(--pgaf-accent); }
.pgaf-stat-label { font-size: 1.15rem; color: var(--pgaf-text-muted); }

/* Testimonials */
.pgaf-testimonial { background: var(--pgaf-bg-card); border-radius: var(--pgaf-radius-sm); padding: 12px; margin-bottom: 8px; border: 1px solid var(--pgaf-border); }
.pgaf-testimonial-stars { color: var(--pgaf-accent); font-size: 1.3rem; margin-bottom: 4px; }
.pgaf-testimonial-name { font-weight: 600; color: var(--pgaf-primary-light); font-size: 1.25rem; }
.pgaf-testimonial-text { color: var(--pgaf-text-muted); font-size: 1.25rem; }

/* Payment */
.pgaf-payment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pgaf-payment-item { background: var(--pgaf-bg-card); padding: 10px 6px; border-radius: 8px; text-align: center; font-size: 1.15rem; border: 1px solid var(--pgaf-border); }
.pgaf-payment-item i, .pgaf-payment-item .material-icons { font-size: 2rem; color: var(--pgaf-accent); display: block; margin-bottom: 4px; }

/* Winners */
.pgaf-winner { display: flex; align-items: center; gap: 10px; padding: 8px; background: var(--pgaf-bg-card); border-radius: 8px; margin-bottom: 6px; border: 1px solid var(--pgaf-border); }
.pgaf-winner-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--pgaf-primary); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.2rem; flex-shrink: 0; }
.pgaf-winner-info { flex: 1; min-width: 0; }
.pgaf-winner-name { font-size: 1.2rem; color: var(--pgaf-text); font-weight: 600; }
.pgaf-winner-game { font-size: 1.1rem; color: var(--pgaf-text-muted); }
.pgaf-winner-amount { color: var(--pgaf-accent); font-weight: 700; font-size: 1.3rem; }

/* CTA banner */
.pgaf-cta {
  background: linear-gradient(135deg, var(--pgaf-primary) 0%, var(--pgaf-primary-dark) 100%);
  border-radius: var(--pgaf-radius); padding: 16px; text-align: center; margin: 12px 0;
}
.pgaf-cta h3 { color: #fff; font-size: 1.6rem; margin-bottom: 6px; }
.pgaf-cta p { color: rgba(255,255,255,0.85); font-size: 1.25rem; margin-bottom: 10px; }
.pgaf-cta-accent { background: linear-gradient(135deg, var(--pgaf-accent) 0%, var(--pgaf-accent-2) 100%); }
.pgaf-cta-accent h3, .pgaf-cta-accent p { color: #1A1206; }
.pgaf-cta-accent p { color: rgba(26,18,6,0.8); }

/* Footer */
.pgaf-footer { background: var(--pgaf-bg-alt); padding: 18px 12px; border-top: 1px solid var(--pgaf-border); }
.pgaf-footer h4 { color: var(--pgaf-accent-2); font-size: 1.4rem; margin-bottom: 8px; }
.pgaf-footer p { color: var(--pgaf-text-muted); font-size: 1.2rem; margin-bottom: 10px; }
.pgaf-footer-links { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pgaf-footer-links a { color: var(--pgaf-text-muted); font-size: 1.15rem; padding: 4px 8px; background: var(--pgaf-bg-card); border-radius: 6px; }
.pgaf-footer-promo { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pgaf-footer-copy { font-size: 1.1rem; color: var(--pgaf-text-muted); border-top: 1px solid var(--pgaf-border); padding-top: 10px; }

/* Mobile bottom nav */
.pgaf-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--pgaf-bottom-h); max-width: 430px; margin: 0 auto;
  background: var(--pgaf-bg-deep); border-top: 1px solid var(--pgaf-border);
  display: flex; justify-content: space-around; align-items: center; z-index: 1000;
}
.pgaf-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px; gap: 2px;
  color: var(--pgaf-text-muted); font-size: 1rem; transition: color .2s ease, transform .15s ease;
}
.pgaf-nav-btn i, .pgaf-nav-btn .material-icons, .pgaf-nav-btn ion-icon { font-size: 2rem; }
.pgaf-nav-btn:active { transform: scale(0.92); }
.pgaf-nav-btn.pgaf-nav-active { color: var(--pgaf-primary-light); }
.pgaf-nav-btn-promo { color: var(--pgaf-accent); }

/* Back to top */
.pgaf-backtop {
  position: fixed; right: 14px; bottom: calc(var(--pgaf-bottom-h) + 14px);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--pgaf-primary); color: #fff; font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 999;
  border: none;
}
.pgaf-backtop-show { opacity: 1; pointer-events: auto; }

/* Desktop adjustments */
@media (min-width: 769px) {
  .pgaf-bottom-nav { display: none; }
  body { max-width: 960px; }
  .pgaf-backtop { bottom: 20px; }
  .pgaf-header { max-width: 960px; }
  .pgaf-game-grid { grid-template-columns: repeat(5, 1fr); }
  .pgaf-stats { grid-template-columns: repeat(4, 1fr); }
  .pgaf-payment-grid { grid-template-columns: repeat(6, 1fr); }
}

/* Utility */
.pgaf-text-center { text-align: center; }
.pgaf-mt-8 { margin-top: 8px; }
.pgaf-mt-12 { margin-top: 12px; }
.pgaf-mb-12 { margin-bottom: 12px; }
.pgaf-hidden { display: none; }
