/* ================================================================
   Veralia Globe — Page-Specific Styles
   ================================================================
   Only add styles here that apply to a single page or feature.
   Keep global styles in main.css.
   Each section below is a page — add the CSS under its section.
   ================================================================ */


/* ================================================================
   Auth Pages (Login, Register, Forgot, Reset, Verify)
   ================================================================ */
.page-auth .app__main {
  background: var(--color-bg-subtle);
}
/* Stack multiple error lines with a gentle gap */
.flash > div + div {
  margin-top: 4px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}


/* ================================================================
   Home / Landing Page
   ================================================================ */
.home-hero {
  margin-bottom: 16px;
}

.home-hero h1 {
  margin-bottom: 8px;
}

.home-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.home-status__item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.home-status__item:last-child {
  border-bottom: 0;
}

.home-quick {
  display: grid;
  gap: 10px;
}

.home-quick__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  background: var(--color-surface-hover);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
}

.home-quick__item:hover {
  background: var(--color-brand-soft);
  text-decoration: none;
}

.home-people {
  display: grid;
  gap: 12px;
}

.home-person {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
  text-decoration: none;
}

.home-person img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.home-person span {
  display: block;
  color: var(--color-text-muted);
  font-size: .9rem;
}

@media (max-width: 800px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   Explore Page
   ================================================================ */

.explore-hero {
  margin-bottom: 16px;
}

.explore-search {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.explore-search input {
  flex: 1;
}

.explore-people {
  display: grid;
  gap: 12px;
}

.explore-person {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
  text-decoration: none;
}

.explore-person:hover {
  text-decoration: none;
}

.explore-person img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.explore-person span {
  display: block;
  color: var(--color-text-muted);
  font-size: .9rem;
}

@media (max-width: 700px) {
  .explore-search {
    flex-direction: column;
  }
}

/* ================================================================
   Veral Feed Page
   ================================================================ */

/* ---- Tabs ---- */
.feed__tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  margin: -16px -16px 16px;
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10;
}

.feed__tab {
  flex: 1;
  text-align: center;
  padding: 14px 12px;
  color: var(--color-text-muted);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.feed__tab:hover {
  color: var(--color-text);
  background: var(--color-surface-hover);
  text-decoration: none;
}
.feed__tab--active {
  color: var(--color-text);
  border-bottom-color: var(--color-brand);
}

/* ---- Compose ---- */
.compose {
  margin-bottom: 16px;
}

.compose__row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.compose__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-bg-muted);
}

.compose__textarea {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 1.05rem;
  line-height: 1.4;
  resize: none;
  min-height: 60px;
  padding: 10px 0;
}
.compose__textarea::placeholder {
  color: var(--color-text-subtle);
}

.compose__preview {
  position: relative;
  margin: 8px 0 0 56px;
  max-width: 100%;
}
.compose__preview img {
  max-height: 340px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}
.compose__preview-remove {
  position: absolute;
  top: 8px; right: 8px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compose__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  border-top: 1px solid var(--color-border);
  padding-top: 10px;
}

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

.compose__tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: var(--color-brand);
  cursor: pointer;
  transition: background 0.15s;
}
.compose__tool:hover { background: var(--color-brand-soft); }

.compose__counter { font-size: 0.85rem; }


/* ---- Veral card ---- */
.veral {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.1s;
}
.veral:hover {
  background: var(--color-surface-hover);
}
.feed__list .veral:last-child {
  border-bottom: none;
}

.veral__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-bg-muted);
}

.veral__body {
  flex: 1;
  min-width: 0;
}

.veral__head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.veral__time a { color: inherit; }

.veral__content {
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.45;
  margin: 4px 0 8px;
}

.veral__image {
  max-width: 100%;
  max-height: 500px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  margin: 8px 0;
}

.veral__actions {
  display: flex;
  gap: 32px;
  margin-top: 8px;
  color: var(--color-text-muted);
}

.veral__action,
.veral__action-form {
  display: inline-flex;
  align-items: center;
}
.veral__action-form { margin: 0; }

