/**
 * S5 Casino App - Core Stylesheet
 * All classes use wcb77- prefix for namespace isolation
 * Color Palette: #FF69B4 (pink) | #34495E (dark blue) | #FFEFD5 (cream) | #00BFFF (sky blue) | #F0F0F0 (light gray)
 * Mobile-first design: max-width 430px
 */

:root {
  --wcb77-primary: #FF69B4;
  --wcb77-secondary: #00BFFF;
  --wcb77-bg: #34495E;
  --wcb77-bg-dark: #2c3e50;
  --wcb77-bg-light: #3d566e;
  --wcb77-text: #FFEFD5;
  --wcb77-text-light: #F0F0F0;
  --wcb77-text-muted: #bdc3c7;
  --wcb77-accent: #FF69B4;
  --wcb77-border: rgba(255, 105, 180, 0.3);
  --wcb77-radius: 8px;
  --wcb77-radius-lg: 16px;
  --wcb77-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  --wcb77-transition: all 0.3s ease;
}

/* Reset and base styles */
*, *::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(--wcb77-bg);
  color: var(--wcb77-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--wcb77-primary); text-decoration: none; transition: var(--wcb77-transition); }
a:hover { color: var(--wcb77-secondary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Header */
.wcb77-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--wcb77-bg-dark), var(--wcb77-bg-light));
  border-bottom: 2px solid var(--wcb77-primary);
  padding: 0 1.2rem;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 430px; margin: 0 auto;
}
.wcb77-logo-area { display: flex; align-items: center; gap: 0.8rem; }
.wcb77-logo-area img { width: 32px; height: 32px; border-radius: 6px; }
.wcb77-logo-area span { font-size: 1.6rem; font-weight: 700; color: var(--wcb77-primary); white-space: nowrap; }
.wcb77-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.wcb77-btn-register, .wcb77-btn-login {
  padding: 0.5rem 1.2rem; border-radius: var(--wcb77-radius); font-size: 1.2rem;
  font-weight: 600; border: none; cursor: pointer; transition: var(--wcb77-transition);
}
.wcb77-btn-register {
  background: linear-gradient(135deg, #FF69B4, #ff85c8); color: #fff;
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.4);
}
.wcb77-btn-register:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(255, 105, 180, 0.6); }
.wcb77-btn-login {
  background: transparent; color: var(--wcb77-secondary); border: 1.5px solid var(--wcb77-secondary);
}
.wcb77-btn-login:hover { background: rgba(0, 191, 255, 0.1); }
.wcb77-menu-toggle {
  background: none; border: none; color: var(--wcb77-text); font-size: 2.2rem; cursor: pointer;
  padding: 0.4rem; display: flex; align-items: center;
}

/* Mobile Menu */
.wcb77-menu-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6); z-index: 9998;
}
.wcb77-mobile-menu {
  position: fixed; top: 0; left: 0; bottom: 0; width: 280px;
  background: linear-gradient(180deg, var(--wcb77-bg-dark), #1a252f);
  z-index: 9999; transform: translateX(-100%);
  transition: transform 0.3s ease; padding-top: 2rem; overflow-y: auto;
}
.wcb77-menu-header {
  padding: 1.5rem; border-bottom: 1px solid var(--wcb77-border);
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem;
}
.wcb77-menu-header img { width: 40px; height: 40px; border-radius: 8px; }
.wcb77-menu-header span { font-size: 1.8rem; font-weight: 700; color: var(--wcb77-primary); }
.wcb77-menu-close {
  position: absolute; top: 1rem; right: 1rem; background: none; border: none;
  color: var(--wcb77-text-muted); font-size: 2rem; cursor: pointer;
}
.wcb77-menu-links { padding: 0.5rem 0; }
.wcb77-menu-links a {
  display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.5rem;
  color: var(--wcb77-text-light); font-size: 1.4rem; border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: var(--wcb77-transition);
}
.wcb77-menu-links a:hover { background: rgba(255, 105, 180, 0.1); color: var(--wcb77-primary); }
.wcb77-menu-links a i, .wcb77-menu-links a span.material-symbols-outlined { font-size: 2rem; width: 2.4rem; text-align: center; }

/* Bottom Navigation */
.wcb77-bnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #2c3e50, #1a252f);
  border-top: 2px solid var(--wcb77-primary);
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; max-width: 430px; margin: 0 auto;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.4);
}
.wcb77-bnav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 56px; background: none; border: none;
  color: var(--wcb77-text-muted); cursor: pointer; transition: var(--wcb77-transition);
  gap: 0.2rem; position: relative;
}
.wcb77-bnav-btn i, .wcb77-bnav-btn span.material-symbols-outlined,
.wcb77-bnav-btn ion-icon, .wcb77-bnav-btn bi { font-size: 2.2rem; }
.wcb77-bnav-btn span.wcb77-bnav-label { font-size: 1rem; font-weight: 500; }
.wcb77-bnav-btn:hover, .wcb77-bnav-btn:focus { color: var(--wcb77-primary); transform: scale(1.1); }
.wcb77-bnav-btn.wcb77-bnav-current { color: var(--wcb77-primary); }
.wcb77-bnav-btn.wcb77-bnav-current::after {
  content: ''; position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 3px; background: var(--wcb77-primary); border-radius: 2px;
}
.wcb77-bnav-active { opacity: 0.7; }

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

