/* Shared light hover cards for profiles and communities. */
.wt-confession-profile-card[hidden] {
    display: none !important;
}

.wt-confession-profile-card,
.wt-confession-profile-card * {
    box-sizing: border-box;
}

.wt-confession-profile-card {
    --wt-profile-accent: #f80074;
    --wt-profile-accent-deep: #d90066;
    --wt-profile-ink: #202027;
    --wt-profile-muted: #71717c;
    --wt-profile-line: #e5e5e9;
    --wt-profile-soft: #f1f1f4;
    --wt-card-width: 390px;
    --wt-card-radius: 14px;
    --wt-card-loading-height: 150px;
    position: fixed;
    z-index: 2147483647;
    inset: 0;
    font-family: inherit;
    pointer-events: none;
}

.wt-confession-profile-card--community {
    --wt-card-width: 356px;
    --wt-card-radius: 8px;
    --wt-card-loading-height: 234px;
}

.wt-confession-profile-card__shell {
    position: fixed;
    top: var(--wt-profile-top, 12px);
    left: var(--wt-profile-left, 12px);
    width: min(var(--wt-card-width), calc(100vw - 16px));
    max-height: min(330px, calc(100dvh - 16px));
    overflow: hidden;
    border: 1px solid var(--wt-profile-line);
    border-radius: var(--wt-card-radius);
    color: var(--wt-profile-ink);
    background: #fff;
    box-shadow: 0 16px 42px rgba(26, 24, 34, .18), 0 3px 10px rgba(26, 24, 34, .08);
    opacity: 0;
    pointer-events: auto;
    transform: translateY(7px) scale(.985);
    transform-origin: var(--wt-profile-origin-x, 44px) var(--wt-profile-origin-y, 0);
    transition: opacity .16s ease, transform .18s cubic-bezier(.2, .74, .3, 1);
}

.wt-confession-profile-card.is-open .wt-confession-profile-card__shell {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.wt-confession-profile-card__topbar {
    position: absolute;
    z-index: 8;
    top: 8px;
    right: 8px;
}

.wt-confession-profile-card__close {
    display: grid;
    width: 28px;
    height: 28px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--wt-profile-muted);
    background: var(--wt-profile-soft);
    cursor: pointer;
}

.wt-confession-profile-card__close:hover {
    color: var(--wt-profile-ink);
    background: #e4e4e8;
}

.wt-confession-profile-card__close svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.wt-confession-profile-card__content {
    max-height: min(328px, calc(100dvh - 18px));
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
}

/* User card: retain the round avatar and existing profile actions. */
.wt-confession-profile-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    text-align: left;
}

.wt-confession-profile-card__avatar.wt-story-avatar {
    display: block;
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    border-radius: 50%;
}

a.wt-confession-profile-card__avatar {
    color: inherit;
    text-decoration: none;
}

a.wt-confession-profile-card__avatar:focus-visible {
    outline: 2px solid var(--wt-profile-accent);
    outline-offset: 2px;
}

.wt-confession-profile-card__avatar > img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 2px;
    object-fit: cover;
    border-radius: inherit;
    background: #fff;
}

