/* ============================================================
 * 1xbet philippines app - Core Base Stylesheet
 * All custom classes use the "g929-" prefix to avoid clashes.
 * Mobile-first design, max 430px viewport baseline.
 * ============================================================ */

:root {
  --g929-bg: #2C2C2C;
  --g929-bg-deep: #1b1b1b;
  --g929-bg-card: #3a3a3a;
  --g929-bg-elev: #464646;
  --g929-text: #D3D3D3;
  --g929-text-strong: #F2F2F2;
  --g929-accent: #C9C9FF;
  --g929-accent-2: #b3b3ff;
  --g929-blue: #1e3a8a;
  --g929-blue-bright: #3b82f6;
  --g929-green: #16a34a;
  --g929-green-bright: #22c55e;
  --g929-gold: #FFD24a;
  --g929-red: #e23b3b;
  --g929-border: rgba(201, 201, 255, 0.14);
  --g929-radius: 14px;
  --g929-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  --g929-font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--g929-font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--g929-text);
  background:
    radial-gradient(1100px 480px at 100% -10%, rgba(30,58,138,0.40), transparent 60%),
    radial-gradient(900px 420px at -10% 0%, rgba(201,201,255,0.10), transparent 55%),
    linear-gradient(180deg, #232323 0%, var(--g929-bg) 35%, var(--g929-bg-deep) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

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

.g929-wrapper { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 14px; }
.g929-section { padding: 28px 0 12px; }
.g929-hide-desktop { display: block; }

/* ---------- Header ---------- */
.g929-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(90deg, #161616 0%, #1d1d2b 100%);
  border-bottom: 1px solid var(--g929-border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.45);
  transition: background 0.25s ease;
}
.g929-header-scrolled { background: rgba(18,18,26,0.96); }
.g929-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 58px; padding: 0 12px; max-width: 430px; margin: 0 auto;
}
.g929-logo { display: flex; align-items: center; gap: 9px; min-width: 0; }
.g929-logo img { width: 30px; height: 30px; border-radius: 8px; }
.g929-logo-text {
  font-size: 15px; font-weight: 800; color: var(--g929-text-strong);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.g929-logo-text span { color: var(--g929-gold); }
.g929-header-actions { display: flex; align-items: center; gap: 8px; }
.g929-menu-btn {
  background: transparent; border: 0; color: var(--g929-text-strong);
  font-size: 22px; width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.g929-menu-btn:hover { background: rgba(201,201,255,0.10); }

/* ---------- Buttons ---------- */
.g929-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 800; font-size: 13px; padding: 10px 16px;
  text-decoration: none; line-height: 1; transition: transform 0.15s ease, filter 0.2s ease;
  min-height: 40px; text-align: center;
}
.g929-btn:hover { transform: translateY(-1px); filter: brightness(1.08); color: #fff; }
.g929-btn-primary { background: linear-gradient(135deg, var(--g929-gold), #ff9b00); color: #1a1a1a; }
.g929-btn-success { background: linear-gradient(135deg, var(--g929-green-bright), var(--g929-green)); color: #fff; }
.g929-btn-blue { background: linear-gradient(135deg, var(--g929-blue-bright), var(--g929-blue)); color: #fff; }
.g929-btn-ghost { background: rgba(201,201,255,0.10); color: var(--g929-text-strong); border: 1px solid var(--g929-border); }
.g929-btn-block { width: 100%; }
.g929-btn-sm { padding: 7px 12px; font-size: 12px; min-height: 34px; }

/* ---------- Mobile expandable menu ---------- */
.g929-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 9998;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.g929-overlay-show { opacity: 1; pointer-events: auto; }
.g929-mobile-menu {
  position: fixed; top: 0; right: -82%; width: 78%; max-width: 320px; height: 100vh;
  background: linear-gradient(180deg, #1d1d2b, #15151c); z-index: 9999;
  transform: translateX(0); transition: right 0.3s ease; padding: 20px 16px; overflow-y: auto;
}
.g929-menu-open { right: 0; }
.g929-menu-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.g929-menu-title { color: var(--g929-text-strong); font-weight: 800; font-size: 17px; }
.g929-menu-close {
  background: transparent; border: 0; color: var(--g929-text-strong);
  font-size: 22px; width: 38px; height: 38px; cursor: pointer;
}
.g929-menu-list { list-style: none; margin: 0; padding: 0; }
.g929-menu-list li { margin-bottom: 6px; }
.g929-menu-list a {
  display: block; padding: 11px 12px; border-radius: 10px; color: var(--g929-text);
  font-weight: 600; font-size: 14px; background: rgba(255,255,255,0.03);
  border: 1px solid var(--g929-border);
}
.g929-menu-list a:hover { background: rgba(201,201,255,0.12); color: var(--g929-text-strong); }
.g929-menu-list .g929-menu-icon { margin-right: 9px; color: var(--g929-gold); }

/* ---------- Hero / Carousel ---------- */
.g929-main { padding-top: 70px; padding-bottom: 92px; }
.g929-carousel {
  position: relative; border-radius: var(--g929-radius); overflow: hidden;
  box-shadow: var(--g929-shadow); background: #111;
}
.g929-carousel-track { display: flex; transition: transform var(--g929-carousel-transition, 0.48s) ease; }
.g929-carousel-slide {
  position: relative; min-width: 100%; height: 190px; cursor: pointer;
}
.g929-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.g929-carousel-caption {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.78));
  color: #fff; padding: 28px 14px 10px; border-radius: 0 0 var(--g929-radius) var(--g929-radius);
}
.g929-carousel-caption strong { color: var(--g929-gold); font-size: 16px; }
.g929-carousel-dots {
  position: absolute; bottom: 10px; left: 0; right: 0;
  display: flex; gap: 6px; justify-content: center;
}
.g929-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.45); }
.g929-dot-active { background: var(--g929-gold); width: 22px; border-radius: 6px; }

/* ---------- Headings ---------- */
.g929-section-title {
  font-size: 20px; font-weight: 800; color: var(--g929-text-strong);
  margin: 0 0 4px; line-height: 1.3;
}
.g929-section-title .g929-hl { color: var(--g929-gold); }
.g929-section-sub { color: var(--g929-accent); font-size: 13px; margin: 0 0 14px; }
.g929-h1 {
  font-size: 22px; font-weight: 900; color: var(--g929-text-strong);
  line-height: 1.3; margin: 0 0 10px;
}
.g929-h1 .g929-hl { color: var(--g929-gold); display: block; font-size: 14px; font-weight: 700; letter-spacing: 2px; }

/* ---------- Category chips ---------- */
.g929-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.g929-chips::-webkit-scrollbar { display: none; }
.g929-chip {
  background: rgba(201,201,255,0.08); color: var(--g929-text);
  border: 1px solid var(--g929-border); padding: 7px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer;
}
.g929-chip-active { background: linear-gradient(135deg, var(--g929-gold), #ff9b00); color: #1a1a1a; border-color: transparent; }

/* ---------- Game grids ---------- */
.g929-block-head { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 10px; }
.g929-block-head h2 { font-size: 16px; color: var(--g929-text-strong); margin: 0; font-weight: 800; }
.g929-block-head .g929-tag {
  font-size: 11px; color: var(--g929-gold); font-weight: 700;
  background: rgba(255,210,74,0.10); padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(255,210,74,0.25);
}
.g929-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.g929-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.g929-game-card {
  background: var(--g929-bg-card); border: 1px solid var(--g929-border);
  border-radius: 12px; padding: 6px; text-align: center; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  overflow: hidden; display: block; color: var(--g929-text);
}
.g929-game-card:hover {
  transform: translateY(-3px); border-color: var(--g929-gold);
  box-shadow: 0 8px 18px rgba(0,0,0,0.5); color: var(--g929-text);
}
.g929-game-thumb {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 8px; object-fit: cover;
  background: linear-gradient(135deg, #1f1f2b, #2d2d40);
}
.g929-game-name {
  font-size: 11px; font-weight: 600; margin-top: 6px; color: var(--g929-text-strong);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3;
}

/* ---------- Cards / content blocks ---------- */
.g929-card {
  background: linear-gradient(180deg, rgba(58,58,58,0.85), rgba(40,40,40,0.85));
  border: 1px solid var(--g929-border); border-radius: var(--g929-radius);
  padding: 16px; box-shadow: var(--g929-shadow); margin-bottom: 14px;
}
.g929-card h2, .g929-card h3 { color: var(--g929-text-strong); margin: 0 0 8px; line-height: 1.35; }
.g929-card h2 { font-size: 17px; }
.g929-card h3 { font-size: 15px; }
.g929-card p { margin: 0 0 10px; font-size: 13.5px; }
.g929-card ul { padding-left: 18px; margin: 0 0 8px; }
.g929-card li { font-size: 13px; margin-bottom: 6px; }
.g929-card a { color: var(--g929-gold); font-weight: 700; }
.g929-card a:hover { color: var(--g929-accent); }

/* Steps list */
.g929-steps { list-style: none; counter-reset: g929step; padding: 0; margin: 0; }
.g929-steps li {
  counter-increment: g929step; position: relative; padding: 8px 8px 8px 38px; font-size: 13px; margin-bottom: 6px;
  background: rgba(255,255,255,0.03); border-radius: 10px; border: 1px solid var(--g929-border);
}
.g929-steps li::before {
  content: counter(g929step); position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%; background: var(--g929-gold); color: #1a1a1a;
  font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center;
}

/* Feature grid */
.g929-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.g929-feature {
  background: rgba(201,201,255,0.06); border: 1px solid var(--g929-border);
  border-radius: 12px; padding: 12px;
}
.g929-feature .g929-feature-icon { font-size: 22px; color: var(--g929-gold); margin-bottom: 6px; }
.g929-feature h4 { margin: 0 0 4px; color: var(--g929-text-strong); font-size: 13.5px; }
.g929-feature p { margin: 0; font-size: 12px; color: var(--g929-text); line-height: 1.45; }

/* Stat / RTP rows */
.g929-stat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px dashed var(--g929-border); font-size: 13px;
}
.g929-stat-row:last-child { border-bottom: 0; }
.g929-stat-row .g929-stat-name { color: var(--g929-text); }
.g929-stat-row .g929-stat-val { color: var(--g929-green-bright); font-weight: 800; }
.g929-bar { width: 100%; height: 7px; border-radius: 6px; background: rgba(255,255,255,0.10); overflow: hidden; margin-top: 4px; }
.g929-bar-fill { height: 100%; background: linear-gradient(90deg, var(--g929-green-bright), var(--g929-gold)); }

/* Testimonials */
.g929-testimonial {
  background: rgba(201,201,255,0.06); border-left: 3px solid var(--g929-gold);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 8px;
}
.g929-testimonial p { margin: 0 0 6px; font-size: 12.5px; font-style: italic; }
.g929-testimonial .g929-author { font-size: 11px; color: var(--g929-accent); font-weight: 700; }

/* Payment row */
.g929-pay-row { display: flex; flex-wrap: wrap; gap: 8px; }
.g929-pay-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--g929-border);
  border-radius: 10px; font-size: 12px; font-weight: 700; color: var(--g929-text-strong);
}
.g929-pay-chip i { color: var(--g929-gold); }

/* Winners ticker */
.g929-winner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.25);
  border-radius: 10px; margin-bottom: 6px; font-size: 12.5px;
}
.g929-winner .g929-amount { color: var(--g929-green-bright); font-weight: 800; }

/* Promo CTA banner */
.g929-cta-banner {
  background: linear-gradient(135deg, var(--g929-blue), var(--g929-green));
  border-radius: var(--g929-radius); padding: 18px 16px; color: #fff;
  text-align: center; box-shadow: var(--g929-shadow); margin: 16px 0;
}
.g929-cta-banner h3 { margin: 0 0 6px; color: #fff; font-size: 18px; }
.g929-cta-banner p { margin: 0 0 12px; font-size: 13px; color: rgba(255,255,255,0.92); }
.g929-cta-banner .g929-btn { background: var(--g929-gold); color: #1a1a1a; }

/* FAQ */
.g929-faq-item { margin-bottom: 8px; border: 1px solid var(--g929-border); border-radius: 10px; overflow: hidden; background: rgba(255,255,255,0.03); }
.g929-faq-q {
  display: block; width: 100%; text-align: left; padding: 11px 14px; cursor: pointer;
  background: transparent; border: 0; color: var(--g929-text-strong); font-weight: 700; font-size: 13.5px;
}
.g929-faq-a { padding: 0 14px 12px; font-size: 12.5px; color: var(--g929-text); }

/* ---------- Footer ---------- */
.g929-footer {
  background: linear-gradient(180deg, #1b1b22, #111116); border-top: 1px solid var(--g929-border);
  padding: 24px 0 16px; margin-top: 22px;
}
.g929-footer-brand {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.g929-footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.g929-footer-brand strong { color: var(--g929-text-strong); font-size: 15px; }
.g929-footer p { font-size: 12.5px; color: var(--g929-text); margin: 0 0 12px; }
.g929-footer h4 { color: var(--g929-accent); font-size: 13px; margin: 14px 0 8px; text-transform: uppercase; letter-spacing: 1px; }
.g929-footer-links {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-bottom: 14px;
}
.g929-footer-links a { font-size: 12px; color: var(--g929-text); }
.g929-footer-links a:hover { color: var(--g929-gold); }
.g929-footer-promos { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.g929-footer-promos .g929-btn { flex: 1 1 auto; }
.g929-footer-copy {
  text-align: center; font-size: 11px; color: rgba(211,211,211,0.65);
  border-top: 1px solid var(--g929-border); padding-top: 12px;
}

/* ---------- Mobile bottom navigation ---------- */
.g929-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: 62px; display: flex; justify-content: space-around; align-items: stretch;
  background: linear-gradient(180deg, #1d1d2b, #121219);
  border-top: 1px solid var(--g929-border);
  box-shadow: 0 -4px 14px rgba(0,0,0,0.55);
}
.g929-bottom-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px; background: transparent; border: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--g929-text); cursor: pointer; padding: 4px 2px; position: relative;
  transition: color 0.18s ease, transform 0.18s ease;
}
.g929-bottom-nav-btn i, .g929-bottom-nav-btn .material-icons-outlined,
.g929-bottom-nav-btn .ion { font-size: 22px; line-height: 1; }
.g929-bottom-nav-btn span { font-size: 10px; font-weight: 700; letter-spacing: 0.2px; }
.g929-bottom-nav-btn:hover { color: var(--g929-text-strong); transform: translateY(-1px); }
.g929-bottom-nav-btn:active { transform: scale(0.94); }
.g929-nav-active { color: var(--g929-gold); }
.g929-nav-active::after {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; border-radius: 0 0 4px 4px; background: var(--g929-gold);
}
.g929-nav-badge {
  position: absolute; top: 4px; right: 16px; min-width: 15px; height: 15px; padding: 0 4px;
  background: var(--g929-red); color: #fff; font-size: 9px; font-weight: 800;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
}

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

/* ---------- Desktop / tablet rules ---------- */
@media (min-width: 769px) {
  .g929-bottom-nav { display: none; }
  .g929-wrapper { max-width: 960px; }
  .g929-grid { grid-template-columns: repeat(6, 1fr); }
  .g929-grid-4 { grid-template-columns: repeat(8, 1fr); }
  .g929-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .g929-footer-links { grid-template-columns: repeat(3, 1fr); }
  .g929-main { padding-bottom: 30px; }
  .g929-carousel-slide { height: 320px; }
}
@media (max-width: 768px) {
  .g929-main { padding-bottom: 86px; }
}
