/*
 * jilicrown apk - Core Stylesheet
 * Site: jilicrownapk.homes
 * Palette: #8FBC8F | #A0522D | #8B7355 | #00FF00 | #BBBBBB | #2D2D2D
 * All classes use the s558- prefix.
 */

:root {
  --s558-primary: #8FBC8F;
  --s558-secondary: #A0522D;
  --s558-tertiary: #8B7355;
  --s558-accent: #00FF00;
  --s558-muted: #BBBBBB;
  --s558-bg: #2D2D2D;
  --s558-bg-deep: #1f1f1f;
  --s558-bg-light: #3a3a3a;
  --s558-text: #BBBBBB;
  --s558-text-bright: #ffffff;
  --s558-border: rgba(143, 188, 143, 0.25);
  --s558-radius: 1.2rem;
  --s558-shadow: 0 0.4rem 1.5rem rgba(0, 0, 0, 0.45);
  --s558-gradient: linear-gradient(135deg, #A0522D 0%, #8B7355 100%);
  --s558-cta-gradient: linear-gradient(135deg, #00FF00 0%, #8FBC8F 100%);
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--s558-bg);
  color: var(--s558-text);
  line-height: 1.5;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

/* ===== Header ===== */
.s558-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--s558-bg-deep);
  border-bottom: 0.2rem solid var(--s558-primary);
  box-shadow: var(--s558-shadow);
}

.s558-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  min-height: 6rem;
}

.s558-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--s558-text-bright);
  font-weight: 800;
  font-size: 1.8rem;
}

.s558-logo img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.8rem;
  border: 0.15rem solid var(--s558-primary);
}

.s558-logo span {
  background: var(--s558-cta-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.s558-header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.s558-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 2rem;
  padding: 0.9rem 1.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  min-height: 4rem;
  text-align: center;
  line-height: 1;
}

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

.s558-btn-login {
  background: transparent;
  color: var(--s558-text-bright);
  border: 0.15rem solid var(--s558-primary);
}

.s558-btn-register {
  background: var(--s558-cta-gradient);
  color: #1f1f1f;
  font-weight: 800;
  box-shadow: 0 0.3rem 0.8rem rgba(0, 255, 0, 0.25);
}

.s558-menu-toggle {
  background: transparent;
  border: 0.15rem solid var(--s558-border);
  color: var(--s558-primary);
  width: 4rem;
  height: 4rem;
  border-radius: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
}

/* ===== Mobile Menu Drawer ===== */
.s558-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.s558-overlay-show {
  opacity: 1;
  visibility: visible;
}

.s558-mobile-menu {
  position: fixed;
  top: 0;
  right: -85%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--s558-bg-deep);
  z-index: 9999;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  transition: right 0.3s ease;
  border-left: 0.2rem solid var(--s558-primary);
}

.s558-menu-open {
  right: 0;
}

.s558-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.s558-menu-title {
  color: var(--s558-primary);
  font-size: 1.8rem;
  font-weight: 800;
}

.s558-menu-close {
  background: transparent;
  border: none;
  color: var(--s558-text-bright);
  font-size: 2.4rem;
  cursor: pointer;
}

.s558-menu-list {
  list-style: none;
}

.s558-menu-list li {
  margin-bottom: 1.2rem;
}

.s558-menu-list a,
.s558-menu-list button {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  background: transparent;
  border: 0.1rem solid var(--s558-border);
  border-radius: 0.8rem;
  padding: 1.2rem 1.4rem;
  color: var(--s558-text);
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease;
}

.s558-menu-list a:hover,
.s558-menu-list button:hover {
  background: rgba(143, 188, 143, 0.12);
  color: var(--s558-primary);
}

.s558-menu-list i,
.s558-menu-list .material-icons-outlined {
  color: var(--s558-accent);
  font-size: 2rem;
}

