/* ============================================================
   kkff.homes - Common Stylesheet (css/theme.css)
   Prefix: pg76-
   Palette: #FF8A80 | #C0C0C0 | #0F0F23 | #FFB6C1 | #98FB98
   Mobile-first, max-width 430px. Root font 62.5%.
   ============================================================ */

:root {
  --pg76-primary: #FF8A80;
  --pg76-silver: #C0C0C0;
  --pg76-bg: #0F0F23;
  --pg76-bg2: #161634;
  --pg76-bg3: #1e1e44;
  --pg76-pink: #FFB6C1;
  --pg76-mint: #98FB98;
  --pg76-text: #F5F5FF;
  --pg76-muted: #B8B8D6;
  --pg76-gold: #FFD27A;
  --pg76-radius: 12px;
  --pg76-radius-sm: 8px;
  --pg76-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  --pg76-shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.35);
  --pg76-header-h: 56px;
  --pg76-bottomnav-h: 62px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, sans-serif;
  background: var(--pg76-bg);
  color: var(--pg76-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--pg76-pink); text-decoration: none; }

/* ---------- Layout ---------- */
.pg76-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
}

.pg76-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(255,138,128,0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 100%, rgba(152,251,152,0.10), transparent 60%),
    var(--pg76-bg);
}

main.pg76-main {
  flex: 1;
  padding-top: calc(var(--pg76-header-h) + 6px);
  padding-bottom: 80px;
}

/* ---------- Header ---------- */
.pg76-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--pg76-header-h);
  background: linear-gradient(90deg, rgba(15,15,35,0.96), rgba(22,22,52,0.96));
  border-bottom: 1px solid rgba(255,138,128,0.25);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.pg76-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  gap: 8px;
}

.pg76-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--pg76-text);
}

.pg76-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.pg76-logo span {
  background: linear-gradient(90deg, var(--pg76-primary), var(--pg76-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pg76-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pg76-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pg76-btn-login {
  background: transparent;
  color: var(--pg76-text);
  border: 1px solid var(--pg76-silver);
}

.pg76-btn-register {
  background: linear-gradient(90deg, var(--pg76-primary), #ff5b6a);
  color: #1a0a0a;
  box-shadow: 0 3px 10px rgba(255,138,128,0.45);
}

.pg76-btn:active { transform: scale(0.94); }

.pg76-menu-btn {
  background: transparent;
  border: 1px solid rgba(192,192,192,0.4);
  color: var(--pg76-text);
  width: 38px; height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- Mobile slide-down menu ---------- */
.pg76-mobile-menu {
  position: fixed;
  top: var(--pg76-header-h);
  left: 0; right: 0;
  max-height: 0;
  overflow: hidden;
  background: var(--pg76-bg2);
  border-bottom: 1px solid rgba(255,138,128,0.2);
  z-index: 9999;
  transition: max-height .28s ease;
}
.pg76-mobile-menu.pg76-menu-open { max-height: 420px; }

.pg76-mobile-menu-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 10px 12px 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.pg76-menu-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--pg76-bg3);
  color: var(--pg76-text);
  border-radius: var(--pg76-radius-sm);
  font-size: 1.3rem;
  border: 1px solid rgba(255,255,255,0.04);
}

.pg76-menu-link:active { background: rgba(255,138,128,0.18); }

/* ---------- Hero carousel ---------- */
.pg76-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--pg76-radius);
  overflow: hidden;
  box-shadow: var(--pg76-shadow);
  margin-bottom: 14px;
}

.pg76-carousel-track {
  position: relative;
  width: 100%;
  height: 180px;
}

.pg76-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
  cursor: pointer;
}

.pg76-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg76-carousel-slide.pg76-slide-active { opacity: 1; }

.pg76-carousel-caption {
  position: absolute;
  left: 12px; bottom: 12px;
  background: rgba(15,15,35,0.7);
  color: var(--pg76-text);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 600;
}

.pg76-carousel-dots {
  position: absolute;
  right: 10px; bottom: 10px;
  display: flex;
  gap: 5px;
}
.pg76-carousel-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none; cursor: pointer; padding: 0;
}
.pg76-carousel-dot.pg76-dot-active { background: var(--pg76-primary); }

/* ---------- Section ---------- */
.pg76-section {
  margin: 16px 0;
}

.pg76-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 10px;
  padding-left: 8px;
  border-left: 4px solid var(--pg76-primary);
  color: var(--pg76-text);
}

.pg76-section-title .pg76-hl {
  color: var(--pg76-primary);
}

.pg76-lead {
  color: var(--pg76-muted);
  font-size: 1.3rem;
  margin: 0 0 12px;
}

/* ---------- Filter chips ---------- */
.pg76-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 12px;
}
.pg76-filter-chip {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--pg76-bg3);
  color: var(--pg76-muted);
  font-size: 1.2rem;
  border: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
}
.pg76-filter-chip.pg76-chip-active {
  background: linear-gradient(90deg, var(--pg76-primary), var(--pg76-pink));
  color: #1a0a0a;
  font-weight: 700;
}

/* ---------- Game grid ---------- */
.pg76-game-section { margin-bottom: 18px; }

.pg76-cat-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pg76-mint);
}

.pg76-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pg76-game-card {
  background: var(--pg76-bg2);
  border-radius: var(--pg76-radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.04);
  transition: transform .15s ease, box-shadow .15s ease;
  text-align: center;
}
.pg76-game-card:active { transform: scale(0.96); }

.pg76-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0a0a1c;
}

