/* ============================================================
 * jilipg - theme.css
 * Palette: #1E1E1E bg | #8A2BE2 primary | #AFEEEE | #DDA0DD | #5F9EA0
 * All custom classes use the "uieb-" prefix per project spec.
 * Mobile-first, max 430px design width.
 * ========================================================== */

:root {
  --uieb-bg: #1E1E1E;
  --uieb-bg-alt: #262626;
  --uieb-bg-soft: #2f2a33;
  --uieb-primary: #8A2BE2;
  --uieb-primary-dark: #6a1bb0;
  --uieb-accent: #AFEEEE;
  --uieb-plum: #DDA0DD;
  --uieb-teal: #5F9EA0;
  --uieb-text: #F5F5F5;
  --uieb-text-muted: #b8b3c0;
  --uieb-gold: #f5c451;
  --uieb-radius: 14px;
  --uieb-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  --uieb-header-h: 56px;
  --uieb-bottomnav-h: 62px;
}

* { box-sizing: border-box; }

html {
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--uieb-bg);
  color: var(--uieb-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow-x: hidden;
}

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

.uieb-wrapper {
  width: 100%;
  padding: 0 1.2rem;
}

main.uieb-main {
  padding-top: calc(var(--uieb-header-h) + 1rem);
  padding-bottom: calc(var(--uieb-bottomnav-h) + 2rem);
}

/* ===================== Header ===================== */
.uieb-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--uieb-header-h);
  background: linear-gradient(135deg, #1E1E1E 0%, #2a1840 100%);
  border-bottom: 1px solid rgba(138, 43, 226, 0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.uieb-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--uieb-accent);
  font-weight: 700;
  font-size: 1.6rem;
}
.uieb-brand .uieb-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--uieb-primary), var(--uieb-plum));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
}
.uieb-brand .uieb-domain { color: var(--uieb-plum); font-weight: 500; font-size: 1.1rem; }

.uieb-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.uieb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  color: #fff;
}
.uieb-btn:hover { transform: translateY(-1px); }
.uieb-btn:active { transform: scale(0.96); }

.uieb-btn-primary {
  background: linear-gradient(135deg, var(--uieb-primary), var(--uieb-primary-dark));
  box-shadow: 0 4px 14px rgba(138, 43, 226, 0.5);
}
.uieb-btn-ghost {
  background: transparent;
  border: 1px solid var(--uieb-accent);
  color: var(--uieb-accent);
}
.uieb-btn-gold {
  background: linear-gradient(135deg, var(--uieb-gold), #d99a2b);
  color: #2a1a00;
}
.uieb-btn-block { width: 100%; padding: 1rem; font-size: 1.4rem; min-height: 44px; }

.uieb-menu-btn {
  background: transparent;
  border: none;
  color: var(--uieb-accent);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  min-width: 44px;
  min-height: 44px;
}

/* ===================== Mobile Menu ===================== */
.uieb-mobile-menu {
  position: fixed;
  top: var(--uieb-header-h);
  left: 50%;
  transform: translate(-50%, -12px);
  width: 100%;
  max-width: 430px;
  background: var(--uieb-bg-alt);
  border-bottom: 1px solid rgba(138, 43, 226, 0.4);
  padding: 0.6rem 1rem 1rem;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}
.uieb-mobile-menu.uieb-menu-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.uieb-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 0.6rem;
  color: var(--uieb-text);
  border-bottom: 1px dashed rgba(175, 238, 238, 0.18);
  font-size: 1.3rem;
}
.uieb-mobile-menu a:last-child { border-bottom: none; }
.uieb-mobile-menu a:hover { color: var(--uieb-accent); }

/* ===================== Section & Headings ===================== */
.uieb-section {
  margin: 1.8rem 0;
  padding: 0;
}
.uieb-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--uieb-accent);
  margin: 0 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.uieb-section-title .uieb-bar {
  width: 4px;
  height: 1.6rem;
  background: linear-gradient(var(--uieb-primary), var(--uieb-plum));
  border-radius: 4px;
}

