/**
 * lucky-game-apk.sbs - Core Stylesheet
 * All classes use "sfa2-" prefix for namespace isolation
 * Color palette: #F8F8FF | #F08080 | #1C2833 | #B03060
 */

/* === CSS Variables === */
:root {
  --sfa2-primary: #B03060;
  --sfa2-secondary: #F08080;
  --sfa2-bg: #1C2833;
  --sfa2-bg-dark: #141D26;
  --sfa2-bg-card: #22303F;
  --sfa2-text: #F8F8FF;
  --sfa2-text-muted: #A8B8C8;
  --sfa2-accent: #F08080;
  --sfa2-gold: #FFD700;
  --sfa2-green: #2ECC71;
  --sfa2-border: #2C3E50;
  --sfa2-radius: 10px;
  --sfa2-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--sfa2-bg);
  color: var(--sfa2-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}
a { color: var(--sfa2-secondary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--sfa2-accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === Header === */
.sfa2-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: var(--sfa2-bg-dark);
  border-bottom: 2px solid var(--sfa2-primary);
  z-index: 1000; padding: 0.8rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.sfa2-header-logo {
  display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0;
}
.sfa2-header-logo img { width: 28px; height: 28px; border-radius: 6px; }
.sfa2-header-logo span { font-size: 1.5rem; font-weight: 700; color: var(--sfa2-text); white-space: nowrap; }
.sfa2-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.sfa2-btn-register {
  background: linear-gradient(135deg, var(--sfa2-primary), var(--sfa2-secondary));
  color: #fff; border: none; padding: 0.5rem 1.2rem; border-radius: 20px;
  font-size: 1.2rem; font-weight: 600; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
}
.sfa2-btn-register:hover { transform: scale(1.05); box-shadow: 0 2px 10px rgba(176,48,96,0.5); }
.sfa2-btn-login {
  background: transparent; color: var(--sfa2-secondary);
  border: 1.5px solid var(--sfa2-secondary); padding: 0.5rem 1rem; border-radius: 20px;
  font-size: 1.2rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.sfa2-btn-login:hover { background: var(--sfa2-secondary); color: var(--sfa2-bg-dark); }
.sfa2-menu-toggle {
  background: none; border: none; color: var(--sfa2-text); font-size: 2rem; cursor: pointer;
  padding: 0.4rem; display: flex; align-items: center; justify-content: center;
}

/* === Mobile Side Menu === */
.sfa2-menu-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); z-index: 9998;
}
.sfa2-mobile-menu {
  position: fixed; top: 0; left: 0; width: 75%; max-width: 300px; height: 100%;
  background: var(--sfa2-bg-dark); z-index: 9999;
  transform: translateX(-100%); transition: transform 0.3s ease;
  padding: 2rem 1.5rem; overflow-y: auto;
}
.sfa2-mobile-menu-close {
  background: none; border: none; color: var(--sfa2-text); font-size: 2.4rem;
  cursor: pointer; position: absolute; top: 1rem; right: 1rem;
}
.sfa2-mobile-menu h3 { font-size: 1.6rem; color: var(--sfa2-primary); margin-bottom: 1.5rem; }
.sfa2-mobile-menu ul li { margin-bottom: 0.8rem; }
.sfa2-mobile-menu ul li a {
  display: block; padding: 0.8rem 1rem; color: var(--sfa2-text);
  border-radius: 8px; font-size: 1.3rem; transition: background 0.2s;
}
.sfa2-mobile-menu ul li a:hover { background: var(--sfa2-bg-card); color: var(--sfa2-secondary); }

/* === Main Content === */
.sfa2-main { padding-top: 5.5rem; }

/* === Carousel === */
.sfa2-carousel { position: relative; overflow: hidden; border-radius: 0 0 12px 12px; margin-bottom: 1.5rem; }
.sfa2-carousel-track { display: flex; transition: transform 0.5s ease; }
.sfa2-carousel-slide { min-width: 100%; cursor: pointer; }
.sfa2-carousel-slide img { width: 100%; height: auto; min-height: 160px; object-fit: cover; }
.sfa2-carousel-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.sfa2-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4);
  cursor: pointer; transition: background 0.3s;
}
.sfa2-dot-active { background: var(--sfa2-secondary); transform: scale(1.2); }

