/*!
 * wk777 com login - Site Stylesheet
 * All custom classes use the s0d8- prefix for namespace isolation.
 * Palette: #1B263B base / #ADD8E6 light / #00B8D4 accent / #A9A9A9 muted / #5F9EA0 support
 */
:root {
  --s0d8-bg: #1B263B;
  --s0d8-bg-2: #243349;
  --s0d8-bg-3: #0f1a2c;
  --s0d8-surface: #2a3c57;
  --s0d8-primary: #00B8D4;
  --s0d8-primary-dark: #0094ab;
  --s0d8-text: #ADD8E6;
  --s0d8-text-strong: #ffffff;
  --s0d8-muted: #A9A9A9;
  --s0d8-support: #5F9EA0;
  --s0d8-gold: #ffce4f;
  --s0d8-success: #34d399;
  --s0d8-danger: #f87171;
  --s0d8-radius: 1.2rem;
  --s0d8-radius-sm: 0.8rem;
  --s0d8-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --s0d8-shadow-strong: 0 10px 28px rgba(0, 0, 0, 0.55);
  --s0d8-transition: 0.25s ease;
  --s0d8-max: 430px;
  --s0d8-header-h: 56px;
  --s0d8-bottom-h: 62px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", system-ui, -apple-system, "Roboto", sans-serif;
  font-size: 62.5%;
  line-height: 1.5rem;
  color: var(--s0d8-text);
  background: var(--s0d8-bg);
  min-height: 100%;
}

body {
  background: radial-gradient(circle at 50% -10%, var(--s0d8-bg-2) 0%, var(--s0d8-bg) 45%, var(--s0d8-bg-3) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

a { color: var(--s0d8-primary); text-decoration: none; }
a:hover { color: var(--s0d8-gold); }
img { max-width: 100%; display: block; }

/* Layout containers */
.s0d8-wrapper {
  width: 100%;
  max-width: var(--s0d8-max);
  margin: 0 auto;
  padding: 0 1.2rem;
}

.s0d8-container {
  width: 100%;
  max-width: var(--s0d8-max);
  margin: 0 auto;
}

main { padding-bottom: calc(var(--s0d8-bottom-h) + 20px); }

/* ===== Header ===== */
.s0d8-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--s0d8-header-h);
  z-index: 1000;
  background: rgba(15, 26, 44, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 184, 212, 0.18);
  transition: var(--s0d8-transition);
}
.s0d8-header-scrolled {
  background: rgba(15, 26, 44, 0.98);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.s0d8-header-inner {
  max-width: var(--s0d8-max);
  margin: 0 auto;
  height: 100%;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.s0d8-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--s0d8-text-strong);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}
