/* ===========================================================
 * 789 bet apk - theme-3055.css
 * Global stylesheet for 789betapk.cfd
 * All classes use prefix "g55d-"
 * Palette: #262626 | #6C757D | #9370DB | #BA55D3 + accents
 * Mobile-first, max-width 430px, root font 62.5% (1rem=10px)
 * =========================================================== */

:root {
  --g55d-bg: #262626;
  --g55d-bg-soft: #2e2e2e;
  --g55d-bg-card: #333236;
  --g55d-muted: #6C757D;
  --g55d-primary: #9370DB;
  --g55d-secondary: #BA55D3;
  --g55d-text: #f4f1f7;
  --g55d-text-soft: #cfc6da;
  --g55d-gold: #FFD24A;
  --g55d-green: #3ad29f;
  --g55d-red: #ff6b6b;
  --g55d-border: rgba(186, 85, 211, 0.28);
  --g55d-radius: 14px;
  --g55d-header-h: 56px;
  --g55d-bottomnav-h: 62px;
}

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

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

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--g55d-bg);
  color: var(--g55d-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.g55d-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.g55d-wrapper { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 1.2rem; }

/* ---------- Header ---------- */
.g55d-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--g55d-header-h);
  z-index: 1000;
  background: linear-gradient(90deg, #1f1d22 0%, #2b2233 100%);
  border-bottom: 1px solid var(--g55d-border);
}
.g55d-header-inner {
  max-width: 430px; margin: 0 auto;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem;
}
.g55d-logo { display: flex; align-items: center; gap: .6rem; }
.g55d-logo img { width: 28px; height: 28px; border-radius: 6px; }
.g55d-logo-text { font-weight: 800; font-size: 1.5rem; color: var(--g55d-text); letter-spacing: .3px; }
.g55d-logo-text span { color: var(--g55d-secondary); }
.g55d-header-actions { display: flex; align-items: center; gap: .5rem; }
.g55d-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 34px; padding: 0 1.1rem;
  border: none; border-radius: 20px;
  font-size: 1.3rem; font-weight: 700;
  cursor: pointer; touch-action: manipulation;
  transition: transform .15s, opacity .15s, background .15s;
}
.g55d-btn:active { transform: scale(.94); }
.g55d-btn-login {
  background: transparent; color: var(--g55d-primary);
  border: 1px solid var(--g55d-primary);
}
.g55d-btn-register {
  background: linear-gradient(90deg, var(--g55d-secondary), var(--g55d-primary));
  color: #fff; box-shadow: 0 2px 8px rgba(186,85,211,.45);
}
.g55d-menu-toggle {
  background: transparent; border: none; color: var(--g55d-text);
  font-size: 1.9rem; cursor: pointer; padding: .3rem; line-height: 1;
}