.veral__action {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.veral__action:hover {
  background: var(--color-brand-soft);
  color: var(--color-brand);
  text-decoration: none;
}
.veral__action--active {
  color: var(--color-danger);
}
.veral__action i {
  width: 18px;
  height: 18px;
}

/* ---- More menu on own Verals ---- */
.veral__menu {
  margin-left: auto;
  position: relative;
}
.veral__menu details { position: relative; }
.veral__menu summary {
  list-style: none;
  cursor: pointer;
  color: var(--color-text-muted);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.veral__menu summary::-webkit-details-marker { display: none; }
.veral__menu summary:hover {
  background: var(--color-surface-hover);
  color: var(--color-text);
}
.veral__menu-items {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  min-width: 160px;
  z-index: 20;
  padding: 6px;
}
.veral__menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: none;
  color: var(--color-text);
  cursor: pointer;
  border-radius: 6px;
  font: inherit;
  text-align: left;
}
.veral__menu-item:hover { background: var(--color-surface-hover); }
.veral__menu-item--danger { color: var(--color-danger); }

.feed__more { padding: 16px; }


/* ---- Comments (on view.php) ---- */
.comment-compose { margin-top: 16px; }

.comments {
  margin-top: 24px;
}
.comments__title {
  margin: 0 0 12px;
  font-size: 1rem;
}

.comment {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--color-border);
}
.comment__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-bg-muted);
}
.comment__body { flex: 1; min-width: 0; }
.comment__content {
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-top: 2px;
}

.comment__image-link {
  display: inline-block;
  margin-top: 8px;
  border-radius: 14px;
  overflow: hidden;
}

.comment__image {
  display: block;
  max-width: min(100%, 320px);
  max-height: 420px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
}

/* ================================================================
   Profile Page
   ================================================================ */
.profile { }

.profile__cover {
  height: 200px;
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-deep));
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  margin: -16px -16px 0;
}

.profile__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: -48px;
  padding: 0 4px;
}

.profile__avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 4px solid var(--color-bg);
  background: var(--color-bg-muted);
  object-fit: cover;
}

.profile__actions {
  padding-bottom: 8px;
}

.profile__body {
  margin-top: 12px;
}

.profile__name {
  margin: 0 0 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.profile__handle {
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.profile__bio {
  margin: 12px 0;
  white-space: pre-wrap;
}

.profile__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.profile__stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.profile__stat {
  display: inline-flex;
  gap: 4px;
  align-items: baseline;
}

.profile__stat strong { font-size: 1rem; }

/* Clickable stats (Followers / Following) */
.profile__stat--link {
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
  padding: 2px 6px;
  margin: -2px -6px;
  transition: background 0.12s;
}
.profile__stat--link:hover {
  background: var(--color-surface-hover);
  text-decoration: none;
}
.profile__stat--link:hover strong {
  text-decoration: underline;
}


/* ================================================================
   Profile — Followers / Following list pages
   ================================================================ */
.profile-list {
  max-width: 640px;
  margin: 0 auto;
  padding: 12px;
}

.profile-list__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px 16px;
}

.profile-list__back {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand);
  text-decoration: none;
  flex-shrink: 0;
}
.profile-list__back:hover {
  background: var(--color-surface-hover);
  text-decoration: none;
}
.profile-list__back i { width: 24px; height: 24px; }

.profile-list__title h1 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
}
.profile-list__title span {
  font-size: 0.88rem;
}

.profile-list__items {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-surface);
}
.profile-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}
.profile-list__item + .profile-list__item {
  border-top: 1px solid var(--color-border);
}

.profile-list__row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: var(--color-text);
}
.profile-list__row:hover { text-decoration: none; }
.profile-list__row:hover strong { text-decoration: underline; }

.profile-list__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-bg-muted);
  flex-shrink: 0;
}

.profile-list__info {
  flex: 1;
  min-width: 0;
}
.profile-list__name {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.profile-list__handle {
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.profile-list__action {
  flex-shrink: 0;
}


/* ================================================================
   Profile — Settings
   ================================================================ */
.settings__section {
  margin-bottom: 20px;
}

.settings__section h2 {
  margin-top: 0;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 8px;
  margin-bottom: 16px;
}


/* ================================================================
   Messages
   ================================================================
   Moved to /assets/css/messages.css — loaded only on /messages/ pages.
   ================================================================ */



/* ================================================================
   Notifications
   ================================================================ */
.notif__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.notif__header h1 { margin: 0; }

.notif__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notif {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.1s, opacity 0.25s, max-height 0.25s, padding 0.25s, margin 0.25s;
  max-height: 200px;
  overflow: hidden;
}
.notif:hover { background: var(--color-surface-hover); }
.notif--unread {
  background: color-mix(in srgb, var(--color-brand-soft) 40%, transparent);
  border-left: 3px solid var(--color-brand);
}
.notif--unread:hover { background: var(--color-brand-soft); }

.notif__link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--color-text);
}
.notif__link:hover { text-decoration: none; }

