:root {
  --blue: #2563eb;
  --purple: #7c3aed;
  --green: #16a34a;
  --orange: #f59e0b;
  --text: #10162f;
  --muted: #667085;
  --border: #e8eaf2;
  --bg: #fbfbff;
  --card: #fff;
  --soft: #eef4ff;
  --shadow: 0 14px 34px rgba(16, 24, 40, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

body.hit-diaspora-page {
  background:
    radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.12), transparent 30%),
    linear-gradient(#fff, #fbfbff);
}

a { text-decoration: none; color: inherit; }
button, select, input { font-family: inherit; }

.page {
  max-width: 1440px;
  margin: auto;
  background:
    radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.12), transparent 30%),
    linear-gradient(#fff, #fbfbff);
}

.site-header { position: sticky; top: 0; z-index: 10; }

.header {
  height: 86px;
  display: grid;
  grid-template-columns: 310px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 0 42px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 900;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 25px;
  box-shadow: var(--shadow);
  flex: 0 0 auto;
}

.brand strong {
  display: block;
  font-size: 22px;
  color: #07152f;
  letter-spacing: -0.7px;
  line-height: 1;
}

.brand span { color: var(--blue); }

.brand small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.search {
  display: grid;
  grid-template-columns: 1fr 145px 145px;
  gap: 12px;
}

.box {
  height: 50px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  color: var(--muted);
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.04);
  min-width: 0;
}

.search-box { padding-right: 8px; }

.search-box-icon,
.select-box-icon {
  flex-shrink: 0;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.box input,
.box select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #344054;
  font-size: 14px;
}

.search-submit-btn {
  flex-shrink: 0;
  height: 34px;
  border: 0;
  border-radius: 9px;
  padding: 0 14px;
  background: linear-gradient(135deg, #0b4de8, #0636b0);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-weight: 800;
  font-size: 14px;
  position: relative;
}

.actions .login-btn,
.actions .login-link {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  font-size: 14px;
  color: inherit;
  padding: 0;
  text-decoration: none;
}

.actions .hidden,
.hit-diaspora-page .hidden {
  display: none !important;
}

.actions .user-menu {
  position: relative;
}

.actions .user-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  max-width: 148px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  font-size: 13px;
  color: var(--text);
}

.actions .user-menu-btn span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.actions .user-menu-caret {
  font-size: 10px;
  color: var(--muted);
}

.actions .user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 180px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.actions .user-dropdown li {
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
}

.actions .user-dropdown li:hover {
  background: var(--soft);
}

.actions .user-dropdown-link {
  display: block;
  color: inherit;
  text-decoration: none;
  width: 100%;
}

.actions .user-dropdown-logout {
  color: #b91c1c;
}

html.site-user-authenticated #site-login-btn {
  display: none !important;
}

html.site-user-authenticated #user-menu {
  display: block !important;
}

.btn {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), #1d4ed8);
  color: #fff;
  padding: 14px 22px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav {
  height: 58px;
  display: flex;
  gap: 34px;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 800;
  color: #475467;
  overflow: auto;
  padding: 0 16px;
}

.nav a {
  height: 58px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  gap: 8px;
  white-space: nowrap;
}

.nav .active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
  min-height: 530px;
  padding: 62px 54px 38px;
}

.tag {
  display: inline-flex;
  background: var(--soft);
  color: var(--blue);
  border: 1px solid rgba(37, 99, 235, 0.14);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -2.6px;
  margin-bottom: 22px;
}

.hero h1 span { color: var(--blue); }

.hero p {
  color: #4b5563;
  font-size: 19px;
  max-width: 700px;
  margin-bottom: 28px;
}

.hero-search {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 155px;
  gap: 10px;
  max-width: 820px;
  margin-bottom: 24px;
}

.hero-search select,
.hero-search input {
  height: 54px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 0 14px;
  outline: none;
  color: #344054;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.04);
}

.hero-search button {
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 820px;
}

.trust-card {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 14px;
}

.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex: 0 0 auto;
}

.trust-card strong { display: block; font-size: 12px; }
.trust-card span { display: block; color: var(--muted); font-size: 10px; }

.visual {
  position: relative;
  min-height: 580px;
  display: grid;
  place-items: center;
  align-self: end;
  width: 100%;
  overflow: visible;
}

