/**
 * SuperAceJili - Main Stylesheet
 * Prefix: wb665-
 * Color Palette: #1A1A2E | #16213E | #F8F8FF | #E94560 | #A8A8B3
 */

/* === CSS Variables === */
:root {
  --wb665-primary: #E94560;
  --wb665-primary-dark: #C73652;
  --wb665-bg: #1A1A2E;
  --wb665-bg-secondary: #16213E;
  --wb665-bg-card: #1F2B47;
  --wb665-text: #F8F8FF;
  --wb665-text-muted: #A8A8B3;
  --wb665-accent: #E94560;
  --wb665-border: #2A3A5C;
  --wb665-gold: #FFD700;
  --wb665-success: #2ECC71;
  --wb665-radius: 1.2rem;
  --wb665-radius-sm: 0.8rem;
  --wb665-shadow: 0 0.4rem 1.2rem rgba(0,0,0,0.3);
  --wb665-transition: all 0.3s ease;
  font-size: 62.5%;
}

/* === Reset & Base === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--wb665-bg);
  color: var(--wb665-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--wb665-accent); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

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

/* === Header === */
.wb665-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(135deg, var(--wb665-bg), var(--wb665-bg-secondary));
  border-bottom: 0.1rem solid var(--wb665-border);
  z-index: 1000;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(10px);
}
.wb665-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.wb665-logo {
  width: 3rem;
  height: 3rem;
  border-radius: 0.6rem;
}
.wb665-site-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wb665-text);
  letter-spacing: 0.05rem;
}
.wb665-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.wb665-btn-register, .wb665-btn-login {
  padding: 0.5rem 1rem;
  border-radius: var(--wb665-radius-sm);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--wb665-transition);
}
.wb665-btn-register {
  background: var(--wb665-primary);
  color: var(--wb665-text);
}
.wb665-btn-register:hover {
  background: var(--wb665-primary-dark);
  transform: scale(1.05);
}
.wb665-btn-login {
  background: transparent;
  color: var(--wb665-text);
  border: 0.1rem solid var(--wb665-border);
}
.wb665-btn-login:hover {
  border-color: var(--wb665-accent);
  color: var(--wb665-accent);
}
.wb665-menu-toggle {
  background: none;
  border: none;
  color: var(--wb665-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}
.wb665-menu-toggle:hover { color: var(--wb665-accent); }

/* === Mobile Menu === */
.wb665-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--wb665-bg-secondary);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.wb665-menu-active { right: 0; }
.wb665-menu-close {
  background: none;
  border: none;
  color: var(--wb665-text);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}
.wb665-menu-close:hover { color: var(--wb665-accent); }
.wb665-menu-list {
  list-style: none;
  margin-top: 3rem;
}
.wb665-menu-item {
  padding: 1rem 0;
  border-bottom: 0.1rem solid var(--wb665-border);
}
.wb665-menu-item a {
  color: var(--wb665-text);
  font-size: 1.4rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: var(--wb665-transition);
}
.wb665-menu-item a:hover { color: var(--wb665-accent); padding-left: 0.5rem; }

/* === Menu Overlay === */
.wb665-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  display: none;
}
.wb665-overlay-active { display: block; }

/* === Carousel === */
.wb665-carousel {
  position: relative;
  margin-top: 5.2rem;
  overflow: hidden;
  border-radius: 0 0 var(--wb665-radius) var(--wb665-radius);
}
.wb665-slide {
  display: none;
  cursor: pointer;
}
.wb665-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 430/200;
  object-fit: cover;
}
.wb665-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}
.wb665-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--wb665-transition);
}
.wb665-dot-active {
  background: var(--wb665-primary);
  width: 2rem;
  border-radius: 0.4rem;
}

/* === Main Content === */
.wb665-main {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}
@media (max-width: 768px) {
  .wb665-main { padding-bottom: 8rem; }
}

