:root {
    --fc-bg: #050505;
    --fc-surface: #111111;
    --fc-surface-2: #191919;
    --fc-border: #272727;
    --fc-text: #ffffff;
    --fc-muted: #9a9a9a;
    --fc-accent: #c56b3f;
    --fc-accent-soft: rgba(197, 107, 63, .16);
    --fc-header-height: 74px;
    --fc-bottom-height: 72px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--fc-bg);
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--fc-text);
    background: var(--fc-bg);
    font-family: "Work Sans", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    color: inherit;
}

.account-app {
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% -18%, rgba(197, 107, 63, .10), transparent 34%),
        var(--fc-bg);
}

.account-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--fc-header-height);
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    padding: max(10px, env(safe-area-inset-top)) 16px 10px;
    background: rgba(5, 5, 5, .92);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    backdrop-filter: blur(14px);
}

.icon-button,
.bottom-nav-item,
.drawer-close,
.search-field button {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.icon-button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    font-size: 22px;
    border-radius: 50%;
    transition: background .2s ease, color .2s ease;
}

.icon-button:hover,
.icon-button:focus-visible {
    background: var(--fc-surface-2);
    color: var(--fc-accent);
    outline: none;
}

.account-brand {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Josefin Sans", sans-serif;
    font-size: clamp(20px, 5vw, 28px);
    font-weight: 600;
    letter-spacing: .12em;
    white-space: nowrap;
}

.brand-mark {
    position: relative;
    width: 30px;
    height: 22px;
    display: inline-block;
}

.brand-mark span {
    position: absolute;
    width: 18px;
    height: 18px;
    top: 2px;
    border: 2px solid currentColor;
    transform: rotate(45deg);
}

.brand-mark span:first-child {
    left: 1px;
}

.brand-mark span:last-child {
    right: 1px;
}

