.nf-shell,
.nf-profile-friends,
.nf-profile-actions,
.nf-profile-friend-action,
.nf-profile-inline-action,
.nf-toast-stack {
  --nf-accent: #f20550;
  --nf-accent-2: #ff4d7d;
  --nf-accent-soft: #fff0f5;
  --nf-text: #101827;
  --nf-muted: #8390a8;
  --nf-border: #e3e9f2;
  --nf-panel: #fff;
  --nf-panel-soft: #f6f8fc;
  --nf-shadow: 0 18px 50px rgba(20, 32, 56, .09);
  color: var(--nf-text);
  box-sizing: border-box;
}

.dark .nf-shell,
.dark .nf-profile-friends,
.dark .nf-profile-actions,
.dark .nf-profile-friend-action,
.dark .nf-profile-inline-action,
.dark .nf-toast-stack {
  --nf-accent: #ff1f62;
  --nf-accent-2: #ff668f;
  --nf-accent-soft: rgba(255, 31, 98, .12);
  --nf-text: #f5f7fb;
  --nf-muted: #8e9ab1;
  --nf-border: #2b3040;
  --nf-panel: #191b22;
  --nf-panel-soft: #21242d;
  --nf-shadow: 0 22px 60px rgba(0, 0, 0, .3);
}

.nf-shell *,
.nf-profile-friends *,
.nf-profile-actions *,
.nf-profile-friend-action *,
.nf-profile-inline-action *,
.nf-toast-stack * {
  box-sizing: border-box;
}

.nf-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 64px;
  font-family: inherit;
}

.nf-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  min-height: 220px;
  padding: 38px 42px;
  overflow: hidden;
  border: 1px solid rgba(242, 5, 80, .2);
  border-radius: 28px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .98) 0%, rgba(255, 245, 249, .94) 58%, rgba(255, 221, 233, .86) 100%);
  box-shadow: var(--nf-shadow);
}

.dark .nf-hero {
  background:
    linear-gradient(120deg, #1b1d24 0%, #1b1d24 53%, rgba(74, 19, 42, .88) 100%);
}

.nf-hero__copy {
  max-width: 700px;
}

.nf-kicker {
  display: block;
  margin-bottom: 13px;
  color: var(--nf-accent);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .16em;
}

.nf-hero h1 {
  margin: 0 0 12px;
  color: var(--nf-text);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.035em;
}

.nf-hero p {
  max-width: 650px;
  margin: 0;
  color: var(--nf-muted);
  font-size: 16px;
  line-height: 1.65;
}

.nf-hero .nf-btn {
  margin-top: 22px;
}

.nf-hero__stats {
  display: flex;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 18px;
  background: rgba(255, 255, 255, .66);
  backdrop-filter: blur(14px);
}

.dark .nf-hero__stats {
  border-color: rgba(255, 255, 255, .08);
  background: rgba(24, 26, 33, .76);
}

.nf-hero__stats div {
  min-width: 120px;
  padding: 17px 20px;
  border-left: 1px solid var(--nf-border);
}

.nf-hero__stats div:first-child {
  border-left: 0;
}

.nf-hero__stats b,
.nf-hero__stats span {
  display: block;
}

.nf-hero__stats b {
  color: var(--nf-text);
  font-size: 25px;
  line-height: 1;
}

.nf-hero__stats span {
  margin-top: 6px;
  color: var(--nf-muted);
  font-size: 12px;
}

.nf-toolbar {
  position: relative;
  z-index: 3;
  width: calc(100% - 48px);
  margin: -24px auto 0;
  padding: 12px;
  border: 1px solid var(--nf-border);
  border-radius: 20px;
  background: var(--nf-panel);
  box-shadow: 0 14px 40px rgba(20, 32, 56, .1);
}

.nf-search {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 38px;
  align-items: center;
  min-height: 54px;
  padding: 0 8px 0 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--nf-panel-soft);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.nf-search:focus-within {
  border-color: rgba(242, 5, 80, .42);
  background: var(--nf-panel);
  box-shadow: 0 0 0 4px rgba(242, 5, 80, .08);
}

.nf-search > span {
  color: var(--nf-muted);
  font-size: 26px;
  transform: rotate(-18deg);
}

.nf-search input {
  width: 100%;
  height: 48px;
  padding: 0 10px;
  border: 0;
  outline: 0;
  color: var(--nf-text);
  background: transparent;
  font: inherit;
  font-size: 15px;
}

.nf-search input::placeholder {
  color: var(--nf-muted);
}

.nf-search button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  color: var(--nf-muted);
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

.nf-search button:hover {
  color: var(--nf-text);
  background: var(--nf-panel);
}

.nf-search-results {
  position: relative;
  z-index: 4;
  width: calc(100% - 48px);
  max-height: 650px;
  margin: 10px auto 0;
  padding: 18px;
  overflow: auto;
  border: 1px solid var(--nf-border);
  border-radius: 20px;
  background: var(--nf-panel);
  box-shadow: var(--nf-shadow);
}

.nf-tabs {
  display: flex;
  gap: 6px;
  margin: 24px 0 20px;
  padding: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid var(--nf-border);
  border-radius: 17px;
  background: var(--nf-panel);
}

.nf-tabs::-webkit-scrollbar {
  display: none;
}

.nf-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 12px;
  color: var(--nf-muted);
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.nf-tabs a:hover {
  color: var(--nf-text);
  background: var(--nf-panel-soft);
}

.nf-tabs a.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--nf-accent), var(--nf-accent-2));
  box-shadow: 0 9px 24px rgba(242, 5, 80, .22);
}

