@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --border: #e2e8f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}

h1, h2, h3 {
  letter-spacing: -0.01em;
  line-height: 1.2;
}

p, label, input, select, textarea, button, a {
  letter-spacing: 0;
}

p {
  font-size: 0.98rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem;
}

.landing {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(37, 99, 235, 0.14), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(14, 165, 233, 0.12), transparent 40%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}

.landing-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  align-items: center;
  min-height: 72vh;
}

.hero-copy h1 {
  font-size: clamp(1.85rem, 4vw, 3rem);
  margin: 0.6rem 0;
  line-height: 1.12;
}

.hero-copy p {
  color: var(--muted);
  max-width: 64ch;
}

.hero-card {
  border-radius: 16px;
}

.landing-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #0f172a;
  display: grid;
  gap: 0.55rem;
}

.landing-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 2rem;
}

.landing-features h3 {
  margin-top: 0;
}

.landing-features p {
  margin-bottom: 0;
  color: var(--muted);
}

.simple-landing {
  display: grid;
  align-items: center;
}

.landing-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  min-height: 100vh;
  align-content: center;
}

.action-card {
  border-radius: 16px;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  display: grid;
  gap: 0.75rem;
  min-height: 320px;
  align-content: space-between;
}

.action-card h1 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.action-card p {
  margin: 0;
  color: var(--muted);
}

.center {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.span-2 {
  grid-column: span 2;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.mini-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem;
}

.community-card {
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

.community-list-full {
  grid-template-columns: 1fr;
}

.dashboard-grid .your-communities-card {
  grid-column: 1 / -1;
  width: 100%;
}
.dashboard-grid .your-communities-card .community-list-full {
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
.dashboard-grid .your-communities-card .community-card {
  width: 100%;
}

.community-card h3 {
  margin-top: 0;
}

.meta-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 0.45rem 0 0.7rem;
}

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

.form {
  display: grid;
  gap: 0.75rem;
  min-width: min(480px, 95vw);
}

.form.wide {
  min-width: min(700px, 95vw);
}

.form.compact {
  min-width: 0;
}

label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.95rem;
}

.required-star {
  color: #dc2626;
  font-weight: 800;
  margin-left: 0.15rem;
  font-size: 0.9em;
  line-height: 1;
  position: relative;
  top: -0.02em;
}

.label-text {
  display: inline-flex;
  align-items: center;
  gap: 0.05rem;
}

input,
select,
textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  font-size: 0.95rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 0.62rem 0.9rem;
  background: var(--brand);
  color: white;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.2s ease;
}

.btn.pretty {
  background: #2d5fd3;
  box-shadow: none;
  border: 1px solid #244eaf;
}

.btn.pretty.secondary {
  background: #d9e2ee;
  box-shadow: none;
  border: 1px solid #b6c2d1;
}

.btn.large {
  padding: 0.82rem 1.2rem;
  font-size: 0.95rem;
  border-radius: 12px;
  min-width: 220px;
}

.btn.medium {
  padding: 0.7rem 1.05rem;
  font-size: 0.9rem;
  border-radius: 11px;
  min-width: 190px;
}

.btn:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.btn.pretty:hover {
  background: #244eaf;
}

.btn.pretty.secondary:hover {
  background: #cdd8e6;
}

.btn:active {
  transform: translateY(0);
}

.btn.secondary {
  background: #e2e8f0;
  color: #0f172a;
}

.btn.small {
  padding: 0.45rem 0.7rem;
  font-size: 0.84rem;
}

.btn.ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
}

.btn.ghost:hover {
  background: rgba(37, 99, 235, 0.08);
}

.progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.progress > span {
  display: block;
  height: 100%;
  width: 33.33%;
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
  transition: width 0.2s ease;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.role-card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.16s ease;
}

.role-card:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
}

.role-card.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.step-panel {
  display: grid;
  gap: 0.75rem;
}

#createCommunityForm .step-panel {
  margin-top: 0.35rem;
}

.filter-btn.active {
  background: var(--brand);
  color: #fff;
}

.badge {
  display: inline-flex;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: #334155;
  background: #f8fafc;
  font-size: 0.8rem;
}

.user-menu {
  position: relative;
}

.avatar-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.avatar-circle.lg {
  width: 64px;
  height: 64px;
  font-size: 1.15rem;
}

