/* 88bet Design Stylesheet - wa161 prefix */
/* All classes use wa161- prefix for namespace isolation */

:root {
  --wa161-primary: #00B8D4;
  --wa161-bg: #0D1117;
  --wa161-text: #FAFAFA;
  --wa161-primary-dark: #0097A7;
  --wa161-primary-light: #4DD0E1;
  --wa161-surface: #161B22;
  --wa161-surface2: #21262D;
  --wa161-border: #30363D;
  --wa161-accent: #FFD600;
  --wa161-success: #00C853;
  --wa161-danger: #FF5252;
  --wa161-radius: 8px;
  --wa161-radius-lg: 12px;
  --wa161-header-h: 56px;
  --wa161-bottom-nav-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

a { color: var(--wa161-primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.wa161-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--wa161-header-h);
  background: var(--wa161-surface);
  border-bottom: 1px solid var(--wa161-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
}

.wa161-logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.wa161-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.wa161-logo-area span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wa161-primary);
  letter-spacing: 0.5px;
}

.wa161-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.wa161-btn-register, .wa161-btn-login {
  padding: 0.6rem 1.4rem;
  border-radius: var(--wa161-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  min-height: 36px;
  min-width: 44px;
  transition: all 0.2s ease;
}

.wa161-btn-register {
  background: var(--wa161-primary);
  color: var(--wa161-bg);
}

.wa161-btn-register:hover { background: var(--wa161-primary-light); }

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

.wa161-btn-login:hover { background: rgba(0,184,212,0.1); }

.wa161-hamburger {
  background: none;
  border: none;
  color: var(--wa161-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.8rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
.wa161-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.wa161-overlay-active { opacity: 1; visibility: visible; }

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

.wa161-menu-active { right: 0; }

.wa161-menu-header {
  padding: 0 1.6rem 1.6rem;
  border-bottom: 1px solid var(--wa161-border);
  margin-bottom: 1rem;
}

.wa161-menu-header h3 {
  font-size: 1.6rem;
  color: var(--wa161-primary);
  margin-bottom: 0.4rem;
}

.wa161-menu-header p {
  font-size: 1.2rem;
  color: #8b949e;
}

.wa161-menu-link {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.6rem;
  color: var(--wa161-text);
  font-size: 1.4rem;
  transition: background 0.2s;
}

.wa161-menu-link:hover {
  background: var(--wa161-surface2);
}

.wa161-menu-link i, .wa161-menu-link span.material-symbols-outlined {
  font-size: 2rem;
  color: var(--wa161-primary);
  width: 24px;
  text-align: center;
}

/* Main content */
main {
  padding-top: var(--wa161-header-h);
  min-height: 100vh;
}

/* Carousel */
.wa161-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 0.8rem;
}

.wa161-carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.wa161-carousel-slide {
  min-width: 100%;
  cursor: pointer;
}

.wa161-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.wa161-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

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

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

/* Section titles */
.wa161-section {
  padding: 2rem 1.2rem;
}

.wa161-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wa161-text);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--wa161-primary);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.wa161-section-title i {
  color: var(--wa161-primary);
  font-size: 2rem;
}

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

.wa161-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: var(--wa161-radius);
  padding: 0.6rem;
}

.wa161-game-item:hover {
  transform: scale(1.05);
  background: var(--wa161-surface2);
}

.wa161-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--wa161-radius);
  margin-bottom: 0.4rem;
}

.wa161-game-item span {
  font-size: 1.1rem;
  color: #c9d1d9;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Content blocks */
.wa161-content-block {
  background: var(--wa161-surface);
  border-radius: var(--wa161-radius-lg);
  padding: 1.6rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--wa161-border);
}

.wa161-content-block h2 {
  font-size: 1.6rem;
  color: var(--wa161-primary);
  margin-bottom: 1rem;
}

.wa161-content-block h3 {
  font-size: 1.4rem;
  color: var(--wa161-text);
  margin: 1rem 0 0.6rem;
}

.wa161-content-block p {
  color: #c9d1d9;
  line-height: 1.8rem;
  margin-bottom: 0.8rem;
}

.wa161-content-block ul {
  padding-left: 2rem;
  color: #c9d1d9;
}

.wa161-content-block li {
  margin-bottom: 0.4rem;
  line-height: 1.6rem;
}

/* CTA buttons */
.wa161-cta {
  display: inline-block;
  background: var(--wa161-primary);
  color: var(--wa161-bg);
  padding: 1rem 2rem;
  border-radius: var(--wa161-radius);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: all 0.2s;
  min-height: 44px;
}

.wa161-cta:hover { background: var(--wa161-primary-light); transform: translateY(-1px); }

.wa161-cta-outline {
  background: transparent;
  color: var(--wa161-primary);
  border: 2px solid var(--wa161-primary);
}

.wa161-cta-outline:hover { background: rgba(0,184,212,0.1); }

.wa161-cta-large {
  padding: 1.4rem 3rem;
  font-size: 1.6rem;
  border-radius: var(--wa161-radius-lg);
}

.wa161-text-center { text-align: center; }

.wa161-mt-1 { margin-top: 1rem; }
.wa161-mb-1 { margin-bottom: 1rem; }
.wa161-mb-2 { margin-bottom: 2rem; }

/* Affiliate text link */
.wa161-aff-link {
  color: var(--wa161-primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.wa161-aff-link:hover { color: var(--wa161-primary-light); }

/* RTP analysis table */
.wa161-rtp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.wa161-rtp-table th, .wa161-rtp-table td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--wa161-border);
  font-size: 1.2rem;
}

.wa161-rtp-table th {
  color: var(--wa161-primary);
  font-weight: 600;
}