.nf-tabs b {
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  color: inherit;
  background: rgba(128, 140, 164, .12);
  font-size: 11px;
  line-height: 21px;
  text-align: center;
}

.nf-tabs a.is-active b {
  background: rgba(255, 255, 255, .2);
}

.nf-content {
  min-height: 260px;
}

.nf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.nf-grid--compact {
  grid-template-columns: 1fr;
}

.nf-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-width: 0;
  min-height: 176px;
  padding: 20px;
  border: 1px solid var(--nf-border);
  border-radius: 21px;
  background: var(--nf-panel);
  box-shadow: 0 10px 30px rgba(20, 32, 56, .045);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, opacity .18s ease;
}

.nf-card:hover {
  border-color: rgba(242, 5, 80, .24);
  box-shadow: 0 17px 42px rgba(20, 32, 56, .09);
  transform: translateY(-2px);
}

.nf-card.is-removing {
  opacity: 0;
  transform: scale(.97);
}

.nf-card__avatar {
  position: relative;
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  margin-right: 16px;
  text-decoration: none;
}

.nf-avatar {
  position: relative;
  display: inline-block;
  width: 100%;
  height: 100%;
  flex: 0 0 auto;
}

.nf-avatar__photo,
.nf-avatar__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.nf-avatar__photo {
  z-index: 1;
  object-fit: cover;
  border-radius: 0;
  background: var(--nf-panel-soft);
}

.nf-avatar__frame {
  z-index: 2;
  object-fit: contain;
  transform: scale(1.18);
}

.nf-presence {
  position: absolute;
  z-index: 4;
  right: -1px;
  bottom: -1px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--nf-panel);
  border-radius: 50%;
  background: #a6afbf;
}

.nf-presence.is-online {
  background: #10c987;
  box-shadow: 0 0 0 3px rgba(16, 201, 135, .12);
}

.nf-card__body {
  flex: 1 1 auto;
  min-width: 0;
}

.nf-card__top {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.nf-card__name {
  max-width: 100%;
  overflow: hidden;
  color: var(--nf-text);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 900;
}

.nf-card__name:hover {
  color: var(--nf-accent);
}

.nf-online-label {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 999px;
  color: #087d59;
  background: #dcfcef;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.dark .nf-online-label {
  color: #53e6b5;
  background: rgba(16, 201, 135, .13);
}

.nf-card__meta,
.nf-card__mutual {
  margin-top: 6px;
  overflow: hidden;
  color: var(--nf-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.nf-card__mutual {
  color: var(--nf-accent);
  font-weight: 700;
}

.nf-card__mutual--empty {
  color: var(--nf-muted);
  font-weight: 400;
}

.nf-actions {
  display: flex;
  align-items: stretch;
  gap: 7px;
  margin-top: 15px;
}

.nf-btn,
.nf-icon-btn {
  appearance: none;
  border: 0;
  outline: 0;
  font: inherit;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease, opacity .15s ease;
}

.nf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 11px;
  text-decoration: none;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 850;
}

.nf-btn:hover,
.nf-icon-btn:hover {
  transform: translateY(-1px);
}

.nf-btn:disabled,
.nf-icon-btn:disabled {
  opacity: .58;
  pointer-events: none;
}

.nf-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--nf-accent), var(--nf-accent-2));
  box-shadow: 0 8px 20px rgba(242, 5, 80, .2);
}

