/* ==========================================================================
   ph365 apk - Core Stylesheet
   All custom classes use the wd836- prefix for namespace isolation.
   Palette: #FF5722 (orange-red) | #32CD32 (lime green) | #FF8C00 (dark orange)
            #1A1A2E (dark navy background)
   Mobile-first layout, container max-width: 430px
   ========================================================================== */

:root {
  --wd836-primary: #FF5722;
  --wd836-accent: #32CD32;
  --wd836-warm: #FF8C00;
  --wd836-bg: #1A1A2E;
  --wd836-bg-soft: #20213a;
  --wd836-card: #262848;
  --wd836-card-soft: #2e3060;
  --wd836-text: #f5f6ff;
  --wd836-text-muted: #b8bbdc;
  --wd836-border: #3a3d6e;
  --wd836-gold: #FFD700;
  --wd836-radius: 14px;
  --wd836-radius-sm: 8px;
  --wd836-shadow: 0 8px 22px rgba(0,0,0,.32);
}

* { box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--wd836-bg);
  color: var(--wd836-text);
  font-size: 1.5rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--wd836-accent); text-decoration: none; }
a:hover, a:focus { color: var(--wd836-warm); }

/* Layout container */
.wd836-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
}
.wd836-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }
main { display: block; padding-bottom: 24px; }

/* ====================== Header ====================== */
.wd836-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(26,26,46,.96), rgba(26,26,46,.88));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--wd836-border);
  transition: box-shadow .25s ease, background .25s ease;
}
.wd836-header-scrolled {
  box-shadow: 0 4px 14px rgba(0,0,0,.45);
  background: linear-gradient(180deg, rgba(26,26,46,1), rgba(26,26,46,.95));
}
.wd836-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  gap: 8px;
}
.wd836-brand {
  display: flex; align-items: center; gap: 8px;
  color: var(--wd836-text);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: .3px;
}
.wd836-brand img { width: 28px; height: 28px; border-radius: 6px; }
.wd836-brand-name span { color: var(--wd836-primary); }
.wd836-header-actions { display: flex; align-items: center; gap: 6px; }
.wd836-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: var(--wd836-radius-sm);
  padding: 8px 12px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
  min-height: 36px;
}
.wd836-btn:active { transform: scale(.95); }
.wd836-btn-login {
  background: transparent;
  color: var(--wd836-text);
  border: 1px solid var(--wd836-border);
}
.wd836-btn-register {
  background: linear-gradient(135deg, var(--wd836-primary), var(--wd836-warm));
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,87,34,.4);
}
.wd836-btn-cta {
  background: linear-gradient(135deg, var(--wd836-accent), #1ea33f);
  color: #0c1c0c;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(50,205,50,.35);
}
.wd836-btn-block {
  width: 100%;
  padding: 12px 16px;
  font-size: 1.5rem;
}
.wd836-menu-btn {
  background: transparent;
  color: var(--wd836-text);
  border: 0;
  padding: 6px;
  font-size: 2rem;
  cursor: pointer;
  min-width: 40px;
  min-height: 40px;
  border-radius: 8px;
}
.wd836-menu-btn-active { background: var(--wd836-card); color: var(--wd836-primary); }

/* ====================== Mobile slide-down menu ====================== */
.wd836-mobile-menu {
  position: fixed;
  top: 58px; left: 0; right: 0;
  background: var(--wd836-bg-soft);
  border-bottom: 1px solid var(--wd836-border);
  transform: translateY(-120%);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  z-index: 999;
  padding: 8px 12px 14px;
  max-height: 70vh;
  overflow-y: auto;
}
.wd836-mobile-menu.wd836-menu-open {
  transform: translateY(0);
  opacity: 1;
}
.wd836-mobile-menu a {
  display: block;
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--wd836-text);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.wd836-mobile-menu a:hover { background: var(--wd836-card); color: var(--wd836-primary); }
.wd836-mobile-menu a i { width: 22px; text-align: center; margin-right: 8px; color: var(--wd836-accent); }

/* ====================== Spacer (fixed header offset) ====================== */
.wd836-top-spacer { height: 58px; }

/* ====================== Hero Carousel ====================== */
.wd836-carousel {
  position: relative;
  border-radius: var(--wd836-radius);
  overflow: hidden;
  margin: 12px 0;
  box-shadow: var(--wd836-shadow);
}
.wd836-carousel-track {
  display: flex;
  transition: transform .5s ease;
}
.wd836-carousel-slide {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}
.wd836-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.wd836-carousel-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 14px 14px;
  background: linear-gradient(0deg, rgba(26,26,46,.92), rgba(26,26,46,0));
  color: var(--wd836-text);
}
.wd836-carousel-cap strong { color: var(--wd836-warm); font-size: 1.7rem; display: block; }
.wd836-carousel-cap span { font-size: 1.25rem; color: var(--wd836-text-muted); }
.wd836-carousel-dots {
  position: absolute;
  bottom: 8px; right: 12px;
  display: flex; gap: 6px;
}
.wd836-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
}
.wd836-carousel-dot-active { background: var(--wd836-primary); width: 18px; border-radius: 4px; }