.s0d8-logo img { width: 28px; height: 28px; border-radius: 6px; }
.s0d8-logo small {
  display: block;
  font-size: 1rem;
  color: var(--s0d8-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1rem;
}

.s0d8-header-actions { display: flex; align-items: center; gap: 0.4rem; }
.s0d8-menu-btn {
  background: transparent;
  border: 0;
  color: var(--s0d8-text);
  font-size: 1.6rem;
  width: 36px; height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.s0d8-menu-btn:hover, .s0d8-menu-btn.s0d8-active {
  background: rgba(0, 184, 212, 0.18);
  color: var(--s0d8-primary);
}

.s0d8-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--s0d8-transition);
  min-height: 36px;
  line-height: 1;
}
.s0d8-btn-primary {
  background: linear-gradient(135deg, var(--s0d8-primary) 0%, var(--s0d8-primary-dark) 100%);
  color: #001821;
  box-shadow: 0 4px 12px rgba(0, 184, 212, 0.45);
}
.s0d8-btn-primary:hover { transform: translateY(-1px); color: #001821; box-shadow: 0 8px 18px rgba(0, 184, 212, 0.55); }
.s0d8-btn-gold {
  background: linear-gradient(135deg, #ffdf6b 0%, var(--s0d8-gold) 100%);
  color: #3a2700;
  box-shadow: 0 4px 12px rgba(255, 206, 79, 0.35);
}
.s0d8-btn-gold:hover { transform: translateY(-1px); color: #3a2700; }
.s0d8-btn-ghost {
  background: transparent;
  border: 1px solid var(--s0d8-primary);
  color: var(--s0d8-primary);
}
.s0d8-btn-ghost:hover { background: rgba(0, 184, 212, 0.12); }
.s0d8-btn-block { display: flex; width: 100%; }

/* ===== Mobile menu ===== */
.s0d8-mobile-menu {
  position: fixed;
  top: var(--s0d8-header-h);
  left: 0; right: 0;
  max-height: 0;
  overflow: hidden;
  background: var(--s0d8-bg-2);
  border-bottom: 1px solid rgba(0, 184, 212, 0.18);
  z-index: 9999;
  transition: max-height 0.3s ease;
}
.s0d8-mobile-menu.s0d8-menu-open { max-height: 80vh; overflow-y: auto; }
.s0d8-mobile-menu ul { list-style: none; margin: 0; padding: 0.4rem 0; }
.s0d8-mobile-menu li { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.s0d8-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 1.4rem;
  color: var(--s0d8-text);
  font-size: 1.35rem;
}
.s0d8-mobile-menu a i { color: var(--s0d8-primary); font-size: 1.5rem; }
.s0d8-mobile-menu a:hover { background: rgba(0, 184, 212, 0.12); color: var(--s0d8-text-strong); }

/* ===== Hero / Carousel ===== */
.s0d8-hero {
  margin-top: calc(var(--s0d8-header-h) + 12px);
  position: relative;
  border-radius: var(--s0d8-radius);
  overflow: hidden;
  box-shadow: var(--s0d8-shadow);
}
.s0d8-carousel { position: relative; }
.s0d8-slide {
  position: relative;
  display: none;
  cursor: pointer;
}
.s0d8-slide.s0d8-slide-active { display: block; }
.s0d8-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--s0d8-radius);
}
.s0d8-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.2rem;
  background: linear-gradient(to top, rgba(15, 26, 44, 0.95) 25%, transparent 100%);
  color: var(--s0d8-text-strong);
  font-size: 1.35rem;
  font-weight: 700;
}
.s0d8-slide-caption span { color: var(--s0d8-gold); }

.s0d8-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.s0d8-dot {
  width: 8px; height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
}
.s0d8-dot.s0d8-dot-active { background: var(--s0d8-primary); width: 22px; border-radius: 4px; }

/* ===== Section titles ===== */
.s0d8-section {
  margin: 2rem 0;
}
.s0d8-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.s0d8-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--s0d8-text-strong);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}
.s0d8-section-title i { color: var(--s0d8-primary); }
.s0d8-section-more {
  font-size: 1.2rem;
  color: var(--s0d8-primary);
  font-weight: 600;
}

/* ===== H1 hero text ===== */
.s0d8-h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--s0d8-text-strong);
  line-height: 1.3;
  margin: 1.6rem 0 0.6rem;
  text-align: center;
}
.s0d8-h1 span { color: var(--s0d8-gold); }
.s0d8-subtitle {
  text-align: center;
  color: var(--s0d8-muted);
  font-size: 1.25rem;
  margin: 0 0 1.2rem;
}

/* ===== Category title ===== */
.s0d8-cat-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--s0d8-text-strong);
  margin: 1.6rem 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid rgba(0, 184, 212, 0.35);
}
.s0d8-cat-title i { color: var(--s0d8-primary); }
.s0d8-cat-title small { color: var(--s0d8-muted); font-size: 1.1rem; margin-left: auto; font-weight: 400; }

