/*!
 * jili games download - theme.css
 * Mobile-first PH casino layout. All custom classes use the gd79- prefix.
 * Color tokens: deep navy #212F3D base, orchid #DA70D6 + sky #87CEFA accents,
 * light cyan #E0FFFF text on dark, royal blue #0000CD deep accent.
 */

:root {
  --gd79-bg: #212F3D;
  --gd79-bg-2: #18222e;
  --gd79-bg-3: #0f1822;
  --gd79-surface: #243444;
  --gd79-primary: #DA70D6;
  --gd79-secondary: #87CEFA;
  --gd79-accent: #0000CD;
  --gd79-text: #E0FFFF;
  --gd79-text-muted: #9bb1c5;
  --gd79-border: rgba(135, 206, 250, 0.16);
  --gd79-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --gd79-radius: 14px;
  --gd79-radius-sm: 10px;
  --gd79-header-h: 56px;
  --gd79-bottom-h: 62px;
  --gd79-max-w: 430px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: linear-gradient(180deg, var(--gd79-bg-3) 0%, var(--gd79-bg) 35%, var(--gd79-bg) 100%);
  color: var(--gd79-text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--gd79-secondary); text-decoration: none; }
a:hover, a:focus { color: var(--gd79-primary); }

h1, h2, h3, h4 { margin: 0 0 0.8rem; line-height: 1.25; font-weight: 700; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.9rem; color: var(--gd79-text); }
h3 { font-size: 1.65rem; color: var(--gd79-secondary); }
p  { margin: 0 0 1rem; line-height: 2.4rem; }

.gd79-container {
  width: 100%;
  max-width: var(--gd79-max-w);
  margin: 0 auto;
  padding: 0 1.2rem;
}

.gd79-wrapper {
  padding-top: calc(var(--gd79-header-h) + 0.5rem);
  padding-bottom: calc(var(--gd79-bottom-h) + 2rem);
}

/* ---------------- HEADER ---------------- */
.gd79-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--gd79-header-h);
  background: linear-gradient(90deg, var(--gd79-bg-2), var(--gd79-bg-3));
  border-bottom: 1px solid var(--gd79-border);
  box-shadow: var(--gd79-shadow);
  z-index: 1000;
}
.gd79-header-inner {
  height: 100%;
  max-width: var(--gd79-max-w);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.gd79-brand {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--gd79-text);
  font-weight: 700;
  flex: 1; min-width: 0;
}
.gd79-brand img { width: 28px; height: 28px; border-radius: 6px; }
.gd79-brand-name {
  font-size: 1.35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gd79-brand-name b { color: var(--gd79-primary); }

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

.gd79-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 36px; padding: 0 1rem;
  border-radius: 999px;
  border: 0;
  font-size: 1.3rem; font-weight: 700;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}
.gd79-btn:hover { transform: translateY(-1px); }
.gd79-btn-primary {
  background: linear-gradient(135deg, var(--gd79-primary), var(--gd79-accent));
  color: #fff;
  box-shadow: 0 4px 14px rgba(218, 112, 214, 0.45);
}
.gd79-btn-secondary {
  background: transparent;
  color: var(--gd79-text);
  border: 1px solid var(--gd79-secondary);
}
.gd79-btn-block { width: 100%; min-height: 44px; font-size: 1.45rem; }

.gd79-menu-toggle {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--gd79-border);
  border-radius: 8px; color: var(--gd79-text); cursor: pointer;
}
.gd79-menu-toggle i { font-size: 1.8rem; }