.search-panel {
    position: sticky;
    top: var(--fc-header-height);
    z-index: 45;
    padding: 10px 16px 14px;
    background: rgba(5, 5, 5, .95);
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.search-field {
    width: min(100%, 720px);
    min-height: 48px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 22px 1fr 34px;
    align-items: center;
    gap: 9px;
    padding: 0 10px 0 15px;
    background: var(--fc-surface-2);
    border: 1px solid var(--fc-border);
    border-radius: 14px;
}

.search-field > i {
    color: var(--fc-muted);
}

.search-field input {
    width: 100%;
    border: 0;
    outline: none;
    color: var(--fc-text);
    background: transparent;
}

.search-field input::placeholder {
    color: #777;
}

.search-field button {
    width: 34px;
    height: 34px;
    padding: 0;
    color: var(--fc-muted);
    border-radius: 50%;
}

.account-main {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 28px 16px calc(var(--fc-bottom-height) + 34px);
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--fc-accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.page-heading h1 {
    margin: 0;
    font-family: "Josefin Sans", sans-serif;
    font-size: clamp(31px, 7vw, 46px);
    line-height: .95;
    text-transform: uppercase;
}

.member-count {
    color: var(--fc-muted);
    font-size: 13px;
    white-space: nowrap;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.member-card {
    min-width: 0;
    overflow: hidden;
    background: var(--fc-surface);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .22);
}

.member-profile-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #111;
}

.member-body {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.member-presence-dot {
    position: absolute;
    z-index: 4;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, .85);
    border-radius: 50%;
    background: #1b1b1b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}

.member-presence-dot.is-online {
    background: #35c66b;
}

.member-body img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .45s ease, filter .45s ease;
}

.member-before,
.member-after {
    position: absolute;
    z-index: 2;
    width: 0;
    top: 0;
    bottom: 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: rgba(0, 0, 0, .76);
    transition: width .45s ease;
}

.member-before {
    left: 0;
    align-items: flex-end;
    text-align: right;
}

.member-after {
    right: 0;
    align-items: flex-start;
}

.member-before span,
.member-after span {
    max-width: 100%;
    margin: 5px 8px;
    color: #fff;
    font-size: clamp(10px, 2.8vw, 13px);
    line-height: 1.2;
    opacity: 0;
    white-space: nowrap;
    transition: opacity .25s ease;
}

.member-before span {
    color: #d8d8d8;
    font-weight: 500;
}

.member-after span {
    font-weight: 600;
}

.member-after span:nth-child(3) {
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-after span:last-child {
    color: var(--fc-accent);
}

.member-name-bar {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 9px 12px 8px;
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(3px);
}

.member-name-bar h2 {
    overflow: hidden;
    margin: 0 0 4px;
    font-family: "Josefin Sans", sans-serif;
    font-size: clamp(17px, 4.7vw, 24px);
    font-weight: 700;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-name-bar p {
    overflow: hidden;
    margin: 0;
    color: #c9c9c9;
    font-size: 11px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-name-bar p i {
    margin-right: 3px;
    color: var(--fc-accent);
}
.member-profile-action {
    max-width: 100%;
    margin: 5px 8px;
    color: var(--fc-accent);
    font-size: clamp(10px, 2.8vw, 13px);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .25s ease;
}

.member-profile-action:hover,
.member-profile-action:focus {
    text-decoration: underline;
}

.member-card:hover .member-before,
.member-card:hover .member-after,
.member-card:focus-within .member-before,
.member-card:focus-within .member-after,
.member-card.is-open .member-before,
.member-card.is-open .member-after {
    width: 50%;
}

.member-card:hover .member-before span,
.member-card:hover .member-after span,
.member-card:hover .member-profile-action,
.member-card:focus-within .member-before span,
.member-card:focus-within .member-after span,
.member-card:focus-within .member-profile-action,
.member-card.is-open .member-before span,
.member-card.is-open .member-after span,
.member-card.is-open .member-profile-action {
    opacity: 1;
    transition-delay: .16s;
}

.member-card:hover .member-body img,
.member-card:focus-within .member-body img,
.member-card.is-open .member-body img {
    transform: scale(1.03);
    filter: brightness(.82);
}

@media (hover: none), (pointer: coarse) {
    .member-card:hover .member-before,
    .member-card:hover .member-after,
    .member-card:focus-within .member-before,
    .member-card:focus-within .member-after {
        width: 0;
    }

    .member-card:hover .member-before span,
    .member-card:hover .member-after span,
    .member-card:hover .member-profile-action,
    .member-card:focus-within .member-before span,
    .member-card:focus-within .member-after span,
    .member-card:focus-within .member-profile-action {
        opacity: 0;
        transition-delay: 0s;
    }

    .member-card:hover .member-body img,
    .member-card:focus-within .member-body img {
        transform: none;
        filter: none;
    }

    .member-card.is-open .member-before,
    .member-card.is-open .member-after {
        width: 50%;
    }

    .member-card.is-open .member-before span,
    .member-card.is-open .member-after span,
    .member-card.is-open .member-profile-action {
        opacity: 1;
        transition-delay: .16s;
    }

    .member-card.is-open .member-body img {
        transform: scale(1.03);
        filter: brightness(.82);
    }
}

.empty-state {
    margin: 50px auto;
    color: var(--fc-muted);
    text-align: center;
}

.bottom-nav {
    position: fixed;
    z-index: 55;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(var(--fc-bottom-height) + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 7px 6px max(7px, env(safe-area-inset-bottom));
    background: rgba(5, 5, 5, .96);
    border-top: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(16px);
}

.bottom-nav-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    color: #aaaaaa;
    font-size: 20px;
}

.bottom-nav-item span:last-child {
    overflow: hidden;
    width: 100%;
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bottom-nav-item.active,
.bottom-nav-item:hover,
.bottom-nav-item:focus-visible {
    color: var(--fc-text);
    outline: none;
}

.bottom-nav-item.active i {
    color: var(--fc-accent);
}

.nav-icon-wrap {
    position: relative;
    line-height: 1;
}

.nav-icon-wrap b {
    position: absolute;
    min-width: 16px;
    height: 16px;
    top: -9px;
    right: -11px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    color: #fff;
    background: var(--fc-accent);
    border-radius: 999px;
    font-size: 9px;
    line-height: 1;
}

.drawer-backdrop {
    position: fixed;
    z-index: 90;
    inset: 0;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(2px);
}

.side-menu {
    position: fixed;
    z-index: 100;
    width: min(84vw, 390px);
    height: 100dvh;
    top: 0;
    left: 0;
    overflow-y: auto;
    color: var(--fc-text);
    background: #050505;
    border-right: 1px solid var(--fc-border);
    transform: translateX(-101%);
    transition: transform .28s ease;
    box-shadow: 18px 0 60px rgba(0,0,0,.45);
}

.side-menu.open {
    transform: translateX(0);
}

.side-menu-profile {
    position: relative;
    padding: calc(32px + env(safe-area-inset-top)) 24px 24px;
    text-align: center;
    background: linear-gradient(180deg, #171717 0%, #0c0c0c 100%);
    border-bottom: 1px solid var(--fc-border);
}

.drawer-close {
    position: absolute;
    width: 38px;
    height: 38px;
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #bdbdbd;
    border-radius: 50%;
}

.drawer-close:hover,
.drawer-close:focus-visible {
    color: #fff;
    background: #242424;
    outline: none;
}

.avatar-placeholder {
    width: 82px;
    height: 82px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    color: #111;
    background: #e6e6e6;
    border-radius: 50%;
    font-size: 32px;
}

.side-menu-profile h2 {
    margin: 0 0 5px;
    font-family: "Josefin Sans", sans-serif;
    font-size: 26px;
}

.side-menu-profile p {
    margin: 0;
    color: var(--fc-accent);
    font-size: 13px;
}

.side-menu-nav {
    padding-bottom: 28px;
}

.side-menu-nav a {
    min-height: 64px;
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 12px;
    padding: 0 24px;
    border-bottom: 1px solid #181818;
    font-size: 15px;
    font-weight: 500;
    transition: background .2s ease, color .2s ease;
}

.side-menu-nav a:hover,
.side-menu-nav a:focus-visible {
    color: var(--fc-accent);
    background: #101010;
    outline: none;
}

.side-menu-nav a i {
    width: 26px;
    color: #fff;
    font-size: 20px;
    text-align: center;
}

.menu-separator {
    height: 14px;
    background: #080808;
    border-bottom: 1px solid #1a1a1a;
}

body.drawer-open {
    overflow: hidden;
}

@media (min-width: 600px) {
    .account-main {
        padding-left: 24px;
        padding-right: 24px;
    }

    .members-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .member-card {
        border-radius: 16px;
    }
}

@media (min-width: 960px) {
    :root {
        --fc-header-height: 82px;
    }

    .account-header {
        padding-left: 30px;
        padding-right: 30px;
    }

    .account-main {
        padding-top: 38px;
        padding-bottom: 48px;
    }

    .members-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 22px;
    }

    .bottom-nav {
        width: min(620px, calc(100% - 40px));
        left: 50%;
        right: auto;
        bottom: 18px;
        border: 1px solid rgba(255,255,255,.09);
        border-radius: 20px;
        transform: translateX(-50%);
        box-shadow: 0 18px 50px rgba(0,0,0,.45);
    }

    .account-main {
        padding-bottom: 120px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Perfil completo de miembro */
.profile-page {
    width: min(100%, 1120px);
}

.profile-header .account-brand {
    max-width: calc(100vw - 130px);
}

.profile-layout {
    display: grid;
    gap: 24px;
}

.profile-visual-column,
.profile-content-column {
    min-width: 0;
}

.profile-photo-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--fc-surface);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(0,0,0,.34);
}

.profile-photo-card > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.profile-photo-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.90) 0%, rgba(0,0,0,.18) 32%, transparent 58%);
    pointer-events: none;
}

.profile-photo-caption {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
}

.profile-city,
.profile-username {
    min-width: 0;
    color: #f0f0f0;
    font-size: 13px;
    font-weight: 600;
}

.profile-city {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-city i {
    margin-right: 5px;
    color: var(--fc-accent);
}

.profile-username {
    flex: 0 0 auto;
    color: #cfcfcf;
}

.profile-back-button {
    margin-top: 12px;
}

.profile-title-block {
    padding: 4px 2px 0;
}

.profile-title-block h1 {
    margin: 0;
    font-family: "Josefin Sans", sans-serif;
    font-size: clamp(36px, 9vw, 58px);
    line-height: .95;
    text-transform: uppercase;
}

.profile-username-inline {
    margin: 9px 0 0;
    color: var(--fc-muted);
    font-size: 14px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 20px;
}

.profile-stat {
    min-width: 0;
    padding: 14px 12px;
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: 14px;
}

.profile-stat span,
.age-preference span,
.contact-body > span:first-child {
    display: block;
    margin-bottom: 5px;
    color: var(--fc-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .03em;
}

.profile-stat strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-section {
    margin-top: 18px;
    padding: 20px;
    background: rgba(17,17,17,.86);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0,0,0,.16);
}

.profile-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.profile-section-heading h2 {
    margin: 0;
    font-family: "Josefin Sans", sans-serif;
    font-size: 25px;
    line-height: 1;
    text-transform: uppercase;
}

.profile-section-heading .eyebrow {
    margin-bottom: 5px;
}

.profile-description {
    margin: 0;
    color: #d2d2d2;
    font-size: 14px;
    line-height: 1.75;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.profile-tag {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    color: #fff;
    background: var(--fc-accent-soft);
    border: 1px solid rgba(197,107,63,.34);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.age-preference {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 12px;
    margin-top: 17px;
    padding-top: 17px;
    border-top: 1px solid var(--fc-border);
}

.age-preference-icon {
    width: 42px;
    height: 42px;
    display: grid !important;
    place-items: center;
    margin: 0 !important;
    color: var(--fc-accent) !important;
    background: var(--fc-accent-soft);
    border-radius: 50%;
    font-size: 16px !important;
}

.age-preference strong {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.contact-heading {
    align-items: center;
}

.privacy-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #a8a8a8;
    font-size: 10px;
    text-align: right;
}

.privacy-label i {
    color: var(--fc-accent);
}

.contact-list {
    display: grid;
    gap: 9px;
}

.contact-row {
    min-height: 62px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    background: #151515;
    border: 1px solid #242424;
    border-radius: 14px;
}

.contact-row.is-private {
    opacity: .64;
}

.contact-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #222;
    border-radius: 50%;
    font-size: 19px;
}

.contact-body {
    min-width: 0;
}

.contact-body > span:first-child {
    margin: 0 0 2px;
}

.contact-body strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #bdbdbd;
    font-size: 10px;
    white-space: nowrap;
}

.contact-row:not(.is-private) .contact-status i {
    color: var(--fc-accent);
}

.primary-action,
.secondary-action {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.primary-action {
    color: #fff;
    background: var(--fc-accent);
    border: 1px solid var(--fc-accent);
}

.primary-action:hover,
.primary-action:focus-visible {
    transform: translateY(-1px);
    background: #d1774a;
    outline: none;
}

.primary-action.is-pending {
    background: #7f513a;
    border-color: #7f513a;
}

.secondary-action {
    width: 100%;
    color: #e4e4e4;
    background: #101010;
    border: 1px solid var(--fc-border);
}

.secondary-action:hover,
.secondary-action:focus-visible {
    color: #fff;
    background: #181818;
    border-color: #363636;
    outline: none;
}

.message-action {
    width: 100%;
    margin-top: 18px;
}

.gallery-section {
    margin-top: 24px;
}

.gallery-count {
    color: var(--fc-muted);
    font-size: 12px;
    white-space: nowrap;
}

.profile-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.gallery-item {
    position: relative;
    min-width: 0;
    aspect-ratio: 1 / 1.18;
    overflow: hidden;
    padding: 0;
    color: #8f8f8f;
    background: #151515;
    border: 1px solid #272727;
    border-radius: 14px;
}

button.gallery-item {
    cursor: pointer;
}

.gallery-item.has-photo:hover,
.gallery-item.has-photo:focus-visible {
    border-color: rgba(197,107,63,.68);
    outline: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .3s ease;
}

.gallery-item.has-photo:hover img,
.gallery-item.has-photo:focus-visible img {
    transform: scale(1.035);
}

.gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: repeating-linear-gradient(135deg, #131313, #131313 12px, #161616 12px, #161616 24px);
}

.gallery-placeholder i {
    font-size: 24px;
}

.gallery-placeholder span {
    font-size: 10px;
    font-weight: 600;
}

@media (min-width: 600px) {
    .profile-layout {
        grid-template-columns: minmax(250px, .82fr) minmax(0, 1.18fr);
        align-items: start;
        gap: 28px;
    }

    .profile-visual-column {
        position: sticky;
        top: calc(var(--fc-header-height) + 24px);
    }

    .profile-title-block {
        padding-top: 2px;
    }

    .profile-section {
        padding: 22px;
    }

    .profile-gallery {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .profile-layout {
        grid-template-columns: 390px minmax(0, 1fr);
        gap: 42px;
    }

    .profile-photo-card {
        border-radius: 22px;
    }

    .profile-title-block h1 {
        font-size: 58px;
    }

    .profile-stat {
        padding: 16px;
    }

    .profile-stat strong {
        font-size: 15px;
    }

    .profile-description {
        font-size: 15px;
    }

    .gallery-section {
        margin-top: 32px;
    }
}

@media (max-width: 430px) {
    .contact-row {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .contact-icon {
        width: 38px;
        height: 38px;
    }

    .contact-status {
        grid-column: 2;
        justify-self: start;
        margin-top: -4px;
    }

    .privacy-label {
        max-width: 100px;
    }
}

/* Mensajes y chat privado */
.messages-page {
    width: min(100%, 860px);
}

.messages-heading {
    margin-bottom: 16px;
}

.messages-toolbar {
    display: inline-flex;
    gap: 6px;
    margin-bottom: 14px;
    padding: 4px;
    background: #0e0e0e;
    border: 1px solid var(--fc-border);
    border-radius: 12px;
}

.message-filter {
    min-height: 36px;
    padding: 0 14px;
    color: var(--fc-muted);
    background: transparent;
    border: 0;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}

.message-filter.active,
.message-filter:hover,
.message-filter:focus-visible {
    color: #fff;
    background: #1b1b1b;
    outline: none;
}

.conversation-list {
    overflow: hidden;
    background: rgba(17, 17, 17, .86);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
}

.conversation-row {
    min-height: 88px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 13px 14px;
    border-bottom: 1px solid #202020;
    transition: background .2s ease;
}

.conversation-row:last-child {
    border-bottom: 0;
}

.conversation-row:hover,
.conversation-row:focus-visible {
    background: #151515;
    outline: none;
}

.conversation-row.has-unread {
    background: linear-gradient(90deg, rgba(197, 107, 63, .10), rgba(17, 17, 17, .90) 45%);
}

.conversation-row.has-unread:hover,
.conversation-row.has-unread:focus-visible {
    background: linear-gradient(90deg, rgba(197, 107, 63, .14), #171717 48%);
}

.conversation-avatar {
    position: relative;
    width: 58px;
    height: 58px;
    display: block;
    flex: 0 0 auto;
}

.conversation-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border: 1px solid #2b2b2b;
    border-radius: 50%;
}

.conversation-presence,
.online-dot {
    position: absolute;
    width: 13px;
    height: 13px;
    right: 0;
    bottom: 1px;
    background: #626262;
    border: 2px solid #111;
    border-radius: 50%;
}

.conversation-presence.is-online,
.online-dot:not(.is-offline) {
    background: #4ec989;
}

.conversation-body {
    min-width: 0;
    display: block;
}

.conversation-name-line {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.conversation-name-line strong {
    overflow: hidden;
    color: #fff;
    font-family: "Josefin Sans", sans-serif;
    font-size: 18px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-name-line small {
    overflow: hidden;
    color: var(--fc-muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-preview {
    overflow: hidden;
    display: block;
    margin-top: 5px;
    color: #aaa;
    font-size: 12px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.has-unread .conversation-preview,
.has-unread .conversation-name-line strong {
    color: #fff;
    font-weight: 600;
}

.conversation-meta {
    min-width: 38px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 9px;
    color: #787878;
}

.conversation-meta time {
    font-size: 10px;
    white-space: nowrap;
}

.conversation-unread {
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    padding: 0 6px;
    color: #fff;
    background: var(--fc-accent);
    border-radius: 999px;
    font-size: 10px;
    line-height: 1;
}

.messages-empty {
    margin-top: 38px;
}

@media (min-width: 521px) {
        .conversation-row {
        min-height: 118px;
        grid-template-columns: 84px minmax(0, 1fr) auto;
        gap: 18px;
        padding: 16px 18px;
    }

    .conversation-avatar {
        width: 84px;
        height: 84px;
    }

    .conversation-name-line {
        gap: 17px;
    }

    .conversation-name-line strong {
        font-size: 24px;
    }

    .conversation-name-line small {
        font-size: 14px;
    }

    .conversation-preview {
        margin-top: 7px;
        font-size: 17px;
    }

    .conversation-meta time {
        font-size: 14px;
    }

    .conversation-unread {
        min-width: 26px;
        height: 26px;
        font-size:13px;
    }
}

/* Chat */
.chat-body {
    min-height: 100dvh;
}

.chat-app {
    min-height: 100dvh;
}

.chat-header {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
}

.chat-person {
    min-width: 0;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 12px;
}

.chat-person:hover,
.chat-person:focus-visible {
    background: #101010;
    outline: none;
}

.chat-avatar-wrap {
    position: relative;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
}

.chat-avatar-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border: 1px solid #2a2a2a;
    border-radius: 50%;
}

.online-dot {
    width: 11px;
    height: 11px;
    border-color: #050505;
}

.chat-person-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.chat-person-copy strong,
.chat-person-copy small {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-person-copy strong {
    color: #fff;
    font-family: "Josefin Sans", sans-serif;
    font-size: 16px;
    line-height: 1.05;
}

.chat-person-copy small {
    margin-top: 2px;
    color: var(--fc-muted);
    font-size: 10px;
}

.chat-main {
    width: min(100%, 820px);
    margin: 0 auto;
    padding: 14px 14px calc(var(--fc-bottom-height) + 110px);
}

.chat-profile-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 2px auto 18px;
    color: #808080;
    font-size: 10px;
}

.chat-profile-note span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.chat-profile-note a {
    color: var(--fc-accent);
    font-weight: 600;
}

.chat-thread {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-date-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2px 0 9px;
}

.chat-date-separator span {
    padding: 6px 10px;
    color: #858585;
    background: #101010;
    border: 1px solid #202020;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.chat-message {
    width: 100%;
    display: flex;
}

.chat-message.is-incoming {
    justify-content: flex-start;
}

.chat-message.is-outgoing {
    justify-content: flex-end;
}

.chat-bubble {
    max-width: min(82%, 520px);
    padding: 10px 12px 7px;
    border-radius: 16px;
    box-shadow: 0 9px 24px rgba(0, 0, 0, .16);
}

.is-incoming .chat-bubble {
    background: #181818;
    border: 1px solid #242424;
    border-bottom-left-radius: 5px;
}

.is-outgoing .chat-bubble {
    background: #6f402b;
    border: 1px solid rgba(255, 255, 255, .08);
    border-bottom-right-radius: 5px;
}

.chat-bubble p {
    margin: 0;
    color: #f2f2f2;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.chat-message-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    margin-top: 4px;
    color: rgba(255, 255, 255, .55);
    font-size: 9px;
}

.chat-message-meta i {
    color: #d7b6a6;
    font-size: 9px;
}

.chat-body::after {
    content: "";
    position: fixed;
    z-index: 53;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(var(--fc-bottom-height) + 105px);
    background: #050505;
    pointer-events: none;
}

@media (min-width: 960px) {
    .chat-body::after {
        height: 190px;
    }
}

.chat-composer {
    position: fixed;
    z-index: 54;
    left: 10px;
    right: 10px;
    bottom: calc(var(--fc-bottom-height) + env(safe-area-inset-bottom) + 10px);
    width: auto;
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: end;
    gap: 8px;
    padding: 8px;
    background: rgba(15, 15, 15, .96);
    border: 1px solid #2a2a2a;
    border-radius: 17px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .42);
    backdrop-filter: blur(16px);
}

.chat-composer textarea {
    width: 100%;
    min-height: 42px;
    max-height: 112px;
    resize: none;
    overflow-y: auto;
    padding: 11px 10px 9px;
    color: #fff;
    background: transparent;
    border: 0;
    outline: none;
    font: inherit;
    font-size: 13px;
    line-height: 1.4;
}

.chat-composer textarea::placeholder {
    color: #737373;
}

.chat-send-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #fff;
    background: var(--fc-accent);
    border: 0;
    border-radius: 50%;
    font-size: 15px;
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease;
}

.chat-send-button:hover:not(:disabled),
.chat-send-button:focus-visible:not(:disabled) {
    transform: translateY(-1px);
    outline: none;
}

.chat-send-button:disabled {
    opacity: .34;
    cursor: default;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (min-width: 600px) {

    .chat-avatar-wrap {
        width: 80px;
        height: 80px;
    }

    .online-dot {
        width: 20px;
        height: 20px;
    }

    .chat-person-copy strong {
        font-size: 32px;
    }

    .chat-person-copy small {
        font-size: 20px;
   }
       .chat-main {
        padding-left: 24px;
        padding-right: 24px;
 }

    .chat-bubble p {
        font-size: 14px;
    }
  }
@media (min-width: 960px) {
    .chat-main {
        padding-top: 22px;
        padding-bottom: 190px;
    }

    .chat-composer {
        bottom: 112px;
        left: 50%;
        right: auto;
        width: min(800px, calc(100% - 48px));
        transform: translateX(-50%);
    }
}

@media (max-width: 430px) {
    .conversation-row {
        grid-template-columns: 52px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 12px 10px;
    }

    .conversation-avatar {
        width: 52px;
        height: 52px;
    }

    .conversation-name-line {
        display: block;
    }

    .conversation-name-line small {
        display: block;
        margin-top: 2px;
    }

    .chat-person-copy strong {
        max-width: 145px;
    }
}

/* Inicio de cuenta */
.home-page {
    display: grid;
    gap: 30px;
}

.home-header-message {
    position: relative;
    display: inline-grid;
    place-items: center;
}

.home-header-message b {
    position: absolute;
    min-width: 17px;
    height: 17px;
    top: -10px;
    right: -12px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    color: #fff;
    background: var(--fc-accent);
    border-radius: 999px;
    font-size: 9px;
}

.home-welcome {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 20px;
    padding: 24px;
    background:
        linear-gradient(115deg, rgba(197, 107, 63, .18), transparent 58%),
        var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: 20px;
}

.home-welcome::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    top: -105px;
    right: -65px;
    border: 1px solid rgba(197, 107, 63, .24);
    border-radius: 50%;
}

.home-welcome-copy {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.home-welcome h1 {
    margin: 0;
    font-family: "Josefin Sans", sans-serif;
    font-size: clamp(31px, 8vw, 54px);
    line-height: .98;
    text-transform: uppercase;
}

.home-welcome-copy > p:last-child {
    max-width: 640px;
    margin: 13px 0 0;
    color: #bcbcbc;
    font-size: 14px;
    line-height: 1.6;
}

.home-profile-chip {
    position: relative;
    z-index: 1;
    width: fit-content;
    min-width: 180px;
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    column-gap: 10px;
    padding: 10px 14px;
    background: rgba(5,5,5,.72);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
}

.home-profile-chip > span {
    grid-row: 1 / 3;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--fc-accent);
    background: var(--fc-accent-soft);
    border-radius: 50%;
}

.home-profile-chip strong,
.home-profile-chip small {
    min-width: 0;
}

.home-profile-chip strong {
    font-size: 13px;
}

.home-profile-chip small {
    color: var(--fc-muted);
    font-size: 11px;
}

.home-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.home-shortcut {
    min-width: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: 15px;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.home-shortcut:hover,
.home-shortcut:focus-visible {
    transform: translateY(-2px);
    background: var(--fc-surface-2);
    border-color: rgba(197, 107, 63, .55);
    outline: none;
}

.home-shortcut-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--fc-accent);
    background: var(--fc-accent-soft);
    border-radius: 12px;
    font-size: 18px;
}

.home-shortcut > span:nth-child(2) {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.home-shortcut strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-shortcut small {
    overflow: hidden;
    color: var(--fc-muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-shortcut > .fa-chevron-right {
    color: #686868;
    font-size: 12px;
}

.home-shortcut-badge {
    min-width: 23px;
    height: 23px;
    display: grid !important;
    place-items: center;
    color: #fff;
    background: var(--fc-accent);
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
}

.home-section {
    min-width: 0;
}

.home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 15px;
}

.home-section-heading h2 {
    margin: 0;
    font-family: "Josefin Sans", sans-serif;
    font-size: clamp(24px, 6vw, 34px);
    line-height: 1;
    text-transform: uppercase;
}

.home-section-heading > a {
    flex: 0 0 auto;
    padding-bottom: 2px;
    color: var(--fc-accent);
    font-size: 12px;
    font-weight: 600;
}

.home-event-card {
    overflow: hidden;
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: 18px;
}

.home-event-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.home-event-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.64), transparent 58%);
    pointer-events: none;
}

.home-event-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

.home-event-media:hover img {
    transform: scale(1.025);
}

.home-event-date {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    width: 54px;
    height: 58px;
    display: grid;
    place-items: center;
    align-content: center;
    color: #fff;
    background: rgba(5,5,5,.86);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
}

.home-event-date strong {
    font-family: "Josefin Sans", sans-serif;
    font-size: 24px;
    line-height: .9;
}

.home-event-date small {
    margin-top: 3px;
    color: var(--fc-accent);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
}

.home-event-status {
    position: absolute;
    z-index: 2;
    right: 12px;
    bottom: 12px;
    padding: 7px 10px;
    color: #f2f2f2;
    background: rgba(5,5,5,.76);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 600;
}

.home-event-status i {
    margin-right: 4px;
    color: var(--fc-accent);
}

.home-event-content {
    display: grid;
    gap: 18px;
    padding: 18px;
}

.home-event-content h3 {
    margin: 0 0 10px;
    font-family: "Josefin Sans", sans-serif;
    font-size: 25px;
    text-transform: uppercase;
}

.home-event-content p {
    margin: 5px 0;
    color: #adadad;
    font-size: 12px;
}

.home-event-content p i {
    width: 17px;
    margin-right: 4px;
    color: var(--fc-accent);
    text-align: center;
}

.home-event-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.home-button {
    min-height: 42px;
    display: grid;
    place-items: center;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.home-button-primary {
    color: #fff;
    background: var(--fc-accent);
    border: 1px solid var(--fc-accent);
}

.home-button-secondary {
    background: #0c0c0c;
    border: 1px solid #303030;
}

.home-message-list {
    overflow: hidden;
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: 16px;
}

.home-message {
    min-width: 0;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-bottom: 1px solid #202020;
}

.home-message:last-child {
    border-bottom: 0;
}

.home-message:hover,
.home-message:focus-visible {
    background: #151515;
    outline: none;
}

.home-message-avatar {
    position: relative;
    width: 48px;
    height: 48px;
}

.home-message-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}

.home-message-avatar i {
    position: absolute;
    width: 12px;
    height: 12px;
    right: -1px;
    bottom: 2px;
    background: #34c759;
    border: 2px solid var(--fc-surface);
    border-radius: 50%;
}

.home-message-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.home-message-copy strong,
.home-message-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-message-copy strong {
    font-size: 13px;
}

.home-message-copy small {
    color: var(--fc-muted);
    font-size: 11px;
}

.home-message-meta {
    display: grid;
    justify-items: end;
    gap: 6px;
}

.home-message-meta time {
    color: #7f7f7f;
    font-size: 9px;
}

.home-message-meta b {
    min-width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    color: #fff;
    background: var(--fc-accent);
    border-radius: 999px;
    font-size: 9px;
}

.home-member-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(155px, 43%);
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

.home-member-strip::-webkit-scrollbar {
    display: none;
}

.home-member-mini {
    min-width: 0;
    overflow: hidden;
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: 14px;
    scroll-snap-align: start;
}

.home-member-mini img {
    width: 100%;
    aspect-ratio: 4 / 5;
    display: block;
    object-fit: cover;
}

.home-member-mini > span {
    min-width: 0;
    display: grid;
    gap: 4px;
    padding: 10px;
}

.home-member-mini strong,
.home-member-mini small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-member-mini strong {
    font-family: "Josefin Sans", sans-serif;
    font-size: 15px;
}

.home-member-mini small {
    color: var(--fc-muted);
    font-size: 9px;
}

.home-member-mini small i {
    margin-right: 3px;
    color: var(--fc-accent);
}

@media (min-width: 700px) {
    .home-welcome {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        padding: 30px;
    }

    .home-shortcuts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .home-shortcut {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .home-shortcut > .fa-chevron-right,
    .home-shortcut-badge {
        grid-column: 2;
        justify-self: start;
    }

    .home-shortcut > .fa-chevron-right {
        display: none;
    }

    .home-event-card {
        display: grid;
        grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    }

    .home-event-media {
        height: 100%;
        min-height: 300px;
        aspect-ratio: auto;
    }

    .home-event-content {
        align-content: center;
        padding: 26px;
    }

    .home-member-strip {
        grid-auto-flow: initial;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: visible;
    }
}


/* Ajuste de Inicio: secciones opcionales desplegables */
.home-shortcut.home-section-toggle {
    width: 100%;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.home-shortcut.home-section-toggle.active {
    background: var(--fc-surface-2);
    border-color: rgba(197, 107, 63, .65);
}

.home-shortcut.home-section-toggle > .fa-chevron-right {
    transition: transform .2s ease, color .2s ease;
}

.home-shortcut.home-section-toggle.active > .fa-chevron-right {
    color: var(--fc-accent);
    transform: rotate(90deg);
}

.home-collapsible-section {
    scroll-margin-top: calc(var(--fc-header-height) + 18px);
}

/* Búsqueda avanzada de miembros */
.member-search-panel {
    display: grid;
    gap: 10px;
}

.member-search-filters {
    width: min(100%, 720px);
    margin: 0 auto;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.member-search-filters::-webkit-scrollbar {
    display: none;
}

.member-search-filter {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 13px;
    color: var(--fc-muted);
    background: #101010;
    border: 1px solid var(--fc-border);
    border-radius: 999px;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.member-search-filter:hover,
.member-search-filter:focus-visible,
.member-search-filter.active {
    color: #fff;
    background: var(--fc-accent-soft);
    border-color: rgba(197, 107, 63, .60);
    outline: none;
}

.member-search-filter.active {
    color: var(--fc-accent);
}


/* Rango de edad en búsqueda de miembros */
.member-age-search {
    width: min(100%, 720px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
}

.member-age-field {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.member-age-field span {
    color: var(--fc-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.member-age-field input {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    color: #fff;
    background: #101010;
    border: 1px solid var(--fc-border);
    border-radius: 12px;
    font: inherit;
    outline: none;
    appearance: textfield;
}

.member-age-field input::-webkit-outer-spin-button,
.member-age-field input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.member-age-field input:focus {
    border-color: rgba(197, 107, 63, .75);
    box-shadow: 0 0 0 3px rgba(197, 107, 63, .10);
}

.member-age-separator {
    align-self: end;
    min-height: 44px;
    display: grid;
    place-items: center;
    color: var(--fc-muted);
}

.member-age-clear {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--fc-muted);
    background: #101010;
    border: 1px solid var(--fc-border);
    border-radius: 12px;
    cursor: pointer;
}

.member-age-clear:hover,
.member-age-clear:focus-visible {
    color: #fff;
    border-color: rgba(197, 107, 63, .65);
    outline: none;
}

@media (max-width: 520px) {
    .member-age-search {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }

    .member-age-clear {
        grid-column: 1 / -1;
        width: 100%;
    }
}


/* La edad funciona como filtro adicional y se combina con Todos/Ciudad/Nombre/Usuario */
.member-age-block {
    width: min(100%, 720px);
    margin: 0 auto;
    display: grid;
    gap: 7px;
}

.member-age-title {
    color: var(--fc-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}


/* Fotos privadas y gestión de galería */
.profile-avatar-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    background:
        radial-gradient(circle at 50% 30%, rgba(197,107,63,.18), transparent 40%),
        linear-gradient(145deg, #151515, #080808);
}

.profile-avatar-fallback span {
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(197,107,63,.18);
    border: 1px solid rgba(197,107,63,.52);
    border-radius: 50%;
    font-family: "Josefin Sans", sans-serif;
    font-size: 38px;
    font-weight: 700;
}

.profile-avatar-fallback small {
    color: var(--fc-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.private-gallery-access {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
    padding: 14px;
    background: #121212;
    border: 1px solid var(--fc-border);
    border-radius: 14px;
}

.private-gallery-access.is-granted {
    border-color: rgba(77, 171, 109, .38);
    background: rgba(77, 171, 109, .06);
}

.private-gallery-access-copy {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
}

.private-gallery-access-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--fc-accent);
    background: var(--fc-accent-soft);
    border-radius: 50%;
}

.private-gallery-access-copy strong {
    display: block;
    color: #fff;
    font-size: 13px;
}

.private-gallery-access-copy p {
    margin: 4px 0 0;
    color: var(--fc-muted);
    font-size: 11px;
    line-height: 1.5;
}

.compact-action {
    min-height: 42px;
    width: auto;
    padding: 0 14px;
    font-size: 11px;
}

.compact-action.is-granted {
    color: #bce9c9;
    border-color: rgba(77, 171, 109, .38);
    background: rgba(77, 171, 109, .08);
}

.gallery-item.is-locked {
    cursor: default;
}

.gallery-item.is-locked img {
    filter: blur(15px) saturate(.45) brightness(.55);
    transform: scale(1.12);
}

.gallery-item.is-locked:hover img,
.gallery-item.is-locked:focus-visible img {
    transform: scale(1.12);
}

.gallery-visibility-badge {
    position: absolute;
    z-index: 3;
    top: 9px;
    left: 9px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 24px;
    padding: 4px 8px;
    color: #fff;
    background: rgba(0,0,0,.68);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.gallery-visibility-badge.is-private i {
    color: var(--fc-accent);
}

.private-photo-overlay {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 5px;
    padding: 16px;
    color: #fff;
    text-align: center;
    background: rgba(0,0,0,.18);
}

.private-photo-overlay i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 3px;
    color: var(--fc-accent);
    background: rgba(0,0,0,.60);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
}

.private-photo-overlay strong {
    font-size: 12px;
}
/* Galería de perfil ajeno: miniaturas privadas seguras */
.profile-page .gallery-item.is-private-placeholder {
    cursor: pointer;
    background:
        radial-gradient(circle at 50% 34%, rgba(255,255,255,.08), transparent 22%),
        linear-gradient(145deg, #1d1d1d, #0d0d0d);
}

.profile-page .gallery-private-mask {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 34%, rgba(180,180,180,.20) 0 13%, transparent 14%),
        radial-gradient(ellipse at 50% 78%, rgba(145,145,145,.16) 0 26%, transparent 27%),
        linear-gradient(145deg, #202020, #101010);
    filter: blur(4px);
    transform: scale(1.08);
}

.profile-page .gallery-private-mask i {
    font-size: clamp(42px, 12vw, 76px);
    color: rgba(255,255,255,.10);
}

.profile-page .gallery-item.is-private-placeholder:hover,
.profile-page .gallery-item.is-private-placeholder:focus-visible {
    border-color: rgba(197,107,63,.68);
    outline: none;
}

/* Ajustes visuales de fotos privadas en móviles */

@media (max-width: 599px) {
   .profile-page .gallery-item.is-private-placeholder {
              border-radius: 10px;
   }

    .profile-page .gallery-visibility-badge {
        top: 5px;
        left: 5px;
        min-height: 18px;
        padding: 2px 5px;
        gap: 3px;
        font-size: 7px;
    }

    .profile-page .private-photo-overlay {
        gap: 3px;
        padding: 7px 4px;
    }

    .profile-page .private-photo-overlay i {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .profile-page .private-photo-overlay strong {
        font-size: 8px;
    }

    .profile-page .private-photo-overlay small {
        font-size: 6.5px;
        line-height: 1.2;
    }
}

.private-photo-overlay small {
    color: #d0d0d0;
    font-size: 9px;
}

.my-profile-page {
    width: min(100%, 1040px);
}

.my-profile-intro {
    display: grid;
    gap: 18px;
    margin-bottom: 20px;
}

.my-profile-intro h1 {
    margin: 0;
    font-family: "Josefin Sans", sans-serif;
    font-size: clamp(36px, 9vw, 58px);
    line-height: .95;
    text-transform: uppercase;
}

.my-profile-lead {
    max-width: 650px;
    margin: 9px 0 0;
    color: var(--fc-muted);
    font-size: 13px;
    line-height: 1.65;
}

.public-photo-preview {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: 16px;
}

.public-photo-preview-media {
    width: 72px;
    height: 72px;
    overflow: hidden;
    border-radius: 50%;
    background: #171717;
}

.public-photo-preview-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.public-avatar-preview {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    color: #fff;
    background: var(--fc-accent-soft);
}

.public-avatar-preview strong {
    font-family: "Josefin Sans", sans-serif;
    font-size: 22px;
}

.public-avatar-preview span,
.public-photo-preview > div:last-child > span {
    color: var(--fc-muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.public-photo-preview > div:last-child > strong {
    display: block;
    margin-top: 3px;
    color: #fff;
    font-size: 13px;
}

.photo-rule-list {
    display: grid;
    gap: 10px;
}

.photo-rule-list > div {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    color: #d5d5d5;
    font-size: 12px;
    line-height: 1.45;
}

.photo-rule-list i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--fc-accent);
    background: var(--fc-accent-soft);
    border-radius: 50%;
}

.photo-manager-heading {
    align-items: center;
}

.upload-photo-action {
    min-height: 42px;
    padding: 0 14px;
    cursor: pointer;
    font-size: 11px;
}

.photo-manager-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.photo-manager-toolbar > span {
    color: var(--fc-muted);
    font-size: 11px;
    white-space: nowrap;
}

.managed-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.managed-photo-card {
    overflow: hidden;
    background: #111;
    border: 1px solid var(--fc-border);
    border-radius: 16px;
}

.managed-photo-card.is-primary {
    border-color: rgba(197,107,63,.55);
}

.managed-photo-media {
    position: relative;
    aspect-ratio: 1 / 1.12;
    overflow: hidden;
}

.managed-photo-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.managed-photo-badges {
    position: absolute;
    z-index: 2;
    top: 9px;
    left: 9px;
    right: 9px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.photo-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 23px;
    padding: 4px 7px;
    color: #fff;
    background: rgba(0,0,0,.68);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    font-size: 8px;
    font-weight: 700;
    backdrop-filter: blur(7px);
}

.photo-badge.is-primary i,
.photo-badge.is-private i {
    color: var(--fc-accent);
}

.managed-photo-actions {
    display: grid;
    gap: 1px;
    background: var(--fc-border);
}

.managed-photo-actions button {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    color: #d8d8d8;
    background: #111;
    border: 0;
    font: inherit;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
}

.managed-photo-actions button:hover,
.managed-photo-actions button:focus-visible {
    color: #fff;
    background: #181818;
    outline: none;
}

.managed-photo-actions button:disabled {
    opacity: .42;
    cursor: not-allowed;
}

.managed-photo-actions .danger-action {
    color: #d79a9a;
}

.request-counter {
    color: var(--fc-accent);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.privacy-request-list {
    display: grid;
    gap: 9px;
}

.privacy-user-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 11px;
    padding: 11px;
    background: #151515;
    border: 1px solid var(--fc-border);
    border-radius: 14px;
}

.privacy-user-row > img {
    width: 48px;
    height: 48px;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}

.privacy-user-info {
    min-width: 0;
}

.privacy-user-info strong {
    display: block;
    color: #fff;
    font-size: 12px;
}

.privacy-user-info span {
    display: block;
    margin-top: 4px;
    color: var(--fc-muted);
    font-size: 10px;
    line-height: 1.4;
}

.privacy-user-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.privacy-user-actions button {
    min-height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 11px;
    border-radius: 10px;
    font: inherit;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
}

.request-accept {
    color: #d8f3e0;
    background: rgba(77,171,109,.12);
    border: 1px solid rgba(77,171,109,.28);
}

.request-reject,
.request-revoke {
    color: #efbaba;
    background: rgba(190,76,76,.08);
    border: 1px solid rgba(190,76,76,.25);
}

.empty-inline-state {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 54px;
    padding: 12px;
    color: var(--fc-muted);
    background: #121212;
    border: 1px dashed #292929;
    border-radius: 13px;
    font-size: 11px;
}

.empty-inline-state i {
    color: var(--fc-accent);
}

.flow-toast {
    position: fixed;
    z-index: 1200;
    left: 50%;
    bottom: calc(var(--fc-bottom-height) + 18px);
    width: min(calc(100% - 28px), 420px);
    padding: 12px 15px;
    color: #fff;
    background: #1b1b1b;
    border: 1px solid rgba(197,107,63,.45);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(0,0,0,.42);
    font-size: 11px;
    text-align: center;
    transform: translate(-50%, 12px);
    opacity: 0;
    transition: opacity .18s ease, transform .18s ease;
}

.flow-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.side-menu-nav a.active {
    color: #fff;
    background: rgba(197,107,63,.10);
}

@media (min-width: 650px) {
    .private-gallery-access {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .my-profile-intro {
        grid-template-columns: minmax(0, 1fr) 300px;
        align-items: center;
    }

    .managed-photo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .privacy-user-row {
        grid-template-columns: 48px minmax(0, 1fr) auto;
        align-items: center;
    }

    .privacy-user-actions {
        grid-column: auto;
        justify-content: flex-end;
    }
}

@media (min-width: 960px) {
    .managed-photo-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .photo-manager-heading {
        display: grid;
    }

    .upload-photo-action {
        width: 100%;
    }

    .photo-manager-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .photo-manager-toolbar .compact-action {
        width: 100%;
    }
}


/* Configuración de cuenta */
.settings-page {
    width: min(100%, 980px);
}

.settings-hero {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}

.settings-hero h1 {
    margin: 0;
    font-family: "Josefin Sans", sans-serif;
    font-size: clamp(38px, 10vw, 62px);
    line-height: .95;
    text-transform: uppercase;
}

.settings-hero > div:first-child > p:last-child {
    max-width: 620px;
    margin: 8px 0 0;
    color: var(--fc-muted);
    font-size: 12px;
    line-height: 1.55;
}

.account-status-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #121212;
    border: 1px solid var(--fc-border);
    border-radius: 14px;
}

.account-status-card .status-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    background: #52b876;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(82,184,118,.10);
}

.account-status-card.is-hidden-profile .status-dot {
    background: #777;
    box-shadow: 0 0 0 4px rgba(140,140,140,.08);
}

.account-status-card small {
    display: block;
    color: var(--fc-muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.account-status-card strong {
    display: block;
    margin-top: 2px;
    color: #fff;
    font-size: 13px;
}

.settings-section {
    margin-bottom: 15px;
}

.settings-note,
.visibility-info {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 11px;
    color: #aaa;
    background: rgba(197,107,63,.045);
    border: 1px solid rgba(197,107,63,.20);
    border-radius: 13px;
    font-size: 10px;
    line-height: 1.45;
}

.settings-note > i,
.visibility-info > i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--fc-accent);
    background: var(--fc-accent-soft);
    border-radius: 50%;
}

.settings-note strong {
    display: block;
    color: #e8e8e8;
    font-size: 11px;
}

.settings-note span {
    display: block;
    margin-top: 2px;
}

.settings-grid {
    display: grid;
    gap: 12px;
}

.settings-field {
    min-width: 0;
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.settings-field > span,
.settings-age-range > span {
    color: #d8d8d8;
    font-size: 10px;
    font-weight: 600;
}

.settings-field input,
.settings-field select,
.settings-field textarea,
.settings-input-prefix,
.settings-input-suffix {
    width: 100%;
    min-height: 44px;
    color: #fff;
    background: #101010;
    border: 1px solid var(--fc-border);
    border-radius: 11px;
    font: inherit;
    outline: none;
}

.settings-password-wrap {
    position: relative;
}

.settings-password-wrap input {
    padding-right: 46px;
}

.settings-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--fc-muted);
    background: transparent;
    border: 0;
    cursor: pointer;
    transform: translateY(-50%);
}

.settings-password-toggle:hover {
    color: #fff;
}

.settings-field textarea {
    min-height: 115px;
    padding: 12px;
    resize: vertical;
}

.settings-field input:focus,
.settings-field select:focus,
.settings-field textarea:focus,
.settings-input-prefix:focus-within,
.settings-input-suffix:focus-within {
    border-color: rgba(197,107,63,.65);
    box-shadow: 0 0 0 3px rgba(197,107,63,.08);
}

.settings-field input:disabled {
    color: #777;
    background: #0b0b0b;
    cursor: not-allowed;
}

.settings-field small,
.settings-inline-feedback {
    min-height: 0;
    color: var(--fc-muted);
    font-size: 9px;
}

.settings-field small.success {
    color: #62bc80;
}

.settings-input-prefix,
.settings-input-suffix {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
}

.settings-input-prefix b,
.settings-input-suffix b {
    color: var(--fc-accent);
    font-size: 11px;
}

.settings-input-prefix input,
.settings-input-suffix input {
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none !important;
}

.settings-choice-group {
    min-width: 0;
    margin: 14px 0 18px;
    padding: 0;
    border: 0;
}

.settings-choice-group legend {
    margin-bottom: 8px;
    color: #d8d8d8;
    font-size: 10px;
    font-weight: 600;
}

.settings-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.settings-choice-grid label {
    position: relative;
    cursor: pointer;
}

.settings-choice-grid input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.settings-choice-grid span {
    min-height: 40px;
    padding: 8px 10px;
    display: grid;
    place-items: center;
    color: var(--fc-muted);
    background: #111;
    border: 1px solid var(--fc-border);
    border-radius: 10px;
    font-size: 9px;
    font-weight: 600;
    text-align: center;
}

.settings-choice-grid input:checked + span {
    color: #fff;
    background: var(--fc-accent-soft);
    border-color: rgba(197,107,63,.58);
}

.settings-age-range {
    display: grid;
    gap: 8px;
}

.settings-age-range > div {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    align-items: end;
    gap: 9px;
}

.settings-age-range label {
    display: grid;
    gap: 5px;
    color: var(--fc-muted);
    font-size: 9px;
}

.settings-age-range input {
    min-height: 42px;
    padding: 0 11px;
    color: #fff;
    background: #101010;
    border: 1px solid var(--fc-border);
    border-radius: 10px;
    outline: none;
}

.settings-age-range b {
    min-height: 42px;
    display: grid;
    place-items: center;
    color: #666;
}

.settings-section-copy {
    margin: -2px 0 13px;
    color: var(--fc-muted);
    font-size: 10px;
    line-height: 1.45;
}

.settings-contact-list {
    display: grid;
    gap: 8px;
}

.settings-contact-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 10px;
    background: #111;
    border: 1px solid var(--fc-border);
    border-radius: 12px;
}

.settings-contact-row > i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--fc-accent);
    background: var(--fc-accent-soft);
    border-radius: 50%;
}

.settings-contact-row > label:not(.settings-switch) {
    display: grid;
    gap: 3px;
}

.settings-contact-row > label:not(.settings-switch) span {
    color: var(--fc-muted);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.settings-contact-row > label:not(.settings-switch) input {
    min-width: 0;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 0;
    outline: none;
}

.settings-switch {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    color: var(--fc-muted);
    font-size: 9px;
    cursor: pointer;
}

.settings-switch input {
    position: absolute;
    opacity: 0;
}

.settings-switch > span {
    position: relative;
    width: 35px;
    height: 19px;
    background: #303030;
    border-radius: 999px;
}

.settings-switch > span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 13px;
    height: 13px;
    background: #aaa;
    border-radius: 50%;
    transition: transform .18s ease, background .18s ease;
}

.settings-switch input:checked + span {
    background: rgba(197,107,63,.32);
}

.settings-switch input:checked + span::after {
    background: var(--fc-accent);
    transform: translateX(16px);
}

.settings-save-bar {
    position: sticky;
    z-index: 20;
    bottom: calc(var(--fc-bottom-nav-height) + 9px);
    display: grid;
    gap: 9px;
    margin: 18px 0;
    padding: 11px;
    background: rgba(10,10,10,.94);
    border: 1px solid var(--fc-border);
    border-radius: 14px;
    backdrop-filter: blur(14px);
}

.settings-save-bar > span {
    color: var(--fc-muted);
    font-size: 9px;
}

.visibility-card {
    display: grid;
    gap: 14px;
    padding: 14px;
    background: #111;
    border: 1px solid var(--fc-border);
    border-radius: 14px;
}

.visibility-card strong {
    color: #fff;
    font-size: 13px;
}

.visibility-card p {
    margin: 5px 0 0;
    color: var(--fc-muted);
    font-size: 10px;
    line-height: 1.45;
}

.visibility-card .secondary-action.reactivate {
    color: #c6ebd2;
    border-color: rgba(82,184,118,.32);
    background: rgba(82,184,118,.07);
}

.visibility-info {
    margin: 11px 0 0;
}

.danger-zone {
    border-color: rgba(204,74,74,.24);
}

.danger-zone > p {
    margin: 0 0 14px;
    color: var(--fc-muted);
    font-size: 10px;
    line-height: 1.5;
}

.danger-delete-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 14px;
    color: #f2b4b4;
    background: rgba(190,65,65,.07);
    border: 1px solid rgba(190,65,65,.35);
    border-radius: 11px;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.danger-delete-button:hover,
.danger-delete-button:focus-visible {
    color: #fff;
    background: rgba(190,65,65,.15);
    outline: none;
}

.settings-modal-backdrop {
    position: fixed;
    z-index: 1300;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0,0,0,.78);
    backdrop-filter: blur(8px);
}

.settings-modal {
    position: relative;
    width: min(100%, 460px);
    padding: 22px;
    background: #101010;
    border: 1px solid #343434;
    border-radius: 17px;
    box-shadow: 0 28px 90px rgba(0,0,0,.55);
}

.settings-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #999;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.settings-modal-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #e58686;
    background: rgba(190,65,65,.10);
    border-radius: 50%;
}

.settings-modal h2 {
    margin: 14px 0 6px;
    font-family: "Josefin Sans", sans-serif;
    font-size: 27px;
    text-transform: uppercase;
}

.settings-modal > p {
    margin: 0 0 17px;
    color: var(--fc-muted);
    font-size: 10px;
    line-height: 1.5;
}

.settings-modal > p strong {
    color: #fff;
}

.settings-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 17px;
}

.private-identity-note {
    margin-bottom: 16px;
    padding: 11px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    background: rgba(228,23,121,.035);
    border: 1px solid rgba(228,23,121,.18);
    border-radius: 13px;
}

.private-identity-note > i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #e41779;
    background: rgba(228,23,121,.10);
    border-radius: 50%;
}

.private-identity-note strong {
    display: block;
    color: #efefef;
    font-size: 11px;
}

.private-identity-note span {
    display: block;
    margin-top: 3px;
    color: #8f8f8f;
    font-size: 9px;
    line-height: 1.4;
}

@media (min-width: 620px) {
    .settings-hero {
        grid-template-columns: minmax(0,1fr) auto;
        align-items: end;
    }

    .settings-grid.two {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .settings-choice-grid {
        grid-template-columns: repeat(4, minmax(0,1fr));
    }

    .settings-choice-grid.interests {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }

    .settings-contact-row {
        grid-template-columns: 34px minmax(0,1fr) auto;
    }

    .settings-switch {
        grid-column: auto;
    }

    .settings-save-bar {
        grid-template-columns: minmax(0,1fr) auto;
        align-items: center;
    }

    .visibility-card {
        grid-template-columns: minmax(0,1fr) auto;
        align-items: center;
    }
}


/* Corrección: el modal de eliminar cuenta debe permanecer oculto hasta abrirlo explícitamente */
.settings-modal-backdrop[hidden] {
    display: none !important;
}


.member-avatar-card {
    width: 100%;
    aspect-ratio: 3 / 4;
    display: grid;
    place-items: center;
    color: #777;
    background: linear-gradient(145deg, #171717, #0d0d0d);
    font-size: 38px;
}


/* Corrección de conversaciones dinámicas y avatares sin foto */
.conversation-avatar {
    min-width: 0;
    overflow: visible;
}

.conversation-avatar-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #8d8d8d;
    background: #20252b;
    border: 1px solid #333a42;
    border-radius: 50%;
    font-size: 23px;
}

.conversation-body,
.conversation-name-line,
.conversation-preview {
    max-width: 100%;
}

.conversation-name-line strong {
    min-width: 0;
}

.home-message.has-unread {
    background: linear-gradient(90deg, rgba(197, 107, 63, .09), var(--fc-surface) 52%);
}

.home-message-avatar-fallback {
    display: grid;
    place-items: center;
    color: #8d8d8d;
    background: #20252b;
    border: 1px solid #333a42;
    border-radius: 50%;
    font-size: 18px;
}

.home-message-avatar-fallback > i {
    position: static;
    width: auto;
    height: auto;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.home-message-empty {
    padding: 18px;
    color: var(--fc-muted);
    font-size: 11px;
    text-align: center;
}

/* Membresía, créditos y pagos */
.membership-page {
    display: grid;
    gap: 18px;
}

.membership-heading {
    margin-bottom: 0;
}

.membership-sync-status {
    display: none;
    color: #707070;
    font-size: 9px;
}

.membership-overview {
    display: grid;
    gap: 10px;
}

.membership-summary-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    padding: 13px;
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: 14px;
}

.membership-card-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--fc-accent);
    background: var(--fc-accent-soft);
    border-radius: 11px;
}

.membership-summary-card > div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.membership-summary-card small,
.membership-summary-card span {
    color: var(--fc-muted);
    font-size: 9px;
}

.membership-summary-card strong {
    color: #fff;
    font-family: "Josefin Sans", sans-serif;
    font-size: 21px;
    line-height: 1.05;
    text-transform: uppercase;
}

.membership-section {
    padding: 14px;
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: 14px;
}

.membership-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.membership-section-head h2 {
    margin: 0;
    font-family: "Josefin Sans", sans-serif;
    font-size: 23px;
    line-height: 1;
    text-transform: uppercase;
}

.membership-section-head > span {
    max-width: 48%;
    color: #777;
    font-size: 8px;
    line-height: 1.35;
    text-align: right;
}

.membership-benefit-list,
.membership-operation-list,
.membership-transaction-list,
.membership-payment-preview {
    display: grid;
    gap: 8px;
}

.membership-benefit-item,
.membership-payment-method {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #0c0c0c;
    border: 1px solid #242424;
    border-radius: 11px;
}

.membership-benefit-item > i,
.membership-payment-method > i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--fc-accent);
    background: rgba(197,107,63,.08);
    border-radius: 10px;
}

.membership-benefit-item.is-promo > i {
    color: #d8aa59;
    background: rgba(216,170,89,.08);
}

.membership-benefit-item div,
.membership-payment-method div {
    min-width: 0;
}

.membership-benefit-item strong,
.membership-payment-method strong,
.membership-benefit-item span,
.membership-payment-method span {
    display: block;
}

.membership-benefit-item strong,
.membership-payment-method strong {
    color: #eee;
    font-size: 10px;
}

.membership-benefit-item span,
.membership-payment-method span {
    margin-top: 3px;
    color: var(--fc-muted);
    font-size: 8px;
    line-height: 1.4;
}

.membership-product-grid {
    display: grid;
    gap: 9px;
}

.membership-product-card {
    display: grid;
    gap: 8px;
    padding: 12px;
    background: #0c0c0c;
    border: 1px solid #242424;
    border-radius: 12px;
}

.membership-product-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.membership-product-top span {
    color: var(--fc-accent);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.membership-product-top strong {
    color: #bdbdbd;
    font-size: 9px;
}

.membership-product-card h3 {
    margin: 2px 0 0;
    font-family: "Josefin Sans", sans-serif;
    font-size: 25px;
    line-height: 1;
}

.membership-product-card p {
    margin: 0;
    color: var(--fc-muted);
    font-size: 8px;
    line-height: 1.45;
}

.membership-product-benefit {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    padding: 5px 7px;
    color: #d9bc87;
    background: rgba(212,163,84,.07);
    border: 1px solid rgba(212,163,84,.18);
    border-radius: 999px;
    font-size: 7px;
    font-weight: 700;
}

.membership-buy-button,
.membership-confirm-button,
.membership-whatsapp-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 12px;
    color: #fff;
    background: var(--fc-accent);
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
}

.membership-confirm-button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.membership-empty {
    padding: 16px;
    color: #777;
    background: #0c0c0c;
    border: 1px dashed #2b2b2b;
    border-radius: 10px;
    font-size: 9px;
    line-height: 1.45;
    text-align: center;
}

.membership-operation-item,
.membership-transaction-item {
    display: grid;
    align-items: center;
    gap: 9px;
    padding: 10px;
    background: #0c0c0c;
    border: 1px solid #242424;
    border-radius: 11px;
}

.membership-operation-item {
    grid-template-columns: minmax(0, 1fr) auto;
}

.membership-operation-item > div:first-child,
.membership-transaction-item > div:nth-child(2) {
    min-width: 0;
}

.membership-operation-item strong,
.membership-operation-item span,
.membership-transaction-item strong,
.membership-transaction-item span {
    display: block;
}

.membership-operation-item strong,
.membership-transaction-item strong {
    color: #e8e8e8;
    font-size: 9px;
}

.membership-operation-item span,
.membership-transaction-item span {
    margin-top: 3px;
    color: #777;
    font-size: 7px;
}

.membership-operation-side {
    display: grid;
    justify-items: end;
    gap: 4px;
}

.membership-operation-status {
    margin: 0 !important;
    padding: 4px 6px;
    color: #d4bc88 !important;
    background: rgba(212,163,84,.07);
    border: 1px solid rgba(212,163,84,.18);
    border-radius: 999px;
    font-size: 7px !important;
    font-weight: 700;
}

.membership-operation-status.is-approved {
    color: #86d5a6 !important;
    background: rgba(70,177,113,.07);
    border-color: rgba(70,177,113,.20);
}

.membership-operation-status.is-rejected {
    color: #dfa0a0 !important;
    background: rgba(190,65,65,.07);
    border-color: rgba(190,65,65,.20);
}

.membership-transaction-item {
    grid-template-columns: 34px minmax(0, 1fr) auto;
}

.membership-transaction-icon {
    width: 34px;
    height: 34px;
    display: grid !important;
    place-items: center;
    margin: 0 !important;
    border-radius: 9px;
}

.membership-transaction-icon.is-positive {
    color: #88d4a5;
    background: rgba(70,177,113,.08);
}

.membership-transaction-icon.is-negative {
    color: #d99898;
    background: rgba(190,65,65,.08);
}

.membership-transaction-amount {
    color: #ddd;
    font-size: 10px;
    font-weight: 700;
    text-align: right;
}

.membership-transaction-amount.is-positive { color: #88d4a5; }
.membership-transaction-amount.is-negative { color: #d99898; }

.membership-transaction-amount small {
    display: block;
    margin-top: 2px;
    color: #686868;
    font-size: 7px;
    font-weight: 500;
}

body.membership-modal-open {
    overflow: hidden;
}

.membership-modal-backdrop[hidden] {
    display: none !important;
}

.membership-modal-backdrop {
    position: fixed;
    z-index: 1400;
    inset: 0;
    display: grid;
    align-items: end;
    padding: 10px;
    background: rgba(0,0,0,.80);
    backdrop-filter: blur(5px);
}

.membership-purchase-modal {
    position: relative;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    padding: 18px;
    background: #0d0d0d;
    border: 1px solid #303030;
    border-radius: 17px;
    box-shadow: 0 28px 90px rgba(0,0,0,.55);
}

.membership-purchase-modal > h2 {
    margin: 0;
    padding-right: 40px;
    font-family: "Josefin Sans", sans-serif;
    font-size: 25px;
    text-transform: uppercase;
}

.membership-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #999;
    background: #151515;
    border: 1px solid #303030;
    border-radius: 9px;
    cursor: pointer;
}

.membership-purchase-summary {
    margin: 13px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px;
    background: #090909;
    border: 1px solid #252525;
    border-radius: 10px;
}

.membership-purchase-summary strong {
    color: #eee;
    font-size: 10px;
}

.membership-purchase-summary span {
    color: var(--fc-accent);
    font-family: "Josefin Sans", sans-serif;
    font-size: 18px;
    font-weight: 600;
}

.membership-method-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 10px;
}

.membership-method-tabs:empty {
    display: none;
}

.membership-method-tabs button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #a7a7a7;
    background: #111;
    border: 1px solid #292929;
    border-radius: 9px;
    font-size: 8px;
    font-weight: 700;
    cursor: pointer;
}

.membership-method-tabs button.active {
    color: #fff;
    border-color: rgba(197,107,63,.55);
    background: rgba(197,107,63,.08);
}

.membership-transfer-box,
.membership-platform-box {
    display: grid;
    gap: 10px;
}

.membership-bank-data {
    display: grid;
    gap: 7px;
}

.membership-bank-data > div {
    position: relative;
    display: grid;
    gap: 2px;
    padding: 9px;
    background: #090909;
    border: 1px solid #252525;
    border-radius: 9px;
}

.membership-bank-data small {
    color: #777;
    font-size: 7px;
    text-transform: uppercase;
}

.membership-bank-data strong {
    color: #eee;
    font-size: 10px;
    overflow-wrap: anywhere;
}

.membership-bank-data button {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    padding: 5px 7px;
    color: #bbb;
    background: #151515;
    border: 1px solid #303030;
    border-radius: 7px;
    font-size: 7px;
    cursor: pointer;
}

.membership-transfer-box > p,
.membership-platform-box > p {
    margin: 0;
    color: var(--fc-muted);
    font-size: 8px;
    line-height: 1.5;
}

.membership-receipt-upload {
    display: grid;
    gap: 6px;
    padding: 10px;
    background: #090909;
    border: 1px dashed #343434;
    border-radius: 10px;
}

.membership-receipt-upload span {
    color: #ddd;
    font-size: 9px;
    font-weight: 700;
}

.membership-receipt-upload input {
    width: 100%;
    color: #aaa;
    font-size: 8px;
}

.membership-receipt-upload small {
    color: #6f6f6f;
    font-size: 7px;
    line-height: 1.4;
}

.membership-platform-box {
    justify-items: center;
    padding: 16px;
    text-align: center;
    background: #090909;
    border: 1px solid #252525;
    border-radius: 11px;
}

.membership-platform-box > i {
    color: var(--fc-accent);
    font-size: 26px;
}

.membership-platform-box > strong {
    font-family: "Josefin Sans", sans-serif;
    font-size: 18px;
    text-transform: uppercase;
}

.membership-platform-box > small {
    color: #777;
    font-size: 7px;
}

.membership-purchase-result {
    display: grid;
    justify-items: center;
    gap: 7px;
    padding: 18px 12px;
    color: #ddd;
    text-align: center;
    background: #090909;
    border: 1px solid #292929;
    border-radius: 11px;
}

.membership-purchase-result > i {
    color: #83d0a0;
    font-size: 28px;
}

.membership-purchase-result strong {
    font-size: 11px;
}

.membership-purchase-result span {
    color: #7a7a7a;
    font-size: 8px;
    line-height: 1.45;
}

.membership-whatsapp-button {
    margin-top: 4px;
    background: #1d8f4d;
}

.membership-toast {
    position: fixed;
    z-index: 1600;
    left: 50%;
    bottom: calc(var(--fc-bottom-height) + 20px);
    width: min(calc(100% - 28px), 420px);
    padding: 11px 13px;
    color: #fff;
    background: #171717;
    border: 1px solid #343434;
    border-radius: 10px;
    box-shadow: 0 18px 50px rgba(0,0,0,.45);
    font-size: 9px;
    text-align: center;
    transform: translate(-50%, 12px);
    opacity: 0;
    transition: .18s ease;
}

.membership-toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

@media (min-width: 650px) {
    .membership-sync-status { display: inline-flex; align-items: center; gap: 5px; }
    .membership-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .membership-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .membership-payment-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .membership-modal-backdrop { align-items: center; justify-items: center; padding: 24px; }
    .membership-purchase-modal { width: min(100%, 620px); max-height: 88vh; padding: 22px; }
    .membership-bank-data { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 980px) {
    .membership-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Favoritos + acciones comerciales */
.profile-primary-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
}
.profile-primary-actions .message-action { margin-top: 0; }
.favorite-action { margin-top: 0; cursor: pointer; }
.favorite-action.is-favorite { color: #fff; background: rgba(197,107,63,.12); border-color: rgba(197,107,63,.55); }
.favorite-action.is-favorite i { color: var(--fc-accent); }
.favorites-page { width: min(100%, 980px); }
.favorites-credit-pill { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; color: #eee; background: #111; border: 1px solid #292929; border-radius: 999px; font-size: 11px; font-weight: 700; }
.favorites-credit-pill i { color: var(--fc-accent); }
.favorites-controls-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    align-items: stretch;
    margin-bottom: 12px;
}
.favorites-overview,
.favorites-tabs { display: contents; }
.favorites-overview article {
    min-width: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 8px;
    background: rgba(17,17,17,.88);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
}
.favorites-overview article > i {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: var(--fc-accent);
    background: rgba(197,107,63,.10);
    border-radius: 50%;
    font-size: 10px;
}
.favorites-overview strong,.favorites-overview span { display: block; }
.favorites-overview strong {
    color: #fff;
    font-family: "Josefin Sans", sans-serif;
    font-size: 16px;
    line-height: 1;
}
.favorites-overview span {
    margin-top: 2px;
    overflow: hidden;
    color: #a9a9a9;
    font-size: 16px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Favoritos: resumen y pestañas compactos en una sola hilera */
.favorites-tabs button {
    min-width: 0;
    min-height: 48px;
    padding: 0 7px;
    color: #e0e0e0;
    background: #111;
    border: 1px solid #262626;
    border-radius: 10px;
    font-family: "Work Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;
    cursor: pointer;
    transition: .16s ease;
}
.favorites-tabs button:hover { color: #fff; border-color: #444; }
.favorites-tabs button.active {
    color: #fff;
    background: rgba(197,107,63,.16);
    border-color: rgba(197,107,63,.62);
    box-shadow: inset 0 0 0 1px rgba(197,107,63,.08);
}
.favorites-panel { margin-top: 14px; padding: 16px; background: rgba(17,17,17,.86); border: 1px solid rgba(255,255,255,.07); border-radius: 16px; }
.favorites-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.favorites-panel-heading h2 { margin: 0; font-family: "Josefin Sans", sans-serif; font-size: 22px; line-height: 1; text-transform: uppercase; }
.favorites-explainer { margin: -2px 0 13px; color: #8f8f8f; font-size: 16px; line-height: 1.5; }
.favorites-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 160px));
    justify-content: start;
    gap: 12px;
}
.favorite-user-card {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 9px;
    background: #0c0c0c;
    border: 1px solid #252525;
    border-radius: 12px;
}
.favorite-user-card.is-locked { background: #0a0a0a; border-style: dashed; }
.favorite-user-avatar {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #ddd;
    background: #191919;
    border: 1px solid #303030;
    border-radius: 9px;
    font-family: "Josefin Sans", sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}
a.favorite-user-avatar { cursor: pointer; }
a.favorite-user-avatar:hover { border-color: rgba(197,107,63,.65); }
.favorite-user-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.favorite-user-avatar.is-locked { min-height: 155px; color: #777; font-size: 22px; }
.favorite-user-copy { min-width: 0; padding: 0 2px; }
.favorite-user-copy strong,.favorite-user-copy span,.favorite-user-copy small,.favorite-user-copy a { display: block; }
.favorite-user-copy strong,.favorite-user-name-link {
    overflow: hidden;
    color: #f0f0f0;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.favorite-user-name-link:hover { color: var(--fc-accent); }
.favorite-user-copy span { margin-top: 3px; color: #9b9b9b; font-size: 8px; }
.favorite-user-copy small { margin-top: 4px; color: #626262; font-size: 7px; line-height: 1.35; }
.favorite-user-actions { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: auto; }
.favorite-profile-button,.favorite-remove-button,.favorite-reveal-button {
    min-height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 8px;
    font-weight: 700;
    cursor: pointer;
}
.favorite-profile-button { color: #e9e9e9; background: #161616; border: 1px solid #303030; }
.favorite-remove-button { color: #bca59a; background: transparent; border: 1px solid #3a2a24; }
.favorite-reveal-button { color: #fff; background: var(--fc-accent); border: 1px solid var(--fc-accent); }
.favorite-reveal-button:disabled { color: #666; background: #121212; border-color: #272727; cursor: not-allowed; }
.favorites-empty { display: grid; justify-items: center; gap: 7px; padding: 28px 18px; color: #777; text-align: center; }
.favorites-empty[hidden] { display: none; }
.favorites-empty > i { color: var(--fc-accent); font-size: 26px; }
.favorites-empty strong { color: #ddd; font-size: 11px; }
.favorites-empty span { max-width: 360px; font-size: 8px; line-height: 1.5; }
.favorites-empty .secondary-action { width: auto; min-width: 130px; margin-top: 4px; }
@media (min-width: 521px) {
    .favorites-overview article {
        min-height: 64px;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 12px;
    }
    .favorites-credit-pill {
        min-height: 44px;
        gap: 9px;
        padding: 0 16px;
        font-size: 26px;
    }

    .favorites-credit-pill i {
        font-size: 24px;
    }
    .favorites-overview article > i {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .favorites-overview strong {
        font-size: 24px;
    }

    .favorites-overview span {
        margin-top: 4px;
        font-size: 18px;
    }

    .favorites-tabs button {
        min-height: 64px;
        padding: 0 12px;
        border-radius: 12px;
        font-size: 18px;
    }

       .favorite-user-copy span {
        margin-top: 5px;
        color: #cfcfcf;
        font-size: 15px;
        font-weight: 600;
    }

    .favorite-user-copy small {
        margin-top: 6px;
        color: #f0f0f0;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.4;
    }

    .favorite-profile-button,
    .favorite-remove-button,
    .favorite-reveal-button {
        font-size: 11px;
    }
}
@media (max-width: 520px) {
    .favorites-controls-row { gap: 5px; }
    .favorites-overview article { min-height: 44px; gap: 5px; padding: 6px 5px; }
    .favorites-overview article > i { width: 20px; height: 20px; font-size: 8px; }
    .favorites-overview strong { font-size: 14px; }
        .favorites-overview span { font-size: 13px; }
    .favorites-tabs button { min-height: 44px; padding: 0 4px; font-size: 16px; }
    .favorites-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .favorite-user-card { padding: 8px; }
    .favorite-user-avatar.is-locked { min-height: 130px; }
}
.commercial-action-toast { position: fixed; z-index: 1900; left: 50%; bottom: calc(var(--fc-bottom-height) + 20px); width: min(calc(100% - 28px), 420px); padding: 11px 13px; color: #fff; background: #171717; border: 1px solid #343434; border-radius: 10px; box-shadow: 0 18px 50px rgba(0,0,0,.45); font-size: 9px; text-align: center; transform: translate(-50%, 12px); opacity: 0; transition: .18s ease; }
.commercial-action-toast.show { transform: translate(-50%, 0); opacity: 1; }
.commercial-action-modal-backdrop { position: fixed; z-index: 1850; inset: 0; display: grid; align-items: end; padding: 14px; background: rgba(0,0,0,.78); backdrop-filter: blur(4px); }
.commercial-action-modal-backdrop[hidden] { display: none; }
.commercial-action-modal { position: relative; width: 100%; max-width: 480px; margin: 0 auto; display: grid; justify-items: center; gap: 9px; padding: 24px 18px 18px; color: #eee; text-align: center; background: #101010; border: 1px solid #303030; border-radius: 16px; box-shadow: 0 28px 80px rgba(0,0,0,.6); }
.commercial-action-modal-close { position: absolute; top: 9px; right: 9px; width: 30px; height: 30px; display: grid; place-items: center; color: #777; background: transparent; border: 0; cursor: pointer; }
.commercial-action-modal-icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--fc-accent); background: rgba(197,107,63,.10); border: 1px solid rgba(197,107,63,.25); border-radius: 50%; font-size: 18px; }
.commercial-action-modal h2 { margin: 0; font-family: "Josefin Sans", sans-serif; font-size: 24px; text-transform: uppercase; }
.commercial-action-modal p { margin: 0; color: #aaa; font-size: 9px; line-height: 1.55; }
.commercial-action-modal-balance { padding: 8px 11px; color: #ddd; background: #090909; border: 1px solid #252525; border-radius: 9px; font-size: 8px; }
.commercial-action-modal-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 5px; }
.commercial-action-modal-actions .primary-action,.commercial-action-modal-actions .secondary-action { width: 100%; }
body.commercial-modal-open { overflow: hidden; }
@media (min-width: 650px) {
    .profile-primary-actions { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); }
    .commercial-action-modal-backdrop { align-items: center; }
}

/* Corrección visibilidad foto principal / avatar fallback */
.profile-photo-card > img[hidden],
.profile-avatar-fallback[hidden] {
    display: none !important;
}

/* V8: Besos, guiños e interacciones */
.profile-signal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}
.profile-signal-action {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 10px;
    color: #d7d7d7;
    background: #101010;
    border: 1px solid #2b2b2b;
    border-radius: 10px;
    font-family: "Work Sans", sans-serif;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
    transition: .16s ease;
}
.profile-signal-action:hover:not(:disabled),
.profile-signal-action:focus-visible:not(:disabled) {
    color: #fff;
    border-color: rgba(197,107,63,.62);
    background: rgba(197,107,63,.08);
}
.profile-signal-action.is-kiss i { color: var(--fc-accent); }
.profile-signal-action.is-wink i { color: #d6a37f; }
.profile-signal-action:disabled { color: #646464; background: #0c0c0c; border-color: #202020; cursor: not-allowed; }
.profile-signal-action.is-cooldown { color: #9b8e86; border-color: rgba(197,107,63,.24); }
.profile-signal-action.is-cooldown i { color: #8b5d46; }

.side-menu-nav a { position: relative; }
.side-menu-count {
    min-width: 18px;
    height: 18px;
    margin-left: auto;
    padding: 0 5px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: var(--fc-accent);
    border-radius: 999px;
    font-size: 7px;
    line-height: 1;
}

.interactions-page { width: min(100%, 980px); }
.interaction-controls-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    align-items: stretch;
    margin-bottom: 12px;
}
.interaction-overview,
.interaction-tabs { display: contents; }
.interaction-overview article {
    min-width: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 8px;
    background: rgba(17,17,17,.88);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
}
.interaction-overview article > i {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: var(--fc-accent);
    background: rgba(197,107,63,.10);
    border-radius: 50%;
    font-size: 10px;
}
.interaction-overview strong,
.interaction-overview span { display: block; }
.interaction-overview strong { color: #fff; font-family: "Josefin Sans", sans-serif; font-size: 16px; line-height: 1; }
.interaction-overview span { margin-top: 2px; overflow: hidden; color: var(--fc-muted); font-size: 7px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.interaction-tabs button {
    min-width: 0;
    min-height: 48px;
    padding: 0 7px;
    color: #c4c4c4;
    background: #111;
    border: 1px solid #262626;
    border-radius: 10px;
    font-family: "Work Sans", sans-serif;
    font-size: 8px;
    font-weight: 700;
    cursor: pointer;
}
.interaction-tabs button.active { color: #fff; background: rgba(197,107,63,.16); border-color: rgba(197,107,63,.62); }
@media (min-width: 521px) {
    .interaction-overview article {
        min-height: 64px;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 12px;
    }

    .interaction-overview article > i {
        width: 30px;
        height: 30px;
        font-size: 26px;
    }

    .interaction-overview strong {
        font-size: 30px;
    }

    .interaction-overview span {
        margin-top: 4px;
        font-size: 22px;
        line-height: 1.25;
    }

    .interaction-tabs button {
        min-height: 64px;
        padding: 0 12px;
        border-radius: 12px;
        font-size: 23px;
    }
}
.interaction-panel { margin-top: 14px; padding: 16px; background: rgba(17,17,17,.86); border: 1px solid rgba(255,255,255,.07); border-radius: 16px; }
.interaction-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 220px)); justify-content: start; gap: 10px; }
.interaction-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 50px minmax(0,1fr);
    gap: 9px;
    align-items: center;
    padding: 9px;
    background: #0c0c0c;
    border: 1px solid #252525;
    border-radius: 11px;
}
.interaction-card.is-unread { border-color: rgba(197,107,63,.46); background: rgba(197,107,63,.055); }
.interaction-avatar {
    width: 50px;
    height: 50px;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #ddd;
    background: #191919;
    border: 1px solid #303030;
    border-radius: 9px;
    font-family: "Josefin Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.interaction-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.interaction-copy { min-width: 0; display: grid; gap: 3px; }
.interaction-type { display: inline-flex; align-items: center; gap: 5px; color: #b7b7b7; font-size: 7px; font-weight: 600; }
.interaction-type i { color: var(--fc-accent); }
.interaction-username { overflow: hidden; color: #f1f1f1; font-size: 9px; font-weight: 700; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
a.interaction-username:hover { color: var(--fc-accent); }
.interaction-copy small { color: #686868; font-size: 7px; }
.interaction-profile-button {
    grid-column: 1 / -1;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ddd;
    background: #151515;
    border: 1px solid #2c2c2c;
    border-radius: 8px;
    font-size: 8px;
    font-weight: 700;
    text-decoration: none;
}
.interaction-profile-button:hover { color: #fff; border-color: rgba(197,107,63,.5); }
@media (min-width: 521px) {
    .interaction-list {
        grid-template-columns: repeat(auto-fill, minmax(300px, 350px));
        gap: 30px;
    }

    .interaction-card {
        grid-template-columns: 170px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
        border-radius: 12px;
    }

    .interaction-avatar {
        width: 140px;
        height: 140px;
        border-radius: 10px;
        font-size: 16px;
    }

    .interaction-copy {
        gap: 5px;
    }

    .interaction-type {
        gap: 6px;
        font-size: 20px;
    }

    .interaction-username {
        font-size: 18px;
    }

    .interaction-copy small {
        font-size: 18px;
    }

    .interaction-profile-button {
        min-height: 34px;
        font-size: 20px;
    }
}
@media (max-width: 520px) {
    .profile-signal-actions { gap: 6px; }
    .profile-signal-action { min-height: 40px; padding: 7px; font-size: 8px; }
    .interaction-controls-row { gap: 5px; }
    .interaction-overview article { min-height: 44px; gap: 5px; padding: 6px 5px; }
    .interaction-overview article > i { width: 20px; height: 20px; font-size: 8px; }
    .interaction-overview strong { font-size: 14px; }
    .interaction-overview span { font-size: 6.5px; }
    .interaction-tabs button { min-height: 44px; padding: 0 4px; font-size: 7px; }
    .interaction-list { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
    .interaction-card { grid-template-columns: 42px minmax(0,1fr); gap: 7px; padding: 8px; }
    .interaction-avatar { width: 42px; height: 42px; }
}

/* V9 · Mensajes: estado comercial de conversación */
.chat-commercial-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 7px 14px 0;
    padding: 7px 10px;
    color: #aaa;
    background: rgba(255,255,255,.025);
    border: 1px solid #232323;
    border-radius: 10px;
    font-size: 9px;
    line-height: 1.35;
    text-align: center;
}
.chat-commercial-status[hidden] { display: none; }
.chat-commercial-status i { color: var(--fc-accent); }
.chat-commercial-status.is-unlocked { color: #c8c8c8; border-color: rgba(197,107,63,.30); background: rgba(197,107,63,.07); }
.chat-system-message {
    width: min(92%, 540px);
    margin: 9px auto;
    padding: 8px 11px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
    color: #8f8f8f;
    background: #0c0c0c;
    border: 1px solid #202020;
    border-radius: 10px;
    font-size: 9px;
    line-height: 1.45;
    text-align: center;
}
.chat-system-message i { margin-top: 2px; color: var(--fc-accent); }
/* V8.2: acceso rápido a Actividad */
.bottom-nav.has-activity-nav {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}
.bottom-nav.has-activity-nav .bottom-nav-item {
    font-size: 18px;
}
.bottom-nav.has-activity-nav .bottom-nav-item span:last-child {
    font-size:17px;
}
.activity-nav-badge[hidden] {
    display: none !important;
}

.activity-page {
    width: min(100%, 980px);
}
.activity-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}
.activity-summary-card {
    min-width: 0;
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    color: #d8d8d8;
    background: rgba(17,17,17,.88);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
    text-decoration: none;
}
.activity-summary-card:hover,
.activity-summary-card:focus-visible {
    color: #fff;
    border-color: rgba(197,107,63,.45);
    outline: none;
}
.activity-summary-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: var(--fc-accent);
    background: rgba(197,107,63,.10);
    border-radius: 50%;
    font-size: 14px;
}
.activity-summary-card strong,
.activity-summary-card small {
    display: block;
}
.activity-summary-card strong {
    color: #fff;
    font-family: "Josefin Sans", sans-serif;
    font-size: 18px;
    line-height: 1;
}
.activity-summary-card small {
    margin-top: 3px;
    overflow: hidden;
    color: var(--fc-muted);
    font-size: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.activity-feed {
    display: grid;
    gap: 8px;
}
.activity-feed-card {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px;
    color: inherit;
    background: #0d0d0d;
    border: 1px solid #252525;
    border-radius: 12px;
}
.activity-feed-card.is-new {
    border-color: rgba(197,107,63,.42);
    background: rgba(197,107,63,.055);
}
.activity-feed-avatar {
    width: 50px;
    height: 50px;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #ddd;
    background: #191919;
    border: 1px solid #303030;
    border-radius: 10px;
    text-decoration: none;
}
.activity-feed-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.activity-feed-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}
.activity-feed-copy strong {
    overflow: hidden;
    color: #eee;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.activity-feed-copy span {
    color: #aaa;
    font-size:8px;
    line-height: 1.35;
}
.activity-feed-copy small {
    color: #666;
    font-size: 7px;
}
.activity-feed-symbol {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: var(--fc-accent);
    background: rgba(197,107,63,.08);
    border-radius: 50%;
    font-size: 14px;
}
.activity-feed-card.is-locked .activity-feed-avatar {
    color: #777;
    background: #111;
}
.activity-feed-card.is-locked .activity-feed-copy strong {
    color: #c8c8c8;
}
.activity-feed-link {
    grid-column: 1 / -1;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    color: #ddd;
    background: #151515;
    border: 1px solid #2c2c2c;
    border-radius: 8px;
    font-size: 8px;
    font-weight: 700;
    text-decoration: none;
}
.activity-feed-link:hover,
.activity-feed-link:focus-visible {
    color: #fff;
    border-color: rgba(197,107,63,.5);
    outline: none;
}
.activity-empty {
    min-height: 160px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    padding: 26px 16px;
    color: var(--fc-muted);
    text-align: center;
    border: 1px dashed #2a2a2a;
    border-radius: 14px;
}
.activity-empty i {
    color: var(--fc-accent);
    font-size: 24px;
}
.activity-empty strong {
    color: #ddd;
    font-size: 13px;
}
.activity-empty span {
    max-width: 360px;
    font-size: 12px;
    line-height: 1.5;
}

@media (min-width: 521px) {
    .activity-summary-card {
        min-height: 72px;
        gap: 12px;
        padding: 12px 14px;
    }

    .activity-summary-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .activity-summary-card strong {
        font-size: 24px;
    }

    .activity-summary-card small {
        margin-top: 5px;
        font-size: 14px;
    }


    .activity-feed-copy strong {
        font-size: 18px;
    }

    .activity-feed-copy span {
        font-size: 16px;
    }

    .activity-feed-link {
        font-size: 20px;
    }
}

@media (max-width: 520px) {
    .bottom-nav.has-activity-nav {
        padding-left: 2px;
        padding-right: 2px;
    }
    .bottom-nav.has-activity-nav .bottom-nav-item {
        font-size: 17px;
        gap: 3px;
    }
    .bottom-nav.has-activity-nav .bottom-nav-item span:last-child {
        font-size: 8px;
    }
    .activity-summary {
        gap: 5px;
    }
    .activity-summary-card {
        min-height: 52px;
        gap: 6px;
        padding: 7px;
    }
    .activity-summary-icon {
        width: 27px;
        height: 27px;
        font-size: 12px;
    }
    .activity-summary-card strong {
        font-size: 15px;
    }
    .activity-summary-card small {
        font-size: 6.5px;
    }
    .activity-feed-card {
        grid-template-columns: 42px minmax(0, 1fr) 28px;
        gap: 7px;
        padding: 8px;
    }
    .activity-feed-avatar {
        width: 42px;
        height: 42px;
    }
    .activity-feed-symbol {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* V9.1 · Barra inferior: 6 accesos en una sola fila */
.bottom-nav.has-activity-nav {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}
@media (max-width: 520px) {
    .bottom-nav.has-activity-nav {
        column-gap: 0;
        padding-left: 1px;
        padding-right: 1px;
    }
    .bottom-nav.has-activity-nav .bottom-nav-item {
        font-size: 16px;
        gap: 2px;
    }
    .bottom-nav.has-activity-nav .bottom-nav-item span:last-child {
        font-size: 7.5px;
    }
}

/* Miembros V10: filtros compactos + Top Five */
.member-tools-layout {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 14px 16px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: 16px;
    align-items: start;
}

.member-filter-area {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 10px;
}

.member-filter-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.member-tool-toggle {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    color: var(--fc-muted);
    background: #101010;
    border: 1px solid var(--fc-border);
    border-radius: 12px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.member-tool-toggle strong {
    color: var(--fc-accent);
    font-size: 11px;
    font-weight: 700;
}

.member-tool-toggle:hover,
.member-tool-toggle:focus-visible,
.member-tool-toggle.active {
    color: #fff;
    background: var(--fc-accent-soft);
    border-color: rgba(197,107,63,.62);
    outline: none;
}

.member-tool-panel {
    max-width: 610px;
    padding: 10px;
    background: rgba(16,16,16,.96);
    border: 1px solid var(--fc-border);
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(0,0,0,.22);
}

.member-tool-panel[hidden] {
    display: none !important;
}

.member-tool-panel .search-field {
    width: 100%;
    margin: 0;
}

.member-tool-panel > small {
    display: block;
    margin-top: 7px;
    color: var(--fc-muted);
    font-size: 10px;
    line-height: 1.45;
}

.member-age-search.compact {
    width: 100%;
    margin: 0;
}

.top-five-card {
    min-width: 0;
    border: 1px solid rgba(197,107,63,.38);
    border-radius: 18px;
    background:
        radial-gradient(circle at 12% 5%, rgba(197,107,63,.20), transparent 40%),
        linear-gradient(145deg, #151515, #0b0b0b);
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,.20);
}

.top-five-card[hidden] {
    display: none !important;
}

.top-five-card-button {
    width: 100%;
    min-height: 128px;
    padding: 14px;
    display: grid;
    gap: 10px;
    color: inherit;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
}

.top-five-card-button:hover,
.top-five-card-button:focus-visible {
    background: rgba(197,107,63,.05);
    outline: none;
}

.top-five-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.top-five-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--fc-accent);
    font-family: "Josefin Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .10em;
}

.top-five-points {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.top-five-card-content {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.top-five-lead-media {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--fc-muted);
    background: #0b0b0b;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 15px;
    font-size: 24px;
}

.top-five-lead-media img,
.top-five-ranking-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-five-card-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.top-five-card-copy strong {
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-five-card-copy p {
    margin: 0;
    color: var(--fc-muted);
    font-size: 10px;
    line-height: 1.35;
}

.top-five-card-copy > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    color: var(--fc-accent);
    font-size: 10px;
    font-weight: 700;
}

.top-five-modal {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: grid;
    place-items: center;
    padding: 18px;
}

.top-five-modal[hidden] {
    display: none !important;
}

.top-five-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.78);
    backdrop-filter: blur(7px);
}

.top-five-modal-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 540px);
    max-height: min(82vh, 720px);
    overflow: auto;
    padding: 18px;
    background: #0d0d0d;
    border: 1px solid var(--fc-border);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0,0,0,.55);
}

.top-five-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.top-five-modal-head span {
    color: var(--fc-accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.top-five-modal-head h2 {
    margin: 3px 0 0;
    font-family: "Josefin Sans", sans-serif;
    font-size: 30px;
    line-height: 1;
    text-transform: uppercase;
}

.top-five-modal-head button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--fc-muted);
    background: #151515;
    border: 1px solid var(--fc-border);
    border-radius: 50%;
    cursor: pointer;
}

.top-five-modal-intro {
    margin: 12px 0 14px;
    color: var(--fc-muted);
    font-size: 11px;
    line-height: 1.45;
}

.top-five-ranking {
    display: grid;
    gap: 8px;
}

.top-five-ranking-row {
    min-width: 0;
    display: grid;
    grid-template-columns: 34px 52px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 9px;
    color: inherit;
    background: #121212;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease;
}

.top-five-ranking-row:hover,
.top-five-ranking-row:focus-visible {
    border-color: rgba(197,107,63,.55);
    transform: translateY(-1px);
    outline: none;
}

.top-five-position {
    color: var(--fc-accent);
    font-family: "Josefin Sans", sans-serif;
    font-size: 19px;
    font-weight: 700;
    text-align: center;
}

.top-five-ranking-media {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--fc-muted);
    background: #080808;
    border-radius: 12px;
}

.top-five-ranking-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.top-five-ranking-copy strong {
    overflow: hidden;
    color: #fff;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-five-ranking-copy small {
    color: var(--fc-muted);
    font-size: 10px;
}

.top-five-ranking-row > .fa-chevron-right {
    color: var(--fc-muted);
    font-size: 10px;
}

.top-five-empty {
    margin: 0;
    padding: 22px 14px;
    color: var(--fc-muted);
    background: #121212;
    border: 1px dashed var(--fc-border);
    border-radius: 14px;
    font-size: 11px;
    text-align: center;
}

body.top-five-open {
    overflow: hidden;
}

@media (max-width: 760px) {
    .member-tools-layout {
        grid-template-columns: 1fr;
        gap: 10px;
        padding-top: 10px;
    }

    .member-filter-buttons {
        flex-wrap: nowrap;
    }

    .member-tool-toggle {
        flex: 0 0 auto;
        min-height: 38px;
        padding-inline: 11px;
    }

    .top-five-card-button {
        min-height: 112px;
        padding: 12px;
    }

    .top-five-card-content {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .top-five-lead-media {
        width: 64px;
        height: 64px;
        border-radius: 13px;
    }

    .account-main {
        padding-top: 20px;
    }
}

@media (max-width: 520px) {
    .member-tool-panel {
        max-width: none;
    }

    .member-age-search.compact {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 40px;
        gap: 7px;
    }

    .member-age-search.compact .member-age-clear {
        grid-column: auto;
        width: 40px;
        height: 40px;
    }

    .member-age-search.compact .member-age-field input,
    .member-age-search.compact .member-age-separator {
        min-height: 40px;
    }

    .top-five-modal {
        padding: 10px;
    }

    .top-five-modal-panel {
        padding: 14px;
        border-radius: 17px;
    }

    .top-five-ranking-row {
        grid-template-columns: 30px 46px minmax(0, 1fr) auto;
        gap: 8px;
    }

    .top-five-ranking-media {
        width: 46px;
        height: 46px;
    }
}

.member-tools-layout.top-five-disabled {
    grid-template-columns: minmax(0, 1fr);
}
/* Selector de avatar de perfil */
.avatar-selector-description {
    margin-bottom: 16px;
}

.avatar-selector-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: rgba(255,255,255,.025);
    border: 1px solid var(--fc-border);
    border-radius: 14px;
}

.avatar-selector-status {
    min-width: 0;
}

.avatar-selector-status span {
    display: block;
    margin-bottom: 3px;
    color: var(--fc-muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.avatar-selector-status strong {
    display: block;
    color: #fff;
    font-size: 13px;
}

.profile-avatar-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.profile-avatar-option {
    position: relative;
    overflow: hidden;
    padding: 0;
    color: inherit;
    text-align: left;
    background: #111;
    border: 1px solid var(--fc-border);
    border-radius: 16px;
    cursor: pointer;
}

.profile-avatar-option:hover {
    border-color: rgba(255,255,255,.2);
}

.profile-avatar-option.is-selected {
    border-color: var(--fc-accent);
    box-shadow: 0 0 0 1px var(--fc-accent);
}

.profile-avatar-option-media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #171717;
}

.profile-avatar-option-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.profile-avatar-option-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    display: none;
    place-items: center;
    color: #050505;
    background: var(--fc-accent);
    border-radius: 50%;
}

.profile-avatar-option.is-selected .profile-avatar-option-check {
    display: grid;
}

.profile-avatar-option-info {
    display: grid;
    gap: 3px;
    padding: 10px;
}

.profile-avatar-option-info strong {
    overflow: hidden;
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.profile-avatar-option-info span {
    color: var(--fc-muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

@media (min-width: 720px) {
    .profile-avatar-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .avatar-selector-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .avatar-selector-toolbar .compact-action {
        width: 100%;
    }

    .profile-avatar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