.wa161-rtp-table td { color: #c9d1d9; }

.wa161-rtp-bar {
  height: 6px;
  background: var(--wa161-surface2);
  border-radius: 3px;
  overflow: hidden;
}

.wa161-rtp-bar-fill {
  height: 100%;
  background: var(--wa161-primary);
  border-radius: 3px;
}

/* Testimonials */
.wa161-testimonial {
  background: var(--wa161-surface2);
  border-radius: var(--wa161-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--wa161-primary);
}

.wa161-testimonial p {
  font-style: italic;
  color: #c9d1d9;
  margin-bottom: 0.6rem;
}

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

/* Payment grid */
.wa161-payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.wa161-payment-item {
  background: var(--wa161-surface2);
  border-radius: var(--wa161-radius);
  padding: 1rem;
  text-align: center;
  font-size: 1.2rem;
  color: #c9d1d9;
}

.wa161-payment-item i {
  font-size: 2rem;
  color: var(--wa161-primary);
  margin-bottom: 0.4rem;
  display: block;
}

/* Winners showcase */
.wa161-winners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.wa161-winner-card {
  background: var(--wa161-surface2);
  border-radius: var(--wa161-radius);
  padding: 1rem;
  text-align: center;
}

.wa161-winner-card .wa161-amount {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wa161-accent);
}

.wa161-winner-card .wa161-game-name {
  font-size: 1.1rem;
  color: #c9d1d9;
  margin-top: 0.4rem;
}

/* FAQ */
.wa161-faq-item {
  background: var(--wa161-surface);
  border-radius: var(--wa161-radius);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  border: 1px solid var(--wa161-border);
}

.wa161-faq-item h3 {
  font-size: 1.4rem;
  color: var(--wa161-primary);
  margin-bottom: 0.6rem;
}

.wa161-faq-item p {
  color: #c9d1d9;
  font-size: 1.3rem;
  line-height: 1.6rem;
}

/* Footer */
.wa161-footer {
  background: var(--wa161-surface);
  border-top: 1px solid var(--wa161-border);
  padding: 2rem 1.2rem;
  text-align: center;
}

.wa161-footer-brand {
  color: #8b949e;
  font-size: 1.2rem;
  line-height: 1.8rem;
  margin-bottom: 1.2rem;
}

.wa161-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.wa161-footer-links a {
  background: var(--wa161-surface2);
  color: var(--wa161-text);
  padding: 0.6rem 1.2rem;
  border-radius: var(--wa161-radius);
  font-size: 1.2rem;
  border: 1px solid var(--wa161-border);
  transition: all 0.2s;
}

.wa161-footer-links a:hover {
  border-color: var(--wa161-primary);
  color: var(--wa161-primary);
}

.wa161-footer-copy {
  color: #6e7681;
  font-size: 1.1rem;
  border-top: 1px solid var(--wa161-border);
  padding-top: 1.2rem;
}

/* Bottom navigation */
.wa161-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--wa161-bottom-nav-h);
  background: var(--wa161-surface);
  border-top: 1px solid var(--wa161-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.4rem;
}

.wa161-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  background: none;
  border: none;
  color: #8b949e;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: var(--wa161-radius);
  padding: 0.4rem;
}

.wa161-bottom-nav-btn:hover,
.wa161-bottom-nav-btn.wa161-nav-active {
  color: var(--wa161-primary);
  transform: scale(1.05);
}

.wa161-bottom-nav-btn i,
.wa161-bottom-nav-btn span.material-symbols-outlined,
.wa161-bottom-nav-btn ion-icon {
  font-size: 24px;
  margin-bottom: 2px;
}

.wa161-bottom-nav-btn span.wa161-nav-label {
  font-size: 1rem;
  line-height: 1.2rem;
}

/* Mobile bottom padding */
@media (max-width: 768px) {
  main { padding-bottom: calc(var(--wa161-bottom-nav-h) + 16px); }
  .wa161-footer { padding-bottom: calc(var(--wa161-bottom-nav-h) + 24px); }
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .wa161-bottom-nav { display: none; }
}

/* 320px fallback */
@media (max-width: 320px) {
  .wa161-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }
}

/* H1 title */
.wa161-page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--wa161-text);
  text-align: center;
  padding: 1.6rem 1.2rem;
  line-height: 2.4rem;
}

.wa161-page-title span {
  color: var(--wa161-primary);
}

/* Category badge */
.wa161-cat-badge {
  display: inline-block;
  background: rgba(0,184,212,0.15);
  color: var(--wa161-primary);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
}

/* Help page styles */
.wa161-help-content {
  padding: 1.2rem;
}

.wa161-step-item {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
  padding: 1rem;
  background: var(--wa161-surface);
  border-radius: var(--wa161-radius);
  border: 1px solid var(--wa161-border);
}

.wa161-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--wa161-primary);
  color: var(--wa161-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
}

.wa161-step-text h3 {
  font-size: 1.4rem;
  color: var(--wa161-primary);
  margin-bottom: 0.4rem;
}

.wa161-step-text p {
  color: #c9d1d9;
  font-size: 1.3rem;
  line-height: 1.6rem;
}

/* Security features list */
.wa161-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.wa161-feature-card {
  background: var(--wa161-surface2);
  border-radius: var(--wa161-radius);
  padding: 1rem;
  text-align: center;
}

.wa161-feature-card i {
  font-size: 2.4rem;
  color: var(--wa161-primary);
  margin-bottom: 0.6rem;
  display: block;
}

.wa161-feature-card h4 {
  font-size: 1.2rem;
  color: var(--wa161-text);
  margin-bottom: 0.3rem;
}

.wa161-feature-card p {
  font-size: 1.1rem;
  color: #8b949e;
}