/* ---------------- MOBILE MENU ---------------- */
.gd79-mobile-menu {
  position: fixed; top: 0; right: -100%;
  width: 80%; max-width: 320px; height: 100vh;
  background: var(--gd79-bg-2);
  border-left: 1px solid var(--gd79-border);
  padding: 2rem 1.4rem;
  transition: right 0.28s ease; z-index: 9999;
  overflow-y: auto;
}
.gd79-mobile-menu-open { right: 0; }
.gd79-menu-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease; z-index: 9998;
}
.gd79-menu-backdrop-show { opacity: 1; pointer-events: auto; }
.gd79-mobile-menu h3 { margin-top: 1.4rem; color: var(--gd79-primary); font-size: 1.4rem; }
.gd79-mobile-menu a {
  display: block; padding: 1rem 0.6rem;
  border-bottom: 1px solid var(--gd79-border);
  color: var(--gd79-text); font-size: 1.4rem;
}
.gd79-mobile-menu a:hover { background: rgba(135, 206, 250, 0.08); color: var(--gd79-primary); }
.gd79-menu-close { position: absolute; top: 10px; right: 12px; }

.gd79-no-scroll { overflow: hidden; }

/* ---------------- CAROUSEL ---------------- */
.gd79-carousel {
  position: relative; overflow: hidden; border-radius: var(--gd79-radius);
  margin: 1rem 0 1.4rem; box-shadow: var(--gd79-shadow);
}
.gd79-carousel-track { display: flex; transition: transform 0.45s ease; }
.gd79-carousel-slide { min-width: 100%; position: relative; }
.gd79-carousel-slide img { width: 100%; height: 180px; object-fit: cover; }
.gd79-carousel-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.8rem 1rem; font-weight: 700; font-size: 1.3rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
}
.gd79-carousel-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.gd79-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.5); border: 0; cursor: pointer; padding: 0;
}
.gd79-carousel-dot-active { background: var(--gd79-primary); }
.gd79-carousel-prev, .gd79-carousel-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.45); color: #fff; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.gd79-carousel-prev { left: 8px; }
.gd79-carousel-next { right: 8px; }

/* ---------------- SECTIONS ---------------- */
.gd79-section { padding: 1.4rem 0; }
.gd79-section-title {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.7rem; color: var(--gd79-text);
  border-left: 4px solid var(--gd79-primary); padding-left: 0.8rem;
  margin-bottom: 1rem;
}
.gd79-section-title i { color: var(--gd79-primary); }

.gd79-card {
  background: var(--gd79-surface);
  border: 1px solid var(--gd79-border);
  border-radius: var(--gd79-radius);
  padding: 1.2rem;
  box-shadow: var(--gd79-shadow);
  margin-bottom: 1rem;
}

/* ---------------- GAME GRID ---------------- */
.gd79-cat-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 1.4rem 0 0.8rem;
}
.gd79-cat-head h2 { font-size: 1.55rem; margin: 0; }
.gd79-cat-head .gd79-cat-tag {
  font-size: 1.15rem; color: var(--gd79-secondary); background: rgba(135, 206, 250, 0.12);
  padding: 0.3rem 0.8rem; border-radius: 999px;
}
.gd79-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.gd79-game {
  display: flex; flex-direction: column; align-items: center;
  background: var(--gd79-surface);
  border: 1px solid var(--gd79-border);
  border-radius: var(--gd79-radius-sm);
  padding: 0.6rem 0.3rem;
  text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.gd79-game:hover {
  transform: translateY(-2px);
  border-color: var(--gd79-primary);
}
.gd79-game img {
  width: 64px; height: 64px; border-radius: 10px; object-fit: cover; margin-bottom: 0.4rem;
}
.gd79-game-name {
  font-size: 1.15rem; color: var(--gd79-text);
  line-height: 1.4rem; max-height: 2.8rem; overflow: hidden;
  font-weight: 600;
}

/* ---------------- ACCORDION ---------------- */
.gd79-accordion {
  background: var(--gd79-surface); border: 1px solid var(--gd79-border);
  border-radius: var(--gd79-radius-sm); margin-bottom: 0.6rem; overflow: hidden;
}
.gd79-accordion-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.2rem; cursor: pointer; font-weight: 600; color: var(--gd79-text);
  background: rgba(135, 206, 250, 0.05);
}
.gd79-accordion-head i { transition: transform 0.2s ease; color: var(--gd79-primary); }
.gd79-accordion-open .gd79-accordion-head i { transform: rotate(180deg); }
.gd79-accordion-body {
  max-height: 0; overflow: hidden; transition: max-height 0.28s ease;
  padding: 0 1.2rem;
}
.gd79-accordion-open .gd79-accordion-body { max-height: 800px; padding: 1rem 1.2rem; }

