:root {
  --primary: #4c2fb3;
  --primary-dark: #34207c;
  --secondary: #14b8a6;
  --bg: #f4f5ff;
  --text: #20222f;
  --card: #ffffff;
  --danger: #c62043;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

.hero {
  background: linear-gradient(140deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 1.25rem 1.25rem 3.5rem;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-nav h1,
.community-header h1 {
  margin: 0;
  font-size: 1.4rem;
}

.hero-content {
  max-width: 760px;
  margin: 3rem auto 0;
}

.hero-content h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.tag {
  font-weight: 600;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.section {
  max-width: 1040px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.feature-grid,
.grid,
.membership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(20, 25, 60, 0.08);
}

.pricing-callout {
  background: #ece9ff;
  text-align: center;
}

.note {
  font-size: 0.92rem;
  color: #4b2fa6;
  font-weight: 600;
}

.btn {
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary {
  background: #fff;
  color: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid currentColor;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgb(3 7 30 / 65%);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-content {
  background: #fff;
  width: min(100%, 420px);
  border-radius: 16px;
  padding: 1.25rem;
  position: relative;
}

.modal-content form {
  display: grid;
  gap: 0.5rem;
}

input {
  border: 1px solid #d2d6f0;
  border-radius: 10px;
  padding: 0.65rem;
}

.close {
  position: absolute;
  right: 0.6rem;
  top: 0.3rem;
  border: none;
  background: transparent;
  font-size: 1.8rem;
  cursor: pointer;
}

.hint {
  font-size: 0.92rem;
  color: #4d5389;
}

.error {
  color: var(--danger);
  margin: 0.25rem 0;
}

.hidden {
  display: none;
}

.community-page {
  min-height: 100vh;
  background: #eef0ff;
}

.community-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 4px 18px rgba(24, 30, 68, 0.08);
  flex-wrap: wrap;
}

.status {
  margin-right: 0.6rem;
  font-weight: 600;
}

.community-main {
  max-width: 1100px;
  margin: 1.4rem auto;
  padding: 0 1rem 2rem;
}

.welcome {
  margin-bottom: 1rem;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.member-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.member-card {
  border: 1px solid #e5e8ff;
  border-radius: 12px;
  padding: 0.75rem;
  display: grid;
}

.member-card span {
  color: #52598a;
  font-size: 0.9rem;
}
