/* ===== kx9.homes - ui-62df.css ===== */
/* All custom classes use prefix gdfd- */
/* Palette: #2D2D2D bg | #E0E0E0 text | #66CDAA | #4B0082 | #DA70D6 | #32CD32 */

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #2D2D2D;
  color: #E0E0E0;
  line-height: 1.65;
  font-size: 15px;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: #66CDAA; text-decoration: none; }
a:hover, a:focus { color: #DA70D6; }
ul, ol { list-style: none; }

/* ---------- App shell ---------- */
.gdfd-page { padding-bottom: 76px; } /* clearance for fixed bottom nav */

/* ---------- Header ---------- */
.gdfd-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: linear-gradient(180deg, #1a1a1a 0%, #2D2D2D 100%);
  border-bottom: 2px solid #4B0082;
  box-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.gdfd-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.gdfd-logo {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid #DA70D6;
  flex-shrink: 0;
  background: #1a1a1a;
}
.gdfd-brand-text { min-width: 0; }
.gdfd-brand-text strong {
  display: block;
  font-size: 18px;
  color: #E0E0E0;
  letter-spacing: .5px;
  line-height: 1.1;
}
.gdfd-brand-text span {
  display: block;
  font-size: 11px;
  color: #66CDAA;
  letter-spacing: .3px;
}
.gdfd-menu-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid #4B0082;
  background: #1a1a1a;
  color: #E0E0E0;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gdfd-menu-btn:hover { border-color: #DA70D6; }
.gdfd-head-actions { display: flex; gap: 6px; }
.gdfd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  color: #fff;
  text-align: center;
  line-height: 1;
}
.gdfd-btn:active { transform: scale(.96); }
.gdfd-btn-register {
  background: linear-gradient(90deg, #DA70D6 0%, #4B0082 100%);
  box-shadow: 0 3px 10px rgba(218,112,214,.4);
}
.gdfd-btn-login {
  background: linear-gradient(90deg, #32CD32 0%, #66CDAA 100%);
  box-shadow: 0 3px 10px rgba(50,205,50,.35);
  color: #1a1a1a;
}

/* ---------- Mobile slide menu ---------- */
.gdfd-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #1f1f1f;
  border-bottom: 2px solid #4B0082;
  padding: 14px 16px 18px;
  transform: translateY(-110%);
  transition: transform .28s ease;
  z-index: 59;
  max-height: 80vh;
  overflow-y: auto;
}
.gdfd-mobile-menu.gdfd-open { transform: translateY(0); }
.gdfd-mobile-menu h4 {
  font-size: 12px;
  color: #66CDAA;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 10px 0 6px;
}
.gdfd-mobile-menu ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.gdfd-mobile-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  background: #2D2D2D;
  border: 1px solid #3a3a3a;
  font-size: 13px;
  color: #E0E0E0;
}
.gdfd-mobile-menu a:hover { border-color: #DA70D6; color: #DA70D6; }

/* ---------- Hero banner ---------- */
.gdfd-hero {
  margin: 12px 12px 0;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 18px rgba(0,0,0,.5);
  border: 1px solid #4B0082;
}
.gdfd-hero-viewport { overflow: hidden; }
.gdfd-hero-track {
  display: flex;
  transition: transform .55s ease;
}
.gdfd-hero-slide {
  min-width: 100%;
  padding: 22px 18px;
  position: relative;
}
.gdfd-hero-slide h2 {
  font-size: 22px;
  margin-bottom: 6px;
  line-height: 1.25;
}
.gdfd-hero-slide p { font-size: 13px; color: #d6d6d6; margin-bottom: 12px; }
.gdfd-hero-slide .gdfd-btn { padding: 10px 20px; font-size: 14px; }
.gdfd-hero-1 { background: linear-gradient(120deg, #4B0082 0%, #DA70D6 100%); }
.gdfd-hero-2 { background: linear-gradient(120deg, #1a4d2e 0%, #32CD32 150%); }
.gdfd-hero-3 { background: linear-gradient(120deg, #66CDAA 0%, #4B0082 130%); }
.gdfd-hero-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.gdfd-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
}
.gdfd-hero-dot.gdfd-active { background: #fff; width: 18px; border-radius: 4px; }

/* ---------- Quick stats ---------- */
.gdfd-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 14px 12px 4px;
}
.gdfd-stat {
  background: #1f1f1f;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
}
.gdfd-stat strong {
  display: block;
  font-size: 16px;
  color: #66CDAA;
  font-weight: 800;
}
.gdfd-stat span { font-size: 10px; color: #aaa; }

/* ---------- Section heading ---------- */
.gdfd-section { padding: 18px 12px 4px; }
.gdfd-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.gdfd-section-head h2 {
  font-size: 18px;
  color: #E0E0E0;
  border-left: 4px solid #DA70D6;
  padding-left: 10px;
}
.gdfd-section-head a { font-size: 12px; }

/* ---------- Category tabs ---------- */
.gdfd-tabs {
  display: flex;
  gap: 6px;
  padding: 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 10px;
}
.gdfd-tabs::-webkit-scrollbar { display: none; }
.gdfd-tab {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 18px;
  background: #1f1f1f;
  border: 1px solid #3a3a3a;
  color: #bbb;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s ease;
}
.gdfd-tab.gdfd-active {
  background: linear-gradient(90deg, #4B0082, #DA70D6);
  color: #fff;
  border-color: transparent;
}

/* ---------- Game grid ---------- */
.gdfd-games {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 12px;
}
.gdfd-game {
  background: #1f1f1f;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: transform .15s ease, border-color .15s ease;
}
.gdfd-game:hover { transform: translateY(-2px); border-color: #DA70D6; }
.gdfd-game .gdfd-game-img {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #111;
  object-fit: cover;
}
.gdfd-game-name {
  font-size: 11px;
  text-align: center;
  padding: 4px 4px 6px;
  color: #ddd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gdfd-game-tag {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(218,112,214,.92);
  color: #fff;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}
.gdfd-game-tag-hot { background: rgba(205,50,50,.95); }

/* ---------- Promo / feature cards ---------- */
.gdfd-promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 12px;
}
.gdfd-promo-card {
  background: linear-gradient(135deg, #1f1f1f 0%, #2D2D2D 100%);
  border: 1px solid #4B0082;
  border-radius: 12px;
  padding: 14px;
  position: relative;
  overflow: hidden;
}
.gdfd-promo-card h3 {
  font-size: 15px;
  color: #DA70D6;
  margin-bottom: 4px;
}
.gdfd-promo-card p { font-size: 12px; color: #bbb; margin-bottom: 10px; }
.gdfd-promo-card .gdfd-btn { width: 100%; }

/* ---------- Article / SEO content ---------- */
.gdfd-article {
  background: #1f1f1f;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  padding: 16px;
  margin: 0 12px;
}
.gdfd-article h2 {
  color: #66CDAA;
  font-size: 18px;
  margin-bottom: 10px;
  border-left: 4px solid #66CDAA;
  padding-left: 10px;
}
.gdfd-article h3 {
  color: #DA70D6;
  font-size: 15px;
  margin: 14px 0 6px;
}
.gdfd-article p {
  font-size: 14px;
  margin-bottom: 10px;
  color: #cdcdcf;
}
.gdfd-article ul { margin: 6px 0 12px; }
.gdfd-article ul li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  margin-bottom: 6px;
  color: #c5c5c7;
}
.gdfd-article ul li::before {
  content: "▸";
  color: #DA70D6;
  position: absolute;
  left: 4px;
}

/* ---------- FAQ accordion ---------- */
.gdfd-acc {
  background: #1f1f1f;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
.gdfd-acc-head {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #E0E0E0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #262626;
}
.gdfd-acc-head::after { content: "+"; color: #DA70D6; font-size: 18px; }
.gdfd-acc.gdfd-open .gdfd-acc-head::after { content: "−"; }
.gdfd-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  padding: 0 14px;
  color: #c5c5c7;
  font-size: 13px;
}
.gdfd-acc.gdfd-open .gdfd-acc-body {
  max-height: 600px;
  padding: 10px 14px 14px;
}

/* ---------- Internal links list ---------- */
.gdfd-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 12px;
}
.gdfd-links a {
  display: block;
  background: #1f1f1f;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: #E0E0E0;
}
.gdfd-links a::before { content: "→ "; color: #66CDAA; }

/* ---------- Footer ---------- */
.gdfd-footer {
  background: #1a1a1a;
  border-top: 2px solid #4B0082;
  padding: 20px 14px 14px;
  margin-top: 24px;
}
.gdfd-footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}
.gdfd-footer h4 {
  color: #DA70D6;
  font-size: 13px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.gdfd-footer a {
  display: block;
  font-size: 12px;
  color: #aaa;
  padding: 3px 0;
}
.gdfd-footer a:hover { color: #66CDAA; }
.gdfd-footer-bottom {
  border-top: 1px solid #333;
  padding-top: 10px;
  font-size: 11px;
  color: #888;
  text-align: center;
}

/* ---------- Back to top ---------- */
.gdfd-to-top {
  position: fixed;
  right: 14px;
  bottom: 90px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4B0082, #DA70D6);
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 50;
}
.gdfd-to-top.gdfd-show { opacity: 1; pointer-events: auto; }

/* ---------- Bottom navigation ---------- */
.gdfd-bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 430px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: linear-gradient(180deg, #1f1f1f 0%, #111 100%);
  border-top: 2px solid #4B0082;
  z-index: 70;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
.gdfd-bottom-nav button {
  background: none;
  border: none;
  color: #9a9a9a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 2px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
}
.gdfd-bottom-nav button .gdfd-ico {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gdfd-bottom-nav button .gdfd-ico svg { width: 22px; height: 22px; }
.gdfd-bottom-nav button.gdfd-active { color: #DA70D6; }
.gdfd-bottom-nav button:active { color: #66CDAA; }
.gdfd-bottom-nav .gdfd-bn-promo { color: #32CD32; }

/* ---------- Helpers ---------- */
.gdfd-container { padding: 0 12px; }
.gdfd-hide { display: none !important; }

@media (min-width: 431px) {
  body { box-shadow: 0 0 30px rgba(0,0,0,.6); }
}
