/**
 * PHLWin APK - Theme Stylesheet
 * Prefix: s41b-
 * Colors: #F8F9FA #FF4500 #FFA500 #273746 #FF9800
 */

:root {
  --s41b-primary: #FF4500;
  --s41b-secondary: #FFA500;
  --s41b-accent: #FF9800;
  --s41b-bg-dark: #273746;
  --s41b-bg-light: #F8F9FA;
  --s41b-text-light: #F8F9FA;
  --s41b-text-dark: #273746;
  --s41b-radius: 8px;
  --s41b-shadow: 0 2px 8px rgba(0,0,0,0.15);
  --s41b-transition: all 0.3s ease;
}

*, *::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, Oxygen, sans-serif;
  background: var(--s41b-bg-light);
  color: var(--s41b-text-dark);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* === HEADER === */
.s41b-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--s41b-bg-dark);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem; height: 5.2rem;
  max-width: 430px; margin: 0 auto;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.s41b-logo-wrap { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.s41b-logo { width: 3rem; height: 3rem; border-radius: 50%; }
.s41b-logo-text { color: var(--s41b-text-light); font-size: 1.6rem; font-weight: 700; white-space: nowrap; }
.s41b-header-actions { display: flex; gap: 0.6rem; align-items: center; }
.s41b-btn-register, .s41b-btn-login {
  border: none; border-radius: var(--s41b-radius); padding: 0.6rem 1.2rem;
  font-size: 1.2rem; font-weight: 600; cursor: pointer; transition: var(--s41b-transition);
}
.s41b-btn-register { background: var(--s41b-primary); color: #fff; }
.s41b-btn-register:hover { background: #e03d00; transform: scale(1.05); }
.s41b-btn-login { background: transparent; color: var(--s41b-secondary); border: 1.5px solid var(--s41b-secondary); }
.s41b-btn-login:hover { background: var(--s41b-secondary); color: #fff; }
.s41b-menu-btn {
  background: none; border: none; color: var(--s41b-text-light);
  font-size: 2.4rem; cursor: pointer; padding: 0.4rem; line-height: 1;
}

/* === MOBILE MENU === */
.s41b-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 9998;
}
.s41b-overlay-active { display: block; }
.s41b-mobile-menu {
  position: fixed; top: 0; right: -260px; width: 260px; height: 100%;
  background: var(--s41b-bg-dark); z-index: 9999;
  transition: right 0.3s ease; overflow-y: auto; padding: 2rem 0;
}
.s41b-menu-open { right: 0; }
.s41b-menu-close {
  background: none; border: none; color: var(--s41b-text-light);
  font-size: 2.4rem; position: absolute; top: 1rem; right: 1rem; cursor: pointer;
}
.s41b-menu-list { list-style: none; padding: 4rem 1.5rem 1.5rem; }
.s41b-menu-list li { margin-bottom: 0.3rem; }
.s41b-menu-list a {
  display: block; color: var(--s41b-text-light); text-decoration: none;
  padding: 1rem 1.2rem; border-radius: var(--s41b-radius);
  font-size: 1.4rem; transition: var(--s41b-transition);
}
.s41b-menu-list a:hover { background: rgba(255,255,255,0.1); color: var(--s41b-secondary); }

/* === MAIN CONTENT === */
.s41b-main { padding-top: 5.2rem; min-height: 100vh; }
@media (max-width: 768px) { .s41b-main { padding-bottom: 7rem; } }

/* === CAROUSEL === */
.s41b-carousel {
  position: relative; overflow: hidden; width: 100%; aspect-ratio: 16/8;
  cursor: pointer;
}
.s41b-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.6s ease;
}
.s41b-slide img { width: 100%; height: 100%; object-fit: cover; }
.s41b-slide-active { opacity: 1; }
.s41b-dots {
  position: absolute; bottom: 0.8rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.6rem; z-index: 5;
}
.s41b-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer; border: none; transition: var(--s41b-transition);
}
.s41b-dot-active { background: var(--s41b-primary); transform: scale(1.2); }

/* === SECTION === */
.s41b-section { padding: 2rem 1.2rem; }
.s41b-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--s41b-bg-dark);
  margin-bottom: 1.2rem; padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--s41b-primary);
}
.s41b-section-title span { color: var(--s41b-primary); }

