/*!
 * melbet affiliate - layout stylesheet (prefix: pg87-)
 * Mobile-first HTML5 design tuned for screens up to max-width: 430px.
 */
:root {
  --pg87-primary: #191970;
  --pg87-secondary: #34495E;
  --pg87-accent: #87CEFA;
  --pg87-surface: #FAFAFA;
  --pg87-gold: #FFDFBA;
  --pg87-dark: #2C3E50;
  --pg87-text: #FAFAFA;
  --pg87-muted: #b8c4d6;
  --pg87-radius: 14px;
  --pg87-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  --pg87-header-h: 58px;
  --pg87-bottom-h: 62px;
}

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

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

body {
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, sans-serif;
  background: linear-gradient(160deg, var(--pg87-primary) 0%, var(--pg87-dark) 60%, var(--pg87-secondary) 100%);
  color: var(--pg87-text);
  line-height: 1.5;
  font-size: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--pg87-accent); text-decoration: none; }

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

main.pg87-main { padding-bottom: 84px; padding-top: 16px; }

/* ===== Header ===== */
.pg87-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(25, 25, 112, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(135, 206, 250, 0.25);
  box-shadow: var(--pg87-shadow);
}
.pg87-header__inner {
  max-width: 430px;
  margin: 0 auto;
  height: var(--pg87-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  gap: 8px;
}
.pg87-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pg87-brand__logo { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.pg87-brand__name {
  font-size: 1.5rem; font-weight: 700; color: var(--pg87-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pg87-brand__name b { color: var(--pg87-gold); }

.pg87-header__cta { display: flex; align-items: center; gap: 8px; }

.pg87-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: none; cursor: pointer;
  font-family: inherit; font-weight: 700;
  border-radius: 999px; padding: 8px 14px; font-size: 1.3rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  min-height: 36px; line-height: 1;
}
.pg87-btn:active { transform: scale(0.95); }
.pg87-btn--register { background: linear-gradient(135deg, #FFDFBA, #f5a623); color: #2C3E50; box-shadow: 0 3px 10px rgba(245,166,35,.45); }
.pg87-btn--login { background: var(--pg87-accent); color: var(--pg87-primary); }
.pg87-btn--block { display: flex; width: 100%; justify-content: center; padding: 12px; font-size: 1.5rem; }
.pg87-btn--promo { background: linear-gradient(135deg, #FFDFBA, #f5a623); color: #2C3E50; }

.pg87-menu-btn {
  background: transparent; border: 0; color: var(--pg87-text);
  font-size: 2rem; cursor: pointer; padding: 4px 8px;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 40px;
}

/* ===== Expandable nav ===== */
.pg87-nav {
  position: absolute; top: var(--pg87-header-h); left: 0; right: 0;
  background: rgba(44, 62, 80, 0.98);
  max-height: 0; overflow: hidden;
  transition: max-height .28s ease;
  z-index: 9999;
}
.pg87-nav-open { max-height: 480px; box-shadow: var(--pg87-shadow); }
.pg87-nav__list { list-style: none; padding: 6px 10px 14px; }
.pg87-nav__list li a {
  display: block; padding: 12px 14px; color: var(--pg87-text);
  font-size: 1.4rem; border-radius: 10px;
  border-left: 3px solid transparent;
}
.pg87-nav__list li a:hover, .pg87-nav__list li a:active {
  background: rgba(135, 206, 250, 0.12);
  border-left-color: var(--pg87-accent);
}

/* ===== Hero carousel ===== */
.pg87-hero { padding: 10px 12px 6px; }
.pg87-carousel {
  position: relative;
  border-radius: var(--pg87-radius);
  overflow: hidden;
  box-shadow: var(--pg87-shadow);
  background: var(--pg87-dark);
}
.pg87-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease;
  cursor: pointer;
}
.pg87-slide-active { position: relative; opacity: 1; }
.pg87-slide img { width: 100%; height: 180px; object-fit: cover; }
.pg87-slide__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(25,25,112,.85));
  font-size: 1.35rem; font-weight: 700; color: var(--pg87-gold);
}
.pg87-dots {
  position: absolute; bottom: 8px; right: 12px;
  display: flex; gap: 5px; z-index: 4;
}
.pg87-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(250,250,250,.5); cursor: pointer; border: 0; padding: 0;
}
.pg87-dot-active { background: var(--pg87-gold); }

/* ===== Section frame ===== */
.pg87-section {
  margin: 18px 10px;
  background: rgba(250, 250, 250, 0.06);
  border: 1px solid rgba(135, 206, 250, 0.18);
  border-radius: var(--pg87-radius);
  padding: 14px;
}
.pg87-section__title {
  font-size: 1.7rem; font-weight: 700; color: var(--pg87-gold);
  margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.pg87-section__title i, .pg87-section__title span.material-icons {
  font-size: 22px; color: var(--pg87-accent);
}

.pg87-h1 {
  font-size: 2rem; font-weight: 800; line-height: 1.3;
  color: var(--pg87-text); padding: 4px 14px;
}
.pg87-h1 b { color: var(--pg87-gold); }
.pg87-lead { padding: 6px 14px; color: var(--pg87-muted); font-size: 1.4rem; }

/* ===== Game grid ===== */
.pg87-cat-title {
  font-size: 1.55rem; font-weight: 700; color: var(--pg87-accent);
  margin: 16px 14px 6px; padding-bottom: 4px;
  border-bottom: 1px dashed rgba(135,206,250,.3);
}
.pg87-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 4px 10px;
}
.pg87-game {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(250,250,250,.05);
  border-radius: 12px; padding: 6px;
  cursor: pointer; text-align: center;
  transition: transform .15s ease, background .2s ease;
  min-height: 44px;
}
.pg87-game:hover, .pg87-game:active { transform: translateY(-2px); background: rgba(135,206,250,.12); }
.pg87-game__img {
  width: 100%; height: 78px; object-fit: cover;
  border-radius: 8px; margin-bottom: 4px;
  border: 1px solid rgba(135,206,250,.2);
}
.pg87-game__name {
  font-size: 1.15rem; color: var(--pg87-text); font-weight: 600;
  line-height: 1.2; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* ===== Cards / generic ===== */
.pg87-card {
  background: rgba(250,250,250,.06);
  border-radius: 12px; padding: 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(135,206,250,.15);
}
.pg87-card h3 { font-size: 1.45rem; color: var(--pg87-gold); margin-bottom: 6px; }
.pg87-card p { font-size: 1.35rem; color: var(--pg87-muted); }

.pg87-feature-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.pg87-feature {
  background: rgba(25,25,112,.35);
  border-radius: 10px; padding: 10px; text-align: center;
}
.pg87-feature i, .pg87-feature span.material-icons { font-size: 26px; color: var(--pg87-accent); }
.pg87-feature b { display: block; font-size: 1.3rem; margin-top: 4px; color: var(--pg87-text); }
.pg87-feature span.pg87-feature__desc { font-size: 1.15rem; color: var(--pg87-muted); }

.pg87-list { padding-left: 18px; }
.pg87-list li { font-size: 1.35rem; color: var(--pg87-muted); margin-bottom: 4px; }

.pg87-faq dt { font-weight: 700; color: var(--pg87-gold); font-size: 1.4rem; margin-top: 8px; }
.pg87-faq dd { color: var(--pg87-muted); font-size: 1.3rem; margin: 4px 0 8px; }

/* ===== Testimonials ===== */
.pg87-testimonial {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(250,250,250,.05); border-radius: 10px; padding: 10px;
  margin-bottom: 8px;
}
.pg87-testimonial__avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--pg87-accent); color: var(--pg87-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0;
}
.pg87-testimonial b { color: var(--pg87-text); display: block; font-size: 1.3rem; }
.pg87-testimonial p { color: var(--pg87-muted); font-size: 1.25rem; }
.pg87-stars { color: var(--pg87-gold); font-size: 1.1rem; }

/* ===== Payment pills ===== */
.pg87-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pg87-pill {
  background: rgba(135,206,250,.12); color: var(--pg87-text);
  border-radius: 999px; padding: 6px 12px; font-size: 1.2rem;
  border: 1px solid rgba(135,206,250,.25);
}

/* ===== Promo CTA banner ===== */
.pg87-cta {
  background: linear-gradient(135deg, #f5a623, #FFDFBA);
  color: var(--pg87-primary);
  border-radius: var(--pg87-radius);
  padding: 14px; text-align: center;
  margin: 14px 10px;
  box-shadow: var(--pg87-shadow);
}
.pg87-cta h2 { font-size: 1.7rem; margin-bottom: 6px; }
.pg87-cta p { font-size: 1.3rem; margin-bottom: 10px; }

/* ===== Footer ===== */
.pg87-footer {
  background: rgba(25, 25, 112, 0.92);
  border-top: 1px solid rgba(135,206,250,.25);
  padding: 18px 12px 14px;
  margin-top: 10px;
}
.pg87-footer__brand { font-size: 1.3rem; color: var(--pg87-muted); margin-bottom: 10px; }
.pg87-footer__links {
  display: flex; flex-wrap: wrap; gap: 6px 12px;
  margin-bottom: 10px;
}
.pg87-footer__links a {
  color: var(--pg87-accent); font-size: 1.2rem;
  text-decoration: underline;
}
.pg87-footer__promo {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0;
}
.pg87-footer__copy {
  font-size: 1.15rem; color: var(--pg87-muted); text-align: center; margin-top: 8px;
}

/* ===== Mobile bottom navigation ===== */
.pg87-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--pg87-bottom-h);
  background: linear-gradient(180deg, rgba(44,62,80,.98), rgba(25,25,112,.98));
  border-top: 1px solid rgba(135,206,250,.3);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -4px 14px rgba(0,0,0,.35);
}
.pg87-bottom-nav__btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: 0; color: var(--pg87-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer; padding: 4px;
  transition: color .2s ease, transform .15s ease;
}
.pg87-bottom-nav__btn i,
.pg87-bottom-nav__btn span.material-icons,
.pg87-bottom-nav__btn ion-icon { font-size: 22px; }
.pg87-bottom-nav__btn ion-icon { font-size: 24px; }
.pg87-bottom-nav__btn span.pg87-bottom-nav__label { font-size: 1rem; line-height: 1; }
.pg87-bottom-nav__btn:active { transform: scale(0.92); }
.pg87-bottom-nav__btn--active { color: var(--pg87-gold); }
.pg87-bottom-nav__btn--promo { color: var(--pg87-gold); }
.pg87-bottom-nav__badge {
  position: absolute; top: 6px; right: 22%;
  background: #e23b3b; color: #fff; border-radius: 999px;
  font-size: .9rem; padding: 1px 5px;
}
.pg87-bottom-nav__btn { position: relative; }

/* ===== Reveal animation ===== */
.pg87-reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.pg87-reveal-visible { opacity: 1; transform: translateY(0); }

/* ===== Desktop: hide bottom nav, widen wrapper ===== */
@media (min-width: 769px) {
  .pg87-bottom-nav { display: none; }
  main.pg87-main { padding-bottom: 24px; }
  .pg87-wrapper { max-width: 430px; }
}

/* Ensure mobile main content clears the fixed header/footer */
@media (max-width: 768px) {
  body { padding-top: var(--pg87-header-h); }
  main.pg87-main { padding-bottom: calc(var(--pg87-bottom-h) + 20px); }
}

/* Utility */
.pg87-text-center { text-align: center; }
.pg87-mt-8 { margin-top: 8px; }
.pg87-mt-12 { margin-top: 12px; }
.pg87-hidden { display: none !important; }
.pg87-keyword { color: var(--pg87-gold); font-weight: 700; }
