/*!
 * jili777 app - core base stylesheet (theme-ac65.css)
 * Mobile-first PH casino layout. All custom classes use the "g654-" prefix.
 * Palette: #0000CD primary | #333333 ink | #A9A9A9 muted | #1E90FF accent.
 * Icon libraries mixed: Font Awesome, Material Icons, Ionicons, Bootstrap Icons.
 */

:root {
  --g654-primary: #0000CD;
  --g654-ink: #333333;
  --g654-muted: #A9A9A9;
  --g654-accent: #1E90FF;
  --g654-bg: #0b1230;
  --g654-bg-2: #111a44;
  --g654-card: #161f4d;
  --g654-line: rgba(255, 255, 255, 0.08);
  --g654-text: #f3f6ff;
  --g654-gold: #ffd166;
  --g654-success: #2ecc71;
  --g654-radius: 14px;
  --g654-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --g654-maxw: 430px;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(120% 80% at 50% 0%, #142057 0%, var(--g654-bg) 60%, #060b22 100%);
  color: var(--g654-text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 62.5%; /* 1rem = 10px */
  line-height: 1.5rem;
  min-height: 100%;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--g654-accent); text-decoration: none; }
a:hover { color: #7cc0ff; }
h1, h2, h3, h4 { margin: 0 0 1rem; line-height: 1.4rem; color: #fff; }
h1 { font-size: 2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1rem; font-size: 1.25rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.6rem; font-size: 1.25rem; }
strong { color: #ffe3a3; }

/* ===== Layout ===== */
.g654-wrapper {
  width: 100%;
  max-width: var(--g654-maxw);
  margin: 0 auto;
  padding: 0 1.2rem;
}
.g654-container { padding-top: 6.4rem; }
main.g654-main { padding-bottom: 8rem; }
section { margin-bottom: 2.4rem; }

/* ===== Header ===== */
.g654-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--g654-primary), #1a2bb8);
  border-bottom: 1px solid var(--g654-line);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.g654-header-inner {
  max-width: var(--g654-maxw);
  margin: 0 auto;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.g654-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  flex: 1;
  min-width: 0;
}
.g654-logo img { width: 2.8rem; height: 2.8rem; border-radius: 8px; }
.g654-logo small { display: block; font-size: 1rem; color: #cfe0ff; font-weight: 500; }

.g654-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  min-height: 4rem;
  min-width: 4rem;
  transition: transform .12s ease, filter .2s ease;
  color: #fff;
  background: var(--g654-accent);
}
.g654-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.g654-btn:active { transform: scale(0.96); }
.g654-btn-primary { background: linear-gradient(90deg, #ffd166, #ffb020); color: #1a1100; }
.g654-btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.g654-btn-block { width: 100%; }
.g654-menu-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 10px;
  width: 3.6rem;
  height: 3.6rem;
  font-size: 1.6rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===== Mobile expandable menu ===== */
.g654-mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  background: var(--g654-bg-2);
  border-top: 1px solid var(--g654-line);
}
.g654-mobile-menu.g654-menu-open { max-height: 460px; }
.g654-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: .6rem 1.2rem 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}
.g654-mobile-menu a {
  display: block;
  padding: .8rem 1rem;
  background: var(--g654-card);
  border: 1px solid var(--g654-line);
  border-radius: 10px;
  font-size: 1.2rem;
  color: #eef3ff;
}

/* ===== Carousel ===== */
.g654-carousel {
  position: relative;
  border-radius: var(--g654-radius);
  overflow: hidden;
  box-shadow: var(--g654-shadow);
}
.g654-slide {
  display: none;
  position: relative;
}
.g654-slide.g654-slide-active { display: block; }
.g654-slide img { width: 100%; height: 18rem; object-fit: cover; }
.g654-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.2rem 2.4rem;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: #fff;
}
.g654-slide-cap h3 { font-size: 1.6rem; margin: 0 0 .4rem; }
.g654-slide-cap p { font-size: 1.1rem; margin: 0; color: #e8eeff; }
.g654-dots {
  position: absolute;
  bottom: .8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
}
.g654-dot {
  width: .8rem; height: .8rem;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  cursor: pointer;
}
.g654-dot.g654-dot-active { background: var(--g654-gold); }

/* ===== Cards / Sections ===== */
.g654-card {
  background: var(--g654-card);
  border: 1px solid var(--g654-line);
  border-radius: var(--g654-radius);
  padding: 1.4rem;
  box-shadow: var(--g654-shadow);
}
.g654-section-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1.5rem;
}
.g654-section-title .material-icons,
.g654-section-title i { color: var(--g654-accent); font-size: 2rem; }

/* ===== Game grid ===== */
.g654-cat-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 1.8rem 0 1rem;
  font-size: 1.5rem;
  color: #fff;
  border-left: 4px solid var(--g654-accent);
  padding-left: .8rem;
}
.g654-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}
.g654-game {
  background: var(--g654-card);
  border: 1px solid var(--g654-line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .12s ease, border-color .2s ease;
  text-align: center;
}
.g654-game:hover { transform: translateY(-2px); border-color: var(--g654-accent); }
.g654-game img { width: 100%; height: 8rem; object-fit: cover; }
.g654-game span {
  display: block;
  padding: .5rem .3rem;
  font-size: 1.05rem;
  color: #eef3ff;
  min-height: 3rem;
  line-height: 1.2rem;
}

/* ===== Feature list / highlights ===== */
.g654-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: .8rem;
}
.g654-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--g654-card);
  border: 1px solid var(--g654-line);
  border-radius: 12px;
  padding: 1.1rem;
}
.g654-feature i,
.g654-feature .material-icons-outlined { font-size: 2.4rem; color: var(--g654-accent); }
.g654-feature h4 { margin: 0 0 .3rem; font-size: 1.3rem; color: #fff; }
.g654-feature p { margin: 0; font-size: 1.15rem; color: #cfd9f5; }

/* ===== Testimonials ===== */
.g654-testi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .9rem;
}
.g654-testi {
  background: var(--g654-card);
  border-left: 4px solid var(--g654-gold);
  border-radius: 10px;
  padding: 1.1rem;
  font-size: 1.15rem;
  color: #e6ecff;
}
.g654-testi b { display: block; margin-top: .5rem; color: #ffe3a3; font-size: 1.1rem; }
.g654-stars { color: var(--g654-gold); font-size: 1.2rem; }

/* ===== Payment pills ===== */
.g654-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.g654-pill {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--g654-line);
  color: #eef3ff;
  padding: .6rem 1rem;
  border-radius: 999px;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

/* ===== Promo text links inside content ===== */
.g654-link {
  color: #ffd166;
  font-weight: 700;
  border-bottom: 1px dashed rgba(255,209,102,.5);
  cursor: pointer;
}
.g654-link:hover { color: #ffe3a3; }

/* ===== CTA banner ===== */
.g654-cta {
  background: linear-gradient(135deg, var(--g654-primary), var(--g654-accent));
  border-radius: var(--g654-radius);
  padding: 1.6rem;
  text-align: center;
  color: #fff;
  box-shadow: var(--g654-shadow);
}
.g654-cta h2 { color: #fff; }
.g654-cta p { color: #eaf2ff; }

/* ===== Footer ===== */
.g654-footer {
  background: #060b22;
  border-top: 1px solid var(--g654-line);
  padding: 2rem 0 9rem;
  color: #c2ccf0;
}
.g654-footer .g654-wrapper { padding: 0 1.2rem; }
.g654-footer p { color: #b9c4ec; }
.g654-footer h4 { color: #fff; font-size: 1.3rem; margin-top: 1.4rem; }
.g654-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin: 1rem 0;
}
.g654-footer-links a { font-size: 1.1rem; color: #cfd9f5; }
.g654-promo-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1rem 0;
}
.g654-promo-row .g654-btn { flex: 1 1 45%; font-size: 1.15rem; padding: .8rem; }
.g654-copy { font-size: 1.1rem; color: #8794bd; text-align: center; margin-top: 1.2rem; }

/* ===== Bottom navigation ===== */
.g654-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 6rem;
  background: linear-gradient(180deg, #16224f, #0a1130);
  border-top: 1px solid var(--g654-line);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0,0,0,.4);
}
.g654-bottom-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  color: #b6c2ea;
  background: none;
  border: none;
  cursor: pointer;
  gap: .2rem;
  transition: color .15s ease, transform .12s ease;
  text-decoration: none;
}
.g654-bottom-item i,
.g654-bottom-item .material-icons,
.g654-bottom-item ion-icon { font-size: 2.2rem; }
.g654-bottom-item span { font-size: 1rem; line-height: 1.1rem; }
.g654-bottom-item:hover { color: #fff; transform: translateY(-1px); }
.g654-bottom-item:active { transform: scale(.92); }
.g654-bottom-item.g654-bottom-active { color: var(--g654-gold); }
.g654-bottom-item.g654-bottom-promo { color: var(--g654-gold); }

/* ===== Desktop ===== */
.g654-desktop-nav { display: none; }
@media (min-width: 769px) {
  .g654-bottom-nav { display: none; }
  .g654-desktop-nav {
    display: flex;
    gap: 1.2rem;
    align-items: center;
  }
  .g654-desktop-nav a { color: #eaf2ff; font-size: 1.15rem; }
  main.g654-main { padding-bottom: 3rem; }
  .g654-footer { padding-bottom: 2rem; }
  .g654-wrapper { max-width: 960px; }
  .g654-grid { grid-template-columns: repeat(6, 1fr); }
  .g654-features { grid-template-columns: 1fr 1fr; }
  .g654-testi-grid { grid-template-columns: repeat(3, 1fr); }
  .g654-footer-links { grid-template-columns: repeat(4, 1fr); }
  .g654-mobile-menu { display: none; }
}

/* ===== Small screens ===== */
@media (max-width: 430px) {
  .g654-grid { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
  .g654-game img { height: 7rem; }
  .g654-slide img { height: 15rem; }
  h1 { font-size: 1.8rem; }
  .g654-logo { font-size: 1.35rem; }
}
@media (max-width: 360px) {
  .g654-grid { grid-template-columns: repeat(2, 1fr); }
}
