/**
 * 1333bet register - Layout CSS
 * All classes use prefix: s6af-
 * Color palette: #FF4500 | #3A3A3A | #6C757D | #FF7F50
 */

:root {
  --s6af-primary: #FF4500;
  --s6af-dark: #3A3A3A;
  --s6af-muted: #6C757D;
  --s6af-accent: #FF7F50;
  --s6af-bg: #1a1a2e;
  --s6af-card-bg: #16213e;
  --s6af-text: #ffffff;
  --s6af-text-light: #e0e0e0;
  --s6af-radius: 8px;
  --s6af-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

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

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

/* Header */
.s6af-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--s6af-dark) 0%, #2a2a3e 100%);
  border-bottom: 2px solid var(--s6af-primary);
  max-width: 430px; margin: 0 auto;
}
.s6af-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1rem; height: 52px;
}
.s6af-logo-area {
  display: flex; align-items: center; gap: 0.6rem;
}
.s6af-logo-area img { width: 28px; height: 28px; border-radius: 4px; }
.s6af-logo-area span {
  font-size: 1.4rem; font-weight: 700; color: var(--s6af-primary);
  white-space: nowrap;
}
.s6af-header-btns { display: flex; gap: 0.5rem; }
.s6af-btn-register, .s6af-btn-login {
  padding: 0.5rem 1.2rem; border-radius: 20px; font-size: 1.2rem;
  font-weight: 600; cursor: pointer; border: none; min-height: 32px;
}
.s6af-btn-register {
  background: linear-gradient(135deg, var(--s6af-primary), var(--s6af-accent));
  color: #fff;
}
.s6af-btn-login {
  background: transparent; color: var(--s6af-primary);
  border: 1.5px solid var(--s6af-primary);
}
.s6af-hamburger {
  background: none; border: none; color: var(--s6af-text);
  font-size: 2rem; cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* Mobile Menu */
.s6af-menu-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9998;
}
.s6af-mobile-menu {
  display: none; position: fixed; top: 0; right: 0; bottom: 0;
  width: 260px; background: var(--s6af-dark); z-index: 9999;
  padding: 2rem 1.5rem; overflow-y: auto;
  animation: s6af-slideIn 0.3s ease;
}
@keyframes s6af-slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.s6af-mobile-menu a {
  display: block; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.1);
  color: var(--s6af-text-light); font-size: 1.4rem;
}
.s6af-mobile-menu a:hover { color: var(--s6af-primary); }
.s6af-menu-close {
  background: none; border: none; color: var(--s6af-text);
  font-size: 2.4rem; position: absolute; top: 1rem; right: 1rem; cursor: pointer;
}

/* Main Content */
main { padding-top: 56px; }
@media (max-width: 768px) { main { padding-bottom: 80px; } }

/* Carousel */
.s6af-carousel { position: relative; width: 100%; overflow: hidden; }
.s6af-slide { display: none; width: 100%; cursor: pointer; }
.s6af-slide img { width: 100%; height: 180px; object-fit: cover; border-radius: 0; }
.s6af-dots { text-align: center; padding: 0.6rem 0; background: var(--s6af-dark); }
.s6af-slide-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--s6af-muted); margin: 0 3px; cursor: pointer;
}
.s6af-dot-active { background: var(--s6af-primary); }

/* Section */
.s6af-section { padding: 1.5rem 1.2rem; }
.s6af-section-title {
  font-size: 1.6rem; font-weight: 700; color: var(--s6af-primary);
  margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--s6af-primary);
}
.s6af-section-title i { margin-right: 0.5rem; }

/* Game Grid */
.s6af-cat-label {
  font-size: 1.5rem; font-weight: 700; color: var(--s6af-accent);
  margin: 1.2rem 0 0.8rem; padding-left: 0.5rem;
  border-left: 3px solid var(--s6af-primary);
}
.s6af-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem;
}
.s6af-game-item {
  text-align: center; cursor: pointer; transition: transform 0.2s;
  background: var(--s6af-card-bg); border-radius: var(--s6af-radius);
  padding: 0.5rem 0.3rem;
}
.s6af-game-item:hover { transform: scale(1.05); }
.s6af-game-item img {
  width: 54px; height: 54px; border-radius: 8px; margin: 0 auto 0.3rem;
  border: 1.5px solid rgba(255,255,255,0.15);
}
.s6af-game-item span {
  font-size: 1rem; color: var(--s6af-text-light); line-height: 1.2rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Promo Buttons */
.s6af-promo-btn {
  display: inline-block; padding: 0.8rem 2rem;
  background: linear-gradient(135deg, var(--s6af-primary), var(--s6af-accent));
  color: #fff; font-size: 1.4rem; font-weight: 700; border-radius: 25px;
  cursor: pointer; border: none; text-align: center; margin: 0.5rem 0;
  transition: transform 0.2s, box-shadow 0.2s;
}
.s6af-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255,69,0,0.4);
}
.s6af-promo-text {
  color: var(--s6af-accent); font-weight: 700; cursor: pointer;
  text-decoration: underline;
}

/* Card */
.s6af-card {
  background: var(--s6af-card-bg); border-radius: var(--s6af-radius);
  padding: 1.2rem; margin-bottom: 1rem; border: 1px solid rgba(255,255,255,0.08);
}