.nf-btn--soft {
  color: var(--nf-text);
  border-color: var(--nf-border);
  background: var(--nf-panel-soft);
}

.nf-btn--ghost {
  color: var(--nf-muted);
  background: transparent;
}

.nf-btn__sub {
  display: none;
}

.nf-icon-btn {
  flex: 0 0 36px;
  width: 36px;
  min-height: 36px;
  border: 1px solid var(--nf-border);
  border-radius: 11px;
  color: var(--nf-muted);
  background: transparent;
  font-size: 19px;
}

.nf-icon-btn:hover {
  color: #dc2626;
  border-color: rgba(220, 38, 38, .28);
  background: rgba(220, 38, 38, .06);
}

.nf-state-label {
  color: var(--nf-muted);
  font-size: 12px;
}

.nf-btn.is-loading,
.nf-icon-btn.is-loading {
  color: transparent !important;
  position: relative;
}

.nf-btn.is-loading:after,
.nf-icon-btn.is-loading:after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  color: var(--nf-accent);
  animation: nf-spin .65s linear infinite;
}

.nf-empty {
  display: flex;
  min-height: 270px;
  padding: 40px 20px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--nf-border);
  border-radius: 22px;
  color: var(--nf-muted);
  background: var(--nf-panel);
  text-align: center;
}

.nf-empty__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  border-radius: 18px;
  color: var(--nf-accent);
  background: var(--nf-accent-soft);
  font-size: 28px;
  font-weight: 800;
}

.nf-empty h3 {
  margin: 0 0 7px;
  color: var(--nf-text);
  font-size: 19px;
}

.nf-empty p {
  max-width: 430px;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.nf-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 25px;
}

.nf-pagination a {
  display: grid;
  place-items: center;
  min-width: 39px;
  height: 39px;
  padding: 0 9px;
  border: 1px solid var(--nf-border);
  border-radius: 11px;
  color: var(--nf-muted);
  background: var(--nf-panel);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.nf-pagination a.is-current {
  color: #fff;
  border-color: var(--nf-accent);
  background: var(--nf-accent);
}

.nf-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.nf-panel {
  padding: 24px;
  border: 1px solid var(--nf-border);
  border-radius: 22px;
  background: var(--nf-panel);
}

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

.nf-panel__head h2 {
  margin: 0 0 5px;
  color: var(--nf-text);
  font-size: 21px;
}

.nf-panel__head p {
  margin: 0;
  color: var(--nf-muted);
  font-size: 13px;
  line-height: 1.5;
}

.nf-counter {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--nf-accent);
  background: var(--nf-accent-soft);
  font-size: 13px;
  font-weight: 900;
}

.nf-field {
  display: block;
  margin-top: 15px;
}

.nf-field > span {
  display: block;
  margin-bottom: 7px;
  color: var(--nf-text);
  font-size: 13px;
  font-weight: 800;
}

.nf-field select {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--nf-border);
  border-radius: 12px;
  outline: 0;
  color: var(--nf-text);
  background: var(--nf-panel-soft);
  font: inherit;
  font-size: 13px;
}

.nf-field select:focus {
  border-color: rgba(242, 5, 80, .5);
  box-shadow: 0 0 0 3px rgba(242, 5, 80, .08);
}

.nf-switch {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 18px;
  cursor: pointer;
}

.nf-switch input {
  width: 19px;
  height: 19px;
  margin: 1px 0 0;
  accent-color: var(--nf-accent);
}

.nf-switch b,
.nf-switch small {
  display: block;
}

.nf-switch b {
  color: var(--nf-text);
  font-size: 13px;
}

.nf-switch small {
  margin-top: 3px;
  color: var(--nf-muted);
  font-size: 11px;
}

.nf-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  margin-top: 22px;
  color: var(--nf-muted);
  font-size: 12px;
}

.nf-public-back {
  margin: 20px 0;
}

.nf-search-loading {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--nf-muted);
  font-size: 13px;
}

.nf-search-loading i {
  width: 20px;
  height: 20px;
  border: 2px solid var(--nf-border);
  border-top-color: var(--nf-accent);
  border-radius: 50%;
  animation: nf-spin .7s linear infinite;
}

.nf-profile-friends {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: visible;
}