.s558-menu-cta {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ===== Main / Sections ===== */
main.s558-main {
  padding-top: 7rem;
  padding-bottom: 1rem;
}

.s558-section {
  padding: 3rem 0;
}

.s558-section-title {
  color: var(--s558-text-bright);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-align: center;
}

.s558-section-title .s558-accent {
  color: var(--s558-accent);
}

.s558-section-subtitle {
  text-align: center;
  color: var(--s558-muted);
  font-size: 1.4rem;
  margin-bottom: 2rem;
}

.s558-divider {
  width: 6rem;
  height: 0.3rem;
  background: var(--s558-cta-gradient);
  border-radius: 0.2rem;
  margin: 0 auto 2rem;
}

/* ===== Hero / Carousel ===== */
.s558-hero {
  position: relative;
  margin-top: 1rem;
}

.s558-carousel {
  position: relative;
  border-radius: var(--s558-radius);
  overflow: hidden;
  box-shadow: var(--s558-shadow);
}

.s558-carousel-track {
  position: relative;
  height: 22rem;
}

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

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

.s558-slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(45, 45, 45, 0.95));
  padding: 1.5rem 1.2rem 1.2rem;
}

.s558-slide-title {
  color: var(--s558-accent);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.s558-slide-text {
  color: var(--s558-text-bright);
  font-size: 1.3rem;
}

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

.s558-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(45, 45, 45, 0.7);
  color: var(--s558-text-bright);
  border: none;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.s558-carousel-arrow:hover {
  background: var(--s558-primary);
  color: #1f1f1f;
}

#s558-carousel-prev { left: 0.8rem; }
#s558-carousel-next { right: 0.8rem; }

.s558-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 5;
}

.s558-carousel-dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.s558-dot-active {
  background: var(--s558-accent);
}

