/**
 * The VIP App - Main Stylesheet
 * Prefix: pgb2-
 * Color Palette: #FFCC33 (gold/accent) | #34495E (deep navy/bg)
 * Mobile-first responsive design, max-width: 430px
 */

/* CSS Variables */
:root {
  --pgb2-primary: #FFCC33;
  --pgb2-bg: #34495E;
  --pgb2-bg-dark: #2C3E50;
  --pgb2-bg-darker: #1A252F;
  --pgb2-text: #F0F0F0;
  --pgb2-text-muted: #BDC3C7;
  --pgb2-accent: #FFCC33;
  --pgb2-accent-hover: #FFD94A;
  --pgb2-card-bg: #2C3E50;
  --pgb2-border: #4A6274;
  --pgb2-success: #2ECC71;
  --pgb2-danger: #E74C3C;
  --pgb2-gold: #F1C40F;
  --pgb2-radius: 8px;
  --pgb2-radius-lg: 12px;
  --pgb2-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --pgb2-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--pgb2-bg-dark);
  color: var(--pgb2-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--pgb2-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--pgb2-accent-hover);
  text-decoration: underline;
}

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

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

/* Header */
.pgb2-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--pgb2-bg-darker), var(--pgb2-bg-dark));
  border-bottom: 2px solid var(--pgb2-accent);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 430px;
  margin: 0 auto;
}

.pgb2-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pgb2-header-logo {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.pgb2-header-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pgb2-accent);
  letter-spacing: 0.5px;
}

.pgb2-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pgb2-btn-register,
.pgb2-btn-login {
  padding: 0.5rem 1.2rem;
  border-radius: var(--pgb2-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.pgb2-btn-register {
  background: var(--pgb2-accent);
  color: var(--pgb2-bg-darker);
}

.pgb2-btn-register:hover {
  background: var(--pgb2-accent-hover);
  transform: scale(1.03);
}

.pgb2-btn-login {
  background: transparent;
  color: var(--pgb2-accent);
  border: 1.5px solid var(--pgb2-accent);
}

.pgb2-btn-login:hover {
  background: rgba(255, 204, 51, 0.1);
}

.pgb2-menu-toggle {
  background: none;
  border: none;
  color: var(--pgb2-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* Mobile Menu */
.pgb2-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(26, 37, 47, 0.97);
  padding: 6rem 2rem 2rem;
  animation: pgb2-fadeIn 0.25s ease;
}

@keyframes pgb2-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pgb2-mobile-menu-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--pgb2-text);
  font-size: 2.4rem;
  cursor: pointer;
}

.pgb2-mobile-menu a {
  display: block;
  padding: 1.2rem 0;
  font-size: 1.6rem;
  color: var(--pgb2-text);
  border-bottom: 1px solid var(--pgb2-border);
  transition: color 0.2s;
}

.pgb2-mobile-menu a:hover {
  color: var(--pgb2-accent);
  text-decoration: none;
}

/* Main Content */
.pgb2-main {
  padding-top: 5.5rem;
  min-height: 100vh;
}

/* Carousel */
.pgb2-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--pgb2-radius-lg);
  margin-bottom: 1.5rem;
}

.pgb2-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.pgb2-carousel-slide {
  min-width: 100%;
  cursor: pointer;
}

.pgb2-carousel-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--pgb2-radius-lg);
}

.pgb2-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.pgb2-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pgb2-border);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.pgb2-dot-active {
  background: var(--pgb2-accent);
  width: 20px;
  border-radius: 4px;
}

/* Section Headings */
.pgb2-section {
  margin-bottom: 2rem;
}

.pgb2-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pgb2-accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--pgb2-accent);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pgb2-section-title .material-icons {
  font-size: 2rem;
}

/* Game Grid */
.pgb2-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.pgb2-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  padding: 0.5rem;
  border-radius: var(--pgb2-radius);
  background: var(--pgb2-card-bg);
}

.pgb2-game-item:hover {
  transform: scale(1.04);
}

.pgb2-game-item img {
  width: 60px;
  height: 60px;
  border-radius: var(--pgb2-radius);
  object-fit: cover;
  margin-bottom: 0.3rem;
}

.pgb2-game-name {
  font-size: 1rem;
  color: var(--pgb2-text-muted);
  text-align: center;
  line-height: 1.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

/* Cards & Content Blocks */
.pgb2-card {
  background: var(--pgb2-card-bg);
  border-radius: var(--pgb2-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--pgb2-border);
}

.pgb2-card h2 {
  font-size: 1.6rem;
  color: var(--pgb2-accent);
  margin-bottom: 0.8rem;
}

.pgb2-card h3 {
  font-size: 1.4rem;
  color: var(--pgb2-accent);
  margin-bottom: 0.6rem;
}

.pgb2-card p {
  font-size: 1.3rem;
  line-height: 1.6rem;
  color: var(--pgb2-text-muted);
  margin-bottom: 0.8rem;
}

/* CTA Button */
.pgb2-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--pgb2-accent), #E6B800);
  color: var(--pgb2-bg-darker);
  font-weight: 700;
  font-size: 1.4rem;
  padding: 1rem 2rem;
  border-radius: var(--pgb2-radius);
  cursor: pointer;
  border: none;
  text-align: center;
  transition: all 0.2s ease;
  width: 100%;
  touch-action: manipulation;
}

