/**
 * PhilSlot Core CSS Styles
 * Prefix: v476-
 * Color palette: #1E1E1E (bg) | #F5F5F5 (text) | #E8F5E8 (accent)
 */

:root {
  --v476-primary: #1E1E1E;
  --v476-text: #F5F5F5;
  --v476-accent: #E8F5E8;
  --v476-bg-dark: #141414;
  --v476-bg-card: #2A2A2A;
  --v476-border: #3A3A3A;
  --v476-gold: #FFD700;
  --v476-green: #4CAF50;
  --v476-red: #E53935;
  --v476-blue: #42A5F5;
  --v476-orange: #FF9800;
  --v476-purple: #AB47BC;
}

/* Reset and base */
html { font-size: 62.5%; scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--v476-primary);
  color: var(--v476-text);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--v476-accent); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.v476-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--v476-bg-dark);
  border-bottom: 1px solid var(--v476-border);
  max-width: 430px; margin: 0 auto;
}
.v476-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1rem; height: 52px;
}
.v476-logo-area { display: flex; align-items: center; gap: 0.6rem; }
.v476-logo-area img { width: 28px; height: 28px; border-radius: 4px; }
.v476-logo-area span { font-size: 1.5rem; font-weight: 700; color: var(--v476-gold); }
.v476-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.v476-btn-register {
  background: var(--v476-green); color: #fff; border: none;
  padding: 0.5rem 1rem; border-radius: 6px; font-size: 1.2rem;
  font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.v476-btn-register:hover { background: #43A047; transform: scale(1.05); }
.v476-btn-login {
  background: transparent; color: var(--v476-text);
  border: 1px solid var(--v476-border); padding: 0.5rem 1rem;
  border-radius: 6px; font-size: 1.2rem; cursor: pointer; transition: all 0.2s;
}
.v476-btn-login:hover { border-color: var(--v476-gold); color: var(--v476-gold); }
.v476-menu-toggle {
  background: none; border: none; color: var(--v476-text);
  font-size: 2rem; cursor: pointer; padding: 0.4rem;
}

/* Mobile menu */
.v476-menu-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9998;
}
.v476-overlay-active { display: block; }
.v476-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: var(--v476-bg-dark); z-index: 9999;
  transition: right 0.3s ease; padding: 1.5rem 0;
}
.v476-menu-active { right: 0; }
.v476-mobile-menu .v476-menu-close {
  background: none; border: none; color: var(--v476-text);
  font-size: 2.4rem; cursor: pointer; padding: 0.5rem 1rem;
  display: block; text-align: right;
}
.v476-mobile-menu nav a {
  display: block; padding: 1.2rem 1.5rem; color: var(--v476-text);
  font-size: 1.4rem; border-bottom: 1px solid var(--v476-border);
  transition: all 0.2s;
}
.v476-mobile-menu nav a:hover { background: var(--v476-bg-card); color: var(--v476-gold); }

/* Main content */
.v476-main { padding-top: 52px; }

/* Slider */
.v476-slider { position: relative; overflow: hidden; }
.v476-slide { display: none; cursor: pointer; }
.v476-slide img { width: 100%; height: 180px; object-fit: cover; }
.v476-dots { display: flex; justify-content: center; gap: 0.6rem; padding: 0.8rem; }
.v476-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--v476-border); cursor: pointer; transition: all 0.2s;
}
.v476-dot-active { background: var(--v476-gold); transform: scale(1.3); }

/* Section styling */
.v476-section {
  padding: 1.5rem 1rem;
}
.v476-section-title {
  font-size: 1.6rem; font-weight: 700; margin-bottom: 1rem;
  padding-bottom: 0.5rem; border-bottom: 2px solid var(--v476-gold);
  display: flex; align-items: center; gap: 0.5rem;
}
.v476-section-title i { color: var(--v476-gold); }

/* Game grid */
.v476-game-category-title {
  font-size: 1.4rem; font-weight: 600; margin: 1.5rem 0 0.8rem;
  color: var(--v476-gold); display: flex; align-items: center; gap: 0.4rem;
}
.v476-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.v476-game-card {
  background: var(--v476-bg-card); border-radius: 8px; overflow: hidden;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--v476-border);
}
.v476-game-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
.v476-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.v476-game-card p {
  font-size: 1rem; text-align: center; padding: 0.3rem 0.2rem;
  color: var(--v476-text); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis;
}

/* Content modules */
.v476-content-block {
  background: var(--v476-bg-card); border-radius: 10px;
  padding: 1.5rem; margin: 1rem 0;
  border: 1px solid var(--v476-border);
}
.v476-content-block h2 {
  font-size: 1.5rem; color: var(--v476-gold); margin-bottom: 0.8rem;
}
.v476-content-block h3 {
  font-size: 1.3rem; color: var(--v476-accent); margin: 0.8rem 0 0.4rem;
}
.v476-content-block p {
  font-size: 1.2rem; line-height: 1.6; margin-bottom: 0.6rem; color: #ddd;
}

