/* ==========================================================================
   fb777pro app - theme.css
   All custom classes use the "pg8e-" prefix.
   Palette: #141414 bg / #008000 brand / #495057 muted
            #FFEBCD cream / #FFB347 orange / #F4A460 sand
   Mobile-first: max-width 430px, root font 62.5%.
   ========================================================================== */

:root {
  --pg8e-bg: #141414;
  --pg8e-bg-soft: #1f1f1f;
  --pg8e-bg-card: #232323;
  --pg8e-brand: #008000;
  --pg8e-brand-soft: #0a9a0a;
  --pg8e-muted: #495057;
  --pg8e-cream: #FFEBCD;
  --pg8e-orange: #FFB347;
  --pg8e-sand: #F4A460;
  --pg8e-text: #f5f5f5;
  --pg8e-text-dim: #c9c9c9;
  --pg8e-border: rgba(255, 235, 205, 0.12);
  --pg8e-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  --pg8e-radius: 12px;
  --pg8e-radius-lg: 18px;
}

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

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--pg8e-bg);
  color: var(--pg8e-text);
  line-height: 1.5;
  font-size: 1.6rem;
  overflow-x: hidden;
}

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

a { color: var(--pg8e-orange); text-decoration: none; }
a:hover { color: var(--pg8e-cream); }

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

/* ====================== HEADER ====================== */
.pg8e-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #0c0c0c 0%, #141414 100%);
  border-bottom: 1px solid var(--pg8e-border);
  box-shadow: var(--pg8e-shadow);
}
.pg8e-header-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 1.2rem; max-width: 430px; margin: 0 auto;
}
.pg8e-logo { display: flex; align-items: center; gap: 8px; }
.pg8e-logo img { width: 30px; height: 30px; border-radius: 6px; }
.pg8e-logo-text { font-size: 1.7rem; font-weight: 700; color: var(--pg8e-cream); letter-spacing: 0.3px; }
.pg8e-logo-text span { color: var(--pg8e-brand-soft); }
.pg8e-header-actions { display: flex; align-items: center; gap: 8px; }
.pg8e-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 0 14px; border-radius: 999px;
  font-size: 1.3rem; font-weight: 600; border: none; cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease;
}
.pg8e-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.pg8e-btn-login { background: transparent; color: var(--pg8e-cream); border: 1.5px solid var(--pg8e-orange); }
.pg8e-btn-register { background: linear-gradient(135deg, var(--pg8e-brand) 0%, var(--pg8e-brand-soft) 100%); color: #fff; }
.pg8e-menu-toggle {
  background: transparent; border: none; color: var(--pg8e-cream);
  font-size: 2rem; cursor: pointer; width: 40px; height: 40px; border-radius: 8px;
}
.pg8e-menu-toggle.pg8e-toggle-active { background: rgba(255, 179, 71, 0.18); }

/* ====================== MOBILE MENU ====================== */
.pg8e-mobile-menu {
  position: fixed; top: 56px; left: 0; right: 0; z-index: 9999;
  background: #0a0a0a; padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--pg8e-border);
  transform: translateY(-140%); transition: transform 0.28s ease;
  max-height: calc(100vh - 56px); overflow-y: auto;
}
.pg8e-mobile-menu.pg8e-menu-open { transform: translateY(0); }
.pg8e-mobile-menu a {
  display: block; padding: 10px 4px; font-size: 1.4rem;
  color: var(--pg8e-cream); border-bottom: 1px solid rgba(255, 235, 205, 0.06);
}
.pg8e-mobile-menu a:hover { color: var(--pg8e-orange); padding-left: 8px; }
.pg8e-menu-group-title { color: var(--pg8e-sand); font-size: 1.2rem; font-weight: 700; margin: 10px 0 4px; text-transform: uppercase; letter-spacing: 0.6px; }

/* ====================== MAIN / SECTIONS ====================== */
main { padding-top: 64px; padding-bottom: 84px; }
.pg8e-section { padding: 2rem 0; }
.pg8e-section-title { font-size: 2rem; font-weight: 800; color: var(--pg8e-cream); margin-bottom: 0.8rem; }
.pg8e-section-title em { color: var(--pg8e-brand-soft); font-style: normal; }
.pg8e-section-sub { color: var(--pg8e-text-dim); font-size: 1.35rem; margin-bottom: 1.4rem; }
.pg8e-text p { margin-bottom: 1rem; color: var(--pg8e-text-dim); }
.pg8e-text strong { color: var(--pg8e-cream); }
.pg8e-text a { font-weight: 600; }

/* ====================== CAROUSEL ====================== */
.pg8e-carousel { position: relative; border-radius: var(--pg8e-radius-lg); overflow: hidden; box-shadow: var(--pg8e-shadow); }
.pg8e-slide { display: none; position: relative; cursor: pointer; }
.pg8e-slide.pg8e-slide-active { display: block; }
.pg8e-slide img { width: 100%; height: 190px; object-fit: cover; }
.pg8e-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.78) 0%, transparent 100%);
  padding: 1.4rem 1.2rem 1rem; color: var(--pg8e-cream);
}
.pg8e-slide-caption h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 4px; }
.pg8e-slide-caption p { font-size: 1.25rem; color: var(--pg8e-text-dim); }
.pg8e-carousel-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.pg8e-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); cursor: pointer; }
.pg8e-carousel-dot.pg8e-dot-active { background: var(--pg8e-orange); width: 20px; border-radius: 4px; }
.pg8e-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  background: rgba(0,0,0,0.4); color: #fff; border: none;
  width: 32px; height: 32px; border-radius: 50%; font-size: 1.6rem; cursor: pointer;
}
.pg8e-carousel-arrow:hover { background: var(--pg8e-brand); }
.pg8e-arrow-prev { left: 6px; } .pg8e-arrow-next { right: 6px; }