/* === Section Title === */
.wb665-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wb665-text);
  margin-bottom: 1rem;
  padding-left: 0.5rem;
  border-left: 0.3rem solid var(--wb665-primary);
}
.wb665-section-subtitle {
  font-size: 1.4rem;
  color: var(--wb665-text-muted);
  margin-bottom: 1.2rem;
}

/* === Game Grid === */
.wb665-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.wb665-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--wb665-transition);
  padding: 0.5rem;
  border-radius: var(--wb665-radius-sm);
}
.wb665-game-item:hover {
  background: var(--wb665-bg-card);
  transform: translateY(-0.2rem);
}
.wb665-game-icon {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 0.8rem;
  object-fit: cover;
  margin-bottom: 0.3rem;
  border: 0.1rem solid var(--wb665-border);
}
.wb665-game-name {
  font-size: 1rem;
  color: var(--wb665-text);
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 6.5rem;
}

/* === Category Tabs === */
.wb665-cat-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--wb665-text);
  margin: 1.5rem 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.wb665-cat-title i, .wb665-cat-title .material-icons {
  color: var(--wb665-primary);
}

/* === Cards === */
.wb665-card {
  background: var(--wb665-bg-card);
  border-radius: var(--wb665-radius);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 0.1rem solid var(--wb665-border);
  transition: var(--wb665-transition);
}
.wb665-card:hover {
  border-color: var(--wb665-primary);
  box-shadow: var(--wb665-shadow);
}
.wb665-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wb665-text);
  margin-bottom: 0.8rem;
}
.wb665-card-text {
  font-size: 1.3rem;
  color: var(--wb665-text-muted);
  line-height: 1.6;
}

/* === Buttons === */
.wb665-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--wb665-radius-sm);
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--wb665-transition);
  text-decoration: none;
}
.wb665-btn-primary {
  background: linear-gradient(135deg, var(--wb665-primary), var(--wb665-primary-dark));
  color: var(--wb665-text);
}
.wb665-btn-primary:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.6rem 1.5rem rgba(233,69,96,0.4);
}
.wb665-btn-outline {
  background: transparent;
  color: var(--wb665-primary);
  border: 0.2rem solid var(--wb665-primary);
}
.wb665-btn-outline:hover {
  background: var(--wb665-primary);
  color: var(--wb665-text);
}

/* === Affiliate Link === */
.wb665-affiliate-text {
  color: var(--wb665-accent);
  font-weight: 600;
  cursor: pointer;
  transition: var(--wb665-transition);
}
.wb665-affiliate-text:hover {
  color: var(--wb665-gold);
  text-decoration: underline;
}

/* === Footer === */
.wb665-footer {
  background: var(--wb665-bg-secondary);
  padding: 2rem 1.2rem;
  border-top: 0.1rem solid var(--wb665-border);
}
.wb665-footer-brand {
  font-size: 1.3rem;
  color: var(--wb665-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.wb665-footer-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.wb665-footer-btns .wb665-btn {
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  flex: 1;
  min-width: calc(50% - 0.3rem);
  text-align: center;
}
.wb665-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.5rem;
}
.wb665-footer-links a {
  color: var(--wb665-text-muted);
  font-size: 1.2rem;
  transition: var(--wb665-transition);
}
.wb665-footer-links a:hover { color: var(--wb665-accent); }
.wb665-copyright {
  text-align: center;
  color: var(--wb665-text-muted);
  font-size: 1.1rem;
  padding-top: 1rem;
  border-top: 0.1rem solid var(--wb665-border);
}

/* === Bottom Nav (Mobile) === */
.wb665-bnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(180deg, var(--wb665-bg-secondary), #0F1629);
  border-top: 0.1rem solid var(--wb665-border);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 0.3rem;
}
.wb665-bnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--wb665-text-muted);
  cursor: pointer;
  transition: var(--wb665-transition);
  padding: 0.3rem;
  border-radius: 0.6rem;
  position: relative;
}
.wb665-bnav-btn:hover, .wb665-bnav-active {
  color: var(--wb665-primary);
}
.wb665-bnav-btn:active {
  transform: scale(0.92);
}
.wb665-bnav-icon {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.wb665-bnav-label {
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
}
.wb665-bnav-active .wb665-bnav-icon {
  color: var(--wb665-primary);
}
.wb665-bnav-active .wb665-bnav-label {
  color: var(--wb665-primary);
  font-weight: 600;
}

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

/* === Winners Table === */
.wb665-winners {
  background: var(--wb665-bg-card);
  border-radius: var(--wb665-radius);
  padding: 1rem;
  border: 0.1rem solid var(--wb665-border);
}
.wb665-winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 0.1rem solid var(--wb665-border);
  font-size: 1.2rem;
}
.wb665-winner-row:last-child { border-bottom: none; }
.wb665-winner-name { color: var(--wb665-text); font-weight: 500; }
.wb665-winner-game { color: var(--wb665-text-muted); }
.wb665-winner-amount { color: var(--wb665-gold); font-weight: 700; }

