.friends-app {
  min-height: 100vh;
}

.friends-main {
  min-width: 0;
}

.friends-hero {
  position: relative;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;

  min-height: 225px;
  padding: 32px;

  overflow: hidden;

  background-image:
    linear-gradient(
      90deg,
      rgba(8, 8, 8, 0.96),
      rgba(8, 8, 8, 0.75),
      rgba(8, 8, 8, 0.42)
    ),
    url("../images/hero.png");

  background-position: center 46%;
  background-repeat: no-repeat;
  background-size: cover;

  border: 1px solid var(--border);
  border-radius: var(--radius-large);

  box-shadow: var(--shadow-small);
}

.friends-hero::before {
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at 18% 26%,
      rgba(249, 201, 47, 0.12),
      transparent 42%
    ),
    radial-gradient(
      circle at 86% 70%,
      rgba(211, 31, 95, 0.09),
      transparent 38%
    );

  content: "";
  pointer-events: none;
}

.friends-hero-content,
.friends-hero-stats {
  position: relative;
  z-index: 2;
}

.friends-hero-content {
  max-width: 720px;
}

.friends-eyebrow,
.friends-section-kicker {
  color: var(--yellow);

  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.friends-hero h1 {
  margin: 7px 0 10px;

  color: var(--white);

  font-size: clamp(2.7rem, 4vw, 4.4rem);
  letter-spacing: -0.06em;
  line-height: 0.96;
}

.friends-hero p {
  max-width: 640px;
  margin: 0;

  color: #d4cec5;

  font-size: 0.78rem;
  line-height: 1.75;
}

.friends-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;

  margin-top: 19px;
}

.friends-primary-button,
.friends-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 43px;
  padding: 0 16px;

  border-radius: 999px;

  font-size: 0.59rem;
  font-weight: 900;

  cursor: pointer;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.friends-primary-button {
  color: #171207;

  background:
    linear-gradient(
      135deg,
      var(--yellow-light),
      var(--yellow)
    );

  box-shadow:
    0 12px 28px rgba(249, 201, 47, 0.2);
}

.friends-secondary-button {
  color: var(--white);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.17);

  backdrop-filter: blur(10px);
}

.friends-primary-button:hover,
.friends-secondary-button:hover {
  transform: translateY(-2px);
}

.friends-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;

  min-width: 330px;
}

.friends-hero-stats div {
  display: grid;
  gap: 3px;

  min-height: 82px;
  padding: 15px;

  background: rgba(0, 0, 0, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 15px;

  backdrop-filter: blur(10px);
}

.friends-hero-stats strong {
  color: var(--white);

  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.friends-hero-stats span {
  color: var(--muted);
  font-size: 0.54rem;
}

.friends-navigation {
  position: sticky;
  top: calc(var(--header-height) + var(--livebar-height) + 10px);
  z-index: 60;

  display: flex;
  align-items: center;
  gap: 5px;

  margin-top: 16px;
  padding: 8px;

  overflow-x: auto;

  background: rgba(18, 18, 18, 0.95);
  border: 1px solid var(--border);
  border-radius: 16px;

  box-shadow: var(--shadow-small);
  backdrop-filter: blur(16px);
}

.friends-navigation button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;

  min-height: 40px;
  padding: 0 14px;

  color: var(--muted);
  background: transparent;
  border-radius: 10px;

  font-size: 0.6rem;
  font-weight: 850;

  cursor: pointer;

  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.friends-navigation button:hover,
.friends-navigation button.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.friends-navigation button.active {
  box-shadow:
    inset 0 -2px 0 var(--yellow);
}

.friends-navigation button span {
  display: grid;
  place-items: center;

  min-width: 20px;
  height: 20px;
  padding: 0 5px;

  color: #171207;
  background: var(--yellow);
  border-radius: 999px;

  font-size: 0.47rem;
  font-weight: 900;
}

.friends-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  margin-top: 16px;
  padding: 14px 15px;

  background:
    linear-gradient(
      145deg,
      #171717,
      #101010
    );

  border: 1px solid var(--border);
  border-radius: 16px;

  box-shadow: var(--shadow-small);
}

.friends-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;

  width: min(430px, 100%);
  min-height: 42px;
  padding: 0 12px;

  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.friends-search > span {
  color: var(--muted);
}

.friends-search input {
  min-width: 0;
  height: 40px;

  color: var(--white);
  background: transparent;
  border: 0;
  outline: none;

  font-size: 0.62rem;
}

.friends-search input::placeholder {
  color: #736f69;
}

.friends-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.friends-toolbar-actions button,
.friends-toolbar-actions select {
  min-height: 36px;

  color: #d5cfc6;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 999px;

  font-size: 0.54rem;
  font-weight: 800;
}

.friends-toolbar-actions button {
  padding: 0 11px;

  cursor: pointer;
}

.friends-toolbar-actions button:hover,
.friends-toolbar-actions button.active {
  color: #171207;
  background: var(--yellow);
  border-color: var(--yellow);
}

.friends-toolbar-actions select {
  padding: 0 34px 0 12px;

  outline: none;
  color-scheme: dark;

  cursor: pointer;
}

.friends-toolbar-actions option {
  color: var(--white);
  background: #171717;
}

.friends-filter-panel {
  margin-top: 10px;
  padding: 16px;

  background:
    linear-gradient(
      145deg,
      #171717,
      #101010
    );

  border: 1px solid var(--border);
  border-radius: 16px;

  box-shadow: var(--shadow-small);
}

.friends-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr)) repeat(4, auto);
  align-items: end;
  gap: 12px;
}

