/* aaajili.homes - Global styles
   Palette: cyan #00FFFF | deep teal #004D40 | near-black #0D1117
   All custom classes use the "s848-" prefix. */

:root {
  --s848-primary: #00FFFF;
  --s848-secondary: #004D40;
  --s848-bg: #0D1117;
  --s848-bg-elev: #131C22;
  --s848-text: #F2FFFF;
  --s848-muted: #8FB3B0;
  --s848-gold: #FFD24A;
  --s848-danger: #FF4D6D;
  --s848-radius: 1.4rem;
  --s848-shadow: 0 .4rem 1.4rem rgba(0, 0, 0, .45);
  font-size: 62.5%;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--s848-bg);
  color: var(--s848-text);
  font-family: "Segoe UI", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--s848-primary); text-decoration: none; }

.s848-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* ---------- Header ---------- */
.s848-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, rgba(0, 77, 64, .96), rgba(13, 17, 23, .98));
  border-bottom: 1px solid rgba(0, 255, 255, .18);
  backdrop-filter: blur(8px);
}
.s848-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: .6rem 1rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.s848-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex: 1;
  min-width: 0;
}
.s848-logo img { width: 30px; height: 30px; border-radius: 8px; }
.s848-logo-text {
  color: var(--s848-primary);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: .03em;
  white-space: nowrap;
}
.s848-header-btns { display: flex; gap: .5rem; }
.s848-btn {
  border: 0;
  border-radius: 999px;
  padding: .65rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 36px;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.s848-btn:active { transform: scale(.94); }
.s848-btn-register {
  background: linear-gradient(135deg, var(--s848-gold), #ff9d2e);
  color: #1a0e00;
  box-shadow: 0 .3rem .8rem rgba(255, 210, 74, .35);
}
.s848-btn-login {
  background: transparent;
  color: var(--s848-primary);
  border: 1px solid var(--s848-primary);
}
.s848-menu-toggle {
  background: transparent;
  border: 0;
  color: var(--s848-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: .2rem .4rem;
  min-width: 36px;
  min-height: 36px;
}

/* ---------- Mobile dropdown menu ---------- */
.s848-mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(13, 17, 23, .98);
  padding: 5rem 1.2rem 2rem;
  transform: translateY(-100%);
  transition: transform .3s ease;
  border-bottom: 1px solid rgba(0, 255, 255, .2);
}
.s848-mobile-menu.s848-menu-open { transform: translateY(0); }
.s848-menu-close {
  position: absolute;
  top: 1rem; right: 1.2rem;
  background: transparent; border: 0; color: var(--s848-primary);
  font-size: 2.4rem; cursor: pointer;
}
.s848-menu-list { list-style: none; margin: 0; padding: 0; }
.s848-menu-list li { border-bottom: 1px solid rgba(0, 255, 255, .08); }
.s848-menu-list a {
  display: block;
  padding: 1.1rem .4rem;
  color: var(--s848-text);
  font-size: 1.4rem;
  font-weight: 600;
}
.s848-menu-list a:active { color: var(--s848-primary); }

/* ---------- Page body offsets ---------- */
.s848-main { padding-top: 6rem; padding-bottom: 8.5rem; }
@media (min-width: 769px) {
  .s848-main { padding-bottom: 2rem; }
}

/* ---------- Banner carousel ---------- */
.s848-banner {
  position: relative;
  margin: 1rem 0 1.4rem;
  border-radius: var(--s848-radius);
  overflow: hidden;
  box-shadow: var(--s848-shadow);
}
.s848-banner-track { position: relative; aspect-ratio: 16 / 8; }
.s848-banner-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  cursor: pointer;
}
.s848-banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.s848-banner-slide.s848-active { opacity: 1; }
.s848-banner-caption {
  position: absolute;
  left: 1rem; bottom: 1rem; right: 1rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.4rem;
  text-shadow: 0 .1rem .3rem rgba(0,0,0,.7);
}
.s848-banner-dots {
  position: absolute;
  bottom: .6rem; left: 0; right: 0;
  display: flex; justify-content: center; gap: .5rem;
}
.s848-banner-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: 0; padding: 0; cursor: pointer;
}
.s848-banner-dot.s848-active { background: var(--s848-primary); }

/* ---------- Sections ---------- */
.s848-section { margin: 1.8rem 0; }
.s848-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .9rem;
}
.s848-section-title {
  font-size: 1.7rem; font-weight: 800; color: var(--s848-primary);
  display: flex; align-items: center; gap: .5rem;
  margin: 0;
}
.s848-section-more { font-size: 1.2rem; color: var(--s848-muted); }

