/**
 * 123apps design system
 * All custom classes use the pgeb- prefix for namespace isolation.
 * Mobile-first, max-width 430px, rem units (root font-size 62.5%).
 */
:root {
  --pgeb-primary: #FF1493;
  --pgeb-primary-dark: #C70F73;
  --pgeb-primary-light: #FF66B8;
  --pgeb-bg: #0C0C0C;
  --pgeb-bg-soft: #141414;
  --pgeb-bg-card: #1B1B1B;
  --pgeb-bg-elev: #242424;
  --pgeb-text: #F6F6F6;
  --pgeb-text-muted: #BDBDBD;
  --pgeb-gray: #6C757D;
  --pgeb-gold: #FFC436;
  --pgeb-green: #16C79A;
  --pgeb-radius: 14px;
  --pgeb-radius-sm: 10px;
  --pgeb-header-h: 58px;
  --pgeb-bottom-h: 64px;
  --pgeb-shadow: 0 10px 28px rgba(255, 20, 147, 0.22);
  --pgeb-shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.45);
  --pgeb-grad: linear-gradient(135deg, #FF1493 0%, #FF66B8 50%, #FFC436 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Be Vietnam Pro', 'Segoe UI', Roboto, system-ui, sans-serif;
  background: var(--pgeb-bg);
  color: var(--pgeb-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  position: relative;
}
img { max-width: 100%; display: block; }
a { color: var(--pgeb-primary-light); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.pgeb-container { width: 100%; padding: 0 14px; }
.pgeb-wrapper { padding-top: var(--pgeb-header-h); padding-bottom: calc(var(--pgeb-bottom-h) + 16px); min-height: 100vh; }

/* ===== Header ===== */
.pgeb-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  height: var(--pgeb-header-h);
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 20, 147, 0.18);
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
  transition: box-shadow .25s ease, background .25s ease;
}
.pgeb-header-scrolled { box-shadow: 0 4px 16px rgba(0,0,0,.5); background: rgba(12,12,12,.98); }
.pgeb-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pgeb-brand img { width: 30px; height: 30px; border-radius: 8px; }
.pgeb-brand-name { font-weight: 800; font-size: 1.8rem; color: var(--pgeb-text); letter-spacing: .3px; }
.pgeb-brand-name b { color: var(--pgeb-primary); }
.pgeb-head-actions { display: flex; align-items: center; gap: 8px; }
.pgeb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 1.3rem; font-weight: 700; min-height: 36px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.pgeb-btn:active { transform: scale(.96); }
.pgeb-btn-login { background: rgba(255,255,255,.08); color: var(--pgeb-text); border: 1px solid rgba(255,255,255,.18); }
.pgeb-btn-reg { background: var(--pgeb-grad); color: #fff; box-shadow: 0 4px 12px rgba(255,20,147,.4); }
.pgeb-menu-btn { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(255,255,255,.06); color: var(--pgeb-text); font-size: 2rem; }

/* ===== Mobile menu (slide-in) ===== */
.pgeb-menu {
  position: fixed; top: 0; right: -100%; width: 82%; max-width: 340px; height: 100vh;
  background: var(--pgeb-bg-soft); z-index: 9999;
  padding: calc(var(--pgeb-header-h) + 12px) 18px 24px;
  transition: right .28s ease; overflow-y: auto;
  border-left: 1px solid rgba(255,20,147,.2);
}
.pgeb-menu-open { right: 0; box-shadow: -10px 0 40px rgba(0,0,0,.6); }
.pgeb-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 9998; opacity: 0; visibility: hidden; transition: opacity .25s ease; }
.pgeb-menu-open ~ .pgeb-menu-overlay { opacity: 1; visibility: visible; }
.pgeb-menu-title { font-size: 1.3rem; color: var(--pgeb-gray); text-transform: uppercase; letter-spacing: 1px; margin: 14px 0 8px; }
.pgeb-menu a, .pgeb-menu button.pgeb-menu-link {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 13px 12px; border-radius: 10px; color: var(--pgeb-text);
  font-size: 1.45rem; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.05);
}
.pgeb-menu a:active, .pgeb-menu button.pgeb-menu-link:active { background: rgba(255,20,147,.12); }
.pgeb-menu a .material-icons-outlined, .pgeb-menu a i { font-size: 2rem; color: var(--pgeb-primary-light); width: 24px; text-align: center; }