/* ====================== FILTER CHIPS ====================== */
.pg8e-filter-bar { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 14px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.pg8e-filter-bar::-webkit-scrollbar { display: none; }
.pg8e-filter-chip {
  flex: 0 0 auto; padding: 8px 16px; border-radius: 999px;
  background: var(--pg8e-bg-card); color: var(--pg8e-text-dim);
  font-size: 1.25rem; font-weight: 600; border: 1px solid var(--pg8e-border); cursor: pointer;
}
.pg8e-filter-chip.pg8e-chip-active { background: var(--pg8e-brand); color: #fff; border-color: var(--pg8e-brand); }

/* ====================== GAME GRID ====================== */
.pg8e-game-section { margin-bottom: 2.4rem; }
.pg8e-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.pg8e-game-card {
  background: var(--pg8e-bg-card); border-radius: var(--pg8e-radius);
  overflow: hidden; border: 1px solid var(--pg8e-border);
  cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pg8e-game-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0, 128, 0, 0.35); border-color: var(--pg8e-brand-soft); }
.pg8e-game-thumb { position: relative; aspect-ratio: 1 / 1; background: #000; }
.pg8e-game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pg8e-game-name { padding: 6px 6px 8px; font-size: 1.15rem; text-align: center; color: var(--pg8e-cream); font-weight: 600; line-height: 1.2; }

/* ====================== H1 / HERO TEXT ====================== */
.pg8e-h1 { font-size: 2.2rem; line-height: 1.3; font-weight: 800; color: var(--pg8e-cream); margin: 1.6rem 0 0.6rem; }
.pg8e-h1 em { color: var(--pg8e-brand-soft); font-style: normal; }
.pg8e-lead { color: var(--pg8e-text-dim); font-size: 1.35rem; margin-bottom: 1rem; }
.pg8e-h2 { font-size: 1.9rem; font-weight: 800; color: var(--pg8e-cream); margin: 2rem 0 0.8rem; }
.pg8e-h2 em { color: var(--pg8e-orange); font-style: normal; }
.pg8e-h3 { font-size: 1.55rem; font-weight: 700; color: var(--pg8e-cream); margin: 1.4rem 0 0.6rem; }

/* ====================== CARDS / PANELS ====================== */
.pg8e-panel { background: var(--pg8e-bg-card); border-radius: var(--pg8e-radius-lg); padding: 1.6rem; border: 1px solid var(--pg8e-border); margin-bottom: 1.2rem; }
.pg8e-panel-title { color: var(--pg8e-orange); font-size: 1.4rem; font-weight: 700; margin-bottom: 0.6rem; display: flex; align-items: center; gap: 8px; }
.pg8e-feature-list { list-style: none; padding: 0; }
.pg8e-feature-list li { padding: 8px 0 8px 28px; position: relative; color: var(--pg8e-text-dim); border-bottom: 1px dashed var(--pg8e-border); }
.pg8e-feature-list li:last-child { border-bottom: none; }
.pg8e-feature-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--pg8e-brand-soft); position: absolute; left: 0; top: 8px; }

/* ====================== FAQ ====================== */
.pg8e-faq-item { background: var(--pg8e-bg-card); border-radius: var(--pg8e-radius); padding: 1rem 1.2rem; margin-bottom: 10px; border: 1px solid var(--pg8e-border); }
.pg8e-faq-q { font-weight: 700; color: var(--pg8e-cream); margin-bottom: 6px; font-size: 1.35rem; }
.pg8e-faq-a { color: var(--pg8e-text-dim); font-size: 1.25rem; }

