/* =============================================================
   me777 club - Core Stylesheet
   All custom classes use s58f- prefix for namespace isolation
   Mobile-first design, max-width 430px container
   ============================================================= */
:root {
  --s58f-primary: #DEB887;
  --s58f-primary-dark: #c4a373;
  --s58f-bg: #0A0A0A;
  --s58f-bg-dark: #050505;
  --s58f-bg-card: #141414;
  --s58f-bg-elevated: #1c1c1c;
  --s58f-text: #DEB887;
  --s58f-text-bright: #f5e6d3;
  --s58f-text-muted: #a08866;
  --s58f-border: #2a2a2a;
  --s58f-gold: #FFD700;
  --s58f-success: #4caf50;
  --s58f-danger: #f44336;
  --s58f-shadow: 0 4px 20px rgba(222, 184, 135, 0.15);
  --s58f-radius: 12px;
  --s58f-radius-sm: 8px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background-color: var(--s58f-bg);
  color: var(--s58f-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.5rem; line-height: 1.5;
  max-width: 430px; margin: 0 auto;
  min-height: 100vh; position: relative; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--s58f-primary); text-decoration: none; }
ul { list-style: none; }
.s58f-no-scroll { overflow: hidden; }

/* ===== Layout containers ===== */
.s58f-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.s58f-wrapper { width: 100%; min-height: 100vh; position: relative; }

/* ===== Header ===== */
.s58f-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: linear-gradient(180deg, #050505 0%, #0A0A0A 100%);
  border-bottom: 1px solid var(--s58f-border);
  z-index: 1000; padding: 0.8rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.s58f-logo { display: flex; align-items: center; gap: 0.6rem; color: var(--s58f-primary); font-weight: 700; font-size: 1.6rem; }
.s58f-logo img { width: 28px; height: 28px; border-radius: 6px; }
.s58f-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.s58f-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 0.7rem 1.2rem;
  border-radius: var(--s58f-radius-sm);
  font-size: 1.3rem; font-weight: 600; cursor: pointer;
  border: none; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-height: 36px; text-decoration: none; font-family: inherit;
}
.s58f-btn-primary { background: linear-gradient(135deg, #DEB887 0%, #c4a373 100%); color: #0A0A0A; }
.s58f-btn-secondary { background: transparent; color: var(--s58f-primary); border: 1px solid var(--s58f-primary); }
.s58f-btn-block { width: 100%; }
.s58f-btn:hover { transform: translateY(-1px); box-shadow: var(--s58f-shadow); }
.s58f-menu-toggle { background: transparent; border: none; color: var(--s58f-primary); font-size: 1.8rem; cursor: pointer; padding: 0.5rem; min-width: 36px; }

/* ===== Mobile slide-in menu ===== */
.s58f-mobile-menu {
  position: fixed; top: 0; right: -100%;
  width: 80%; max-width: 320px; height: 100vh;
  background: var(--s58f-bg-dark); z-index: 9999;
  padding: 5.5rem 1.5rem 2rem; transition: right 0.3s ease;
  overflow-y: auto; border-left: 1px solid var(--s58f-border);
}
.s58f-mobile-menu.s58f-menu-open { right: 0; }
.s58f-menu-close { position: absolute; top: 1rem; right: 1.5rem; background: transparent; border: none; color: var(--s58f-primary); font-size: 2rem; cursor: pointer; }
.s58f-mobile-menu ul li { margin-bottom: 0.8rem; }
.s58f-mobile-menu a {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 1rem 1.2rem; color: var(--s58f-text-bright); font-size: 1.35rem;
  border-radius: var(--s58f-radius-sm); background: var(--s58f-bg-card);
  border: 1px solid var(--s58f-border); transition: background 0.2s, color 0.2s;
}
.s58f-mobile-menu a:hover { background: var(--s58f-bg-elevated); color: var(--s58f-primary); }
.s58f-menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.65); z-index: 9998;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.s58f-menu-overlay.s58f-menu-open { opacity: 1; pointer-events: auto; }

/* ===== Main content ===== */
.s58f-main { padding-top: 5.5rem; padding-bottom: 8rem; }

/* ===== Carousel ===== */
.s58f-carousel { position: relative; width: 100%; height: 180px; border-radius: var(--s58f-radius); overflow: hidden; margin: 1rem 0 1.5rem; }
.s58f-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s; cursor: pointer; }
.s58f-slide.s58f-slide-active { opacity: 1; }
.s58f-slide img { width: 100%; height: 100%; object-fit: cover; }
.s58f-slide-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent); padding: 1.5rem 1rem 1rem; color: var(--s58f-text-bright); }
.s58f-slide-overlay h3 { font-size: 1.6rem; color: var(--s58f-primary); margin-bottom: 0.3rem; }
.s58f-slide-overlay p { font-size: 1.2rem; }
.s58f-carousel-dots { position: absolute; bottom: 0.8rem; right: 1rem; display: flex; gap: 0.4rem; }
.s58f-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; border: none; transition: all 0.2s; }
.s58f-dot.s58f-dot-active { background: var(--s58f-primary); width: 24px; border-radius: 4px; }