.nf-profile-friends:before {
  content: none;
}

.nf-profile-friends__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.nf-profile-friends__title {
  display: flex;
  align-items: baseline;
  min-width: 0;
}

.nf-profile-friends__title h3 {
  margin: 0;
  color: var(--nf-text);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 650;
}

.nf-profile-friends__list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  padding: 4px;
}

.nf-profile-friends__item {
  position: relative;
  display: block;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-decoration: none;
  transition: filter .16s ease, transform .16s ease;
}

.nf-profile-friends__item:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.nf-profile-friends__avatar {
  position: relative;
  display: block;
  width: 54px;
  height: 54px;
}

.nf-avatar--profile .nf-avatar__photo {
  border-radius: 0;
}

.nf-profile-friends__avatar .nf-presence {
  right: -2px;
  bottom: -2px;
  width: 12px;
  height: 12px;
  border-width: 2px;
}

.nf-profile-friends__notice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 8px 0;
  border: 0;
  background: transparent;
}

.nf-profile-friends__notice > span {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: var(--nf-accent);
  background: var(--nf-accent-soft);
}

.nf-profile-friends__notice svg {
  width: 17px;
  height: 17px;
}

.nf-profile-friends__notice b,
.nf-profile-friends__notice small {
  display: block;
}

.nf-profile-friends__notice b {
  color: var(--nf-text);
  font-size: 12px;
}

.nf-profile-friends__notice small {
  margin-top: 4px;
  color: var(--nf-muted);
  font-size: 9px;
  line-height: 1.4;
}

.nf-profile-friends__discover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  margin-top: 8px;
  padding: 0 13px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--nf-accent), var(--nf-accent-2));
  box-shadow: 0 8px 20px rgba(242, 5, 80, .15);
  text-decoration: none;
  font-size: 10px;
  font-weight: 850;
}

.nf-profile-friends__discover svg {
  width: 14px;
  height: 14px;
}

.nf-profile-friends__discover:hover {
  color: #fff;
}

.nf-profile-actions {
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
}

.nf-profile-actions__inner {
  display: flex;
  justify-content: center;
}

.nf-profile-inline-action {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 1px 0 4px;
}