/* ====================== TESTIMONIAL / WINNERS ====================== */
.pg8e-testimonial-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.pg8e-testimonial { background: var(--pg8e-bg-card); border-left: 3px solid var(--pg8e-orange); padding: 1rem 1.2rem; border-radius: 8px; }
.pg8e-testimonial-name { color: var(--pg8e-orange); font-weight: 700; font-size: 1.3rem; }
.pg8e-testimonial-text { color: var(--pg8e-text-dim); font-size: 1.25rem; margin-top: 4px; }
.pg8e-winners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pg8e-winner { background: var(--pg8e-bg-card); padding: 10px; border-radius: 8px; text-align: center; }
.pg8e-winner-name { color: var(--pg8e-cream); font-weight: 700; font-size: 1.2rem; }
.pg8e-winner-prize { color: var(--pg8e-brand-soft); font-weight: 800; font-size: 1.35rem; }
.pg8e-winner-game { color: var(--pg8e-text-dim); font-size: 1.1rem; }

/* ====================== CTA / PAYMENT ====================== */
.pg8e-cta { background: linear-gradient(135deg, var(--pg8e-brand) 0%, #006600 100%); border-radius: var(--pg8e-radius-lg); padding: 1.8rem 1.4rem; text-align: center; margin: 1.6rem 0; }
.pg8e-cta h3 { color: #fff; font-size: 1.8rem; margin-bottom: 6px; }
.pg8e-cta p { color: rgba(255,255,255,0.85); margin-bottom: 1rem; }
.pg8e-cta-btn { display: inline-block; background: var(--pg8e-orange); color: #141414; font-weight: 800; padding: 12px 28px; border-radius: 999px; font-size: 1.4rem; cursor: pointer; border: none; }
.pg8e-payment-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 1rem; }
.pg8e-payment-row span { background: var(--pg8e-bg-card); color: var(--pg8e-cream); border: 1px solid var(--pg8e-border); padding: 6px 12px; border-radius: 999px; font-size: 1.15rem; }

/* ====================== REVEAL ANIMATION ====================== */
.pg8e-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.pg8e-reveal.pg8e-revealed { opacity: 1; transform: translateY(0); }

/* ====================== FOOTER ====================== */
.pg8e-footer { background: #0a0a0a; border-top: 1px solid var(--pg8e-border); padding: 2rem 1.2rem 1.4rem; }
.pg8e-footer-brand { color: var(--pg8e-cream); font-weight: 700; font-size: 1.5rem; margin-bottom: 6px; }
.pg8e-footer-text { color: var(--pg8e-text-dim); font-size: 1.2rem; margin-bottom: 1rem; }
.pg8e-footer-promos { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pg8e-footer-promos button { background: var(--pg8e-brand); color: #fff; border: none; padding: 8px 14px; border-radius: 999px; font-size: 1.2rem; font-weight: 600; cursor: pointer; }
.pg8e-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 12px 0; }
.pg8e-footer-links a { color: var(--pg8e-text-dim); font-size: 1.18rem; }
.pg8e-footer-links a:hover { color: var(--pg8e-orange); }
.pg8e-copyright { color: var(--pg8e-muted); font-size: 1.1rem; border-top: 1px solid var(--pg8e-border); margin-top: 12px; padding-top: 10px; text-align: center; }

/* ====================== BOTTOM NAV ====================== */
.pg8e-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #0c0c0c 0%, #000 100%);
  border-top: 1px solid var(--pg8e-border);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 64px; padding: 2px 0;
}
.pg8e-bottom-nav a, .pg8e-bottom-nav button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: transparent; border: none; color: var(--pg8e-text-dim);
  font-size: 1rem; cursor: pointer; gap: 2px; min-width: 60px; min-height: 60px;
  transition: color 0.18s ease, transform 0.18s ease; text-decoration: none;
}
.pg8e-bottom-nav a:hover, .pg8e-bottom-nav button:hover { color: var(--pg8e-orange); transform: translateY(-2px); }
.pg8e-bottom-nav .pg8e-nav-icon { font-size: 2.2rem; line-height: 1; }
.pg8e-bottom-nav .pg8e-nav-label { font-size: 1rem; font-weight: 600; }
.pg8e-bottom-nav .pg8e-nav-active { color: var(--pg8e-brand-soft); }
.pg8e-bottom-nav .pg8e-nav-active .pg8e-nav-icon { transform: scale(1.15); }

@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* ====================== DESKTOP ====================== */
@media (min-width: 769px) {
  .pg8e-bottom-nav { display: none; }
  main { padding-bottom: 32px; }
  .pg8e-container { max-width: 760px; }
  .pg8e-game-grid { grid-template-columns: repeat(5, 1fr); }
  .pg8e-testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .pg8e-winners { grid-template-columns: repeat(4, 1fr); }
  .pg8e-slide img { height: 320px; }
}

/* Material Icons sizing helper */
.material-icons.pg8e-icon-md { font-size: 22px; }
.material-icons.pg8e-icon-lg { font-size: 26px; }