/* ====================== Section title ====================== */
.wd836-section { padding: 18px 0 8px; }
.wd836-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.wd836-section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--wd836-text);
  display: flex; align-items: center; gap: 8px;
}
.wd836-section-title i { color: var(--wd836-primary); font-size: 2.2rem; }
.wd836-section-more { font-size: 1.2rem; color: var(--wd836-accent); }

/* ====================== Game grid ====================== */
.wd836-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.wd836-grid-4 { grid-template-columns: repeat(4, 1fr); }
.wd836-card {
  background: var(--wd836-card);
  border-radius: var(--wd836-radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--wd836-border);
  transition: transform .15s ease, border-color .15s ease;
  position: relative;
}
.wd836-card:hover, .wd836-card:active {
  transform: translateY(-2px);
  border-color: var(--wd836-primary);
}
.wd836-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0e0f24;
}
.wd836-card-name {
  font-size: 1.15rem;
  color: var(--wd836-text);
  text-align: center;
  padding: 5px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wd836-card-badge {
  position: absolute; top: 4px; left: 4px;
  background: var(--wd836-primary);
  color: #fff;
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}
.wd836-card-badge-hot { background: linear-gradient(135deg, #ff3d3d, #ff8c00); }
.wd836-card-badge-new { background: var(--wd836-accent); color: #0c1c0c; }

/* ====================== Generic content card ====================== */
.wd836-panel {
  background: var(--wd836-card);
  border: 1px solid var(--wd836-border);
  border-radius: var(--wd836-radius);
  padding: 14px;
  margin: 10px 0;
}
.wd836-panel h2 { font-size: 1.7rem; margin: 0 0 8px; color: var(--wd836-warm); }
.wd836-panel h3 { font-size: 1.45rem; margin: 10px 0 6px; color: var(--wd836-accent); }
.wd836-panel p { font-size: 1.35rem; line-height: 2.1rem; color: var(--wd836-text-muted); margin: 0 0 8px; }
.wd836-panel ul { margin: 0; padding-left: 18px; color: var(--wd836-text-muted); font-size: 1.3rem; line-height: 2rem; }
.wd836-panel strong { color: var(--wd836-text); }

/* ====================== Hero CTA banner ====================== */
.wd836-cta-banner {
  background: linear-gradient(135deg, var(--wd836-primary), var(--wd836-warm));
  border-radius: var(--wd836-radius);
  padding: 16px;
  color: #fff;
  text-align: center;
  margin: 12px 0;
  box-shadow: 0 6px 18px rgba(255,87,34,.35);
}
.wd836-cta-banner h2 { color: #fff; margin: 0 0 6px; font-size: 1.8rem; }
.wd836-cta-banner p { margin: 0 0 10px; font-size: 1.3rem; opacity: .95; }
.wd836-cta-banner .wd836-btn { background: #fff; color: var(--wd836-primary); }

/* ====================== Highlights list ====================== */
.wd836-list { list-style: none; padding: 0; margin: 0; }
.wd836-list li {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 8px 0;
  font-size: 1.3rem;
  color: var(--wd836-text-muted);
  border-bottom: 1px dashed var(--wd836-border);
}
.wd836-list li i { color: var(--wd836-accent); font-size: 1.8rem; margin-top: 1px; }
.wd836-list li:last-child { border-bottom: 0; }

/* ====================== Stats grid ====================== */
.wd836-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 10px 0;
}
.wd836-stat {
  background: var(--wd836-bg-soft);
  border-radius: var(--wd836-radius-sm);
  padding: 12px;
  text-align: center;
  border: 1px solid var(--wd836-border);
}
.wd836-stat-num { font-size: 2.2rem; font-weight: 800; color: var(--wd836-warm); }
.wd836-stat-label { font-size: 1.15rem; color: var(--wd836-text-muted); }

/* ====================== RTP table ====================== */
.wd836-rtp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 1.25rem;
}
.wd836-rtp-table th, .wd836-rtp-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--wd836-border);
  text-align: left;
}
.wd836-rtp-table th { color: var(--wd836-accent); font-weight: 700; }
.wd836-rtp-table td.num { color: var(--wd836-warm); font-weight: 700; text-align: right; }

/* ====================== Testimonials ====================== */
.wd836-testi {
  background: var(--wd836-bg-soft);
  border-radius: var(--wd836-radius-sm);
  padding: 12px;
  margin-bottom: 8px;
  border-left: 3px solid var(--wd836-primary);
}
.wd836-testi-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.wd836-testi-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--wd836-card-soft); display: flex; align-items: center; justify-content: center; color: var(--wd836-warm); font-weight: 800; }
.wd836-testi-name { font-size: 1.3rem; font-weight: 700; color: var(--wd836-text); }
.wd836-testi-stars { color: var(--wd836-gold); font-size: 1.1rem; margin-left: auto; }
.wd836-testi-text { font-size: 1.25rem; color: var(--wd836-text-muted); line-height: 1.9rem; }

