:root {
  --community-bg: #02060c;
  --community-card: rgba(8, 16, 27, 0.88);
  --community-card-strong: rgba(10, 18, 30, 0.94);
  --community-line: rgba(94, 124, 164, 0.48);
  --community-line-soft: rgba(94, 124, 164, 0.25);
  --community-text: #f7f8fb;
  --community-muted: #a9b4c8;
  --community-gold: #ffc20a;
  --community-gold-2: #ed9d00;
  --community-green: #70e45c;
  --community-radius: 18px;
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--community-text);
  background:
    radial-gradient(620px 360px at 15% 12%, rgba(255, 194, 10, 0.14), transparent 64%),
    radial-gradient(700px 460px at 88% 8%, rgba(24, 57, 94, 0.32), transparent 62%),
    linear-gradient(180deg, #010409 0%, #06101b 46%, #02060c 100%);
}

body.community-modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.community-shell {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(255, 194, 10, 0.04), transparent 30%, transparent 70%, rgba(38, 74, 116, 0.11)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 118px);
}

.community-skip-link,
.community-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.community-skip-link:focus {
  z-index: 100;
  width: auto;
  height: auto;
  clip: auto;
  left: 16px;
  top: 16px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  color: #000;
}

.community-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(72, 96, 128, 0.2);
  background: rgba(1, 4, 9, 0.9);
  backdrop-filter: blur(18px);
}

.community-header-inner {
  width: min(1160px, calc(100vw - 64px));
  min-height: 126px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 64px;
}

.community-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  width: fit-content;
  color: #fff;
  text-decoration: none;
  font-size: clamp(1.8rem, 3.4vw, 2.55rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.community-brand strong {
  color: var(--community-gold);
}

.community-nav a {
  min-width: 252px;
  min-height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(92, 125, 166, 0.46);
  border-radius: 999px;
  background: rgba(3, 8, 16, 0.72);
  color: #f9fafc;
  text-decoration: none;
  font-size: 1.32rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.community-menu-button {
  width: 76px;
  height: 76px;
  display: inline-grid;
  place-items: center;
  gap: 0;
  padding: 24px;
  border: 1px solid rgba(92, 125, 166, 0.46);
  border-radius: 18px;
  background: rgba(3, 8, 16, 0.72);
  cursor: pointer;
}

.community-menu-button span {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 99px;
  background: #fff;
}

.community-mobile-menu {
  position: absolute;
  inset: 100% 18px auto auto;
  width: min(320px, calc(100vw - 36px));
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--community-line);
  border-radius: 18px;
  background: rgba(5, 10, 18, 0.97);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.community-mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(8px);
}

.community-mobile-menu a {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  color: #f8fafc;
  text-decoration: none;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
}

.community-main {
  width: min(1160px, calc(100vw - 64px));
  margin: 0 auto;
  padding: 34px 0 28px;
}

.community-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 42px;
  padding: 5px 4px 26px;
}

.community-hero-copy {
  display: grid;
  gap: 18px;
}

.community-kicker {
  width: fit-content;
  margin: 0;
  padding: 12px 26px;
  border: 2px solid var(--community-gold);
  border-radius: 999px;
  color: var(--community-gold);
  background: rgba(255, 194, 10, 0.06);
  box-shadow: 0 0 28px rgba(255, 194, 10, 0.16);
  font-size: 1.03rem;
  font-weight: 900;
  text-transform: uppercase;
}

