/* =========================================================
 * ph222 ph - Site theme (theme-1d10.css)
 * All custom classes use the v008- prefix.
 * Palette: #FF7F50 / #333333 / #BDC3C7 / #FF0000 / #F8F9FA / #F5F5F5
 * Mobile-first: base layout tuned for max-width 430px.
 * ========================================================= */

:root {
  --v008-primary: #FF7F50;
  --v008-primary-dark: #e8663a;
  --v008-dark: #333333;
  --v008-silver: #BDC3C7;
  --v008-red: #FF0000;
  --v008-light: #F8F9FA;
  --v008-lighter: #F5F5F5;
  --v008-bg: #ffffff;
  --v008-text: #2a2a2a;
  --v008-muted: #6b7177;
  --v008-gold: #f5b324;
  --v008-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  --v008-radius: 10px;
  --v008-radius-lg: 16px;
  --v008-header-h: 56px;
  --v008-bottom-h: 62px;
}

/* Base reset */
* { box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--v008-text);
  background: var(--v008-lighter);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--v008-primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 0.6rem; line-height: 1.25; font-weight: 700; }
h1 { font-size: 2.2rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1rem; }

/* ---------- Layout ---------- */
.v008-wrapper { max-width: 430px; margin: 0 auto; background: var(--v008-bg); min-height: 100vh; box-shadow: var(--v008-shadow); }
.v008-container { width: 100%; padding: 0 1.2rem; }
.v008-section { padding: 2rem 1.2rem; }
.v008-section-alt { background: var(--v008-light); }
.v008-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.v008-grid { display: grid; gap: 0.8rem; }