/* ---------------- PROMO BANNER ---------------- */
.gd79-promo-banner {
  background: linear-gradient(135deg, var(--gd79-accent), var(--gd79-primary));
  border-radius: var(--gd79-radius); padding: 1.3rem; color: #fff;
  display: flex; flex-direction: column; gap: 0.7rem; margin: 1rem 0;
  box-shadow: var(--gd79-shadow);
}
.gd79-promo-banner h3 { color: #fff; margin: 0; font-size: 1.7rem; }
.gd79-promo-banner p { margin: 0; color: #E0FFFF; font-size: 1.3rem; line-height: 2rem; }

/* ---------------- LIST / FEATURES / TESTIMONIAL ---------------- */
.gd79-list { list-style: none; padding: 0; margin: 0; }
.gd79-list li { padding: 0.5rem 0 0.5rem 1.8rem; position: relative; line-height: 2rem; }
.gd79-list li::before {
  content: '\f00c'; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 0; top: 0.7rem; color: var(--gd79-primary); font-size: 1.1rem;
}

.gd79-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.gd79-feature {
  background: var(--gd79-surface); border-radius: var(--gd79-radius-sm);
  padding: 1rem; text-align: center; border: 1px solid var(--gd79-border);
}
.gd79-feature i { font-size: 1.8rem; color: var(--gd79-primary); margin-bottom: 0.4rem; }
.gd79-feature h4 { margin: 0 0 0.3rem; font-size: 1.25rem; color: var(--gd79-text); }
.gd79-feature p { margin: 0; font-size: 1.15rem; color: var(--gd79-text-muted); line-height: 1.8rem; }

.gd79-testimonial {
  background: var(--gd79-surface); border-radius: var(--gd79-radius-sm);
  padding: 1rem; margin-bottom: 0.7rem; border-left: 3px solid var(--gd79-primary);
}
.gd79-testimonial-stars { color: #f5b945; margin-bottom: 0.3rem; font-size: 1.1rem; }
.gd79-testimonial p { margin: 0 0 0.5rem; font-size: 1.25rem; line-height: 1.9rem; }
.gd79-testimonial cite { font-style: normal; color: var(--gd79-secondary); font-size: 1.15rem; }

/* ---------------- PAY / WINNER ---------------- */
.gd79-pay-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.gd79-pay {
  flex: 1 1 calc(33.33% - 0.6rem);
  background: var(--gd79-surface); border-radius: var(--gd79-radius-sm);
  padding: 0.8rem; text-align: center; border: 1px solid var(--gd79-border);
}
.gd79-pay i { font-size: 1.8rem; color: var(--gd79-secondary); }
.gd79-pay span { display: block; margin-top: 0.3rem; font-size: 1.1rem; }

.gd79-winner {
  display: flex; align-items: center; gap: 0.8rem;
  background: var(--gd79-surface); border-radius: var(--gd79-radius-sm);
  padding: 0.7rem 1rem; margin-bottom: 0.5rem; border: 1px solid var(--gd79-border);
}
.gd79-winner-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gd79-primary), var(--gd79-secondary));
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700;
}
.gd79-winner-info { flex: 1; min-width: 0; }
.gd79-winner-info b { color: var(--gd79-text); font-size: 1.2rem; display: block; }
.gd79-winner-info small { color: var(--gd79-text-muted); font-size: 1.05rem; }
.gd79-winner-amount { color: var(--gd79-primary); font-weight: 700; font-size: 1.3rem; }