.pg76-game-name {
  font-size: 1.15rem;
  color: var(--pg76-text);
  padding: 6px 4px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- CTA banner ---------- */
.pg76-cta {
  background: linear-gradient(135deg, rgba(255,138,128,0.18), rgba(255,182,193,0.12));
  border: 1px solid rgba(255,138,128,0.35);
  border-radius: var(--pg76-radius);
  padding: 14px;
  margin: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pg76-cta-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--pg76-text);
}
.pg76-cta-text small {
  display: block;
  color: var(--pg76-muted);
  font-weight: 400;
  font-size: 1.15rem;
}

.pg76-cta-btn {
  background: linear-gradient(90deg, var(--pg76-primary), #ff5b6a);
  color: #1a0a0a;
  border: none;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.25rem;
  cursor: pointer;
  white-space: nowrap;
}

/* ---------- Info cards ---------- */
.pg76-info-card {
  background: var(--pg76-bg2);
  border-radius: var(--pg76-radius);
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: var(--pg76-shadow-soft);
}

.pg76-info-card h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  color: var(--pg76-pink);
}

.pg76-info-card p {
  margin: 0 0 8px;
  color: var(--pg76-muted);
  font-size: 1.3rem;
}

.pg76-info-card .pg76-inline-link {
  color: var(--pg76-primary);
  font-weight: 700;
  cursor: pointer;
}

/* ---------- FAQ ---------- */
.pg76-faq-item {
  background: var(--pg76-bg2);
  border-radius: var(--pg76-radius-sm);
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,0.04);
}
.pg76-faq-item h4 {
  margin: 0 0 6px;
  font-size: 1.3rem;
  color: var(--pg76-mint);
}
.pg76-faq-item p {
  margin: 0;
  color: var(--pg76-muted);
  font-size: 1.25rem;
}

/* ---------- Winners list ---------- */
.pg76-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--pg76-bg2);
  border-radius: var(--pg76-radius-sm);
  margin-bottom: 6px;
  font-size: 1.25rem;
}
.pg76-winner-row .pg76-w-name { color: var(--pg76-text); font-weight: 600; }
.pg76-winner-row .pg76-w-amount { color: var(--pg76-gold); font-weight: 700; }

/* ---------- Testimonials ---------- */
.pg76-testimonial {
  background: var(--pg76-bg2);
  border-left: 3px solid var(--pg76-mint);
  border-radius: var(--pg76-radius-sm);
  padding: 10px 12px;
  margin-bottom: 8px;
}
.pg76-testimonial p { margin: 0 0 6px; color: var(--pg76-text); font-size: 1.25rem; }
.pg76-testimonial .pg76-t-author { color: var(--pg76-silver); font-size: 1.15rem; }

/* ---------- Payment ---------- */
.pg76-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pg76-pay-chip {
  background: var(--pg76-bg3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--pg76-radius-sm);
  padding: 8px 12px;
  font-size: 1.2rem;
  color: var(--pg76-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Back to top ---------- */
.pg76-back-top {
  position: fixed;
  right: 14px;
  bottom: calc(var(--pg76-bottomnav-h) + 12px);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--pg76-primary);
  color: #1a0a0a;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 900;
  box-shadow: var(--pg76-shadow);
}
.pg76-back-top.pg76-back-visible { opacity: 1; pointer-events: auto; }
.pg76-back-top:active { transform: scale(0.9); }

/* ---------- Footer ---------- */
.pg76-footer {
  background: var(--pg76-bg2);
  border-top: 1px solid rgba(255,138,128,0.2);
  padding: 18px 0 22px;
  margin-top: 10px;
}

.pg76-footer-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
}

.pg76-footer-brand {
  font-size: 1.3rem;
  color: var(--pg76-muted);
  margin-bottom: 10px;
}

.pg76-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.pg76-footer-link {
  background: var(--pg76-bg3);
  color: var(--pg76-text);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 1.2rem;
  border: 1px solid rgba(255,255,255,0.05);
}

.pg76-footer-copy {
  font-size: 1.15rem;
  color: var(--pg76-silver);
  text-align: center;
  margin-top: 8px;
}

/* ---------- Mobile bottom navigation ---------- */
.pg76-bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--pg76-bottomnav-h);
  background: linear-gradient(90deg, rgba(15,15,35,0.98), rgba(22,22,52,0.98));
  border-top: 1px solid rgba(255,138,128,0.3);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.4);
}

.pg76-bottom-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--pg76-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  transition: color .15s ease, transform .15s ease;
}

.pg76-bottom-nav-btn .pg76-nav-icon { font-size: 2rem; line-height: 1; }
.pg76-bottom-nav-btn .pg76-nav-label { font-size: 1rem; }

.pg76-bottom-nav-btn.pg76-nav-active {
  color: var(--pg76-primary);
}
.pg76-bottom-nav-btn.pg76-nav-active::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 3px;
  background: var(--pg76-primary);
  border-radius: 0 0 4px 4px;
}

.pg76-bottom-nav-btn:active { transform: scale(0.92); }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .pg76-bottom-nav { display: none; }
  main.pg76-main { padding-bottom: 30px; }
  .pg76-container { max-width: 760px; }
  .pg76-header-inner { max-width: 760px; }
  .pg76-footer-inner { max-width: 760px; }
  .pg76-game-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ---------- Utility ---------- */
.pg76-text-center { text-align: center; }
.pg76-mt-8 { margin-top: 8px; }
.pg76-mt-12 { margin-top: 12px; }
.pg76-mb-12 { margin-bottom: 12px; }
.pg76-hidden { display: none !important; }