/* === GAME GRID === */
.s41b-cat-title {
  font-size: 1.5rem; font-weight: 600; color: var(--s41b-bg-dark);
  margin: 1.5rem 0 1rem; display: flex; align-items: center; gap: 0.6rem;
}
.s41b-cat-title i { color: var(--s41b-primary); }
.s41b-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem;
}
.s41b-game-item { text-align: center; cursor: pointer; transition: var(--s41b-transition); }
.s41b-game-item:hover { transform: translateY(-2px); }
.s41b-game-item img {
  width: 100%; aspect-ratio: 1; border-radius: var(--s41b-radius);
  box-shadow: var(--s41b-shadow);
}
.s41b-game-name {
  font-size: 1rem; color: var(--s41b-text-dark); margin-top: 0.3rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: block; line-height: 1.3;
}

/* === CARDS === */
.s41b-card {
  background: #fff; border-radius: var(--s41b-radius);
  box-shadow: var(--s41b-shadow); padding: 1.5rem; margin-bottom: 1.2rem;
}
.s41b-card h3 { font-size: 1.5rem; color: var(--s41b-bg-dark); margin-bottom: 0.8rem; }
.s41b-card p { font-size: 1.3rem; color: #555; line-height: 1.8; }

/* === PROMO BUTTONS === */
.s41b-promo-btn {
  display: inline-block; background: linear-gradient(135deg, var(--s41b-primary), var(--s41b-accent));
  color: #fff; padding: 1rem 2.5rem; border-radius: 3rem; font-size: 1.4rem;
  font-weight: 700; text-decoration: none; cursor: pointer; border: none;
  transition: var(--s41b-shadow), transform 0.3s;
  box-shadow: 0 4px 15px rgba(255,69,0,0.4);
}
.s41b-promo-btn:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(255,69,0,0.5); }
.s41b-promo-link {
  color: var(--s41b-primary); font-weight: 600; text-decoration: underline;
  cursor: pointer; transition: var(--s41b-transition);
}
.s41b-promo-link:hover { color: var(--s41b-accent); }