.visual-stage {
  position: relative;
  width: 100%;
  max-width: 640px;
  height: 580px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.orbit {
  position: absolute;
  left: 46%;
  bottom: 0;
  transform: translateX(-50%);
  width: 560px;
  height: 560px;
  border-radius: 50%;
  border: 2px dashed rgba(37, 99, 235, 0.18);
  pointer-events: none;
}

.diaspora-hero {
  position: relative;
  z-index: 2;
  width: auto;
  height: 560px;
  max-width: min(640px, 100%);
  object-fit: contain;
  object-position: bottom center;
  display: block;
  margin-left: -36px;
  filter: drop-shadow(0 18px 28px rgba(7, 21, 47, 0.18));
}

.float {
  position: absolute;
  min-width: 168px;
  max-width: 190px;
  display: flex;
  gap: 8px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  box-shadow: var(--shadow);
  z-index: 3;
}

.float i {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--soft);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 16px;
  flex: 0 0 auto;
}

.float strong { display: block; font-size: 11px; line-height: 1.25; }
.float span { display: block; color: var(--muted); font-size: 10px; }

.float em {
  display: inline-block;
  margin-top: 3px;
  background: #dcfce7;
  color: #15803d;
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
}

.f1 { left: 8px; top: 56px; }
.f2 { left: 0; top: 196px; }
.f3 { right: 0; top: 86px; }
.f4 { right: 4px; top: 246px; }

.section {
  margin: 0 38px 24px;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.06);
}

.head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.head h2 { font-size: 24px; }
.head a { color: var(--blue); font-weight: 900; font-size: 14px; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}

.cat {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 14px 8px;
  text-align: center;
  transition: 0.2s;
}

.cat:hover,
.card:hover,
.rated:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.06);
}

.cat div {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--soft);
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  font-size: 20px;
}

.cat strong { display: block; font-size: 11px; margin-bottom: 3px; line-height: 1.25; }
.cat span { color: var(--muted); font-size: 10px; line-height: 1.3; }

.cat-grid--section {
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.cat-grid--section .cat {
  padding: 22px 12px;
  border-radius: 16px;
}

.cat-grid--section .cat div {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  font-size: 28px;
  margin-bottom: 12px;
}

.cat-grid--section .cat strong {
  font-size: 14px;
  margin-bottom: 5px;
}

.cat-grid--section .cat span {
  font-size: 12px;
}

.layout {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 0.95fr;
  gap: 24px;
  margin: 0 38px 24px;
}

.layout--split {
  grid-template-columns: 1fr 1fr;
}

.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.06);
}

.cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.cards--section {
  grid-template-columns: repeat(3, 1fr);
}

#networks .cards,
#networks .cards--section {
  grid-template-columns: repeat(6, 1fr);
}

.card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: 0.2s;
}

.card-img {
  height: 125px;
  display: grid;
  place-items: center;
  font-size: 44px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.1));
  position: relative;
  text-decoration: none;
  color: inherit;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 900;
}

.card-body { padding: 14px; }
.card h3 { font-size: 13px; margin-bottom: 5px; }
.card p { color: var(--muted); font-size: 11px; margin-bottom: 8px; }

.small-status {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 900;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.outline,
.fill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.outline {
  background: #fff;
  border: 1px solid var(--blue);
  color: var(--blue);
}

.fill {
  background: var(--blue);
  border: 1px solid var(--blue);
  color: #fff;
}

.outline.is-following,
.fill.is-joined {
  background: var(--soft);
  border-color: var(--blue);
  color: var(--blue);
}

.outline:disabled,
.fill:disabled {
  opacity: 0.7;
  cursor: wait;
}

.card h3 a {
  color: inherit;
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--blue);
}

.diaspora-detail-hero {
  margin: 24px 42px 0;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff, var(--soft));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.diaspora-detail-head {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 16px;
}

.diaspora-detail-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 120px;
  border-radius: 16px;
  background: #eef2ff;
  font-size: 48px;
}

.diaspora-detail-icon {
  line-height: 1;
}

.diaspora-detail-visual .badge {
  position: absolute;
  top: 10px;
  left: 10px;
}

.diaspora-detail-intro .tag {
  display: inline-block;
  margin-bottom: 8px;
}

.diaspora-detail-intro h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.diaspora-detail-location {
  color: var(--muted);
  margin-bottom: 16px;
}

.diaspora-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.diaspora-detail-actions .outline,
.diaspora-detail-actions .fill {
  min-width: 112px;
  min-height: 42px;
  height: auto;
  padding: 0 18px;
  border-radius: 11px;
  font-size: 13px;
}

.diaspora-stats-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
  margin-top: 8px;
}

.diaspora-follow-meta,
.diaspora-join-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin: 0;
}

.diaspora-follow-meta:not([hidden]) + .diaspora-join-meta:not([hidden])::before {
  content: '·';
  margin-right: 10px;
  color: var(--muted);
}

.diaspora-detail-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
  margin: 24px 42px;
}