/* Promo link button */
.v476-promo-btn {
  display: inline-block; background: linear-gradient(135deg, var(--v476-green), #2E7D32);
  color: #fff; padding: 0.8rem 1.6rem; border-radius: 8px;
  font-size: 1.3rem; font-weight: 700; cursor: pointer;
  transition: all 0.2s; text-align: center; margin: 0.5rem 0;
}
.v476-promo-btn:hover { transform: scale(1.05); box-shadow: 0 4px 15px rgba(76,175,80,0.4); }
.v476-promo-btn-gold {
  background: linear-gradient(135deg, var(--v476-gold), #FFA000);
  color: var(--v476-primary);
}
.v476-promo-text {
  color: var(--v476-gold); font-weight: 700; cursor: pointer;
  border-bottom: 1px dashed var(--v476-gold); transition: color 0.2s;
}
.v476-promo-text:hover { color: var(--v476-accent); }

/* Testimonials */
.v476-testimonial {
  background: var(--v476-bg-card); border-left: 3px solid var(--v476-gold);
  padding: 1rem 1.2rem; margin: 0.8rem 0; border-radius: 0 8px 8px 0;
}
.v476-testimonial p { font-style: italic; font-size: 1.1rem; }
.v476-testimonial .v476-author {
  font-size: 1rem; color: var(--v476-gold); margin-top: 0.4rem; font-style: normal;
}

/* Stats row */
.v476-stats-row {
  display: flex; gap: 0.6rem; margin: 0.8rem 0; flex-wrap: wrap;
}
.v476-stat-item {
  flex: 1; min-width: 80px; background: var(--v476-bg-card);
  padding: 0.8rem; border-radius: 8px; text-align: center;
  border: 1px solid var(--v476-border);
}
.v476-stat-item .v476-stat-num {
  font-size: 1.6rem; font-weight: 700; color: var(--v476-gold);
}
.v476-stat-item .v476-stat-label { font-size: 1rem; color: #aaa; }

/* Winners list */
.v476-winner-list { list-style: none; }
.v476-winner-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0; border-bottom: 1px solid var(--v476-border);
}
.v476-winner-name { font-size: 1.1rem; color: var(--v476-text); }
.v476-winner-amount { font-size: 1.2rem; color: var(--v476-green); font-weight: 700; }
.v476-winner-game { font-size: 1rem; color: #aaa; }

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

/* Footer */
.v476-footer {
  background: var(--v476-bg-dark); padding: 1.5rem 1rem;
  border-top: 1px solid var(--v476-border); margin-top: 1rem;
}
.v476-footer-desc { font-size: 1.1rem; line-height: 1.5; color: #aaa; margin-bottom: 1rem; }
.v476-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.8rem 0;
}
.v476-footer-link {
  background: var(--v476-bg-card); border: 1px solid var(--v476-border);
  padding: 0.4rem 0.8rem; border-radius: 6px; font-size: 1rem;
  color: var(--v476-text); cursor: pointer; transition: all 0.2s;
}
.v476-footer-link:hover { border-color: var(--v476-gold); color: var(--v476-gold); }
.v476-footer-copy {
  font-size: 1rem; color: #666; text-align: center;
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--v476-border);
}

/* Partners */
.v476-partners {
  display: flex; gap: 0.8rem; flex-wrap: wrap;
  justify-content: center; margin: 0.8rem 0;
}
.v476-partner-logo {
  width: 48px; height: 48px; border-radius: 8px;
  opacity: 0.7; transition: opacity 0.2s;
}
.v476-partner-logo:hover { opacity: 1; }

/* Bottom navigation */
.v476-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: var(--v476-bg-dark);
  border-top: 1px solid var(--v476-border);
  display: flex; justify-content: space-around;
  height: 60px; align-items: center;
  max-width: 430px; margin: 0 auto;
}
.v476-bottom-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 60px; min-height: 56px;
  background: none; border: none; color: var(--v476-text);
  cursor: pointer; transition: all 0.2s; padding: 0.4rem;
  border-radius: 8px;
}
.v476-bottom-btn i, .v476-bottom-btn span.material-icons-outlined {
  font-size: 22px; margin-bottom: 2px;
}
.v476-bottom-btn .material-icons-outlined { font-size: 22px; }
.v476-bottom-btn span.v476-nav-label { font-size: 1rem; }
.v476-bottom-btn:hover { color: var(--v476-gold); background: rgba(255,215,0,0.1); }
.v476-bottom-btn.v476-active {
  color: var(--v476-gold);
  background: rgba(255,215,0,0.15);
}
.v476-bottom-btn:active { transform: scale(0.92); }

/* Responsive - hide bottom nav on desktop */
@media (min-width: 769px) {
  .v476-bottom-nav { display: none; }
  body { max-width: 430px; }
}
@media (max-width: 768px) {
  .v476-main, main { padding-bottom: 80px; }
  .v476-footer { padding-bottom: 80px; }
}

/* Utility classes */
.v476-text-center { text-align: center; }
.v476-text-gold { color: var(--v476-gold); }
.v476-text-green { color: var(--v476-green); }
.v476-mt-1 { margin-top: 0.5rem; }
.v476-mb-1 { margin-bottom: 0.5rem; }
.v476-hidden { display: none; }

/* FAQ */
.v476-faq-item { margin-bottom: 1rem; }
.v476-faq-q {
  font-size: 1.3rem; font-weight: 600; color: var(--v476-gold);
  margin-bottom: 0.4rem;
}
.v476-faq-a { font-size: 1.2rem; line-height: 1.6; color: #ccc; }

/* Tips list */
.v476-tips-list { list-style: none; padding: 0; }
.v476-tips-list li {
  padding: 0.6rem 0; font-size: 1.2rem; line-height: 1.5;
  border-bottom: 1px solid var(--v476-border); color: #ccc;
  padding-left: 1.5rem; position: relative;
}
.v476-tips-list li::before {
  content: ''; position: absolute; left: 0; top: 1rem;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--v476-gold);
}

/* Animation */
@keyframes v476fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.v476-fade-in { animation: v476fadeIn 0.4s ease-out; }
