#SOG-header-friends .sog-rail-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 1000px;
  background: #e33246;
  border: 2px solid #082f56;
  color: #fff;
  font-family: fontFamilyBold;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
  z-index: 4;
}

#SOG-rail .sog-btn .sog-rail-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  box-sizing: border-box;
  border-radius: 1000px;
  background: #e33246;
  border: 3px solid #0b1626;
  color: #fff;
  font-family: fontFamilyBold;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
  z-index: 5;
  animation: sfBadgePop 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
}

#SOG-toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.sog-toast {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 380px;
  padding: 12px 38px 12px 12px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, #082f56, #041c35);
  border: 3px solid #0b1626;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  color: #fff;
  font-family: fontFamilyBold;
  pointer-events: auto;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.1), opacity 0.25s;
}
.sog-toast.is-in {
  transform: translateX(0);
  opacity: 1;
}
.sog-toast .sog-toast-icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid #3fd1a1;
  background: #041c35;
  object-fit: cover;
}
.sog-toast .sog-toast-icon {
  background: #3fd1a1 url("/media/images/icons/lobby-rail/friends.png") center/80% no-repeat;
}
.sog-toast .sog-toast-body {
  flex: 1;
  min-width: 0;
}
.sog-toast .sog-toast-body p {
  margin: 0;
}
.sog-toast .sog-toast-title {
  font-size: 16px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.sog-toast .sog-toast-text {
  font-family: fontFamilyMedium, fontFamilyBold;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}
.sog-toast .sog-toast-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.sog-toast .sog-toast-close:hover {
  color: #fff;
}

.sf-btn {
  height: 36px;
  padding: 0 16px;
  border-radius: 1000px;
  border: 3px solid #0b1626;
  background: #fff;
  color: #0b1626;
  font-family: fontFamilyBold;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s, filter 0.12s;
}
.sf-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}
.sf-btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}
.sf-btn.is-ok {
  background: #3fd1a1;
}
.sf-btn.is-no {
  width: 36px;
  padding: 0;
  color: #e33246;
}
.sf-btn.is-danger {
  background: #e33246;
  color: #fff;
}
.sf-btn.is-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.sf-btn.is-big {
  height: 44px;
  padding: 0 22px;
  font-size: 16px;
}

.sf-pill {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 1000px;
  background: rgba(63, 209, 161, 0.18);
  color: #3fd1a1;
  font-family: fontFamilyBold;
  font-size: 13px;
  white-space: nowrap;
}
.sf-pill.is-big {
  height: 44px;
  padding: 0 20px;
  font-size: 16px;
}