.nf-profile-inline-button {
  --nf-inline-bg: rgba(242, 5, 80, .16);
  --nf-inline-border: rgba(255, 95, 143, .5);
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 2px 8px 2px 3px;
  border: 1px solid var(--nf-inline-border);
  border-radius: 9px;
  outline: 0;
  color: #fff;
  background: var(--nf-inline-bg);
  box-shadow: 0 5px 14px rgba(18, 12, 27, .13);
  backdrop-filter: blur(10px);
  text-decoration: none;
  white-space: nowrap;
  font: inherit;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.nf-profile-inline-button.is-none,
.nf-profile-inline-button.is-incoming {
  --nf-inline-bg: linear-gradient(135deg, #ec1657, #ff4f83);
  --nf-inline-border: rgba(255, 155, 186, .62);
}

.nf-profile-inline-button.is-outgoing {
  --nf-inline-bg: linear-gradient(135deg, #9d6b1f, #c98a2d);
  --nf-inline-border: rgba(255, 211, 139, .5);
}

.nf-profile-inline-button.is-friends {
  --nf-inline-bg: linear-gradient(135deg, #118767, #12aa7f);
  --nf-inline-border: rgba(112, 239, 200, .48);
}

.nf-profile-inline-button.is-blocked_by_me,
.nf-profile-inline-button.is-blocked_me {
  --nf-inline-bg: rgba(86, 93, 108, .78);
  --nf-inline-border: rgba(190, 198, 212, .28);
}

.nf-profile-inline-button:hover,
.nf-profile-inline-button:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, .7);
  box-shadow: 0 7px 18px rgba(18, 12, 27, .22);
  transform: translateY(-1px);
}

.nf-profile-inline-button__icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  color: #fff;
  background: rgba(255, 255, 255, .14);
}

.nf-profile-inline-button__icon svg {
  width: 13px;
  height: 13px;
}

.nf-profile-inline-button__label {
  font-size: 9px;
  line-height: 1;
  font-weight: 850;
}

.nf-profile-inline-button.is-loading {
  pointer-events: none;
}

.nf-profile-inline-button.is-loading .nf-profile-inline-button__icon svg {
  opacity: 0;
}

.nf-profile-inline-button.is-loading .nf-profile-inline-button__icon:after {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: nf-spin .65s linear infinite;
}

.nf-profile-friend-action {
  display: flex;
  align-items: flex-start;
  flex: 0 0 auto;
  min-height: 56px;
  margin: 16px 0 0 16px;
  padding: 0 1px 10px 16px;
  color: #fff;
}

.nf-profile-friend-action__divider {
  width: 1px;
  height: 48px;
  margin-right: 16px;
  background: rgba(255, 255, 255, .28);
}

.nf-profile-friend-badge {
  --nf-badge-bg: #7059cd;
  --nf-badge-border: #9b83ee;
  --nf-badge-tail: #6953c1;
  position: relative;
  display: block;
  flex: 0 0 44px;
  width: 44px;
  height: 54px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  text-decoration: none;
  filter: drop-shadow(0 3px 4px rgba(24, 15, 21, .2));
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease;
}

.nf-profile-friend-badge.is-outgoing {
  --nf-badge-bg: #b7791f;
  --nf-badge-border: #f0b85e;
  --nf-badge-tail: #9f681c;
}

.nf-profile-friend-badge.is-incoming {
  --nf-badge-bg: #e91455;
  --nf-badge-border: #ff73a0;
  --nf-badge-tail: #c80f48;
}

.nf-profile-friend-badge.is-friends {
  --nf-badge-bg: #159873;
  --nf-badge-border: #55d9b2;
  --nf-badge-tail: #117d60;
}

.nf-profile-friend-badge.is-blocked_by_me,
.nf-profile-friend-badge.is-blocked_me {
  --nf-badge-bg: #636b79;
  --nf-badge-border: #949baa;
  --nf-badge-tail: #555c68;
}

.nf-profile-friend-badge:hover,
.nf-profile-friend-badge:focus-visible {
  color: #fff;
  filter: drop-shadow(0 6px 8px rgba(24, 15, 21, .3));
  transform: translateY(-2px);
}

.nf-profile-friend-badge__face {
  position: absolute;
  z-index: 2;
  inset: 0 auto auto 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--nf-badge-border);
  border-radius: 4px;
  color: #fff;
  background:
    radial-gradient(circle at 68% 24%, rgba(255, 255, 255, .22), transparent 34%),
    var(--nf-badge-bg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.nf-profile-friend-badge__face svg {
  width: 24px;
  height: 24px;
}

.nf-profile-friend-badge__face i {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
}

.nf-profile-friend-badge.is-friends .nf-profile-friend-badge__face i {
  background: #4ef0bd;
}

.nf-profile-friend-badge.is-outgoing .nf-profile-friend-badge__face i {
  background: #ffd166;
}

.nf-profile-friend-badge.is-incoming .nf-profile-friend-badge__face i {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .15);
}

.nf-profile-friend-badge__tail {
  position: absolute;
  z-index: 1;
  bottom: 0;
  width: 18px;
  height: 16px;
  background: var(--nf-badge-tail);
}

.nf-profile-friend-badge__tail--left {
  left: 8px;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
}

.nf-profile-friend-badge__tail--right {
  right: 8px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 70%);
}

.nf-profile-friend-badge.is-loading {
  pointer-events: none;
}

.nf-profile-friend-badge.is-loading .nf-profile-friend-badge__face svg,
.nf-profile-friend-badge.is-loading .nf-profile-friend-badge__face i {
  opacity: 0;
}

.nf-profile-friend-badge.is-loading .nf-profile-friend-badge__face:after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: nf-spin .65s linear infinite;
}

.nf-actions--compact {
  margin: 0;
  padding: 8px;
  border: 1px solid var(--nf-border);
  border-radius: 15px;
  background: var(--nf-panel);
  box-shadow: 0 10px 28px rgba(20, 32, 56, .08);
}

.nf-actions--compact .nf-btn {
  min-height: 38px;
}

.nf-toast-stack {
  position: fixed;
  z-index: 10050;
  top: 22px;
  right: 22px;
  display: flex;
  width: min(360px, calc(100vw - 28px));
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.nf-toast {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border: 1px solid var(--nf-border);
  border-radius: 15px;
  color: var(--nf-text);
  background: var(--nf-panel);
  box-shadow: var(--nf-shadow);
  animation: nf-toast-in .2s ease both;
  pointer-events: auto;
}

.nf-toast > span {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: #087d59;
  background: #dcfcef;
  font-weight: 900;
}

.nf-toast.is-error > span {
  color: #b91c1c;
  background: #fee2e2;
}

.nf-toast p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
}

