/* ============================================================
 * design-c7d4.css - Stylesheet for bingo plus apk
 * All custom classes use the pgc7- prefix.
 * Color palette: #3CB371 (primary) | #1C2833 (dark bg) | #D3D3D3 (light text)
 * Mobile-first, max content width 430px.
 * ============================================================ */

:root {
  --pgc7-primary: #3CB371;
  --pgc7-primary-dark: #2E8B57;
  --pgc7-bg: #1C2833;
  --pgc7-bg-soft: #243447;
  --pgc7-bg-card: #2A3B4F;
  --pgc7-text: #D3D3D3;
  --pgc7-text-bright: #FFFFFF;
  --pgc7-muted: #8FA3B8;
  --pgc7-accent: #F5B041;
  --pgc7-danger: #E74C3C;
  --pgc7-radius: 0.8rem;
  --pgc7-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.35);
  --pgc7-header-h: 6rem;
  --pgc7-bottomnav-h: 6.2rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--pgc7-bg);
  color: var(--pgc7-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--pgc7-primary); text-decoration: none; }
a:hover { color: var(--pgc7-accent); }

h1, h2, h3, h4 { color: var(--pgc7-text-bright); line-height: 1.6rem; margin: 0 0 0.8rem; }

/* ---------- Layout ---------- */
.pgc7-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.pgc7-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

main { padding-bottom: 8rem; }

/* ---------- Header ---------- */
.pgc7-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(28,40,51,0.98), rgba(28,40,51,0.92));
  backdrop-filter: blur(6px);
  border-bottom: 0.2rem solid rgba(60,179,113,0.4);
  transition: padding 0.25s ease, background 0.25s ease;
}

.pgc7-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.pgc7-header-scrolled { box-shadow: var(--pgc7-shadow); }

.pgc7-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.pgc7-brand img { width: 2.8rem; height: 2.8rem; border-radius: 0.6rem; }

.pgc7-brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pgc7-text-bright);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pgc7-brand-name span { color: var(--pgc7-primary); }

.pgc7-header-actions { display: flex; align-items: center; gap: 0.4rem; }

.pgc7-icon-btn {
  background: transparent;
  border: 0;
  color: var(--pgc7-text-bright);
  font-size: 1.8rem;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pgc7-icon-btn:active { transform: scale(0.92); }

/* ---------- Buttons ---------- */
.pgc7-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: 2rem;
  font-size: 1.25rem;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: center;
  min-height: 3.6rem;
}

.pgc7-btn:active { transform: scale(0.96); }

.pgc7-btn-register {
  background: linear-gradient(135deg, var(--pgc7-primary), var(--pgc7-primary-dark));
  color: #FFFFFF;
  box-shadow: 0 0.3rem 0.8rem rgba(60,179,113,0.35);
}

.pgc7-btn-login {
  background: transparent;
  color: var(--pgc7-primary);
  border: 0.15rem solid var(--pgc7-primary);
}

.pgc7-btn-cta {
  background: linear-gradient(135deg, var(--pgc7-accent), #E8970C);
  color: #1C2833;
  font-weight: 800;
  box-shadow: 0 0.3rem 0.9rem rgba(245,176,65,0.4);
}

.pgc7-btn-block { width: 100%; display: flex; }

.pgc7-link-text {
  color: var(--pgc7-primary);
  font-weight: 700;
  cursor: pointer;
}
.pgc7-link-text:hover { color: var(--pgc7-accent); text-decoration: underline; }

/* ---------- Mobile menu drawer ---------- */
.pgc7-mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 78%;
  max-width: 320px;
  height: 100vh;
  background: var(--pgc7-bg-soft);
  z-index: 9999;
  padding: 6rem 1.4rem 2rem;
  transition: right 0.3s ease;
  overflow-y: auto;
  border-left: 0.2rem solid rgba(60,179,113,0.5);
  box-shadow: -0.4rem 0 1.4rem rgba(0,0,0,0.4);
}

.pgc7-mobile-menu.pgc7-menu-open { right: 0; }

.pgc7-menu-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: transparent;
  border: 0;
  color: var(--pgc7-text-bright);
  font-size: 2rem;
  width: 3.4rem; height: 3.4rem;
  border-radius: 50%;
}

.pgc7-mobile-menu a {
  display: block;
  padding: 1rem 0.6rem;
  border-bottom: 0.1rem solid rgba(211,211,211,0.12);
  color: var(--pgc7-text-bright);
  font-size: 1.4rem;
  font-weight: 600;
}
.pgc7-mobile-menu a:hover { color: var(--pgc7-primary); padding-left: 1rem; }

.pgc7-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  display: none;
}
.pgc7-menu-overlay.pgc7-menu-open { display: block; }

/* ---------- Hero / Carousel ---------- */
.pgc7-hero {
  margin-top: var(--pgc7-header-h);
  padding: 1rem 0 0.4rem;
}

.pgc7-carousel {
  position: relative;
  border-radius: var(--pgc7-radius);
  overflow: hidden;
  box-shadow: var(--pgc7-shadow);
}

