/**
 * okbet cc login - Core Stylesheet
 * All classes use w9fc2- prefix for namespace isolation
 * Color palette: #0A0A0A | #6F4E37 | #8B7355 | #191970 | #F0F8FF
 * Mobile-first design (max-width: 430px)
 */

/* CSS Variables */
:root {
  --w9fc2-bg: #0A0A0A;
  --w9fc2-primary: #6F4E37;
  --w9fc2-secondary: #8B7355;
  --w9fc2-accent: #191970;
  --w9fc2-text: #F0F8FF;
  --w9fc2-card-bg: #141414;
  --w9fc2-border: #2a2a2a;
  --w9fc2-hover: #8B6914;
  --w9fc2-gradient: linear-gradient(135deg, #191970 0%, #6F4E37 100%);
  --w9fc2-shadow: 0 2px 12px rgba(0,0,0,0.4);
  --w9fc2-radius: 8px;
}

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

/* ===== HEADER ===== */
.w9fc2-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #0d0d0d 0%, #111 100%);
  border-bottom: 1px solid var(--w9fc2-border);
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem; height: 52px;
}
.w9fc2-logo-area {
  display: flex; align-items: center; gap: 0.8rem;
}
.w9fc2-logo-area img { width: 28px; height: 28px; border-radius: 6px; }
.w9fc2-logo-area span {
  font-size: 1.4rem; font-weight: 700;
  background: var(--w9fc2-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.w9fc2-header-btns { display: flex; gap: 0.6rem; align-items: center; }
.w9fc2-btn-reg {
  background: var(--w9fc2-gradient); color: var(--w9fc2-text);
  border: none; border-radius: 20px; padding: 0.6rem 1.4rem;
  font-size: 1.2rem; font-weight: 700; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.w9fc2-btn-reg:hover { transform: scale(1.05); box-shadow: 0 0 10px rgba(111,78,55,0.5); }
.w9fc2-btn-login {
  background: transparent; color: var(--w9fc2-secondary);
  border: 1px solid var(--w9fc2-secondary); border-radius: 20px;
  padding: 0.5rem 1.2rem; font-size: 1.2rem; cursor: pointer;
  transition: all 0.15s;
}
.w9fc2-btn-login:hover { background: var(--w9fc2-secondary); color: var(--w9fc2-bg); }
.w9fc2-menu-toggle {
  background: none; border: none; color: var(--w9fc2-text);
  font-size: 2rem; cursor: pointer; padding: 0.4rem;
}

/* ===== MOBILE MENU ===== */
.w9fc2-menu-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.7); z-index: 9998;
}
.w9fc2-overlay-active { display: block; }
.w9fc2-mobile-menu {
  position: fixed; top: 0; right: -280px;
  width: 260px; height: 100%; z-index: 9999;
  background: #111; border-left: 1px solid var(--w9fc2-border);
  transition: right 0.3s ease; padding: 6rem 0 2rem;
  overflow-y: auto;
}
.w9fc2-menu-active { right: 0; }
.w9fc2-menu-close {
  position: absolute; top: 1.2rem; right: 1.4rem;
  background: none; border: none; color: var(--w9fc2-text);
  font-size: 2rem; cursor: pointer;
}
.w9fc2-menu-link {
  display: block; padding: 1.2rem 2rem;
  color: var(--w9fc2-text); font-size: 1.3rem;
  border-bottom: 1px solid var(--w9fc2-border);
  transition: background 0.15s;
}
.w9fc2-menu-link:hover { background: rgba(111,78,55,0.15); }

/* ===== CAROUSEL ===== */
.w9fc2-carousel {
  position: relative; margin-top: 52px;
  overflow: hidden; aspect-ratio: 16/7;
  background: var(--w9fc2-card-bg);
}
.w9fc2-slide {
  display: none; width: 100%; height: 100%;
}
.w9fc2-slide-active { display: block; }
.w9fc2-slide img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.w9fc2-dots {
  position: absolute; bottom: 0.8rem; left: 50%;
  transform: translateX(-50%); display: flex; gap: 0.6rem;
}
.w9fc2-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(240,248,255,0.4); border: none; cursor: pointer;
  transition: background 0.2s;
}
.w9fc2-dot-active { background: var(--w9fc2-primary); }

