/* ===========================================================
 * Mega Casino - theme-e8b4.css
 * All custom classes use the "we8b4-" prefix.
 * Palette: #DA70D6 | #9966CC | #1B263B | #D3D3D3 | #FFBF00
 * Mobile-first. Root font 62.5% (1rem = 10px).
 * =========================================================== */

:root {
  --we8b4-primary: #DA70D6;
  --we8b4-secondary: #9966CC;
  --we8b4-bg: #1B263B;
  --we8b4-bg-2: #141d31;
  --we8b4-bg-3: #0f1626;
  --we8b4-text: #D3D3D3;
  --we8b4-text-light: #f4f4f8;
  --we8b4-accent: #FFBF00;
  --we8b4-accent-2: #ffd24d;
  --we8b4-success: #2ecc71;
  --we8b4-danger: #ff5b6e;
  --we8b4-border: rgba(218, 112, 214, 0.22);
  --we8b4-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --we8b4-radius: 14px;
  --we8b4-radius-sm: 9px;
  --we8b4-transition: 0.25s ease;
}

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

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(160deg, var(--we8b4-bg) 0%, var(--we8b4-bg-2) 55%, var(--we8b4-bg-3) 100%);
  color: var(--we8b4-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { color: var(--we8b4-text-light); font-weight: 700; line-height: 1.2; }

/* ---------- Layout ---------- */
.we8b4-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.4rem;
}
.we8b4-wrapper { width: 100%; }
.we8b4-section { padding: 2.4rem 0; }
.we8b4-section-title {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.we8b4-section-title i { color: var(--we8b4-accent); font-size: 2.2rem; }
.we8b4-section-sub {
  font-size: 1.35rem;
  color: var(--we8b4-text);
  opacity: 0.85;
  margin-bottom: 1.6rem;
}

/* ---------- Header ---------- */
.we8b4-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(15, 22, 38, 0.96);
  border-bottom: 1px solid var(--we8b4-border);
  backdrop-filter: blur(10px);
}
.we8b4-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.8rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.we8b4-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 1;
  min-width: 0;
}
.we8b4-brand-logo {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--we8b4-primary), var(--we8b4-secondary));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.we8b4-brand-name {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--we8b4-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.we8b4-brand-name span { color: var(--we8b4-accent); }

.we8b4-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.we8b4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.3rem;
  cursor: pointer;
  border: none;
  transition: transform var(--we8b4-transition), box-shadow var(--we8b4-transition), background var(--we8b4-transition);
  min-height: 36px;
}
.we8b4-btn:active { transform: scale(0.96); }
.we8b4-btn-login {
  background: transparent;
  color: var(--we8b4-text-light);
  border: 1px solid var(--we8b4-primary);
}
.we8b4-btn-login:hover { background: rgba(218,112,214,0.15); }
.we8b4-btn-register {
  background: linear-gradient(135deg, var(--we8b4-accent), #ff9e00);
  color: #1B263B;
  box-shadow: 0 4px 12px rgba(255,191,0,0.35);
}
.we8b4-btn-register:hover { box-shadow: 0 6px 18px rgba(255,191,0,0.5); }
.we8b4-btn-block { width: 100%; padding: 1rem; font-size: 1.5rem; }

.we8b4-menu-btn {
  background: transparent;
  border: none;
  color: var(--we8b4-text-light);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
}
.we8b4-menu-btn:hover { background: rgba(218,112,214,0.18); }

/* ---------- Mobile menu ---------- */
.we8b4-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
  opacity: 0; visibility: hidden;
  transition: opacity var(--we8b4-transition);
}
.we8b4-overlay-show { opacity: 1; visibility: visible; }
.we8b4-mobile-menu {
  position: fixed;
  top: 0; right: -85%;
  width: 78%; max-width: 320px;
  height: 100vh;
  background: var(--we8b4-bg-2);
  z-index: 9999;
  padding: 2rem 1.6rem;
  overflow-y: auto;
  transition: right 0.3s ease;
  border-left: 1px solid var(--we8b4-border);
}
.we8b4-menu-open { right: 0; }
.we8b4-mobile-menu h3 {
  font-size: 1.6rem;
  color: var(--we8b4-accent);
  margin: 1.4rem 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.we8b4-mobile-menu a {
  display: block;
  padding: 0.9rem 0.6rem;
  color: var(--we8b4-text-light);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 1.45rem;
}
.we8b4-mobile-menu a:hover { color: var(--we8b4-primary); padding-left: 1rem; }
.we8b4-menu-close {
  background: transparent; border: none; color: #fff;
  font-size: 2.2rem; cursor: pointer; float: right;
}

/* ---------- Hero / Carousel ---------- */
.we8b4-main { padding-top: 60px; padding-bottom: 80px; }
.we8b4-hero { padding: 1.5rem 0 0.5rem; }
.we8b4-carousel {
  position: relative;
  border-radius: var(--we8b4-radius);
  overflow: hidden;
  box-shadow: var(--we8b4-shadow);
  aspect-ratio: 16 / 9;
  background: #000;
}
.we8b4-carousel-track { position: relative; width: 100%; height: 100%; }
.we8b4-carousel-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.we8b4-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.we8b4-slide-active { opacity: 1; }
.we8b4-carousel-cap {
  position: absolute; left: 1.2rem; bottom: 1.2rem; right: 1.2rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  padding: 1.5rem 1rem 0.6rem;
  border-radius: 10px;
  color: #fff;
}
.we8b4-carousel-cap h2 { color: #fff; font-size: 1.9rem; margin-bottom: 0.3rem; }
.we8b4-carousel-cap p { font-size: 1.25rem; opacity: 0.9; }
.we8b4-carousel-dots {
  position: absolute; bottom: 0.8rem; right: 1.2rem;
  display: flex; gap: 0.5rem;
}
.we8b4-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer; border: none;
}
.we8b4-dot-active { background: var(--we8b4-accent); width: 22px; border-radius: 5px; }

/* ---------- Filter tabs ---------- */
.we8b4-filter-row {
  display: flex; gap: 0.6rem;
  overflow-x: auto;
  padding: 1rem 0 0.4rem;
  -webkit-overflow-scrolling: touch;
}
.we8b4-filter-row::-webkit-scrollbar { display: none; }
.we8b4-filter-tab {
  flex-shrink: 0;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--we8b4-border);
  color: var(--we8b4-text);
  font-size: 1.3rem;
  cursor: pointer;
  white-space: nowrap;
}
.we8b4-filter-active {
  background: linear-gradient(135deg, var(--we8b4-primary), var(--we8b4-secondary));
  color: #fff;
  border-color: transparent;
}