.avatar-image {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.avatar-image.lg {
  width: 64px;
  height: 64px;
}
.avatar-circle.xl {
  width: 116px;
  height: 116px;
  font-size: 2rem;
  background: linear-gradient(140deg, #0f172a, #334155);
  box-shadow: 0 20px 34px rgba(15, 23, 42, 0.24);
}
.avatar-image.xl {
  width: 116px;
  height: 116px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 34px rgba(15, 23, 42, 0.22);
}
.profile-avatar-wrap {
  padding: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(226, 232, 240, 0.75));
  border: 1px solid rgba(148, 163, 184, 0.32);
}

.avatar-wrap {
  position: relative;
}

.inline-label {
  margin-top: 0.35rem;
  display: inline-grid;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.role-owner {
  background: #dbeafe;
  color: #1d4ed8;
}

.role-vendor {
  background: #dcfce7;
  color: #15803d;
}

.menu-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 230px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  display: none;
  overflow: hidden;
  z-index: 100;
}

.user-menu.open .menu-dropdown {
  display: block;
}

.menu-head {
  padding: 0.7rem 0.8rem;
  display: grid;
  gap: 0.15rem;
  border-bottom: 1px solid var(--border);
}

.menu-head small {
  color: var(--muted);
  font-size: 0.8rem;
}

.menu-dropdown a,
.menu-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  padding: 0.65rem 0.8rem;
  cursor: pointer;
  font: inherit;
}

.menu-dropdown a:hover,
.menu-dropdown button:hover {
  background: #f8fafc;
}

.profile-hero {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.role-box {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 0.75rem;
  background: #f8fafc;
}

.row {
  display: flex;
}

.wrap {
  flex-wrap: wrap;
}

.gap {
  gap: 0.55rem;
}

.between {
  justify-content: space-between;
}

.middle {
  align-items: center;
}

.action-panel {
  min-height: 305px;
  display: flex;
  flex-direction: column;
}

.action-panel p {
  margin-bottom: 0.75rem;
}

.panel-actions {
  margin-top: auto;
  display: flex;
  justify-content: flex-start;
}

.flow-card {
  min-height: 380px;
}

.flow-form {
  min-height: 250px;
}

.flow-actions {
  justify-content: center;
  margin-top: auto;
}

.muted {
  color: var(--muted);
}

.message {
  min-height: 1.2rem;
  color: #b91c1c;
  margin-top: 0.25rem;
}

.message.success {
  color: #047857;
}

.admin-card h2 {
  margin-top: 0;
}

.admin-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-checkbox input {
  width: 16px;
  height: 16px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.65rem;
}

.admin-stat-card {
  display: grid;
  gap: 0.2rem;
}

.admin-stat-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.admin-users-list {
  display: grid;
  gap: 0.65rem;
}

.admin-user-row h3 {
  margin: 0;
  font-size: 1rem;
}

.admin-user-row .muted {
  margin: 0.2rem 0 0;
}

.admin-user-meta {
  font-size: 0.85rem;
}

.list {
  display: grid;
  gap: 0.65rem;
}

.member-card {
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.community-hub {
  display: grid;
  gap: 0.9rem;
}

.community-hub-head h2 {
  margin: 0;
}

.community-hub-head p {
  margin: 0.25rem 0 0;
}

.member-stats {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.member-stats .badge {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.invite-inline-form {
  display: grid;
  grid-template-columns: minmax(240px, 1.8fr) minmax(140px, 1fr) auto;
  gap: 0.6rem;
  align-items: end;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.invite-inline-form label {
  margin: 0;
}

.community-hub-head-right {
  display: flex;
  justify-content: flex-end;
}
.back-link {
  background: transparent !important;
  color: #475569 !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0.25rem 0.35rem;
  min-width: 0;
}
.back-link:hover {
  background: rgba(148, 163, 184, 0.12) !important;
  color: #0f172a !important;
  transform: none;
}

.topbar-centered {
  position: sticky;
  padding-left: 0.95rem;
  padding-right: 1.05rem;
}

.topbar-centered .page-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(60vw, 460px);
  pointer-events: none;
}

.back-arrow {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: #475569;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.26);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.back-arrow:hover {
  background: rgba(255, 255, 255, 0.8);
  color: #0f172a;
  transform: translateY(-1px);
}

.refer-header-btn {
  min-width: 138px;
  border-radius: 999px;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}

.refer-confirm-card {
  width: min(430px, 95vw);
  display: grid;
  gap: 0.75rem;
}

.refer-confirm-card h3 {
  margin: 0;
}

.refer-invite-card {
  width: min(620px, 96vw);
  display: grid;
  gap: 0.8rem;
}

.refer-invite-card h3 {
  margin: 0;
}

.refer-tabs {
  display: inline-flex;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
  width: fit-content;
  background: #f8fafc;
}

.refer-tab {
  border: 0;
  background: transparent;
  padding: 0.48rem 0.85rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
}

.refer-tab.active {
  background: #e8f0ff;
  color: #1d4ed8;
}

.refer-modal-form {
  display: grid;
  gap: 0.75rem;
}

.refer-fields {
  display: grid;
  gap: 0.62rem;
}

.member-filters {
  margin-top: 0.15rem;
  padding-top: 0.1rem;
}

.member-search-wrap {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.15rem;
}

.member-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1.8fr) minmax(170px, 1fr);
  gap: 0.65rem;
  align-items: end;
}

.member-sort-wrap {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.15rem;
}

.member-search-wrap span {
  font-size: 0.9rem;
  color: #334155;
  font-weight: 600;
}

.member-sort-wrap span {
  font-size: 0.9rem;
  color: #334155;
  font-weight: 600;
}

.member-search-wrap input {
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
}

.member-sort-wrap select {
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 0.6rem 0.7rem;
  font-size: 0.95rem;
}

.member-filters .filter-btn {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
}

.member-filters .filter-btn.secondary {
  background: #f8fafc;
}

.member-filters .filter-btn.active {
  background: #e8f0ff;
  color: #1d4ed8;
  border-color: #93c5fd;
}

.member-grid {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}

.member-card-compact {
  display: grid;
  gap: 0.9rem;
  min-height: 172px;
  padding: 1rem 1.05rem;
  border-color: #dbeafe;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.member-card-head h3 {
  margin: 0;
  font-size: 1rem;
}

.member-email {
  margin: 0.12rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.member-summary {
  margin: 0;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.45;
}

.member-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.82rem;
  color: #1d4ed8;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  flex-shrink: 0;
}

.member-meta {
  padding-top: 0.05rem;
}

.member-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-content {
  width: min(560px, 96vw);
}

.modal-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem 1rem;
}

.modal-content h4 {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.95rem;
  color: #334155;
}

.modal-content p {
  margin: 0.2rem 0;
}

.hidden {
  display: none;
}

/* App-grade visual refresh */
:root {
  --bg: #eef1f6;
  --card: rgba(255, 255, 255, 0.72);
  --text: #0b1020;
  --muted: #5f6b80;
  --brand: #1f2937;
  --brand-dark: #0f172a;
  --border: rgba(148, 163, 184, 0.3);
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.92), transparent 34%),
    radial-gradient(circle at 90% 8%, rgba(203, 213, 225, 0.38), transparent 32%),
    linear-gradient(180deg, #f8f9fc 0%, #eef2f7 100%);
}