/* ===== MAIN CONTENT ===== */
.w9fc2-main { padding: 1.6rem 1.2rem 2rem; }
.w9fc2-section { margin-bottom: 2.4rem; }
.w9fc2-title {
  font-size: 1.8rem; font-weight: 800;
  margin-bottom: 1rem; color: var(--w9fc2-text);
  line-height: 2.2rem;
}
.w9fc2-subtitle {
  font-size: 1.5rem; font-weight: 700;
  margin-bottom: 0.8rem; color: var(--w9fc2-secondary);
}
.w9fc2-text { font-size: 1.3rem; line-height: 1.8rem; color: #c8c8c8; }

/* ===== GAME GRID ===== */
.w9fc2-cat-title {
  font-size: 1.4rem; font-weight: 700;
  margin: 1.6rem 0 0.8rem; padding-left: 0.4rem;
  border-left: 3px solid var(--w9fc2-primary);
  color: var(--w9fc2-text);
}
.w9fc2-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.w9fc2-game-item {
  text-align: center; cursor: pointer;
  transition: transform 0.15s;
}
.w9fc2-game-item:hover { transform: translateY(-2px); }
.w9fc2-game-item img {
  width: 100%; aspect-ratio: 1/1;
  border-radius: var(--w9fc2-radius);
  border: 1px solid var(--w9fc2-border);
}
.w9fc2-game-item span {
  display: block; font-size: 1rem; margin-top: 0.3rem;
  color: #aaa; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== CONTENT CARDS ===== */
.w9fc2-card {
  background: var(--w9fc2-card-bg);
  border: 1px solid var(--w9fc2-border);
  border-radius: var(--w9fc2-radius);
  padding: 1.4rem; margin-bottom: 1.2rem;
}
.w9fc2-card-title {
  font-size: 1.4rem; font-weight: 700;
  margin-bottom: 0.6rem; color: var(--w9fc2-primary);
}
.w9fc2-promo-link {
  display: inline-block; color: var(--w9fc2-secondary);
  font-weight: 700; text-decoration: underline;
  cursor: pointer; font-size: 1.3rem;
  transition: color 0.15s;
}
.w9fc2-promo-link:hover { color: var(--w9fc2-primary); }

/* ===== FAQ ===== */
.w9fc2-faq-item {
  border-bottom: 1px solid var(--w9fc2-border);
  padding: 1rem 0;
}
.w9fc2-faq-q {
  font-size: 1.3rem; font-weight: 700;
  color: var(--w9fc2-text); margin-bottom: 0.4rem;
}
.w9fc2-faq-a {
  font-size: 1.2rem; color: #999; line-height: 1.6rem;
}

/* ===== TESTIMONIALS ===== */
.w9fc2-testimonial {
  background: var(--w9fc2-card-bg);
  border: 1px solid var(--w9fc2-border);
  border-radius: var(--w9fc2-radius);
  padding: 1.2rem; margin-bottom: 1rem;
}
.w9fc2-testi-name {
  font-size: 1.2rem; font-weight: 700; color: var(--w9fc2-primary);
}
.w9fc2-testi-text {
  font-size: 1.2rem; color: #bbb; margin-top: 0.4rem; line-height: 1.5rem;
}
.w9fc2-testi-stars { color: #FFD700; font-size: 1.1rem; margin-bottom: 0.3rem; }

/* ===== CTA / PLAY BUTTON ===== */
.w9fc2-cta {
  display: block; text-align: center;
  background: var(--w9fc2-gradient);
  color: var(--w9fc2-text); font-size: 1.5rem; font-weight: 800;
  padding: 1.2rem; border-radius: 30px;
  cursor: pointer; margin: 1.6rem 0;
  transition: transform 0.15s, box-shadow 0.15s;
  border: none; width: 100%;
}
.w9fc2-cta:hover { transform: scale(1.03); box-shadow: 0 0 16px rgba(111,78,55,0.5); }

/* ===== WINNER SHOWCASE ===== */
.w9fc2-winner-row {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--w9fc2-border);
}
.w9fc2-winner-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--w9fc2-accent); display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem; font-weight: 700;
  color: var(--w9fc2-text); flex-shrink: 0;
}
.w9fc2-winner-info { flex: 1; }
.w9fc2-winner-name { font-size: 1.1rem; font-weight: 600; color: var(--w9fc2-text); }
.w9fc2-winner-game { font-size: 1rem; color: #888; }
.w9fc2-winner-amount { font-size: 1.2rem; font-weight: 700; color: #4CAF50; }

/* ===== FOOTER ===== */
.w9fc2-footer {
  background: #0d0d0d;
  border-top: 1px solid var(--w9fc2-border);
  padding: 2rem 1.2rem 1.6rem;
  text-align: center;
}
.w9fc2-footer-brand {
  font-size: 1.3rem; color: #888; line-height: 1.6rem;
  margin-bottom: 1.2rem;
}
.w9fc2-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  justify-content: center; margin-bottom: 1.2rem;
}
.w9fc2-footer-links a {
  color: var(--w9fc2-secondary); font-size: 1.1rem;
  padding: 0.4rem 0.8rem; border: 1px solid var(--w9fc2-border);
  border-radius: 16px; transition: all 0.15s;
}
.w9fc2-footer-links a:hover { background: var(--w9fc2-secondary); color: var(--w9fc2-bg); }
.w9fc2-footer-copy {
  font-size: 1rem; color: #555; margin-top: 0.8rem;
}

/* ===== BOTTOM NAV ===== */
.w9fc2-bnav {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1000; max-width: 430px; margin: 0 auto;
  background: linear-gradient(180deg, #141414 0%, #0a0a0a 100%);
  border-top: 1px solid var(--w9fc2-border);
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; padding: 0 0.4rem;
}
.w9fc2-bnav-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 60px; min-height: 52px;
  background: none; border: none; cursor: pointer;
  color: #777; transition: color 0.15s, transform 0.15s;
  gap: 0.2rem;
}
.w9fc2-bnav-btn:hover { color: var(--w9fc2-primary); transform: scale(1.08); }
.w9fc2-bnav-active { color: var(--w9fc2-primary) !important; }
.w9fc2-bnav-btn .w9fc2-bnav-icon { font-size: 2.2rem; line-height: 1; }
.w9fc2-bnav-btn .w9fc2-bnav-label { font-size: 1rem; }

/* ===== DESKTOP ===== */
@media (min-width: 769px) {
  .w9fc2-bnav { display: none; }
  body { max-width: 430px; }
}

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

/* ===== UTILITY ===== */
.w9fc2-hidden { display: none !important; }
.w9fc2-mt1 { margin-top: 1rem; }
.w9fc2-mb1 { margin-bottom: 1rem; }
.w9fc2-center { text-align: center; }
.w9fc2-flex { display: flex; }
.w9fc2-flex-center { display: flex; align-items: center; justify-content: center; }

/* ===== PAYMENT / PARTNER LOGOS ===== */
.w9fc2-partner-row {
  display: flex; gap: 0.8rem; flex-wrap: wrap;
  justify-content: center; margin: 1rem 0;
}
.w9fc2-partner-item {
  background: var(--w9fc2-card-bg); border: 1px solid var(--w9fc2-border);
  border-radius: var(--w9fc2-radius); padding: 0.5rem 1rem;
  font-size: 1.1rem; color: #888;
}

/* ===== INTERNAL LINKS (SEO) ===== */
.w9fc2-internal-link {
  color: var(--w9fc2-secondary); text-decoration: underline;
  font-size: 1.3rem; cursor: pointer;
}
.w9fc2-internal-link:hover { color: var(--w9fc2-primary); }

/* ===== ACHIEVEMENTS ===== */
.w9fc2-achieve-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem;
}
.w9fc2-achieve-item {
  background: var(--w9fc2-card-bg); border: 1px solid var(--w9fc2-border);
  border-radius: var(--w9fc2-radius); padding: 1rem; text-align: center;
}
.w9fc2-achieve-num {
  font-size: 1.8rem; font-weight: 800; color: var(--w9fc2-primary);
}
.w9fc2-achieve-label {
  font-size: 1rem; color: #888; margin-top: 0.2rem;
}