/* === Promo Banner === */
.wb665-promo-banner {
  background: linear-gradient(135deg, var(--wb665-primary-dark), var(--wb665-bg-secondary));
  border-radius: var(--wb665-radius);
  padding: 1.5rem;
  text-align: center;
  border: 0.1rem solid var(--wb665-primary);
  margin-bottom: 1.2rem;
}
.wb665-promo-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wb665-gold);
  margin-bottom: 0.5rem;
}
.wb665-promo-text {
  font-size: 1.2rem;
  color: var(--wb665-text);
  margin-bottom: 1rem;
}

/* === Payment Methods === */
.wb665-pay-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}
.wb665-pay-item {
  background: var(--wb665-bg-card);
  border-radius: var(--wb665-radius-sm);
  padding: 0.8rem 1.2rem;
  font-size: 1.2rem;
  color: var(--wb665-text);
  border: 0.1rem solid var(--wb665-border);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* === Testimonial === */
.wb665-testimonial {
  background: var(--wb665-bg-card);
  border-radius: var(--wb665-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 0.3rem solid var(--wb665-primary);
}
.wb665-testimonial-user {
  font-weight: 600;
  color: var(--wb665-text);
  margin-bottom: 0.4rem;
  font-size: 1.3rem;
}
.wb665-testimonial-text {
  font-size: 1.2rem;
  color: var(--wb665-text-muted);
  line-height: 1.5;
}

/* === FAQ Accordion === */
.wb665-faq-item {
  background: var(--wb665-bg-card);
  border-radius: var(--wb665-radius-sm);
  margin-bottom: 0.8rem;
  padding: 1rem 1.2rem;
  border: 0.1rem solid var(--wb665-border);
}
.wb665-faq-q {
  font-weight: 600;
  color: var(--wb665-text);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.wb665-faq-a {
  color: var(--wb665-text-muted);
  font-size: 1.2rem;
  line-height: 1.5;
}

/* === Achievement Badge === */
.wb665-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--wb665-bg-card);
  padding: 0.4rem 0.8rem;
  border-radius: 2rem;
  font-size: 1.1rem;
  color: var(--wb665-gold);
  border: 0.1rem solid var(--wb665-gold);
}

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

/* === Page Content Spacing === */
.wb665-content-section {
  margin-bottom: 2rem;
}
.wb665-content-section p {
  color: var(--wb665-text-muted);
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}
.wb665-content-section ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.wb665-content-section li {
  color: var(--wb665-text-muted);
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 0.4rem;
}

/* === H1/H2/H3 Styles === */
.wb665-h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--wb665-text);
  line-height: 1.3;
  margin-bottom: 1rem;
}
.wb665-h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--wb665-text);
  line-height: 1.3;
  margin-bottom: 0.8rem;
}
.wb665-h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--wb665-text);
  margin-bottom: 0.6rem;
}