/* ====================== Payment methods ====================== */
.wd836-pay-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0;
}
.wd836-pay {
  flex: 1 1 30%;
  min-width: 90px;
  background: var(--wd836-bg-soft);
  border-radius: var(--wd836-radius-sm);
  padding: 10px 6px;
  text-align: center;
  font-size: 1.15rem;
  color: var(--wd836-text);
  border: 1px solid var(--wd836-border);
}
.wd836-pay i { color: var(--wd836-accent); font-size: 2rem; display: block; margin-bottom: 4px; }

/* ====================== Winners showcase ====================== */
.wd836-winner {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  background: var(--wd836-bg-soft);
  border-radius: var(--wd836-radius-sm);
  margin-bottom: 6px;
  border: 1px solid var(--wd836-border);
}
.wd836-winner-name { flex: 1; font-size: 1.25rem; color: var(--wd836-text); }
.wd836-winner-game { font-size: 1.1rem; color: var(--wd836-text-muted); }
.wd836-winner-amt { color: var(--wd836-accent); font-weight: 800; font-size: 1.35rem; }

/* ====================== FAQ ====================== */
.wd836-faq-item {
  background: var(--wd836-bg-soft);
  border: 1px solid var(--wd836-border);
  border-radius: var(--wd836-radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}
.wd836-faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px;
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--wd836-text);
}
.wd836-faq-q i { color: var(--wd836-primary); transition: transform .2s ease; }
.wd836-faq-open .wd836-faq-q i { transform: rotate(45deg); }
.wd836-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 12px;
  font-size: 1.25rem;
  color: var(--wd836-text-muted);
  line-height: 2rem;
}
.wd836-faq-open .wd836-faq-a { max-height: 320px; padding: 0 12px 12px; }

/* ====================== Footer ====================== */
.wd836-footer {
  background: #121325;
  border-top: 1px solid var(--wd836-border);
  padding: 18px 12px 24px;
  margin-top: 18px;
  color: var(--wd836-text-muted);
}
.wd836-footer-brand {
  font-size: 1.5rem; font-weight: 800; color: var(--wd836-text); margin-bottom: 6px;
}
.wd836-footer-desc { font-size: 1.25rem; line-height: 1.9rem; margin-bottom: 12px; }
.wd836-footer h4 { color: var(--wd836-warm); font-size: 1.35rem; margin: 10px 0 6px; }
.wd836-footer-links { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.wd836-footer-links a {
  font-size: 1.2rem;
  color: var(--wd836-text-muted);
  padding: 4px 0;
  flex: 1 1 45%;
}
.wd836-footer-links a:hover { color: var(--wd836-primary); }
.wd836-footer-promos {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0;
}
.wd836-footer-promos .wd836-btn { flex: 1 1 45%; min-width: 130px; font-size: 1.15rem; padding: 6px 8px; }
.wd836-copy { font-size: 1.1rem; text-align: center; color: var(--wd836-text-muted); margin-top: 14px; border-top: 1px solid var(--wd836-border); padding-top: 10px; }

/* ====================== Mobile bottom nav ====================== */
.wd836-bnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, var(--wd836-bg-soft), #0e0f24);
  border-top: 1px solid var(--wd836-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 14px rgba(0,0,0,.4);
}
.wd836-bnav-btn {
  flex: 1;
  background: transparent;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--wd836-text-muted);
  font-size: 1.05rem;
  cursor: pointer;
  padding: 4px 2px;
  min-width: 60px;
  min-height: 60px;
  transition: color .15s ease, transform .15s ease;
  position: relative;
  text-decoration: none;
}
.wd836-bnav-btn i { font-size: 22px; }
.wd836-bnav-btn .material-icons { font-size: 24px; }
.wd836-bnav-btn:active { transform: scale(.9); }
.wd836-bnav-btn:hover { color: var(--wd836-warm); }
.wd836-bnav-active { color: var(--wd836-primary); }
.wd836-bnav-active::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 3px;
  background: var(--wd836-primary);
  border-radius: 0 0 4px 4px;
}
.wd836-bnav-promo {
  background: linear-gradient(135deg, var(--wd836-primary), var(--wd836-warm));
  color: #fff;
  border-radius: 50%;
  width: 50px; height: 50px;
  margin-top: -22px;
  box-shadow: 0 4px 12px rgba(255,87,34,.45);
  border: 3px solid var(--wd836-bg);
}
.wd836-bnav-promo i { font-size: 22px; }
.wd836-bnav-badge {
  position: absolute; top: 4px; right: 14px;
  background: var(--wd836-primary);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
}

/* ====================== Desktop rules ====================== */
@media (min-width: 769px) {
  .wd836-bnav { display: none; }
  main { padding-bottom: 40px; }
}
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
  .wd836-footer { padding-bottom: 80px; }
}

/* ====================== Utilities ====================== */
.wd836-text-center { text-align: center; }
.wd836-mt-8 { margin-top: 8px; }
.wd836-mt-12 { margin-top: 12px; }
.wd836-hidden { display: none !important; }
.wd836-promo-text {
  color: var(--wd836-warm);
  font-weight: 700;
  cursor: pointer;
}
.wd836-divider {
  height: 1px; background: var(--wd836-border); margin: 14px 0; border: 0;
}
