/**
 * 4777bet - Core Design Stylesheet
 * All classes prefixed with "pg12-" for namespace isolation
 * Color palette: #262626 | #CD853F | #D8BFD8 | #B03060 | #DC143C
 * Mobile-first responsive design (max-width: 430px)
 */

/* CSS Variables */
:root {
  --pg12-bg: #262626;
  --pg12-bg-light: #333333;
  --pg12-bg-card: #1e1e1e;
  --pg12-primary: #CD853F;
  --pg12-accent: #DC143C;
  --pg12-rose: #B03060;
  --pg12-thistle: #D8BFD8;
  --pg12-text: #f0f0f0;
  --pg12-text-muted: #b0b0b0;
  --pg12-text-gold: #FFD700;
  --pg12-border: #444444;
  --pg12-radius: 0.8rem;
  --pg12-radius-sm: 0.4rem;
  font-size: 62.5%;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--pg12-bg);
  color: var(--pg12-text);
  font-size: 1.6rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
}
a { color: var(--pg12-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--pg12-accent); }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.pg12-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--pg12-bg-light), var(--pg12-bg));
  border-bottom: 1px solid var(--pg12-border);
  max-width: 430px; margin: 0 auto;
}
.pg12-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem; height: 5.4rem;
}
.pg12-logo-area { display: flex; align-items: center; gap: 0.6rem; }
.pg12-logo-area img { width: 3rem; height: 3rem; border-radius: 50%; }
.pg12-logo-area span { font-size: 1.8rem; font-weight: 700; color: var(--pg12-primary); }
.pg12-header-actions { display: flex; align-items: center; gap: 0.8rem; }
.pg12-btn-register {
  background: var(--pg12-accent); color: #fff; border: none;
  padding: 0.6rem 1.4rem; border-radius: var(--pg12-radius-sm);
  font-size: 1.3rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.pg12-btn-register:hover { background: #b01030; transform: scale(1.05); }
.pg12-btn-login {
  background: transparent; color: var(--pg12-primary);
  border: 1px solid var(--pg12-primary);
  padding: 0.6rem 1.4rem; border-radius: var(--pg12-radius-sm);
  font-size: 1.3rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.pg12-btn-login:hover { background: rgba(205,133,63,0.15); transform: scale(1.05); }
.pg12-menu-toggle {
  background: none; border: none; color: var(--pg12-text); cursor: pointer;
  font-size: 2.4rem; display: flex; align-items: center;
}

/* Mobile Menu */
.pg12-menu-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9998;
}
.pg12-mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: 75%;
  background: var(--pg12-bg-card); z-index: 9999;
  transform: translateX(100%); transition: transform 0.3s ease;
  padding: 2rem 1.5rem; max-width: 300px;
}
.pg12-mobile-menu-close {
  background: none; border: none; color: var(--pg12-text);
  font-size: 2.4rem; cursor: pointer; position: absolute;
  top: 1rem; right: 1rem;
}
.pg12-mobile-menu a {
  display: block; padding: 1.2rem 0; font-size: 1.5rem;
  color: var(--pg12-text); border-bottom: 1px solid var(--pg12-border);
}
.pg12-mobile-menu a:hover { color: var(--pg12-primary); }

/* Slider / Carousel */
.pg12-slider { position: relative; overflow: hidden; margin-top: 5.4rem; }
.pg12-slide {
  display: none; width: 100%; cursor: pointer;
}
.pg12-slide.pg12-slide-active { display: block; }
.pg12-slide img { width: 100%; height: auto; aspect-ratio: 16/8; object-fit: cover; }
.pg12-slider-dots {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.6rem;
}
.pg12-slide-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
}
.pg12-slide-dot.pg12-dot-active { background: var(--pg12-primary); }

/* Main Content */
.pg12-main { padding: 1.5rem 1.2rem; }
.pg12-section { margin-bottom: 3rem; }
.pg12-section-title {
  font-size: 2rem; font-weight: 700; color: var(--pg12-primary);
  margin-bottom: 1.2rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--pg12-rose);
}

