:root {
  --green: #25D366;
  --green-dark: #128C7E;
  --green-light: #E1F5EE;
  --green-text: #0F6E56;
  --blue: #0088cc;
  --blue-light: #E6F1FB;
  --blue-text: #185FA5;
  --bg: #f8f9fa;
  --surface: #ffffff;
  --border: rgba(0,0,0,0.08);
  --border-mid: rgba(0,0,0,0.13);
  --text: #111111;
  --text-muted: #6b7280;
  --text-hint: #9ca3af;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ── NAVBAR ── */
nav {
  background: var(--surface);
  border-bottom: 0.5px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo span { color: var(--green); }
.logo-icons { display: flex; gap: 2px; }
.logo-icons i { font-size: 20px; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 10px; }

.btn-platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius-md);
  border: 0.5px solid var(--border-mid);
  background: var(--surface);
  cursor: pointer;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  transition: all 0.15s;
}
.btn-platform:hover { border-color: var(--green); color: var(--green-text); }
.btn-platform.active-wa { border-color: var(--green); color: var(--green-text); background: var(--green-light); }
.btn-platform.active-tg { border-color: var(--blue); color: var(--blue-text); background: var(--blue-light); }

/* ── HERO ── */
.hero {
  background: var(--surface);
  border-bottom: 0.5px solid var(--border);
  padding: 5rem 2rem 4rem;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light);
  color: var(--green-text);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: 44px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}
.hero h1 em { color: var(--green); font-style: normal; }

.hero p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.search-box {
  display: flex;
  max-width: 580px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 20px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: transparent;
}
.search-box input::placeholder { color: var(--text-hint); }
.search-box select {
  border: none;
  border-left: 0.5px solid var(--border);
  padding: 0 14px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  color: var(--text-muted);
  background: #f9fafb;
  cursor: pointer;
  outline: none;
}
.search-box button {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 0 24px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: background 0.15s;
  white-space: nowrap;
}
.search-box button:hover { background: var(--green-dark); }

/* ── STATS ── */
.stats {
  background: var(--surface);
  border-bottom: 0.5px solid var(--border);
  display: flex;
  justify-content: center;
}
.stat {
  flex: 1;
  max-width: 220px;
  text-align: center;
  padding: 1.4rem 1rem;
  border-right: 0.5px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 600;
}
.stat-num span { color: var(--green); }
.stat-lbl { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── LAYOUT ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.section-header h2 {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 600;
}
.see-all {
  font-size: 13px;
  color: var(--green-text);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.see-all:hover { text-decoration: underline; }

/* ── CATEGORIES ── */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  margin-bottom: 3rem;
}

.cat-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 0.8rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
}
.cat-card:hover, .cat-card.active {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37,211,102,0.1);
}
.cat-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 22px;
}
.cat-name { font-size: 13px; font-weight: 500; }
.cat-count { font-size: 11px; color: var(--text-hint); margin-top: 3px; }

/* ── FILTER BAR ── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.filter-bar span {
  font-size: 13px;
  color: var(--text-muted);
  margin-right: 4px;
}
.filter-btn {
  font-size: 12px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  padding: 5px 14px;
  border-radius: 50px;
  border: 0.5px solid var(--border-mid);
  background: var(--surface);
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s;
}
.filter-btn:hover { border-color: var(--green); color: var(--green-text); }
.filter-btn.active { background: var(--green); color: #fff; border-color: var(--green); }

/* ── GROUP CARDS ── */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 3rem;
}

.group-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.18s;
  position: relative;
}
.group-card:hover {
  border-color: var(--border-mid);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}
.featured-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 500;
  background: #FAEEDA;
  color: #854F0B;
  padding: 2px 8px;
  border-radius: 50px;
}

.group-top { display: flex; align-items: flex-start; gap: 12px; }
.group-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.group-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 5px;
}
.group-badges { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 50px;
  font-weight: 500;
}
.badge i { font-size: 11px; }
.badge-wa { background: var(--green-light); color: var(--green-text); }
.badge-tg { background: var(--blue-light); color: var(--blue-text); }
.badge-cat { background: #f3f4f6; color: var(--text-muted); }

.group-desc { font-size: 12px; color: var(--text-muted); line-height: 1.55; flex: 1; }

.group-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}
.group-members {
  font-size: 12px;
  color: var(--text-hint);
  display: flex;
  align-items: center;
  gap: 4px;
}
.group-members i { font-size: 13px; }

.btn-join {
  font-size: 12px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  padding: 7px 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-join:hover { opacity: 0.85; }
.btn-join-wa { background: var(--green); color: #fff; }
.btn-join-tg { background: var(--blue); color: #fff; }

/* ── NO RESULTS ── */
.no-results {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-size: 14px;
  grid-column: 1 / -1;
}

/* ── AD PLACEHOLDER ── */
.ad-slot {
  background: var(--surface);
  border: 0.5px dashed var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-hint);
  font-size: 12px;
  margin: 1.5rem 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── WHY SECTION ── */
.why-section {
  background: var(--surface);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 3.5rem 2rem;
}
.why-inner { max-width: 1100px; margin: 0 auto; }
.why-section h2 {
  font-family: 'Sora', sans-serif;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
}
.why-sub {
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.why-card {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}
.why-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 20px;
}
.why-title { font-size: 14px; font-weight: 500; margin-bottom: 5px; }
.why-text { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* ── FOOTER ── */
footer {
  background: var(--surface);
  border-top: 0.5px solid var(--border);
  padding: 3rem 2rem 2rem;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 0.5px solid var(--border);
}
.footer-brand {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}
.footer-brand span { color: var(--green); }
.footer-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 280px;
}
.footer-platform-badges { display: flex; gap: 8px; margin-top: 16px; }
.ft-plat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 50px;
  border: 0.5px solid var(--border-mid);
  color: var(--text-muted);
}
.footer-col h4 { font-size: 13px; font-weight: 500; margin-bottom: 14px; }
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 9px;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy { font-size: 12px; color: var(--text-hint); }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-size: 12px; color: var(--text-hint); transition: color 0.15s; }
.footer-legal a:hover { color: var(--text-muted); }

/* ── LOADING SPINNER ── */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-size: 14px;
  grid-column: 1 / -1;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 1rem; }
  .nav-links { display: none; }
  .hero { padding: 3rem 1rem 2.5rem; }
  .hero h1 { font-size: 28px; }
  .search-box select { display: none; }
  .stats { flex-wrap: wrap; }
  .stat { min-width: 50%; border-right: none; border-bottom: 0.5px solid var(--border); }
  .container { padding: 2rem 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .why-section { padding: 2.5rem 1rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 24px; }
  .groups-grid { grid-template-columns: 1fr; }
  .cats-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
}