/* ===== Hero / Carousel ===== */
.pgeb-hero { padding: 14px 14px 4px; }
.pgeb-carousel { position: relative; border-radius: var(--pgeb-radius); overflow: hidden; box-shadow: var(--pgeb-shadow-soft); }
.pgeb-slides { position: relative; }
.pgeb-slide {
  position: relative; display: block; opacity: 0; visibility: hidden;
  height: 0; transition: opacity .5s ease;
}
.pgeb-slide-active { opacity: 1; visibility: visible; height: auto; position: relative; }
.pgeb-slide img { width: 100%; height: 180px; object-fit: cover; }
.pgeb-slide-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 14px 12px; background: linear-gradient(0deg, rgba(12,12,12,.92) 10%, rgba(12,12,12,0) 100%); }
.pgeb-slide-title { font-size: 1.7rem; font-weight: 800; color: #fff; line-height: 1.3; }
.pgeb-slide-sub { font-size: 1.25rem; color: var(--pgeb-text-muted); margin-top: 4px; }
.pgeb-dots { display: flex; justify-content: center; gap: 7px; padding: 10px 0 4px; }
.pgeb-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.22); transition: all .2s; }
.pgeb-dot-active { background: var(--pgeb-primary); width: 22px; border-radius: 6px; }

/* ===== Headings ===== */
.pgeb-h1 { font-size: 2rem; font-weight: 800; line-height: 1.25; padding: 14px 14px 4px; }
.pgeb-h1 b { color: var(--pgeb-primary); }
.pgeb-section { padding: 18px 14px 4px; }
.pgeb-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pgeb-section-title { font-size: 1.65rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.pgeb-section-title::before { content: ''; width: 5px; height: 20px; border-radius: 3px; background: var(--pgeb-grad); display: inline-block; }
.pgeb-section-title b { color: var(--pgeb-primary); }
.pgeb-more { font-size: 1.25rem; color: var(--pgeb-primary-light); font-weight: 600; }

/* ===== Category chips ===== */
.pgeb-chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 14px 4px; scrollbar-width: none; }
.pgeb-chips::-webkit-scrollbar { display: none; }
.pgeb-chip { flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; background: var(--pgeb-bg-card); color: var(--pgeb-text-muted); font-size: 1.25rem; font-weight: 600; border: 1px solid rgba(255,255,255,.06); white-space: nowrap; }
.pgeb-chip i { margin-right: 4px; }
.pgeb-chip:active { background: var(--pgeb-primary); color: #fff; }

/* ===== Game grid ===== */
.pgeb-games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pgeb-game { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 6px 9px; background: var(--pgeb-bg-card); border-radius: var(--pgeb-radius-sm); border: 1px solid rgba(255,255,255,.05); transition: transform .15s ease, border-color .15s ease; position: relative; }
.pgeb-game:active { transform: scale(.96); border-color: var(--pgeb-primary); }
.pgeb-game img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.pgeb-game-name { font-size: 1.1rem; line-height: 1.25; text-align: center; color: var(--pgeb-text-muted); font-weight: 600; height: 2.8em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pgeb-game-hot { position: absolute; top: 4px; right: 4px; background: var(--pgeb-grad); color: #fff; font-size: .9rem; font-weight: 800; padding: 2px 6px; border-radius: 6px; }

/* ===== Feature cards ===== */
.pgeb-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pgeb-feature { background: var(--pgeb-bg-card); border-radius: var(--pgeb-radius); padding: 14px 12px; border: 1px solid rgba(255,255,255,.05); }
.pgeb-feature .pgeb-ico { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(255,20,147,.16); color: var(--pgeb-primary); font-size: 2.2rem; margin-bottom: 8px; }
.pgeb-feature h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 4px; }
.pgeb-feature p { font-size: 1.2rem; color: var(--pgeb-text-muted); line-height: 1.4; }

/* ===== Steps ===== */
.pgeb-steps { display: flex; flex-direction: column; gap: 10px; }
.pgeb-step { display: flex; gap: 12px; align-items: flex-start; background: var(--pgeb-bg-card); padding: 12px; border-radius: var(--pgeb-radius-sm); border-left: 3px solid var(--pgeb-primary); }
.pgeb-step-num { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: var(--pgeb-grad); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.pgeb-step-body h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 3px; }
.pgeb-step-body p { font-size: 1.2rem; color: var(--pgeb-text-muted); }

/* ===== CTA banner ===== */
.pgeb-cta { background: var(--pgeb-grad); border-radius: var(--pgeb-radius); padding: 18px 16px; text-align: center; color: #fff; box-shadow: var(--pgeb-shadow); }
.pgeb-cta h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 6px; }
.pgeb-cta p { font-size: 1.25rem; opacity: .95; margin-bottom: 12px; }
.pgeb-cta .pgeb-btn { background: #0C0C0C; color: #fff; padding: 12px 26px; font-size: 1.4rem; }

/* ===== FAQ ===== */
.pgeb-faq-item { background: var(--pgeb-bg-card); border-radius: var(--pgeb-radius-sm); margin-bottom: 8px; border: 1px solid rgba(255,255,255,.05); overflow: hidden; }
.pgeb-faq-q { padding: 13px 14px; font-weight: 700; font-size: 1.3rem; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pgeb-faq-q::after { content: '+'; font-size: 1.8rem; color: var(--pgeb-primary); font-weight: 400; }
.pgeb-faq-a { padding: 0 14px 14px; font-size: 1.22rem; color: var(--pgeb-text-muted); display: none; }
.pgeb-faq-item.pgeb-open .pgeb-faq-a { display: block; }
.pgeb-faq-item.pgeb-open .pgeb-faq-q::after { content: '−'; }

/* ===== Testimonials ===== */
.pgeb-testi-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.pgeb-testi { background: var(--pgeb-bg-card); border-radius: var(--pgeb-radius); padding: 14px; border: 1px solid rgba(255,255,255,.05); }
.pgeb-testi-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pgeb-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--pgeb-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.4rem; }
.pgeb-testi-name { font-weight: 700; font-size: 1.3rem; }
.pgeb-stars { color: var(--pgeb-gold); font-size: 1.2rem; }
.pgeb-testi p { font-size: 1.22rem; color: var(--pgeb-text-muted); }

/* ===== Payment & partners ===== */
.pgeb-pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pgeb-pay-item { background: var(--pgeb-bg-card); border-radius: 10px; padding: 10px 6px; text-align: center; font-size: 1.15rem; font-weight: 600; color: var(--pgeb-text-muted); border: 1px solid rgba(255,255,255,.05); }
.pgeb-pay-item i { font-size: 2.2rem; color: var(--pgeb-primary-light); display: block; margin-bottom: 4px; }

/* ===== Info paragraphs ===== */
.pgeb-prose p { font-size: 1.28rem; line-height: 1.7; color: var(--pgeb-text-muted); margin-bottom: 10px; }
.pgeb-prose strong { color: var(--pgeb-primary-light); font-weight: 700; }
.pgeb-promo-text { color: var(--pgeb-primary-light); font-weight: 700; }

/* ===== Footer ===== */
.pgeb-footer { background: var(--pgeb-bg-soft); border-top: 1px solid rgba(255,20,147,.18); margin-top: 20px; padding: 20px 14px calc(var(--pgeb-bottom-h) + 20px); }
.pgeb-footer-brand { font-size: 1.3rem; color: var(--pgeb-text-muted); line-height: 1.6; margin-bottom: 14px; }
.pgeb-footer-promos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pgeb-footer-promos .pgeb-btn { background: var(--pgeb-grad); color: #fff; padding: 8px 14px; font-size: 1.2rem; }
.pgeb-footer-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 14px; }
.pgeb-footer-links a { font-size: 1.2rem; color: var(--pgeb-text-muted); }
.pgeb-footer-links a:active { color: var(--pgeb-primary); }
.pgeb-copy { font-size: 1.1rem; color: var(--pgeb-gray); border-top: 1px solid rgba(255,255,255,.06); padding-top: 12px; text-align: center; }

/* ===== Mobile bottom nav ===== */
.pgeb-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--pgeb-bottom-h);
  background: linear-gradient(180deg, #1a1a1a 0%, #0C0C0C 100%);
  border-top: 1px solid rgba(255,20,147,.25);
  display: flex; justify-content: space-around; align-items: stretch;
  z-index: 1000; box-shadow: 0 -4px 18px rgba(0,0,0,.5);
}
.pgeb-navbtn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--pgeb-gray); font-size: 1.05rem; font-weight: 600; min-width: 60px; min-height: 60px;
  transition: color .15s ease, transform .15s ease; position: relative;
}
.pgeb-navbtn i, .pgeb-navbtn .material-icons-outlined { font-size: 2.4rem; transition: transform .15s; }
.pgeb-navbtn:active { transform: scale(.9); }
.pgeb-navbtn:active i { transform: translateY(-2px); }
.pgeb-navbtn-active { color: var(--pgeb-primary); }
.pgeb-navbtn-active::before { content: ''; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--pgeb-grad); }
.pgeb-navbtn-promo { color: var(--pgeb-gold); }

/* ===== Reveal animation ===== */
.pgeb-reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.pgeb-revealed { opacity: 1; transform: translateY(0); }

/* ===== Desktop: hide bottom nav, show full width ===== */
@media (min-width: 769px) {
  .pgeb-bottom-nav { display: none; }
  body { max-width: 430px; box-shadow: 0 0 50px rgba(0,0,0,.6); }
  .pgeb-footer { padding-bottom: 24px; }
  .pgeb-wrapper { padding-bottom: 24px; }
}

/* ===== Small phones ===== */
@media (max-width: 360px) {
  .pgeb-games { grid-template-columns: repeat(2, 1fr); }
  .pgeb-brand-name { font-size: 1.6rem; }
  .pgeb-slide img { height: 150px; }
}
