body {
    overflow: hidden;
    position: fixed;
    height: 100%;
}

.friends-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overflow-y: auto;
    position: fixed;
    width: 100%;
    border: none;
    transition: all 0.3s;
}

.friends-container.hidden {
    transform: translate(-20%);
}

.friends-header {
    background: var(--bg-primary);
    position: fixed;
    width: 100%;
    height: 60px;
    z-index: 99999;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.friends-header svg {
    height: 22px;
    fill: currentColor;
}

.title-page {
    text-align: center;
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    padding: 0 0 0 18px;
    font-size: 1.3rem;
    height: 100%;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-btn {
    border: none;
    color: #eee;
    background: transparent;
    padding: 10px;
    height: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-view {
    height: 100%;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg-primary);
}

.alert-area {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: fixed;
}

.alert-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.icon-area {
    height: 100px;
    width: 100px;
    aspect-ratio: 1/1;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-area svg {
    height: 50px;
    width: 50px;
    fill: none
}

.alert-title {
    font-size: 1.3rem;
    color: #fff;
    font-weight: bold;
    padding: 22px 0 12px 0;
}

.alert-sub {
    color: #aaa;
    padding-bottom: 12px;
}

.alert-btn {
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 12px;
}

.alert-btn button {
    width: 100%;
    height: 100%;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
   background: var(--primary-btn);
    border: none;
    border-radius: 14px;
}

.friends-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px 10px;
    padding-bottom: 200px;
    padding-top: 80px;
}

.user {
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #fff;
    background: #202020;
}

.card-media {
   background: #202020;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    position: relative;
    padding-bottom: 50px;
}

.card-banner {
    border-radius: 0;
    width: 100%;
    height: 90px;
    object-fit: cover;
}

.card-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    border: 6px solid #202020;
    background: #202020;
    top: 20px;
}

.card-info {
    width: 100%;
}

.profile-name p {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
}

.user-name {
    padding: 0 15px 15px 15px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-username p {
  margin: 0;
  text-align: center;
  color: #ddd;
  font-size: 15px;
  font-weight: bold;
}

.follow-btn {
   background: var(--primary-btn);
    width: 100%;
    padding: 10px;
    border: none;
    font-size: 14px;
    border-radius: 12px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    pointer-events: none;
}

.option-bar {
    position: fixed;
    flex-direction: column;
    overflow: hidden;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 99999;
    transform: translate(100%);
    transition: all 0.3s;
}

.option-bar.active {
    transform: translate(0);
    box-shadow: 0 0 7px 7px #0d0d0d80;
}

.options-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    align-content: center;
    padding: 0 12px;
    height: 60px;
    justify-content: space-between;
}

.header-box {
    width: 100%;
}

.header-title {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap;
}


.options-header svg {
    height: 20px;
    width: 20px;
    fill: #fff;
}

.options-header button {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.options {
    width: 100%;
    height: 100%;
}

.filtros {
    height: 100%;
    padding: 60px 0 160px;
    overflow: auto;
}

.filterArea {
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.filterInput {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  height: auto;
  max-height: 100px;
  font-size: 16px;
  background: #222;
  border: none;
  box-shadow: none;
  transition: all 0.3s ease;
  color: #cacaca;
  resize: none;
  font-family: Arial, Helvetica, sans-serif;
}

.filterLabel {
    padding: 4px 2px;
    font-weight: bold;
    color: #ddd;
    font-size: 0.9rem;
}

.search-btn-area {
    padding: 12px;
    padding-bottom: 48px;
    gap: 10px;
    display: flex;
    background: var(--bg-primary);
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
}

.bottom-area {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.search-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-btn);
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.1px;
}

.search-btn.sec {
    background: #272727;
    color: #fff;
    font-weight: bold;
}


.loading-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 12px;
  padding: 24px 32px;
}

.spinner-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spinner-center p {
    display: none;
}

.spinner {
  width: 30px;
  height: 30px;
  border: 2px solid #333;
  border-top-color: #ddd;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-area {
    position: fixed;
    width: 95%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-area p {
    font-weight: bold;
}