.community-hero h1 {
  max-width: 690px;
  margin: 0;
  color: #fff;
  font-size: clamp(3.4rem, 6.4vw, 4.85rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

.community-hero h1 span {
  color: var(--community-gold);
}

.community-hero-copy > p:not(.community-kicker) {
  max-width: 610px;
  margin: 0;
  color: var(--community-muted);
  font-size: clamp(1.25rem, 2.15vw, 1.58rem);
  line-height: 1.48;
}

.community-hero-art {
  min-height: 245px;
  display: grid;
  place-items: center end;
  overflow: visible;
}

.community-people-icon {
  position: relative;
  width: 315px;
  height: 220px;
  filter: drop-shadow(0 24px 32px rgba(255, 194, 10, 0.16));
}

.community-people-icon::before {
  content: "";
  position: absolute;
  left: 11%;
  right: 0;
  bottom: 4px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2a333f, #151d28 52%, #070b11);
  border: 1px solid rgba(255, 194, 10, 0.44);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.48), 0 0 42px rgba(255, 194, 10, 0.17);
}

.community-people-icon::after {
  content: "";
  position: absolute;
  left: 17%;
  right: 5%;
  bottom: 1px;
  height: 18px;
  border-radius: 50%;
  border-bottom: 3px solid rgba(237, 157, 0, 0.78);
}

.person {
  position: absolute;
  border: 2px solid rgba(255, 232, 139, 0.66);
  background: radial-gradient(circle at 35% 20%, #ffe177 0 20%, #ffc20a 42%, #b67b00 72%, #634300 100%);
  box-shadow: inset -12px -14px 22px rgba(45, 29, 0, 0.26), 0 12px 26px rgba(0, 0, 0, 0.34);
}

.person::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -48px;
  width: 56px;
  height: 56px;
  transform: translateX(-50%);
  border-radius: 999px;
  border: 2px solid rgba(255, 232, 139, 0.66);
  background: inherit;
}

.person-main {
  left: 112px;
  top: 105px;
  width: 112px;
  height: 76px;
  border-radius: 58px 58px 22px 22px;
  z-index: 4;
}

.person-main::before {
  width: 76px;
  height: 76px;
  top: -72px;
}

.person-a,
.person-b,
.person-c {
  top: 98px;
  width: 78px;
  height: 58px;
  border-radius: 42px 42px 18px 18px;
  opacity: 0.94;
  z-index: 2;
}

.person-a {
  left: 45px;
}

.person-b {
  left: 215px;
}

.person-c {
  left: 84px;
  top: 70px;
  transform: scale(0.82);
}

.community-search-section {
  display: grid;
  gap: 20px;
  margin-bottom: 18px;
}

.community-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 205px;
  gap: 22px;
}