.container {
  max-width: 1180px;
  padding: 1.35rem;
}

.topbar {
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(148, 163, 184, 0.26);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 8px 26px rgba(2, 6, 23, 0.05);
}

.card,
.mini-card,
.action-card,
.community-card,
.role-box,
.modal-content {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px) saturate(140%);
  border-radius: 18px;
}

.card {
  padding: 1.15rem;
}

.mini-card {
  border-radius: 16px;
}

.community-card,
.member-card-compact {
  background: rgba(255, 255, 255, 0.78);
}

.btn {
  border-radius: 12px;
  border: 1px solid rgba(100, 116, 139, 0.24);
  background: #111827;
  color: #fff;
  font-weight: 650;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.btn:hover {
  background: #0b1220;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.btn.secondary,
.btn.pretty.secondary {
  background: rgba(255, 255, 255, 0.7);
  color: #111827;
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.btn.secondary:hover,
.btn.pretty.secondary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn.pretty {
  background: #111827;
  border-color: rgba(100, 116, 139, 0.24);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.btn.pretty:hover {
  background: #0b1220;
}

.btn.danger {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
  box-shadow: none;
}

.btn.danger:hover {
  background: #fecaca;
  color: #991b1b;
  box-shadow: none;
}

input,
select,
textarea {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.82);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(30, 41, 59, 0.5);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.badge {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(148, 163, 184, 0.34);
  color: #334155;
}

.role-owner,
.role-vendor,
.role-admin {
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.role-owner {
  background: rgba(191, 219, 254, 0.55);
  color: #1e40af;
}

.role-vendor {
  background: rgba(187, 247, 208, 0.52);
  color: #166534;
}

.role-admin {
  background: rgba(237, 233, 254, 0.7);
  color: #6d28d9;
}

.menu-dropdown {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px) saturate(160%);
}

.modal {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
}

.member-filters .filter-btn.active,
.refer-tab.active {
  background: rgba(30, 41, 59, 0.08);
  color: #0f172a;
  border-color: rgba(51, 65, 85, 0.25);
}

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

  .landing-actions {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 1.1rem 0;
  }

  .action-card {
    min-height: 280px;
  }

  .action-panel {
    min-height: 260px;
  }

  .landing-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1.4rem;
    padding-bottom: 0.2rem;
  }

  .landing-features {
    grid-template-columns: 1fr;
  }

  .role-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .topbar-centered {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    align-items: center;
    gap: 0.45rem;
  }

  .topbar-centered .page-title {
    position: static;
    transform: none;
    justify-self: center;
    font-size: 1.1rem;
    max-width: 56vw;
    text-align: center;
  }

  .community-hub-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .member-stats {
    justify-content: flex-start;
  }

  .invite-inline-form {
    grid-template-columns: 1fr;
  }

  .invite-inline-form .btn {
    width: 100%;
  }

  .member-tools {
    grid-template-columns: 1fr;
  }

  .refer-header-btn {
    width: 100%;
  }

  .refer-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-grid {
    grid-template-columns: 1fr;
  }

  .modal-info-grid {
    grid-template-columns: 1fr;
  }
}
