/**
 * Bybet Layout Stylesheet
 * File: css/layout-64e9.css
 * Prefix: pg64-
 * Palette: #DEB887 | #D2B48C | #26A69A | #B2DFDB | #333333
 */

/* === CSS Variables === */
:root {
  --pg64-primary: #DEB887;
  --pg64-secondary: #D2B48C;
  --pg64-accent: #26A69A;
  --pg64-light: #B2DFDB;
  --pg64-dark: #333333;
  --pg64-bg: #1a1a2e;
  --pg64-bg-alt: #16213e;
  --pg64-card-bg: #0f3460;
  --pg64-text: #f0f0f0;
  --pg64-text-muted: #a8b2c1;
  --pg64-gold: #DEB887;
  --pg64-border: #2a3a5c;
  --pg64-radius: 1.2rem;
  --pg64-radius-sm: 0.8rem;
  --pg64-shadow: 0 4px 16px rgba(0,0,0,0.3);
  --pg64-transition: all 0.3s ease;
}

/* === Reset & Base === */
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--pg64-bg);
  color: var(--pg64-text);
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--pg64-primary); text-decoration: none; transition: var(--pg64-transition); }
a:hover { color: var(--pg64-light); }

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

/* === Header === */
.pg64-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--pg64-dark) 0%, var(--pg64-bg-alt) 100%);
  border-bottom: 2px solid var(--pg64-accent);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.pg64-header-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
}

.pg64-header-logo img {
  width: 28px;
  height: 28px;
  border-radius: 0.4rem;
}

.pg64-header-logo span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg64-primary);
  letter-spacing: 0.5px;
}

.pg64-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pg64-btn-register {
  background: linear-gradient(135deg, var(--pg64-accent) 0%, #1e8a7e 100%);
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--pg64-radius-sm);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--pg64-transition);
  min-height: 36px;
}

.pg64-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 10px rgba(38,166,154,0.4);
}

.pg64-btn-login {
  background: transparent;
  color: var(--pg64-primary);
  border: 1.5px solid var(--pg64-primary);
  padding: 0.6rem 1.2rem;
  border-radius: var(--pg64-radius-sm);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--pg64-transition);
  min-height: 36px;
}

.pg64-btn-login:hover {
  background: var(--pg64-primary);
  color: var(--pg64-dark);
}

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

/* === Mobile Menu === */
.pg64-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100vh;
  background: var(--pg64-bg-alt);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.6rem;
  overflow-y: auto;
}

.pg64-menu-active { right: 0; }

.pg64-mobile-menu .pg64-menu-close {
  background: none;
  border: none;
  color: var(--pg64-text);
  font-size: 2.2rem;
  cursor: pointer;
  float: right;
  margin-bottom: 1rem;
}

.pg64-mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  clear: both;
}

.pg64-mobile-menu ul li {
  border-bottom: 1px solid var(--pg64-border);
}

.pg64-mobile-menu ul li a {
  display: block;
  padding: 1.2rem 0;
  font-size: 1.4rem;
  color: var(--pg64-text);
  transition: var(--pg64-transition);
}

.pg64-mobile-menu ul li a:hover {
  color: var(--pg64-primary);
  padding-left: 0.6rem;
}

.pg64-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
}

.pg64-overlay-active { display: block; }

/* === Slider === */
.pg64-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--pg64-radius);
  margin-top: 1rem;
  box-shadow: var(--pg64-shadow);
}

.pg64-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.pg64-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.pg64-slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.pg64-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--pg64-transition);
  border: none;
}

.pg64-dot-active {
  background: var(--pg64-primary);
  width: 24px;
  border-radius: 5px;
}

/* === Main Content === */
.pg64-main {
  padding-top: 66px;
  padding-bottom: 20px;
}

/* === Section Titles === */
.pg64-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pg64-primary);
  margin: 2rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--pg64-accent);
}

.pg64-section-title i {
  margin-right: 0.6rem;
}

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

.pg64-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--pg64-transition);
  border-radius: var(--pg64-radius-sm);
  padding: 0.6rem;
}

.pg64-game-item:hover {
  background: var(--pg64-card-bg);
  transform: translateY(-2px);
}

.pg64-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--pg64-radius-sm);
  margin-bottom: 0.4rem;
}

.pg64-game-item span {
  font-size: 1.1rem;
  color: var(--pg64-text-muted);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === Category Header === */
.pg64-cat-header {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--pg64-light);
  margin: 1.8rem 0 0.8rem;
  padding-left: 1rem;
  border-left: 3px solid var(--pg64-accent);
}

/* === Cards === */
.pg64-card {
  background: var(--pg64-card-bg);
  border-radius: var(--pg64-radius);
  padding: 1.6rem;
  margin: 1rem 0;
  box-shadow: var(--pg64-shadow);
  border: 1px solid var(--pg64-border);
}

.pg64-card h2, .pg64-card h3 {
  color: var(--pg64-primary);
  margin-top: 0;
}

/* === Promo Buttons === */
.pg64-btn-promo {
  display: inline-block;
  background: linear-gradient(135deg, var(--pg64-accent) 0%, var(--pg64-primary) 100%);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: var(--pg64-radius-sm);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--pg64-transition);
  text-align: center;
  min-height: 44px;
}

.pg64-btn-promo:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(38,166,154,0.5);
}

.pg64-text-link {
  color: var(--pg64-accent);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px dashed var(--pg64-accent);
}

.pg64-text-link:hover {
  color: var(--pg64-light);
}