/* ===== Sections & typography ===== */
.s58f-section { padding: 1.2rem 0; }
.s58f-section-title { font-size: 1.8rem; color: var(--s58f-primary); margin-bottom: 1rem; padding-left: 0.8rem; border-left: 4px solid var(--s58f-primary); font-weight: 700; }
.s58f-section-subtitle { font-size: 1.5rem; color: var(--s58f-text-bright); margin: 1rem 0 0.6rem; font-weight: 600; }
.s58f-text { color: var(--s58f-text-muted); line-height: 1.6; font-size: 1.35rem; margin-bottom: 0.8rem; }
.s58f-text-bright { color: var(--s58f-text-bright); }
.s58f-promo-link { color: var(--s58f-primary); font-weight: 700; text-decoration: underline; cursor: pointer; }

/* ===== Game library ===== */
.s58f-game-cat-title { font-size: 1.5rem; color: var(--s58f-text-bright); margin: 1.5rem 0 0.8rem; display: flex; align-items: center; gap: 0.6rem; }
.s58f-game-cat-title i { color: var(--s58f-primary); font-size: 1.7rem; }
.s58f-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; margin-bottom: 1.5rem; }
.s58f-game-card { background: var(--s58f-bg-card); border-radius: var(--s58f-radius-sm); padding: 0.5rem; text-align: center; cursor: pointer; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; border: 1px solid var(--s58f-border); display: block; overflow: hidden; }
.s58f-game-card:hover { transform: translateY(-2px); border-color: var(--s58f-primary); box-shadow: var(--s58f-shadow); }
.s58f-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; margin-bottom: 0.4rem; }
.s58f-game-card-name { color: var(--s58f-text); font-size: 1.1rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Cards & grids ===== */
.s58f-card { background: var(--s58f-bg-card); border-radius: var(--s58f-radius); padding: 1.2rem; border: 1px solid var(--s58f-border); margin-bottom: 1rem; }
.s58f-card-icon { font-size: 2.4rem; color: var(--s58f-primary); margin-bottom: 0.5rem; }
.s58f-card h3 { color: var(--s58f-text-bright); font-size: 1.5rem; margin-bottom: 0.5rem; }
.s58f-card p { color: var(--s58f-text-muted); font-size: 1.3rem; line-height: 1.5; }
.s58f-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }

/* ===== How to Play steps ===== */
.s58f-step { display: flex; align-items: flex-start; gap: 1rem; background: var(--s58f-bg-card); border-radius: var(--s58f-radius-sm); padding: 1rem; margin-bottom: 0.7rem; border-left: 3px solid var(--s58f-primary); }
.s58f-step-num { background: linear-gradient(135deg, #DEB887, #c4a373); color: #0A0A0A; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.3rem; flex-shrink: 0; }
.s58f-step-body h4 { color: var(--s58f-text-bright); font-size: 1.35rem; margin-bottom: 0.2rem; }
.s58f-step-body p { color: var(--s58f-text-muted); font-size: 1.2rem; line-height: 1.5; }

/* ===== RTP bars ===== */
.s58f-rtp-row { margin-bottom: 0.8rem; }
.s58f-rtp-label { display: flex; justify-content: space-between; font-size: 1.25rem; color: var(--s58f-text-bright); margin-bottom: 0.3rem; }
.s58f-rtp-bar { width: 100%; height: 8px; background: var(--s58f-bg-elevated); border-radius: 4px; overflow: hidden; }
.s58f-rtp-fill { height: 100%; background: linear-gradient(90deg, #DEB887, #FFD700); border-radius: 4px; }

/* ===== Testimonials ===== */
.s58f-testimonial { background: var(--s58f-bg-card); border-radius: var(--s58f-radius); padding: 1rem; margin-bottom: 0.8rem; border-left: 3px solid var(--s58f-primary); }
.s58f-testimonial-name { color: var(--s58f-primary); font-weight: 700; font-size: 1.3rem; margin-bottom: 0.2rem; }
.s58f-stars { color: var(--s58f-gold); font-size: 1.1rem; margin-bottom: 0.3rem; letter-spacing: 1px; }
.s58f-testimonial p { color: var(--s58f-text-muted); font-size: 1.25rem; line-height: 1.5; }

/* ===== Latest winners ===== */
.s58f-winner-row { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 0; border-bottom: 1px solid var(--s58f-border); }
.s58f-winner-row:last-child { border-bottom: none; }
.s58f-winner-name { font-weight: 600; color: var(--s58f-text-bright); font-size: 1.25rem; }
.s58f-winner-game { display: block; color: var(--s58f-text-muted); font-size: 1.1rem; }
.s58f-winner-amount { color: var(--s58f-success); font-weight: 700; font-size: 1.3rem; }

/* ===== Payment methods ===== */
.s58f-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.s58f-pay-item { background: var(--s58f-bg-card); border-radius: var(--s58f-radius-sm); padding: 0.8rem 0.3rem; text-align: center; border: 1px solid var(--s58f-border); }
.s58f-pay-item i, .s58f-pay-item .material-icons-outlined { font-size: 2rem; color: var(--s58f-primary); margin-bottom: 0.3rem; }
.s58f-pay-item span { font-size: 1rem; color: var(--s58f-text-muted); display: block; }

/* ===== CTA banner ===== */
.s58f-cta-banner { background: linear-gradient(135deg, #1a1410 0%, #2a2018 100%); border: 1px solid var(--s58f-primary); border-radius: var(--s58f-radius); padding: 1.5rem 1.2rem; text-align: center; margin: 1.5rem 0; }
.s58f-cta-banner h3 { color: var(--s58f-primary); font-size: 1.8rem; margin-bottom: 0.5rem; }
.s58f-cta-banner p { color: var(--s58f-text-bright); font-size: 1.3rem; margin-bottom: 1rem; line-height: 1.5; }
.s58f-cta-banner .s58f-btn { font-size: 1.4rem; padding: 0.9rem 2rem; }

/* ===== FAQ accordion ===== */
.s58f-faq-item { background: var(--s58f-bg-card); border: 1px solid var(--s58f-border); border-radius: var(--s58f-radius-sm); margin-bottom: 0.7rem; overflow: hidden; }
.s58f-faq-q { width: 100%; background: transparent; border: none; padding: 1rem 1.2rem; text-align: left; color: var(--s58f-text-bright); font-size: 1.3rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: inherit; }
.s58f-faq-q i { color: var(--s58f-primary); transition: transform 0.2s; }
.s58f-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0 1.2rem; color: var(--s58f-text-muted); font-size: 1.25rem; line-height: 1.5; }
.s58f-faq-item.s58f-faq-open .s58f-faq-a { max-height: 400px; padding: 0 1.2rem 1rem; }
.s58f-faq-item.s58f-faq-open .s58f-faq-q i { transform: rotate(45deg); }

/* ===== Footer ===== */
.s58f-footer { background: var(--s58f-bg-dark); border-top: 1px solid var(--s58f-border); padding: 2rem 1.2rem; margin-top: 2rem; }
.s58f-footer-brand { color: var(--s58f-primary); font-weight: 700; font-size: 1.7rem; margin-bottom: 0.5rem; }
.s58f-footer-text { color: var(--s58f-text-muted); font-size: 1.25rem; line-height: 1.5; margin-bottom: 1rem; }
.s58f-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.s58f-footer-links a { display: inline-block; padding: 0.5rem 0.9rem; background: var(--s58f-bg-card); border-radius: var(--s58f-radius-sm); font-size: 1.2rem; border: 1px solid var(--s58f-border); color: var(--s58f-text); transition: background 0.2s, color 0.2s; }
.s58f-footer-links a:hover { background: var(--s58f-bg-elevated); color: var(--s58f-primary); }
.s58f-footer-promo { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.s58f-footer-promo .s58f-btn { flex: 1 1 calc(50% - 0.5rem); min-width: 140px; font-size: 1.2rem; padding: 0.7rem 0.8rem; }
.s58f-copyright { color: var(--s58f-text-muted); font-size: 1.15rem; text-align: center; padding-top: 1rem; border-top: 1px solid var(--s58f-border); }

/* ===== Mobile Bottom Navigation ===== */
.s58f-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 62px;
  background: linear-gradient(180deg, #0A0A0A 0%, #050505 100%);
  border-top: 1px solid var(--s58f-primary);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; padding: 0.3rem 0;
}
.s58f-bottom-nav-btn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: transparent; border: none; color: var(--s58f-text-muted);
  cursor: pointer; padding: 0.2rem; min-height: 58px; min-width: 60px;
  transition: color 0.2s, transform 0.2s; gap: 0.2rem;
  font-family: inherit; text-decoration: none; position: relative;
}
.s58f-bottom-nav-btn i, .s58f-bottom-nav-btn .material-icons-outlined, .s58f-bottom-nav-btn ion-icon { font-size: 22px; }
.s58f-bottom-nav-btn span { font-size: 1rem; font-weight: 500; }
.s58f-bottom-nav-btn:hover { color: var(--s58f-primary); transform: translateY(-1px); }
.s58f-bottom-nav-btn.s58f-nav-active { color: var(--s58f-primary); }
.s58f-bottom-nav-btn.s58f-nav-active::before { content: ''; position: absolute; top: 0; width: 30px; height: 3px; background: var(--s58f-primary); border-radius: 0 0 4px 4px; }

/* ===== Responsive ===== */
@media (min-width: 769px) {
  .s58f-bottom-nav { display: none; }
  body { max-width: 768px; }
}
@media (max-width: 768px) { .s58f-main { padding-bottom: 8rem; } }
@media (max-width: 360px) {
  .s58f-game-grid { grid-template-columns: repeat(2, 1fr); }
  .s58f-pay-grid { grid-template-columns: repeat(3, 1fr); }
}