.nf-toast.is-leaving {
  opacity: 0;
  transform: translateX(14px);
  transition: opacity .2s ease, transform .2s ease;
}

@keyframes nf-spin {
  to { transform: rotate(360deg); }
}

@keyframes nf-toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .nf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nf-settings-grid { grid-template-columns: 1fr; }
  .nf-hero { align-items: flex-start; flex-direction: column; }
  .nf-hero__stats { align-self: stretch; }
  .nf-hero__stats div { flex: 1; }
}

@media (max-width: 640px) {
  .nf-shell {
    width: calc(100% - 20px);
    margin-top: 18px;
    margin-bottom: 100px;
  }

  .nf-hero {
    min-height: 0;
    padding: 26px 22px 42px;
    border-radius: 22px;
  }

  .nf-hero h1 { font-size: 36px; }
  .nf-hero p { font-size: 14px; }
  .nf-hero__stats { width: 100%; }
  .nf-hero__stats div { min-width: 0; padding: 14px; }
  .nf-hero__stats b { font-size: 21px; }

  .nf-toolbar,
  .nf-search-results {
    width: calc(100% - 18px);
  }

  .nf-toolbar { margin-top: -25px; padding: 7px; border-radius: 17px; }
  .nf-search { min-height: 49px; grid-template-columns: 26px minmax(0, 1fr) 34px; }
  .nf-search input { height: 44px; font-size: 14px; }
  .nf-search-results { padding: 11px; }
  .nf-tabs { margin-top: 16px; border-radius: 14px; }
  .nf-tabs a { min-height: 39px; padding: 0 12px; }

  .nf-grid { grid-template-columns: 1fr; gap: 10px; }
  .nf-card { min-height: 0; padding: 16px; border-radius: 18px; }
  .nf-card:hover { transform: none; }
  .nf-card__avatar { width: 64px; height: 64px; margin-right: 13px; }
  .nf-avatar__photo { border-radius: 0; }
  .nf-actions { flex-wrap: wrap; }
  .nf-btn { min-height: 38px; }
  .nf-panel { padding: 18px; border-radius: 18px; }
  .nf-empty { min-height: 220px; border-radius: 18px; }

  .nf-profile-actions { width: calc(100% - 20px); }
  .nf-actions--compact { width: 100%; justify-content: center; }
  .nf-toast-stack { top: 12px; right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .nf-shell *,
  .nf-profile-friends *,
  .nf-profile-actions *,
  .nf-profile-inline-action *,
  .nf-toast-stack * {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* Friends hub 2.0 */
.nf-hero {
  position: relative;
  isolation: isolate;
  align-items: center;
  min-height: 286px;
  padding: 42px 46px;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, .99) 0%, rgba(255, 249, 251, .96) 55%, rgba(255, 229, 238, .9) 100%);
}

.dark .nf-hero {
  background:
    linear-gradient(118deg, #191b22 0%, #1d1d25 56%, rgba(83, 20, 45, .9) 100%);
}

.nf-hero__glow {
  position: absolute;
  z-index: -1;
  top: -110px;
  right: 190px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 74, 128, .16), rgba(255, 74, 128, 0) 68%);
  pointer-events: none;
}

.nf-hero__copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.nf-hero__hint {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 23px;
  padding: 9px 13px;
  border: 1px solid rgba(242, 5, 80, .12);
  border-radius: 12px;
  color: var(--nf-text);
  background: rgba(255, 255, 255, .58);
  backdrop-filter: blur(12px);
  font-size: 11px;
}

.dark .nf-hero__hint {
  border-color: rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .045);
}

.nf-hero__hint span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  color: var(--nf-accent);
  background: var(--nf-accent-soft);
}

.nf-hero__hint svg {
  width: 14px;
  height: 14px;
}

.nf-network {
  position: relative;
  z-index: 1;
  flex: 0 0 350px;
  width: 350px;
  height: 224px;
}

.nf-network__lines {
  position: absolute;
  inset: 6px 10px 0;
  width: calc(100% - 20px);
  height: calc(100% - 6px);
  overflow: visible;
}

.nf-network__lines path {
  stroke: rgba(242, 5, 80, .23);
  stroke-width: 1.5;
  stroke-dasharray: .025 .028;
  stroke-linecap: round;
}