/* FAQ Accordion */
.s6af-faq-item { margin-bottom: 0.5rem; }
.s6af-faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem; background: var(--s6af-card-bg); cursor: pointer;
  border-radius: var(--s6af-radius); font-weight: 600; color: var(--s6af-text);
}
.s6af-faq-q:hover { background: var(--s6af-dark); }
.s6af-faq-icon { font-size: 1.6rem; color: var(--s6af-primary); }
.s6af-faq-a {
  display: none; padding: 1rem; background: rgba(255,255,255,0.04);
  border-radius: 0 0 var(--s6af-radius) var(--s6af-radius);
  color: var(--s6af-text-light); line-height: 1.6rem;
}

/* Testimonial */
.s6af-testimonial {
  background: var(--s6af-card-bg); border-radius: var(--s6af-radius);
  padding: 1rem; margin-bottom: 0.8rem; border-left: 3px solid var(--s6af-primary);
}
.s6af-testimonial-author { font-weight: 700; color: var(--s6af-primary); margin-bottom: 0.3rem; }
.s6af-testimonial-text { color: var(--s6af-text-light); font-size: 1.2rem; line-height: 1.5rem; }

/* Footer */
.s6af-footer {
  background: var(--s6af-dark); padding: 2rem 1.2rem 8rem;
  border-top: 2px solid var(--s6af-primary);
}
.s6af-footer-desc { color: var(--s6af-text-light); font-size: 1.2rem; margin-bottom: 1.5rem; line-height: 1.6rem; }
.s6af-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.s6af-footer-links a {
  padding: 0.4rem 0.8rem; background: rgba(255,69,0,0.15);
  color: var(--s6af-accent); border-radius: 4px; font-size: 1.1rem;
}
.s6af-footer-links a:hover { background: var(--s6af-primary); color: #fff; }
.s6af-footer-copy {
  text-align: center; color: var(--s6af-muted); font-size: 1.1rem;
  padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.1);
}

/* Bottom Navigation */
.s6af-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  height: 60px; background: linear-gradient(180deg, #2a2a3e, #1a1a2e);
  border-top: 1.5px solid var(--s6af-primary);
  z-index: 1000; max-width: 430px; margin: 0 auto;
}
.s6af-bottom-nav-inner {
  display: flex; justify-content: space-around; align-items: center;
  height: 100%; padding: 0 0.3rem;
}
.s6af-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(--s6af-muted);
  cursor: pointer; transition: color 0.2s, transform 0.15s;
  padding: 0.3rem;
}
.s6af-nav-btn:hover, .s6af-nav-btn.s6af-active { color: var(--s6af-primary); transform: scale(1.1); }
.s6af-nav-btn i, .s6af-nav-btn .material-icons { font-size: 22px; margin-bottom: 2px; }
.s6af-nav-btn span { font-size: 1rem; line-height: 1.2rem; }

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

/* Mobile: show bottom nav */
@media (max-width: 768px) { .s6af-bottom-nav { display: block; } }

/* Text helpers */
.s6af-text-center { text-align: center; }
.s6af-text-primary { color: var(--s6af-primary); }
.s6af-text-accent { color: var(--s6af-accent); }
.s6af-text-muted { color: var(--s6af-muted); }
.s6af-text-light { color: var(--s6af-text-light); }
.s6af-mb-1 { margin-bottom: 1rem; }
.s6af-mb-2 { margin-bottom: 2rem; }
.s6af-mt-1 { margin-top: 1rem; }
.s6af-p-1 { padding: 1rem; }

/* Promo link underline style */
.s6af-link-promo {
  color: var(--s6af-accent); font-weight: 600;
  text-decoration: underline; cursor: pointer;
}
.s6af-link-promo:hover { color: var(--s6af-primary); }

/* Winner showcase */
.s6af-winner-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.s6af-winner-name { color: var(--s6af-accent); font-weight: 600; font-size: 1.2rem; }
.s6af-winner-amount { color: #4caf50; font-weight: 700; font-size: 1.2rem; }
.s6af-winner-game { color: var(--s6af-muted); font-size: 1rem; }

/* Payment icons row */
.s6af-payment-row { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; padding: 1rem 0; }
.s6af-payment-item {
  background: var(--s6af-card-bg); border-radius: 6px; padding: 0.6rem 1rem;
  font-size: 1.1rem; color: var(--s6af-text-light); border: 1px solid rgba(255,255,255,0.1);
}

/* App download CTA */
.s6af-cta-box {
  background: linear-gradient(135deg, rgba(255,69,0,0.2), rgba(255,127,80,0.1));
  border: 1.5px solid var(--s6af-primary); border-radius: var(--s6af-radius);
  padding: 1.5rem; text-align: center; margin: 1.5rem 0;
}

/* Responsive table */
.s6af-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.s6af-rtp-table th { background: var(--s6af-primary); color: #fff; padding: 0.6rem; text-align: left; }
.s6af-rtp-table td { padding: 0.5rem 0.6rem; border-bottom: 1px solid rgba(255,255,255,0.06); color: var(--s6af-text-light); }
.s6af-rtp-table tr:hover td { background: rgba(255,69,0,0.08); }