.friends-filter-group {
  display: grid;
  gap: 7px;
}

.friends-filter-group label {
  color: #d3cdc4;
  font-size: 0.57rem;
  font-weight: 800;
}

.friends-filter-group select {
  width: 100%;
  height: 42px;
  padding: 0 34px 0 11px;

  color: var(--white);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 11px;
  outline: none;

  font-size: 0.6rem;

  color-scheme: dark;
}

.friends-filter-group option {
  color: var(--white);
  background: #171717;
}

.friends-filter-check {
  position: relative;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  min-height: 42px;
  padding: 0 10px;

  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 11px;

  font-size: 0.53rem;

  cursor: pointer;
}

.friends-filter-check input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
}

.friends-filter-check > span {
  display: grid;
  place-items: center;

  width: 20px;
  height: 20px;

  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.friends-filter-check > span::after {
  color: #171207;
  font-size: 0.6rem;
  font-weight: 900;

  content: "✓";
  opacity: 0;
}

.friends-filter-check input:checked + span {
  background: var(--yellow);
  border-color: var(--yellow);
}

.friends-filter-check input:checked + span::after {
  opacity: 1;
}

.friends-filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;

  margin-top: 14px;
}

.friends-filter-actions button {
  min-height: 36px;
  padding: 0 13px;

  border-radius: 999px;

  font-size: 0.55rem;
  font-weight: 850;

  cursor: pointer;
}

#friendsResetFiltersButton {
  color: #d2ccc3;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

#friendsApplyFiltersButton {
  color: #171207;
  background: var(--yellow);
}

.friends-content-section,
.friends-requests-section,
.friends-sent-section,
.friends-blocked-section {
  margin-top: 16px;
  padding: 21px;

  background:
    linear-gradient(
      145deg,
      #171717,
      #101010
    );

  border: 1px solid var(--border);
  border-radius: var(--radius-large);

  box-shadow: var(--shadow-small);
}

.friends-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;

  margin-bottom: 18px;
}

.friends-section-header h2 {
  margin: 5px 0 0;

  color: var(--white);

  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.friends-section-header p {
  margin: 7px 0 0;

  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.6;
}

.friends-result-count {
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 800;
}

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

.friend-card {
  position: relative;

  min-width: 0;

  background:
    linear-gradient(
      145deg,
      rgba(31, 31, 31, 0.98),
      rgba(14, 14, 14, 0.99)
    );

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 17px;

  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.friend-card:hover {
  transform: translateY(-4px);

  border-color: rgba(249, 201, 47, 0.28);

  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.3);
}

.friend-card-cover {
  position: relative;

  min-height: 115px;

  overflow: hidden;

  border-radius: 16px 16px 0 0;
}

.friend-card-cover::after {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.02),
      rgba(0, 0, 0, 0.55)
    );

  content: "";
}