.nf-network__lines circle {
  fill: var(--nf-accent);
  filter: drop-shadow(0 0 5px rgba(242, 5, 80, .5));
}

.dark .nf-network__lines path {
  stroke: rgba(255, 79, 132, .32);
}

.nf-network__node,
.nf-network__core {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 5, 80, .16);
  color: var(--nf-accent);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 14px 34px rgba(42, 20, 31, .12);
  backdrop-filter: blur(14px);
}

.dark .nf-network__node,
.dark .nf-network__core {
  border-color: rgba(255, 255, 255, .09);
  background: rgba(31, 33, 42, .9);
}

.nf-network__node {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.nf-network__node svg {
  width: 20px;
  height: 20px;
}

.nf-network__node--one { top: 20px; left: 24px; }
.nf-network__node--two { top: 10px; right: 18px; }
.nf-network__node--three { right: 27px; bottom: 7px; }
.nf-network__node--four { left: 27px; bottom: 5px; }

.nf-network__core {
  top: 50%;
  left: 50%;
  width: 106px;
  height: 106px;
  padding: 9px;
  border-width: 2px;
  border-radius: 10px;
  transform: translate(-50%, -50%);
}

.nf-network__core:before,
.nf-network__core:after {
  content: "";
  position: absolute;
  inset: -13px;
  z-index: -1;
  border: 1px solid rgba(242, 5, 80, .14);
  border-radius: 16px;
}

.nf-network__core:after {
  inset: -25px;
  opacity: .5;
}

.nf-network__core > i {
  position: absolute;
  right: 4px;
  bottom: 4px;
  z-index: 5;
  width: 13px;
  height: 13px;
  border: 3px solid var(--nf-panel);
  border-radius: 50%;
  background: #10c987;
}

.nf-avatar--hero .nf-avatar__photo {
  border-radius: 0;
}

.nf-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}

.nf-overview__item {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 80px;
  padding: 14px 42px 14px 14px;
  overflow: hidden;
  border: 1px solid var(--nf-border);
  border-radius: 18px;
  color: var(--nf-text);
  background: var(--nf-panel);
  box-shadow: 0 8px 26px rgba(20, 32, 56, .045);
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.nf-overview__item:before {
  content: "";
  position: absolute;
  top: -28px;
  right: -25px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--nf-accent-soft);
}

.nf-overview__item:hover {
  color: var(--nf-text);
  border-color: rgba(242, 5, 80, .26);
  box-shadow: 0 14px 32px rgba(20, 32, 56, .08);
  transform: translateY(-2px);
}

.nf-overview__icon {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  margin-right: 12px;
  border-radius: 14px;
  color: var(--nf-accent);
  background: var(--nf-accent-soft);
}

.nf-overview__icon svg {
  width: 20px;
  height: 20px;
}

.nf-overview__copy {
  display: block;
  min-width: 0;
}

.nf-overview__copy b,
.nf-overview__copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nf-overview__copy b {
  font-size: 18px;
  line-height: 1.1;
}

.nf-overview__copy small {
  margin-top: 5px;
  color: var(--nf-muted);
  font-size: 11px;
}

.nf-overview__arrow {
  position: absolute;
  z-index: 1;
  right: 16px;
  color: var(--nf-muted);
  font-size: 18px;
}

.nf-toolbar {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: 16px 0 0;
  padding: 12px;
  border-radius: 19px;
}

.nf-toolbar__label {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding-left: 5px;
}

.nf-toolbar__label > span {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--nf-accent);
  background: var(--nf-accent-soft);
}

.nf-toolbar__label svg {
  width: 18px;
  height: 18px;
}

.nf-toolbar__label b,
.nf-toolbar__label small {
  display: block;
}

.nf-toolbar__label b {
  font-size: 13px;
}

.nf-toolbar__label small {
  margin-top: 3px;
  color: var(--nf-muted);
  font-size: 10px;
}

.nf-search > span {
  display: grid;
  place-items: center;
  font-size: inherit;
  transform: none;
}

.nf-search > span svg {
  width: 19px;
  height: 19px;
}

.nf-search-results {
  width: 100%;
}

.nf-tabs {
  margin: 16px 0 22px;
}

.nf-tabs__icon {
  display: grid;
  place-items: center;
}

.nf-tabs__icon svg {
  width: 15px;
  height: 15px;
}

.nf-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 15px;
}

