/**
 * 1bet.click - Core Stylesheet
 * Prefix: g51a-
 * Color palette: #2C3E50 (dark bg), #6C757D (secondary), #ADFF2F (accent),
 *   #B8860B (gold), #FFCC02 (bright gold), #EEE8AA (light text)
 */

:root {
  --g51a-primary: #2C3E50;
  --g51a-secondary: #6C757D;
  --g51a-accent: #ADFF2F;
  --g51a-gold: #B8860B;
  --g51a-bright: #FFCC02;
  --g51a-light: #EEE8AA;
  --g51a-bg: #1a2332;
  --g51a-card-bg: #243447;
  --g51a-text: #f0f0f0;
  --g51a-text-dim: #a0aab5;
  --g51a-border: #34495e;
  --g51a-success: #27ae60;
  --g51a-danger: #e74c3c;
  --g51a-radius: 8px;
  --g51a-header-h: 56px;
  --g51a-bottom-h: 60px;
  font-size: 62.5%;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--g51a-bg);
  color: var(--g51a-text);
  font-size: 1.5rem;
  line-height: 1.5;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--g51a-accent); text-decoration: none; }
a:hover { color: var(--g51a-bright); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Header */
.g51a-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--g51a-header-h);
  background: var(--g51a-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
  border-bottom: 2px solid var(--g51a-gold);
}
.g51a-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.g51a-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}
.g51a-logo-area span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g51a-bright);
  letter-spacing: 0.5px;
}
.g51a-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.g51a-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: var(--g51a-radius);
  font-size: 1.3rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 36px;
  min-width: 70px;
}
.g51a-btn:hover { transform: scale(1.03); }
.g51a-btn-register {
  background: var(--g51a-accent);
  color: var(--g51a-primary);
}
.g51a-btn-login {
  background: transparent;
  color: var(--g51a-light);
  border: 1.5px solid var(--g51a-gold);
}
.g51a-hamburger {
  background: none;
  border: none;
  color: var(--g51a-light);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* Mobile Menu Overlay */
.g51a-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
}
.g51a-overlay-active { display: block; }

/* Mobile Slide Menu */
.g51a-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100%;
  background: var(--g51a-card-bg);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.g51a-menu-open { right: 0; }
.g51a-menu-closed { right: -280px; }
.g51a-menu-close {
  background: none;
  border: none;
  color: var(--g51a-text-dim);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}
.g51a-menu-title {
  font-size: 1.6rem;
  color: var(--g51a-bright);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--g51a-border);
}
.g51a-menu-link {
  display: block;
  padding: 1rem 0;
  color: var(--g51a-text);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--g51a-border);
  transition: color 0.2s;
}
.g51a-menu-link:hover { color: var(--g51a-accent); }

/* Main content area */
.g51a-main {
  margin-top: var(--g51a-header-h);
  padding-bottom: 2rem;
}

/* Carousel / Slider */
.g51a-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
}
.g51a-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.g51a-slide img {
  width: 100%;
  height: auto;
  min-height: 180px;
  object-fit: cover;
}
.g51a-slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 0.8rem;
  cursor: pointer;
  z-index: 5;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.g51a-slide-prev { left: 8px; }
.g51a-slide-next { right: 8px; }
.g51a-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.g51a-slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
  transition: background 0.3s;
}
.g51a-dot-active { background: var(--g51a-accent); }

/* Sections */
.g51a-section {
  padding: 2rem 1.2rem;
}
.g51a-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g51a-bright);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.g51a-section-title i, .g51a-section-title .material-icons {
  font-size: 2rem;
  color: var(--g51a-accent);
}

/* Game Grid */
.g51a-game-category {
  margin-bottom: 2rem;
}
.g51a-cat-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--g51a-light);
  margin-bottom: 1rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--g51a-gold);
}
.g51a-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.g51a-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.g51a-game-item:hover { transform: translateY(-2px); }
.g51a-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--g51a-radius);
  border: 1px solid var(--g51a-border);
  object-fit: cover;
}
.g51a-game-item span {
  display: block;
  font-size: 1.1rem;
  color: var(--g51a-text-dim);
  margin-top: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Content Cards */
.g51a-card {
  background: var(--g51a-card-bg);
  border-radius: var(--g51a-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--g51a-border);
}
.g51a-card h3 {
  font-size: 1.5rem;
  color: var(--g51a-bright);
  margin-bottom: 0.8rem;
}
.g51a-card p, .g51a-card ul {
  color: var(--g51a-text-dim);
  font-size: 1.3rem;
  line-height: 1.6;
}
.g51a-card ul li {
  padding: 0.3rem 0;
  padding-left: 1.2rem;
  position: relative;
}
.g51a-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--g51a-accent);
}