/* ---------- Mobile Menu Drawer ---------- */
.g55d-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 900; opacity: 0; visibility: hidden; transition: opacity .25s;
}
.g55d-overlay-show { opacity: 1; visibility: visible; }
.g55d-mobile-menu {
  position: fixed; top: 0; right: -80%; width: 78%; max-width: 340px;
  height: 100%; z-index: 9999;
  background: #2a232f; padding: 1.6rem 1.2rem;
  transform: translateX(0); transition: transform .28s ease;
  overflow-y: auto;
}
.g55d-mobile-menu { right: -80%; }
.g55d-menu-open { transform: translateX(-100%); }
.g55d-menu-close { font-size: 2.2rem; color: var(--g55d-text); background: transparent; border: none; cursor: pointer; float: right; }
.g55d-menu-title { font-size: 1.4rem; color: var(--g55d-muted); margin: 1.2rem 0 .8rem; text-transform: uppercase; letter-spacing: .5px; }
.g55d-menu-link { display: block; padding: .85rem .8rem; color: var(--g55d-text-soft); font-weight: 600; border-radius: 8px; }
.g55d-menu-link:hover, .g55d-menu-link:active { background: var(--g55d-bg-card); color: #fff; }

/* ---------- Main / sections ---------- */
.g55d-main { padding-top: var(--g55d-header-h); padding-bottom: 0; }
@media (max-width: 768px) {
  .g55d-main { padding-bottom: 80px; }
}

.g55d-section { padding: 2rem 1.2rem; }
.g55d-section-title {
  font-size: 1.9rem; font-weight: 800; margin-bottom: .6rem;
  color: #fff; position: relative; padding-left: 1rem;
}
.g55d-section-title::before {
  content: ''; position: absolute; left: 0; top: .45rem; bottom: .45rem;
  width: 4px; background: linear-gradient(var(--g55d-primary), var(--g55d-secondary)); border-radius: 2px;
}
.g55d-section-sub { font-size: 1.3rem; color: var(--g55d-muted); margin-bottom: 1.2rem; }

/* ---------- Hero Carousel ---------- */
.g55d-hero { position: relative; margin: 1rem 1.2rem 1.5rem; border-radius: var(--g55d-radius); overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.g55d-slider { position: relative; width: 100%; aspect-ratio: 16/9; background: #1c1a1f; }
.g55d-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .5s;
  display: flex; align-items: flex-end; padding: 1rem;
}
.g55d-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.g55d-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(0,0,0,.78)); z-index: 1; }
.g55d-slide-content { position: relative; z-index: 2; width: 100%; }
.g55d-slide-title { font-size: 1.7rem; font-weight: 800; color: #fff; margin-bottom: .25rem; }
.g55d-slide-desc { font-size: 1.25rem; color: var(--g55d-text-soft); margin-bottom: .5rem; }
.g55d-slide-btn { display: inline-block; padding: .5rem 1.2rem; background: linear-gradient(90deg, var(--g55d-secondary), var(--g55d-primary)); border-radius: 18px; color: #fff; font-weight: 700; font-size: 1.2rem; }
.g55d-slide-active { opacity: 1; }
.g55d-slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(0,0,0,.4); color: #fff; font-size: 1.8rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.g55d-slider-arrow.g55d-prev { left: 6px; }
.g55d-slider-arrow.g55d-next { right: 6px; }
.g55d-slider-dots { position: absolute; bottom: 10px; left: 0; right: 0; z-index: 3; text-align: center; }
.g55d-slider-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); margin: 0 4px; border: none; padding: 0; cursor: pointer; }
.g55d-dot-active { background: var(--g55d-secondary); width: 22px; border-radius: 4px; }