.wt-confession-profile-card__heading {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.wt-confession-profile-card__header h2 {
    width: 100%;
    margin: 0;
    padding-right: 26px;
    color: var(--wt-profile-ink);
    font: 700 19px/1.18 'Outfit', sans-serif;
    letter-spacing: -.015em;
}

.wt-confession-profile-card__name,
.wt-confession-profile-card__username {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wt-confession-profile-card__username {
    color: var(--wt-profile-muted);
    font-size: 13px;
    line-height: 1.4;
}

.wt-confession-profile-card__heading :is(.wt-confession-profile-card__name, .wt-confession-profile-card__username):hover {
    color: var(--wt-profile-accent-deep);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.wt-confession-profile-card__stats {
    max-width: 100%;
    margin-top: 4px;
}

.wt-confession-profile-card__stats > div {
    display: flex;
    min-height: 22px;
    align-items: center;
    gap: 7px;
}

.wt-confession-profile-card__stats svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: var(--wt-profile-accent);
}

.wt-confession-profile-card__stats > div > span {
    min-width: 0;
}

.wt-confession-profile-card__stats strong {
    display: block;
    overflow: hidden;
    color: var(--wt-profile-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wt-confession-profile-card__escort {
    display: flex;
    min-height: 64px;
    align-items: center;
    gap: 12px;
    margin: 0 12px 4px;
    padding: 10px 12px 10px 10px;
    border: 1px solid #f9d3e4;
    border-radius: 10px;
    color: var(--wt-profile-ink);
    background: linear-gradient(105deg, #fff6fa 0%, #fff 100%);
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.wt-confession-profile-card__escort:hover {
    border-color: #f5a9cb;
    background: linear-gradient(105deg, #ffeef6 0%, #fff8fb 100%);
    box-shadow: 0 2px 8px rgba(248, 0, 116, .06);
}

.wt-confession-profile-card__escort-photos {
    position: relative;
    display: block;
    width: 92px;
    height: 58px;
    flex: none;
    margin-left: 2px;
}

.wt-confession-profile-card__escort-photos[data-count="1"] {
    width: 42px;
}

.wt-confession-profile-card__escort-photos[data-count="2"] {
    width: 74px;
}

.wt-confession-profile-card__escort-photo {
    position: absolute;
    top: 50%;
    left: 50%;
    isolation: isolate;
    display: block;
    width: 34px;
    height: 48px;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 7px;
    background: #fceaf2;
    box-shadow: 0 0 0 1px rgba(214, 146, 178, .38);
    transform: translate(-50%, -50%);
    transform-origin: 50% 76%;
    transition: transform .22s cubic-bezier(.22, 1, .36, 1), box-shadow .22s ease;
}

.wt-confession-profile-card__escort-photo:nth-child(1) {
    z-index: 3;
    box-shadow: 0 0 0 1px rgba(248, 0, 116, .28), 0 3px 8px rgba(248, 0, 116, .09);
}

.wt-confession-profile-card__escort-photo:not(:first-child)::after {
    position: absolute;
    inset: 0;
    background: rgba(255, 245, 250, .2);
    content: '';
    pointer-events: none;
    transition: opacity .22s ease;
}

.wt-confession-profile-card__escort:hover .wt-confession-profile-card__escort-photo:not(:first-child)::after {
    opacity: .06;
}

/* 2-card fan */
.wt-confession-profile-card__escort-photos[data-count="2"] .wt-confession-profile-card__escort-photo:nth-child(1) {
    transform: translate(-26%, -53%) rotate(5deg);
}

.wt-confession-profile-card__escort-photos[data-count="2"] .wt-confession-profile-card__escort-photo:nth-child(2) {
    z-index: 2;
    transform: translate(-78%, -44%) rotate(-12deg) scale(.93);
}

/* 3-card symmetric hand fan */
.wt-confession-profile-card__escort-photos[data-count="3"] .wt-confession-profile-card__escort-photo:nth-child(1) {
    transform: translate(-50%, -54%);
}

.wt-confession-profile-card__escort-photos[data-count="3"] .wt-confession-profile-card__escort-photo:nth-child(2) {
    z-index: 2;
    transform: translate(-106%, -44%) rotate(-13deg) scale(.93);
}

.wt-confession-profile-card__escort-photos[data-count="3"] .wt-confession-profile-card__escort-photo:nth-child(3) {
    z-index: 1;
    transform: translate(6%, -44%) rotate(13deg) scale(.93);
}

/* Gentle fan spread on hover */
.wt-confession-profile-card__escort:hover .wt-confession-profile-card__escort-photos[data-count="1"] .wt-confession-profile-card__escort-photo:nth-child(1) {
    transform: translate(-50%, -54%) scale(1.04);
}

.wt-confession-profile-card__escort:hover .wt-confession-profile-card__escort-photos[data-count="2"] .wt-confession-profile-card__escort-photo:nth-child(1) {
    transform: translate(-22%, -55%) rotate(7deg) scale(1.02);
}

.wt-confession-profile-card__escort:hover .wt-confession-profile-card__escort-photos[data-count="2"] .wt-confession-profile-card__escort-photo:nth-child(2) {
    transform: translate(-84%, -43%) rotate(-15deg) scale(.93);
}

.wt-confession-profile-card__escort:hover .wt-confession-profile-card__escort-photos[data-count="3"] .wt-confession-profile-card__escort-photo:nth-child(1) {
    transform: translate(-50%, -57%) scale(1.03);
}

.wt-confession-profile-card__escort:hover .wt-confession-profile-card__escort-photos[data-count="3"] .wt-confession-profile-card__escort-photo:nth-child(2) {
    transform: translate(-112%, -43%) rotate(-16deg) scale(.93);
}

.wt-confession-profile-card__escort:hover .wt-confession-profile-card__escort-photos[data-count="3"] .wt-confession-profile-card__escort-photo:nth-child(3) {
    transform: translate(12%, -43%) rotate(16deg) scale(.93);
}

.wt-confession-profile-card__escort-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.wt-confession-profile-card__escort-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: none;
    place-items: center;
    border-radius: 10px;
    color: var(--wt-profile-accent);
    background: #fde4ef;
}

.wt-confession-profile-card__escort-icon svg,
.wt-confession-profile-card__escort-arrow svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wt-confession-profile-card__escort-text {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 6px;
}

.wt-confession-profile-card__escort-text strong {
    color: var(--wt-profile-ink);
    font: 700 15px/1.15 'Outfit', sans-serif;
    letter-spacing: -.01em;
    transition: color .15s ease;
}

.wt-confession-profile-card__escort-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.wt-confession-profile-card__escort-tag {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    overflow: hidden;
    padding: 3px 8px;
    border: 0;
    border-radius: 6px;
    color: #931350;
    background: rgba(248, 0, 116, .085);
    font: 600 11px/1.2 'Outfit', sans-serif;
    letter-spacing: .01em;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}

.wt-confession-profile-card__escort:hover .wt-confession-profile-card__escort-tag {
    color: #7d0c41;
    background: rgba(248, 0, 116, .13);
}

.wt-confession-profile-card__escort-arrow {
    display: grid;
    width: 30px;
    height: 30px;
    flex: none;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(105deg, var(--wt-profile-accent), #e9006d);
    transition: transform .15s ease;
}

.wt-confession-profile-card__escort-arrow svg {
    width: 15px;
    height: 15px;
    stroke-width: 2.4;
}

.wt-confession-profile-card__escort:hover .wt-confession-profile-card__escort-arrow {
    transform: translateX(2px);
}

.wt-confession-profile-card__escort:hover .wt-confession-profile-card__escort-text strong {
    color: var(--wt-profile-accent-deep);
}

@media (max-width: 350px) {
    .wt-confession-profile-card__escort {
        gap: 10px;
    }

    .wt-confession-profile-card__escort-photos[data-count="3"] {
        width: 80px;
    }

    .wt-confession-profile-card__escort-photos[data-count="2"] {
        width: 64px;
    }

    .wt-confession-profile-card__escort-photo {
        width: 30px;
        height: 42px;
    }
}

.wt-confession-profile-card__footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--wt-profile-line);
    background: #fafafa;
}

.wt-confession-profile-card__footer :is(a, button) {
    display: inline-flex;
    min-width: 0;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(105deg, var(--wt-profile-accent), #e9006d);
    font: 650 13px/1 'Outfit', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease;
}

.wt-confession-profile-card__footer :is(a, button):only-child {
    grid-column: 1 / -1;
}

.wt-confession-profile-card__escort + .wt-confession-profile-card__footer {
    border-top: 0;
    background: #fff;
}

.wt-confession-profile-card__escort + .wt-confession-profile-card__footer :is(a, button) {
    border-radius: 8px;
}

.wt-confession-profile-card__footer :is(a, button):hover {
    background: linear-gradient(105deg, #e9006d, var(--wt-profile-accent-deep));
}

.wt-confession-profile-card__footer .wt-confession-profile-card__view-profile {
    color: #50505b;
    background: var(--wt-profile-soft);
}

.wt-confession-profile-card__footer .wt-confession-profile-card__view-profile:hover {
    color: var(--wt-profile-ink);
    background: #e4e4e8;
}

.wt-confession-profile-card__footer svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Community card follows the supplied reference in light mode. */
.wt-social-community-card {
    display: flex;
    min-height: 234px;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: 14px;
}

.wt-social-community-card__header {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    text-align: left;
}

.wt-social-community-card__image {
    display: grid;
    width: 84px;
    height: 84px;
    overflow: hidden;
    place-items: center;
    border-radius: 5px;
    color: var(--wt-profile-accent-deep);
    background: #f9eaf1;
    font: 700 32px/1 'Outfit', sans-serif;
    text-decoration: none;
}

.wt-social-community-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wt-social-community-card__info {
    min-width: 0;
}

.wt-social-community-card h2 {
    margin: 0;
    padding-right: 26px;
    color: var(--wt-profile-ink);
    font: 700 18px/1.25 'Outfit', sans-serif;
    letter-spacing: -.015em;
}

.wt-social-community-card h2 a {
    display: block;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wt-social-community-card h2 a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.wt-social-community-card__facts {
    display: grid;
    gap: 9px;
    margin-top: 16px;
}

.wt-social-community-card__facts p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #50505b;
    font-size: 13px;
    line-height: 1.4;
}

.wt-social-community-card__facts svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: var(--wt-profile-muted);
}

.wt-social-community-card__members {
    display: flex;
    margin-top: 11px;
    padding-left: 26px;
}

.wt-social-community-card__members a {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--wt-profile-soft);
}

.wt-social-community-card__members a + a {
    margin-left: -5px;
}

.wt-social-community-card__members img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wt-social-community-card__footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    align-items: start;
    gap: 8px;
}

.wt-social-community-card__footer form {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.wt-social-community-card__join,
.wt-social-community-card__menu summary {
    display: grid;
    min-height: 34px;
    padding: 8px 12px;
    place-items: center;
    border: 0;
    border-radius: 5px;
    color: var(--wt-profile-ink);
    background: var(--wt-profile-soft);
    font: 600 13px/1.25 'Outfit', sans-serif;
    text-decoration: none;
    cursor: pointer;
}

.wt-social-community-card__join:hover,
.wt-social-community-card__menu summary:hover {
    background: #e4e4e8;
}

.wt-social-community-card__join:disabled {
    color: var(--wt-profile-muted);
    background: var(--wt-profile-soft);
    cursor: default;
}

.wt-social-community-card__footer [data-social-status] {
    margin: 0;
    color: var(--wt-profile-muted);
    font-size: 12px;
    line-height: 1.4;
}

.wt-social-community-card__footer [data-social-status]:empty {
    display: none;
}

.wt-social-community-card__menu {
    position: relative;
}

.wt-social-community-card__menu summary {
    width: 40px;
    padding: 8px 0;
    list-style: none;
}

.wt-social-community-card__menu summary::-webkit-details-marker {
    display: none;
}

.wt-social-community-card__menu > div {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: calc(100% + 8px);
    width: 170px;
    padding: 5px;
    border: 1px solid var(--wt-profile-line);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(26, 24, 34, .12);
}

.wt-social-community-card__menu :is(a, button) {
    display: block;
    width: 100%;
    padding: 8px;
    border: 0;
    border-radius: 4px;
    color: var(--wt-profile-ink);
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.wt-social-community-card__menu :is(a, button):hover {
    background: var(--wt-profile-soft);
}

.wt-confession-profile-card__loading {
    display: flex;
    min-height: var(--wt-card-loading-height);
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    gap: 6px;
    padding: 44px 20px 24px;
    color: var(--wt-profile-muted);
}

.wt-confession-profile-card__loading > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--wt-profile-accent);
    animation: wt-confession-profile-card-pulse .9s ease-in-out infinite alternate;
}

.wt-confession-profile-card__loading > span:nth-child(2) {
    animation-delay: .15s;
}

.wt-confession-profile-card__loading > span:nth-child(3) {
    animation-delay: .3s;
}

.wt-confession-profile-card__loading > p {
    width: 100%;
    margin: 8px 0 0;
    font-size: 12px;
    text-align: center;
}

@keyframes wt-confession-profile-card-pulse {
    to {
        opacity: .35;
        transform: translateY(-2px);
    }
}

.wt-confession-profile-card__content > .wt-confession-profile-card__empty {
    margin: 42px 16px 16px;
    padding: 12px;
    border-radius: 9px;
    color: var(--wt-profile-muted);
    background: var(--wt-profile-soft);
    font-size: 12px;
}

.wt-confession-profile-card :where(button, a, summary, [role="button"]):focus-visible {
    outline: 2px solid rgba(248, 0, 116, .48);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .wt-confession-profile-card__shell,
    .wt-confession-profile-card__escort,
    .wt-confession-profile-card__escort-photo,
    .wt-confession-profile-card__escort-photo::after,
    .wt-confession-profile-card__escort-tag,
    .wt-confession-profile-card__escort-arrow,
    .wt-confession-profile-card__footer :is(a, button) {
        transition: none;
    }

    .wt-confession-profile-card__loading > span {
        animation: none;
    }
}
