/**
 * xbaji.click - Main Stylesheet
 * CSS class prefix: ui5f-
 * Color palette: #00BFFF | #0F0F23 | #D2B48C | #ADD8E6 | #F0F0F0 | #FDF5E6
 */

/* === CSS Variables === */
:root {
  --ui5f-primary: #00BFFF;
  --ui5f-primary-dark: #0099CC;
  --ui5f-bg-dark: #0F0F23;
  --ui5f-bg-darker: #080816;
  --ui5f-gold: #D2B48C;
  --ui5f-light-blue: #ADD8E6;
  --ui5f-light: #F0F0F0;
  --ui5f-cream: #FDF5E6;
  --ui5f-text: #F0F0F0;
  --ui5f-text-muted: #A0A0B8;
  --ui5f-border: #1E1E3A;
  --ui5f-card-bg: #141430;
  --ui5f-accent: #FFD700;
  --ui5f-success: #4CAF50;
  --ui5f-gradient: linear-gradient(135deg, #00BFFF 0%, #0099CC 100%);
  --ui5f-gold-gradient: linear-gradient(135deg, #D2B48C 0%, #C4A67A 100%);
  --ui5f-shadow: 0 4px 15px rgba(0, 191, 255, 0.15);
  --ui5f-radius: 1.2rem;
  font-size: 62.5%;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--ui5f-text);
  background: var(--ui5f-bg-dark);
  -webkit-font-smoothing: antialiased;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}
a { color: var(--ui5f-primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === Header === */
.ui5f-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  z-index: 1000;
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ui5f-border);
  padding: 0 1.2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ui5f-header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.ui5f-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.ui5f-site-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ui5f-primary);
  letter-spacing: 0.5px;
}
.ui5f-header-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.ui5f-btn-register {
  background: var(--ui5f-gradient);
  color: #fff;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 2rem;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}
.ui5f-btn-register:hover { transform: scale(1.05); box-shadow: var(--ui5f-shadow); }
.ui5f-btn-login {
  background: transparent;
  color: var(--ui5f-primary);
  border: 1px solid var(--ui5f-primary);
  padding: 0.6rem 1.4rem;
  border-radius: 2rem;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}
.ui5f-btn-login:hover { background: rgba(0, 191, 255, 0.1); }
.ui5f-menu-toggle {
  background: none;
  border: none;
  color: var(--ui5f-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Mobile Menu === */
.ui5f-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}
.ui5f-overlay-active { display: block; }
.ui5f-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--ui5f-bg-darker);
  z-index: 9999;
  transition: right 0.35s ease;
  padding: 2rem;
  overflow-y: auto;
}
.ui5f-menu-active { right: 0; }
.ui5f-mobile-menu-close {
  background: none;
  border: none;
  color: var(--ui5f-text);
  font-size: 2.4rem;
  cursor: pointer;
  display: block;
  margin-left: auto;
  margin-bottom: 1.6rem;
}
.ui5f-mobile-menu a {
  display: block;
  padding: 1.2rem 0;
  color: var(--ui5f-text);
  font-size: 1.5rem;
  border-bottom: 1px solid var(--ui5f-border);
  transition: color 0.2s;
}
.ui5f-mobile-menu a:hover { color: var(--ui5f-primary); }

/* === Main Content === */
.ui5f-main {
  padding-top: 56px;
  min-height: 100vh;
}
@media (max-width: 768px) {
  .ui5f-main { padding-bottom: 80px; }
}

/* === Slider / Carousel === */
.ui5f-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16/8;
}
.ui5f-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  cursor: pointer;
}
.ui5f-slide img { width: 100%; height: 100%; object-fit: cover; }
.ui5f-slide-active { opacity: 1; }
.ui5f-slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.ui5f-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s;
}
.ui5f-dot-active { background: var(--ui5f-primary); transform: scale(1.3); }

/* === Section Container === */
.ui5f-container {
  padding: 2rem 1.2rem;
}
.ui5f-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ui5f-text);
  margin-bottom: 1.4rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--ui5f-primary);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.ui5f-section-title i { color: var(--ui5f-primary); font-size: 2.2rem; }

/* === Game Grid === */
.ui5f-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.ui5f-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.ui5f-game-item:hover { transform: translateY(-3px); }
.ui5f-game-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}
.ui5f-game-img img { width: 100%; height: 100%; object-fit: cover; }
.ui5f-game-name {
  font-size: 1.1rem;
  color: var(--ui5f-text-muted);
  margin-top: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === Category Header === */
.ui5f-cat-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 2rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--ui5f-gold);
}
.ui5f-cat-header i { font-size: 2rem; color: var(--ui5f-gold); }
.ui5f-cat-header h2 {
  font-size: 1.8rem;
  color: var(--ui5f-gold);
  font-weight: 700;
}

/* === Content Cards === */
.ui5f-card {
  background: var(--ui5f-card-bg);
  border-radius: var(--ui5f-radius);
  padding: 1.6rem;
  margin-bottom: 1.4rem;
  border: 1px solid var(--ui5f-border);
}
.ui5f-card h3 {
  font-size: 1.6rem;
  color: var(--ui5f-primary);
  margin-bottom: 1rem;
}
.ui5f-card p {
  color: var(--ui5f-text-muted);
  font-size: 1.4rem;
  line-height: 1.6;
}