.uieb-h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin: 0.6rem 0 0.8rem;
  line-height: 1.25;
}
.uieb-lead {
  color: var(--uieb-text-muted);
  font-size: 1.3rem;
  margin: 0 0 1rem;
}
.uieb-text-muted { color: var(--uieb-text-muted); }

/* ===================== Carousel ===================== */
.uieb-carousel {
  position: relative;
  border-radius: var(--uieb-radius);
  overflow: hidden;
  box-shadow: var(--uieb-shadow);
  margin: 0.6rem 0 1.2rem;
}
.uieb-slides { position: relative; }
.uieb-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.uieb-slide img { width: 100%; height: 180px; object-fit: cover; }
.uieb-slide.uieb-slide-active { position: relative; opacity: 1; }
.uieb-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem 1rem 0.8rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.78));
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
}
.uieb-dots {
  position: absolute;
  bottom: 0.6rem;
  right: 0.8rem;
  display: flex;
  gap: 0.4rem;
}
.uieb-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}
.uieb-dot.uieb-dot-active { background: var(--uieb-gold); }

/* ===================== Game grid ===================== */
.uieb-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.4rem 0 0.7rem;
}
.uieb-cat-header h2 {
  font-size: 1.5rem;
  margin: 0;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.uieb-cat-tag {
  font-size: 1rem;
  color: var(--uieb-plum);
  background: rgba(138, 43, 226, 0.18);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.uieb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.uieb-game-card {
  background: var(--uieb-bg-alt);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid rgba(175, 238, 238, 0.08);
}
.uieb-game-card:hover { transform: translateY(-2px); box-shadow: var(--uieb-shadow); }
.uieb-game-card img {
  width: 100%;
  height: 84px;
  object-fit: cover;
  background: #000;
}
.uieb-game-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--uieb-text);
  padding: 0.4rem 0.5rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uieb-game-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--uieb-primary);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  font-weight: 700;
}

/* ===================== Cards / Feature ===================== */
.uieb-card {
  background: var(--uieb-bg-alt);
  border-radius: var(--uieb-radius);
  padding: 1.2rem;
  margin: 0.6rem 0;
  border: 1px solid rgba(138, 43, 226, 0.25);
}
.uieb-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  color: var(--uieb-accent);
}
.uieb-card p { margin: 0 0 0.6rem; color: var(--uieb-text-muted); font-size: 1.25rem; }