.community-search-field,
.community-filter-button {
  min-height: 88px;
  border: 1px solid var(--community-line);
  border-radius: 22px;
  background: rgba(10, 18, 30, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.community-search-field {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 28px;
}

.community-search-field svg,
.community-filter-button svg,
.community-primary-button svg {
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.community-search-field svg {
  width: 44px;
  height: 44px;
  color: #fff;
}

.community-search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #f7f8fb;
  background: transparent;
  font-size: 1.42rem;
}

.community-search-field input::placeholder {
  color: #9faabd;
}

.community-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  cursor: pointer;
  font-size: 1.22rem;
  font-weight: 800;
}

.community-filter-button svg {
  width: 32px;
  height: 32px;
}

.community-filter-pills {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}

.community-filter-pills button {
  min-height: 59px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border: 1px solid var(--community-line);
  border-radius: 999px;
  color: #eef3fb;
  background: rgba(5, 10, 18, 0.72);
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.community-filter-pills button.is-active {
  color: var(--community-gold);
  border-color: var(--community-gold);
  box-shadow: 0 0 24px rgba(255, 194, 10, 0.13);
}

.pill-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.pill-icon--telegram {
  background: #259bdc;
}

.pill-icon--telegram::before {
  content: ">";
  transform: rotate(-35deg);
  font-size: 1rem;
}

.pill-icon--youtube {
  background: #f03b34;
}

.pill-icon--youtube::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #fff;
  margin-left: 2px;
}

.pill-icon--tiktok {
  background: #101721 url("/community/assets/icon-tiktok.svg") center / 78% 78% no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.pill-icon--instagram {
  position: relative;
  background: linear-gradient(135deg, #833ab4, #fd1d1d 52%, #fcb045);
}

.pill-icon--instagram::before {
  content: "";
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 4px;
}

.pill-icon--instagram::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 6px;
  width: 3px;
  height: 3px;
  border-radius: 99px;
  background: #fff;
}

.pill-icon--forex,
.pill-icon--crypto,
.pill-icon--globe {
  background: transparent;
  color: currentColor;
  border-radius: 0;
}

.pill-icon--forex::before { content: "\2197"; font-size: 1.25rem; }
.pill-icon--crypto::before { content: "B"; font-size: 1.15rem; }
.pill-icon--globe::before { content: "\25CE"; font-size: 1.25rem; }

.community-list-section {
  position: relative;
}

.community-status {
  min-height: 0;
  margin: 0;
  color: transparent;
  font-size: 0;
}

.community-list {
  display: grid;
  gap: 13px;
}

.community-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 315px;
  align-items: center;
  gap: 18px;
  min-height: 217px;
  padding: 22px 30px 22px 25px;
  border: 1px solid rgba(91, 123, 163, 0.46);
  border-radius: var(--community-radius);
  background:
    radial-gradient(420px 180px at 84% 35%, rgba(31, 64, 104, 0.17), transparent 70%),
    linear-gradient(110deg, rgba(9, 18, 31, 0.93), rgba(6, 12, 20, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 12px 34px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.community-card:hover,
.community-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 194, 10, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 18px 42px rgba(0, 0, 0, 0.3);
  outline: none;
}

.community-logo {
  width: 122px;
  height: 122px;
  display: block;
  border-radius: 999px;
  object-fit: cover;
  background: #05090f;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.36);
}

.community-card-main {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.community-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.community-card h3 {
  margin: 0;
  color: #f7f8fb;
  font-size: 1.72rem;
  line-height: 1.15;
  font-weight: 900;
}

.community-verified,
.community-profile-card h3 span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #111;
  background: var(--community-gold);
  font-size: 0.88rem;
  font-weight: 900;
}

.community-card p {
  max-width: 600px;
  margin: 0;
  color: var(--community-muted);
  font-size: 1.25rem;
  line-height: 1.28;
}

.community-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.community-badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border: 1px solid rgba(93, 123, 164, 0.44);
  border-radius: 999px;
  color: #b7c3d6;
  background: rgba(8, 16, 27, 0.78);
  font-size: 1rem;
}

.community-badge--gold {
  color: var(--community-gold);
  border-color: rgba(255, 194, 10, 0.58);
  background: rgba(255, 194, 10, 0.07);
}

.community-card-side {
  min-height: 128px;
  display: grid;
  align-content: center;
  gap: 22px;
  padding-left: 34px;
  border-left: 1px solid rgba(93, 123, 164, 0.28);
}

.community-members {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: start;
  color: #f5f7fb;
}

.community-members svg {
  width: 32px;
  height: 32px;
  color: #9eabc1;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.community-members strong {
  display: block;
  font-size: 1.22rem;
  line-height: 1;
}

.community-members span {
  display: block;
  margin-top: 4px;
  color: var(--community-muted);
  font-size: 1.02rem;
}

.community-link-button,
.community-primary-button,
.community-secondary-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 900;
}

.community-link-button {
  width: 100%;
  border: 1.5px solid var(--community-gold);
  color: var(--community-gold);
  background: rgba(255, 194, 10, 0.02);
  font-size: 1.04rem;
}

.community-empty {
  margin: 0;
  padding: 30px;
  border: 1px dashed rgba(94, 124, 164, 0.45);
  border-radius: 18px;
  color: var(--community-muted);
  text-align: center;
  background: rgba(8, 16, 27, 0.72);
}

.community-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 24px;
  margin-top: 18px;
}

.community-bottom-grid.is-authenticated {
  grid-template-columns: minmax(0, 400px);
  justify-content: end;
}

.community-submit-card[hidden] {
  display: none;
}

.community-profile-card[hidden] {
  display: none;
}