#SOG-friends-section {
  max-width: 1400px;
  margin: 36px auto 60px;
  padding: 0 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-family: fontFamilyRegular, fontFamilyMedium, fontFamilyBold;
  color: #fff;
  letter-spacing: 1px;
}
#SOG-friends-section h2, #SOG-friends-section h3, #SOG-friends-section p {
  margin: 0;
  font-weight: normal;
}
#SOG-friends-section .sf-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
#SOG-friends-section .sf-top-text {
  flex: none;
}
#SOG-friends-section .sf-top-text h2 {
  font-family: fontFamilyUltra;
  font-size: 44px;
  letter-spacing: 2px;
  line-height: 1;
  text-shadow: 0 5px 0 rgba(0, 0, 0, 0.3);
}
#SOG-friends-section .sf-top-text p {
  margin-top: 10px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.6);
}
#SOG-friends-section .sf-top-actions {
  flex: 1;
  max-width: 620px;
  display: flex;
  gap: 12px;
}
#SOG-friends-section .sf-find {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 18px;
  box-sizing: border-box;
  border-radius: 16px;
  background: rgba(3, 20, 38, 0.75);
  border: 2px solid rgba(1, 201, 210, 0.35);
  cursor: text;
  transition: border-color 0.15s;
}
#SOG-friends-section .sf-find:focus-within {
  border-color: rgba(1, 201, 210, 0.8);
}
#SOG-friends-section .sf-find svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: #7ff0f5;
}
#SOG-friends-section .sf-find input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  background: none;
  border: 0;
  outline: none;
  color: #fff;
  font-family: fontFamilyBold;
  font-size: 16px;
  letter-spacing: 1px;
}
#SOG-friends-section .sf-find input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
#SOG-friends-section .sf-find input::-webkit-search-cancel-button {
  filter: invert(1);
  opacity: 0.5;
}
#SOG-friends-section .sf-cta {
  flex: none;
  height: 46px;
  padding: 0 22px;
  border-radius: 1000px;
  border: 3px solid;
  font-family: fontFamilyUltra;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: filter 0.12s, transform 0.08s, box-shadow 0.08s;
}
#SOG-friends-section .sf-cta.is-green {
  background: #28d17c;
  border-color: #7ef0b0;
  box-shadow: 0 4px 0 #0f7a45;
  color: #06331c;
}
#SOG-friends-section .sf-cta.is-green:active:not(:disabled) {
  box-shadow: 0 1px 0 #0f7a45;
}
#SOG-friends-section .sf-cta:hover:not(:disabled) {
  filter: brightness(1.08);
}
#SOG-friends-section .sf-cta:active:not(:disabled) {
  transform: translateY(3px);
}
#SOG-friends-section .sf-cta:disabled {
  opacity: 0.4;
  cursor: default;
  filter: saturate(0.5);
}
#SOG-friends-section .sf-top-actions .sf-cta {
  height: 56px;
  padding: 0 26px;
  border-radius: 16px;
  font-size: 18px;
  box-shadow: 0 5px 0 #0f7a45;
}
#SOG-friends-section .sf-top-actions .sf-cta:active {
  box-shadow: 0 2px 0 #0f7a45;
}
#SOG-friends-section .sf-text-btn {
  flex: none;
  height: 46px;
  padding: 0 20px;
  border-radius: 1000px;
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.75);
  font-family: fontFamilyBold;
  font-size: 16px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s;
}
#SOG-friends-section .sf-text-btn:hover {
  border-color: #ff4d5e;
  color: #ff8a95;
}
#SOG-friends-section .sf-pill + .sf-text-btn {
  height: 34px;
  padding: 0 14px;
  box-sizing: border-box;
  font-size: 13px;
}
#SOG-friends-section .sf-x {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.45);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s;
}
#SOG-friends-section .sf-x:hover {
  border-color: #ff4d5e;
  color: #ff8a95;
}
#SOG-friends-section .sf-card {
  border-radius: 24px;
  background: linear-gradient(180deg, #0b3f6f, #072a4b);
  border: 2px solid rgba(1, 201, 210, 0.22);
  overflow: hidden;
}
#SOG-friends-section .sf-card[hidden] {
  display: none;
}
#SOG-friends-section .sf-card.is-gold {
  border-color: rgba(255, 192, 19, 0.4);
}
#SOG-friends-section .sf-card.is-gold .sf-card-head {
  background: rgba(255, 192, 19, 0.14);
  border-bottom-color: rgba(255, 192, 19, 0.25);
}
#SOG-friends-section .sf-card.is-gold .sf-card-head h3 {
  color: #ffc013;
}
#SOG-friends-section .sf-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  padding: 14px 22px;
  background: rgba(1, 201, 210, 0.12);
  border-bottom: 2px solid rgba(1, 201, 210, 0.2);
}
#SOG-friends-section .sf-card-head h3 {
  font-family: fontFamilyUltra;
  font-size: 20px;
  letter-spacing: 2px;
}
#SOG-friends-section .sf-badge {
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  box-sizing: border-box;
  border-radius: 1000px;
  background: #ff4d5e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: fontFamilyUltra;
  font-size: 14px;
}
#SOG-friends-section .sf-tabs {
  margin-left: auto;
  display: flex;
  gap: 10px;
  padding: 4px;
  border-radius: 1000px;
  background: rgba(3, 20, 38, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.1);
}
#SOG-friends-section .sf-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  box-sizing: border-box;
  padding: 0 12px 0 26px;
  border-radius: 1000px;
  border: 2px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-family: fontFamilyBold;
  font-size: 16px;
  letter-spacing: 1.5px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: 0.15s background, 0.15s transform;
}
#SOG-friends-section .sf-tab span {
  position: relative;
  top: -1px;
}
#SOG-friends-section .sf-tab i {
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  box-sizing: border-box;
  border-radius: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
}
#SOG-friends-section .sf-tab:hover:not(.is-on) {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
#SOG-friends-section .sf-tab:active {
  transform: scale(0.96);
}
#SOG-friends-section .sf-tab.is-on {
  background: linear-gradient(180deg, #2ce0ea, #0a97b8);
  border-color: #7ff0f5;
  box-shadow: inset 0 -4px 0 rgba(3, 71, 92, 0.9);
  color: #04263f;
}
#SOG-friends-section .sf-tab.is-on i {
  background: rgba(3, 42, 58, 0.22);
  color: #04263f;
}
#SOG-friends-section .sf-guest {
  padding: 36px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
