/* ============================================================
   pacquiao online casino - theme-8245.css
   All custom classes use the v539- prefix.
   Palette: #8A2BE2 | #DDA0DD | #0D1117 | #95A5A6
   Mobile-first. Root font 62.5% (1rem = 10px).
   ============================================================ */

:root {
  --v539-primary: #8A2BE2;
  --v539-accent: #DDA0DD;
  --v539-bg: #0D1117;
  --v539-bg-soft: #141a24;
  --v539-bg-card: #1a2230;
  --v539-text: #f3f4f6;
  --v539-muted: #95A5A6;
  --v539-gold: #ffd479;
  --v539-success: #3ddc97;
  --v539-danger: #ff6b6b;
  --v539-radius: 14px;
  --v539-radius-sm: 10px;
  --v539-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --v539-header-h: 60px;
}

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

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

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

.v539-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}

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

/* ---------- Header ---------- */
.v539-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--v539-header-h);
  background: rgba(13, 17, 23, 0.96);
  border-bottom: 1px solid rgba(138, 43, 226, 0.35);
  z-index: 1000;
  backdrop-filter: blur(8px);
}
.v539-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}
.v539-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--v539-text);
  font-weight: 700;
  font-size: 1.5rem;
}
.v539-logo img { width: 30px; height: 30px; border-radius: 8px; }
.v539-logo span { color: var(--v539-accent); }

.v539-header-actions { display: flex; align-items: center; gap: 8px; }
.v539-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  border-radius: var(--v539-radius-sm);
  padding: 8px 14px;
  font-size: 1.35rem;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
  min-height: 38px;
}
.v539-btn:active { transform: scale(0.96); }
.v539-btn-primary {
  background: linear-gradient(135deg, var(--v539-primary), #b347ff);
  color: #fff;
  box-shadow: 0 4px 14px rgba(138, 43, 226, 0.45);
}
.v539-btn-ghost {
  background: transparent;
  color: var(--v539-text);
  border: 1px solid rgba(221, 160, 221, 0.5);
}
.v539-btn-gold {
  background: linear-gradient(135deg, var(--v539-gold), #ffb347);
  color: #1a1208;
  box-shadow: 0 4px 14px rgba(255, 212, 121, 0.4);
}
.v539-menu-btn {
  background: transparent;
  border: none;
  color: var(--v539-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 6px 8px;
}

/* ---------- Mobile menu drawer ---------- */
.v539-mobile-menu {
  position: fixed;
  top: 0; right: -82%;
  width: 78%;
  max-width: 340px;
  height: 100%;
  background: var(--v539-bg-soft);
  z-index: 9999;
  padding: 80px 18px 30px;
  transition: right .28s ease;
  overflow-y: auto;
  border-left: 1px solid rgba(138, 43, 226, 0.35);
}
.v539-mobile-menu.v539-menu-open { right: 0; }
.v539-mobile-menu h4 {
  color: var(--v539-accent);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 18px 4px 10px;
}
.v539-mobile-menu a {
  display: block;
  padding: 12px 12px;
  color: var(--v539-text);
  border-radius: var(--v539-radius-sm);
  margin-bottom: 4px;
  font-size: 1.45rem;
  transition: background .15s;
}
.v539-mobile-menu a:hover, .v539-mobile-menu a:focus {
  background: rgba(138, 43, 226, 0.18);
}
.v539-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}
.v539-menu-overlay.v539-overlay-active { opacity: 1; visibility: visible; }

/* ---------- Main / hero ---------- */
.v539-main { padding-top: calc(var(--v539-header-h) + 6px); }

.v539-hero {
  position: relative;
  margin: 10px 0 16px;
  border-radius: var(--v539-radius);
  overflow: hidden;
  box-shadow: var(--v539-shadow);
}
.v539-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.v539-slide.v539-slide-active { display: block; }
.v539-slide img { width: 100%; height: 180px; object-fit: cover; }
.v539-slide-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px;
  background: linear-gradient(transparent, rgba(13,17,23,0.92));
}
.v539-slide-overlay h2 {
  color: #fff;
  font-size: 1.7rem;
  margin-bottom: 4px;
}
.v539-slide-overlay p { color: var(--v539-accent); font-size: 1.25rem; }
.v539-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 5px;
}
.v539-slide-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
}
.v539-slide-dot.v539-dot-active { background: var(--v539-gold); }

/* ---------- Section / heading ---------- */
.v539-section { margin: 22px 0; }
.v539-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--v539-text);
  border-left: 4px solid var(--v539-primary);
  padding-left: 10px;
}
.v539-section-title i { color: var(--v539-gold); }
.v539-section-title small {
  font-size: 1.2rem;
  color: var(--v539-muted);
  font-weight: 400;
  margin-left: auto;
}