.diaspora-detail-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.diaspora-detail-panel h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.diaspora-detail-about {
  color: #344054;
  line-height: 1.6;
  font-size: 15px;
}

.diaspora-detail-meta {
  list-style: none;
  display: grid;
  gap: 12px;
}

.diaspora-detail-meta li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.diaspora-detail-meta li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.diaspora-detail-meta span {
  color: var(--muted);
  font-size: 13px;
}

.diaspora-detail-meta strong {
  text-align: right;
  font-size: 13px;
}

@media (max-width: 900px) {
  .diaspora-detail-hero,
  .diaspora-detail-grid {
    margin-left: 16px;
    margin-right: 16px;
  }

  .diaspora-detail-head,
  .diaspora-detail-grid {
    grid-template-columns: 1fr;
  }
}

.why {
  list-style: none;
  display: grid;
  gap: 20px;
  margin-top: 22px;
  color: #344054;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.45;
}

.why li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.why li:before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  margin-right: 0;
  font-size: 14px;
  font-weight: 900;
}

.rated-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.rated {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  transition: 0.2s;
}

.rated-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--soft);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.rated strong { font-size: 13px; }
.rated span { display: block; color: var(--muted); font-size: 11px; }
.star { color: var(--orange); font-weight: 900; font-size: 12px; }

.how {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  margin: 0 38px 24px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  text-align: center;
}

.step-icon {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  font-size: 34px;
}

.step-no {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 12px;
  margin: 0 auto -8px;
  position: relative;
  z-index: 2;
}

.step strong { display: block; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 12px; }

.cta-panel {
  background: linear-gradient(135deg, #f5f9ff, #fff);
  border-color: rgba(37, 99, 235, 0.15);
}

.cta-panel h2 { font-size: 22px; margin-bottom: 14px; }
.cta-panel h2 + h2 { font-size: 20px; }

.cta-panel ul {
  list-style: none;
  display: grid;
  gap: 8px;
  color: #344054;
  font-weight: 700;
  margin-bottom: 18px;
}

.cta-panel li:before {
  content: "✓";
  color: var(--green);
  margin-right: 8px;
}

.browse {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.browse--wide {
  grid-template-columns: repeat(3, 1fr);
}

.country {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

.country strong { display: block; margin-bottom: 10px; }

.country-city-group {
  margin-bottom: 22px;
}

.country-city-group:last-child {
  margin-bottom: 0;
}

.country-city-group-head {
  margin-bottom: 12px;
}

.country-city-group-head h3 {
  font-size: 16px;
}

.country-city-group-head a {
  color: var(--blue);
  font-weight: 900;
  font-size: 13px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 800;
  color: #344054;
}

.chip.active,
.chip.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.notice {
  margin: 0 38px 24px;
  padding: 16px 20px;
  border-radius: 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 14px;
  font-weight: 700;
}

.big-cta {
  margin: 0 38px 32px;
  padding: 34px 44px;
  border-radius: 18px;
  background: linear-gradient(135deg, #07152f, #2563eb);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.18);
}

.big-cta h2 { font-size: 32px; margin-bottom: 6px; }
.big-cta p { opacity: 0.9; }

.big-cta button {
  border: 0;
  background: var(--orange);
  color: #fff;
  padding: 16px 26px;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
}

.section-hero {
  margin: 24px 38px;
  padding: 28px 30px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.section-hero .tag { margin-bottom: 12px; }
.section-hero h1 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -1px; margin-bottom: 10px; }
.section-hero h1 span { color: var(--blue); }
.section-hero p { color: var(--muted); max-width: 680px; }

.section-back {
  display: inline-block;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 800;
  font-size: 14px;
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.city-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  transition: 0.2s;
}

.city-card:hover,
.city-card.is-active {
  border-color: var(--blue);
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.06);
}

.city-card strong { display: block; margin-bottom: 4px; }
.city-card span { color: var(--muted); font-size: 12px; }

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hub-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  background: #fff;
}

.hub-card .hub-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--soft);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  font-size: 22px;
}

.empty {
  color: var(--muted);
  font-size: 14px;
  padding: 8px 0;
}

footer { padding: 0 38px 34px; }

.footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding-top: 28px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) 1.3fr;
  gap: 34px;
}

.footer h3 { font-size: 15px; margin-bottom: 14px; }
.footer p,
.footer a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 9px;
}

.newsletter {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  height: 48px;
  margin-top: 12px;
  background: #fff;
  padding-right: 6px;
  gap: 6px;
}

.newsletter input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  border-radius: 0;
  padding: 0 14px;
  height: 100%;
  background: transparent;
}

.newsletter button {
  flex-shrink: 0;
  border: 0;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  padding: 0 16px;
  height: 36px;
  cursor: pointer;
}

