/**
 * xgamesapk.css - Core Stylesheet
 * Prefix: web1c-
 * Colors: #8470FF (primary), #34495E (dark bg)
 */
:root {
  --web1c-primary: #8470FF;
  --web1c-primary-light: #a78bfa;
  --web1c-primary-dark: #6c5ce7;
  --web1c-bg: #34495E;
  --web1c-bg-dark: #2c3e50;
  --web1c-bg-card: #3d5266;
  --web1c-bg-card-hover: #4a6275;
  --web1c-text: #f0f4f8;
  --web1c-text-muted: #b0bec5;
  --web1c-accent: #FFD700;
  --web1c-danger: #e74c3c;
  --web1c-success: #2ecc71;
  --web1c-radius: 8px;
  --web1c-radius-lg: 12px;
  --web1c-shadow: 0 2px 12px rgba(0,0,0,0.3);
  --web1c-shadow-lg: 0 4px 20px rgba(0,0,0,0.4);
  --web1c-transition: all 0.3s ease;
}
html { font-size: 62.5%; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--web1c-bg);
  color: var(--web1c-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}
/* Header */
.web1c-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--web1c-bg-dark), var(--web1c-bg));
  border-bottom: 1px solid rgba(132,112,255,0.3);
  padding: 0 1rem;
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 5.2rem;
}
.web1c-header-left { display: flex; align-items: center; gap: 0.6rem; }
.web1c-logo { width: 2.8rem; height: 2.8rem; border-radius: 6px; }
.web1c-site-name { font-size: 1.5rem; font-weight: 700; color: var(--web1c-primary-light); letter-spacing: -0.3px; }
.web1c-header-right { display: flex; align-items: center; gap: 0.6rem; }
.web1c-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.2rem; border-radius: var(--web1c-radius);
  font-size: 1.2rem; font-weight: 600; cursor: pointer;
  border: none; transition: var(--web1c-transition);
  text-decoration: none; min-height: 3.4rem;
}
.web1c-btn-register {
  background: linear-gradient(135deg, var(--web1c-primary), var(--web1c-primary-dark));
  color: #fff; box-shadow: 0 2px 8px rgba(132,112,255,0.4);
}
.web1c-btn-register:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(132,112,255,0.6); }
.web1c-btn-login {
  background: transparent; color: var(--web1c-primary-light);
  border: 1.5px solid var(--web1c-primary);
}
.web1c-btn-login:hover { background: rgba(132,112,255,0.15); }
.web1c-menu-btn {
  background: none; border: none; color: var(--web1c-text);
  font-size: 2.2rem; cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center; justify-content: center;
}
/* Overlay */
.web1c-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 9998; display: none; transition: var(--web1c-transition);
}
.web1c-overlay-active { display: block; }
/* Mobile Menu */
.web1c-mobile-menu {
  position: fixed; top: 0; right: -80%; width: 80%; height: 100vh;
  background: var(--web1c-bg-dark); z-index: 9999;
  transition: right 0.3s ease; padding: 2rem 1.5rem;
  overflow-y: auto;
}
.web1c-menu-active { right: 0; }
.web1c-menu-close {
  background: none; border: none; color: var(--web1c-text);
  font-size: 2.4rem; cursor: pointer; float: right; margin-bottom: 1rem;
}
.web1c-menu-links { clear: both; padding-top: 1rem; }
.web1c-menu-link {
  display: block; padding: 1.2rem 0; color: var(--web1c-text);
  text-decoration: none; font-size: 1.4rem; border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: var(--web1c-transition);
}
.web1c-menu-link:hover { color: var(--web1c-primary-light); padding-left: 0.5rem; }
/* Main content area */
.web1c-main { padding-top: 5.2rem; }
@media (max-width: 768px) {
  .web1c-main { padding-bottom: 7rem; }
}
/* Carousel */
.web1c-carousel {
  position: relative; width: 100%; overflow: hidden;
  aspect-ratio: 16/7; background: var(--web1c-bg-dark);
}
.web1c-carousel-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.8s ease; cursor: pointer;
}
.web1c-slide-active { opacity: 1; }
.web1c-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
/* Section */
.web1c-section { padding: 2rem 1.2rem; }
.web1c-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--web1c-primary-light);
  margin-bottom: 1.2rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--web1c-primary);
}
.web1c-section-title i { margin-right: 0.5rem; }
/* Game grid */
.web1c-category-title {
  font-size: 1.5rem; font-weight: 600; color: var(--web1c-accent);
  margin: 1.5rem 0 0.8rem; display: flex; align-items: center; gap: 0.5rem;
}
.web1c-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem; margin-bottom: 1rem;
}
.web1c-game-item {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; transition: var(--web1c-transition);
  text-decoration: none; padding: 0.4rem;
}
.web1c-game-item:hover { transform: translateY(-2px); }
.web1c-game-item img {
  width: 100%; aspect-ratio: 1; border-radius: var(--web1c-radius);
  border: 1.5px solid rgba(132,112,255,0.2);
  transition: var(--web1c-transition);
}
.web1c-game-item:hover img { border-color: var(--web1c-primary); box-shadow: 0 0 10px rgba(132,112,255,0.3); }
.web1c-game-name {
  font-size: 1rem; color: var(--web1c-text-muted); text-align: center;
  margin-top: 0.3rem; line-height: 1.2; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
/* Content cards */
.web1c-card {
  background: var(--web1c-bg-card); border-radius: var(--web1c-radius-lg);
  padding: 1.5rem; margin-bottom: 1.2rem;
  box-shadow: var(--web1c-shadow); border: 1px solid rgba(132,112,255,0.1);
}
.web1c-card h3 {
  font-size: 1.5rem; color: var(--web1c-primary-light); margin-bottom: 0.8rem;
}
.web1c-card p { color: var(--web1c-text-muted); line-height: 1.6; margin-bottom: 0.6rem; }
/* Promo link */
.web1c-promo-link {
  color: var(--web1c-accent); font-weight: 600; cursor: pointer;
  text-decoration: none; transition: var(--web1c-transition);
}
.web1c-promo-link:hover { color: #ffe066; text-decoration: underline; }
/* Promo banner */
.web1c-promo-banner {
  background: linear-gradient(135deg, var(--web1c-primary), var(--web1c-primary-dark));
  padding: 1.8rem 1.2rem; text-align: center; border-radius: var(--web1c-radius-lg);
  margin: 1.5rem 0; box-shadow: var(--web1c-shadow-lg);
}
.web1c-promo-banner h2 { font-size: 1.8rem; color: #fff; margin-bottom: 0.6rem; }
.web1c-promo-banner p { color: rgba(255,255,255,0.85); margin-bottom: 1rem; }
.web1c-btn-promo {
  background: var(--web1c-accent); color: var(--web1c-bg-dark);
  font-weight: 700; padding: 0.8rem 2rem; border-radius: var(--web1c-radius);
  border: none; cursor: pointer; font-size: 1.3rem;
  transition: var(--web1c-transition);
}
.web1c-btn-promo:hover { transform: scale(1.05); background: #ffe066; }
/* Feature list */
.web1c-feature-list { list-style: none; padding: 0; }
.web1c-feature-list li {
  padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: flex-start; gap: 0.8rem;
  color: var(--web1c-text-muted); line-height: 1.5;
}
.web1c-feature-list li:last-child { border-bottom: none; }
.web1c-feature-list li i { color: var(--web1c-primary); font-size: 1.4rem; margin-top: 0.2rem; flex-shrink: 0; }
/* Payment grid */
.web1c-payment-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem; margin-top: 0.8rem;
}
.web1c-payment-item {
  background: var(--web1c-bg-card); border-radius: var(--web1c-radius);
  padding: 0.8rem; text-align: center; font-size: 1.1rem;
  color: var(--web1c-text-muted); border: 1px solid rgba(132,112,255,0.15);
}
/* Winner list */
.web1c-winner-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.web1c-winner-name { font-size: 1.2rem; color: var(--web1c-text); }
.web1c-winner-game { font-size: 1rem; color: var(--web1c-text-muted); }
.web1c-winner-amount { font-size: 1.2rem; color: var(--web1c-success); font-weight: 700; }
/* Footer */
.web1c-footer {
  background: var(--web1c-bg-dark); padding: 2rem 1.2rem 1rem;
  border-top: 1px solid rgba(132,112,255,0.2);
}
.web1c-footer-brand { color: var(--web1c-text-muted); font-size: 1.2rem; line-height: 1.6; margin-bottom: 1.2rem; }
.web1c-footer-promos { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.web1c-footer-promos .web1c-btn { font-size: 1rem; padding: 0.5rem 0.8rem; min-height: auto; }
.web1c-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem;
  margin-bottom: 1rem; padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.web1c-footer-links a {
  color: var(--web1c-text-muted); text-decoration: none; font-size: 1.1rem;
  transition: var(--web1c-transition);
}
.web1c-footer-links a:hover { color: var(--web1c-primary-light); }
.web1c-copyright { text-align: center; color: rgba(255,255,255,0.3); font-size: 1rem; padding-top: 0.8rem; }
/* Bottom Navigation */
.web1c-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(44,62,80,0.97), rgba(44,62,80,1));
  border-top: 1px solid rgba(132,112,255,0.25);
  display: flex; justify-content: space-around; align-items: center;
  height: 6rem; padding: 0 0.3rem;
  max-width: 430px; margin: 0 auto;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.4);
}
@media (min-width: 769px) { .web1c-bottom-nav { display: none; } }
.web1c-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 6rem; min-height: 5rem; background: none; border: none;
  color: var(--web1c-text-muted); cursor: pointer;
  transition: var(--web1c-transition); padding: 0.2rem;
  text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.web1c-nav-btn i, .web1c-nav-btn .material-icons, .web1c-nav-btn ion-icon, .web1c-nav-btn bi {
  font-size: 2.2rem; margin-bottom: 0.1rem; transition: var(--web1c-transition);
}
.web1c-nav-btn span { font-size: 1rem; }
.web1c-nav-btn:hover, .web1c-nav-btn:focus { color: var(--web1c-primary-light); }
.web1c-nav-btn:hover i, .web1c-nav-btn:hover .material-icons { transform: scale(1.15); }
.web1c-nav-btn-active { color: var(--web1c-primary-light); }
.web1c-nav-btn-active i, .web1c-nav-btn-active .material-icons { color: var(--web1c-accent); }
/* Help page specific */
.web1c-help-content { padding: 1.5rem 1.2rem; }
.web1c-help-content h2 { font-size: 1.6rem; color: var(--web1c-primary-light); margin: 1.5rem 0 0.8rem; }
.web1c-help-content h3 { font-size: 1.4rem; color: var(--web1c-accent); margin: 1.2rem 0 0.6rem; }
.web1c-help-content p { color: var(--web1c-text-muted); line-height: 1.6; margin-bottom: 0.8rem; }
.web1c-faq-item { margin-bottom: 1rem; }
.web1c-faq-q {
  font-size: 1.3rem; font-weight: 600; color: var(--web1c-primary-light);
  cursor: pointer; padding: 0.8rem; background: var(--web1c-bg-card);
  border-radius: var(--web1c-radius); transition: var(--web1c-transition);
}
.web1c-faq-q:hover { background: var(--web1c-bg-card-hover); }
.web1c-faq-a {
  font-size: 1.2rem; color: var(--web1c-text-muted); padding: 0.8rem;
  line-height: 1.6; border-left: 3px solid var(--web1c-primary);
  margin-top: 0.4rem; background: rgba(132,112,255,0.05);
}
/* Utility */
.web1c-text-center { text-align: center; }
.web1c-mb-1 { margin-bottom: 0.8rem; }
.web1c-mb-2 { margin-bottom: 1.6rem; }
.web1c-mt-2 { margin-top: 1.6rem; }
.web1c-hidden { display: none; }