/* ---------- H1 hero text ---------- */
.v539-h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 14px 0 8px;
  background: linear-gradient(135deg, #fff 0%, var(--v539-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.v539-sub {
  color: var(--v539-muted);
  font-size: 1.35rem;
  margin-bottom: 12px;
}

/* ---------- Game grid ---------- */
.v539-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.v539-card {
  background: var(--v539-bg-card);
  border-radius: var(--v539-radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  border: 1px solid rgba(138, 43, 226, 0.18);
}
.v539-card:active { transform: scale(0.95); }
.v539-card img {
  width: 100%;
  height: 96px;
  object-fit: cover;
}
.v539-card-name {
  font-size: 1.2rem;
  padding: 6px 8px;
  text-align: center;
  color: var(--v539-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v539-card-badge {
  position: absolute;
  top: 5px; left: 5px;
  background: rgba(138, 43, 226, 0.9);
  color: #fff;
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: 6px;
}
.v539-card-hot .v539-card-badge { background: var(--v539-danger); }

/* ---------- Feature / info blocks ---------- */
.v539-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.v539-info-card {
  background: var(--v539-bg-card);
  border-radius: var(--v539-radius);
  padding: 14px;
  border: 1px solid rgba(221, 160, 221, 0.18);
}
.v539-info-card .v539-ic-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 1.45rem;
  font-weight: 700;
}
.v539-info-card .v539-ic-head i { color: var(--v539-primary); font-size: 2rem; }
.v539-info-card p { color: var(--v539-muted); font-size: 1.3rem; line-height: 1.4; }

/* ---------- Long-form SEO text ---------- */
.v539-prose {
  background: var(--v539-bg-soft);
  border-radius: var(--v539-radius);
  padding: 16px;
  border: 1px solid rgba(138, 43, 226, 0.18);
}
.v539-prose h2 {
  font-size: 1.7rem;
  margin-bottom: 8px;
  color: var(--v539-accent);
}
.v539-prose h3 {
  font-size: 1.4rem;
  margin: 12px 0 6px;
  color: var(--v539-gold);
}
.v539-prose p {
  color: #d6d9df;
  margin-bottom: 8px;
  font-size: 1.35rem;
  line-height: 1.55;
}
.v539-prose ul { padding-left: 18px; margin: 6px 0 10px; }
.v539-prose li { color: #d6d9df; font-size: 1.32rem; margin-bottom: 4px; line-height: 1.5; }
.v539-prose strong { color: var(--v539-gold); }
.v539-prose a { color: var(--v539-accent); font-weight: 600; text-decoration: underline; }

/* ---------- Steps list ---------- */
.v539-steps { list-style: none; counter-reset: step; padding: 0; }
.v539-steps li {
  position: relative;
  padding: 10px 10px 10px 42px;
  margin-bottom: 8px;
  background: var(--v539-bg-card);
  border-radius: var(--v539-radius-sm);
  counter-increment: step;
  font-size: 1.32rem;
  color: #d6d9df;
}
.v539-steps li::before {
  content: counter(step);
  position: absolute;
  left: 8px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  background: var(--v539-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

/* ---------- Testimonials ---------- */
.v539-testimonial {
  background: var(--v539-bg-card);
  border-radius: var(--v539-radius);
  padding: 12px;
  margin-bottom: 10px;
  border-left: 3px solid var(--v539-gold);
}
.v539-testimonial .v539-t-stars { color: var(--v539-gold); font-size: 1.3rem; margin-bottom: 4px; }
.v539-testimonial p { font-size: 1.3rem; color: #d6d9df; line-height: 1.5; margin-bottom: 6px; }
.v539-testimonial .v539-t-author { font-size: 1.2rem; color: var(--v539-muted); }

/* ---------- Payment pills ---------- */
.v539-pay-row { display: flex; flex-wrap: wrap; gap: 8px; }
.v539-pay-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--v539-bg-card);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 1.25rem;
  border: 1px solid rgba(221, 160, 221, 0.22);
}
.v539-pay-pill i { color: var(--v539-accent); }

/* ---------- Winners ---------- */
.v539-winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: var(--v539-bg-card);
  border-radius: var(--v539-radius-sm);
  margin-bottom: 6px;
  font-size: 1.3rem;
}
.v539-winner-row .v539-w-name { color: var(--v539-text); }
.v539-winner-row .v539-w-amt { color: var(--v539-gold); font-weight: 700; }

/* ---------- FAQ ---------- */
.v539-faq-item {
  background: var(--v539-bg-card);
  border-radius: var(--v539-radius-sm);
  margin-bottom: 8px;
  padding: 12px;
  border: 1px solid rgba(138, 43, 226, 0.15);
}
.v539-faq-item h3 {
  font-size: 1.4rem;
  color: var(--v539-accent);
  margin-bottom: 6px;
}
.v539-faq-item p { font-size: 1.3rem; color: #d6d9df; line-height: 1.5; }

/* ---------- CTA banner ---------- */
.v539-cta {
  background: linear-gradient(135deg, var(--v539-primary), #b347ff 60%, var(--v539-accent));
  border-radius: var(--v539-radius);
  padding: 18px;
  text-align: center;
  margin: 18px 0;
  box-shadow: var(--v539-shadow);
}
.v539-cta h3 { color: #fff; font-size: 1.7rem; margin-bottom: 6px; }
.v539-cta p { color: rgba(255,255,255,0.92); font-size: 1.3rem; margin-bottom: 12px; }
.v539-cta .v539-btn { font-size: 1.5rem; padding: 10px 22px; }

/* ---------- Stats row ---------- */
.v539-stats { display: flex; justify-content: space-around; gap: 8px; margin: 14px 0; }
.v539-stat {
  flex: 1;
  background: var(--v539-bg-card);
  border-radius: var(--v539-radius-sm);
  padding: 10px;
  text-align: center;
}
.v539-stat .v539-stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--v539-gold);
  display: block;
}
.v539-stat .v539-stat-lbl { font-size: 1.15rem; color: var(--v539-muted); }

/* ---------- Footer ---------- */
.v539-footer {
  background: var(--v539-bg-soft);
  border-top: 2px solid var(--v539-primary);
  padding: 22px 14px 100px;
  margin-top: 26px;
}
.v539-footer-brand {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.v539-footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.v539-footer-brand strong { font-size: 1.5rem; color: var(--v539-text); }
.v539-footer p { color: var(--v539-muted); font-size: 1.28rem; line-height: 1.5; margin-bottom: 10px; }
.v539-footer-links {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0;
}
.v539-footer-links a {
  font-size: 1.22rem;
  color: var(--v539-accent);
  text-decoration: underline;
}
.v539-footer-buttons {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0;
}
.v539-footer-copy {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 12px;
  font-size: 1.18rem;
  color: var(--v539-muted);
  text-align: center;
}

/* ---------- Bottom nav ---------- */
.v539-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: rgba(13, 17, 23, 0.98);
  border-top: 1px solid rgba(138, 43, 226, 0.45);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(8px);
}
.v539-bottom-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--v539-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1.05rem;
  transition: color .15s, transform .15s;
  position: relative;
  padding: 4px;
}
.v539-bottom-nav-btn i { font-size: 22px; }
.v539-bottom-nav-btn:active { transform: scale(0.92); color: var(--v539-accent); }
.v539-bottom-nav-btn.v539-nav-active { color: var(--v539-gold); }
.v539-bottom-nav-btn.v539-nav-active::after {
  content: '';
  position: absolute;
  top: 0;
  width: 32px; height: 3px;
  background: var(--v539-gold);
  border-radius: 0 0 4px 4px;
}
.v539-nav-badge {
  position: absolute;
  top: 4px; right: 14px;
  background: var(--v539-danger);
  color: #fff;
  font-size: 0.9rem;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Back to top ---------- */
.v539-back-top {
  position: fixed;
  right: 14px;
  bottom: 76px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--v539-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s, transform .2s;
  box-shadow: var(--v539-shadow);
}
.v539-back-top.v539-back-top-show { opacity: 1; visibility: visible; }
.v539-back-top:active { transform: scale(0.92); }

/* ---------- Reveal animation ---------- */
.v539-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.v539-reveal.v539-revealed { opacity: 1; transform: translateY(0); }

/* ---------- Helpers ---------- */
.v539-text-center { text-align: center; }
.v539-mt-10 { margin-top: 10px; }
.v539-mb-10 { margin-bottom: 10px; }
.v539-hidden { display: none; }

/* ---------- Desktop: hide bottom nav, widen container ---------- */
@media (min-width: 769px) {
  .v539-bottom-nav { display: none; }
  .v539-footer { padding-bottom: 30px; }
  body { background: linear-gradient(180deg, #0a0e14 0%, #0D1117 100%); }
}

/* ---------- Mobile bottom padding for fixed nav ---------- */
@media (max-width: 768px) {
  .v539-main { padding-bottom: 80px; }
}

/* Desktop breakpoint: cap app shell width to 430px while staying centered */
.v539-app-shell {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  background: var(--v539-bg);
  min-height: 100vh;
}