/* === FEATURES GRID === */
.s41b-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.s41b-feature-item {
  background: #fff; border-radius: var(--s41b-radius); padding: 1.2rem;
  text-align: center; box-shadow: var(--s41b-shadow);
}
.s41b-feature-item i { font-size: 2.4rem; color: var(--s41b-primary); margin-bottom: 0.6rem; display: block; }
.s41b-feature-item h4 { font-size: 1.2rem; color: var(--s41b-bg-dark); margin-bottom: 0.4rem; }
.s41b-feature-item p { font-size: 1.1rem; color: #666; }

/* === TESTIMONIALS === */
.s41b-testimonials { display: flex; flex-direction: column; gap: 1rem; }
.s41b-testimonial {
  background: #fff; border-radius: var(--s41b-radius); padding: 1.2rem;
  box-shadow: var(--s41b-shadow); border-left: 4px solid var(--s41b-primary);
}
.s41b-testimonial p { font-size: 1.2rem; color: #444; font-style: italic; margin-bottom: 0.6rem; }
.s41b-testimonial-author { font-size: 1.1rem; color: var(--s41b-primary); font-weight: 600; }

/* === PAYMENT === */
.s41b-payment-grid { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.s41b-payment-item {
  background: #fff; border-radius: var(--s41b-radius); padding: 1rem 1.5rem;
  box-shadow: var(--s41b-shadow); font-size: 1.2rem; font-weight: 600;
  color: var(--s41b-bg-dark); display: flex; align-items: center; gap: 0.5rem;
}

/* === WINNERS === */
.s41b-winners-list { display: flex; flex-direction: column; gap: 0.6rem; }
.s41b-winner {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; border-radius: var(--s41b-radius); padding: 0.8rem 1.2rem;
  box-shadow: var(--s41b-shadow);
}
.s41b-winner-name { font-weight: 600; font-size: 1.2rem; color: var(--s41b-bg-dark); }
.s41b-winner-game { font-size: 1.1rem; color: #666; }
.s41b-winner-amount { font-weight: 700; font-size: 1.3rem; color: var(--s41b-primary); }

/* === FOOTER === */
.s41b-footer {
  background: var(--s41b-bg-dark); color: var(--s41b-text-light);
  padding: 2rem 1.2rem 3rem;
}
.s41b-footer-brand { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.8rem; color: var(--s41b-secondary); }
.s41b-footer-desc { font-size: 1.2rem; color: #aaa; line-height: 1.6; margin-bottom: 1.2rem; }
.s41b-footer-links { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.2rem; }
.s41b-footer-link {
  color: var(--s41b-secondary); font-size: 1.1rem; text-decoration: none;
  transition: var(--s41b-transition);
}
.s41b-footer-link:hover { color: #fff; text-decoration: underline; }
.s41b-footer-promo-btns { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.s41b-footer-promo-btns button {
  background: var(--s41b-primary); color: #fff; border: none;
  padding: 0.6rem 1.2rem; border-radius: 2rem; font-size: 1.1rem;
  cursor: pointer; font-weight: 600; transition: var(--s41b-transition);
}
.s41b-footer-promo-btns button:hover { background: var(--s41b-accent); transform: scale(1.05); }
.s41b-footer-copy { font-size: 1rem; color: #777; text-align: center; margin-top: 1rem; }

/* === BOTTOM NAV === */
.s41b-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1000; background: var(--s41b-bg-dark);
  display: flex; justify-content: space-around; align-items: center;
  height: 6rem; max-width: 430px; margin: 0 auto;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
  border-top: 2px solid rgba(255,165,0,0.3);
}
.s41b-bottom-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: none; border: none; color: #aaa; cursor: pointer;
  min-width: 6rem; min-height: 5rem; transition: var(--s41b-transition);
  padding: 0.3rem 0;
}
.s41b-bottom-btn i, .s41b-bottom-btn .material-icons-outlined {
  font-size: 2.4rem; margin-bottom: 0.2rem; transition: var(--s41b-transition);
}
.s41b-bottom-btn span { font-size: 1rem; white-space: nowrap; }
.s41b-bottom-btn:hover, .s41b-bottom-btn.s41b-active {
  color: var(--s41b-primary);
}
.s41b-bottom-btn:hover i, .s41b-bottom-btn.s41b-active i,
.s41b-bottom-btn:hover .material-icons-outlined, .s41b-bottom-btn.s41b-active .material-icons-outlined {
  transform: scale(1.15);
}
.s41b-bottom-btn:active { transform: scale(0.92); }
@media (min-width: 769px) { .s41b-bottom-nav { display: none; } }

/* === SCROLL TOP === */
.s41b-top-btn {
  position: fixed; bottom: 7rem; right: 1.5rem; z-index: 500;
  background: var(--s41b-primary); color: #fff; border: none;
  width: 4rem; height: 4rem; border-radius: 50%; font-size: 1.8rem;
  cursor: pointer; box-shadow: var(--s41b-shadow); display: none;
  transition: var(--s41b-transition);
}
.s41b-top-btn:hover { background: var(--s41b-accent); transform: scale(1.1); }

/* === HELP PAGES === */
.s41b-help-content { padding: 1.5rem 1.2rem; }
.s41b-help-content h2 {
  font-size: 1.6rem; color: var(--s41b-bg-dark); margin: 1.5rem 0 0.8rem;
  padding-left: 1rem; border-left: 4px solid var(--s41b-primary);
}
.s41b-help-content h3 { font-size: 1.4rem; color: var(--s41b-primary); margin: 1.2rem 0 0.6rem; }
.s41b-help-content p { font-size: 1.3rem; color: #444; line-height: 1.8; margin-bottom: 0.8rem; }
.s41b-help-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.s41b-help-content li { font-size: 1.3rem; color: #444; line-height: 1.8; margin-bottom: 0.4rem; }

/* === FAQ === */
.s41b-faq-item { margin-bottom: 1rem; }
.s41b-faq-q {
  background: var(--s41b-bg-dark); color: var(--s41b-text-light);
  padding: 1rem 1.2rem; border-radius: var(--s41b-radius);
  font-weight: 600; font-size: 1.3rem; cursor: pointer;
}
.s41b-faq-a {
  background: #fff; padding: 1rem 1.2rem; border-radius: 0 0 var(--s41b-radius) var(--s41b-radius);
  font-size: 1.2rem; color: #444; line-height: 1.7;
}

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

/* === DESKTOP NAV === */
.s41b-desktop-nav {
  display: none; background: var(--s41b-bg-dark);
  padding: 0 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.1);
  max-width: 430px; margin: 0 auto;
}
.s41b-desktop-nav-links { display: flex; flex-wrap: wrap; gap: 0.3rem; padding: 0.5rem 0; }
.s41b-desktop-nav-links a {
  color: #ccc; text-decoration: none; font-size: 1.1rem; padding: 0.4rem 0.8rem;
  border-radius: 3px; transition: var(--s41b-transition);
}
.s41b-desktop-nav-links a:hover { color: var(--s41b-secondary); background: rgba(255,255,255,0.05); }
@media (min-width: 769px) {
  .s41b-desktop-nav { display: block; }
  .s41b-main { padding-top: 10rem; }
  body { max-width: 100%; }
  .s41b-header, .s41b-bottom-nav, .s41b-desktop-nav { max-width: 100%; }
}