.pgc7-carousel-track { position: relative; }

.pgc7-carousel-slide {
  position: relative;
  display: none;
  cursor: pointer;
}
.pgc7-carousel-slide.pgc7-active { display: block; }

.pgc7-carousel-slide img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
}

.pgc7-carousel-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(28,40,51,0.92));
  color: var(--pgc7-text-bright);
}
.pgc7-carousel-caption strong { font-size: 1.5rem; color: var(--pgc7-primary); }

.pgc7-carousel-dots {
  position: absolute;
  bottom: 0.6rem; left: 0; right: 0;
  display: flex; justify-content: center; gap: 0.4rem;
}
.pgc7-carousel-dot {
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: 0; cursor: pointer;
}
.pgc7-carousel-dot.pgc7-active { background: var(--pgc7-primary); width: 1.6rem; border-radius: 0.4rem; }

/* ---------- Sections ---------- */
.pgc7-section {
  padding: 1.6rem 0;
}
.pgc7-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--pgc7-text-bright);
  border-left: 0.4rem solid var(--pgc7-primary);
  padding-left: 0.8rem;
}
.pgc7-section-sub { color: var(--pgc7-muted); font-size: 1.3rem; margin-bottom: 1rem; }

.pgc7-card {
  background: var(--pgc7-bg-card);
  border-radius: var(--pgc7-radius);
  padding: 1.2rem;
  box-shadow: var(--pgc7-shadow);
  border: 0.1rem solid rgba(60,179,113,0.18);
}
.pgc7-card + .pgc7-card { margin-top: 1rem; }

/* ---------- Game grid ---------- */
.pgc7-game-cat { margin-bottom: 1.6rem; }
.pgc7-game-cat-title {
  font-size: 1.5rem; font-weight: 700; color: var(--pgc7-primary);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.8rem;
}

.pgc7-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.pgc7-game-item {
  display: flex; flex-direction: column; align-items: center;
  background: var(--pgc7-bg-card); border-radius: 0.8rem;
  padding: 0.6rem 0.4rem; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  text-align: center; border: 0.1rem solid transparent;
}
.pgc7-game-item:hover { transform: translateY(-0.3rem); border-color: var(--pgc7-primary); }
.pgc7-game-item:active { transform: scale(0.95); }
.pgc7-game-item img {
  width: 5.2rem; height: 5.2rem; border-radius: 0.6rem; object-fit: cover; margin-bottom: 0.4rem;
}
.pgc7-game-name {
  font-size: 1.05rem; color: var(--pgc7-text-bright); font-weight: 600;
  line-height: 1.3rem; min-height: 2.6rem; display: flex; align-items: center; justify-content: center;
}

/* ---------- Feature / list cards ---------- */
.pgc7-feature-row {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 0.9rem; background: var(--pgc7-bg-card);
  border-radius: 0.6rem; margin-bottom: 0.8rem;
  border-left: 0.3rem solid var(--pgc7-primary);
}
.pgc7-feature-icon {
  font-size: 2rem; color: var(--pgc7-primary); flex-shrink: 0; width: 3rem; text-align: center;
}
.pgc7-feature-row h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.pgc7-feature-row p { margin: 0; font-size: 1.2rem; color: var(--pgc7-muted); }

/* ---------- RTP table ---------- */
.pgc7-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.pgc7-rtp-table th, .pgc7-rtp-table td {
  padding: 0.7rem 0.6rem; text-align: left; border-bottom: 0.1rem solid rgba(211,211,211,0.12);
}
.pgc7-rtp-table th { color: var(--pgc7-primary); font-weight: 700; }
.pgc7-rtp-table td .pgc7-rtphigh { color: var(--pgc7-accent); font-weight: 700; }

/* ---------- Testimonials ---------- */
.pgc7-testi {
  background: var(--pgc7-bg-card); border-radius: 0.8rem; padding: 1rem;
  margin-bottom: 0.8rem; border-left: 0.3rem solid var(--pgc7-accent);
}
.pgc7-testi-stars { color: var(--pgc7-accent); font-size: 1.2rem; margin-bottom: 0.4rem; }
.pgc7-testi-name { font-weight: 700; color: var(--pgc7-text-bright); font-size: 1.25rem; }

/* ---------- Payment / winners ---------- */
.pgc7-chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pgc7-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--pgc7-bg-card); color: var(--pgc7-text-bright);
  padding: 0.5rem 0.9rem; border-radius: 2rem; font-size: 1.15rem;
  border: 0.1rem solid rgba(60,179,113,0.25);
}

.pgc7-winner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0.9rem; background: var(--pgc7-bg-card);
  border-radius: 0.6rem; margin-bottom: 0.5rem; font-size: 1.2rem;
}
.pgc7-winner .pgc7-winner-amt { color: var(--pgc7-accent); font-weight: 700; }