/* === Promo CTA Buttons === */
.ui5f-cta-btn {
  display: inline-block;
  background: var(--ui5f-gradient);
  color: #fff;
  padding: 1.2rem 2.4rem;
  border-radius: 2.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  text-align: center;
  margin: 1rem 0;
}
.ui5f-cta-btn:hover { transform: scale(1.05); box-shadow: var(--ui5f-shadow); }
.ui5f-gold-btn {
  background: var(--ui5f-gold-gradient);
  color: var(--ui5f-bg-dark);
}

/* === Promo Text Link === */
.ui5f-promo-link {
  color: var(--ui5f-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}
.ui5f-promo-link:hover { color: var(--ui5f-accent); }

/* === FAQ Component === */
.ui5f-faq-item {
  background: var(--ui5f-card-bg);
  border-radius: var(--ui5f-radius);
  margin-bottom: 1rem;
  padding: 1.4rem;
  border-left: 3px solid var(--ui5f-primary);
}
.ui5f-faq-item h4 {
  color: var(--ui5f-primary);
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}
.ui5f-faq-item p { color: var(--ui5f-text-muted); font-size: 1.3rem; }

/* === Testimonials === */
.ui5f-testimonial {
  background: var(--ui5f-card-bg);
  border-radius: var(--ui5f-radius);
  padding: 1.4rem;
  margin-bottom: 1rem;
  border: 1px solid var(--ui5f-border);
}
.ui5f-testimonial-name {
  color: var(--ui5f-gold);
  font-weight: 700;
  font-size: 1.3rem;
}
.ui5f-testimonial-text {
  color: var(--ui5f-text-muted);
  font-size: 1.3rem;
  margin-top: 0.4rem;
}
.ui5f-stars { color: var(--ui5f-accent); font-size: 1.2rem; }

/* === Winners Table === */
.ui5f-winner-row {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: var(--ui5f-card-bg);
  border-radius: 0.8rem;
  margin-bottom: 0.5rem;
  align-items: center;
}
.ui5f-winner-game { color: var(--ui5f-text); font-size: 1.3rem; }
.ui5f-winner-amount { color: var(--ui5f-success); font-weight: 700; font-size: 1.3rem; }

/* === Payment Methods === */
.ui5f-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.ui5f-payment-item {
  background: var(--ui5f-card-bg);
  border-radius: 1rem;
  padding: 1rem 1.4rem;
  text-align: center;
  border: 1px solid var(--ui5f-border);
  font-size: 1.3rem;
  color: var(--ui5f-text-muted);
}

/* === Footer === */
.ui5f-footer {
  background: var(--ui5f-bg-darker);
  padding: 2.4rem 1.2rem;
  border-top: 1px solid var(--ui5f-border);
}
.ui5f-footer-desc {
  color: var(--ui5f-text-muted);
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 1.6rem;
}
.ui5f-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}
.ui5f-footer-links a {
  background: var(--ui5f-card-bg);
  color: var(--ui5f-primary);
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  border: 1px solid var(--ui5f-border);
  transition: all 0.2s;
}
.ui5f-footer-links a:hover {
  background: var(--ui5f-primary);
  color: var(--ui5f-bg-dark);
}
.ui5f-copyright {
  text-align: center;
  color: var(--ui5f-text-muted);
  font-size: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--ui5f-border);
}

/* === Bottom Navigation === */
.ui5f-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  z-index: 1000;
  background: rgba(8, 8, 22, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--ui5f-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 0.4rem;
}
.ui5f-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: var(--ui5f-text-muted);
  cursor: pointer;
  transition: all 0.25s;
  gap: 0.2rem;
}
.ui5f-bottom-nav-btn i,
.ui5f-bottom-nav-btn .material-icons,
.ui5f-bottom-nav-btn ion-icon {
  font-size: 24px;
}
.ui5f-bottom-nav-btn span {
  font-size: 10px;
  white-space: nowrap;
}
.ui5f-bottom-nav-btn:hover,
.ui5f-bottom-active {
  color: var(--ui5f-primary);
}
.ui5f-bottom-active {
  position: relative;
}
.ui5f-bottom-active::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--ui5f-primary);
  border-radius: 2px;
}

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

/* === Utility Classes === */
.ui5f-text-center { text-align: center; }
.ui5f-mt-1 { margin-top: 1rem; }
.ui5f-mt-2 { margin-top: 2rem; }
.ui5f-mb-1 { margin-bottom: 1rem; }
.ui5f-mb-2 { margin-bottom: 2rem; }
.ui5f-hidden { display: none; }

/* === Info Box === */
.ui5f-info-box {
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.08) 0%, rgba(0, 153, 204, 0.08) 100%);
  border: 1px solid rgba(0, 191, 255, 0.2);
  border-radius: var(--ui5f-radius);
  padding: 1.6rem;
  margin: 1.4rem 0;
}
.ui5f-info-box h3 {
  color: var(--ui5f-primary);
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

/* === Responsive Tweaks === */
@media (max-width: 360px) {
  .ui5f-game-grid { grid-template-columns: repeat(3, 1fr); }
  .ui5f-header { padding: 0 0.8rem; }
}