/* === Section Styles === */
.sfa2-section { padding: 2rem 1.2rem; }
.sfa2-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--sfa2-text);
  margin-bottom: 1.2rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--sfa2-primary); display: inline-block;
}
.sfa2-section-title i { margin-right: 0.5rem; color: var(--sfa2-secondary); }

/* === Game Grid === */
.sfa2-game-cat-title {
  font-size: 1.5rem; font-weight: 600; color: var(--sfa2-secondary);
  margin: 1.5rem 0 0.8rem; padding-left: 0.5rem;
  border-left: 3px solid var(--sfa2-primary);
}
.sfa2-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem; margin-bottom: 1rem;
}
.sfa2-game-item { text-align: center; cursor: pointer; transition: transform 0.2s; }
.sfa2-game-item:hover { transform: translateY(-3px); }
.sfa2-game-item img {
  width: 100%; aspect-ratio: 1; border-radius: 10px;
  border: 2px solid var(--sfa2-border); transition: border-color 0.2s;
}
.sfa2-game-item:hover img { border-color: var(--sfa2-primary); }
.sfa2-game-item span {
  display: block; font-size: 1rem; color: var(--sfa2-text-muted);
  margin-top: 0.3rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* === Cards === */
.sfa2-card {
  background: var(--sfa2-bg-card); border-radius: var(--sfa2-radius);
  padding: 1.5rem; margin-bottom: 1.2rem; box-shadow: var(--sfa2-shadow);
}
.sfa2-card h3 { font-size: 1.5rem; color: var(--sfa2-secondary); margin-bottom: 0.8rem; }
.sfa2-card p { color: var(--sfa2-text-muted); line-height: 1.6; margin-bottom: 0.6rem; }

/* === Promo Buttons === */
.sfa2-promo-btn {
  display: inline-block; background: linear-gradient(135deg, var(--sfa2-primary), var(--sfa2-secondary));
  color: #fff; padding: 0.8rem 2rem; border-radius: 25px;
  font-size: 1.3rem; font-weight: 700; cursor: pointer; border: none;
  transition: transform 0.2s, box-shadow 0.2s; text-align: center;
}
.sfa2-promo-btn:hover { transform: scale(1.05); box-shadow: 0 4px 20px rgba(176,48,96,0.5); }
.sfa2-promo-text {
  color: var(--sfa2-secondary); font-weight: 700; cursor: pointer;
  border-bottom: 1px dashed var(--sfa2-secondary); transition: color 0.2s;
}
.sfa2-promo-text:hover { color: var(--sfa2-accent); }

/* === Testimonial === */
.sfa2-testimonial {
  background: var(--sfa2-bg-card); border-left: 3px solid var(--sfa2-primary);
  padding: 1rem 1.2rem; border-radius: 0 8px 8px 0; margin-bottom: 0.8rem;
}
.sfa2-testimonial p { font-style: italic; color: var(--sfa2-text-muted); font-size: 1.2rem; }
.sfa2-testimonial strong { color: var(--sfa2-gold); font-size: 1.1rem; }

/* === Winners === */
.sfa2-winner-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0; border-bottom: 1px solid var(--sfa2-border); font-size: 1.2rem;
}
.sfa2-winner-row:last-child { border-bottom: none; }
.sfa2-winner-name { color: var(--sfa2-text); font-weight: 600; }
.sfa2-winner-game { color: var(--sfa2-text-muted); }
.sfa2-winner-amount { color: var(--sfa2-gold); font-weight: 700; }

/* === Payment Icons === */
.sfa2-payment-grid {
  display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center;
}
.sfa2-payment-item {
  background: var(--sfa2-bg-card); padding: 0.6rem 1rem; border-radius: 8px;
  font-size: 1.1rem; color: var(--sfa2-text-muted); border: 1px solid var(--sfa2-border);
}

