/* ek33-homes design.css — all classes use gf4d- prefix */
/* English comments only */

:root {
  --gf4d-primary: #9966CC;
  --gf4d-bg: #1C2833;
  --gf4d-text: #BBBBBB;
  --gf4d-accent: #B03060;
  --gf4d-pink: #DB7093;
  --gf4d-coral: #FA8072;
  --gf4d-dark: #141a22;
  --gf4d-card: #232c38;
  --gf4d-light: #f5f0fa;
  --gf4d-gold: #e6c45c;
}

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

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

body {
  font-family: "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif;
  background: var(--gf4d-bg);
  color: var(--gf4d-text);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a { color: var(--gf4d-pink); text-decoration: none; }
a:hover { color: var(--gf4d-coral); }

/* ===== Header ===== */
.gf4d-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--gf4d-bg), var(--gf4d-dark));
  border-bottom: 2px solid var(--gf4d-primary);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  height: 56px;
}
.gf4d-logo {
  display: flex; align-items: center; gap: 6px;
  color: var(--gf4d-light);
  font-size: 18px;
  font-weight: 700;
}
.gf4d-logo img { width: 28px; height: 28px; border-radius: 6px; }
.gf4d-logo span { color: var(--gf4d-pink); }
.gf4d-header-actions { display: flex; align-items: center; gap: 8px; }
.gf4d-menu-btn {
  background: transparent; border: none; color: var(--gf4d-light);
  font-size: 22px; cursor: pointer; padding: 4px 6px;
  display: flex; align-items: center;
}
.gf4d-btn {
  border: none; border-radius: 18px; cursor: pointer;
  font-size: 12px; font-weight: 700; padding: 7px 14px;
  transition: transform .15s ease, opacity .15s ease;
}
.gf4d-btn:active { transform: scale(0.94); }
.gf4d-btn-register {
  background: linear-gradient(135deg, var(--gf4d-accent), var(--gf4d-pink));
  color: #fff;
}
.gf4d-btn-login {
  background: transparent;
  color: var(--gf4d-light);
  border: 1.5px solid var(--gf4d-primary);
}

/* ===== Mobile Menu ===== */
.gf4d-mobile-menu {
  position: fixed;
  top: 56px; left: 0; right: 0;
  max-width: 430px; margin: 0 auto;
  background: var(--gf4d-dark);
  border-bottom: 2px solid var(--gf4d-primary);
  z-index: 9999;
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.gf4d-mobile-menu.gf4d-open { max-height: 600px; }
.gf4d-mobile-menu ul { list-style: none; }
.gf4d-mobile-menu li a {
  display: block; padding: 12px 16px;
  color: var(--gf4d-light); font-size: 14px;
  border-bottom: 1px solid rgba(153,102,204,.15);
}
.gf4d-mobile-menu li a:hover { background: rgba(153,102,204,.12); color: var(--gf4d-pink); }

/* ===== Layout ===== */
.gf4d-container { width: 100%; padding: 0 12px; }
main { padding-top: 64px; }
@media (max-width: 768px) { main { padding-bottom: 80px; } }

/* ===== Carousel ===== */
.gf4d-carousel {
  position: relative; width: 100%; height: 180px;
  border-radius: 12px; overflow: hidden; margin: 12px 0;
}
.gf4d-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .6s ease; cursor: pointer;
}
.gf4d-slide.gf4d-active { opacity: 1; }
.gf4d-slide img { width: 100%; height: 100%; object-fit: cover; }
.gf4d-slide-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(28,40,51,.85));
  padding: 18px 14px 12px; color: #fff;
}
.gf4d-slide-overlay h3 { font-size: 16px; margin-bottom: 4px; color: var(--gf4d-gold); }
.gf4d-slide-overlay p { font-size: 11px; }
.gf4d-dots {
  position: absolute; bottom: 8px; right: 12px;
  display: flex; gap: 5px;
}
.gf4d-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.5); cursor: pointer;
}
.gf4d-dot.gf4d-active { background: var(--gf4d-gold); }

/* ===== Section ===== */
.gf4d-section { padding: 14px 0; }
.gf4d-section-title {
  font-size: 18px; color: var(--gf4d-light);
  margin-bottom: 10px; padding-left: 8px;
  border-left: 4px solid var(--gf4d-pink);
}
.gf4d-section-sub { font-size: 13px; color: var(--gf4d-text); margin-bottom: 10px; padding: 0 4px; }
.gf4d-h1 {
  font-size: 20px; color: var(--gf4d-light);
  text-align: center; margin: 12px 6px; line-height: 1.6rem;
}
.gf4d-h1 span { color: var(--gf4d-gold); }

/* ===== Filter Tabs ===== */
.gf4d-filter-tabs {
  display: flex; gap: 6px; overflow-x: auto; padding: 6px 0 10px;
  -webkit-overflow-scrolling: touch;
}
.gf4d-filter-tab {
  white-space: nowrap; padding: 6px 12px;
  background: var(--gf4d-card); color: var(--gf4d-text);
  border-radius: 16px; font-size: 12px; cursor: pointer;
  border: 1px solid transparent;
}
.gf4d-filter-tab.gf4d-active {
  background: linear-gradient(135deg, var(--gf4d-primary), var(--gf4d-accent));
  color: #fff;
}