/* ===== Game grid ===== */
.s0d8-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.s0d8-game-card {
  background: var(--s0d8-surface);
  border-radius: var(--s0d8-radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 1px solid rgba(0, 184, 212, 0.1);
  transition: var(--s0d8-transition);
}
.s0d8-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--s0d8-primary);
  box-shadow: 0 8px 18px rgba(0, 184, 212, 0.25);
}
.s0d8-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.s0d8-game-name {
  padding: 0.45rem 0.4rem;
  font-size: 1.1rem;
  color: var(--s0d8-text);
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s0d8-game-badge {
  position: absolute;
  top: 4px; left: 4px;
  background: var(--s0d8-danger);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.s0d8-game-badge.s0d8-badge-hot { background: linear-gradient(135deg, #ff7a3d, #ff4040); }
.s0d8-game-badge.s0d8-badge-new { background: linear-gradient(135deg, var(--s0d8-success), #06a774); }

/* ===== Promo banner ===== */
.s0d8-promo-banner {
  background: linear-gradient(135deg, var(--s0d8-primary) 0%, var(--s0d8-support) 100%);
  border-radius: var(--s0d8-radius);
  padding: 1.2rem;
  color: #001821;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--s0d8-shadow);
  margin: 1.2rem 0;
}
.s0d8-promo-banner i { font-size: 2.4rem; }
.s0d8-promo-banner strong { font-size: 1.5rem; display: block; }
.s0d8-promo-banner small { font-size: 1.15rem; opacity: 0.85; }

/* ===== Cards ===== */
.s0d8-card {
  background: var(--s0d8-surface);
  border-radius: var(--s0d8-radius);
  padding: 1.2rem;
  box-shadow: var(--s0d8-shadow);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.s0d8-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.45rem;
  color: var(--s0d8-text-strong);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.s0d8-card h3 i { color: var(--s0d8-gold); }
.s0d8-card p { margin: 0 0 0.6rem; font-size: 1.25rem; line-height: 1.5; color: var(--s0d8-text); }
.s0d8-card a { font-weight: 600; }

/* ===== Features grid ===== */
.s0d8-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.s0d8-feature {
  background: var(--s0d8-surface);
  border-radius: var(--s0d8-radius-sm);
  padding: 1rem;
  text-align: center;
  border: 1px solid rgba(0, 184, 212, 0.1);
}
.s0d8-feature i { font-size: 2.2rem; color: var(--s0d8-primary); margin-bottom: 0.4rem; }
.s0d8-feature strong { display: block; font-size: 1.25rem; color: var(--s0d8-text-strong); }
.s0d8-feature small { color: var(--s0d8-muted); font-size: 1.1rem; }

/* ===== RTP bars ===== */
.s0d8-rtp-row { margin-bottom: 0.7rem; }
.s0d8-rtp-row-top {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  color: var(--s0d8-text);
  margin-bottom: 3px;
}
.s0d8-rtp-row-top span:last-child { color: var(--s0d8-gold); font-weight: 700; }
.s0d8-rtp-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}
.s0d8-rtp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--s0d8-primary), var(--s0d8-gold));
  border-radius: 3px;
}

/* ===== Testimonials ===== */
.s0d8-testimonial {
  background: var(--s0d8-surface);
  border-radius: var(--s0d8-radius-sm);
  padding: 1rem;
  margin-bottom: 0.7rem;
  border-left: 3px solid var(--s0d8-gold);
}
.s0d8-testimonial-head {
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem;
}
.s0d8-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--s0d8-primary), var(--s0d8-support));
  color: #001821;
  font-weight: 700;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.s0d8-testimonial strong { color: var(--s0d8-text-strong); font-size: 1.25rem; }
.s0d8-stars { color: var(--s0d8-gold); font-size: 1.1rem; margin-left: auto; }
.s0d8-testimonial p { margin: 0; font-size: 1.2rem; color: var(--s0d8-text); }

/* ===== Winners list ===== */
.s0d8-winner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 1.2rem;
}
.s0d8-winner:last-child { border-bottom: 0; }
.s0d8-winner .s0d8-amount { margin-left: auto; color: var(--s0d8-success); font-weight: 700; }

/* ===== Payment grid ===== */
.s0d8-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.s0d8-pay-item {
  background: var(--s0d8-surface);
  border-radius: 0.6rem;
  padding: 0.7rem 0.4rem;
  text-align: center;
  font-size: 1rem;
  color: var(--s0d8-text);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.s0d8-pay-item i { font-size: 1.6rem; color: var(--s0d8-primary); display: block; margin-bottom: 2px; }

/* ===== FAQ ===== */
.s0d8-faq-item {
  background: var(--s0d8-surface);
  border-radius: var(--s0d8-radius-sm);
  margin-bottom: 0.6rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.s0d8-faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 1rem 1.1rem;
  text-align: left;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--s0d8-text-strong);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}
.s0d8-faq-q i { color: var(--s0d8-primary); transition: transform 0.25s ease; }
.s0d8-faq-item.s0d8-faq-open .s0d8-faq-q i { transform: rotate(45deg); }
.s0d8-faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.1rem;
  color: var(--s0d8-text);
  font-size: 1.2rem;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.s0d8-faq-item.s0d8-faq-open .s0d8-faq-a {
  max-height: 360px;
  padding: 0 1.1rem 1rem;
}

/* ===== Steps ===== */
.s0d8-step {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}
.s0d8-step-num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--s0d8-primary), var(--s0d8-primary-dark));
  color: #001821;
  font-weight: 800;
  font-size: 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.s0d8-step-body strong { display: block; color: var(--s0d8-text-strong); font-size: 1.3rem; margin-bottom: 2px; }