/* === Download CTA === */
.sfa2-download-cta {
  background: linear-gradient(135deg, var(--sfa2-bg-card), var(--sfa2-primary));
  border-radius: 12px; padding: 2rem; text-align: center; margin: 1.5rem 0;
}
.sfa2-download-cta h3 { font-size: 1.8rem; color: var(--sfa2-text); margin-bottom: 0.8rem; }
.sfa2-download-cta p { color: var(--sfa2-text-muted); margin-bottom: 1.2rem; }

/* === FAQ === */
.sfa2-faq-item { margin-bottom: 1rem; }
.sfa2-faq-q {
  font-size: 1.3rem; font-weight: 600; color: var(--sfa2-secondary);
  margin-bottom: 0.3rem; padding-left: 1rem; border-left: 3px solid var(--sfa2-primary);
}
.sfa2-faq-a { color: var(--sfa2-text-muted); padding-left: 1rem; line-height: 1.5; }

/* === Footer === */
.sfa2-footer {
  background: var(--sfa2-bg-dark); border-top: 2px solid var(--sfa2-primary);
  padding: 2rem 1.2rem 8rem; text-align: center;
}
.sfa2-footer-brand { font-size: 1.3rem; color: var(--sfa2-text-muted); margin-bottom: 1.2rem; line-height: 1.6; }
.sfa2-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 1.2rem; }
.sfa2-footer-links a {
  background: var(--sfa2-bg-card); padding: 0.5rem 1rem; border-radius: 20px;
  font-size: 1.1rem; color: var(--sfa2-text-muted); transition: all 0.2s;
}
.sfa2-footer-links a:hover { color: var(--sfa2-secondary); border-color: var(--sfa2-primary); }
.sfa2-footer-copy { font-size: 1.1rem; color: var(--sfa2-text-muted); margin-top: 1rem; opacity: 0.7; }

/* === Bottom Navigation === */
.sfa2-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 60px;
  background: var(--sfa2-bg-dark); border-top: 2px solid var(--sfa2-primary);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; padding: 0 0.3rem;
}
.sfa2-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 56px; background: none; border: none;
  color: var(--sfa2-text-muted); cursor: pointer; transition: all 0.2s;
  border-radius: 8px; padding: 0.2rem;
}
.sfa2-bottom-nav-btn:hover, .sfa2-nav-active {
  color: var(--sfa2-secondary); background: rgba(240,128,128,0.1);
  transform: scale(1.05);
}
.sfa2-bottom-nav-btn i, .sfa2-bottom-nav-btn .material-icons {
  font-size: 22px; margin-bottom: 2px;
}
.sfa2-bottom-nav-btn ion-icon { font-size: 24px; margin-bottom: 1px; }
.sfa2-bottom-nav-btn span { font-size: 0.9rem; white-space: nowrap; }

/* === Help Page Styles === */
.sfa2-help-hero {
  background: linear-gradient(135deg, var(--sfa2-bg-card), var(--sfa2-primary));
  padding: 2rem 1.2rem; text-align: center; margin-bottom: 1.5rem;
}
.sfa2-help-hero h1 { font-size: 2rem; color: var(--sfa2-text); margin-bottom: 0.5rem; }
.sfa2-help-content { padding: 0 1.2rem 2rem; }
.sfa2-help-content h2 {
  font-size: 1.6rem; color: var(--sfa2-secondary); margin: 1.5rem 0 0.8rem;
  border-left: 3px solid var(--sfa2-primary); padding-left: 0.8rem;
}
.sfa2-help-content h3 { font-size: 1.4rem; color: var(--sfa2-accent); margin: 1rem 0 0.5rem; }
.sfa2-help-content p { color: var(--sfa2-text-muted); line-height: 1.7; margin-bottom: 0.8rem; }
.sfa2-help-content ul { padding-left: 1.5rem; margin-bottom: 0.8rem; }
.sfa2-help-content ul li {
  color: var(--sfa2-text-muted); line-height: 1.6; margin-bottom: 0.4rem;
  list-style: disc;
}

/* === Responsive === */
@media (min-width: 769px) {
  .sfa2-bottom-nav { display: none; }
  .sfa2-menu-toggle { display: none; }
}
@media (max-width: 768px) {
  .sfa2-main { padding-bottom: 80px; }
}