/* Carousel / Slideshow */
.wcb77-carousel { position: relative; width: 100%; overflow: hidden; aspect-ratio: 16/7; }
.wcb77-slide { display: none; width: 100%; height: 100%; cursor: pointer; position: relative; }
.wcb77-slide img { width: 100%; height: 100%; object-fit: cover; }
.wcb77-slide:first-child { display: block; }
.wcb77-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 5; }
.wcb77-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5);
  cursor: pointer; transition: var(--wcb77-transition); border: none;
}
.wcb77-dot-active { background: var(--wcb77-primary); width: 20px; border-radius: 4px; }

/* Section Titles */
.wcb77-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--wcb77-primary);
  padding: 1.5rem 1.2rem 0.8rem; border-left: 4px solid var(--wcb77-secondary);
  margin: 1rem 1.2rem 0; line-height: 1.4;
}
.wcb77-section-subtitle { font-size: 1.2rem; color: var(--wcb77-text-muted); padding: 0 1.2rem 0.8rem 2.2rem; margin-top: -0.4rem; }

/* Game Grid */
.wcb77-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem;
  padding: 0.8rem 1.2rem;
}
.wcb77-game-card { text-align: center; cursor: pointer; transition: var(--wcb77-transition); }
.wcb77-game-card:hover { transform: translateY(-3px); }
.wcb77-game-card img {
  width: 100%; aspect-ratio: 1; border-radius: var(--wcb77-radius);
  border: 2px solid var(--wcb77-border); object-fit: cover;
  transition: var(--wcb77-transition);
}
.wcb77-game-card:hover img { border-color: var(--wcb77-primary); box-shadow: 0 4px 12px rgba(255,105,180,0.3); }
.wcb77-game-card span {
  display: block; font-size: 1.1rem; color: var(--wcb77-text-light);
  margin-top: 0.3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Content Sections */
.wcb77-content-section { padding: 1.2rem; margin: 0.5rem 0; }
.wcb77-content-section h2 { font-size: 1.7rem; color: var(--wcb77-primary); margin-bottom: 0.8rem; }
.wcb77-content-section h3 { font-size: 1.5rem; color: var(--wcb77-secondary); margin-bottom: 0.6rem; }
.wcb77-content-section p { font-size: 1.3rem; line-height: 1.6; color: var(--wcb77-text-light); margin-bottom: 0.8rem; }

/* Promo Banner */
.wcb77-promo-banner {
  background: linear-gradient(135deg, rgba(255,105,180,0.15), rgba(0,191,255,0.1));
  border: 1px solid var(--wcb77-border); border-radius: var(--wcb77-radius-lg);
  padding: 1.5rem 1.2rem; margin: 1rem 1.2rem; text-align: center;
}
.wcb77-promo-banner h3 { color: var(--wcb77-primary); font-size: 1.6rem; margin-bottom: 0.5rem; }
.wcb77-promo-banner p { color: var(--wcb77-text-light); font-size: 1.3rem; margin-bottom: 1rem; }
.wcb77-promo-btn {
  display: inline-block; padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #FF69B4, #ff85c8);
  color: #fff; font-size: 1.4rem; font-weight: 700;
  border-radius: var(--wcb77-radius); border: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(255,105,180,0.4); transition: var(--wcb77-transition);
}
.wcb77-promo-btn:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(255,105,180,0.6); }

/* Features Grid */
.wcb77-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 0 1.2rem; margin-bottom: 1rem; }
.wcb77-feature-card {
  background: linear-gradient(135deg, var(--wcb77-bg-light), var(--wcb77-bg-dark));
  border: 1px solid var(--wcb77-border); border-radius: var(--wcb77-radius);
  padding: 1.2rem; text-align: center;
}
.wcb77-feature-card i, .wcb77-feature-card span.material-symbols-outlined { font-size: 2.4rem; color: var(--wcb77-primary); margin-bottom: 0.5rem; display: block; }
.wcb77-feature-card h4 { font-size: 1.3rem; color: var(--wcb77-text-light); margin-bottom: 0.3rem; }
.wcb77-feature-card p { font-size: 1.1rem; color: var(--wcb77-text-muted); line-height: 1.4; }