/* ===== Game Grid ===== */
.gf4d-game-group { margin-bottom: 18px; }
.gf4d-game-group h2 {
  font-size: 15px; color: var(--gf4d-gold);
  margin: 8px 4px; display: flex; align-items: center; gap: 6px;
}
.gf4d-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.gf4d-game-card {
  background: var(--gf4d-card); border-radius: 10px;
  overflow: hidden; cursor: pointer; text-align: center;
  border: 1px solid rgba(153,102,204,.2);
  transition: transform .15s ease, box-shadow .15s ease;
}
.gf4d-game-card:active { transform: scale(0.96); }
.gf4d-game-card:hover { box-shadow: 0 4px 12px rgba(176,48,96,.4); }
.gf4d-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gf4d-game-card .gf4d-game-name {
  font-size: 10px; color: var(--gf4d-light);
  padding: 5px 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ===== Promo Card / Feature ===== */
.gf4d-promo {
  background: linear-gradient(135deg, var(--gf4d-accent), var(--gf4d-pink));
  border-radius: 12px; padding: 14px; margin: 10px 0;
  color: #fff; display: flex; align-items: center; gap: 12px;
  cursor: pointer;
}
.gf4d-promo:active { transform: scale(0.98); }
.gf4d-promo-icon { font-size: 28px; }
.gf4d-promo-text h3 { font-size: 14px; margin-bottom: 3px; }
.gf4d-promo-text p { font-size: 11px; opacity: .9; }

/* ===== Info Grid ===== */
.gf4d-info-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.gf4d-info-card {
  background: var(--gf4d-card); border-radius: 10px;
  padding: 12px; border-left: 3px solid var(--gf4d-primary);
}
.gf4d-info-card h3 { font-size: 14px; color: var(--gf4d-gold); margin-bottom: 6px; }
.gf4d-info-card p { font-size: 12px; line-height: 1.5rem; color: var(--gf4d-text); }
.gf4d-info-card a { color: var(--gf4d-pink); font-weight: 600; }

/* ===== Testimonials ===== */
.gf4d-testimonial {
  background: var(--gf4d-card); border-radius: 10px;
  padding: 10px 12px; margin-bottom: 8px;
  border-left: 3px solid var(--gf4d-coral);
}
.gf4d-testimonial .gf4d-user { font-size: 13px; color: var(--gf4d-gold); margin-bottom: 3px; }
.gf4d-testimonial p { font-size: 12px; color: var(--gf4d-text); }

/* ===== Payment / Winners ===== */
.gf4d-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.gf4d-chip {
  background: var(--gf4d-card); color: var(--gf4d-light);
  padding: 5px 10px; border-radius: 14px; font-size: 11px;
  border: 1px solid rgba(153,102,204,.3);
}
.gf4d-winner {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--gf4d-card); padding: 8px 12px; border-radius: 8px;
  margin-bottom: 6px; font-size: 12px;
}
.gf4d-winner .gf4d-amount { color: var(--gf4d-gold); font-weight: 700; }

/* ===== SEO content ===== */
.gf4d-seo-content { font-size: 12px; line-height: 1.6rem; color: var(--gf4d-text); padding: 4px; }
.gf4d-seo-content h2 { font-size: 15px; color: var(--gf4d-light); margin: 10px 0 6px; }
.gf4d-seo-content h3 { font-size: 13px; color: var(--gf4d-pink); margin: 8px 0 4px; }
.gf4d-seo-content p { margin-bottom: 8px; }
.gf4d-seo-content a { color: var(--gf4d-pink); font-weight: 600; }

/* ===== Footer ===== */
.gf4d-footer {
  background: var(--gf4d-dark); border-top: 2px solid var(--gf4d-primary);
  padding: 16px 12px 20px; margin-top: 16px;
}
.gf4d-footer-brand { font-size: 13px; color: var(--gf4d-text); margin-bottom: 10px; line-height: 1.5rem; }
.gf4d-footer-links { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 10px; }
.gf4d-footer-links a { font-size: 11px; color: var(--gf4d-text); }
.gf4d-footer-links a:hover { color: var(--gf4d-pink); }
.gf4d-footer-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.gf4d-footer-copy { font-size: 11px; color: var(--gf4d-text); opacity: .7; }

/* ===== Bottom Nav ===== */
.gf4d-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  max-width: 430px; margin: 0 auto;
  height: 60px; background: var(--gf4d-dark);
  border-top: 2px solid var(--gf4d-primary);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000;
}
.gf4d-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center;
  background: transparent; border: none; color: var(--gf4d-text);
  font-size: 10px; min-width: 60px; min-height: 60px; cursor: pointer;
  padding: 4px; gap: 2px; transition: transform .15s ease, color .15s ease;
}
.gf4d-bottom-nav-btn:active { transform: scale(0.9); }
.gf4d-bottom-nav-btn .material-icons,
.gf4d-bottom-nav-btn i,
.gf4d-bottom-nav-btn .iconify { font-size: 22px; }
.gf4d-bottom-nav-btn.gf4d-current { color: var(--gf4d-gold); }
.gf4d-bottom-nav-btn.gf4d-current .icon-badge {
  color: var(--gf4d-pink);
}
@media (min-width: 769px) { .gf4d-bottom-nav { display: none; } }

/* Desktop hide mobile-only, show desktop nav */
.gf4d-desktop-nav { display: none; }
@media (min-width: 769px) {
  .gf4d-desktop-nav { display: flex; gap: 16px; }
  .gf4d-desktop-nav a { color: var(--gf4d-light); font-size: 13px; }
  .gf4d-desktop-nav a:hover { color: var(--gf4d-pink); }
}

/* Back to top */
.gf4d-totop {
  position: fixed; bottom: 72px; right: 14px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gf4d-primary); color: #fff; border: none;
  font-size: 18px; cursor: pointer; z-index: 999;
  display: flex; align-items: center; justify-content: center;
}
@media (min-width: 769px) { .gf4d-totop { bottom: 20px; } }