.friend-cover-one {
  background:
    radial-gradient(circle at 40% 25%, #715047, transparent 34%),
    linear-gradient(145deg, #3b2925, #111111);
}

.friend-cover-two {
  background:
    radial-gradient(circle at 40% 25%, #46777a, transparent 34%),
    linear-gradient(145deg, #263f42, #111111);
}

.friend-cover-three {
  background:
    radial-gradient(circle at 40% 25%, #4e6688, transparent 34%),
    linear-gradient(145deg, #2c3a50, #111111);
}

.friend-cover-four {
  background:
    radial-gradient(circle at 40% 25%, #72517e, transparent 34%),
    linear-gradient(145deg, #3b2b42, #111111);
}

.friend-cover-five {
  background:
    radial-gradient(circle at 40% 25%, #75633d, transparent 34%),
    linear-gradient(145deg, #3e3521, #111111);
}

.friend-cover-six {
  background:
    radial-gradient(circle at 40% 25%, #4d6280, transparent 34%),
    linear-gradient(145deg, #2a3549, #111111);
}

.friend-cover-seven {
  background:
    radial-gradient(circle at 40% 25%, #4e7370, transparent 34%),
    linear-gradient(145deg, #2a3e3c, #111111);
}

.friend-cover-eight {
  background:
    radial-gradient(circle at 40% 25%, #724c55, transparent 34%),
    linear-gradient(145deg, #3b282d, #111111);
}

.friend-card-status {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;

  display: inline-flex;
  align-items: center;

  min-height: 24px;
  padding: 0 8px;

  border-radius: 999px;

  font-size: 0.47rem;
  font-weight: 900;

  backdrop-filter: blur(8px);
}

.friend-card-status.is-online {
  color: #10200e;
  background: var(--green);
}

.friend-card-status.is-live {
  color: var(--white);
  background: var(--red);
}

.friend-card-status.is-offline {
  color: #d2ccc3;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.friend-card-favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;

  display: grid;
  place-items: center;

  width: 32px;
  height: 32px;

  color: var(--white);
  background: rgba(0, 0, 0, 0.57);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;

  font-size: 0.9rem;

  cursor: pointer;

  backdrop-filter: blur(8px);
}

.friend-card-favorite.is-active {
  color: #ffb7b7;
  background: rgba(165, 35, 35, 0.64);
  border-color: rgba(255, 128, 128, 0.22);
}

.friend-card-avatar {
  position: relative;
  z-index: 4;

  display: grid;
  place-items: center;

  width: 70px;
  height: 70px;
  margin: -35px 0 0 14px;

  color: var(--white);

  border: 5px solid #171717;
  border-radius: 50%;

  font-size: 1rem;
  font-weight: 900;
}

.friend-card-avatar i {
  position: absolute;
  right: 2px;
  bottom: 2px;

  width: 13px;
  height: 13px;

  background: var(--green);
  border: 3px solid #171717;
  border-radius: 50%;
}

.friend-card-content {
  padding: 10px 14px 14px;
}

.friend-card-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.friend-card-title > a {
  color: var(--white);

  font-size: 0.78rem;
  font-weight: 900;
}

.friend-card-title > span:nth-child(2) {
  color: var(--yellow);
  font-size: 0.58rem;
  font-weight: 900;
}

.friend-card-moderator,
.friend-card-vip,
.friend-card-photo-badge,
.friend-card-birthday {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 20px;
  padding: 0 6px;

  border-radius: 999px;

  font-size: 0.42rem;
  font-weight: 900;
}

.friend-card-moderator {
  color: #171207;
  background: var(--yellow);
}

.friend-card-vip {
  color: var(--white);
  background:
    linear-gradient(
      135deg,
      #a87512,
      #e1b23d,
      #8f5210
    );
}

.friend-card-photo-badge {
  padding: 0 4px;

  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.friend-card-birthday {
  color: var(--white);
  background: rgba(231, 53, 53, 0.15);
}

.friend-card-location {
  display: block;

  margin-top: 4px;

  color: var(--muted);
  font-size: 0.52rem;
}

.friend-card-content > p {
  min-height: 46px;
  margin: 10px 0 0;

  color: #c8c2b9;
  font-size: 0.56rem;
  line-height: 1.58;
}

.friend-card-meta {
  display: grid;
  gap: 3px;

  margin-top: 10px;
  padding: 9px;

  background: rgba(255, 255, 255, 0.025);
  border-radius: 9px;
}

.friend-card-meta span {
  color: var(--muted-dark);
  font-size: 0.47rem;
}

.friend-card-live-action,
.friend-card-birthday-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;

  margin-top: 9px;
  padding: 8px 9px;

  border-radius: 9px;
}

.friend-card-live-action {
  color: #eaffff;
  background: rgba(31, 143, 150, 0.09);
  border: 1px solid rgba(31, 143, 150, 0.2);
}

.friend-card-live-action span {
  font-size: 0.5rem;
  font-weight: 800;
}

.friend-card-live-action a {
  padding: 6px 8px;

  color: #eaffff;
  background: #197f89;
  border-radius: 999px;

  font-size: 0.46rem;
  font-weight: 850;
}

.friend-card-birthday-message {
  color: #ffd7d7;
  background: rgba(231, 53, 53, 0.08);
  border: 1px solid rgba(231, 53, 53, 0.16);

  font-size: 0.5rem;
  font-weight: 800;
}

.friend-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 6px;

  margin-top: 11px;
}

.friend-card-actions a,
.friend-card-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  min-height: 35px;

  border-radius: 999px;

  font-size: 0.5rem;
  font-weight: 850;
}

.friend-card-actions a:first-child {
  color: #171207;
  background: var(--yellow);
}

.friend-card-actions a:nth-child(2),
.friend-card-actions button {
  color: #d4cec5;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
}

.friend-card-actions button {
  width: 35px;

  cursor: pointer;
}

.friend-card-menu {
  position: absolute;
  right: 10px;
  bottom: 58px;
  z-index: 30;

  width: 195px;
  padding: 7px;

  background: #171717;
  border: 1px solid var(--border-strong);
  border-radius: 13px;

  box-shadow: var(--shadow-large);
}

.friend-card-menu button {
  display: flex;
  align-items: center;

  width: 100%;
  min-height: 38px;
  padding: 0 11px;

  color: #d4cec5;
  background: transparent;
  border-radius: 9px;

  font-size: 0.56rem;
  text-align: left;

  cursor: pointer;
}

.friend-card-menu button:hover {
  background: rgba(255, 255, 255, 0.055);
}

.friend-card-menu button.is-danger {
  color: #ffbebe;
}

.friends-grid.is-list-view {
  grid-template-columns: 1fr;
}

.friends-grid.is-list-view .friend-card {
  display: grid;
  grid-template-columns: 140px auto minmax(0, 1fr);
  align-items: stretch;
}

.friends-grid.is-list-view .friend-card-cover {
  grid-row: 1;
  grid-column: 1;

  min-height: 150px;

  border-radius: 16px 0 0 16px;
}

.friends-grid.is-list-view .friend-card-avatar {
  grid-row: 1;
  grid-column: 2;

  align-self: center;

  margin: 0 0 0 -35px;
}

.friends-grid.is-list-view .friend-card-content {
  grid-row: 1;
  grid-column: 3;

  display: grid;
  align-content: center;

  padding: 18px;
}

.friends-grid.is-list-view .friend-card-content > p {
  min-height: auto;
}

.friends-grid.is-list-view .friend-card-meta {
  grid-template-columns: repeat(2, auto);
  justify-content: start;
  gap: 16px;
}

.friends-grid.is-list-view .friend-card-menu {
  right: 12px;
  bottom: 58px;
}

.friends-empty-state {
  display: grid;
  justify-items: center;

  padding: 70px 20px;

  text-align: center;
}

.friends-empty-state > span {
  display: grid;
  place-items: center;

  width: 78px;
  height: 78px;

  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 50%;

  font-size: 1.8rem;
}

.friends-empty-state h3 {
  margin: 18px 0 7px;

  color: var(--white);
  font-size: 1.05rem;
}

.friends-empty-state p {
  margin: 0;

  color: var(--muted);
  font-size: 0.68rem;
}

.friends-empty-state button {
  margin-top: 17px;
  padding: 10px 16px;

  color: #171207;
  background: var(--yellow);
  border-radius: 999px;

  font-size: 0.6rem;
  font-weight: 900;

  cursor: pointer;
}

.friends-load-more {
  display: block;

  min-height: 39px;
  margin: 18px auto 0;
  padding: 0 15px;

  color: #d4cec5;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;

  font-size: 0.56rem;
  font-weight: 850;

  cursor: pointer;
}

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

.friend-request-card {
  position: relative;

  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      rgba(31, 31, 31, 0.98),
      rgba(14, 14, 14, 0.99)
    );

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 17px;
}

.friend-request-cover {
  min-height: 120px;
}

.request-cover-one {
  background:
    radial-gradient(circle at 40% 25%, #4d7455, transparent 34%),
    linear-gradient(145deg, #293e2d, #111111);
}

.request-cover-two {
  background:
    radial-gradient(circle at 40% 25%, #70507c, transparent 34%),
    linear-gradient(145deg, #3b2a41, #111111);
}

.friend-request-avatar {
  position: relative;

  display: grid;
  place-items: center;

  width: 72px;
  height: 72px;
  margin: -36px 0 0 15px;

  color: var(--white);

  border: 5px solid #171717;
  border-radius: 50%;

  font-size: 1rem;
  font-weight: 900;
}

.friend-request-avatar i {
  position: absolute;
  right: 2px;
  bottom: 2px;

  width: 13px;
  height: 13px;

  background: var(--green);
  border: 3px solid #171717;
  border-radius: 50%;
}

.friend-request-content {
  padding: 10px 15px 15px;
}

.friend-request-content > div:first-child {
  display: grid;
  gap: 3px;
}

.friend-request-content > div:first-child a {
  color: var(--white);

  font-size: 0.76rem;
  font-weight: 900;
}

.friend-request-content > div:first-child span {
  color: var(--muted);
  font-size: 0.52rem;
}

.friend-request-content p {
  margin: 10px 0 0;

  color: #c9c3ba;
  font-size: 0.56rem;
  line-height: 1.58;
}

.friend-request-mutual {
  display: block;

  margin-top: 9px;

  color: var(--yellow);
  font-size: 0.49rem;
  font-weight: 800;
}

.friend-request-actions {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 6px;

  margin-top: 12px;
}

.friend-request-actions button {
  min-height: 36px;
  padding: 0 11px;

  border-radius: 999px;

  font-size: 0.51rem;
  font-weight: 850;

  cursor: pointer;
}

.request-accept-button {
  color: #171207;
  background: var(--yellow);
}

.request-decline-button,
.request-more-button {
  color: #d4cec5;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
}

.request-more-button {
  color: #ffcaca;
}

.sent-requests-list,
.blocked-members-list {
  display: grid;
  gap: 8px;
}

.sent-request-item,
.blocked-member-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;

  min-height: 78px;
  padding: 11px;

  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 13px;
}

.sent-request-avatar,
.blocked-member-avatar {
  display: grid;
  place-items: center;

  width: 48px;
  height: 48px;

  color: var(--white);
  border-radius: 50%;

  font-size: 0.74rem;
  font-weight: 900;
}

.sent-request-item > div,
.blocked-member-item > div {
  display: grid;
  gap: 2px;
}

.sent-request-item > div a,
.blocked-member-item strong {
  color: var(--white);

  font-size: 0.64rem;
  font-weight: 900;
}

.sent-request-item > div span,
.blocked-member-item span {
  color: var(--muted);
  font-size: 0.52rem;
}

.sent-request-item > div small,
.blocked-member-item small {
  color: var(--muted-dark);
  font-size: 0.47rem;
}

.sent-request-status {
  padding: 6px 9px;

  color: #171207;
  background: var(--yellow);
  border-radius: 999px;

  font-size: 0.48rem;
  font-weight: 850;
}

.sent-request-item > button,
.blocked-member-item > button {
  min-height: 34px;
  padding: 0 10px;

  color: #ffcaca;
  background: rgba(231, 53, 53, 0.08);
  border: 1px solid rgba(231, 53, 53, 0.17);
  border-radius: 999px;

  font-size: 0.5rem;
  font-weight: 800;

  cursor: pointer;
}

.blocked-member-item {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.friends-summary-list {
  display: grid;
  gap: 7px;
}

.friends-summary-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  min-height: 40px;
  padding: 0 9px;

  background: rgba(255, 255, 255, 0.03);
  border-radius: 9px;
}

.friends-summary-list span {
  color: var(--muted);
  font-size: 0.53rem;
}

.friends-summary-list strong {
  color: var(--white);
  font-size: 0.66rem;
}

.rightbar-card-header button {
  color: var(--yellow);
  background: transparent;

  font-size: 0.5rem;
  font-weight: 800;

  cursor: pointer;
}

.birthdays-list,
.friend-suggestions-list {
  display: grid;
  gap: 6px;
}

.birthdays-list article,
.friend-suggestions-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;

  min-height: 58px;
  padding: 7px;

  background: rgba(255, 255, 255, 0.025);
  border-radius: 10px;
}

.birthday-avatar,
.friend-suggestion-avatar {
  display: grid;
  place-items: center;

  width: 40px;
  height: 40px;

  color: var(--white);
  border-radius: 50%;

  font-size: 0.64rem;
  font-weight: 900;
}

.birthdays-list article > div,
.friend-suggestions-list article > div {
  display: grid;
  gap: 2px;
}

.birthdays-list article > div a,
.friend-suggestions-list article > div a {
  color: var(--white);

  font-size: 0.59rem;
  font-weight: 850;
}

.birthdays-list article > div span,
.friend-suggestions-list article > div span {
  color: var(--muted);
  font-size: 0.47rem;
}

.birthday-message-button,
.friend-suggestions-list article > button {
  min-height: 30px;
  padding: 0 8px;

  color: #171207;
  background: var(--yellow);
  border-radius: 999px;

  font-size: 0.46rem;
  font-weight: 850;

  cursor: pointer;
}

.friends-modal {
  position: fixed;
  inset: 0;
  z-index: 800;

  display: grid;
  place-items: center;

  padding: 20px;

  opacity: 0;
  pointer-events: none;

  transition: opacity 200ms ease;
}

.friends-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.friends-modal-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.friends-modal-dialog {
  position: relative;
  z-index: 2;

  width: min(620px, 100%);
  max-height: calc(100vh - 40px);

  overflow-y: auto;

  background:
    linear-gradient(
      145deg,
      #1a1a1a,
      #0f0f0f
    );

  border: 1px solid var(--border-strong);
  border-radius: 21px;

  box-shadow: var(--shadow-large);

  transform: translateY(18px) scale(0.98);

  transition: transform 200ms ease;
}

.friends-modal.is-open .friends-modal-dialog {
  transform: translateY(0) scale(1);
}

.friends-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  min-height: 70px;
  padding: 13px 16px;

  border-bottom: 1px solid var(--border);
}

.friends-modal-header > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.friends-modal-header > div > span {
  display: grid;
  place-items: center;

  width: 41px;
  height: 41px;

  background: rgba(249, 201, 47, 0.09);
  border-radius: 11px;
}

.friends-modal-header > div > div {
  display: grid;
  gap: 2px;
}

.friends-modal-header h2 {
  margin: 0;

  color: var(--white);
  font-size: 0.8rem;
}

.friends-modal-header div div span {
  color: var(--muted);
  font-size: 0.52rem;
}

.friends-modal-header > button {
  display: grid;
  place-items: center;

  width: 37px;
  height: 37px;

  color: var(--white);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 10px;

  font-size: 1.2rem;

  cursor: pointer;
}

.friend-note-form,
.invite-friend-form {
  display: grid;
  gap: 15px;

  padding: 17px;
}

.friends-form-group {
  display: grid;
  gap: 7px;
}

.friends-form-group label {
  color: #d5cfc6;
  font-size: 0.59rem;
  font-weight: 800;
}

.friends-form-group input,
.friends-form-group textarea {
  width: 100%;

  color: var(--white);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;

  font-size: 0.63rem;
}

.friends-form-group input {
  height: 46px;
  padding: 0 12px;
}

.friends-form-group textarea {
  min-height: 120px;
  padding: 12px;

  line-height: 1.6;
  resize: vertical;
}

.friends-form-group input:focus,
.friends-form-group textarea:focus {
  border-color: rgba(249, 201, 47, 0.55);

  box-shadow:
    0 0 0 4px rgba(249, 201, 47, 0.07);
}

.friends-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.friends-modal-cancel,
.friends-modal-submit,
.friends-modal-danger {
  min-height: 39px;
  padding: 0 14px;

  border-radius: 999px;

  font-size: 0.57rem;
  font-weight: 850;

  cursor: pointer;
}

.friends-modal-cancel {
  color: #d4cec5;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
}

.friends-modal-submit {
  color: #171207;
  background: var(--yellow);
}

.friends-modal-danger {
  color: var(--white);
  background: var(--red);
}

.friends-confirm-content {
  display: grid;
  justify-items: center;

  padding: 28px 20px 20px;

  text-align: center;
}

.friends-confirm-icon {
  display: grid;
  place-items: center;

  width: 66px;
  height: 66px;

  color: #171207;
  background: var(--yellow);
  border-radius: 50%;

  font-size: 1.4rem;
  font-weight: 900;
}

.friends-confirm-icon.is-danger {
  color: var(--white);
  background: var(--red);
}

.friends-confirm-content h3 {
  margin: 17px 0 7px;

  color: var(--white);
  font-size: 0.88rem;
}

.friends-confirm-content p {
  max-width: 450px;
  margin: 0;

  color: var(--muted);
  font-size: 0.57rem;
  line-height: 1.62;
}

.friends-confirm-content .friends-modal-actions {
  width: 100%;
  margin-top: 20px;
}

.friends-block-reason {
  display: grid;
  gap: 7px;

  width: 100%;
  margin-top: 18px;

  text-align: left;
}

.friends-block-reason > span {
  color: #d5cfc6;
  font-size: 0.58rem;
  font-weight: 800;
}

.friends-block-reason select {
  width: 100%;
  height: 44px;
  padding: 0 34px 0 11px;

  color: var(--white);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 11px;
  outline: none;

  font-size: 0.59rem;

  color-scheme: dark;
}

.friends-block-reason option {
  color: var(--white);
  background: #171717;
}

body.modal-open {
  overflow: hidden;
}

.avatar-red {
  background:
    linear-gradient(
      135deg,
      #a8463d,
      #6d2521
    );
}

.avatar-teal {
  background:
    linear-gradient(
      135deg,
      #3f8588,
      #285256
    );
}

.avatar-blue {
  background:
    linear-gradient(
      135deg,
      #4e6f9a,
      #2b3e5b
    );
}

.avatar-purple {
  background:
    linear-gradient(
      135deg,
      #7b4e94,
      #4a2d5b
    );
}

.avatar-gold {
  background:
    linear-gradient(
      135deg,
      #a77a24,
      #634712
    );
}

.avatar-green {
  background:
    linear-gradient(
      135deg,
      #4f8b58,
      #2b4f31
    );
}

@media (max-width: 1580px) {
  .friends-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .friends-filter-grid {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }
}

@media (max-width: 1280px) {
  .friends-rightbar {
    display: none;
  }

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

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

  .friends-hero-stats {
    width: 100%;
    min-width: 0;

    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .friends-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .friends-search {
    width: 100%;
  }

  .friends-toolbar-actions {
    width: 100%;
  }

  .friends-toolbar-actions button,
  .friends-toolbar-actions select {
    flex: 1 1 auto;
  }

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

  .friend-requests-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .friends-hero {
    padding: 24px;
  }

  .friends-hero h1 {
    font-size: 2.8rem;
  }

  .friends-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .friends-navigation {
    top: calc(var(--header-height) + var(--livebar-height) + 5px);
  }

  .friends-content-section,
  .friends-requests-section,
  .friends-sent-section,
  .friends-blocked-section {
    padding: 16px;
  }

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

  .friends-grid.is-list-view .friend-card {
    display: block;
  }

  .friends-grid.is-list-view .friend-card-cover {
    min-height: 115px;
    border-radius: 16px 16px 0 0;
  }

  .friends-grid.is-list-view .friend-card-avatar {
    margin: -35px 0 0 14px;
  }

  .friends-grid.is-list-view .friend-card-content {
    padding: 10px 14px 14px;
  }

  .friends-grid.is-list-view .friend-card-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .friends-filter-grid {
    grid-template-columns: 1fr;
  }

  .sent-request-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .sent-request-status,
  .sent-request-item > button {
    grid-column: 2;
    justify-self: start;
  }

  .blocked-member-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .blocked-member-item > button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .friends-hero {
    min-height: 400px;
    padding: 20px;
  }

  .friends-hero h1 {
    font-size: 2.45rem;
  }

  .friends-hero-actions {
    display: grid;
  }

  .friends-primary-button,
  .friends-secondary-button {
    width: 100%;
  }

  .friends-toolbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .friends-toolbar-actions select {
    grid-column: 1 / -1;
  }

  .friends-section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .friend-request-actions {
    grid-template-columns: 1fr 1fr;
  }

  .request-more-button {
    grid-column: 1 / -1;
  }

  .friends-modal-actions {
    display: grid;
    width: 100%;
  }

  .friends-modal-actions button {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .friends-hero {
    min-height: 500px;
  }

  .friends-hero-stats {
    grid-template-columns: 1fr;
  }

  .friends-hero-stats div {
    min-height: 62px;
  }

  .friends-content-section,
  .friends-requests-section,
  .friends-sent-section,
  .friends-blocked-section {
    padding: 13px;
  }

  .friend-card-actions {
    grid-template-columns: 1fr 1fr;
  }

  .friend-card-actions button {
    grid-column: 1 / -1;
    width: 100%;
  }
}