/* ---------- H1 / Intro ---------- */
.g55d-h1 { font-size: 2.2rem; font-weight: 900; line-height: 1.35; color: #fff; margin: .8rem 1.2rem .4rem; }
.g55d-intro { font-size: 1.35rem; color: var(--g55d-text-soft); margin: .4rem 1.2rem 1rem; }
.g55d-intro b { color: var(--g55d-secondary); }
.g55d-aff-text { color: var(--g55d-gold); font-weight: 800; cursor: pointer; }

/* ---------- Game grid ---------- */
.g55d-cat-block { margin-bottom: 2rem; }
.g55d-cat-header { display: flex; align-items: center; justify-content: space-between; margin: 0 1.2rem .8rem; }
.g55d-cat-name { font-size: 1.6rem; font-weight: 800; color: #fff; display: flex; align-items: center; gap: .5rem; }
.g55d-cat-name i { font-size: 1.7rem; color: var(--g55d-secondary); }
.g55d-cat-count { font-size: 1.15rem; color: var(--g55d-muted); background: var(--g55d-bg-card); padding: .2rem .6rem; border-radius: 10px; }
.g55d-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem .5rem;
  padding: 0 1.2rem;
}
.g55d-game {
  cursor: pointer; border-radius: 10px; overflow: hidden;
  background: var(--g55d-bg-card); border: 1px solid transparent;
  transition: transform .15s, border-color .15s;
  text-align: center;
}
.g55d-game:active { transform: scale(.93); border-color: var(--g55d-primary); }
.g55d-game img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #2a2533; }
.g55d-game-name { font-size: 1.02rem; color: var(--g55d-text-soft); padding: .4rem .2rem .45rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }

/* ---------- Cards / feature ---------- */
.g55d-card {
  background: var(--g55d-bg-soft); border: 1px solid var(--g55d-border);
  border-radius: var(--g55d-radius); padding: 1.3rem; margin-bottom: 1rem;
}
.g55d-card-title { font-size: 1.5rem; font-weight: 800; margin-bottom: .6rem; color: #fff; }
.g55d-card p { font-size: 1.3rem; color: var(--g55d-text-soft); margin-bottom: .5rem; }
.g55d-card p b, .g55d-card p strong { color: var(--g55d-secondary); }

.g55d-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.g55d-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.g55d-mini { background: var(--g55d-bg-card); border-radius: 12px; padding: 1.2rem .8rem; text-align: center; border: 1px solid var(--g55d-border); }
.g55d-mini i { font-size: 2.6rem; color: var(--g55d-primary); margin-bottom: .4rem; display: block; }
.g55d-mini .material-icons, .g55d-mini .icon { font-size: 2.6rem; }
.g55d-mini-title { font-size: 1.35rem; font-weight: 700; color: #fff; }
.g55d-mini-desc { font-size: 1.1rem; color: var(--g55d-muted); margin-top: .2rem; }

/* ---------- RTP table ---------- */
.g55d-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.25rem; margin-top: .6rem; }
.g55d-rtp-table th, .g55d-rtp-table td { border-bottom: 1px solid var(--g55d-border); padding: .65rem .4rem; text-align: left; }
.g55d-rtp-table th { color: var(--g55d-primary); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .4px; }
.g55d-rtp-table td { color: var(--g55d-text-soft); }
.g55d-rtp-table td:last-child { color: var(--g55d-gold); font-weight: 700; }

/* ---------- CTA banner ---------- */
.g55d-cta {
  background: linear-gradient(105deg, #382040 0%, #6c3a8a 60%, #BA55D3 100%);
  border-radius: var(--g55d-radius); padding: 1.8rem 1.4rem; text-align: center; margin: 1.4rem 1.2rem;
  box-shadow: 0 6px 18px rgba(186,85,211,.35);
}
.g55d-cta h3 { font-size: 1.9rem; font-weight: 900; margin-bottom: .4rem; color: #fff; }
.g55d-cta p { font-size: 1.3rem; color: #f3e9ff; margin-bottom: 1rem; }
.g55d-cta-btn {
  display: inline-block; padding: .9rem 2.2rem; border-radius: 24px;
  background: #fff; color: var(--g55d-secondary); font-weight: 800; font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

/* ---------- Steps ---------- */
.g55d-steps { list-style: none; counter-reset: step; padding: 0; }
.g55d-steps li { position: relative; padding: .6rem 0 .6rem 3.2rem; counter-increment: step; }
.g55d-steps li::before {
  content: counter(step); position: absolute; left: 0; top: .4rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--g55d-secondary), var(--g55d-primary));
  color: #fff; font-weight: 800; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Testimonials ---------- */
.g55d-testimonial { background: var(--g55d-bg-soft); border-left: 3px solid var(--g55d-secondary); border-radius: 10px; padding: 1rem 1.1rem; margin-bottom: .8rem; }
.g55d-testimonial p { font-size: 1.25rem; color: var(--g55d-text-soft); font-style: italic; margin-bottom: .4rem; }
.g55d-testimonial-name { font-size: 1.15rem; color: var(--g55d-gold); font-weight: 700; }
.g55d-stars { color: var(--g55d-gold); font-size: 1.3rem; letter-spacing: 2px; }

/* ---------- Winners / Payments ---------- */
.g55d-winner { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; background: var(--g55d-bg-card); border-radius: 10px; margin-bottom: .6rem; }
.g55d-winner-amount { margin-left: auto; color: var(--g55d-green); font-weight: 800; font-size: 1.3rem; }
.g55d-winner-name { font-weight: 700; color: #fff; font-size: 1.25rem; }
.g55d-winner-game { font-size: 1.1rem; color: var(--g55d-muted); }

.g55d-pay-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.g55d-pay-item { background: var(--g55d-bg-card); border: 1px solid var(--g55d-border); border-radius: 10px; padding: .8rem 1rem; font-size: 1.2rem; color: var(--g55d-text-soft); display: flex; align-items: center; gap: .5rem; min-width: 100px; }
.g55d-pay-item i { color: var(--g55d-primary); font-size: 1.6rem; }

/* ---------- App download banner ---------- */
.g55d-app-banner { display: flex; align-items: center; gap: 1rem; padding: 1.3rem; background: linear-gradient(120deg, #2a1f3a, #4a2261); border-radius: var(--g55d-radius); margin: 1.2rem; }
.g55d-app-banner img { width: 92px; height: 92px; border-radius: 14px; background: #2a2533; }
.g55d-app-banner h3 { font-size: 1.6rem; color: #fff; font-weight: 800; }
.g55d-app-banner p { font-size: 1.2rem; color: var(--g55d-text-soft); margin: .3rem 0 .6rem; }
.g55d-app-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.g55d-app-btn { background: #fff; color: #2a1f3a; padding: .5rem 1rem; border-radius: 20px; font-weight: 700; font-size: 1.2rem; }

/* ---------- FAQ ---------- */
.g55d-faq { border-bottom: 1px solid var(--g55d-border); padding: 1rem 0; }
.g55d-faq summary { font-size: 1.4rem; font-weight: 700; color: #fff; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; padding: .2rem 0; }
.g55d-faq summary::-webkit-details-marker { display: none; }
.g55d-faq summary::after { content: '+'; font-size: 1.8rem; color: var(--g55d-secondary); font-weight: 800; }
.g55d-faq[open] summary::after { content: '−'; }
.g55d-faq-answer { padding-top: .6rem; font-size: 1.25rem; color: var(--g55d-text-soft); }

/* ---------- Footer ---------- */
.g55d-footer { background: #1c1a1f; padding: 2rem 1.2rem 1.5rem; border-top: 1px solid var(--g55d-border); }
.g55d-footer-brand { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: .6rem; }
.g55d-footer-brand span { color: var(--g55d-secondary); }
.g55d-footer-intro { font-size: 1.15rem; color: var(--g55d-muted); margin-bottom: 1rem; }
.g55d-footer-links { display: flex; flex-wrap: wrap; gap: .5rem .8rem; margin-bottom: 1rem; }
.g55d-footer-links a { font-size: 1.15rem; color: var(--g55d-text-soft); padding: .3rem .6rem; border-radius: 8px; }
.g55d-footer-links a:hover { color: var(--g55d-secondary); }
.g55d-footer-promo { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.g55d-promo-btn { padding: .55rem 1.1rem; border-radius: 18px; background: linear-gradient(90deg, var(--g55d-secondary), var(--g55d-primary)); color: #fff; font-weight: 700; font-size: 1.2rem; cursor: pointer; border: none; }
.g55d-partner-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.g55d-partner-chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 30px; padding: .45rem .8rem; border-radius: 12px; background: var(--g55d-bg-card); border: 1px solid var(--g55d-border); color: var(--g55d-text-soft); font-size: 1.1rem; font-weight: 700; }
.g55d-partner-chip i, .g55d-partner-chip .material-icons { color: var(--g55d-gold); font-size: 1.5rem; }
.g55d-copyright { font-size: 1.1rem; color: var(--g55d-muted); border-top: 1px solid var(--g55d-border); padding-top: 1rem; text-align: center; }

/* ---------- Bottom mobile nav ---------- */
.g55d-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--g55d-bottomnav-h);
  background: linear-gradient(90deg, #201d24, #2b1f33);
  border-top: 1px solid var(--g55d-border);
  display: flex; justify-content: space-around; align-items: stretch;
  z-index: 1000;
}
.g55d-bottomnav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--g55d-text-soft); cursor: pointer;
  transition: color .2s, transform .15s; position: relative;
}
.g55d-bottomnav-btn i { font-size: 22px; }
.g55d-bottomnav-btn .material-icons { font-size: 24px; }
.g55d-bottomnav-btn .bi { font-size: 22px; }
.g55d-bottomnav-btn span { font-size: 1rem; font-weight: 600; }
.g55d-bottomnav-btn:active { transform: scale(.9); }
.g55d-bottomnav-btn.active { color: var(--g55d-secondary); }
.g55d-bottomnav-btn.active::before {
  content: ''; position: absolute; top: 0; width: 28px; height: 3px;
  background: var(--g55d-secondary); border-radius: 0 0 4px 4px;
}
.g55d-bottomnav-btn.g55d-promo { color: var(--g55d-gold); }
.g55d-bottomnav-btn.g55d-promo span { color: var(--g55d-gold); }

/* ---------- Back to top ---------- */
.g55d-back-top {
  position: fixed; right: 14px; bottom: 76px; z-index: 900;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--g55d-secondary); color: #fff; border: none;
  font-size: 2rem; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  box-shadow: 0 4px 12px rgba(0,0,0,.4); cursor: pointer;
}
.g55d-visible { opacity: 1; visibility: visible; }

/* ---------- Desktop: hide bottom nav, expand width ---------- */
@media (min-width: 769px) {
  .g55d-bottomnav { display: none; }
  body { background: #1a181d; }
  .g55d-header-inner, .g55d-container, .g55d-wrapper { max-width: 960px; }
  .g55d-grid { grid-template-columns: repeat(8, 1fr); }
}

/* ---------- Utility ---------- */
.g55d-text-center { text-align: center; }
.g55d-mt-1 { margin-top: .5rem; }
.g55d-mb-1 { margin-bottom: .5rem; }
.g55d-hidden { display: none !important; }