/* Promo Banner */
.g51a-promo-banner {
  background: linear-gradient(135deg, var(--g51a-primary), var(--g51a-gold));
  padding: 1.5rem;
  border-radius: var(--g51a-radius);
  text-align: center;
  margin: 1.5rem 1.2rem;
}
.g51a-promo-banner h3 {
  color: var(--g51a-bright);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.g51a-promo-banner p {
  color: var(--g51a-light);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.g51a-btn-promo {
  background: var(--g51a-accent);
  color: var(--g51a-primary);
  font-weight: 700;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.2s;
}
.g51a-btn-promo:hover { transform: scale(1.05); box-shadow: 0 4px 15px rgba(173,255,47,0.3); }

/* Testimonials */
.g51a-testimonial {
  background: var(--g51a-card-bg);
  border-radius: var(--g51a-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--g51a-gold);
}
.g51a-testimonial-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--g51a-accent);
}
.g51a-testimonial-text {
  font-size: 1.2rem;
  color: var(--g51a-text-dim);
  margin-top: 0.4rem;
  font-style: italic;
}
.g51a-testimonial-stars {
  color: var(--g51a-bright);
  font-size: 1.2rem;
  margin-top: 0.3rem;
}

/* Winners */
.g51a-winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--g51a-border);
}
.g51a-winner-name { font-size: 1.3rem; color: var(--g51a-accent); }
.g51a-winner-amount { font-size: 1.3rem; color: var(--g51a-bright); font-weight: 700; }
.g51a-winner-game { font-size: 1.1rem; color: var(--g51a-text-dim); }

/* Payment icons row */
.g51a-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  padding: 1rem 0;
}
.g51a-pay-icon {
  background: var(--g51a-card-bg);
  border: 1px solid var(--g51a-border);
  border-radius: 6px;
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--g51a-text-dim);
}

/* FAQ */
.g51a-faq-item {
  margin-bottom: 1rem;
}
.g51a-faq-q {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--g51a-bright);
  margin-bottom: 0.4rem;
}
.g51a-faq-a {
  font-size: 1.3rem;
  color: var(--g51a-text-dim);
  padding-left: 1rem;
  border-left: 2px solid var(--g51a-gold);
}

/* Footer */
.g51a-footer {
  background: var(--g51a-primary);
  padding: 2rem 1.2rem 6rem;
  border-top: 2px solid var(--g51a-gold);
}
.g51a-footer-brand {
  font-size: 1.3rem;
  color: var(--g51a-text-dim);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.g51a-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.g51a-footer-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--g51a-card-bg);
  border: 1px solid var(--g51a-border);
  border-radius: 20px;
  font-size: 1.2rem;
  color: var(--g51a-light);
  transition: all 0.2s;
}
.g51a-footer-link:hover {
  background: var(--g51a-gold);
  color: var(--g51a-primary);
}
.g51a-footer-copy {
  font-size: 1.1rem;
  color: var(--g51a-text-dim);
  text-align: center;
  margin-top: 1rem;
}

/* Bottom Navigation */
.g51a-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--g51a-bottom-h);
  background: var(--g51a-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 2px solid var(--g51a-gold);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.4);
}
.g51a-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(--g51a-text-dim);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.4rem;
  border-radius: 8px;
}
.g51a-bottom-btn:hover,
.g51a-bottom-btn:focus {
  color: var(--g51a-accent);
  transform: scale(1.08);
}
.g51a-bottom-btn.g51a-active {
  color: var(--g51a-accent);
}
.g51a-bottom-btn i,
.g51a-bottom-btn .material-icons,
.g51a-bottom-btn ion-icon,
.g51a-bottom-btn bi {
  font-size: 22px;
  margin-bottom: 2px;
}
.g51a-bottom-btn span {
  font-size: 1rem;
  font-weight: 500;
}

/* Help page specific */
.g51a-help-content {
  padding: 2rem 1.2rem;
  padding-bottom: 6rem;
}
.g51a-help-content h1 {
  font-size: 2rem;
  color: var(--g51a-bright);
  margin-bottom: 1rem;
}
.g51a-help-content h2 {
  font-size: 1.6rem;
  color: var(--g51a-accent);
  margin: 1.5rem 0 0.8rem;
}
.g51a-help-content p {
  font-size: 1.3rem;
  color: var(--g51a-text-dim);
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Promo text link */
.g51a-text-link {
  color: var(--g51a-accent);
  font-weight: 700;
  cursor: pointer;
  border-bottom: 1px dashed var(--g51a-accent);
  transition: color 0.2s;
}
.g51a-text-link:hover {
  color: var(--g51a-bright);
}

/* Internal link style */
.g51a-internal-link {
  color: var(--g51a-light);
  text-decoration: underline;
  text-decoration-color: var(--g51a-gold);
  transition: color 0.2s;
}
.g51a-internal-link:hover {
  color: var(--g51a-accent);
}

/* Back to top button */
.g51a-back-top {
  position: fixed;
  bottom: 75px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: var(--g51a-gold);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Desktop: hide bottom nav, show wider layout */
@media (min-width: 769px) {
  body { max-width: 100%; }
  .g51a-header { max-width: 100%; }
  .g51a-bottom-nav { display: none; }
  .g51a-main { padding-bottom: 2rem; }
  .g51a-footer { padding-bottom: 2rem; }
  .g51a-game-grid { grid-template-columns: repeat(6, 1fr); }
}

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