/* ---------- Game grid ---------- */
.we8b4-category-section { margin-bottom: 2rem; }
.we8b4-cat-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 1.4rem 0 1rem;
}
.we8b4-cat-head h2 { font-size: 1.75rem; display: flex; align-items: center; gap: 0.6rem; }
.we8b4-cat-head h2 i { color: var(--we8b4-accent); }
.we8b4-cat-link { font-size: 1.25rem; color: var(--we8b4-accent); font-weight: 600; }

.we8b4-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.we8b4-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--we8b4-border);
  border-radius: var(--we8b4-radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--we8b4-transition), box-shadow var(--we8b4-transition), border-color var(--we8b4-transition);
  text-align: center;
}
.we8b4-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--we8b4-shadow);
  border-color: var(--we8b4-primary);
}
.we8b4-card-img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  background: #000;
}
.we8b4-card-name {
  font-size: 1.15rem;
  padding: 0.5rem 0.3rem 0.7rem;
  color: var(--we8b4-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.we8b4-card-hot { position: relative; }
.we8b4-card-hot::after {
  content: 'HOT';
  position: absolute; top: 4px; right: 4px;
  background: var(--we8b4-danger);
  color: #fff;
  font-size: 0.9rem; font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
}

/* ---------- Content cards ---------- */
.we8b4-prose {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--we8b4-border);
  border-radius: var(--we8b4-radius);
  padding: 1.6rem;
  margin-bottom: 1.4rem;
}
.we8b4-prose h2 { font-size: 1.85rem; margin-bottom: 0.8rem; color: var(--we8b4-accent); }
.we8b4-prose h3 { font-size: 1.55rem; margin: 1rem 0 0.5rem; color: var(--we8b4-primary); }
.we8b4-prose p { margin-bottom: 0.9rem; color: var(--we8b4-text); }
.we8b4-prose ul, .we8b4-prose ol { padding-left: 1.6rem; margin-bottom: 0.9rem; }
.we8b4-prose li { margin-bottom: 0.4rem; }
.we8b4-prose strong { color: var(--we8b4-accent); font-weight: 700; }
.we8b4-prose a { color: var(--we8b4-primary); text-decoration: underline; }

/* ---------- Stats row ---------- */
.we8b4-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin: 1.2rem 0;
}
.we8b4-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--we8b4-border);
  border-radius: var(--we8b4-radius-sm);
  padding: 1rem 0.5rem;
  text-align: center;
}
.we8b4-counter { font-size: 2rem; font-weight: 800; color: var(--we8b4-accent); display: block; }
.we8b4-stat-label { font-size: 1.1rem; color: var(--we8b4-text); margin-top: 0.3rem; }

/* ---------- Testimonials ---------- */
.we8b4-testi {
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--we8b4-accent);
  border-radius: var(--we8b4-radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 0.9rem;
}
.we8b4-testi p { font-style: italic; color: var(--we8b4-text); margin-bottom: 0.5rem; }
.we8b4-testi .we8b4-testi-author { font-size: 1.2rem; color: var(--we8b4-primary); font-weight: 600; }
.we8b4-stars { color: var(--we8b4-accent); margin-bottom: 0.3rem; }