.copy {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 26px;
  color: var(--muted);
  font-size: 13px;
}

.copy-links { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 1200px) {
  .header,
  .hero,
  .layout,
  .layout--split,
  .how { grid-template-columns: 1fr; }
  .header { height: auto; padding: 20px; }
  .search { grid-template-columns: 1fr; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .cat-grid--section { grid-template-columns: repeat(2, 1fr); }
  .cards,
  .cards--section,
  #networks .cards,
  #networks .cards--section { grid-template-columns: repeat(3, 1fr); }
  .browse,
  .browse--wide,
  .city-grid,
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .footer { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .hero { padding: 40px 20px; }
  .hero h1 { font-size: 42px; }
  .hero-search,
  .trust,
  .steps,
  .big-cta { grid-template-columns: 1fr; }
  .section,
  .layout,
  .how,
  .notice,
  .big-cta,
  .section-hero { margin-left: 14px; margin-right: 14px; }
  .cat-grid,
  .cat-grid--section,
  .cards,
  .cards--section,
  #networks .cards,
  #networks .cards--section,
  .browse,
  .city-grid,
  .hub-grid,
  .footer { grid-template-columns: 1fr; }
  .float { position: static; margin: 10px 0; }
  .visual-stage { width: 100%; height: auto; min-height: auto; }
  .diaspora-hero { width: 100%; max-width: 420px; height: auto; max-height: 420px; margin: 0 auto 16px; }
  .orbit { display: none; }
  .visual { display: block; min-height: auto; }
  footer { padding: 0 14px 24px; }
  .nav { justify-content: flex-start; }
  .actions { flex-wrap: wrap; justify-content: flex-end; }
}

/* Website auth modals (shared SiteAuth / site-login.js) */
.hit-diaspora-page.site-login-open {
  overflow: hidden;
}

.hit-diaspora-page .site-login-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 16px;
}

.hit-diaspora-page .site-login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.hit-diaspora-page .site-login-panel {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  padding: 24px;
}

.hit-diaspora-page .site-login-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.hit-diaspora-page .site-login-panel h2 {
  margin: 0 0 6px;
  font-size: 24px;
  color: var(--text);
}

.hit-diaspora-page .site-login-sub {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.hit-diaspora-page .site-login-error {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 700;
}

.hit-diaspora-page .site-login-form {
  display: grid;
  gap: 12px;
}

.hit-diaspora-page .site-login-form label {
  display: grid;
  gap: 6px;
}

.hit-diaspora-page .site-login-form label span {
  font-size: 12px;
  font-weight: 800;
  color: #334155;
}

.hit-diaspora-page .site-login-form input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  box-sizing: border-box;
}

.hit-diaspora-page .site-login-remember {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.hit-diaspora-page .site-login-remember input {
  width: auto;
  height: auto;
}

.hit-diaspora-page .site-login-submit,
.hit-diaspora-page .btn.red {
  width: 100%;
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  background: #e30613;
  cursor: pointer;
}

.hit-diaspora-page .site-auth-switch {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.hit-diaspora-page .site-auth-switch a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.hit-diaspora-page .site-auth-switch a:hover {
  text-decoration: underline;
}

/* Diaspora List Page */
.hit-diaspora-list-page .diaspora-list-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 42px 56px;
}

.diaspora-list-head {
  margin: 18px 0 28px;
}

.diaspora-list-head h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 12px 0 8px;
  color: var(--text);
}

.diaspora-list-head p {
  color: var(--muted);
  max-width: 720px;
  font-size: 15px;
}

.diaspora-list-alert {
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 22px;
}

.diaspora-list-alert.hidden {
  display: none;
}

.diaspora-list-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.diaspora-list-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.diaspora-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.diaspora-list-field {
  display: grid;
  gap: 8px;
}

.diaspora-list-field-wide {
  grid-column: 1 / -1;
}

.diaspora-list-field span {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.diaspora-list-field em {
  color: var(--orange);
  font-style: normal;
}

.diaspora-list-field input,
.diaspora-list-field textarea,
.diaspora-list-field select {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.diaspora-list-field input:focus,
.diaspora-list-field textarea:focus,
.diaspora-list-field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.diaspora-list-field textarea {
  resize: vertical;
  min-height: 96px;
}

.diaspora-list-actions {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

.diaspora-list-actions .primary-btn {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  border: 0;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.diaspora-list-actions .primary-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.diaspora-list-note {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 720px) {
  .hit-diaspora-list-page .diaspora-list-shell {
    padding: 20px 14px 40px;
  }
  .diaspora-list-form {
    padding: 20px;
  }
  .diaspora-list-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}


