/**
 * JL95 CSS Stylesheet
 * All classes use prefix "v413-" for namespace isolation
 * Color palette: #00BFFF | #1E90FF | #0C0C0C | #F8F9FA | #BDC3C7 | #DCDCDC
 */

/* CSS Variables */
:root {
  --v413-primary: #00BFFF;
  --v413-secondary: #1E90FF;
  --v413-bg: #0C0C0C;
  --v413-text: #F8F9FA;
  --v413-muted: #BDC3C7;
  --v413-border: #DCDCDC;
  --v413-dark-surface: #1a1a2e;
  --v413-card-bg: #16213e;
  --v413-accent: #00BFFF;
  --v413-gold: #FFD700;
  --v413-success: #2ecc71;
  --v413-danger: #e74c3c;
  --v413-header-height: 56px;
  --v413-bottom-nav-height: 60px;
}

/* Root font sizing (62.5% = 10px base for rem units) */
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--v413-bg);
  color: var(--v413-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
}

a {
  color: var(--v413-primary);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ============ HEADER ============ */
.v413-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--v413-header-height);
  background: linear-gradient(135deg, #0C0C0C 0%, #1a1a2e 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 191, 255, 0.3);
}

.v413-header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.v413-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.v413-site-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v413-primary);
  letter-spacing: 0.5px;
}

.v413-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.v413-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  color: #fff;
}

.v413-btn-register {
  background: linear-gradient(135deg, var(--v413-primary), var(--v413-secondary));
  box-shadow: 0 2px 8px rgba(0, 191, 255, 0.3);
}

.v413-btn-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 191, 255, 0.5);
}

.v413-btn-login {
  background: transparent;
  border: 1.5px solid var(--v413-primary);
  color: var(--v413-primary);
}

.v413-btn-login:hover {
  background: rgba(0, 191, 255, 0.1);
}

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

/* ============ MOBILE MENU ============ */
.v413-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.v413-overlay-active {
  opacity: 1;
  pointer-events: auto;
}

.v413-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--v413-dark-surface);
  z-index: 9999;
  transition: right 0.35s ease;
  overflow-y: auto;
  padding: 2rem 1.5rem;
}

.v413-menu-open {
  right: 0;
}

.v413-mobile-menu .v413-menu-close {
  background: none;
  border: none;
  color: var(--v413-text);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1.2rem;
}

.v413-mobile-menu nav {
  margin-top: 3rem;
}

.v413-mobile-menu nav a {
  display: block;
  padding: 1rem 0;
  color: var(--v413-text);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.2s;
}

.v413-mobile-menu nav a:hover {
  color: var(--v413-primary);
}

/* ============ CAROUSEL ============ */
.v413-carousel {
  position: relative;
  width: 100%;
  margin-top: var(--v413-header-height);
  overflow: hidden;
  border-radius: 0 0 1.2rem 1.2rem;
}

.v413-slides-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;
}

.v413-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.v413-slide-active {
  opacity: 1;
}

.v413-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v413-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}

.v413-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s;
}

.v413-dot-active {
  background: var(--v413-primary);
  width: 20px;
  border-radius: 4px;
}

/* ============ MAIN CONTENT ============ */
.v413-main {
  padding: 1.5rem 1.2rem;
}

.v413-section {
  margin-bottom: 2.5rem;
}

.v413-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v413-primary);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid rgba(0, 191, 255, 0.2);
}

/* ============ GAME GRID ============ */
.v413-game-category {
  margin-bottom: 2rem;
}

.v413-category-label {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--v413-secondary);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.v413-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.v413-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.v413-game-item:hover {
  transform: scale(1.05);
}

.v413-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid rgba(0, 191, 255, 0.15);
  transition: border-color 0.2s;
}

.v413-game-item:hover img {
  border-color: var(--v413-primary);
}

.v413-game-item span {
  display: block;
  font-size: 1rem;
  color: var(--v413-muted);
  margin-top: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ CONTENT CARDS ============ */
.v413-card {
  background: var(--v413-card-bg);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 191, 255, 0.1);
}

.v413-card h3 {
  font-size: 1.5rem;
  color: var(--v413-primary);
  margin-bottom: 0.8rem;
}