/* ---------- Payment ---------- */
.we8b4-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.we8b4-pay-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--we8b4-border);
  border-radius: 8px;
  padding: 0.8rem 0.3rem;
  text-align: center;
  font-size: 1.05rem;
  color: var(--we8b4-text-light);
  font-weight: 600;
}
.we8b4-pay-item i { display: block; font-size: 2rem; color: var(--we8b4-accent); margin-bottom: 0.3rem; }

/* ---------- FAQ ---------- */
.we8b4-faq-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--we8b4-border);
  border-radius: var(--we8b4-radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 0.7rem;
}
.we8b4-faq-item h3 { font-size: 1.4rem; color: var(--we8b4-primary); margin-bottom: 0.4rem; }
.we8b4-faq-item p { font-size: 1.3rem; color: var(--we8b4-text); }

/* ---------- Winners ---------- */
.we8b4-winner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}
.we8b4-winner span:first-child { color: var(--we8b4-text-light); font-weight: 600; }
.we8b4-winner span:last-child { color: var(--we8b4-accent); font-weight: 800; }

/* ---------- CTA banner ---------- */
.we8b4-cta {
  background: linear-gradient(135deg, var(--we8b4-primary), var(--we8b4-secondary));
  border-radius: var(--we8b4-radius);
  padding: 1.8rem 1.4rem;
  text-align: center;
  margin: 1.4rem 0;
  color: #fff;
}
.we8b4-cta h2 { color: #fff; font-size: 2rem; margin-bottom: 0.5rem; }
.we8b4-cta p { font-size: 1.3rem; margin-bottom: 1rem; opacity: 0.95; }
.we8b4-cta .we8b4-btn { background: var(--we8b4-accent); color: #1B263B; }

/* ---------- Footer ---------- */
.we8b4-footer {
  background: var(--we8b4-bg-3);
  border-top: 1px solid var(--we8b4-border);
  padding: 2.4rem 0 1rem;
  margin-top: 1rem;
}
.we8b4-footer-brand { font-size: 1.4rem; color: var(--we8b4-text); margin-bottom: 1rem; line-height: 1.6; }
.we8b4-footer-brand strong { color: var(--we8b4-accent); }
.we8b4-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin: 1rem 0;
}
.we8b4-footer-links a {
  font-size: 1.2rem;
  color: var(--we8b4-text);
  padding: 0.3rem 0;
}
.we8b4-footer-promos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin: 1rem 0;
}
.we8b4-footer-promos .we8b4-btn { font-size: 1.2rem; padding: 0.7rem 0.5rem; }
.we8b4-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--we8b4-text);
  opacity: 0.7;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ---------- Bottom navigation ---------- */
.we8b4-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, var(--we8b4-bg-2), var(--we8b4-bg-3));
  border-top: 1px solid var(--we8b4-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
}
.we8b4-bottom-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: var(--we8b4-text);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 2px;
  min-width: 60px;
  min-height: 60px;
  transition: color var(--we8b4-transition), transform var(--we8b4-transition);
  position: relative;
}
.we8b4-bottom-btn i { font-size: 22px; }
.we8b4-bottom-btn .material-icons { font-size: 22px; }
.we8b4-bottom-btn:hover { color: var(--we8b4-primary); }
.we8b4-bottom-btn:active { transform: scale(0.92); }
.we8b4-bottom-btn.is-active { color: var(--we8b4-accent); }
.we8b4-bottom-btn.is-active::before {
  content: '';
  position: absolute;
  top: 0; left: 25%; right: 25%;
  height: 3px;
  background: var(--we8b4-accent);
  border-radius: 0 0 4px 4px;
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  body { background-attachment: fixed; }
  .we8b4-container { max-width: 760px; }
  .we8b4-bottom-nav { display: none; }
  .we8b4-main { padding-bottom: 20px; }
  .we8b4-grid { grid-template-columns: repeat(5, 1fr); }
  .we8b4-header-inner { max-width: 760px; }
}
@media (min-width: 1024px) {
  .we8b4-container { max-width: 980px; }
  .we8b4-grid { grid-template-columns: repeat(6, 1fr); }
  .we8b4-header-inner { max-width: 980px; }
}

/* ---------- Utilities ---------- */
.we8b4-text-center { text-align: center; }
.we8b4-mt-1 { margin-top: 0.6rem; }
.we8b4-mt-2 { margin-top: 1.2rem; }
.we8b4-mb-2 { margin-bottom: 1.2rem; }
.we8b4-hidden { display: none !important; }
.we8b4-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 1.05rem;
  background: rgba(255,191,0,0.18);
  color: var(--we8b4-accent);
  margin-right: 0.3rem;
  font-weight: 600;
}
