/* ============================================================
   link 789bet - style.css
   All custom classes use the s24a- prefix for namespace isolation.
   Palette: #AFEEEE | #0A0A0A | #A0522D | #999999 | #4682B4
   Mobile-first, max-width 430px.
   ============================================================ */

:root {
  --s24a-primary: #AFEEEE;
  --s24a-bg: #0A0A0A;
  --s24a-accent: #A0522D;
  --s24a-muted: #999999;
  --s24a-blue: #4682B4;
  --s24a-card: #141414;
  --s24a-card2: #1c1c1c;
  --s24a-border: #2a2a2a;
  --s24a-text: #f2f2f2;
  --s24a-gold: #d8a35a;
  --s24a-radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Segoe UI", "Roboto", system-ui, -apple-system, sans-serif;
  background: var(--s24a-bg);
  color: var(--s24a-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--s24a-primary); text-decoration: none; }

.s24a-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

.s24a-container {
  padding: 0 1.2rem;
}

/* ============ HEADER ============ */
.s24a-header {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(180deg, #0c0c0c 0%, #060606 100%);
  border-bottom: 1px solid var(--s24a-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  height: 5.6rem;
}

.s24a-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.s24a-brand img {
  width: 3rem; height: 3rem; border-radius: 6px;
}

.s24a-brand-text {
  display: flex; flex-direction: column; line-height: 1.2rem; min-width: 0;
}

.s24a-brand-name {
  color: var(--s24a-primary);
  font-weight: 700;
  font-size: 1.5rem;
  white-space: nowrap;
}

.s24a-brand-tag {
  color: var(--s24a-muted);
  font-size: 1rem;
  white-space: nowrap;
}

.s24a-header-actions {
  display: flex; align-items: center; gap: 0.5rem;
}

.s24a-btn {
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.1rem;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
  min-height: 3.6rem;
  line-height: 1;
}

.s24a-btn:active { transform: scale(0.95); }

.s24a-btn-login {
  background: transparent;
  color: var(--s24a-primary);
  border: 1px solid var(--s24a-primary);
}

.s24a-btn-register {
  background: linear-gradient(135deg, var(--s24a-accent), var(--s24a-gold));
  color: #0A0A0A;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(160,82,45,0.4);
}

.s24a-menu-toggle {
  background: transparent;
  border: 1px solid var(--s24a-border);
  color: var(--s24a-primary);
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 8px;
  font-size: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ============ MOBILE DROPDOWN MENU ============ */
.s24a-mobile-menu {
  position: fixed;
  top: 5.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: #0e0e0e;
  border-bottom: 1px solid var(--s24a-border);
  padding: 0.6rem 1rem 1rem;
  display: none;
  z-index: 9999;
  flex-direction: column;
  gap: 0.3rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

.s24a-mobile-menu.s24a-menu-open { display: flex; }

.s24a-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 0.8rem;
  color: var(--s24a-text);
  border-radius: 8px;
  font-size: 1.3rem;
  border-bottom: 1px solid var(--s24a-border);
}

.s24a-mobile-menu a:active { background: #1a1a1a; }

.s24a-mobile-menu .material-icons,
.s24a-mobile-menu i { font-size: 1.8rem; color: var(--s24a-primary); }

/* ============ MAIN ============ */
.s24a-main {
  padding-top: 5.6rem;
  padding-bottom: 8rem; /* space for fixed bottom nav */
}

/* ============ HERO / CAROUSEL ============ */
.s24a-carousel {
  position: relative;
  width: 100%;
  height: 18rem;
  overflow: hidden;
  border-radius: 0 0 var(--s24a-radius) var(--s24a-radius);
}

.s24a-slides { position: relative; width: 100%; height: 100%; }

.s24a-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.s24a-slide img { width: 100%; height: 100%; object-fit: cover; }

.s24a-slide.s24a-slide-active { opacity: 1; }

.s24a-slide-caption {
  position: absolute;
  bottom: 1.2rem; left: 1.2rem;
  background: rgba(10,10,10,0.7);
  color: var(--s24a-primary);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  font-size: 1.25rem;
  font-weight: 700;
}

.s24a-dot-row {
  position: absolute;
  bottom: 1rem; right: 1rem;
  display: flex; gap: 0.4rem;
}

.s24a-dot {
  width: 0.8rem; height: 0.8rem;
  border-radius: 50%;
  background: rgba(175,238,238,0.4);
  cursor: pointer;
}

.s24a-dot.s24a-dot-active { background: var(--s24a-primary); }

/* ============ SECTIONS ============ */
.s24a-section {
  padding: 1.6rem 1.2rem;
}

.s24a-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--s24a-primary);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.s24a-section-title .material-icons,
.s24a-section-title i { color: var(--s24a-gold); font-size: 2rem; }

.s24a-section-sub {
  color: var(--s24a-muted);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.s24a-h1 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--s24a-primary);
  line-height: 1.4;
  margin: 1.2rem 0 0.6rem;
}

.s24a-lead {
  color: var(--s24a-text);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.s24a-text-link {
  color: var(--s24a-primary);
  font-weight: 700;
  text-decoration: underline;
}

/* ============ GAME GRID ============ */
.s24a-game-block { margin-bottom: 2rem; }

.s24a-cat-header {
  display: flex; align-items: center; gap: 0.5rem;
  border-left: 4px solid var(--s24a-gold);
  padding-left: 0.8rem;
  margin-bottom: 0.8rem;
}

.s24a-cat-header h2 {
  font-size: 1.5rem; font-weight: 700; color: var(--s24a-primary);
}

.s24a-cat-header .s24a-cat-count {
  color: var(--s24a-muted); font-size: 1.1rem;
}

.s24a-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.s24a-game-card {
  background: var(--s24a-card);
  border: 1px solid var(--s24a-border);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.s24a-game-card:active {
  transform: scale(0.96);
  border-color: var(--s24a-accent);
}

.s24a-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.s24a-game-name {
  display: block;
  font-size: 1.05rem;
  color: var(--s24a-text);
  padding: 0.4rem 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ FEATURE / INFO CARDS ============ */
.s24a-card {
  background: var(--s24a-card);
  border: 1px solid var(--s24a-border);
  border-radius: var(--s24a-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.s24a-card h3 {
  color: var(--s24a-primary);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.s24a-card p {
  color: var(--s24a-text);
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.s24a-card ul { padding-left: 1.4rem; }
.s24a-card li { font-size: 1.2rem; color: var(--s24a-text); margin-bottom: 0.3rem; }

/* ============ STEPS ============ */
.s24a-steps { counter-reset: step; }
.s24a-step {
  display: flex; gap: 0.8rem; margin-bottom: 0.8rem;
  background: var(--s24a-card2);
  padding: 0.8rem; border-radius: 8px;
}
.s24a-step-num {
  flex-shrink: 0;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: var(--s24a-accent);
  color: #fff;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.s24a-step p { font-size: 1.2rem; color: var(--s24a-text); }

/* ============ RTP TABLE ============ */
.s24a-rtp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--s24a-card2);
  border-radius: 8px;
  overflow: hidden;
}
.s24a-rtp-table th,
.s24a-rtp-table td {
  padding: 0.7rem 0.8rem;
  font-size: 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--s24a-border);
}
.s24a-rtp-table th { color: var(--s24a-primary); background: #111; }
.s24a-rtp-table td { color: var(--s24a-text); }
.s24a-rtp-high { color: #6fe06f; font-weight: 700; }

/* ============ TESTIMONIALS / WINNERS ============ */
.s24a-list-row {
  display: flex; align-items: center; gap: 0.8rem;
  background: var(--s24a-card2);
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}
.s24a-list-row .material-icons,
.s24a-list-row i { color: var(--s24a-gold); font-size: 1.8rem; }
.s24a-list-row strong { color: var(--s24a-primary); }
.s24a-list-row span { color: var(--s24a-muted); font-size: 1.1rem; margin-left: auto; }

/* ============ PAYMENT GRID ============ */
.s24a-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.s24a-pay-item {
  background: var(--s24a-card2);
  border-radius: 8px;
  padding: 0.8rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--s24a-text);
}
.s24a-pay-item .material-icons,
.s24a-pay-item i { color: var(--s24a-blue); font-size: 2rem; }

/* ============ CTA / PROMO ============ */
.s24a-cta {
  background: linear-gradient(135deg, #1a1208, #2a1d10);
  border: 1px solid var(--s24a-accent);
  border-radius: var(--s24a-radius);
  padding: 1.4rem;
  text-align: center;
  margin: 1.2rem 0;
}
.s24a-cta h3 {
  color: var(--s24a-gold);
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}
.s24a-cta p { color: var(--s24a-text); font-size: 1.2rem; margin-bottom: 0.8rem; }
.s24a-cta .s24a-btn { margin: 0 auto; }

/* ============ APP DOWNLOAD ============ */
.s24a-app-banner {
  display: flex; align-items: center; gap: 1rem;
  background: var(--s24a-card2);
  border-radius: var(--s24a-radius);
  padding: 1rem;
}
.s24a-app-banner img { width: 8rem; height: 8rem; border-radius: 10px; }
.s24a-app-text h3 { color: var(--s24a-primary); font-size: 1.4rem; }
.s24a-app-text p { color: var(--s24a-muted); font-size: 1.1rem; margin: 0.3rem 0 0.6rem; }

/* ============ FOOTER ============ */
.s24a-footer {
  background: #060606;
  border-top: 1px solid var(--s24a-border);
  padding: 1.6rem 1.2rem 2rem;
  color: var(--s24a-muted);
}

.s24a-footer p {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  color: var(--s24a-text);
}

.s24a-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  margin: 0.8rem 0;
}

.s24a-footer-links a {
  color: var(--s24a-primary);
  font-size: 1.1rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--s24a-border);
  border-radius: 6px;
}

.s24a-footer-promo {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 0.8rem 0;
}

.s24a-footer-promo button,
.s24a-footer-promo a {
  flex: 1 1 45%;
  min-height: 3.6rem;
  border: none;
  border-radius: 8px;
  background: var(--s24a-accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 0.6rem;
  cursor: pointer;
  text-align: center;
}

.s24a-footer-copy {
  border-top: 1px solid var(--s24a-border);
  padding-top: 0.8rem;
  font-size: 1.05rem;
  color: var(--s24a-muted);
}

/* ============ MOBILE BOTTOM NAV ============ */
.s24a-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 6rem;
  background: linear-gradient(180deg, #0c0c0c, #050505);
  border-top: 1px solid var(--s24a-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

.s24a-bottomnav-item {
  flex: 1;
  min-width: 6rem;
  min-height: 6rem;
  background: transparent;
  border: none;
  color: var(--s24a-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.3rem;
  transition: color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}

.s24a-bottomnav-item:active { transform: scale(0.92); }

.s24a-bottomnav-item .material-icons,
.s24a-bottomnav-item i,
.s24a-bottomnav-item ion-icon {
  font-size: 2.2rem;
}

.s24a-bottomnav-item.s24a-bottomnav-active {
  color: var(--s24a-primary);
}

.s24a-bottomnav-item.s24a-bottomnav-active::after {
  content: "";
  width: 1.6rem;
  height: 0.2rem;
  background: var(--s24a-primary);
  border-radius: 2px;
  margin-top: 0.1rem;
}

.s24a-bottomnav-label { font-size: 1rem; }

.s24a-bottomnav-badge {
  position: absolute;
  top: 0.6rem;
  right: 1.4rem;
  background: var(--s24a-accent);
  color: #fff;
  font-size: 0.9rem;
  border-radius: 50%;
  padding: 0 0.4rem;
  min-width: 1.4rem;
  height: 1.4rem;
  line-height: 1.4rem;
  text-align: center;
}

/* ============ HIDE ON DESKTOP / RESPONSIVE ============ */
@media (min-width: 769px) {
  .s24a-bottomnav { display: none; }
  .s24a-main { padding-bottom: 2rem; }
}

@media (min-width: 431px) and (max-width: 768px) {
  .s24a-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 360px) {
  .s24a-grid { grid-template-columns: repeat(2, 1fr); }
  .s24a-brand-tag { display: none; }
}