/* ---------------- RTP TABLE ---------------- */
.gd79-rpt-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.gd79-rpt-table th, .gd79-rpt-table td {
  padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--gd79-border); text-align: left;
}
.gd79-rpt-table th { color: var(--gd79-secondary); font-size: 1.15rem; }
.gd79-rpt-table tr:hover td { background: rgba(135, 206, 250, 0.06); }
.gd79-rpt-table td:last-child { color: var(--gd79-primary); font-weight: 700; text-align: right; }

/* ---------------- INLINE LINKS ---------------- */
.gd79-inline-link {
  color: var(--gd79-primary); font-weight: 700; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 2px;
}
.gd79-inline-link:hover { color: var(--gd79-secondary); }

/* ---------------- FOOTER ---------------- */
.gd79-footer {
  background: var(--gd79-bg-3); border-top: 1px solid var(--gd79-border);
  padding: 1.6rem 1.2rem 2rem; margin-top: 2rem;
}
.gd79-footer-brand { font-size: 1.3rem; color: var(--gd79-text-muted); line-height: 2rem; margin-bottom: 1rem; }
.gd79-footer-links {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem 0.8rem; margin-bottom: 1rem;
}
.gd79-footer-links a { font-size: 1.2rem; color: var(--gd79-secondary); }
.gd79-footer-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
.gd79-footer-actions .gd79-btn { flex: 1 1 calc(50% - 0.5rem); min-height: 40px; }
.gd79-footer-copy {
  font-size: 1.1rem; color: var(--gd79-text-muted); text-align: center; margin-top: 1rem;
}
.gd79-disclaimer {
  font-size: 1.1rem; color: var(--gd79-text-muted);
  border-top: 1px dashed var(--gd79-border); padding-top: 0.8rem; margin-top: 0.8rem;
}

/* ---------------- BOTTOM NAV ---------------- */
.gd79-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--gd79-bottom-h);
  background: linear-gradient(180deg, var(--gd79-bg-2), var(--gd79-bg-3));
  border-top: 1px solid var(--gd79-border);
  display: flex; justify-content: space-around; align-items: stretch;
  z-index: 1000; padding-bottom: env(safe-area-inset-bottom);
}
.gd79-bottom-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--gd79-text-muted);
  cursor: pointer; gap: 2px; transition: color 0.18s ease, transform 0.18s ease;
  font-family: inherit; padding: 4px 2px;
}
.gd79-bottom-nav-btn i, .gd79-bottom-nav-btn .material-icons-outlined,
.gd79-bottom-nav-btn ion-icon { font-size: 2.2rem; }
.gd79-bottom-nav-btn span { font-size: 1.05rem; }
.gd79-bottom-nav-btn:hover { color: var(--gd79-secondary); transform: translateY(-1px); }
.gd79-bottom-nav-btn:active { transform: scale(0.92); }
.gd79-bottom-nav-active { color: var(--gd79-primary); }
.gd79-bottom-nav-active span { font-weight: 700; }
.gd79-bottom-nav-promo {
  position: relative; color: #fff;
  background: linear-gradient(135deg, var(--gd79-primary), var(--gd79-accent));
  border-radius: 14px 14px 0 0; margin: 0 2px;
}

/* ---------------- DESKTOP ---------------- */
@media (min-width: 769px) {
  .gd79-bottom-nav { display: none; }
  .gd79-header-inner { max-width: 960px; }
  .gd79-container { max-width: 960px; }
  .gd79-grid { grid-template-columns: repeat(6, 1fr); }
  .gd79-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .gd79-carousel-slide img { height: 360px; }
}

/* Highlight current page inside bottom nav */
.gd79-bottom-nav-active::after {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 24px; height: 3px; border-radius: 2px; background: var(--gd79-primary);
}