/* === Footer === */
.pg64-footer {
  background: var(--pg64-dark);
  padding: 2rem 1.2rem;
  margin-top: 2rem;
  border-top: 2px solid var(--pg64-accent);
}

.pg64-footer-brand {
  font-size: 1.3rem;
  color: var(--pg64-text-muted);
  line-height: 1.8rem;
  margin-bottom: 1.2rem;
}

.pg64-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}

.pg64-footer-links a {
  font-size: 1.2rem;
  color: var(--pg64-text-muted);
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--pg64-border);
  border-radius: var(--pg64-radius-sm);
  transition: var(--pg64-transition);
}

.pg64-footer-links a:hover {
  color: var(--pg64-primary);
  border-color: var(--pg64-primary);
}

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

/* === Bottom Navigation === */
.pg64-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--pg64-bg-alt) 0%, var(--pg64-dark) 100%);
  border-top: 1.5px solid var(--pg64-accent);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.4);
}

.pg64-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--pg64-text-muted);
  cursor: pointer;
  transition: var(--pg64-transition);
  padding: 0.4rem;
  position: relative;
}

.pg64-bottom-nav-btn i,
.pg64-bottom-nav-btn .material-icons-outlined {
  font-size: 22px;
  margin-bottom: 2px;
}

.pg64-bottom-nav-btn span {
  font-size: 1rem;
  color: inherit;
}

.pg64-bottom-nav-btn:hover,
.pg64-nav-active {
  color: var(--pg64-primary);
  transform: scale(1.1);
}

.pg64-bottom-nav-btn:active {
  transform: scale(0.95);
}

.pg64-nav-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 2px;
  background: var(--pg64-primary);
  border-radius: 0 0 2px 2px;
}

/* === Feature/Info Blocks === */
.pg64-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.pg64-feature-item {
  background: var(--pg64-card-bg);
  border-radius: var(--pg64-radius-sm);
  padding: 1.2rem;
  text-align: center;
  border: 1px solid var(--pg64-border);
  transition: var(--pg64-transition);
}

.pg64-feature-item:hover {
  border-color: var(--pg64-accent);
  transform: translateY(-2px);
}

.pg64-feature-item i {
  font-size: 2.4rem;
  color: var(--pg64-accent);
  margin-bottom: 0.6rem;
}

.pg64-feature-item h3 {
  font-size: 1.3rem;
  color: var(--pg64-primary);
  margin: 0.4rem 0;
}

.pg64-feature-item p {
  font-size: 1.1rem;
  color: var(--pg64-text-muted);
  margin: 0;
}

/* === Winners List === */
.pg64-winner-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pg64-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--pg64-border);
  font-size: 1.2rem;
}

.pg64-winner-name {
  color: var(--pg64-primary);
  font-weight: 600;
}

.pg64-winner-amount {
  color: var(--pg64-accent);
  font-weight: 700;
}

/* === Testimonials === */
.pg64-testimonial {
  background: var(--pg64-card-bg);
  border-radius: var(--pg64-radius);
  padding: 1.4rem;
  margin: 0.8rem 0;
  border-left: 3px solid var(--pg64-accent);
}

.pg64-testimonial p {
  font-size: 1.2rem;
  color: var(--pg64-text-muted);
  font-style: italic;
  margin: 0 0 0.6rem 0;
}

.pg64-testimonial-author {
  font-size: 1.1rem;
  color: var(--pg64-primary);
  font-weight: 600;
}

/* === Payment Methods === */
.pg64-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin: 1rem 0;
}

.pg64-payment-item {
  background: var(--pg64-card-bg);
  border: 1px solid var(--pg64-border);
  border-radius: var(--pg64-radius-sm);
  padding: 0.8rem 1.2rem;
  font-size: 1.2rem;
  color: var(--pg64-text);
}

/* === Responsive === */
@media (max-width: 768px) {
  .pg64-main {
    padding-bottom: 80px;
  }
}

@media (min-width: 769px) {
  .pg64-bottom-nav { display: none; }
  .pg64-container { max-width: 430px; }
}

/* === Utility === */
.pg64-text-center { text-align: center; }
.pg64-mt-1 { margin-top: 1rem; }
.pg64-mt-2 { margin-top: 2rem; }
.pg64-mb-1 { margin-bottom: 1rem; }
.pg64-mb-2 { margin-bottom: 2rem; }
.pg64-hidden { display: none; }
.pg64-text-sm { font-size: 1.1rem; }
.pg64-text-gold { color: var(--pg64-primary); }
.pg64-text-accent { color: var(--pg64-accent); }

/* === FAQ Accordion === */
.pg64-faq-item {
  border-bottom: 1px solid var(--pg64-border);
  padding: 1rem 0;
}

.pg64-faq-q {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--pg64-primary);
  margin-bottom: 0.4rem;
}

.pg64-faq-a {
  font-size: 1.2rem;
  color: var(--pg64-text-muted);
  line-height: 1.6rem;
}

/* === Tricks/Tips List === */
.pg64-tips-list {
  list-style: none;
  padding: 0;
  counter-reset: pg64-counter;
}

.pg64-tips-list li {
  counter-increment: pg64-counter;
  padding: 0.8rem 0 0.8rem 3rem;
  position: relative;
  font-size: 1.2rem;
  color: var(--pg64-text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.pg64-tips-list li::before {
  content: counter(pg64-counter);
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 2.2rem;
  height: 2.2rem;
  background: var(--pg64-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
}