/* ---------- Game grid ---------- */
.s848-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem;
}
.s848-game-card {
  background: var(--s848-bg-elev);
  border: 1px solid rgba(0, 255, 255, .08);
  border-radius: 1rem;
  padding: .5rem;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
  min-height: 44px;
}
.s848-game-card:active { transform: scale(.95); border-color: var(--s848-primary); }
.s848-game-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: .8rem;
}
.s848-game-name {
  margin-top: .35rem;
  font-size: 1.05rem;
  color: var(--s848-text);
  font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Cards / generic ---------- */
.s848-card {
  background: var(--s848-bg-elev);
  border: 1px solid rgba(0, 255, 255, .08);
  border-radius: var(--s848-radius);
  padding: 1.2rem;
  box-shadow: var(--s848-shadow);
  margin-bottom: 1rem;
}
.s848-card h3 { margin: 0 0 .5rem; font-size: 1.5rem; color: var(--s848-primary); }
.s848-card p { margin: .4rem 0; font-size: 1.25rem; color: var(--s848-text); }

.s848-promo-link {
  font-weight: 800;
  color: var(--s848-gold);
  cursor: pointer;
  border-bottom: 1px dashed var(--s848-gold);
}

/* ---------- Feature / highlight tiles ---------- */
.s848-feature-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.s848-feature-tile {
  background: linear-gradient(140deg, rgba(0,77,64,.55), rgba(13,17,23,.7));
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid rgba(0,255,255,.12);
}
.s848-feature-tile .icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(0,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .5rem; color: var(--s848-primary); font-size: 1.8rem;
}
.s848-feature-tile h4 { margin: 0 0 .3rem; font-size: 1.3rem; color: #fff; }
.s848-feature-tile p { margin: 0; font-size: 1.1rem; color: var(--s848-muted); }

/* ---------- RTP table ---------- */
.s848-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.15rem; }
.s848-rtp-table th, .s848-rtp-table td {
  padding: .6rem .4rem;
  border-bottom: 1px solid rgba(0,255,255,.08);
  text-align: left;
}
.s848-rtp-table th { color: var(--s848-primary); font-weight: 700; }
.s848-rtp-bar {
  height: 6px; border-radius: 3px;
  background: rgba(0,255,255,.15);
  overflow: hidden;
  display: inline-block; width: 60px; vertical-align: middle;
}
.s848-rtp-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--s848-gold), var(--s848-primary)); }

/* ---------- Testimonials ---------- */
.s848-testimonial {
  background: var(--s848-bg-elev);
  border-left: 3px solid var(--s848-primary);
  border-radius: .8rem;
  padding: .9rem 1rem;
  margin-bottom: .7rem;
}
.s848-testimonial .who { font-weight: 700; color: var(--s848-gold); font-size: 1.15rem; }
.s848-testimonial .star { color: var(--s848-gold); font-size: 1.1rem; letter-spacing: .1rem; }

/* ---------- Payment chips ---------- */
.s848-chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.s848-chip {
  background: rgba(0,255,255,.08);
  border: 1px solid rgba(0,255,255,.18);
  color: var(--s848-text);
  padding: .5rem 1rem;
  border-radius: 999px;
  font-size: 1.15rem;
}

/* ---------- Winners strip ---------- */
.s848-winner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem .8rem;
  border-bottom: 1px dashed rgba(0,255,255,.12);
  font-size: 1.2rem;
}
.s848-winner .amt { color: var(--s848-gold); font-weight: 800; }

/* ---------- CTA ---------- */
.s848-cta {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--s848-gold), #ff9d2e);
  color: #1a0e00;
  text-align: center;
  font-weight: 800;
  font-size: 1.5rem;
  padding: 1.1rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 .4rem 1rem rgba(255, 210, 74, .35);
  margin: 1.2rem 0;
}

/* ---------- FAQ ---------- */
.s848-faq-item {
  border-bottom: 1px solid rgba(0,255,255,.1);
  padding: .8rem 0;
}
.s848-faq-q { font-weight: 700; color: var(--s848-primary); font-size: 1.25rem; margin: 0 0 .3rem; }
.s848-faq-a { font-size: 1.2rem; color: var(--s848-text); margin: 0; }

/* ---------- Footer ---------- */
.s848-footer {
  background: #060a0d;
  border-top: 1px solid rgba(0,255,255,.15);
  padding: 1.6rem 1.2rem 2rem;
  font-size: 1.15rem;
  color: var(--s848-muted);
}
.s848-footer-brand { color: var(--s848-text); margin-bottom: .6rem; }
.s848-footer-links {
  display: flex; flex-wrap: wrap; gap: .6rem 1.2rem;
  margin: .8rem 0;
}
.s848-footer-links a { color: var(--s848-primary); font-size: 1.15rem; }
.s848-footer-promos { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0; }
.s848-footer-promos button, .s848-footer-promos a {
  background: rgba(0,255,255,.1);
  border: 1px solid rgba(0,255,255,.25);
  color: var(--s848-primary);
  border-radius: 999px;
  padding: .45rem .9rem;
  font-size: 1.1rem; font-weight: 600;
}
.s848-copyright { font-size: 1.1rem; color: var(--s848-muted); margin-top: .8rem; }

/* ---------- Bottom nav (mobile only) ---------- */
.s848-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(0,77,64,.98), rgba(13,17,23,1));
  border-top: 1px solid rgba(0,255,255,.22);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 62px;
}
.s848-bottom-nav-btn {
  flex: 1;
  background: transparent; border: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .15rem;
  color: var(--s848-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: .3rem;
  min-width: 60px;
  min-height: 60px;
  transition: color .15s ease, transform .15s ease;
}
.s848-bottom-nav-btn .ic { font-size: 2.2rem; line-height: 1; }
.s848-bottom-nav-btn:active { transform: scale(.9); }
.s848-bottom-nav-btn.s848-nav-current { color: var(--s848-primary); }
.s848-bottom-nav-btn.s848-nav-current .ic { color: var(--s848-gold); }

@media (min-width: 769px) {
  .s848-bottom-nav { display: none; }
  .s848-menu-toggle { display: none; }
}
@media (max-width: 768px) {
  .s848-main { padding-bottom: 80px; }
}