/* ===== Filter Tabs ===== */
.s558-filter-bar {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.s558-filter-bar::-webkit-scrollbar { display: none; }

.s558-filter-tab {
  flex: 0 0 auto;
  background: var(--s558-bg-light);
  color: var(--s558-text);
  border: 0.15rem solid var(--s558-border);
  border-radius: 2rem;
  padding: 0.7rem 1.4rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.s558-tab-active {
  background: var(--s558-cta-gradient);
  color: #1f1f1f;
  border-color: var(--s558-accent);
}

/* ===== Game Sections / Grids ===== */
.s558-game-section {
  margin-bottom: 3rem;
}

.s558-game-section-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.s558-game-section-header i,
.s558-game-section-header .material-icons {
  color: var(--s558-accent);
  font-size: 2.2rem;
}

.s558-game-section-title {
  color: var(--s558-text-bright);
  font-size: 1.7rem;
  font-weight: 800;
  flex: 1;
}

.s558-game-section-count {
  color: var(--s558-muted);
  font-size: 1.2rem;
}

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

.s558-game-card {
  background: var(--s558-bg-light);
  border-radius: 0.8rem;
  overflow: hidden;
  border: 0.1rem solid var(--s558-border);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.2s ease;
}

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

.s558-game-card:hover {
  border-color: var(--s558-primary);
  box-shadow: 0 0.4rem 1rem rgba(143, 188, 143, 0.25);
}

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

.s558-game-card-name {
  padding: 0.6rem 0.5rem;
  font-size: 1.1rem;
  color: var(--s558-text-bright);
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Content Cards / Info Blocks ===== */
.s558-card {
  background: var(--s558-bg-light);
  border-radius: var(--s558-radius);
  padding: 2rem 1.5rem;
  margin-bottom: 1.5rem;
  border: 0.1rem solid var(--s558-border);
}

.s558-card h2,
.s558-card h3 {
  color: var(--s558-text-bright);
  margin-bottom: 1rem;
}

.s558-card h2 { font-size: 2rem; }
.s558-card h3 { font-size: 1.6rem; }

.s558-card p {
  color: var(--s558-text);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.s558-card ul,
.s558-card ol {
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.s558-card li {
  color: var(--s558-text);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.s558-card a {
  color: var(--s558-accent);
  font-weight: 600;
  text-decoration: underline;
}

/* ===== Steps list ===== */
.s558-steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.s558-steps li {
  position: relative;
  padding-left: 4rem;
  margin-bottom: 1.5rem;
  counter-increment: step;
}

.s558-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 3rem;
  height: 3rem;
  background: var(--s558-cta-gradient);
  color: #1f1f1f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
}

/* ===== Features grid ===== */
.s558-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.s558-feature-item {
  background: var(--s558-bg-light);
  border: 0.1rem solid var(--s558-border);
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  text-align: center;
}

.s558-feature-item i,
.s558-feature-item .material-icons-outlined {
  font-size: 2.6rem;
  color: var(--s558-accent);
  margin-bottom: 0.8rem;
}

.s558-feature-item h4 {
  color: var(--s558-text-bright);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.s558-feature-item p {
  font-size: 1.2rem;
  color: var(--s558-text);
}

/* ===== Promo / CTA banner ===== */
.s558-cta-banner {
  background: var(--s558-gradient);
  border-radius: var(--s558-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 2rem 0;
  color: var(--s558-text-bright);
}

.s558-cta-banner h3 {
  font-size: 1.9rem;
  margin-bottom: 0.8rem;
}

.s558-cta-banner p {
  margin-bottom: 1.5rem;
  color: #fff;
}

.s558-cta-banner .s558-btn {
  background: var(--s558-text-bright);
  color: var(--s558-secondary);
  font-weight: 800;
}

/* ===== Testimonials ===== */
.s558-testimonial {
  background: var(--s558-bg-light);
  border-left: 0.4rem solid var(--s558-accent);
  padding: 1.5rem;
  border-radius: 0.8rem;
  margin-bottom: 1.2rem;
}

.s558-testimonial-text {
  font-style: italic;
  color: var(--s558-text);
  margin-bottom: 1rem;
}

.s558-testimonial-author {
  color: var(--s558-primary);
  font-weight: 700;
  font-size: 1.3rem;
}

/* ===== Winners / Payments ===== */
.s558-winner-list,
.s558-payment-list {
  display: grid;
  gap: 0.8rem;
}

.s558-winner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--s558-bg-light);
  padding: 1rem 1.2rem;
  border-radius: 0.8rem;
  border: 0.1rem solid var(--s558-border);
}

.s558-winner-name {
  color: var(--s558-text-bright);
  font-weight: 700;
  font-size: 1.3rem;
}

.s558-winner-game {
  color: var(--s558-muted);
  font-size: 1.1rem;
}

.s558-winner-amount {
  color: var(--s558-accent);
  font-weight: 800;
  font-size: 1.4rem;
}

.s558-payment-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--s558-bg-light);
  padding: 1.2rem;
  border-radius: 0.8rem;
  border: 0.1rem solid var(--s558-border);
}

.s558-payment-item i {
  color: var(--s558-accent);
  font-size: 2.4rem;
}

.s558-payment-item h4 {
  color: var(--s558-text-bright);
  font-size: 1.4rem;
}

.s558-payment-item p {
  color: var(--s558-muted);
  font-size: 1.2rem;
}

/* ===== App download ===== */
.s558-app-download {
  background: var(--s558-bg-deep);
  border: 0.15rem solid var(--s558-primary);
  border-radius: var(--s558-radius);
  padding: 2rem 1.5rem;
  text-align: center;
}

.s558-app-download h3 {
  color: var(--s558-accent);
  font-size: 1.9rem;
  margin-bottom: 0.8rem;
}

.s558-app-download p {
  color: var(--s558-text);
  margin-bottom: 1.5rem;
}

.s558-app-download .s558-btn {
  background: var(--s558-cta-gradient);
  color: #1f1f1f;
  font-weight: 800;
  width: 100%;
}

/* ===== FAQ ===== */
.s558-faq-item {
  background: var(--s558-bg-light);
  border: 0.1rem solid var(--s558-border);
  border-radius: 0.8rem;
  margin-bottom: 0.8rem;
  overflow: hidden;
}

.s558-faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--s558-text-bright);
  text-align: left;
  padding: 1.3rem 1.2rem;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.s558-faq-question::after {
  content: "+";
  color: var(--s558-accent);
  font-size: 2rem;
  font-weight: 800;
}

.s558-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.2rem;
  color: var(--s558-text);
  font-size: 1.3rem;
  line-height: 1.6;
}

.s558-faq-open .s558-faq-answer {
  max-height: 400px;
  padding: 0 1.2rem 1.3rem;
}

.s558-faq-open .s558-faq-question::after {
  content: "-";
}

/* ===== Footer ===== */
.s558-footer {
  background: var(--s558-bg-deep);
  border-top: 0.2rem solid var(--s558-primary);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.s558-footer-brand {
  color: var(--s558-text-bright);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.s558-footer-brand span {
  color: var(--s558-accent);
}

.s558-footer-desc {
  color: var(--s558-muted);
  font-size: 1.3rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.s558-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.s558-footer-links a {
  flex: 1 1 45%;
  background: var(--s558-bg-light);
  color: var(--s558-text);
  padding: 0.9rem 1rem;
  border-radius: 0.8rem;
  border: 0.1rem solid var(--s558-border);
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}

.s558-footer-links a:hover {
  border-color: var(--s558-accent);
  color: var(--s558-accent);
}

.s558-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.s558-footer-promo .s558-btn {
  flex: 1 1 45%;
  min-width: 14rem;
}

.s558-footer-copyright {
  text-align: center;
  color: var(--s558-muted);
  font-size: 1.2rem;
  padding-top: 1.5rem;
  border-top: 0.1rem solid var(--s558-border);
}

/* ===== Mobile Bottom Navigation ===== */
.s558-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6.2rem;
  background: var(--s558-bg-deep);
  border-top: 0.2rem solid var(--s558-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -0.4rem 1rem rgba(0, 0, 0, 0.5);
}

.s558-bottom-nav-btn {
  flex: 1;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-width: 60px;
  min-height: 60px;
  color: var(--s558-muted);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.18s ease;
  padding: 0.4rem;
}

.s558-bottom-nav-btn:active {
  transform: scale(0.92);
}

.s558-bottom-nav-btn i,
.s558-bottom-nav-btn .material-icons-outlined,
.s558-bottom-nav-btn .material-icons {
  font-size: 2.4rem;
}

.s558-bottom-nav-btn span {
  font-size: 1.1rem;
  font-weight: 600;
}

.s558-bottom-nav-btn:hover {
  color: var(--s558-primary);
}

.s558-bottom-nav-btn.s558-nav-active {
  color: var(--s558-accent);
}

.s558-bottom-nav-btn.s558-nav-promo {
  color: var(--s558-accent);
}

/* ===== Back to top ===== */
.s558-back-top {
  position: fixed;
  right: 1.2rem;
  bottom: 7.5rem;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  background: var(--s558-cta-gradient);
  color: #1f1f1f;
  border: none;
  font-size: 2rem;
  font-weight: 800;
  cursor: pointer;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--s558-shadow);
}

/* ===== Reveal animation ===== */
.s558-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.s558-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Mobile bottom padding for main content ===== */
@media (max-width: 768px) {
  main.s558-main {
    padding-bottom: 8rem;
  }
  .s558-footer {
    padding-bottom: 8rem;
  }
}

/* ===== Desktop: hide bottom nav, widen container ===== */
@media (min-width: 769px) {
  .s558-bottom-nav {
    display: none;
  }
  .s558-container {
    max-width: 768px;
  }
  .s558-header-inner {
    max-width: 768px;
  }
  .s558-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .s558-feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .s558-carousel-track {
    height: 28rem;
  }
}

@media (max-width: 360px) {
  .s558-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .s558-logo {
    font-size: 1.5rem;
  }
  .s558-btn {
    padding: 0.8rem 1.1rem;
    font-size: 1.2rem;
  }
}