/* ---------- FAQ ---------- */
.pgc7-faq-item {
  background: var(--pgc7-bg-card); border-radius: 0.6rem;
  padding: 0.9rem; margin-bottom: 0.7rem;
}
.pgc7-faq-q { font-weight: 700; color: var(--pgc7-text-bright); font-size: 1.3rem; margin-bottom: 0.4rem; }
.pgc7-faq-a { color: var(--pgc7-muted); font-size: 1.2rem; margin: 0; }

/* ---------- CTA banner ---------- */
.pgc7-cta-banner {
  background: linear-gradient(135deg, var(--pgc7-primary), var(--pgc7-primary-dark));
  border-radius: var(--pgc7-radius); padding: 1.4rem; text-align: center;
  color: #FFFFFF; box-shadow: var(--pgc7-shadow); margin: 1.2rem 0;
}
.pgc7-cta-banner h3 { color: #FFFFFF; font-size: 1.6rem; }
.pgc7-cta-banner p { color: rgba(255,255,255,0.9); margin: 0.4rem 0 1rem; }

/* ---------- Footer ---------- */
.pgc7-footer {
  background: #16202B; color: var(--pgc7-muted);
  padding: 2rem 1.2rem 1rem; margin-top: 1.6rem;
  border-top: 0.2rem solid rgba(60,179,113,0.35);
}
.pgc7-footer-brand { color: var(--pgc7-text); font-size: 1.2rem; margin-bottom: 1rem; }
.pgc7-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin-bottom: 1rem;
}
.pgc7-footer-links a { color: var(--pgc7-muted); font-size: 1.15rem; }
.pgc7-footer-links a:hover { color: var(--pgc7-primary); }
.pgc7-footer-promos { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.pgc7-footer-promos .pgc7-btn { font-size: 1.15rem; padding: 0.5rem 1rem; }
.pgc7-footer-copy { font-size: 1.1rem; color: var(--pgc7-muted); border-top: 0.1rem solid rgba(211,211,211,0.1); padding-top: 1rem; text-align: center; }

/* ---------- Bottom navigation ---------- */
.pgc7-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--pgc7-bottomnav-h);
  background: linear-gradient(180deg, #1F2D3D, #16202B);
  border-top: 0.2rem solid rgba(60,179,113,0.45);
  display: flex; justify-content: space-around; align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -0.4rem 1rem rgba(0,0,0,0.3);
}

.pgc7-bottomnav-btn {
  flex: 1; min-width: 6rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--pgc7-muted);
  font-size: 1.05rem; gap: 0.2rem; cursor: pointer;
  padding: 0.4rem 0.2rem; position: relative;
  transition: color 0.2s ease, transform 0.15s ease;
}
.pgc7-bottomnav-btn .material-icons,
.pgc7-bottomnav-btn ion-icon,
.pgc7-bottomnav-btn i { font-size: 2.2rem; }
.pgc7-bottomnav-btn:active { transform: scale(0.9); }
.pgc7-bottomnav-btn:hover { color: var(--pgc7-text-bright); }
.pgc7-bottomnav-btn.pgc7-active { color: var(--pgc7-primary); }
.pgc7-bottomnav-btn.pgc7-active::before {
  content: ""; position: absolute; top: 0;
  width: 2.4rem; height: 0.25rem; border-radius: 0 0 0.3rem 0.3rem;
  background: var(--pgc7-primary);
}
.pgc7-bottomnav-btn .pgc7-badge {
  position: absolute; top: 0.4rem; right: 1rem;
  background: var(--pgc7-danger); color: #fff; font-size: 0.9rem;
  min-width: 1.4rem; height: 1.4rem; border-radius: 1rem;
  display: flex; align-items: center; justify-content: center; padding: 0 0.3rem;
}

/* ---------- Back to top ---------- */
.pgc7-to-top {
  position: fixed; right: 1.2rem; bottom: calc(var(--pgc7-bottomnav-h) + 1rem);
  width: 3.8rem; height: 3.8rem; border-radius: 50%;
  background: var(--pgc7-accent); color: #1C2833; border: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; cursor: pointer; z-index: 900;
  box-shadow: var(--pgc7-shadow);
}
.pgc7-to-top:active { transform: scale(0.92); }

/* ---------- Desktop rules ---------- */
@media (min-width: 769px) {
  .pgc7-bottomnav { display: none; }
  .pgc7-container, .pgc7-wrapper, .pgc7-header-inner { max-width: 430px; }
  main { padding-bottom: 2rem; }
  .pgc7-to-top { display: none; }
}

/* ---------- Mobile small screens ---------- */
@media (max-width: 430px) {
  :root { --pgc7-header-h: 5.4rem; }
  .pgc7-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .pgc7-game-item img { width: 4.6rem; height: 4.6rem; }
  .pgc7-game-name { font-size: 1rem; }
  .pgc7-carousel-slide img { height: 15rem; }
  .pgc7-brand-name { font-size: 1.35rem; }
  .pgc7-section-title { font-size: 1.55rem; }
}

@media (max-width: 360px) {
  .pgc7-grid { grid-template-columns: repeat(2, 1fr); }
  .pgc7-btn { padding: 0.6rem 0.9rem; font-size: 1.15rem; }
}