/* Non-linked notifications use the same flex layout as a tag */
div.notif__link {
  cursor: default;
}

.notif__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-brand-soft);
  color: var(--color-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notif__icon i { width: 18px; height: 18px; }

.notif__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-bg-muted);
  flex-shrink: 0;
}

.notif__body {
  flex: 1;
  min-width: 0;
}
.notif__text {
  line-height: 1.4;
}
.notif__preview {
  display: inline;
  font-style: italic;
}
.notif__time {
  font-size: 0.85rem;
  margin-top: 2px;
}

.notif__thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.notif__tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--color-border);
  margin: 0 0 16px;
  padding: 0;
}

.notif__tab {
  padding: 12px 20px;
  color: var(--color-text-muted);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s, border-color 0.15s;
}

.notif__tab:hover {
  color: var(--color-text);
  text-decoration: none;
}

.notif__tab--active {
  color: var(--color-brand);
  border-bottom-color: var(--color-brand);
}

.notif__tab i { width: 16px; height: 16px; }

.notification__delete {
  all: unset;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-danger);
  cursor: pointer;
  line-height: 1;
}
.notification__delete svg {
  width: 15px;
  height: 15px;
}
.notification__delete:hover {
  opacity: .75;
}
.notification__delete i { width: 14px; height: 14px; }


/* ================================================================
   Home: Logged-in Feed
   ================================================================ */
.feed__tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--color-border);
  margin: 0 0 16px;
  padding: 0;
}
.feed__tab {
  padding: 12px 20px;
  color: var(--color-text-muted);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s, border-color 0.15s;
}
.feed__tab:hover {
  color: var(--color-text);
  text-decoration: none;
}
.feed__tab--active {
  color: var(--color-brand);
  border-bottom-color: var(--color-brand);
}
.feed__tab i { width: 16px; height: 16px; }


/* ---- Compose box ---- */
.compose {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
}
.compose__row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.compose__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-bg-muted);
}
.compose__textarea {
  flex: 1;
  min-height: 60px;
  max-height: 240px;
  padding: 10px 0;
  border: none;
  background: transparent;
  resize: none;
  font: inherit;
  color: var(--color-text);
}
.compose__textarea:focus { outline: none; }
.compose__bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}
.compose__attach {
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand);
  background: var(--color-brand-soft);
  margin-right: auto;
}
.compose__attach:hover { background: var(--color-brand); color: var(--color-text-on-brand); }
.compose__counter {
  font-size: 0.8rem;
  color: var(--color-text-subtle);
}


/* ================================================================
   Home: Logged-out Landing
   ================================================================ */
.page-landing .app__main-inner { max-width: none; padding: 0; }

.landing-hero {
  text-align: center;
  padding: 64px 24px 48px;
  background: linear-gradient(180deg,
    var(--color-brand-soft) 0%,
    transparent 100%);
}
.landing-hero__logo {
  max-width: 380px;
  width: 100%;
  height: auto;
  margin: 0 auto 24px;
  display: block;
}
.landing-hero__tagline {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--color-brand-deep);
  font-style: italic;
}
.landing-hero__sub {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}
.landing-hero__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.landing-hero__login {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-top: 16px;
}


.landing-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 880px;
  margin: 32px auto;
  padding: 0 24px;
}
.landing-pillar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
}
.landing-pillar__icon {
  font-size: 2.25rem;
  margin-bottom: 10px;
}
.landing-pillar h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}
.landing-pillar p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}


.landing-section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 24px;
}
.landing-why {
  background: var(--color-bg-subtle);
  padding: 56px 24px;
  margin: 24px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.landing-why__grid {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.landing-why__grid h4 {
  font-size: 1.05rem;
  margin: 0 0 6px;
}
.landing-why__grid p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}


.landing-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 48px;
  padding: 40px 24px;
}
.landing-stat { text-align: center; }
.landing-stat__num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-brand);
  line-height: 1;
}
.landing-stat__label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}