/* Game Grid */
.pg12-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.pg12-game-item {
  text-align: center; cursor: pointer; transition: transform 0.2s;
}
.pg12-game-item:hover { transform: translateY(-3px); }
.pg12-game-item img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: var(--pg12-radius-sm); border: 2px solid var(--pg12-border);
  transition: border-color 0.2s;
}
.pg12-game-item:hover img { border-color: var(--pg12-primary); }
.pg12-game-name {
  font-size: 1.1rem; color: var(--pg12-text-muted); margin-top: 0.3rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Category label */
.pg12-cat-label {
  font-size: 1.8rem; font-weight: 700; color: var(--pg12-thistle);
  margin: 2rem 0 1rem; display: flex; align-items: center; gap: 0.6rem;
}

/* Cards */
.pg12-card {
  background: var(--pg12-bg-card); border-radius: var(--pg12-radius);
  padding: 1.5rem; margin-bottom: 1.5rem;
  border: 1px solid var(--pg12-border);
}
.pg12-card h3 { color: var(--pg12-primary); margin-bottom: 0.8rem; font-size: 1.7rem; }
.pg12-card p { color: var(--pg12-text-muted); line-height: 1.6; font-size: 1.4rem; }

/* Promo Button */
.pg12-promo-btn {
  display: inline-block; background: linear-gradient(135deg, var(--pg12-accent), var(--pg12-rose));
  color: #fff; padding: 1rem 2.5rem; border-radius: var(--pg12-radius);
  font-size: 1.5rem; font-weight: 700; cursor: pointer; border: none;
  text-align: center; transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(220,20,60,0.3);
}
.pg12-promo-btn:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(220,20,60,0.5); }
.pg12-promo-text { color: var(--pg12-primary); font-weight: 700; cursor: pointer; }
.pg12-promo-text:hover { color: var(--pg12-accent); text-decoration: underline; }

/* Features grid */
.pg12-features-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.pg12-feature-item {
  background: var(--pg12-bg-light); padding: 1.2rem; border-radius: var(--pg12-radius-sm);
  text-align: center; border: 1px solid var(--pg12-border);
}
.pg12-feature-item .material-icons { font-size: 2.8rem; color: var(--pg12-primary); }
.pg12-feature-item h4 { font-size: 1.3rem; color: var(--pg12-text); margin: 0.5rem 0 0.3rem; }
.pg12-feature-item p { font-size: 1.1rem; color: var(--pg12-text-muted); }

/* Winners table */
.pg12-winners-list { list-style: none; }
.pg12-winners-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.8rem 0; border-bottom: 1px solid var(--pg12-border);
  font-size: 1.3rem;
}
.pg12-winners-list .pg12-winner-name { color: var(--pg12-thistle); }
.pg12-winners-list .pg12-winner-amount { color: var(--pg12-text-gold); font-weight: 700; }

/* Payment icons */
.pg12-payment-row {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  padding: 1rem 0;
}
.pg12-payment-item {
  background: var(--pg12-bg-light); padding: 0.6rem 1.2rem;
  border-radius: var(--pg12-radius-sm); font-size: 1.2rem;
  color: var(--pg12-text-muted); border: 1px solid var(--pg12-border);
}

/* Testimonials */
.pg12-testimonial {
  background: var(--pg12-bg-light); border-radius: var(--pg12-radius);
  padding: 1.2rem; margin-bottom: 1rem;
  border-left: 3px solid var(--pg12-primary);
}
.pg12-testimonial p { font-size: 1.3rem; color: var(--pg12-text-muted); font-style: italic; }
.pg12-testimonial .pg12-testi-author {
  font-size: 1.1rem; color: var(--pg12-primary); margin-top: 0.5rem;
  font-style: normal; font-weight: 600;
}

/* Footer */
.pg12-footer {
  background: var(--pg12-bg-card); padding: 2rem 1.2rem 10rem;
  border-top: 2px solid var(--pg12-primary);
}
.pg12-footer-desc { color: var(--pg12-text-muted); font-size: 1.3rem; margin-bottom: 1.5rem; line-height: 1.6; }
.pg12-footer-links { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.5rem; }
.pg12-footer-links a {
  background: var(--pg12-bg-light); padding: 0.5rem 1rem;
  border-radius: var(--pg12-radius-sm); font-size: 1.2rem;
  color: var(--pg12-thistle); border: 1px solid var(--pg12-border);
  transition: all 0.2s;
}
.pg12-footer-links a:hover { border-color: var(--pg12-primary); color: var(--pg12-primary); }
.pg12-footer-copy { text-align: center; color: var(--pg12-text-muted); font-size: 1.1rem; margin-top: 1rem; }