/* Winners List */
.wcb77-winners-list { padding: 0 1.2rem; }
.wcb77-winner-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1rem; background: rgba(255,255,255,0.03);
  border-radius: var(--wcb77-radius); margin-bottom: 0.5rem;
  border-left: 3px solid var(--wcb77-primary);
}
.wcb77-winner-name { font-size: 1.2rem; color: var(--wcb77-text-light); }
.wcb77-winner-game { font-size: 1.1rem; color: var(--wcb77-text-muted); }
.wcb77-winner-amount { font-size: 1.3rem; color: #4CAF50; font-weight: 700; }

/* Payment Methods */
.wcb77-payment-grid { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; padding: 1rem 1.2rem; }
.wcb77-payment-item {
  background: rgba(255,255,255,0.05); border-radius: var(--wcb77-radius);
  padding: 0.8rem 1.5rem; font-size: 1.2rem; color: var(--wcb77-text-light);
  border: 1px solid rgba(255,255,255,0.1); text-align: center;
}
.wcb77-payment-item i { display: block; font-size: 2rem; margin-bottom: 0.3rem; color: var(--wcb77-secondary); }

/* Footer */
.wcb77-footer {
  background: linear-gradient(180deg, var(--wcb77-bg-dark), #1a252f);
  padding: 2rem 1.2rem; margin-top: 2rem;
}
.wcb77-footer-brand { font-size: 1.3rem; color: var(--wcb77-text-muted); line-height: 1.6; margin-bottom: 1.5rem; }
.wcb77-footer-links { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.5rem; }
.wcb77-footer-link {
  display: inline-block; padding: 0.6rem 1.2rem; background: rgba(255,105,180,0.1);
  border: 1px solid var(--wcb77-border); border-radius: var(--wcb77-radius);
  color: var(--wcb77-primary); font-size: 1.2rem; cursor: pointer; transition: var(--wcb77-transition);
}
.wcb77-footer-link:hover { background: rgba(255,105,180,0.2); }
.wcb77-partners { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 1.5rem; }
.wcb77-partners img { height: 24px; opacity: 0.7; filter: grayscale(50%); transition: var(--wcb77-transition); }
.wcb77-partners img:hover { opacity: 1; filter: grayscale(0); }
.wcb77-copyright { text-align: center; font-size: 1.1rem; color: var(--wcb77-text-muted); padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.1); }

/* Back to Top */
.wcb77-back-top {
  display: none; position: fixed; bottom: 72px; right: 1rem; z-index: 999;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--wcb77-primary); color: #fff; border: none;
  font-size: 1.8rem; cursor: pointer; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(255,105,180,0.5); transition: var(--wcb77-transition);
}
.wcb77-back-top:hover { transform: scale(1.1); }

/* Responsive */
@media (min-width: 769px) {
  .wcb77-bnav { display: none; }
  .wcb77-header { max-width: 100%; }
}
@media (max-width: 768px) {
  .wcb77-main { padding-bottom: 80px; }
}
@media (max-width: 360px) {
  .wcb77-game-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .wcb77-features-grid { grid-template-columns: 1fr; }
}

/* FAQ Accordion */
.wcb77-faq-item { margin-bottom: 0.5rem; }
.wcb77-faq-q {
  font-size: 1.3rem; font-weight: 600; color: var(--wcb77-secondary);
  margin-bottom: 0.3rem;
}
.wcb77-faq-a { font-size: 1.2rem; color: var(--wcb77-text-muted); line-height: 1.5; padding-left: 1rem; border-left: 2px solid var(--wcb77-border); margin-bottom: 0.8rem; }

/* Utility Classes */
.wcb77-text-pink { color: var(--wcb77-primary); }
.wcb77-text-blue { color: var(--wcb77-secondary); }
.wcb77-text-bold { font-weight: 700; }
.wcb77-mb-1 { margin-bottom: 0.5rem; }
.wcb77-mb-2 { margin-bottom: 1rem; }
.wcb77-mt-1 { margin-top: 0.5rem; }
.wcb77-mt-2 { margin-top: 1rem; }
.wcb77-text-center { text-align: center; }
.wcb77-divider { height: 1px; background: var(--wcb77-border); margin: 1.5rem 0; }

/* Promo text link */
.wcb77-promo-link { color: var(--wcb77-primary); font-weight: 700; text-decoration: underline; cursor: pointer; }
.wcb77-promo-link:hover { color: var(--wcb77-secondary); }