.landing-final {
  text-align: center;
  padding: 56px 24px 64px;
  background: linear-gradient(135deg, var(--color-brand-deep), var(--color-brand));
  color: #fff;
  margin-top: 32px;
}
.landing-final h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin: 0 0 8px;
}
.landing-final p {
  color: rgba(255,255,255,0.85);
  margin: 0 0 24px;
  font-size: 1.05rem;
}
.landing-final .btn--primary {
  background: #fff;
  color: var(--color-brand-deep);
}
.landing-final .btn--primary:hover {
  background: rgba(255,255,255,0.92);
}
.landing-final__note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}


/* ================================================================
   Ban System (banned.php + unlock.php)
   ================================================================ */

/* ---- Garden of Truth and Kindness (hard-banned full-screen) ---- */
.page-banned { background: var(--color-bg-subtle); }
.banned {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  max-width: 560px;
  margin: 0 auto;
}
.banned__logo {
  max-width: 220px;
  width: 100%;
  height: auto;
  margin-bottom: 32px;
  opacity: 0.9;
}
.banned__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 24px;
  color: var(--color-brand-deep);
  font-weight: 700;
}
.banned__msg {
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.7;
  margin: 0 0 12px;
  max-width: 440px;
}
.banned__msg--soft {
  color: var(--color-brand);
  font-weight: 500;
  margin-top: 18px;
}
.banned__welcome {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 36px;
  margin-bottom: 16px;
  font-style: italic;
}
.banned__logout {
  margin-top: 8px;
}


/* ---- Request Unban page ---- */
.unlock {
  max-width: 600px;
  margin: 0 auto;
}
.unlock__title {
  margin: 0 0 16px;
}
.unlock__intro {
  background: var(--color-brand-soft);
  border: 1px solid var(--color-brand);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
  line-height: 1.7;
}
.unlock__intro p { margin: 0 0 8px; }
.unlock__intro p:last-child { margin: 0; }


/* Restricted user "Request Unban" nav item — gentle warning color */
.nav__item--unlock {
  color: var(--color-warning) !important;
  font-weight: 600;
}
.nav__item--unlock:hover {
  background: rgba(245, 158, 11, 0.1) !important;
}


/* ================================================================
   Nav Badges (on Messages + Notifications nav items)
   ================================================================ */
.nav__icon { position: relative; }

.nav__badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--color-danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid var(--color-bg);
  pointer-events: none;
}

/* Same on mobile bottom nav */
.bottom-nav__icon { position: relative; }
.bottom-nav__badge {
  position: absolute;
  top: -2px;
  right: -8px;
  background: var(--color-danger);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 1.5px solid var(--color-bg);
}


/* ================================================================
   Info Pages (About, Donate, Guidelines, Terms, Privacy, Install)
   ================================================================ */

/* ---- Shared hero ---- */
.info-hero {
  text-align: center;
  padding: 60px 24px 40px;
  position: relative;
}
.info-hero--small { padding: 40px 24px 28px; }

.info-hero__logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  display: block;
}

.info-hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.info-hero__title span { color: var(--color-brand); }

.info-hero__tagline {
  font-style: italic;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.info-hero__subtitle {
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.info-hero__buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}


/* ---- Name meaning card (About) ---- */
.info-meaning {
  max-width: 520px;
  margin: 32px auto;
  padding: 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  text-align: left;
}

.info-meaning__label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 20px;
}

.info-meaning__row {
  display: grid;
  grid-template-columns: 80px 1px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}
.info-meaning__row:last-of-type { border-bottom: none; }

.info-meaning__word {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-brand);
}
.info-meaning__divider {
  width: 1px;
  background: var(--color-border);
  align-self: stretch;
}
.info-meaning__lang {
  font-size: 0.8rem;
  color: var(--color-text-subtle);
  margin-bottom: 2px;
}
.info-meaning__def { font-size: 0.95rem; }
.info-meaning__def strong { color: var(--color-accent); }

.info-meaning__full {
  text-align: center;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--color-border);
  font-size: 1rem;
}