.uieb-feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  margin: 0.8rem 0;
}
.uieb-feature {
  background: var(--uieb-bg-soft);
  border-radius: 12px;
  padding: 0.9rem;
  text-align: center;
}
.uieb-feature .uieb-feature-ico {
  font-size: 1.8rem;
  color: var(--uieb-gold);
  margin-bottom: 0.3rem;
}
.uieb-feature h4 { margin: 0.2rem 0; font-size: 1.2rem; color: #fff; }
.uieb-feature p { margin: 0; font-size: 1.05rem; color: var(--uieb-text-muted); }

/* ===================== RTP table ===================== */
.uieb-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.15rem;
  margin: 0.6rem 0;
}
.uieb-rtp-table th, .uieb-rtp-table td {
  padding: 0.6rem 0.4rem;
  text-align: center;
  border-bottom: 1px solid rgba(175,238,238,0.12);
}
.uieb-rtp-table th { color: var(--uieb-accent); font-size: 1.1rem; }
.uieb-rtp-high { color: #6ee7a8; font-weight: 700; }
.uieb-rtp-mid { color: var(--uieb-gold); font-weight: 700; }

/* ===================== Testimonials ===================== */
.uieb-testimonial {
  background: var(--uieb-bg-soft);
  border-left: 3px solid var(--uieb-plum);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin: 0.5rem 0;
  font-size: 1.2rem;
  color: var(--uieb-text-muted);
}
.uieb-testimonial strong { color: var(--uieb-accent); display: block; margin-bottom: 0.2rem; }

/* ===================== Winners ===================== */
.uieb-winners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.uieb-winner {
  background: var(--uieb-bg-soft);
  border-radius: 8px;
  padding: 0.6rem;
  font-size: 1.1rem;
}
.uieb-winner .uieb-amount { color: var(--uieb-gold); font-weight: 700; }

/* ===================== Payment icons ===================== */
.uieb-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.uieb-pay {
  background: var(--uieb-bg-soft);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  font-size: 1.1rem;
  color: var(--uieb-text);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ===================== FAQ ===================== */
.uieb-faq-item {
  background: var(--uieb-bg-alt);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin: 0.5rem 0;
}
.uieb-faq-item h3 { margin: 0 0 0.3rem; font-size: 1.25rem; color: var(--uieb-accent); }
.uieb-faq-item p { margin: 0; font-size: 1.2rem; color: var(--uieb-text-muted); }

/* ===================== CTA banner ===================== */
.uieb-cta {
  background: linear-gradient(135deg, var(--uieb-primary), var(--uieb-plum));
  border-radius: var(--uieb-radius);
  padding: 1.3rem;
  text-align: center;
  color: #fff;
  margin: 1.2rem 0;
  box-shadow: 0 8px 20px rgba(138, 43, 226, 0.45);
}
.uieb-cta h3 { margin: 0 0 0.4rem; font-size: 1.5rem; }
.uieb-cta p { margin: 0 0 0.9rem; font-size: 1.2rem; opacity: 0.92; }

/* ===================== Footer ===================== */
.uieb-footer {
  background: #161616;
  border-top: 1px solid rgba(138, 43, 226, 0.35);
  padding: 1.6rem 1.2rem calc(var(--uieb-bottomnav-h) + 1.4rem);
  margin-top: 1.6rem;
  font-size: 1.15rem;
  color: var(--uieb-text-muted);
}
.uieb-footer-brand { color: var(--uieb-accent); font-weight: 700; font-size: 1.3rem; margin-bottom: 0.4rem; }
.uieb-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.8rem 0;
}
.uieb-footer-links a { color: var(--uieb-plum); font-size: 1.1rem; }
.uieb-footer-links a:hover { color: var(--uieb-accent); text-decoration: underline; }
.uieb-footer-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin: 0.8rem 0;
}
.uieb-copy { font-size: 1rem; color: #7d7585; margin-top: 0.8rem; text-align: center; }

/* ===================== Bottom Nav ===================== */
.uieb-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--uieb-bottomnav-h);
  background: linear-gradient(180deg, #262030, #1a1525);
  border-top: 1px solid rgba(138, 43, 226, 0.55);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.5);
}
.uieb-bottom-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--uieb-text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.3rem 0;
  transition: color 0.18s ease, transform 0.18s ease;
}
.uieb-bottom-nav-btn .uieb-nav-ico { font-size: 2.2rem; line-height: 1; }
.uieb-bottom-nav-btn:hover { color: var(--uieb-accent); }
.uieb-bottom-nav-btn:active { transform: scale(0.92); }
.uieb-bottom-nav-btn.uieb-nav-current { color: var(--uieb-gold); }
.uieb-bottom-nav-btn.uieb-nav-promo { color: var(--uieb-plum); }

/* ===================== Desktop rules ===================== */
@media (min-width: 769px) {
  .uieb-bottom-nav { display: none; }
  main.uieb-main { padding-bottom: 2rem; }
  .uieb-footer { padding-bottom: 1.6rem; }
}

/* Larger touch targets for very small phones */
@media (max-width: 360px) {
  .uieb-grid { grid-template-columns: repeat(2, 1fr); }
  .uieb-h1 { font-size: 1.7rem; }
}