/* ---------- Header ---------- */
.v008-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--v008-header-h);
  background: linear-gradient(90deg, var(--v008-dark), #444);
  color: #fff;
  display: flex; align-items: center;
  padding: 0 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.v008-header-inner { width: 100%; max-width: 430px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.v008-logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.7rem; color: #fff; }
.v008-logo img { width: 30px; height: 30px; border-radius: 6px; }
.v008-logo span { background: linear-gradient(90deg, var(--v008-primary), var(--v008-gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v008-menu-btn { background: transparent; border: 0; color: #fff; font-size: 2.2rem; cursor: pointer; padding: 0.2rem 0.6rem; }
.v008-header-actions { display: flex; gap: 0.5rem; align-items: center; }
.v008-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; border: 0; border-radius: var(--v008-radius); padding: 0.6rem 1rem; font-size: 1.3rem; font-weight: 700; cursor: pointer; transition: transform 0.15s ease, opacity 0.15s ease; text-decoration: none; }
.v008-btn:active { transform: scale(0.96); }
.v008-btn-primary { background: var(--v008-primary); color: #fff; }
.v008-btn-primary:hover { background: var(--v008-primary-dark); text-decoration: none; }
.v008-btn-secondary { background: #fff; color: var(--v008-dark); }
.v008-btn-ghost { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.v008-btn-block { display: flex; width: 100%; padding: 1rem; font-size: 1.5rem; }
.v008-btn-lg { padding: 1.1rem 1.4rem; font-size: 1.6rem; }

/* ---------- Mobile slide menu ---------- */
.v008-mobile-menu {
  position: fixed; top: 0; right: -80%; width: 80%; height: 100%;
  background: var(--v008-bg); z-index: 9999;
  transform: translateX(0); transition: right 0.25s ease;
  padding: 1.4rem; overflow-y: auto;
  box-shadow: -4px 0 18px rgba(0,0,0,0.18);
}
.v008-mobile-menu.v008-menu-open { right: 0; }
.v008-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  z-index: 9990; opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.v008-menu-overlay.v008-overlay-active { opacity: 1; pointer-events: auto; }
.v008-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; }
.v008-menu-head h3 { color: var(--v008-dark); }
.v008-menu-close { background: var(--v008-light); border: 0; border-radius: 50%; width: 32px; height: 32px; font-size: 1.8rem; cursor: pointer; color: var(--v008-dark); }
.v008-menu-list { list-style: none; padding: 0; margin: 0; }
.v008-menu-list li { border-bottom: 1px solid var(--v008-lighter); }
.v008-menu-list a { display: flex; align-items: center; gap: 0.8rem; padding: 1.2rem 0.4rem; color: var(--v008-dark); font-weight: 600; font-size: 1.5rem; }
.v008-menu-list a:hover { color: var(--v008-primary-dark); }
.v008-menu-list i, .v008-menu-list ion-icon, .v008-menu-list .material-icons { font-size: 2rem; color: var(--v008-primary); }

/* ---------- Hero carousel ---------- */
.v008-hero { padding-top: calc(var(--v008-header-h) + 1rem); }
.v008-carousel { position: relative; border-radius: var(--v008-radius-lg); overflow: hidden; box-shadow: var(--v008-shadow); }
.v008-slide { display: none; position: relative; }
.v008-slide.v008-slide-active { display: block; }
.v008-slide img { width: 100%; height: 200px; object-fit: cover; }
.v008-slide-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.2rem; background: linear-gradient(transparent, rgba(0,0,0,0.85)); color: #fff; }
.v008-slide-cap h3 { margin: 0 0 0.2rem; color: #fff; font-size: 1.6rem; }
.v008-slide-cap p { margin: 0; font-size: 1.2rem; }
.v008-slide-cta { margin-top: 0.6rem; display: inline-block; }
.v008-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.v008-slide-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); border: 0; cursor: pointer; padding: 0; }
.v008-slide-dot.v008-dot-active { background: var(--v008-primary); width: 20px; border-radius: 4px; }
.v008-carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.35); color: #fff; border: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1.4rem; z-index: 2; }
.v008-carousel-arrow.v008-prev { left: 6px; }
.v008-carousel-arrow.v008-next { right: 6px; }

/* ---------- Headings ---------- */
.v008-h1 { color: var(--v008-dark); font-size: 2.4rem; margin: 1.4rem 0 0.6rem; }
.v008-h2 { color: var(--v008-dark); font-size: 2rem; margin: 2rem 0 0.8rem; position: relative; padding-left: 1rem; }
.v008-h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 2px; background: var(--v008-primary); }
.v008-h2-center { text-align: center; padding-left: 0; }
.v008-h2-center::before { display: none; }
.v008-subtitle { color: var(--v008-muted); margin-bottom: 1.4rem; }

/* ---------- Category chips ---------- */
.v008-chips { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.6rem 0; margin: 0 -1.2rem; padding-left: 1.2rem; padding-right: 1.2rem; scrollbar-width: none; }
.v008-chips::-webkit-scrollbar { display: none; }
.v008-chip { flex: 0 0 auto; padding: 0.5rem 1.1rem; border-radius: 999px; background: var(--v008-light); color: var(--v008-dark); font-size: 1.3rem; font-weight: 600; border: 1px solid var(--v008-lighter); cursor: pointer; white-space: nowrap; }
.v008-chip.v008-chip-active, .v008-chip.active { background: var(--v008-primary); color: #fff; border-color: var(--v008-primary); }

/* ---------- Game grid ---------- */
.v008-game-block { margin-bottom: 1.8rem; }
.v008-grid-games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.v008-game-card { background: #fff; border-radius: var(--v008-radius); padding: 0.5rem; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,0.06); cursor: pointer; transition: transform 0.15s ease; border: 1px solid var(--v008-lighter); }
.v008-game-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255,127,80,0.18); }
.v008-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; margin-bottom: 0.4rem; }
.v008-game-card .v008-game-name { font-size: 1.1rem; color: var(--v008-dark); font-weight: 600; line-height: 1.3; height: 2.8em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.v008-cat-title { display: flex; align-items: center; gap: 0.6rem; color: var(--v008-dark); font-size: 1.6rem; font-weight: 700; margin: 1.2rem 0 0.8rem; }
.v008-cat-title i, .v008-cat-title ion-icon, .v008-cat-title .material-icons { color: var(--v008-primary); }

/* ---------- Cards ---------- */
.v008-card { background: #fff; border-radius: var(--v008-radius-lg); padding: 1.4rem; box-shadow: var(--v008-shadow); margin-bottom: 1.2rem; }
.v008-card-title { color: var(--v008-dark); font-size: 1.7rem; margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.6rem; }
.v008-card-title i, .v008-card-title ion-icon, .v008-card-title .material-icons { color: var(--v008-primary); }
.v008-card p { color: var(--v008-muted); font-size: 1.4rem; }
.v008-feature-row { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.v008-feature-row i, .v008-feature-row ion-icon, .v008-feature-row .material-icons { color: var(--v008-primary); font-size: 2rem; flex: 0 0 auto; }

/* ---------- Steps ---------- */
.v008-steps { counter-reset: step; padding: 0; list-style: none; }
.v008-steps li { position: relative; padding: 0 0 1.2rem 2.8rem; border-left: 2px solid var(--v008-light); margin-left: 1rem; }
.v008-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: -1.4rem; top: -0.2rem; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--v008-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.4rem; }
.v008-steps li:last-child { border-color: transparent; }

/* ---------- FAQ ---------- */
.v008-faq { background: #fff; border-radius: var(--v008-radius); margin-bottom: 0.7rem; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.04); border: 1px solid var(--v008-lighter); }
.v008-faq-head { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; padding: 1rem 1.2rem; cursor: pointer; font-weight: 700; color: var(--v008-dark); font-size: 1.4rem; }
.v008-faq-head .v008-faq-icon { transition: transform 0.2s ease; color: var(--v008-primary); }
.v008-faq-body { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; padding: 0 1.2rem; color: var(--v008-muted); font-size: 1.35rem; }
.v008-faq.v008-faq-open .v008-faq-body { max-height: 400px; padding-bottom: 1rem; }
.v008-faq.v008-faq-open .v008-faq-icon { transform: rotate(45deg); }

/* ---------- Stats ---------- */
.v008-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.v008-stat { background: #fff; padding: 1rem; border-radius: var(--v008-radius); text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.v008-stat .v008-stat-num { display: block; font-size: 1.8rem; font-weight: 800; color: var(--v008-primary); }
.v008-stat .v008-stat-label { font-size: 1.2rem; color: var(--v008-muted); }

/* ---------- Testimonials ---------- */
.v008-testi { background: #fff; border-radius: var(--v008-radius); padding: 1rem; box-shadow: 0 1px 4px rgba(0,0,0,0.06); margin-bottom: 0.7rem; }
.v008-testi-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.v008-testi-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--v008-primary), var(--v008-gold)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.v008-testi-name { font-weight: 700; color: var(--v008-dark); font-size: 1.3rem; }
.v008-testi-stars { color: var(--v008-gold); font-size: 1.2rem; }
.v008-testi p { margin: 0; color: var(--v008-muted); font-size: 1.3rem; }

/* ---------- Payment ---------- */
.v008-pay-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.v008-pay { background: #fff; border-radius: 8px; padding: 0.6rem; text-align: center; font-size: 1.1rem; color: var(--v008-dark); box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.v008-pay i, .v008-pay ion-icon, .v008-pay .material-icons { font-size: 2.2rem; color: var(--v008-primary); display: block; margin-bottom: 0.2rem; }

/* ---------- Winners ticker ---------- */
.v008-winner-row { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.4rem 0; scrollbar-width: none; }
.v008-winner-row::-webkit-scrollbar { display: none; }
.v008-winner { flex: 0 0 auto; background: #fff; border-radius: var(--v008-radius); padding: 0.6rem 0.9rem; min-width: 180px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.v008-winner .v008-winner-name { font-weight: 700; color: var(--v008-dark); font-size: 1.2rem; }
.v008-winner .v008-winner-game { color: var(--v008-muted); font-size: 1.1rem; }
.v008-winner .v008-winner-amt { color: var(--v008-red); font-weight: 700; font-size: 1.3rem; }

/* ---------- App download CTA ---------- */
.v008-app-cta { background: linear-gradient(135deg, var(--v008-dark), #555); color: #fff; border-radius: var(--v008-radius-lg); padding: 1.6rem; display: flex; align-items: center; gap: 1rem; }
.v008-app-cta .v008-app-icon { font-size: 3rem; color: var(--v008-primary); }
.v008-app-cta h3 { color: #fff; }
.v008-app-cta p { color: var(--v008-silver); margin: 0; }
.v008-app-btns { display: flex; gap: 0.6rem; margin-top: 0.8rem; }

/* ---------- Inline promo link ---------- */
.v008-promo-link { color: var(--v008-primary-dark); font-weight: 700; text-decoration: underline; cursor: pointer; }
.v008-promo-pill { display: inline-block; background: var(--v008-red); color: #fff; padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 1.1rem; font-weight: 700; margin-left: 0.4rem; }

/* ---------- Promo banner grid ---------- */
.v008-banner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.v008-banner { background: linear-gradient(135deg, var(--v008-primary), var(--v008-gold)); color: #fff; border-radius: var(--v008-radius); padding: 1rem; min-height: 90px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; }
.v008-banner h4 { color: #fff; margin: 0; font-size: 1.3rem; }
.v008-banner span { font-size: 1.1rem; opacity: 0.9; }
.v008-banner.alt { background: linear-gradient(135deg, var(--v008-dark), #555); }

/* ---------- Footer ---------- */
.v008-footer { background: var(--v008-dark); color: var(--v008-silver); padding: 2rem 1.2rem; }
.v008-footer h4 { color: #fff; margin-bottom: 0.6rem; font-size: 1.4rem; }
.v008-footer p { color: var(--v008-silver); font-size: 1.25rem; }
.v008-footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin: 1rem 0; }
.v008-footer-links a { color: var(--v008-silver); font-size: 1.2rem; }
.v008-footer-links a:hover { color: var(--v008-primary); }
.v008-footer-promos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0 1.4rem; }
.v008-footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1rem; font-size: 1.15rem; text-align: center; }

/* ---------- Bottom navigation ---------- */
.v008-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--v008-bottom-h);
  background: linear-gradient(180deg, #ffffff, #f1f2f4);
  border-top: 1px solid var(--v008-lighter);
  box-shadow: 0 -3px 12px rgba(0,0,0,0.08);
  display: flex; justify-content: space-around; align-items: stretch;
}
.v008-bottom-nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--v008-muted); text-decoration: none; cursor: pointer;
  background: transparent; border: 0; font-size: 1rem; font-weight: 600;
  transition: color 0.15s ease, transform 0.15s ease;
  min-width: 60px; min-height: 60px;
}
.v008-bottom-nav-btn:active { transform: scale(0.92); }
.v008-bottom-nav-btn i, .v008-bottom-nav-btn ion-icon, .v008-bottom-nav-btn .material-icons { font-size: 22px; color: var(--v008-dark); }
.v008-bottom-nav-btn.v008-bottom-nav-active { color: var(--v008-primary-dark); }
.v008-bottom-nav-btn.v008-bottom-nav-active i,
.v008-bottom-nav-btn.v008-bottom-nav-active ion-icon,
.v008-bottom-nav-btn.v008-bottom-nav-active .material-icons { color: var(--v008-primary); }
.v008-bottom-nav-btn.v008-nav-cta { background: var(--v008-primary); color: #fff; }
.v008-bottom-nav-btn.v008-nav-cta i, .v008-bottom-nav-btn.v008-nav-cta span,
.v008-bottom-nav-btn.v008-nav-cta ion-icon { color: #fff; }
.v008-nav-badge { position: absolute; top: 4px; right: 50%; transform: translateX(20px); background: var(--v008-red); color: #fff; border-radius: 999px; font-size: 0.9rem; padding: 0 5px; min-width: 16px; height: 16px; line-height: 16px; }

/* ---------- Back to top ---------- */
.v008-top-btn { position: fixed; right: 12px; bottom: calc(var(--v008-bottom-h) + 14px); z-index: 900; background: var(--v008-primary); color: #fff; border: 0; border-radius: 50%; width: 40px; height: 40px; font-size: 1.8rem; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.18); display: none; }
@media (max-width: 768px) { .v008-top-btn { display: block; } }

/* ---------- Mobile bottom padding clearance ---------- */
@media (max-width: 768px) {
  .v008-wrapper { padding-bottom: calc(var(--v008-bottom-h) + 10px); }
  main { padding-bottom: 80px; }
}

/* ---------- Desktop layout ---------- */
@media (min-width: 769px) {
  body { background: #ececec; }
  .v008-wrapper { max-width: 1024px; box-shadow: 0 0 24px rgba(0,0,0,0.1); }
  .v008-grid-games { grid-template-columns: repeat(5, 1fr); }
  .v008-pay-row { grid-template-columns: repeat(6, 1fr); }
  .v008-banner-grid { grid-template-columns: repeat(3, 1fr); }
  .v008-bottom-nav { display: none; }
  .v008-desktop-nav { display: flex !important; gap: 1.2rem; align-items: center; }
  .v008-desktop-nav a { color: #fff; font-weight: 600; font-size: 1.3rem; }
  .v008-menu-btn { display: none; }
}
.v008-desktop-nav { display: none; }

/* ---------- Utility ---------- */
.v008-text-center { text-align: center; }
.v008-text-primary { color: var(--v008-primary); }
.v008-text-red { color: var(--v008-red); font-weight: 700; }
.v008-mt-1 { margin-top: 0.6rem; }
.v008-mt-2 { margin-top: 1.2rem; }
.v008-mb-0 { margin-bottom: 0; }
.v008-hidden { display: none !important; }
.v008-divider { height: 1px; background: var(--v008-lighter); margin: 1.2rem 0; border: 0; }