/* ---- Stats bar ---- */
.info-stats {
  background: var(--color-bg-subtle);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 32px 16px;
  margin: 24px -16px;
}
.info-stats__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}
.info-stats__box { text-align: center; }
.info-stats__num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-brand);
  line-height: 1;
}
.info-stats__label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}


/* ---- Section blocks ---- */
.info-section {
  padding: 48px 0;
}
.info-section--alt {
  background: var(--color-bg-subtle);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin: 0 -16px;
  padding: 48px 16px;
}

.info-section__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-brand);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
  margin-bottom: 8px;
}
.info-section__title {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin: 0 0 8px;
}
.info-section__sub {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.7;
}


/* ---- Values grid ---- */
.info-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}
.info-value {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}
.info-value:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.info-value__emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}
.info-value__title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.info-value__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}


/* ---- Story ---- */
.info-story {
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 28px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
}
.info-story p { margin-bottom: 14px; }
.info-story em { color: var(--color-text-muted); }
.info-story blockquote {
  margin: 18px 0;
  padding-left: 14px;
  border-left: 3px solid var(--color-brand);
  font-style: italic;
  color: var(--color-brand-deep);
}


/* ---- Peace tier rows (About) ---- */
.info-tiers {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.info-tier {
  display: grid;
  grid-template-columns: 130px 1px 1fr;
  align-items: center;
  gap: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 14px 18px;
}
.info-tier__range {
  font-weight: 700;
  font-size: 1rem;
}
.info-tier--peacekeeper .info-tier__range { color: var(--color-brand); }
.info-tier--good        .info-tier__range { color: #60a5fa; }
.info-tier--caution     .info-tier__range { color: var(--color-warning); }
.info-tier--at-risk     .info-tier__range { color: var(--color-danger); }

.info-tier__divider {
  width: 1px;
  align-self: stretch;
  background: var(--color-border);
}
.info-tier__title {
  font-weight: 700;
  margin-bottom: 2px;
}
.info-tier__desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}


/* ---- Final CTA (About) ---- */
.info-cta {
  text-align: center;
  padding: 64px 24px;
  background: linear-gradient(135deg, var(--color-brand-deep), var(--color-brand));
  color: #fff;
  margin: 24px -16px 0;
  border-radius: 16px 16px 0 0;
}
.info-cta__logo {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 0 24px rgba(255,255,255,0.3));
}
.info-cta h2 {
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 8px;
}
.info-cta p {
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  margin: 0 auto 24px;
}
.info-cta__note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}


/* ================================================================
   Donate page
   ================================================================ */
.info-hero--donate { padding: 60px 24px 16px; }

.donate-icon {
  width: 72px; height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--color-brand), var(--color-success));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: #fff;
  box-shadow: 0 12px 32px rgba(29, 78, 216, 0.3);
}
.donate-icon i { width: 28px; height: 28px; }

.donate-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 32px 0 8px;
}
.donate-stat { text-align: center; }
.donate-stat__num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-brand);
  display: block;
  line-height: 1;
}
.donate-stat__label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.donate-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  max-width: 880px;
  margin: 24px auto 32px;
}
@media (max-width: 800px) {
  .donate-grid { grid-template-columns: 1fr; }
}

.donate-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.donate-card--main { padding: 28px; }