#SOG-friends-section .sf-guest img {
  height: 90px;
}
#SOG-friends-section .sf-guest p {
  font-family: fontFamilyBold;
  font-size: 19px;
}
#SOG-friends-section .sf-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 24px;
  align-items: start;
}
#SOG-friends-section .sf-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
#SOG-friends-section .sf-side {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
#SOG-friends-section .sf-friends {
  box-sizing: border-box;
  min-height: var(--sf-share-h, 0px);
  display: flex;
  flex-direction: column;
}
#SOG-friends-section .sf-friends [data-list=friends] {
  flex: 1;
}
#SOG-friends-section .sf-friends .sf-empty-box {
  margin: auto 0;
}
#SOG-friends-section .sf-me {
  border-color: rgba(1, 201, 210, 0.25);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#SOG-friends-section .sf-me-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
#SOG-friends-section .sf-me-head h3 {
  font-family: fontFamilyUltra;
  font-size: 18px;
  letter-spacing: 2px;
}
#SOG-friends-section .sf-me-head p {
  margin-top: 3px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}
#SOG-friends-section .sf-me-avatar {
  flex: none;
  width: 52px;
  height: 52px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 3px solid #25e2ec;
  background: #0c5489;
  object-fit: cover;
}
#SOG-friends-section .sf-copy {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 16px;
  box-sizing: border-box;
  border-radius: 14px;
  background: rgba(3, 20, 38, 0.6);
  border: 2px solid rgba(1, 201, 210, 0.3);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s;
}
#SOG-friends-section .sf-copy:hover {
  border-color: rgba(1, 201, 210, 0.7);
}
#SOG-friends-section .sf-copy.is-copied {
  border-color: #28d17c;
}
#SOG-friends-section .sf-copy.is-copied .sf-copy-pill {
  background: #28d17c;
  color: #06331c;
  box-shadow: none;
}
#SOG-friends-section .sf-copy-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
#SOG-friends-section .sf-copy-text small {
  font-family: fontFamilyBold;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 2px;
  color: rgba(127, 240, 245, 0.8);
}
#SOG-friends-section .sf-copy-text b {
  font-weight: normal;
  font-family: fontFamilyBold;
  font-size: 22px;
  line-height: 22px;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#SOG-friends-section .sf-copy-pill {
  flex: none;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  background: #01c9d2;
  color: #032a3a;
  box-shadow: 0 3px 0 #04707a;
  font-family: fontFamilyUltra;
  font-size: 13px;
  letter-spacing: 1.5px;
}
#SOG-friends-section .sf-list {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#SOG-friends-section .sf-empty {
  padding: 12px;
  color: rgba(255, 255, 255, 0.6);
}
#SOG-friends-section .sf-empty-box {
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
#SOG-friends-section .sf-empty-box b {
  font-weight: normal;
  font-family: fontFamilyBold;
  font-size: 19px;
}
#SOG-friends-section .sf-empty-box span {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
}
#SOG-friends-section .sf-empty-box em {
  font-style: normal;
  color: #7ef0b0;
}
#SOG-friends-section .sf-person {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(3, 20, 38, 0.4);
  border: 2px solid transparent;
  transition: border-color 0.15s;
}
#SOG-friends-section .sf-person:hover {
  border-color: rgba(1, 201, 210, 0.35);
}
#SOG-friends-section .sf-person-link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  text-decoration: none;
}
#SOG-friends-section .sf-avatar {
  position: relative;
  flex: none;
  width: 48px;
  height: 48px;
}
#SOG-friends-section .sf-avatar-art {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}
#SOG-friends-section .sf-avatar-art img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #0c5489;
  object-fit: cover;
  transform: scale(1.18);
}
#SOG-friends-section .sf-avatar-art::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.22);
  z-index: 2;
  pointer-events: none;
}
#SOG-friends-section .sf-dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 3px solid #0a3862;
  background: #8a9bb0;
  z-index: 3;
}
#SOG-friends-section .sf-dot.is-online {
  background: #28d17c;
}
#SOG-friends-section .sf-person-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
#SOG-friends-section .sf-person-text b {
  font-weight: normal;
  font-family: fontFamilyBold;
  font-size: 19px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#SOG-friends-section .sf-person-text > span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#SOG-friends-section .sf-person-text .sf-on {
  font-style: normal;
  color: #7ef0b0;
}
#SOG-friends-section .sf-person-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
#SOG-friends-section .sf-pill {
  height: 34px;
  background: rgba(40, 209, 124, 0.16);
  color: #7ef0b0;
}
@media (max-width: 1000px) {
  #SOG-friends-section {
    padding: 0 16px;
  }
  #SOG-friends-section .sf-top {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  #SOG-friends-section .sf-top-actions {
    max-width: none;
  }
  #SOG-friends-section .sf-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  #SOG-friends-section .sf-side {
    position: static;
  }
  #SOG-friends-section .sf-friends {
    min-height: 0;
  }
}
@media (max-width: 600px) {
  #SOG-friends-section .sf-top-text h2 {
    font-size: 34px;
  }
  #SOG-friends-section .sf-top-actions {
    flex-direction: column;
  }
  #SOG-friends-section .sf-card-head {
    flex-wrap: wrap;
    padding: 12px 14px;
  }
  #SOG-friends-section .sf-person {
    flex-wrap: wrap;
    gap: 10px;
  }
  #SOG-friends-section .sf-person-actions {
    margin-left: auto;
  }
}