.nf-section-head__icon {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(242, 5, 80, .12);
  border-radius: 15px;
  color: var(--nf-accent);
  background: var(--nf-accent-soft);
}

.nf-section-head__icon svg {
  width: 21px;
  height: 21px;
}

.nf-section-head > div {
  min-width: 0;
}

.nf-section-head > div > span {
  display: block;
  margin-bottom: 3px;
  color: var(--nf-accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
}

.nf-section-head h2 {
  margin: 0;
  color: var(--nf-text);
  font-size: 22px;
  line-height: 1.15;
}

.nf-section-head p {
  margin: 5px 0 0;
  color: var(--nf-muted);
  font-size: 12px;
}

.nf-card {
  overflow: hidden;
}

.nf-card:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 88px;
  height: 88px;
  border-radius: 0 0 0 88px;
  background: linear-gradient(225deg, var(--nf-accent-soft), transparent 72%);
  pointer-events: none;
}

.nf-card__open {
  position: absolute;
  z-index: 3;
  top: 13px;
  right: 13px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--nf-muted);
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

.nf-card__open svg {
  width: 16px;
  height: 16px;
}

.nf-card__open:hover {
  color: var(--nf-accent);
  border-color: rgba(242, 5, 80, .12);
  background: var(--nf-panel);
  transform: translate(1px, -1px);
}

.nf-card__body {
  padding-right: 7px;
}

.nf-btn svg {
  width: 15px;
  height: 15px;
}

.nf-empty__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}

@media (max-width: 980px) {
  .nf-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    min-height: 270px;
    padding: 36px;
  }

  .nf-network {
    width: 300px;
    height: 205px;
  }

  .nf-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nf-hero {
    display: block;
    min-height: 0;
  }

  .nf-network {
    width: min(100%, 350px);
    height: 190px;
    margin: 22px auto -8px;
  }

  .nf-toolbar {
    grid-template-columns: 205px minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .nf-hero {
    padding: 27px 22px 20px;
  }

  .nf-hero__hint {
    align-items: flex-start;
    font-size: 10px;
    line-height: 1.4;
  }

  .nf-network {
    height: 168px;
    margin-top: 16px;
  }

  .nf-network__node {
    width: 39px;
    height: 39px;
    border-radius: 12px;
  }

  .nf-network__node svg {
    width: 17px;
    height: 17px;
  }

  .nf-network__core {
    width: 86px;
    height: 86px;
    padding: 7px;
  }

  .nf-overview {
    gap: 8px;
    margin-top: 12px;
  }

  .nf-overview__item {
    min-height: 70px;
    padding: 11px 28px 11px 11px;
    border-radius: 15px;
  }

  .nf-overview__icon {
    flex-basis: 39px;
    width: 39px;
    height: 39px;
    margin-right: 9px;
    border-radius: 12px;
  }

  .nf-overview__copy b {
    font-size: 15px;
  }

  .nf-overview__copy small {
    font-size: 10px;
  }

  .nf-overview__arrow {
    right: 10px;
    font-size: 15px;
  }

  .nf-toolbar,
  .nf-search-results {
    width: 100%;
  }

  .nf-toolbar {
    display: block;
    margin: 12px 0 0;
    padding: 8px;
  }

  .nf-toolbar__label {
    display: none;
  }

  .nf-search-results {
    margin-top: 8px;
  }

  .nf-tabs {
    margin-top: 13px;
  }

  .nf-tabs__icon {
    display: none;
  }

  .nf-section-head {
    align-items: flex-start;
    margin: 19px 1px 12px;
  }

  .nf-section-head__icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .nf-section-head h2 {
    font-size: 19px;
  }

  .nf-section-head p {
    font-size: 11px;
    line-height: 1.45;
  }

  .nf-card__open {
    top: 9px;
    right: 9px;
  }

  .nf-empty__actions {
    width: 100%;
    flex-direction: column;
  }

  .nf-empty__actions .nf-btn {
    width: min(100%, 280px);
  }

  .nf-profile-friend-action {
    min-height: 50px;
    margin-left: 10px;
    padding-left: 10px;
  }

  .nf-profile-friend-action__divider {
    height: 44px;
    margin-right: 10px;
  }

  .nf-profile-inline-button {
    width: auto;
    min-width: 0;
    min-height: 27px;
    padding: 2px 8px 2px 3px;
    justify-content: center;
  }

  .nf-profile-inline-button__label {
    display: inline;
  }
}