.pgb2-cta:hover {
  background: linear-gradient(135deg, var(--pgb2-accent-hover), #FFD633);
  transform: scale(1.02);
  text-decoration: none;
  color: var(--pgb2-bg-darker);
}

/* Promo Link (text) */
.pgb2-promo-link {
  color: var(--pgb2-accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.pgb2-promo-link:hover {
  color: var(--pgb2-accent-hover);
}

/* Feature List */
.pgb2-feature-list {
  list-style: none;
  padding: 0;
}

.pgb2-feature-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 204, 51, 0.1);
  font-size: 1.3rem;
  color: var(--pgb2-text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.pgb2-feature-list li i,
.pgb2-feature-list li .material-icons {
  color: var(--pgb2-accent);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Footer */
.pgb2-footer {
  background: var(--pgb2-bg-darker);
  padding: 2rem 1rem;
  border-top: 2px solid var(--pgb2-accent);
}

.pgb2-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.pgb2-footer-brand p {
  font-size: 1.2rem;
  color: var(--pgb2-text-muted);
  line-height: 1.5rem;
  margin-bottom: 0.4rem;
}

.pgb2-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.pgb2-footer-link {
  padding: 0.5rem 1rem;
  background: var(--pgb2-card-bg);
  border: 1px solid var(--pgb2-border);
  border-radius: var(--pgb2-radius);
  color: var(--pgb2-accent);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.pgb2-footer-link:hover {
  background: var(--pgb2-accent);
  color: var(--pgb2-bg-darker);
  text-decoration: none;
}

.pgb2-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--pgb2-text-muted);
  border-top: 1px solid var(--pgb2-border);
  padding-top: 1rem;
}

/* Bottom Navigation (Mobile) */
.pgb2-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--pgb2-bg-darker), #0F1923);
  border-top: 1.5px solid var(--pgb2-accent);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 0.3rem;
  max-width: 430px;
  margin: 0 auto;
}

.pgb2-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 50px;
  background: none;
  border: none;
  color: var(--pgb2-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0.4rem;
  border-radius: var(--pgb2-radius);
  touch-action: manipulation;
}

.pgb2-bottom-btn:hover,
.pgb2-bottom-btn:active {
  color: var(--pgb2-accent);
  transform: scale(1.1);
}

.pgb2-bottom-btn.active {
  color: var(--pgb2-accent);
}

.pgb2-bottom-btn i,
.pgb2-bottom-btn .material-icons,
.pgb2-bottom-btn ion-icon {
  font-size: 22px;
  margin-bottom: 0.1rem;
}

.pgb2-bottom-btn span {
  font-size: 1rem;
  line-height: 1.2rem;
}

/* Testimonial */
.pgb2-testimonial {
  background: var(--pgb2-card-bg);
  border-radius: var(--pgb2-radius-lg);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--pgb2-accent);
}

.pgb2-testimonial-name {
  font-weight: 700;
  color: var(--pgb2-accent);
  font-size: 1.3rem;
}

.pgb2-testimonial-text {
  font-size: 1.2rem;
  color: var(--pgb2-text-muted);
  font-style: italic;
  margin-top: 0.4rem;
}

/* Winner Display */
.pgb2-winner-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 204, 51, 0.1);
  font-size: 1.2rem;
}

.pgb2-winner-name {
  color: var(--pgb2-accent);
  font-weight: 600;
}

.pgb2-winner-amount {
  color: var(--pgb2-success);
  font-weight: 700;
}

/* Payment Methods */
.pgb2-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.pgb2-payment-item {
  background: var(--pgb2-card-bg);
  border: 1px solid var(--pgb2-border);
  border-radius: var(--pgb2-radius);
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
  color: var(--pgb2-text-muted);
}

/* Help page styles */
.pgb2-help-section {
  margin-bottom: 2rem;
}

.pgb2-help-section h2 {
  font-size: 1.6rem;
  color: var(--pgb2-accent);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pgb2-help-section p,
.pgb2-help-section li {
  font-size: 1.3rem;
  line-height: 1.6rem;
  color: var(--pgb2-text-muted);
}

.pgb2-help-section ol,
.pgb2-help-section ul {
  padding-left: 1.8rem;
  margin-bottom: 1rem;
}

.pgb2-help-section li {
  margin-bottom: 0.5rem;
}

.pgb2-faq-item {
  background: var(--pgb2-card-bg);
  border-radius: var(--pgb2-radius);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  border: 1px solid var(--pgb2-border);
}

.pgb2-faq-q {
  font-weight: 700;
  color: var(--pgb2-accent);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.pgb2-faq-a {
  font-size: 1.3rem;
  color: var(--pgb2-text-muted);
  line-height: 1.5rem;
}

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .pgb2-bottom-nav {
    display: none;
  }
}

/* Mobile: add bottom padding for fixed nav */
@media (max-width: 768px) {
  .pgb2-main {
    padding-bottom: 80px;
  }
}

/* Utility classes */
.pgb2-text-center { text-align: center; }
.pgb2-text-gold { color: var(--pgb2-accent); }
.pgb2-mt-1 { margin-top: 1rem; }
.pgb2-mt-2 { margin-top: 2rem; }
.pgb2-mb-1 { margin-bottom: 1rem; }
.pgb2-mb-2 { margin-bottom: 2rem; }