.player-card {
  container-type: inline-size;
}

.player-card .player-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

@container (max-width: 1300px) {
  @media (min-width: 1151px) {
    .player-card .player-totals {
      flex-direction: column;
      flex-wrap: nowrap;
    }
  }
}
#SOG-profile-friend {
  align-self: flex-end;
  display: flex;
}
#SOG-profile-friend:empty {
  display: none;
}
@media (max-width: 512px) {
  #SOG-profile-friend {
    align-self: center;
  }
}

.sf-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px 0 12px;
  border-radius: 1000px;
  border: 2px solid rgba(1, 201, 210, 0.45);
  background: rgba(3, 20, 38, 0.5);
  color: #7ff0f5;
  font-family: fontFamilyBold;
  font-size: 14px;
  white-space: nowrap;
  box-sizing: border-box;
}
.sf-profile-btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}
.sf-profile-btn.is-add, .sf-profile-btn.is-accept {
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.sf-profile-btn.is-add:hover, .sf-profile-btn.is-accept:hover {
  background: rgba(1, 201, 210, 0.18);
  border-color: #01c9d2;
  color: #fff;
}
.sf-profile-btn.is-add:active, .sf-profile-btn.is-accept:active {
  background: rgba(1, 201, 210, 0.28);
}
.sf-profile-btn.is-add:disabled, .sf-profile-btn.is-accept:disabled {
  opacity: 0.6;
  cursor: default;
}
.sf-profile-btn.is-accept {
  border-color: rgba(255, 201, 61, 0.55);
  color: #ffc93d;
}
.sf-profile-btn.is-accept:hover {
  background: rgba(255, 201, 61, 0.16);
  border-color: #ffc93d;
  color: #fff;
}
.sf-profile-btn.is-friends {
  border-color: rgba(63, 209, 161, 0.45);
  color: #3fd1a1;
}
.sf-profile-btn.is-pending {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
}

.sf-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.18s;
  font-family: fontFamilyBold;
  color: #fff;
}
.sf-modal.is-in {
  opacity: 1;
}
.sf-modal.is-in .sf-dialog {
  transform: scale(1);
}
.sf-modal .sf-dialog {
  position: relative;
  width: 480px;
  max-width: calc(100vw - 40px);
  padding: 0 24px 24px;
  box-sizing: border-box;
  border-radius: 34px;
  border: 4px solid transparent;
  background: linear-gradient(180deg, #0b3f6f 0%, #072a4b 55%, #062440 100%) padding-box, linear-gradient(160deg, #25e2ec, #0a5f8e 55%, #ffc013) border-box;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65);
  transform: scale(0.92);
  transition: transform 0.22s cubic-bezier(0.2, 1.3, 0.4, 1);
}
.sf-modal .sf-dialog-close {
  position: absolute;
  z-index: 5;
  top: 44px;
  left: 100%;
  width: 66px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translate(calc(-67% - 6px), -50%);
  transition: 0.2s;
}
.sf-modal .sf-dialog-close img {
  width: 100%;
  display: block;
}
.sf-modal .sf-dialog-close:hover {
  filter: brightness(1.1);
}
.sf-modal .sf-dialog-close:active {
  transform: translate(calc(-67% - 6px), -50%) scale(0.95);
}
.sf-modal .sf-dialog-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 -24px 20px;
  padding: 20px 24px 16px;
  border-radius: 30px 30px 0 0;
  background: linear-gradient(180deg, rgba(37, 226, 236, 0.16), rgba(37, 226, 236, 0));
  border-bottom: 2px solid rgba(37, 226, 236, 0.2);
}
.sf-modal .sf-dialog-head img {
  flex: none;
  width: 64px;
  height: 64px;
  box-sizing: border-box;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(160deg, #7ff0f5, #25e2ec 45%, #0a5f8e);
  object-fit: cover;
}
.sf-modal .sf-dialog-head h3 {
  margin: 0;
  font-family: fontFamilyUltra;
  font-weight: normal;
  font-size: 26px;
  letter-spacing: 1.5px;
  line-height: 1.1;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
  overflow-wrap: anywhere;
}
.sf-modal .sf-dialog-head p {
  margin: 5px 0 0;
  font-size: 15px;
  letter-spacing: 1px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.6);
}
.sf-modal .sf-btn {
  border: 0;
  font-family: fontFamilyUltra;
  font-weight: normal;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: 0.15s filter, 0.15s transform;
}
.sf-modal .sf-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}
.sf-modal .sf-btn:active {
  transform: scale(0.96);
}
.sf-modal .sf-btn:disabled {
  filter: grayscale(0.6) brightness(0.75);
  transform: none;
}
.sf-modal .sf-btn.is-ok {
  background: linear-gradient(180deg, #5fe89a, #22b35c);
  color: #fff;
  text-shadow: 0 2px 0 #0f6701;
  box-shadow: inset 0 -4px 0 #13823f, inset 0 2px 0 rgba(255, 255, 255, 0.35);
  padding-bottom: 3px;
}
.sf-modal .sf-btn.is-danger {
  background: linear-gradient(180deg, #ff6b7a, #dc2c43);
  color: #fff;
  text-shadow: 0 2px 0 #8a1022;
  box-shadow: inset 0 -5px 0 #a3172c, inset 0 2px 0 rgba(255, 255, 255, 0.35);
  padding-bottom: 4px;
}
.sf-modal .sf-btn.is-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18), inset 0 -4px 0 rgba(0, 0, 0, 0.25);
  padding-bottom: 3px;
}
.sf-modal .sf-btn.is-big {
  height: 52px;
  min-width: 140px;
  padding-left: 26px;
  padding-right: 26px;
  font-size: 17px;
}
.sf-modal .sf-add-panel {
  width: 540px;
}
.sf-modal .sf-add-panel .sf-search-input {
  width: 100%;
  height: 50px;
  box-sizing: border-box;
  padding: 0 18px;
  border-radius: 14px;
  border: 3px solid #0b1626;
  background: #fff;
  color: #0b1626;
  font-family: fontFamilyBold;
  font-size: 18px;
  outline: none;
}
.sf-modal .sf-add-panel .sf-search-input:focus {
  border-color: #3fd1a1;
}
.sf-modal .sf-add-panel .sf-search-results {
  margin-top: 10px;
  max-height: min(46vh, 380px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sf-modal .sf-add-panel .sf-search-results:empty {
  display: none;
}
.sf-modal .sf-add-panel .sf-search-hint {
  margin: 6px 4px;
  color: rgba(255, 255, 255, 0.7);
  font-family: fontFamilyMedium, fontFamilyBold;
}
.sf-modal .sf-add-panel .sf-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sf-modal .sf-add-panel .sf-empty {
  margin: 4px 0;
  color: rgba(255, 255, 255, 0.7);
  font-family: fontFamilyMedium, fontFamilyBold;
}
.sf-modal .sf-add-panel .sf-person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}
.sf-modal .sf-add-panel .sf-person:hover {
  background: rgba(255, 255, 255, 0.1);
}
.sf-modal .sf-add-panel .sf-person.is-result {
  background: rgba(255, 255, 255, 0.1);
}
.sf-modal .sf-add-panel .sf-person-link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}
.sf-modal .sf-add-panel .sf-avatar {
  position: relative;
  flex: none;
  width: 48px;
  height: 48px;
}
.sf-modal .sf-add-panel .sf-avatar-art {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}
.sf-modal .sf-add-panel .sf-avatar-art img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #0c5489;
  object-fit: cover;
  transform: scale(1.18);
}
.sf-modal .sf-add-panel .sf-avatar-art::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.22);
  z-index: 2;
  pointer-events: none;
}
.sf-modal .sf-add-panel .sf-dot {
  position: absolute;
  z-index: 3;
  right: -1px;
  bottom: -1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid #0b1626;
  background: #8a9bb0;
}
.sf-modal .sf-add-panel .sf-dot.is-online {
  background: #4be37d;
}
.sf-modal .sf-add-panel .sf-person-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.sf-modal .sf-add-panel .sf-person-text b {
  font-weight: normal;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sf-modal .sf-add-panel .sf-person-text span {
  font-family: fontFamilyMedium, fontFamilyBold;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}
.sf-modal .sf-add-panel .sf-person-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.sf-modal .sf-add-panel .sf-dialog-head {
  padding-right: 70px;
}
.sf-modal .sf-add-panel .sf-dialog-head .sf-add-icon {
  padding: 0;
  border-radius: 0;
  background: none;
  object-fit: contain;
}
.sf-modal .sf-add-panel .sf-search-input {
  height: 54px;
  border-radius: 16px;
  border: 3px solid rgba(37, 226, 236, 0.35);
}
.sf-modal .sf-add-panel .sf-search-input:focus {
  border-color: #25e2ec;
}
.sf-modal .sf-add-panel .sf-search-results {
  margin-top: 14px;
}
.sf-modal .sf-add-panel .sf-person {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(3, 20, 38, 0.42);
  border: 2px solid rgba(255, 255, 255, 0.07);
}
.sf-modal .sf-add-panel .sf-person:hover, .sf-modal .sf-add-panel .sf-person.is-result {
  background: rgba(3, 20, 38, 0.6);
}
.sf-modal .sf-add-panel .sf-btn {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}
.sf-modal .sf-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 0 -24px -24px;
  padding: 16px 24px 20px;
  border-radius: 0 0 30px 30px;
  background: rgba(3, 20, 38, 0.42);
  border-top: 2px solid rgba(255, 255, 255, 0.07);
}
.sf-modal .sf-dialog-head + .sf-confirm-actions {
  margin-top: -22px;
}

@keyframes sfBadgePop {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}