.s0d8-step-body span { color: var(--s0d8-text); font-size: 1.2rem; }

/* ===== CTA banner ===== */
.s0d8-cta {
  background: linear-gradient(135deg, var(--s0d8-gold) 0%, #ff9d3d 100%);
  color: #3a2700;
  border-radius: var(--s0d8-radius);
  padding: 1.4rem;
  text-align: center;
  margin: 1.4rem 0;
  box-shadow: 0 10px 24px rgba(255, 159, 61, 0.3);
}
.s0d8-cta h3 { margin: 0 0 0.4rem; font-size: 1.6rem; color: #3a2700; }
.s0d8-cta p { margin: 0 0 0.8rem; font-size: 1.2rem; color: #4a3300; }

/* ===== Footer ===== */
.s0d8-footer {
  background: var(--s0d8-bg-3);
  border-top: 1px solid rgba(0, 184, 212, 0.15);
  padding: 1.6rem 0 calc(var(--s0d8-bottom-h) + 1.4rem);
  margin-top: 2rem;
}
.s0d8-footer-brand { text-align: center; padding: 0 1rem 1rem; color: var(--s0d8-muted); font-size: 1.15rem; line-height: 1.5; }
.s0d8-footer-brand strong { color: var(--s0d8-text-strong); font-size: 1.35rem; display: block; margin-bottom: 4px; }
.s0d8-footer-promos { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; padding: 0.6rem 1rem 1rem; }
.s0d8-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1rem;
  padding: 1rem;
}
.s0d8-footer-links a { color: var(--s0d8-text); font-size: 1.15rem; }
.s0d8-footer-links a:hover { color: var(--s0d8-primary); }
.s0d8-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: var(--s0d8-muted);
  padding: 0.8rem 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== Bottom nav ===== */
.s0d8-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--s0d8-bottom-h);
  background: rgba(15, 26, 44, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(0, 184, 212, 0.25);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
}
.s0d8-bottom-nav-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--s0d8-muted);
  text-decoration: none;
  font-size: 1rem;
  min-width: 60px;
  min-height: 60px;
  position: relative;
  transition: color var(--s0d8-transition);
}
.s0d8-bottom-nav-link i { font-size: 2rem; }
.s0d8-bottom-nav-link:hover, .s0d8-bottom-nav-link.s0d8-nav-current {
  color: var(--s0d8-primary);
}
.s0d8-bottom-nav-link.s0d8-nav-current::before {
  content: "";
  position: absolute;
  top: 0; left: 30%; right: 30%;
  height: 3px;
  background: var(--s0d8-primary);
  border-radius: 0 0 4px 4px;
}
.s0d8-bottom-nav-link.s0d8-nav-promo {
  color: var(--s0d8-gold);
}
.s0d8-bottom-nav-link.s0d8-nav-promo i {
  background: linear-gradient(135deg, var(--s0d8-gold), #ff7a3d);
  color: #3a2700;
  width: 44px; height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  display: flex;
  margin-top: -14px;
  box-shadow: 0 6px 12px rgba(255, 159, 61, 0.4);
  font-size: 1.9rem;
}

/* ===== Utility ===== */
.s0d8-text-center { text-align: center; }
.s0d8-mt-0 { margin-top: 0; }
.s0d8-mb-0 { margin-bottom: 0; }
.s0d8-py-1 { padding: 0.5rem 0; }
.s0d8-hidden { display: none !important; }
.s0d8-text-primary { color: var(--s0d8-primary); }
.s0d8-text-gold { color: var(--s0d8-gold); }
.s0d8-text-muted { color: var(--s0d8-muted); }
.s0d8-strong { color: var(--s0d8-text-strong); font-weight: 700; }

/* ===== Desktop (≥769px) ===== */
@media (min-width: 769px) {
  .s0d8-bottom-nav { display: none; }
  main { padding-bottom: 30px; }
  .s0d8-footer { padding-bottom: 1.6rem; }
  .s0d8-wrapper, .s0d8-container, .s0d8-header-inner { max-width: 720px; }
  .s0d8-grid { grid-template-columns: repeat(5, 1fr); }
  .s0d8-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .s0d8-footer-links { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Small mobile tweaks ===== */
@media (max-width: 360px) {
  .s0d8-grid { grid-template-columns: repeat(2, 1fr); }
  .s0d8-pay-grid { grid-template-columns: repeat(3, 1fr); }
  .s0d8-h1 { font-size: 1.75rem; }
}