.community-submit-card,
.community-profile-card {
  border: 1px solid rgba(255, 194, 10, 0.62);
  border-radius: 18px;
  background:
    radial-gradient(360px 220px at 100% 0%, rgba(33, 70, 111, 0.2), transparent 72%),
    linear-gradient(130deg, rgba(9, 18, 30, 0.95), rgba(5, 11, 18, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.community-submit-card {
  display: grid;
  gap: 14px;
  padding: 25px 21px;
}

.community-submit-card h2,
.community-profile-card h2 {
  margin: 0;
  color: var(--community-gold);
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 900;
}

.community-form-layout {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 20px;
}

.community-upload-tile {
  height: 113px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 1px dashed rgba(123, 226, 92, 0.62);
  border-radius: 14px;
  color: #aeb9cb;
  background: rgba(9, 18, 30, 0.72);
  cursor: pointer;
  text-align: center;
  font-size: 0.78rem;
}

.community-upload-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.upload-plus {
  color: #9fb0c6;
  font-size: 2rem;
  line-height: 1;
}

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

.community-submit-card input,
.community-submit-card textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(94, 124, 164, 0.42);
  border-radius: 10px;
  color: #edf3fb;
  outline: none;
  background: rgba(9, 18, 30, 0.72);
  padding: 13px 15px;
}

.community-submit-card input::placeholder,
.community-submit-card textarea::placeholder {
  color: #9aa7bb;
}

.community-submit-card input:focus,
.community-submit-card textarea:focus {
  border-color: var(--community-gold);
  box-shadow: 0 0 0 3px rgba(255, 194, 10, 0.14);
}

.community-textarea-wrap {
  position: relative;
}

.community-submit-card textarea {
  min-height: 90px;
  resize: vertical;
  padding-bottom: 30px;
}

.community-textarea-wrap small {
  position: absolute;
  right: 14px;
  bottom: 10px;
  color: #9aa7bb;
  font-size: 0.82rem;
}

.community-form-status {
  min-height: 18px;
  margin: -4px 0 0;
  color: #ffefb5;
  font-size: 0.9rem;
  font-weight: 700;
}

.community-form-status.is-error {
  color: #ffb6bd;
}

.community-form-status.is-ok {
  color: #d7ffbd;
}

.community-primary-button {
  width: 100%;
  border: 0;
  color: #111;
  background: linear-gradient(135deg, #ffc20a, #ffdc55);
  cursor: pointer;
  font-size: 1.06rem;
  box-shadow: 0 18px 32px rgba(255, 194, 10, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.community-primary-button svg {
  width: 30px;
  height: 30px;
  margin-left: 12px;
}

.community-primary-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.community-profile-card {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  padding: 25px 23px;
  text-align: center;
}

.community-profile-card h2 {
  justify-self: start;
  margin-bottom: 5px;
}

.community-profile-logo {
  width: 82px;
  height: 82px;
  margin-top: 6px;
  border-radius: 999px;
  object-fit: cover;
}

.community-profile-card h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0;
  font-size: 1.15rem;
}

.community-profile-card p {
  margin: -2px 0 8px;
  color: var(--community-muted);
}

.community-profile-links {
  width: 100%;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.community-profile-links li {
  min-height: 39px;
  display: grid;
  grid-template-columns: 28px 1fr 12px;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(94, 124, 164, 0.35);
  border-radius: 10px;
  color: #aeb9cb;
  background: rgba(9, 18, 30, 0.72);
  text-align: left;
}

.community-profile-links i {
  width: 12px;
  height: 12px;
  border-radius: 99px;
  background: var(--community-green);
  box-shadow: 0 0 12px rgba(112, 228, 92, 0.44);
}

.community-secondary-button {
  width: 100%;
  margin-top: 8px;
  cursor: pointer;
  border: 1px solid rgba(94, 124, 164, 0.48);
  color: #f5f7fb;
  background: rgba(9, 18, 30, 0.72);
}

.community-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 24px;
}

.community-modal.is-open {
  display: grid;
}

.community-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

.community-modal-panel {
  position: relative;
  width: min(780px, 100%);
  max-height: min(860px, calc(100vh - 48px));
  overflow: auto;
  padding: 26px;
  border: 1px solid rgba(255, 194, 10, 0.5);
  border-radius: 22px;
  background:
    radial-gradient(420px 240px at 100% 0%, rgba(33, 70, 111, 0.28), transparent 70%),
    linear-gradient(145deg, rgba(10, 18, 30, 0.98), rgba(4, 9, 16, 0.99));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.community-modal-panel--auth {
  width: min(560px, 100%);
}

.community-modal-panel--public-profile {
  width: min(860px, 100%);
  padding: 30px;
}

.community-public-profile-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
}

.community-public-profile {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.community-public-profile-aside {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.community-public-profile-logo {
  width: 156px;
  height: 156px;
  display: block;
  border: 1px solid rgba(255, 194, 10, 0.42);
  border-radius: 28px;
  object-fit: cover;
  background: #05090f;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.community-public-profile-main {
  min-width: 0;
  display: grid;
  gap: 13px;
  padding-right: 42px;
}

.community-public-profile-kicker {
  width: fit-content;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid rgba(255, 194, 10, 0.58);
  border-radius: 999px;
  color: var(--community-gold);
  background: rgba(255, 194, 10, 0.07);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.community-public-profile h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  line-height: 1.06;
  font-weight: 900;
}

.community-public-profile-handle,
.community-public-profile-bio {
  margin: 0;
  color: var(--community-muted);
}

.community-public-profile-handle {
  font-weight: 800;
}

.community-public-profile-bio {
  font-size: 1.02rem;
  line-height: 1.58;
}

.community-public-profile-metric {
  width: fit-content;
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid rgba(94, 124, 164, 0.42);
  border-radius: 14px;
  background: rgba(8, 16, 27, 0.58);
}

.community-public-profile-metric strong {
  color: #fff;
  font-size: 1.15rem;
}

.community-public-profile-metric span {
  color: var(--community-muted);
  font-size: 0.92rem;
}

.community-public-profile-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.community-public-profile-link {
  min-height: 54px;
  display: grid;
  grid-template-columns: 22px minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(94, 124, 164, 0.42);
  border-radius: 14px;
  color: #eef4fb;
  background: rgba(8, 16, 27, 0.6);
  text-decoration: none;
  font-weight: 900;
}

.community-public-profile-link small {
  min-width: 0;
  overflow: hidden;
  color: var(--community-muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-public-profile-empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed rgba(94, 124, 164, 0.42);
  border-radius: 14px;
  color: var(--community-muted);
  text-align: center;
}

.community-public-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.community-public-profile-actions .community-primary-button,
.community-public-profile-actions .community-secondary-button {
  width: auto;
  min-width: 168px;
  margin-top: 0;
  padding-inline: 20px;
}

.community-auth-copy {
  margin: -4px 0 20px;
  color: var(--community-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.community-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.community-modal-head p {
  width: fit-content;
  margin: 0 0 5px;
  color: var(--community-gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.community-modal-head h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.2;
}

.community-icon-button {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(94, 124, 164, 0.48);
  border-radius: 14px;
  color: #fff;
  background: rgba(9, 18, 30, 0.72);
  cursor: pointer;
  font-size: 1.9rem;
  line-height: 1;
}

.community-profile-form {
  display: grid;
  gap: 14px;
}

.community-profile-form-top {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
}

.community-upload-tile--profile {
  height: 120px;
}

.community-profile-form label {
  display: grid;
  gap: 7px;
}

.community-profile-form label span {
  color: #dce5f4;
  font-size: 0.86rem;
  font-weight: 800;
}

.community-profile-form input,
.community-profile-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(94, 124, 164, 0.42);
  border-radius: 12px;
  color: #edf3fb;
  outline: none;
  background: rgba(9, 18, 30, 0.72);
  padding: 12px 13px;
}

.community-profile-form input::placeholder,
.community-profile-form textarea::placeholder {
  color: #9aa7bb;
}

.community-profile-form input:focus,
.community-profile-form textarea:focus {
  border-color: var(--community-gold);
  box-shadow: 0 0 0 3px rgba(255, 194, 10, 0.14);
}

.community-profile-form textarea {
  min-height: 82px;
  resize: vertical;
}

.community-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 2px;
}

.community-modal-actions .community-primary-button,
.community-modal-actions .community-secondary-button {
  width: auto;
  min-width: 170px;
  margin-top: 0;
  border-radius: 999px;
}

.community-modal-actions--auth .community-primary-button {
  color: #111;
}

@media (max-width: 960px) {
  .community-header-inner,
  .community-main {
    width: min(100vw - 30px, 760px);
  }

  .community-header-inner {
    min-height: 92px;
    gap: 20px;
  }

  .community-nav {
    display: none;
  }

  .community-hero {
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 16px;
  }

  .community-search-row,
  .community-bottom-grid {
    grid-template-columns: 1fr;
  }

  .community-filter-button {
    display: none;
  }

  .community-card {
    grid-template-columns: 105px minmax(0, 1fr);
    min-height: 0;
  }

  .community-logo {
    width: 96px;
    height: 96px;
  }

  .community-card-side {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 230px;
    align-items: center;
    min-height: 0;
    border-left: 0;
    border-top: 1px solid rgba(93, 123, 164, 0.28);
    padding: 16px 0 0;
  }

  .community-public-profile {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
  }

  .community-public-profile-logo {
    width: 128px;
    height: 128px;
    border-radius: 22px;
  }

  .community-public-profile-main {
    padding-right: 34px;
  }
}

@media (max-width: 620px) {
  .community-header-inner,
  .community-main {
    width: calc(100vw - 24px);
  }

  .community-header-inner {
    min-height: 78px;
  }

  .community-brand {
    gap: 5px;
    font-size: clamp(1.2rem, 6.6vw, 1.62rem);
  }

  .community-menu-button {
    width: 54px;
    height: 54px;
    padding: 16px;
    border-radius: 14px;
  }

  .community-menu-button span {
    width: 20px;
    height: 2px;
  }

  .community-main {
    padding-top: 18px;
  }

  .community-hero {
    grid-template-columns: minmax(0, 1fr) 118px;
    align-items: center;
    padding-bottom: 14px;
  }

  .community-hero-copy {
    gap: 10px;
  }

  .community-kicker {
    padding: 7px 12px;
    border-width: 1px;
    font-size: 0.73rem;
  }

  .community-hero h1 {
    max-width: 11ch;
    font-size: clamp(2.1rem, 10.5vw, 2.8rem);
    line-height: 1.04;
  }

  .community-hero-copy > p:not(.community-kicker) {
    max-width: 28ch;
    font-size: 0.95rem;
    line-height: 1.42;
  }

  .community-hero-art {
    min-height: 120px;
    overflow: hidden;
  }

  .community-people-icon {
    transform: scale(0.47);
    transform-origin: center right;
  }

  .community-search-section {
    gap: 10px;
    margin-bottom: 12px;
  }

  .community-search-field {
    min-height: 54px;
    gap: 10px;
    padding: 0 14px;
    border-radius: 15px;
  }

  .community-search-field svg {
    width: 26px;
    height: 26px;
  }

  .community-search-field input {
    font-size: 0.96rem;
  }

  .community-filter-pills {
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .community-filter-pills::-webkit-scrollbar {
    display: none;
  }

  .community-filter-pills button {
    min-height: 38px;
    gap: 6px;
    padding: 7px 12px;
    white-space: nowrap;
    font-size: 0.82rem;
  }

  .pill-icon {
    width: 20px;
    height: 20px;
  }

  .community-list {
    gap: 9px;
  }

  .community-card {
    grid-template-columns: 65px minmax(0, 1fr);
    gap: 11px;
    padding: 11px;
    border-radius: 14px;
  }

  .community-logo {
    width: 60px;
    height: 60px;
  }

  .community-card-main {
    gap: 5px;
  }

  .community-card h3 {
    font-size: 1.02rem;
  }

  .community-verified,
  .community-profile-card h3 span {
    width: 18px;
    height: 18px;
    font-size: 0.68rem;
  }

  .community-card p {
    font-size: 0.84rem;
    line-height: 1.32;
  }

  .community-badges {
    gap: 5px;
  }

  .community-badge {
    min-height: 24px;
    padding: 3px 8px;
    font-size: 0.74rem;
  }

  .community-card-side {
    grid-template-columns: 1fr;
    gap: 9px;
    padding-top: 9px;
  }

  .community-members {
    grid-template-columns: 28px 1fr;
  }

  .community-members svg {
    width: 24px;
    height: 24px;
  }

  .community-members strong {
    font-size: 0.95rem;
  }

  .community-members span {
    font-size: 0.82rem;
  }

  .community-link-button {
    min-height: 36px;
    font-size: 0.86rem;
  }

  .community-bottom-grid {
    gap: 12px;
    margin-top: 12px;
  }

  .community-bottom-grid.is-authenticated {
    grid-template-columns: 1fr;
  }

  .community-submit-card,
  .community-profile-card {
    padding: 16px;
    border-radius: 15px;
  }

  .community-submit-card h2,
  .community-profile-card h2 {
    font-size: 1.22rem;
  }

  .community-form-layout {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px;
  }

  .community-upload-tile {
    height: 88px;
    font-size: 0.68rem;
  }

  .community-field-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .community-submit-card input,
  .community-submit-card textarea {
    padding: 10px 11px;
    border-radius: 10px;
    font-size: 0.86rem;
  }

  .community-submit-card textarea {
    min-height: 82px;
  }

  .community-primary-button,
  .community-secondary-button {
    min-height: 42px;
    font-size: 0.9rem;
  }

  .community-modal {
    padding: 10px;
    place-items: center;
    align-items: center;
  }

  .community-modal-panel {
    width: min(360px, 100%);
    max-height: calc(100dvh - 20px);
    padding: 14px;
    border-radius: 16px;
  }

  .community-modal-panel--public-profile {
    width: min(360px, 100%);
    padding: 13px;
  }

  .community-public-profile-close {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 1.35rem;
  }

  .community-public-profile {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .community-public-profile-aside {
    justify-items: start;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
  }

  .community-public-profile-logo {
    width: 54px;
    height: 54px;
    border-radius: 13px;
  }

  .community-public-profile-main {
    gap: 8px;
    padding-right: 0;
  }

  .community-public-profile-kicker {
    padding: 5px 8px;
    font-size: 0.56rem;
    letter-spacing: 0.06em;
  }

  .community-public-profile h2 {
    padding-right: 40px;
    font-size: 1.18rem;
    line-height: 1.12;
  }

  .community-public-profile-handle {
    font-size: 0.78rem;
  }

  .community-public-profile-bio {
    font-size: 0.76rem;
    line-height: 1.38;
  }

  .community-public-profile-metric {
    gap: 5px;
    padding: 6px 9px;
    border-radius: 11px;
  }

  .community-public-profile-metric strong {
    font-size: 0.94rem;
  }

  .community-public-profile-metric span {
    font-size: 0.74rem;
  }

  .community-public-profile-links {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .community-public-profile-link {
    min-height: 38px;
    grid-template-columns: 18px minmax(0, auto) minmax(0, 1fr);
    gap: 6px;
    padding: 7px 9px;
    border-radius: 11px;
    font-size: 0.72rem;
  }

  .community-public-profile-link small {
    font-size: 0.62rem;
  }

  .community-public-profile-empty {
    padding: 10px;
    border-radius: 11px;
    font-size: 0.74rem;
  }

  .community-public-profile-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .community-public-profile-actions .community-primary-button,
  .community-public-profile-actions .community-secondary-button {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding-inline: 12px;
    font-size: 0.76rem;
  }

  .community-modal-head {
    gap: 10px;
    margin-bottom: 12px;
  }

  .community-modal-head p {
    margin-bottom: 4px;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }

  .community-modal-head h2 {
    font-size: 1.08rem;
    line-height: 1.14;
  }

  .community-icon-button {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 1.35rem;
  }

  .community-auth-copy {
    margin: -2px 0 12px;
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .community-profile-form {
    gap: 9px;
  }

  .community-profile-form label {
    gap: 5px;
  }

  .community-profile-form label span {
    font-size: 0.72rem;
  }

  .community-profile-form input,
  .community-profile-form textarea {
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 0.78rem;
  }

  .community-profile-form textarea {
    min-height: 66px;
  }

  .community-profile-form-top,
  .community-profile-form .community-field-grid {
    grid-template-columns: 1fr;
  }

  .community-upload-tile--profile {
    width: 100%;
    height: 86px;
  }

  .community-modal-actions {
    flex-direction: column-reverse;
    gap: 8px;
  }

  .community-modal-actions .community-primary-button,
  .community-modal-actions .community-secondary-button {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    font-size: 0.78rem;
  }
}

@media (max-width: 380px) {
  .community-header-inner,
  .community-main {
    width: calc(100vw - 18px);
  }

  .community-hero {
    grid-template-columns: minmax(0, 1fr) 86px;
  }

  .community-people-icon {
    transform: scale(0.38);
  }

  .community-card {
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 9px;
  }

  .community-logo {
    width: 52px;
    height: 52px;
  }

  .community-modal-panel,
  .community-modal-panel--public-profile {
    width: min(342px, 100%);
    padding: 12px;
  }

  .community-public-profile-aside {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .community-public-profile-logo {
    width: 48px;
    height: 48px;
  }

  .community-public-profile h2 {
    font-size: 1.06rem;
  }
}