.donate-card__title {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.1rem;
  margin: 0 0 4px;
}
.donate-card__title i {
  width: 18px; height: 18px;
  color: var(--color-brand);
}
.donate-card__sub {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.donate-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
@media (max-width: 480px) {
  .donate-amounts { grid-template-columns: repeat(2, 1fr); }
}
.donate-amount {
  display: block;
  text-align: center;
  padding: 14px 8px;
  border: 2px solid var(--color-border-strong);
  border-radius: 12px;
  background: var(--color-bg-subtle);
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.15s;
}
.donate-amount:hover {
  border-color: var(--color-brand);
  background: var(--color-brand-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.donate-secure {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 6px;
}
.donate-secure i { width: 14px; height: 14px; color: var(--color-success); }

.donate-thanks {
  margin-top: 20px;
  padding: 14px;
  background: var(--color-brand-soft);
  border-radius: 10px;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.6;
}

.donate-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.donate-list {
  list-style: none;
  padding: 0; margin: 0;
}
.donate-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}
.donate-list li:last-child { border-bottom: none; }
.donate-list i {
  width: 16px; height: 16px;
  color: var(--color-brand);
  flex-shrink: 0;
}

.donate-safe {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

.donate-as {
  display: flex;
  align-items: center;
  gap: 12px;
}
.donate-as img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-bg-muted);
}

.donate-quote {
  max-width: 720px;
  margin: 32px auto;
  padding: 32px 24px;
  background: linear-gradient(135deg, var(--color-brand-soft), color-mix(in srgb, var(--color-success) 8%, transparent));
  border: 1px solid var(--color-border);
  border-radius: 18px;
  text-align: center;
}
.donate-quote blockquote {
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  margin: 0 0 12px;
  line-height: 1.5;
  color: var(--color-brand-deep);
}
.donate-quote cite {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}


/* ================================================================
   Doc pages (Guidelines, Terms, Privacy)
   ================================================================ */
.info-doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 0;
}
.info-doc__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 4px;
}
.info-doc__date {
  font-size: 0.9rem;
  color: var(--color-text-subtle);
  margin-bottom: 28px;
}
.info-doc__intro {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}
.info-doc__section { margin-bottom: 24px; }
.info-doc__section h2 {
  font-size: 1.25rem;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}
.info-doc__section p,
.info-doc__section li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 6px;
}
.info-doc__section ul { padding-left: 22px; margin: 8px 0 14px; }


/* ---- Guidelines cards ---- */
.guide-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.guide-card--good { border-left: 3px solid var(--color-success); }
.guide-card--bad  { border-left: 3px solid var(--color-danger);  }

.guide-card__icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.guide-card--good .guide-card__icon { background: rgba(22, 163, 74, 0.1); }
.guide-card--bad  .guide-card__icon { background: rgba(220, 38, 38, 0.1); }

.guide-card__title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.guide-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.guide-card__list {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 6px 0 0;
  padding-left: 20px;
  line-height: 1.7;
}


/* ================================================================
   Install page
   ================================================================ */
.install-why {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.install-why li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
}
.install-why i {
  width: 18px; height: 18px;
  color: var(--color-brand);
  flex-shrink: 0;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}
.install-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 20px;
}
.install-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}
.install-card__head i {
  width: 22px; height: 22px;
  color: var(--color-brand);
}
.install-card__head h3 {
  margin: 0;
  font-size: 1.05rem;
}
.install-card ol {
  padding-left: 22px;
  margin: 0;
  line-height: 1.7;
}
.install-card ol li {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

/* ================================================================
   Groups (v1.5)
   ================================================================ */
.page-groups {
  /* Use existing card layout */
}
 
.groups-hero {
  text-align: center;
  padding: 24px 16px;
}
.groups-hero h1 {
  margin: 0 0 6px;
}
 
.groups-create-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.06), rgba(31, 169, 255, 0.06));
  border: 1px solid var(--color-brand-faint, rgba(29, 78, 216, 0.2));
  margin-top: 16px;
}
.groups-create-card__body { flex: 1; min-width: 0; }
.groups-create-card__body h2 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}
.groups-create-card__body p {
  margin: 0 0 12px;
}
 
.groups-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.groups-list__item + .groups-list__item {
  border-top: 1px solid var(--color-border);
}
.groups-list__row {
  display: flex;
  gap: 12px;
  padding: 12px 4px;
  text-decoration: none;
  color: var(--color-text);
  align-items: center;
}
.groups-list__row:hover { text-decoration: none; }
.groups-list__row:hover strong { text-decoration: underline; }
 
.groups-list__avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-bg-muted, #eef2f7);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-brand);
}
.groups-list__avatar i { width: 24px; height: 24px; }
 