/* Bottom Navigation */
.pg12-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, var(--pg12-bg-light), #111111);
  border-top: 1px solid var(--pg12-border);
  display: flex; justify-content: space-around; align-items: center;
  height: 6rem; max-width: 430px; margin: 0 auto;
}
.pg12-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 6rem; min-height: 5rem; background: none; border: none;
  color: var(--pg12-text-muted); cursor: pointer; transition: color 0.2s, transform 0.15s;
  gap: 0.2rem;
}
.pg12-bottom-nav-btn:hover, .pg12-bottom-nav-btn.pg12-nav-active {
  color: var(--pg12-primary); transform: scale(1.08);
}
.pg12-bottom-nav-btn i,
.pg12-bottom-nav-btn .material-icons,
.pg12-bottom-nav-btn ion-icon {
  font-size: 2.4rem;
}
.pg12-bottom-nav-btn span { font-size: 1rem; }

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .pg12-bottom-nav { display: none; }
  body { max-width: 430px; }
}

/* Mobile bottom padding for bottom nav */
@media (max-width: 768px) {
  .pg12-main { padding-bottom: 8rem; }
  .pg12-footer { padding-bottom: 10rem; }
}

/* Utility */
.pg12-text-center { text-align: center; }
.pg12-mt-1 { margin-top: 1rem; }
.pg12-mt-2 { margin-top: 2rem; }
.pg12-mb-1 { margin-bottom: 1rem; }
.pg12-mb-2 { margin-bottom: 2rem; }
.pg12-hidden { display: none; }

/* Responsive images */
.pg12-img-responsive { width: 100%; height: auto; border-radius: var(--pg12-radius); }

/* FAQ Accordion */
.pg12-faq-item { margin-bottom: 1rem; }
.pg12-faq-q {
  font-weight: 600; color: var(--pg12-primary); font-size: 1.4rem;
  margin-bottom: 0.4rem;
}
.pg12-faq-a { color: var(--pg12-text-muted); font-size: 1.3rem; padding-left: 1.5rem; line-height: 1.6; }

/* Highlight badge */
.pg12-badge {
  display: inline-block; background: var(--pg12-accent);
  color: #fff; font-size: 1rem; padding: 0.2rem 0.6rem;
  border-radius: 1rem; font-weight: 600; margin-left: 0.5rem;
}

/* Content paragraphs */
.pg12-content p {
  color: var(--pg12-text-muted); font-size: 1.4rem; line-height: 1.6; margin-bottom: 1rem;
}
.pg12-content h2 {
  color: var(--pg12-primary); font-size: 1.8rem; margin: 2rem 0 0.8rem;
}
.pg12-content h3 {
  color: var(--pg12-thistle); font-size: 1.6rem; margin: 1.5rem 0 0.6rem;
}

/* Steps list */
.pg12-steps { counter-reset: pg12-step; list-style: none; }
.pg12-steps li {
  counter-increment: pg12-step; padding: 0.8rem 0 0.8rem 3.5rem;
  position: relative; font-size: 1.3rem; color: var(--pg12-text-muted);
  line-height: 1.5; border-bottom: 1px solid var(--pg12-border);
}
.pg12-steps li::before {
  content: counter(pg12-step);
  position: absolute; left: 0; top: 0.8rem;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--pg12-primary); color: var(--pg12-bg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.2rem;
}

/* Promo link inline */
.pg12-link-promo {
  color: var(--pg12-accent); font-weight: 700; cursor: pointer;
  border-bottom: 1px dashed var(--pg12-accent);
}
.pg12-link-promo:hover { color: var(--pg12-primary); }

/* App download section */
.pg12-app-section {
  background: linear-gradient(135deg, var(--pg12-bg-light), var(--pg12-rose));
  border-radius: var(--pg12-radius); padding: 2rem; text-align: center;
}
.pg12-app-section h3 { color: var(--pg12-primary); font-size: 1.8rem; margin-bottom: 1rem; }