.v413-card p {
  font-size: 1.3rem;
  color: var(--v413-muted);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.v413-card ul {
  list-style: none;
  padding: 0;
}

.v413-card ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 1.3rem;
  color: var(--v413-muted);
}

.v413-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 6px;
  height: 6px;
  background: var(--v413-primary);
  border-radius: 50%;
}

/* ============ PROMO CTA ============ */
.v413-cta-btn {
  display: block;
  width: 100%;
  padding: 1.4rem;
  background: linear-gradient(135deg, var(--v413-primary), var(--v413-secondary));
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3);
}

.v413-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 191, 255, 0.5);
}

.v413-text-link {
  color: var(--v413-primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* ============ FAQ ============ */
.v413-faq-item {
  background: var(--v413-card-bg);
  border-radius: 0.8rem;
  margin-bottom: 0.8rem;
  overflow: hidden;
}

.v413-faq-q {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--v413-text);
  padding: 1.2rem;
  cursor: pointer;
}

.v413-faq-a {
  font-size: 1.2rem;
  color: var(--v413-muted);
  padding: 0 1.2rem 1.2rem;
  line-height: 1.5;
}

/* ============ STATS BAR ============ */
.v413-stats {
  display: flex;
  justify-content: space-around;
  padding: 1.2rem 0;
  margin: 1.5rem 0;
}

.v413-stat-item {
  text-align: center;
}

.v413-stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--v413-primary);
}

.v413-stat-label {
  font-size: 1.1rem;
  color: var(--v413-muted);
}

/* ============ FOOTER ============ */
.v413-footer {
  background: var(--v413-dark-surface);
  padding: 2rem 1.2rem;
  border-top: 1px solid rgba(0, 191, 255, 0.15);
}

.v413-footer-brand {
  font-size: 1.3rem;
  color: var(--v413-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.v413-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.v413-footer-links a {
  padding: 0.6rem 1rem;
  background: rgba(0, 191, 255, 0.08);
  border-radius: 6px;
  font-size: 1.1rem;
  color: var(--v413-primary);
  transition: background 0.2s;
}

.v413-footer-links a:hover {
  background: rgba(0, 191, 255, 0.2);
}

.v413-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.3);
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============ BOTTOM NAVIGATION ============ */
.v413-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--v413-bottom-nav-height);
  background: linear-gradient(180deg, #1a1a2e 0%, #0C0C0C 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 1px solid rgba(0, 191, 255, 0.25);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.5);
}

.v413-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  color: var(--v413-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0.4rem;
}

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

.v413-bottom-btn .v413-nav-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.v413-bottom-btn .v413-nav-label {
  font-size: 10px;
  font-weight: 500;
}

.v413-bottom-btn-active {
  color: var(--v413-primary) !important;
}

.v413-bottom-btn-active .v413-nav-icon {
  filter: drop-shadow(0 0 6px rgba(0, 191, 255, 0.6));
}

/* ============ TESTIMONIALS ============ */
.v413-testimonial {
  background: var(--v413-card-bg);
  border-radius: 1rem;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--v413-primary);
}

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

.v413-testimonial-text {
  font-size: 1.2rem;
  color: var(--v413-muted);
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* ============ WINNER SHOWCASE ============ */
.v413-winner-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  background: var(--v413-card-bg);
  border-radius: 0.8rem;
  margin-bottom: 0.6rem;
}

.v413-winner-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--v413-primary);
}

.v413-winner-info {
  flex: 1;
}

.v413-winner-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--v413-text);
}

.v413-winner-amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--v413-gold);
}

/* ============ PAYMENT METHODS ============ */
.v413-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.v413-payment-item {
  background: var(--v413-card-bg);
  border-radius: 0.8rem;
  padding: 0.8rem 1.2rem;
  font-size: 1.2rem;
  color: var(--v413-muted);
  border: 1px solid rgba(0, 191, 255, 0.1);
}

/* ============ RESPONSIVE ============ */
@media (min-width: 769px) {
  .v413-bottom-nav {
    display: none;
  }
  body {
    max-width: 430px;
  }
}

@media (max-width: 768px) {
  .v413-main,
  .v413-footer {
    padding-bottom: 80px;
  }
}