.groups-list__info {
  flex: 1;
  min-width: 0;
}
.groups-list__name {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.groups-list__meta {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
 
/* Status badges (pending / declined / archived / paused / mod / founder) */
.badge-status {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.badge-status--pending  { background: #fff3cd; color: #856404; }
.badge-status--declined { background: #f8d7da; color: #842029; }
.badge-status--archived { background: #e2e3e5; color: #41464b; }
.badge-status--paused   { background: #cfe2ff; color: #084298; }
.badge-status--approved { background: #d1e7dd; color: #0f5132; }
.badge-status--founder  { background: #1d4ed8; color: #fff; }
.badge-status--mod      { background: #1fa9ff; color: #fff; }
 
/* Group view page */
.groups-view {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px;
}
 
/* Groups: 2-column row for Create + My groups */
.groups-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.groups-row > .card {
  margin: 0;        /* override the default top margin from .card stack */
}
.groups-row .groups-create-card {
  margin-top: 0;    /* no extra gap; the row gap handles spacing */
}
 
/* Stack on narrow screens */
@media (max-width: 720px) {
  .groups-row {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   Groups — View page
   ================================================================ */
 
/* Header bar action area (Invite + Settings buttons) */
.groups-view__head-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
 
/* 2-column row: About | Members */
.groups-view__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}
.groups-view__row > .card {
  margin: 0;
  align-self: start;
}
@media (max-width: 720px) {
  .groups-view__row {
    grid-template-columns: 1fr;
  }
}
 
/* Inline action menu next to each member */
.groups-member-actions {
  position: relative;
}
.groups-action-menu summary {
  cursor: pointer;
  list-style: none;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
}
.groups-action-menu summary::-webkit-details-marker { display: none; }
.groups-action-menu summary i { width: 18px; height: 18px; }
 
.groups-action-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 4px;
  min-width: 220px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.groups-action-menu__panel form { margin: 0; }
 
.groups-action-menu__btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-radius: 6px;
  text-align: left;
  font-size: 0.92rem;
  cursor: pointer;
  color: var(--color-text);
}
.groups-action-menu__btn:hover {
  background: var(--color-surface-hover, rgba(0,0,0,0.04));
}
.groups-action-menu__btn--danger { color: #842029; }
.groups-action-menu__btn--danger:hover { background: #f8d7da; }
.groups-action-menu__btn i { width: 16px; height: 16px; flex-shrink: 0; }

/* ================================================================
   Groups — Action menu overflow fix
   ================================================================
   The Members card has overflow:hidden on the list container for
   rounded corners; that was clipping the action menu dropdown.
   These rules ensure the menu can escape the card boundaries.
   ================================================================ */

/* Allow the dropdown to escape the Members card */
.page-groups-view .profile-list__items {
  overflow: visible;
}
.page-groups-view .profile-list__item {
  overflow: visible;
  position: relative;
}

/* Ensure the action wrapper itself doesn't clip its children */
.page-groups-view .groups-member-actions {
  overflow: visible;
}

/* Lift the dropdown above neighbouring rows + the composer */
.groups-action-menu[open] {
  z-index: 100;
}
.groups-action-menu__panel {
  z-index: 101;
}

/* Make sure card containers don't clip either */
.page-groups-view .card {
  overflow: visible;
}

/* ================================================================
   people discovery page.
   ================================================================ */

/* -------- People discovery -------- */
.people-search {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.people-search__input {
  flex: 1;
  position: relative;
}
.people-search__input > i:first-child {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--text-muted);
}
.people-search__input input {
  width: 100%;
  padding: 12px 40px 12px 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 15px;
}
.people-search__clear {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  text-decoration: none;
}
.people-search__clear i { width: 16px; height: 16px; }

.people-filters {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.people-filters__tab {
  padding: 10px 16px;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.people-filters__tab--active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.person-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.person-card__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  gap: 6px;
}
.person-card__avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700;
}
.person-card__name {
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.person-card__badge {
  width: 16px; height: 16px;
  color: var(--cyan, #1fa9ff);
}
.person-card__handle {
  font-size: 13px;
  color: var(--text-muted);
}
.person-card__bio {
  font-size: 13px;
  color: var(--text-muted);
  margin: 4px 0 0;
  line-height: 1.4;
  text-align: center;
}
.person-card__stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  width: 100%;
  margin-top: 6px;
}
.person-card__follow {
  margin: 0;
}

/* peace pill colors — match existing convention */
.peace-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700; font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.peace-pill--green  { background: #dcfce7; color: #15803d; }
.peace-pill--blue   { background: #dbeafe; color: #1d4ed8; }
.peace-pill--yellow { background: #fef3c7; color: #b45309; }
.peace-pill--orange { background: #ffedd5; color: #c2410c; }
.peace-pill--red    { background: #fee2e2; color: #b91c1c; }
